(() => {
  const original = Map.prototype.delete
  window.biliPlugins = new Map()
  const otherPlugin = []
  window.biliPlugins.set('Other', otherPlugin)
  Map.prototype.delete = function (...args) {
    if (args[0] && args[0].install) {
      const plugin = args[0]
      if (plugin.danmaku) {
        window.danmakuManage = plugin
        // 自动连播推荐视频处理
        plugin.storyStore.state.relatedAutoplay = localStorage.getItem('related_auto_play') === 'true'
        plugin.settingStore.getHandoff = function() {
          if (!this.storyStore.state.relatedAutoplay)
            return 2
          /**
           * 0 - Auto
           * 1 - Delay
           * 2 - Abort
           */
          return this.state.handoff
        }
      }
      if (plugin.tag) {
        window.biliPlugins.set(plugin.tag, otherPlugin)
      } else {
        otherPlugin.push(plugin)
      }
    }
    return original.apply(this, args)
  }
})();/*! @metadata nano: 4.9.85-96806e61 (2026-06-10T16:59:44+08:00) */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(self,(function(){return function(){var __webpack_modules__={48836:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.value,a=t.name,s=t.svg,l=t.redDot;return e+='<input class="',e+=i(r),e+='checkbox-input" type="checkbox" ',o&&(e+="checked"),e+=' aria-label="',e+=i(a),e+='">\n<label class="',e+=i(r),e+='checkbox-label">\n    <span class="',e+=i(r),e+="checkbox-icon ",e+=i(r),e+='checkbox-icon-default">',e+=s.checkboxDefault,e+='</span>\n    <span class="',e+=i(r),e+="checkbox-icon ",e+=i(r),e+='checkbox-icon-selected">',e+=s.checkboxSelected,e+='</span>\n    <span class="',e+=i(r),e+='checkbox-name">',e+=i(a),l&&(e+='<span class="',e+=i(r),e+='checkbox-reddot"></span>'),e+="</span>\n</label>"}},91336:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.duration;return e+='<div class="',e+=i(r),e+='circle-progress">\n    <div class="',e+=i(r),e+='circle-progress-left">\n        <div class="',e+=i(r),e+='circle-progress-left-content"></div>\n    </div>\n    <div class="',e+=i(r),e+='circle-progress-right">\n        <div class="',e+=i(r),e+='circle-progress-right-content"></div>\n    </div>\n    <div class="',e+=i(r),e+='circle-progress-content">\n        <div class="',e+=i(r),e+='circle-progress-top">测速中</div>\n        <div class="',e+=i(r),e+='circle-progress-percent">0%</div>\n        <div class="',e+=i(r),e+='circle-progress-bottom">大概需要',e+=i(o/1e3),e+="s时间</div>\n    </div>\n</div>"}},85074:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.value,a=t.foldText,s=t.unfoldText;return e+='<div class="',e+=i(r),e+="collapse-wrap",o||(e+=" ",e+=i(r),e+="collapse-wrap-folded"),e+='">\n    <div class="',e+=i(r),e+='collapse-header">\n        <div class="',e+=i(r),e+='collapse-arrow">\n            <span class="',e+=i(r),e+='collapse-arrow-text">',e+=o?s:a,e+='</span>\n        </div>\n    </div>\n    <div class="',e+=i(r),e+='collapse-body" style="',o||(e+="height: 0;"),e+='"></div>\n</div>'}},5766:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.width,a=t.value,s=t.gap,l=n.$each,A=t.options;t.$value,t.$index;return e+='<div class="',e+=i(r),e+='color-picker-wrap" style="',o&&(e+="width: ",e+=i(o),e+="px;"),e+='">\n    <div class="',e+=i(r),e+='color-picker-result">\n        <span class="',e+=i(r),e+='color-picker-input" style="',o&&(e+="width: auto; flex: 1;"),e+='"></span>\n        <span class="',e+=i(r),e+='color-picker-display" style="background: ',e+=i(a),e+='"></span>\n    </div>\n    <ul class="',e+=i(r),e+='color-picker-options" style="',s&&(e+=" margin-right: -",e+=i(s),e+="px;"),e+='">\n        ',l(A,(function(t,n){e+='\n        <li class="',e+=i(r),e+="color-picker-option",t===a&&(e+=" ",e+=i(r),e+="color-picker-option-active"),e+='" style="background: ',e+=i(t),e+=";",s&&(e+=" margin-right: ",e+=i(s),e+="px;"),e+='" data-value="',e+=i(t),e+='"></li>\n        '})),e+="\n    </ul>\n</div>"}},92830:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.value,a=t.onContent,s=t.offContent;return e+='<input class="',e+=i(r),e+='danmaku-switch-input" type="checkbox" ',o&&(e+="checked"),e+='>\n<label class="',e+=i(r),e+='danmaku-switch-label">\n    <span class="',e+=i(r),e+='danmaku-switch-on">',e+=a,e+='</span>\n    <span class="',e+=i(r),e+='danmaku-switch-off">',e+=s,e+="</span>\n</label>"}},87013:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.title,a=t.svg;return e+='<div class="',e+=i(r),e+='dialog-wrap">\n    ',o&&(e+='<div class="',e+=i(r),e+='dialog-title">',e+=i(o),e+="</div>"),e+='\n    <div class="',e+=i(r),e+='dialog-body"></div>\n    <div class="',e+=i(r),e+='dialog-close">',e+=a.close,e+="</div>\n</div>"}},1778:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.disabled,a=t.items,s=(t.item,t.value),l=t.svg,A=n.$each;t.$value,t.$index;return e+='<div class="',e+=i(r),e+="dropdown-wrap ",o&&(e+=i(r),e+="no-event"),e+='">\n    <div class="',e+=i(r),e+='dropdown-display">\n        <span class="',e+=i(r),e+='dropdown-name">',e+=i((a.find((function(t){return t.value===s}))||a[0]).name),e+='</span>\n        <span class="',e+=i(r),e+='dropdown-icon">',e+=l.dropdown,e+='</span>\n    </div>\n    <div class="',e+=i(r),e+='dropdown-items">\n        ',A(a,(function(t,n){e+='\n        <div class="',e+=i(r),e+="dropdown-item ",t.disabled&&(e+=i(r),e+="disabled"),e+='" data-value="',e+=i(t.value),e+='">',e+=i(t.name),e+="</div>\n        "})),e+="\n    </div>\n</div>"}},8614:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.type,a=t.placeholder,s=t.value;return e+='<div class="',e+=i(r),e+='input-wrap">\n    ',"textarea"===o?(e+='\n    <textarea class="',e+=i(r),e+='input-input" type="text"',a&&(e+=' placeholder="',e+=i(a),e+='"'),e+=">",e+=i(s),e+="</textarea>\n    "):(e+='\n    <input class="',e+=i(r),e+='input-input" type="',e+="number"===o?"number":"text",e+='"',a&&(e+=' placeholder="',e+=i(a),e+='"'),e+=' value="',e+=i(s),e+='">\n    '),e+="\n    ","number"===o&&(e+='\n    <div class="',e+=i(r),e+='input-stepper">\n        <div class="',e+=i(r),e+="input-stepper-half ",e+=i(r),e+='input-stepper-up">\n            <span class="',e+=i(r),e+="input-arrow ",e+=i(r),e+='input-arrow-up"></span>\n        </div>\n        <div class="',e+=i(r),e+="input-stepper-half ",e+=i(r),e+='input-stepper-down">\n            <span class="',e+=i(r),e+="input-arrow ",e+=i(r),e+='input-arrow-down"></span>\n        </div>\n    </div>\n    '),e+="\n</div>"}},33070:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.listHeight,a=t.itemHeight,s=t.count,l=n.$each,A=t.rendering,c=(t.$value,t.$index,t.getItem);return e+='<div class="',e+=i(r),e+='long-list-wrap" style="height: ',e+=i(o),e+='px">\n    <ul class="',e+=i(r),e+='long-list-list" style="height: ',e+=i(a*s),e+='px">\n        ',l(A,(function(t,n){e+='\n        <li class="',e+=i(r),e+='long-list-item" data-index="',e+=i(n),e+='" style="height: ',e+=i(a),e+='px">',e+=c(n),e+="</li>\n        "})),e+="\n    </ul>\n</div>"}},91482:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=n.$each,a=t.items;t.$value,t.$index;return e+='<ul class="',e+=i(r),e+='menu-items">\n    ',o(a,(function(t,n){e+='\n    <li class="',e+=i(r),e+='menu-item" data-index="',e+=i(n),e+='">',e+=i(t.name),e+="</li>\n    "})),e+="\n</ul>"}},68297:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.body,a=t.value,s=t.totalWidth,l=n.$each;t.$value,t.$index;return e+='<div class="',e+=i(r),e+='panel-wrap" style="width: ',e+=i(o[a].width),e+="px; height: ",e+=i(o[a].height),e+='px;">\n    <div class="',e+=i(r),e+='panel-move" style="width: ',e+=i(s),e+='px;">\n        ',l(o,(function(t,n){e+='\n        <div class="',e+=i(r),e+="panel-item",n===a&&(e+=" ",e+=i(r),e+="panel-item-active"),e+='" style="width: ',e+=i(t.width),e+="px; height: ",e+=i(t.height),e+='px;"></div>\n        '})),e+="\n    </div>\n</div>"}},85743:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.steps,a=n.$each,s=(t.$value,t.$index,t.valWidth);return e+='<div class="',e+=i(r),e+='progress-wrap">\n    <div class="',e+=i(r),e+='progress-bar">\n        <span class="',e+=i(r),e+='progress-dot"></span>\n    </div>\n    ',o&&(e+='\n    <div class="',e+=i(r),e+='progress-step">\n        ',a(o,(function(t,n){e+='\n        <div class="',e+=i(r),e+='progress-item"\n            style="left:',e+=i(100*t.value),e+='%">\n            <div class="',e+=i(r),
e+='progress-lab"></div>\n        </div>\n        '})),e+="\n    </div>\n    "),e+="\n    </div>\n</div>\n",s&&(e+='\n<div class="',e+=i(r),e+='progress-val" style="width:',e+=i(s),e+='px"></div>\n'),e+="\n"}},18054:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.style,a=t.columnGap,s=n.$each,l=t.labels,A=(t.$value,t.$index,t.columnCount),c=t.uniqueId,h=t.value,d=t.svg;return e+='<div class="',e+=i(r),e+="radio-wrap ",e+=i(r),e+="radio-",e+=i(o),e+='">\n    <div class="',e+=i(r),e+='radio-group" style="',"button"===o&&(e+="margin: 0 -",e+=i(a/2),e+="px;"),e+='">\n    ',s(l,(function(t,n){e+='\n    <label class="',e+=i(r),e+='radio-item" style="',"normal"===o?(e+="width: ",e+=i((100/A+"").substring(0,7)),e+="%;"):"button"===o&&(e+="margin: 0 ",e+=i(a/2),e+="px;"),e+='">\n        <input type="radio" class="',e+=i(r),e+='radio-input" value="',e+=i(t.value),e+='" name="bui-radio',e+=i(c),e+='" ',t.value===h&&(e+="checked"),e+='>\n        <span class="',e+=i(r),e+='radio-label">\n            ',"normal"===o&&(e+='\n            <span class="',e+=i(r),e+="radio-icon ",e+=i(r),e+='radio-icon-default">',e+=d.radioDefault,e+='</span>\n            <span class="',e+=i(r),e+="radio-icon ",e+=i(r),e+='radio-icon-selected">',e+=d.radioSelected,e+="</span>\n            "),e+='\n            <span class="',e+=i(r),e+='radio-text">',e+=i(t.name),e+="</span>\n        </span>\n    </label>\n    "})),e+="\n    </div>\n</div>"}},13018:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.result,a=t.maxHeight,s=t.qualityMenu,l=t.bridgeHeight,A=n.$each,c=t.items,h=(t.$value,t.$index,t.value);return e+='<div class="',e+=i(r),e+='select-wrap">\n    <div class="',e+=i(r),e+='select-border">\n        <div class="',e+=i(r),e+='select-header">\n            <span class="',e+=i(r),e+='select-result">',e+=o,e+='</span>\n            <span class="',e+=i(r),e+='select-arrow">\n                <span class="',e+=i(r),e+='select-arrow-down"></span>\n            </span>\n        </div>\n        <div class="',e+=i(r),e+='select-list-wrap" style="',a&&(e+="max-height: ",e+=i(a),e+="px;"),e+='">\n            <ul class="',e+=i(r),e+='select-list"',s&&(e+=' style="bottom: ',e+=i(21+l),e+='px;"'),e+=">\n                ",A(c,(function(t,n){e+='\n                <li class="',e+=i(r),e+="select-item\n                        ",t.disabled&&(e+=" ",e+=i(r),e+="select-item-disabled"),e+="\n                        ",t.className&&(e+=" ",e+=i(t.className)),e+="\n                        ",t.value===h&&(e+=" ",e+=i(r),e+="select-item-active"),e+='"\n                    data-value="',e+=i(t.value),e+='">',e+=t.name,e+="</li>\n                "})),e+="\n            </ul>\n        </div>\n    </div>\n</div>"}},23483:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.vertical,a=t.autohideThumb,s=t.videoProgress,l=t.trackBreadth,A=t.segmentedDate,c=t.steps,h=n.$each,d=(t.$value,t.$index,t.shadow),u=t.labels,p=t.thumbWidth,g=t.showTooltip,f=t.thumbSpecial,m=t.thumbHeight,y=t.svg;return e+='<div class="',e+=i(r),e+="track\n            ",o&&(e+=" ",e+=i(r),e+="track-vertical"),e+="\n            ",a&&(e+=" ",e+=i(r),e+="track-autohide-thumb"),e+="\n            ",s&&(e+=" ",e+=i(r),e+="track-video-progress"),e+='"\n    style="',l&&(e+=o?"width":"height",e+=": ",e+=i(l),e+="px;"),e+='">\n    ',A?(e+="\n        ",h(A,(function(t,n){e+='\n            <div class="',e+=i(r),e+="bar-wrap ",e+=i(r),e+='segmented">\n                ',c||(e+="\n                    ",d?(e+='\n                        <div class="',e+=i(r),e+='segmented-padding shadow"></div>\n                    '):(e+='\n                        <div class="',e+=i(r),e+='segmented-padding"></div>\n                    '),e+="\n                ",s&&(e+='<div class="',e+=i(r),e+="bar ",e+=i(r),e+='bar-buffer" style="transform: scaleX(0.001);"></div>'),e+='\n                <div class="',e+=i(r),e+="bar ",e+=i(r),e+='bar-normal" role="progressbar" style="transform: scaleX(0.001);"></div>\n                '),e+="\n            </div>\n        "})),e+="\n    "):(e+='\n        <div class="',e+=i(r),e+='bar-wrap">\n            ',c||(e+="\n            ",s&&(e+='<div class="',e+=i(r),e+="bar ",e+=i(r),e+='bar-buffer" style="transform: scaleX(0.001);"></div>'),e+='\n            <div class="',e+=i(r),e+="bar ",e+=i(r),e+='bar-normal" role="progressbar" style="transform: scaleX(0.001);"></div>\n            '),e+="\n        </div>\n    "),e+="\n    ",(c||u)&&(e+='\n    <div class="',e+=i(r),e+='step">\n        ',h(c||u,(function(t,n){e+='\n        <div class="',e+=i(r),e+="step-item",0===t.value&&(e+=" ",e+=i(r),e+="step-item-0"),1===t.value&&(e+=" ",e+=i(r),e+="step-item-100"),e+='"\n            style="left:',e+=i(100*t.value),e+='%">\n            <div class="',e+=i(r),e+='step-dot"></div>\n            <div class="',e+=i(r),e+='step-name">',e+=i(t.name),e+="</div>\n        </div>\n        "})),e+="\n    </div>\n    "),e+='\n    <div class="',e+=i(r),e+='thumb"',o&&(e+=' style="left: ',e+=i(((l||2)-(p||12))/2),e+='px;"'),e+=">\n        ",g&&(e+='\n        <div class="',e+=i(r),e+='thumb-tooltip"></div>\n        '),e+="\n        ",f?(e+='\n        <div class="',e+=i(r),e+='thumb-dot-special" style="',p&&(e+="width: ",e+=i(p),e+="px;"),m&&(e+="height: ",e+=i(m),e+="px;"),e+='"></div>\n        '):(e+='\n        <div class="',e+=i(r),e+='thumb-dot" style="',p&&(e+="width: ",e+=i(p),e+="px;"),m&&(e+="height: ",e+=i(m),e+="px;"),e+='">',e+=s&&!f?y.thumb:"",e+="</div>\n        "),e+="\n    </div>\n</div>"}},8097:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.height,a=t.list,s=t.svg,l=t.border,A=n.$each,c=(t.$value,t.$index,t.value),h=t.width,d=t.margin;return e+='<div class="',e+=i(r),e+='swiper-wrap"\n     style="height:',e+=i(o),e+='px;"\n>\n    ',a&&(e+='\n    <div class="',e+=i(r),e+='swiper-pre">',e+=s.enter,e+='</div>\n    <div class="',e+=i(r),e+='swiper-overhide">\n        <div class="',e+=i(r),e+="swiper-list\n            ",l&&(e+=" ",e+=i(r),e+="swiper-border"),e+='"\n        >\n            ',A(a,(function(t,n){e+='\n            <div class="',e+=i(r),e+="swiper-item\n                ",t.edgeId==c&&(e+=" ",e+=i(r),e+="swiper-item-active"),e+='"\n                style="width:',e+=i(h),e+="px;height:",e+=i(o),e+="px;margin:",e+=i(d),e+='"\n            >\n                <div class="',e+=i(r),e+='swiper-img">\n                    <img src="',e+=i(t.cover),e+='" /> \n                </div>\n                <div class="',e+=i(r),e+='swiper-text">',e+=i(t.title),e+="</div>\n            </div>\n            "})),e+='\n        </div>\n    </div>\n    <div class="',e+=i(r),e+='swiper-next">',e+=s.enter,e+="</div>\n    "),e+="\n</div>"}},96515:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.value,a=t.name,s=t.redDot,l=t.content;return e+='<input class="',e+=i(r),e+='switch-input" type="checkbox" ',o&&(e+="checked"),e+=' aria-label="',e+=i(a),e+='">\n<label class="',e+=i(r),e+='switch-label">\n    <span class="',e+=i(r),e+='switch-name">',e+=i(a),s&&(e+='<span class="',e+=i(r),e+='switch-reddot"></span>'),e+='</span>\n    <span class="',e+=i(r),e+='switch-body">\n        <span class="',e+=i(r),e+='switch-dot">\n            <span>',e+=l,e+="</span>\n        </span>\n    </span>\n</label>\n"}},81404:function(t,e,i){var n=i(53499);t.exports=function(t){"use strict";t=t||{};var e="",i=n.$escape,r=t.prefix,o=t.type,a=n.$each,s=t.items,l=(t.$value,t.$index,t.value);return e+='<div class="',e+=i(r),e+='tabs-wrap">\n    <div class="',e+=i(r),e+='tabs-header">\n        ',"dropdown"!==o&&(e+="\n        ",a(s,(function(t,n){e+='\n        <div class="',e+=i(r),e+="tabs-header-item",t.value===l&&(e+=" ",e+=i(r),e+="tabs-header-item-active"),e+='" data-value="',e+=i(t.value),e+='">',e+=i(t.name),e+="</div>\n        "})),e+="\n        "),e+='\n    </div>\n    <div class="',e+=i(r),e+='tabs-body">\n        ',a(s,(function(t,n){e+='\n        <div class="',e+=i(r),e+="tabs-body-item",
t.value===l&&(e+=" ",e+=i(r),e+="tabs-body-item-active"),e+='"></div>\n        '})),e+="\n    </div>\n</div>"}},61891:function(t,e,i){t.exports=i(96034)('/*! @metadata nano: 4.9.85-96806e61 (2026-06-10T16:59:44+08:00) */!function(){class t{constructor(t,e=function(){},s=null){this.targetCount=t,this.callback=e,this.context=s,this.count=0}increment(t){this.count+=t,this.count>=this.targetCount&&(this.callback.call(this.context),this.count=this.count%this.targetCount)}willMeetTarget(t){return this.count+t>=this.targetCount}reset(){this.count=0}}class e{constructor(t){this.length=t,this.array=new Float32Array(t),this.count=0}add(t){const e=this.length-this.count,s=t.slice(0,e);this.array.set(s,this.count),this.count+=s.length}get full(){return this.length===this.count}}class s{constructor(t){this.channelCount=t.channelCount,this.length=t.length,this.count=0,this.full=!1}get bins(){return this._bins||(this._bins=Array(this.channelCount).fill(null).map((()=>this.createBin()))),this._bins}add(t){this.bins.forEach(((e,s)=>e.add(t[s]))),this.full=(this.count+=t[0].length)>this.length}dump(){return this.bins.map((t=>t.array))}createBin(){return new e(this.length)}}function r({value:t,index:e,mean:s}){return(t+e*(s||0))/(e+1)}const n=[1,1,1,1.41,1.41];class a{constructor(t=[]){this.powers=t.map((t=>function(t){for(var e=0,s=t.length-1;s>=0;s--)e+=Math.pow(t[s],2);return e/t.length}(t)))}weightedPowers(t){return(t||this.powers).map(((t,e)=>t*n[e]))}loudness(t){return 10*Math.log10(function(t){for(var e=0,s=t.length-1;s>=0;s--)e+=t[s];return e}(this.weightedPowers(t)))-.691}}class i{constructor(t){this.name=t.name,this.delegate=t.delegate,this.sampleRate=t.sampleRate,this.blockDuration=t.blockDuration,this.blockMargin=t.blockMargin,this.updateDuration=t.updateDuration,this.blocks=[],this.fullBlocks=[]}get blockLengthInSamples(){return Math.round(this.blockDuration/1e3*this.sampleRate)}get blockMarginLengthInSamples(){return Math.round(this.blockMargin/1e3*this.sampleRate)}get updateLengthInSamples(){return Math.round(this.updateDuration/1e3*this.sampleRate)}get blockMarginCounter(){return this._blockMarginCounter=this._blockMarginCounter||new t(this.blockMarginLengthInSamples)}get updateCounter(){return this._updateCounter=this._updateCounter||new t(this.updateLengthInSamples,this.update,this)}input(t){var e;this.channelCount=t.length;const s=null==(e=t[0])?void 0:e.length;this.blocks.length&&!this.blockMarginCounter.willMeetTarget(s)||this.blocks.push(this.createBlock()),this.blocks=this.blocks.filter((e=>(e.add(t),!e.full||(this.fullBlocks.push(e),!1)))),this.updateCounter.increment(s),this.blockMarginCounter.increment(s)}createBlock(){return new s({channelCount:this.channelCount,length:this.blockLengthInSamples})}update(){const t=this.fullBlocks[0]?this.fullBlocks.shift():this.blocks[0];this.delegate.update(this.name,new a(t.dump()).loudness())}reset(){this.blocks=[],this.fullBlocks=[],this.blockMarginCounter.reset(),this.updateCounter.reset(),this.delegate.update(this.name,new a(this.createBlock().dump()).loudness())}}class o extends i{constructor(t){super(t),this.measurements=[],this.meanPowers=[]}update(){for(;this.fullBlocks.length;){const t=this.fullBlocks.shift(),e=new a(t.dump());e.loudness()>-70&&this.addMeasurement(e)}const t=this.relativeThreshold,e=function(t){const e=[],s=t.length;for(var n=0;n<s;n++){const s=t[n],i=s.powers.length;for(var a=0;a<i;a++)e[a]=r({value:s.powers[a],index:n,mean:e[a]})}return e}(this.measurements.filter((e=>e.loudness()>t))),s=new a;this.delegate.update(this.name,s.loudness(e))}addMeasurement(t){let e=this.measurements.push(t);t.powers.forEach(((t,s)=>{this.meanPowers[s]=r({value:t,index:e-1,mean:this.meanPowers[s]})}))}get relativeThreshold(){return(new a).loudness(this.meanPowers)-10}reset(){super.reset(),this.measurements=[],this.meanPowers=[]}}class h{constructor(t){this.worker=t,this.recording=!1}message(t){switch(t.data.type){case"initialize":for(var e in t.data.attributes)this[e]=t.data.attributes[e];break;case"set":this[t.data.key]=t.data.value;case"record":this.recording=!0,this.worker.message({type:"start"});break;case"pause":this.recording=!1,this.worker.message({type:"pause"});break;case"resume":this.recording=!0,this.worker.message({type:"resume"});break;case"stop":this.reset(),this.recording=!1,this.worker.message({type:"stop"});break;case"reset":this.reset();break;case"process":this.process(t.data.input)}}process(t){var e;if(this.recording&&t&&t.length&&(null==(e=t[0])?void 0:e.length))return this.meters.forEach((e=>e.input(t))),!0}get meters(){if(this._meters)return this._meters;const t={momentary:this._createMomentaryMeter,"short-term":this._createShortTermMeter,integrated:this._createIntegratedMeter};return this._meters=this.modes.map((e=>t[e].call(this))),this._meters}update(t,e){this.worker.message({type:"dataavailable",mode:t,value:e})}reset(){this.meters.forEach((t=>t.reset()))}_createMomentaryMeter(){return new i({name:"momentary",delegate:this,sampleRate:this.sampleRate,blockDuration:400,blockMargin:100,updateDuration:100})}_createShortTermMeter(){return new i({name:"short-term",delegate:this,sampleRate:this.sampleRate,blockDuration:3e3,blockMargin:100,updateDuration:100})}_createIntegratedMeter(){return new o({name:"integrated",delegate:this,sampleRate:this.sampleRate,blockDuration:400,blockMargin:100,updateDuration:this.duration||1e3})}}class l extends AudioWorkletProcessor{constructor(){super(),this.processor=new h(this),this.port.onmessage=t=>{this.processor.message(t)}}process(t){return this.processor.process(t[0]),!0}message(t){this.port.postMessage(t)}}try{registerProcessor("loudness-lufs-worklet",l)}catch(t){throw new Error("failed register loudness-lufs-worklet")}}();')},27507:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o),s=i(7121),l=i.n(s),A=new URL(i(71964),i.b),c=a()(r()),h=l()(A)
;c.push([t.id,'@-webkit-keyframes bpx-animation-loading{0%{background-position:0 0}6.25%{background-position:-320px 0}12.50%{background-position:-640px 0}18.75%{background-position:-960px 0}25.00%{background-position:-1280px 0}31.25%{background-position:-1600px 0}37.50%{background-position:-1920px 0}43.75%{background-position:-2240px 0}50.00%{background-position:-2560px 0}56.25%{background-position:-2880px 0}62.50%{background-position:-3200px 0}68.75%{background-position:-3520px 0}75.00%{background-position:-3840px 0}81.25%{background-position:-4160px 0}87.50%{background-position:-4480px 0}93.75%{background-position:0 -184px}100.00%{background-position:-320px -184px}}@keyframes bpx-animation-loading{0%{background-position:0 0}6.25%{background-position:-320px 0}12.50%{background-position:-640px 0}18.75%{background-position:-960px 0}25.00%{background-position:-1280px 0}31.25%{background-position:-1600px 0}37.50%{background-position:-1920px 0}43.75%{background-position:-2240px 0}50.00%{background-position:-2560px 0}56.25%{background-position:-2880px 0}62.50%{background-position:-3200px 0}68.75%{background-position:-3520px 0}75.00%{background-position:-3840px 0}81.25%{background-position:-4160px 0}87.50%{background-position:-4480px 0}93.75%{background-position:0 -184px}100.00%{background-position:-320px -184px}}.bpx-docker ol,.bpx-docker ul{list-style:none;outline:none}.bpx-docker table{border-collapse:collapse;border-spacing:0}.bpx-docker a,.bpx-docker input{outline:none;-webkit-text-decoration:none;text-decoration:none}.bpx-docker svg[data-pointer=none]{pointer-events:none}.bpx-docker{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-sizing:initial;box-sizing:initial;font-size:12px;font-style:normal;line-height:1}.bpx-common-hidden{display:none!important}.bpx-common-opacity-60{opacity:.6}.bpx-common-opacity-0{opacity:0}.bpx-common-svg-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bpx-common-svg-icon svg{height:100%;-webkit-transition:fill .15s ease-in-out;transition:fill .15s ease-in-out;width:100%}.bpx-docker-major{height:100%;position:relative;width:100%}.bpx-docker-major.bpx-state-light-off:before{background-color:#000;bottom:0;content:"";display:block;left:0;opacity:.9;position:fixed;right:0;top:0;z-index:1002}.bpx-docker-major.bpx-state-light-off .bpx-player-container{-webkit-box-shadow:none;box-shadow:none;z-index:1010}.bpx-docker-minor{position:relative;width:100%}.bpx-docker-minor:empty{background-color:#f4f4f4;background-color:var(--bpx-aux-header-bg,#f4f4f4);border-radius:2px}.bpx-docker-minor:not(:empty){background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff)}.bpx-docker-patch{height:0!important;left:0;position:absolute;top:0;width:0!important}.bpx-player-container{-webkit-box-shadow:0 0 8px #e5e9ef;box-shadow:0 0 8px #e5e9ef;-webkit-box-shadow:0 0 8px var(--bpx-box-shadow,#e5e9ef);box-shadow:0 0 8px var(--bpx-box-shadow,#e5e9ef);height:100%;position:relative;width:100%}.bpx-player-container.bpx-state-disable-box-shadow{-webkit-box-shadow:none;box-shadow:none}.bpx-player-container[data-aspect-ratio="16:9"] .bpx-player-video-wrap,.bpx-player-container[data-aspect-ratio="4:3"] .bpx-player-video-wrap{position:relative}.bpx-player-container[data-aspect-ratio="16:9"] .bpx-player-video-wrap canvas,.bpx-player-container[data-aspect-ratio="4:3"] .bpx-player-video-wrap canvas{height:100%!important;width:100%!important}.bpx-player-container.bpx-state-black-gap .bpx-player-video-wrap{border-color:transparent;border-style:solid;border-width:48px 7px}.bpx-player-container.bpx-state-black-gap .bpx-player-control-mask{background:url('+h+') repeat-x bottom;height:180px}.bpx-player-container[data-screen=full],.bpx-player-container[data-screen=mini],.bpx-player-container[data-screen=web]{z-index:100000!important}.bpx-player-container[data-ctrl-hidden=true] .bpx-player-top-wrap{opacity:0;visibility:hidden}.bpx-player-container[data-ctrl-hidden=false] .bpx-player-top-wrap{opacity:1;visibility:visible}.bpx-player-container[data-screen=full][data-ctrl-hidden=true] .bpx-player-visual-wrap{visibility:visible}.bpx-player-container[data-screen=mini]{border-radius:4px;height:225px;overflow:hidden;position:fixed!important;width:400px}.bpx-player-container[data-revision="1"][data-screen=mini],.bpx-player-container[data-revision="2"][data-screen=mini]{height:180px;width:320px}@media screen and (min-width:1681px){.bpx-player-container[data-revision="1"][data-screen=mini],.bpx-player-container[data-revision="2"][data-screen=mini]{height:203px;width:360px}}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar{font-size:13px;padding-left:12px}@media screen and (min-width:1681px){.bpx-player-container[data-revision="1"] .bpx-player-sending-bar,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar{font-size:14px;height:56px}}.bpx-player-container[data-revision="2"][data-screen=web]{-webkit-box-shadow:none;box-shadow:none}.bpx-player-primary-area{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%;width:100%}.bpx-player-hinter-area{background-color:#000;background-position:50%;background-size:cover;bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:500}.bpx-player-hinter-area:after{background:url(//s1.hdslb.com/bfs/static/player/img/play.svg) no-repeat 50%;content:"";display:block;height:84px;left:50%;margin-left:-42px;margin-top:-42px;position:absolute;top:50%;width:84px}.bpx-player-context-area{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1000}.bpx-state-regulated-intervals .bpx-player-render-dm-wrap{visibility:hidden!important}.bpx-player-video-area{-webkit-box-flex:1;background-color:#000;background-color:var(--bpx-video-bgcolor,#000);-ms-flex:1;flex:1;overflow:hidden;position:relative}.bpx-player-video-area.bpx-player-mouse-event{cursor:pointer}.bpx-player-sending-area[hidden]{display:none}.bpx-player-ending-wrap{height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:55}.bpx-player-ending-wrap[hidden]{display:none}.bpx-player-ending-wrap[data-select="1"],.bpx-player-ending-wrap[data-select="2"]{opacity:1;-webkit-transition:none;transition:none;visibility:visible}.bpx-player-ending-wrap[data-select="1"] .bpx-player-ending-backdrop,.bpx-player-ending-wrap[data-select="1"] .bpx-player-ending-panel,.bpx-player-ending-wrap[data-select="2"] .bpx-player-ending-backdrop,.bpx-player-ending-wrap[data-select="2"] .bpx-player-share-panel{opacity:1;-webkit-transition:opacity .2s linear;transition:opacity .2s linear;visibility:visible}.bpx-player-ending-backdrop{background-position:50%;background-size:cover;-webkit-filter:blur(20px);filter:blur(20px);height:120%;left:-10%;position:absolute;top:-10%;width:120%;z-index:-1}.bpx-player-ending-backdrop:before{background-color:rgba(0,0,0,.6);content:""}.bpx-player-ending-backdrop:before,.bpx-player-ending-panel,.bpx-player-share-panel{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-ending-panel{z-index:1}.bpx-player-share-panel{z-index:2}.bpx-player-ending-backdrop,.bpx-player-ending-panel,.bpx-player-ending-wrap,.bpx-player-share-panel{opacity:0;-webkit-transition:opacity .2s linear,visibility 0ms .2s;transition:opacity .2s linear,visibility 0ms .2s;visibility:hidden}.bpx-player-state-wrap{pointer-events:none}.bpx-player-control-wrap{bottom:0;left:0;position:absolute;width:100%;z-index:75}.bpx-player-control-wrap[hidden]{display:none}.bpx-player-pc-app *,.bpx-player-pc-app :after,.bpx-player-pc-app :before{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-sizing:initial;box-sizing:initial}.bpx-player-embedded .bpx-player-sending-bar,.bpx-player-pc-app .bpx-player-sending-bar{height:auto}.bpx-player-embedded .bpx-player-sending-bar-left,.bpx-player-embedded .bpx-player-sending-bar-right,.bpx-player-pc-app .bpx-player-sending-bar-left,.bpx-player-pc-app .bpx-player-sending-bar-right{height:0}.bpx-player-sending-bar{-ms-flex-negative:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;background:var(--bpx-dmsend-main-bg,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;flex-shrink:0;height:46px;padding:0 12px;position:relative}.bpx-player-sending-bar-left{background-color:rgba(0,0,0,.04);height:22px;margin-right:10px;width:176px}.bpx-player-sending-bar-right{-webkit-box-flex:1;-ms-flex-positive:1;background-color:rgba(0,0,0,.04);flex-grow:1;height:22px}.bpx-player-adv-dm-wrap,.bpx-player-bas-dm-wrap,.bpx-player-dm-mask-wrap,.bpx-player-row-dm-wrap{cursor:pointer;height:100%;left:0;-webkit-mask-position:center;mask-position:center;overflow:hidden;pointer-events:none;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:2}.bpx-player-render-dm-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;z-index:11}.bpx-player-row-dm-wrap.ash-animation{-webkit-animation:ash 2s linear 1s forwards;animation:ash 2s linear 1s forwards}.bpx-player-row-dm-wrap.ash-hide{opacity:0}.bpx-player-row-dm-wrap.ash-animation-paused{animation-play-state:paused;-webkit-animation-play-state:paused}.bpx-player-row-dm-wrap.unvisible{visibility:hidden}.bpx-player-visual-wrap{pointer-events:none;visibility:hidden;width:100%}.bpx-player-visual-wrap .bpx-player-visual-pixel{background:rgba(0,0,0,.1);height:1px;left:0;position:absolute;top:50%;width:1px}.bpx-player-top-wrap{color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;left:0;pointer-events:none;position:absolute;top:0;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:100%;z-index:70}.bpx-player-top-wrap[hidden]{display:none}.bpx-player-subtitle-wrap{z-index:16}.bpx-player-music-wrap{position:absolute;right:0;top:0}.bpx-player-music-wrap:not(:empty){height:100%;width:100%;z-index:81}.bpx-player-business-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;width:100%;z-index:63}.bpx-player-business-wrap.business-hide{display:none}.bpx-player-container[data-screen=mini] .bpx-player-cmd-dm-wrap,.bpx-player-container[data-screen=mini] .bpx-player-ending-panel,.bpx-player-container[data-screen=mini] .bpx-player-interaction-hidden,.bpx-player-container[data-screen=mini] .bpx-player-interaction-rookie-guide,.bpx-player-container[data-screen=mini] .bpx-player-interaction-story,.bpx-player-container[data-screen=mini] .bpx-player-music-wrap,.bpx-player-container[data-screen=mini] .bpx-player-panorama,.bpx-player-container[data-screen=mini] .bpx-player-share-panel{display:none!important}.bpx-player-mini-site .bpx-player-ending-backdrop{opacity:0!important}@-webkit-keyframes ash{0%{-webkit-filter:url(#fractal) blur(0);filter:url(#fractal) blur(0);opacity:1}25%{-webkit-filter:url(#fractal) blur(2.5px);filter:url(#fractal) blur(2.5px);opacity:.75}50%{-webkit-filter:url(#fractal) blur(5px);filter:url(#fractal) blur(5px);opacity:.5}75%{-webkit-filter:url(#fractal) blur(7.5px);filter:url(#fractal) blur(7.5px);opacity:.25}to{-webkit-filter:url(#fractal) blur(10px);filter:url(#fractal) blur(10px);opacity:0}}@keyframes ash{0%{-webkit-filter:url(#fractal) blur(0);filter:url(#fractal) blur(0);opacity:1}25%{-webkit-filter:url(#fractal) blur(2.5px);filter:url(#fractal) blur(2.5px);opacity:.75}50%{-webkit-filter:url(#fractal) blur(5px);filter:url(#fractal) blur(5px);opacity:.5}75%{-webkit-filter:url(#fractal) blur(7.5px);filter:url(#fractal) blur(7.5px);opacity:.25}to{-webkit-filter:url(#fractal) blur(10px);filter:url(#fractal) blur(10px);opacity:0}}.bpx-player-loading-panel{background-color:#000;display:none;height:100%;left:0;position:absolute;top:0;width:100%;z-index:57}.bpx-player-loading-panel.bpx-state-loading{display:block}.bpx-player-loading-panel-blur{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;pointer-events:none;position:relative;width:100%}.bpx-player-loading-panel-blur[hidden]{display:none}.bpx-player-loading-panel-blur:before{background-color:rgba(0,0,0,.3);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.bpx-player-loading-panel-blur-detail{-webkit-animation:bpx-animation-loading .94s steps(1) infinite;animation:bpx-animation-loading .94s steps(1) infinite;background:url(//s1.hdslb.com/bfs/static/player/img/ploading.png) no-repeat;height:184px;-webkit-transform:scale(.5);transform:scale(.5);width:320px}.bpx-player-loading-panel-text{bottom:56px;color:hsla(0,0%,100%,.6);font-size:12px;left:12px;line-height:1.6;position:absolute;right:12px}.bpx-player-loading-panel-text[hidden]{display:none}.bpx-player-loading-panel-text-row{white-space:nowrap}.bpx-player-video-poster{bottom:0;height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0;width:100%}.bpx-player-video-poster[hidden]{display:none}.bpx-player-video-poster img{height:100%;width:100%}.bpx-player-video-perch{-webkit-box-flex:0;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;height:100%;justify-content:center;position:relative;width:100%}.bpx-player-video-wrap{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:100%;width:100%}.bpx-player-video-wrap .bpx-player-seamless-replacement{bottom:0;left:0;position:absolute;right:0;top:0}.bpx-player-video-wrap .bpx-player-seamless-replacement,.bpx-player-video-wrap bwp-video,.bpx-player-video-wrap video{content-visibility:visible;display:block;height:100%;margin:auto;width:100%}.bpx-player-game-center.bpx-state-paused .bpx-player-state-wrap,.bpx-player-state-buff-icon,.bpx-player-state-buff-text,.bpx-player-state-play{display:none}.bpx-state-paused .bpx-player-state-wrap{bottom:62px;cursor:pointer;pointer-events:none;position:absolute;right:34px;z-index:48}.bpx-state-paused .bpx-player-state-play{background:url(//s1.hdslb.com/bfs/static/player/img/play.svg) 50% no-repeat;display:block;height:64px;width:64px}.bpx-state-paused[data-screen=full] .bpx-player-state-wrap,.bpx-state-paused[data-screen=web] .bpx-player-state-wrap{bottom:107px}.bpx-state-no-cursor .bpx-player-video-perch{cursor:none}.bpx-state-mirror bwp-video,.bpx-state-mirror video{-webkit-transform:rotateX(.001deg) rotateY(180.4deg);transform:rotateX(.001deg) rotateY(180.4deg)}.bpx-state-mirror canvas{-webkit-transform:scaleX(-1) translate(50%,-50%)!important;transform:scaleX(-1) translate(50%,-50%)!important}.bpx-state-buff .bpx-player-state-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:48}.bpx-state-buff .bpx-player-state-buff-icon{display:block;height:24px;width:24px}.bpx-state-buff .bpx-player-state-buff-text{color:#fff;display:block;font-size:14px;line-height:1;margin-top:8px;text-shadow:0 1px 2px rgba(0,0,0,.7)}.bpx-legacy-browser-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#000;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:16px;height:100%;justify-content:center;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:100}.bpx-legacy-browser-image{margin-bottom:1em;max-width:300px;width:60%}.bpx-legacy-browser-text{line-height:2;margin:0}',""]),
e.Z=c},51831:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r())
;a.push([t.id,'.bpx-player-auxiliary .bpx-player-bscrollbar{position:relative}.bpx-player-auxiliary .bpx-player-bscrollbar .bscroll-vertical-scrollbar{width:6px!important}.bpx-player-auxiliary .bpx-player-bscrollbar .bscroll-indicator{background:#6d7f7a!important;border:none!important;cursor:pointer}.bpx-player-auxiliary .bpx-player-bscrollbar .bscroll-vertical-scrollbar.mousedown,.bpx-player-auxiliary .bpx-player-bscrollbar:hover .bscroll-vertical-scrollbar{background:#fff!important;background:var(--bpx-aux-content-bg,#fff)!important;opacity:1!important}.bpx-player-auxiliary .mCSB_inside>.mCSB_container{margin-right:0}.bpx-player-auxiliary .bpui-button-type-small{background:#f4f5f7;border:none;border-radius:2px;color:#212121}.bpx-player-auxiliary .bpui-button-type-small:hover{background:#00b5e5;background:var(--bpx-fn-hover-color,#00b5e5);color:#fff}.bpx-player-auxiliary{-ms-flex-negative:0;-webkit-box-sizing:border-box;box-sizing:border-box;flex-shrink:0;height:100%;position:relative;vertical-align:top;width:100%}.bpx-player-auxiliary .bpx-player-collapse .bui-collapse-body{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);position:relative}.bpx-player-auxiliary .bpx-player-collapse .bpx-player-wraplist{display:block}.bpx-player-auxiliary .bpx-player-collapse .bui-collapse-wrap-folded .bpx-player-modal-container{display:none!important}.bpx-player-auxiliary .bpx-player-collapse-playlist{margin-top:16px}.bpx-player-auxiliary .bpx-player-collapse-playlist .bui-collapse .bui-collapse-header .bui-collapse-arrow{color:#999}.bpx-player-auxiliary .bpx-player-collapse-playlist .bpx-player-wraplist{display:block}.bpx-player-auxiliary .bpx-player-filter{border:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;height:46px;line-height:46px;padding:0 10px 0 16px;position:relative;z-index:2}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn{border:1px solid transparent;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:12px;height:30px;line-height:28px;outline:none;overflow:visible;padding:0 8px;position:relative;text-align:center;-webkit-transition:background-color .3s;transition:background-color .3s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:100px;z-index:10}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-hover{z-index:11}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-disabled{background-color:#fff}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-disabled .bpui-button-text,.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-disabled .bpx-player-iconfont,.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-disabled.bpui-state-hover,.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-disabled.bpui-state-hover .bpui-button-text,.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.bpui-state-disabled.bpui-state-hover .bpx-player-iconfont{color:#ccd0d7}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.active{background-color:#fff;border-bottom:0;cursor:default;z-index:11}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.active>span{border-bottom:2px solid #00a1d6;border-bottom:2px solid var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);display:inline-block;height:28px;line-height:28px;width:80%}.bpx-player-auxiliary .bpx-player-filter .bpx-player-filter-btn.active.bpui-state-hover{background-color:#fff;cursor:default}.bpx-player-auxiliary .bpx-player-filter-menu{color:#757575;cursor:pointer;display:inline-block;font-size:16px;height:100%;left:92px;position:absolute;text-align:center;width:30px}.bpx-player-auxiliary .bpx-player-filter-menu:hover{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-auxiliary .bpx-player-filter-toggle{color:#99a2aa;cursor:pointer;position:absolute;right:10px}.bpx-player-auxiliary .bpx-player-filter-toggle>i{margin-left:2px}.bpx-player-auxiliary .bpx-player-filter .bpx-player-setting-menu-wrap{background-color:#fff;border:1px solid #e5e9ef;border-radius:4px;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.14);box-shadow:0 2px 4px 0 rgba(0,0,0,.14);display:none;left:-65px;padding:8px 0;position:absolute;top:35px;width:80px;z-index:1}.bpx-player-auxiliary .bpx-player-filter .bpx-player-setting-menu-wrap .bpx-player-setting-menu-list{background-color:#fff;color:#222;cursor:pointer;font-size:14px;height:36px;line-height:36px;position:relative;text-align:center;-webkit-transition:background-color .3s;transition:background-color .3s}.bpx-player-auxiliary .bpx-player-filter .bpx-player-setting-menu-wrap .bpx-player-setting-menu-list:hover{background-color:#e7e7e7;color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-auxiliary .bpx-player-filter .bpx-player-video-float-hint{background:rgba(0,0,0,.7);border-radius:4px;color:#fff;display:none;height:30px;line-height:30px;padding:0 10px;white-space:nowrap}.bpx-player-auxiliary .bpx-player-filter .bpl-error{background-color:rgba(78,78,78,.8);color:#fff;font-size:12px;height:20px;line-height:20px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:100%;z-index:20}.bpx-player-auxiliary .bpx-player-wraplist{-webkit-box-sizing:border-box;box-sizing:border-box;display:none;overflow:hidden}.bpx-player-auxiliary .bpx-player-wraplist.mask:after{background:hsla(0,0%,100%,.4);bottom:-200px;content:"";cursor:default;left:0;position:absolute;right:0;top:-60px;z-index:2}.bpx-player-auxiliary .bpx-player-wraplist.bas-mask:after{background:hsla(0,0%,100%,.4);bottom:0;content:"";cursor:default;left:0;position:absolute;right:0;top:0;z-index:10003}.bpx-player-auxiliary .bpx-player-danmaku{overflow:hidden;position:relative}.bpx-player-auxiliary .bpx-player-danmaku.bpx-player-bas-mode .bpx-player-danmaku-btn-footer,.bpx-player-auxiliary .bpx-player-danmaku.bpx-player-bas-mode .bpx-player-danmaku-management,.bpx-player-auxiliary .bpx-player-danmaku.bpx-player-bas-mode .bpx-player-panel-close{display:none}.bpx-player-auxiliary .bpx-player-danmaku.bpx-player-bas-mode .bpx-player-danmaku-wrap-child.bpx-player-danmaku-wrap-child{top:-10px}.bpx-player-auxiliary .bpx-player-panel-title{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-float-border,#e5e9ef);color:#222;color:var(--bpx-aux-content-font1,#222);font-size:14px;line-height:60px;overflow:hidden;padding-left:22px;text-align:left}.bpx-player-auxiliary .bpx-player-panel-title .bpx-player-panel-close{color:#99a2aa;cursor:pointer;line-height:40px;margin-right:16px;position:absolute;right:0;top:0}.bpx-player-auxiliary .bpx-player-panel-title .bpx-player-panel-close:hover{color:#222}.bpx-player-auxiliary .bpx-player-panel-title .bpx-player-panel-back{color:#99a2aa;cursor:pointer;line-height:60px;margin-right:22px;position:absolute;right:0;top:0}.bpx-player-auxiliary .bpx-player-panel-title .bpx-player-panel-back:hover{color:#222}.bpx-player-auxiliary .bpx-player-adv-danmaku,.bpx-player-auxiliary .bpx-player-setting{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);width:100%}.bpx-player-auxiliary.video-state-pause .bpx-player-video-area .bpx-player-loading-panel,.bpx-player-auxiliary.video-state-pause .bpx-player-video-area .bpx-player-state-wrap{display:block}.bpx-player-auxiliary.video-state-pause .bpx-player-video-area.video-float-mini-mode .bpx-player-state-wrap{display:none}.bpx-player-auxiliary.video-state-pause .bpx-player-video-area .bpx-player-row-dm-wrap div{animation-play-state:paused;-webkit-animation-play-state:paused}.bpx-player-auxiliary.video-state-buff .bpx-player-video-area .bpx-player-state-wrap{background:rgba(0,0,0,.8);border-radius:4px;bottom:auto;display:block;height:48px;left:50%;margin-left:-24px;margin-top:-24px;right:auto;text-align:center;top:50%;width:48px}.bpx-player-auxiliary.video-state-buff .bpx-player-video-area .bpx-player-state-wrap-play{display:none}.bpx-player-auxiliary.video-state-buff .bpx-player-video-area .bpx-player-state-wrap-buff{display:inline-block;margin-top:8px;vertical-align:top}.bpx-player-auxiliary .bpx-player-contextmenu.bpx-player-white{background-color:#fff;background-color:var(--bpx-aux-float-bg,#fff);border-color:#e5e9ef;border-color:var(--bpx-aux-float-border,#e5e9ef);-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.14);box-shadow:0 2px 4px 0 rgba(0,0,0,.14)}.bpx-player-auxiliary .bpx-player-contextmenu.bpx-player-white>li{color:#222;color:var(--bpx-aux-content-font1,#222);position:relative}.bpx-player-auxiliary .bpx-player-contextmenu.bpx-player-white>li:before{content:"";height:100%;left:0;opacity:.1;position:absolute;top:0;width:100%}.bpx-player-auxiliary .bpx-player-contextmenu.bpx-player-white>li:hover{background-color:transparent;background-color:initial}.bpx-player-auxiliary .bpx-player-contextmenu.bpx-player-white>li:hover:before{background-color:#000;background-color:var(--bpx-aux-float-hover-bg,#000)}.bpx-player-auxiliary[data-revision="1"] .bpx-player-filter{border-radius:6px;font-size:15px;font-weight:500;height:44px;line-height:44px}.bpx-player-auxiliary[data-revision="1"] .bpx-player-dm-btn-history,.bpx-player-auxiliary[data-revision="1"] .bui-collapse-header{border-radius:6px}.bpx-player-auxiliary[data-revision="1"] .bui-dropdown-items{border-radius:8px}@media screen and (min-width:1681px){.bpx-player-auxiliary[data-revision="1"] .bpx-player-filter{font-size:16px}}.bpx-player-auxiliary[data-revision="3"] .bpx-player-filter{border-radius:0;font-weight:600;height:44px;line-height:44px}.bpx-player-auxiliary[data-revision="3"] .bui-collapse .bui-collapse-header{border-radius:0}.bpx-player-auxiliary[data-revision="3"] .bui-collapse .bui-collapse-header .bui-collapse-arrow{right:22px}.bpx-player-auxiliary[data-revision="3"] .bui-collapse .bui-collapse-header .bui-collapse-arrow .bui-collapse-arrow-text .arrow-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-auxiliary[data-revision="3"] .bui-collapse .bui-collapse-wrap-folded .bui-collapse-header .bui-collapse-arrow .bui-collapse-arrow-text .arrow-icon{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.bpx-player-auxiliary[data-revision="3"] .bui-dropdown .bui-dropdown-display .bui-dropdown-icon:hover{fill:inherit}.bpx-player-auxiliary.bpx-player-unlogin .dm-info-report-btn{display:none!important}.bpx-player-auxiliary .bpx-player-dm{display:none;height:100%}.bpx-player-auxiliary .bpx-player-dm-management{fill:#757575;fill:var(--bpx-aux-content-font3,#757575);-webkit-box-pack:justify;-ms-flex-pack:justify;background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);color:#757575;color:var(--bpx-aux-content-font3,#757575);display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;text-align:center}.bpx-player-auxiliary .bpx-player-dm-management .bpx-player-up-btn{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-line-border,#e5e9ef);-webkit-box-sizing:border-box;box-sizing:border-box;color:#505050;color:var(--bpx-aux-footer-font,#505050);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:52px;justify-content:center;-webkit-transition:color .3s;transition:color .3s;width:80px}.bpx-player-auxiliary .bpx-player-dm-management .bpx-player-up-btn:hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-auxiliary .bpx-player-dm-management .bpx-player-up-btn span{display:inline-block;pointer-events:none;width:100%}.bpx-player-auxiliary .bpx-player-dm-management .bpx-player-up-btn span.bpx-player-up-btn-icon{margin-bottom:4px;width:15px}.bpx-player-auxiliary .bpx-player-dm-function{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;position:relative;z-index:1}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-date,.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-dm,.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-time{border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a);cursor:pointer;display:inline-block;font-size:12px;height:32px;line-height:32px;padding:0 6px;position:relative}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-date>span,.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-dm>span,.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-time>span{pointer-events:none}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-time{padding-left:16px;padding-right:0;text-align:left;width:60px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-dm{-webkit-box-flex:1;-ms-flex:auto;flex:auto;text-align:left}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-date{text-align:left;width:88px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-btn-icon{display:none;font-size:0;height:10px;line-height:0;position:absolute;right:5px;top:11px;-webkit-transform-origin:center;transform-origin:center;width:10px}.bpx-player-auxiliary .bpx-player-dm-function.bpx-player-order-rotate .bpx-player-dm-btn-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-auxiliary .bpx-player-dm-function.bpx-player-order-stime .bpx-player-dm-btn-time .bpx-player-dm-btn-icon,.bpx-player-auxiliary .bpx-player-dm-function.bpx-player-order-text .bpx-player-dm-btn-dm .bpx-player-dm-btn-icon{display:inline-block}.bpx-player-auxiliary .bpx-player-dm-function.bpx-player-order-date .bpx-player-dm-btn-date .bpx-player-dm-btn-icon{display:inline-block;right:16px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);border:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);height:32px;left:0;line-height:32px;opacity:0;padding-left:10px;position:absolute;top:-10px;-webkit-transition:all .2s;transition:all .2s;visibility:hidden;width:100%;z-index:2}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple.bpx-player-show{opacity:1;top:0;visibility:visible}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple-cancel,.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple-submit{border-radius:2px;cursor:pointer;line-height:22px;padding:0 4px;position:absolute;top:5px;width:50px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple-cancel:hover,.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple-submit:hover{background:#00a1d6;background:var(--bpx-primary-color,#00a1d6);color:#fff}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple-cancel{right:88px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-multiple-submit{right:12px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-protect-multiple-control{background-color:#fff;display:none;height:32px;left:0;position:absolute;top:0;width:100%}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-protect-multiple-control-title{color:#99a2aa;float:left;height:32px;line-height:32px;margin-left:10px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-protect-multiple-control-cancel{position:absolute;right:64px;top:5px;width:26px}.bpx-player-auxiliary .bpx-player-dm-function .bpx-player-dm-protect-multiple-control-protect{position:absolute;right:12px;top:5px;width:26px}.bpx-player-auxiliary .bpx-player-dm-wrap{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);position:relative}.bpx-player-auxiliary .bpx-player-dm-wrap .bscroll-vertical-scrollbar{width:6px!important}.bpx-player-auxiliary .bpx-player-dm-wrap .bscroll-indicator{background:#6d7f7a!important;border:none!important;cursor:pointer}.bpx-player-auxiliary .bpx-player-dm-wrap .bscroll-vertical-scrollbar.mousedown,.bpx-player-auxiliary .bpx-player-dm-wrap:hover .bscroll-vertical-scrollbar{background:#fff!important;background:var(--bpx-aux-content-bg,#fff)!important;opacity:1!important}.bpx-player-auxiliary .bpx-player-dm .bpx-player-no-dm{color:#222;color:var(--bpx-aux-content-font1,#222);text-align:center}.bpx-player-auxiliary .bpx-player-dm.bpx-player-hide-status .bpx-player-dm-load-status{display:none}.bpx-player-auxiliary .bpx-player-dm.bpx-player-hide-status .bpx-player-dm-btn-history{display:block}.bpx-player-auxiliary .bpx-player-dm-load-status{background:#fff;background:var(--bpx-aux-content-bg,#fff);color:#222;color:var(--bpx-aux-content-font1,#222);height:200px;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:2}.bpx-player-auxiliary .bpx-player-dm-load-status .bpx-player-reset{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);cursor:pointer}.bpx-player-auxiliary .bpx-player-dm-load-status .bpx-player-reset:hover{color:#00b5e5;color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-auxiliary .bpx-player-dm-load-status.bpx-player-dm-close{margin-top:-32px;padding-top:32px}.bpx-player-auxiliary .bpx-player-dm-container{height:100%;overflow:hidden}.bpx-player-auxiliary .bpx-player-dm-container .bui-long-list-item-selected .dm-info-row:before{background-color:#757575;background-color:var(--bpx-dmsend-hint-icon,#757575);content:"";height:100%;left:0;opacity:.1;position:absolute;top:0;width:100%}.bpx-player-auxiliary .bpx-player-dm-container .bui-long-list-item-selected .dm-info-row.dm-info-row-block{background:transparent}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row{color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:24px;line-height:24px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row span{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;padding:0 6px;pointer-events:none;vertical-align:top}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row span .dm-info-select-state{background-color:#f6f9fa;display:none;height:100%;left:0;position:absolute;text-align:left;top:0;width:100%}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row span .dm-info-select-state .bpx-player-iconfont{margin-left:20px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row span .dm-info-select-state .bpx-player-iconfont.icon-12checkbox{margin-top:6px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row span .dm-info-select-state .bpx-player-iconfont.icon-12select{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-row-block span{color:#ccd0d7}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-row-block .dm-info-block-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-row-block .dm-info-protect-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-row-block .dm-info-report-btn{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-time{-webkit-box-flex:0;-ms-flex:none;flex:none;overflow:hidden;padding-left:16px;position:relative;text-align:left;width:66px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-tips{display:none;float:right;padding-left:0;padding-right:22px;text-align:right;width:88px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-dm{-webkit-box-flex:1;color:#222;color:var(--bpx-aux-content-font1,#222);-ms-flex:auto;flex:auto;overflow:hidden;pointer-events:auto;text-overflow:ellipsis;white-space:nowrap}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-date{-webkit-box-flex:0;-ms-flex:none;flex:none;overflow:hidden;white-space:nowrap;width:88px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-uname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:88px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-float-layer{bottom:2px;display:none;height:22px;position:absolute;right:12px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row:hover .dm-info-float-layer{display:block}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row:hover .dm-info-date{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row:hover .dm-info-block-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row:hover .dm-info-protect-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row:hover .dm-info-recall-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row:hover .dm-info-report-btn{display:inline-block}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-block-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-protect-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-recall-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-report-btn{background:#fff;background:var(--bpx-aux-content-bg,#fff);border:1px solid #00a1d6;border:1px solid var(--bpx-fn-color,#00a1d6);border-radius:2px;color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);display:none;height:20px;line-height:20px;margin-left:10px;pointer-events:auto;position:absolute;right:10px;text-align:center;top:1px;-webkit-transition:background-color .3s;transition:background-color .3s;width:70px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-block-btn:hover,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-protect-btn:hover,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-recall-btn:hover,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-report-btn:hover{background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6);color:#fff}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-recall-btn.bpx-player-db-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-report-btn.bpx-player-db-btn{right:90px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-raw-applied .dm-info-protect-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-raw-applied .dm-info-protect-btn:hover,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-raw-protect .dm-info-protect-btn,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-raw-protect .dm-info-protect-btn:hover{background-color:transparent;color:#00a1d6;color:var(--bpx-primary-color,#00a1d6);cursor:default}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-raw-applied:hover .dm-info-date,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row.dm-info-raw-protect:hover .dm-info-date{color:transparent}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-super span.dm-info-date{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-super:after{color:#ccd0d7;content:"特殊弹幕";display:inline-block;padding-right:32px;text-align:right;width:70px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect span{background-color:#effef5;color:#47be8d}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect span.dm-info-block{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect:hover>span{background-color:#f6f9fa}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect:hover span .dm-info-select-state,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect:hover>span .dm-info-float-layer{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect.bpui-selected span{color:#222}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-protect.bpui-selected span .dm-info-select-state{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-caption,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-caption span{color:#47be8d}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-caption span.dm-info-date{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-caption span.dm-info-dm{color:#47be8d}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-caption:after{color:inherit;content:"字幕弹幕";display:inline-block;padding-right:32px;text-align:right;width:70px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row .dm-info-time-edit{border:1px solid #e2e2e2;-webkit-box-sizing:border-box;box-sizing:border-box;color:#555;margin:0 4px 0 14px;text-align:center;width:42px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-block span.dm-info-block{display:inline-block;display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-block span.dm-info-dm,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-block span.dm-info-time{color:#ccd0d7}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-block:after{color:#ccd0d7;content:"已屏蔽";display:inline-block;padding-right:32px;text-align:right;width:70px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-deleting span.dm-info-date{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-deleting:after{color:#ccd0d7;content:"删除中";display:inline-block;padding-right:32px;text-align:right;width:70px}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-code{background-color:#ffefd8;color:#ff792b}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-code span{color:#ff792b}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-code span.danmaku-info-block,.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-code span.danmaku-info-date{display:none}.bpx-player-auxiliary .bpx-player-dm-container .dm-info-row-code:after{content:"BAS弹幕";display:inline-block;padding-right:32px;text-align:right;width:70px}.bpx-player-auxiliary .bpx-player-dm-wrap-child{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);bottom:0;display:none;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:10002}.bpx-player-auxiliary .bpx-player-dm-wrap-child.bpx-player-show{display:block}.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-dm-container{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-dm-wrap{height:100%}.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-dm-function,.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-panel-title{-webkit-box-flex:0;-ms-flex:none;flex:none}.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-panel-title{-webkit-box-sizing:border-box;box-sizing:border-box;color:#99a2aa;font-size:12px;height:32px;line-height:32px;padding-left:20px;width:100%;z-index:3}.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-child-close{fill:#99a2aa;cursor:pointer;display:inline-block;height:32px;position:absolute;right:0;top:0;width:24px}.bpx-player-auxiliary .bpx-player-dm-wrap-child .bpx-player-child-close:hover{fill:#222}.bpx-player-auxiliary .bpx-player-dm-btn-footer{cursor:not-allowed;height:31px;margin-top:8px;position:relative;width:auto;z-index:2}.bpx-player-auxiliary .bpx-player-dm-btn-footer .bui-area{line-height:31px}.bpx-player-auxiliary .bpx-player-dm-btn-history{background-color:#f4f4f4;background-color:var(--bpx-aux-footer-bg,#f4f4f4);border-radius:2px;color:#505050;color:var(--bpx-aux-footer-font,#505050);cursor:pointer;display:none;height:31px;line-height:31px;text-align:center;width:100%}.bpx-player-auxiliary .bpx-player-dm-btn-history:hover{color:#222;color:var(--bpx-aux-footer-font-hover,#222)}.bpx-player-auxiliary .bpx-player-dm-btn-history.bpx-player-disable{background:#f5f7fa;background:var(--bpx-aux-button-disabled-bg,#f5f7fa);color:silver;cursor:not-allowed;pointer-events:none}.bpx-player-auxiliary .bpx-player-dm-btn-history .bui-area{display:block}.bpx-player-auxiliary .bpx-player-hasmanage .bpx-player-dm-wrap-child{top:52px}.bpx-player-auxiliary .bpx-player-report-wrap{left:auto;right:0;width:360px}.bpx-player-auxiliary .bpx-player-adv-danmaku{display:none;height:100%}.bpx-player-auxiliary .bpx-player-adv-danmaku *{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);color:#222;color:var(--bpx-aux-content-font1,#222)}.bpx-player-auxiliary .bpx-player-adv-danmaku-panel{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-float-border,#e5e9ef);-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;height:100%;overflow:hidden;position:relative}.bpx-player-auxiliary .bpx-player-adv-danmaku-panel.mask:after{background:#fff;background:var(--bpx-aux-content-bg,#fff);bottom:-200px;content:"";left:0;opacity:.7;position:absolute;right:0;top:-60px;z-index:1}.bpx-player-auxiliary .bpx-player-adv-danmaku-group{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-line-border,#e5e9ef);margin:0 16px}.bpx-player-auxiliary .bpx-player-adv-danmaku-group:last-child{border:none;padding-bottom:20px}.bpx-player-auxiliary .bpx-player-adv-danmaku-group-row{margin:16px 0;position:relative}.bpx-player-auxiliary .bpx-player-adv-danmaku-group-row:after{clear:both;content:"";display:table;font-size:0;height:0;visibility:hidden}.bpx-player-auxiliary .bpx-player-adv-danmaku-group-row:first-child{margin-top:0;padding-top:16px}.bpx-player-auxiliary .bpx-player-adv-danmaku-group-row:last-child{margin-bottom:0;padding-bottom:16px}.bpx-player-auxiliary .bpx-player-adv-danmaku-group-item{display:inline-block;margin-right:16px;vertical-align:middle}.bpx-player-auxiliary .bpx-player-adv-danmaku-group-item .bpx-player-adv-danmaku-font-family-select{z-index:1}.bpx-player-auxiliary .bpx-player-adv-danmaku-title{color:#222;color:var(--bpx-aux-content-font1,#222);display:block;font-weight:700;margin-bottom:8px}.bpx-player-auxiliary .bpx-player-adv-danmaku-spinner{height:22px;vertical-align:middle;width:65px}.bpx-player-auxiliary .bpx-player-adv-danmaku-checkbox{display:inline-block;line-height:20px;margin-left:16px;vertical-align:middle}.bpx-player-auxiliary .bpx-player-adv-danmaku-btn{background-color:#e5e9ef;background-color:var(--bpx-aux-button-bg,#e5e9ef);border:none;border-radius:2px;color:#222;color:var(--bpx-aux-content-font1,#222);height:24px;line-height:24px;margin-right:16px;width:68px}.bpx-player-auxiliary .bpx-player-adv-danmaku-btn.active,.bpx-player-auxiliary .bpx-player-adv-danmaku-btn.active .bui-area,.bpx-player-auxiliary .bpx-player-adv-danmaku-btn:hover{background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6);color:#fff}.bpx-player-auxiliary .bpx-player-adv-danmaku-color-picker{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.bpx-player-auxiliary .bpx-player-adv-danmaku-color-picker .bui-color-picker-options{margin-top:6px;width:244px}.bpx-player-auxiliary .bpx-player-adv-danmaku-color-picker .bui-color-picker-options .bui-color-picker-option{border:1px solid rgba(0,0,0,.3);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:16px;margin-right:6px;width:16px}.bpx-player-auxiliary .bpx-player-adv-danmaku-color-picker .bui-color-picker-options .bui-color-picker-option:hover{border-color:2px solid rgba(0,0,0,.3)}.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-end,.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-start{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:24px;margin-top:8px}.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-end .bpx-player-adv-danmaku-pos-title,.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-start .bpx-player-adv-danmaku-pos-title{color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a);vertical-align:middle}.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-end .bpx-player-adv-danmaku-pos-axis,.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-start .bpx-player-adv-danmaku-pos-axis{margin:0 10px;vertical-align:middle}.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-end .bpx-player-adv-danmaku-spinner,.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-start .bpx-player-adv-danmaku-spinner{-webkit-box-flex:1;-ms-flex:1;flex:1}.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-end .bpx-player-adv-danmaku-btn,.bpx-player-auxiliary .bpx-player-adv-danmaku-pos-start .bpx-player-adv-danmaku-btn{margin:0 0 0 10px;vertical-align:middle}.bpx-player-auxiliary .bpx-player-adv-danmaku-pos .bpx-player-adv-danmaku-checkbox{margin-left:8px;vertical-align:middle}.bpx-player-auxiliary .bpx-player-adv-danmaku-text{margin-right:16px}.bpx-player-auxiliary .bpx-player-adv-danmaku-text-input{border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;height:64px;line-height:1.4;width:100%}.bpx-player-auxiliary .bpx-player-adv-danmaku-showtime-input{position:relative;width:105px;z-index:1}.bpx-player-auxiliary .bpx-player-adv-danmaku-showtime-input.disabled{cursor:none;pointer-events:none}.bpx-player-auxiliary .bpx-player-adv-danmaku-showtime-tip{background:#000;border-radius:2px;color:#fff;left:64%;line-height:20px;padding:0 4px;position:absolute;top:50%}.bpx-player-auxiliary .bpx-player-adv-danmaku-showtime .bpx-player-adv-danmaku-checkbox{margin-left:6px}.bpx-player-auxiliary .bpx-player-adv-danmaku-send{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.bpx-player-auxiliary .bpx-player-adv-danmaku-send .bpx-player-adv-danmaku-btn{height:36px;line-height:36px;margin:0;width:50%}.bpx-player-auxiliary .bpx-player-adv-danmaku-send .bpx-player-adv-danmaku-btn.bpx-player-adv-danmaku-send-test{margin-right:10px}.bpx-player-auxiliary .bpx-player-adv-danmaku-send .bpx-player-adv-danmaku-btn .bui-button-large{font-size:14px}.bpx-player-auxiliary .bpx-player-adv-danmaku-dialog{display:block;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:90%;z-index:99}.bpx-player-auxiliary .bpx-player-adv-danmaku-dialog .bui-dialog-wrap{width:100%}.bpx-player-auxiliary .bpx-player-adv-danmaku-dialog-content{font-size:13px;padding:10px 10px 0;position:relative}.bpx-player-auxiliary .bpx-player-adv-danmaku-dialog-text{color:#222;color:var(--bpx-aux-content-font1,#222);font-size:12px;line-height:1.6;margin-bottom:10px;text-align:center;white-space:normal}.bpx-player-auxiliary .bpx-player-adv-danmaku-dialog-functions{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin-bottom:10px;text-align:center}.bpx-player-auxiliary .bpx-player-adv-danmaku-dialog-function{background-color:transparent;border:1px solid #ccd0d7;border:1px solid var(--bpx-aux-input-border,#ccd0d7);border-radius:4px;color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);cursor:pointer;font-size:12px;height:20px;line-height:18px;margin:0 10px;min-width:60px;outline:none;padding:0 8px;text-align:center;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.bpx-player-bas-danmaku-visual{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-float-border,#e5e9ef);-webkit-box-sizing:border-box;box-sizing:border-box;display:none;height:100%;overflow:hidden;position:relative}.bpx-player-bas-danmaku-visual *{background-color:#fff;background-color:var(--bpx-aux-content-bg,#fff);color:#222;color:var(--bpx-aux-content-font1,#222)}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-box{margin:0 16px;overflow:hidden}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-br{background:#e5e9ef;background:var(--bpx-aux-button-bg,#e5e9ef);height:1px;width:100%}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-switch-btn{position:absolute;right:10px;top:10px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:22px;margin:10px 0}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-label{margin-right:5px;vertical-align:middle}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-label.bpx-player-bas-visualpanel-label-letter{display:inline-block}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-span{margin:0 4px;vertical-align:middle}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-position-picker.active{background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6);color:#fff}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input{vertical-align:middle}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-alpha,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-anchorX,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-anchorY,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-duration,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-fontSize,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-rotateX,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-rotateY,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-rotateZ,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-scale,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-strokeWidth,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-zIndex{width:50px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-color,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-strokeColor{-webkit-box-flex:1;-ms-flex:1;flex:1;vertical-align:top}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-color .bui-color-picker-options,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-strokeColor .bui-color-picker-options{margin-top:5px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-x,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-y{-webkit-box-flex:1;-ms-flex:1;flex:1}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-x .bui-input-input,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-y .bui-input-input{padding:4px 5px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-color,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-strokeColor{display:inline-block}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-color .bui-color-picker-input,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-strokeColor .bui-color-picker-input{width:80px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-color .bui-color-picker-result,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-strokeColor .bui-color-picker-result{margin:0}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-time{width:90px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-input.bpx-player-bas-visualpanel-input-fontFamily{z-index:2}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames{position:relative}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-label{position:absolute;top:4px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap{display:inline-block;padding-left:50px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-add,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-remove{background:#ffa4bd;border-radius:50%;color:#fff;cursor:pointer;display:inline-block;font-weight:700;height:25px;line-height:25px;margin:3px;text-align:center;-webkit-transition:background .1s;transition:background .1s;vertical-align:middle;width:25px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-add,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-remove{background:#739cfb}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-add:hover,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-remove:hover{background:#5183f7}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line.bpx-player-bas-visualpanel-frames .bpx-player-bas-visualpanel-frame-wrap .bpx-player-bas-visualpanel-frame-active{background:#fb7399}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line:last-child{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-edit,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-preview,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-send{font-size:14px;height:30px;margin-top:10px;width:33.33%}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-edit,.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-line .bpx-player-bas-visualpanel-send{margin-left:10px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-changeable-collapse .bui-collapse-header{height:25px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-changeable-collapse .bpx-player-bas-visualpanel-changeable-header{background-color:#f4f4f4;background-color:var(--bpx-aux-header-bg,#f4f4f4);padding-left:11px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-changeable-collapse .bpx-player-bas-visualpanel-changeable-header *{background-color:transparent;background-color:initial}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-changeable-collapse .bpx-player-bas-visualpanel-changeable-header .bpx-common-svg-icon{display:inline-block;height:20px;width:20px}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-changeable-collapse .bpx-player-bas-visualpanel-changeable-header span{vertical-align:middle}.bpx-player-bas-danmaku-visual .bpx-player-bas-visualpanel-changeable-collapse .bpx-player-bas-visualpanel-changeable-body{margin:0 16px}.bpx-player-bas-danmaku-code{background:#fff;background:var(--bpx-aux-content-bg,#fff);border-radius:5px;-webkit-box-shadow:0 10px 50px #e5e9ef;box-shadow:0 10px 50px #e5e9ef;-webkit-box-shadow:0 10px 50px var(--bpx-box-shadow,#e5e9ef);box-shadow:0 10px 50px var(--bpx-box-shadow,#e5e9ef);color:#222;color:var(--bpx-aux-content-font1,#222);height:556px;position:absolute;right:0;top:526px;z-index:104}.bpx-player-bas-danmaku-code.mask:after{background:hsla(0,0%,100%,.4);bottom:0;content:"";cursor:default;left:0;position:absolute;right:0;top:0;z-index:10}.bpx-player-bas-danmaku-code .bpx-player-panel-back{z-index:11}.bpx-player-bas-danmaku-code .bpx-player-panel-title{padding-left:0}.bpx-player-bas-danmaku-code .bpx-player-bas-codepanel-color-picker-container{border-left:1px solid #e5e9ef;border-left:1px solid var(--bpx-aux-line-border,#e5e9ef);bottom:auto;left:1200px;pointer-events:none;top:111px;-webkit-transform:translate3d(-260%,0,0);transform:translate3d(-260%,0,0);width:263px}.bpx-player-bas-danmaku-code .bpx-player-bas-codepanel-color-picker-container.active{pointer-events:auto}.bpx-player-bas-danmaku-code .adv-danmaku-btn-span{margin-left:15px}.bpx-player-bas-danmaku-code .adv-danmaku-send-btn{float:none;font-size:12px;height:24px;position:absolute;right:15px;top:8px;width:68px}.bpx-player-bas-danmaku-code .advanced-danmaku-group{margin:0}.bpx-player-bas-danmaku-code .adv-danmaku-start-time{line-height:1;width:70px}.bpx-player-bas-danmaku-code .adv-danmaku-start-time .bui-input-stepper{display:none}.bpx-player-bas-danmaku-code .content-span{display:inline;font-size:12px;margin:0 5px;vertical-align:middle}.bpx-player-bas-danmaku-code .bas-danmaku-title{border-top:1px solid #e5e9ef;border-top:1px solid var(--bpx-aux-line-border,#e5e9ef);font-size:13px;line-height:28px;text-align:center}.bpx-player-bas-danmaku-code .bas-danmaku-title .bpx-player-panel-back{fill:#99a2aa;fill:var(--bpx-aux-block-icon,#99a2aa);cursor:pointer;display:inline-block;height:28px;line-height:30px;margin-right:10px;position:absolute;right:0;top:0;width:16px}.bpx-player-bas-danmaku-code .bas-danmaku-controller{height:40px;line-height:40px;position:relative}.bpx-player-bas-danmaku-code .bas-danmaku-editor-wrap{height:485px;padding:0;position:relative}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap{bottom:0;left:0;position:absolute;top:0;width:110px}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-line-border,#e5e9ef);color:#000;cursor:pointer;height:30px;line-height:30px;padding-right:12px;position:relative;text-align:center;-webkit-transition:all .2s;transition:all .2s}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li.bas-danmaku-editor-tab-active,.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li:hover{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status{border-radius:50%;display:inline-block;height:7px;left:12px;position:absolute;top:12px;-webkit-transition:all .2s;transition:all .2s;vertical-align:middle;width:7px}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status[data-status="1"]{background:#99a2aa}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status[data-status="1"]:after{content:"未发送"}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status[data-status="2"]{background:#43a047}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status[data-status="2"]:after{content:"已发送"}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status[data-status="3"]{background:#ffb300}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status[data-status="3"]:after{content:"发送后已修改"}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status:after{background:rgba(0,0,0,.7);border-radius:4px;bottom:100%;color:#fff;font-size:12px;left:50%;line-height:1;margin-bottom:11px;opacity:0;padding:5px 8px;pointer-events:none;position:absolute;-webkit-transform:translate(-50%,10px);transform:translate(-50%,10px);-webkit-transform-origin:top;transform-origin:top;-webkit-transition:all .18s ease-out .18s;transition:all .18s ease-out .18s;white-space:nowrap}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-status:hover:after{opacity:1;-webkit-transform:translate(-50%);transform:translate(-50%)}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-text{display:inline-block;pointer-events:none;width:30px}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-close{border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-line-border,#e5e9ef);border-radius:4px;color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);display:inline-block;height:20px;line-height:20px;padding:0 5px;position:absolute;right:12px;top:4px;-webkit-transition:all .2s;transition:all .2s}.bpx-player-bas-danmaku-code .bas-danmaku-editor-tab-wrap li .bas-danmaku-editor-tab-close:hover{border:1px solid #6d757a;color:#222}.bpx-player-bas-danmaku-code .bas-danmaku-setting{border-bottom:1px solid;border-left:1px solid #e5e9ef;border-left:1px solid var(--bpx-aux-line-border,#e5e9ef);font-size:0;height:40px;left:110px;line-height:40px;position:absolute;right:0;top:0}.bpx-player-bas-danmaku-code .bas-danmaku-setting .adv-danmaku-send-time{margin-left:0;top:0;vertical-align:middle}.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item{border-right:1px solid #e5e9ef;border-right:1px solid var(--bpx-aux-line-border,#e5e9ef);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;text-align:center;width:33.3%}.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item:last-child{border-right:none}.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item .adv-danmaku-btn-span{margin-left:0}.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item .adv-danmaku-send-time .bpui-checkbox-text{color:#222}.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item .adv-danmaku-text-color,.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item .adv-danmaku-text-pos{cursor:pointer;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.bpx-player-bas-danmaku-code .bas-danmaku-setting .bas-danmaku-setting-item .bpx-player-bas-codepanel-color-picker-wrap{background:#fff;border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-line-border,#e5e9ef);left:50%;padding:20px;position:absolute;top:100%;-webkit-transform:translate(-50%);transform:translate(-50%);width:160px;z-index:2}.bpx-player-bas-danmaku-code .bas-danmaku-editor{bottom:0;left:110px;position:absolute;right:0;top:41px}.bpx-player-bas-danmaku-code .bas-danmaku-color-btn,.bpx-player-bas-danmaku-code .bas-danmaku-new-tab-btn{margin-left:15px}.bpx-player-bas-danmaku-code .bas-danmaku-color-btn .bpx-player-bas-codepanel-color-picker-current-color{display:none}.bpx-player-bas-danmaku-code .bas-danmaku-test-keep{margin:0 15px;vertical-align:middle}.bpx-player-bas-danmaku-code .bas-danmaku-test-keep .bpui-checkbox-text{color:#222}.ace_editor.ace_autocomplete .ace_content .ace_completion-highlight{color:#f25d8e;text-shadow:none}.bpx-player-block{-webkit-box-sizing:border-box;box-sizing:border-box;display:none;height:100%;padding:0 16px;width:100%;z-index:21}.bpx-player-block.bpx-player-unlogin .bpx-player-block-top .bpx-player-block-sync-btn:after{content:"登录后下载屏蔽列表"}.bpx-player-block.bpx-player-hide .bpx-player-block-add,.bpx-player-block.bpx-player-hide .bpx-player-block-list,.bpx-player-block.bpx-player-hide .bpx-player-block-tab,.bpx-player-block.bpx-player-unlogin .bpx-player-block-list-line-sync,.bpx-player-block.bpx-player-unlogin .bpx-player-block-list-sync{display:none}.bpx-player-block-area{padding-bottom:20px}.bpx-player-block-top{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:space-between;position:relative}.bpx-player-block-top .bpx-player-block-label{color:#222;color:var(--bpx-aux-content-font1,#222);display:inline-block;font-weight:700;line-height:24px;margin-right:16px;vertical-align:middle}.bpx-player-block-top .bpx-player-block-switch{height:20px;vertical-align:middle;width:30px}.bpx-player-block-top .bpx-player-block-sync-btn{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6);background:none;color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);cursor:pointer;font-size:12px;line-height:16px;margin:16px 0;z-index:2}.bpx-player-block-top .bpx-player-block-sync-btn .bpx-player-sync-icon{display:inline-block;height:16px;margin-right:5px;vertical-align:text-bottom;width:16px}.bpx-player-block-top .bpx-player-block-sync-btn:after{background:rgba(0,0,0,.6);border-radius:4px;color:#fff;content:"下载屏蔽列表";display:inline-block;opacity:0;padding:8px;pointer-events:none;position:absolute;right:0;top:24px;-webkit-transition:all .3s;transition:all .3s;word-break:keep-all}.bpx-player-block-top .bpx-player-block-sync-btn:hover:after{opacity:1;top:34px}.bpx-player-block-top .bpx-player-block-sync-btn.bpx-player-hide{fill:#ccc;color:#ccc;cursor:default}.bpx-player-block-top .bpx-player-block-sync-btn.bpx-player-hide:after{content:"屏蔽列表已下载"}.bpx-player-block-add{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:20px}.bpx-player-block-add-input{background:transparent;border:1px solid #ccd0d7;border:1px solid var(--bpx-aux-input-border,#ccd0d7);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#222;color:var(--bpx-aux-content-font1,#222);display:inline-block;font-size:12px;height:24px;line-height:24px;margin-right:6px;padding:1px 10px;vertical-align:middle;width:214px}.bpx-player-block-add-btn{-webkit-box-flex:1;-ms-flex:1;flex:1;height:24px}.bpx-player-block-tab{margin:16px 0 14px}.bpx-player-block-list{background-color:#f4f4f4;background-color:var(--bpx-aux-footer-bg,#f4f4f4);border-radius:0 4px 4px 4px;display:block;padding:5px 0;position:relative}.bpx-player-block-list-function{-webkit-box-pack:justify;-ms-flex-pack:justify;color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:space-between;line-height:24px;padding:0 6px;text-align:center}.bpx-player-block-list-function-content{padding-left:9px;text-align:left;width:150px}.bpx-player-block-list-function .bpx-player-block-list-delete,.bpx-player-block-list-function .bpx-player-block-list-sync{padding:0;width:40px}.bpx-player-block-list-function .bpx-player-block-list-delete,.bpx-player-block-list-function .bpx-player-block-list-state,.bpx-player-block-list-function .bpx-player-block-list-sync{color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);cursor:default}.bpx-player-block-list-function .bpx-player-block-list-delete:hover,.bpx-player-block-list-function .bpx-player-block-list-state:hover,.bpx-player-block-list-function .bpx-player-block-list-sync:hover{color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa)}.bpx-player-block-list-content{display:inline-block;overflow:hidden;padding-left:4px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:150px}.bpx-player-block-list .bpx-player-state-list-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-block-list-delete,.bpx-player-block-list-state,.bpx-player-block-list-sync{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40px}.bpx-player-block-list-delete:hover,.bpx-player-block-list-state:hover,.bpx-player-block-list-sync:hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-block-list-state{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);cursor:pointer;text-align:center}.bpx-player-block-list-delete{cursor:pointer;text-align:center}.bpx-player-block-list-delete,.bpx-player-block-list-sync{fill:#99a2aa;fill:var(--bpx-aux-block-icon,#99a2aa);color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);padding:0 13px;width:14px}.bpx-player-block-list-item{display:block;font-size:12px;line-height:24px;min-height:48px;padding:0 6px}.bpx-player-block-list-line{-webkit-box-pack:justify;-ms-flex-pack:justify;background:#fff;background:var(--bpx-aux-content-bg,#fff);color:#222;color:var(--bpx-aux-content-font1,#222);display:-webkit-box;display:-ms-flexbox;display:flex;height:24px;justify-content:space-between;padding-left:5px}.bpx-player-block-list-line.bpx-player-disabled{color:#757575;color:var(--bpx-aux-content-font3,#757575)}.bpx-player-block-list-line.bpx-player-noid .bpx-player-block-list-sync{cursor:pointer;position:relative}.bpx-player-block-list-line.bpx-player-noid .bpx-player-block-list-sync:after{background:rgba(0,0,0,.6);border-radius:2px;color:#fff;content:"上传屏蔽词";display:inline-block;opacity:0;padding:2px 8px;pointer-events:none;position:absolute;right:0;top:-24px;-webkit-transition:all .3s;transition:all .3s;word-break:keep-all}.bpx-player-block-list-line.bpx-player-noid .bpx-player-block-list-sync:hover:after{opacity:1;top:-34px}.bpx-player-block-list-line:hover{background:#e5e9ef;background:var(--bpx-aux-button-bg,#e5e9ef)}.bpx-player-date-picker{background:#f4f4f4;background:var(--bpx-aux-footer-bg,#f4f4f4);border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-float-border,#e5e9ef);border-radius:4px;bottom:50px;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.14);box-shadow:0 2px 4px 0 rgba(0,0,0,.14);cursor:default;display:none;height:212px;left:50%;position:absolute;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:242px;z-index:10001}.bpx-player-date-picker.bpx-player-show{display:block}.bpx-player-date-picker-header{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-line-border,#e5e9ef);color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a);height:30px;line-height:30px;text-align:center}.bpx-player-date-picker-header>span{font-size:13px;margin:0 3px}.bpx-player-date-picker-btn{fill:#6d757a;fill:var(--bpx-aux-float-icon,#6d757a);color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a);cursor:pointer;font-size:0;height:16px;line-height:0;position:absolute;top:7px;width:16px}.bpx-player-date-picker-btn.bpx-player-disabled{cursor:default;pointer-events:none}.bpx-player-date-picker-btn.btn-prev{left:18px}.bpx-player-date-picker-btn.btn-next{right:18px}.bpx-player-date-picker-btn>span{pointer-events:none}.bpx-player-date-picker-body{padding:2px 1px 1px 2px;position:relative}.bpx-player-date-picker-week .bpx-player-date-picker-day{color:#222;color:var(--bpx-aux-content-font1,#222)}.bpx-player-date-picker-day{border:1px solid #f4f4f4;border:1px solid var(--bpx-aux-footer-bg,#f4f4f4);border-radius:4px;color:#ccd0d7;color:var(--bpx-aux-content-font4,#ccd0d7);float:left;font-size:12px;height:24px;line-height:24px;margin:-1px 4px 0;pointer-events:none;position:relative;text-align:center;width:24px;z-index:1}.bpx-player-date-picker-day.day-enable{color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a);cursor:pointer;pointer-events:auto}.bpx-player-date-picker-day.day-enable.bpx-player-active{pointer-events:none}.bpx-player-date-picker-day.day-enable.bpx-player-active,.bpx-player-date-picker-day.day-enable:hover{border-color:#00a1d6;border-color:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6);z-index:11}',""]),
e.Z=a},18907:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,"",""]),e.Z=a},58191:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o),s=i(7121),l=i.n(s),A=new URL(i(66370),i.b),c=new URL(i(65115),i.b),h=new URL(i(40393),i.b),d=new URL(i(87281),i.b),u=new URL(i(42059),i.b),p=new URL(i(32957),i.b),g=a()(r()),f=l()(A),m=l()(c),y=l()(h),b=l()(d),v=l()(u),E=l()(p)
;g.push([t.id,".bpx-player-toast-wrap{bottom:60px;font-size:14px;font-size:var(--bpx-toast-font-size,14px);left:10px;line-height:28px;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:76}.bpx-player-pc-app .bpx-player-toast-wrap{bottom:65px}.bpx-player-toast-row{cursor:default;opacity:0;overflow:hidden;-webkit-transition:all .25s ease-out;transition:all .25s ease-out;will-change:height,opacity}.bpx-player-toast-row.bpx-player-toast-unfold{opacity:1}.bpx-player-toast-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:rgba(25,25,25,.88);background-color:var(--bpx-toast-bgcolor,rgba(25,25,25,.88));border-radius:4px;color:#fff;color:var(--bpx-toast-color,#fff);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-top:10px;padding:7px 16px;pointer-events:auto}.bpx-player-toast-cancel{fill:#fff;fill:var(--bpx-toast-color,#fff);cursor:pointer;height:24px;margin-right:6px;width:24px}.bpx-player-toast-cancel:hover{fill:#ff85ad;fill:var(--bpx-toast-fn-hover-color,#ff85ad)}.bpx-player-toast-badge{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;justify-content:center;margin-right:8px;max-height:24px;max-width:24px;padding:2px}.bpx-player-toast-badge img{max-height:100%;max-width:100%}.bpx-player-toast-text{max-width:32em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bpx-player-toast-confirm{color:#f25d8e;color:var(--bpx-toast-fn-color,#f25d8e);cursor:pointer;margin-left:12px;-webkit-transition:color .15s ease-in-out;transition:color .15s ease-in-out}.bpx-player-toast-confirm:hover{color:#ff85ad;color:var(--bpx-toast-fn-hover-color,#ff85ad)}.bpx-player-toast-confirm-login{background-color:#f69;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:block;height:100%;margin-left:24px;padding:0 7.5px}[data-screen=full] .bpx-player-toast-wrap,[data-screen=web] .bpx-player-toast-wrap{bottom:86px}.bpx-player-tooltip-item{word-wrap:break-word;background-color:#000;background-color:var(--bpx-tooltip-bgcolor,#000);border-radius:2px;color:#fff;color:var(--bpx-tooltip-color,#fff);cursor:default;font-size:12px;line-height:1.5;max-width:18em;opacity:0;padding:6px 8px;pointer-events:none;position:fixed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;word-break:break-all;z-index:12000}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box{fill:#6d757a;fill:var(--bpx-aux-float-icon,#6d757a);background:#fff;background:var(--bpx-aux-content-bg,#fff);-webkit-box-shadow:0 0 8px 0 #e2e2e2;box-shadow:0 0 8px 0 #e2e2e2;color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a)}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-title{border-bottom-color:#e5e9ef;border-bottom-color:var(--bpx-aux-line-border,#e5e9ef)}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-content{color:#222;color:var(--bpx-aux-content-font1,#222)}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-bottom .bui-button.bui-button-disabled{background-color:#e5e9ef;color:#b8c0cc}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-reason{background-color:transparent;border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-line-border,#e5e9ef);color:#6d757a;color:var(--bpx-aux-content-font2,#6d757a)}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-list .bui-radio-normal .bui-radio-item .bui-radio-text{color:#99a2aa}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-list .bpx-player-radios .bui-radio-input:checked+.bui-radio-label .bui-radio-text{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-list .bpx-player-radios .bui-radio-text{color:#6d757a}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-block{margin-top:4px}.bpx-player-report-wrap.bpx-player-white .bpx-player-report-box .bpx-player-report-block .bui-checkbox-name{color:#6e7f7b}.bpx-player-report-wrap .bpx-player-report-box{fill:#fff;background-color:rgba(28,28,28,.8);border-radius:4px;color:#fff;font-size:12px;overflow:hidden;position:relative;text-align:center;width:360px}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-title{border-bottom:1px solid hsla(0,0%,100%,.12);height:32px;line-height:32px;text-align:center}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-title .bpx-player-report-close{cursor:pointer;font-size:0;height:32px;position:absolute;right:10px;width:20px}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-content{font-size:14px;height:14px;line-height:14px;margin:24px auto 16px;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:320px}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-list{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;padding-left:20px;width:360px}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-list .bui-radio-normal .bui-radio-item .bui-radio-text{color:#fff}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-list .bui-radio-normal .bui-radio-item:hover .bui-radio-text{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-reason{background-color:hsla(0,0%,100%,.12);border:1px solid transparent;border-radius:4px;color:hsla(0,0%,100%,.2);font-size:12px;height:48px;line-height:16px;margin:6px auto 0;outline:none;padding:10px;resize:none;width:300px}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-reason:focus{border-color:#00a1d6;border-color:var(--bpx-primary-color,#00a1d6);color:#222;color:var(--bpx-aux-content-font1,#222)}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-block .bui-checkbox-name{color:#fff}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-block .bui-checkbox .bui-checkbox-icon svg{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-bottom{clear:both;text-align:right;text-align:center}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-bottom .bpx-player-report-btn{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);border:0;border-radius:4px;color:#fff;height:32px;line-height:32px;margin:16px auto;width:100px}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-bottom .bpx-player-report-btn:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-report-wrap .bpx-player-report-box .bpx-player-report-bottom .bui-button-disabled{background-color:hsla(0,0%,100%,.1);color:hsla(0,0%,100%,.1)}.bpx-player-report-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;white-space:normal;width:100%;z-index:999999}.bpx-player-report-iframe-shadow{-webkit-box-shadow:0 2px 8px 0 rgba(0,0,0,.078);box-shadow:0 2px 8px 0 rgba(0,0,0,.078)}.bpx-player-contextmenu{background:rgba(33,33,33,.9);border-radius:4px;color:#eee;min-width:80px;opacity:0;overflow:hidden;padding:0;pointer-events:auto;position:absolute;-webkit-transition:opacity .1s cubic-bezier(0,0,.2,1);transition:opacity .1s cubic-bezier(0,0,.2,1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;z-index:80}.bpx-player-contextmenu ul{list-style:none;margin:0;outline:none;padding:0}.bpx-player-contextmenu a,.bpx-player-contextmenu a:active,.bpx-player-contextmenu a:hover,.bpx-player-contextmenu a:link,.bpx-player-contextmenu a:link:hover,.bpx-player-contextmenu a:visited{color:#eee;-webkit-text-decoration:none;text-decoration:none}.bpx-player-contextmenu.bpx-player-active{opacity:1;visibility:visible}.bpx-player-contextmenu>li{color:#eee;cursor:pointer;font-size:12px;height:30px;line-height:30px;overflow:hidden;padding:4px 20px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.bpx-player-contextmenu>li+li{border-top:1px solid hsla(0,0%,100%,.1)}.bpx-player-contextmenu>li:hover{background:hsla(0,0%,100%,.12)}.bpx-player-contextmenu>li.bpx-player-disabled{color:#777;cursor:default}.bpx-player-contextmenu>li.bpx-player-disabled:hover{background:rgba(33,33,33,.9)}.bpx-player-contextmenu>li.bpx-player-active{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);text-shadow:none}.bpx-player-contextmenu>li.bpx-player-dm{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:42px;line-height:42px;padding:0 8px}.bpx-player-contextmenu>li.bpx-player-dm .bpx-player-dm-text{-webkit-box-flex:0;-ms-flex:none;flex:none;overflow:hidden;padding:0 15px;text-overflow:ellipsis;white-space:nowrap;width:165px}.bpx-player-contextmenu>li.bpx-player-dm:hover .bpx-player-dm-btn{opacity:1}.bpx-player-contextmenu>li.bpx-player-dm .bpx-player-dm-btn{-webkit-box-flex:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;opacity:0}.bpx-player-contextmenu>li.bpx-player-dm .bpx-player-dm-btn>span{border-radius:5px;color:#fff;display:inline-block;height:28px;line-height:28px;margin:7px 0;text-align:center;width:56px}.bpx-player-contextmenu>li.bpx-player-dm .bpx-player-dm-btn>span:hover{background-color:hsla(0,0%,100%,.2)}.bpx-player-contextmenu.bpx-player-white{background:#fff;border:1px solid #e2e2e2;-webkit-box-shadow:0 0 5px #e2e2e2;box-shadow:0 0 5px #e2e2e2;text-shadow:0 0 #e2e2e2}.bpx-player-contextmenu.bpx-player-white>li{background:transparent;border:none;color:#444}.bpx-player-contextmenu.bpx-player-white>li:hover{background:#ddd}.bpx-player-contextmenu.bpx-player-white>li.bpx-player-disabled{color:#aaa;cursor:default}.bpx-player-contextmenu.bpx-player-white>li.bpx-player-disabled:hover{background:transparent}.bpx-player-volume-hint{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:hsla(0,0%,100%,.8);border-radius:4px;color:#000;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:20px;height:32px;left:50%;min-width:84px;padding:8px;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:77}.bpx-player-volume-hint-icon{-webkit-box-flex:0;-ms-flex:none;flex:none;height:34px;width:34px}.bpx-player-volume-hint-text{-webkit-box-flex:1;-ms-flex:1;flex:1;line-height:34px;padding:0 2px;text-align:center}.bpx-player-three-playrate-hint{-webkit-box-pack:center;-ms-flex-pack:center;background-color:rgba(33,33,33,.9);border-radius:4px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;height:34px;justify-content:center;left:50%;line-height:34px;margin-left:-65px;position:absolute;top:18px;width:130px;z-index:77}.bpx-player-three-playrate-hint-icon{display:inline-block;margin-right:8px;width:30px}.bpx-player-mini-warp{bottom:0;cursor:move;left:0;position:absolute;right:0;top:0;z-index:12}.bpx-player-mini-warp .bpx-player-mini-close,.bpx-player-mini-warp .bpx-player-mini-state{cursor:pointer;opacity:0;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.bpx-player-mini-warp:hover .bpx-player-mini-close,.bpx-player-mini-warp:hover .bpx-player-mini-state{opacity:1}.bpx-player-mini-warp .bpx-player-mini-close{fill:#fff;float:right;height:26px;margin-right:8px;margin-top:8px;width:26px}.bpx-player-mini-warp .bpx-player-mini-state{height:100px;left:50%;margin:-50px 0 0 -50px;position:absolute;top:50%;width:100px}.bpx-player-mini-warp .bpx-player-mini-state-pause,.bpx-player-mini-warp .bpx-player-mini-state-play{background-position:50%;background-repeat:no-repeat;background-size:80px 80px;bottom:0;left:0;position:absolute;right:0;top:0}.bpx-player-mini-warp .bpx-player-mini-state-play{background-image:url(//s1.hdslb.com/bfs/static/player/img/pause.svg);visibility:visible}.bpx-player-mini-warp .bpx-player-mini-state-pause{background-image:url(//s1.hdslb.com/bfs/static/player/img/play.svg);visibility:hidden}.bpx-player-mini-warp .bpx-player-mini-progress{background-color:hsla(0,0%,100%,.2);border-radius:1.5px;bottom:0;height:3px;left:0;position:absolute;right:0}.bpx-player-mini-warp .bpx-player-mini-progress-buffer,.bpx-player-mini-warp .bpx-player-mini-progress-tempo{bottom:0;left:0;position:absolute;right:0;top:0;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:0 0;transform-origin:0 0}.bpx-player-mini-warp .bpx-player-mini-progress-buffer{background-color:hsla(0,0%,100%,.3)}.bpx-player-mini-warp .bpx-player-mini-progress-tempo{background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6)}.bpx-state-paused .bpx-player-mini-state-play{visibility:hidden}.bpx-state-paused .bpx-player-mini-state-pause{visibility:visible}.bpx-player-record-item-wrap{display:inline-block;pointer-events:none}.bpx-player-record-item-pure{bottom:28px;color:#fff;font-size:16px;height:20px;left:0;line-height:16px;position:absolute;right:0;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.bpx-player-record-item-icon-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;bottom:73px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:32px;position:absolute;right:95px}.bpx-player-record-item-icon-wrap .bpx-player-record-item-icon{height:32px;margin-right:4px;width:32px}.bpx-player-record-item-icon-wrap .bpx-player-record-item-text{color:#b20000;font-size:24px;line-height:32px;pointer-events:none;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.bpx-player-control-mask{background:url("+f+') repeat-x bottom;bottom:0;height:100px;left:0;pointer-events:none;position:absolute;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;width:100%;z-index:-1}.bpx-player-control-top{bottom:44px;-webkit-box-sizing:border-box;box-sizing:border-box;left:0;opacity:1;padding:0 12px;position:absolute;right:0;-webkit-transition:opacity .2s ease-out;transition:opacity .2s ease-out;visibility:visible}.bpx-player-pc-app .bpx-player-control-wrap .bpx-player-control-top{bottom:44px}.bpx-player-pc-app .bpx-player-control-bottom-center{-webkit-box-flex:1;-ms-flex:auto;flex:auto;max-width:506px}.bpx-player-game-center .bpx-player-control-top{bottom:34px}.bpx-player-game-center .bpx-player-control-bottom{height:32px}.bpx-player-container[data-ctrl-hidden=false].bpx-player-game-center .bpx-player-control-bottom-center,.bpx-player-container[data-ctrl-hidden=false].bpx-player-game-center .bpx-player-control-bottom-left,.bpx-player-container[data-ctrl-hidden=false].bpx-player-game-center .bpx-player-control-mask{opacity:1;-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.bpx-player-container[data-ctrl-hidden=true].bpx-player-game-center .bpx-player-control-bottom-center,.bpx-player-container[data-ctrl-hidden=true].bpx-player-game-center .bpx-player-control-bottom-left,.bpx-player-container[data-ctrl-hidden=true].bpx-player-game-center .bpx-player-control-mask{opacity:0}.bpx-player-container[data-ctrl-hidden=true].bpx-player-game-center .bpx-player-control-bottom-right.ctrl-opacity{opacity:.2;-webkit-transition:opacity .3s;transition:opacity .3s}.bpx-player-control-bottom{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;height:35px;justify-content:space-between;line-height:22px;margin:20px 0 0;padding:0 12px;-webkit-transition:all .2s ease-out;transition:all .2s ease-out;width:100%}.bpx-player-control-bottom-left{-webkit-box-flex:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:none;flex:none}.bpx-player-control-bottom-right{-webkit-box-pack:end;-ms-flex-pack:end;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end}.bpx-player-container[data-ctrl-hidden=false]:not(.bpx-player-game-center) .bpx-player-control-bottom,.bpx-player-container[data-ctrl-hidden=false]:not(.bpx-player-game-center) .bpx-player-control-mask{opacity:1;-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.bpx-player-container[data-ctrl-hidden=true]:not(.bpx-player-game-center) .bpx-player-control-bottom,.bpx-player-container[data-ctrl-hidden=true]:not(.bpx-player-game-center) .bpx-player-control-mask{opacity:0}.bpx-player-container[data-screen=full] .bpx-player-control-bottom-right,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-right{min-width:378px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-control-mask,.bpx-player-container[data-screen=web] .bpx-player-control-mask{height:100px}.bpx-player-container[data-screen=full] .bpx-player-control-entity,.bpx-player-container[data-screen=full] .bpx-player-control-wrap,.bpx-player-container[data-screen=web] .bpx-player-control-entity,.bpx-player-container[data-screen=web] .bpx-player-control-wrap{height:73px;line-height:73px}.bpx-player-container[data-screen=full] .bpx-player-control-top,.bpx-player-container[data-screen=web] .bpx-player-control-top{bottom:68px}.bpx-player-container[data-screen=full] .bpx-player-control-bottom,.bpx-player-container[data-screen=web] .bpx-player-control-bottom{height:45px;line-height:34px;margin:20px 0 0}.bpx-player-container[data-screen=full] .bpx-player-control-bottom-left,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-left{min-width:316px}.bpx-player-container[data-screen=full] .bpx-player-control-bottom-center,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-center{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:34px;line-height:34px;padding:0 60px}.bpx-player-container[data-screen=full] .bpx-player-control-bottom-right,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-right{min-width:370px}}@media screen and (max-width:1366px){.bpx-player-container[data-screen=full] .bpx-player-control-bottom-left,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-left{min-width:273px}}@media screen and (max-width:1200px){.bpx-player-container[data-screen=full] .bpx-player-control-bottom-center,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-center{padding:0}.bpx-player-container[data-screen=full] .bpx-player-control-bottom-right,.bpx-player-container[data-screen=web] .bpx-player-control-bottom-right{min-width:272px}}.bpx-player-ctrl-btn{fill:#fff;color:hsla(0,0%,100%,.8);font-size:0;height:22px;line-height:22px;outline:0;position:relative;text-align:center;width:36px;z-index:2}.bpx-player-ctrl-btn-icon{cursor:pointer;width:100%}.bpx-player-ctrl-btn-icon>.bpx-common-svg-icon{height:22px;opacity:.9;vertical-align:middle}.bpx-player-ctrl-btn-icon>.bpx-common-svg-icon svg{-webkit-transform:none!important;transform:none!important}.bpx-player-ctrl-btn:hover{color:#fff}.bpx-player-ctrl-btn:hover .bpx-player-ctrl-btn-icon>.bpx-common-svg-icon{opacity:1}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-btn,.bpx-player-container[data-screen=web] .bpx-player-ctrl-btn{height:43px;line-height:32px;width:54px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-btn-icon>.bpx-common-svg-icon,.bpx-player-container[data-screen=web] .bpx-player-ctrl-btn-icon>.bpx-common-svg-icon{height:28px}}.bpx-player-keyboard-focus .bpx-player-ctrl-btn:focus{-webkit-box-shadow:0 0 0 2px #00a1d6;box-shadow:0 0 0 2px #00a1d6;-webkit-box-shadow:0 0 0 2px var(--bpx-primary-color,#00a1d6);box-shadow:0 0 0 2px var(--bpx-primary-color,#00a1d6)}.bpx-player-embedded .bpx-player-top-wrap{background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.6)),to(transparent));background:linear-gradient(180deg,rgba(0,0,0,.6),transparent);height:120px}.bpx-player-embedded .bpx-player-ctrl-time-label{font-size:12px}.bpx-player-embedded .bpx-player-state-wrap{display:none!important}.bpx-player-embedded .bpx-player-ctrl-quality-menu{backdrop-filter:blur(10px);background:rgba(24,25,28,.85)}.bpx-player-embedded .bpx-player-ctrl-quality-badge{margin-right:7px}.bpx-player-embedded .bpx-player-ctrl-playbackrate-menu{backdrop-filter:blur(10px);background:rgba(24,25,28,.85);border-radius:4px;padding:10px}.bpx-player-embedded .bpx-player-control-mask{background:-webkit-gradient(linear,left top,left bottom,color-stop(2.18%,transparent),to(#000));background:linear-gradient(180deg,transparent 2.18%,#000);height:126px}.bpx-player-embedded .bui-checkbox-label .bpx-common-svg-icon{height:16px!important;width:16px!important}.bpx-player-embedded .bui-checkbox-label .bui-checkbox-name{color:hsla(0,0%,100%,.7)}.bpx-player-embedded .bpx-player-ctrl-playbackrate-menu-item:hover{background:#2f3134;border-radius:4px}.bpx-player-embedded .bpx-player-control-wrap{height:70px}.bpx-player-embedded .bpx-player-control-wrap .bpx-player-control-top{bottom:68px}.bpx-player-embedded .bpx-player-control-wrap .bpx-player-dm-root .bpx-player-dm-switch{margin-left:35px;margin-right:19px}.bpx-player-embedded .bpx-player-control-wrap .bpx-player-video-inputbar{margin-left:19px;width:330px}.bpx-player-embedded .bpx-player-ctrl-btn{margin:0 3px}.bpx-player-embedded .bpx-player-ctrl-playbackrate{white-space:nowrap}.bpx-player-embedded .bpx-player-control-bottom-center-small{width:100%}.bpx-player-embedded .bpx-player-control-bottom-center-small .bpx-player-dm-root{-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left}.bpx-player-embedded .bpx-player-control-bottom-center-small .bpx-player-dm-root .bpx-player-dm-switch{margin-left:24px}.bpx-player-embedded .bpx-player-video-inputbar-checkBox{right:45px!important}.bpx-player-embedded .bpx-player-ctrl-btn-icon,.bpx-player-embedded .bpx-player-ctrl-playbackrate-result,.bpx-player-embedded .bpx-player-ctrl-quality-result{margin:0 3px;position:relative}.bpx-player-embedded .bpx-player-ctrl-btn-icon:hover:before,.bpx-player-embedded .bpx-player-ctrl-playbackrate-result:hover:before,.bpx-player-embedded .bpx-player-ctrl-quality-result:hover:before{background:hsla(0,0%,100%,.1);border-radius:6px;content:"";cursor:pointer;height:120%;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:120%;z-index:-1}.bpx-player-progress-area{position:relative}.bpx-player-progress-area .bpx-player-progress-freezone{pointer-events:none}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo{bottom:0;display:inline-block;position:absolute;width:0}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container{bottom:18px;cursor:pointer;height:36px;left:-13px;pointer-events:auto;position:absolute;width:32px}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container .bpx-player-circle{background-color:transparent;border-radius:100%;height:29px;left:0;pointer-events:none;position:absolute;top:0;width:28px}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container .bpx-player-circle-red{border:2px solid #812139}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container .bpx-player-circle-blue{border:2px solid #4e75a5}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container .bpx-player-triangle{border-left:5px solid transparent;border-right:5px solid transparent;bottom:0;height:0;left:50%;pointer-events:none;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:0}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container .bpx-player-triangle-red{border-top:5px solid #812139}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container .bpx-player-triangle-blue{border-top:5px solid #4e75a5}.bpx-player-progress-area .bpx-player-progress-freezone .bpx-player-progress-point-logo-image-container img{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;padding-bottom:6px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:4px;position:relative;-webkit-transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1),-webkit-transform .1s cubic-bezier(0,0,.2,1);width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress:hover .bpx-player-progress-schedule-wrap{-webkit-transform:scaleY(1.5);transform:scaleY(1.5)}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress .bpx-player-progress-schedule-wrap{height:100%;position:absolute;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap .bpx-player-progress-point{display:inline-block;height:100%;position:absolute;top:0;width:0}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap .bpx-player-progress-point.bpx-player-progress-point-wonder{background-color:#f1e696}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap .bpx-player-progress-point.bpx-player-progress-point-note,.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap .bpx-player-progress-point.bpx-player-progress-point-oped{background-color:#fff}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap .bpx-player-progress-point.bpx-player-progress-point-aipoint{background-color:#ececec;border-radius:3px;height:6px;pointer-events:auto;top:-1px;-webkit-transition:all .3s ease;transition:all .3s ease;width:4px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-point-wrap .bpx-player-progress-point.bpx-player-progress-point-aipoint.hover{border-radius:3px;height:13px;top:-3px;width:5px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-thumb{height:20px;pointer-events:none;width:20px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-thumb-icon{height:100%;line-height:12px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .2s;transition:all .2s;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-move-indicator{height:16px;margin-left:-4px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;-webkit-transition:opacity .1s;transition:opacity .1s;visibility:hidden;width:8px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-move-indicator>div{border-style:solid;height:0;position:relative;width:0}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-move-indicator-up{border-color:transparent transparent #00a1d6;border-color:transparent transparent var(--bpx-primary-color,#00a1d6);border-width:0 4px 4px;margin-top:8px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-move-indicator-down{border-color:#00a1d6 transparent transparent;border-color:var(--bpx-primary-color,#00a1d6) transparent transparent;border-width:4px 4px 0}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-popup{background-color:transparent;border-radius:2px;bottom:22px;display:none;line-height:36px;overflow:hidden;pointer-events:none;position:absolute;width:160px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-popup.bpx-player-ai-point{bottom:24px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-popup.bpx-player-ai-point .bpx-player-progress-preview{border:1.5px solid hsla(0,0%,100%,.8);border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview{height:90px;position:relative;width:160px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview.hidden{border:none!important}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview.hidden .bpx-player-progress-preview-image{display:none}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-image{height:100%;margin:0 auto;position:relative;-webkit-transition:-webkit-filter .3s ease;transition:-webkit-filter .3s ease;transition:filter .3s ease;transition:filter .3s ease,-webkit-filter .3s ease;vertical-align:inherit;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-image.charging-blur{-webkit-filter:blur(10px);filter:blur(10px);-webkit-transform:scale(1.3);transform:scale(1.3)}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-charging-tip{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:none;gap:4px;justify-content:center;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);white-space:nowrap}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-charging-tip.show{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-charging-icon{font-size:0;height:14px;line-height:1;padding-top:2px;width:14px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-charging-icon-charging-svg{height:100%;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-charging-text{-webkit-box-flex:1;color:#fff;-ms-flex:1;flex:1;font-size:12px;line-height:17px;white-space:nowrap}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-time{background-color:hsla(0,0%,8%,.9);border-radius:2px;bottom:0;color:#fff;display:inline-block;font-size:12px;height:18px;left:50%;line-height:18px;padding:0 5px;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);vertical-align:bottom}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-preview-time:empty{display:none}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-hotspot{background-color:hsla(0,0%,8%,.9);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;line-height:18px;max-height:48px;overflow:hidden;padding:6px 8px;text-align:left;white-space:normal;word-break:break-all}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-hotspot.bpx-player-ai-point{-webkit-box-orient:vertical;-webkit-line-clamp:2;background:transparent;display:-webkit-box;max-height:42px;overflow:hidden;padding:6px 0;text-align:left;text-overflow:ellipsis;-o-text-overflow:ellipsis;text-shadow:0 1px 4px #000;width:100%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-hotspot:empty{display:none}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-pull-indicator{bottom:6px;height:18px;line-height:18px;position:absolute;width:18px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-cursor{background-color:#fff;border-radius:5px;height:10px;left:-5px;opacity:0;position:absolute;-webkit-transition:opacity .2s .1s;transition:opacity .2s .1s;visibility:hidden;width:10px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-scaleplate>div{background:hsla(0,0%,100%,.35);bottom:0;position:absolute;width:1px}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-scaleplate-1m{height:50%}.bpx-player-progress-area .bpx-player-progress-wrap .bpx-player-progress-scaleplate-2m{height:75%}.bpx-player-progress-area .bpx-player-progress-wrap.bpx-state-active .bpx-player-progress-move-indicator{opacity:1;visibility:visible}.bpx-player-progress-area .bpx-player-progress-wrap.bpx-state-active .bpx-player-progress-thumb-icon{-webkit-transform:scale(1);transform:scale(1)}.bpx-player-progress-area .bpx-player-progress-wrap.bpx-state-active .bpx-player-progress-popup{display:block}.bpx-player-progress-area .bpx-player-progress-wrap.bpx-state-pulling .bpx-player-progress-thumb{opacity:0;visibility:hidden}.bpx-player-progress-area .bpx-player-progress-wrap.bpx-state-pulling .bpx-player-progress-cursor{opacity:1;visibility:visible}.bpx-player-game-center .bpx-player-progress-wrap .bpx-player-progress,.bpx-player-mini-site .bpx-player-progress-wrap .bpx-player-progress{height:2px!important}.bpx-player-progress-schedule{background-color:hsla(0,0%,100%,.2);border-radius:1.5px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bpx-player-progress-schedule.bpx-player-progress-schedule-segment{border-radius:0;-webkit-transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:-webkit-transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1);transition:transform .1s cubic-bezier(0,0,.2,1),-webkit-transform .1s cubic-bezier(0,0,.2,1)}.bpx-player-progress-schedule.bpx-player-progress-schedule-segment.hover{-webkit-transform:scaleY(1.8);transform:scaleY(1.8)}.bpx-player-progress-schedule-padding{bottom:0;height:14px;position:absolute;width:100%;z-index:1}.bpx-player-progress-schedule-point{background-color:#f1e696;height:100%;position:absolute}.bpx-player-progress-schedule-buffer,.bpx-player-progress-schedule-current{bottom:0;left:0;position:absolute;right:0;top:0;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transform-origin:0 0;transform-origin:0 0}.bpx-player-progress-schedule-buffer{background-color:hsla(0,0%,100%,.3)}.bpx-player-progress-schedule-current{background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6)}.bpx-player-shadow-progress-area{bottom:0;height:2px;left:0;position:absolute;right:0;-webkit-transition:opacity .4s ease-in;transition:opacity .4s ease-in}.bpx-player-shadow-progress-area .bpx-player-shadow-progress-schedule-wrap{height:100%;position:relative;width:100%}.bpx-player-shadow-progress-area .bpx-player-progress-schedule-text{display:none}.bpx-player-shadow-progress-area.permanent{height:30px!important}.bpx-player-shadow-progress-area.permanent .bpx-player-shadow-progress-schedule-wrap{background:rgba(35,167,255,.35)!important}.bpx-player-shadow-progress-area.permanent .bpx-player-progress-schedule-text{background:none!important;color:#fff;display:block!important;line-height:30px;overflow:hidden;padding:0 5px;text-align:center;text-overflow:ellipsis;-webkit-transform:scaleX(1);transform:scaleX(1);white-space:nowrap}.bpx-player-control-entity[data-shadow-show=false] .bpx-player-control-top{opacity:1;visibility:visible}.bpx-player-control-entity[data-shadow-show=false] .bpx-player-shadow-progress-area,.bpx-player-control-entity[data-shadow-show=true] .bpx-player-control-top{opacity:0;visibility:hidden}.bpx-player-control-entity[data-shadow-show=true] .bpx-player-shadow-progress-area{opacity:1;visibility:visible}.bpx-player-container[data-screen=full] .bpx-player-shadow-progress-area:not(.permanent){opacity:0!important;visibility:hidden}.bpx-player-ctrl-prev .bpx-player-ctrl-btn-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-ctrl-time{font-size:12px;margin-right:10px;min-width:90px}.bpx-player-ctrl-time-seek{background:hsla(0,0%,100%,.2);border:1px solid transparent;color:inherit;font-size:12px;height:20px;left:6px;line-height:20px;padding:0 5px;position:absolute;text-align:center;top:0;width:60px}.bpx-player-ctrl-time-label{height:100%;position:absolute;text-align:center;white-space:nowrap;width:100%}.bpx-player-ctrl-time-divide{padding:0 2px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-time,.bpx-player-container[data-screen=web] .bpx-player-ctrl-time{height:32px;width:120px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-time-seek,.bpx-player-container[data-screen=web] .bpx-player-ctrl-time-seek{font-size:14px;height:30px;line-height:30px;width:100px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-time-label,.bpx-player-container[data-screen=web] .bpx-player-ctrl-time-label{font-size:14px;text-align:left;text-indent:16px}}.bpx-player-ctrl-viewpoint{-webkit-box-flex:1;-ms-flex-positive:1;-ms-flex-negative:0;cursor:default;flex-grow:1;flex-shrink:0;margin:0 10px;max-width:240px;min-width:45px}.bpx-player-ctrl-viewpoint-content,.bpx-player-ctrl-viewpoint-inner{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-ctrl-viewpoint-content{-webkit-box-align:center;-ms-flex-align:center;fill:hsla(0,0%,100%,.9);align-items:center;cursor:pointer;font-size:14px;overflow:hidden}.bpx-player-ctrl-viewpoint-content:hover{margin-top:-40px;padding-top:40px}.bpx-player-ctrl-viewpoint-content:hover .bpx-player-ctrl-viewpoint-icon{fill:#fff}.bpx-player-ctrl-viewpoint-text{overflow:hidden;position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 12px)}.bpx-player-ctrl-viewpoint-icon{-webkit-box-flex:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex:none;flex:none;height:18px;width:18px}.bpx-player-ctrl-viewpoint-menu-wrap{background-color:hsla(0,0%,8%,.9);border-radius:2px;bottom:41px;-webkit-box-sizing:border-box;box-sizing:border-box;left:-36px;max-height:320px;opacity:0;overflow:hidden;position:absolute;text-align:left;visibility:hidden;width:210px}.bpx-player-ctrl-viewpoint-menu-wrap .bscroll-vertical-scrollbar{background:#757575!important;bottom:0!important;right:0!important;top:0!important;width:6px!important}.bpx-player-ctrl-viewpoint-menu-wrap .bscroll-vertical-scrollbar .bscroll-indicator{border:none!important;color:#6d757a!important}.bpx-player-ctrl-viewpoint-menu-wrap:hover .bscroll-vertical-scrollbar{opacity:1!important}.bpx-player-ctrl-viewpoint-menu{margin:0;padding:0}.bpx-player-ctrl-viewpoint-menu-item{cursor:pointer;font-size:12px;height:30px;line-height:30px;overflow:hidden;padding:0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.bpx-player-ctrl-viewpoint-menu-item-team{border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:18px;line-height:18px;margin-right:5px;padding:0 4px;text-align:center;width:36px}.bpx-player-ctrl-viewpoint-menu-item .team-red{background:rgba(255,84,127,.2);color:#ff547f}.bpx-player-ctrl-viewpoint-menu-item .team-blue{background:rgba(89,153,235,.2);color:#5999eb}.bpx-player-ctrl-viewpoint-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-ctrl-viewpoint.bpx-state-show .bpx-player-ctrl-viewpoint-menu-wrap{opacity:1;visibility:visible}@media screen and (max-width:600px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-viewpoint,.bpx-player-container[data-screen=web] .bpx-player-ctrl-viewpoint{display:none}}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-viewpoint-text,.bpx-player-container[data-screen=web] .bpx-player-ctrl-viewpoint-text{font-size:16px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-viewpoint-icon,.bpx-player-container[data-screen=web] .bpx-player-ctrl-viewpoint-icon{height:16px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-viewpoint-icon .bpx-common-svg-icon,.bpx-player-container[data-screen=web] .bpx-player-ctrl-viewpoint-icon .bpx-common-svg-icon{height:100%}.bpx-player-container[data-screen=full] .bpx-player-ctrl-viewpoint-menu-wrap,.bpx-player-container[data-screen=web] .bpx-player-ctrl-viewpoint-menu-wrap{bottom:74px}}.bpx-player-ctrl-dolby{margin-right:14px;width:60px}.bpx-player-ctrl-dolby.bpx-state-active .bpx-common-svg-icon{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-dolby-tooltip{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.bpx-player-ctrl-dolby-tooltip-icon{background-color:#fb7299;border-radius:31px;color:#fff;height:16px;line-height:16px;margin-left:6px;text-align:center;width:46px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-dolby,.bpx-player-container[data-screen=web] .bpx-player-ctrl-dolby{min-width:76px}}.bpx-player-ctrl-flac{margin-right:20px;width:99px}.bpx-player-ctrl-flac.bpx-state-active .bpx-common-svg-icon{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-flac-tooltip{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.bpx-player-ctrl-flac-tooltip-icon{background-color:#fb7299;border-radius:31px;color:#fff;height:16px;line-height:16px;margin-left:6px;text-align:center;width:46px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-flac,.bpx-player-container[data-screen=web] .bpx-player-ctrl-flac{margin-right:24px;min-width:115px}}.bpx-player-ctrl-quality{-webkit-box-flex:0;-ms-flex:none;flex:none;font-size:12px;margin-right:10px;width:auto}.bpx-player-ctrl-quality-result{cursor:pointer;font-size:14px;font-weight:600}.bpx-player-ctrl-quality-result-trial{background-color:#f25d8e;border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;font-size:12px;height:16px;line-height:16px;padding:0 5px}.bpx-player-ctrl-quality-bubble{bottom:50px;position:absolute}.bpx-player-ctrl-quality-menu{display:none;margin:0;padding:0}.bpx-player-ctrl-quality-menu-wrap{background-color:hsla(0,0%,8%,.9);border-radius:2px;bottom:41px;cursor:pointer;left:50%;margin:0;max-height:580px;overflow:hidden;padding:0;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.bpx-player-ctrl-quality-menu-wrap.bpx-player-ctrl-quality-menu-wrap-scroll{max-height:293px}.bpx-player-ctrl-quality-menu-wrap .bscroll-vertical-scrollbar{width:6px!important}.bpx-player-ctrl-quality-menu-wrap .bscroll-vertical-scrollbar .bscroll-indicator{background-color:#2f3134!important;border:none!important;color:#2f3134!important}.bpx-player-ctrl-quality-menu-wrap:hover .bscroll-vertical-scrollbar{opacity:1!important}.bpx-player-ctrl-quality-menu-feedback{background-color:hsla(0,0%,8%,.9);background-image:url(https://i0.hdslb.com/bfs/activity-plat/static/20231227/a5480f18ac08c1e30876e3fde84db784/3IJZgRRNpe.png);background-size:cover;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;height:62px;list-style:none;margin:6px 8px 16px;overflow:hidden;padding:12px 32px 12px 12px;position:relative;text-align:left;top:6px;width:222px}.bpx-player-ctrl-quality-menu-feedback-times{color:#f69;margin:0 2.5px}.bpx-player-ctrl-quality-menu-feedback-title{line-height:17px}.bpx-player-ctrl-quality-menu-feedback .bpx-common-top-info-icon,.bpx-player-ctrl-quality-menu-feedback-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-ctrl-quality-menu-feedback .bpx-common-top-info-icon{fill:#fff;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:2px}.bpx-player-ctrl-quality-menu-feedback .bpx-common-top-info-icon svg{height:12px;width:12px}.bpx-player-ctrl-quality-menu-feedback .bpx-common-top-info-icon:hover{background-color:hsla(0,0%,100%,.1);border-radius:3px}.bpx-player-ctrl-quality-menu-feedback-desc{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#f69;display:-webkit-box;display:-ms-flexbox;display:flex;line-height:17px;margin-top:4px;vertical-align:center}.bpx-player-ctrl-quality-menu-feedback-desc svg{height:12px;width:12px}.bpx-player-ctrl-quality-menu-feedback .bpx-common-top-close-icon{fill:#fff;height:16px;position:absolute;right:8px;top:6px;width:16px}.bpx-player-ctrl-quality-menu-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:36px;padding:0 12px;position:relative;white-space:nowrap;width:145px}.bpx-player-ctrl-quality-menu-item>span{pointer-events:none}.bpx-player-ctrl-quality-menu-item[data-value="126"]:not(.bpx-player-ctrl-quality-menu-item-with-subtitle){height:44px}.bpx-player-ctrl-quality-menu-item[data-value="126"]:not(.bpx-player-ctrl-quality-menu-item-with-subtitle) .bpx-player-ctrl-quality-text{position:absolute;top:4px}.bpx-player-ctrl-quality-menu-item[data-value="126"]:not(.bpx-player-ctrl-quality-menu-item-with-subtitle) .bpx-player-ctrl-quality-tip{height:16px;line-height:16px;position:absolute;top:24px;width:90px}.bpx-player-ctrl-quality-menu-item .bpx-player-ctrl-quality-text-vip-trial{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:44px;justify-content:center;text-align:left}.bpx-player-ctrl-quality-menu-item .bpx-player-ctrl-quality-text-vip-trial-name{height:16px;line-height:16px}.bpx-player-ctrl-quality-menu-item .bpx-player-ctrl-quality-text-vip-trial-description{font-size:10px;height:16px;line-height:16px;opacity:.8}.bpx-player-ctrl-quality-menu-item .bpx-player-ctrl-quality-text-with-subtitle{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:32px;justify-content:center;text-align:left}.bpx-player-ctrl-quality-menu-item .bpx-player-ctrl-quality-text-with-subtitle-name{font-size:12px;height:16px;line-height:16px}.bpx-player-ctrl-quality-menu-item .bpx-player-ctrl-quality-text-with-subtitle-description{font-size:10px;height:14px;line-height:14px;margin-top:2px;opacity:.8}.bpx-player-ctrl-quality-menu-item.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-quality-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-ctrl-quality-menu-item-vip-trial{height:36px;padding:4px 13px;width:auto}.bpx-player-ctrl-quality-menu-item-vip-trial[data-value="126"]:not(.bpx-player-ctrl-quality-menu-item-with-subtitle){height:44px;position:relative;width:auto}.bpx-player-ctrl-quality-menu-item-vip-trial[data-value="126"]:not(.bpx-player-ctrl-quality-menu-item-with-subtitle) .bpx-player-ctrl-quality-text{position:absolute;top:4px}.bpx-player-ctrl-quality-menu-item-vip-trial[data-value="126"]:not(.bpx-player-ctrl-quality-menu-item-with-subtitle) .bpx-player-ctrl-quality-tip{height:16px;line-height:16px;position:absolute;top:24px;width:90px}.bpx-player-ctrl-quality-menu-item-with-subtitle{padding:10px 12px;width:auto}.bpx-player-ctrl-quality-menu-item-non-vip-trial{width:auto}.bpx-player-ctrl-quality-menu:has(.bpx-player-ctrl-quality-menu-item-with-subtitle):not(:has(.bpx-player-ctrl-quality-menu-feedback)) .bpx-player-ctrl-quality-menu-item{width:185px}.bpx-player-ctrl-quality-menu:has(.bpx-player-ctrl-quality-menu-item-with-subtitle):not(:has(.bpx-player-ctrl-quality-menu-feedback)) .bpx-player-ctrl-quality-menu-item-with-subtitle .bpx-player-ctrl-quality-badge-bigvip{top:12px}.bpx-player-ctrl-quality .cindy-width-token{width:155px!important}.bpx-player-ctrl-quality-ai-menu{padding-top:6px}.bpx-player-ctrl-quality-badge{border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:16px;line-height:16px;padding:0 5px;position:absolute;right:12px}.bpx-player-ctrl-quality-badge-bigvip{background-color:#f25d8e;color:#fff}.bpx-player-ctrl-quality-badge-needlogin{border:1px solid #f25d8e;color:#f25d8e}.bpx-player-ctrl-quality-badge-embedded{background-color:#f25d8e;color:#fff;padding:0 10px}.bpx-player-ctrl-quality svg{opacity:.8}.bpx-player-ctrl-quality:hover{margin-top:-10px;padding-top:10px}.bpx-player-ctrl-quality:hover .bpx-player-ctrl-quality-vip-vision-result-tag{top:0!important}.bpx-player-ctrl-quality:hover svg{opacity:1}.bpx-player-ctrl-quality.bpx-state-show .bpx-player-ctrl-quality-menu{display:block}.bpx-player-ctrl-quality .bpx-player-vip-vision-panel .bpx-player-ctrl-quality-menu-wrap{max-height:1000px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-quality,.bpx-player-container[data-screen=web] .bpx-player-ctrl-quality{width:auto}.bpx-player-container[data-screen=full] .bpx-player-ctrl-quality-result,.bpx-player-container[data-screen=web] .bpx-player-ctrl-quality-result{font-size:16px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-quality-bubble,.bpx-player-container[data-screen=web] .bpx-player-ctrl-quality-bubble{bottom:78px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-quality-menu-wrap,.bpx-player-container[data-screen=web] .bpx-player-ctrl-quality-menu-wrap{bottom:74px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-quality-menu-wrap:after,.bpx-player-container[data-screen=web] .bpx-player-ctrl-quality-menu-wrap:after{height:32px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-quality .bpx-player-vip-vision-result-svg,.bpx-player-container[data-screen=web] .bpx-player-ctrl-quality .bpx-player-vip-vision-result-svg{width:49px}}.bpx-player-embedded .bpx-player-ctrl-quality-menu{border-radius:4px;padding:10px}.bpx-player-embedded .bpx-player-ctrl-quality-menu-item{border-radius:4px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-menu-wrap{max-height:1000px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-menu-item{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:36px;justify-content:space-between;width:185px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-menu-item.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-menu-item-text{font-size:12px;line-height:16px;margin-left:12px;pointer-events:none}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-menu-item.vip-trial{width:238px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-list{list-style:none;margin:0;padding:0}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title.bpx-state-active .bpx-player-ctrl-quality-vip-vision-group-item-title-content svg{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title.bpx-state-active .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-player-vip-vision-qa svg{fill:#9499a0}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:36px;justify-content:space-between;pointer-events:none;width:100%}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-common-svg-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:12px;width:68px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-common-svg-icon svg{height:16px;width:16px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-common-svg-icon svg:first-child{margin-right:8px;width:44px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-player-vip-vision-qa{display:-webkit-box;display:-ms-flexbox;display:flex;height:16px;pointer-events:all;width:16px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-player-vip-vision-qa svg{fill:#9499a0;height:100%!important;margin-right:0!important;width:100%!important}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-title-content .bpx-player-vip-vision-qa:hover svg{fill:#fff!important}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;height:36px;justify-content:space-between;white-space:nowrap;width:100%}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item.bpx-state-active{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-text{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:flex-start;line-height:16px;margin-left:32px;pointer-events:none}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-text .bpx-common-svg-icon svg:first-child{height:16px;margin-right:8px;width:44px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-text .bpx-common-svg-icon svg:last-child{height:16px;width:40px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-item-text .bpx-player-vip-vision-dolby-icon svg:last-child{height:16px;width:79px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title,.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-player-ctrl-vip-vision-icon{pointer-events:none}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-player-ctrl-vip-vision-icon .bpx-player-vip-vision-qa{height:16px;pointer-events:all;width:16px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-player-ctrl-vip-vision-icon .bpx-player-vip-vision-qa svg{fill:#9499a0}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-player-ctrl-vip-vision-icon .bpx-player-vip-vision-qa:hover svg{fill:#fff!important}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title.bpx-state-active svg{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title.bpx-state-active .bpx-player-vip-vision-qa svg{fill:#9499a0}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:52px;justify-content:center}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-content{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:space-between;justify-content:center}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-subtitle,.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:flex-start;pointer-events:none;width:100%}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;line-height:16px;width:100%}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-common-svg-icon{margin-left:12px;width:auto}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-common-svg-icon svg:first-child{height:16px;margin-right:8px;width:44px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-title .bpx-common-svg-icon svg:last-child{height:16px;width:16px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-subtitle{color:#9499a0;font-size:10px;line-height:14px;margin-left:12px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-subtitle .bpx-common-svg-icon{width:auto}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-subtitle .bpx-common-svg-icon svg:first-child{height:14px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-group-single-item-subtitle .bpx-common-svg-icon svg:last-child{fill:#9499a0;height:14px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-badge{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;margin-right:12px;width:auto}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-badge span{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:#f69;border-radius:7px;color:#fff;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:10px;height:100%;height:14px;justify-content:center;width:100%;width:38px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-badge.vip-trialing span{background:transparent none repeat 0 0/auto auto padding-box border-box scroll;background:initial;border:1px solid #f69;color:#f69}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-vip-vision-result-svg{height:22px;width:40px}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-result-content{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center}.bpx-player-vip-vision-panel.bpx-player-ctrl-quality .bpx-player-ctrl-quality-vip-vision-result-tag{border:.5px solid #fff;border-radius:6px;font-size:8px;line-height:12px;opacity:.9;padding:0 2px;position:absolute;right:-10px;top:-10px}.bpx-player-ctrl-vip-vision-quality-toast{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center}.bpx-player-ctrl-vip-vision-quality-toast svg{height:16px;margin-right:4px;width:16px}.bpx-player-quality-naming-toast{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center}.bpx-player-quality-naming-toast svg{height:16px;margin-right:4px;width:16px}.bpx-player-quality-animation-wrapper{height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%;z-index:15}.bpx-player-quality-animation-wrapper.bpx-player-quality-animation-show{visibility:visible}.bpx-player-quality-animation-wrapper.bpx-player-quality-animation-paused .bpx-player-quality-animation-center-tip,.bpx-player-quality-animation-wrapper.bpx-player-quality-animation-paused .bpx-player-quality-animation-move-wrapper{-webkit-animation-play-state:paused;animation-play-state:paused}.bpx-player-quality-animation-center-tip{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:15px;font-weight:700;gap:6px;left:50%;line-height:21px;opacity:0;position:absolute;text-shadow:0 2px 20px rgba(0,0,0,.8);top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:20}.bpx-player-container[data-screen=full] .bpx-player-quality-animation-center-tip,.bpx-player-container[data-screen=web] .bpx-player-quality-animation-center-tip{font-size:20px}.bpx-player-quality-animation-quality-tag{background:-webkit-gradient(linear,left top,right top,from(#ff548c),color-stop(50%,#ef57aa),to(#ffb07e));background:linear-gradient(90deg,#ff548c,#ef57aa 50%,#ffb07e);border-radius:3px;color:#fff;display:inline-block;font-size:14px;font-weight:700;line-height:20px;padding:0 4px;text-shadow:none}.bpx-player-container[data-screen=full] .bpx-player-quality-animation-quality-tag,.bpx-player-container[data-screen=web] .bpx-player-quality-animation-quality-tag{border-radius:4px;font-size:19px;padding:3px 6px}.bpx-player-quality-animation-quality-tag-img{height:20px;vertical-align:middle;width:auto}.bpx-player-container[data-screen=full] .bpx-player-quality-animation-quality-tag-img,.bpx-player-container[data-screen=web] .bpx-player-quality-animation-quality-tag-img{height:26px}.bpx-player-quality-animation-move-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-quality-animation-left-golden-mask{height:100%;width:auto}.bpx-player-quality-animation-left-golden-mask-img{height:100%;-webkit-transform:translateX(38%);transform:translateX(38%);-webkit-transform-origin:right center;transform-origin:right center;width:auto}.bpx-player-quality-animation-right-black-mask{-ms-flex-negative:0;background:rgba(0,0,0,.45);flex-shrink:0;height:100%;opacity:1;-webkit-transform:scale(5) rotate(15deg);transform:scale(5) rotate(15deg);-webkit-transform-origin:0 center;transform-origin:0 center;width:100%}.bpx-player-ctrl-eplist{font-size:14px;visibility:hidden;width:0}.bpx-player-ctrl-eplist-result{cursor:pointer;font-weight:600;width:100%}.bpx-player-ctrl-eplist-menu-wrap{background-color:hsla(0,0%,8%,.9);border-radius:2px;bottom:41px;-webkit-box-sizing:border-box;box-sizing:border-box;left:50%;max-height:580px;opacity:0;overflow:hidden;position:absolute;text-align:left;-webkit-transform:translateX(-50%);transform:translateX(-50%);visibility:hidden;width:320px}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu{margin:0;padding:0}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item{cursor:pointer;font-size:12px;height:30px;line-height:30px;overflow:hidden;padding:0;position:relative;text-overflow:ellipsis;white-space:nowrap}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6);cursor:default;padding-left:32px}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item.bpx-state-active:before{border-color:transparent transparent transparent #00a1d6;border-color:transparent transparent transparent var(--bpx-primary-color,#00a1d6);border-style:solid;border-width:5px 8px;content:"";left:20px;position:absolute;top:10px}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item-non-pugv{padding:0 26px 0 20px}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item-title{cursor:pointer;overflow:hidden;padding-left:20px;text-overflow:ellipsis;white-space:nowrap;width:200px}.bpx-player-ctrl-eplist-menu-wrap .bpx-player-ctrl-eplist-menu-item-badge{border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;height:18px;line-height:18px;padding:0 4px;position:absolute;right:10px;text-align:center;top:6px}.bpx-player-ctrl-eplist-menu-wrap .bscroll-vertical-scrollbar{background:#757575!important;bottom:0!important;right:0!important;top:0!important;width:6px!important}.bpx-player-ctrl-eplist-menu-wrap .bscroll-vertical-scrollbar .bscroll-indicator{border:none!important;color:#6d757a!important}.bpx-player-ctrl-eplist-menu-wrap:hover .bscroll-vertical-scrollbar{opacity:1!important}.bpx-player-ctrl-eplist.bpx-state-show .bpx-player-ctrl-eplist-menu-wrap{opacity:1;visibility:visible}.bpx-player-ctrl-eplist:hover{margin-top:-40px;padding-top:40px}.bpx-player-ctrl-eplist-section{padding:0;width:100%}.bpx-player-ctrl-eplist-section .bui-select-list-wrap .bscroll-vertical-scrollbar{background:none!important}.bpx-player-ctrl-eplist-section .bui-select-list-wrap .bscroll-indicator{border-radius:3px}.bpx-player-ctrl-eplist-section-top{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid hsla(0,0%,100%,.2);display:-webkit-box;display:-ms-flexbox;display:flex;height:30px;justify-content:center;padding:8px 0;width:100%}.bpx-player-ctrl-eplist-section-top-hide{display:none}.bpx-player-ctrl-eplist-section-title{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;cursor:pointer;justify-content:space-between;position:relative;width:280px;z-index:20}.bpx-player-ctrl-eplist-section-title .bui-select-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:30px!important}.bpx-player-ctrl-eplist-section-title .bui-select-wrap{height:30px!important}.bpx-player-ctrl-eplist-section-title-text{font-size:12px;line-height:30px;margin-left:8px}.bpx-player-ctrl-eplist-section-bottom{max-height:520px;overflow:hidden;position:relative}.bpx-player-ctrl-eplist-section-content{margin:0;padding:0}.bpx-player-ctrl-eplist-episodes-content{display:none;padding:0}.bpx-player-ctrl-eplist-episodes-content-collapsed{display:inline;display:initial}.bpx-player-ctrl-eplist-episodes-title{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;justify-content:space-between;line-height:30px;padding-left:20px;padding-right:20px}.bpx-player-ctrl-eplist-episodes-title-hide,.bpx-player-ctrl-eplist-episodes-title-svg-hide{display:none}.bpx-player-ctrl-eplist-episodes-title-text{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}.bpx-player-ctrl-eplist-episodes-title .bpx-common-svg-icon{-ms-flex-negative:0;flex-shrink:0;margin-right:4px;pointer-events:none;width:12px}.bpx-player-ctrl-eplist-episodes-title-collapsed .bpx-common-svg-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-ctrl-eplist-multi-menu-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:30px;line-height:30px;padding:0 20px;position:relative}.bpx-player-ctrl-eplist-multi-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-ctrl-eplist-multi-menu-item-text{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}.bpx-player-ctrl-eplist-multi-menu-item .bpx-common-svg-icon{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);-ms-flex-negative:0;flex-shrink:0;margin-right:4px;width:12px}.bpx-state-multi-active-item{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-container[data-screen=full] .bpx-player-ctrl-eplist,.bpx-player-container[data-screen=web] .bpx-player-ctrl-eplist{visibility:visible}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-eplist-result,.bpx-player-container[data-screen=web] .bpx-player-ctrl-eplist-result{font-size:16px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-eplist-menu-wrap,.bpx-player-container[data-screen=web] .bpx-player-ctrl-eplist-menu-wrap{bottom:74px}}.bpx-player-pc-app[data-screen=normal] .bpx-player-ctrl-eplist{visibility:visible;width:36px}.bpx-player-pc-app[data-screen=normal] .bpx-player-ctrl-eplist-menu-wrap{max-height:394px}.bpx-player-pc-app[data-screen=normal] .bpx-player-ctrl-eplist .bpx-player-ctrl-eplist-section-bottom{max-height:300px!important}.bpx-player-ctrl-playbackrate{font-size:14px;width:50px}.bpx-player-ctrl-playbackrate-result{cursor:pointer;font-weight:600;white-space:nowrap;width:100%}.bpx-player-ctrl-playbackrate-menu{background-color:hsla(0,0%,8%,.9);border-radius:2px;bottom:41px;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;left:50%;margin:0;padding:0;position:absolute;text-align:center;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:70px}.bpx-player-ctrl-playbackrate-menu-item{cursor:pointer;height:36px;line-height:36px;position:relative}.bpx-player-ctrl-playbackrate-menu-item.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-playbackrate-menu-item:hover{background-color:hsla(0,0%,100%,.1)}.bpx-player-ctrl-playbackrate.bpx-state-show .bpx-player-ctrl-playbackrate-menu{display:block}.bpx-player-ctrl-playbackrate:hover{margin-top:-10px;padding-top:10px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-playbackrate,.bpx-player-container[data-screen=web] .bpx-player-ctrl-playbackrate{width:66px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-playbackrate-result,.bpx-player-container[data-screen=web] .bpx-player-ctrl-playbackrate-result{font-size:16px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-playbackrate-menu,.bpx-player-container[data-screen=web] .bpx-player-ctrl-playbackrate-menu{bottom:74px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-playbackrate-menu:after,.bpx-player-container[data-screen=web] .bpx-player-ctrl-playbackrate-menu:after{height:32px}}.bpx-player-ctrl-subtitle{font-size:14px;margin:0 5px;width:auto}.bpx-player-ctrl-subtitle-box{bottom:41px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:default;display:none;font-size:12px;position:absolute;right:-115px;text-align:left;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.bpx-player-ctrl-subtitle-result{cursor:pointer;font-weight:600;white-space:nowrap}.bpx-player-ctrl-subtitle-result-wrap{-webkit-box-orient:horizontal;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.bpx-player-ctrl-subtitle-result-wrap .bpx-common-svg-icon{border-radius:6px;cursor:pointer;height:12px;margin-left:-10px;margin-top:-10px;padding-left:3px;padding-right:3px;width:14px}.bpx-player-ctrl-subtitle-title-area{height:auto;padding-top:4px}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-add-wrap{height:32px}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-add-wrap .bpx-player-ctrl-subtitle-title{color:#fff;font-size:14px;margin-top:10px;opacity:.4}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-add-wrap .bpx-player-ctrl-subtitle-add{height:22px;margin-top:10px}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-add-wrap .bpx-player-ctrl-subtitle-add.bui-disabled .bui-area{color:hsla(0,0%,100%,.2)}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-close-switch{color:#fff;cursor:pointer;height:40px;line-height:40px;margin:2px 8px 0 -12px;padding-left:12px;width:calc(100% + 12px)}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-close-switch:hover{background-color:hsla(0,0%,100%,.1);border-radius:4px}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-close-switch.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-fake-switch{-webkit-box-orient:horizontal;-webkit-box-direction:normal;color:#fff;cursor:pointer;cursor:not-allowed;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:40px;margin:2px 8px 0 -12px;padding-left:12px;width:calc(100% + 12px)}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-fake-switch .bpx-player-ctrl-subtitle-fake-switch-text{line-height:40px;opacity:.4}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-fake-switch .bpx-common-svg-icon{height:12px;margin:13.5px 0 0 4px;width:12px}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-fake-switch:hover{background-color:hsla(0,0%,100%,.1);border-radius:4px}.bpx-player-ctrl-subtitle-title-area .bpx-player-ctrl-subtitle-fake-switch:hover .bpx-player-ctrl-subtitle-fake-tooltip{opacity:1;visibility:visible}.bpx-player-ctrl-subtitle-menu{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;border-radius:2px!important;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;right:0}.bpx-player-ctrl-subtitle-menu-origin{height:100%;width:100%}.bpx-player-ctrl-subtitle-menu-translation{height:100%;min-width:128px}.bpx-player-ctrl-subtitle-menu-left{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;gap:40px}.bpx-player-ctrl-subtitle-menu-left,.bpx-player-ctrl-subtitle-menu-right{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:0 20px;width:100%}.bpx-player-ctrl-subtitle-menu-description{color:#fff;font-size:12px;line-height:20px;padding:6px 20px 0}.bpx-player-ctrl-subtitle-language-unlogin{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;justify-content:center;margin-left:-20px;width:calc(100% + 40px)}.bpx-player-ctrl-subtitle-language-unlogin-content{background-color:#00aeec;border-radius:6px;cursor:pointer;font-size:14px;height:20px;line-height:20px;padding:7px 21px}.bpx-player-ctrl-subtitle-language{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:-20px;width:calc(100% + 40px)}.bpx-player-ctrl-subtitle-language-item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:4px;height:40px;margin:0 8px;overflow:hidden;padding-left:12px}.bpx-player-ctrl-subtitle-language-item-text{font-size:12px;line-height:40px}.bpx-player-ctrl-subtitle-language-item .bpx-common-svg-icon{height:12px;margin-top:14px;width:14px}.bpx-player-ctrl-subtitle-language-item:hover{background-color:hsla(0,0%,100%,.1);border-radius:4px}.bpx-player-ctrl-subtitle-language-item.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-subtitle-nolan{color:hsla(0,0%,100%,.4);font-size:12px;line-height:16px;padding:14px 0 10px 20px;width:100%}.bpx-player-ctrl-subtitle-major-title,.bpx-player-ctrl-subtitle-minor-title{color:#999;height:20px;line-height:20px;margin-left:20px}.bpx-player-ctrl-subtitle-major-content,.bpx-player-ctrl-subtitle-minor-content{overflow:hidden;position:relative}.bpx-player-ctrl-subtitle-major-content .bscroll-vertical-scrollbar,.bpx-player-ctrl-subtitle-minor-content .bscroll-vertical-scrollbar{background-color:transparent;bottom:0!important;right:0!important;top:0!important;width:3px!important}.bpx-player-ctrl-subtitle-major-content .bscroll-vertical-scrollbar .bscroll-indicator,.bpx-player-ctrl-subtitle-minor-content .bscroll-vertical-scrollbar .bscroll-indicator{background-color:#e5e7ef!important;border:none!important;opacity:.3}.bpx-player-ctrl-subtitle-major-content:hover .bscroll-vertical-scrollbar,.bpx-player-ctrl-subtitle-minor-content:hover .bscroll-vertical-scrollbar{opacity:1!important}.bpx-player-ctrl-subtitle-bilingual-above{height:40px;width:100%}.bpx-player-ctrl-subtitle-bilingual-bottom{height:36px;padding-top:4px;width:100%}.bpx-player-ctrl-subtitle-setting{fill:#fff;-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;justify-content:space-between}.bpx-player-ctrl-subtitle-setting-text{-webkit-transition:color .3s;transition:color .3s}.bpx-player-ctrl-subtitle-setting .bpx-common-svg-icon{height:100%;opacity:.9;width:16px}.bpx-player-ctrl-subtitle-setting:hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-subtitle-item{margin-top:12px}.bpx-player-ctrl-subtitle-item-flex{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.bpx-player-ctrl-subtitle-color,.bpx-player-ctrl-subtitle-fontsize,.bpx-player-ctrl-subtitle-position,.bpx-player-ctrl-subtitle-shadow{width:50%}.bpx-player-ctrl-subtitle-color-title,.bpx-player-ctrl-subtitle-fontsize-title,.bpx-player-ctrl-subtitle-position-title,.bpx-player-ctrl-subtitle-shadow-title{height:16px;margin-bottom:5px}.bpx-player-ctrl-subtitle-fontsize,.bpx-player-ctrl-subtitle-shadow{margin-right:20px}.bpx-player-ctrl-subtitle-color .bui-select-item>span,.bpx-player-ctrl-subtitle-color .bui-select-result>span{vertical-align:middle}.bpx-player-ctrl-subtitle-color .bui-select-item>span:first-child,.bpx-player-ctrl-subtitle-color .bui-select-result>span:first-child{border-radius:2px;display:inline-block;height:12px;margin-right:8px;width:12px}.bpx-player-ctrl-subtitle-opacity-title{height:16px;margin-bottom:6px}.bpx-player-ctrl-subtitle-other{margin:10px 0}.bpx-player-ctrl-subtitle-other-title{height:16px;margin-bottom:8px}.bpx-player-ctrl-subtitle-other-content{height:16px}.bpx-player-ctrl-subtitle-fade{margin-left:14px}.bpx-player-ctrl-subtitle-reset{height:22px;margin:10px 0;width:116px}.bpx-player-ctrl-subtitle .bui-select{width:100%}.bpx-player-ctrl-subtitle .bui-select-list{z-index:2}.bpx-player-ctrl-subtitle-separator-above,.bpx-player-ctrl-subtitle-separator-bottom{border-bottom:1px solid rgba(229,233,239,.1);margin:7.5px 0 7.5px -8px;position:relative;width:calc(100% + 16px)}.bpx-player-ctrl-subtitle:hover{margin-top:-10px;padding-top:10px}.bpx-player-ctrl-subtitle.bpx-state-show .bpx-player-ctrl-subtitle-box{display:block}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-subtitle,.bpx-player-container[data-screen=web] .bpx-player-ctrl-subtitle{width:auto}.bpx-player-container[data-screen=full] .bpx-player-ctrl-subtitle-result,.bpx-player-container[data-screen=web] .bpx-player-ctrl-subtitle-result{font-size:16px;width:auto}.bpx-player-container[data-screen=full] .bpx-player-ctrl-subtitle-result-wrap .bpx-common-svg-icon,.bpx-player-container[data-screen=web] .bpx-player-ctrl-subtitle-result-wrap .bpx-common-svg-icon{margin-top:-6px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-subtitle-box,.bpx-player-container[data-screen=web] .bpx-player-ctrl-subtitle-box{bottom:74px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-subtitle-box:after,.bpx-player-container[data-screen=web] .bpx-player-ctrl-subtitle-box:after{height:32px}}.bpx-player-ctrl-translation{height:100%;width:100%}.bpx-player-ctrl-translation-separator{border-bottom:1px solid rgba(229,233,239,.1);margin:7.5px 0 7.5px -8px;position:relative;width:calc(100% + 16px)}.bpx-player-ctrl-translation-title-area{height:auto;padding-top:4px}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-add-wrap{height:32px}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-add-wrap .bpx-player-ctrl-translation-title{-webkit-box-orient:horizontal;-webkit-box-direction:normal;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:4px;opacity:.4}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-add-wrap .bpx-player-ctrl-translation-title-text{font-size:14px;margin-top:10px;white-space:nowrap}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-add-wrap .bpx-player-ctrl-translation-title .bpx-common-svg-icon{cursor:pointer;height:16px;margin-top:12px;width:16px}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-add-wrap .bpx-player-ctrl-translation-add{height:22px;margin-top:10px}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-add-wrap .bpx-player-ctrl-translation-add.bui-disabled .bui-area{color:hsla(0,0%,100%,.2)}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-close-switch{color:#fff;cursor:pointer;height:40px;line-height:40px;margin:2px 8px 0 -12px;padding-left:12px;width:calc(100% + 12px)}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-close-switch:hover{background-color:hsla(0,0%,100%,.1);border-radius:4px}.bpx-player-ctrl-translation-title-area .bpx-player-ctrl-translation-close-switch.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-translation-language{display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:-20px;width:calc(100% + 40px)}.bpx-player-ctrl-translation-language-item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:4px;height:40px;margin:0 8px;overflow:hidden;padding-left:12px}.bpx-player-ctrl-translation-language-item-text{font-size:12px;line-height:40px}.bpx-player-ctrl-translation-language-item .bpx-common-svg-icon{height:12px;margin-top:14px;width:14px}.bpx-player-ctrl-translation-language-item:hover{background-color:hsla(0,0%,100%,.1);border-radius:4px}.bpx-player-ctrl-translation-language-item.bpx-state-active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-translation-nolan{color:hsla(0,0%,100%,.4);height:40px;width:100%}.bpx-player-ctrl-translation-content{overflow:hidden;position:relative;width:100%}.bpx-player-ctrl-translation-content .bscroll-vertical-scrollbar{background-color:transparent;bottom:0!important;right:0!important;top:0!important;width:3px!important}.bpx-player-ctrl-translation-content .bscroll-vertical-scrollbar .bscroll-indicator{background-color:#e5e7ef!important;border:none!important;opacity:.3}.bpx-player-ctrl-translation-content:hover .bscroll-vertical-scrollbar{opacity:1!important}.bpx-player-ctrl-translation-unlogin{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;justify-content:center;margin-left:-20px;width:calc(100% + 40px)}.bpx-player-ctrl-translation-unlogin-content{background-color:#00aeec;border-radius:6px;cursor:pointer;font-size:14px;height:20px;line-height:20px;padding:7px 21px}.bpx-player-ctrl-translation-other .bpx-player-ctrl-subtitle-other-title{color:#fff;font-size:12px;margin:0 12px 8px;opacity:.6}.bpx-player-ctrl-translation-other .bpx-player-ctrl-subtitle-scale{margin:0 12px}.bpx-player-ctrl-translation-feedback{fill:#fff;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;opacity:.4}.bpx-player-ctrl-translation-feedback-text{-webkit-transition:color .3s;transition:color .3s}.bpx-player-ctrl-translation-feedback .bpx-common-svg-icon{height:100%;width:16px}.bpx-player-ctrl-translation-feedback:hover{opacity:.6}.bpx-player-ctrl-description-title{-webkit-box-orient:horizontal;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:12px}.bpx-player-ctrl-description-title .bpx-common-svg-icon{cursor:pointer;height:10px;margin-top:4.5px;width:6px}.bpx-player-ctrl-description-title-text{white-space:nowrap}.bpx-player-ctrl-description-separator{border-bottom:1px solid rgba(229,233,239,.1);margin:5px 0 5px -20px;position:relative;width:calc(100% + 40px)}.bpx-player-ctrl-description-content{font-size:12px;opacity:.8}.bpx-player-ctrl-description-content-highlight{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-description-content p{margin:0 0 8px}.bpx-player-ctrl-description-content ul{list-style:none;margin:0;padding-left:5px}.bpx-player-ctrl-description-content ul li{margin-bottom:4px;padding:0 5px 0 10px;position:relative;text-indent:-10px}.bpx-player-translation-bubble{left:50%;opacity:0;pointer-events:none;position:absolute;top:-50px;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.bpx-player-translation-bubble-body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border-radius:19px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:2px;padding:0 16px 0 8px;position:relative;white-space:nowrap;width:auto}.bpx-player-translation-bubble .bpx-common-svg-icon{height:38px;width:38px}.bpx-player-translation-bubble-text{color:#18191c;font-size:14px;font-weight:400;line-height:20px}.bpx-player-translation-bubble-arrow{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;height:0;left:50%;position:absolute;top:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:0}.bpx-player-ctrl-volume-box{background:hsla(0,0%,8%,.9);border-radius:2px;bottom:41px;display:none;height:100px;left:50%;margin-left:-16px;position:absolute;width:32px}.bpx-player-ctrl-volume-number{color:#e5e9ef;font-size:12px;height:28px;line-height:28px;margin-bottom:2px;text-align:center;width:100%}.bpx-player-ctrl-volume-progress{height:60px!important;margin:0 auto}.bpx-player-ctrl-volume-progress .bui-area{-webkit-box-pack:center!important;-ms-flex-pack:center!important;justify-content:center!important}.bpx-player-ctrl-volume:hover{-webkit-box-sizing:content-box;box-sizing:content-box;margin-top:-10px;padding-top:10px}.bpx-player-ctrl-volume.bpx-state-show .bpx-player-ctrl-volume-box{display:block}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-volume-box,.bpx-player-container[data-screen=web] .bpx-player-ctrl-volume-box{bottom:74px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-volume-box:after,.bpx-player-container[data-screen=web] .bpx-player-ctrl-volume-box:after{height:32px}}.bpx-player-ctrl-setting-box{bottom:41px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:none;font-size:12px;position:absolute;right:-48px;text-align:left}.bpx-player-ctrl-setting-menu{border-radius:2px!important}.bpx-player-ctrl-setting-menu-left{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:6px 20px;width:100%}.bpx-player-ctrl-setting-menu-right{-webkit-box-sizing:border-box;box-sizing:border-box;padding:16px 20px;width:100%}.bpx-player-ctrl-setting-autoplay,.bpx-player-ctrl-setting-list-loop,.bpx-player-ctrl-setting-loop,.bpx-player-ctrl-setting-mirror,.bpx-player-ctrl-setting-more,.bpx-player-ctrl-setting-oped{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:32px;line-height:32px;width:100%}.bpx-player-ctrl-setting-more{cursor:pointer;position:relative;-webkit-transition:color .15s ease-in-out;transition:color .15s ease-in-out}.bpx-player-ctrl-setting-more .bpx-common-svg-icon{fill:#fff;height:100%;position:absolute;right:0;width:16px}.bpx-player-ctrl-setting-more:hover{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-setting-more:hover .bpx-common-svg-icon{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-ctrl-setting-aspect-title,.bpx-player-ctrl-setting-codec-title,.bpx-player-ctrl-setting-handoff-title,.bpx-player-ctrl-setting-loudness-title,.bpx-player-ctrl-setting-others-title{height:16px;line-height:16px;margin-bottom:4px}.bpx-player-ctrl-setting-aspect-content,.bpx-player-ctrl-setting-codec-content,.bpx-player-ctrl-setting-handoff-content,.bpx-player-ctrl-setting-loudness-content{margin-bottom:12px;width:100%}.bpx-player-ctrl-setting-others-content{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;width:100%}.bpx-player-ctrl-setting-others-content .bpx-player-ctrl-setting-checkbox{display:inline-block;height:20px;line-height:20px;width:33.33333333%}.bpx-player-ctrl-setting:hover{margin-top:-10px;padding-top:10px}.bpx-player-ctrl-setting.bpx-state-show .bpx-player-ctrl-setting-box{display:block}.bpx-player-ctrl-setting.bpx-state-right .bui-panel-wrap{height:auto!important}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-ctrl-setting-box,.bpx-player-container[data-screen=web] .bpx-player-ctrl-setting-box{bottom:74px;right:-40px}.bpx-player-container[data-screen=full] .bpx-player-ctrl-setting-box:after,.bpx-player-container[data-screen=web] .bpx-player-ctrl-setting-box:after{height:32px}}.bpx-player-embedded .bpx-player-ctrl-setting-autoplay,.bpx-player-embedded .bpx-player-ctrl-setting-handoff,.bpx-player-embedded .bpx-player-ctrl-setting-oped,.bpx-player-embedded .bpx-player-ctrl-setting-others{display:none}.bpx-player-ctrl-pip-enter{display:block}.bpx-player-ctrl-pip-leave,.bpx-player-ctrl-pip.bpx-state-entered .bpx-player-ctrl-pip-enter{display:none}.bpx-player-ctrl-pip.bpx-state-entered .bpx-player-ctrl-pip-leave{display:block}.bpx-player-ctrl-pip[disabled=true]{cursor:default;opacity:.4;pointer-events:none}.bpx-player-ctrl-wide-enter{display:block}.bpx-player-ctrl-wide-leave,.bpx-player-ctrl-wide.bpx-state-entered .bpx-player-ctrl-wide-enter{display:none}.bpx-player-ctrl-wide.bpx-state-entered .bpx-player-ctrl-wide-leave{display:block}.bpx-player-container[data-screen=full] .bpx-player-ctrl-wide{display:none}.bpx-player-ctrl-web-enter{display:block}.bpx-player-ctrl-web-leave,.bpx-player-ctrl-web.bpx-state-entered .bpx-player-ctrl-web-enter{display:none}.bpx-player-ctrl-web.bpx-state-entered .bpx-player-ctrl-web-leave{display:block}.bpx-player-container[data-screen=full] .bpx-player-ctrl-web{display:none}.bpx-player-ctrl-rotate:hover{-webkit-animation:ctrl-rotate-shake .3s 2 alternate;animation:ctrl-rotate-shake .3s 2 alternate}@-webkit-keyframes ctrl-rotate-shake{0%,to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}25%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}75%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}}@keyframes ctrl-rotate-shake{0%,to{-webkit-transform:rotate(0deg);transform:rotate(0deg)}25%{-webkit-transform:rotate(-5deg);transform:rotate(-5deg)}75%{-webkit-transform:rotate(5deg);transform:rotate(5deg)}}.bpx-player-error-sign{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#18191c;color:#fff;display:none;-ms-flex-direction:column;flex-direction:column;gap:24px;height:100%;justify-content:center;left:0;position:absolute;text-align:center;top:0;width:100%;z-index:58}.bpx-player-error-sign:not([style*="display: none"]){display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-error-sign.bpx-player-error-sign-mini{-webkit-box-align:start;-ms-flex-align:start;-webkit-box-pack:start;-ms-flex-pack:start;align-items:flex-start;background-color:transparent;bottom:88px;gap:0;height:auto;justify-content:flex-start;left:20px;max-width:80%;text-align:left;top:auto;width:auto}.bpx-player-error-sign.bpx-player-error-sign-mini .bpx-player-error-sign-content{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;gap:4px}.bpx-player-error-sign.bpx-player-error-sign-mini .bpx-player-error-sign-message{display:none}.bpx-player-error-sign.bpx-player-error-sign-mini .bpx-player-error-sign-details{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.bpx-player-error-sign.bpx-player-error-sign-mini .bpx-player-error-sign-code{color:#ff8a65;font-size:16px;font-weight:700;line-height:1.2}.bpx-player-error-sign.bpx-player-error-sign-mini .bpx-player-error-sign-host{color:#e0e0e0;font-size:14px;font-weight:400;line-height:1.2}.bpx-player-error-sign .bpx-player-error-sign-content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}.bpx-player-error-sign .bpx-player-error-sign-message{color:#fff;font-size:20px;font-weight:500;line-height:28px}.bpx-player-error-sign .bpx-player-error-sign-details{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:4px}.bpx-player-error-sign .bpx-player-error-sign-code{color:#9499a0;font-size:14px;font-weight:400;line-height:24px}.bpx-player-error-sign .bpx-player-error-sign-displayid,.bpx-player-error-sign .bpx-player-error-sign-host{color:#61666d;font-size:12px;font-weight:400;line-height:17px;max-width:600px;word-break:break-all}.bpx-player-error-sign .bpx-player-error-sign-local-network-tip{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:hsla(0,0%,100%,.05);border:1px solid hsla(0,0%,100%,.1);border-radius:8px;display:none;-ms-flex-direction:row;flex-direction:row;gap:20px;max-width:600px;padding:20px;text-align:left}.bpx-player-error-sign .bpx-player-error-sign-local-network-tip:not([style*="display: none"]){display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-error-sign .bpx-player-error-sign-local-network-content{-webkit-box-flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;gap:16px}.bpx-player-error-sign .bpx-player-error-sign-local-network-title{color:#fff;font-size:14px;font-weight:500;line-height:24px}.bpx-player-error-sign .bpx-player-error-sign-local-network-steps{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}.bpx-player-error-sign .bpx-player-error-sign-local-network-steps p{color:hsla(0,0%,100%,.8);font-size:12px;font-weight:400;line-height:20px;margin:0}.bpx-player-error-sign .bpx-player-error-sign-local-network-image{-ms-flex-negative:0;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;flex-shrink:0;height:auto;justify-content:center;width:260px}.bpx-player-error-sign .bpx-player-error-sign-local-network-image img,.bpx-player-error-sign .bpx-player-error-sign-local-network-image svg{border-radius:8px;-webkit-box-shadow:0 4px 12px rgba(0,0,0,.15);box-shadow:0 4px 12px rgba(0,0,0,.15);height:auto;width:100%}.bpx-player-error-sign .bpx-player-error-sign-retry-btn{background:#00aeec;border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:16px;font-weight:400;height:40px;line-height:22px;min-width:190px;padding:7px 36px;-webkit-transition:all .3s ease;transition:all .3s ease}.bpx-player-error-sign .bpx-player-error-sign-retry-btn:hover{background:#00a3dc}.bpx-player-error-sign .bpx-player-error-sign-retry-btn:active{background:#0098cc}.bpx-player-wordcloud{bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-transition:all 1s linear;transition:all 1s linear;visibility:hidden;z-index:5}.bpx-player-wordcloud.bpx-player-show{opacity:1;visibility:visible}.bpx-player-wordcloud.bpx-player-hide{opacity:0;visibility:hidden}.bpx-player-wordcloud-bg{-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;font-size:0;pointer-events:none;position:absolute;text-align:center;-webkit-transform-origin:left top;transform-origin:left top;white-space:nowrap;width:58px}.bpx-player-wordcloud-bg>img{opacity:0;position:relative;z-index:40}.bpx-player-wordcloud-bg>canvas{left:0;opacity:.3;position:absolute;top:0}.bpx-player-wordcloud-bg-cv,.bpx-player-wordcloud-bg-cv>canvas,.bpx-player-wordcloud-bg-shadow,.bpx-player-wordcloud-bg-shadow>canvas,.bpx-player-wordcloud-bg-shine,.bpx-player-wordcloud-bg-shine>canvas{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-wordcloud-bg-shadow{opacity:.3}.bpx-player-wordcloud-bg-shine{opacity:0}.bpx-player-wordcloud-bg-src{opacity:1;-webkit-transform-origin:center center;transform-origin:center center}.bpx-player-wordcloud-bg-vc{height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.bpx-player-play-pause-button{fill:#fff;cursor:pointer;-webkit-filter:drop-shadow(0 4px 4px rgba(0,0,0,.25));filter:drop-shadow(0 4px 4px rgba(0,0,0,.25));height:50px;left:50%;margin-left:-25px;margin-top:-25px;position:absolute;top:50%;width:50px;z-index:54}.bpx-player-play-pause-button .bpx-common-svg-icon{height:60px;width:60px}.bpx-player-ctrl-aspect{display:none}.bpx-player-ctrl-aspect .bpx-common-svg-icon{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.bpx-player-ctrl-aspect .bpx-common-svg-icon svg{width:16px}.bpx-player-mars-container{cursor:pointer;position:absolute;right:50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:70}.bpx-player-mars-container .bpx-player-mars-pic{height:auto;width:100px}.bpx-player-dm-setting{color:#fff}.bpx-player-dm-setting-box{border-radius:2px}.bpx-player-dm-setting-expand-interaction-area:before{background-color:#fff;bottom:-24px;content:"";height:30px;left:50%;opacity:0;position:absolute;-webkit-transform:translateX(-25px);transform:translateX(-25px);width:50px}.bpx-player-dm-setting-wrap{background:none;border:none;border-radius:4px 4px 0 0;bottom:46px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:default;font-size:12px;height:359px;position:absolute;right:-149px;text-align:left;width:320px;z-index:1001}.bpx-player-dm-setting-wrap.bpx-player-right-wrap .bpx-player-dm-setting-left{display:none}.bpx-player-dm-setting-wrap.bpx-player-right-wrap .bpx-player-dm-setting-right{display:block}.bpx-player-dm-setting-box{bottom:0;position:absolute;right:0}.bpx-player-dm-setting-left{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:12px 20px;width:100%}.bpx-player-dm-setting-left-radio{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;margin-bottom:12px}.bpx-player-dm-setting-left-block{margin-bottom:12px;overflow:hidden}.bpx-player-dm-setting-left-block-title{margin-bottom:5px}.bpx-player-dm-setting-left-block-content{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:42px;overflow:hidden;position:relative}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type{-webkit-box-sizing:border-box;box-sizing:border-box;color:hsla(0,0%,100%,.8);height:100%;margin:0 22px 16px 0;position:relative;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:28px}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type>span{pointer-events:none}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type .bpx-player-block-filter-image{fill:hsla(0,0%,100%,.8);color:hsla(0,0%,100%,.8);display:inline-block;font-size:0;height:28px;line-height:28px;position:relative;width:28px}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type .bpx-player-block-filter-image .bpx-common-svg-icon{height:100%!important;pointer-events:none}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type .bpx-player-block-filter-label{bottom:-2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:hsla(0,0%,100%,.8);font-size:12px;height:16px;left:0;line-height:16px;margin:0;padding:0;position:absolute;text-align:center;-webkit-transition:none;transition:none;width:100%}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type:hover .bpx-player-block-filter-image{fill:#fff;color:#fff}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type:hover .bpx-player-block-filter-label{color:#fff}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type.bpx-player-active .bpx-player-block-filter-image{fill:#00a1d6!important;fill:var(--bpx-fn-color,#00a1d6)!important;color:#00a1d6!important;color:var(--bpx-fn-color,#00a1d6)!important}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type.bpx-player-active .bpx-player-block-filter-label{color:#00a1d6!important;color:var(--bpx-fn-color,#00a1d6)!important}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type[data-type=typeSpecial] .bpx-player-block-filter-label{left:-6px}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type[data-type=typeSpecial] .bpx-player-block-filter-label .bpx-player-block-advanced-more{display:inline-block;height:14px;left:28px;pointer-events:all;position:absolute;top:1px;width:14px}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type[data-type=typeSpecial] .bpx-player-block-filter-label .bpx-player-block-advanced-more:hover{cursor:pointer}.bpx-player-dm-setting-left-block-content .bpx-player-block-filter-type[data-type=typeSpecial] .bpx-player-block-filter-label .bpx-player-block-advanced-more svg{height:100%;width:100%}.bpx-player-dm-setting-left-block-word{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;line-height:24px;margin-bottom:14px;text-align:center;width:100%}.bpx-player-dm-setting-left-block-word .bpx-player-dm-setting-left-block-add,.bpx-player-dm-setting-left-block-word .bpx-player-dm-setting-left-block-sync{background:hsla(0,0%,100%,.3);border-radius:2px;cursor:pointer;width:134px}.bpx-player-dm-setting-left-block-word .bpx-player-dm-setting-left-block-add:hover,.bpx-player-dm-setting-left-block-word .bpx-player-dm-setting-left-block-sync:hover{background:hsla(0,0%,100%,.4)}.bpx-player-dm-setting-left-dmDensity{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;background-color:hsla(0,0%,100%,.3);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;font-weight:400;height:26px;justify-content:space-between;margin-bottom:16px;opacity:1;width:100%}.bpx-player-dm-setting-left-dmDensity-left-area{-webkit-box-pack:center;-ms-flex-pack:center;cursor:pointer;justify-content:center;padding-left:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-dm-setting-left-dmDensity-left-area,.bpx-player-dm-setting-left-dmDensity-right-area,.bpx-player-dm-setting-left-dmDensity-right-area .bpx-player-dm-setting-density{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.bpx-player-dm-setting-left-dmDensity-right-area .bpx-player-dm-setting-density{-webkit-box-pack:center;-ms-flex-pack:center;color:#fff;cursor:pointer;justify-content:center;opacity:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:56px}.bpx-player-dm-setting-left-dmDensity-right-area .bpx-player-dm-setting-density[data-density=more]:after,.bpx-player-dm-setting-left-dmDensity-right-area .bpx-player-dm-setting-density[data-density=normal]:after{background-color:hsla(0,0%,100%,.2);content:"";display:inline-block;height:13px;margin-left:15px;width:1px}.bpx-player-dm-setting-left-dmDensity-right-area .bpx-player-dm-setting-density[data-density=most]{-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:-7px;padding-right:4px}.bpx-player-dm-setting-left-dmDensity-right-area .bpx-player-dm-setting-density.active{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-dm-setting-left-area,.bpx-player-dm-setting-left-fontsize,.bpx-player-dm-setting-left-opacity,.bpx-player-dm-setting-left-speedplus{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:16px;line-height:16px;margin-bottom:16px;width:100%}.bpx-player-dm-setting-left-area.dm-density-active{margin-bottom:10px}.bpx-player-dm-setting-left-area-title,.bpx-player-dm-setting-left-block-title,.bpx-player-dm-setting-left-fontsize-title,.bpx-player-dm-setting-left-opacity-title,.bpx-player-dm-setting-left-speedplus-title{text-wrap:nowrap;color:#fff;height:16px;line-height:16px;text-align:left;width:61px}.bpx-player-dm-setting-left-area-content,.bpx-player-dm-setting-left-fontsize-content,.bpx-player-dm-setting-left-opacity-content,.bpx-player-dm-setting-left-speedplus-content{-webkit-box-flex:1;-ms-flex:1;flex:1;height:12px;margin-left:10px;width:200px}.bpx-player-dm-setting-left-more{fill:#fff;border-top:1px solid hsla(0,0%,100%,.1);clear:left;color:#fff;cursor:pointer;height:16px;line-height:16px;padding-top:10px;position:relative;text-align:left;top:10px}.bpx-player-dm-setting-left-more-text{display:inline-block;-webkit-transition:color .3s;transition:color .3s;vertical-align:middle}.bpx-player-dm-setting-left-more-senior-text{color:hsla(0,0%,100%,.6);display:none;float:right;margin-right:10px}.bpx-player-dm-setting-left-more .bpx-common-svg-icon{height:16px;margin-right:-3px;position:absolute;right:0;vertical-align:middle;width:16px}.bpx-player-dm-setting-left-more:hover{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-dm-setting-left-more-senior-tip .bpx-player-dm-setting-left-more-text:after{background:#f25d8e;border-radius:50%;content:"";display:inline-block;height:4px;margin:2px;vertical-align:text-top;width:4px}.bpx-player-dm-setting-left-more-senior-tip .bpx-player-dm-setting-left-more-senior-text{display:block}.bpx-player-dm-setting-right{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:0 20px;width:100%}.bpx-player-dm-setting-right .bui-select,.bpx-player-dm-setting-right-more{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-dm-setting-right-more{fill:#fff;color:#fff;cursor:pointer;height:32px;line-height:1;line-height:32px;text-align:left}.bpx-player-dm-setting-right-more-text{display:inline-block;-webkit-transition:color .3s;transition:color .3s;vertical-align:middle}.bpx-player-dm-setting-right-more .bpx-common-svg-icon{cursor:pointer;display:inline-block;height:30px;margin-left:-3px;vertical-align:middle;width:20px}.bpx-player-dm-setting-right-more:hover{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-dm-setting-right-separator{border-bottom:1px solid rgba(229,233,239,.1);position:relative;right:20px;width:305px}.bpx-player-dm-setting-right-senior{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:46px;justify-content:center;padding-top:12px;position:relative}.bpx-player-dm-setting-right-senior-disable{display:none}.bpx-player-dm-setting-right-senior-bg{height:48px;margin-left:-10px;position:absolute;width:246px;z-index:-1}.bpx-player-dm-setting-right-senior-title{margin-top:5px}.bpx-player-dm-setting-right-senior-title .bpx-common-svg-icon{display:inline;line-height:15px;vertical-align:middle}.bpx-player-dm-setting-right-senior-title .bpx-common-svg-icon svg{height:14px;width:29px}.bpx-player-dm-setting-right-senior-btn{position:absolute!important;right:0;top:25px}.bpx-player-dm-setting-right-speedsync{height:16px;line-height:16px;margin-bottom:6px;margin-bottom:12px;margin-top:12px;right:2px}.bpx-player-dm-setting-right-font{margin-bottom:12px}.bpx-player-dm-setting-right-font-content{float:left;margin-bottom:12px}.bpx-player-dm-setting-right-font-content-fontfamily{width:164px}.bpx-player-dm-setting-right-font-content-fontfamilycustom{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;height:22px;line-height:24px;margin-top:10px;width:166px}.bpx-player-dm-setting-right-font-content .bpui-selectmenu{border-radius:0}.bpx-player-dm-setting-right-font-content .bpui-selectmenu-list li{-webkit-box-sizing:border-box;box-sizing:border-box;height:22px;line-height:22px;width:100%}.bpx-player-dm-setting-right-font-content .bpui-selectmenu-list li:hover{background:#e7e7e7}.bpx-player-dm-setting-right-font-bold{color:#212121;float:left;height:16px;left:14px;line-height:16px;position:relative;top:4px}.bpx-player-dm-setting-right-font-bold label:hover,.bpx-player-dm-setting-right-font-bold label:hover .bpui-icon-checkbox.icon-12checkbox{-webkit-box-shadow:none!important;box-shadow:none!important}.bpx-player-dm-setting-right-font-bold:hover .bpui-checkbox-text{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-dm-setting-right-font-bold:hover .bpui-icon-checkbox.icon-12checkbox{border:1px solid #00a1d6;border:1px solid var(--bpx-primary-color,#00a1d6);-webkit-box-shadow:none;box-shadow:none}.bpx-player-dm-setting-right-fontborder{clear:left;line-height:14px;margin-bottom:12px}.bpx-player-dm-setting-right-fontborder-content.bpui-tab-list-type-button{width:100%}.bpx-player-dm-setting-right-fontborder-content .bpui-tab-list{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;width:100%}.bpx-player-dm-setting-right-fontborder-content .bpui-tab-list .bpui-tab-list-row{background:#999;border-radius:2px;color:#fff;cursor:pointer;height:24px;line-height:24px;margin:0;padding:0;width:70px}.bpx-player-dm-setting-right-fontborder-content .bpui-tab-list .bpui-tab-list-row:hover{background:#757575;color:#fff}.bpx-player-dm-setting-right-fontborder-content .bpui-tab-list .bpui-tab-list-row.bpui-state-selected{background:#00a1d6;background:var(--bpx-primary-color,#00a1d6);color:#fff;margin:0;padding:0}.bpx-player-dm-setting-right-font-title,.bpx-player-dm-setting-right-fontborder-title,.bpx-player-dm-setting-right-type-title{clear:left;color:#fff;height:16px;line-height:16px;margin-bottom:4px;text-align:left}.bpx-player-dm-setting-right-reset{height:30px;line-height:30px}.bpx-player-dm-setting-right-reset.bui-button{height:22px;line-height:22px;margin-top:9px;width:116px}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-dm-setting-wrap,.bpx-player-container[data-screen=web] .bpx-player-dm-setting-wrap{bottom:63px;right:-105px}}.bpx-player-container[data-revision="2"] .bpx-player-dm-setting-wrap{right:-256px!important}.bpx-player.mode-fullscreen .bpx-player-mode-selection-container,.bpx-player.mode-webfullscreen .bpx-player-mode-selection-container{bottom:66px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip{-webkit-box-sizing:border-box;box-sizing:border-box;height:270px;margin-left:-216px;width:433px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip.bpx-player-mode-selection-isadmin .bpx-player-mode-selection-panel{max-height:240px;min-height:184px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip.bpx-player-mode-selection-isadmin .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.fontsize,.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip.bpx-player-mode-selection-isadmin .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.pool{margin-bottom:0}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip.bpx-player-mode-selection-isadmin .bpx-player-mode-selection-panel .vip-color{height:44px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip .bpx-player-mode-selection-panel{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;height:100%}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.fontsize .row-selection{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.color{height:88px;margin-top:4px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.vip-color{height:44px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode{height:60px}.bpx-player-mode-selection-container.bpx-player-mode-selection-isVip:after{background:rgba(229,233,239,.1);content:"";height:156px;left:216px;position:absolute;top:16px;width:1px}.bpx-player-mode-selection-container{background:hsla(0,0%,8%,.9);border-radius:2px;bottom:39px;-webkit-box-sizing:border-box;box-sizing:border-box;display:none;height:auto;left:50%;margin-left:-108px;padding:2px 0 0;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:216px;z-index:1001}.bpx-player-mode-selection-container.active{display:block}.bpx-player-mode-selection-container.bpx-player-mode-selection-hasUp .bpx-player-mode-selection-panel .bpx-player-mode-selection-row{opacity:.5;pointer-events:none}.bpx-player-mode-selection-container.bpx-player-mode-selection-hasUp .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode,.bpx-player-mode-selection-container.bpx-player-mode-selection-hasUp .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.updm{opacity:1;pointer-events:auto}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel{display:block;position:relative}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row{font-size:12px;line-height:22px;margin:10px 20px;min-height:22px;position:relative;width:176px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-title{color:#fff;line-height:16px;text-align:left}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:8px -8px 0 0}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection.little-font .selection-span[data-type=fontsize]{height:22px;margin-bottom:8px;width:38px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .bui-input .bui-input-input{-webkit-transition:none;transition:none}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span{background:hsla(0,0%,100%,.2);border-radius:2px;color:#fff;cursor:pointer;font-size:12px;margin-right:8px;position:relative;text-align:center}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span:last-child{margin-right:8px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span[data-type=pool]{width:84px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span[data-type=fontsize]{margin-bottom:8px;width:84px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span.active{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);color:#fff}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span.active:hover{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6)}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span.active .selection-icon i{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);opacity:1}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span:hover{background:hsla(0,0%,100%,.4)}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span.js-action>span{pointer-events:none}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span .selection-icon{border-radius:2px;display:block;font-size:26px;height:26px;overflow:hidden;position:relative;text-align:center;width:26px;z-index:1}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span .selection-span-mask{bottom:0;cursor:default;left:0;position:absolute;right:0;top:0;z-index:10}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span .selection-span-mask span{background:rgba(0,0,0,.8);border-radius:4px;color:#fff;font-size:12px;height:0;left:10px;line-height:1.4;opacity:0;overflow:hidden;padding:0;position:absolute;top:10px;white-space:nowrap;width:0;z-index:-1}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span .selection-span-mask span:before{border:4px solid transparent;border-top-color:#000;bottom:-8px;content:"";height:0;left:10px;position:absolute;width:0}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .row-selection .selection-span .selection-span-mask:hover span{height:auto;opacity:1;overflow:visible;padding:2px 4px;top:-24px;width:auto;z-index:49}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .vip-danmaku-color ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:4px;margin-right:-10.66666667px;padding:0}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .vip-danmaku-color li{background-position:50%;background-repeat:no-repeat;background-size:cover;border:1px solid rgba(0,0,0,.3);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:16px;margin-right:10.66666667px;width:16px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row .vip-danmaku-color .active{border:1px solid rgba(0,0,0,.3);-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-span{fill:hsla(0,0%,100%,.8);background:transparent;color:hsla(0,0%,100%,.8);margin:-4px 22px 0 0}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-span.disabled,.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-span.disabled:hover{fill:hsla(0,0%,100%,.4);background:transparent;color:hsla(0,0%,100%,.4)}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-span.active,.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-span.active:hover{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6);background:transparent;color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-span:hover{fill:#fff;background:transparent;color:#fff}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .selection-name{display:block;line-height:14px}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.mode .bp-svgicon{-webkit-transition:none;transition:none}.bpx-player-mode-selection-container .bpx-player-mode-selection-panel .bpx-player-mode-selection-row.updm{margin-top:0;text-align:left}.bpx-player-mode-selection-container .bpx-player-mode-selection-mask{background:rgba(0,0,0,.8);bottom:0;display:none;left:0;position:absolute;right:0;text-align:center;top:0;z-index:49}.bpx-player-mode-selection-container .bpx-player-mode-selection-mask .bpx-player-mode-selection-mask-warning{height:26px;left:50%;line-height:26px;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:76px}.bpx-player-mode-selection-container.disabled .bpx-player-mode-selection-mask{display:block}.bpx-player-container[data-revision="2"] .bpx-player-mode-selection-container{left:150px!important}.bpx-player-qoeFeedback{background-color:rgba(24,25,28,.8);border-radius:20px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;font-size:14px;height:auto;left:50%;left:var(--left,50%);padding:2px 10px 2px 2px;pointer-events:auto;position:absolute;top:50%;top:var(--top,50%);-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1);-webkit-transform:translate(-50%,-50%) scale(var(--scale,1));transform:translate(-50%,-50%) scale(var(--scale,1));-webkit-transform-origin:center;transform-origin:center;-webkit-transition:opacity .35s;transition:opacity .35s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:auto}.bpx-player-qoeFeedback-title{-webkit-box-pack:left;-ms-flex-pack:left;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:left;line-height:17px;text-align:center;white-space:nowrap}.bpx-player-qoeFeedback-title-icon{background-color:#00a1d6;border-radius:50%;display:inline-block;height:20px;margin-right:6px;width:20px}.bpx-player-qoeFeedback-score-star-wrap{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:24px;justify-content:space-between;margin-top:8px;width:176px}.bpx-player-qoeFeedback-score-star{margin-right:14px}.bpx-player-qoeFeedback-score-star img{height:24px;width:24px}.bpx-player-qoeFeedback-score{border-radius:15px;min-width:216px;padding:10px 14px}.bpx-player-qoeFeedback-score .bpx-player-qoeFeedback-title{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:center;line-height:17px;text-align:center}.bpx-player-qoeFeedback-score .bpx-player-qoeFeedback-title-icon{background-color:#00a1d6;border-radius:50%;display:inline-block;height:16px;margin-right:4px;width:16px}.bpx-player-qoeFeedback-vote{border-radius:8px;min-width:175px;padding:8px}.bpx-player-qoeFeedback-vote .bpx-player-qoeFeedback-vote-item{background-color:#fff;border-radius:4px;color:#000;line-height:16.8px;margin-top:4px;padding:4px 8px;width:auto}.bpx-player-qoeFeedback-vote .bpx-player-qoeFeedback-vote-item-text{font-size:12px;pointer-events:none}.bpx-player-qoeFeedback-vote .bpx-player-qoeFeedback-title{-webkit-box-pack:left;-ms-flex-pack:left;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;justify-content:left;line-height:17px;text-align:center}.bpx-player-qoeFeedback-vote .bpx-player-qoeFeedback-title-icon{background-color:#00a1d6;border-radius:50%;display:inline-block;height:12px;margin-right:2.5px;width:12px}.bpx-player-skipcard,.bpx-player-stardcard{background:rgba(0,0,0,.8);border-radius:4px;bottom:63px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;height:40px;left:23px;opacity:0;padding:6px 12px;pointer-events:auto;position:absolute;text-align:left;-webkit-transform:translateX(-10px);transform:translateX(-10px);-webkit-transition:all .33s;transition:all .33s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;width:162px;z-index:69}.bpx-player-skipcard.bpx-player-show,.bpx-player-stardcard.bpx-player-show{opacity:1;-webkit-transform:translateX(0);transform:translateX(0);visibility:visible}.bpx-player-skipcard{height:56px;padding:6px 16px 6px 6px;width:238px}.bpx-player-skipcard-left{-webkit-box-flex:0;border-radius:4px;-ms-flex:none;flex:none;height:44px;margin-right:6px;overflow:hidden;width:44px}.bpx-player-skipcard-left-img{height:100%;width:100%}.bpx-player-skipcard-center{-webkit-box-flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:auto;flex:auto;-ms-flex-direction:column;flex-direction:column;justify-content:center}.bpx-player-skipcard-center-label{line-height:1.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:96px}.bpx-player-skipcard-center .bpx-player-skipcard-center-content{color:#999;font-size:14px;overflow:hidden;text-overflow:ellipsis;-webkit-transform:scale(.83);transform:scale(.83);-webkit-transform-origin:top left;transform-origin:top left;white-space:nowrap;width:115px}.bpx-player-skipcard-right{border:1px solid #00a1d6;border:1px solid var(--bpx-fn-color,#00a1d6);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);cursor:pointer;font-size:13px;height:24px;line-height:22px;overflow:hidden;position:absolute;right:16px;text-align:center;text-overflow:ellipsis;top:16px;white-space:nowrap;width:64px}.bpx-player-skipcard-right:hover{border:1px solid #00b5e5;border:1px solid var(--bpx-fn-hover-color,#00b5e5);color:#00b5e5;color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-stardcard{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.808)),to(rgba(74,74,74,.808)));background:linear-gradient(270deg,rgba(0,0,0,.808),rgba(74,74,74,.808));font-size:12px}.bpx-player-stardcard-left{width:115px}.bpx-player-stardcard-left,.bpx-player-stardcard-right{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bpx-player-stardcard-right{-webkit-box-flex:0;background-color:#f25d8e;border:none;border-radius:3px;color:#fff;cursor:pointer;-ms-flex:none;flex:none;font-size:12px;line-height:24px;right:12px;text-align:center;top:9px;width:58px}.bpx-player-stardcard-right:hover{background-color:#ff85ad}.bpx-player-stardcard-right.bpx-player-active{background-color:rgba(0,0,0,.3)}.bpx-player-container[data-screen=full] .bpx-player-skipcard,.bpx-player-container[data-screen=full] .bpx-player-stardcard,.bpx-player-container[data-screen=web] .bpx-player-skipcard,.bpx-player-container[data-screen=web] .bpx-player-stardcard{bottom:74px}.bpx-player-container[data-screen=mini] .bpx-player-skipcard,.bpx-player-container[data-screen=mini] .bpx-player-stardcard{display:none}.bpx-player-new-dialogue-area{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:999}.bpx-player-dm-up-menu-dialog::part(overlay){pointer-events:none}.bpx-player-dm-up-menu-dialog::part(panel){background:rgba(33,33,33,.949);border-radius:4px;-webkit-box-shadow:0 8px 32px rgba(0,0,0,.32);box-shadow:0 8px 32px rgba(0,0,0,.32);pointer-events:all;width:308px}.bpx-player-dm-up-menu-dialog::part(base){position:static!important}.bpx-player-dm-up-menu-dialog::part(header){-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;min-height:40px;padding:0 20px;position:relative}.bpx-player-dm-up-menu-dialog::part(body){margin-top:12px;padding:0 20px 20px}.bpx-player-dm-up-menu-dialog::part(footer){border-top:1px solid hsla(0,0%,100%,.08);padding:12px 20px}.bpx-player-dm-up-menu-dialog::part(close-button){color:#fff;cursor:pointer;font-size:10px;height:10px;margin-left:16px;position:absolute;right:15px;top:12px;width:10px;z-index:2}.bpx-player-dm-up-menu-header .bpx-player-dm-up-menu-title{-webkit-line-clamp:3;-webkit-box-orient:vertical;color:#fff;display:-webkit-box;font-size:16px;font-weight:500;line-height:22px;margin-bottom:4px;margin-top:18px;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.bpx-player-dm-up-menu-header .bpx-player-dm-up-menu-meta{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:hsla(0,0%,100%,.6);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:17px;margin-bottom:0;margin-top:6px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-group{background:hsla(210,8%,95%,.102);border-radius:8px;margin-bottom:12px;overflow:hidden}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:52px;padding:0 16px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item.bpx-player-dm-up-menu-item-has-desc{height:71px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-icon{height:20px;margin-right:10px;width:20px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-item-content{-webkit-box-flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;justify-content:center}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-item-content .bpx-player-dm-up-menu-item-title{color:#fff;font-size:14px;line-height:20px;margin-bottom:0}.bpx-player-dm-up-menu-item-has-desc .bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-item-content{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.bpx-player-dm-up-menu-item-has-desc .bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-item-content .bpx-player-dm-up-menu-item-title{margin-bottom:4px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-item-content .bpx-player-dm-up-menu-desc{color:#c9ccd0;font-size:12px;line-height:17px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item .bpx-player-dm-up-menu-arrow{display:inline-block;height:12px;margin-left:8px;position:relative;vertical-align:middle;width:12px}.bpx-player-dm-up-menu-list .bpx-player-dm-up-menu-item-alone{background:hsla(210,8%,95%,.102);border-radius:8px;overflow:hidden}.bpx-player-dm-up-menu-blacklist-dialog::part(panel){background:#232324;border-radius:16px;color:#fff;padding:0;pointer-events:all;width:308px}.bpx-player-dm-up-menu-blacklist-dialog::part(base){position:static!important}.bpx-player-dm-up-menu-blacklist-dialog::part(header){position:relative}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-close{background:url('+m+') no-repeat 50% /contain;cursor:pointer;height:24px;position:absolute;right:18px;top:18px;width:24px;z-index:10}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-title{font-size:16px;font-weight:500;line-height:26px;text-align:center}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-list{color:#fff;font-size:14px;line-height:20px;list-style:disc;margin:4px auto auto;padding:0 0 0 24px;width:164px}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-footer{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin-bottom:20px}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-footer button{border:none;border-radius:6px;cursor:pointer;font-size:14px;height:34px;outline:none;width:130px}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-footer .bpx-player-blacklist-cancel{background:hsla(0,0%,100%,.2);color:#fff;margin-right:8px}.bpx-player-dm-up-menu-blacklist-dialog .bpx-player-blacklist-footer .bpx-player-blacklist-confirm{background:#fff;color:#18191c}.bpx-player-dm-up-menu-blacklist-dialog::part(close-button){color:#fff;cursor:pointer;font-size:10px;height:10px;margin-left:16px;position:absolute;right:15px;top:15px;width:10px;z-index:2}.bpx-player-dm-up-menu-blacklist-dialog::part(overlay){pointer-events:none}.bpx-player-dm-up-menu-blacklist-dialog::part(body){margin-bottom:20px}.bpx-player-dm-up-menu-arrow{margin-left:8px}.bpx-player-dm-up-menu-arrow,.bpx-player-dm-up-menu-meta-arrow{display:inline-block;height:12px;position:relative;vertical-align:middle;width:12px}.bpx-player-dm-up-menu-meta-arrow{margin-left:0}.bpx-player-color-panel{-webkit-font-smoothing:antialiased;background-color:rgba(33,33,33,.9);border-radius:4px;color:#fff;left:50%;pointer-events:auto;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:400px;z-index:80}.bpx-player-color-panel-title{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:16px;line-height:40px;margin-bottom:10px;text-align:center}.bpx-player-color-panel-close{fill:#fff;color:#fff;cursor:pointer;height:22px;line-height:22px;position:absolute;right:10px;top:10px;width:22px}.bpx-player-color-panel .bpx-player-color-wrap{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;line-height:20px;padding:5px 10px 5px 20px}.bpx-player-color-panel-name{-webkit-box-flex:0;-ms-flex:none;flex:none;height:20px;width:50px}.bpx-player-color-panel-slider{-webkit-box-flex:1;-ms-flex:1;flex:1;width:250px}.bpx-player-color-panel-value{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40px}.bpx-player-color-panel-reset{border-top:1px solid hsla(0,0%,100%,.1);margin-top:10px;padding:8px 0}.bpx-player-color-panel-btn{background:hsla(0,0%,100%,.3);cursor:pointer}.bpx-player-color-panel-btn:hover{background:hsla(0,0%,100%,.4)}.bpx-player-container[data-screen=full] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug,.bpx-player-container[data-screen=web] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug{background-color:rgba(33,33,33,.9);border:none;border-radius:4px 4px 0 0;bottom:100%;top:auto}.bpx-player-container[data-screen=full] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-title,.bpx-player-container[data-screen=web] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-title{color:#61666d}.bpx-player-container[data-screen=full] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-list,.bpx-player-container[data-screen=web] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-list{color:#c9ccd0}.bpx-player-container[data-screen=full] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-item,.bpx-player-container[data-screen=web] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-item{border:1px solid #61666d}.bpx-player-container[data-screen=full] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel,.bpx-player-container[data-screen=web] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel{background:transparent;color:#fff}.bpx-player-container[data-screen=full] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel.carousel-show~input.bpx-player-dm-input,.bpx-player-container[data-screen=web] .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel.carousel-show~input.bpx-player-dm-input{opacity:0}.bpx-player-light-weight .bpx-player-sending-area{display:none}.bpx-player-sending-area:before{background:#f4f4f4;content:"";display:block;height:1px;margin-bottom:-1px;width:100%}.bpx-player-sending-bar{-webkit-box-flex:0;-webkit-box-pack:justify;-ms-flex-pack:justify;background:#fff;background:var(--bpx-dmsend-main-bg,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:none;flex:none;font-size:12px;height:46px;justify-content:space-between;padding:0 12px 0 20px}.bpx-player-sending-bar .bpx-player-video-info{-ms-flex-negative:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#505050;color:var(--bpx-dmsend-info-font,#505050);display:-webkit-box;display:-ms-flexbox;display:flex;flex-shrink:1;height:16px;line-height:12px;margin-right:12px;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;width:132px}.bpx-player-sending-bar .bpx-player-video-info.bpx-player-hide-dm .bpx-player-video-info-divide,.bpx-player-sending-bar .bpx-player-video-info.bpx-player-hide-dm .bpx-player-video-info-dm,.bpx-player-sending-bar .bpx-player-video-info.bpx-player-hide-online .bpx-player-video-info-divide,.bpx-player-sending-bar .bpx-player-video-info.bpx-player-hide-online .bpx-player-video-info-online{display:none}.bpx-player-sending-bar .bpx-player-video-info.bpx-player-hide-dm .bpx-player-video-info-online{margin-right:0}.bpx-player-sending-bar .bpx-player-video-info-dm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bpx-player-sending-bar .bpx-player-video-info-dm-num{-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:700}.bpx-player-sending-bar .bpx-player-video-info-online{position:relative}.bpx-player-sending-bar .bpx-player-video-info-online-num{-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:700}.bpx-player-sending-bar .bpx-player-video-info.bpx-player-video-info-ugc{-ms-flex-negative:0;flex-shrink:0;margin-right:24px;width:auto}.bpx-player-sending-bar .bpx-player-video-info.bpx-player-video-info-ugc~.bpx-player-dm-root .bpx-player-video-inputbar{-webkit-box-flex:1;-ms-flex:1;flex:1;min-width:0;width:auto}.bpx-player-sending-bar .bpx-player-video-info.bpx-player-video-info-ugc~.bpx-player-dm-root .bpx-player-video-inputbar-wrap{min-width:0;width:auto}.bpx-player-sending-bar .bpx-player-dm-root{-webkit-box-flex:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:auto;flex:auto;height:34px}.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-switch.bui-disabled{cursor:not-allowed;pointer-events:none}.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting,.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-switch{cursor:pointer;height:30px;line-height:30px;margin-right:12px;position:relative;width:30px}.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting.disabled{cursor:not-allowed!important;opacity:.4!important;pointer-events:none}.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting.disabled:hover{fill:#757575!important;fill:var(--bpx-dmsend-switch-icon,#757575)!important}.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting{fill:#757575;fill:var(--bpx-dmsend-switch-icon,#757575);-webkit-box-sizing:border-box;box-sizing:border-box;font-size:0;height:46px;padding:11px 0}.bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting:hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-sending-bar .bpx-player-video-btn-dm{-webkit-box-flex:0;fill:#757575;fill:var(--bpx-dmsend-switch-icon,#757575);-webkit-box-sizing:border-box;box-sizing:border-box;color:hsla(0,0%,100%,.8);cursor:pointer;-ms-flex:none;flex:none;height:30px;line-height:30px;padding:3px 0;position:relative;text-align:center;width:30px}.bpx-player-sending-bar .bpx-player-video-btn-dm:hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-sending-bar .bpx-player-video-btn-dm:hover:after{bottom:26px;content:"";height:20px;left:0;position:absolute;width:100%}.bpx-player-sending-bar .bpx-player-video-btn-dm:hover .bpx-player-mode-selection-container{opacity:1;visibility:visible}.bpx-player-sending-bar .bpx-player-video-btn-dm .bpx-player-iconfont{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%}.bpx-player-sending-bar .bpx-player-video-btn-dm .bpx-player-iconfont .bpx-common-svg-icon{display:block;height:24px;width:36px}.bpx-player-sending-bar .bpx-player-video-inputbar{-ms-flex-align:center;-ms-flex-positive:1;background:#f4f4f4;background:var(--bpx-dmsend-input-bg,#f4f4f4);border-radius:2px;color:#999;flex-grow:1;width:300px}.bpx-player-sending-bar .bpx-player-video-inputbar,.bpx-player-sending-bar .bpx-player-video-inputbar-wrap{-webkit-box-align:center;-webkit-box-flex:1;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap{-ms-flex-align:center;border:1px solid #e7e7e7;border:1px solid var(--bpx-dmsend-border,#e7e7e7);border-radius:2px 0 0 2px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;height:30px;width:200px}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel{background:#f4f4f4;background:var(--bpx-dmsend-input-bg,#f4f4f4);border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:#212121;color:var(--bpx-dmsend-input-font,#212121);display:none;font-size:13px;height:28px;line-height:28px;padding:0 5px;position:absolute;width:60%;z-index:15}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel-item{opacity:0;position:absolute;-webkit-transition:opacity .3s ease;transition:opacity .3s ease;width:100%}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel-item.item-show{opacity:1}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-carousel.carousel-show{display:block}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug{background:#fff;border:1px solid #f1f2f3;border-radius:0 0 4px 4px;-webkit-box-shadow:0 3px 4px rgba(0,0,0,.15);box-shadow:0 3px 4px rgba(0,0,0,.15);-webkit-box-sizing:border-box;box-sizing:border-box;display:none;font-size:13px;font-weight:400;height:auto;line-height:18px;padding:10px 0 10px 10px;position:absolute;top:100%;width:100%;z-index:66}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug.sugShow{display:block}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-pc-app{background-color:rgba(0,0,0,.145);border:1px solid hsla(210,8%,95%,.392);border-radius:4px;bottom:200%;-webkit-box-shadow:0 3px 4px hsla(0,0%,89%,.15);box-shadow:0 3px 4px hsla(0,0%,89%,.15);top:auto}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-title{color:#9499a0}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-list{color:#61666d;height:auto;width:100%}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-list-pc-app{color:#c9ccd0}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-item{border:1px solid #c9ccd0;border-radius:20px;cursor:pointer;display:inline-block;margin:8px 10px 0 0;padding:3px 10px}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-sug-item-pc-app:hover{border:1px solid #f69}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-popup{left:34px;opacity:0;position:absolute;top:-80%;-webkit-transform-origin:center bottom;transform-origin:center bottom;visibility:hidden;z-index:76}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-popup.popup{-webkit-animation:popup 5s forwards;animation:popup 5s forwards}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-popup-content{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.6);border-radius:4px;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;font-weight:900;height:26px;justify-content:center;line-height:16px;min-width:72px;padding:5px 10px;text-align:center}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-postpanel-popup-content:before{border:4px solid transparent;border-top-color:rgba(0,0,0,.6);content:"";height:0;position:absolute;top:26px;width:0}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-preview-emoji-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border-radius:5px;-webkit-box-shadow:0 0 8px 0 rgba(0,0,0,.102);box-shadow:0 0 8px 0 rgba(0,0,0,.102);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;display:none;height:50px;justify-content:center;left:36px;position:absolute;top:-56px;width:50px;z-index:70}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-preview-emoji-wrap.bpx-player-up-emoji{-webkit-transform:translateX(27px);transform:translateX(27px)}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-preview-emoji-wrap-show{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-preview-emoji-wrap:before{border:4px solid transparent;border-top-color:#fff;content:"";height:0;position:absolute;top:50px;width:0}.bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-preview-emoji-wrap .bpx-player-video-preview-emoji{margin:0 5px;width:40px}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-up-head{-webkit-box-flex:0;border-radius:50%;-ms-flex:none;flex:none;height:24px;margin:2px;overflow:hidden;width:24px}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-up-head-img{height:100%;vertical-align:top;width:100%}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-wrap{-webkit-box-flex:1;-ms-flex-positive:1;-webkit-box-sizing:border-box;box-sizing:border-box;flex-grow:1;left:0;line-height:28px;overflow:hidden;padding:0 10px;text-overflow:ellipsis;top:0;white-space:nowrap;z-index:13}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-wrap a{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);padding:0 4px}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-wrap a:hover{color:#00b5e5;color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-wrap a:active{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-uname{color:#99a2aa;float:left;margin-right:-10px;padding-left:10px}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input{-webkit-box-flex:1;-ms-flex-positive:1;background:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;color:#212121;color:var(--bpx-dmsend-input-font,#212121);flex-grow:1;font-size:12px;height:28px;line-height:28px;min-width:100px;padding:0 5px;width:100%;z-index:12}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-webkit-input-placeholder{color:#757575}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-moz-placeholder{color:#757575}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input:-ms-input-placeholder{color:#757575}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint{-ms-flex-negative:0;-webkit-box-flex:0;-webkit-box-sizing:border-box;box-sizing:border-box;flex-shrink:0;-ms-flex:none;flex:none;opacity:0;text-align:center;width:72px;z-index:13}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a{fill:#757575;fill:var(--bpx-dmsend-hint-icon,#757575);color:#757575;color:var(--bpx-dmsend-hint-font,#757575);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:28px}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a:hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a>span{display:inline-block;height:28px;line-height:28px;vertical-align:top}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a .bpx-common-svg-icon{height:28px;width:16px}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint .beyond-words{color:#fa483e}.bpx-player-sending-bar .bpx-player-video-inputbar.bpx-player-checkBox-hide .bpx-player-dm-hint{opacity:1}.bpx-player-sending-bar .bpx-player-video-inputbar.bpx-player-checkBox-hide .bpx-player-video-inputbar-checkBox{display:none}.bpx-player-sending-bar .bpx-player-video-inputbar.bpx-player-sug{border-radius:8px 8px 8px 0!important}.bpx-player-sending-bar .bpx-player-video-inputbar-checkBox{height:100%;position:absolute;right:70px;top:0;z-index:14}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send{border-radius:0 2px 2px 0;-webkit-box-sizing:border-box;box-sizing:border-box;height:30px;line-height:30px;min-width:60px;overflow:hidden;text-align:center;width:60px;z-index:13}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-button-disabled{background-color:#e7e7e7;color:#999}.bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send .bui-area{border-radius:0;min-width:60px}.bpx-state-light-off .bpx-player-sending-bar{background:#212121}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-info{color:silver}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-dm-switch.bui-danmaku-switch{fill:hsla(0,0%,100%,.8)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-dm-setting{fill:hsla(0,0%,100%,.8);color:hsla(0,0%,100%,.8)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar{background:hsla(0,0%,100%,.2);color:#999}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar-wrap{border:none}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-video-btn-dm{fill:hsla(0,0%,100%,.8);color:hsla(0,0%,100%,.8)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send,.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input,.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-video-btn-dm{color:#fff}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.5)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-moz-placeholder{color:hsla(0,0%,100%,.5)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-postpanel-sug{background-color:rgba(33,33,33,.9);border:none}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-postpanel-sug-title{color:#61666d}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-postpanel-sug-list{color:#c9ccd0}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-postpanel-sug-item{border:1px solid #61666d}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-postpanel-carousel{background:transparent;color:#fff}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-postpanel-carousel.carousel-show~input.bpx-player-dm-input{opacity:0}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint{color:hsla(0,0%,100%,.5)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a{fill:hsla(0,0%,100%,.6);color:hsla(0,0%,100%,.6)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a:hover{fill:#fff;color:#fff}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar-checkBox:hover .bui-checkbox-name{color:#00b5e5;color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-state-light-off .bpx-player-sending-bar .bpx-player-video-inputbar .bui-checkbox-name{color:#fff}.bpx-player-container[data-screen=full] .bpx-player-sending-bar,.bpx-player-container[data-screen=web] .bpx-player-sending-bar{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-info,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-info{display:none}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-switch.bui-danmaku-switch,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-switch.bui-danmaku-switch{fill:hsla(0,0%,100%,.9)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-setting,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-setting{fill:hsla(0,0%,100%,.9);color:hsla(0,0%,100%,.9);height:50px}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar{background:none;background-color:hsla(0,0%,100%,.3);color:hsla(0,0%,100%,.6);margin:0 auto;padding:0}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar-wrap,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar-wrap{border:none}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-video-btn-dm,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-video-btn-dm{fill:hsla(0,0%,100%,.9);color:#fff}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send,.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input,.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-video-btn-dm,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-video-btn-dm{color:#fff;height:34px;line-height:34px}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-webkit-input-placeholder,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.5)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-moz-placeholder,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input::-moz-placeholder{color:hsla(0,0%,100%,.5)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input:-ms-input-placeholder,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint{color:hsla(0,0%,100%,.5)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a{fill:hsla(0,0%,100%,.6);color:hsla(0,0%,100%,.6)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a:hover,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint a:hover{fill:#fff;color:#fff}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar-checkBox:hover .bui-checkbox-name,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar-checkBox:hover .bui-checkbox-name{color:#00b5e5;color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-container[data-screen=full] .bpx-player-sending-bar .bpx-player-video-inputbar .bui-checkbox-name,.bpx-player-container[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar .bui-checkbox-name{color:#fff}.bpx-player-container[data-screen=full] .bpx-player-video-preview-emoji-wrap,.bpx-player-container[data-screen=web] .bpx-player-video-preview-emoji-wrap{left:35px!important}@media screen and (max-width:1200px){.bpx-player-container[data-screen=full] .bpx-player-video-inputbar{display:none}}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-sending-bar{background:none;border:none;height:34px!important;line-height:34px!important;margin:0 auto;max-width:729px;padding:0}}.bpx-player-container[data-revision]:not([data-revision="2"])[data-screen=web] .bpx-player-sending-bar .bpx-player-video-inputbar{height:34px!important;max-width:729px}@media screen and (max-width:1200px){.bpx-player-container[data-revision]:not([data-revision="2"])[data-screen=web] .bpx-player-video-inputbar{display:none}}@media screen and (min-width:750px){.bpx-player-container[data-revision]:not([data-revision="2"])[data-screen=web] .bpx-player-sending-bar{background:none;border:none;height:34px!important;line-height:34px!important;margin:0 auto;max-width:729px;padding:0}}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-info,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-info{line-height:18px;margin-right:24px;width:auto}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-info-online,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-info-online{margin-right:0}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-info-online b,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-info-online b{font-weight:400;margin-right:3px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting,.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-switch,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-switch{height:24px;margin-right:12px;width:24px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting{padding:0}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar{border-radius:8px;height:32px;min-width:300px;width:calc(100% - 72px)}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar-wrap,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar-wrap{border:none;border-radius:8px 0 0 8px;height:100%}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-wrap,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-wrap{padding:0 0 0 6px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-input{font-size:inherit}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint{margin-right:5px;width:auto}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send{border-radius:0 8px 8px 0;height:100%;min-width:62px;width:62px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-button .bui-area,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-button .bui-area{font-size:13px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-disabled,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-disabled{-webkit-filter:initial;filter:none}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-disabled .bui-button-blue,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-disabled .bui-button-blue{background-color:#e7e7e7;background-color:var(--bpx-dmsend-disable-button-bg,#e7e7e7);color:#999;color:var(--bpx-dmsend-disable-button-text,#999)}@media screen and (min-width:1681px){.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-info,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-info{line-height:20px;margin-right:36px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting,.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-switch,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-setting,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-dm-root .bpx-player-dm-switch{margin-right:18px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar{height:40px;width:calc(100% - 84px)}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send{width:64px}.bpx-player-container[data-revision="1"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-button .bui-area,.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send.bui-button .bui-area{font-size:14px}}.bpx-player-container[data-revision="2"] .bpx-player-sending-bar .bpx-player-video-info{display:none}.bpx-player-container[data-revision="2"][data-screen=web] .bpx-player-sending-area{background-color:rgba(14,14,25,.8)}.bpx-player-container[data-revision="2"][data-screen=web] .bpx-player-sending-area .bpx-player-sending-bar{background-color:#11111d}.bpx-player-container[data-revision="2"][data-screen=web] .bpx-player-sending-area .bpx-player-sending-bar .bpx-player-video-inputbar{background:rgba(205,218,255,.08)}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar,.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar-wrap{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar .bpx-player-video-btn-click{display:none}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar .bpx-player-dm-btn-close,.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send,.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar .bpx-player-dm-input{display:block}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-dm-wrap{display:inline;display:initial}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-dm-btn-close{display:block}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-control-bottom-right{display:none}.bpx-player-pc-app.bpx-player-mini-bar-show .bpx-player-control-bottom-center{max-width:none}.bpx-player-pc-app .bpx-player-sending-bar{-webkit-box-pack:center;-ms-flex-pack:center;background:none;border:none;height:20px;justify-content:center;line-height:26px;margin-right:10px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root{-webkit-transition:all .3s ease-out;transition:all .3s ease-out}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-btn-click{color:hsla(0,0%,100%,.7);cursor:pointer;display:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-iconfont.bpx-player-iconfont-danmakutype span{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-info,.bpx-player-pc-app .bpx-player-sending-bar-left,.bpx-player-pc-app .bpx-player-sending-bar-right{display:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-setting,.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-switch{fill:hsla(0,0%,100%,.9);color:hsla(0,0%,100%,.9);height:24px;padding:0;width:24px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-setting:hover,.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-switch:hover{fill:#fff!important;color:#fff!important}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar{background:hsla(0,0%,100%,.3);border-radius:6px;height:32px;width:auto}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar-wrap{border:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-btn-dm{fill:hsla(0,0%,100%,.9)}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-dm-input{color:#fff}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-dm-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.7)}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send{-ms-flex-item-align:center;align-self:center;height:22px!important;line-height:22px!important;margin-right:5px;min-width:auto;width:39px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send .bui-button-blue{min-width:auto;width:39px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint{display:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide{-webkit-box-flex:0;background:none;-ms-flex:none;flex:none;margin:0;width:200px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-inputbar-mask{display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-dm-btn-send,.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-inputbar-close,.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-video-inputbar-wrap{display:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-inputbar-mask{background:hsla(0,0%,100%,.3);border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;color:hsla(0,0%,100%,.7);cursor:pointer;display:none;font-size:14px;height:100%;left:0;line-height:32px;padding-left:12px;position:absolute;top:0;-webkit-transition:background .2s;transition:background .2s;width:100%;z-index:15}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-inputbar-mask:hover{background:hsla(0,0%,100%,.5)}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-inputbar-close{fill:#fff;cursor:pointer;height:28px;position:absolute;right:-32px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:28px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-btn-close{fill:#fff;border-bottom-right-radius:6px;border-top-right-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;display:none;height:24px;opacity:.7;-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in;width:24px;z-index:9}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-btn-close:hover{opacity:1}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar{-webkit-box-flex:0;-ms-flex:none;flex:none}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar:hover{background-color:hsla(0,0%,100%,.5)}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar-wrap{-ms-flex-negative:1;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;flex-shrink:1;-ms-flex:none;flex:none;white-space:nowrap;width:114px;z-index:9}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar-wrap .bpx-player-video-btn-click{display:block}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-video-inputbar-wrap .bpx-player-video-btn-click[data-disabled=true]{padding-left:10px}.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-dm-btn-send,.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-dm-input,.bpx-player-pc-app .bpx-player-sending-bar .bpx-player-dm-root.bpx-player-mini-bar .bpx-player-dm-wrap{display:none}.bpx-player-embedded .bpx-player-dm-root{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar{height:30px;line-height:30px}.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-setting,.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-setting .bui-danmaku-switch-off,.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-setting .bui-danmaku-switch-on,.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-switch,.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-switch .bui-danmaku-switch-off,.bpx-player-embedded[data-screen=full] .bpx-player-sending-bar .bpx-player-dm-switch .bui-danmaku-switch-on,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-setting,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-setting .bui-danmaku-switch-off,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-setting .bui-danmaku-switch-on,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-switch,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-switch .bui-danmaku-switch-off,.bpx-player-embedded[data-screen=web] .bpx-player-sending-bar .bpx-player-dm-switch .bui-danmaku-switch-on{height:28px;width:28px}.bpx-player-embedded .bpx-player-sending-bar{background:none;border:none;height:20px;line-height:26px;margin:0 auto;max-width:729px;padding:0;width:100%}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-info,.bpx-player-embedded .bpx-player-sending-bar-left,.bpx-player-embedded .bpx-player-sending-bar-right{display:none}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-dm-setting,.bpx-player-embedded .bpx-player-sending-bar .bpx-player-dm-switch{fill:hsla(0,0%,100%,.9);color:hsla(0,0%,100%,.9);height:24px;padding:0;width:24px}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-dm-setting:hover,.bpx-player-embedded .bpx-player-sending-bar .bpx-player-dm-switch:hover{fill:hsla(0,0%,100%,.9)!important;color:hsla(0,0%,100%,.9)!important}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar{background:hsla(0,0%,100%,.3);border-radius:6px;height:32px;margin:0 30px 0 0;-webkit-transition:all .2s;transition:all .2s}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar-wrap{border:none}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-video-btn-dm{fill:hsla(0,0%,100%,.9)}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-dm-input{color:#fff}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar-wrap .bpx-player-dm-input::-webkit-input-placeholder{color:hsla(0,0%,100%,.7)}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send{-ms-flex-item-align:center;align-self:center;height:22px!important;line-height:22px!important;margin-right:5px;min-width:auto;width:39px}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-btn-send .bui-button-blue{min-width:auto;width:39px}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-dm-hint{display:none}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide{-webkit-box-flex:0;background:none;-ms-flex:none;flex:none;margin:0;width:200px}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-inputbar-mask{display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-dm-btn-send,.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-inputbar-close,.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar.bpx-state-inputbar-hide .bpx-player-video-inputbar-wrap{display:none}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-inputbar-mask{background:hsla(0,0%,100%,.3);border-radius:6px;-webkit-box-sizing:border-box;box-sizing:border-box;color:hsla(0,0%,100%,.7);cursor:pointer;display:none;font-size:14px;height:100%;left:0;line-height:32px;padding-left:12px;position:absolute;top:0;-webkit-transition:background .2s;transition:background .2s;width:100%;z-index:15}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-inputbar-mask:hover{background:hsla(0,0%,100%,.5)}.bpx-player-embedded .bpx-player-sending-bar .bpx-player-video-inputbar .bpx-player-inputbar-close{fill:#fff;cursor:pointer;height:28px;position:absolute;right:-32px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:28px}.bpx-player-mini-site .bpx-player-dm-switch{fill:hsla(0,0%,100%,.9);color:hsla(0,0%,100%,.9);height:22px;padding:0;width:36px}.bpx-player-mini-site .bpx-player-dm-switch:hover{fill:#fff!important;color:#fff!important}@-webkit-keyframes popup{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0);visibility:visible}6%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}8%{opacity:1;-webkit-transform:scale(1.05);transform:scale(1.05);visibility:visible}10%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}90%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}92%{opacity:1;-webkit-transform:scale(1.05);transform:scale(1.05);visibility:visible}94%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}to{opacity:0;-webkit-transform:scale(0);transform:scale(0);visibility:visible}}@keyframes popup{0%{opacity:0;-webkit-transform:scale(0);transform:scale(0);visibility:visible}6%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}8%{opacity:1;-webkit-transform:scale(1.05);transform:scale(1.05);visibility:visible}10%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}90%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}92%{opacity:1;-webkit-transform:scale(1.05);transform:scale(1.05);visibility:visible}94%{opacity:1;-webkit-transform:scale(1);transform:scale(1);visibility:visible}to{opacity:0;-webkit-transform:scale(0);transform:scale(0);visibility:visible}}.bpx-player-snow-drop{bottom:0;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;z-index:17}.bpx-player-snow-drop>img{position:absolute;top:0;width:24px;will-change:top,left}.bpx-player-top-mask{background:-webkit-gradient(linear,left top,left bottom,color-stop(16.87%,transparent),color-stop(94%,rgba(0,0,0,.3)));background:linear-gradient(180deg,transparent 16.87%,rgba(0,0,0,.3) 94%);height:240px;left:0;position:absolute;top:0;-webkit-transform:matrix(1,0,0,-1,0,0);transform:matrix(1,0,0,-1,0,0);-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;width:100%;z-index:-1}.bpx-player-top-mask[hidden]{display:none}.bpx-player-top-wrap.bpx-player-show{z-index:59}.bpx-player-top-left-title,.bpx-player-top-title{font-size:16px;font-weight:500;line-height:24px;margin:18px 0 0 19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%!important;z-index:2}.bpx-player-top-title:empty{height:0}.bpx-player-top-left-title{margin:0 0 8px}.bpx-player-top-follow{-webkit-box-flex:0;-ms-flex:none;flex:none}.bpx-player-top-left{left:12px;margin-top:18px;position:absolute}.bpx-player-top-issue{-webkit-box-flex:0;cursor:pointer;-ms-flex:none;flex:none;height:24px;line-height:24px;margin:18px 12px 0;min-width:36px;pointer-events:all;text-align:center;z-index:2}.bpx-player-top-issue:hover .bpx-common-svg-icon{fill:#fff}.bpx-player-top-issue-icon{-webkit-box-flex:0;display:inline-block;-ms-flex:none;flex:none;height:22px;width:22px}.bpx-player-top-issue-icon .bpx-common-svg-icon{height:100%;vertical-align:middle}.bpx-player-top-issue-icon .bpx-common-svg-icon svg{fill:hsla(0,0%,100%,.8)}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-top-left,.bpx-player-container[data-screen=web] .bpx-player-top-left{left:24px;margin-top:24px}.bpx-player-container[data-screen=full] .bpx-player-top-left-title,.bpx-player-container[data-screen=web] .bpx-player-top-left-title{margin-bottom:12px}.bpx-player-container[data-screen=full] .bpx-player-top-issue,.bpx-player-container[data-screen=web] .bpx-player-top-issue{font-size:28px;width:54px}.bpx-player-container[data-screen=full] .bpx-player-top-issue-icon,.bpx-player-container[data-screen=web] .bpx-player-top-issue-icon{height:28px;width:54px}}.bpx-player-info-container{-webkit-font-smoothing:antialiased;background-color:rgba(33,33,33,.9);border-radius:4px;color:#fff;left:10px;line-height:18px;padding-bottom:15px;position:absolute;text-align:center;text-align:left;top:10px;z-index:80}.bpx-player-info-container .bpx-player-info-title{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:16px;line-height:40px;text-align:center}.bpx-player-info-container .bpx-player-info-close{fill:#fff;color:#fff;cursor:pointer;height:22px;line-height:22px;position:absolute;right:10px;top:10px;width:22px}.bpx-player-info-container span{display:inline-block;font-weight:400}.bpx-player-info-container .bpx-player-info-panel{padding:15px 26px 0;position:relative}.bpx-player-info-container .bpx-player-info-panel .info-line{min-width:290px}.bpx-player-info-container .bpx-player-info-panel .info-line .info-graph{margin-right:10px}.bpx-player-info-container .bpx-player-info-panel .info-line .info-graph svg{position:relative;top:2px}.bpx-player-info-container .bpx-player-info-panel .info-line .info-data{color:#999;font-size:12px;font-weight:400;margin-right:6px}.bpx-player-info-container .bpx-player-info-panel .info-line .info-copy,.bpx-player-info-container .bpx-player-info-panel .info-line .info-download,.bpx-player-info-container .bpx-player-info-panel .info-line .info-log,.bpx-player-info-container .bpx-player-info-panel .info-line .info-pagesource{cursor:pointer}.bpx-player-info-container .bpx-player-info-log{padding:0 26px 10px;position:relative}.bpx-player-info-container .bpx-player-info-log .info-line{min-width:290px}.bpx-player-info-container .bpx-player-info-log .info-line .info-graph{margin-right:10px}.bpx-player-info-container .bpx-player-info-log .info-line .info-graph svg{position:relative;top:2px}.bpx-player-info-container .bpx-player-info-log .info-line .info-data{color:#999;font-size:12px;font-weight:400;margin-right:6px}.bpx-player-info-container .bpx-player-info-log .info-line .info-copy,.bpx-player-info-container .bpx-player-info-log .info-line .info-download,.bpx-player-info-container .bpx-player-info-log .info-line .info-log,.bpx-player-info-container .bpx-player-info-log .info-line .info-pagesource{cursor:pointer}.bpx-player-info-container .info-title{font-size:12px;font-weight:500;margin-right:10px;text-align:right;text-indent:-99em;width:100px}.bpx-player-info-container .bpx-player-info-copy,.bpx-player-info-container .bpx-player-info-download{background:hsla(0,0%,100%,.2);border-radius:2px;color:#fff;cursor:pointer;height:20px;line-height:20px;margin-right:4px;min-width:0;padding:0 12px}.bpx-player-info-container .bpx-player-info-copy:hover,.bpx-player-info-container .bpx-player-info-download:hover{background:hsla(0,0%,100%,.4)}.bpx-player-info-container.active{display:block}.bpx-player-hotkey-panel{-webkit-font-smoothing:antialiased;background-color:rgba(33,33,33,.9);border-radius:4px;color:#fff;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:400px;z-index:80}.bpx-player-hotkey-panel-title{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:16px;line-height:40px;text-align:center}.bpx-player-hotkey-panel-close{fill:#fff;color:#fff;cursor:pointer;height:22px;line-height:22px;position:absolute;right:10px;top:10px;width:22px}.bpx-player-hotkey-panel-area{margin:10px 0;max-height:268px;overflow:hidden}.bpx-player-hotkey-panel-area .bscroll-vertical-scrollbar{background:#757575!important;bottom:0!important;right:0!important;top:41px!important;width:6px!important}.bpx-player-hotkey-panel-area .bscroll-vertical-scrollbar .bscroll-indicator{border:none!important;color:#6d757a!important}.bpx-player-hotkey-panel-area:hover .bscroll-vertical-scrollbar{display:block!important;opacity:1!important}.bpx-player-hotkey-panel-content{padding:0 20px}.bpx-player-hotkey-panel-content-item{font-size:12px;height:24px;line-height:24px;min-width:360px;text-align:center}.bpx-player-hotkey-panel-content-name{display:inline-block;width:120px}.bpx-player-hotkey-panel-content-desc{color:#999;display:inline-block;width:190px}.bpx-player-dm-tip{height:48px;left:0;margin-top:6px;opacity:0;position:absolute;top:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);visibility:hidden;width:162px;z-index:999999}.bpx-player-dm-tip-svgl,.bpx-player-dm-tip-svgm{height:100%;left:0;opacity:0;position:absolute;top:0;-webkit-transform-origin:center;transform-origin:center;width:100%}.bpx-player-dm-tip.bpx-player-master .bpx-player-dm-tip-recall{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-dm-tip.bpx-player-master .bpx-player-dm-tip-back{display:none}.bpx-player-dm-tip.bpx-player-many-like .bpx-player-dm-tip-like{left:13px}.bpx-player-dm-tip.bpx-player-many-like .bpx-player-dm-tip-like-num{left:31px;z-index:2}.bpx-player-dm-tip.bpx-player-showB{-webkit-animation:tipsWrap .25s forwards;animation:tipsWrap .25s forwards;visibility:visible}.bpx-player-dm-tip.bpx-player-showB .bpx-player-dm-tip-svgm{opacity:1}.bpx-player-dm-tip.bpx-player-showT{-webkit-animation:tipsWrap .25s forwards;animation:tipsWrap .25s forwards;visibility:visible}.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-svgm{opacity:1;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-like-animate{top:10px}.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-back,.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-copy,.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-like,.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-recall{height:20px;top:10px}.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-back .bp-svgicon,.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-copy .bp-svgicon,.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-like .bp-svgicon,.bpx-player-dm-tip.bpx-player-showT .bpx-player-dm-tip-recall .bp-svgicon{margin-top:0}.bpx-player-dm-tip.bpx-player-showR{-webkit-animation:tipsWrap .25s forwards;animation:tipsWrap .25s forwards;visibility:visible}.bpx-player-dm-tip.bpx-player-showR .bpx-player-dm-tip-svgl{opacity:1;-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.bpx-player-dm-tip.bpx-player-showL{-webkit-animation:tipsWrap .25s forwards;animation:tipsWrap .25s forwards;visibility:visible}.bpx-player-dm-tip.bpx-player-showL .bpx-player-dm-tip-svgl{opacity:1}.bpx-player-dm-tip.bpx-player-showRT{-webkit-animation:tipsWrap .25s forwards;animation:tipsWrap .25s forwards;visibility:visible}.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-svgl{opacity:1;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-like-animate{top:10px}.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-back,.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-copy,.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-like,.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-recall{height:20px;top:10px}.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-back .bp-svgicon,.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-copy .bp-svgicon,.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-like .bp-svgicon,.bpx-player-dm-tip.bpx-player-showRT .bpx-player-dm-tip-recall .bp-svgicon{margin-top:0}.bpx-player-dm-tip.bpx-player-showLT{-webkit-animation:tipsWrap .25s forwards;animation:tipsWrap .25s forwards;visibility:visible}.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-svgl{opacity:1;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-like-animate{top:10px}.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-back,.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-copy,.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-like,.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-recall{height:20px;top:10px}.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-back .bp-svgicon,.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-copy .bp-svgicon,.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-like .bp-svgicon,.bpx-player-dm-tip.bpx-player-showLT .bpx-player-dm-tip-recall .bp-svgicon{margin-top:0}.bpx-player-dm-tip.bpx-player-hide{-webkit-animation:tipsWrapReturn .25s forwards;animation:tipsWrapReturn .25s forwards;pointer-events:none;visibility:hidden}.bpx-player-dm-tip-like.bpx-player-nobg{background:transparent!important}.bpx-player-dm-tip-like-animate{height:30px;left:22px;position:absolute;top:16px;width:30px}.bpx-player-dm-tip-back,.bpx-player-dm-tip-copy,.bpx-player-dm-tip-like,.bpx-player-dm-tip-recall{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:32px;justify-content:center;left:13px;position:absolute;top:10px;width:32px;z-index:2}.bpx-player-dm-tip-back:hover,.bpx-player-dm-tip-copy:hover,.bpx-player-dm-tip-like:hover,.bpx-player-dm-tip-recall:hover{background:rgba(47,50,56,.898)}.bpx-player-dm-tip-back svg,.bpx-player-dm-tip-copy svg,.bpx-player-dm-tip-like svg,.bpx-player-dm-tip-recall svg{height:23px;width:23px}.bpx-player-dm-tip-back .bp-svgicon svg,.bpx-player-dm-tip-copy .bp-svgicon svg,.bpx-player-dm-tip-like .bp-svgicon svg,.bpx-player-dm-tip-recall .bp-svgicon svg{height:20px;width:20px}.bpx-player-dm-tip-like-num{color:#fff;left:40px;position:absolute;top:13px;z-index:3}.bpx-player-dm-tip-copy{left:64px}.bpx-player-dm-tip-back,.bpx-player-dm-tip-recall{left:120px}.bpx-player-dm-tip-recall{display:none}.bpx-player-dm-hover-disappear{visibility:hidden!important}.bpx-player-dm-tip-patch{width:60px!important}.bpx-player-dm-tip-patch .bpx-player-dm-tip-copy{left:19px}@-webkit-keyframes tipsWrap{0%{opacity:0;-webkit-transform:translateX(-50%) scale(.6);transform:translateX(-50%) scale(.6)}50%{-webkit-transform:translateX(-50%) scale(1.05);transform:translateX(-50%) scale(1.05)}to{opacity:1;-webkit-transform:translateX(-50%) scale(1);transform:translateX(-50%) scale(1)}}@keyframes tipsWrap{0%{opacity:0;-webkit-transform:translateX(-50%) scale(.6);transform:translateX(-50%) scale(.6)}50%{-webkit-transform:translateX(-50%) scale(1.05);transform:translateX(-50%) scale(1.05)}to{opacity:1;-webkit-transform:translateX(-50%) scale(1);transform:translateX(-50%) scale(1)}}@-webkit-keyframes tipsWrapReturn{0%{opacity:1;-webkit-transform:translateX(-50%) scale(1);transform:translateX(-50%) scale(1)}20%{-webkit-transform:translateX(-50%) scale(1.05);transform:translateX(-50%) scale(1.05)}to{opacity:0;-webkit-transform:translateX(-50%) scale(.6);transform:translateX(-50%) scale(.6)}}@keyframes tipsWrapReturn{0%{opacity:1;-webkit-transform:translateX(-50%) scale(1);transform:translateX(-50%) scale(1)}20%{-webkit-transform:translateX(-50%) scale(1.05);transform:translateX(-50%) scale(1.05)}to{opacity:0;-webkit-transform:translateX(-50%) scale(.6);transform:translateX(-50%) scale(.6)}}.bpx-player-dm-sand-gpu-canvas{background-color:transparent;height:100%;pointer-events:none;position:absolute;top:0;width:100%}.bpx-player-dm-sand-gpu-canvas-remove{opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:opacity .3s,-webkit-transform .3s;transition:opacity .3s,-webkit-transform .3s;transition:transform .3s,opacity .3s;transition:transform .3s,opacity .3s,-webkit-transform .3s}.bpx-player-video-perch canvas{position:absolute}.bpx-player-panorama{background-color:#fff;border-radius:50%;height:50px;opacity:.6;outline:none;pointer-events:all;position:relative;width:50px;z-index:2}.bpx-player-panorama.bpx-state-active,.bpx-player-panorama:hover{opacity:1}.bpx-player-panorama>span{cursor:pointer;display:inline-block;position:absolute;width:18px}.bpx-player-panorama-up{left:50%;margin-left:-8px;top:0}.bpx-player-panorama-left{left:0;margin-top:-9px;top:50%;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.bpx-player-panorama-down{bottom:0;left:50%;margin-left:-10px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-panorama-right{margin-top:-8px;right:0;top:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.bpx-player-container[data-screen=full] .bpx-player-panorama,.bpx-player-container[data-screen=web] .bpx-player-panorama{height:75px;width:75px}.bpx-player-container[data-screen=full] .bpx-player-panorama>span,.bpx-player-container[data-screen=web] .bpx-player-panorama>span{width:26px}.bpx-player-container[data-screen=full] .bpx-player-panorama-up,.bpx-player-container[data-screen=web] .bpx-player-panorama-up{margin-left:-12px}.bpx-player-container[data-screen=full] .bpx-player-panorama-left,.bpx-player-container[data-screen=web] .bpx-player-panorama-left{margin-top:-13px}.bpx-player-container[data-screen=full] .bpx-player-panorama-down,.bpx-player-container[data-screen=web] .bpx-player-panorama-down{margin-left:-14px}.bpx-player-container[data-screen=full] .bpx-player-panorama-right,.bpx-player-container[data-screen=web] .bpx-player-panorama-right{margin-top:-11px}.bpx-player-interaction-wrap .bpx-player-interaction-story{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.3);border-radius:20px;bottom:70px;display:-webkit-box;display:-ms-flexbox;display:flex;left:0;left:50%;pointer-events:none;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:48}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-oval-wrap{display:inline-block;height:auto;margin:0 auto;max-width:400px;overflow:hidden;vertical-align:middle;width:auto}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-oval-wrap .bpx-player-interaction-oval{height:40px;margin-left:0;-webkit-transition:.6s ease-out;transition:.6s ease-out;width:auto}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-oval-wrap .bpx-player-interaction-oval .bpx-player-interaction-oval-item{fill:#fff;cursor:pointer;float:left;height:40px;margin:0 5px;pointer-events:auto;position:relative;width:40px}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-oval-wrap .bpx-player-interaction-oval .bpx-player-interaction-oval-item .bpx-player-interaction-oval-round{border-radius:20px;height:36px;left:2px;position:absolute;top:2px;width:36px}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-oval-wrap .bpx-player-interaction-oval .bpx-player-interaction-oval-item .bpx-player-interaction-oval-round .small{height:36px;position:absolute;width:36px}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-oval-wrap .bpx-player-interaction-oval .bpx-player-interaction-oval-item .bpx-player-interaction-oval-round .small.hover{display:none}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap{height:0;left:0;position:absolute;top:0;width:0}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item{background-color:#fff;-webkit-box-shadow:0 0 4px 0 rgba(0,0,0,.5);box-shadow:0 0 4px 0 rgba(0,0,0,.5);display:none;height:20px;margin-left:-35px;margin-top:-27px;position:absolute;width:119px}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-background{background-color:#fff;height:20px;position:absolute;width:100%;z-index:2}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-text{color:#222;font-size:12px;line-height:20px;max-width:119px;overflow:hidden;padding:0 10px;position:relative;text-overflow:ellipsis;white-space:nowrap;z-index:2}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-label{position:absolute}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-label-one{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #fff;height:0;left:0;position:absolute;top:-1px;width:0;z-index:1}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-label-two{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;height:0;left:-1px;position:absolute;top:0;width:0;z-index:1}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-cover{border:1px solid #fff;height:73px;left:3px;position:absolute;top:-65px;width:117px}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-hover-wrap .bpx-player-interaction-hover-item .bpx-player-interaction-cover img{width:100%}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-arrow{fill:#fff;cursor:pointer;display:inline-block;height:25px;pointer-events:auto;position:relative;width:25px}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-arrow.bpx-player-interaction-arrow-left{left:6px;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-interaction-wrap .bpx-player-interaction-story .bpx-player-interaction-arrow.bpx-player-interaction-arrow-right{left:-6px}.bpx-player-interaction-wrap .bpx-player-interaction-question{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:48}.bpx-player-interaction-wrap .bpx-player-interaction-question canvas{pointer-events:auto}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide{background:rgba(0,0,0,.9);border-radius:5px;bottom:115px;color:#fff;font-size:14px;height:155px;left:50%;position:absolute;-webkit-transform:translateX(-148px);transform:translateX(-148px);width:296px;z-index:49}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide-text{margin:20px auto;position:relative;width:268px}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide-text p{margin-bottom:12px;white-space:nowrap}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide-text p .bpx-player-interaction-rookie-guide-icon{fill:#fff;bottom:3px;float:left;height:20px;margin-right:7px;position:relative;width:20px}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide-button{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);border-radius:5px;cursor:pointer;height:32px;line-height:32px;margin:0 auto;position:relative;text-align:center;width:78px}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide-button:hover{background:#00b5e5;background:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-interaction-wrap .bpx-player-interaction-rookie-guide-arrow{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(0,0,0,.76);bottom:-5px;height:0;left:50%;position:absolute;-webkit-transform:translateX(-3px);transform:translateX(-3px);width:0}.bpx-player-interaction-wrap .bpx-player-interaction-countdown{bottom:4px;height:4px;left:0;position:absolute;width:100%;z-index:49}.bpx-player-interaction-wrap .bpx-player-interaction-countdown-bar{-webkit-animation:countdown 5s linear;animation:countdown 5s linear;height:4px;margin:0 auto;position:relative;width:0}.bpx-player-interaction-wrap .bpx-player-interaction-hidden{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(0,0,0,.3);border-radius:20px;bottom:67px;display:inline-block;height:30px;left:50%;pointer-events:none;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:48}.bpx-player-interaction-wrap .bpx-player-interaction-hidden-star{display:inline-block;height:15px;margin-left:13px;position:relative;top:1px;width:15px}.bpx-player-interaction-wrap .bpx-player-interaction-hidden-item{border-right:1px solid hsla(0,0%,100%,.2);color:#fff;display:inline-block;font-size:12px;margin-top:9px;padding:0 12px;position:relative;text-shadow:0 1px 1px rgba(0,0,0,.4)}.bpx-player-interaction-wrap .bpx-player-interaction-hidden-item:last-child{border-right:none}.bpx-player-interaction-wrap .bpx-player-interaction-hidden-item>div{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bpx-player-interaction-wrap .bpx-player-interaction-hidden-item .bpx-player-interaction-hidden-name{margin-right:3px}.bpx-player-interaction-wrap .bpx-player-interaction-hidden-item .bpx-player-interaction-hidden-value{font-weight:700}.bpx-player-interaction-wrap .bpx-player-interaction-replay{color:#fff;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:16px;height:26px;line-height:26px;opacity:.7;position:absolute;right:7%;text-shadow:1px 1px 2px #222;top:5%;z-index:49}.bpx-player-interaction-wrap .bpx-player-interaction-replay-icon{display:inline-block;-webkit-filter:drop-shadow(2px 2px 2px rgba(0,0,0,.4));filter:drop-shadow(2px 2px 2px rgba(0,0,0,.4));height:26px;margin-right:4px;width:26px}.bpx-player-interaction-wrap .bpx-player-interaction-replay:hover{opacity:1;text-shadow:2px 2px 3px #000}.bpx-player-interaction-wrap .bpx-player-interaction-special{position:absolute;z-index:48}.bpx-player-container[data-screen=full] .bpx-player-interaction-story,.bpx-player-container[data-screen=web] .bpx-player-interaction-story{bottom:98px}.bpx-player-container[data-screen=full] .bpx-player-interaction-rookie-guide,.bpx-player-container[data-screen=web] .bpx-player-interaction-rookie-guide{bottom:145px}@-webkit-keyframes countdown{0%{width:100%}to{width:0}}@keyframes countdown{0%{width:100%}to{width:0}}.bpx-player-video-share-box{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;color:#fff;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:12px;height:100%;justify-content:center;left:0;overflow:hidden;pointer-events:auto;position:absolute;top:0;width:100%}.bpx-player-video-share-content,.bpx-player-video-share-header{margin:0 auto;width:568px}.bpx-player-video-share-header{height:58px;position:relative;text-align:right}.bpx-player-video-share-close{fill:#fff;cursor:pointer;display:inline-block;height:43px;line-height:1;margin:-9.5px -9.5px 0 0;width:43px}.bpx-player-video-share-content{margin-bottom:40px;width:560px}.bpx-player-video-share-content,.bpx-player-video-share-left{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between}.bpx-player-video-share-left{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:350px}.bpx-player-video-share-right{width:190px}.bpx-player-video-share-source{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;height:62px;justify-content:space-between}.bpx-player-video-share-btn{border:1px solid transparent;border-radius:100%;cursor:pointer;height:60px;overflow:hidden;text-align:center;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;width:60px}.bpx-player-video-share-btn i{color:#fff;font-size:48px;line-height:60px}.bpx-player-video-share-btn:hover{border-color:hsla(0,0%,100%,.5);-webkit-box-shadow:0 0 6px hsla(0,0%,100%,.5);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.bpx-player-video-share-btn.weibo{background-color:#e15656}.bpx-player-video-share-btn.weibo:hover{background-color:#ff2a00}.bpx-player-video-share-btn.tieba{background-color:#408edd}.bpx-player-video-share-btn.tieba:hover{background-color:#00aeff}.bpx-player-video-share-btn.qzone{background-color:#e0b32b}.bpx-player-video-share-btn.qzone:hover{background-color:#ffd200}.bpx-player-video-share-btn.qq{background-color:#39b8e2}.bpx-player-video-share-btn.qq:hover{background-color:#00d8ff}.bpx-player-video-share-link-content{width:352px}.bpx-player-video-share-link-label{font-size:14px;margin-bottom:15px}.bpx-player-video-share-link-input{background:hsla(0,0%,8%,.9);border:none;border-radius:4px;color:#ccc;display:inline-block;font-size:14px;height:26px;margin-right:15px;padding:5px 12px;-webkit-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto;width:240px}.bpx-player-video-share-link-copy{height:32px;line-height:32px;position:relative;top:-2px;width:68px}.bpx-player-video-share-link-copy .bui-area{font-size:14px!important;pointer-events:none}.bpx-player-video-share-qrcode{background:#fff;border-radius:4px;-webkit-box-shadow:0 0 5px hsla(0,0%,9%,.6);box-shadow:0 0 5px hsla(0,0%,9%,.6);color:#444;font-size:16px;padding:20px;position:relative;text-align:center}.bpx-player-video-share-qrcode span{display:block}.bpx-player-video-share-qrcode-img{height:150px;margin:20px auto 0;width:150px}.bpx-player-detection-wrap{background-color:rgba(0,0,0,.5);height:100%;left:0;position:absolute;top:0;width:100%;z-index:76}.bpx-player-detection-wrap .bpx-player-detection-panel{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-items:center;background-color:rgba(33,33,33,.9);border-radius:2px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;font-size:12px;left:50%;overflow:hidden;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:308px}.bpx-player-detection-wrap .bpx-player-detection-title{font-size:14px;height:40px;line-height:40px;text-align:center;width:100%}.bpx-player-detection-wrap .bpx-player-detection-title .bpx-player-detection-close{fill:#fff;cursor:pointer;height:40px;position:absolute;right:12px;width:20px}.bpx-player-detection-wrap .bpx-player-detection-circle-progress{color:#5bdbff;height:140px;margin:20px 0;text-align:center;width:140px}.bpx-player-detection-wrap .bpx-player-detection-submit{background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:24px;line-height:24px;margin:20px 0;text-align:center;width:84px}.bpx-player-detection-wrap .bpx-player-detection-submit.disable{background-color:#e5e9ef;color:#999;cursor:default}.bpx-player-detection-wrap .bpx-player-detection-summary{line-height:17px;text-align:center;width:284px}.bpx-player-subtitle-panel{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:28px;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:16}.bpx-player-subtitle-panel-position{left:5%;max-height:83%;position:absolute;width:90%}.bpx-player-subtitle-panel-position[data-textalign=left]{text-align:left}.bpx-player-subtitle-panel-position[data-textalign=right]{text-align:right}.bpx-player-subtitle-panel-position[data-textalign=center]{text-align:center}.bpx-player-subtitle-panel-position[data-position=draged]{left:auto}.bpx-player-subtitle-panel-position[data-position=top]{top:5%}.bpx-player-subtitle-panel-position[data-position=bottom]{bottom:14px}.bpx-player-subtitle-panel-text{word-wrap:break-word;border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;cursor:default;cursor:move;font-family:none;line-height:1.5;margin-right:-4px;padding:2px 12px 2px 8px;pointer-events:auto;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal}.bpx-player-subtitle-panel-icon{display:inline-block;margin-left:-8px;opacity:.9}.bpx-player-subtitle-panel-icon>.bpx-common-svg-icon{fill:#fff;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;height:8px;margin-left:2px;vertical-align:text-top;width:8px}.bpx-player-subtitle-panel .bpx-player-subtitle-panel-minor-group .bpx-player-subtitle-panel-text{opacity:.8}.bpx-player-subtitle-panel .bpx-player-subtitle-panel-major-group{margin-bottom:4px}.bpx-player-contextmenu>li.bpx-player-context-item-subtitle{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:42px;line-height:42px;padding:0 8px}.bpx-player-context-item-subtitle-text{-webkit-box-flex:0;-ms-flex:none;flex:none;overflow:hidden;padding:0 15px;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;width:165px}.bpx-player-context-item-subtitle-issue{border-radius:5px;display:inline-block;height:28px;line-height:28px;margin:7px 0;overflow:auto;text-align:center;width:56px}.bpx-player-context-item-subtitle-issue[disable=true]{cursor:not-allowed}.bpx-player-context-item-subtitle-issue[disable=false]{cursor:pointer}.bpx-player-context-item-subtitle-issue[disable=false]:hover{background-color:hsla(0,0%,100%,.2)}.bpx-player-subtitle-issue-panel{-webkit-font-smoothing:antialiased;background-color:rgba(33,33,33,.9);border-radius:4px;color:#fff;left:50%;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:360px;z-index:80}.bpx-player-subtitle-issue-panel-header{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:16px;line-height:40px;text-align:center}.bpx-player-subtitle-issue-panel-close{fill:#fff;color:#fff;cursor:pointer;height:22px;line-height:22px;position:absolute;right:10px;top:10px;width:22px}.bpx-player-subtitle-issue-panel-content{font-size:14px;height:14px;line-height:14px;margin:16px auto;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:320px}.bpx-player-subtitle-issue-panel-radios{padding-left:20px;text-align:left}.bpx-player-subtitle-issue-panel-textarea{background-color:hsla(0,0%,100%,.12);border:1px solid transparent;border-radius:4px;color:#fff;font-size:12px;height:48px;line-height:16px;margin-top:6px;outline:none;padding:10px;resize:none;width:300px}.bpx-player-subtitle-issue-panel-textarea:focus{background-color:#fff;color:#222}.bpx-player-subtitle-issue-panel-checkboxs{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;padding-left:24px;width:100%}.bpx-player-subtitle-issue-panel-checkboxs-item{float:left;height:24px;width:50%}.bpx-player-subtitle-issue-panel-airecovery{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 24px}.bpx-player-subtitle-issue-panel-airecovery-title{float:left;padding:12px 0 5px}.bpx-player-subtitle-issue-panel-airecovery-text{background-color:hsla(0,0%,100%,.12);border:1px solid transparent;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;font-size:12px;margin-top:6px;outline:none;padding:10px;resize:none;width:100%}.bpx-player-subtitle-issue-panel-airecovery-text:focus{background-color:#fff;color:#222}.bpx-player-subtitle-issue-panel-submit{border-radius:4px;height:32px;line-height:32px;margin:16px auto;width:100px}.bpx-player-pbp{bottom:3px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:28px;left:-12px;line-height:28px;opacity:0;padding:0 12px;position:absolute;width:calc(100% + 24px);z-index:-1}.bpx-player-pbp.show{bottom:100%;left:0;opacity:1;width:100%}.bpx-player-pbp.pin{opacity:1}.bpx-player-pbp-pin{bottom:8%;line-height:16px;position:absolute;right:4px}.bpx-player-pbp-pin-icon{height:16px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out;width:16px}.bpx-player-pbp-pin-tip{background-color:#000;background-color:var(--bpx-tooltip-bgcolor,#000);border-radius:2px;color:#fff;color:var(--bpx-tooltip-color,#fff);display:none;font-size:12px;line-height:1.5;padding:4px 8px;position:absolute;right:0;top:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;white-space:nowrap}.bpx-player-pbp-pin:hover .bpx-player-pbp-pin-icon{-webkit-transform:rotate(60deg) scale(1.2);transform:rotate(60deg) scale(1.2)}.bpx-player-pbp-pin:hover .bpx-player-pbp-pin-tip{display:block;top:-30px}.bpx-player-container[data-screen=full] .bpx-player-pbp.show,.bpx-player-container[data-screen=web] .bpx-player-pbp.show{bottom:calc(100% + 7px)}.bpx-player-charging-toast,.bpx-player-trial-watch-charging-toast{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center}.bpx-player-charging-toast .bpx-player-charging-toast-left,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-left{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:center}.bpx-player-charging-toast .bpx-player-charging-toast-left-title,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-left-title{-webkit-font-feature-settings:"clig" off,"liga" off;font-feature-settings:"clig" off,"liga" off;color:#fff;font-size:15px;font-style:normal;font-weight:500;line-height:21px;text-shadow:0 1px 1px rgba(0,0,0,.25)}.bpx-player-charging-toast .bpx-player-charging-toast-left-level,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-left-level{-webkit-font-feature-settings:"clig" off,"liga" off;font-feature-settings:"clig" off,"liga" off;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;font-style:normal;font-weight:400;line-height:17px;margin-top:3px;opacity:.8;text-shadow:0 1px 1px rgba(0,0,0,.25)}.bpx-player-charging-toast .bpx-player-charging-toast-left-level i,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-left-level i{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:12px;justify-content:center;margin-right:4px;margin-top:.8px;opacity:.8;width:12px}.bpx-player-charging-toast .bpx-player-charging-toast-left-level i svg,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-left-level i svg{height:12px;width:12px}.bpx-player-charging-toast .bpx-player-charging-toast-right,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-right{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#f69;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:30px;margin-left:24px;padding-left:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:79px}.bpx-player-charging-toast .bpx-player-charging-toast-right i,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-right i{height:20px;width:20px}.bpx-player-charging-toast .bpx-player-charging-toast-right i svg,.bpx-player-trial-watch-charging-toast .bpx-player-charging-toast-right i svg{height:100%;width:100%}.bpx-player-charging-flash{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#f69;border-radius:100%;display:-webkit-box;display:-ms-flexbox;display:flex;height:20px;justify-content:center;margin-left:2px;margin-right:8px;width:20px}.bpx-player-charging-flash svg{height:100%;width:100%}.bpx-player-charging-qa-toast{max-width:360px;min-width:280px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-question-content{position:relative}.bpx-player-charging-qa-toast .bpx-player-charging-qa-question-content-more{background:-webkit-gradient(linear,right top,left top,color-stop(63.19%,#191919),to(rgba(25,25,25,0)));background:linear-gradient(270deg,#191919 63.19%,rgba(25,25,25,0));color:hsla(0,0%,100%,.8);font-size:14px;font-weight:400;height:20px;position:absolute;right:10px;text-align:right;top:20px;width:54px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:1px solid hsla(0,0%,100%,.1);color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;line-height:20px;opacity:.8;padding-bottom:8px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-question{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;margin-top:8px;overflow:hidden}.bpx-player-charging-qa-toast .bpx-player-charging-qa-question-icon{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;-ms-flex-negative:0;align-items:center;background:#f69;border-radius:4px;color:#fff;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;flex-shrink:0;font-size:14px;height:16px;justify-content:center;margin-right:2px;width:16px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-question-text{word-wrap:break-word;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;font-weight:700;line-height:20px;max-height:40px;opacity:1;overflow:hidden;white-space:normal;word-break:break-all}.bpx-player-charging-qa-toast .bpx-player-charging-qa-question-text .bpx-common-svg-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:18px;margin-right:1px;vertical-align:text-top;width:18px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-button{-webkit-box-align:center;-ms-flex-align:center;-ms-flex-negative:0;align-items:center;background:#f69;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;flex-shrink:0;font-size:14px;height:30px;margin-left:16px;padding-left:5px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:80px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-button i{height:20px;width:20px}.bpx-player-charging-qa-toast .bpx-player-charging-qa-button i svg{height:100%;width:100%}.bpx-player-custom-toast-charging-QA{-webkit-box-sizing:border-box!important;box-sizing:border-box!important;padding:12px!important}.bpx-player-ai-prompt-toast{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-ai-prompt-toast-switch{color:red}.bpx-player-ai-prompt-toast svg{height:16px;margin-right:6px;width:16px}.bpx-player-ai-animation{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-position:50%;background-repeat:no-repeat;background-size:contain;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;position:relative;width:100%}.bpx-player-ai-animation-mask{background-color:rgba(0,0,0,.5);height:100%;position:absolute;-webkit-transform-origin:0 50%;transform-origin:0 50%;width:100%}.bpx-player-ai-animation-mask-top{-webkit-animation:topAiAnimation 2s ease-out forwards;animation:topAiAnimation 2s ease-out forwards;-webkit-transform:skewY(var(--ai-animation-degree)) translateY(0);transform:skewY(var(--ai-animation-degree)) translateY(0)}.bpx-player-ai-animation-mask-bottom{-webkit-animation:bottomAiAnimation 2s ease-out forwards;animation:bottomAiAnimation 2s ease-out forwards;-webkit-transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1)}@-webkit-keyframes topAiAnimation{0%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(0);transform:skewY(var(--ai-animation-degree)) translateY(0)}60%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(0);transform:skewY(var(--ai-animation-degree)) translateY(0)}85%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(-100%);transform:skewY(var(--ai-animation-degree)) translateY(-100%)}to{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(-100%);transform:skewY(var(--ai-animation-degree)) translateY(-100%)}}@keyframes topAiAnimation{0%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(0);transform:skewY(var(--ai-animation-degree)) translateY(0)}60%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(0);transform:skewY(var(--ai-animation-degree)) translateY(0)}85%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(-100%);transform:skewY(var(--ai-animation-degree)) translateY(-100%)}to{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(-100%);transform:skewY(var(--ai-animation-degree)) translateY(-100%)}}@-webkit-keyframes bottomAiAnimation{0%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1)}60%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1)}85%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1)}to{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1)}}@keyframes bottomAiAnimation{0%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1)}60%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(100%) scaleY(-1)}85%{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1)}to{-webkit-transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1);transform:skewY(var(--ai-animation-degree)) translateY(200%) scaleY(-1)}}.bpx-player-ai-animation-container{height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.bpx-player-ai-animation-container svg{-webkit-animation:aiTitleAnimation 1.9s ease-out forwards;animation:aiTitleAnimation 1.9s ease-out forwards;opacity:.7;width:25%}@-webkit-keyframes aiTitleAnimation{0%{opacity:.7}60%{opacity:.7}to{opacity:0}}@keyframes aiTitleAnimation{0%{opacity:.7}60%{opacity:.7}to{opacity:0}}.bpx-player-relation-wrap{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:0;-ms-flex-direction:column;flex-direction:column;justify-content:center;left:0;padding-bottom:90px;pointer-events:none;position:absolute;width:100%;z-index:54}.bpx-player-relation-wrap,.bpx-player-relation-wrap-show .bpx-player-relation-context{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-relation-wrap-show:after{background:-webkit-gradient(linear,left top,left bottom,color-stop(2.18%,transparent),to(#000));background:linear-gradient(180deg,transparent 2.18%,#000);bottom:0;content:"";height:300px;position:absolute;width:100%}.bpx-player-relation-context{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:none;justify-content:center;margin-top:16px;position:relative;z-index:1}.bpx-player-relation-context-item{-webkit-box-flex:1;cursor:pointer;-ms-flex:1;flex:1;margin-left:14px;max-width:200px;min-width:160px;pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-relation-context-item:first-child{margin-left:0}.bpx-player-relation-context-poster{border-radius:6px;padding-top:56.25%;position:relative;width:100%}.bpx-player-relation-context-poster-img{border-radius:6px;height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;top:0;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s;width:100%}.bpx-player-relation-context-poster-img:hover{-webkit-transform:scale(1.05);transform:scale(1.05)}.bpx-player-relation-context-poster-duration{background:#17181a;border-radius:2px;bottom:4px;color:#e7e9eb;font-size:12px;height:16px;line-height:16px;opacity:.9;padding-left:4px;padding-right:4px;position:absolute;right:6px;text-align:center;width:auto}.bpx-player-relation-context-title{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#fff;display:-webkit-box;font-size:13px;font-weight:400;height:38px;line-height:18px;margin:4px 0;overflow:hidden;text-overflow:ellipsis;width:90%}.bpx-player-relation-context-title:hover{color:#f69}.bpx-player-relation-button{fill:#fff;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.4);border-radius:26px;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;font-weight:400;height:32px;justify-content:center;padding-left:9px;padding-right:4px;pointer-events:all;width:auto}.bpx-player-relation-button svg{height:16px;margin-right:3px;transition:none;-webkit-transition:none;width:16px}.bpx-player-relation-button:hover{fill:#f69;color:#f69}.bpx-player-embeded-ending-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(33,33,33,.9);display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:55}.bpx-player-embeded-ending-wrap-box{-ms-flex-item-align:center;align-self:center;position:relative;width:100%}.bpx-player-embeded-ending-wrap-backdrop{background-position:50%;background-size:cover;-webkit-filter:blur(20px);filter:blur(20px);height:120%;left:-10%;position:absolute;top:-10%;width:120%;z-index:-1}.bpx-player-embeded-ending-wrap .fix-context .bpx-player-relation-context-item{min-width:200px!important}.bpx-player-embeded-ending-top-wrap{width:100%}.bpx-player-embeded-ending-relation-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;pointer-events:none;width:100%;z-index:54}.bpx-player-embeded-ending-relation-wrap .bpx-player-relation-context-item:nth-child(6){margin-left:0!important}.bpx-player-embeded-ending-relation-wrap .bpx-player-relation-context-item:nth-child(n+6){margin-top:20px!important}.bpx-player-embeded-ending-relation-context{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;margin-top:16px;width:100%;z-index:1}.bpx-player-embeded-ending-button-group,.bpx-player-embeded-ending-relation-context{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center}.bpx-player-embeded-ending-button-group{fill:#fff;color:#fff;cursor:pointer;font-size:14px;font-weight:400;height:32px;margin:26px auto 0;pointer-events:all}.bpx-player-embeded-ending-button-group svg{-ms-flex-item-align:center;align-self:center;height:16px;width:16px}.bpx-player-embeded-ending-button-group .bpx-player-downlowd{border-radius:6px;display:-webkit-box;display:-ms-flexbox;display:flex;height:32px;line-height:32px;margin-right:4px;mix-blend-mode:normal;padding-left:16px;padding-right:16px;width:auto}.bpx-player-embeded-ending-button-group .bpx-player-downlowd svg{margin-right:4px}.bpx-player-embeded-ending-button-group .bpx-player-downlowd:hover{background:rgba(229,233,239,.3);-webkit-transition:background-color .2s ease-in-out;transition:background-color .2s ease-in-out}.bpx-player-embeded-ending-button-group .bpx-player-enter{border-radius:6px;display:-webkit-box;display:-ms-flexbox;display:flex;height:32px;line-height:32px;margin-right:20px;mix-blend-mode:normal;padding-left:16px;padding-right:16px;width:auto}.bpx-player-embeded-ending-button-group .bpx-player-enter:hover{background:rgba(229,233,239,.3);-webkit-transition:background-color .2s ease-in-out;transition:background-color .2s ease-in-out}.bpx-player-ending-enter-button{fill:#fff;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.4);border-radius:26px;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;font-weight:400;height:32px;justify-content:center;pointer-events:all;position:absolute;right:14px;top:14px;width:160px}.bpx-player-ending-enter-button svg{height:16px;margin-right:3px;transition:none;-webkit-transition:none;width:16px}.bpx-player-ending-enter-button:hover{fill:#f69;color:#f69}.bpx-player-replay{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:6px;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;height:45px;padding:10px;position:relative;-webkit-transition:background .2s;transition:background .2s;width:45px}.bpx-player-replay-icon{height:24px;width:24px}.bpx-player-replay-text{color:hsla(0,0%,100%,.8);font-size:12px;margin-top:5px}.bpx-player-mini-site .bpx-player-embeded-ending-wrap{background:rgba(33,33,33,.5)}@-webkit-keyframes star-animate{0%{-webkit-transform:scale(1);transform:scale(1)}70%{-webkit-transform:scale(1.4);transform:scale(1.4)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes star-animate{0%{-webkit-transform:scale(1);transform:scale(1)}70%{-webkit-transform:scale(1.4);transform:scale(1.4)}to{-webkit-transform:scale(1);transform:scale(1)}}.bpx-player-ending{cursor:pointer;height:100%;overflow:hidden;width:100%}.bpx-player-ending-content{color:#fff;cursor:default;height:390px;left:50%;margin-left:-355px;margin-top:-195px;pointer-events:none;position:absolute;top:50%;width:710px;z-index:2}.bpx-player-ending-content .bpx-player-ending-functions{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.bpx-player-ending-content .bpx-player-ending-functions-avatar{-ms-flex-negative:0;border:2px solid hsla(0,0%,100%,.6);border-radius:100%;flex-shrink:0;height:56px;margin:-2px;pointer-events:auto;width:56px}.bpx-player-ending-content .bpx-player-ending-functions-avatar:hover{border-color:#00a1d6;border-color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ending-content .bpx-player-ending-functions-avatar a{border-radius:100%;display:block;height:100%;overflow:hidden;width:100%}.bpx-player-ending-content .bpx-player-ending-functions-avatar a img{border-radius:50%;height:100%;width:100%}.bpx-player-ending-content .bpx-player-ending-functions-upinfo{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:56px;justify-content:space-between;margin-left:20px;max-width:300px;min-width:130px;position:relative}.bpx-player-ending-content .bpx-player-ending-functions-name{color:#fff;font-size:16px;height:20px;line-height:16px;overflow:hidden;pointer-events:auto;text-overflow:ellipsis;white-space:nowrap;width:100%}.bpx-player-ending-content .bpx-player-ending-functions-name a{color:#fff;-webkit-transition:text-shadow .3s linear;transition:text-shadow .3s linear}.bpx-player-ending-content .bpx-player-ending-functions-name a:hover{text-shadow:0 0 4px #fff}.bpx-player-ending-content .bpx-player-ending-functions-follow{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#00a1d6;background-color:var(--bpx-primary-color,#00a1d6);border-radius:2px;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:14px;height:32px;justify-content:center;line-height:32px;min-width:68px;pointer-events:auto;-webkit-transition:background-color .2s linear;transition:background-color .2s linear;width:130px}.bpx-player-ending-content .bpx-player-ending-functions-follow:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-ending-content .bpx-player-ending-functions-follow .bpx-common-svg-icon{fill:#fff;height:16px;margin-right:5px;pointer-events:none;width:16px}.bpx-player-ending-content .bpx-player-ending-functions-follow.bpx-state-disabled{background-color:hsla(0,0%,100%,.4);color:silver;cursor:not-allowed;width:72px}.bpx-player-ending-content .bpx-player-ending-functions-electric{bottom:0;left:0;position:absolute}.bpx-player-ending-content .bpx-player-ending-functions-electric-inner{background-color:#fb7299;border:1px solid #fb7299;border-radius:2px;color:#fff;cursor:pointer;font-size:14px;height:30px;line-height:30px;margin-left:82px;pointer-events:auto;text-align:center;-webkit-transition:all .2s linear;transition:all .2s linear;width:130px}.bpx-player-ending-content .bpx-player-ending-functions-electric-inner>*{pointer-events:none}.bpx-player-ending-content .bpx-player-ending-functions-electric-customize-image{height:18px;-o-object-fit:contain;object-fit:contain;vertical-align:middle}.bpx-player-ending-content .bpx-player-ending-functions-electric-customize-text{vertical-align:middle}.bpx-player-ending-content .bpx-player-ending-functions-electric.bpx-state-little .bpx-player-ending-functions-electric-inner{background-color:transparent;border-color:#fb7299;color:#fb7299;margin-left:140px;width:72px}.bpx-player-ending-content .bpx-player-ending-functions-electric.bpx-state-little .bpx-player-ending-functions-electric-inner:hover{background-color:#fb7299;color:#fff}.bpx-player-ending-content .bpx-player-ending-functions-electric.bpx-state-little .bpx-player-ending-functions-electric-inner .more-word{display:none}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-follow{border-radius:4px;height:30px;margin-left:12px;padding:0 21px;width:auto}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-follow.bpx-state-disabled{background:hsla(0,0%,100%,.2);color:#fff;padding:0;width:88px}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric{height:30px;position:relative}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric-inner,.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric.bpx-state-little .bpx-player-ending-functions-electric-inner{background:transparent;border-radius:4px;color:#fb7299;font-size:0;height:28px;line-height:28px;margin-left:0;padding:0 11px;white-space:nowrap;width:auto}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric-inner:hover,.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric.bpx-state-little .bpx-player-ending-functions-electric-inner:hover{background-color:rgba(251,114,153,.2);color:#fb7299}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric-icon{height:20px;margin-right:2px;-o-object-fit:contain;object-fit:contain;vertical-align:middle}.bpx-player-ending-content .bpx-player-ending-functions-customize .bpx-player-ending-functions-electric-text{font-size:14px;vertical-align:middle}.bpx-player-ending-content .bpx-player-ending-functions-common{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-align:end;-ms-flex-align:end;-webkit-box-flex:1;-ms-flex-positive:1;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;flex-grow:1;height:56px;justify-content:flex-end}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-common-svg-icon{height:28px;width:28px}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:justify;-ms-flex-pack:justify;fill:hsla(0,0%,100%,.9);color:hsla(0,0%,100%,.9);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:46px;justify-content:space-between;pointer-events:auto;text-align:center;-webkit-transition:all .3s linear;transition:all .3s linear}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn:hover{fill:#fff;color:#fff}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn.bpx-state-active{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6);color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn[data-action=restart]{border-right:1px solid hsla(0,0%,100%,.1);padding-right:30px}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn .bpx-common-svg-icon{pointer-events:none}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn[data-action=coin]:empty,.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn[data-action=collect]:empty,.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn[data-action=grade]:empty,.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-btn[data-action=like]:empty{display:none;pointer-events:none}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-pagecallback{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;margin-left:30px}.bpx-player-ending-content .bpx-player-ending-functions-common .bpx-player-ending-functions-pagecallback>div{margin-left:30px}.bpx-player-ending-content .bpx-player-ending-related{height:306px;margin-right:-28px;margin-top:20px;overflow:hidden;padding-top:30px;position:relative}.bpx-player-ending-content .bpx-player-ending-related:not(:empty):before{content:"相关推荐";font-size:16px;left:0;line-height:20px;position:absolute;top:0}.bpx-player-ending-content .bpx-player-ending-related-item{border:1px solid transparent;border-radius:4px;float:left;height:140px;margin:0 16px 16px 0;overflow:hidden;pointer-events:auto;position:relative;-webkit-transition:border-color .3s ease-in-out,-webkit-box-shadow .3s ease-in-out;transition:border-color .3s ease-in-out,-webkit-box-shadow .3s ease-in-out;transition:border-color .3s ease-in-out,box-shadow .3s ease-in-out;transition:border-color .3s ease-in-out,box-shadow .3s ease-in-out,-webkit-box-shadow .3s ease-in-out;width:223px}.bpx-player-ending-content .bpx-player-ending-related-item:before{background:-webkit-gradient(linear,left top,left bottom,from(transparent),color-stop(20%,rgba(0,0,0,.1)),color-stop(35%,rgba(0,0,0,.2)),color-stop(65%,rgba(0,0,0,.5)),to(rgba(0,0,0,.66)));background:linear-gradient(transparent,rgba(0,0,0,.1) 20%,rgba(0,0,0,.2) 35%,rgba(0,0,0,.5) 65%,rgba(0,0,0,.66));border-radius:4px;bottom:0;content:"";left:0;position:absolute;right:0;top:30%;z-index:1}.bpx-player-ending-content .bpx-player-ending-related-item:hover{border-color:#fff;-webkit-box-shadow:0 0 6px hsla(0,0%,100%,.5);box-shadow:0 0 6px hsla(0,0%,100%,.5)}.bpx-player-ending-content .bpx-player-ending-related-item:hover .bpx-player-ending-related-item-cover{overflow:visible}.bpx-player-ending-content .bpx-player-ending-related-item:hover .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;height:auto;padding-right:24px;-webkit-transform:translateY(-18px);transform:translateY(-18px);white-space:normal}.bpx-player-ending-content .bpx-player-ending-related-item:hover .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater{opacity:1;visibility:visible}.bpx-player-ending-content .bpx-player-ending-related-item-img{background-color:#000;background-position:50%;background-repeat:no-repeat;background-size:auto 100%;border-radius:4px;height:100%;overflow:hidden;position:relative;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;width:100%}.bpx-player-ending-content .bpx-player-ending-related-item-cover{border-radius:4px;bottom:0;color:#fff;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:2}.bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-title{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:13px;height:18px;line-height:18px;overflow:hidden;padding:0 10px;position:absolute;text-overflow:ellipsis;top:118px;-webkit-transition:transform .3s ease-in-out;-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out;white-space:nowrap;width:100%;word-break:break-all;z-index:1}.bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater{background-color:#fff;border-radius:4px;bottom:10px;margin-bottom:-6px;margin-right:-4px;opacity:0;position:absolute;right:10px;-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in;visibility:hidden;z-index:2}.bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater i{color:#a0a0a0;cursor:pointer;font-size:22px}.bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater.bpx-state-active i{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-cancel{background:hsla(0,0%,100%,.4);border-radius:4px;color:#fff;cursor:pointer;font-size:14px;height:24px;line-height:24px;position:absolute;right:6px;text-align:center;top:6px;width:68px;z-index:11}.bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-countdown{margin-left:50%;margin-top:40px;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:64px;z-index:2}.bpx-player-ending-content[screen-mode=little-screen]{height:312px;margin:-156px 0 0 -268px;width:536px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-functions-upinfo{height:48px;margin-left:14px;margin-top:8px;min-width:120px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-functions-upinfo-follow{font-size:12px;height:24px;line-height:24px;width:120px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-functions-upinfo-electric-inner{font-size:12px;height:22px;line-height:22px;margin-left:70px;white-space:nowrap;width:80px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-functions-upinfo-electric.bpx-state-little .bpx-player-ending-functions-electric-inner{margin-left:130px;width:60px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-functions-common{height:48px;margin-top:8px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-functions-common .bpx-player-ending-functions-btn{height:38px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-related{height:226px;margin-top:14px;padding-top:0}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-related:before{content:""}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-related-item{height:102px;margin-bottom:10px;margin-right:16px;width:166px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-related-item-title{font-size:12px;height:16px;line-height:16px;top:80px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-interaction-swiper{margin-top:14px;padding:0 0 8px}.bpx-player-ending-content[screen-mode=little-screen] .bpx-player-ending-interaction-swiper:before{content:""}.bpx-player-ending-content[screen-mode=second-screen] .bpx-player-ending-related{padding-top:0}.bpx-player-ending-content[screen-mode=second-screen] .bpx-player-ending-related:before{content:""}.bpx-player-ending-content[screen-mode=second-screen] .bpx-player-ending-interaction-swiper{padding:0 0 8px}.bpx-player-ending-content[screen-mode=second-screen] .bpx-player-ending-interaction-swiper:before{content:""}.bpx-player-ending-content.bpx-state-plus{height:434px;margin-left:-385px;margin-top:-217px;width:770px}.bpx-player-ending-content.bpx-state-plus .bpx-player-ending-related{height:330px;margin-top:40px}.bpx-player-ending-content.bpx-state-plus .bpx-player-ending-related-item{height:146px;margin:0 28px 28px 0;width:235px}.bpx-player-ending-content.bpx-state-plus .bpx-player-ending-related-item-title{top:120px}.bpx-player-ending-content.bpx-state-plus .bpx-player-ending-interaction-swiper{margin-top:40px}.bpx-player-ending-interaction-mark{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-box-align:start;-ms-flex-align:start;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-items:flex-start;cursor:pointer;-ms-flex-direction:column;flex-direction:column;height:46px;justify-content:space-between;margin-left:38px;pointer-events:auto}.bpx-player-ending-interaction-mark,.bpx-player-ending-interaction-mark .bpx-player-ending-interaction-grade{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-ending-interaction-mark .bpx-player-ending-interaction-grade-item{margin-left:8px;pointer-events:auto}.bpx-player-ending-interaction-mark .bpx-player-ending-interaction-grade-item.animate{-webkit-animation:star-animate .4s;animation:star-animate .4s}.bpx-player-ending-interaction-mark .bpx-player-ending-interaction-grade-item .bpx-common-svg-icon{height:22px;pointer-events:none;width:21px}.bpx-player-ending-interaction-mark .bpx-player-ending-interaction-grade-item:first-child{margin-left:0}.bpx-player-ending-interaction-mark .bpx-player-ending-interaction-tip{font-size:12px;margin-left:2px}.bpx-player-ending-interaction-swiper{color:#343434;margin:30px -14px 0;overflow:hidden;padding-top:30px;pointer-events:auto;position:relative}.bpx-player-ending-interaction-swiper .bpx-common-svg-icon{display:block}.bpx-player-ending-interaction-swiper:empty{margin:0!important;padding:0!important;pointer-events:none}.bpx-player-ending-interaction-swiper:not(:empty):before{color:#fff;content:"进度回溯";font-size:16px;left:12px;line-height:20px;position:absolute;top:0}.bpx-player-ending-interaction-hiddenvars-content{color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;padding:0}.bpx-player-ending-interaction-hiddenvars-content .bpx-common-svg-icon{height:15px;width:14px}.bpx-player-ending-interaction-hiddenvars-item{-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:16px;padding:0 12px}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-video-title{color:#fff;font-size:20px;font-weight:500;height:24px;left:0;line-height:24px;margin:24px 0 0 24px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;text-overflow:ellipsis;top:0;white-space:nowrap;width:100%;z-index:1}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content .bpx-player-ending-premiere-title,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview .bpx-player-ending-premiere-title{color:#fff;font-size:22px;height:39px;line-height:39px;margin-bottom:7px;text-align:center}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content .bpx-player-ending-premiere-info,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview .bpx-player-ending-premiere-info{border-bottom:1px solid hsla(0,0%,100%,.1);color:hsla(0,0%,100%,.6);font-size:18px;height:25px;line-height:25px;margin-bottom:30px;padding-bottom:30px;text-align:center}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content .bpx-player-ending-related,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview .bpx-player-ending-related{height:150px}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview.bpx-state-plus,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content.bpx-state-plus{top:40%}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview.bpx-state-plus .bpx-player-ending-related,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content.bpx-state-plus .bpx-player-ending-related{height:335px}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview.bpx-state-plus .bpx-player-ending-premiere-title,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content.bpx-state-plus .bpx-player-ending-premiere-title{font-size:28px}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview.bpx-player-ending-premiere-content-upview,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content.bpx-player-ending-premiere-content-upview{top:55%}.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content-upview.bpx-player-ending-premiere-content-upview.bpx-state-plus,.bpx-player-ending.bpx-player-ending-premiere .bpx-player-ending-premiere-content.bpx-player-ending-premiere-content-upview.bpx-state-plus{top:45%}.bpx-player-container[data-screen=full] .bpx-player-ending-content,.bpx-player-container[data-screen=web] .bpx-player-ending-content,.bpx-player-container[data-screen=wide] .bpx-player-ending-content{margin-left:-476px;width:952px}.bpx-player-container[data-screen=full] .bpx-player-ending-content.bpx-state-plus,.bpx-player-container[data-screen=web] .bpx-player-ending-content.bpx-state-plus,.bpx-player-container[data-screen=wide] .bpx-player-ending-content.bpx-state-plus{margin-left:-518px;width:1036px}.bpx-player-container[data-revision="1"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater,.bpx-player-container[data-revision="2"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater{background-color:rgba(0,0,0,.8);bottom:calc(100% - 30px);height:28px;right:14px}.bpx-player-container[data-revision="1"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater i,.bpx-player-container[data-revision="2"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater i{background-image:url('+y+');background-size:auto 100%;border-radius:6px;color:inherit;display:inline-block;height:28px;width:28px}.bpx-player-container[data-revision="1"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater i:before,.bpx-player-container[data-revision="2"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater i:before{content:""}.bpx-player-container[data-revision="1"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater.bpx-state-active i,.bpx-player-container[data-revision="2"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-watchlater.bpx-state-active i{background-image:url('+b+')}.bpx-player-container[data-revision="1"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-cancel,.bpx-player-container[data-revision="2"] .bpx-player-ending-content .bpx-player-ending-related-item-cover .bpx-player-ending-related-item-cancel{right:calc(100% - 75px);top:8px}.bpx-player-container[data-revision="2"][data-screen=full] .bpx-player-ending-premiere-video-title{opacity:1}.bpx-player-follow{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-flex:0;align-items:center;background-color:rgba(0,0,0,.4);border-radius:26px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;font-size:12px;font-weight:400;height:32px;line-height:32px;margin-bottom:8px;pointer-events:all;text-align:center;width:89px;z-index:2}.bpx-player-follow-face{-webkit-box-flex:0;border-radius:50%;-ms-flex:none;flex:none;height:24px;margin-left:4px;vertical-align:bottom;width:24px}.bpx-player-follow-icon{fill:#fff;-webkit-box-flex:0;-ms-flex:none;flex:none;height:14px;line-height:14px;margin-left:8px;width:14px}.bpx-player-follow-text{-webkit-box-flex:0;-ms-flex:none;flex:none;margin-left:5px}.bpx-player-follow:hover{background-color:rgba(0,0,0,.6)}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-follow,.bpx-player-container[data-screen=web] .bpx-player-follow{height:40px;line-height:40px;margin-bottom:12px;width:97px}.bpx-player-container[data-screen=full] .bpx-player-follow-face,.bpx-player-container[data-screen=web] .bpx-player-follow-face{height:32px;width:32px}}.bpx-player-container.bpx-player-embedded .bpx-player-follow{background:rgba(24,25,28,.5);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:30px;padding-right:15px;width:auto}.bpx-player-container.bpx-player-embedded .bpx-player-follow-face{height:30px;margin-left:0;width:30px}.bpx-player-container.bpx-player-embedded .bpx-player-follow-icon{margin-right:2px}.bpx-player-container.bpx-player-embedded .bpx-player-follow-name{color:#c1c1c1;font-size:13px;margin:0 10px 0 6px}.bpx-player-container.bpx-player-embedded .bpx-player-follow-name,.bpx-player-container.bpx-player-embedded .bpx-player-follow-text{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:PingFang SC;font-size:12px;font-style:normal;font-weight:400;line-height:1;-webkit-transition:color .15s;transition:color .15s}.bpx-player-container.bpx-player-embedded .bpx-player-follow-name svg,.bpx-player-container.bpx-player-embedded .bpx-player-follow-text svg{fill:#fff;height:12px;margin-right:2px;width:12px}.bpx-player-container.bpx-player-embedded .bpx-player-follow .bpx-player-follow-name:hover,.bpx-player-container.bpx-player-embedded .bpx-player-follow .bpx-player-follow-text:hover{color:#f69}.bpx-player-container.bpx-player-embedded .bpx-player-follow .bpx-player-follow-text:hover svg{fill:#f69!important}@-webkit-keyframes music-marque-animation{0%{-webkit-transform:translateX(0);transform:translateX(0)}to{-webkit-transform:translateX(-50%);transform:translateX(-50%)}}@keyframes music-marque-animation{0%{-webkit-transform:translateX(0);transform:translateX(0)}to{-webkit-transform:translateX(-50%);transform:translateX(-50%)}}.bpx-player-music{-webkit-box-flex:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:rgba(0,0,0,.3);border-radius:26px;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;font-size:12px;font-weight:400;height:24px;line-height:24px;margin-bottom:8px;padding:0 6px;pointer-events:all;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:2}.bpx-player-music-icon{fill:#fff;height:14px;line-height:14px;width:14px}.bpx-player-music-marquee{margin-left:6px;max-width:144px;overflow:hidden;position:relative;white-space:nowrap}.bpx-player-music-marquee.mask{mask-image:linear-gradient(89.59deg,hsla(0,0%,77%,0) .29%,hsla(0,0%,77%,.876) 14.6%,#c4c4c4 82.83%,hsla(0,0%,77%,0) 99.63%);-webkit-mask-image:linear-gradient(89.59deg,hsla(0,0%,77%,0) .29%,hsla(0,0%,77%,.876) 14.6%,#c4c4c4 82.83%,hsla(0,0%,77%,0) 99.63%)}.bpx-player-music-marquee-root{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.bpx-player-music-marquee-content{font-size:12px;font-weight:400}.bpx-player-music-marquee span:not(:first-child){margin-left:10px}.bpx-player-music-arrow{fill:#fff;height:16px;line-height:1;width:16px}.bpx-player-music:hover{background-color:rgba(0,0,0,.5)}.bpx-player-music:hover .bpx-player-music-marquee-content{animation-play-state:paused!important;-webkit-animation-play-state:paused!important}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-music,.bpx-player-container[data-screen=web] .bpx-player-music{margin-bottom:12px}.bpx-player-container[data-screen=full] .bpx-player-music-marquee,.bpx-player-container[data-screen=web] .bpx-player-music-marquee{max-width:240px}}.bpx-player-top-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:all;position:absolute;right:20px;top:19px}.bpx-player-top-buttons .bpx-player-top-button-menu{backdrop-filter:blur(10px);height:84px;width:189px}.bpx-player-top-buttons .bpx-player-top-button-menu-item:hover{background-color:#2f3134}.bpx-player-top-buttons .bpx-player-top-button{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:6px;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;height:45px;padding:10px;position:relative;-webkit-transition:background .2s;transition:background .2s;width:45px}.bpx-player-top-buttons .bpx-player-top-button-icon{height:24px;width:24px}.bpx-player-top-buttons .bpx-player-top-button-text{color:hsla(0,0%,100%,.8);font-size:12px;margin-top:5px}.bpx-player-top-buttons .bpx-player-top-button:hover{background:rgba(229,233,239,.3)}.bpx-player-top-buttons .bpx-player-top-button-menu{background:rgba(24,25,28,.85);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:default;display:none;list-style:none;outline:none;padding:10px;position:absolute;right:0;top:60px;width:150px}.bpx-player-top-buttons .bpx-player-top-button-menu.bpx-state-top-menu-show{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.bpx-player-top-buttons .bpx-player-top-button-menu-item{border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;font-size:12px;height:32px;line-height:32px;padding-left:16px;width:100%}.bpx-player-top-buttons .bpx-player-top-button-menu-item:hover{background:#2f3134}@media screen and (min-width:750px){.bpx-player-container[data-screen=full] .bpx-player-top-buttons,.bpx-player-container[data-screen=web] .bpx-player-top-buttons{right:30px;top:18px}}.bpx-player-embeded-ending-top-wrap .bpx-player-top-buttons-replay:after{background:hsla(0,0%,100%,.1);content:"";height:45px;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:1px}.bpx-player-embeded-ending-top-wrap .bpx-player-top-buttons{right:0!important}.bpx-player-embeded-ending-top-wrap .bpx-player-top-buttons .bpx-player-top-button-icon{height:22px!important;width:22px!important}.bpx-player-embeded-ending-top-wrap .bpx-player-top-buttons .bpx-player-top-buttons-like,.bpx-player-embeded-ending-top-wrap .bpx-player-top-buttons .bpx-player-top-buttons-share{fill:#fff}.bpx-player-embeded-ending-top-wrap .bpx-player-top-buttons .bpx-player-top-button-text{color:#a2a7ae;font-size:12px;font-style:normal;font-weight:400;height:10px;line-height:10px;text-align:center;width:50px}.bpx-player-embedded .bpx-player-top-issue,.bpx-player-embedded .bpx-player-top-title{display:none}.bpx-player-embedded .bpx-player-top-left-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:10px;pointer-events:all}.bpx-player-embedded .bpx-player-top-left-title-text{color:#fff;cursor:pointer;font-size:16px;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:330px!important}.bpx-player-embedded .bpx-player-top-left-title-text:hover{color:#f69}.bpx-player-embedded .bpx-player-top-left-title .bpx-player-top-left-logo{cursor:pointer;margin-right:6px;pointer-events:all;width:50px}.bpx-player-embedded .bpx-player-top-left-title .bpx-player-top-left-logo svg{fill:#f69}.bpx-player-embedded .bpx-player-top-left-title .bpx-player-top-left-block{border-left:1px solid hsla(0,0%,100%,.3);display:inline-block;height:12px;margin-left:3px;margin-right:3px}.bpx-player-enter-button{fill:#fff;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.4);border-radius:26px;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;font-weight:400;height:32px;justify-content:center;padding-left:9px;padding-right:4px;pointer-events:all;position:absolute;right:14px;top:14px;width:auto;z-index:54}.bpx-player-enter-button svg{height:16px;margin-right:3px;transition:none;-webkit-transition:none;width:16px}.bpx-player-enter-button:hover{fill:#f69;color:#f69}.bpx-player-viewpoint{background-color:#f4f4f4;background-color:var(--bpx-aux-header-bg,#f4f4f4);border-radius:2px;overflow:hidden}.bpx-player-viewpoint-header{color:#222;color:var(--bpx-aux-header-font,#222);font-size:16px;height:46px;line-height:46px;padding:0 10px 0 16px;position:relative}.bpx-player-viewpoint-header-close{fill:#757575;fill:var(--bpx-aux-header-icon,#757575);cursor:pointer;height:50px;position:absolute;right:14px;width:24px}.bpx-player-viewpoint-header-close .bpx-common-svg-icon{pointer-events:none}.bpx-player-viewpoint-body{background-color:#f4f4f4;background-color:var(--bpx-aux-header-bg,#f4f4f4);-webkit-box-sizing:border-box;box-sizing:border-box;max-height:284px;overflow:hidden;padding-bottom:10px;position:relative}.bpx-player-viewpoint-body .bscroll-vertical-scrollbar{width:6px!important}.bpx-player-viewpoint-body .bscroll-indicator{background:#6d7f7a!important;border:none!important;cursor:pointer}.bpx-player-viewpoint-body:hover .bscroll-vertical-scrollbar{opacity:1!important}.bpx-player-viewpoint-menu{margin:0;padding:0}.bpx-player-viewpoint-menu-item{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:60px;margin-bottom:12px;padding:0 16px;position:relative;width:100%}.bpx-player-viewpoint-menu-item *{pointer-events:none}.bpx-player-viewpoint-menu-item-cover{-webkit-box-flex:0;background-color:#c9ccd0;background-color:var(--bpx-aux-cover-bg,#c9ccd0);background-position:50%;background-size:contain;border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-line-border,#e5e9ef);border-radius:4px;-ms-flex:none;flex:none;height:58px;margin-right:10px;overflow:hidden;position:relative;width:104px}.bpx-player-viewpoint-menu-item-cover .bpx-player-viewpoint-menu-item-team-tag{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:400;height:17px;justify-content:center;line-height:16px;padding:0,4px,0,4px;position:absolute;right:5px;top:5px;width:37px}.bpx-player-viewpoint-menu-item-cover .bpx-player-team-red{background:rgba(255,84,127,.8)}.bpx-player-viewpoint-menu-item-cover .bpx-player-team-blue{background:rgba(89,153,235,.8)}.bpx-player-viewpoint-menu-item-cover img{height:100%;width:100%}.bpx-player-viewpoint-menu-item-content{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#222;color:var(--bpx-aux-content-font1,#222);display:-webkit-box;font-size:14px;line-height:19px;overflow:hidden;-webkit-transition:color .2s;transition:color .2s}.bpx-player-viewpoint-menu-item-active{background-image:url('+v+');background-position-y:1px;background-repeat:no-repeat;background-size:12px 12px;display:none;height:12px;margin-right:5px;width:12px}.bpx-player-viewpoint-menu-item-time{color:#99a2aa;color:var(--bpx-aux-content-font5,#99a2aa);font-size:12px;line-height:16px;margin-top:6px}.bpx-player-viewpoint-menu-item.bpx-state-active .bpx-player-viewpoint-menu-item-content{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-viewpoint-menu-item.bpx-state-active .bpx-player-viewpoint-menu-item-active{display:inline-block}.bpx-player-viewpoint-menu-item:hover .bpx-player-viewpoint-menu-item-content{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bpx-player-viewpoint[fold=false]{margin-top:0}.bpx-player-viewpoint[fold=true]{margin-top:10px}.bpx-player-viewpoint[data-revision="1"]{border-radius:6px}.bpx-player-viewpoint[data-revision="1"][fold=true]{margin-top:18px}.bpx-player-viewpoint[data-revision="1"] .bpx-player-viewpoint-header{font-size:15px;font-weight:500;height:44px;line-height:44px}.bpx-player-viewpoint[data-revision="1"] .bpx-player-viewpoint-menu-item-content{font-size:15px}.bpx-player-viewpoint[data-revision="1"] .bpx-player-viewpoint-menu-item-time{font-size:13px}@media screen and (min-width:1681px){.bpx-player-viewpoint[data-revision="1"][fold=true]{margin-top:20px}.bpx-player-viewpoint[data-revision="1"] .bpx-player-viewpoint-header,.bpx-player-viewpoint[data-revision="1"] .bpx-player-viewpoint-menu-item-content{font-size:16px}.bpx-player-viewpoint[data-revision="1"] .bpx-player-viewpoint-menu-item-time{font-size:14px;margin-top:4px}}.bpx-player-container[data-screen=full] .bili-cmd-shrink,.bpx-player-container[data-screen=web] .bili-cmd-shrink{bottom:97px}.bpx-player-self-egg{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;z-index:99999}.bpx-player-self-egg>img{width:400px}.bpx-player-container[data-screen=mini] .bpx-player-self-egg{display:none}@-webkit-keyframes cmd-dm-hide{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes cmd-dm-hide{0%{opacity:1}to{opacity:0;visibility:hidden}}.bpx-player-popup-dm-close{border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:16px;position:absolute;right:-13px;top:-13px;width:16px}.bpx-player-popup-dm-close:before{content:"";height:40px;left:-12px;position:absolute;top:-12px;width:40px}.bpx-player-popup-dm-close-left,.bpx-player-popup-dm-close-right{height:14px;overflow:hidden;position:absolute;top:1px;width:7px;z-index:1}.bpx-player-popup-dm-close-left-bar,.bpx-player-popup-dm-close-right-bar{border:1px solid transparent;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;height:14px;position:absolute;top:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:14px;z-index:2}.bpx-player-popup-dm-close-left{left:1px}.bpx-player-popup-dm-close-right{right:1px}.bpx-player-popup-dm-close-left-bar{border-left-color:hsla(0,0%,100%,.702);border-top-color:hsla(0,0%,100%,.702);left:0}.bpx-player-popup-dm-close-right-bar{border-bottom-color:hsla(0,0%,100%,.702);border-right-color:hsla(0,0%,100%,.702);right:0}.bpx-player-popup-dm-close .bpx-common-svg-icon{line-height:100%;position:absolute}.bpx-player-popup-dm-shrink{border-radius:20px;bottom:56px;color:#fff;cursor:pointer;height:30px;left:23px;opacity:0;pointer-events:all;position:absolute;-webkit-transform-origin:left bottom;transform-origin:left bottom;visibility:hidden}.bpx-player-popup-dm-shrink-show{opacity:1;-webkit-transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,transform .18s;transition:opacity .35s,transform .18s,-webkit-transform .18s;visibility:visible}.bpx-player-popup-dm-shrink-hide{-webkit-animation:cmd-dm-hide .35s forwards;animation:cmd-dm-hide .35s forwards;opacity:1;visibility:visible}.bpx-player-popup-dm-shrink-title{background-color:rgba(24,25,28,.8);border-radius:20px;height:30px;left:0;line-height:30px;min-width:26px;padding:0 10px 0 36px;position:absolute}.bpx-player-popup-dm-shrink-left,.bpx-player-popup-dm-shrink-right{height:26px;overflow:hidden;position:absolute;top:2px;width:13px;z-index:1}.bpx-player-popup-dm-shrink-left-bar,.bpx-player-popup-dm-shrink-right-bar{border:2px solid transparent;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;height:26px;position:absolute;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:26px;z-index:2}.bpx-player-popup-dm-shrink-left{left:2px}.bpx-player-popup-dm-shrink-right{left:15px}.bpx-player-popup-dm-shrink-left-bar{border-left-color:hsla(0,0%,100%,.702);border-top-color:hsla(0,0%,100%,.702);left:0}.bpx-player-popup-dm-shrink-right-bar{border-bottom-color:hsla(0,0%,100%,.702);border-right-color:hsla(0,0%,100%,.702);right:0}.bpx-player-popup-dm-shrink-icon{position:absolute}.bpx-player-popup-dm-shrink-icon-img{border-radius:50%;height:16px;padding:7px;width:16px}.bpx-player-cmd-dm-wrap{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;left:0;overflow:hidden;position:absolute;top:0;z-index:11}.bpx-player-cmd-dm-wrap,.bpx-player-cmd-dm-wrap .bpx-player-cmd-dm-inside{height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%}.bpx-player-cmd-dm-wrap .bpx-player-cmd-dm-inside{-webkit-box-sizing:border-box;box-sizing:border-box;padding:9.5952024%;position:relative;z-index:10}.bpx-player-popup{cursor:pointer;pointer-events:auto;position:absolute;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:center;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}.bpx-player-popup.bpx-player-popup-show{-webkit-animation:showFollow .32s ease-in-out;animation:showFollow .32s ease-in-out}.bpx-player-popup.bpx-player-popup-move>div{pointer-events:none}.bpx-player-popup-follow{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:24px;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:66px}.bpx-player-popup-follow:before{background:rgba(51,51,51,.7);border-radius:8px;bottom:-6px;content:"";left:-6px;position:absolute;right:-6px;top:-6px;z-index:-1}.bpx-player-popup-follow>span{pointer-events:none}.bpx-player-popup-follow-img{border-radius:50%;height:20px;overflow:hidden;width:20px}.bpx-player-popup-follow-img>img{height:100%;width:100%}.bpx-player-popup-follow .bpx-common-svg-icon{fill:#fff;height:17px;width:17px}.bpx-player-popup-follow:hover{background:#00b5e5;background:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-popup-follow .bpx-player-popup-follow-0 span{vertical-align:middle}.bpx-player-popup-follow .bpx-player-popup-follow-1{display:none}.bpx-player-popup-follow .bpx-player-popup-follow-1 .bpx-common-svg-icon{fill:#fff;height:11px;width:11px}.bpx-player-popup-follow.bpx-player-popup-followed{background:rgba(0,0,0,.4);color:hsla(0,0%,100%,.6)}.bpx-player-popup-follow.bpx-player-popup-followed .bpx-player-popup-follow-0{display:none}.bpx-player-popup-follow.bpx-player-popup-followed .bpx-player-popup-follow-1{display:block}.bpx-player-popup-follow.bpx-player-popup-followed.bpx-player-popup-canCancel{background:rgba(0,0,0,.6);color:#fefefe}.bpx-player-popup-follow.bpx-player-popup-has-img{-webkit-box-pack:justify;-ms-flex-pack:justify;border:1px solid transparent;justify-content:space-between;padding:2px;width:75px}.bpx-player-popup-follow.bpx-player-popup-has-img .bpx-player-popup-follow-1{height:10px;width:40px}.bpx-player-popup-follow.bpx-player-popup-no-base-color{border-radius:6px;font-size:14px;height:30px!important;line-height:16px;padding:4px 9px!important;width:90px!important}.bpx-player-popup-follow.bpx-player-popup-no-base-color:before{content:none}.bpx-player-popup-follow.bpx-player-popup-no-base-color .bpx-player-popup-img{height:22px;width:22px}.bpx-player-popup-follow.bpx-player-popup-no-base-color .bpx-player-popup-follow-1{height:16px!important;width:43px!important}.bpx-player-popup-follow.bpx-player-popup-no-base-color .bpx-player-popup-follow-0 .bpx-common-svg-icon{fill:#fff;height:14px;width:14px}.bpx-player-popup-electric{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:sans-serif;font-size:12px;height:24px;justify-content:center;line-height:24px;min-width:68px;padding:0 6px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-popup-electric:before{background:rgba(51,51,51,.7);border-radius:8px;bottom:-6px;content:"";left:-6px;position:absolute;right:-6px;top:-6px;z-index:-1}.bpx-player-popup-electric-guide{color:#fff;font-size:14px;height:38px;line-height:38px;min-width:84px;padding-left:10px;text-overflow:ellipsis;white-space:nowrap}.bpx-player-popup-electric-icon{height:100%}.bpx-player-popup.bpx-player-popup-guide-all{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:rgba(33,33,33,.6);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-follow{font-size:12px;height:24px;margin:0 6px;width:66px}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-follow:before{content:none}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-follow-img{height:16px;width:16px}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-follow.bpx-player-popup-followed{background:hsla(0,0%,100%,.2)!important;color:#fefefe}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-animate,.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-three,.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-three-animate{background-color:transparent}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-electric{margin:0 10px}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-electric:before{content:none}.bpx-player-popup.bpx-player-popup-guide-all .bpx-player-popup-electric-text{white-space:nowrap}.bpx-player-popup.bpx-player-popup-follow-to-electric .bpx-player-popup-followed,.bpx-player-popup.bpx-player-popup-follow-to-electric .bpx-player-popup-follow~.bpx-player-popup-electric{display:none}.bpx-player-popup.bpx-player-popup-follow-to-electric .bpx-player-popup-followed~.bpx-player-popup-electric{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-popup .bpx-player-popup-three{border:none}.bpx-player-popup .bpx-player-popup-cyc>span{height:80px;top:-22px;width:80px}.bpx-player-popup .bpx-player-popup-cyc>span.bpx-player-popup-cyc-like{left:-15px}.bpx-player-popup .bpx-player-popup-cyc>span.bpx-player-popup-cyc-coin{left:31px}.bpx-player-popup .bpx-player-popup-cyc>span.bpx-player-popup-cyc-collect{left:76px}.bpx-player-popup.bpx-player-popup-no-three.bpx-player-popup-guide-all{background:transparent}.bpx-player-popup.bpx-player-popup-no-three .bpx-player-popup-follow{height:24px;margin:0;width:66px}.bpx-player-popup.bpx-player-popup-no-three .bpx-player-popup-follow-img{height:16px;width:16px}.bpx-player-popup.bpx-player-popup-no-three .bpx-player-popup-electric,.bpx-player-popup.bpx-player-popup-no-three .bpx-player-popup-three{display:none}.bpx-player-popup.bpx-player-popup-hide .bpx-player-popup-three{opacity:0}.bpx-player-popup.bpx-player-popup-hide .bpx-player-popup-animate,.bpx-player-popup.bpx-player-popup-hide .bpx-player-popup-cyc{opacity:1}.bpx-player-popup.bpx-player-popup-guide-dragable .bpx-player-popup-electric,.bpx-player-popup.bpx-player-popup-guide-dragable .bpx-player-popup-follow,.bpx-player-popup.bpx-player-popup-guide-dragable .bpx-player-popup-three,.bpx-player-popup.bpx-player-popup-guide-dragable .bpx-player-popup-vote{pointer-events:none}.bpx-player-popup.bpx-player-popup-gray.bpx-player-popup-guide-all .bpx-player-popup-follow{background:#00a1d6;background:var(--bpx-primary-color,#00a1d6);border:none}.bpx-player-popup.bpx-player-popup-gray.bpx-player-popup-guide-all .bpx-player-popup-three{background:transparent;border:none}.bpx-player-popup.bpx-player-popup-gray.bpx-player-popup-guide-all .bpx-player-popup-animate{background:transparent;border-color:transparent}.bpx-player-popup.bpx-player-popup-gray .bpx-player-popup-follow .bpx-player-popup-follow-1 .bpx-common-svg-icon{opacity:.58}.bpx-player-popup-animate,.bpx-player-popup-cyc,.bpx-player-popup-three{border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:0;padding:0 3px;width:142px}.bpx-player-popup-three{background:rgba(33,33,33,.6);opacity:1}.bpx-player-popup-three>span{display:inline-block;height:20px;padding:8px 12.5px;width:20px}.bpx-player-popup-three>span svg{fill:#fff}.bpx-player-popup-three>span.bpx-player-popup-active svg{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bpx-player-popup-three .bpx-common-svg-icon{pointer-events:none}.bpx-player-popup-animate{background:rgba(33,33,33,.6);border:1px solid transparent;height:100%;width:100%}.bpx-player-popup-animate,.bpx-player-popup-cyc{left:0;opacity:0;pointer-events:none;position:absolute;top:0}.bpx-player-popup-animate>span,.bpx-player-popup-cyc>span{display:inline-block;height:100px;padding:0;position:absolute;top:-33px;width:100px}.bpx-player-popup-animate>span.bpx-player-popup-animate-like{left:-24px}.bpx-player-popup-animate>span.bpx-player-popup-animate-coin{left:20px}.bpx-player-popup-animate>span.bpx-player-popup-animate-collect{left:66px}.bpx-player-popup-animate>span.bpx-player-popup-animate-bg{height:62px;left:-14px;padding:0;pointer-events:none;position:absolute;top:-10px;width:172px}.bpx-player-popup-init-three>span{opacity:.7}.bpx-player-popup.video-mirror .bpx-player-popup-inner{-webkit-transform:rotateY(180deg);transform:rotateY(180deg)}.bpx-player-popup-vote{background:rgba(33,33,33,.8);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:default;font-size:12px;padding:12px 10px 4px;width:177px}.bpx-player-popup-vote-question{height:14px;line-height:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bpx-player-popup-vote-an{color:#000;cursor:pointer;position:relative}.bpx-player-popup-vote-an>div{pointer-events:none}.bpx-player-popup-vote-an-bg{background:#fff;border-radius:4px;bottom:0;height:26px;left:0;position:absolute;width:100%}.bpx-player-popup-vote-an-bg-buffer{border-radius:4px 0 0 4px;height:26px;left:0;position:absolute;top:0;-webkit-transition:width 1s;transition:width 1s;width:26px}.bpx-player-popup-vote-an-text{display:-webkit-box;display:-ms-flexbox;display:flex;height:26px;line-height:26px;margin:6px 0;padding-right:20px;position:relative;width:100%}.bpx-player-popup-vote-an-text-index{-webkit-box-flex:0;border-radius:4px;-ms-flex:none;flex:none;text-align:center;width:10px}.bpx-player-popup-vote-an-text-doc{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100px}.bpx-player-popup-vote-an-num{color:hsla(0,0%,100%,.7);font-size:12px;line-height:26px;margin-right:6px;position:absolute;right:0;top:0}.bpx-player-popup-vote-an-num-1,.bpx-player-popup-vote-an-num-2{height:40px;opacity:0;position:absolute;right:0;top:0}.bpx-player-popup-vote-an-num-1{position:absolute;right:0;top:0}.bpx-player-popup-vote-an-num-2{opacity:0;position:absolute;right:0;top:15px}.bpx-player-popup-vote-an.bpx-player-popup-select .bpx-player-popup-vote-lottie{display:block}.bpx-player-popup-vote-an.bpx-player-popup-select .bpx-player-popup-vote-an-bg-buffer{background:rgba(0,161,214,.6)!important}.bpx-player-popup-vote.bpx-player-popup-show-num .bpx-player-popup-vote-an-num-1{opacity:1}.bpx-player-popup-vote.bpx-player-popup-selected .bpx-player-popup-vote-an{-webkit-animation:voteFont .35s forwards;animation:voteFont .35s forwards}.bpx-player-popup-vote.bpx-player-popup-selected .bpx-player-popup-vote-an-bg{-webkit-animation:voteBg .35s forwards;animation:voteBg .35s forwards}.bpx-player-popup-vote.bpx-player-popup-selected .bpx-player-popup-vote-an-bg-buffer{background:hsla(0,0%,100%,.2)}.bpx-player-popup-vote.bpx-player-popup-vote-end .bpx-player-popup-vote-an-num-1{-webkit-animation:num1 .17s forwards;animation:num1 .17s forwards}.bpx-player-popup-vote.bpx-player-popup-vote-end .bpx-player-popup-vote-an-num-2{-webkit-animation:num2 .17s forwards;animation:num2 .17s forwards}.bpx-player-popup-vote.bpx-player-popup-init-selected .bpx-player-popup-vote-an{color:#fff}.bpx-player-popup-vote.bpx-player-popup-init-selected .bpx-player-popup-vote-an-bg{background:hsla(0,0%,100%,.2);border-radius:2px;height:4px;left:8px;width:100%}.bpx-player-popup-vote.bpx-player-popup-init-selected .bpx-player-popup-vote-an-num-1{opacity:0}.bpx-player-popup-vote.bpx-player-popup-init-selected .bpx-player-popup-vote-an-num-2{opacity:1;top:0}.bpx-player-popup-vote-lottie{display:none;height:37px;left:-5px;position:absolute;top:-6px;width:37px;z-index:2}@-webkit-keyframes voteFont{0%{color:#000}65%{color:#000}to{color:#fff}}@keyframes voteFont{0%{color:#000}65%{color:#000}to{color:#fff}}@-webkit-keyframes voteBg{to{background:rgba(0,0,0,.4)}}@keyframes voteBg{to{background:rgba(0,0,0,.4)}}@-webkit-keyframes num1{41%{opacity:0;top:-15px}to{opacity:0}}@keyframes num1{41%{opacity:0;top:-15px}to{opacity:0}}@-webkit-keyframes num2{41%{opacity:1;top:0}61.5%{opacity:1;top:-5px}to{opacity:1;top:0}}@keyframes num2{41%{opacity:1;top:0}61.5%{opacity:1;top:-5px}to{opacity:1;top:0}}.bpx-player-link-center{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:rgba(33,33,33,.8);border-radius:10px 8px 8px 10px;color:#fff;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:50px;left:50%;opacity:0;pointer-events:auto;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;width:290px;z-index:1}.bpx-player-link.bpx-player-show{opacity:1;-webkit-transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,transform .18s;transition:opacity .35s,transform .18s,-webkit-transform .18s;visibility:visible}.bpx-player-link.bpx-player-hide{-webkit-animation:cmd-dm-hide .35s forwards;animation:cmd-dm-hide .35s forwards;opacity:1;visibility:visible}.bpx-player-link-icon{background:#fff url('+E+') no-repeat;background-position:50%;background-size:40px;border-radius:8px 0 0 8px;height:50px;overflow:hidden;position:relative;width:90px}.bpx-player-link-icon .bpx-player-link-pic{width:100%}.bpx-player-link-icon .bpx-player-link-time{background:rgba(0,0,0,.5);border-radius:1px;bottom:4px;padding:2px;position:absolute;right:4px;visibility:hidden}.bpx-player-link-icon .bpx-player-link-time-show{visibility:visible}.bpx-player-link-msg{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;line-height:17px;margin-left:8px;max-height:34px;overflow:hidden;pointer-events:none;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:normal;width:134px;word-break:break-all}.bpx-player-link-line{background:hsla(0,0%,100%,.5);height:36px;margin:0 18.5px 0 8px;width:1px}.bpx-player-link-play{height:16px;width:12px}.bpx-player-reserve{background-color:rgba(33,33,33,.8);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:default;font-size:14px;height:50px;left:50%;opacity:0;padding:6px 8px;pointer-events:auto;position:absolute;top:25%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;width:290px;z-index:1}.bpx-player-reserve.bpx-player-editor{cursor:pointer}.bpx-player-reserve.bpx-player-editor-btn:hover{background:#00a1d6;background:var(--bpx-primary-color,#00a1d6)}.bpx-player-reserve.bpx-player-show{opacity:1;-webkit-transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,transform .18s;transition:opacity .35s,transform .18s,-webkit-transform .18s;visibility:visible}.bpx-player-reserve.bpx-player-hide{-webkit-animation:cmd-dm-hide .35s forwards;animation:cmd-dm-hide .35s forwards;opacity:1;visibility:visible}.bpx-player-reserve-msg{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;line-height:1;padding-right:4.5em}.bpx-player-reserve-title{font-size:14px;overflow:hidden;padding:3px 0;pointer-events:none;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.bpx-player-reserve-num{color:hsla(0,0%,100%,.7);font-size:12px;line-height:17px;overflow:hidden;text-overflow:ellipsis}.bpx-player-reserve-num-left{display:none;margin-right:10px;position:relative}.bpx-player-reserve-num-left .bp-svgicon{height:14px;vertical-align:bottom;width:14px}.bpx-player-reserve-num-left .bpx-player-img{margin-right:4px;vertical-align:text-top;width:14px}.bpx-player-reserve-num-left.bpx-player-show{display:inline-block}.bpx-player-reserve-num-left.bpx-player-show:after{content:".";line-height:1em;position:absolute;right:-9px;top:0}.bpx-player-reserve-num-right{position:relative}.bpx-player-reserve-btn{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;height:24px;justify-content:center;line-height:2;min-width:60px;padding:0 5px;position:absolute;right:.76em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bpx-player-reserve-btn:hover{background:#00b5e5;background:var(--bpx-fn-hover-color,#00b5e5)}.bpx-player-reserve-btn .bpx-player-reserve-icon{font-size:0;height:12px;width:16px}.bpx-player-reserve-btn .bpx-player-reserve-icon-tick,.bpx-player-reserve-btn.bpx-player-noIcon .bpx-player-reserve-icon,.bpx-player-reserve-btn.bpx-player-noIcon .bpx-player-reserve-icon-tick{display:none}.bpx-player-reserve-btn.bpx-player-reserved{background:hsla(0,0%,100%,.2)}.bpx-player-reserve-btn.bpx-player-reserved:hover{background:hsla(0,0%,100%,.3)}.bpx-player-reserve-btn.bpx-player-reserved .bpx-player-reserve-icon{display:none}.bpx-player-reserve-btn.bpx-player-reserved .bpx-player-reserve-icon-tick{display:block;height:30px;margin-right:4px;width:10px}.bpx-player-score{background-color:rgba(33,33,33,.8);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;font-size:12px;height:62px;left:50%;opacity:0;pointer-events:auto;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center;transform-origin:center;visibility:hidden;width:206px;z-index:1}.bpx-player-score,.bpx-player-score div{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bpx-player-score div{float:left}.bpx-player-score-show{opacity:1;-webkit-transition:.32s;transition:.32s;visibility:visible}.bpx-player-score-show-animate{opacity:1;-webkit-transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,transform .18s;transition:opacity .35s,transform .18s,-webkit-transform .18s;visibility:visible}.bpx-player-score-hide{-webkit-animation:cmd-dm-hide .35s forwards;animation:cmd-dm-hide .35s forwards;opacity:1;visibility:visible}.bpx-player-score-title{height:12px;margin:12px 0 0 10px}.bpx-player-score-area{pointer-events:none}.bpx-player-score-area-item span{background:rgba(0,0,0,.6);border-radius:2px;bottom:68px;display:none;font-size:20px;height:33px;line-height:33px;margin-left:5px;pointer-events:none;position:absolute;text-align:center;-webkit-transition:.1s;transition:.1s;width:33px}.bpx-player-score-area-item span:before{border:3px solid transparent;border-top-color:rgba(0,0,0,.6);content:"";left:14px;position:absolute;top:100%}.bpx-player-score-area-item img{height:18px;margin:7px 11.5px;pointer-events:none;-webkit-transition:.2s;transition:.2s;width:18px}.bpx-player-score-area-item:hover img{-webkit-transform:scale(1.3);transform:scale(1.3)}.bpx-player-score-area-item:hover span{display:block}.bpx-player-score-result{color:hsla(0,0%,100%,.7);display:-webkit-box;display:-ms-flexbox;display:flex;line-height:20px;opacity:0;pointer-events:none;position:absolute;right:10px;top:34px;-webkit-transition-property:margin,opacity;transition-property:margin,opacity}.bpx-player-score-result,.bpx-player-score-result span{-webkit-transition-delay:.6s;transition-delay:.6s;-webkit-transition-duration:.17s;transition-duration:.17s}.bpx-player-score-result span{font-size:20px;line-height:15px;margin-left:5px;-webkit-transition-property:margin,opactiy,-webkit-animation;transition-property:margin,opactiy,-webkit-animation;transition-property:margin,opactiy,animation;transition-property:margin,opactiy,animation,-webkit-animation}.bpx-player-score-count{opacity:.7;position:absolute;right:10px;top:12px}.bpx-player-score-result-animate img{-webkit-transform:scale(.7);transform:scale(.7);-webkit-transform-origin:left bottom;transform-origin:left bottom;-webkit-transition:.1s;transition:.1s;-webkit-transition-delay:.2s;transition-delay:.2s}.bpx-player-score-result-animate .off{opacity:.5}.bpx-player-score-result-animate img+span{display:block;margin-top:-8px;opacity:0;-webkit-transition:.1s;transition:.1s}.bpx-player-score-result-animate .bpx-player-score-area-item{-webkit-transition:-webkit-transform .1s;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s,-webkit-transform .1s}.bpx-player-score-result-animate .bpx-player-score-area-item:first-child{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition-delay:.2s;transition-delay:.2s}.bpx-player-score-result-animate .bpx-player-score-area-item:nth-child(2){-webkit-transform:translateX(-20px);transform:translateX(-20px);-webkit-transition-delay:.3s;transition-delay:.3s}.bpx-player-score-result-animate .bpx-player-score-area-item:nth-child(3){-webkit-transform:translateX(-40px);transform:translateX(-40px);-webkit-transition-delay:.4s;transition-delay:.4s}.bpx-player-score-result-animate .bpx-player-score-area-item:nth-child(4){-webkit-transform:translateX(-60px);transform:translateX(-60px);-webkit-transition-delay:.5s;transition-delay:.5s}.bpx-player-score-result-animate .bpx-player-score-area-item:nth-child(5){-webkit-transform:translateX(-80px);transform:translateX(-80px);-webkit-transition-delay:.6s;transition-delay:.6s}.bpx-player-score-result-animate .bpx-player-score-result{opacity:1}.bpx-player-score-result-animate .bpx-player-score-result span{-webkit-animation:jump-score .17s forwards;animation:jump-score .17s forwards;-webkit-animation-delay:.6s;animation-delay:.6s}@-webkit-keyframes jump-score{0%{margin-top:13px}41%{margin-top:0}61.5%{margin-top:-3px}to{margin-top:0}}@keyframes jump-score{0%{margin-top:13px}41%{margin-top:0}61.5%{margin-top:-3px}to{margin-top:0}}.bpx-player-score-summary-wrap{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-score-summary{background-color:rgba(33,33,33,.8);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;font-size:12px;height:62px;left:50%;opacity:0;pointer-events:auto;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;width:203px}.bpx-player-score-summary div{float:left}.bpx-player-score-summary-show{opacity:1;-webkit-transition:.32s;transition:.32s;visibility:visible}.bpx-player-score-summary-show-animate{opacity:1;-webkit-transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,transform .18s;transition:opacity .35s,transform .18s,-webkit-transform .18s;visibility:visible}.bpx-player-score-summary-hide{-webkit-animation:cmd-dm-hide .35s forwards;animation:cmd-dm-hide .35s forwards;opacity:1;visibility:visible}.bpx-player-score-summary-title{height:14px;margin:14px 0 0 14px}.bpx-player-score-summary-count{opacity:.7;position:absolute;right:14px;top:14px}.bpx-player-score-summary-area{font-size:14px;left:14px;pointer-events:none;position:absolute;top:40px;width:100%}.bpx-player-score-summary-area-item{height:24px;margin-bottom:3px;-webkit-transition:opacity .13s;transition:opacity .13s}.bpx-player-score-summary-area-item-name{-webkit-transition:opacity .13s,-webkit-transform .13s;transition:opacity .13s,-webkit-transform .13s;transition:opacity .13s,transform .13s;transition:opacity .13s,transform .13s,-webkit-transform .13s;width:150px}.bpx-player-score-summary-area-item-count{color:#ffb027;opacity:0;position:absolute;right:30px;-webkit-transition:opacity .13s;transition:opacity .13s}.bpx-player-score-summary-area-item-show{display:block!important;opacity:1!important}.bpx-player-score-summary-area-item-show .bpx-player-score-summary-area-item-name{opacity:1!important;-webkit-transform:translateY(0)!important;transform:translateY(0)!important}.bpx-player-score-summary-area-item-show .bpx-player-score-summary-area-item-count{opacity:1}.bpx-player-score-summary-area-item-hide .bpx-player-score-summary-area-item-name{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.bpx-player-score-summary-area-item-hide .bpx-player-score-summary-area-item-count{opacity:0}.bpx-player-score-summary-area-item-none{display:none}.bpx-player-score-summary-area-item1{opacity:0}.bpx-player-score-summary-area-item1 .bpx-player-score-summary-area-item-name{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.bpx-player-score-summary-area-item1 .bpx-player-score-summary-area-item-count{opacity:0}.bpx-player-score-summary-area-item1 .bpx-player-score-summary-area-item-count-show{opacity:1}.bpx-player-score-summary-sliders{bottom:10px;display:none;left:50%;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.bpx-player-score-summary-sliders-item{background:#fff;border-radius:2px;height:4px;margin:2px;opacity:.3;-webkit-transition:opacity .13s;transition:opacity .13s;width:4px}.bpx-player-score-summary-sliders-item-on{opacity:1}.bpx-player-score-summary-sliders-show{display:block}.bpx-player-container[data-screen=full] .bpx-player-cross,.bpx-player-container[data-screen=web] .bpx-player-cross{bottom:90px}.bpx-player-cross-hide{opacity:0;-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.bpx-player-cross{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;bottom:80px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:25px;left:0;opacity:0;pointer-events:auto;position:absolute;right:0;-webkit-transition:opacity .3s linear;transition:opacity .3s linear;visibility:hidden;z-index:5}.bpx-player-cross.bpx-player-show{opacity:1;visibility:visible}.bpx-player-cross-btn{-webkit-box-flex:0;cursor:pointer;-ms-flex:none;flex:none;height:35px;left:10px;pointer-events:none;position:absolute;z-index:3}.bpx-player-cross-btn>img{height:100%;pointer-events:auto}.bpx-player-cross-btn-img{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left center;transform-origin:left center}.bpx-player-cross-btn-img-s{-webkit-animation:btnAnimate linear .45;animation:btnAnimate linear .45;left:0;opacity:0;position:absolute;top:0}.bpx-player-cross.bpx-player-show-s .bpx-player-cross-btn-img{-webkit-animation:btnAnimate .3s linear forwards;animation:btnAnimate .3s linear forwards}.bpx-player-cross.bpx-player-show-s .bpx-player-cross-btn-img-s{-webkit-animation:btnAnimateS .3s linear .15s forwards;animation:btnAnimateS .3s linear .15s forwards}.bpx-player-cross-right{-webkit-box-flex:1;-ms-flex:auto;flex:auto;height:35px;line-height:35px;position:relative}.bpx-player-cross-line{height:100%;left:22px;overflow:hidden;position:absolute;right:0;top:0;-webkit-transition:left .3s linear;transition:left .3s linear}.bpx-player-cross-dm{bottom:0;cursor:pointer;-webkit-perspective:500px;perspective:500px;position:absolute;right:100%;text-shadow:0 1px #0e3f6d,1px 0 #0e3f6d,-1px 0 #0e3f6d,0 -1px #0e3f6d;-webkit-transform:translateX(0);transform:translateX(0);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre;will-change:transform opacity;z-index:1}.bpx-player-cross-dm.bpx-player-hide{opacity:0;visibility:hidden}.bpx-player-cross-dm:hover{z-index:2}.bpx-player-cross-tip{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:30px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:48px;justify-content:center;left:0;opacity:0;padding-bottom:6px;pointer-events:auto;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);visibility:hidden;width:162px;z-index:999999}.bpx-player-cross-tip-img{height:25px;pointer-events:none;position:relative;width:132px;z-index:2}.bpx-player-cross-tip-left{display:none;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.bpx-player-cross-tip-center,.bpx-player-cross-tip-left{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.bpx-player-cross-tip-center{display:inline-block;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-cross-tip.bpx-player-center,.bpx-player-cross-tip.bpx-player-left,.bpx-player-cross-tip.bpx-player-right{opacity:1;visibility:visible}.bpx-player-cross-tip.bpx-player-left .bpx-player-cross-tip-left{display:inline-block}.bpx-player-cross-tip.bpx-player-left .bpx-player-cross-tip-center{display:none}.bpx-player-cross-tip.bpx-player-right .bpx-player-cross-tip-left{display:inline-block;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-cross-tip.bpx-player-right .bpx-player-cross-tip-center{display:none}.bpx-player-cross-tip.bpx-player-show{opacity:1;visibility:visible}@-webkit-keyframes btnAnimate{0%{opacity:1}to{opacity:0;visibility:hidden}}@-webkit-keyframes btnAnimateS{0%{opacity:0}to{opacity:.8}}.bpx-player-container[data-screen=full] .bpx-player-reverse-wrap,.bpx-player-container[data-screen=web] .bpx-player-reverse-wrap{bottom:100px}.bpx-player-container[data-screen=full] .bpx-player-reverse-btn,.bpx-player-container[data-screen=web] .bpx-player-reverse-btn{left:30px}.bpx-player-reverse,.bpx-player-reverse-hide{opacity:0;-webkit-transition:opacity .3s linear;transition:opacity .3s linear}.bpx-player-reverse{color:#fff;font-size:25px;height:100%;left:0;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%;z-index:5}.bpx-player-reverse.bpx-player-show{opacity:1;visibility:visible}.bpx-player-reverse .b-danmaku-liked{z-index:2}.bpx-player-reverse .b-danmaku-liked .b-danmaku-liked-icon{opacity:1}.bpx-player-reverse .b-danmaku-liked .b-danmaku-high-plus{-webkit-animation:tipsPlus 1.25s forwards;animation:tipsPlus 1.25s forwards}.bpx-player-reverse .b-danmaku-liked-icon{display:inline-block;font-size:0;opacity:0;position:absolute;-webkit-transition:opacity .15s ease-in-out;transition:opacity .15s ease-in-out;vertical-align:bottom}.bpx-player-reverse .b-danmaku-liked-icon svg{fill:#fff;height:100%;width:100%}.bpx-player-reverse-wrap{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;bottom:60px;display:-webkit-box;display:-ms-flexbox;display:flex;left:0;position:absolute;right:0}.bpx-player-reverse-btn{-webkit-box-flex:0;cursor:pointer;-ms-flex:none;flex:none;left:10px;opacity:0;pointer-events:none;position:absolute;visibility:hidden;z-index:3}.bpx-player-reverse-btn.bpx-player-reverse-btn-show{opacity:1;visibility:visible}.bpx-player-reverse-btn>img{height:100%;pointer-events:auto}.bpx-player-reverse-btn-img{opacity:1;-webkit-transform:scaleX(1);transform:scaleX(1);-webkit-transform-origin:left center;transform-origin:left center}.bpx-player-reverse-btn-img-s{-webkit-animation:btnAnimate linear .45;animation:btnAnimate linear .45;left:0;opacity:0;position:absolute;top:0}.bpx-player-reverse.bpx-player-show-s .bpx-player-reverse-btn-img{-webkit-animation:btnAnimate .3s linear forwards;animation:btnAnimate .3s linear forwards}.bpx-player-reverse.bpx-player-show-s .bpx-player-reverse-btn-img-s{-webkit-animation:btnAnimateS .3s linear .15s forwards;animation:btnAnimateS .3s linear .15s forwards}.bpx-player-reverse-right{-webkit-box-flex:1;-ms-flex:auto;flex:auto;height:4em;line-height:1.125;pointer-events:none;position:relative}.bpx-player-reverse-line{left:22px;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;-webkit-transition:left .3s linear;transition:left .3s linear}.bpx-player-reverse-dm{bottom:0;cursor:pointer;-webkit-perspective:500px;perspective:500px;pointer-events:auto;position:absolute;right:100%;text-shadow:0 1px #0e3f6d,1px 0 #0e3f6d,-1px 0 #0e3f6d,0 -1px #0e3f6d;-webkit-transform:translateX(0);transform:translateX(0);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:pre;will-change:transform opacity;z-index:1}.bpx-player-reverse-dm.bpx-player-hide{opacity:0;visibility:hidden}.bpx-player-reverse-dm:hover{z-index:2}.bpx-player-reverse-tip{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:48px;justify-content:center;left:0;opacity:0;padding-bottom:6px;pointer-events:auto;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);visibility:hidden;width:162px;z-index:999999}.bpx-player-reverse-tip-img{height:25px;pointer-events:none;position:relative;width:132px;z-index:2}.bpx-player-reverse-tip-left{display:none;-webkit-transform:scaleY(-1);transform:scaleY(-1)}.bpx-player-reverse-tip-center,.bpx-player-reverse-tip-left{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.bpx-player-reverse-tip-center{display:inline-block;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-reverse-tip .bpx-player-dm-tip-back,.bpx-player-reverse-tip .bpx-player-dm-tip-copy,.bpx-player-reverse-tip .bpx-player-dm-tip-like,.bpx-player-reverse-tip .bpx-player-dm-tip-recall{top:6px}.bpx-player-reverse-tip .bpx-player-dm-tip-like-num{font-size:30%;top:4px;z-index:1}.bpx-player-reverse-tip.bpx-player-master .bpx-player-dm-tip-recall{display:block}.bpx-player-reverse-tip.bpx-player-master .bpx-player-dm-tip-back{display:none}.bpx-player-reverse-tip .bpx-player-many-like .bpx-player-dm-tip-like{left:13px}.bpx-player-reverse-tip .bpx-player-many-like .bpx-player-dm-tip-like-num{left:33px}.bpx-player-reverse-tip.bpx-player-center,.bpx-player-reverse-tip.bpx-player-left,.bpx-player-reverse-tip.bpx-player-right{opacity:1;visibility:visible}.bpx-player-reverse-tip.bpx-player-left .bpx-player-reverse-tip-left{display:inline-block}.bpx-player-reverse-tip.bpx-player-left .bpx-player-reverse-tip-center{display:none}.bpx-player-reverse-tip.bpx-player-right .bpx-player-reverse-tip-left{display:inline-block;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bpx-player-reverse-tip.bpx-player-right .bpx-player-reverse-tip-center{display:none}.bpx-player-reverse-tip.bpx-player-show{opacity:1;visibility:visible}.bpx-player-reverse-report-wrap{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:center;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:68}@keyframes btnAnimate{0%{opacity:1}to{opacity:0;visibility:hidden}}@keyframes btnAnimateS{0%{opacity:0}to{opacity:.8}}.bpx-state-paused .bpx-player-upegg{-webkit-animation-play-state:paused;animation-play-state:paused}.bpx-player-scale{bottom:80px;pointer-events:none;position:absolute;right:30px;-webkit-transform-origin:right bottom;transform-origin:right bottom;z-index:0}.bpx-player-upegg{font-size:0}.bpx-player-upegg.bpx-player-egg-0-0{display:none}.bpx-player-upegg.bpx-player-egg-1-1{-webkit-animation:egg-1-1 .51s forwards;animation:egg-1-1 .51s forwards}.bpx-player-upegg.bpx-player-egg-1-0{-webkit-animation:egg-1-0 .51s forwards;animation:egg-1-0 .51s forwards}.bpx-player-upegg.bpx-player-egg-2-1{-webkit-animation:egg-2-1 .51s forwards;animation:egg-2-1 .51s forwards;-webkit-transform-origin:right bottom;transform-origin:right bottom}.bpx-player-upegg.bpx-player-egg-2-0{-webkit-animation:egg-2-0 .51s forwards;animation:egg-2-0 .51s forwards;-webkit-transform-origin:right bottom;transform-origin:right bottom}.bpx-player-upegg.bpx-player-egg-3-1{-webkit-animation:egg-3-1 .51s forwards;animation:egg-3-1 .51s forwards}.bpx-player-upegg.bpx-player-egg-3-0{-webkit-animation:egg-3-0 .51s forwards;animation:egg-3-0 .51s forwards}.bpx-player-upegg.bpx-player-egg-4-1{-webkit-animation:egg-4-1 .51s forwards;animation:egg-4-1 .51s forwards}.bpx-player-upegg.bpx-player-egg-4-0{-webkit-animation:egg-4-0 .51s forwards;animation:egg-4-0 .51s forwards}.bpx-player-upegg.bpx-player-egg-5-1{-webkit-animation:egg-5-1 .51s forwards;animation:egg-5-1 .51s forwards}.bpx-player-upegg.bpx-player-egg-5-0{-webkit-animation:egg-5-0 .51s forwards;animation:egg-5-0 .51s forwards}.bpx-player-upegg.bpx-player-egg-6-1{-webkit-animation:egg-6-1 .51s forwards;animation:egg-6-1 .51s forwards}.bpx-player-upegg.bpx-player-egg-6-0{-webkit-animation:egg-6-0 .51s forwards;animation:egg-6-0 .51s forwards}.bpx-player-upegg .bpx-player-img{height:140px}.bpx-player-upegg .bpx-player-img-txt{display:none}.bpx-player-upegg.bpx-player-hasTxt .bpx-player-img,.bpx-player-upegg.bpx-player-hasTxt .bpx-player-img-txt{display:inline-block;height:70px}@-webkit-keyframes egg-1-1{0%{-webkit-transform:translateX(150%);transform:translateX(150%)}79%{-webkit-transform:translateX(-20px);transform:translateX(-20px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes egg-1-1{0%{-webkit-transform:translateX(150%);transform:translateX(150%)}79%{-webkit-transform:translateX(-20px);transform:translateX(-20px)}to{-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes egg-1-0{0%{-webkit-transform:translateX(0);transform:translateX(0)}21%{-webkit-transform:translateX(-20px);transform:translateX(-20px)}to{-webkit-transform:translateX(150%);transform:translateX(150%)}}@keyframes egg-1-0{0%{-webkit-transform:translateX(0);transform:translateX(0)}21%{-webkit-transform:translateX(-20px);transform:translateX(-20px)}to{-webkit-transform:translateX(150%);transform:translateX(150%)}}@-webkit-keyframes egg-2-1{0%{-webkit-transform:rotate(90deg);transform:rotate(90deg)}79%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@keyframes egg-2-1{0%{-webkit-transform:rotate(90deg);transform:rotate(90deg)}79%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}to{-webkit-transform:rotate(0);transform:rotate(0)}}@-webkit-keyframes egg-2-0{0%{-webkit-transform:rotate(0);transform:rotate(0)}21%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}99%{-webkit-transform:rotate(90deg);transform:rotate(90deg)}to{-webkit-transform:rotate(90deg) scale(0);transform:rotate(90deg) scale(0)}}@keyframes egg-2-0{0%{-webkit-transform:rotate(0);transform:rotate(0)}21%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}99%{-webkit-transform:rotate(90deg);transform:rotate(90deg)}to{-webkit-transform:rotate(90deg) scale(0);transform:rotate(90deg) scale(0)}}@-webkit-keyframes egg-3-1{0%{-webkit-transform:scale(0);transform:scale(0)}79%{-webkit-transform:scale(1.2);transform:scale(1.2)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes egg-3-1{0%{-webkit-transform:scale(0);transform:scale(0)}79%{-webkit-transform:scale(1.2);transform:scale(1.2)}to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes egg-3-0{0%{-webkit-transform:scale(1);transform:scale(1)}21%{-webkit-transform:scale(1.2);transform:scale(1.2)}to{-webkit-transform:scale(0);transform:scale(0)}}@keyframes egg-3-0{0%{-webkit-transform:scale(1);transform:scale(1)}21%{-webkit-transform:scale(1.2);transform:scale(1.2)}to{-webkit-transform:scale(0);transform:scale(0)}}@-webkit-keyframes egg-4-1{0%{-webkit-transform:scaleX(0);transform:scaleX(0)}79%{-webkit-transform:scaleX(1.2);transform:scaleX(1.2)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes egg-4-1{0%{-webkit-transform:scaleX(0);transform:scaleX(0)}79%{-webkit-transform:scaleX(1.2);transform:scaleX(1.2)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@-webkit-keyframes egg-4-0{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}21%{-webkit-transform:scaleX(1.2);transform:scaleX(1.2)}to{-webkit-transform:scaleX(0);transform:scaleX(0)}}@keyframes egg-4-0{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}21%{-webkit-transform:scaleX(1.2);transform:scaleX(1.2)}to{-webkit-transform:scaleX(0);transform:scaleX(0)}}@-webkit-keyframes egg-5-1{0%{-webkit-transform:translateY(350%);transform:translateY(350%)}79%{-webkit-transform:translateY(-20px);transform:translateY(-20px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes egg-5-1{0%{-webkit-transform:translateY(350%);transform:translateY(350%)}79%{-webkit-transform:translateY(-20px);transform:translateY(-20px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes egg-5-0{0%{-webkit-transform:translateY(0);transform:translateY(0)}21%{-webkit-transform:translateY(-20px);transform:translateY(-20px)}to{-webkit-transform:translateY(350%);transform:translateY(350%)}}@keyframes egg-5-0{0%{-webkit-transform:translateY(0);transform:translateY(0)}21%{-webkit-transform:translateY(-20px);transform:translateY(-20px)}to{-webkit-transform:translateY(350%);transform:translateY(350%)}}@-webkit-keyframes egg-6-1{0%{-webkit-transform:translateY(-350%);transform:translateY(-350%)}46%{-webkit-transform:translateY(0);transform:translateY(0)}64%{-webkit-transform:translateY(-20px);transform:translateY(-20px)}70%{-webkit-transform:translateY(0);transform:translateY(0)}88%{-webkit-transform:translateY(-10px);transform:translateY(-10px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes egg-6-1{0%{-webkit-transform:translateY(-350%);transform:translateY(-350%)}46%{-webkit-transform:translateY(0);transform:translateY(0)}64%{-webkit-transform:translateY(-20px);transform:translateY(-20px)}70%{-webkit-transform:translateY(0);transform:translateY(0)}88%{-webkit-transform:translateY(-10px);transform:translateY(-10px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes egg-6-0{0%{opacity:1}to{opacity:0}}@keyframes egg-6-0{0%{opacity:1}to{opacity:0}}.bpx-player-boom{bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:4}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm{font-weight:200}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm-fire{-webkit-transform:translateX(-50%) translateY(-40%) scale(2);transform:translateX(-50%) translateY(-40%) scale(2);width:300%}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm-center{margin-top:-15px}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm-text{font-family:STKaiti,KaiTi,楷体,楷体_GB2312,SimHei,Microsoft JhengHei,Arial,Helvetica,sans-serif}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm-bg{top:15px}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm.bpx-player-scale .bpx-player-boom-dm-body{-webkit-animation:fireScale .15s linear forwards;animation:fireScale .15s linear forwards}.bpx-player-boom.bpx-player-boom-fire .bpx-player-boom-dm.bpx-player-boom-scale2 .bpx-player-boom-dm-fire{-webkit-transform:translateX(-50%) translateY(-40%) scale(2);transform:translateX(-50%) translateY(-40%) scale(2)}.bpx-player-boom-dm{-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;font-size:0;position:absolute;text-align:center;text-shadow:1px 0 5px #ff55f5;-webkit-transform-origin:left top;transform-origin:left top;white-space:nowrap;width:58px}.bpx-player-boom-dm.bpx-player-hide{display:none}.bpx-player-boom-dm.bpx-player-opacity .bpx-player-boom-dm-center,.bpx-player-boom-dm.bpx-player-opacity .bpx-player-boom-dm-head,.bpx-player-boom-dm.bpx-player-opacity .bpx-player-boom-dm-tail,.bpx-player-boom-dm.bpx-player-opacity .bpx-player-boom-dm-text{opacity:0;-webkit-transition:opacity .8s;transition:opacity .8s}.bpx-player-boom-dm.bpx-player-middle .bpx-player-boom-dm-fire,.bpx-player-boom-dm.bpx-player-show-fire .bpx-player-boom-dm-fire2{opacity:1}.bpx-player-boom-dm.bpx-player-boom-small{opacity:.8}.bpx-player-boom-dm.bpx-player-boom-smaller{opacity:.65}.bpx-player-boom-dm-fire{-webkit-transform:translateX(-50%) translateY(-70%);transform:translateX(-50%) translateY(-70%)}.bpx-player-boom-dm-fire,.bpx-player-boom-dm-fire2{left:50%;opacity:0;position:absolute;top:0;width:120%;z-index:3}.bpx-player-boom-dm-fire2{-webkit-transform:translateX(-50%) translateY(-20%);transform:translateX(-50%) translateY(-20%)}.bpx-player-boom-dm-head{top:0;width:100%;z-index:2}.bpx-player-boom-dm-center{position:relative}.bpx-player-boom-dm-tail{width:100%}.bpx-player-boom-dm-text{display:inline-table;font-family:SimHei,Microsoft JhengHei,Arial,Helvetica,sans-serif;font-size:18px;padding:0 20px;position:relative;-webkit-writing-mode:vertical-rl;-ms-writing-mode:tb-rl;writing-mode:vertical-rl;z-index:2}.bpx-player-boom-dm-bg{bottom:0;left:0;position:absolute;right:0;top:0}.bpx-player-boom-dm-bg>img{height:100%;width:100%}@-webkit-keyframes fireScale{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1.2);transform:scale(1.2)}}.bpx-player-pk{bottom:0;left:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0}.bpx-player-pk-dm{-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;height:60px;position:absolute;text-align:center;text-shadow:0 1px #777,1px 0 #777,-1px 0 #777,0 -1px #777;white-space:nowrap}.bpx-player-pk-dm.bpx-player-hide{display:none}.bpx-player-pk-dm.bpx-player-middle .bpx-player-pk-dm-item{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}.bpx-player-pk-dm.bpx-player-middle .bpx-player-pk-dm-fire{opacity:1}.bpx-player-pk-dm.bpx-player-middle.bpx-player-pk-pair .bpx-player-pk-dm-fire{right:-74px}.bpx-player-pk-dm-fire{height:80px!important;left:auto;opacity:0;position:absolute;right:-77px;top:30px;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);width:80px!important;z-index:3}.bpx-player-pk-dm-item{display:-webkit-box;display:-ms-flexbox;display:flex}.bpx-player-pk-dm-item>img{height:40px}.bpx-player-pk-dm-item .bpx-player-pk-dm-head{padding-top:10px}.bpx-player-pk-dm-item .bpx-player-pk-dm-center{height:100%;position:relative}.bpx-player-pk-dm-item .bpx-player-pk-dm-text{-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:18px}.bpx-player-pk-dm-item .bpx-player-pk-dm-bg{bottom:0;left:0;position:absolute;right:0;top:0;z-index:-1}.bpx-player-pk-dm-item .bpx-player-pk-dm-bg>img{height:40px;padding-top:10px;width:100%}.bpx-player-pk-dm-item .bpx-player-pk-dm-tail{padding-top:10px;width:auto}.bpx-player-pk-dm.bpx-player-pk-dm2 .bpx-player-pk-dm-text{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.bpx-player-pk-dm.bpx-player-pk-dm2 .bpx-player-pk-dm-tail{padding-top:10px;width:auto}.bpx-player-pk-dm.bpx-player-pk-dm2 .bpx-player-pk-dm-fire{left:100%;right:auto}.bpx-player-pk-dm.bpx-player-pk-dm2.bpx-player-pk-pair .bpx-player-pk-dm-fire{opacity:0}.bpx-player-pk-dm.bpx-player-pk-dm-self .bpx-player-pk-dm-text{border:1px solid rgba(102,255,255,0);padding:0 1px}.bpx-player-spring{bottom:-15%;left:-6%;pointer-events:none;position:absolute;right:-6%;top:-15%;-webkit-transform:rotate(15deg);transform:rotate(15deg);-webkit-transform-origin:center;transform-origin:center;z-index:4}.bpx-player-spring-dm{-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;position:absolute;text-align:center;text-shadow:1px 0 5px #ff55f5;-webkit-transform-origin:left top;transform-origin:left top;white-space:nowrap;z-index:3}.bpx-player-spring-dm.bpx-player-hide{display:none}.bpx-player-spring-dm.bpx-player-opacity .bpx-player-spring-dm-center,.bpx-player-spring-dm.bpx-player-opacity .bpx-player-spring-dm-head,.bpx-player-spring-dm.bpx-player-opacity .bpx-player-spring-dm-tail,.bpx-player-spring-dm.bpx-player-opacity .bpx-player-spring-dm-text{opacity:0;-webkit-transition:opacity .8s;transition:opacity .8s}.bpx-player-spring-dm.bpx-player-middle .bpx-player-spring-dm-fire,.bpx-player-spring-dm.bpx-player-show-fire .bpx-player-spring-dm-fire2{opacity:1}.bpx-player-spring-dm.bpx-player-spring-small{opacity:.8;z-index:2}.bpx-player-spring-dm.bpx-player-spring-small.bpx-player-spring-dm .bpx-player-spring-dm-body{font-size:14px}.bpx-player-spring-dm.bpx-player-spring-smaller{opacity:.65;z-index:1}.bpx-player-spring-dm.bpx-player-spring-smaller.bpx-player-spring-dm .bpx-player-spring-dm-body{font-size:12px}.bpx-player-spring-dm-body{display:inline-table;font-size:18px;line-height:1;padding:1.3em 0 1em 5.2em;position:relative;z-index:2}.bpx-player-spring-dm-fire{height:200%;left:0;opacity:0;position:absolute;top:50%;-webkit-transform:translateX(-10%) translateY(-50%);transform:translateX(-10%) translateY(-50%);z-index:3}.bpx-player-spring-dm-bg{bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:0;left:0;position:absolute;right:0;top:0;z-index:0}.bpx-player-spring-dm-head{-webkit-box-flex:0;-ms-flex:none;flex:none;height:100%}.bpx-player-spring-dm-center{-webkit-box-flex:1;-ms-flex:auto;flex:auto;height:100%}.bpx-player-spring-dm-tail{-webkit-box-flex:0;-ms-flex:none;flex:none;height:100%}.bpx-player-spring-dm-text{font-family:SimHei,Microsoft JhengHei,Arial,Helvetica,sans-serif;position:relative;-webkit-transform:scale(.7);transform:scale(.7);-webkit-transform-origin:left;transform-origin:left;z-index:2}@keyframes fireScale{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(1.2);transform:scale(1.2)}}.bpx-player-anniversary{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-anniversary .bpx-player-anniversary-link{cursor:pointer;height:137px;opacity:0;pointer-events:auto;position:absolute;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:opacity .35s,visibility .35s;transition:opacity .35s,visibility .35s;visibility:hidden;width:220px;z-index:1}.bpx-player-anniversary .bpx-player-anniversary-link.bpx-player-anniversary-show{opacity:1;visibility:visible}.bpx-player-anniversary .bpx-player-anniversary-link>img{height:100%;width:100%}.bpx-player-anniversary .bpx-player-anniversary-link img:not([src]),.bpx-player-anniversary .bpx-player-anniversary-link>img[src=""]{opacity:0}.bpx-player-clock-in-wrap{height:100%;left:0;position:absolute;top:0;width:100%}.bpx-player-clock-in{background-color:rgba(33,33,33,.8);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;font-size:12px;height:50px;left:50%;opacity:0;pointer-events:auto;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-transform-origin:center;transform-origin:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;width:290px}.bpx-player-clock-in div{float:left}.bpx-player-clock-in-complete{bottom:0;left:5px;position:absolute}.bpx-player-clock-in-complete .bpx-player-clock-in-desc,.bpx-player-clock-in-complete .bpx-player-clock-in-title{left:48px}.bpx-player-clock-in-complete .bpx-player-clock-in-complete-img{display:block}.bpx-player-clock-in-complete-img{bottom:0;display:none;height:60px;left:2px;position:absolute;width:40px}.bpx-player-clock-in-show{opacity:1;-webkit-transition:.32s;transition:.32s;visibility:visible}.bpx-player-clock-in-show-animate{opacity:1;-webkit-transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,-webkit-transform .18s;transition:opacity .35s,transform .18s;transition:opacity .35s,transform .18s,-webkit-transform .18s;visibility:visible}.bpx-player-clock-in-hide{-webkit-animation:cmd-dm-hide .35s forwards;animation:cmd-dm-hide .35s forwards;opacity:1;visibility:visible}.bpx-player-clock-in-desc,.bpx-player-clock-in-title{font-size:14px;left:8px;overflow:hidden;position:absolute;text-overflow:ellipsis;top:10px;white-space:nowrap;width:200px}.bpx-player-clock-in-desc{font-size:12px;opacity:.7;top:30px}.bpx-player-clock-in-btn{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#00a1d6;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;height:24px;justify-content:center;position:absolute;right:15px;top:13px;width:60px}.bpx-player-clock-in-btn-icon-tick,.bpx-player-clock-in-btn-icon-tick-done{display:none;height:12px;padding:0 3px 2px 0;width:12px}.bpx-player-clock-in-btn-state-tick .bpx-player-clock-in-btn-icon-tick{display:block}.bpx-player-clock-in-btn-state-tick-done{background:hsla(0,0%,100%,.2);pointer-events:none}.bpx-player-clock-in-btn-state-tick-done .bpx-player-clock-in-btn-icon-tick-done{display:block}.bpx-player-three-body{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.bpx-player-three-body-face{background:#d9d9d9;border:2px solid #fff;border-radius:50%;height:auto;left:50%;opacity:0;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:center;transform-origin:center;width:7%;z-index:1}.bpx-player-three-body-face img:not([src]),.bpx-player-three-body-face>img[src=""]{opacity:0}.bpx-player-three-body-ring{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1);width:100%}.bpx-player-three-body-text{height:35%;left:50%;position:absolute;top:65%;-webkit-transform:translate(-50%,-50%) scale(.7);transform:translate(-50%,-50%) scale(.7)}.bpx-player-three-body img:not([src]),.bpx-player-three-body img[src=""]{opacity:0}.bpx-player-business-video{height:100%;max-height:750px;max-width:750px;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.bpx-player-business-video.video-show{opacity:1}.bpx-player-dm-delivery-left-container{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;left:8px}.bpx-player-dm-delivery-left-container,.bpx-player-dm-delivery-right-container{-webkit-box-orient:vertical;-webkit-box-direction:reverse;bottom:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse;position:absolute}.bpx-player-dm-delivery-right-container{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;right:8px}.bpx-player-dm-delivery-wrap{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:8px;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:PingFang SC;font-size:23px;font-size:12px;font-weight:400;height:17px;justify-content:center;line-height:17px;opacity:0;-webkit-transition:opacity .2s ease;transition:opacity .2s ease}.bpx-player-dm-delivery-wrap img{height:19px;padding:0 3px;width:19px}.bpx-player-app-num{color:#c9ccd0;font-size:14px;left:20px;position:absolute;top:20px}.bpx-player-player-sending-area{height:0!important;overflow:hidden}.bpx-player-container-pc-special .bpx-player-ctrl-setting,.bpx-player-container-pc-special .bpx-player-ctrl-subtitle,.bpx-player-container-pc-special .bpx-player-top-wrap>div:not(.cpx-player-app-num){display:none}.bpx-player-container-pc-special .bpx-player-summary-wrap{bottom:0;left:0;position:absolute;width:100%;z-index:49}.bpx-player-container-pc-special[data-ctrl-hidden=false] .bpx-player-control-bottom,.bpx-player-container-pc-special[data-ctrl-hidden=false] .bpx-player-control-mask,.bpx-player-container-pc-special[data-ctrl-hidden=false] .bpx-player-progress-area{opacity:1;-webkit-transition:opacity .2s ease-in;transition:opacity .2s ease-in}.bpx-player-container-pc-special[data-ctrl-hidden=true] .bpx-player-control-bottom,.bpx-player-container-pc-special[data-ctrl-hidden=true] .bpx-player-control-mask,.bpx-player-container-pc-special[data-ctrl-hidden=true] .bpx-player-progress-area{opacity:.5!important}.bpx-player-container-pc-special .bpx-player-control-wrap{background-color:#000;position:relative}.bpx-player-container-pc-special .bpx-player-control-wrap .bpx-player-control-mask{background:-webkit-gradient(linear,left top,left bottom,color-stop(2.18%,transparent),to(#000));background:linear-gradient(180deg,transparent 2.18%,#000)}.bpx-common-msie .bpx-player-dm-root{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.bpx-common-edge .bpx-player-ending-backdrop{-webkit-filter:none;filter:none}',""]),
e.Z=g},40100:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bas-danmaku{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:50%;pointer-events:none;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:10}.bas-danmaku.bas-danmaku-pause .bas-danmaku-item{-webkit-animation-play-state:paused;animation-play-state:paused}.bas-danmaku>canvas{pointer-events:auto}.bas-danmaku-item{animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards;line-height:1;pointer-events:none;position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bas-danmaku-item .bas-danmaku-item{left:0;position:absolute;top:0}.bas-danmaku-item.bas-danmaku-item-button{border-radius:3px;padding:10px 20px;pointer-events:auto}.bas-danmaku-item-wrap{height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10}.bas-danmaku-item-inner{border:0;-webkit-transform-origin:0 0;transform-origin:0 0}.bas-danmaku-item-text .bas-danmaku-item-inner{border-style:solid;pointer-events:none}",""]),e.Z=a},52046:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bl-audio-panel{-webkit-font-smoothing:antialiased;background:rgba(33,33,33,.9);border-radius:4px;color:#fff;display:none;left:50%;overflow:hidden;pointer-events:auto;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:400px;z-index:80}.bl-audio-panel-close{fill:#fff;cursor:pointer;height:22px;position:absolute;right:10px;top:10px;width:22px;z-index:2}.bl-audio-panel-move{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.bl-audio-panel-move.bl-audio-right{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.bl-audio-panel-preset-btn{background:hsla(0,0%,100%,.3);cursor:pointer;display:block;margin:9px;padding:6px 8px;width:20%}.bl-audio-panel-preset-btn:hover{background:#757575}.bl-audio-panel-preset-btn.bl-audio-active{background:#00a1d6;background:var(--bpx-primary-color,#00a1d6)}.bl-audio-panel-preset-btn.bl-audio-active[data-val=default]{background:hsla(0,0%,100%,.3)}.bl-audio-panel-left{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.bl-audio-panel-left-header{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:16px;line-height:40px;margin-bottom:10px}.bl-audio-panel-left-gain{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;padding:10px}.bl-audio-panel-left-gain-center{width:220px}.bl-audio-panel-left-preset{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;padding:0 10px}.bl-audio-panel-left-reset{-webkit-box-pack:center;-ms-flex-pack:center;border-top:1px solid hsla(0,0%,100%,.1);display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin-top:10px;padding:8px 0}.bl-audio-panel-left-show-more{bottom:10px;cursor:pointer;position:absolute;right:20px;-webkit-text-decoration:underline;text-decoration:underline;white-space:nowrap}.bl-audio-panel-left-show-more:hover{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bl-audio-panel-right{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.bl-audio-panel-right-return{cursor:pointer;left:102%;position:absolute;-webkit-text-decoration:underline;text-decoration:underline;top:14px;white-space:nowrap;z-index:3}.bl-audio-panel-right-return:hover{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bl-audio-panel-right-header{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:12px;line-height:1.5;padding:10px 40px;position:relative;z-index:2}.bl-audio-panel-right-body-eq,.bl-audio-panel-right-header{-ms-flex-pack:distribute;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-around}.bl-audio-panel-right-body-eq{-ms-flex-wrap:wrap;flex-wrap:wrap;margin:10px}.bl-audio-panel-right-body-eq-slider.bui-slider{height:140px;margin:10px 0}.bl-audio-panel-right-body-eq-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-content:space-between;margin:10px 0 22px}.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item3,.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item4,.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item5,.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item6,.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item7,.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item8,.bl-audio-panel-right-body.bl-audio-panel-3 .bl-audio-panel-right-body-eq-item9,.bl-audio-panel-right-body.bl-audio-panel-5 .bl-audio-panel-right-body-eq-item5,.bl-audio-panel-right-body.bl-audio-panel-5 .bl-audio-panel-right-body-eq-item6,.bl-audio-panel-right-body.bl-audio-panel-5 .bl-audio-panel-right-body-eq-item7,.bl-audio-panel-right-body.bl-audio-panel-5 .bl-audio-panel-right-body-eq-item8,.bl-audio-panel-right-body.bl-audio-panel-5 .bl-audio-panel-right-body-eq-item9{display:none}.bl-audio-panel-right-reset{-webkit-box-pack:center;-ms-flex-pack:center;border-top:1px solid hsla(0,0%,100%,.1);display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin-top:10px}.bl-audio-panel-right .bl-audio-panel-preset-btn.bl-audio-active{background:hsla(0,0%,100%,.3)}",""]),e.Z=a},53913:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r())
;a.push([t.id,'.b-back-panel{-webkit-font-smoothing:antialiased;background-color:rgba(33,33,33,.9);border-radius:4px;color:#fff;display:none;font-size:12px;left:50%;min-height:300px;overflow:hidden;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:400px;z-index:80}.b-back-panel.b-back-show{display:block}.b-back-panel .b-back-title{border-bottom:1px solid hsla(0,0%,100%,.1);font-size:16px;line-height:40px;text-align:center}.b-back-panel-close{fill:#fff;cursor:pointer;height:22px;line-height:22px;position:absolute;right:10px;top:10px;width:22px}.b-back-panel-close>svg{pointer-events:none}.b-back-panel .b-back-content-default{display:none;font-size:12px;margin:10px 16px}.b-back-panel .b-back-content-default.b-back-show{display:block}.b-back-panel .b-back-content-tabmenu{height:180px;position:relative;text-align:left}.b-back-panel .b-back-content-tabmenu .b-back-tabmenu-list{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;float:left;height:18px;line-height:18px;margin-bottom:12px;padding-left:20px;position:relative}.b-back-panel .b-back-content-tabmenu .b-back-tabmenu-list:nth-child(odd){width:60%}.b-back-panel .b-back-content-tabmenu .b-back-tabmenu-list:nth-child(2n){width:40%}.b-back-panel .b-back-content-tabmenu .b-back-tabmenu-list:before{border:1px solid #ccc;border-radius:50%;content:"";display:inline-block;height:12px;left:0;position:absolute;top:2px;width:12px}.b-back-panel .b-back-content-tabmenu .b-back-tabmenu-list.b-back-show:before{border-color:#00a1d6;border-color:var(--bpx-fn-color,#00a1d6);content:""}.b-back-panel .b-back-content-tabmenu .b-back-tabmenu-list.b-back-show:after{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);border-radius:50%;content:"";display:inline-block;height:8px;left:3px;position:absolute;top:5px;width:8px}.b-back-panel .b-back-content-input{display:none;margin-bottom:6px}.b-back-panel .b-back-content-input.b-back-show{display:block}.b-back-panel .b-back-content-input .b-back-input{background-color:rgba(33,33,33,.9);border:1px solid hsla(0,0%,100%,.4);-webkit-box-sizing:border-box;box-sizing:border-box;color:#999;font-size:12px;height:22px;outline:none;text-indent:6px;width:218px;width:100%}.b-back-panel .b-back-content-input .b-back-input:focus{border:1px solid #00a1d6;border:1px solid var(--bpx-fn-color,#00a1d6)}.b-back-panel .b-back-content-input .b-back-input-overrange{color:#fa5a57;display:none;height:16px;line-height:16px;text-align:left}.b-back-panel .b-back-content-input .b-back-input-overrange.b-back-show{display:block}.b-back-panel .b-back-content .b-back-contact-information{height:22px;margin-bottom:16px;position:relative}.b-back-panel .b-back-content .b-back-contact-information-tip{display:inline-block;height:24px;line-height:24px;margin-right:8px}.b-back-panel .b-back-content .b-back-contact-information-input{background-color:rgba(33,33,33,.9);border:1px solid hsla(0,0%,100%,.4);-webkit-box-sizing:border-box;box-sizing:border-box;color:#999;font-size:12px;height:22px;height:24px;outline:none;text-indent:6px;width:218px;width:289px}.b-back-panel .b-back-content .b-back-contact-information-input:focus{border:1px solid #00a1d6;border:1px solid var(--bpx-fn-color,#00a1d6)}.b-back-panel .b-back-content .b-back-contact-information .b-back-type-error{color:#fa5a57;display:none;height:16px;left:0;line-height:16px;margin-left:56px;position:absolute;text-align:left;top:100%}.b-back-panel .b-back-content .b-back-contact-information .b-back-type-error.b-back-show{display:block}.b-back-panel .b-back-content .b-back-submit-wrap{-webkit-box-pack:center;-ms-flex-pack:center;border-top:1px solid hsla(0,0%,100%,.1);display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;padding:9px 0 20px}.b-back-panel .b-back-content .b-back-submit-wrap .b-back-submit{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);background:hsla(0,0%,100%,.2);border:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;height:24px;line-height:24px;text-align:center;width:84px;width:92px}.b-back-panel .b-back-content .b-back-submit-wrap .b-back-submit:hover{background:hsla(0,0%,100%,.3)}.b-back-panel .b-back-content .b-back-version-wrap{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;margin:0 auto;overflow:hidden;text-align:center;width:220px}.b-back-panel .b-back-content .b-back-version-wrap a{color:#999;display:inline-block;height:14px;line-height:14px}.b-back-panel .b-back-content .b-back-version-wrap a:active,.b-back-panel .b-back-content .b-back-version-wrap a:hover{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.b-back-panel .b-back-content-success{display:none;text-align:center;width:100%}.b-back-panel .b-back-content-success.b-back-show{display:block}.b-back-panel .b-back-content-success-image{background:url(//s1.hdslb.com/bfs/static/player/img/back-success.png) no-repeat;background-size:100px 103px;height:103px;margin:20px auto 16px;width:100px}.b-back-panel .b-back-content-success-title{color:#fff;font-size:14px;height:20px;line-height:20px;margin:0 auto 8px}.b-back-panel .b-back-content-success-tips-wrap{color:#999;line-height:16px;margin-bottom:40px;text-align:center}.b-back-panel .b-back-content-success-tips-wrap a{color:#999;-webkit-text-decoration:none;text-decoration:none}.b-back-panel .b-back-content-success-tips{-webkit-user-select:all;-moz-user-select:all;user-select:all}.b-back-panel .b-back-content-fail{display:none;text-align:center;width:100%}.b-back-panel .b-back-content-fail.b-back-show{display:block}.b-back-panel .b-back-content-fail-title{color:#fff;height:17px;line-height:17px;margin:10px auto 13px}.b-back-panel .b-back-content-fail-image{background:url(//s1.hdslb.com/bfs/static/player/img/back-fail.png) no-repeat;background-size:148px 112px;height:112px;margin:0 auto 17px;width:148px}.b-back-panel .b-back-content-fail-tips-wrap{color:#999;line-height:16px;text-align:center}.b-back-panel .b-back-content-fail-tips-wrap a{color:#999;-webkit-text-decoration:none;text-decoration:none}.b-back-panel .b-back-content-fail-resubmit{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);background-color:#e5e9ef;border:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:#999;cursor:pointer;cursor:default;height:24px;line-height:24px;margin:16px auto;text-align:center;width:84px}.b-back-panel .b-back-content-fail-resubmit.b-back-show{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);color:#fff;cursor:pointer}.b-back-panel .b-back-content-fail-resubmit.b-back-show:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.b-back-panel .b-back-content-test{display:none;text-align:center;width:100%}.b-back-panel .b-back-content-test.b-back-show{display:block}.b-back-panel .b-back-content-test-title{color:#fff;height:17px;line-height:17px;margin:20px auto 24px}.b-back-panel .b-back-content-test-image{background:url(//s1.hdslb.com/bfs/static/player/img/back-speed.png) no-repeat;background-size:146px 97px;height:97px;margin:0 auto 24px;width:146px}.b-back-panel .b-back-content-test-btn-wrap{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin-top:14px;overflow:hidden}.b-back-panel .b-back-content-test-btn-wrap>*{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);border:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;float:left;height:24px;line-height:24px;text-align:center;width:84px}.b-back-panel .b-back-content-test-speedtest{background-color:hsla(0,0%,100%,.2);margin-right:20px}.b-back-panel .b-back-content-test-speedtest:hover{background-color:hsla(0,0%,100%,.3)}.b-back-panel .b-back-content-test-submit:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.b-back-panel .b-back-content-test-fail{display:none;text-align:center;width:100%}.b-back-panel .b-back-content-test-fail.b-back-show{display:block}.b-back-panel .b-back-content-test-fail-image{background:url(//s1.hdslb.com/bfs/static/player/img/back-test-fail.png) no-repeat;background-size:151px 114px;height:114px;margin:20px auto;width:151px}.b-back-panel .b-back-content-test-fail-title{color:#fff;line-height:17px;margin:0 auto 24px;white-space:nowrap;width:276px}.b-back-panel .b-back-content-test-fail-btn-wrap{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;margin-bottom:30px;overflow:hidden}.b-back-panel .b-back-content-test-fail-btn-wrap>*{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);border:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;float:left;height:24px;line-height:24px;text-align:center;width:84px}.b-back-panel .b-back-content-test-fail-speedtest{background-color:hsla(0,0%,100%,.2);margin-right:20px}.b-back-panel .b-back-content-test-fail-speedtest:hover{background-color:hsla(0,0%,100%,.3)}.b-back-panel .b-back-content-test-fail-submit:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.b-back-panel .b-back-content-test-success{display:none;text-align:center;width:100%}.b-back-panel .b-back-content-test-success.b-back-show{display:block}.b-back-panel .b-back-content-test-success-title{color:#fff;margin:20px auto 14px}.b-back-panel .b-back-content-test-success-circle-wrap{color:#5bdbff;font-size:12px;height:140px;margin:0 auto;position:relative;text-align:center;width:140px}.b-back-panel .b-back-content-test-success-circle-wrap canvas{position:relative}.b-back-panel .b-back-content-test-success-hint-wrap{left:0;position:absolute;top:30px;width:140px}.b-back-panel .b-back-content-test-success-status{height:18px;line-height:18px}.b-back-panel .b-back-content-test-success-progress{font-size:32px;height:45px;line-height:45px}.b-back-panel .b-back-content-test-success-result-wrap-result{font-size:21px;height:45px;line-height:55px}.b-back-panel .b-back-content-test-success-result-wrap-kbs{height:18px;line-height:18px}.b-back-panel .b-back-content-test-success-tips{color:#999;height:18px;line-height:18px}.b-back-panel .b-back-content-test-success-submit{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);border:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;cursor:pointer;height:24px;line-height:24px;margin:24px auto 30px;text-align:center;width:84px}.b-back-panel .b-back-content-test-success-submit:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.b-back-panel div,.b-back-panel p{margin:0;padding:0}.b-back-panel a,.b-back-panel a:active,.b-back-panel a:hover,.b-back-panel a:link,.b-back-panel a:link:hover,.b-back-panel a:visited{-webkit-text-decoration:none;text-decoration:none}.b-back-tooltip{background-color:rgba(0,0,0,.8);border-radius:4px;color:#fff;display:none;font-size:14px;height:42px;left:50%;line-height:42px;padding:0 20px;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);white-space:nowrap}.b-back-tooltip.b-back-show{display:block}',""]),
e.Z=a},24714:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-button{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.bui-button .bui-area{-webkit-box-pack:center;-ms-flex-pack:center;background:none;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;font-size:12px;font-size:var(--bpx-ui-font-size,12px);justify-content:center;min-width:68px;outline:none;padding:3px;text-align:inherit;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s}.bui-button .bui-area.bui-button-transparent{border:1px solid hsla(0,0%,100%,.2);color:#fff}.bui-button .bui-area.bui-button-transparent:hover{border-color:#00a1d6;border-color:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-button .bui-area.bui-button-border{border:1px solid hsla(0,0%,100%,.2);color:#fff;cursor:pointer}.bui-button .bui-area.bui-button-border:hover{border-color:#00a1d6;border-color:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-button .bui-area.bui-button-white{background-color:#fff;border:1px solid silver;color:#757575}.bui-button .bui-area.bui-button-white:hover{border-color:#00a1d6;border-color:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-button .bui-area.bui-button-gray,.bui-button .bui-area.bui-button-large,.bui-button .bui-area.bui-button-small{background-color:#e5e9ef;background-color:var(--bpx-aux-button-bg,#e5e9ef);color:#222;color:var(--bpx-aux-content-font1,#222)}.bui-button .bui-area.bui-button-gray:hover,.bui-button .bui-area.bui-button-large:hover,.bui-button .bui-area.bui-button-small:hover{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);color:#fff}.bui-button .bui-area.bui-button-gray2{background-color:#f4f4f4;color:#505050}.bui-button .bui-area.bui-button-gray2:hover{background-color:#f4f4f4;color:#222}.bui-button .bui-area.bui-button-gray3{color:#999}.bui-button .bui-area.bui-button-blue,.bui-button .bui-area.bui-button-gray3:hover{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);color:#fff}.bui-button .bui-area.bui-button-blue:hover{background-color:#00b5e5;background-color:var(--bpx-fn-hover-color,#00b5e5)}.bui-button .bui-area.bui-button-blue2{background-color:#fff;border:1px solid #00a1d6;border-color:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-button .bui-area.bui-button-blue2:hover{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);color:#fff}.bui-button .bui-area.bui-button-yellow{background-color:#f5b23d;color:#fff}.bui-button .bui-area.bui-button-yellow:hover{background-color:#ffc154}.bui-button .bui-area.bui-button-text{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-button .bui-area.bui-button-text:hover{color:#00b5e5;color:var(--bpx-fn-hover-color,#00b5e5)}.bui-button .bui-area.bui-disabled{background:#f5f7fa;border:none;color:silver;pointer-events:none}.bui-button .bui-area.bui-disabled:hover{background:#f5f7fa;color:silver}",""]),e.Z=a},16447:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-checkbox{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative}.bui-checkbox.bui-dark .bui-checkbox-name{color:#fff}.bui-checkbox.bui-dark .bui-checkbox-icon svg{fill:#fff}.bui-checkbox.bui-disabled .bui-checkbox-name,.bui-checkbox.bui-disabled:hover .bui-checkbox-name{color:#757575!important}.bui-checkbox.bui-disabled .bui-checkbox-icon svg,.bui-checkbox.bui-disabled:hover .bui-checkbox-icon svg{fill:#757575!important}.bui-checkbox:hover .bui-checkbox-name{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bui-checkbox:hover .bui-checkbox-icon svg{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bui-checkbox .bui-checkbox-input{cursor:pointer;height:100%;left:0;margin:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.bui-checkbox .bui-checkbox-input:checked+.bui-checkbox-label .bui-checkbox-icon svg{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bui-checkbox .bui-checkbox-input:checked+.bui-checkbox-label .bui-checkbox-icon-default{display:none}.bui-checkbox .bui-checkbox-input:checked+.bui-checkbox-label .bui-checkbox-icon-selected{display:inline-block}.bui-checkbox .bui-checkbox-label{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;vertical-align:middle}.bui-checkbox .bui-checkbox-name{color:#222;color:var(--bpx-aux-content-font1,#222);font-size:12px;font-size:var(--bpx-ui-font-size,12px);line-height:12px;line-height:var(--bpx-ui-font-size,12px);position:relative;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s;vertical-align:middle}.bui-checkbox .bui-checkbox-icon{display:inline-block;font-size:0;height:16px;margin-right:4px;vertical-align:middle;width:16px}.bui-checkbox .bui-checkbox-icon svg{fill:#ccd0d7;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s;vertical-align:top}.bui-checkbox .bui-checkbox-icon-selected{display:none}.bui-checkbox .bui-checkbox-reddot{background:#f25d8e;border-radius:50%;height:4px;position:absolute;right:-5px;top:-1px;width:4px}",""]),e.Z=a},47805:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-circle-progress{border:6px solid #00a1d6;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;height:140px;position:relative;width:140px}.bui-circle-progress-left,.bui-circle-progress-right{height:140px;overflow:hidden;position:absolute;top:-6px;width:70px;z-index:1}.bui-circle-progress-left-content,.bui-circle-progress-right-content{border:6px solid transparent;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;height:140px;position:absolute;top:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:all .5s linear;transition:all .5s linear;width:140px;z-index:2}.bui-circle-progress-left{left:-6px}.bui-circle-progress-right{right:-6px}.bui-circle-progress-left-content{border-left-color:#ccc;border-top-color:#ccc;left:0}.bui-circle-progress-right-content{border-bottom-color:#ccc;border-right-color:#ccc;right:0}.bui-circle-progress-content{left:50%;line-height:1.5;position:absolute;text-align:center;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:3}.bui-circle-progress-percent{font-size:28px}.bui-circle-progress-bottom{color:#999;height:14px;line-height:14px;margin-bottom:16px;white-space:nowrap}",""]),e.Z=a},7991:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r())
;a.push([t.id,'.bui-circle{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;height:16px;height:var(--height,16px);justify-content:center;position:absolute;right:-13px;top:-13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:16px;width:var(--width,16px)}.bui-circle:before{content:"";height:40px;left:-12px;position:absolute;top:-12px;width:40px}.bui-circle-left,.bui-circle-right{height:16px;height:var(--height,16px);overflow:hidden;pointer-events:none;position:absolute;top:0;width:50%;z-index:1}.bui-circle-left-bar,.bui-circle-right-bar{border:1px solid transparent;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;height:16px;height:var(--height,16px);position:absolute;top:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);width:16px;width:var(--width,16px);z-index:2}.bui-circle-left{left:0}.bui-circle-right{right:0}.bui-circle-left-bar{border-left-color:hsla(0,0%,100%,.702);border-left-color:var(--color,#ffffffb3);border-top-color:hsla(0,0%,100%,.702);border-top-color:var(--color,#ffffffb3);left:0;-webkit-transform:rotate(0);transform:rotate(0);-webkit-transform:rotate(var(--leftDeg,0));transform:rotate(var(--leftDeg,0))}.bui-circle-right-bar{border-bottom-color:hsla(0,0%,100%,.702);border-bottom-color:var(--color,#ffffffb3);border-right-color:hsla(0,0%,100%,.702);border-right-color:var(--color,#ffffffb3);right:0;-webkit-transform:rotate(0);transform:rotate(0);-webkit-transform:rotate(var(--rightDeg,0));transform:rotate(var(--rightDeg,0))}.bui-circle svg{fill:hsla(0,0%,100%,.702);display:inline-block;height:90%;pointer-events:none;position:absolute;width:90%}',""]),e.Z=a},11966:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-collapse{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bui-collapse .bui-collapse-wrap{width:100%}.bui-collapse .bui-collapse-header{background:#f4f4f4;background:var(--bpx-aux-header-bg,#f4f4f4);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#222;color:var(--bpx-aux-header-font,#222);cursor:pointer;height:100%;position:relative;width:100%}.bui-collapse .bui-collapse-header,.bui-collapse .bui-collapse-header .bui-collapse-arrow{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;vertical-align:middle}.bui-collapse .bui-collapse-header .bui-collapse-arrow{bottom:0;height:14px;margin:auto;position:absolute;right:16px;top:0}.bui-collapse .bui-collapse-header .bui-collapse-arrow .bui-collapse-arrow-text{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:12px;font-size:var(--bpx-ui-font-size,12px)}.bui-collapse .bui-collapse-header .bui-collapse-arrow .bui-collapse-arrow-text .arrow-icon{fill:#757575;fill:var(--bpx-aux-header-icon,#757575);height:16px;-webkit-transform:rotate(-90deg);transform:rotate(-90deg);-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;width:16px}.bui-collapse .bui-collapse-wrap-folded .bui-collapse-header .bui-collapse-arrow .bui-collapse-arrow-text .arrow-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.bui-collapse .bui-collapse-body{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:height .3s;transition:height .3s;width:100%}",""]),e.Z=a},64059:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,'.bui-color-picker.bui-dark .bui-input .bui-input-input{background-color:transparent;border:1px solid hsla(0,0%,100%,.2);color:#fff}.bui-color-picker.bui-dark .bui-color-picker-display{border:1px solid hsla(0,0%,100%,.2)}.bui-color-picker.bui-dark .bui-color-picker-option[data-value="#222222"]{border-color:hsla(0,0%,100%,.1)}.bui-color-picker.bui-dark .bui-color-picker-option.bui-color-picker-option-active{border-color:#000}.bui-color-picker .bui-color-picker-result{display:-webkit-box;display:-ms-flexbox;display:flex;height:22px;margin-bottom:6px;vertical-align:middle}.bui-color-picker .bui-color-picker-input{margin-right:6px;width:98px}.bui-color-picker .bui-color-picker-display{border:1px solid rgba(0,0,0,.3);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:background .2s;transition:background .2s;vertical-align:middle;width:50px}.bui-color-picker .bui-color-picker-options{font-size:0;line-height:0;list-style-type:none;margin:0 -6px 0 0;padding:0;white-space:normal}.bui-color-picker .bui-color-picker-option{border:1px solid rgba(0,0,0,.3);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:16px;margin-bottom:4px;margin-right:6px;width:16px}.bui-color-picker .bui-color-picker-option.bui-color-picker-option-active{-webkit-box-shadow:0 0 1px 1px #fff;box-shadow:0 0 1px 1px #fff}',""]),e.Z=a},19876:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-danmaku-switch{-webkit-box-pack:start;-ms-flex-pack:start;fill:#757575;fill:var(--bpx-dmsend-switch-icon,#757575);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;justify-content:flex-start;position:relative}.bui-danmaku-switch.bui-disabled,.bui-danmaku-switch.bui-disabled:hover{cursor:not-allowed}.bui-danmaku-switch.bui-disabled .bui-danmaku-switch-label,.bui-danmaku-switch.bui-disabled:hover .bui-danmaku-switch-label{opacity:.4}.bui-danmaku-switch .bui-danmaku-switch-input{cursor:pointer;height:100%;left:0;margin:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.bui-danmaku-switch .bui-danmaku-switch-input:checked+.bui-danmaku-switch-label .bui-danmaku-switch-on{display:block}.bui-danmaku-switch .bui-danmaku-switch-input:checked+.bui-danmaku-switch-label .bui-danmaku-switch-off{display:none}.bui-danmaku-switch .bui-danmaku-switch-label{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;vertical-align:middle;width:100%}.bui-danmaku-switch .bui-danmaku-switch-label .bui-danmaku-switch-off,.bui-danmaku-switch .bui-danmaku-switch-label .bui-danmaku-switch-on{height:24px}.bui-danmaku-switch .bui-danmaku-switch-label .bui-danmaku-switch-on{display:none}.bui-danmaku-switch .bui-danmaku-switch-label .bui-danmaku-switch-on svg path:last-child{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}.bui-danmaku-switch .bui-danmaku-switch-label .bui-danmaku-switch-off{display:block}.bui-danmaku-switch:not(.bui-disabled):hover{fill:#00a1d6;fill:var(--bpx-primary-color,#00a1d6)}",""]),e.Z=a},80927:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-dialog{fill:#6d757a;fill:var(--bpx-aux-float-icon,#6d757a);background:#fff;background:var(--bpx-aux-float-bg,#fff);border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-float-border,#e5e9ef);border-radius:4px;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.14);box-shadow:0 2px 4px 0 rgba(0,0,0,.14);color:#6d757a;overflow:hidden;position:relative;text-align:center}.bui-dialog.bui-dark{fill:#fff;background:rgba(25,25,25,.88);color:#fff}.bui-dialog .bui-dialog-title{border-bottom:1px solid #e5e9ef;border-bottom:1px solid var(--bpx-aux-line-border,#e5e9ef);color:#222;color:var(--bpx-aux-content-font1,#222);font-size:15px;height:36px;line-height:36px;text-align:center}.bui-dialog .bui-dialog-close{cursor:pointer;height:16px;position:absolute;right:10px;top:10px;width:16px}",""]),e.Z=a},41370:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r())
;a.push([t.id,'.bui-dropdown{display:inline-block;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.bui-dropdown .bui-dropdown-wrap{fill:#757575;fill:var(--bpx-aux-header-icon,#757575)}.bui-dropdown .bui-dropdown-wrap.bui-no-event{pointer-events:none}.bui-dropdown .bui-dropdown-wrap.bui-dropdown-unfold .bui-dropdown-items{display:block}.bui-dropdown .bui-dropdown-wrap.bui-dropdown-unfold .bui-dropdown-icon{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6)}.bui-dropdown .bui-dropdown-display .bui-dropdown-name{vertical-align:middle}.bui-dropdown .bui-dropdown-display .bui-dropdown-icon{cursor:pointer;display:inline-block;height:14px;margin-left:9px;-webkit-transition:fill .3s;transition:fill .3s;vertical-align:middle;width:14px}.bui-dropdown .bui-dropdown-display .bui-dropdown-icon .bpx-common-svg-icon{vertical-align:top}.bui-dropdown .bui-dropdown-display .bui-dropdown-icon:hover{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6)}.bui-dropdown .bui-dropdown-items{background-color:#fff;background-color:var(--bpx-aux-float-bg,#fff);border:1px solid #e5e9ef;border:1px solid var(--bpx-aux-float-border,#e5e9ef);border-radius:4px;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.14);box-shadow:0 2px 4px 0 rgba(0,0,0,.14);display:none;padding:8px 0;position:absolute;right:0;top:30px;z-index:1}.bui-dropdown .bui-dropdown-items .bui-dropdown-item{color:#222;color:var(--bpx-aux-content-font1,#222);cursor:pointer;font-size:14px;font-weight:400;height:36px;line-height:36px;padding:0 12px;position:relative;-webkit-transition:background-color .3s,color .3s;transition:background-color .3s,color .3s;white-space:nowrap}.bui-dropdown .bui-dropdown-items .bui-dropdown-item:before{content:"";height:100%;left:0;opacity:.1;position:absolute;top:0;-webkit-transition:background-color .3s;transition:background-color .3s;width:100%}.bui-dropdown .bui-dropdown-items .bui-dropdown-item:hover{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-dropdown .bui-dropdown-items .bui-dropdown-item:hover:before{background-color:#000;background-color:var(--bpx-aux-float-hover-bg,#000)}.bui-dropdown .bui-dropdown-items .bui-dropdown-item.bui-hide{display:none}.bui-dropdown .bui-dropdown-items .bui-dropdown-item.bui-disabled{background-color:#f4f4f4;cursor:not-allowed}.bui-dropdown .bui-dropdown-items .bui-dropdown-item.bui-disabled:hover{background-color:#f4f4f4;color:#222;color:var(--bpx-aux-content-font1,#222)}',""]),e.Z=a},49326:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-start;vertical-align:middle}.bui svg{height:100%;width:100%}.bui.bui-disabled{cursor:not-allowed;-webkit-filter:grayscale(100%);filter:grayscale(100%)}.bui.bui-disabled *{pointer-events:none}.bui .bui-area{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:start;-ms-flex-pack:start;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:flex-start;line-height:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:100%}.dotdotdot{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),e.Z=a},85266:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-input{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;position:relative}.bui-input .bui-input-wrap{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;position:relative;width:100%}.bui-input.bui-disabled .bui-input-input{background:#f5f7fa;border-color:#e7e7e7;color:silver;cursor:not-allowed}.bui-input .bui-input-input{-moz-appearance:textfield;border:1px solid silver;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;font-size:var(--bpx-ui-font-size,12px);height:100%;outline:none;padding:4px 7px;resize:none;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .3s;transition:all .3s;width:100%}.bui-input .bui-input-input::-webkit-inner-spin-button,.bui-input .bui-input-input::-webkit-outer-spin-button{-webkit-appearance:none}.bui-input .bui-input-stepper{-webkit-box-orient:vertical;-webkit-box-direction:normal;border:1px solid silver;border-radius:0 2px 2px 0;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;position:absolute;right:0;top:0;width:14px}.bui-input .bui-input-stepper-half{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:50%;justify-content:center;vertical-align:middle}.bui-input .bui-input-stepper-up{border-bottom:1px solid silver}.bui-input .bui-input-arrow{border-style:solid;height:0;width:0}.bui-input .bui-input-arrow-up{border-color:transparent transparent #999;border-width:0 3px 4px}.bui-input .bui-input-arrow-down{border-color:#999 transparent transparent;border-width:4px 3px 0}",""]),e.Z=a},36474:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-long-list:hover .bscroll-vertical-scrollbar{opacity:1!important}.bui-long-list .bui-long-list-wrap{height:100%;overflow:hidden;position:relative;width:100%}.bui-long-list .bui-long-list-wrap .bui-long-list-list{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;list-style-type:none;margin:0;padding:0;width:100%}",""]),e.Z=a},71194:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-menu{background-color:#fff;border:1px solid #e2e2e2;border-radius:3px;-webkit-box-shadow:0 0 5px #e2e2e2;box-shadow:0 0 5px #e2e2e2;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;text-shadow:0 0 #e2e2e2}.bui-menu.bui-dark{background-color:rgba(28,28,28,.9);border:none;-webkit-box-shadow:none;box-shadow:none;text-shadow:0 0 2px rgba(0,0,0,.5)}.bui-menu.bui-dark .bui-menu-items .bui-menu-item{color:#eee}.bui-menu.bui-dark .bui-menu-items .bui-menu-item:hover{background-color:hsla(0,0%,100%,.12)}.bui-menu.bui-dark .bui-menu-items .bui-menu-item+.bui-menu-item{border-top:1px solid hsla(0,0%,100%,.12)}.bui-menu .bui-menu-items{cursor:pointer;list-style-type:none;margin:0;padding:0}.bui-menu .bui-menu-items .bui-menu-item{color:#444;display:block;font-size:12px;font-size:var(--bpx-ui-font-size,12px);height:30px;line-height:30px;overflow:hidden;padding:4px 20px;text-align:left;text-overflow:ellipsis;-webkit-transition:background-color .3s ease-in-out;transition:background-color .3s ease-in-out;white-space:nowrap}.bui-menu .bui-menu-items .bui-menu-item:hover{background-color:#ddd}.bui-menu .bui-menu-items .bui-menu-item+.bui-menu-item{border-top:1px solid transparent}",""]),e.Z=a},25852:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-panel{background:#fff;border:1px solid #e2e2e2;border-radius:4px 4px 0 0;overflow:hidden}.bui-panel.bui-dark{background:hsla(0,0%,8%,.9);border:none}.bui-panel .bui-panel-wrap{position:relative;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .25s;transition:all .25s}.bui-panel .bui-panel-move{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:-webkit-transform .25s;transition:-webkit-transform .25s;transition:transform .25s;transition:transform .25s,-webkit-transform .25s}.bui-panel .bui-panel-item,.bui-panel .bui-panel-move{-webkit-transform:translateZ(0);transform:translateZ(0)}.bui-panel .bui-panel-item{opacity:0;pointer-events:none;-webkit-transition:opacity .1s;transition:opacity .1s}.bui-panel .bui-panel-item.bui-panel-item-active{opacity:1;pointer-events:auto}",""]),e.Z=a},46713:function(t,e,i){"use strict"
;var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-progress{cursor:pointer;height:12px}.bui-progress-wrap{background-color:hsla(0,0%,100%,.2);border-radius:6px;height:6px;position:relative;width:100%}.bui-progress-unfilled .bui-progress-bar,.bui-progress-unfilled .bui-progress-bar:before{background-color:transparent}.bui-progress-bar{background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);border-radius:6px;height:100%;position:relative;width:0;z-index:1}.bui-progress-dot{background-color:#fff;border-radius:50%;height:14px;position:absolute;right:0;top:0;-webkit-transform:translate3d(6px,-4px,0);transform:translate3d(6px,-4px,0);width:14px;z-index:4}.bui-progress-step{-webkit-box-sizing:border-box;box-sizing:border-box;height:12px;left:6px;pointer-events:none;position:absolute;right:6px;top:0;z-index:2}.bui-progress-item{height:12px;left:0;margin-left:-1px;position:absolute;top:1px;white-space:nowrap}.bui-progress-item:first-child{margin-left:-4px}.bui-progress-item:last-child{margin-left:0}.bui-progress-item .bui-progress-text{color:hsla(0,0%,100%,.5);font-size:12px;line-height:16px;margin-top:5px;-webkit-transform:translateX(-45%);transform:translateX(-45%)}.bui-progress-lab{background:#fff;border-radius:100%;height:4px;width:4px}.bui-progress-val{text-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;color:hsla(0,0%,100%,.8);cursor:default;font-size:12px;line-height:16px;padding-left:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}",""]),e.Z=a},6768:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-radio.bui-dark .bui-radio-button .bui-radio-item:hover .bui-radio-label{background-color:hsla(0,0%,100%,.4)}.bui-radio.bui-dark .bui-radio-button .bui-radio-input:checked+.bui-radio-label{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6)}.bui-radio.bui-dark .bui-radio-button .bui-radio-label{background-color:hsla(0,0%,100%,.3)}.bui-radio .bui-radio-wrap{font-size:0;width:100%}.bui-radio .bui-radio-item{display:inline-block;position:relative}.bui-radio .bui-radio-input{cursor:pointer;height:100%;left:0;margin:0;opacity:0;position:absolute;top:0;width:100%}.bui-radio .bui-radio-label{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:inline-block;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:12px;font-size:var(--bpx-ui-font-size,12px);height:100%;pointer-events:none;width:100%}.bui-radio .bui-radio-normal .bui-radio-item{height:33px}.bui-radio .bui-radio-normal .bui-radio-item:hover .bui-radio-text{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-radio .bui-radio-normal .bui-radio-item:hover .bui-radio-icon svg{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6)}.bui-radio .bui-radio-normal .bui-radio-label{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;vertical-align:middle}.bui-radio .bui-radio-normal .bui-radio-label .bui-radio-text{color:#6d757a;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s}.bui-radio .bui-radio-normal .bui-radio-label .bui-radio-icon{display:inline-block;font-size:0;margin-right:10px;width:16px}.bui-radio .bui-radio-normal .bui-radio-label .bui-radio-icon svg{fill:#6d757a;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s}.bui-radio .bui-radio-normal .bui-radio-label .bui-radio-icon-selected{display:none}.bui-radio .bui-radio-normal .bui-radio-input:checked+.bui-radio-label .bui-radio-text{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-radio .bui-radio-normal .bui-radio-input:checked+.bui-radio-label .bui-radio-icon svg{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6)}.bui-radio .bui-radio-normal .bui-radio-input:checked+.bui-radio-label .bui-radio-icon-selected{display:inline-block}.bui-radio .bui-radio-normal .bui-radio-input:checked+.bui-radio-label .bui-radio-icon-default{display:none}.bui-radio .bui-radio-button .bui-radio-group{-webkit-box-pack:justify;-ms-flex-pack:justify;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;justify-content:space-between}.bui-radio .bui-radio-button .bui-radio-item{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:center}.bui-radio .bui-radio-button .bui-radio-item:hover .bui-radio-label{background-color:#757575}.bui-radio .bui-radio-button .bui-radio-input:checked+.bui-radio-label{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6)}.bui-radio .bui-radio-button .bui-radio-label{-webkit-box-pack:center;-ms-flex-pack:center;background-color:#999;border-radius:2px;justify-content:center;padding:2px 0;-webkit-transition:all .2s;transition:all .2s}.bui-radio .bui-radio-button .bui-radio-label .bui-radio-text{color:#fff}",""]),e.Z=a},45783:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r())
;a.push([t.id,".bui-select{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;line-height:normal;position:relative}.bui-select.bui-dark .bui-select-header:hover,.bui-select.bui-dark .bui-select-list,.bui-select.bui-dark .bui-select-unfold .bui-select-header{background:#212121}.bui-select.bui-dark .bui-select-border{border:1px solid hsla(0,0%,100%,.2)}.bui-select.bui-dark .bui-select-wrap{height:22px}.bui-select.bui-dark .bui-select-header,.bui-select.bui-dark .bui-select-item{height:20px;line-height:20px}.bui-select.bui-dark .bui-select-item:hover{background:hsla(0,0%,100%,.1)}.bui-select .bui-select-quality-menu .bui-select-header:hover,.bui-select .bui-select-quality-menu .bui-select-unfold .bui-select-header,.bui-select.bui-dark .bui-select-item.bui-select-item-disabled:hover{background:none}.bui-select .bui-select-quality-menu .bui-select-list{background:hsla(0,0%,8%,.9);border-radius:2px}.bui-select .bui-select-quality-menu .bui-select-border{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:none;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:0;height:100%}.bui-select .bui-select-quality-menu .bui-select-arrow{display:none}.bui-select .bui-select-quality-menu .bui-select-header{font-size:14px;height:auto;padding:0;text-align:center;width:100%}.bui-select .bui-select-quality-menu .bui-select-item{height:36px;line-height:36px;padding:0 20px;white-space:nowrap}.bui-select .bui-select-quality-menu .bui-select-item.bui-select-item-active{color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-select .bui-select-quality-menu .bui-select-result{line-height:22px}.bui-select .bui-select-quality-menu .bui-select-list{font-size:12px;font-size:var(--bpx-ui-font-size,12px);left:0;position:absolute;text-align:left;-webkit-transition:none;transition:none;width:auto}.bui-select .bui-select-quality-menu .bui-select-wrap{height:100%;position:relative}.bui-select .bui-select-quality-menu .bui-select-bridge{bottom:22px;left:0;position:absolute;right:0}.bui-select .bui-select-wrap{height:24px;width:100%}.bui-select .bui-select-unfold .bui-select-bridge{display:block}.bui-select .bui-select-border{border:1px solid silver;border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:12px;font-size:var(--bpx-ui-font-size,12px);width:100%}.bui-select .bui-select-header{height:22px;line-height:22px;padding:0 22px 0 7px;position:relative}.bui-select .bui-select-arrow{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:center;position:absolute;right:0;top:0;vertical-align:middle;width:22px}.bui-select .bui-select-bridge{cursor:pointer;display:none}.bui-select .bui-select-list{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;height:0;list-style-type:none;margin:0;overflow:hidden;padding:0;position:relative;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s;width:100%;z-index:1}.bui-select .bui-select-item{height:22px;line-height:22px;padding:0 22px 0 7px;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:background .3s;transition:background .3s}.bui-select .bui-select-item *{display:inline-block;pointer-events:none;vertical-align:middle}.bui-select .bui-select-item:hover{background:#e5e9ef;background:var(--bpx-aux-button-bg,#e5e9ef)}.bui-select .bui-select-item.bui-select-item-disabled{color:#999;cursor:not-allowed}.bui-select .bui-select-item.bui-select-item-disabled:hover{background:none}.bui-select .bui-select-item.bui-select-item-active{cursor:default}.bui-select .bui-select-arrow-down{border-color:#999 transparent transparent;border-style:solid;border-width:4px 3px 0;height:0;width:0}.bui-select-bscroll .bui-select-list-wrap{height:0;overflow:hidden;position:relative;z-index:3}.bui-select-bscroll .bui-select-list{height:auto!important}.bui-select-bscroll .bscroll-vertical-scrollbar{background:transparent!important;width:6px!important}.bui-select-bscroll .bscroll-indicator{background:#6d7f7a!important;border:none!important;cursor:pointer}.bui-select-bscroll .bscroll-vertical-scrollbar.mousedown{opacity:1!important}.bui-select-bscroll .bui-select-unfold .bui-select-list-wrap{height:auto!important}.bui-select-bscroll .bui-select-unfold .bscroll-vertical-scrollbar{opacity:1!important}",""]),e.Z=a},4385:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r())
;a.push([t.id,".bui-slider{cursor:pointer;height:12px;height:var(--bpx-ui-font-size,12px)}.bui-slider.bui-dark .bui-track .bui-step .bui-step-item .bui-step-name{color:hsla(0,0%,100%,.8)}.bui-slider.bui-dark .bui-track .bui-bar-wrap,.bui-slider.bui-dark .bui-track .bui-step .bui-step-item .bui-step-dot{background:#505050}.bui-slider .bui-track{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:2px;position:relative;width:100%}.bui-slider .bui-track.bui-track-autohide-thumb .bui-thumb .bui-thumb-dot,.bui-slider .bui-track.bui-track-autohide-thumb .bui-thumb .bui-thumb-dot-special{-webkit-transform:scale(0);transform:scale(0)}.bui-slider .bui-track.bui-track-moving .bui-thumb .bui-thumb-tooltip{opacity:1}.bui-slider .bui-track.bui-track-moving .bui-thumb .bui-thumb-dot,.bui-slider .bui-track.bui-track-moving .bui-thumb .bui-thumb-dot-special{-webkit-transform:scale(1);transform:scale(1)}.bui-slider .bui-track.bui-track-video-progress{height:2px}.bui-slider .bui-track.bui-track-video-progress.bui-track-moving{height:4px}.bui-slider .bui-track.bui-track-video-progress .bui-thumb .bui-thumb-dot{background:none;height:16px;pointer-events:none;position:relative;width:16px}.bui-slider .bui-track.bui-track-video-progress .bui-thumb .bui-thumb-dot svg{height:19px;left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:22px}.bui-slider .bui-track.bui-track-video-progress .bui-thumb .bui-thumb-dot svg path:first-child{fill:#333}.bui-slider .bui-track.bui-track-video-progress .bui-thumb .bui-thumb-dot svg path:nth-child(2){fill:#fff}.bui-slider .bui-track.bui-track-video-progress .bui-thumb .bui-thumb-dot svg path:nth-child(3),.bui-slider .bui-track.bui-track-video-progress .bui-thumb .bui-thumb-dot svg path:nth-child(4){fill:#333}.bui-slider .bui-track.bui-track-video-progress .bui-bar-wrap{background:hsla(0,0%,100%,.2)}.bui-slider .bui-track.bui-track-video-progress .bui-bar-wrap.bui-segmented{border-radius:0;overflow:visible;-webkit-transition:.1s cubic-bezier(0,0,.2,1);transition:.1s cubic-bezier(0,0,.2,1)}.bui-slider .bui-track.bui-track-video-progress .bui-bar-wrap.bui-segmented .bui-segmented-padding{bottom:0;height:14px;position:absolute;width:100%;z-index:28}.bui-slider .bui-track.bui-track-video-progress .bui-bar-wrap.bui-segmented .bui-segmented-padding.shadow{height:0}.bui-slider .bui-track.bui-track-video-progress .bui-bar-wrap.bui-segmented.hover{-webkit-transform:scaleY(1.8);transform:scaleY(1.8)}.bui-slider .bui-track.bui-track-video-progress .bui-bar-wrap .bui-bar-buffer{background:hsla(0,0%,100%,.3);-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:-webkit-transform .1s;transition:-webkit-transform .1s;transition:transform .1s;transition:transform .1s,-webkit-transform .1s}.bui-slider .bui-track.bui-track-vertical{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;height:100%;width:2px}.bui-slider .bui-track.bui-track-vertical .bui-bar-wrap .bui-bar{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);bottom:0;left:0;position:absolute;right:0;top:0;-webkit-transform-origin:0 100%;transform-origin:0 100%}.bui-slider .bui-track.bui-track-vertical .bui-thumb{bottom:0;position:relative;top:auto}.bui-slider .bui-track .bui-bar-wrap{background:#e7e7e7;border-radius:1.5px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.bui-slider .bui-track .bui-bar-wrap .bui-bar{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6);bottom:0;left:0;position:absolute;right:0;top:0;-webkit-transform-origin:0 0;transform-origin:0 0}.bui-slider .bui-track .bui-thumb{cursor:pointer}.bui-slider .bui-track .bui-thumb:hover .bui-thumb-tooltip{opacity:1}.bui-slider .bui-track .bui-thumb .bui-thumb-tooltip{background:hsla(0,0%,8%,.8);border-radius:4px;bottom:calc(100% + 6px);color:#fff;font-size:12px;font-size:var(--bpx-ui-font-size,12px);left:50%;opacity:0;padding:0 7px;pointer-events:none;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;white-space:nowrap}.bui-slider .bui-track .bui-thumb .bui-thumb-dot{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#00a1d6;background-color:var(--bpx-fn-color,#00a1d6);border-radius:50%;display:-webkit-box;display:-ms-flexbox;display:flex;height:12px;height:var(--bpx-ui-font-size,12px);-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s;vertical-align:middle;width:12px;width:var(--bpx-ui-font-size,12px)}.bui-slider .bui-track .bui-thumb .bui-thumb-dot-special{line-height:12px;line-height:var(--bpx-ui-font-size,12px);-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .2s;transition:all .2s}.bui-slider .bui-track .bui-step{pointer-events:none}.bui-slider .bui-track .bui-step .bui-step-item{position:absolute;width:0}.bui-slider .bui-track .bui-step .bui-step-item .bui-step-name{bottom:6px;color:#999;font-size:12px;font-size:var(--bpx-ui-font-size,12px);left:50%;line-height:12px;line-height:var(--bpx-ui-font-size,12px);position:absolute;text-align:center;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100px}.bui-slider .bui-track .bui-step .bui-step-item .bui-step-dot{background:#e5e9ef;border-radius:1px;height:4px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:2px}.bui-slider .bui-track .bui-step .bui-step-item.bui-step-item-0 .bui-step-name{text-align:left;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bui-slider .bui-track .bui-step .bui-step-item.bui-step-item-0 .bui-step-dot{-webkit-transform:translateY(-50%);transform:translateY(-50%)}.bui-slider .bui-track .bui-step .bui-step-item.bui-step-item-100 .bui-step-name{text-align:right;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.bui-slider .bui-track .bui-step .bui-step-item.bui-step-item-100 .bui-step-dot{-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}",""]),e.Z=a},1305:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o),s=i(7121),l=i.n(s),A=new URL(i(1030),i.b),c=a()(r()),h=l()(A)
;c.push([t.id,'.bui-swiper-wrap{height:100%;position:relative;width:100%}.bui-swiper-wrap.bui-swiper-has-pre .bui-swiper-pre{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.bui-swiper-wrap.bui-swiper-has-pre:before{background:-webkit-gradient(linear,left top,right top,from(#000),to(transparent));background:linear-gradient(90deg,#000,transparent);bottom:4px;content:"";left:14px;position:absolute;top:0;width:57px;z-index:2}.bui-swiper-wrap.bui-swiper-has-next .bui-swiper-next{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.bui-swiper-wrap.bui-swiper-has-next:after{background:-webkit-gradient(linear,right top,left top,from(#000),to(transparent));background:linear-gradient(270deg,#000,transparent);bottom:4px;content:"";position:absolute;right:14px;top:0;width:57px;z-index:2}.bui-swiper-wrap .bui-swiper-next,.bui-swiper-wrap .bui-swiper-pre{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:#fff;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:none;height:28px;justify-content:center;margin-top:-14px;position:absolute;text-align:center;top:50%;width:28px;z-index:3}.bui-swiper-wrap .bui-swiper-next>span,.bui-swiper-wrap .bui-swiper-pre>span{height:20px;width:20px}.bui-swiper-wrap .bui-swiper-next svg,.bui-swiper-wrap .bui-swiper-pre svg{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6);height:20px;vertical-align:top;width:20px}.bui-swiper-wrap .bui-swiper-next:hover,.bui-swiper-wrap .bui-swiper-pre:hover{background:#00a1d6;background:var(--bpx-primary-color,#00a1d6)}.bui-swiper-wrap .bui-swiper-next:hover svg,.bui-swiper-wrap .bui-swiper-pre:hover svg{fill:#fff}.bui-swiper-wrap .bui-swiper-pre{left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.bui-swiper-wrap .bui-swiper-next{right:0}.bui-swiper-wrap .bui-swiper-overhide{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;margin:0 14px;overflow:hidden;position:relative}.bui-swiper-wrap .bui-swiper-list{font-size:0;height:100%;position:absolute;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:-webkit-transform 1s ease-in-out;transition:-webkit-transform 1s ease-in-out;transition:transform 1s ease-in-out;transition:transform 1s ease-in-out,-webkit-transform 1s ease-in-out;white-space:nowrap}.bui-swiper-wrap .bui-swiper-list.bui-swiper-border:before{background:hsla(0,0%,100%,.8);content:"";height:1px;left:4px;position:absolute;right:0;top:36px}.bui-swiper-wrap .bui-swiper-list.bui-swiper-border .bui-swiper-img{background:#000;border:1px solid hsla(0,0%,100%,.8);-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.2);box-shadow:0 2px 4px 0 rgba(0,0,0,.2)}.bui-swiper-wrap .bui-swiper-item{cursor:pointer;display:inline-block;font-size:0;position:relative}.bui-swiper-wrap .bui-swiper-item.bui-swiper-item-active .bui-swiper-img{border-color:#00a1d6;border-color:var(--bpx-fn-color,#00a1d6)}.bui-swiper-wrap .bui-swiper-item.bui-swiper-item-active:hover .bui-swiper-text{color:#fff}.bui-swiper-wrap .bui-swiper-item.bui-swiper-item-active .bui-swiper-text{background:#00a1d6 url('+h+") no-repeat 0;background:var(--bpx-fn-color,#00a1d6) url("+h+") no-repeat left center;background-size:22px;color:#fff;padding-left:22px}.bui-swiper-wrap .bui-swiper-item.bui-swiper-item-active .bui-swiper-text svg{height:16px;vertical-align:middle;width:24px}.bui-swiper-wrap .bui-swiper-item .bui-swiper-img{bottom:16px;left:0;position:absolute;right:0;top:0}.bui-swiper-wrap .bui-swiper-item .bui-swiper-img img{height:100%;width:100%}.bui-swiper-wrap .bui-swiper-item:first-child{margin-left:4px!important}.bui-swiper-wrap .bui-swiper-item:hover .bui-swiper-text{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bui-swiper-wrap .bui-swiper-item .bui-swiper-text{background:#fff;bottom:4px;-webkit-box-shadow:0 0 4px rgba(0,0,0,.5);box-shadow:0 0 4px rgba(0,0,0,.5);-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;height:20px;left:-4px;line-height:20px;overflow:hidden;padding-left:4px;position:absolute;text-overflow:ellipsis;white-space:nowrap;width:100%}",""]),e.Z=c},63434:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-switch{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative}.bui-switch:hover .bui-switch-name{color:#00a1d6;color:var(--bpx-primary-color,#00a1d6)}.bui-switch .bui-switch-input{cursor:pointer;height:100%;left:0;margin:0;opacity:0;position:absolute;top:0;width:100%;z-index:1}.bui-switch .bui-switch-input:checked+.bui-switch-label .bui-switch-body{background:#00a1d6;background:var(--bpx-fn-color,#00a1d6)}.bui-switch .bui-switch-input:checked+.bui-switch-label .bui-switch-body .bui-switch-dot{fill:#00a1d6;fill:var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6);left:100%;margin-left:-18px}.bui-switch .bui-switch-label{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:justify;-ms-flex-pack:justify;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:space-between;vertical-align:middle;width:100%}.bui-switch .bui-switch-name{position:relative}.bui-switch .bui-switch-name .bui-switch-reddot{background:#f25d8e;border-radius:50%;height:4px;position:absolute;right:-8px;top:8px;width:4px}.bui-switch .bui-switch-body{background:#757575;border-radius:10px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;height:20px;outline:none;vertical-align:middle;width:30px}.bui-switch .bui-switch-body,.bui-switch .bui-switch-dot{position:relative;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-transition:all .3s;transition:all .3s}.bui-switch .bui-switch-dot{fill:#757575;-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background-color:#fff;border-radius:100%;-webkit-box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);color:#757575;display:-webkit-box;display:-ms-flexbox;display:flex;height:16px;justify-content:center;left:2px;line-height:16px;text-align:center;top:2px;width:16px}.bui-switch .bui-switch-dot span{display:inline-block;font-size:0;height:10px;width:10px}",""]),e.Z=a},44218:function(t,e,i){"use strict";var n=i(26751),r=i.n(n),o=i(73044),a=i.n(o)()(r());a.push([t.id,".bui-tabs .bui-tabs-header{display:-webkit-box;display:-ms-flexbox;display:flex}.bui-tabs .bui-tabs-header .bui-tabs-header-item{color:#222;color:var(--bpx-aux-content-font1,#222);cursor:pointer;font-size:12px;font-size:var(--bpx-ui-font-size,12px);margin-right:20px;text-align:center}.bui-tabs .bui-tabs-header .bui-tabs-header-item.bui-tabs-header-item-active{border-bottom:1px solid #00a1d6;border-bottom:1px solid var(--bpx-fn-color,#00a1d6);color:#00a1d6;color:var(--bpx-fn-color,#00a1d6)}.bui-tabs-body .bui-tabs-body-item{display:none}.bui-tabs-body .bui-tabs-body-item.bui-tabs-body-item-active{display:block}",""]),e.Z=a},65610:function(t,e,i){"use strict";i.d(e,{R2:function(){return A},_j:function(){return r},a_:function(){return a},bw:function(){return l},cx:function(){return s},eG:function(){return n},m:function(){return o}});const n="bpx-docker",r="bpx-common",o="bpx-player",a="bpx-state",s=`${o}-seamless-replacement`,l="nano",A=/\/player\/(main|js)\/core\.(.+\.)?js(\?.*)?$/},76173:function(t,e,i){"use strict";i.d(e,{CQ:function(){return n},CU:function(){return r},Om:function(){return A},gb:function(){return a},or:function(){return o},uU:function(){return l},ul:function(){return s}});const n="CURRENT_QUALITY",r="CURRENT_FNVAL",o="CURRENT_BLACKGAP",a="CURRENT_LANGUAGE",s="bpx_player_profile",l="bilibili_player_codec_prefer_type",A="bilibili_player_gpu_renderer"},30421:function(t,e,i){"use strict";i.d(e,{D2:function(){return o},Dy:function(){return A},QP:function(){return a},nG:function(){return l},vJ:function(){return r},xw:function(){return s},yE:function(){return n}});const n=0,r=0,o=1,a=!0,s=!1,l=!0,A=0},90050:function(t,e,i){
"use strict";i.d(e,{a:function(){return r}});var n=i(99195);const r={fade:!1,scale:!0,fontsize:1,opacityNew:.87,bilingual:!1,color:"16777215",shadow:n.$G.None,position:n.Aw.BottomCenter,pgcSubtitleSettings_Def:{0:{fade:!1,scale:!0,fontsize:1,opacity:.87,color:"16777215",shadow:n.$G.None,position:n.Aw.BottomCenter,isclosed:!0}}}},22513:function(t,e,i){"use strict";i.d(e,{Ml:function(){return o},tn:function(){return r},x:function(){return n}});const n="https://s1.hdslb.com/bfs/seed/jinkela/short/mini-login-v2/miniLogin.umd.min.js",r="https://passport.bilibili.com/login",o="//s1.hdslb.com/bfs/static/player/media/error.mp4"},96001:function(t,e,i){"use strict";i.d(e,{IL:function(){return n},ao:function(){return r},bt:function(){return o},ju:function(){return a},pp:function(){return A},vd:function(){return l},vt:function(){return s}});var n=(t=>(t[t.Default=0]="Default",t[t.Dolby=1]="Dolby",t[t.Flac=2]="Flac",t))(n||{}),r=(t=>(t[t.Default=3]="Default",t[t.Mouse=1]="Mouse",t[t.Touch=2]="Touch",t))(r||{}),o=(t=>(t[t.Default=0]="Default",t[t.Foreign=1]="Foreign",t))(o||{}),a=(t=>(t.LIST="LIST",t.BLOCK="BLOCK",t.ADV="ADV",t.BAS="BAS",t))(a||{}),s=(t=>(t[t.Nomal=0]="Nomal",t[t.Embedded=1]="Embedded",t[t.White=2]="White",t[t.Other=3]="Other",t))(s||{}),l=(t=>(t[t.Big=1100]="Big",t[t.Normal=730]="Normal",t[t.Small=550]="Small",t[t.Tiny=420]="Tiny",t))(l||{}),A=(t=>(t[t.Tiny=0]="Tiny",t[t.minorSmall=1]="minorSmall",t[t.Small=2]="Small",t[t.Normal=3]="Normal",t[t.Big=4]="Big",t))(A||{})},95999:function(t,e,i){"use strict";i.d(e,{$:function(){return r},S:function(){return n}});var n=(t=>(t.ORIGIN="",t.ZH_CN="zh",t.EN="en",t.JA="ja",t.TH="th",t))(n||{}),r=(t=>(t[t.DEFAULT=0]="DEFAULT",t[t.MULTI_LANGUAGE=1]="MULTI_LANGUAGE",t[t.AI_VOICE=2]="AI_VOICE",t))(r||{})},27615:function(t,e,i){"use strict";i.d(e,{Cn:function(){return r},VH:function(){return n},lG:function(){return o}});var n=(t=>(t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA",t))(n||{}),r=(t=>(t[t.NETWORK_EMPTY=0]="NETWORK_EMPTY",t[t.NETWORK_IDLE=1]="NETWORK_IDLE",t[t.NETWORK_LOADING=2]="NETWORK_LOADING",t[t.NETWORK_NO_SOURCE=3]="NETWORK_NO_SOURCE",t))(r||{}),o=(t=>(t[t.MEDIA_ERR_ABORTED=1]="MEDIA_ERR_ABORTED",t[t.MEDIA_ERR_NETWORK=2]="MEDIA_ERR_NETWORK",t[t.MEDIA_ERR_DECODE=3]="MEDIA_ERR_DECODE",t[t.MEDIA_ERR_SRC_NOT_SUPPORTED=4]="MEDIA_ERR_SRC_NOT_SUPPORTED",t))(o||{})},54981:function(t,e,i){"use strict";i.d(e,{HR:function(){return o},_1:function(){return c},dY:function(){return n},hH:function(){return s},qW:function(){return l},s:function(){return A},ty:function(){return r},u5:function(){return a}});var n=(t=>(t[t.Normal=0]="Normal",t[t.Wide=1]="Wide",t[t.Web=2]="Web",t[t.Mini=3]="Mini",t[t.Full=4]="Full",t[t.Pip=5]="Pip",t))(n||{}),r=(t=>(t[t.Auto=0]="Auto",t[t.Delay=1]="Delay",t[t.Abort=2]="Abort",t))(r||{}),o=(t=>(t[t.Ugc=0]="Ugc",t[t.Pgc=1]="Pgc",t[t.Pugv=2]="Pugv",t[t.Stein=3]="Stein",t[t.Oneself=4]="Oneself",t[t.Manager=5]="Manager",t))(o||{}),a=(t=>(t[t.Default=0]="Default",t[t.Manager=1]="Manager",t[t.Creator=2]="Creator",t[t.Oneself=3]="Oneself",t[t.Homepage=4]="Homepage",t[t.Homepage_Topic=5]="Homepage_Topic",t[t.Embedded=6]="Embedded",t[t.PC_APP=7]="PC_APP",t[t.Playlist=8]="Playlist",t[t.Embedded_White=9]="Embedded_White",t[t.Embedded_Other=10]="Embedded_Other",t[t.Gamecenter=11]="Gamecenter",t[t.Mini_Site=12]="Mini_Site",t))(a||{}),s=(t=>(t.ManualAction="ManualAction",t.TimeupdateEvent="TimeupdateEvent",t.SeekingEvent="SeekingEvent",t))(s||{}),l=(t=>(t[t.I_PlayUrl=0]="I_PlayUrl",t[t.I_UserInfo=1]="I_UserInfo",t[t.I_ViewInfo=2]="I_ViewInfo",t[t.I_VideoShot=3]="I_VideoShot",t[t.P_Title=4]="P_Title",t[t.M_Lottie=5]="M_Lottie",t))(l||{}),A=(t=>(t[t.Like=0]="Like",t[t.Coin=1]="Coin",t[t.Triple=2]="Triple",t[t.Follow=3]="Follow",t[t.Collect=4]="Collect",t[t.Electric=5]="Electric",t[t.UpInfo=6]="UpInfo",t[t.Manuscript=7]="Manuscript",t[t.Interaction_Guide=8]="Interaction_Guide",t[t.Realname_Certified=9]="Realname_Certified",t[t.Super_Quality_Guide=10]="Super_Quality_Guide",t[t.DM_Cross=11]="DM_Cross",t[t.Report_Observer=12]="Report_Observer",t[t.Music=13]="Music",t[t.Premiere=14]="Premiere",t[t.Creator_Attention_Pos_Update=15]="Creator_Attention_Pos_Update",t[t.ThreeBody=16]="ThreeBody",t[t.Redirect=17]="Redirect",t[t.Eplist_Pgc_Direct=18]="Eplist_Pgc_Direct",t[t.Prev_Next_Pgc_Direct=19]="Prev_Next_Pgc_Direct",t[t.GetVideoData=20]="GetVideoData",t[t.OpenUrl=21]="OpenUrl",t[t.First_Playtime=22]="First_Playtime",t[t.Vip_Vision_Question_Wall=23]="Vip_Vision_Question_Wall",t[t.Interactive_Panel=24]="Interactive_Panel",t[t.SetCookie=25]="SetCookie",t))(A||{}),c=(t=>(t[t.START=0]="START",t[t.COMPLETED=1]="COMPLETED",t[t.FAILED=2]="FAILED",t))(c||{})},99195:function(t,e,i){"use strict";i.d(e,{$G:function(){return r},Aw:function(){return n},nK:function(){return o}});var n=(t=>(t.TopLeft="top-left",t.TopCenter="top-center",t.TopRight="top-right",t.BottomLeft="bottom-left",t.BottomCenter="bottom-center",t.BottomRight="bottom-right",t))(n||{}),r=(t=>(t.None="0",t.Heavyink="1",t.Stroke="2",t.Projection="3",t))(r||{}),o=(t=>(t[t.Major=0]="Major",t[t.Minor=1]="Minor",t))(o||{})},16466:function(t,e,i){"use strict";i.d(e,{w:function(){return n}});var n=(t=>(t.E_Play_Screen="play_screen",t.E_Pause_Screen="pause_screen",t.E_DoubleTap_Fullscreen="doubletap_fullscreen",t.O_Quit="quit",t.O_Enter="enter",t.O_Ended="ended",t.O_Stage="stage",t.O_Media_Canplay="media_canplay",t.O_Load_Timeout="load_timeout",t.O_CDN_Time="cdnTime",t.O_Show_Time="showTime",t.O_Loaded_Time="loaded_time",t.O_Frame_Time="frame_time",t.O_Video_Buffer="video_buffer",t.O_Start_Load="start_load",t.O_End_Load="end_load",t.O_Null_End_Load="null_end_load",t.O_Head_End_Load="head_end_load",t.O_Hack_End_Load="hack_end_load",t.O_Seek_End_Load="seek_end_load",t.O_Video_Gap="video_gap",t.O_Web_LoadLag="web_loadlag",t.O_Web_LoadLag_End="web_loadlag_end",t.O_Lag_End_Load="lag_end_load",t.O_Stuck_Rescue="stuck_rescue",t.O_Seek_Consuming="seek_consuming",t.O_Auto_Switch_Requested="auto_switch_requested",t.O_Auto_Switch_Rendered="auto_switch_rendered",t.O_Quota_Exceeded="quota_exceeded",t.O_Buffering_Optimization="buffering_optimization",t.O_Load_Dash_Warning="load_dash_warning",t.O_Wasm_Player="wasm_player",t.O_Zero_Buffer="zero_buffer",t.O_Abnormal_Segment_ByteLength="abnormal_segment_bytelength",t.O_Abnormal_Segment_ByteLength_Error="abnormal_segment_bytelength_error",t.O_Range_Early_EOF="range_early_eof",t.O_Video_Cts_Warning="video_cts_warning",t.O_Flv_Data_Abnormal="flv_data_abnormal",t.O_Video_Error="video_error",t.O_Bangumi_Permission_Error="bangumi_permission_error",t.O_Load_VideoError_Code="load_videoerror_code",t.O_Web_VideoLoad_Fail="web_videoload_fail",t.O_Video_Retry_Success="video_retry_success",t.O_Video_Retry_Fail="video_retry_fail",t.O_Player_Feedback_Report="player_feedback_report",t.O_Player_Url_Error="player_url_error",t.O_Player_Cid_Error="player_cid_error",t.O_Device_Info="device_info",t.O_Playback_Performance="playback_performance",t.O_Dm_Filter_Info="dm_filter_info",t.O_Player_DRM_Skip="player_drm_skip",t.O_DRM_Info="drm_info",t.O_DRM_Key_Error="drm_key_error",t.O_Sign_Error_Code="error_code",t.O_MPD_LIST="mpd_list",t.O_Restrict_Intervals="restrict_intervals",t.O_Reload_Access_Success="reload_access_success",t.O_Sign_Error_Retry_Click="error_sign_retry_click",t.O_PLAYER_INIT="player_init",t.O_SOURCE_BUFFER_CHANGE_TYPE="source_buffer_change_type",t.O_SMART_ABR_INFO="smart_abr_info",t.O_SMART_ABR_FINAL_STARTUP_INFO="smart_abr_final_startup_info",t))(n||{})},80538:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});var n=(t=>(t.PLAYER_FAWKES_CONFIG_LOADED="PLAYER_FAWKES_CONFIG_LOADED",t.PLAYER_GRAPH_FLATTEN="PLAYER_GRAPH_FLATTEN",t.PLAYER_STORAGE_BUILD="PLAYER_STORAGE_BUILD",t.PLAYER_STATE_CREATE="PLAYER_STATE_CREATE",t.PLAYER_STATE_CREATED="PLAYER_STATE_CREATED",t.PLAYER_STORE_MOUNT="PLAYER_STORE_MOUNT",t.PLAYER_STORE_MOUNTED="PLAYER_STORE_MOUNTED",t.PLAYER_LOADED="PLAYER_LOADED",t.PLAYER_UNLOAD="PLAYER_UNLOAD",t.PLAYER_UNLOADED="PLAYER_UNLOADED",
t.MEDIA_LOADSTART="MEDIA_LOADSTART",t.MEDIA_LOADEDMETADATA="MEDIA_LOADEDMETADATA",t.MEDIA_LOADEDDATA="MEDIA_LOADEDDATA",t.MEDIA_CANPLAY="MEDIA_CANPLAY",t.MEDIA_PLAY="MEDIA_PLAY",t.MEDIA_PAUSE="MEDIA_PAUSE",t.MEDIA_WAITING="MEDIA_WAITING",t.MEDIA_PLAYING="MEDIA_PLAYING",t.MEDIA_SEEKING="MEDIA_SEEKING",t.MEDIA_SEEKED="MEDIA_SEEKED",t.MEDIA_STALLED="MEDIA_STALLED",t.MEDIA_PROGRESS="MEDIA_PROGRESS",t.MEDIA_SUSPEND="MEDIA_SUSPEND",t.MEDIA_TIMEUPDATE="MEDIA_TIMEUPDATE",t.MEDIA_RATECHANGE="MEDIA_RATECHANGE",t.MEDIA_VOLUMECHANGE="MEDIA_VOLUMECHANGE",t.MEDIA_DURATIONCHANGE="MEDIA_DURATIONCHANGE",t.MEDIA_ABORT="MEDIA_ABORT",t.MEDIA_ENDED="MEDIA_ENDED",t.MEDIA_EMPTIED="MEDIA_EMPTIED",t.MEDIA_ERROR="MEDIA_ERROR",t.PLAYER_BEFORE_MEDIA_REPLACE="PLAYER_BEFORE_MEDIA_REPLACE",t.PLAYER_MEDIA_CHANGED="PLAYER_MEDIA_CHANGED",t.PLAYER_BEFORE_SEEKING="PLAYER_BEFORE_SEEKING",t.PLAYER_LAG_FRAME="PLAYER_LAG_FRAME",t.PLAYER_PLAYBACK_LAG="PLAYER_PLAYBACK_LAG",t.PLAYER_HEARTBEAT="PLAYER_HEARTBEAT",t.PLAYER_TOUCH_GESTURE="PLAYER_TOUCH_GESTURE",t.PLAYER_CLEAR_SUBTITLE="PLAYER_CLEAR_SUBTITLE",t.ERROR_DASH_INITIALIZE="ERROR_DASH_INITIALIZE",t.ERROR_DASH_KERNEL="ERROR_DASH_KERNEL",t.ERROR_FLV_KERNEL="ERROR_FLV_KERNEL",t.ERROR_PLAY_URL="ERROR_PLAY_URL",t.WASM_PLAYER_FALLBACK="WASM_PLAYER_FALLBACK",t.PATCH_ADV_PLAY_ENDED="PATCH_ADV_PLAY_ENDED",t.PLAYER_STREAM_BUFFERING_COMPLETED="PLAYER_STREAM_BUFFERING_COMPLETED",t.PLAYER_LANGUAGE_SWITCH="PLAYER_LANGUAGE_SWITCH",t.Player_Reload_Access_Success="Player_Reload_Access_Success",t))(n||{})},40898:function(t,e,i){"use strict";i.d(e,{t:function(){return n}});var n=(t=>(t.Player_Navigate="Player_Navigate",t.Player_Committed="Player_Committed",t.Player_Prepared="Player_Prepared",t.Player_Enter_Loading="Player_Enter_Loading",t.Player_Leave_Loading="Player_Leave_Loading",t.Player_Initialized="Player_Initialized",t.Player_Connected="Player_Connected",t.Player_Show_EndPanel="Player_Show_EndPanel",t.Player_Hide_EndPanel="Player_Hide_EndPanel",t.Player_Show_Controls="Player_Show_Controls",t.Player_Hide_Controls="Player_Hide_Controls",t.Player_Dispose="Player_Dispose",t.Player_Disconnect="Player_Disconnect",t.Player_Idle_Frame="Player_Idle_Frame",t.Player_LoadStart="Player_LoadStart",t.Player_LoadedMetadata="Player_LoadedMetadata",t.Player_LoadedData="Player_LoadedData",t.Player_Canplay="Player_Canplay",t.Player_Play="Player_Play",t.Player_Pause="Player_Pause",t.Player_Waiting="Player_Waiting",t.Player_Playing="Player_Playing",t.Player_Seeking="Player_Seeking",t.Player_Seeked="Player_Seeked",t.Player_Stalled="Player_Stalled",t.Player_Progress="Player_Progress",t.Player_Suspend="Player_Suspend",t.Player_TimeUpdate="Player_TimeUpdate",t.Player_RateChange="Player_RateChange",t.Player_VolumeChange="Player_VolumeChange",t.Player_DurationChange="Player_DurationChange",t.Player_Abort="Player_Abort",t.Player_Ended="Player_Ended",t.Player_Error="Player_Error",t.Player_Emptied="Player_Emptied",t.Player_PlayUrl_Done="Player_PlayUrl_Done",t.Player_Ai_Animation_Triggered="Player_Ai_Animation_Triggered",t.Player_LoopChange="Player_LoopChange",t.Player_PatchSwitch="Player_PatchSwitch",t.Player_MirrorChange="Player_MirrorChange",t.Player_AspectRatioChange="Player_AspectRatioChange",t.Player_LightOffChange="Player_LightOffChange",t.Player_BlackGapChange="Player_BlackGapChange",t.Player_AutoplayChange="Player_AutoplayChange",t.Player_HandoffChange="Player_HandoffChange",t.Player_PreferCodecChange="Player_PreferCodecChange",t.Player_OpEdChange="Player_OpEdChange",t.Player_LoudnessChange="Player_LoudnessChange",t.Player_Loop_Signal="Player_Loop_Signal",t.Player_Handoff_Signal="Player_Handoff_Signal",t.Player_Danmaku_Change="Player_Danmaku_Change",t.Player_Hotspot_Change="Player_Hotspot_Change",t.Player_SharePanel_Change="Player_SharePanel_Change",t.Player_ProgressBar_Change="Player_ProgressBar_Change",t.Player_Access_Changed="Player_Access_Changed",t.Player_Quality_Changed="Player_Quality_Changed",t.Player_Quality_Requested="Player_Quality_Requested",t.Player_Quality_Rendered="Player_Quality_Rendered",t.Player_Statue_Changed="Player_Statue_Changed",t.Player_Container_Resize="Player_Container_Resize",t.Player_Aspect_Switch_Change="Player_Aspect_Switch_Change",t.Player_Summary_Change="Player_Summary_Change",t.Media_Element_Resize="Media_Element_Resize",t.Media_Autoplay_Not_Allowed="Media_Autoplay_Not_Allowed",t.Player_Perch_Click="Player_Perch_Click",t.Player_Submit_Feedback="Player_Submit_Feedback",t.Player_Vip_Trial_Toast_Envoked="Player_Vip_Trial_Toast_Envoked",t.Player_Vip_Trial_Prompt_Toast="Player_Vip_Trial_Prompt_Toast",t.Player_Vip_Qulaity_Trial="Player_Vip_Qulaity_Trial",t.Player_Vip_Qulaity_Trial_End="Player_Vip_Qulaity_Trial_End",t.Player_Patch_Adv_Report="Player_Patch_Adv_Report",t.Player_Sand_Animation_Running="Player_Sand_Animation_Running",t.Player_Virtual_Action="Player_Virtual_Action",t.Player_Polar_Report="Player_Polar_Report",t.Player_CANT_PLAY_DRM="Player_Cant_Play_Drm",t))(n||{})},51839:function(t,e,i){"use strict";i.d(e,{Rs:function(){return r},ZZ:function(){return a},M5:function(){return n.LoudnessMeterMode},Zc:function(){return v},Qj:function(){return b},Ac:function(){return x},rs:function(){return l},ae:function(){return _},T1:function(){return k},YE:function(){return D},ql:function(){return R},pu:function(){return M},rS:function(){return S},oh:function(){return s},fB:function(){return Q}});var n=i(46792);class r{}r.USER_LOGOUT=0,r.USER_LIMITED=1,r.USER_REGISTERED=2,r.USER_NORMAL=3,r.USER_VIP=4,r.USER_ADVANCED=5,r.P_ROLE_FREE=0,r.P_ROLE_ASSISTANT=1,r.SEND_POOL_NORMAL=[],r.SEND_POOL_ADMIN=[1,1],r.SEND_FONT_SIZE_LOGOUT=[0,0,0,0,0,0,0],r.SEND_FONT_SIZE_LIMITED=[0,0,1,1,0,0,0],r.SEND_FONT_SIZE_REGISTERED=[0,0,1,1,0,0,0],r.SEND_FONT_SIZE_NORMAL=[0,0,1,1,0,0,0],r.SEND_FONT_SIZE_VIP=[0,1,1,1,1,0,0],r.SEND_FONT_SIZE_ADVANCED=[1,1,1,1,1,1,1],r.SEND_FONT_SIZE_ADMIN=[0,0,1,1,1,0,0],r.SEND_MODE_LOGOUT=[0,0,0,0],r.SEND_MODE_LIMITED=[1,-2,-2,0],r.SEND_MODE_REGISTERED=[1,-2,-2,0],r.SEND_MODE_NORMAL=[1,-2,-2,0],r.SEND_MODE_VIP=[1,1,1,1],r.SEND_MODE_ADVANCED=[1,1,1,1],r.SEND_MODE_LEVEL_LOW=[1,-2,-2,0],r.SEND_MODE_LEVEL_TWO=[1,-2,-2,0],r.SEND_MODE_LEVEL_NORMAL=[1,1,1,0],r.SEND_COLOR_LOGOUT=0,r.SEND_COLOR_LEVEL_LOW=1,r.SEND_COLOR_NORMAL=2,r.SEND_STATUS_LOGOUT=0,r.SEND_STATUS_LEVEL_LOW=1,r.SEND_STATUS_LIMITED=4,r.SEND_STATUS_NORMAL=5,r.SEND_STATUS_TYPING=6,r.SEND_STATUS_BEYOND_WORDS=7,r.SEND_STATUS_SENDING=8,r.SEND_STATUS_SENT=9,r.SEND_STATUS_BLOCKING=11,r.SEND_STATUS_BLOCKED=12,r.SEND_STATUS_CLOSED=13,r.SEND_STATUS_UPDATE=14,r.SEND_ANSWER_STATUS_IN=15,r.SEND_STATUS_CANNOT_BUY=16,r.SEND_STATUS_UP_DM=17,r.SEND_STATUS_DYNAMIC_PANEL=18,r.SEND_STATUS_MANUALLY_CLOSED=19,r.SEND_STATUS_ELECTRIC_TRIAL_WATCH=20,r.SEND_INPUT_LOGOUT=[0,1e5],r.SEND_INPUT_LIMITED=[20,1e4],r.SEND_INPUT_REGISTERED=[20,1e4],r.SEND_INPUT_NORMAL=[100,5e3],r.SEND_INPUT_VIP=[100,1e3],r.SEND_INPUT_ADVANCED=[100,1e3],r.BLOCK_DISABLED=0,r.BLOCK_SCROLL=1,r.BLOCK_REVERSE=2,r.BLOCK_BOTTOM=3,r.BLOCK_TOP=4,r.BLOCK_COLOR=5,r.BLOCK_GUEST=6,r.BLOCK_FONTSIZE=7,r.BLOCK_NORMAL=8,r.BLOCK_SUBTITLE=9,r.BLOCK_SPECIAL=10,r.BLOCK_LIST_USER=11,r.BLOCK_LIST_KEYWORD=12,r.BLOCK_LIST_COLOR=13,r.BLOCK_LIST_REGEXP=14,r.BLOCK_CLOUD_VIDEO=15,r.BLOCK_CLOUD_PARTITION=16,r.BLOCK_CLOUD_ALL=17,r.BLOCK_CLOUD_UP=18;var o=i(96001),a=(t=>(t.Embed_White_Other="888.80997.embed_other.whitelist",t.Embed="888.82037.embed",t))(a||{});function s(t,e,i,n,r){const a="https://www.bilibili.com?",s="https://app.bilibili.com?",l=function(t){const e=t.match(/\/av(\d+)\?/);if(e&&e[1])return e[1]}(e);e||("main"===t&&(e=a),"download"===t&&(e=s));const A=new URL(e),c=A.searchParams;switch(c.append("spm_id_from",i===o.vt.Embedded?"888.82037.embed":"888.80997.embed_other.whitelist"),"play"===t&&(r&&c.append("t",r.toString()),l&&c.append("aid",l),n&&c.append("bvid",n)),window.__NanoEmbedRefer&&c.append("embed_refer",document.referrer),t){case"play":return void window.open(A.href);case"main":return void window.open(a+`&${c.toString()}`);case"download":return void window.open(s+`&${c.toString()}`);default:return}}function l(t){const e={dolbyAudioQuality:0,hasDolbyAudio:!1,hasDolbyAudioSrc:!1,dolbyName:null,flacAudioQuality:0,hasFlacAudio:!1,
hasFlacAudioSrc:!1,flacName:null,type:null};try{const i=t.url;if(i.dolby&&i.dolby.type){const t=+i.dolby.type,n=Array.isArray(i.dolby.audio)&&i.dolby.audio[0];if(e.hasDolbyAudio=!0,e.type=t,2===t)e.dolbyName="杜比全景声";else e.dolbyName="杜比音效";n&&n.id&&(e.dolbyAudioQuality=+n.id,e.hasDolbyAudioSrc=!0)}i.flac&&i.flac.display&&(e.hasFlacAudio=!0,e.flacName="Hi-Res无损音质",i.flac.audio&&i.flac.audio.id&&(e.flacAudioQuality=+i.flac.audio.id,e.hasFlacAudioSrc=!0))}catch(t){}return e}var A=i(91167),c=i.n(A),h=i(43122),d=Object.defineProperty,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=(t,e,i)=>e in t?d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,m=(t,e)=>{for(var i in e||(e={}))p.call(e,i)&&f(t,i,e[i]);if(u)for(var i of u(e))g.call(e,i)&&f(t,i,e[i]);return t};function y(t){const e=(new Date).getHours();return t.some((([t,i])=>e>=t&&e<i))}function b(t,e){const i={idleHours:[[1,11],[14,18]],idleAbrInitQuality:h.nJ.alias.FHD_80,idleHighGradeInitQuality:h.nJ.gt.abrMax,highGradeInitQuality:h.nJ.alias.FHD_80};if((e=m(m({},i),e)).isAutoQ){if(e.isHighGradeVideo)return function(t){const{idleHours:e,highGradeInitQuality:i,idleHighGradeInitQuality:n}=t;return y(e)&&n?n:i}(e);const i=function(t){const{idleHours:e,idleAbrInitQuality:i}=t;return y(e)?i:null}(e);if(null!==i&&i>=t.quality)return i}return t.quality}function v(t,e){var i,n,r,a;const s=h.nJ.alias,A=t.mediaDataSource.url,d=e===o.IL.Dolby,u=e===o.IL.Flac,p=l(t.mediaDataSource),g=t.quality<=s.SD_32?s.AQ_30216:t.quality<s.FHD_80?s.AQ_30232:s.AQ_30280;return d&&p.hasDolbyAudioSrc&&"function"==typeof c().isEC3DolbyATMOSTypeSupported&&c().isEC3DolbyATMOSTypeSupported()?p.dolbyAudioQuality:u&&p.hasFlacAudioSrc&&"function"==typeof c().isFLACTypeSupported&&c().isFLACTypeSupported()?p.flacAudioQuality:"string"!=typeof A&&(+(null==(n=null==(i=null==A?void 0:A.audio)?void 0:i.find((t=>t.id===g)))?void 0:n.id)||+(null==(a=null==(r=null==A?void 0:A.audio)?void 0:r[0])?void 0:a.id))||s.AQ_30280}var E=i(83370),I=i(94780),C=i(37039),B=i(44127),w=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));function x(){try{const t=I.x8.fsd,e=t=>{if(1===t.length)return t[0];let e=0;t.forEach((t=>{e+=t.byteLength}));let i=new Uint8Array(e),n=0;return t.forEach((t=>{i.set(new Uint8Array(t),n),n+=t.byteLength})),i.buffer};if(t)return t.abort(),I.x8.fsd=null,{type:"dash",video:e(t.vChunks),videoid:String(t.info.vId),videoUrl:t.info.vUrl,audio:e(t.aChunks),audioid:String(t.info.aId),audioUrl:t.info.aUrl}}catch(t){}}function Q(){const t=function(t){try{const e=E.Qv.getPlayUrlBody(t);if(!e)return;if(!e.dash)return;const i=E.xL.parse(t,{mseSupported:(0,C.a)(),enableSSLStream:!0,enableSSLResolve:!0});if(i.error)return;const n=e.dash.video,r=e.dash.audio,a=b(i.body),s=v(i.body,o.IL.Dolby),l=c().getVideoCodecStrategy({enableAV1:!0,enableHEVC:!0,manifest:e.dash,defaultVideoQn:a});let A,h,d,u;for(const t of n)if(t.id===a&&t.codecid===l){A=t.base_url||t.baseUrl,d=t.backup_url||t.backupUrl;break}for(const t of r)if(t.id===s){h=t.base_url||t.baseUrl,u=t.backup_url||t.backupUrl;break}if(A&&h)return{vId:a,vUrl:A,vBackupUrls:d,aId:s,aUrl:h,aBackupUrls:u}}catch(t){}}(window.__playinfo__);if(t){const e="function"==typeof window.fetch,i="function"==typeof window.AbortController;!function(t){if(!window.Set)return;if(!window.isSecureContext)return;const e="preconnect",i="dns-prefetch";try{const n=document.createDocumentFragment(),r=document.createElement("a"),o=t=>{if(t&&"string"==typeof t)return r.href=t,`https://${r.host}/`},a=o(t.vUrl),s=o(t.aUrl),l=new Set([a]),A=new Set([s]),c=(t,e)=>{if(Array.isArray(e))for(const i of e){const e=o(i);if(e&&t.add(e),t.size>=3)break}},h=(t,e)=>{if(t){const i=document.createElement("link");i.rel=e,i.href=t,i.crossOrigin="anonymous",i.setAttribute("data-injector","nano"),n.appendChild(i)}};h(a,e),h(s,e),c(l,t.vBackupUrls),c(A,t.aBackupUrls),l.forEach((t=>h(t,i))),A.forEach((t=>h(t,i))),document.head.appendChild(n)}catch(t){}}(t),e&&i&&function(t){try{const e=["0-8000","8001-100000","100001-200000","200001-300000"],i=["0-4000","4001-50000","50000-100000","100001-150000"],n=new AbortController,r=n.signal,o={info:t,aChunks:[],vChunks:[],abort:()=>"function"==typeof n.abort&&n.abort()},a=(t,e,i)=>{if(r.aborted)throw new Error("AbortError");return fetch(t,{mode:"cors",cache:"force-cache",redirect:"follow",credentials:"omit",headers:{range:`bytes=${e}`},signal:r}).then((t=>w(this,null,(function*(){if(!t.ok)throw new Error(`HTTP error, status = ${t.status}`);i.push(yield t.arrayBuffer())}))))};let s,l;e.forEach((e=>{s=s?s.then((()=>a(t.vUrl,e,o.vChunks))):a(t.vUrl,e,o.vChunks)})),i.forEach((e=>{l=l?l.then((()=>a(t.aUrl,e,o.aChunks))):a(t.aUrl,e,o.aChunks)})),s&&s.catch(B.Z),l&&l.catch(B.Z),I.x8.fsd=o}catch(t){}}(t)}}const S=()=>Promise.resolve().then(i.bind(i,78489)),k=()=>Promise.resolve().then(i.t.bind(i,22019,23)),D=()=>Promise.resolve().then(i.bind(i,78781)),_=()=>Promise.resolve().then(i.bind(i,58927)),R=()=>Promise.resolve().then(i.t.bind(i,20733,23)),M=()=>Promise.resolve().then(i.bind(i,46792))},5489:function(t,e,i){"use strict";i.d(e,{bV:function(){return ca},bt:function(){return A.bt},p7:function(){return Hi},IL:function(){return A.IL},ju:function(){return A.ju},Su:function(){return Ns},vq:function(){return Ps.v},iG:function(){return eo},u5:function(){return l.u5},AQ:function(){return Qr.A},Om:function(){return na.Om},ab:function(){return Us.a},fR:function(){return J},bp:function(){return q},jy:function(){return Hs},mU:function(){return Bo},pp:function(){return A.pp},vt:function(){return A.vt},vd:function(){return A.vd},tw:function(){return o.t},HR:function(){return l.HR},ty:function(){return l.ty},Wp:function(){return Dr},hH:function(){return l.hH},cy:function(){return kt.cy},p2:function(){return a.p},s:function(){return l.s},SQ:function(){return Uo.S},$v:function(){return Uo.$},IS:function(){return Ct},Dg:function(){return Co},lS:function(){return $a},Rr:function(){return kt.Rr},_k:function(){return T._k},R2:function(){return y.R2},p0:function(){return Os},dY:function(){return l.dY},i0:function(){return ao},nK:function(){return Gs.nK},Aw:function(){return Gs.Aw},$G:function(){return Gs.$G},wM:function(){return x.w},DU:function(){return Bi},iX:function(){return kt.iX},w9:function(){return _o},wY:function(){return Io},JS:function(){return ue.J},BI:function(){return Hr},oF:function(){return F.o},rs:function(){return j.rs},Km:function(){return po},YY:function(){return kt.YY}});var n=i(89262),r=i(22451),o=i(40898),a=i(80538),s=i(65340),l=i(54981),A=i(96001);function c(){try{return"function"==typeof ResizeObserver&&"function"==typeof ResizeObserver.prototype.observe}catch(t){return!1}}var h=i(60736),d=i(62022);class u extends s.f{constructor(){super(...arguments),this.tag="UiAtom",this.boundingRectTimer=null,this.loadedTimeoutClock=null}addEvents(){this.rootPlayer.on(a.p.PLAYER_MEDIA_CHANGED,(()=>{c()&&(this.removeResizeObserver(),this.addResizeObserver())}))}addReactions(){const{uiStore:t}=this.rootStore;this.dc.mainChanged=(0,r.U5)((()=>t.state.mainScreen),(e=>{this.resize(!1,!1),this.rootPlayer.emit(o.t.Player_Statue_Changed,new CustomEvent(o.t.Player_Statue_Changed,{detail:{mainTrigger:!0,sideTrigger:null,mainScreen:e,sideScreen:t.state.sideScreen}}))})),this.dc.sideChanged=(0,r.U5)((()=>t.state.sideScreen),(e=>{this.resize(!1,!1),this.rootPlayer.emit(o.t.Player_Statue_Changed,new CustomEvent(o.t.Player_Statue_Changed,{detail:{mainTrigger:null,sideTrigger:!0,mainScreen:t.state.mainScreen,sideScreen:e}}))})),this.dc.isLoaded=(0,r.U5)((()=>this.rootStore.isLoaded),(t=>{queueMicrotask((()=>{t?this.rootPlayer.emit(o.t.Player_Leave_Loading,new CustomEvent(o.t.Player_Leave_Loading)):this.rootPlayer.emit(o.t.Player_Enter_Loading,new CustomEvent(o.t.Player_Enter_Loading))}))}),{fireImmediately:!0}),this.dc.containerResize=(0,r.U5)((()=>({w:t.state.containerWidth,h:t.state.containerHeight})),(()=>{this.rootPlayer.emit(o.t.Player_Container_Resize,new CustomEvent(o.t.Player_Container_Resize))})),
this.dc.videoNodeResize=(0,r.U5)((()=>({w:t.state.videoNodeWidth,h:t.state.videoNodeHeight})),(()=>{this.rootPlayer.emit(o.t.Media_Element_Resize,new CustomEvent(o.t.Media_Element_Resize))})),this.dc.isFirstLoadEnded=(0,r.gx)((()=>this.rootStore.isLoadEnded),(()=>{c()?this.addResizeObserver():this.resizeEventsDisposer=this.addResizeEvents(),this.resize(!0,!0)}))}startLoadChecker(t){this.stopLoadChecker();this.loadedTimeoutClock=new h.eF(((e,i)=>{i>=e&&(this.log.w("[LoadChecker]","已超时","强制解除加载状态"),t&&t())}),3e3,500),this.dp.loadChecker&&this.dp.loadChecker(),this.dp.loadChecker=(0,r.EH)((()=>{this.rootStore.pageHidden?this.loadedTimeoutClock&&this.loadedTimeoutClock.suspend():this.loadedTimeoutClock&&this.loadedTimeoutClock.resume()}))}stopLoadChecker(){this.dp.loadChecker&&this.dp.loadChecker(),this.loadedTimeoutClock&&(this.loadedTimeoutClock.abort(),this.loadedTimeoutClock=null)}boundingRectHandler(){const t={},e=this.nodes.container,i=this.nodes.videoArea,{mediaStore:n,uiStore:r}=this.rootStore;t.videoNodeWidth=Math.round(n.video.offsetWidth),t.videoNodeHeight=Math.round(n.video.offsetHeight),i&&(t.videoAreaWidth=Math.round(i.offsetWidth),t.videoAreaHeight=Math.round(i.offsetHeight)),e&&(t.containerWidth=Math.round(e.offsetWidth),t.containerHeight=Math.round(e.offsetHeight)),r.setState(t)}addResizeEvents(){const t=(0,d.Z)((()=>this.resize()),150);return t(),this.rootPlayer.window.addEventListener("resize",t),()=>{this.rootPlayer.window.removeEventListener("resize",t),t.cancel()}}removeResizeEvents(){"function"==typeof this.resizeEventsDisposer&&this.resizeEventsDisposer()}addResizeObserver(){const t=this.nodes.container,e=this.nodes.videoArea,{mediaStore:i,uiStore:n}=this.rootStore,r=i.video;this.resizeObserver=new ResizeObserver(((i,o)=>{const a={};for(const n of i){const i=n.contentRect;if(i){const o=Math.round(i.width),s=Math.round(i.height);switch(n.target){case t:a.containerWidth=o,a.containerHeight=s;break;case e:a.videoAreaWidth=o,a.videoAreaHeight=s;break;case r:a.videoNodeWidth=o,a.videoNodeHeight=s}}}n.setState(a)})),this.resizeObserver.observe(t,{box:"border-box"}),this.resizeObserver.observe(e,{box:"border-box"}),this.resizeObserver.observe(r,{box:"border-box"})}removeResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect()}resize(t,e){t?e?this.boundingRectHandler():(cancelAnimationFrame(this.boundingRectTimer),this.boundingRectTimer=requestAnimationFrame((()=>this.boundingRectHandler()))):c()||this.resize(!0,e)}onDisconnect(){super.onDisconnect(),cancelAnimationFrame(this.boundingRectTimer),this.stopLoadChecker(),this.removeResizeEvents(),this.removeResizeObserver()}}var p=Object.defineProperty,g=Object.getOwnPropertyDescriptor,f=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?g(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&p(e,i,o),o};class m extends s.u{constructor(t){super(t),this.tag="UiStore",(0,r.rC)(this),this.uiAtom=new u(t)}get defaultState(){return{isLoaded:!1,isLoadTimeout:!1,kind:l.HR.Ugc,mainScreen:l.dY.Normal,sideScreen:null,pipWindowWidth:0,pipWindowHeight:0,videoNodeWidth:0,videoNodeHeight:0,videoAreaWidth:0,videoAreaHeight:0,containerWidth:0,containerHeight:0,mouseClientX:0,mouseClientY:0,miniScreenRight:84,miniScreenBottom:48}}get isTinyView(){return!this.configStore.isChannel(l.u5.Gamecenter)&&!this.configStore.isChannel(l.u5.Mini_Site)&&(null==this.state.sideScreen&&this.state.mainScreen===l.dY.Mini||(this.configStore.embeddedEnv?this.embedView===A.pp.Tiny:this.state.containerWidth<=480||this.state.containerHeight<=320))}get isFullView(){return this.state.sideScreen===l.dY.Full||this.state.mainScreen===l.dY.Web}get embedView(){return this.state.containerWidth<A.vd.Tiny?A.pp.Tiny:this.state.containerWidth<A.vd.Small?A.pp.minorSmall:this.state.containerWidth<A.vd.Normal?A.pp.Small:this.state.containerWidth<A.vd.Big?A.pp.Normal:A.pp.Big}get hasBlackGap(){return this.portStore.getScreenKind()===l.dY.Normal&&!this.settingStore.state.hideBlackGap}get screenKind(){return this.portStore.getScreenKind()}get isShowCtrlButtons(){const t=this.embedView,e=this.danmakuStore.state.isHideInput,i=this.state.videoAreaWidth;return!(t<=A.pp.minorSmall)&&!(!e&&i<900&&t===A.pp.Normal)}get kind(){return this.state.kind}onMount(){super.onMount(),this.uiAtom.addEvents(),this.uiAtom.addReactions(),this.addEvents()}onCommitted(){super.onCommitted(),this.uiAtom.startLoadChecker((()=>{this.setState({isLoadTimeout:!0})}))}complete(){this.uiAtom.stopLoadChecker(),this.setState({isLoaded:!0})}resize(t,e){this.uiAtom.resize(t,e)}addEvents(){this.rootPlayer.window.addEventListener("mousemove",this.onMousemove)}onMousemove(t){this.setState({mouseClientX:t.clientX||0,mouseClientY:t.clientY||0})}onDispose(){super.onDispose({kind:1,mainScreen:1,sideScreen:1,pipWindowWidth:1,pipWindowHeight:1,videoNodeWidth:1,videoNodeHeight:1,videoAreaWidth:1,videoAreaHeight:1,containerWidth:1,containerHeight:1,mouseClientX:1,mouseClientY:1,miniScreenRight:1,miniScreenBottom:1})}onDisconnect(){super.onDisconnect(),this.rootPlayer.window.removeEventListener("mousemove",this.onMousemove)}}f([r.Fl],m.prototype,"isTinyView",1),f([r.Fl],m.prototype,"isFullView",1),f([r.Fl],m.prototype,"embedView",1),f([r.Fl],m.prototype,"hasBlackGap",1),f([r.Fl],m.prototype,"screenKind",1),f([r.Fl],m.prototype,"isShowCtrlButtons",1),f([n.ZP],m.prototype,"onMousemove",1);var y=i(65610),b=i(4727),v=i(2821),E=i(28799),I=i(33890);var C=i(83370);class B extends s.f{constructor(){super(...arguments),this.tag="MediaAtom",this.autoplayId=1,this.autoplayIdUsed=0}copyElementProps(t,e){const i=[()=>{t.style.cssText&&(e.style.cssText=t.style.cssText)}];["controls","autoPictureInPicture","disablePictureInPicture"].forEach((i=>(i=>{i in t&&e[i]!==t[i]&&(e[i]=t[i])})(i))),i.forEach((t=>t()))}checkTargetTimeInBufferedRange(t){const e=this.getBufferRange();if(!e)return!1;return e[0]<=t&&t<=e[1]}getBufferRange(t){const e=this.rootStore.mediaStore.video,i=e.buffered,n=e.currentTime;if(i&&i.length){if(t)return[i.start(i.length-1),i.end(i.length-1)];{let t=0,e=1/0;for(let r=0;r<i.length;r++){const o=i.start(r),a=i.end(r);if(o<=n&&a>=n)return[i.start(r),i.end(r)];{const i=Math.min(Math.abs(n-o),Math.abs(n-a));e>i&&(t=r,e=i)}}return[i.start(t),i.end(t)]}}return[0,0]}gotoFirstTime(){if(this.isFirstPlayForbidden())return;const{mediaStore:t,configStore:e,mpdStore:i}=this.rootStore;if(!t.state.tExhausted){const n=e.t,r=t.video.duration,o=i.lastWatchSecond;n>0&&n<r?(this.log.i("[Config.t]",`Seek to ${n}s`),t.internalSeek(n)):o&&!e.fromLocalCache&&(this.log.i("[History]",`Seek to ${o}s`),t.internalSeek(o),t.setState({isLastWatchSeeked:!0})),t.setState({tExhausted:!0})}}startFirstPlay(t,e){const{configStore:i,uiStore:n,portStore:r,mediaStore:o,episodeStore:a}=this.rootStore;if(!i.fromDid&&(this.autoplayId!==this.autoplayIdUsed||t))if(this.isFirstPlayForbidden())n.isFullView&&r.reqStatue(null);else{if(t&&i.setState({ips:v.uw.Unset}),!o.state.autoplayExhausted&&(o.autoplay||e)){const t=!!a.isFirst;this.firstPlayback(this.autoplayId,t)}this.autoplayIdUsed=this.autoplayId,this.log.i("[StartFirstPlay]",`isManual:${!!t}`)}}isFirstPlayForbidden(){const{uiStore:t,mpdStore:e,configStore:i}=this.rootStore,n=t.kind,r=e.state.playUrlCode;if(i.fromDid||i.isCreator())return!0;switch(n){case l.HR.Ugc:return r===C.Vp.Charing_NeedPay||r===C.Vp.Old_Charing_NeedPay;case l.HR.Pgc:return r===C.Vp.Uni_NeedPay;case l.HR.Pugv:return r===C.Vp.Pugv_NeedPay;default:return!1}}firstPlayback(t,e,i){const{mediaStore:n,portStore:r}=this.rootStore,a=`[autoplay:${t}]`,s=e=>{const i=t!==this.autoplayId;return i&&this.log.w(a,e,"Inconsistent"),i},l=()=>{i&&n.video.muted&&(this.log.i(a,"reset HTMLMediaElement.muted"),n.video.muted=!1)};this.log.i(a,"start"),r.play({initiator:"Initial:Autoplay"}).then((()=>{s("done")||(this.log.i(a,"done"),n.setState({autoplayExhausted:!0,autoplayPlanB:!!i}))})).catch((i=>{if(!i)return this.log.w(a,"Unknown err"),void l();if(s("fail"))l();else{if(e&&!n.video.muted)return this.log.i(a,"fallback"),n.video.muted=!0,this.firstPlayback(t,!1,!0);if(l(),this.log.w(a,"fail",i.name,i.message),"NotAllowedError"===(i&&i.name))n.setState({autoplayNotAllowed:!0}),
this.track.e("browser_forbid_autoplay"),this.rootPlayer.emit(o.t.Media_Autoplay_Not_Allowed,new CustomEvent(o.t.Media_Autoplay_Not_Allowed))}}))}onDispose(){super.onDispose(),this.autoplayId++}}var w=i(51102),x=i(16466),Q=i(27615);class S extends s.f{constructor(){super(...arguments),this.tag="BufferAtom",this.pageFirstVisible=!1,this.stuckDetail={timer:-1,previousTime:-1},this.bufferingDetail={timer:-1,interval:250,previousTime:-1},this.laggingDetail={timer:-1,interval:250,previousTime:-1}}hackLongStuck(t,e){const{mediaStore:i,uiStore:n,portStore:r,patchAdvStore:o,errorStore:s,kernelStore:l}=this.rootStore;if(e&&(this.stuckDetail.previousTime=-1),!t)return clearTimeout(this.stuckDetail.timer),void(this.stuckDetail.timer=null);i.video&&n.state.isLoaded&&(clearTimeout(this.stuckDetail.timer),this.stuckDetail.timer=window.setTimeout((()=>{const t=r.getCurrentTime(),e=this.stuckDetail.previousTime;if(e!==t||0===e){let e=t+.5;if(w.X.safari.alike&&t<1)e=1;else{const n=i.video.buffered;n&&n.length&&t<n.start(0)&&(e=n.start(0))}if(this.log.w("[Stuck:Rescue]",`ct:${t},st:${e}`),o.hasValidAdv){if(i.video.ended||s.state.initError||s.state.kernelError||l.state.srcSwitching)return;r.seek(e,{initiator:"Buffering:Seek"})}else i.internalSeek(e);this.stuckDetail.previousTime=r.getCurrentTime(),this.track.o(x.w.O_Stuck_Rescue,{ct:t,st:e})}else this.rootPlayer.emit(a.p.PLAYER_PLAYBACK_LAG)}),5e3))}checkBufferStatus(t,e){const{mediaStore:i}=this.rootStore;if(e&&(this.bufferingDetail.previousTime=-1),!t)return clearInterval(this.bufferingDetail.timer),void i.setState({buffering:!1});clearInterval(this.bufferingDetail.timer),this.bufferingDetail.timer=window.setInterval((()=>{const t=i.video;if(t){const e=this.bufferingDetail.previousTime,n=!(t.ended||t.paused||t.error)&&e===t.currentTime;i.state.buffering!==n&&i.setState({buffering:!!n}),n||(this.bufferingDetail.previousTime=t.currentTime)}}),this.bufferingDetail.interval)}checkLaggingStatus(t,e){const{mediaStore:i,uiStore:n,errorStore:r}=this.rootStore,o=()=>{clearInterval(this.laggingDetail.timer),this.laggingDetail.timer=-1};if((null==e?void 0:e.resetPreviousTime)&&(this.laggingDetail.previousTime=-1),!t)return o(),(null==e?void 0:e.fromSeeking)||i.setState({lagging:!1}),void this.rootPlayer.emit(a.p.PLAYER_LAG_FRAME,{isLagging:i.state.lagging,isRunning:!1});{const t=i.video;if(!t)return;if(!this.pageFirstVisible)return;if(!n.state.isLoaded)return;if(t.paused||t.seeking)return;if(isNaN(t.currentTime)||isNaN(t.duration))return;if(t.readyState===Q.VH.HAVE_NOTHING)return;if(t.networkState===Q.Cn.NETWORK_EMPTY)return;if(t.networkState===Q.Cn.NETWORK_NO_SOURCE)return}this.laggingDetail.timer>-1||(o(),this.laggingDetail.timer=window.setInterval((()=>{const t=i.video;if(t){const e=this.laggingDetail.previousTime,n=!(t.ended||t.paused||t.error),o=!r.state.kernelError,s=n&&o&&e===t.currentTime;i.state.lagging!==s&&i.setState({lagging:!!s}),s||(this.laggingDetail.previousTime=t.currentTime),this.rootPlayer.emit(a.p.PLAYER_LAG_FRAME,{isLagging:s,isRunning:!0})}}),this.laggingDetail.interval))}onDispose(){super.onDispose(),this.hackLongStuck(!1,!0),this.checkBufferStatus(!1,!0),this.checkLaggingStatus(!1,{resetPreviousTime:!0})}}class k extends s.f{constructor(){super(...arguments),this.tag="StuckAtom",this.latestSeekedTime=NaN,this.extBufferingInfo={}}cleanAfterDispose(){this.latestSeekedTime=NaN,this.extBufferingInfo={}}addEvents(){const{mediaStore:t,portStore:e,kernelStore:i}=this.rootStore;this.rootPlayer.on(o.t.Player_Dispose,(()=>this.cleanAfterDispose()),1),this.rootPlayer.on(a.p.PLAYER_PLAYBACK_LAG,(()=>{t.setState({loadLagTime:Date.now()})})).on(a.p.PLAYER_PLAYBACK_LAG,(()=>{let n=NaN,r=NaN,o="";const a=t.state.bufferedTime,s=e.getCurrentTime(),l=i.dashKernel;l&&(n=l.getBufferLength("video"),r=l.getBufferLength("audio"),"function"==typeof l.getNextFragmentHistoryInfo&&(o=l.getNextFragmentHistoryInfo())),this.track.o(x.w.O_Web_LoadLag,{ct:s,bt:a,vbl:n,abl:r,msg:o})})).on(a.p.MEDIA_TIMEUPDATE,(()=>{t.state.loadLagTime&&(this.track.o(x.w.O_Web_LoadLag_End,{val:Date.now()-t.state.loadLagTime}),t.setState({loadLagTime:0}))})),this.rootPlayer.on(a.p.PLAYER_LAG_FRAME,(e=>{const n=t.video,r=n.currentTime;if(e.isLagging){if(t.setState({stalled:!0}),!t.state.bufferStartTime){const e={},o=i.dashKernel,a=o&&o.getBufferingInfo(!1),s=a&&a.type,l=t.state.bufferedTime,A=!(n.error||n.seeking||n.ended||n.paused);if(e.obLen=l,e.ocTime=r,o&&Object.assign(e,{vbl:o.getBufferLength("video"),abl:o.getBufferLength("audio"),spd:o.getNetworkActivity()},o.getBufferingInfo()),this.extBufferingInfo=e,this.track.o(x.w.O_Start_Load,e),r<l-3?t.setState({lagLoad:!0}):"161"===s?t.setState({headLoad:!0}):o&&!e.type&&t.setState({nullLoad:!0}),A)switch(s){case"142":case"141":this.trySkipDashGap(a);break;default:this.trySkipMediaGap()}t.setState({bufferStartTime:Date.now()})}}else e.isRunning?t.setState({previousTime:r}):t.setState({previousTime:r,stalled:!1})})).on(a.p.MEDIA_SEEKED,(()=>{this.latestSeekedTime=t.video.currentTime,t.setState({seekLoad:!1})})).on(a.p.MEDIA_TIMEUPDATE,(()=>{const e=t.video.currentTime,n=t.state.previousTime,r=!isNaN(e)&&!isNaN(n)&&n!==e;if(t.state.stalled&&r){const n=Date.now(),r=t.state.bufferStartTime;if(r&&r<n){this.extBufferingInfo.bufferTime=n-r;const o=e-this.latestSeekedTime;o>0&&o<.2&&(t.setState({seekLoad:!0}),this.extBufferingInfo.latestSeekedTime=this.latestSeekedTime,this.extBufferingInfo.videoTime=e,this.extBufferingInfo.delta=o,this.extBufferingInfo.ccType="seeked_hack"),this.track.o(t.state.seekLoad?x.w.O_Seek_End_Load:t.state.lagLoad?x.w.O_Lag_End_Load:t.state.headLoad?x.w.O_Head_End_Load:t.state.nullLoad?x.w.O_Null_End_Load:x.w.O_End_Load,this.extBufferingInfo,{exParam:i.serviceModule}),this.extBufferingInfo={}}}t.setState({stalled:!1,lagLoad:!1,seekLoad:!1,headLoad:!1,nullLoad:!1,bufferStartTime:0})}))}trySkipDashGap(t){const{mediaStore:e}=this.rootStore,i=e.video;try{const[n,r]=t.gap.split("-").map(Number),o=.1,a=Math.max(i.currentTime,t.cTime),s=Math.max(i.currentTime,r)+o;r-n>0&&(this.log.w("[DashGap]",`${a};${n},${r}`),this.track.o(x.w.O_Video_Gap,{ct:a,st:s,end:n,nextStart:r,type:+t.type})),isNaN(s)?this.trySkipMediaGap():s>a&&s!==e.state.prevSeekTime&&(this.log.i("[SkipDashGap]",`ct:${a},st:${s}`),e.setState({prevSeekTime:s}),e.internalSeek(s))}catch(t){0,this.trySkipMediaGap()}}trySkipMediaGap(){const{mediaStore:t}=this.rootStore,e=t.video,i=e.currentTime;if(e.buffered&&e.buffered.length>1)for(let n=0;n<e.buffered.length-1;n++){let r=0;const o=e.buffered.start(n),a=e.buffered.end(n),s=e.buffered.start(n+1);e.buffered.end(n+1);o<i&&a>=i-4&&s>i-4&&s-a<4&&(r=Math.max(s,i),this.log.w("[MediaGap]",`${i};${a},${s}`),this.track.o(x.w.O_Video_Gap,{ct:i,st:r,end:a,nextStart:s,type:0})),r&&r!==t.state.prevSeekTime&&(this.log.i("[SkipGap]",`ct:${i},st:${r}`),t.setState({prevSeekTime:r}),t.internalSeek(r))}}}var D=Object.defineProperty,_=Object.getOwnPropertyDescriptor,R=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?_(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&D(e,i,o),o};class M extends s.u{constructor(t){super(t),this.tag="MediaStore",this.ifReqId=null,this.ifTimer=null,this.modernResize=!1,this.backNormalStartTime=null,this.backNormalTimer=null,this.isVideoDisabledByBackNormal=!1,this.isAudioOnlyByStartup=!1,(0,r.rC)(this),this.mediaAtom=new B(t),this.bufferAtom=new S(t),this.stuckAtom=new k(t);const e=this.element=(0,E.Y)(),i=this.nodes.videoWrap;e.crossOrigin="anonymous",this.rootPlayer.hasFeature("noPip")&&(e.disablePictureInPicture=!0),i&&!e.parentElement&&i.appendChild(e)}get defaultState(){return{ended:!1,paused:!0,duration:NaN,remoteDuration:NaN,currentTime:0,progressTime:0,bufferedTime:0,aBufferLength:null,vBufferLength:null,videoWidth:0,videoHeight:0,seeking:!1,lagging:!1,buffering:!1,isLoadStart:!1,isMetadataLoaded:!1,isFirstFrame:!1,isFirstCanplay:!1,isLastWatchSeeked:!1,tExhausted:!1,autoplayExhausted:!1,autoplayPlanB:!1,autoplayNotAllowed:!1,firstPlay:0,firstIdleFrame:0,stalled:!1,lagLoad:!1,seekLoad:!1,headLoad:!1,nullLoad:!1,bufferStartTime:0,previousTime:0,prevSeekTime:0,loadLagTime:0,lastVideoFrameDataUrl:null}}get aspectRatio(){
return this.state.videoWidth&&this.state.videoHeight?this.state.videoWidth/this.state.videoHeight:0}get autoplay(){if(this.rootPlayer.hasFeature("noAutoplay"))return!1;switch(this.configStore.state.ips){case v.uw.Pause:return!1;case v.uw.Play:return!0;default:return!this.episodeStore.isFirst||this.settingStore.state.autoplay}}get video(){return this.element}addEvents(){this.rootPlayer.on(o.t.Player_DurationChange,(()=>{this.patchAdvStore.hasValidAdv&&(this.patchAdvStore.state.videoList[this.patchAdvStore.state.index].timelength=1e3*Math.ceil(this.mediaStore.video.duration)),this.setState({duration:this.portStore.getDuration(),remoteDuration:this.portStore.getDuration(!0)})})).on(o.t.Player_TimeUpdate,(()=>{this.setState({currentTime:this.portStore.getCurrentTime()})})).on(o.t.Player_Progress,(()=>{this.setState({bufferedTime:this.mediaAtom.getBufferRange()[1]})})).on(o.t.Player_ProgressBar_Change,(t=>{this.setState({progressTime:t.detail.progressTime})})).on(o.t.Player_Quality_Rendered,(t=>{if(this.modernResize)return;if(t.detail&&"video"!==t.detail.mediaType)return;const e=this.element.videoWidth,i=this.element.videoHeight;e&&i&&this.setState({videoWidth:e,videoHeight:i})})).on(o.t.Player_PatchSwitch,(t=>{if(t&&t.detail){const{detail:{stage:e}}=t;e===l._1.START&&(this.bufferAtom.checkBufferStatus(!1),this.bufferAtom.checkLaggingStatus(!1))}})),this.rootPlayer.on(o.t.Player_Play,this.leavePlayerEndedHandler).on(o.t.Player_TimeUpdate,this.leavePlayerEndedHandler).on(o.t.Player_Seeking,this.leavePlayerEndedHandler)}leavePlayerEndedHandler(){this.portStore.isEnded(!0)||this.setState({ended:!1})}internalSeek(t){const e=this.video;this.log.i("[internalSeek]",`targetTime:${t},duration:${e.duration}`),this.rootPlayer.emit(a.p.PLAYER_BEFORE_SEEKING,e.currentTime,t),this.kernelStore.baseAgent?this.kernelStore.baseAgent.seek(t):e.currentTime=t}handleBackNormalStateChange(t){if(t){this.backNormalStartTime=performance.now(),this.clearBackNormalTimer();const t=this.configStore.audioTime;if(!t)return void this.log.i("audioTime is 0, skip audio-only mode");this.log.i("audioTime timer start, delay:",t,"s");const e=1e3*t;this.backNormalTimer=window.setTimeout((()=>{if(null!==this.backNormalStartTime&&!this.isVideoDisabledByBackNormal&&!this.video.paused){const t=this.state.duration;if(t>0&&t<60)return this.log.i("skip audio-only mode: duration < 60s",t),void this.track.e("skip_audio_only_mode",{reason:"short_video",duration:t});const e=this.state.bufferedTime;if(!this.settingStore.state.loop&&e>0&&t>0&&t-e<1)return this.log.i("skip audio-only mode: buffer near end",t,e),void this.track.e("skip_audio_only_mode",{reason:"buffer_near_end",duration:t,bufferedTime:e});const i=(performance.now()-this.backNormalStartTime)/1e3;this.track.e("switch_to_audio_mode",{realChangeTime:Math.round(1e3*i)/1e3,audioTime:this.configStore.audioTime,qn:this.qualityStore.realQ});const n=this.kernelStore.baseAgent;n&&n.disableVideo(!0),this.isVideoDisabledByBackNormal=!0,this.clearBackNormalTimer()}}),e)}else{if(this.clearBackNormalTimer(),this.isVideoDisabledByBackNormal){const t=this.backNormalStartTime?performance.now()-this.backNormalStartTime:0,e=t-1e3*this.configStore.audioTime;this.track.e("switch_to_video_mode",{background_duration:Math.round(t)/1e3,audio_play_duration:this.isAudioOnlyByStartup?Math.round(t)/1e3:Math.round(e)/1e3,qn:this.qualityStore.realQ,audio_only_startup:this.isAudioOnlyByStartup});const i=this.kernelStore.baseAgent;i&&i.enableVideo(!0),this.isVideoDisabledByBackNormal=!1,this.isAudioOnlyByStartup=!1}this.backNormalStartTime=null}}clearBackNormalTimer(){null!==this.backNormalTimer&&(window.clearTimeout(this.backNormalTimer),this.backNormalTimer=null)}onStateCreated(){super.onStateCreated(),this.addEvents(),this.addMediaEvents()}onCommitted(){super.onCommitted(),this.dp.backNormalHandler=(0,r.U5)((()=>{const t=this.rootStore.pageHidden,e=this.uiStore.state.sideScreen===l.dY.Pip;return{isBackNormal:t&&!e}}),(t=>{this.handleBackNormalStateChange(t.isBackNormal)}),{fireImmediately:!0})}onMount(){super.onMount(),this.stuckAtom.addEvents(),this.dc.playingAndWaiting=(0,r.U5)((()=>({paused:this.state.paused,waiting:this.state.buffering})),(t=>{queueMicrotask((()=>{t.paused||(t.waiting?this.rootPlayer.emit(a.p.MEDIA_WAITING):this.rootPlayer.emit(a.p.MEDIA_PLAYING))}))}),{fireImmediately:!0}),this.dc.buffering=(0,r.U5)((()=>this.state.buffering),(t=>{this.checkBufferLength("Buffering",t),this.bufferAtom.hackLongStuck(t)})),this.dc.retrySource=(0,r.U5)((()=>this.kernelStore.retrySource),(t=>this.bufferAtom.checkLaggingStatus(!t))),this.dc.pageFirstVisible=(0,r.gx)((()=>!this.rootStore.pageHidden),(()=>{this.bufferAtom.pageFirstVisible=!0,this.bufferAtom.checkLaggingStatus(!0)})),this.rootPlayer.on(a.p.ERROR_DASH_KERNEL,(()=>{null!==this.backNormalTimer&&this.clearBackNormalTimer()}))}replaceElement(t){this.element.parentElement?(this.rootPlayer.emit(a.p.PLAYER_BEFORE_MEDIA_REPLACE,t),this.removeMediaEvents(),this.mediaAtom.copyElementProps(this.element,t),t.classList.remove(y.cx),t.defaultPlaybackRate=this.element.defaultPlaybackRate,t.playbackRate=this.element.playbackRate,t.volume=this.element.volume,t.muted=this.element.muted,this.element.muted=!0,this.element.parentElement.removeChild(this.element),this.wmpStore.destroyWasmPlayer(this.element),this.element=t,this.addMediaEvents(),this.log.i("[replaceElement]","HTMLMediaElement has been changed")):this.log.e("[replaceElement]","parentElement is null")}startFirstPlay(t,e){return this.mediaAtom.startFirstPlay(t,e)}checkTargetTimeInBufferedRange(t){return this.mediaAtom.checkTargetTimeInBufferedRange(t)}startIdleFrame(){if(this.ifTimer)return;if(this.state.firstIdleFrame)return;const t=this.episodeStore.isFirst?500:50,e=Date.now(),i=window.requestIdleCallback,n=()=>{const t=Date.now(),i=t-e;this.clearIdleFrame(),this.log.i("[IdleFrame]",`delay:${i}ms`),this.state.firstIdleFrame||this.setState({firstIdleFrame:t}),this.rootPlayer.emit(o.t.Player_Idle_Frame,new CustomEvent(o.t.Player_Idle_Frame))};this.ifTimer="function"==typeof i?window.setTimeout((()=>{this.ifReqId=i(n,{timeout:t})}),1):window.setTimeout((()=>n()),t)}clearIdleFrame(){const t=window.cancelIdleCallback;this.ifReqId&&"function"==typeof t&&(t(this.ifReqId),this.ifReqId=null),this.ifTimer&&(clearTimeout(this.ifTimer),this.ifTimer=null)}isSameProgressTime(){return!this.patchAdvStore.hasValidAdv&&this.video.currentTime===this.state.progressTime}checkBufferLength(t,e){const i=this.state.aBufferLength,n=this.state.vBufferLength;if(null==i||null==n)return;const r=this.video.currentTime;(e||(!i||!n))&&this.log.i(`[CBL:${t}]`,`${r};${i},${n}`)}addMediaEvents(){this.video&&(this.video.addEventListener("loadstart",this.onLoadStart),this.video.addEventListener("loadedmetadata",this.onLoadedmetadata),this.video.addEventListener("loadeddata",this.onLoadedData),this.video.addEventListener("canplay",this.onCanplay),this.video.addEventListener("error",this.onError),this.video.addEventListener("abort",this.onAbort),this.video.addEventListener("emptied",this.onEmptied),this.video.addEventListener("seeking",this.onSeeking),this.video.addEventListener("seeked",this.onSeeked),this.video.addEventListener("ended",this.onEnded),this.video.addEventListener("play",this.onPlay),this.video.addEventListener("pause",this.onPause),this.video.addEventListener("stalled",this.onStalled),this.video.addEventListener("progress",this.onProgress),this.video.addEventListener("suspend",this.onSuspend),this.video.addEventListener("timeupdate",this.onTimeUpdate),this.video.addEventListener("ratechange",this.onRateChange),this.video.addEventListener("volumechange",this.onVolumeChange),this.video.addEventListener("durationchange",this.onDurationChange),this.video.addEventListener("performance",this.onWasmPlayerFallback),this.video.addEventListener("resize",this.onResize),this.video.addEventListener("playing",this.onPlaceholder),this.video.addEventListener("waiting",this.onPlaceholder))}removeMediaEvents(){this.video&&(this.video.removeEventListener("loadstart",this.onLoadStart),this.video.removeEventListener("loadedmetadata",this.onLoadedmetadata),
this.video.removeEventListener("loadeddata",this.onLoadedData),this.video.removeEventListener("canplay",this.onCanplay),this.video.removeEventListener("error",this.onError),this.video.removeEventListener("abort",this.onAbort),this.video.removeEventListener("emptied",this.onEmptied),this.video.removeEventListener("seeking",this.onSeeking),this.video.removeEventListener("seeked",this.onSeeked),this.video.removeEventListener("ended",this.onEnded),this.video.removeEventListener("play",this.onPlay),this.video.removeEventListener("pause",this.onPause),this.video.removeEventListener("stalled",this.onStalled),this.video.removeEventListener("progress",this.onProgress),this.video.removeEventListener("suspend",this.onSuspend),this.video.removeEventListener("timeupdate",this.onTimeUpdate),this.video.removeEventListener("ratechange",this.onRateChange),this.video.removeEventListener("volumechange",this.onVolumeChange),this.video.removeEventListener("durationchange",this.onDurationChange),this.video.removeEventListener("performance",this.onWasmPlayerFallback),this.video.removeEventListener("resize",this.onResize),this.video.removeEventListener("playing",this.onPlaceholder),this.video.removeEventListener("waiting",this.onPlaceholder))}onLoadStart(){this.rootStore.stageAtom.set(I.y.Media_LoadStart),this.log.i("LoadStart"),this.setState({isLoadStart:!0}),this.bufferAtom.checkBufferStatus(!1),this.bufferAtom.checkLaggingStatus(!1),this.rootPlayer.emit(a.p.MEDIA_LOADSTART)}onLoadedmetadata(){this.rootStore.stageAtom.set(I.y.Media_Metadata),this.log.i("Loadedmetadata"),this.setState({isMetadataLoaded:!0}),this.mediaAtom.gotoFirstTime(),this.rootPlayer.emit(a.p.MEDIA_LOADEDMETADATA)}onLoadedData(){this.rootStore.stageAtom.set(I.y.Media_FirstFrame),this.log.i("LoadedData",this.configStore.session),this.setState({isFirstFrame:!0}),this.rootPlayer.emit(a.p.MEDIA_LOADEDDATA)}onCanplay(){if(this.state.isLoadStart||this.state.isMetadataLoaded){if(this.rootStore.stageAtom.set(I.y.Media_Canplay),this.setState({isFirstCanplay:!0}),this.uiStore.complete(),this.mediaAtom.startFirstPlay(),this.bufferAtom.checkLaggingStatus(!0),!(this.modernResize||this.state.videoWidth&&this.state.videoHeight)){const t=this.element.videoWidth,e=this.element.videoHeight;t&&e&&this.setState({videoWidth:t,videoHeight:e})}this.rootPlayer.emit(a.p.MEDIA_CANPLAY),this.startIdleFrame()}}onError(t){this.bufferAtom.checkLaggingStatus(!1),this.rootPlayer.emit(a.p.MEDIA_ERROR)}onAbort(){this.bufferAtom.checkLaggingStatus(!1),this.rootPlayer.emit(a.p.MEDIA_ABORT)}onEmptied(){this.bufferAtom.checkLaggingStatus(!1),this.rootPlayer.emit(a.p.MEDIA_EMPTIED)}onSeeking(){this.setState({seeking:!0}),this.bufferAtom.checkLaggingStatus(!1,{fromSeeking:!0}),this.rootPlayer.emit(a.p.MEDIA_SEEKING),!this.isSameProgressTime()&&this.video.currentTime>.1&&this.rootPlayer.emit(o.t.Player_ProgressBar_Change,new CustomEvent(o.t.Player_ProgressBar_Change,{detail:{progressTime:this.patchAdvStore.hasValidAdv?this.portStore.getCurrentTime():this.video.currentTime,initiator:l.hH.SeekingEvent}}))}onSeeked(){this.setState({seeking:!1}),this.bufferAtom.checkLaggingStatus(!0),this.rootPlayer.emit(a.p.MEDIA_SEEKED)}onStalled(){this.rootPlayer.emit(a.p.MEDIA_STALLED)}onProgress(){this.rootPlayer.emit(a.p.MEDIA_PROGRESS)}onSuspend(){this.rootPlayer.emit(a.p.MEDIA_SUSPEND)}onTimeUpdate(){this.checkBufferLength("Timeupdate"),this.rootPlayer.emit(a.p.MEDIA_TIMEUPDATE),!this.isSameProgressTime()&&this.video.currentTime>.1&&this.rootPlayer.emit(o.t.Player_ProgressBar_Change,new CustomEvent(o.t.Player_ProgressBar_Change,{detail:{progressTime:this.patchAdvStore.hasValidAdv?this.portStore.getCurrentTime():this.video.currentTime,initiator:l.hH.TimeupdateEvent}}))}onRateChange(){this.settingStore.setState({playbackRate:this.video.playbackRate}),this.rootPlayer.emit(a.p.MEDIA_RATECHANGE)}onVolumeChange(){this.settingStore.setState({muted:this.video.muted,volume:(0,b.F)(this.video.volume)}),this.rootPlayer.emit(a.p.MEDIA_VOLUMECHANGE)}onDurationChange(){this.rootPlayer.emit(a.p.MEDIA_DURATIONCHANGE)}onWasmPlayerFallback(){this.rootPlayer.emit(a.p.WASM_PLAYER_FALLBACK)}onEnded(){this.bufferAtom.checkBufferStatus(!1),this.bufferAtom.checkLaggingStatus(!1),this.patchAdvStore.hasLeftVideoToPlay()?this.rootPlayer.emit(a.p.PATCH_ADV_PLAY_ENDED):this.rootPlayer.emit(a.p.MEDIA_ENDED)}onPlay(){this.state.firstPlay||this.setState({firstPlay:Date.now()}),this.bufferAtom.checkBufferStatus(!0),this.bufferAtom.checkLaggingStatus(!0),this.rootPlayer.emit(a.p.MEDIA_PLAY)}onPause(){this.bufferAtom.checkBufferStatus(!1),this.bufferAtom.checkLaggingStatus(!1);const{srcSwitching:t}=this.kernelStore.state;t||this.patchAdvStore.hasLeftVideoToPlay()&&this.portStore.isEnded(!0)||this.rootPlayer.emit(a.p.MEDIA_PAUSE)}onResize(){if(this.modernResize||(this.modernResize=!0),!this.element)return;const t=this.element.videoWidth,e=this.element.videoHeight;t&&e&&this.setState({videoWidth:t,videoHeight:e})}onPlaceholder(){}get audioOnlyByStartup(){return this.isAudioOnlyByStartup}get isAudioOnlyMode(){return this.isVideoDisabledByBackNormal}markVideoDisabledByBackground(t=!1){this.isVideoDisabledByBackNormal=!0,this.isAudioOnlyByStartup=t}onDispose(){super.onDispose(),this.clearIdleFrame(),this.clearBackNormalTimer(),this.isVideoDisabledByBackNormal=!1,this.isAudioOnlyByStartup=!1}onDisconnect(){super.onDisconnect(),this.removeMediaEvents(),this.element&&this.element.parentElement&&this.element.parentElement.removeChild(this.element)}}R([r.Fl],M.prototype,"aspectRatio",1),R([n.ZP],M.prototype,"leavePlayerEndedHandler",1),R([n.ZP],M.prototype,"onLoadStart",1),R([n.ZP],M.prototype,"onLoadedmetadata",1),R([n.ZP],M.prototype,"onLoadedData",1),R([n.ZP],M.prototype,"onCanplay",1),R([n.ZP],M.prototype,"onError",1),R([n.ZP],M.prototype,"onAbort",1),R([n.ZP],M.prototype,"onEmptied",1),R([n.ZP],M.prototype,"onSeeking",1),R([n.ZP],M.prototype,"onSeeked",1),R([n.ZP],M.prototype,"onStalled",1),R([n.ZP],M.prototype,"onProgress",1),R([n.ZP],M.prototype,"onSuspend",1),R([n.ZP],M.prototype,"onTimeUpdate",1),R([n.ZP],M.prototype,"onRateChange",1),R([n.ZP],M.prototype,"onVolumeChange",1),R([n.ZP],M.prototype,"onDurationChange",1),R([n.ZP],M.prototype,"onWasmPlayerFallback",1),R([n.ZP],M.prototype,"onEnded",1),R([n.ZP],M.prototype,"onPlay",1),R([n.ZP],M.prototype,"onPause",1),R([n.ZP],M.prototype,"onResize",1),R([n.ZP],M.prototype,"onPlaceholder",1);var T=i(67320),F=i(51324),L=i(46671),N=i(64964),P=i(34889),U=i(98152);var O=function t(e,i,n,r,o,a){return(0,U.Z)(e)&&(0,U.Z)(i)&&(a.set(i,e),(0,P.Z)(e,i,void 0,t,a),a.delete(i)),e},G=(0,i(86053).Z)((function(t,e,i,n){(0,P.Z)(t,e,i,n)})),H=(0,N.Z)((function(t){return t.push(void 0,O),(0,L.Z)(G,void 0,t)})),V=i(85077);class Y{constructor(t){this.rootStore=t,this.isLoaded=!1,this.hasPendingSet=!1,this.rootPlayer=t.rootPlayer,this.rootPlayer.once(a.p.PLAYER_STORAGE_BUILD,(()=>this.onStorageBuild())).once(a.p.PLAYER_LOADED,(()=>this.onLoaded()))}get localData(){if(null==this.cachedLocalData){const t=(0,V.m)(this.storage,this.storageKey);this.cachedLocalData=H(t,this.defProfile)}return this.cachedLocalData}get log(){if(!this._cachedLog){const t=this.rootPlayer.log;this._cachedLog=this.tag?t.getLogger(this.tag):t}return this._cachedLog}onStorageBuild(){try{this.setStorageArea(),this.storageKey=this.rootStore.configStore.storageKey,this.available=this.checkAvailability()}catch(t){this.log.e(t&&t.message)}}onLoaded(){this.isLoaded=!0,this.hasPendingSet&&(this.hasPendingSet=!1,this.setStorageItem())}getSerializedLocalData(){return this.localData?JSON.stringify(this.localData):null}setStorageItem(){if(!this.isLoaded)return this.hasPendingSet=!0,null;try{return this.storage.setItem(this.storageKey,this.getSerializedLocalData()),!0}catch(t){return this.log.w(t&&t.message,t&&t.stack),!1}}checkAvailability(){try{const t="__storage_test__";this.storage.setItem(t,t);const e=this.storage.getItem(t)===t;return this.storage.removeItem(t),!e&&this.log.i("Storage is disabled"),e}catch(t){const e="An error occurred while detecting Storage",i=this.storage&&0!==this.storage.length;return t?this.log.w(e,t.code,t.name,t.message):this.log.w(e),
t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&i}}get(t){const e={},i=this.localData;if(null==t)Object.assign(e,i);else if("string"==typeof t||Array.isArray(t)){(Array.isArray(t)?t:[t]).forEach((t=>{e[t]=i[t]}))}else Object.keys(t).forEach((n=>{const r=i[n];null!=r?e[n]=r:t.hasOwnProperty(n)&&(e[n]=t[n])}));return e}set(t,e){return Object.keys(t).forEach((i=>{e?this.localData[i]=t[i]:this.localData[i]&&"object"==typeof this.localData[i]&&t[i]&&"object"==typeof t[i]?this.localData[i]=Object.assign(this.localData[i],t[i]):this.localData[i]=t[i]})),this.setStorageItem()}remove(t){return(Array.isArray(t)?t:[t]).forEach((t=>{this.localData.hasOwnProperty(t)&&delete this.localData[t]})),this.setStorageItem()}}var z=i(89965);class W extends Y{constructor(){super(...arguments),this.tag="LocalStore"}get defProfile(){return(0,F.o)()}setStorageArea(){this.storage=window.localStorage}getLocalDataByHardCodeKey(t){if(this.available&&t){const e=this.storage.getItem(t);if(!e)return;try{const t=JSON.parse(e);if("object"==typeof t&&null!==t)return t}catch(e){this.log.w(`Failed to parse localStorage key "${t}":`,e)}}}set(t,e){const i=super.set(t,e),n=t.media,r={setting_config:{},video_status:{}};if(i&&n&&"object"==typeof n&&Object.keys(n).forEach((t=>{const e=n[t];switch(t){case"quality":r.setting_config.defquality=e;break;case"volume":r.video_status.volume=e;break;case"nonzeroVol":r.video_status.lastVol=e;break;case"autoplay":r.video_status.autoplay=e;break;case"handoff":r.video_status.playtype=2===e?2:1;break;case"hideBlackGap":r.video_status.blackside_state=!e,(0,z.d)("blackside_state",String(+!e),this.rootPlayer)}})),Object.keys(r.setting_config).length+Object.keys(r.video_status).length){const t="bilibili_player_settings";try{const e=JSON.parse(localStorage.getItem(t));if(!e)return;e.setting_config&&Object.assign(e.setting_config,r.setting_config),e.video_status&&Object.assign(e.video_status,r.video_status),localStorage.setItem(t,JSON.stringify(e))}catch(t){}}return i}}class Z extends Y{constructor(){super(...arguments),this.tag="SessionStore"}get defProfile(){return{interaction:{}}}setStorageArea(){this.storage=window.sessionStorage}}var j=i(51839),q=(t=>(t[t.PLAYER_ERROR=1]="PLAYER_ERROR",t[t.PLAYURL_ERROR=2]="PLAYURL_ERROR",t[t.VIDEO_ERROR=3]="VIDEO_ERROR",t[t.DASH_ERROR=4]="DASH_ERROR",t))(q||{}),J=(t=>(t[t.PLAYER_NETWORK_ERROR=1101]="PLAYER_NETWORK_ERROR",t[t.PLAYER_FORM_ERROR=1103]="PLAYER_FORM_ERROR",t[t.PLAYURL_NETWORK_ERROR=2101]="PLAYURL_NETWORK_ERROR",t[t.PLAYURL_FORM_ERROR=2103]="PLAYURL_FORM_ERROR",t[t.PLAYURL_RESOLVE_ERROR=2104]="PLAYURL_RESOLVE_ERROR",t[t.PLAYURL_BANGUMI_NETWORK_ERROR=2108]="PLAYURL_BANGUMI_NETWORK_ERROR",t[t.PLAYURL_BANGUMI_FORM_ERROR=2110]="PLAYURL_BANGUMI_FORM_ERROR",t[t.PLAYURL_BANGUMI_RESOLVE_ERROR=2111]="PLAYURL_BANGUMI_RESOLVE_ERROR",t[t.PLAYURL_BANGUMI_PERMISSION_DENIED=2112]="PLAYURL_BANGUMI_PERMISSION_DENIED",t[t.VIDEO_URL_ERROR=3001]="VIDEO_URL_ERROR",t[t.VIDEO_ANALYZE_ERROR=3002]="VIDEO_ANALYZE_ERROR",t[t.VIDEO_PLAY_ERROR=3104]="VIDEO_PLAY_ERROR",t[t.VIDEO_RESUME_PLAY_FAILED=3105]="VIDEO_RESUME_PLAY_FAILED",t[t.VIDEO_INFINITE_RETRY_FAILED=3106]="VIDEO_INFINITE_RETRY_FAILED",t[t.VIDEO_CID_ERROR=3107]="VIDEO_CID_ERROR",t[t.NETWORK_EXCEPTION=3111]="NETWORK_EXCEPTION",t[t.NETWORK_STATUS_CODE_INVALID=3112]="NETWORK_STATUS_CODE_INVALID",t[t.NETWORK_UNRECOVERABLE_EARLY_EOF=3113]="NETWORK_UNRECOVERABLE_EARLY_EOF",t[t.NETWORK_RECOVERED_EARLY_EOF=3114]="NETWORK_RECOVERED_EARLY_EOF",t[t.MEDIA_MSE_ERROR=3121]="MEDIA_MSE_ERROR",t[t.MEDIA_FORMAT_ERROR=3122]="MEDIA_FORMAT_ERROR",t[t.MEDIA_FORMAT_UNSUPPORTED=3123]="MEDIA_FORMAT_UNSUPPORTED",t[t.MEDIA_CODEC_UNSUPPORTED=3124]="MEDIA_CODEC_UNSUPPORTED",t[t.ABNORMAL_SEGMENT_LENGTH=3125]="ABNORMAL_SEGMENT_LENGTH",t[t.DASH_INIT_ERROR=4e3]="DASH_INIT_ERROR",t[t.DASH_MEDIA_LAG=4100]="DASH_MEDIA_LAG",t[t.WASM_PLAYER_ERROR=7e3]="WASM_PLAYER_ERROR",t[t.WASM_PLAYER_FALLBACK_ERROR=7010]="WASM_PLAYER_FALLBACK_ERROR",t[t.WASM_PLAYER_FALLBACK_PERF=7011]="WASM_PLAYER_FALLBACK_PERF",t[t.WASM_PLAYER_FALLBACK_QUALITY=7012]="WASM_PLAYER_FALLBACK_QUALITY",t[t.WASM_PLAYER_FALLBACK_PIP=7013]="WASM_PLAYER_FALLBACK_PIP",t[t.WASM_PLAYER_FALLBACK_360=7014]="WASM_PLAYER_FALLBACK_360",t[t.WASM_PLAYER_FALLBACK_INTERACTIVE=7015]="WASM_PLAYER_FALLBACK_INTERACTIVE",t[t.PC_CLIENT_CACHE_PLAY_ERROR=8e3]="PC_CLIENT_CACHE_PLAY_ERROR",t))(J||{}),K=(t=>(t[t.CLEAR_KEY_ERROR=5100]="CLEAR_KEY_ERROR",t[t.KEY_ERROR=5200]="KEY_ERROR",t[t.KEY_SESSION_ERROR=5201]="KEY_SESSION_ERROR",t[t.KEY_SYSTEM_SELECTED_ERROR=5202]="KEY_SYSTEM_SELECTED_ERROR",t[t.LICENSE_REQUEST_ERROR=5203]="LICENSE_REQUEST_ERROR",t[t.KEY_SYSTEM_ACCESS_ERROR=5203]="KEY_SYSTEM_ACCESS_ERROR",t[t.WIDEVINE_ERROR=5300]="WIDEVINE_ERROR",t))(K||{}),X=(t=>(t[t.NO_VALID_SYSTEM=1001]="NO_VALID_SYSTEM",t[t.MAYBE_PLATFORM_NOT_VERIFIED=1002]="MAYBE_PLATFORM_NOT_VERIFIED",t[t.NO_GPU_ACCELERATION=1003]="NO_GPU_ACCELERATION",t))(X||{}),$=i(22513),tt=i(70811),et=i(44127),it=i(32502),nt=i(20094),rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ot(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&rt(e,i,o),o},st=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class lt extends s.u{constructor(t){super(t),this.tag="UserStore",this.defLoginLevel=3,this.info=null,(0,r.rC)(this)}get defaultState(){return{isUserPrepared:!1}}get isInteraction(){return this.info?!!this.info.interaction:null}get isSuperUser(){return!(!this.info||this.info.err)&&!(0===this.info.vipType||1!==this.info.vipStatus)}get isLogin(){return this.info&&!this.info.err?!!this.info.mid:(0,it.s)()}get isCharingTrialWatch(){var t,e;return(null==(t=this.info)?void 0:t.is_upower_exclusive)&&!(null==(e=this.info)?void 0:e.is_upower_play)}get isChargingQATrialWatch(){var t,e;return(null==(t=this.info)?void 0:t.is_upower_exclusive_with_qa)&&!(null==(e=this.info)?void 0:e.is_upower_play)}get isChargedWatch(){var t,e;return(null==(t=this.info)?void 0:t.is_upower_exclusive)&&(null==(e=this.info)?void 0:e.is_upower_play)}get isCommonWatch(){var t;return!(null==(t=this.info)?void 0:t.is_upower_exclusive)}get disableShowUpInfo(){var t;return!!(null==(t=this.info)?void 0:t.disableShowUpInfo)}get needLoginSubtitle(){var t;return!!(null==(t=this.info)?void 0:t.needLoginSubtitle)}get arcAigc(){var t;return null==(t=this.info)?void 0:t.arc_aigc}get selfVisible(){var t;return null==(t=this.info)?void 0:t.self_visible}get mid(){if(this.info&&!this.info.err)return this.info.mid;try{return nt.get("DedeUserID")}catch(t){return""}}get buvid(){try{return nt.get("buvid3")}catch(t){return""}}setUserInfo(t){t&&(this.setLevel(t),this.setVIPInfo(t),this.setMemberRole(t),this.setDMPermission(t),this.setViewPoints(t)),this.info=t}onPrepared(){super.onPrepared(),this.fetchUserDetails().catch(et.Z)}onMount(){super.onMount(),this.dc.infoChanged=(0,r.U5)((()=>this.info),(t=>{t&&(this.dp.isLoadEnded&&this.dp.isLoadEnded(),this.dp.isLoadEnded=(0,r.gx)((()=>this.rootStore.isLoadEnded),(()=>this.rootPlayer.emit(a.p.PLAYER_LOADED,t))))}))}reloadAccess(t){return st(this,null,(function*(){const e=t?t.origin:A.bt.Default;if(e===A.bt.Foreign&&this.qualityStore.state.isLoginSwitch)return this.log.i("[reloadAccess]: skip foreign login switch case inner login"),Promise.resolve();this.log.i("[reloadAccess]: ",e);try{yield this.fetchUserDetails(),yield this.mpdStore.reloadPlayUrl(C.ZX.Reload_Access),this.log.i("[reloadAccess] success"),this.track.o(x.w.O_Reload_Access_Success,{val:e})}catch(t){return Promise.reject(t)}}))}tryDelayUserResolved(){return st(this,null,(function*(){if(this.configStore.isChannel(l.u5.Homepage)||this.configStore.isChannel(l.u5.Homepage_Topic)){const t=(0,r.gx)((()=>this.rootStore.isLoadEnded));return this.dp.delayUserResolved&&this.dp.delayUserResolved(),this.dp.delayUserResolved=()=>t.cancel(),t}{const t=(0,r.gx)((()=>!!this.mediaStore.state.firstIdleFrame||this.rootStore.isLoadEnded))
;return this.dp.delayUserResolved2&&this.dp.delayUserResolved2(),this.dp.delayUserResolved2=()=>t.cancel(),t}}))}fetchUserDetails(){return st(this,null,(function*(){if(this.configStore.preliminaryReview)return Promise.reject();const t=(0,r.gx)((()=>this.rootStore.isPrepared));this.dp.isPrepared&&this.dp.isPrepared(),this.dp.isPrepared=()=>t.cancel(),yield t;const e=this.httpStore.fetchUserInfo(!1);return yield this.tryDelayUserResolved(),new Promise(((t,i)=>{e.then((({body:e,response:i})=>{if(0===i.data.code)return this.setUserInfo(e),this.setState({isUserPrepared:!0}),void t(e);this.setUserInfo({err:new Error("Unknown error")}),this.setState({isUserPrepared:!0}),this.errorStore.err(q.PLAYER_ERROR,J.PLAYER_FORM_ERROR,`form error,url:${i.config.url}`)})).catch((t=>{if(tt.Z.isCancel(t))return;const e=t&&t.response&&t.response.status,n=t&&t.config&&t.config.url;this.setUserInfo({err:t||new Error("Unknown error")}),this.setState({isUserPrepared:!0}),this.errorStore.err(q.PLAYER_ERROR,J.PLAYER_NETWORK_ERROR,`status:${e},url:${n}`),i(t)}))}))}))}requestQuickLogin(t){if(this.configStore.isChannel(l.u5.PC_APP)&&window.appRequestLogin&&"function"==typeof window.appRequestLogin)return window.appRequestLogin();this.requestQuickLoginPromise(t).catch(et.Z)}requestQuickLoginPromise(t){return st(this,null,(function*(){if(w.X.mobile.alike&&!w.X.iPad.alike)throw this.rootStore.parent.location.href=$.tn,new Error("Redirect to login page");return this.uiStore.isFullView&&this.portStore.reqStatue(null),this.getQuickLoginScript("MiniLogin",$.x).then((()=>new Promise(((e,i)=>{const n=new this.rootStore.parent.MiniLogin(t?{customTitle:t}:{}),r=()=>{n&&(n.removeEventListener("success",o),n.removeEventListener("cancel",a))},o=()=>{r(),queueMicrotask((()=>st(this,null,(function*(){try{yield this.reloadAccess(),e(0)}catch(t){i(t)}}))))},a=()=>{r(),i(new Error("User cancelled"))};n.showComponent(),n.addEventListener("success",o),n.addEventListener("cancel",a)})))).then((()=>{this.rootPlayer.emit(o.t.Player_Access_Changed,new CustomEvent(o.t.Player_Access_Changed))})).catch((t=>(this.log.w(t&&t.message),Promise.reject(t))))}))}getQuickLoginScript(t,e){return st(this,null,(function*(){return this.rootStore.parent[t]?void 0:function(t,e=window){return new Promise(((i,n)=>{const r=e.document.createElement("script");r.onload=i,r.onerror=n,r.type="text/javascript",r.async=!0,r.crossOrigin="anonymous",r.src=t,e.document.head.appendChild(r)}))}(e,this.rootStore.parent)}))}setLevel(t){var e;if(t.err)return void(t.level=this.defLoginLevel);const i=null==(e=t.levelInfo)?void 0:e.current_level;null==i?t.mid?t.level=this.defLoginLevel:t.level=null:t.level=+i}setVIPInfo(t){this.configStore.isChannel(l.u5.Manager)&&(t.vipType=2,t.vipStatus=1)}setMemberRole(t){if(t.err)return void((0,it.s)()?t.memberRole=j.Rs.USER_NORMAL:t.memberRole=j.Rs.USER_LOGOUT);if(!t.mid)return void(t.memberRole=j.Rs.USER_LOGOUT);if("string"!=typeof t.permission)return void(t.memberRole=j.Rs.USER_NORMAL);const e=t.permission.split(",");0===e.length||-1!==e.indexOf("9999")?t.memberRole=j.Rs.USER_LIMITED:-1!==e.indexOf("5000")?t.memberRole=j.Rs.USER_REGISTERED:-1!==e.indexOf("20000")?t.memberRole=j.Rs.USER_ADVANCED:-1!==e.indexOf("32000")||-1!==e.indexOf("31300")?(t.memberRole=j.Rs.USER_ADVANCED,t.isSystemAdmin=!0):-1!==e.indexOf("30000")||-1!==e.indexOf("25000")?t.memberRole=j.Rs.USER_VIP:t.memberRole=j.Rs.USER_NORMAL}get isUpOwner(){var t;return!!(null==(t=this.info)?void 0:t.isOwner)}setDMPermission(t){let e,i,n=t.level,r={pool:j.Rs.SEND_POOL_NORMAL,mode:j.Rs.SEND_MODE_LOGOUT,color:j.Rs.SEND_COLOR_LOGOUT,input:j.Rs.SEND_INPUT_LOGOUT,fontsize:j.Rs.SEND_FONT_SIZE_LOGOUT,initStatus:j.Rs.SEND_STATUS_NORMAL};switch((t.isOwner||t.isSystemAdmin)&&(r.pool=j.Rs.SEND_POOL_ADMIN,i=j.Rs.SEND_FONT_SIZE_ADMIN),t.memberRole){case j.Rs.USER_LIMITED:r.fontsize=j.Rs.SEND_FONT_SIZE_LIMITED,r.mode=j.Rs.SEND_MODE_LIMITED,r.initStatus=j.Rs.SEND_STATUS_LIMITED,r.input=j.Rs.SEND_INPUT_LIMITED;break;case j.Rs.USER_REGISTERED:r.fontsize=j.Rs.SEND_FONT_SIZE_REGISTERED,r.mode=j.Rs.SEND_MODE_REGISTERED,r.input=j.Rs.SEND_INPUT_REGISTERED;break;case j.Rs.USER_NORMAL:r.fontsize=j.Rs.SEND_FONT_SIZE_NORMAL,r.mode=j.Rs.SEND_MODE_NORMAL,r.input=j.Rs.SEND_INPUT_NORMAL;break;case j.Rs.USER_VIP:r.pool=j.Rs.SEND_POOL_ADMIN,r.fontsize=j.Rs.SEND_FONT_SIZE_VIP,r.mode=j.Rs.SEND_MODE_VIP,r.input=j.Rs.SEND_INPUT_VIP;break;case j.Rs.USER_ADVANCED:r.pool=j.Rs.SEND_POOL_ADMIN,r.fontsize=j.Rs.SEND_FONT_SIZE_ADVANCED,r.mode=j.Rs.SEND_MODE_ADVANCED,r.input=j.Rs.SEND_INPUT_ADVANCED;case j.Rs.USER_LOGOUT:}switch(!0){case 0===n:e=j.Rs.SEND_MODE_LEVEL_LOW,r.color=j.Rs.SEND_COLOR_LEVEL_LOW,r.initStatus=j.Rs.SEND_STATUS_LEVEL_LOW;break;case 1===n:e=j.Rs.SEND_MODE_LEVEL_LOW,r.color=j.Rs.SEND_COLOR_LEVEL_LOW;break;case 2===n:e=j.Rs.SEND_MODE_LEVEL_TWO,r.color=j.Rs.SEND_COLOR_NORMAL;break;case n>=3:e=j.Rs.SEND_MODE_LEVEL_NORMAL,r.color=j.Rs.SEND_COLOR_NORMAL}t.blockTime>0&&(r.initStatus=j.Rs.SEND_STATUS_BLOCKING),t.blockTime<0&&(r.initStatus=j.Rs.SEND_STATUS_BLOCKED),2===t.pugvSeasonStatus&&1===t.pugvPayStatus&&(r.initStatus=j.Rs.SEND_STATUS_CANNOT_BUY),2!==t.answerStatus||n||(r.initStatus=j.Rs.SEND_ANSWER_STATUS_IN),t.err||t.mid||(r.color=j.Rs.SEND_COLOR_LOGOUT,r.initStatus=j.Rs.SEND_STATUS_LOGOUT),i&&r.fontsize.forEach(((t,e,n)=>{n[e]=n[e]||i[e]})),e&&r.mode.forEach(((t,i,n)=>{n[i]=1===e[i]||1===n[i]?1:n[i]})),t.dmRights=r}setViewPoints(t){this.configStore.isCreator()&&(t.viewPoints=null)}requestSuperGuide(t){const e=this.configStore.isChannel(l.u5.Default)||this.configStore.isChannel(l.u5.Playlist);this.uiStore.kind===l.HR.Pgc&&e||(this.portStore.pause(),this.uiStore.isFullView&&this.portStore.reqStatue(null));const i=this.qualityStore.getQualitySupportFormatItem(t.qn);t.limitWatchReason=null==i?void 0:i.limitWatchQnReason,this.rootPlayer.emit(o.t.Player_Virtual_Action,new CustomEvent(o.t.Player_Virtual_Action,{detail:{data:t,kind:l.s.Super_Quality_Guide}}))}requestSuperColorGuide(t){const e=this.configStore.isChannel(l.u5.Default)||this.configStore.isChannel(l.u5.Playlist);this.uiStore.kind===l.HR.Pgc&&e||(this.portStore.pause(),this.uiStore.isFullView&&this.portStore.reqStatue(null)),this.rootPlayer.emit(o.t.Player_Virtual_Action,new CustomEvent(o.t.Player_Virtual_Action,{detail:{data:t,kind:l.s.Super_Quality_Guide}}))}requestSuperVipTrialQuality(t){const e=this.configStore.isChannel(l.u5.Default)||this.configStore.isChannel(l.u5.Playlist);this.uiStore.kind===l.HR.Pgc&&e||this.uiStore.isFullView&&this.portStore.reqStatue(null);const i=this.qualityStore.getQualitySupportFormatItem(t.qn);t.limitWatchReason=null==i?void 0:i.limitWatchQnReason,this.rootPlayer.emit(o.t.Player_Virtual_Action,new CustomEvent(o.t.Player_Virtual_Action,{detail:{data:t,kind:l.s.Super_Quality_Guide}}))}}at([r.LO.shallow],lt.prototype,"info",2),at([r.aD],lt.prototype,"setUserInfo",1);var At=i(92452);class ct extends At.eV{constructor(){super(...arguments),this.tag="HttpUpMid",this.url="//api.bilibili.com/x/web-interface/relation"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>{var e;return{body:this.convertResult(null==(e=t.data)?void 0:e.data),response:t}}))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}convertResult(t){const e=(null==t?void 0:t.relation)||{};return{attribute:e.attribute,mid:e.mid,mtime:e.mtime,special:e.special,tag:e.tag}}}var ht=i(55537),dt=Object.defineProperty,ut=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ft=(t,e,i)=>e in t?dt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class mt extends s.u{constructor(){super(...arguments),this.tag="UpStore"}get defaultState(){return{mid:null,name:null,face:null,follow:!1,fans:null,staffs:null}}onPrepared(){super.onPrepared(),this.applyExternalUpInfo(),this.configStore.embeddedEnv&&this.fetchUpInfo()}applyExternalUpInfo(){var t;const e=null==(t=this.configStore.viewInfo)?void 0:t.upInfo;if(!e)return;const i={}
;null!=e.mid&&(i.mid=e.mid),null!=e.name&&(i.name=e.name),null!=e.face&&(i.face=e.face),null!=e.fans&&(i.fans=e.fans),null!=e.follow&&(i.follow=e.follow),null!=e.staffs&&(i.staffs=e.staffs),Object.keys(i).length>0&&this.setState(i)}onMount(){super.onMount()}getRelation(t){return new ct(this.rootPlayer).r({mid:t})}upFollow(t,e){if(this.configStore.isChannel(l.u5.Manager))return Promise.resolve(null);return new ht.YR(this.rootPlayer).r({act:e?2:1,fid:t,re_src:245})}fetchUpInfo(){return t=this,e=null,i=function*(){const t=(0,r.gx)((()=>this.rootStore.isPrepared));return this.dp.isPrepared&&this.dp.isPrepared(),this.dp.isPrepared=()=>t.cancel(),yield t,this.httpStore.fetchVideoDetail(!0).then((({body:t})=>{this.setState(((t,e)=>{for(var i in e||(e={}))pt.call(e,i)&&ft(t,i,e[i]);if(ut)for(var i of ut(e))gt.call(e,i)&&ft(t,i,e[i]);return t})({},t.up))})).catch((t=>{if(!tt.Z.isCancel(t))return Promise.reject(t)}))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}onDispose(){super.onDispose({name:1,mid:1,face:1,follow:1,fans:1})}}function yt(){return window.performance&&"function"==typeof window.performance.now?window.performance.now():Date.now()}var bt=i(8886),vt=i(43122);function Et(t,e,i){let n=null,r=null,o=document.createElement("canvas"),a=o.getContext("2d");return e&&(n=Math.floor(e)),i&&(r=Math.floor(i)),n&&!r&&(r=Math.floor(e/t.videoWidth*t.videoHeight)),!n&&r&&(n=Math.floor(i/t.videoHeight*t.videoWidth)),n||(n=Math.floor(t.videoWidth)),r||(r=Math.floor(t.videoHeight)),o.width=n,o.height=r,t&&"BWP-VIDEO"===t.tagName?a.drawImage(null==t?void 0:t.getRenderCanvas(),0,0,n,r):a.drawImage(t,0,0,n,r),o}var It=i(41330);const Ct={mode:"production",name:"nano",version:"4.9.85",revision:"96806e61",lastCompiled:"2026-06-10T16:59:44+08:00"};var Bt=i(745),wt=i(84585);class xt extends At.eV{constructor(){super(...arguments),this.tag="HttpNow",this.url="//api.bilibili.com/x/click-interface/click/now"}r(){return t=this,e=null,i=function*(){return this.request({url:this.url,withCredentials:!0}).then((t=>{const e=t.data,i=Math.floor(Date.now()/1e3),n=e&&e.data&&e.data.now||i;return this.isIllegal(e)?{now:i}:{now:n}}))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}}var Qt=i(91167),St=i.n(Qt),kt=i(63188),Dt=Object.defineProperty,_t=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Tt=(t,e,i)=>e in t?Dt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ft=(t,e)=>{for(var i in e||(e={}))Rt.call(e,i)&&Tt(t,i,e[i]);if(_t)for(var i of _t(e))Mt.call(e,i)&&Tt(t,i,e[i]);return t},Lt=(t=>(t.AD_FRAGMENT="AD_FRAGMENT",t.OGV_FRAGMENT="OGV_FRAGMENT",t))(Lt||{});class Nt extends s.f{constructor(){super(...arguments),this.tag="PatchAdvAtom",this.hasSwitched=!1}setPreLoadedDataMap(){return t=this,e=null,i=function*(){var t,e;const{patchAdvStore:i,mpdStore:n,kernelStore:r}=this.rootStore;if(!i.hasValidAdv)return;const o=i.state.index,a=i.state.videoList,s=i.state.mainInfo.cid;if(o>=i.state.videoList.length-1)return;const l=a[o+1],A=(null==l?void 0:l.fragmentInfo)?l.fragmentInfo.cid:s;if(i.preloadDataMap.has(A))return;const c=yield n.prefetchAVData(l),h=yield null==(t=c.vbHttp)?void 0:t.promise,d=yield null==(e=c.abHttp)?void 0:e.promise;let u={type:"dash"};h&&(u=Object.assign({},u,{videoUrl:c.videoUrl,videoId:String(c.videoQn),video:h})),d&&(u=Object.assign({},u,{audioUrl:c.audioUrl,audioId:String(c.audioQn),audio:d})),u=Object.assign({},u,{videoCodecId:r.dashKernel.getCurrentCodecID("video")}),i.preloadDataMap.set(A,Ft({},u))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}advPolarReport(){let t=0,e=[];const{patchAdvStore:i,trackStore:n,configStore:r,mpdStore:o}=this.rootStore;i.hasValidAdv&&(t=i.getPreFilteredVideoList().length>0&&i.getPostFilteredVideoList().length>0?Vt.both:i.getPreFilteredVideoList().length>0&&0===i.getPostFilteredVideoList().length?Vt.onlyPre:Vt.onlyPost,i.getPreFilteredVideoList().forEach(((t,i)=>{let n={fragment_avid:t.fragmentInfo.aid,fragment_order:i+1,fragment_position:1,fragment_length:Math.floor(t.timelength/1e3),fragment_source:"AD_FRAGMENT"===t.fragmentInfo.fragment_type?1:2};e.push(n)})),i.getPostFilteredVideoList().forEach(((t,i)=>{let n={fragment_avid:t.fragmentInfo.aid,fragment_order:i+1,fragment_position:3,fragment_length:Math.floor(t.timelength/1e3),fragment_source:"AD_FRAGMENT"===t.fragmentInfo.fragment_type?1:2};e.push(n)})),n.polarReport("fragment.0",kt.Rr.show,{fragment_type:t,fragment_detail:JSON.stringify(e),csource:r.csource,seasonid:r.seasonId,avid:r.aid}))}patchSwitch(t){const{patchAdvStore:e,kernelStore:i,configStore:n,rootPlayer:r}=this.rootStore,a=e.Episode,s={mediaDataSource:a.mediaDataSource,quality:0};e.canRecordBuffering=!1,e.reportActualPlay();const A=n.cid,c=e.getCids()[e.state.index],h=e.preloadDataMap.get(c);return h&&(h.videoid=h.videoId,h.audioid=h.audioId),e.switchPlayAt=0|t,r.emit(o.t.Player_PatchSwitch,new CustomEvent(o.t.Player_PatchSwitch,{detail:{stage:l._1.START}})),this.hasSwitched=!1,i.trySwitchSource(s,{initiator:C.ZX.Initialize,enableTransition:!0,preloadAVData:h},{keepTransition:!0,playAt:e.switchPlayAt,autoPlay:!0}).then((()=>{const t=a.fragmentInfo||e.mainInfo;n.startAdvPatchParser({aid:t.aid,cid:t.cid,episodeId:e.mainInfo.episodeId,extraEPInfo:n.extraEPInfo,seasonId:n.seasonId,seasonType:n.seasonType}),this.rootPlayer.emit(o.t.Player_PatchSwitch,new CustomEvent(o.t.Player_PatchSwitch,{detail:{stage:l._1.COMPLETED,aid:t.aid,cid:t.cid,lastCid:A}}))})).catch((t=>{}))}emitBusinessReportData(t,e){var i,n,r;const{patchAdvStore:a,configStore:s,mediaStore:l}=this.rootStore;if(this.hasAnyBusinessStock())try{let A,c,h,d,u,p;e&&(h=e.isEnded,d=e.duration,u=e.isLast,p=e.playAt);const g=a.state.videoList.find((t=>{var e;if((null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.cid)===s.cid)return t})),f=this.getFirstAvailableOGVFragment(),m=this.hasValidPreBusinessStock();if(t===Gt.show){if(g){if(c=g.fragmentInfo,(null==f?void 0:f.fragmentInfo.cid)===g.fragmentInfo.cid&&!m){const t=a.state.reportList.filter((t=>{var e,i;return"PRE"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&"AD_FRAGMENT"===(null==(i=null==t?void 0:t.fragmentInfo)?void 0:i.fragment_type)}));t.length>0&&(c=t[0].fragmentInfo)}}else if(0===a.getPreFilteredVideoList().length){const t=a.state.reportList.filter((t=>{var e,i;return"PRE"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&"AD_FRAGMENT"===(null==(i=null==t?void 0:t.fragmentInfo)?void 0:i.fragment_type)})),e=this.hasValidPreOGVStock();t.length>0&&!e&&(c=t[0].fragmentInfo)}if(u){const t=a.getPostFiltereBusinessVideoList(),e=a.state.reportList.filter((t=>"POST"==(null==t?void 0:t.fragmentInfo.fragment_position)&&"AD_FRAGMENT"===(null==t?void 0:t.fragmentInfo.fragment_type)));if(!(e.length>0&&0===t.length))return;c=e[0].fragmentInfo}}else g&&g.fragmentInfo.ad_extra_data&&(c=g.fragmentInfo);if(c){if(!c.ad_extra_data)return;A=Ft({av_id:(null==c?void 0:c.aid)||0,c_id:(null==c?void 0:c.cid)||0,duration:(null==g?void 0:g.timelength)||0,ep_avid:(null==(i=a.mainInfo)?void 0:i.aid)||s.aid,ep_cid:(null==(n=a.mainInfo)?void 0:n.cid)||s.cid,ep_id:(null==(r=a.mainInfo)?void 0:r.episodeId)||s.episodeId,season_id:s.seasonId,pos:"PRE"===c.fragment_position?"prefix":"surfix"},JSON.parse(c.ad_extra_data))}if(!A)return;let y={data:A,type:t};switch(t){case Gt.show:break;case Gt.video_play:if(0===this.getValidBusinessStock().length)return;h&&(y.percentage=100),p&&0===p?(y.percentage=0,y.progress=0):y.progress=1e3*l.video.currentTime;break;case Gt.actual_play:y.duration=d}this.rootPlayer.emit(o.t.Player_Patch_Adv_Report,new CustomEvent(o.t.Player_Patch_Adv_Report,{detail:y}))}catch(t){console.error("business data parse error",t)}}
get configTimeIntervalList(){const{patchAdvStore:t}=this.rootStore;let e=0;return t.state.videoList.map((i=>{const n=e;e+=i.timelength/1e3;return{start:n,end:e,aid:i.fragmentInfo?i.fragmentInfo.aid:t.mainInfo.aid,cid:i.fragmentInfo?i.fragmentInfo.cid:t.mainInfo.cid}}))}get repeatparams(){const{patchAdvStore:t}=this.rootStore,e={fragment_info:t.state.reportList.map((t=>t.fragmentInfo))},i=JSON.parse(JSON.stringify(e));return i.fragment_info.forEach((t=>{null==t||delete t.ad_extra_data})),i}addEvents(){const{patchAdvStore:t,mediaStore:e}=this.rootStore;this.rootPlayer.on(a.p.MEDIA_PLAYING,(()=>{t.timeStamp=performance.now()})),this.rootPlayer.on(a.p.PLAYER_STREAM_BUFFERING_COMPLETED,(()=>{this.setPreLoadedDataMap()})),this.rootPlayer.on(a.p.MEDIA_CANPLAY,(()=>{t.canRecordBuffering=!0,t.switchPlayAt=0,this.emitBusinessReportData(Gt.show),e.video.currentTime<.5&&!this.hasSwitched&&(this.hasSwitched=!0,this.emitBusinessReportData(Gt.video_play,{playAt:0}))})),this.rootPlayer.on(a.p.MEDIA_PAUSE,(()=>{this.emitBusinessReportData(Gt.actual_play,{duration:Math.floor(performance.now()-t.timeStamp)})})),this.dc.buffering=(0,r.U5)((()=>e.state.buffering),(i=>{if(!t.canRecordBuffering)return;const{video:n}=e;n.readyState<2||!i||n.seeking||t.reportActualPlay()}),{fireImmediately:!0}),this.rootPlayer.on(a.p.MEDIA_ENDED,(()=>{this.emitBusinessReportData(Gt.actual_play,{duration:Math.floor(performance.now()-t.timeStamp)}),this.emitBusinessReportData(Gt.video_play,{isEnded:!0}),t.hasValidAdv&&0==t.getPostFilteredVideoList().length&&this.emitBusinessReportData(Gt.show,{isLast:!0}),this.hasAnyBusinessStock()&&!t.hasValidAdv&&this.emitBusinessReportData(Gt.show,{isLast:!0}),t.timeStamp=performance.now()})),this.rootPlayer.on(o.t.Player_PatchSwitch,(e=>{var i;(null==(i=null==e?void 0:e.detail)?void 0:i.lastCid)===t.mainInfo.cid&&this.emitBusinessReportData(Gt.show,{isLast:!0})})),this.rootPlayer.on(a.p.PATCH_ADV_PLAY_ENDED,(()=>{this.emitBusinessReportData(Gt.video_play,{isEnded:!0});const e=t.getPostFiltereBusinessVideoList();t.hasValidAdv&&t.getMainIndex()===t.state.index&&0===e.length&&this.emitBusinessReportData(Gt.show,{isLast:!0})}))}processDmViewRePlyOffset(t){const{patchAdvStore:e}=this.rootStore;if(e.hasValidAdv){const i=e.prePatchDuration();Array.isArray(t.commandDms)&&t.commandDms.forEach((t=>{t.stime?t.stime+=i:t.stime=i})),Array.isArray(null==t?void 0:t.postPanelV2)&&t.postPanelV2.forEach((t=>{t.start?t.start+=i:t.start=i,t.end&&-1!==t.end&&(t.end+=i)}))}}getSeekDecision(t){const{patchAdvStore:e}=this.rootStore,i=this.configTimeIntervalList,n=i&&i[i.length-1].end;t<0&&(t=0),t>n&&(t=n-.5);const r=i.findIndex((e=>t>=e.start&&t<e.end));return r===e.state.index?{isSameEp:!0,t:t-i[r].start,index:r}:{isSameEp:!1,t:t-i[r].start,index:r}}get contextExt(){const{patchAdvStore:t}=this.rootStore;return{fragments:t.state.videoList.map((t=>{if(t.fragmentInfo)return{cid:t.fragmentInfo.cid,aid:t.fragmentInfo.aid,duration:t.timelength,type:"PRE"===t.fragmentInfo.fragment_position?1:3}})).filter((t=>void 0!==t)),duration:t.mainInfo.timelength}}getFirstAvailableOGVFragment(){const{patchAdvStore:t}=this.rootStore,e=t.getPreFilteredVideoList();if(!e||0===e.length)return null;const[i]=e.filter((t=>{var e;return"OGV_FRAGMENT"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_type)}));return i}getFirstPreBusinessStock(){const{patchAdvStore:t}=this.rootStore,{reportList:e}=t.state,i=e.filter((({fragmentInfo:t})=>"PRE"===(null==t?void 0:t.fragment_position)&&"AD_FRAGMENT"===t.fragment_type));return i.length>0?i[0].fragmentInfo:null}hasValidPreBusinessStock(){const{patchAdvStore:t}=this.rootStore,e=t.getPreFilteredVideoList().filter((({fragmentInfo:t})=>"PRE"===(null==t?void 0:t.fragment_position)&&"AD_FRAGMENT"===t.fragment_type));return e.length>0?e[0].fragmentInfo:null}hasValidPreOGVStock(){const{patchAdvStore:t}=this.rootStore,e=t.getPreFilteredVideoList().filter((({fragmentInfo:t})=>"PRE"===(null==t?void 0:t.fragment_position)&&"OGV_FRAGMENT"===t.fragment_type));return e.length>0?e[0].fragmentInfo:null}getValidBusinessStock(){const{patchAdvStore:t}=this.rootStore,e=t.state.videoList.filter((({fragmentInfo:t})=>"AD_FRAGMENT"===(null==t?void 0:t.fragment_type)));return e.length>0?e:[]}hasAnyBusinessStock(){var t,e;const{patchAdvStore:i}=this.rootStore,n=null==(e=null==(t=i.state)?void 0:t.reportList)?void 0:e.filter((({fragmentInfo:t})=>"AD_FRAGMENT"===(null==t?void 0:t.fragment_type)));return n&&n.length>0}}var Pt=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,Ot=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Ut(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Pt(e,i,o),o},Gt=(t=>(t.video_play="video_play",t.actual_play="actual_play",t.show="show",t))(Gt||{}),Ht=(t=>(t[t.All=0]="All",t[t.Pre=1]="Pre",t[t.Post=2]="Post",t))(Ht||{}),Vt=(t=>(t[t.onlyPre=1]="onlyPre",t[t.onlyPost=2]="onlyPost",t[t.both=3]="both",t))(Vt||{});class Yt extends s.u{constructor(t){super(t),this.canRecordBuffering=!1,this.switchPlayAt=0,this.preloadDataMap=new Map,this.preloadAjax=[],(0,r.rC)(this),this.patchAdvAtom=new Nt(t)}get defaultState(){return{enable:!1,totalDuration:0,videoList:[],index:0,mainInfo:null,reportList:[]}}onPrepared(){super.onPrepared(),this.dp.vxStart=(0,r.gx)((()=>this.trackStore.state.vxStart),(()=>this.startReport()))}onMount(){super.onMount(),this.timeStamp=performance.now(),this.patchAdvAtom.addEvents(),this.rootPlayer.on(o.t.Player_Canplay,(()=>{this.advPolarReport()}))}getCurrentTime(){const{video:t}=this.mediaStore,e=Math.ceil(t.currentTime||0);return this.getFakeCurrentTimePrefix()+(e||this.switchPlayAt)}getPatchPlayUrlParams(){if(!this.hasValidAdv)return null;return{fragment:encodeURIComponent(JSON.stringify(this.patchAdvAtom.repeatparams)),avid:this.mainInfo.aid,cid:this.mainInfo.cid}}startReport(){this.timer=window.setInterval((()=>{this.patchAdvAtom.emitBusinessReportData("video_play")}),1e3)}get hasValidAdv(){return Array.isArray(this.state.videoList)&&this.state.videoList.length>1}get contextExt(){return this.patchAdvAtom.contextExt}get playingKind(){return this.isPlayingPatch()?"patch":"main"}prePatchDurationInSec(){return this.prePatchDuration()/1e3}prePatchDurationInSecAndInt(){return Math.round(this.prePatchDurationInSec())}prePatchDuration(){return this.getPreFilteredVideoList().reduce(((t,e)=>t+e.timelength),0)||0}postPatchDuration(){return this.getPostFilteredVideoList().reduce(((t,e)=>t+e.timelength),0)||0}postPatchDurationInSec(){return this.postPatchDuration()/1e3}getPreFilteredVideoList(){return this.state.videoList.filter((t=>{var e;return"PRE"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&!0===(null==t?void 0:t.playStatus)}))}getMainVideoRelativeTime(){return this.portStore.getCurrentTime()-Math.ceil(this.prePatchDuration()/1e3)}getPostFilteredVideoList(){return this.state.videoList.filter((t=>{var e;return"POST"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&!0===(null==t?void 0:t.playStatus)}))}getPostFiltereBusinessVideoList(){return this.state.videoList.filter((t=>{var e,i;return"POST"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&(null==(i=null==t?void 0:t.fragmentInfo)?void 0:i.fragment_type)===Lt.AD_FRAGMENT&&!0===(null==t?void 0:t.playStatus)}))}isPatchAdv(t){return-1!==this.state.videoList.findIndex((e=>{var i;return(null==(i=null==e?void 0:e.fragmentInfo)?void 0:i.cid)===t}))}getTotalDuration(){return this.state.videoList.reduce(((t,e)=>t+e.timelength),0)/1e3}getFakeCurrentTimePrefix(){let t=0;for(let e=0;e<this.state.index;e++)t+=this.state.videoList[e].timelength;return Math.floor(t/1e3)}getSeekDecision(t){return this.patchAdvAtom.getSeekDecision(t)}getMainIndex(){const t=this.state.videoList.findIndex((t=>!t.fragmentInfo));return-1===t?0:t}getCids(){return this.state.videoList.map((t=>t.fragmentInfo?t.fragmentInfo.cid:this.mainInfo.cid))}processDmViewRePlyOffset(t){this.patchAdvAtom.processDmViewRePlyOffset(t)}getCurrentCid(t){let e=-1;const i=this.patchAdvAtom.configTimeIntervalList.findIndex((e=>t>=e.start&&t<e.end));return-1!==i&&(e=this.patchAdvAtom.configTimeIntervalList[i].cid),e}isPlayingPatch(){
return!!this.hasValidAdv&&this.configStore.cid!==this.mainInfo.cid}getPlayingType(){var t,e;return null==(e=null==(t=this.state.videoList[this.state.index])?void 0:t.fragmentInfo)?void 0:e.fragment_position}getCurrentStartTime(t){const e=this.patchAdvAtom.configTimeIntervalList.findIndex((e=>t>=e.start&&t<e.end));return-1!=e?this.patchAdvAtom.configTimeIntervalList[e].start:0}reportActualPlay(){this.patchAdvAtom.emitBusinessReportData("actual_play",{duration:Math.floor(performance.now()-this.timeStamp)}),this.timeStamp=performance.now()}get mainInfo(){return this.state.mainInfo}get Episode(){return this.state.videoList[this.state.index]}get isLastIndex(){return!!(Array.isArray(this.state.videoList)&&this.state.videoList.length>0)&&this.state.index===this.state.videoList.length-1}hasLeftVideoToPlay(){return this.hasValidAdv&&!this.isLastIndex}patchSwitch(t){return this.patchAdvAtom.patchSwitch(t)}advPolarReport(){this.patchAdvAtom.advPolarReport()}onDispose(){super.onDispose(),this.timeStamp=0,clearInterval(this.timer),this.timer=null,this.preloadDataMap.clear()}}Ot([r.Fl],Yt.prototype,"hasValidAdv",1),Ot([r.Fl],Yt.prototype,"playingKind",1),Ot([r.Fl],Yt.prototype,"isLastIndex",1);var zt=Object.defineProperty,Wt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Kt=(t,e,i)=>e in t?zt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xt=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class $t extends s.u{constructor(){super(...arguments),this.tag="PortStore",this.cachedNow=0,this.cachedNowTimeStamp=0,this.seekDeferred=null}get metadata(){return Ct}get rid(){return this.metadata.version+"-"+this.metadata.revision}getRemoteNow(){return Xt(this,arguments,(function*(t=600){const e=yt()-this.cachedNowTimeStamp;if(this.cachedNow&&this.cachedNowTimeStamp>0&&e<1e3*t)return this.cachedNow+Math.floor(e/1e3);try{const t=yield new xt(this.rootPlayer,{noStore:!0,memCache:!1,persistent:!0}).r();return this.cachedNow=t.now,this.cachedNowTimeStamp=yt(),this.cachedNow}catch(t){return Math.floor(Date.now()/1e3)}}))}getScreenKind(t){const e=this.uiStore.state.mainScreen,i=this.uiStore.state.sideScreen;return t?null!=i&&i!==l.dY.Pip?i:e:null!=i?i:e}getPlayUrl(){return this.kernelStore.baseAgent?this.kernelStore.baseAgent.getPlayUrl():""}hasFocus(){return!!this.nodes.container.contains(document.activeElement)||this.ctrlStore.state.containerFocus}hasEditableFocus(){const t=[this.rootStore.window.document];if(this.rootStore.isEmbedSOP)try{t.push(this.rootStore.parent.document)}catch(t){}return t.some((t=>{if(t.activeElement){switch(t.activeElement.tagName){case"INPUT":switch(t.activeElement.type){case"button":case"reset":case"submit":case"hidden":case"radio":case"checkbox":case"image":case"file":case"range":return!1;default:return!0}case"TEXTAREA":return!0}if(t.activeElement.isContentEditable)return!0}return!1}))}seekAutoplay(t,e){this.seek(t,{initiator:e?`${e}:Seek`:e}).then((()=>this.play({initiator:e?`${e}:Autoplay`:e}))).catch((t=>this.log.w("[seekAutoplay]",bt.p`${t}`)))}reqStatue(t,e,i){this.configStore.isChannel(l.u5.PC_APP)&&t===l.dY.Full&&window.appRequestFullScreen&&"function"==typeof window.appRequestFullScreen?window.appRequestFullScreen((()=>{this.statueStore.requestStatue(t,e,i).catch(et.Z)})):this.statueStore.requestStatue(t,e,i).catch(et.Z)}isEnded(t){return(t||!(this.settingStore.state.loop&&!this.userStore.isCharingTrialWatch))&&this.mediaStore.video.ended}isPaused(){return this.mediaStore.video.paused}isSeeking(){return this.mediaStore.video.seeking}isMuted(){return this.settingStore.getMuted()||0===this.settingStore.getVolume()}getManifest(){return{p:this.configStore.p,aid:this.configStore.aid,cid:this.configStore.cid,pid:this.configStore.pid,bvid:this.configStore.bvid,seasonId:this.configStore.seasonId,episodeId:this.configStore.episodeId,kind:this.uiStore.kind,screenKind:this.getScreenKind(),channelKind:this.configStore.channelKind,quality:this.qualityStore.quality,seasonType:this.configStore.seasonType,hasPrev:this.episodeStore.state.hasPrev,hasNext:this.episodeStore.state.hasNext,hasPipFn:this.statueStore.hasPipFn,hasFullscreenFn:this.statueStore.hasFullscreenFn,referrer:this.episodeStore.state.referrer}}getStates(){return{initError:this.errorStore.state.initError,pipEnabled:this.statueStore.pipEnabled,fullscreenEnabled:this.statueStore.fullscreenEnabled,majorCtrlHidden:this.ctrlStore.isCtrlHidden(),mainScreen:this.uiStore.state.mainScreen,sideScreen:this.uiStore.state.sideScreen}}getMediaInfo(){const t=this.metricStore.getAbsolutePlayTime();return{playUrl:this.getPlayUrl(),absolutePlayTime:t,relativePlayTime:this.metricStore.getRelativePlayTime(),videoWidth:this.mediaStore.video.videoWidth,videoHeight:this.mediaStore.video.videoHeight,maxTime:this.metricStore.getMaxPlayTime()}}getUserInfo(){var t;return{mid:(null==(t=this.userStore.info)?void 0:t.mid)||null}}getUserParams(){return(0,Bt.Z)({},{input:this.rootPlayer.input,theme:this.rootPlayer.theme,prefetch:this.rootPlayer.cd})}getElements(){const t=this.rootStore.nodes;return{container:t.container,videoArea:t.videoArea,controlWrap:t.controlWrap,topTitle:t.topTitle,topFollow:t.topFollow,subtitle:t.subtitleWrap,endingPanel:t.endingPanel,qualityBubble:t.bubble,summaryWrap:t.summaryWrap}}getSupportedQualityList(t){var e,i;const n=this.mpdStore.body,r=null==n?void 0:n.mediaDataSource,o=(null==t?void 0:t.formats)||(null==n?void 0:n.supportFormats);if(Array.isArray(o)&&o.length>0){if(r&&("dash"===r.type||(null==n?void 0:n.isPreview))){const r=St().getSupportedVideoIdList(o,{enableHEVC:null!=(e=null==t?void 0:t.enableHEVC)?e:this.configStore.enableHEVC,enableAV1:null!=(i=null==t?void 0:t.enableAV1)?i:this.configStore.enableAV1}),{isDrm:a,drmTechType:s}=n;return a&&s===C.eH.Widevine?r.filter((t=>t!==vt.nJ.alias.UHD_HDR&&t!==vt.nJ.alias.UHD_DVision)):r}return o.map((t=>t.quality))}return null}getSupportedQualityListByFormatPanel(t){const e=this.qualityStore.flattenedFormatPanel.map((({quality:t,codecs:e})=>({quality:t,codecs:e})));return e.length>0?this.getSupportedQualityList(((t,e)=>Wt(t,Zt(e)))(((t,e)=>{for(var i in e||(e={}))qt.call(e,i)&&Kt(t,i,e[i]);if(jt)for(var i of jt(e))Jt.call(e,i)&&Kt(t,i,e[i]);return t})({},t),{formats:t.formats||e})):null}canPlayType(t){var e;const i=[{key:"HEVC",prop:"isHEVCTypeSupported"},{key:"HEVC_HDR10",prop:"isHEVCHDR10TypeSupported"},{key:"HEVC_DolbyVision",prop:"isHEVCDolbyVisionTypeSupported"},{key:"EC3DolbyATMOS",prop:"isEC3DolbyATMOSTypeSupported"},{key:"HEVC_8K",prop:"isHEVC8kTypeSupported"},{key:"AV1",prop:"isAV1TypeSupported"},{key:"FLAC",prop:"isFLACTypeSupported"}];if("string"!=typeof t)return null;if(this.errorStore.state.disableNonDAQ&&/^(FLAC|EC3DolbyATMOS)$/i.test(t))return!1;let n={},r=0;"HEVC_HDR10"===t?r=125:"HEVC_DolbyVision"===t&&(r=126);let o=null==(e=this.mpdStore.body)?void 0:e.supportFormats.filter((t=>t.quality===r));r&&o&&o[0]&&o[0].codecs&&(n.codec=o[0].codecs[0]||"");for(const e of i)try{if(new RegExp(`^${e.key}$`,"i").test(t)&&"function"==typeof St()[e.prop])return St()[e.prop](n)}catch(t){}return null}readFrameAsBlob(t){return Xt(this,null,(function*(){const e=Object.assign({},t),i=Et(this.mediaStore.video,e.width,e.height);return new Promise(((t,e)=>{try{i.toBlob(t,"image/jpeg",.8)}catch(t){e(t)}}))}))}readFrameAsDataURL(t){return Xt(this,null,(function*(){const e=Object.assign({},t);return Et(this.mediaStore.video,e.width,e.height).toDataURL("image/jpeg",.8)}))}getCurrentTime(){const t=this.mediaStore.video,e=this.mediaStore.state.currentTime;return this.patchAdvStore.hasValidAdv?this.patchAdvStore.getCurrentTime():isNaN(t.duration)||t.readyState<1?e:this.mediaStore.video.currentTime}getDuration(t){const e=this.mediaStore.video,i=this.mpdStore.state.suspectDuration,n=this.mediaStore.state.duration;return this.patchAdvStore.hasValidAdv?this.patchAdvStore.getTotalDuration():t?isNaN(e.duration)?n+i:e.duration+i:isNaN(e.duration)?n:e.duration}seek(t,e){
return Xt(this,null,(function*(){const i=this.rootPlayer.disabled.seek||this.rootPlayer.hasFeature("noSeek");this.log.i("[seek]",bt.p`params:${t},alt:${e},disabled:${i}`);const n=(null==e?void 0:e.initiator)||null,a="number"==typeof t?{value:t}:t,s=a.isOffset?this.getCurrentTime()+a.value:a.value,l=performance.now();let A=(0,wt.Z)(s,0,this.getDuration()-.1);if(this.patchAdvStore.hasValidAdv){const e=(0,wt.Z)(t,0,this.getDuration()-.1),{isSameEp:i,t:n,index:r}=this.patchAdvStore.getSeekDecision(e);if(!i)return this.patchAdvStore.setState({index:r}),this.patchAdvStore.patchSwitch(n);A=n}if(i)throw new Error("Seek Disabled");if(isNaN(A))throw new Error("The provided double value is non-finite");this.mediaStore.checkTargetTimeInBufferedRange(A);this.seekDeferred&&(this.seekDeferred=null),this.freeStore.eventAtom.setActionCaller("iSeek",n),this.seekDeferred=this.rootPlayer.addDispose(new It.B),this.mediaStore.setState({seekLoad:!0}),this.rootPlayer.emit(o.t.Player_ProgressBar_Change,new CustomEvent(o.t.Player_ProgressBar_Change,{detail:{progressTime:A,initiator:n}})),this.mediaStore.internalSeek(A),this.dp.seekAction&&this.dp.seekAction(),this.dp.seekAction=(0,r.gx)((()=>!this.mediaStore.state.seeking&&!this.mediaStore.video.seeking),(()=>this.seekDeferred.resolve())),yield this.seekDeferred.promise;Math.round(performance.now()-l);if(null!=a.autoplay)return a.autoplay?this.play(e):this.pause(e)}))}play(t){return Xt(this,null,(function*(){const e=this.rootPlayer.disabled.play;if(this.log.i("[play]",bt.p`alt:${t},disabled:${e}`),e)throw new Error("Play Disabled");this.freeStore.eventAtom.setActionCaller("iPlay",(null==t?void 0:t.initiator)||null);const i=(0,E.z)(this.mediaStore.video);return i.catch((t=>{this.log.w("[play]",t&&t.message),this.freeStore.eventAtom.setActionCaller("iPlay",null)})),i}))}pause(t){const e=this.rootPlayer.disabled.pause;if(this.log.i("[pause]",bt.p`alt:${t},disabled:${e}`),e)throw new Error("Pause Disabled");return this.freeStore.eventAtom.setActionCaller("iPause",(null==t?void 0:t.initiator)||null),this.mediaStore.video.pause()}attachExtState(t){Object.keys(t).forEach((e=>{const i=+e;switch(i){case l.s.Follow:this.upStore.setState({follow:t[e]});break;case l.s.UpInfo:this.upStore.setState(t[e]);break;case l.s.Manuscript:this.storyStore.setState(t[e]);break;case l.s.Premiere:this.premiereStore.setState(t[e]);break;case l.s.ThreeBody:this.danmakuStore.setState({threeBody:t[e]});break;default:this.log.w(`key(${i}) not implemented`)}}))}fetch(t){return Xt(this,null,(function*(){const e=()=>Xt(this,null,(function*(){this.basicIdPromise=this.basicIdPromise||(0,r.gx)((()=>this.configStore.state.isCompleteIdEnded)),yield this.basicIdPromise}));if(t===l.qW.M_Lottie);else yield e();switch(t){case l.qW.I_PlayUrl:return this.httpStore.fetchPlayUrl(!0).then((t=>t.raw));case l.qW.I_UserInfo:return this.httpStore.fetchUserInfo(!0).then((t=>t.response.data));case l.qW.I_ViewInfo:return this.httpStore.fetchViewInfo(!0).then((t=>t.response.data));case l.qW.I_VideoShot:return this.httpStore.fetchVideoShot(!0).then((t=>t.response.data));case l.qW.P_Title:return this.titlePromise=this.titlePromise||(0,r.gx)((()=>null!=this.ctrlStore.title)),yield this.titlePromise,this.ctrlStore.title;case l.qW.M_Lottie:return(0,j.ql)();default:throw new Error("Not Implemented")}}))}getRedirectTime(){const t=this.portStore.getCurrentTime();return t>=1&&t<=this.mediaStore.video.duration-1?t:0}getAdvTotalDuration(t){return t===Ht.Pre?Math.ceil(this.patchAdvStore.prePatchDuration()/1e3):t===Ht.Post?Math.ceil(this.patchAdvStore.postPatchDuration()/1e3):t===Ht.All?Math.ceil((this.patchAdvStore.prePatchDuration()+this.patchAdvStore.postPatchDuration())/1e3):0}toggleQualityToastLock(){this.qualityStore.setState({banQualityToast:!this.qualityStore.state.banQualityToast})}hasValidAdv(){return this.patchAdvStore.hasValidAdv}onDispose(){super.onDispose(),this.basicIdPromise=null,this.titlePromise=null}}var te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,ie=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ee(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&te(e,i,o),o};class ne extends s.u{constructor(t){super(t),this.tag="EndingStore",(0,r.rC)(this)}get defaultState(){return{opened:!1,disabled:!1,backdrop:null}}get isAnyOpened(){return!this.state.disabled&&(this.shareStore.state.opened||this.state.opened)}get selectOption(){return this.shareStore.state.opened?2:this.state.opened?1:0}onMount(){super.onMount();const t=this.nodes.container.querySelector(`.${y.m}-ending-backdrop`);this.dc.disabled=(0,r.U5)((()=>this.state.disabled),(t=>{t&&(this.shareStore.close(),this.close())})),this.dc.endingWrap=(0,r.U5)((()=>this.isAnyOpened),(t=>{t&&this.setBackdrop()})),this.dc.selectChange=(0,r.U5)((()=>this.selectOption),(t=>{this.nodes.endingWrap.setAttribute("data-select",t.toString())})),this.dc.backdropChange=(0,r.U5)((()=>this.state.backdrop),(e=>{return i=this,n=null,r=function*(){const i=yield e,n=i?URL.createObjectURL(i):null,r=n?`url(${n})`:"none";this.revokeOldBlobURL(),t&&(t.style.backgroundImage=r),n&&(this.oldBlobUrl=n)},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r})),this.dc.endPanel=(0,r.U5)((()=>this.state.opened),(t=>{queueMicrotask((()=>{if(this.rootPlayer.isInitialized){if(this.rootPlayer.hasFeature("noEndingPanel"))return;t?(this.log.i("OpenEndPanel"),this.rootPlayer.emit(o.t.Player_Show_EndPanel,new CustomEvent(o.t.Player_Show_EndPanel))):(this.log.i("CloseEndPanel"),this.rootPlayer.emit(o.t.Player_Hide_EndPanel,new CustomEvent(o.t.Player_Hide_EndPanel)))}}))})),this.rootPlayer.on(o.t.Player_Play,(()=>this.close())),this.rootPlayer.on(o.t.Player_Seeking,(()=>this.close()))}open(){this.state.disabled||this.state.opened||this.setState({opened:!0})}close(){this.state.opened&&this.setState({opened:!1})}setBackdrop(){this.state.backdrop||this.setState({backdrop:this.portStore.readFrameAsBlob({width:480}).catch(et.Z)})}revokeOldBlobURL(){this.oldBlobUrl&&(URL.revokeObjectURL(this.oldBlobUrl),this.oldBlobUrl=null)}onDispose(){super.onDispose(),this.close()}onDisconnect(){super.onDisconnect(),this.revokeOldBlobURL()}}ie([r.Fl],ne.prototype,"isAnyOpened",1),ie([r.Fl],ne.prototype,"selectOption",1);var re=i(40636),oe=Object.defineProperty,ae=Object.getOwnPropertyDescriptor;class se extends s.u{constructor(t){super(t),this.tag="AssetStore",this.flvjs=null,(0,r.rC)(this)}onMount(){super.onMount(),this.fetchDashAsset(),this.addLazyActions()}fetchDashAsset(){window.DashPlayer||(window.DashPlayer=St())}addLazyActions(){const t=(0,r.hz)(this,"flvjs",(()=>{t(),(0,j.YE)().then((t=>{window.flvjs||(window.flvjs=t.default),(0,r.z)((()=>{this.flvjs=t.default}))})).catch((t=>{this.log.e(t&&t.message)}))}))}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?ae(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&oe(e,i,o)})([r.LO.shallow],se.prototype,"flvjs",2);var le=i(36471),Ae=i(83899);function ce(t,e){try{if("string"==typeof t){const i=t.match(new RegExp(`${e}: (.*)`,"i"));return i&&i[1]?i[1]:null}if(t instanceof Headers)return t.get(e)}catch(t){}return null}var he=i(54769),de=i(39524),ue=i(69676),pe=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,fe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,be=(t,e,i)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ve=(t,e)=>{for(var i in e||(e={}))me.call(e,i)&&be(t,i,e[i]);if(fe)for(var i of fe(e))ye.call(e,i)&&be(t,i,e[i]);return t},Ee=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ge(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&pe(e,i,o),o};class Ie extends Ae.H{constructor(){super(...arguments),this.switchTimer=null,this.disposers=[],this.userPreferenceSwitchCounters={autoHigher:0,autoLower:0,autoHigherInStartup:0,autoLowerInStartup:0},this.tag="DashAgent",this.kind=Ae.b.Dash}get realVQ(){if(!this.dashPlayer)return NaN;try{const t=this.dashPlayer.getQualityList("video")||[],e=t[this.dashPlayer.getQualityFor("video")]
;return e&&e.hasOwnProperty("id")?+e.id:NaN}catch(t){return NaN}}get realTopVQ(){if(!this.dashPlayer)return NaN;try{const t=this.dashPlayer.getQualityList("video")||[],e=t[t.length-1];return e&&e.hasOwnProperty("id")?+e.id:NaN}catch(t){return NaN}}get realAQ(){if(!this.dashPlayer)return NaN;try{const t=this.dashPlayer.getQualityList("audio")||[],e=t[this.dashPlayer.getQualityFor("audio")];return e&&e.hasOwnProperty("id")?+e.id:NaN}catch(t){return NaN}}get averageThroughput(){const t=this.dashPlayer.getCorePlayer(),e=+t.getAverageThroughput("video"),i=+t.getAverageThroughput("audio");return e&&i?1e3*(e+i)/1024/8/2:e?1e3*e/1024/8:i?1e3*i/1024/8:0}get lastSecondThroughput(){const t=this.dashPlayer&&this.dashPlayer.getVideoInfo();try{return t.statisticsInfo.networkActivity/1024}catch(t){return 0}}get kernelPlayer(){return this.dashPlayer}get codecStrategy(){const t=this.kvStore.state.dashConfig;try{const e=t.codec_strategy;if(!Array.isArray(e))throw new Error("error");e.sort(((t,e)=>t.priority-e.priority));for(let t of e){const e=t.rules;if("version"===t.id){const{version:t}=Ct;if(e[t]&&Array.isArray(e[t]))return e[t]}else if("archive"===t.id){const t=this.configStore.cid;if(e[t]&&Array.isArray(e[t]))return e[t]}else if("fid"===t.id){const t=this.trackStore.getFid();if(e[t]&&Array.isArray(e[t]))return e[t]}else if("gpu"===t.id){const t=he.g.renderer;for(let i in e){if(new RegExp(i,"i").test(t))return e[i]}}else if("ua"===t.id){const t=window.navigator.userAgent;for(let i in e){if(new RegExp(i,"i").test(t))return e[i]}}}}catch(t){}let e=["av1","hevc","avc"];try{e=JSON.parse(this.kvStore.state.dashConfig.default_codec_strategy)}catch(t){e=["av1","hevc","avc"]}return e}seek(t){this.dashPlayer?this.dashPlayer.seek(t).catch((t=>{this.log.w("seek",t&&t.message)})):this.video.currentTime=t}getPlayUrl(){try{return this.dashPlayer?this.dashPlayer.getCurrentPlayURLFor("video")+","+this.dashPlayer.getCurrentPlayURLFor("audio"):super.getPlayUrl()}catch(t){return super.getPlayUrl()}}getPlayingFileName(t){try{if(this.dashPlayer){const e=this.dashPlayer.getCurrentPlayURLFor(t);if(e){const t=e.match(/\/([^\/]+\.m4s)/);return t?t[1]:""}return""}return super.getPlayingFileName(t)}catch(e){return super.getPlayingFileName(t)}}getMpd(){return this.dashPlayer?this.dashPlayer.getMpd():null}attachSource(t,e){var i,n,r;super.attachSource(t);let o={finalAbrStartupQn:vt.nJ.alias.HD_64};this.userPreferenceSwitchCounters={autoHigher:0,autoLower:0,autoHigherInStartup:0,autoLowerInStartup:0},this.disposers.forEach((t=>t())),this.disposers=[],this.dashPlayer&&(this.w(),this.removePlayerEvents(),this.removeProtectionEvents(),this.dashPlayer.destroy());const s=this.rootPlayer,c=s.hasFeature("noAudioStream"),h=this.errorStore.state.disableNonDAQ,d=this.qualityStore.state.reqAudio,u=null==(i=this.mpdStore.body)?void 0:i.quality,p=this.qualityStore.state.reqQuality,g=null==(r=null==(n=this.kvStore.state)?void 0:n.dashConfig)?void 0:r.default_video_quality_cfg,f=this.mpdStore.isHighGradeVideo,m=this.configStore.audioOnlyStartup&&this.rootStore.pageHidden&&this.uiStore.state.sideScreen!==l.dY.Pip,y={isAutoQ:this.qualityStore.isAutoQ,isHighGradeVideo:f};let b=(0,j.Qj)(t,Object.assign(y,g));if(this.qualityStore.isAutoQ){this.setStartupFullscreenState(),o=ue.J.shared.getAbrStartupQualityInfo(b,this.rootStore.expStore.enableStartupModelV2);const t=ue.J.shared.getFullLocalUserPreference();this.log.i(`dvq:${b}; localAbrStartUpQuality: ${JSON.stringify(o)};`),this.log.i(`localUserPreference:${JSON.stringify({realtime:t.realtime,historyStats:t.historyStats,manualSwitch:t.manualSwitch})}`),o&&(b=this.rootStore.expStore.enableStartupModelV2?o.finalAbrStartupQn:Math.max(b,o.finalAbrStartupQn))}const v=(0,j.Zc)(t,h?A.IL.Default:d),E=performance.now(),I=()=>{var t,e,i,n;const r=+(performance.now()-E).toFixed(2),o=(null==(e=null==(t=this.dashPlayer)?void 0:t.getCodecStrategyResult)?void 0:e.call(t))||{},a=ve({aid:this.configStore.aid,cid:this.configStore.cid,dvq:b,isAutoQ:this.qualityStore.isAutoQ,tag:null!=(n=null==(i=this.mpdStore.body)?void 0:i.qualityTag)?n:"",inCost:r},o);this.track.o(x.w.O_PLAYER_INIT,a)},C=()=>{var t,e;if(!this.dashPlayer)throw new Error("dashPlayer does not exist");I(),this.qualityStore.isAutoQ&&(this.dashPlayer.setAutoSwitchQualityFor("video",!0),this.reportSmartABRFinalStartupInfo(o)),this.qualityStore.maxEmbeddedQn?this.dashPlayer.setAutoSwitchQualityFor("video",!0).setAutoSwitchTopQualityFor("video",this.qualityStore.maxEmbeddedQn):this.userStore.isLogin?(this.qualityStore.deviceSmoothLimit=(null==(e=(t=this.dashPlayer).getHighestSmoothVideoQn)?void 0:e.call(t))||vt.nJ.alias.UHD_4K,this.dashPlayer.setAutoSwitchTopQualityFor("video",this.qualityStore.ABRTopQualityLimit),this.dashPlayer.setAutoSwitchLowestQualityFor("video",vt.nJ.gt.abrMin)):(this.dashPlayer.setAutoSwitchTopQualityFor("video",this.uiStore.kind===l.HR.Ugc?vt.nJ.gt.ugcLogin:vt.nJ.gt.login),this.dashPlayer.setAutoSwitchLowestQualityFor("video",vt.nJ.gt.ugcLogin)),this.recordSessionInitInfo()};this.log.i(`daq:${v},dvq:${b};rawVQ:${u},reqVQ:${p}`),ue.J.shared.updateCurrentStartupQuality(b),this.dashPlayer=new(St())(this.video,{defaultAudioQuality:v,defaultVideoQuality:b,isAutoPlay:!1,enableHEVC:this.configStore.enableHEVC,enableAV1:this.configStore.enableAV1,enableMultiAudioTracks:(()=>{try{const e=t.mediaDataSource.url;return e.audio[0].codecs.split(",").length>1}catch(t){}return!1})()&&St().isMultiAudioTracksSupported(),abrStrategy:St().STRING.ABR_BOLA,stableBufferTime:this.kernelStore.getDynamicBuffer()[0]||20,preloadData:t.mediaDataSource.preloadAVData,hid:s.iid,codecStrategy:this.codecStrategy,protectionDataSet:null==e?void 0:e.protectionData,ignoreEmeEncryptedEvent:null==e?void 0:e.ignoreEmeEncryptedEvent,mediaSourceLoader:(()=>{if(this.configStore.fromLocalCache){return t=>(0,de.$)(this.rootPlayer,ve({type:"video",cid:this.configStore.cid},t))}return null})(),enableExtraFrames:(()=>{var t,e;try{return!!(null==(e=null==(t=this.kvStore.state)?void 0:t.dashConfig)?void 0:e.enable_extra_frames)}catch(t){}return!1})(),enableSourceChangeType:(()=>this.rootStore.expStore.enableSourceChangeType)(),audioOnlyStartup:m,enableFastSwitchQn:this.rootStore.expStore.enableFastSwitchQn}),this.dashPlayer.initialize((()=>{const e=(0,Bt.Z)({},t.mediaDataSource.url);return c&&e&&e.audio&&(e.audio=null),JSON.parse(JSON.stringify(e))})()).then((()=>{C(),m&&(this.rootStore.pageHidden&&this.uiStore.state.sideScreen!==l.dY.Pip?(this.mediaStore.markVideoDisabledByBackground(!0),this.rootPlayer.track.e("audio_only_startup")):this.enableVideo(!0))})).catch((t=>{this.isOffscreen||this.rootPlayer.emit(a.p.ERROR_DASH_INITIALIZE,t)}))}attachEvent(){super.attachEvent(),this.addPlayerEvents(),this.addProtectionEvents(),this.observeFullScreenChanges()}addPlayerEvents(){const t=this.dashPlayer.getCorePlayer();t&&(t.on(St().EVENTS.PLAYBACK_PROGRESS,this.onPlaybackProgress),t.on(St().EVENTS.FRAGMENT_LOADING_HEADER_RECEIVED,this.onHttpHeaderReceived),t.on(St().EVENTS.QUOTA_EXCEEDED,this.onQuotaExceeded),t.on("requestRetryed",this.onRequestRetried),t.on(St().EVENTS.PREDICT_SEEK,this.onPredictSeek),t.on(St().EVENTS.JUMP_MEDIA_GAP,this.onJumpMediaGap),t.on(St().EVENTS.STREAM_BUFFERING_COMPLETED,this.onStreamBufferingCompleted),t.on(St().EVENTS.SPLIT_GAP_AFTER_APPEND_CHUNK,this.onSplitGapAfterAppended),t.on(St().EVENTS.PADDING_FRAMES_SUCCESS,this.onPaddingFrameSuccess),t.on(St().EVENTS.FIX_AV_SYNC,this.onFixAVSyncSuccess),this.dashPlayer.on(St().EVENTS.ERROR,this.onError),this.dashPlayer.on(St().EVENTS.VIDEO_INFO,this.onVideoInfo),this.dashPlayer.on(St().EVENTS.QUALITY_CHANGE_REQUESTED,this.onQualityRequested),this.dashPlayer.on(St().EVENTS.QUALITY_CHANGE_RENDERED,this.onQualityRendered),this.dashPlayer.on(St().EVENTS.BUFFERING_OPTIMIZATION,this.onBufferingOptimization),this.dashPlayer.on(St().EVENTS.WARNING,this.onWarning),this.dashPlayer.on(St().EVENTS.SOURCE_BUFFER_CHANGE_TYPE,this.onSourceBufferChangeType))}removePlayerEvents(){if(this.dashPlayer){this.dashPlayer.off(St().EVENTS.ERROR,this.onError),this.dashPlayer.off(St().EVENTS.VIDEO_INFO,this.onVideoInfo),
this.dashPlayer.off(St().EVENTS.QUALITY_CHANGE_REQUESTED,this.onQualityRequested),this.dashPlayer.off(St().EVENTS.QUALITY_CHANGE_RENDERED,this.onQualityRendered),this.dashPlayer.off(St().EVENTS.BUFFERING_OPTIMIZATION,this.onBufferingOptimization),this.dashPlayer.off(St().EVENTS.WARNING,this.onWarning),this.dashPlayer.off(St().EVENTS.SOURCE_BUFFER_CHANGE_TYPE,this.onSourceBufferChangeType);const t=this.dashPlayer.getCorePlayer();t&&(t.off(St().EVENTS.PLAYBACK_PROGRESS,this.onPlaybackProgress),t.off(St().EVENTS.FRAGMENT_LOADING_HEADER_RECEIVED,this.onHttpHeaderReceived),t.off(St().EVENTS.QUOTA_EXCEEDED,this.onQuotaExceeded),t.off("requestRetryed",this.onRequestRetried),t.off(St().EVENTS.PREDICT_SEEK,this.onPredictSeek),t.off(St().EVENTS.JUMP_MEDIA_GAP,this.onJumpMediaGap),t.off(St().EVENTS.STREAM_BUFFERING_COMPLETED,this.onStreamBufferingCompleted),t.off(St().EVENTS.SPLIT_GAP_AFTER_APPEND_CHUNK,this.onSplitGapAfterAppended),t.off(St().EVENTS.PADDING_FRAMES_SUCCESS,this.onPaddingFrameSuccess),t.off(St().EVENTS.FIX_AV_SYNC,this.onFixAVSyncSuccess))}}addProtectionEvents(){const t=this.dashPlayer.getCorePlayer();t&&(t.on(St().EVENTS.KEY_ERROR,this.onKeyError),t.on(St().EVENTS.KEY_MESSAGE,this.onKeyMessage),t.on(St().EVENTS.KEY_SESSION_CLOSED,this.onKeySessionClosed),t.on(St().EVENTS.KEY_SESSION_CREATED,this.onKeySessionCreated),t.on(St().EVENTS.KEY_SESSION_REMOVED,this.onKeySessionRemoved),t.on(St().EVENTS.KEY_STATUSES_CHANGED,this.onKeyStatusesChanged),t.on(St().EVENTS.KEY_SYSTEM_SELECTED,this.onKeySystemSelected),t.on(St().EVENTS.KEY_SYSTEM_ACCESS_COMPLETE,this.onKeySystemAccessComplete),t.on(St().EVENTS.LICENSE_REQUEST_COMPLETE,this.onLicenseReqComplete),t.on(St().EVENTS.PROTECTION_CREATED,this.onProtectionCreated),t.on(St().EVENTS.PROTECTION_DESTROYED,this.onProtectionDestroyed))}removeProtectionEvents(){if(this.dashPlayer){const t=this.dashPlayer.getCorePlayer();t&&(t.off(St().EVENTS.KEY_ERROR,this.onKeyError),t.off(St().EVENTS.KEY_MESSAGE,this.onKeyMessage),t.off(St().EVENTS.KEY_SESSION_CLOSED,this.onKeySessionClosed),t.off(St().EVENTS.KEY_SESSION_CREATED,this.onKeySessionCreated),t.off(St().EVENTS.KEY_SESSION_REMOVED,this.onKeySessionRemoved),t.off(St().EVENTS.KEY_STATUSES_CHANGED,this.onKeyStatusesChanged),t.off(St().EVENTS.KEY_SYSTEM_SELECTED,this.onKeySystemSelected),t.off(St().EVENTS.KEY_SYSTEM_ACCESS_COMPLETE,this.onKeySystemAccessComplete),t.off(St().EVENTS.LICENSE_REQUEST_COMPLETE,this.onLicenseReqComplete),t.off(St().EVENTS.PROTECTION_CREATED,this.onProtectionCreated),t.off(St().EVENTS.PROTECTION_DESTROYED,this.onProtectionDestroyed))}}onError(t){this.reportMpdList(!0),this.rootPlayer.emit(a.p.ERROR_DASH_KERNEL,t)}onHttpHeaderReceived(t){switch(t.request.mediaType){case"video":this.kernelStore.setState({vTag:ce(t.headers,"x-service-module")});break;case"audio":this.kernelStore.setState({aTag:ce(t.headers,"x-service-module")})}}reportMpdList(t=!1){try{if(this.dashPlayer){const e=this.dashPlayer.getMpd();if(e){const i=this.qualityStore.realQ,n=this.qualityStore.realAQ,r=(t,i)=>{const n=e[i].find((e=>e.id===t)),r=e[i].filter((t=>t.codecs===n.codecs)),o=t=>{try{return new URL(t).host.split(".")[0]||""}catch(t){return""}};return n?{id:n.id,type:i,base:o(n.base_url),backup:n.backup_url.map((t=>o(t))),bl:r.map((t=>t.bandwidth))}:null},o=r(n,"audio"),a=r(i,"video"),s={error:t,audio:o?[o]:[],video:a?[a]:[]};this.track.o(x.w.O_MPD_LIST,s)}}}catch(t){}}onStreamBufferingCompleted(){this.rootPlayer.emit(a.p.PLAYER_STREAM_BUFFERING_COMPLETED)}onJumpMediaGap(t){const e={ct:null==t?void 0:t.time,des:null==t?void 0:t.seekToPosition,end:null==t?void 0:t.toEnd};this.track.o("jump_media_gap",e)}onSplitGapAfterAppended(t){this.track.o("split_gap",{from:null==t?void 0:t.from,to:null==t?void 0:t.to,mediaType:null==t?void 0:t.mediaType,index:null==t?void 0:t.index})}onPaddingFrameSuccess(t){this.track.o("padding_gap_success",{type:null==t?void 0:t.mediaType,start:null==t?void 0:t.start,end:null==t?void 0:t.end})}onFixAVSyncSuccess(t){this.track.o("fix_av_sync_success",t)}onPredictSeek(t){const e={ct:null==t?void 0:t.currentTime,des:null==t?void 0:t.destination,type:null==t?void 0:t.mediaTypes};this.track.o("predict_seek",e)}observeFullScreenChanges(){const t=this.configStore.session,e=(0,r.U5)((()=>({mainScreen:this.uiStore.state.mainScreen,sideScreen:this.uiStore.state.sideScreen})),(({mainScreen:e,sideScreen:i})=>{var n;const r=e===l.dY.Web||i===l.dY.Full;r&&this.uiStore.kind===l.HR.Ugc&&ue.J.shared.setCurrentPlaybackInfoByDisplayid(t,{[ue.J.RECORD_KEY.FULLSCREEN]:1});const o=screen.width*devicePixelRatio,a=screen.height*devicePixelRatio;(o>=2400||a>=2400)&&r&&(this.log.i("Fullscreen to set auto switch to 4K"),null==(n=this.dashPlayer)||n.setAutoSwitchTopQualityFor("video",vt.nJ.alias.UHD_4K))}),{fireImmediately:!0});this.disposers.push(e)}reportSmartABRFinalStartupInfo(t){this.track.o(x.w.O_SMART_ABR_FINAL_STARTUP_INFO,ve({},t))}reportSmartABRInfo(){const t=ue.J.shared.getFullLocalUserPreference(),e=this.qualityStore.lastAbrTopLimitResult;this.track.o(x.w.O_SMART_ABR_INFO,{realtime:t.realtime,historyStats:t.historyStats,manualSwitch:t.manualSwitch,clusterType:null==e?void 0:e.clusterType,abrTopLimit:null==e?void 0:e.topLimit,deviceLimit:null==e?void 0:e.deviceLimit,clusterLimit:null==e?void 0:e.clusterLimit,manualLimit:null==e?void 0:e.manualLimit,idle:null==e?void 0:e.idle})}saveLocalPlaybackInfo(){if(this.uiStore.kind!==l.HR.Ugc)return;const t=this.metricStore.getRelativePlayTime();if(t<10)return;const e=this.configStore.session,i=this.qualityStore.realQ;this.qualityStore.isAutoQ&&ue.J.shared.setLastAutoPlaybackInfo({quitQn:i,topQn:this.qualityStore.ABRTopQualityLimit||i});const n=ue.J.shared.getRealtimeContext(),r=this.userPreferenceSwitchCounters;ue.J.shared.setCurrentPlaybackInfoByDisplayid(e,{[ue.J.RECORD_KEY.STARTUP_QUALITY_NUMBER]:n.startupQualityNumber||0,[ue.J.RECORD_KEY.STARTUP_QUALITY_INDEX]:n.startupQualityIndex||0,[ue.J.RECORD_KEY.TOP_QUALITY_NUMBER]:n.topQualityNumber||0,[ue.J.RECORD_KEY.TOP_QUALITY_INDEX]:n.topQualityIndex||0,[ue.J.RECORD_KEY.IS_AUTO]:n.isAuto?1:0,[ue.J.RECORD_KEY.QUIT_REALTIME]:t,[ue.J.RECORD_KEY.QUIT_QUALITY_NUMBER]:i,[ue.J.RECORD_KEY.ARCHIVE_DURATION]:n.duration||0,[ue.J.RECORD_KEY.STARTUP_HOUR]:n.nowHour||-1,[ue.J.RECORD_KEY.AUTO_SWITCH_HIGHER]:r.autoHigher,[ue.J.RECORD_KEY.AUTO_SWITCH_LOWER]:r.autoLower,[ue.J.RECORD_KEY.AUTO_SWITCH_HIGHER_IN_STARTUP]:r.autoHigherInStartup,[ue.J.RECORD_KEY.AUTO_SWITCH_LOWER_IN_STARTUP]:r.autoLowerInStartup},!0)}recordSessionInitInfo(){if(this.uiStore.kind!==l.HR.Ugc)return;let t=!1;const e=(0,r.U5)((()=>this.userStore.info),(()=>{ue.J.shared.setCurrentRealtimeInfo({isLogin:this.userStore.isLogin?1:0,isVip:this.userStore.isSuperUser?1:0}),this.userStore.info&&!t&&(this.reportSmartABRInfo(),t=!0)}),{fireImmediately:!0});this.disposers.push(e)}setStartupFullscreenState(){var t,e,i,n;const r=(null==(e=null==(t=this.uiStore)?void 0:t.state)?void 0:e.mainScreen)===l.dY.Web||(null==(n=null==(i=this.uiStore)?void 0:i.state)?void 0:n.sideScreen)===l.dY.Full;ue.J.shared.setCurrentRealtimeInfo({isInFullScreen:r})}onVideoInfo(t){const e=t.mediaInfo;e&&Object.keys(e).length&&this.menuStore.setVideoInfo(t,"DashPlayer")}onQualityRequested(t){const e=this.metricStore.getRelativePlayTime()<20;if(t.isAutoSwitch&&"video"===t.mediaType){const i=this.dashPlayer.getQualityList(t.mediaType)[t.newQuality];this.track.o(x.w.O_Auto_Switch_Requested,{oldQ:t.oldQualityNumber,newQ:t.newQualityNumber,bitrate:Math.floor(i.bitrate/1e3),throughput:t.dict&&t.dict.throughput,reason:t.reason||""}),this.qualityStore.qualityAtom.triggerRequestedEvent({mediaType:"video",isAutomatic:!0,oldQ:t.oldQualityNumber,newQ:t.newQualityNumber}),t.newQualityNumber>t.oldQualityNumber?(this.userPreferenceSwitchCounters.autoHigher++,e&&this.userPreferenceSwitchCounters.autoHigherInStartup++):t.newQualityNumber<t.oldQualityNumber&&(this.userPreferenceSwitchCounters.autoLower++,e&&this.userPreferenceSwitchCounters.autoLowerInStartup++)}}onQualityRendered(t){if("video"===t.mediaType&&!isNaN(t.oldQuality))if(t.isAutoSwitch){const e=this.dashPlayer.getQualityList(t.mediaType)[t.newQuality];this.track.o(x.w.O_Auto_Switch_Rendered,{
oldQ:t.oldQualityNumber,newQ:t.newQualityNumber,bitrate:Math.floor(e.bitrate/1e3),throughput:t.dict&&t.dict.throughput,cost:t.cost,fastSwitchQn:this.rootStore.expStore.enableFastSwitchQn}),this.qualityStore.qualityAtom.triggerRenderedEvent({mediaType:"video",isAutomatic:!0,oldQ:t.oldQualityNumber,newQ:t.newQualityNumber})}else t.newQualityNumber&&(this.log.i("[onQualityRendered]",t.newQualityNumber),this.qualityStore.setRenderedQuality(null,t.newQualityNumber))}onQuotaExceeded(t){const e=this.kernelStore.state.mseQuotaExceeded+1;this.kernelStore.setState({mseQuotaExceeded:e}),this.log.w("[QuotaExceeded]",e),this.dashPlayer&&this.dashPlayer.setStableBufferTime(30),this.track.o(x.w.O_Quota_Exceeded,{type:t.mediaType,cbl:t.criticalBufferLevel})}onPlaybackProgress(){const t=this.dashPlayer.getCorePlayer();if(t){const e=t.getBufferLength("audio"),i=t.getBufferLength("video");this.mediaStore.setState({aBufferLength:e,vBufferLength:i})}}onBufferingOptimization(t){this.track.o(x.w.O_Buffering_Optimization,{val:t&&t.type})}onWarning(t){t&&t.code&&t.msg&&-1!==t.code&&this.track.o(x.w.O_Load_Dash_Warning,{code:t.code,msg:t.msg,srcUrl:t.detail&&t.detail.url},{exParam:this.kernelStore.serviceModule})}onSourceBufferChangeType(t){this.track.o(x.w.O_SOURCE_BUFFER_CHANGE_TYPE,t)}onRequestRetried(){if(this.episodeStore.isFirst&&!this.mediaStore.state.isMetadataLoaded)this.kernelStore.setState({streamRetries:++this.kernelStore.state.streamRetries});else{const t=this.dashPlayer.getCorePlayer();t&&t.off("requestRetryed",this.onRequestRetried)}}onKeyError(t){var e,i,n;this.log.e(t.type,null==(e=t.data)?void 0:e.error),this.track.o(x.w.O_DRM_Key_Error,{type:t.type,message:null==(i=t.data)?void 0:i.error}),this.mpdStore.fallback(K.KEY_ERROR,"onKeyError",null==(n=t.data)?void 0:n.error)}onKeyMessage(t){var e;this.log.i(t.type,null==(e=t.data)?void 0:e.messageType)}onKeySessionClosed(t){t.error?(this.log.e(t.type,t.error),this.mpdStore.fallback(K.KEY_SESSION_ERROR,"onKeySessionClosed",t.error)):this.log.i(t.type)}onKeySessionCreated(t){t.error?(this.log.e(t.type,t.error),this.mpdStore.fallback(K.KEY_SESSION_ERROR,"onKeySessionCreated",t.error)):this.log.i(t.type)}onKeySessionRemoved(t){t.error?(this.log.e(t.type,t.error),this.mpdStore.fallback(K.KEY_SESSION_ERROR,"onKeySessionRemoved",t.error)):this.log.i(t.type)}onKeySystemSelected(t){var e,i;t.error?(this.log.e(t.type,t.error),this.mpdStore.fallback(K.KEY_SYSTEM_SELECTED_ERROR,"onKeySystemSelected",t.error)):this.log.i(t.type,`ks:${null==(i=null==(e=t.data)?void 0:e.mksa)?void 0:i.keySystem}`)}onKeySystemAccessComplete(t){t.error?(this.log.e(t.type,t.error),this.mpdStore.fallback(K.KEY_SYSTEM_ACCESS_ERROR,"onKeySystemAccessComplete",t.error)):this.log.i(t.type)}onLicenseReqComplete(t){t.error?(this.log.e(t.type,t.error),this.mpdStore.fallback(K.LICENSE_REQUEST_ERROR,"onLicenseReqComplete",t.error)):this.log.i(t.type)}onKeyStatusesChanged(t){this.log.i(t.type)}onProtectionCreated(t){this.log.i(t.type)}onProtectionDestroyed(t){this.log.i(t.type)}disableVideo(t){this.log.i("disableVideo called, saveLastFrame:",!!t);try{if(t&&this.video.videoWidth&&this.video.videoHeight){const t=document.createElement("canvas");t.width=this.video.videoWidth,t.height=this.video.videoHeight;t.getContext("2d").drawImage(this.video,0,0,t.width,t.height),this.mediaStore.setState({lastVideoFrameDataUrl:t.toDataURL("image/jpeg",.8)})}this.kernelStore.removeVideoBuffer(),this.log.i("video buffer removed, video disabled")}catch(t){this.log.e("disableVideo error",t)}}enableVideo(t){this.log.i("enableVideo called, transition:",!!t);try{if(this.switchTimer&&(window.clearTimeout(this.switchTimer),this.switchTimer=null),!this.data)return this.log.w("enableVideo: no media data, fallback to recreateVideoBuffer"),void this.kernelStore.recreateVideoBuffer();const t=performance.now(),{kernelStore:e}=this.rootStore;if(e.state.fakeSwitching)return void this.log.w("enableVideo: fakeSwitching in progress, fallback");if(e.state.fakeEnableVideoSwitching)return void this.log.w("enableVideo: fakeEnableVideo already in progress, skip");e.fakeEnableVideo(this.data,(i=>{const n=Math.round(performance.now()-t)/1e3;this.track.e("fake_switch_canplay",{duration:n,qn:this.qualityStore.realQ,mode:"fakeEnableVideo"}),i&&e.replaceBaseAgent(i),this.mediaStore.setState({lastVideoFrameDataUrl:null})}))}catch(t){this.log.e("enableVideo error",t),this.kernelStore.recreateVideoBuffer()}}dispose(){this.saveLocalPlaybackInfo(),super.dispose(),this.disposers.forEach((t=>t())),this.disposers=[],this.removePlayerEvents(),this.removeProtectionEvents(),this.dashPlayer&&(this.dashPlayer.destroy(),this.dashPlayer=null)}}Ee([n.ZP],Ie.prototype,"onError",1),Ee([n.ZP],Ie.prototype,"onHttpHeaderReceived",1),Ee([n.ZP],Ie.prototype,"onStreamBufferingCompleted",1),Ee([n.ZP],Ie.prototype,"onJumpMediaGap",1),Ee([n.ZP],Ie.prototype,"onSplitGapAfterAppended",1),Ee([n.ZP],Ie.prototype,"onPaddingFrameSuccess",1),Ee([n.ZP],Ie.prototype,"onFixAVSyncSuccess",1),Ee([n.ZP],Ie.prototype,"onPredictSeek",1),Ee([n.ZP],Ie.prototype,"observeFullScreenChanges",1),Ee([n.ZP],Ie.prototype,"onVideoInfo",1),Ee([n.ZP],Ie.prototype,"onQualityRequested",1),Ee([n.ZP],Ie.prototype,"onQualityRendered",1),Ee([n.ZP],Ie.prototype,"onQuotaExceeded",1),Ee([n.ZP],Ie.prototype,"onPlaybackProgress",1),Ee([n.ZP],Ie.prototype,"onBufferingOptimization",1),Ee([n.ZP],Ie.prototype,"onWarning",1),Ee([n.ZP],Ie.prototype,"onSourceBufferChangeType",1),Ee([n.ZP],Ie.prototype,"onRequestRetried",1),Ee([n.ZP],Ie.prototype,"onKeyError",1),Ee([n.ZP],Ie.prototype,"onKeyMessage",1),Ee([n.ZP],Ie.prototype,"onKeySessionClosed",1),Ee([n.ZP],Ie.prototype,"onKeySessionCreated",1),Ee([n.ZP],Ie.prototype,"onKeySessionRemoved",1),Ee([n.ZP],Ie.prototype,"onKeySystemSelected",1),Ee([n.ZP],Ie.prototype,"onKeySystemAccessComplete",1),Ee([n.ZP],Ie.prototype,"onLicenseReqComplete",1),Ee([n.ZP],Ie.prototype,"onKeyStatusesChanged",1),Ee([n.ZP],Ie.prototype,"onProtectionCreated",1),Ee([n.ZP],Ie.prototype,"onProtectionDestroyed",1);var Ce=i(30421),Be=Object.defineProperty,we=Object.getOwnPropertyDescriptor,xe=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?we(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Be(e,i,o),o};class Qe extends Ae.H{constructor(){super(...arguments),this.internalQuality=NaN,this.tag="FlvAgent",this.kind=Ae.b.Flv}get realVQ(){return this.internalQuality}get realTopVQ(){return-1}get realAQ(){return Ce.vJ}get averageThroughput(){try{return this.flvPlayer._transmuxer._controller._ioctl._speedSampler.averageKBps}catch(t){return 0}}get lastSecondThroughput(){try{return this.flvPlayer._transmuxer._controller._ioctl._speedSampler.lastSecondKBps/8}catch(t){return 0}}get kernelPlayer(){return this.flvPlayer}seek(t){this.video.currentTime=t}getPlayUrl(){try{return this.flvPlayer&&(this.flvPlayer.statisticsInfo.redirectedURL||this.flvPlayer.statisticsInfo.url)||super.getPlayUrl()}catch(t){return super.getPlayUrl()}}getPlayingFileName(){try{const t=this.getPlayUrl();if(t){const e=t.match(/\/([^\/]+\.(mp4|flv))/);return e?e[1]:""}}catch(t){return""}}attachSource(t){super.attachSource(t);const e={enableWorker:!1,accurateSeek:!0,stashInitialSize:65536,seekType:this.data.seekType,rangeLoadZeroStart:!1,lazyLoadMaxDuration:100,lazyLoadRecoverDuration:50,deferLoadAfterSourceOpen:!1,fixAudioTimestampGap:!1,reuseRedirectedURL:!0};(w.X.safari.alike||w.X.edge.alike||w.X.trident.alike)&&(e.enableWorker=!1,e.lazyLoadMaxDuration=100),this.assetStore.flvjs.LoggingControl.forceGlobalTag=!0,this.assetStore.flvjs.LoggingControl.enableVerbose=!1,this.flvPlayer&&(this.w(),this.removePlayerEvents(),this.flvPlayer.destroy()),this.flvPlayer=this.assetStore.flvjs.createPlayer(this.data.mediaDataSource,e),this.flvPlayer.attachMediaElement(this.video),this.flvPlayer.load(),this.internalQuality=this.data.quality}attachEvent(){super.attachEvent(),this.addPlayerEvents()}addPlayerEvents(){const t=this.assetStore.flvjs;t.LoggingControl.addLogListener(this.onEarlyEOF),this.flvPlayer.on(t.Events.ERROR,this.onError),this.flvPlayer.on(t.Events.LOADING_COMPLETE,this.onLoadingComplete),this.flvPlayer.on(t.Events.HTTP_HEADER_RECEIVED,this.onHttpHeaderReceived),
this.flvPlayer.on(t.Events.STATISTICS_INFO,this.onVideoInfo),this.flvPlayer.on(t.Events.CTS_WARNING,this.onCtsWarning),this.flvPlayer.on(t.Events.FLV_DATA_ABNORMAL,this.onFlvDataAbnormal),this.flvPlayer.on(t.Events.RECOVERED_EARLY_EOF,this.onRecoveredEarlyEOF)}removePlayerEvents(){const t=this.assetStore.flvjs;t.LoggingControl.removeLogListener(this.onEarlyEOF),this.flvPlayer&&t&&(this.flvPlayer.off(t.Events.ERROR,this.onError),this.flvPlayer.off(t.Events.LOADING_COMPLETE,this.onLoadingComplete),this.flvPlayer.off(t.Events.HTTP_HEADER_RECEIVED,this.onHttpHeaderReceived),this.flvPlayer.off(t.Events.STATISTICS_INFO,this.onVideoInfo),this.flvPlayer.off(t.Events.CTS_WARNING,this.onCtsWarning),this.flvPlayer.off(t.Events.FLV_DATA_ABNORMAL,this.onFlvDataAbnormal),this.flvPlayer.off(t.Events.RECOVERED_EARLY_EOF,this.onRecoveredEarlyEOF))}onError(t,e,i){this.rootPlayer.emit(a.p.ERROR_FLV_KERNEL,t,e,i)}onLoadingComplete(t){try{const e=t.metadata.filesize,i=t.to,n=t.requestUrl;e&&i&&e!==i+1&&this.track.o(x.w.O_Abnormal_Segment_ByteLength,{length:i+1,filesize:e,requestUrl:n})}catch(t){}}onHttpHeaderReceived(t,e,i){this.kernelStore.setState({aTag:null,vTag:ce(i,"x-service-module")})}onVideoInfo(t){const e=this.flvPlayer.mediaInfo;e&&Object.keys(e).length&&this.menuStore.setVideoInfo({mediaInfo:e,statisticsInfo:t},this.flvPlayer.type)}onEarlyEOF(t,e){"string"==typeof e&&e.indexOf("code = -1, msg = Fetch stream meet Early-EOF")>-1&&(this.metricStore.earlyEOFSymbol||(this.track.o(x.w.O_Range_Early_EOF),this.metricStore.setEarlyEOFSymbol(!0)))}onCtsWarning(t){this.track.o(x.w.O_Video_Cts_Warning,t?{cts:t.cts,dts:t.dts}:null)}onFlvDataAbnormal(t){this.track.o(x.w.O_Flv_Data_Abnormal,t?{type:t.type,dts:t.dts}:null)}onRecoveredEarlyEOF(){this.errorStore.err(q.VIDEO_ERROR,J.NETWORK_RECOVERED_EARLY_EOF,`url:${this.portStore.getPlayUrl()},message:RecoveredEarlyEof`)}dispose(){super.dispose(),this.removePlayerEvents(),this.flvPlayer&&(this.flvPlayer.destroy(),this.flvPlayer=null)}}xe([n.ZP],Qe.prototype,"onError",1),xe([n.ZP],Qe.prototype,"onLoadingComplete",1),xe([n.ZP],Qe.prototype,"onHttpHeaderReceived",1),xe([n.ZP],Qe.prototype,"onVideoInfo",1),xe([n.ZP],Qe.prototype,"onEarlyEOF",1),xe([n.ZP],Qe.prototype,"onCtsWarning",1),xe([n.ZP],Qe.prototype,"onFlvDataAbnormal",1),xe([n.ZP],Qe.prototype,"onRecoveredEarlyEOF",1);class Se extends s.f{constructor(){super(...arguments),this.tag="SeamlessAtom",this.offscreenVideo=!1,this.switchDisposer=null}fakeSwitch(t,e){this.log.i("[fakeSeamlessProxy]"),this.switchDisposer&&(this.switchDisposer(),this.switchDisposer=null);const{mediaStore:i,qualityStore:n,wmpStore:o,kernelStore:s}=this.rootStore,l="[fakeSeamless]",c=(()=>{const t=this.rootStore.qualityStore,e=vt.nJ.alias.FHD_116,i=vt.nJ.alias.UHD_4K,n=vt.nJ.alias.UHD_8K;let r=0;switch(t.state.nowQuality){case n:r+=1;break;case i:r+=.5;break;case e:r+=.25}switch(t.state.newQuality){case n:r+=1;break;case i:r+=.5;break;case e:r+=.25}if(t.state.newAudio===A.IL.Flac)r+=1;return(0,wt.Z)(6+r,5,8)})(),h=i.video,d=o.createNewVideoElement(n.state.newQuality,t.mediaDataSource.url);let u=null,p=null,g=null;const f=()=>{clearTimeout(u),clearTimeout(p)},m=t=>{this.log.i(l,`currentTime:${h.currentTime},seekOffset:${t}`);const e=h.currentTime+t;v(e)},b=t=>{(0,E.z)(d).then((()=>{this.log.i(l,`[play:${t}] done`)})).catch((e=>{this.log.e(l,`[play:${t}] fail: ${e&&e.message}`)}))},v=t=>{d.currentTime!==t&&(g?g.seek(t):d.currentTime=t)},I=()=>{clearTimeout(p),p=window.setTimeout((()=>{this.log.w(l,`from:timeout(${c}s)`),k()}),1e3*c)},C=t=>{clearTimeout(u),u=window.setTimeout((()=>{this.log.i(l,`from:${t}`),k()}),1e3*(d.currentTime-h.currentTime)/h.playbackRate)},B=()=>{g&&(g.attachEvent(),this.log.i(l,"events attached"),g=null)},w=()=>{if(M.forEach((t=>{h.removeEventListener(t.type,t.callback)})),T.forEach((t=>{d[t.prop]=null})),g)switch(g.kind){case Ae.b.Dash:{const t=g.kernelPlayer;t&&t.off(St().EVENTS.ERROR,_);break}case Ae.b.Flv:{const t=g.kernelPlayer;t&&t.off(this.rootStore.assetStore.flvjs.Events.ERROR,R);break}}},x=()=>{if(isNaN(h.duration)||h.error)return;const t=d.currentTime,e=h.currentTime,i=Math.abs(t-e),n=h.ended,r=h.paused,o=d.ended;(i>1||n||o)&&(d.currentTime=r?e:e+1*h.playbackRate,this.log.w(l,"[tryForceFixTime]",`nc:${t},oc:${e},diff:${i}`),!o||n||r||(this.log.w(l,"[ForceSyncState]"),(0,E.z)(d).then((()=>{this.log.i(l,"[ForceSyncState]","done")})).catch((t=>{this.log.e(l,"[ForceSyncState]","fail",t&&t.message)}))))},Q=()=>{this.log.w(l,"[catchPrimaryError]");const{mediaStore:t}=this.rootStore,e=t.state.paused,i=t.state.progressTime;v(i),e?d.pause():b("catchPrimaryError"),k()},S=()=>{w(),f(),g&&(s.cacheLogTimely(g),g.dispose(),g=null),d.parentElement&&d.parentElement.removeChild(d),this.offscreenVideo=!1,this.switchDisposer=null},k=()=>{this.log.i(l,"[done]"),this.switchDisposer=null,f(),w(),x(),this.rootStore.mediaStore.replaceElement(d),e(g),B(),this.offscreenVideo=!1,this.rootPlayer.emit(a.p.PLAYER_MEDIA_CHANGED)},D=(t,i)=>{this.log.e(l,"[fail]",`from:${t};msg:${i}`);const{wmpStore:n,qualityStore:r}=this.rootStore;n.isUseWasmPlayer(d)&&n.onWasmPlayerError(d,null==d?void 0:d.bwpError,!0),S(),r.setRenderedQuality(new Error(i),r.state.nowQuality),e(null)},_=t=>{const e=t?`type:${t.type};code:${t.code};msg:${t.msg}`:null,i="[DASH]";this.log.e(l,i,e),D(i,e)},R=(t,e,i)=>{const n=`type:${t};details:${e};code:${null==i?void 0:i.code};msg:${null==i?void 0:i.msg}`,r="[FLV]";this.log.e(l,r,n),D(r,n)},M=[{type:"ratechange",callback:()=>{d.playbackRate===h.playbackRate&&d.defaultPlaybackRate===h.defaultPlaybackRate||(d.playbackRate=h.playbackRate,d.defaultPlaybackRate=h.defaultPlaybackRate,this.log.i(l,`playbackRate:${h.playbackRate}`))},fireImmediately:!0},{type:"ratechange",callback:()=>{C("RatechangeEvent")}},{type:"volumechange",callback:()=>{d.volume=h.volume,this.log.i(l,`volume:${h.volume}`)},fireImmediately:!0},{type:"play",callback:()=>{b("PlayEvent")}},{type:"pause",callback:()=>{d.pause()}},{type:"seeking",callback:()=>{m(h.paused?0:1),C("SeekingEvent")}},{type:"error",callback:()=>{Q()}}],T=[{prop:"onloadedmetadata",callback:()=>{h.error?Q():(M.forEach((t=>{t.fireImmediately&&t.callback(),h.addEventListener(t.type,t.callback)})),h.paused?d.pause():b("LoadedmetadataEvent"),m(h.paused?0:3)),d.onloadedmetadata=null}},{prop:"oncanplay",callback:()=>{h.paused&&d.paused&&(v(h.currentTime),C("CanplayEvent"))}},{prop:"onplaying",callback:()=>{C("PlayingEvent")}},{prop:"onpause",callback:()=>{h.paused&&d.paused?(v(h.currentTime),C("PauseEvent")):this.log.w(l,"drop-out of step")}},{prop:"onerror",callback:()=>{const t=d.error,e=t&&`${t.code},${t.message}`;D("[MEDIA]",e)}}];d.muted=!0,d.crossOrigin="anonymous",d.classList.add(y.cx),T.forEach((t=>{d[t.prop]=t.callback})),this.nodes.videoWrap.insertBefore(d,h),this.switchDisposer=S,this.offscreenVideo=!0;const F=t=>{if("dash"===t.mediaDataSource.type){const e=g=new Ie(this.rootStore,d,!0);e.attachSource(t),e.kernelPlayer.on(St().EVENTS.ERROR,_)}else{const e=g=new Qe(this.rootStore,d,!0);e.attachSource(t),e.kernelPlayer.on(this.rootStore.assetStore.flvjs.Events.ERROR,R)}I()};if("dash"===t.mediaDataSource.type)F(t);else"function"==typeof this.dc.isFlvOk&&this.dc.isFlvOk(),this.dc.isFlvOk=(0,r.gx)((()=>!!this.rootStore.assetStore.flvjs),(()=>F(t)))}fakeEnableVideo(t,e){this.log.i("[fakeEnableVideo]"),this.switchDisposer&&(this.switchDisposer(),this.switchDisposer=null);const{mediaStore:i,qualityStore:n,wmpStore:r,kernelStore:o}=this.rootStore,s="[fakeEnableVideo]",l=performance.now(),A=i.video,c=r.createNewVideoElement(n.realQ,t.mediaDataSource.url);let h=null,d=null,u=null,p=!1;const g=()=>{clearTimeout(h),clearTimeout(d)},f=t=>{c.currentTime!==t&&(u?u.seek(t):c.currentTime=t)},m=t=>{(0,E.z)(c).then((()=>{this.log.i(s,`[play:${t}] done`)})).catch((e=>{this.log.e(s,`[play:${t}] fail: ${e&&e.message}`)}))},b=t=>{clearTimeout(d);const e=c.currentTime-A.currentTime;if(A.paused)return this.log.i(s,`from:${t},immediate`),void x();const i=1e3*e/A.playbackRate;d=window.setTimeout((()=>{(0,E.z)(c).then((()=>x())).catch((()=>x()))}),i)},v=()=>{u&&(u.attachEvent(),this.log.i(s,"events attached"),u=null)},I=()=>{if(D.forEach((t=>{
A.removeEventListener(t.type,t.callback)})),c.onloadedmetadata=null,c.onseeked=null,c.oncanplay=null,c.onerror=null,u&&u.kind===Ae.b.Dash){const t=u.kernelPlayer;t&&t.off(St().EVENTS.ERROR,S)}},C=()=>{if(isNaN(A.duration)||A.error)return;const t=c.currentTime,e=A.currentTime,i=Math.abs(t-e),n=A.ended,r=A.paused,o=c.ended;(i>1||n||o)&&(c.currentTime=r?e:e+1*A.playbackRate,this.log.w(s,"[tryForceFixTime]",`nc:${t},oc:${e},diff:${i}`),!o||n||r||(this.log.w(s,"[ForceSyncState]"),(0,E.z)(c).then((()=>{this.log.i(s,"[ForceSyncState]","done")})).catch((t=>{this.log.e(s,"[ForceSyncState]","fail",t&&t.message)}))))},B=()=>{this.log.w(s,"[catchPrimaryError]");const t=i.state.paused,e=i.state.progressTime;f(e),t?c.pause():m("catchPrimaryError"),x()},w=()=>{I(),g(),u&&(o.cacheLogTimely(u),u.dispose(),u=null),c.parentElement&&c.parentElement.removeChild(c),this.offscreenVideo=!1,this.switchDisposer=null},x=()=>{if(p)return void this.log.w(s,"[done] duplicate call, skip");p=!0,this.log.i(s,"[done]"),this.switchDisposer=null,g(),I(),C(),o.clearCachedStatus();const t=A.currentTime,n=c.currentTime,r=+(1e3*(n-t)).toFixed(2),h=Math.round(performance.now()-l);this.log.i(s,`[switch] video:${t},next:${n},diff:${r}ms,cost:${h}ms`),this.track.e("fake_switch_gap",{video:t,next:n,diffMs:r,switchDuration:h});const d=A.playbackRate,f=A.defaultPlaybackRate;c.muted=A.muted,c.volume=A.volume,i.replaceElement(c),e(u),v(),c.playbackRate=d,c.defaultPlaybackRate=f,this.offscreenVideo=!1,this.rootPlayer.emit(a.p.PLAYER_MEDIA_CHANGED)},Q=(t,i)=>{this.log.e(s,"[fail]",`from:${t};msg:${i}`),w(),o.recreateVideoBuffer(),e(null)},S=t=>{const e=t?`type:${t.type};code:${t.code};msg:${t.msg}`:"unknown";Q("[DASH]",e)},k=A.paused?0:1,D=[{type:"ratechange",callback:()=>{c.playbackRate===A.playbackRate&&c.defaultPlaybackRate===A.defaultPlaybackRate||(c.playbackRate=A.playbackRate,c.defaultPlaybackRate=A.defaultPlaybackRate,this.log.i(s,`playbackRate:${A.playbackRate}`))},fireImmediately:!0},{type:"ratechange",callback:()=>{b("RatechangeEvent")}},{type:"volumechange",callback:()=>{c.volume=A.volume,this.log.i(s,`volume:${A.volume}`)},fireImmediately:!0},{type:"play",callback:()=>{m("PlayEvent")}},{type:"pause",callback:()=>{c.pause()}},{type:"seeking",callback:()=>{f(A.currentTime+(A.paused?0:1)),b("SeekingEvent")}},{type:"error",callback:()=>{B()}}];c.muted=!0,c.crossOrigin="anonymous",c.classList.add(y.cx),c.onloadedmetadata=()=>{A.error?B():(D.forEach((t=>{t.fireImmediately&&t.callback(),A.addEventListener(t.type,t.callback)})),f(A.currentTime+k)),c.onloadedmetadata=null},c.onseeked=()=>{this.log.i(s,"[seeked]"),A.paused?x():b("SeekedEvent")},c.oncanplay=()=>{A.paused&&c.paused&&(f(A.currentTime),b("CanplayEvent"))},c.onerror=()=>{const t=c.error,e=t&&`${t.code},${t.message}`;Q("[MEDIA]",e)},this.nodes.videoWrap.insertBefore(c,A),this.switchDisposer=w,this.offscreenVideo=!0,h=window.setTimeout((()=>{this.log.w(s,"timeout(10s)"),x()}),1e4);const _=u=new Ie(this.rootStore,c,!0);_.attachSource(t),_.kernelPlayer.on(St().EVENTS.ERROR,S)}onDispose(){super.onDispose(),this.switchDisposer&&(this.switchDisposer(),this.switchDisposer=null)}}var ke=i(26929),De=i(99550),_e=i(70417),Re=i(18417);class Me extends s.f{constructor(t){super(t),this.tag="KernelAtom",this.isLoadStartChecked=!1,this.switchingTimer=-1,this.rootPlayer.on(a.p.PATCH_ADV_PLAY_ENDED,(()=>this.setCachedStatus(null))).on(a.p.MEDIA_ENDED,(()=>this.setCachedStatus(null))).on(a.p.MEDIA_PROGRESS,(()=>this.setBufferPolicy())).on(a.p.MEDIA_CANPLAY,(()=>this.clearSwitchingTimer()))}get agentKind(){return this.baseAgent?this.baseAgent.kind:null}get flvKernel(){return this.baseAgent&&this.baseAgent.kind===Ae.b.Flv?this.baseAgent.kernelPlayer:null}get dashKernel(){return this.baseAgent&&this.baseAgent.kind===Ae.b.Dash?this.baseAgent.kernelPlayer:null}setCachedStatus(t){this.cachedStatus&&(t||this.log.i("[CacheStatus]","clear"),this.cachedStatus=t)}setBufferPolicy(){const{kernelStore:t,mediaStore:e}=this.rootStore,i=t.dashKernel,n=i&&i.getCorePlayer();if(!i||!n)return;const r=e.video.currentTime,o=i.getStableBufferTime(),a=t.state.mseQuotaExceeded,[s,l,A,c,h,d]=this.getDynamicBuffer();if(a)return i.setStableBufferTime(h),void n.setBufferToKeep(d);o<h&&(r>c&&o<h?(i.setStableBufferTime(h),n.setBufferToKeep(d)):r>l&&o<A&&(i.setStableBufferTime(A),n.setBufferToKeep(d)))}startSwitchingCheckTimer(){this.switchingTimer=window.setTimeout((()=>{const{mediaStore:t}=this.rootStore;t.setState({buffering:!0})}),2e3)}clearSwitchingTimer(){this.rootStore.mediaStore.setState({buffering:!1}),window.clearTimeout(this.switchingTimer),this.switchingTimer=-1}addReactions(){const{kernelStore:t}=this.rootStore;this.dc.srcSwitching=(0,r.U5)((()=>t.state.srcSwitching),(t=>{t&&this.startSwitchingCheckTimer()}))}getPlayerIdle(){const{configStore:t}=this.rootStore,e=this.baseAgent&&this.baseAgent.getPlayUrl();return e&&+(0,ke.eY)("agrr",e)>0?t.session&&parseInt(t.session[0],16)<8?"eg":"cg":""}getPlayerUserWhite(){const t=this.baseAgent&&this.baseAgent.getPlayUrl();if(!t)return"";switch(+(0,ke.eY)("uagrr",t)){case 1:return"eg1";case 2:return"eg2";case 3:return"cg";default:return""}}getDynamicBuffer(t){const{kernelStore:e,configStore:i,qualityStore:n}=this.rootStore,r=e.state.mseQuotaExceeded;if(r)return 1===r?[20,5,25,20,30,10]:[20,5,25,20,20,10];const o=[[20,5,40,20,70,20],[20,5,25,20,30,10],[60,5,60,20,70,20],[60,5,60,20,70,20],[40,5,50,20,70,20],[15,0,15,0,15,5]];return o[1]=this.get4KPlusDynamicBufferGroup(),o[(()=>"number"==typeof t&&o[t]?t:i.isChannel(l.u5.Homepage)?5:n.realQ>=vt.nJ.alias.UHD_4K?1:"eg"===this.getPlayerIdle()?2:"eg1"===this.getPlayerUserWhite()?3:"eg2"===this.getPlayerUserWhite()?4:void 0)()]||o[0]}get4KPlusDynamicBufferGroup(){var t,e;const{kernelStore:i,qualityStore:n}=this.rootStore,r=[20,5,25,20,30,10],o=i.state.mseQuotaExceeded,a=i.dashKernel;if(o||!a)return r;try{if(w.X.safari.alike||w.X.chrome.alike){const i=n.realQ,o=null==(t=null==a?void 0:a.getCurrentTrackFor("video"))?void 0:t.bitrateList;if(null==o?void 0:o.length){const t=o.filter((t=>parseInt(t.id,10)===i));if(null==t?void 0:t.length){const i=((null==(e=t[0])?void 0:e.bandwidth)||0)/1e3/1e3,n=150;let o=5*Math.floor(n/(5*i/8*1.2));o=Math.min(o,70),o=Math.max(o,30),r[2]=30+Math.floor((o-30)/2),r[4]=o}}}}catch(t){}return r}checkMediaLoadStart(){return t=this,e=null,i=function*(){if(this.isLoadStartChecked)return;if(!this.rootStore.episodeStore.isFirst)return;if(!w.X.microMessenger.alike)return void(this.isLoadStartChecked=!0);const{portStore:t,mediaStore:e,httpStore:i}=this.rootStore,n=(0,De.t)(`<div class="${y.m}-hinter-area"></div>`),o=()=>{n.onclick=null,(0,_e.b)(n)},a=e=>{const i=this.nodes.container;if(e){const t=(0,Re.Q)(e,i.clientWidth||720);n.style.backgroundImage=`url("${t}")`}n.onclick=()=>t.play().then(o),i.appendChild(n)};if(!e.state.isLoadStart){const t=yield i.fetchViewInfo(!0);a(t&&t.body&&t.body.pic)}this.dc.isLoadStart&&this.dc.isLoadStart(),this.dc.isLoadStart=(0,r.gx)((()=>e.state.isLoadStart),(()=>o())),this.isLoadStartChecked=!0},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}cacheMediaStatus(t){if(this.log.i("[CIS]",`keep:${t}`),t){const{mediaStore:t,configStore:e,patchAdvStore:i}=this.rootStore,n=i.hasValidAdv?i.getFakeCurrentTimePrefix():0,r=t.video,o=e.episodeId||e.cid,a=t.state,s=a.progressTime-n<0?0:a.progressTime-n,l=a.currentTime-n<0?0:a.currentTime-n,A=r.currentTime,c=a.paused,h=a.duration,d=s||l||A,u=this.cachedStatus,p=!u&&h-l<1&&0===s;if(!u||u.currentTime<1||o&&o!==u.vid||Math.abs(d-u.currentTime)>.1){const t=`ended:${r.ended},paused:${c},seeking:${r.seeking},${d}/${h},cpt:${s},cct:${l},vct:${A},e2r:${p}`;if(d<1&&!this.rootStore.patchAdvStore.hasValidAdv)return void this.log.i("[CIS]",`ignored. ${t}`);this.log.i("[CIS]",t),this.cachedStatus={vid:o,paused:c,currentTime:d}}}}attachSourceProxy(t){this.log.i("[attachSourceProxy]"),this.clearBaseAgent();const{wmpStore:e,freeStore:i,mpdStore:n,mediaStore:o,qualityStore:a,configStore:s}=this.rootStore,l=(t,i)=>{var r,l,A,c,h,d,u,p,g,f,m,y,b,v,E
;if(this.clearBaseAgent(),e.checkWasmPlayerSupported(t.quality,t.mediaDataSource.url),"dash"===t.mediaDataSource.type){ue.J.shared.setCurrentPlaybackInfo({mediaDataSource:t.mediaDataSource,quality:t.quality,isAuto:null==a?void 0:a.isAutoQ,archiveParams:{cachedStartupTime:null==(r=this.cachedStatus)?void 0:r.currentTime,seekTime:s.t,fromLocalCache:s.fromLocalCache,cid:s.cid,episodeId:s.episodeId,body:n.body}});const{storyStore:e,upStore:I}=this.rootStore,C={archiveTitle:null!=(l=e.state.title)?l:"",archiveTid:null!=(A=e.state.tid)?A:0,archiveSubTid:null!=(c=e.state.subTid)?c:0,archiveStatLike:null!=(d=null==(h=e.state.stat)?void 0:h.like)?d:0,archiveStatShare:null!=(p=null==(u=e.state.stat)?void 0:u.share)?p:0,archiveStatReply:null!=(f=null==(g=e.state.stat)?void 0:g.reply)?f:0,archiveStatCoin:null!=(y=null==(m=e.state.stat)?void 0:m.coin)?y:0,archivePayed:null!=(b=e.state.payed)?b:0,upMid:null!=(v=I.state.mid)?v:0,upFans:null!=(E=I.state.fans)?E:0,upFollow:I.state.follow?1:0,isHighGradeVideo:n.isHighGradeVideo};ue.J.shared.setCurrentRealtimeInfo(C);(this.baseAgent=new Ie(this.rootStore,o.video)).attachSource(t,i)}else{(this.baseAgent=new Qe(this.rootStore,o.video)).attachSource(t)}this.baseAgent.attachEvent(),this.checkMediaLoadStart().catch(et.Z)};if("dash"===t.mediaDataSource.type)switch(n.drmTechType){case C.eH.BiliSelf:{const e=n.streamKid,r=i.guardAtom.getKeyDetail(e);this.abortKeyRequest&&this.abortKeyRequest(),this.abortKeyRequest=()=>r.abort(),r.promise.then((e=>{this.log.i("[DRM:clearKeys]","done"),l(t,{protectionData:e.protectionData})})).catch((t=>{const e=t&&t.message;r.isAbort(t)?this.log.w("[DRM:clearKeys:abort]",e):(this.log.w("[DRM:clearKeys]",e),n.fallback(K.CLEAR_KEY_ERROR,"clearKeys",e))}));break}case C.eH.Widevine:{const e=i.guardAtom.getWidevineDetail();this.abortKeyRequest&&this.abortKeyRequest(),this.abortKeyRequest=()=>e.abort(),e.promise.then((e=>{this.log.i("[DRM:widevine]","done"),l(t,{protectionData:e.protectionData,ignoreEmeEncryptedEvent:!0})})).catch((t=>{const i=t&&t.message;e.isAbort(t)?this.log.w("[DRM:widevine:abort]",i):(this.log.w("[DRM:widevine]",i),n.fallback(K.WIDEVINE_ERROR,"widevine",i))}));break}default:this.log.i("[attachSourceProxy]","plain stream"),l(t)}else"function"==typeof this.dc.isFlvOk&&this.dc.isFlvOk(),this.dc.isFlvOk=(0,r.gx)((()=>!!this.rootStore.assetStore.flvjs),(()=>l(t)))}clearBaseAgent(){this.baseAgent&&(this.log.i("[clearBaseAgent]"),this.rootStore.kernelStore.cacheLogTimely(this.baseAgent),this.baseAgent.dispose(),this.baseAgent=null)}onDispose(){super.onDispose(),this.abortKeyRequest&&this.abortKeyRequest(),this.setCachedStatus(null),this.clearSwitchingTimer()}}var Te=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Le=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Ne extends s.u{constructor(t){super(t),this.tag="KernelStore",this.kernelLogs=[],this.maxKernelLogs=10,(0,r.rC)(this),this.kernelAtom=new Me(t),this.seamlessAtom=new Se(t)}get defaultState(){return{fakeSwitching:!1,fakeEnableVideoSwitching:!1,srcSwitching:!1,srcUpdating:!1,mseQuotaExceeded:0,aTag:null,vTag:null,streamRetries:0}}get retrySource(){return this.state.srcSwitching||this.state.srcUpdating}get baseAgent(){return this.kernelAtom.baseAgent}get agentKind(){return this.kernelAtom.agentKind}get flvKernel(){return this.kernelAtom.flvKernel}get dashKernel(){return this.kernelAtom.dashKernel}get cachedStatus(){return this.kernelAtom.cachedStatus}clearCachedStatus(){this.kernelAtom.cachedStatus=null}get serviceModule(){const t=this.state.aTag||"",e=this.state.vTag||"";return this.flvKernel&&e?`vtag:${e}`:this.dashKernel&&(t||e)?`vtag:${e},atag:${t}`:null}onMount(){super.onMount(),this.kernelAtom.addReactions()}cacheLogTimely(t){if(t&&t.kind===Ae.b.Dash&&t.kernelPlayer){const e=t.kernelPlayer.getLogHistory().log;this.kernelLogs.push({kind:Ae.b.Dash,text:e,timeStamp:Date.now()}),this.kernelLogs.length>this.maxKernelLogs&&this.kernelLogs.shift()}}getPlayerIdle(){return this.kernelAtom.getPlayerIdle()}getPlayerUserWhite(){return this.kernelAtom.getPlayerUserWhite()}getDynamicBuffer(t){return this.kernelAtom.getDynamicBuffer(t)}getCurrentPlayHost(t){try{if(this.dashKernel){const{videoUrl:e,audioUrl:i}=this.getPlayUrls(t);return this.formatHostInfo(e,i)}if(this.flvKernel){const e=t||this.portStore.getPlayUrl();return this.formatHostInfo(e,"")}return""}catch(t){return""}}getPlayUrls(t){let e=this.dashKernel.getCurrentPlayURLFor("video"),i=this.dashKernel.getCurrentPlayURLFor("audio");if(!e||!i){const n=this.getFallbackUrls(t);e=e||n.videoUrl,i=i||n.audioUrl}return{videoUrl:e,audioUrl:i}}getFallbackUrls(t){if(t)return this.parseSingleUrl(t);const e=this.portStore.getPlayUrl(),i=e.split(",");return i.length>1?{videoUrl:i[0],audioUrl:i[1]}:{videoUrl:e,audioUrl:""}}parseSingleUrl(t){return[vt.nJ.alias.AQ_30216,vt.nJ.alias.AQ_30232,vt.nJ.alias.AQ_30280].some((e=>t.includes(String(e))))?{videoUrl:"",audioUrl:t}:{videoUrl:t,audioUrl:""}}formatHostInfo(t,e){const i=this.extractHostInfo(t,"v"),n=this.extractHostInfo(e,"a");return i||n?n?i?`${i} & ${n}`:n:i:""}extractHostInfo(t,e){if(!t)return"";const i=new URL(t);return`${e}: ${i.hostname.split(".")[0]}${i.port?`:${i.port}`:""}`}getHistoryLogs(t=1,e){const i=this.kernelLogs,n=i.length,r=Math.min(t,n),o=i.slice(n-r).map((t=>t.text));if(this.dashKernel){const t=this.dashKernel.getLogHistory();if(o.push(null==t?void 0:t.log),e)return{count:(null==t?void 0:t.length)||1,log:o.join("\n-------- Section --------\n")}}return o.join("\n-------- Section --------\n")}requestAudioTrack(t){return Le(this,null,(function*(){return this.dashKernel.switchAudioTrack(t)}))}getAudioTrackId(){return this.dashKernel?this.dashKernel.getCurrentAudioTrackId():null}getAudioTrackList(){return this.dashKernel?this.dashKernel.getAudioTrackList():[]}getPlayingFileName(t){try{if(this.baseAgent)return this.baseAgent.getPlayingFileName(t)}catch(t){}return""}attachExternal(t,e){const i=e.initiator,n=!!this.mpdStore.drmTechType,r=i===C.ZX.Switch_Quality,o=r||i===C.ZX.Failed_Retry||i===C.ZX.DRM_Fallback,a=i===C.ZX.Reload_Access;n||!r&&!a||this.portStore.getScreenKind()===l.dY.Pip?(this.kernelAtom.cacheMediaStatus(o),this.kernelAtom.attachSourceProxy(t)):(this.state.fakeSwitching&&this.log.w("dupe:fakeSwitching"),this.state.fakeEnableVideoSwitching&&(this.log.w("fakeSwitch preempts fakeEnableVideo"),this.setState({fakeEnableVideoSwitching:!1})),this.setState({fakeSwitching:!0}),this.seamlessAtom.fakeSwitch(t,(t=>{if(t){if(a&&this.qualityStore.loginKeepAuto){const t=this.qualityStore.realQ;this.qualityStore.setState({oldRealQ:t})}this.kernelAtom.clearBaseAgent(),this.kernelAtom.baseAgent=t}this.setState({fakeSwitching:!1})})))}tryUpdateSource(t,e){return Le(this,null,(function*(){if("dash"!==t.mediaDataSource.type||!this.dashKernel)throw new Error("Illegal operation");return this.log.i("attachExternal:callUpdate"),this.state.srcUpdating&&this.log.w("dupe:srcUpdating"),this.setState({srcUpdating:!0}),this.dashKernel.updateSource(t.mediaDataSource.url).then((()=>{this.log.i("attachExternal:callUpdate","done"),this.track.o(x.w.O_Video_Retry_Success,{from:e.from}),this.setState({srcUpdating:!1})})).catch((t=>{const i=t&&(t.msg||t.message);return this.log.w("attachExternal:callUpdate","fail",i),this.track.o(x.w.O_Video_Retry_Fail,{from:e.from,msg:i}),this.setState({srcUpdating:!1}),Promise.reject(t)}))}))}trySwitchSource(t,e,i){return Le(this,null,(function*(){if("dash"!==t.mediaDataSource.type||!this.dashKernel)throw new Error("Illegal operation");this.log.i("attachExternal:callSwitch"),this.state.srcSwitching&&this.log.w("dupe:srcSwitching"),this.setState({srcSwitching:!0});const n=JSON.parse(JSON.stringify(t.mediaDataSource.url));return this.dashKernel.switchSource(n,e.preloadAVData,e.enableTransition,i).then((()=>{this.portStore.play(),this.log.i("attachExternal:callSwitch","done"),this.setState({srcSwitching:!1})})).catch((t=>{const e=t&&(t.msg||t.message);return this.log.w("attachExternal:callSwitch","fail",e),this.setState({srcSwitching:!1}),
Promise.reject(t)}))}))}removeVideoBuffer(){var t;if(this.dashKernel)return null==(t=this.dashKernel.player)?void 0:t.removeVideoBuffer()}recreateVideoBuffer(){var t;if(this.dashKernel)return null==(t=this.dashKernel.player)?void 0:t.recreateVideoBuffer()}fakeEnableVideo(t,e){this.state.fakeEnableVideoSwitching&&this.log.w("dupe:fakeEnableVideoSwitching"),this.setState({fakeEnableVideoSwitching:!0});try{this.seamlessAtom.fakeEnableVideo(t,(t=>{this.setState({fakeEnableVideoSwitching:!1}),e(t)}))}catch(t){this.setState({fakeEnableVideoSwitching:!1}),e(null)}}replaceBaseAgent(t){this.kernelAtom.clearBaseAgent(),this.kernelAtom.baseAgent=t}onDispose(){super.onDispose(),this.dashKernel,this.kernelAtom.clearBaseAgent(),this.baseAgent&&this.baseAgent.resetQualityReadyState()}onDisconnect(){super.onDisconnect(),this.baseAgent&&this.baseAgent.dispose()}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?Fe(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Te(e,i,o)})([r.Fl],Ne.prototype,"retrySource",1);class Pe extends s.f{constructor(){super(...arguments),this.tag="RecoveryAtom",this.irc=0,this.retryCount=0,this.backupUrlIndex=0,this.resumeStartTime=0,this.isResuming=!1,this.resumeTimes=0,this.maxResumeTimes=3}get retryInterval(){return(this.rootStore.pageHidden?15e3:9e3)+1e3*(this.irc+1)}get retryCntLimit(){const t=[l.u5.Homepage];return this.rootStore.configStore.isChannel(...t)?1:4}playErrorVideo(t,e,i){const{kernelStore:n,errorStore:r,configStore:o}=this.rootStore,a=n.getCurrentPlayHost(i),s=null!=a?a:"";[-404,404].includes(e)?(n.attachExternal({quality:0,mediaDataSource:{type:"mp4",url:o.errorUrl}},{initiator:t}),r.setState({code:e,details:s,playErrorVideo:!0})):r.setState({code:e,details:s,playErrorVideo:!1})}resetResuming(){this.resumeStartTime&&(this.resumeStartTime=0,this.isResuming=!1,this.resumeTimes=0)}resetCounter(){this.backupUrlIndex=0,this.resumeStartTime=0}resume(t,e,i){const n="[Resume]",r=Date.now();if(this.resumeStartTime&&r-this.resumeStartTime<50||this.isResuming)return this.log.w(n,`dupe,initiator:${t}`);if(this.resumeStartTime=r,this.isResuming=!0,this.resumeTimes+=1,this.resumeTimes>=this.maxResumeTimes)return this.log.w(n,"reach max resume times"),this.isResuming=!1,void this.playErrorVideo(t,e||J.VIDEO_RESUME_PLAY_FAILED,i);if(this.log.i(n,`initiator:${t}`),this.tryFlvBackupUrl(1))this.log.i(n,"try flv backup url");else{const r=this.rootStore.mpdStore.prefetchPlayUrl();this.retryHttp&&this.log.w(n,"http dupe"),this.retryHttp=r.http,r.promise.then((r=>{if(!(r&&r.body&&r.body.mediaDataSource))throw this.isResuming=!1,new Error("Invalid data");this.log.i(n,"playurl:done"),this.rootStore.kernelStore.tryUpdateSource({mediaDataSource:r.body.mediaDataSource,quality:r.body.quality},{from:Oe.Try_Reload_Source,initiator:t}).catch((()=>{this.infiniteRetry(t,50,e,i),this.isResuming=!1})),this.retryHttp=null})).catch((r=>{this.log.w(n,"playurl:fail",r&&r.message),this.infiniteRetry(t,50,e,i),this.retryHttp=null,this.isResuming=!1}))}}getRetryCount(){return this.retryCount}abortRetry(){this.retryTimer&&(this.log.i("abortRetry"),clearTimeout(this.retryTimer),this.retryTimer=null,this.irc=0)}startRetry(t,e){this.infiniteRetry(t,50,e)}infiniteRetry(t,e,i,n){const r="[InfiniteRetry]";if(this.irc>=this.retryCntLimit)return this.log.w(r,"reach limit"),void this.playErrorVideo(t,i||J.VIDEO_INFINITE_RETRY_FAILED,n);if(this.retryTimer)return this.log.w(r,`dupe,initiator:${t}`);const o=0===this.irc&&e||this.retryInterval;this.log.i(r,`initiator:${t},interval:${o}`),clearTimeout(this.retryTimer),this.retryTimer=window.setTimeout((()=>{this.retryTimer=null,this.rootStore.mpdStore.fetchPlayUrl(null,{initiator:t}),this.irc+=1,this.retryCount+=1}),o)}isUrlExpired(){const t=this.rootStore.portStore.getPlayUrl();if(!t)return!1;const e=Math.ceil(Date.now()/1e3),i=+((0,ke.eY)("expires",t)||(0,ke.eY)("wsTime",t)||(0,ke.eY)("txTime",t)||(0,ke.eY)("um_deadline",t)||(0,ke.eY)("deadline",t));return!!i&&e>i}tryFlvBackupUrl(t){const{kernelStore:e,mpdStore:i,qualityStore:n}=this.rootStore;if(!e.flvKernel)return!1;if(t>=this.backupUrlIndex)return!1;let r=!1,o={},a=[],s=i.body,l=s&&s.mediaDataSource;if(l&&Array.isArray(l.segments)){for(const t of l.segments){const e=t.backupURL[this.backupUrlIndex],i={};if(!e){r=!1;break}(0,Bt.Z)(i,t),i.url=e,a.push(i),r=!0}r&&(0,Bt.Z)(o,l,{segments:a})}else if(l&&Array.isArray(l.backupURL)){const t=l.backupURL[this.backupUrlIndex];t?(r=!0,(0,Bt.Z)(o,l,{url:t})):r=!1}return r&&(this.log.i("尝试使用备线",`backupUrlIndex:${this.backupUrlIndex}`),this.backupUrlIndex+=1,e.tryUpdateSource({mediaDataSource:o,quality:n.requestQ},{from:Oe.Try_Backup_Url,initiator:C.ZX.Failed_Retry}).catch((()=>this.infiniteRetry(C.ZX.Failed_Retry,50)))),r}onDispose(){super.onDispose(),this.abortRetry(),this.resetResuming(),this.irc=0,this.retryCount=0,this.backupUrlIndex=0,this.isResuming=!1,this.resumeTimes=0,this.retryHttp&&this.retryHttp.dispose(At.eV.LIFECYCLE_TOKEN)}}class Ue extends s.f{constructor(t){super(t),this.tag="ErrorAtom",this.recoveryAtom=new Pe(t),this.rootPlayer.on(a.p.PLAYER_STORE_MOUNT,(()=>{this.addReaction(),this.addStuckEvent(),this.addPlayUrlEvent(),this.addDashEvent(),this.addFlvEvent(),this.addMediaEvent()}))}addReaction(){this.dc.retrySource=(0,r.U5)((()=>this.rootStore.kernelStore.retrySource),(t=>!t&&this.recoveryAtom.resetResuming()))}addStuckEvent(){this.rootPlayer.on(a.p.PLAYER_PLAYBACK_LAG,(()=>{const{kernelStore:t,mediaStore:e}=this.rootStore,i=t.dashKernel;if(i){const t=e.video;if(i&&"function"==typeof i.isLoadingFragment){const e=i.getBufferLength("video"),n=i.getBufferLength("audio"),r=t.buffered,o="web_videoload_lag",a=r&&r.length>1?`${o},${r.end(0)},${r.start(1)}`:o;((isNaN(e)||e<.01)&&!i.isLoadingFragment("video")||(isNaN(n)||n<.01)&&!i.isLoadingFragment("audio"))&&this.errProxy(J.DASH_MEDIA_LAG,a)}}}))}addPlayUrlEvent(){this.rootPlayer.on(a.p.ERROR_PLAY_URL,((t,e,i)=>{const{errorStore:n,qualityStore:r,mpdStore:o}=this.rootStore;switch(e){case C.ZX.Initialize:{n.setState({initError:!0}),this.track.o(i?x.w.O_Bangumi_Permission_Error:x.w.O_Video_Error,{code:J.VIDEO_URL_ERROR,from:Oe.Initialize,ecode:t&&t.code}),this.log.w("播放错误视频");const r=void 0===t.code?J.VIDEO_URL_ERROR:t.code;this.recoveryAtom.playErrorVideo(e,r);break}case C.ZX.Failed_Retry:this.track.o(x.w.O_Video_Error,{code:J.VIDEO_URL_ERROR,from:Oe.Failed_Retry,ecode:t&&t.code}),this.track.o(x.w.O_Video_Retry_Fail,{from:Oe.Failed_Retry}),this.recoveryAtom.startRetry(C.ZX.Failed_Retry,J.VIDEO_URL_ERROR);break;case C.ZX.Switch_Quality:this.track.o(x.w.O_Video_Error,{code:J.VIDEO_URL_ERROR,from:Oe.Switch_Quality,ecode:t&&t.code}),r.setRenderedQuality(t,r.state.nowQuality);break;default:this.log.e("[PlayUrl]: UnhandledError"),this.track.o(i?x.w.O_Bangumi_Permission_Error:x.w.O_Video_Error,{code:J.VIDEO_URL_ERROR,from:Oe.Unknown,ecode:t&&t.code})}this.log.i("[PlayUrlCode]",o.state.playUrlCode),this.notify(t.message,0)}))}addDashEvent(){this.rootPlayer.on(a.p.ERROR_DASH_INITIALIZE,(t=>{this.errProxy(J.DASH_INIT_ERROR,"dashPlayer initializing error."),this.recoveryAtom.startRetry(C.ZX.Failed_Retry,J.DASH_INIT_ERROR),this.notify(t.message,1)})),this.rootPlayer.on(a.p.ERROR_DASH_KERNEL,(t=>{var e,i,n;const{errorStore:r,qualityStore:o,configStore:a}=this.rootStore,s=St().ERROR,l=0===o.quality;if(r.setState({kernelError:!0}),t&&t.detail&&t.detail.httpCode&&this.track.o(x.w.O_Load_VideoError_Code,{code:t.detail.httpCode}),t&&t.code){let i;[s.MEDIA_FMP4_ERROR,s.MEDIA_DECODE_ERROR].includes(t.code)&&(i={mediaType:null==(e=t.detail)?void 0:e.decodeErrorType}),this.errProxy(t.code,t.msg,i)}if(a.fromLocalCache){this.notify(`${t.code};${t.msg}`,2);const e=J.PC_CLIENT_CACHE_PLAY_ERROR;this.recoveryAtom.playErrorVideo(C.ZX.Failed_Retry,e)}else{switch(t&&t.code){case s.DURATION_IS_NOT_ALL_EQUAL:this.log.w(`isAutoQuality:${l};${t.msg}`),l||this.recoveryAtom.resume(C.ZX.Switch_Quality,t.code);break;case s.MANIFEST_ERROR:case s.MANIFEST_TYPE_ERROR:case s.MANIFEST_RESOLVE_ERROR:case s.DOWNLOAD_MPD_ERROR:case s.DOWNLOAD_XINK_ERROR:this.recoveryAtom.resume(C.ZX.Failed_Retry,t.code);break;case s.MEDIA_SUPPORTED_ERROR:r.setState({disableNonDAQ:!0}),
this.recoveryAtom.startRetry(C.ZX.Failed_Retry,t.code);break;case s.MEDIA_DECODE_ERROR:case s.MEDIA_FMP4_ERROR:this.recoveryAtom.startRetry(C.ZX.Failed_Retry,t.code);break;case s.MEDIA_ERROR:case s.MEDIA_ABORTED_ERROR:case s.MEDIA_ENCRYPTED_ERROR:case s.MEDIA_NETWORK_ERROR:case s.MEDIA_UNKNOWN_ERROR:this.recoveryAtom.resume(C.ZX.Failed_Retry,t.code);break;case s.INTERNAL_ERROR:case s.DURATION_DEVIATION_IS_TOO_LARGE:case s.START_OFFSET_TIME_WARNING:case s.DOWNLOAD_FRAGMENT_ERROR_RETRY_SUCCESS:this.log.e("Fatal err or warning, retry is useless");break;case s.DOWNLOAD_ERROR:case s.DOWNLOAD_INIT_SEGMENT_ERROR:case s.DOWNLOAD_MEDIA_SEGMENT_ERROR:case s.DOWNLOAD_INDEX_SEGMENT_ERROR:case s.DOWNLOAD_SWITCHING_SEGMENT_ERROR:case s.DOWNLOAD_OTHER_ERROR:case s.DOWNLOAD_FRAGMENT_ERROR:case s.DOWNLOAD_FRAGMENT_ERROR_RETRY_FAILURE:case s.DOWNLOAD_FRAGMENT_ERROR_TIMEOUT:case s.CONNECT_FRAGMENT_ERROR_TIMEOUT:default:{const e=(null==(n=null==(i=null==t?void 0:t.detail)?void 0:i.event)?void 0:n.url)||"";this.recoveryAtom.resume(C.ZX.Failed_Retry,t.code,e)}}this.notify(`${t.code};${t.msg}`,2)}}))}addFlvEvent(){this.rootPlayer.on(a.p.ERROR_FLV_KERNEL,((t,e,i)=>{const{errorStore:n,assetStore:r}=this.rootStore,o=r.flvjs.ErrorTypes,a=r.flvjs.ErrorDetails,s=i&&i.msg,l=i&&i.code,A=`[${t}] ${e}: ${-1!==l?l:s}`;switch(n.setState({kernelError:!0}),t){case o.MEDIA_ERROR:switch(e){case a.MEDIA_MSE_ERROR:this.errProxy(J.MEDIA_MSE_ERROR,A);break;case a.MEDIA_FORMAT_ERROR:this.errProxy(J.MEDIA_FORMAT_ERROR,A);break;case a.MEDIA_FORMAT_UNSUPPORTED:this.errProxy(J.MEDIA_FORMAT_UNSUPPORTED,A);break;case a.MEDIA_CODEC_UNSUPPORTED:this.errProxy(J.MEDIA_CODEC_UNSUPPORTED,A)}break;case o.NETWORK_ERROR:switch(e){case a.NETWORK_EXCEPTION:this.errProxy(J.NETWORK_EXCEPTION,A);break;case a.NETWORK_STATUS_CODE_INVALID:this.track.o(x.w.O_Load_VideoError_Code,{code:l}),this.errProxy(J.NETWORK_STATUS_CODE_INVALID,A);break;case a.NETWORK_UNRECOVERABLE_EARLY_EOF:this.errProxy(J.NETWORK_UNRECOVERABLE_EARLY_EOF,A)}break;case o.OTHER_ERROR:default:if(e===a.ABNORMAL_SEGMENT_BYTELENGTH)this.track.o(x.w.O_Abnormal_Segment_ByteLength_Error),this.errProxy(J.ABNORMAL_SEGMENT_LENGTH,A)}switch(t){case o.MEDIA_ERROR:case o.NETWORK_ERROR:case o.OTHER_ERROR:}this.isFlvKernel(!1)&&this.recoveryAtom.resume(C.ZX.Failed_Retry),this.notify(`${t};${e};${i.code};${i.msg}`,3)}))}addMediaEvent(){this.rootPlayer.on(a.p.MEDIA_ERROR,(()=>{const{wmpStore:t,mediaStore:e,errorStore:i,qualityStore:n}=this.rootStore,r=t.isUseWasmPlayer(e.video),o=r?e.video.bwpError:e.video.error,a=null==o?void 0:o.code;if(o||console.warn("Illegal argument of [MediaError]"),r&&a>=J.WASM_PLAYER_ERROR&&a<=J.WASM_PLAYER_FALLBACK_INTERACTIVE&&(t.onWasmPlayerError(e.video,o),n.switchProxy()),a===Q.lG.MEDIA_ERR_SRC_NOT_SUPPORTED)i.setState({disableNonDAQ:!0});switch(a){case Q.lG.MEDIA_ERR_ABORTED:case Q.lG.MEDIA_ERR_DECODE:case Q.lG.MEDIA_ERR_SRC_NOT_SUPPORTED:this.isFlvKernel(!0)&&(this.errProxy(J.VIDEO_PLAY_ERROR,`[MediaError] Exception: ${null==o?void 0:o.message}`),this.recoveryAtom.resume(C.ZX.Failed_Retry));break;case Q.lG.MEDIA_ERR_NETWORK:default:this.isFlvKernel(!0)&&(this.errProxy(J.VIDEO_PLAY_ERROR,`[NetworkError] Exception: 3104 Failed to fetch, ${null==o?void 0:o.message}`),this.recoveryAtom.resume(C.ZX.Failed_Retry))}this.notify(null==o?void 0:o.message,4)})),this.rootPlayer.on(a.p.MEDIA_CANPLAY,(()=>{const{errorStore:t}=this.rootStore;t.state.kernelError&&t.setState({kernelError:!1})}))}errProxy(t,e,i){var n;const{portStore:r,mpdStore:o,errorStore:a}=this.rootStore,s=r.getPlayUrl(),l=e&&e.replace(/,/g,"."),A=`type:${(null==(n=o.body)?void 0:n.streamType)||null},url:${s},message:${l}`;this.log.w(`code:${t},${A}`),a.err(q.VIDEO_ERROR,t,A,i)}isFlvKernel(t){const e=this.rootStore.kernelStore.flvKernel;return!!e&&(t?"FlvPlayer"!==e.type:"FlvPlayer"===e.type)}notify(t,e){const i="抛出一个错误...",n=null==e?i:`${i}(from:${e})`,{mediaStore:r}=this.rootStore,o=`${r.state.currentTime}/${r.state.bufferedTime}`;this.log.e(n,t,o)}onDispose(){super.onDispose()}}var Oe=(t=>(t[t.Unknown=0]="Unknown",t[t.Initialize=1]="Initialize",t[t.Failed_Retry=2]="Failed_Retry",t[t.Switch_Quality=3]="Switch_Quality",t[t.Try_Backup_Url=4]="Try_Backup_Url",t[t.Try_Reload_Source=5]="Try_Reload_Source",t[t.Play_Permission_Denied=6]="Play_Permission_Denied",t))(Oe||{});class Ge extends s.u{constructor(t){super(t),this.tag="ErrorStore",this.codeRecord={},this.errorAtom=new Ue(t)}get defaultState(){return{initError:!1,kernelError:!1,disableNonDAQ:!1,occurredFatalError:!1,code:0,details:void 0,playErrorVideo:!1}}onMount(){super.onMount(),this.dc.disableNonDAQ=(0,r.gx)((()=>this.state.disableNonDAQ),(()=>this.log.w("[NonDAQ]","disabled")))}err(t,e,i,n){if(!t)return;const r=i||!0,o=this.codeRecord[e];this.setState({occurredFatalError:!0}),o&&o===r||(this.codeRecord[e]=r,this.track.o(x.w.O_Web_VideoLoad_Fail,{kind:t,code:e,msg:i,extra:n}))}abortRetry(){this.errorAtom.recoveryAtom.abortRetry()}resetCounter(){this.errorAtom.recoveryAtom.resetCounter()}getRetryCount(){this.errorAtom.recoveryAtom.getRetryCount()}onDispose(){super.onDispose(),this.codeRecord={}}occurredFatalErr(){return this.state&&this.state.occurredFatalError}}var He=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),Ve=(t=>(t[t.Unknown=0]="Unknown",t[t.Default=1]="Default",t[t.Safari=2]="Safari",t))(Ve||{});class Ye{constructor(t){this.vid=t,this.doc=this.vid.ownerDocument||document,this.win=this.doc.defaultView||window,"function"==typeof this.vid.requestPictureInPicture?this.pipKind=1:"function"==typeof this.vid.webkitSetPresentationMode?this.pipKind=2:this.pipKind=0}get currentElement(){return this.vid}get pipEntered(){return 2===this.pipKind?"picture-in-picture"===this.vid.webkitPresentationMode:this.pipElement===this.vid}get pipEnabled(){return 2===this.pipKind?this.vid.webkitSupportsPresentationMode("picture-in-picture"):this.doc.pictureInPictureEnabled}get pipElement(){return this.doc.pictureInPictureElement}set autoPip(t){this.vid.autoPictureInPicture=t}get autoPip(){return this.vid.autoPictureInPicture}set disablePip(t){this.vid.disablePictureInPicture=t}get disablePip(){return this.vid.disablePictureInPicture}requestPip(){return He(this,null,(function*(){if(2===this.pipKind){if(this.pipEnabled)return new Promise((t=>{const e=this.vid.onwebkitpresentationmodechanged;this.vid.onwebkitpresentationmodechanged=i=>{"function"==typeof e&&e(i),this.pipEntered&&(this.vid.onwebkitpresentationmodechanged=e,t())},this.vid.webkitSetPresentationMode("picture-in-picture")}));throw new Error("Picture-in-Picture not supported")}return this.vid.requestPictureInPicture()}))}exitPip(){return He(this,null,(function*(){return 2===this.pipKind?new Promise((t=>{const e=this.vid.onwebkitpresentationmodechanged;this.vid.onwebkitpresentationmodechanged=i=>{"function"==typeof e&&e(i),this.pipEntered||(this.vid.onwebkitpresentationmodechanged=e,t())},this.vid.webkitSetPresentationMode("inline")})):this.doc.exitPictureInPicture()}))}addListener(t,e,i){this.vid.addEventListener(t,e,i)}removeListener(t,e,i){this.vid.removeEventListener(t,e,i)}}var ze=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class We{constructor(t){this.cfs=null,this.fss=[{fullscreenEnabled:"fullscreenEnabled",fullscreenElement:"fullscreenElement",onfullscreenchange:"onfullscreenchange",onfullscreenerror:"onfullscreenerror",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen",fullscreenchange:"fullscreenchange",fullscreenerror:"fullscreenerror"},{fullscreenEnabled:"webkitFullscreenEnabled",fullscreenElement:"webkitFullscreenElement",onfullscreenchange:"onwebkitfullscreenchange",onfullscreenerror:"onwebkitfullscreenerror",requestFullscreen:"webkitRequestFullscreen",exitFullscreen:"webkitExitFullscreen",fullscreenchange:"webkitfullscreenchange",fullscreenerror:"webkitfullscreenerror"},{fullscreenEnabled:"mozFullScreenEnabled",
fullscreenElement:"mozFullScreenElement",onfullscreenchange:"onmozfullscreenchange",onfullscreenerror:"onmozfullscreenerror",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen",fullscreenchange:"mozfullscreenchange",fullscreenerror:"mozfullscreenerror"},{fullscreenEnabled:"msFullscreenEnabled",fullscreenElement:"msFullscreenElement",onfullscreenchange:"onmsfullscreenchange",onfullscreenerror:"onmsfullscreenerror",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen",fullscreenchange:"MSFullscreenChange",fullscreenerror:"MSFullscreenError"}],this.ele=t,this.doc=this.ele.ownerDocument||document,this.win=this.doc.defaultView||window;for(let t=0;t<this.fss.length;t++)if(this.fss[t].fullscreenEnabled in this.doc){this.cfs=this.fss[t];break}}get hasElementEvent(){return!!this.cfs&&(this.cfs.onfullscreenchange in this.ele&&this.cfs.onfullscreenerror in this.ele)}get currentElement(){return this.ele}get fullscreenMapping(){return this.cfs}get fullscreenEnabled(){return!!this.cfs&&Boolean(this.doc[this.cfs.fullscreenEnabled])}get fullscreenElement(){return this.cfs&&this.doc[this.cfs.fullscreenElement]||null}getBrowsingContextPromise(){const t=this.win.Promise;return"function"==typeof t&&"function"==typeof t.resolve&&"function"==typeof t.reject?t:null}requestFullscreen(t){return ze(this,null,(function*(){if(this.cfs){const e=new Promise(((t,e)=>{const i=e=>{this.fullscreenElement===this.currentElement&&(this.removeElementListener("fullscreenchange",i,!0),this.removeElementListener("fullscreenerror",n,!0),this.removeListener("fullscreenchange",i),this.removeListener("fullscreenerror",n),t())},n=t=>{this.fullscreenElement!==this.currentElement&&(this.removeElementListener("fullscreenchange",i,!0),this.removeElementListener("fullscreenerror",n,!0),this.removeListener("fullscreenchange",i),this.removeListener("fullscreenerror",n),e())};this.addElementListener("fullscreenchange",i,!0),this.addElementListener("fullscreenerror",n,!0),this.addListener("fullscreenchange",i),this.addListener("fullscreenerror",n)})),i=this.ele[this.cfs.requestFullscreen](t);return i&&"function"==typeof i.then&&"function"==typeof i.catch?i:e}throw new Error("Fullscreen is not supported")}))}exitFullscreen(){return ze(this,null,(function*(){if(this.cfs){const t=new Promise(((t,e)=>{const i=e=>{this.fullscreenElement!==this.currentElement&&(this.removeElementListener("fullscreenchange",i,!0),this.removeElementListener("fullscreenerror",n,!0),this.removeListener("fullscreenchange",i),this.removeListener("fullscreenerror",n),t())},n=t=>{this.fullscreenElement===this.currentElement&&(this.removeElementListener("fullscreenchange",i,!0),this.removeElementListener("fullscreenerror",n,!0),this.removeListener("fullscreenchange",i),this.removeListener("fullscreenerror",n),e())};this.addElementListener("fullscreenchange",i,!0),this.addElementListener("fullscreenerror",n,!0),this.addListener("fullscreenchange",i),this.addListener("fullscreenerror",n)})),e=this.doc[this.cfs.exitFullscreen]();return e&&"function"==typeof e.then&&"function"==typeof e.catch?e:t}throw new Error("Fullscreen is not supported")}))}get onfullscreenchange(){return this.cfs?this.ele[this.cfs.onfullscreenchange]:null}set onfullscreenchange(t){this.cfs&&(this.ele[this.cfs.onfullscreenchange]=t)}get onfullscreenerror(){return this.cfs?this.ele[this.cfs.onfullscreenerror]:null}set onfullscreenerror(t){this.cfs&&(this.ele[this.cfs.onfullscreenerror]=t)}addElementListener(t,e,i){this.cfs&&this.ele.addEventListener(this.cfs[t],e,i)}removeElementListener(t,e,i){this.cfs&&this.ele.removeEventListener(this.cfs[t],e,i)}addListener(t,e,i){this.cfs&&this.doc.addEventListener(this.cfs[t],e,i)}removeListener(t,e,i){this.cfs&&this.doc.removeEventListener(this.cfs[t],e,i)}}var Ze=Object.defineProperty,je=Object.getOwnPropertyDescriptor,qe=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?je(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Ze(e,i,o),o},Je=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Ke extends s.u{constructor(){super(...arguments),this.tag="StatueStore",this.delayEventTimer=null,this.lastChanged={[l.dY.Normal]:0,[l.dY.Wide]:0,[l.dY.Web]:0,[l.dY.Mini]:0,[l.dY.Full]:0,[l.dY.Pip]:0},this.rollbackPath={[l.dY.Normal]:[],[l.dY.Wide]:[l.dY.Normal],[l.dY.Web]:[l.dY.Normal,l.dY.Wide],[l.dY.Mini]:[l.dY.Normal,l.dY.Wide],[l.dY.Full]:[l.dY.Normal,l.dY.Wide],[l.dY.Pip]:[l.dY.Normal,l.dY.Wide,l.dY.Web]}}get hasPipFn(){return this.ps?this.ps.pipKind!==Ve.Unknown:null}get pipEnabled(){return this.ps?this.ps.pipEnabled:null}get hasFullscreenFn(){return this.fs?!!this.fs.fullscreenMapping:null}get fullscreenEnabled(){return this.fs?this.fs.fullscreenEnabled:null}onMount(){super.onMount(),this.fs=new We(this.configStore.fullWrap||this.nodes.container),this.ps=new Ye(this.mediaStore.video),this.dc.mainScreenChanged=(0,r.EH)((()=>{this.lastChanged[this.uiStore.state.mainScreen]=performance.now()})),this.dc.sideScreenChanged=(0,r.EH)((()=>{null!=this.uiStore.state.sideScreen&&(this.lastChanged[this.uiStore.state.sideScreen]=performance.now())})),this.log.i(`M_Fullscreen:${this.fs.hasElementEvent}`),this.rootPlayer.on(a.p.PLAYER_MEDIA_CHANGED,(()=>Je(this,null,(function*(){if(this.ps&&this.ps.currentElement!==this.mediaStore.video&&this.ps.pipEntered)try{yield this.ps.exitPip()}catch(t){}this.removeEvents(),this.ps=new Ye(this.mediaStore.video),this.addEvents()})))),this.addEvents()}requestStatue(t,e,i){return Je(this,null,(function*(){if(this.log.i("[requestStatue]",bt.p`kind:${t},canExitPip:${e},alt:${i}`),null==t)return this.backwardStatue(e);switch(this.removeDelayEvents(),t){case l.dY.Normal:case l.dY.Wide:case l.dY.Web:case l.dY.Mini:{yield this.exitBrowserScreen(l.dY.Full),e&&(yield this.exitBrowserScreen(l.dY.Pip));const i=this.ps&&this.ps.pipElement===this.mediaStore.video,n=!e&&i?l.dY.Pip:null;return this.uiStore.setState({mainScreen:t,sideScreen:n}),void this.addDelayEvents()}case l.dY.Full:{const e=this.exitBrowserScreen(l.dY.Pip);return this.fs.requestFullscreen().then((i=>Je(this,null,(function*(){(yield e)?this.uiStore.setState({mainScreen:this.getPastScreenDetails().kind,sideScreen:t}):this.uiStore.setState({sideScreen:t}),this.addDelayEvents()})))).catch((t=>Je(this,null,(function*(){return t&&t.message&&this.log.w("[FullscreenError]",t.message),yield e,this.fixSideScreen(l.dY.Pip),this.addDelayEvents(),Promise.reject(t)}))))}case l.dY.Pip:{const e=this.exitBrowserScreen(l.dY.Full);return this.ps.requestPip().then((i=>Je(this,null,(function*(){(yield e)?this.uiStore.setState({mainScreen:this.getPastScreenDetails().kind,sideScreen:t}):this.uiStore.setState({sideScreen:t}),this.addDelayEvents()})))).catch((t=>Je(this,null,(function*(){return t&&t.message&&this.log.w("[PipScreenError]",t.message),yield e,this.fixSideScreen(l.dY.Full),this.addDelayEvents(),Promise.reject(t)}))))}default:throw new Error("Illegal argument")}}))}backwardStatue(t){return Je(this,null,(function*(){const e=!t,i=this.portStore.getScreenKind(e);switch(i){case l.dY.Pip:yield this.exitBrowserScreen(l.dY.Pip);break;case l.dY.Full:yield this.exitBrowserScreen(l.dY.Full);break;default:yield this.requestStatue(this.getPastScreenDetails(i).kind,t)}}))}fixSideScreen(t){const e="fixSideScreen",i=this.uiStore.state.sideScreen;if(this.log.i(e,`${t}/${i}`),i===t){let t=null;this.fs&&this.fs.fullscreenElement===this.fs.currentElement&&(t=l.dY.Full),this.ps&&this.ps.pipElement===this.ps.currentElement&&(t=l.dY.Pip),this.log.w(e,`${i} to ${t}`),this.uiStore.setState({sideScreen:t})}}exitBrowserScreen(t){return Je(this,null,(function*(){if(t===l.dY.Full){if(this.fs&&this.fs.fullscreenElement)return yield this.fs.exitFullscreen(),!0;this.fixSideScreen(t)}if(t===l.dY.Pip){if(this.ps&&this.ps.pipElement)return yield this.ps.exitPip(),!0;this.fixSideScreen(t)}return!1}))}addDelayEvents(){this.removeDelayEvents(),this.delayEventTimer=window.setTimeout((()=>this.addEvents()),50)}removeDelayEvents(){
null==this.delayEventTimer&&(clearTimeout(this.delayEventTimer),this.delayEventTimer=null),this.removeEvents()}getPastScreenDetails(t){const e=this.rollbackPath[null!=t?t:this.portStore.getScreenKind()].map((t=>({kind:t,timeStamp:this.lastChanged[t]}))).sort(((t,e)=>e.timeStamp-t.timeStamp))[0];return e?{kind:e.kind,isTrusted:!0}:{kind:l.dY.Normal,isTrusted:!1}}addEvents(){this.fs.hasElementEvent?(this.fs.addElementListener("fullscreenchange",this.onFullscreenChange),this.fs.addElementListener("fullscreenerror",this.onFullscreenError)):(this.fs.addListener("fullscreenchange",this.onFullscreenChange),this.fs.addListener("fullscreenerror",this.onFullscreenError)),this.ps.pipKind===Ve.Safari?this.ps.addListener("webkitpresentationmodechanged",this.onPipChange):(this.ps.addListener("enterpictureinpicture",this.onPipEnter),this.ps.addListener("leavepictureinpicture",this.onPipLeave))}removeEvents(){this.fs&&(this.fs.removeElementListener("fullscreenchange",this.onFullscreenChange),this.fs.removeElementListener("fullscreenerror",this.onFullscreenError),this.fs.removeListener("fullscreenchange",this.onFullscreenChange),this.fs.removeListener("fullscreenerror",this.onFullscreenError)),this.ps&&(this.ps.removeListener("enterpictureinpicture",this.onPipEnter),this.ps.removeListener("leavepictureinpicture",this.onPipLeave),this.ps.removeListener("webkitpresentationmodechanged",this.onPipChange))}onFullscreenChange(){this.fs&&(this.fs.fullscreenElement===this.fs.currentElement?this.uiStore.setState({sideScreen:l.dY.Full}):this.uiStore.setState({mainScreen:this.getPastScreenDetails().kind,sideScreen:null}))}onFullscreenError(){this.log.w("Fullscreen error")}onPipChange(t){this.ps.pipEntered?this.onPipEnter(t):this.onPipLeave(t)}onPipEnter(t){const e=t.pictureInPictureWindow;e&&(this.uiStore.setState({pipWindowWidth:e.width,pipWindowHeight:e.height}),e.addEventListener("resize",this.onPipWindowResize)),this.uiStore.setState({sideScreen:l.dY.Pip})}onPipLeave(t){const e=this.fs,i=t.pictureInPictureWindow;i&&(this.uiStore.setState({pipWindowWidth:i.width,pipWindowHeight:i.height}),i.removeEventListener("resize",this.onPipWindowResize)),e&&e.fullscreenElement===e.currentElement?(this.log.i("[iPad]","Pip -> Fullscreen"),this.uiStore.setState({sideScreen:l.dY.Full})):this.uiStore.setState({mainScreen:this.getPastScreenDetails().kind,sideScreen:null})}onPipWindowResize(t){if(t.target){const e=t.target.width,i=t.target.height;"number"==typeof e&&"number"==typeof i&&this.uiStore.setState({pipWindowWidth:e,pipWindowHeight:i})}}onDisconnect(){super.onDisconnect(),this.exitBrowserScreen(l.dY.Pip),this.removeDelayEvents(),this.removeEvents()}}qe([n.ZP],Ke.prototype,"onFullscreenChange",1),qe([n.ZP],Ke.prototype,"onFullscreenError",1),qe([n.ZP],Ke.prototype,"onPipChange",1),qe([n.ZP],Ke.prototype,"onPipEnter",1),qe([n.ZP],Ke.prototype,"onPipLeave",1),qe([n.ZP],Ke.prototype,"onPipWindowResize",1);class Xe extends At.eV{constructor(){super(...arguments),this.tag="HttpDmSend",this.url="//api.bilibili.com/x/v2/dm/post"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data||{};return{code:t.code,message:t.message,dmid:e.dmid_str,visible:e.visible,action:e.action,animation:e.animation,dm_content:e.dm_content}}}class $e extends At.eV{constructor(){super(...arguments),this.tag="HttpFirstShowSend",this.url="//api.bilibili.com/x/v2/dm/post2"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data||{};return{code:t.code,message:t.message,dmid:e.dmid_str,visible:e.visible,action:e.action,animation:e.animation}}}class ti extends At.eV{constructor(){super(...arguments),this.tag="HttpDmCmdSend",this.url="//api.bilibili.com/x/v2/dm/command/post"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data||{};return{code:t.code,message:t.message,dmid:e.idStr,extra:e.extra}}}class ei extends At.eV{constructor(){super(...arguments),this.tag="HttpDmCmdDel",this.url="//api.bilibili.com/x/v2/dm/command/del"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){return{code:t.code,message:t.message}}}class ii extends At.eV{constructor(){super(...arguments),this.tag="HttpOnlineNum",this.url="//api.bilibili.com/x/player/online/total"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){var e,i;const n=null==t?void 0:t.data;return{total:(null==n?void 0:n.total)||"-",count:(null==n?void 0:n.count)||"<10",showSwitch:{total:null==(e=null==n?void 0:n.show_switch)?void 0:e.total,count:null==(i=null==n?void 0:n.show_switch)?void 0:i.count}}}}var ni=Object.defineProperty,ri=Object.defineProperties,oi=Object.getOwnPropertyDescriptor,ai=Object.getOwnPropertyDescriptors,si=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,ci=(t,e,i)=>e in t?ni(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,hi=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?oi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&ni(e,i,o),o};class di extends s.u{constructor(t){super(t),(0,r.rC)(this)}get defaultState(){return{status:null,mid:null,level:null,dmRights:null,focus:!1,forceOn:!1,err:null,webNum:"-",allNum:"-",showWeb:!0,showAll:!0,postPanelCard:null,outSendMsg:null}}onMounted(){super.onMounted(),this.configStore.fromDid&&(this.setState({forceOn:!0}),this.forceOn=!0),this.dc.dmVisible=(0,r.U5)((()=>this.dmVisible),(()=>{this.rootPlayer.emit(o.t.Player_Danmaku_Change,new CustomEvent(o.t.Player_Danmaku_Change))})),this.dc.forceDm=(0,r.EH)((()=>{this.forceOn=this.state.forceOn}))}onLoaded(t){super.onLoaded(t),this.setState({err:t.err,mid:t.mid,level:t.level,dmRights:t.dmRights})}get status(){var t;let e=this.state.status;const{isViewLoaded:i,state:n,checkBox:r}=this.danmakuStore.state,o=this.userStore.info,a=this.state.status;if(!this.userStore.isLogin)return j.Rs.SEND_STATUS_LOGOUT;if(i)switch(n){case 0:r&&this.localStore.get().dmSend.upDm&&(e=j.Rs.SEND_STATUS_UP_DM);break;case 1:return j.Rs.SEND_STATUS_CLOSED;case 2:return j.Rs.SEND_STATUS_UPDATE}return"number"==typeof(null==(t=null==o?void 0:o.dmRights)?void 0:t.initStatus)&&(e=o.dmRights.initStatus),null!==a&&(e=a),e}get dmVisible(){let t=this.dmSettingStore.state.dmSwitch;const e=this.dmSettingStore.state.dmSwitchOut;return!this.danmakuStore.state.state&&(!!this.forceOn||("boolean"==typeof e&&(t=e),t))}send(t){return new Xe(this.rootPlayer).r(((t,e)=>ri(t,ai(e)))(((t,e)=>{for(var i in e||(e={}))li.call(e,i)&&ci(t,i,e[i]);if(si)for(var i of si(e))Ai.call(e,i)&&ci(t,i,e[i]);return t})({},t),{polaris_app_id:100,polaris_platform:5,spmid:this.configStore.spmId,
from_spmid:this.configStore.spmIdFrom,statistics:this.configStore.statisticsReport}))}firstShowSend(t){return new $e(this.rootPlayer).r(t)}cmdSend(t){return new ti(this.rootPlayer).r(t)}cmdDel(t){return new ei(this.rootPlayer).r({dmid:t,oid:this.configStore.cid})}onlineNum(t){return new ii(this.rootPlayer,{noStore:!0}).r(t)}}hi([r.Fl],di.prototype,"status",1),hi([r.Fl],di.prototype,"dmVisible",1);class ui extends At.eV{constructor(){super(...arguments),this.tag="HttpDmid",this.url="//api.bilibili.com/x/v2/dm/thumbup/detail"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data||{};return{dmid:e.dmid_str,likes:e.likes||1,liked:e.user_like,mode:e.mode,color:e.color,size:e.font_size,pool:e.pool,attr:e.attr,stime:e.progress/1e3||0,text:e.msg||""}}}var pi=i(72927);class gi extends At.eV{constructor(){super(...arguments),this.tag="HttpDmReport",this.url="//api.bilibili.com/x/dm/report/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class fi extends At.eV{constructor(){super(...arguments),this.tag="HttpDmForbid",this.url="//api.bilibili.com/x/v2/dm/filter/up/black"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class mi extends At.eV{constructor(){super(...arguments),this.tag="HttpDmLike",this.url="//api.bilibili.com/x/v2/dm/thumbup/stats"}r(t){return e=this,i=null,n=function*(){return this.ids=t.ids,this.request({url:this.url,params:t,withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=null==t?void 0:t.data;if(e)for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].id_str===this.ids)return{num:e[t].likes,liked:Boolean(e[t].user_like)};return null}}class yi extends At.eV{constructor(){super(...arguments),this.tag="HttpUpDmDelete",this.url="//api.bilibili.com/x/v2/dm/up/delete"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class bi extends At.eV{constructor(){super(...arguments),this.tag="HttpUpDmSender",this.url="//api.bilibili.com/x/v2/dm/up/sender"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0,method:"get"}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class vi extends At.eV{constructor(){super(...arguments),this.tag="HttpDmLike",this.url="//api.bilibili.com/x/v2/dm/thumbup/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var Ei=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Ci=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Ii(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Ei(e,i,o),o},Bi=(t=>(t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.LeftCenter=4]="LeftCenter",t[t.CenterCenter=5]="CenterCenter",t[t.RightCenter=6]="RightCenter",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight",t))(Bi||{});class wi extends s.u{constructor(t){super(t),this.records=new r.vP,(0,r.rC)(this)}tryStartTimerClock(t){t.duration&&!t.timerClock&&(t.timerClock=new h.eF(((e,i)=>{i>=e&&this.remove(t.name)}),t.duration,250))}create(t){this.defRenderTarget=this.defRenderTarget||this.nodes.tooltipArea||this.nodes.container;const e=Object.assign({title:"Hello",delay:300,duration:3e3,position:2,gap:6,offsetX:0,offsetY:0,renderGap:8,renderTarget:this.defRenderTarget,timeStamp:Date.now()},t);if(e.target||(null==e.clientX&&(e.clientX=this.uiStore.state.mouseClientX),null==e.clientY&&(e.clientY=this.uiStore.state.mouseClientY)),e.tip&&(e.duration=0,null==e.target))throw new Error("`target` is required when `tip` is truly");this.tryStartTimerClock(e),this.records.set(e.name,e)}update(t,e){const i=this.records.get(t);return!!i&&(i.timeStamp=Date.now(),!!e&&(i.title&&e.title&&(i.title=e.title),this.records.set(t,i),!0))}remove(t){const e=this.records.get(t);return!!e&&(e.timerClock&&(e.timerClock.abort(),e.timerClock=null),this.records.delete(t),!0)}onDisconnect(){super.onDisconnect(),this.records.forEach((t=>{this.remove(t.name)}))}}Ci([r.LO],wi.prototype,"records",2),Ci([r.aD],wi.prototype,"create",1),Ci([r.aD],wi.prototype,"update",1),Ci([r.aD],wi.prototype,"remove",1);var xi=Object.defineProperty,Qi=Object.defineProperties,Si=Object.getOwnPropertyDescriptor,ki=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Mi=(t,e,i)=>e in t?xi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ti=(t,e)=>{for(var i in e||(e={}))_i.call(e,i)&&Mi(t,i,e[i]);if(Di)for(var i of Di(e))Ri.call(e,i)&&Mi(t,i,e[i]);return t},Fi=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Si(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&xi(e,i,o),o},Li=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Ni extends s.u{constructor(t){super(t),this.tag="DanmakuStore",this.host="//api.bilibili.com/x/v2/dm/web/",this.basSegment={},this.loadAllDm=[],this.userChange=!1,this.pageSize=360,this.allSegment={},this.allHistory={},this.dmTrack=this.defaultTrack,this.dmTrackInfo={},this.cmdDmTrackInfo={},(0,r.rC)(this)}get defaultState(){return{textSide:"",cmdDm:null,addCmd:null,state:null,text:"",isViewLoaded:!1,checkBox:!1,basUrl:null,noStopDm:!0,reportDmid:null,expressions:null,postPanel:null,fragClose:null,updateDm:1,threeBody:null,ashAnimation:0,isFirstLoadSegment:!1,isHideInput:!1,maskWalls:null,sandDuneProps:[],marsResource:null,shooterResource:null,liveToVod:null,dmRestrict:null,qoe:null}}get defaultTrack(){return{all:0,allbas:0,view:0,dm:0,bas:0,appendtime:0,dmnum:0,dmdetail:0,dmdetailfail:0,fail:"",dmSetIO:null,dmSize:0}}get shouldShowMarsNode(){const t=this.portStore.getCurrentTime();return this.state.marsResource&&this.state.marsResource.start<=t&&this.state.marsResource.end>=t&&this.sendStore.dmVisible}get shouldClearDmWhenEnterShooterTime(){const t=this.portStore.getCurrentTime(),e=t-1;return this.state.shooterResource&&this.sendStore.dmVisible&&(t>=this.state.shooterResource.start&&e<this.state.shooterResource.start||t>=this.state.shooterResource.end&&e<this.state.shooterResource.end)}get isFirstEnterShooterTime(){const t=this.portStore.getCurrentTime(),e=t-1
;return this.state.shooterResource&&this.sendStore.dmVisible&&t>=this.state.shooterResource.start&&e<this.state.shooterResource.start}get regulatedIntervals(){if(!this.state.dmRestrict||!this.state.dmRestrict.periods)return!1;const t=1e3*this.portStore.getCurrentTime();return this.state.dmRestrict.periods.some((e=>t>=e.start&&t<=e.end))}get isPaused(){return this.mediaStore.state.paused||this.mediaStore.state.buffering}get canLoadAll(){return!this.dmListStore.state.allLoaded&&(!!this.mediaStore.state.duration&&(!(!this.state.isViewLoaded||this.state.state)&&!(!this.auxStore.state.isListSpread||this.auxStore.state.currentMenu!==A.ju.LIST)))}onMount(){super.onMount(),this.rootPlayer.on(a.p.PLAYER_UNLOAD,(t=>{var e;const i=(e=this.metricStore.quitInfo).dmInfo||(e.dmInfo={});for(const t in this.dmTrack)this.dmTrack[t]&&(i[t]=this.dmTrack[t])})),this.configStore.embeddedEnv&&this.setState({isHideInput:!0})}onLoaded(t){if(super.onLoaded(t),this.configStore.cid||this.configStore.episodeId){if(this.setState({isViewLoaded:!1}),this.configStore.noDanmaku||this.dmCmdStore.creator)return void this.log.i("noDanmaku");if(this.configStore.isPcApp&&this.configStore.localUrl)return void this.log.i("noDanmaku: PC App local video");this.fetchDmView(t).then((t=>(this.userChange=!0,this.setState({isViewLoaded:!0}),this.sendStore.setState({forceOn:!1}),t))).then((t=>Li(this,null,(function*(){if(t){const{dmSetting:e,commandDms:i,maskWalls:n}=t,r=i?i.length:0;if(e){const{aiLevel:t,aiSwitch:i,dmSwitch:n}=e;this.log.i("[requestDmInfo]",JSON.stringify({commandDmLen:r,dmSwitch:Boolean(n),aiSwitch:Boolean(i),aiLevel:t}))}else this.log.i("[requestDmInfo]",JSON.stringify({commandDmLen:r}))}}))))}}fetchDmid(t){return new ui(this.rootPlayer).r({dmid:t,oid:this.configStore.cid})}getDataFromLocalCacheFunc(t){const e={type:"dm",cid:this.configStore.cid};return"number"==typeof t&&(e.segment=t),()=>(0,de.$)(this.rootPlayer,e)}fetchDmView(t){let{cid:e,aid:i,fromLocalCache:n}=this.rootStore.configStore;const r=new pi.dN(this.rootPlayer),o=this.patchAdvStore.hasValidAdv;let a=Math.floor(this.portStore.getDuration())||0;o&&this.patchAdvStore.mainInfo&&this.patchAdvStore.mainInfo.timelength&&(a=Math.floor(this.patchAdvStore.mainInfo.timelength/1e3));let s=`${this.host}view?type=1&oid=${e}&pid=${i}&duration=${a}&without_subtitle=true`;if(o){let t=`&context_ext=${encodeURIComponent(JSON.stringify(this.patchAdvStore.contextExt))}`;s=`${this.host}view?type=1&oid=${this.patchAdvStore.mainInfo.cid}&pid=${this.patchAdvStore.mainInfo.aid}&duration=${a}&without_subtitle=true`+t}return r.r(null,{url:s,retryCount:0,type:"view",getDataFromLocalCache:n?this.getDataFromLocalCacheFunc():null}).then((e=>{var i,n;if(!e.details)return this.dmTrack.view++,null;let r=e.details;if(r){this.patchAdvStore.processDmViewRePlyOffset(r),r.commandDms=this.handleLiveToVodDanmaku(r.commandDms);const e={text:r.text||"",checkBox:r.checkBox,state:r.state||0,maskWalls:r.maskWalls||[],dmRestrict:r.dmRestrict||null};r.dmRestrict&&this.track.o(x.w.O_Restrict_Intervals,{val:JSON.stringify(r.dmRestrict)}),r.textSide&&(e.textSide=r.textSide),this.setState(e);try{(null==(i=null==r?void 0:r.qoe)?void 0:i.info)&&this.setState({qoe:r.qoe})}catch(t){console.log("error",t)}!w.X.cssVar||this.configStore.embeddedEnv||this.configStore.isChannel(l.u5.Mini_Site)||this.configStore.isChannel(l.u5.Homepage)||this.setState({cmdDm:r.commandDms}),r.activityMetas&&r.activityMetas.length&&this.addActivityMetas(r.activityMetas),r.checkBox&&this.dmModeStore.setState({checkBoxValue:this.localStore.get().dmSend.upDm}),this.blockStore.reportFilter=r.reportFilter,this.state.expressions=r.expressions,this.setLocal(r.dmSetting,Boolean(t.mid))}return this.userChange&&!this.state.state||(this.viewLoaded(r,t),this.dmTrack.dmnum+=(null==(n=r.commandDms)?void 0:n.length)||0,this.dmListStore.setState({viewCount:r.count||0})),r})).catch((t=>({})))}fetchDmSeg(t){let{cid:e,aid:i,fromLocalCache:n}=this.rootStore.configStore,r=0,o="";this.patchAdvStore.hasValidAdv&&(i=this.patchAdvStore.mainInfo.aid,e=this.patchAdvStore.mainInfo.cid,r=this.patchAdvStore.prePatchDuration(),o=`&context_ext=${encodeURIComponent(JSON.stringify(this.patchAdvStore.contextExt))}`);let a=`//api.bilibili.com/x/v2/dm/wbi/web/seg.so?type=1&oid=${e}&pid=${i}`;a+=t<2?`&segment_index=1&pull_mode=1&ps=${1===t?0+r:12e4+r}&pe=${1===t?12e4+r:36e4+r}`:`&segment_index=${t}`,a+=o;return new pi.dN(this.rootPlayer).r(null,{url:a,retryCount:3,getDataFromLocalCache:n?this.getDataFromLocalCacheFunc(t):null})}fetchDmBas(t){return new pi.dN(this.rootPlayer).r(null,{url:t,retryCount:1,withCredentials:!1})}dmReport(t,e){return new gi(this.rootPlayer).r(((t,e)=>Qi(t,ki(e)))(Ti({cid:e||this.configStore.cid},t),{polaris_app_id:100,polaris_platform:5,spmid:this.configStore.spmId,from_spmid:this.configStore.spmIdFrom,statistics:this.configStore.statisticsReport}))}dmForbid(t){return new fi(this.rootPlayer).r({oid:this.configStore.cid,dmid:t})}dmLikeStats(t){return new mi(this.rootPlayer).r({oid:this.configStore.cid,ids:t})}upDmDelete(t){return new yi(this.rootPlayer).r({oid:this.configStore.cid,dmid:t,type:1})}upDmSender(t){return new bi(this.rootPlayer).r({oid:this.configStore.cid,dmid:t,type:1})}dmLike(t,e,i){return new vi(this.rootPlayer).r({op:e,dmid:t,oid:i||this.configStore.cid,platform:"web_player",polaris_app_id:100,polaris_platform:5,spmid:this.configStore.spmId,from_spmid:this.configStore.spmIdFrom,statistics:this.configStore.statisticsReport})}dmReportBlock(t,e,i){t&&(this.blockStore.addReportFilter(t),this.blockStore.add(i,2),this.setState({reportDmid:e}),this.dmSettingStore.refresh())}viewLoaded(t,e){var i;this.pageSize=t.dmSge?t.dmSge.pageSize/1e3:360;const n=this.mpdStore.dmStartOffset;let r=Math.ceil(n/this.pageSize)||1;if(n<this.pageSize&&n>this.pageSize/3&&(r=1.5),null==(i=t.postPanelV2)?void 0:i.length){const e=t.postPanelV2.map((t=>(t.start||(t.start=0),t)));this.setState({postPanel:e})}this.loadDmPb(r),Array.isArray(t.specialDms)&&this.loadBasPb(t.specialDms)}loadDmPb(t=1,e){if(!this.allSegment[t]){this.dmTrack.all++;const i=performance.now();this.allSegment[t]=this.fetchDmSeg(t).then((n=>{var r,o;this.dmTrack.dmSize+=Number((n.size/1024).toFixed(2));const a=(null==(r=n.details)?void 0:r.elems)||[],s=null==(o=n.details)?void 0:o.colorfulSrc;return a.forEach((t=>{if(!t.colorful||!s.length)return;const e=s.find((e=>e.type===t.colorful));e&&(t.colorfulImg=this.updateColorfulProtocol(e.src))})),a.forEach((t=>{if(t.animation&&t.animation.includes("20031"))try{let e=JSON.parse(t.animation);20031===(null==e?void 0:e.id)&&(t.color=parseInt(e.font_color.slice(1)||"0",16)),t.animation=JSON.stringify(e)}catch(t){}})),this.dmListStore.state.metaResource.forEach((t=>{20017===t.id&&a.forEach((e=>{if(!e.animation||"string"!=typeof e.animation)return;const i=JSON.parse(e.animation)||{};20017===i.id&&(i.resource=`https://${t.color_picture.resource}`,e.animation=JSON.stringify(i))})),20025===t.id&&a.forEach((e=>{if(!e.animation||"string"!=typeof e.animation)return;const i=JSON.parse(e.animation)||{};20025===i.id&&(i.resource=`https://${t.resource}`,e.animation=JSON.stringify(i))}))})),this.log.i("[DmSeg]",JSON.stringify({error:n.error,len:a.length,segment:t})),n.error?(this.dmTrack.fail+=`${t},`,void this.dmTrack.dm++):(a.length&&(this.dmTrack.loadtime+=performance.now()-i,e?Array.prototype.push.apply(this.loadAllDm,a):this.appendDm(a)),a)})).then((t=>(this.state.isFirstLoadSegment||this.danmakuStore.setState({isFirstLoadSegment:!0}),t)))}return this.allSegment[t]}appendDm(t){const e=performance.now();this.dmListStore.appendDm(t),this.dmTrack.appendtime+=performance.now()-e,this.dmTrack.dmnum+=(null==t?void 0:t.length)||0}loadBasPb(t){let e="";for(let i=0;i<t.length;i++)t[i]&&(e=t[i].replace("http://","//"),this.basSegment[e]||(this.dmTrack.allbas++,this.basSegment[e]=this.fetchDmBas(e).then((t=>{var i;return t.error?(this.dmTrack.fail+=`${e},`,void this.dmTrack.bas++):(t.details&&this.dmListStore.appendDm(t.details.elems),(null==(i=t.details)?void 0:i.elems)||[])}))))}addActivityMetas(t){return Li(this,null,(function*(){var e;let i=[],n=[],r=[],o=[],a=[];for(let s=0;s<t.length;s++){let l={};try{
l=JSON.parse(t[s])}catch(t){}if(this.patchAdvStore.hasValidAdv&&l.start&&l.end&&(l.start+=Math.floor(this.patchAdvStore.prePatchDuration()/1e3),l.end+=Math.floor(this.patchAdvStore.prePatchDuration()/1e3)),l.id)switch(l.id){case 20016:i.push(l);break;case 20017:let A=l.color_picture.resource.replace("http://","//");A=A.replace("https://","//"),0!==A.indexOf("//")&&(A="//"+A),l.color_picture.resource=A,r.push(l);break;case 20023:case 20022:const{color:c,fontsize:h,mode:d,pool:u}=this.dmModeStore.state,p={mode:d,color:c,pool:u,size:h,stime:1e3*l.start,border:!0,dmid:"",text:"firework",uhash:null==(e=this.userStore.info)?void 0:e.hashId,animation:t[s]};o.push(p);break;case 20025:r.push(l);break;case 20026:n.push(l);break;case 20031:const g=l.resource,f=yield this.fetchTextFile(g),m=this.parseSandDuneData(f),y={start:l.start,end:l.end,showTime:l.show_time,pointFile:m,strokeColor:l.stroke_color,fontColor:l.font_color,selfStrokeColor:l.self_stroke_color,selfFontColor:l.self_font_color};a.push(y);case 20032:r.push(l),this.setState({shooterResource:{url:l.resource,start:l.start,end:l.end}});break;case 20033:this.setState({marsResource:{url:l.resource,start:l.start,end:l.end,defaultState:l.default_state}})}}i.length&&this.dmListStore.setState({reverseDmSrc:i}),n.length&&this.dmListStore.setState({bidirectionSrc:n}),r.length&&this.dmListStore.setState({metaResource:r}),o.length&&this.dmListStore.setState({fireworkSrc:o}),this.setState({sandDuneProps:a})}))}removeDuplicatesByDmid(t){try{const e=new Map;return(t=t.filter((t=>t))).forEach((t=>{e.has(t.dmid)||e.set(t.dmid,t)})),Array.from(e.values())}catch(e){return t}}loadDmPbAll(t=!1){t&&(this.allSegment={});let e=this.mediaStore.state.duration/this.pageSize+1;const i=[],n=this.mpdStore.dmStartOffset;Math.ceil(n/this.pageSize);return new Promise(((t,n)=>{for(let t=1;t<e;t++)i.push(this.loadDmPb(t,!0)),1===t&&i.push(this.loadDmPb(1.5,!0));for(const t in this.basSegment)this.basSegment[t]||i.push(this.basSegment[t]);Promise.all(i).then((e=>{let i=[];e.forEach((t=>{var e;t&&9===(null==(e=t[0])?void 0:e.mode)||(i=i.concat(t))})),this.patchAdvStore.hasValidAdv&&(i=this.removeDuplicatesByDmid(i)),this.allHistory[0]=Promise.resolve(i),this.appendDm(this.loadAllDm),this.loadAllDm.length=0,this.dmListStore.setState({allLoaded:!0,count:this.dmListStore.filteredAllDm.length}),t()})).catch((()=>{this.appendDm(this.loadAllDm),this.loadAllDm.length=0,this.dmListStore.setState({allLoaded:!0,count:this.dmListStore.filteredAllDm.length}),n()}))}))}loadHistory(t){if(!this.allHistory[t]){const e=new pi.dN(this.rootPlayer),{cid:i}=this.rootStore.configStore,n=`${this.host}history/seg.so?type=1&oid=${i}&date=${t}`;this.allHistory[t]=e.r(null,{url:n,retryCount:1}).then((e=>{var i;return e.error?(this.dmTrack.fail+=`${t},`,this.allHistory[t]=null,Promise.reject()):null==(i=e.details)?void 0:i.elems}))}return this.allHistory[t]}updateColorfulProtocol(t){try{const e=JSON.parse(t);return["fill_color","stroke_color"].forEach((t=>{e[t]&&(e[t]=e[t].replace("http","https"))})),JSON.stringify(e)}catch(t){return console.error("Failed to parse or modify src JSON:",t),null}}setLocal(t,e){if(t&&e){const e=Ti({},this.localStore.get().dmSetting);for(const i in t)e[i]=t[i];e.aiSwitch=!0,this.dmSettingStore.onlineSetting(e)}else{const e={seniorModeSwitch:0},{dmSwitch:i}=t||{};void 0!==i&&(e.dmSwitch=i),this.dmSettingStore.onlineSetting(e)}}tooltipCenter(t,e){this.tooltipStore.create({name:t,title:e,target:this.nodes.container,position:Bi.CenterCenter,duration:1e3})}onDispose(){super.onDispose(),this.userChange=!1,this.pageSize=360,this.allSegment={},this.allHistory={},this.basSegment={}}fetchTextFile(t){return t="https://"+t,fetch(t).then((t=>{if(!t.ok)throw new Error("Network response was not ok "+t.statusText);return t.text()})).catch((t=>{throw console.error("There was a problem with the fetch operation:",t),t}))}parseSandDuneData(t){const e=t.trim().split("\n"),i=[];for(const t of e){const[e,n,r]=t.split(",").map(Number),o={timeoffset:e,x:n,y:r};i.push(o)}return i}createLiveToVodDanmaku(t){return{stime:0,text:t||"本视频弹幕包含部分直播弹幕",mode:1,animation:JSON.stringify({id:100001}),dmid:"LiveToVodDanmaku",attr:1048576,color:16777215,size:25,weight:11,modeInfo:{},isMine:!0,hideInAuxList:!0}}handleLiveToVodDanmaku(t){if(Array.isArray(t)&&t.length>0){const e="#LIVE#",i=t.find((t=>(null==t?void 0:t.command)===e));if(i){const n=this.createLiveToVodDanmaku(i.text);return this.setState({liveToVod:n}),t.filter((t=>t.command!==e))}}return t}}Fi([r.Fl],Ni.prototype,"shouldShowMarsNode",1),Fi([r.Fl],Ni.prototype,"shouldClearDmWhenEnterShooterTime",1),Fi([r.Fl],Ni.prototype,"isFirstEnterShooterTime",1),Fi([r.Fl],Ni.prototype,"regulatedIntervals",1),Fi([r.Fl],Ni.prototype,"isPaused",1),Fi([r.Fl],Ni.prototype,"canLoadAll",1),Fi([n.ZP],Ni.prototype,"getDataFromLocalCacheFunc",1);class Pi extends At.eV{constructor(){super(...arguments),this.tag="HttpAdvVerify",this.url="//api.bilibili.com/x/dm/adv/state"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data||{};return{hasBuy:e.hasBuy,confirm:e.confirm,accept:e.accept,coins:e.coins}}}class Ui extends At.eV{constructor(){super(...arguments),this.tag="HttpAdvBuy",this.url="//api.bilibili.com/x/dm/adv/buy"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){return t||{}}}var Oi=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor,Hi=(t=>(t[t.Hide=-3]="Hide",t[t.None=-2]="None",t[t.NeedBuy=-1]="NeedBuy",t[t.Request=0]="Request",t[t.Confirm=1]="Confirm",t[t.Verification=2]="Verification",t[t.Reject=3]="Reject",t))(Hi||{});class Vi extends s.u{constructor(t){super(t),(0,r.rC)(this)}get defaultState(){return{advDm:null,testAdvDm:null,verifyState:-2}}get isShow(){const{currentMenu:t,isListSpread:e}=this.auxStore.state;return t===A.ju.ADV&&e}send(t){return this.sendStore.send(t)}verify(){return new Pi(this.rootPlayer).r({aid:this.configStore.aid,cid:this.configStore.cid,mode:"sp"})}buyVerify(){return new Ui(this.rootPlayer).r({aid:this.configStore.aid,cid:this.configStore.cid,mode:"sp"})}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?Gi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Oi(e,i,o)})([r.Fl],Vi.prototype,"isShow",1);var Yi=Object.defineProperty,zi=Object.getOwnPropertyDescriptor,Wi=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Zi extends s.u{constructor(t){super(t),(0,r.rC)(this)}get defaultState(){return{basTest:null,showCodePanel:!1}}get isShowVisual(){const{currentMenu:t,isListSpread:e}=this.auxStore.state;return t===A.ju.BAS&&e}test(t,e){return new Promise(((i,n)=>Wi(this,null,(function*(){if(t&&t.text){(yield(0,j.ae)()).default.parse({danmaku:t,success:t=>{this.setState({basTest:{dm:t,test:!e}}),i(t)},error:t=>{n({code:-1,message:"弹幕格式错误: "+t})}})}else n({code:-1,message:"请输入弹幕内容"})}))))}send(t,e){return new Promise(((i,n)=>Wi(this,null,(function*(){if(t&&t.text){const r={type:1,oid:this.configStore.cid,msg:t.text,aid:this.configStore.aid,progress:Math.ceil(1e3*t.stime),color:1,fontsize:1,pool:2,mode:9,rnd:this.configStore.pid,plat:1};(yield(0,j.ae)()).default.parse({danmaku:t,success:o=>{e?this.dmListStore.delete(e).then((e=>{e.body&&0===e.body.code?this.sendStore.send(r).then((e=>{if(0===e.body.code&&e.body.dmid){const n=this.userStore.info;t.dmid=e.body.dmid,t.uhash=null==n?void 0:n.hashId,t.uname=(null==n?void 0:n.name)?n.name.split(" ")[0]:"",t.pool=r.pool,t.mode=r.mode,
this.dmListStore.addDm(t),i(t)}else n({code:-2,message:`修改失败：弹幕被删除，请重新发送，${e&&e.message?e.message:""}`})})).catch((t=>{n({code:-1,message:"发送失败：接口请求失败"})})):n({code:-1,message:"修改失败：无权限或其他未知原因"})})).catch((t=>{n({code:-1,message:"修改失败：接口请求失败"})})):this.sendStore.send(r).then((e=>{if(0===e.body.code&&e.body.dmid){const n=this.userStore.info;t.dmid=e.body.dmid,t.uhash=null==n?void 0:n.hashId,t.uname=(null==n?void 0:n.name)?n.name.split(" ")[0]:"",t.pool=r.pool,t.mode=r.mode,this.dmListStore.addDm(t),i(t)}else n({code:-1,message:`发送失败：${e.body&&e.body.message?e.body.message:"未知原因"}`})})).catch((t=>{n({code:-1,message:"发送失败：接口请求失败"})}))}})}else n({code:-1,message:"请输入弹幕内容"})}))))}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?zi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Yi(e,i,o)})([r.Fl],Zi.prototype,"isShowVisual",1);var ji=i(60802);class qi extends At.eV{constructor(){super(...arguments),this.tag="HttpDmRecall",this.url="//api.bilibili.com/x/v2/dm/recall"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class Ji extends At.eV{constructor(){super(...arguments),this.tag="HttpDmProtect",this.url="//api.bilibili.com/x/dm/protect/apply"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class Ki extends At.eV{constructor(){super(...arguments),this.tag="HttpDmMove",this.url="//api.bilibili.com/x/v2/dm/edit/pool"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class Xi extends At.eV{constructor(){super(...arguments),this.tag="HttpDmState",this.url="//api.bilibili.com/x/v2/dm/edit/state"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class $i extends At.eV{constructor(){super(...arguments),this.tag="HttpDmMonth",this.url="//api.bilibili.com/x/v2/dm/history/index"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>{var e;return{body:null==(e=t.data)?void 0:e.data,response:t}}))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var tn=Object.defineProperty,en=Object.defineProperties,nn=Object.getOwnPropertyDescriptor,rn=Object.getOwnPropertyDescriptors,on=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,ln=(t,e,i)=>e in t?tn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,An=(t,e)=>{for(var i in e||(e={}))an.call(e,i)&&ln(t,i,e[i]);if(on)for(var i of on(e))sn.call(e,i)&&ln(t,i,e[i]);return t},cn=(t,e)=>en(t,rn(e)),hn=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?nn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&tn(e,i,o),o};class dn extends s.u{constructor(t){super(t),this.dmidApplied={},this.allDm=[],this.basList=[],this.dmModeMap={},(0,r.rC)(this)}get defaultState(){return{refresh:0,loadding:0,count:0,viewCount:0,addDm:null,addDmList:[],addBas:null,addBasList:[],addAdv:null,addAdvList:[],addCrossList:[],deletingDm:[],delDmid:[],searchId:"",allLoaded:!1,history:"",reverseDmSrc:[],bidirectionSrc:[],metaResource:[],addReverseList:[],fireworkSrc:[]}}get multiViewBtn(){var t;return null==(t=this.mpdStore.body)?void 0:t.clipInfoList}get realCount(){const{viewCount:t,count:e,allLoaded:i}=this.state;return i?e:t}get isShow(){const{currentMenu:t,isListSpread:e}=this.auxStore.state;return t===A.ju.LIST&&e}get canScrollTo(){return Boolean(this.state.searchId&&this.state.allLoaded)}get filteredAllDm(){return this.allDm.filter((t=>{var e;return t.dmid!==(null==(e=this.danmakuStore.state.liveToVod)?void 0:e.dmid)}))}addDm(t,e=!1){const i=Math.floor((t.stime/1e3||0)/this.danmakuStore.pageSize)+1;if(!this.danmakuStore.allSegment[i])return;let n=this.realCount;e||(this.allDm.push(t),++n);const r={};switch(this.state.allLoaded?r.count=n:r.viewCount=n,t.mode){case 7:t.weight=10,r.addAdv=t;break;case 9:t.weight=10,r.addBas=t,this.basList.push(t);break;default:t.weight||(t.weight=-Math.round(10*Math.random())),r.addDm=t}this.danmakuStore.dmTrack.dmnum++,this.setState(r)}recall(t,e){const i=new qi(this.rootPlayer);let n=this.configStore.cid;return this.patchAdvStore.hasValidAdv&&e&&(n=e),i.r({dmid:t,cid:n,type:1}).then((e=>{if(0===e.body.code){let e=this.realCount;const i={delDmid:[t]};for(let i=0;i<this.allDm.length;i++)if(this.allDm[i].dmid===t){this.allDm.splice(i,1),e-=1;break}this.state.allLoaded?i.count=e:i.viewCount=e,this.setState(i)}return e}))}protect(t){var e;return new Ji(this.rootPlayer).r({dmids:t,mid:null==(e=this.userStore.info)?void 0:e.mid,cid:this.configStore.cid}).then((e=>{switch(e.body.code){case 0:case 36104:t.split(",").forEach((t=>{this.dmidApplied[t]=!0}))}return this.refresh(),e}))}refresh(){this.setState({refresh:this.state.refresh+1})}move(t){return new Ki(this.rootPlayer).r({dmids:t,type:1,pool:1,oid:this.configStore.cid})}delete(t){return new Xi(this.rootPlayer).r({dmids:t,state:1,type:1,oid:this.configStore.cid}).then((e=>(0===e.body.code&&this.setState({deletingDm:t.split(",")}),e)))}dmState(t){return new Xi(this.rootPlayer).r({dmids:t,state:2,type:1,oid:this.configStore.cid})}laodActiveMonth(t){return new $i(this.rootPlayer).r({month:t,type:1,oid:this.configStore.cid})}isMineDanmaku(t){var e;return t&&void 0===(null==t?void 0:t.isMine)&&(t.isMine=Boolean((null==t?void 0:t.attr)>>18&1)),null!=(e=(null==t?void 0:t.isMine)||(null==t?void 0:t.border))&&e}canProtect(t){const e=this.userStore.info;return!!(this.uiStore.kind===l.HR.Pgc&&t&&(null==e?void 0:e.level)>=4)&&this.isMineDanmaku(t)}setDMModeMap(t){this.dmModeMap[t]||(this.dmModeMap[t]=0),this.dmModeMap[t]++}getDMModeMap(){return this.dmModeMap}getMetaResourceById(t){if(this.state.metaResource.length>0){for(let e of this.state.metaResource)if(e.id===t)return e;return null}return null}removeDuplicatesByDmid(t){try{const e=new Map;return(t=t.filter((t=>t))).forEach((t=>{e.has(t.dmid)||e.set(t.dmid,t)})),Array.from(e.values())}catch(e){return t}}appendDm(t){if(!Array.isArray(t))return;const e=1e3*this.mpdStore.dmStartOffset,i=this.configStore.cid,n=[...this.state.addDmList],r=[],o=[],a=[],s=[];t.forEach((t=>{var l;if(!(null==(l=t.text)?void 0:l.replace(/\r/g,"")))return;if(t.stime<e)return;if(this.configStore.embeddedEnv>1){if(![1,4,5,6].includes(t.mode))return}t.stime-=e;const A=(0,ji.j)(t.animation),{id:c,cid:h}=A||{};if(20016===c)return h&&h!==i||this.allDm.push(t),1===A.direction?void s.push(cn(An({},t),{effect:A,stime:t.stime/1e3||0})):void n.push(t);if(1002!==c){switch(t.mode){case 7:t.color=t.color||16777215,o.push(t);break;case 9:const e=cn(An({},t),{stime:t.stime/1e3||0});r.push(e),this.basList.push(e);break;default:if(this.configStore.fromDid===t.dmid)return;n.push(t)}this.allDm.push(t),this.setDMModeMap(t.mode)}else a.push(cn(An({},t),{stime:t.stime/1e3||0}))})),this.patchAdvStore.hasValidAdv&&(this.allDm=this.removeDuplicatesByDmid(this.allDm)),a.length&&w.X.cssVar&&this.setState({addCrossList:a}),s.length&&w.X.cssVar&&this.setState({
addReverseList:s}),r.length&&this.setState({addBasList:r}),n.length&&this.setState({addDmList:n}),o.length&&this.setState({addAdvList:o}),this.state.viewCount||this.setState({count:this.allDm.length})}reset(){this.allDm=[]}onDispose(){super.onDispose(),this.reset(),this.basList=[],this.loadAnimationZipPromise=null}}hn([r.Fl],dn.prototype,"multiViewBtn",1),hn([r.Fl],dn.prototype,"realCount",1),hn([r.Fl],dn.prototype,"isShow",1),hn([r.Fl],dn.prototype,"canScrollTo",1);class un extends At.eV{constructor(){super(...arguments),this.tag="HttpVote",this.url="//api.bilibili.com/x/v2/dm/command/vote/post"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class pn extends At.eV{constructor(){super(...arguments),this.tag="HttpImg"}r(t){return e=this,i=null,n=function*(){return this.request({url:t,responseType:"arraybuffer"})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class gn extends At.eV{constructor(){super(...arguments),this.tag="HttpCmdReserve",this.url="//api.bilibili.com/x/activity/reserve"}r(t,e){return i=this,n=null,r=function*(){return this.request({url:e?this.url+"/cancel":this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}}class fn extends At.eV{constructor(){super(...arguments),this.tag="HttpCmdScore",this.url="//api.bilibili.com/x/v2/dm/command/grade/post"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class mn extends At.eV{constructor(){super(...arguments),this.tag="HttpCmdShrink",this.url="//api.bilibili.com/x/v2/dm/command/user/conf"}r(t,e){return i=this,n=null,r=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}}class yn extends At.eV{constructor(){super(...arguments),this.tag="HttpCmdCheckin",this.url="//api.bilibili.com/x/v2/dm/command/checkin/record/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class bn extends At.eV{constructor(){super(...arguments),this.tag="HttpDmGoodsLike",this.url="//api.bilibili.com//x/v2/dm/command/goods/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class vn extends At.eV{constructor(){super(...arguments),this.tag="HttpCmdCmtime",this.url="//api.bilibili.com/x/v2/dm/command/cmtime/post"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class En extends At.eV{constructor(){super(...arguments),this.tag="HttpQoeReport",this.url="//api.bilibili.com/x/v1/govern/qoe/qoe_report"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,method:"POST",data:t,withCredentials:!0})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class In extends At.eV{constructor(){super(...arguments),this.tag="HttpDmUnBlock",this.url="//api.bilibili.com/x/dm/filter/user/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class Cn extends At.eV{constructor(){super(...arguments),this.tag="HttpDmBlockBatch",this.url="//api.bilibili.com/x/dm/filter/user/add2"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=(t.data||[]).map((t=>({type:t.type,filter:t.filter,opened:!0,id:t.id})));return{code:t.code,message:t.message,list:e}}}class Bn extends At.eV{constructor(){super(...arguments),this.tag="HttpDmUnBlock",this.url="//api.bilibili.com/x/dm/filter/user/del"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class wn extends At.eV{constructor(){super(...arguments),this.tag="HttpDmBlockList",this.url="//api.bilibili.com/x/dm/filter/user"}r(){return t=this,e=null,i=function*(){return this.request({url:this.url,method:"get",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}parse(t){var e;const i=((null==(e=t.data)?void 0:e.rule)||[]).map((t=>({type:t.type,filter:t.filter,opened:!0,id:t.id})));return{code:t.code,message:t.message,list:i}}}var xn=i(34201),Qn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,kn=(t=>(t[t.Combo=3e3]="Combo",t[t.Link=3001]="Link",t[t.Score=3002]="Score",t[t.ScoreSum=3003]="ScoreSum",t[t.ClockIn=3004]="ClockIn",t[t.Follow=3005]="Follow",t[t.Vote=3006]="Vote",t[t.Reserve=3007]="Reserve",t[t.Rewardfans=3008]="Rewardfans",t[t.GoodsLike=3009]="GoodsLike",t[t.SuperRating=3010]="SuperRating",t[t.Cmtime=3011]="Cmtime",t[t.QoeFeedback=3012]="QoeFeedback",t))(kn||{});const Dn={blockScroll:[1],blockTopBottom:[5,4],blockColor:[2012,2015,2007,2008,2009,2013,2002,2003,2e3,2001,2004,5,4,1,6],blockSpecial:[2005,2012,2015,2002,2003,2e3,2001,2004,2006,2013,2008,2009,2011,2007,2014,2010,3e3,2016,2017,2018,2020],preventShade:[4]};class _n extends s.u{constructor(t){super(t),this.blockList=[],this.totalFiltleredDm=0,this.lowWeightDm=0,this.tempBlockList=[],this.filterPassCount=0,this.dmBlockCount=0,this.aiCloudBlockCount=0,this.blockCountByReason={word:0,aiCloud:0,reportFilter:0,senior:0,scroll:0,topBottom:0,special:0,color:0,colorful:0,preventShade:0},this.blockCountByType={common:0,special:0,cmd:0},
this.DmBlockMap=Dn,this.dmMap=new Map,(0,r.rC)(this)}get defaultState(){return{isSyncBlocked:!1,refresh:1}}addReportFilter(t){this.reportFilter?this.reportFilter.push(t):this.reportFilter=[t]}get isShow(){const{currentMenu:t,isListSpread:e}=this.auxStore.state;return t===A.ju.BLOCK&&e}onStateCreated(){super.onStateCreated();const t=this.rootStore.localStore.get();this.blockList=t.blockList}onLoaded(t){if(super.onLoaded(t),t.mid){this.rootStore.localStore.get().lastUid!==t.mid&&this.blockList.forEach((t=>{t.id=0}))}}add(t,e,i){var n;const r=null==(n=this.userStore.info)?void 0:n.mid,o=this.isBlocked(t,e);if(!i&&o)return Promise.resolve({code:-1,message:"屏蔽词已存在"});let a={code:-1,message:"屏蔽词已添加"};if(r){return new In(this.rootPlayer).r({type:e,filter:t}).then((n=>{var r;const s=(null==(r=n.body.data)?void 0:r.id)||0;return i&&o?(o.rule.id=s,this.addLocal()):(this.blockList.push({type:e,filter:t,opened:!0,id:s}),this.addLocal()),a.code=0,a})).catch((()=>(this.blockList.push({type:e,filter:t,opened:!0,id:0}),this.addLocal(),a)))}return this.blockList.push({type:e,filter:t,opened:!0,id:0}),this.addLocal(),Promise.resolve(a)}blockUserList(t){return new Cn(this.rootPlayer).r({type:2,filters:t.join(",")}).then((({body:t})=>{this.blockList=this.noRepeat(t.list),this.addLocal()})).catch((()=>{const e=t.map((t=>({type:2,filter:t,opened:!0,id:0})));this.blockList=this.noRepeat(e),this.addLocal()}))}addLocal(){this.localStore.set({blockList:this.blockList},!0),this.setState({refresh:this.state.refresh+1}),this.dmListStore.refresh(),this.dmSettingStore.refresh(),this.setLastUid()}isBlocked(t,e){let i,n;for(let r=0;r<this.blockList.length;r++)i=this.blockList[r],i.type===e&&i.filter===t&&(n={i:r,rule:i});return n}remove(t,e){const i=this.isBlocked(t,e);if(i){const{i:t,rule:e}=i;if(this.blockList.splice(t,1),e.id){new Bn(this.rootPlayer).r({ids:String(e.id)})}this.addLocal()}}fromOut(t){(null==t?void 0:t.length)&&(this.blockList=this.noRepeat(t,!0),this.addLocal())}dmSync(){return new wn(this.rootPlayer).r().then((t=>(0===t.body.code&&(this.blockList=this.noRepeat(t.body.list),this.setState({isSyncBlocked:!0}),this.addLocal()),t)))}aiJudge(t,e){return this.totalFiltleredDm+=1,Math.abs(t.weight)<e&&(this.aiCloudBlockCount+=1,!0)}reportFilterReg(t){var e;return!!(null==(e=this.reportFilter)?void 0:e.length)&&this.reportFilter.some((e=>{if(new RegExp(e).test(t.text))return!0}))}judgeUser(t){let e;for(let i=0;i<this.blockList.length;i++)if(e=this.blockList[i],2===e.type&&String(t.uhash)===String(e.filter))return j.Rs.BLOCK_LIST_USER;return j.Rs.BLOCK_DISABLED}judgeWord(t){var e;const i=this.dmSettingStore.state;let{text:n,mode:r,uhash:o,uid:a,shooterType:s}=t;const l=o||a;let A;if(s&&1===s)return j.Rs.BLOCK_DISABLED;try{n=7===r&&"["===n[0]?JSON.parse(n)[4]:n}catch(t){}if(9!==r&&i.status&&(null==(e=this.blockList)?void 0:e.length))for(let t=0;t<this.blockList.length;t++)if(A=this.blockList[t],A.opened&&A.filter){if(2===A.type&&String(l)===String(A.filter))return j.Rs.BLOCK_LIST_USER;if(0===A.type)try{if(new RegExp(A.filter.replace(/(\^|\$|\\|\.|\*|\+|\?|\(|\)|\[|\]|\{|\}|\||\/)/g,"\\$1"),"i").test(n))return j.Rs.BLOCK_LIST_KEYWORD}catch(t){this.log.w(t)}if(1===A.type)try{if(this.filterRegexp(A.filter).test(n))return j.Rs.BLOCK_LIST_REGEXP}catch(t){this.log.w(t)}}}judge(t,e){if(t.border)return j.Rs.BLOCK_DISABLED;const i=this.judgeWord(t);if(i)return i;const{typeSpecial:n}=this.dmSettingStore.state;return!n&&(2===t.pool||t.mode>=7)?j.Rs.BLOCK_SPECIAL:j.Rs.BLOCK_DISABLED}isBlockDanmaku(t,e=!1){if(t.border)return!1;if(this.judgeWord(t))return this.blockCountByReason.word++,!0;const{typeScroll:i,typeTopBottom:n,typeColor:r,typeSpecial:o,seniorMode:a,preventshade:s}=this.dmSettingStore.state,l=!n,A=!r,c=!o,h=!i,{mode:d}=t;if(!e){if(this.aiJudge(t,this.dmSettingStore.aiLevel))return this.blockCountByReason.aiCloud++,!0;if(this.reportFilterReg(t))return this.blockCountByReason.reportFilter++,!0}if(a&&t.weight<=10)return this.blockCountByReason.senior++,!0;if(t.colorful&&A)return this.blockCountByReason.colorful++,!0;if(h&&this.DmBlockMap.blockScroll.includes(d))return this.blockCountByReason.scroll++,!0;if(l&&this.DmBlockMap.blockTopBottom.includes(d))return this.blockCountByReason.topBottom++,!0;if(c&&(this.DmBlockMap.blockSpecial.includes(d)||2===t.pool))return this.blockCountByReason.special++,!0;if(A&&Dn.blockColor.includes(d))if(5===d||4===d||1===d||6===d||2007===d||2013===d||2008===d||2009===d){if(t.color&&"#FFFFFF"!==(0,xn.X)(t.color).toUpperCase())return this.blockCountByReason.color++,!0}else if(2012===d&&(1===t.modeInfo.color_type&&t.modeInfo.font_color&&"#FFFFFF"!==t.modeInfo.font_color.toUpperCase()||t.resource.url&&""!==t.resource.url))return this.blockCountByReason.color++,!0;return!(!s||!Dn.preventShade.includes(d))&&(this.blockCountByReason.preventShade++,!0)}filterRegexp(t){const e=/^\/(.+)\/([img]{0,3})$/.exec(t);try{return new RegExp(e[1],e[2])}catch(e){return new RegExp(t)}}noRepeat(t,e){const i={},n=this.blockList||[];n.length&&n.forEach((t=>{const e=t.type,n=t.filter,r=0===e?e+n.toLowerCase():e+n;i[r]=t})),Array.isArray(t)&&t.length&&t.forEach((t=>{if(!t)return;e&&(t.id=0);let n,r=t.type,o=t.filter;if(o)if(n=0===r?r+o.toLowerCase():r+o,i[n]){if(e)return;i[n].id=t.id}else i[n]=t}));const r=[];for(const t in i)r.push(i[t]);return r}get dmAiBlockAbTestFlag(){var t;return"NEW"===(null==(t=window.webAbTest)?void 0:t.danmuku_block_version)}setLastUid(){var t;const e=null==(t=this.userStore.info)?void 0:t.mid;e&&this.localStore.set({lastUid:e})}onUnload(){this.track.e("ai_block_stat",{lowWeightDm:this.lowWeightDm,totalFiltleredDm:this.totalFiltleredDm}),this.lowWeightDm=0,this.totalFiltleredDm=0}onDispose(){super.onDispose(!0),this.reportFilter=null,this.tempBlockList=[],this.filterPassCount=0,this.dmBlockCount=0,this.aiCloudBlockCount=0,this.blockCountByReason={word:0,aiCloud:0,reportFilter:0,senior:0,scroll:0,topBottom:0,special:0,color:0,colorful:0,preventShade:0},this.blockCountByType={common:0,special:0,cmd:0}}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?Sn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Qn(e,i,o)})([r.Fl],_n.prototype,"isShow",1);var Rn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Tn=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Mn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Rn(e,i,o),o};class Fn extends s.u{constructor(t){super(t),(0,r.rC)(this)}get defaultState(){return{updateCmdList:null,addCmdList:null,voteId:null,shortcutVoteId:null,shortcutTime:null,scoreGrade:null,upEgg:null,wordCloud:null,wordCloudSelfItem:null,voteOptions:null,insideW:0,insideH:0,businessConfig:null}}get cmdVisible(){return this.configStore.isCreator()||this.sendStore.dmVisible}get creator(){return this.configStore.isChannel(l.u5.Creator)}onMount(){super.onMount(),this.dc.cmdDm=(0,r.U5)((()=>this.danmakuStore.state.cmdDm),(t=>{this.creator||(null==t?void 0:t.length)&&this.appendCmd(t)})),this.dc.resize=(0,r.U5)((()=>({height:this.uiStore.state.containerHeight,width:this.uiStore.state.containerWidth,isMetadataLoaded:this.mediaStore.state.isMetadataLoaded,videoNodeWidth:this.uiStore.state.videoNodeWidth,videoWidth:this.mediaStore.state.videoWidth})),(({height:t,width:e,isMetadataLoaded:i,videoNodeWidth:n,videoWidth:r})=>{i&&e&&t&&n&&r&&this.resize()}),{fireImmediately:!0})}resize(){const t=this.rootStore,e=this.mediaStore.video;e.videoHeight,e.videoWidth;let{videoNodeHeight:i,videoNodeWidth:n}=this.uiStore.state;t.nodes.cmdInside.style.cssText=`width:${n}px;height:${i}px;`,this.setState({insideW:n,insideH:i})}appendCmd(t){if(this.creator)return;let e,i=[];t.forEach((t=>{try{e=JSON.parse(t.extra)}catch(t){}if(e&&"#ENCOURAGE#"===t.command){const n=t.stime/1e3||0;i.push({from:n,to:n+(e.duration/1e3||5),duration:e.duration/1e3||5,resource:e.resource,positionType:e.position_type,dms:e.dms})}})),i.length&&this.setState({wordCloud:i})}vote(t,e,i,n,r,o){return new un(this.rootPlayer).r({aid:this.configStore.aid,cid:this.configStore.cid,progress:Math.round(1e3*n),vote_id:t,vote_type:e,cmd_id_str:o,option_id:i,has_self_def:r,polaris_app_id:100,polaris_platform:5,spmid:this.configStore.spmId,
from_spmid:this.configStore.spmIdFrom,statistics:this.configStore.statisticsReport})}getImg(t){return new pn(this.rootPlayer).r(t)}reserve(t,e){return new gn(this.rootPlayer).r(t,e)}score(t,e){return new fn(this.rootPlayer).r(t)}shrink(t,e){return new mn(this.rootPlayer).r(t)}checkin(t,e){return new yn(this.rootPlayer).r(t)}goodsLike(t,e){return new bn(this.rootPlayer).r(t)}cmtime(t,e){return new vn(this.rootPlayer).r(t)}qoeFeedback(t){return new En(this.rootPlayer).r(t)}editorCenter(t){if(this.mediaStore.state.isMetadataLoaded)try{const e=JSON.parse(t);if(!e)return;const i=this.state.updateCmdList||[];for(const t in e){const n=e[t]||[];switch(t){case"dm2":this.editorLink(n,i);break;case"dm5":this.editorFollow(n,i);break;case"dm8":this.editorCombo(n,i);break;case"dm10":this.editorReserve(n,i);break;case"dm11":this.editorScore(n,i);break;case"dm14":this.editorClock(n,i);break;case"dm18":this.editorGoods(n,i);break;case"dm20":this.editorCmtime(n,i)}}this.setState({updateCmdList:[...i]})}catch(t){console.warn(t)}}editorFollow(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.Follow,delete:!0});t.forEach((t=>{const{key:i,type:n,dmid:r,text:o,from:a,to:s,pos_x:l,pos_y:A,face:c,mid:h,electricGuide:d,question:u,options:p,electricIcon:g,electricStatus:f}=t||{},m=s-a;9===n?e.push({mode:kn.Vote,dmid:r,text:u,stime:a,duration:m,modeInfo:{key:i,type:n,face:c,mid:h,options:p,duration:m,posX:l,posY:A}}):e.push({mode:kn.Follow,dmid:r,text:o,stime:a,duration:m,modeInfo:{key:i,type:n,face:c,mid:h,electricGuide:d,posX:l,posY:A,electricIcon:g,electricStatus:f}})}))}editorLink(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.Link,delete:!0});t.forEach((t=>{const{key:i,dmid:n,data:r,from:o,to:a,posX:s,posY:l}=t||{};e.push({mode:kn.Link,dmid:n,text:r.msg,stime:o,duration:a-o,modeInfo:{key:i,posX:s,posY:l,arcPic:r.arcPic,arcType:r.arcType}})}))}editorCombo(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.Combo,delete:!0});t.forEach((t=>{const{key:i,dmid:n,text:r,stime:o,duration:a,count:s,step:l,url:A}=t||{};e.push({mode:kn.Combo,dmid:n,text:r,stime:o,duration:a,modeInfo:{key:i,count:s,step:l,resource:A}})}))}editorReserve(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.Reserve,delete:!0});t.forEach((t=>{const i=t||{},{key:n,dmid:r,text:o,from:a,to:s}=i,l=s-a;e.push({mode:kn.Reserve,dmid:r,text:o,stime:a,duration:l,modeInfo:{key:n,duration:l,posX:i.posX,posY:i.posY,count:i.count,liveTime:i.liveTime,liveState:i.liveState,popularity:i.popularity,popularityStr:i.popularityStr,liveTimeFormat:i.liveTimeFormat,state:i.state,jump:i.jump,live:i.live,reserveType:i.reserveType,arcTime:i.arcTime,arcTimeFormat:i.arcTimeFormat,desc:i.desc}})}))}editorScore(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.Score,delete:!0});t.forEach((t=>{const{key:i,dmid:n,from:r,to:o,pos_x:a,pos_y:s,data:l}=t||{},{summary:A,summaryList:c,msg:h,skin:d,skinUnselected:u,count:p,id:g}=l||{},f=o-r;A?e.push({mode:kn.ScoreSum,dmid:n,text:h,stime:r,duration:f,modeInfo:{key:i,duration:f,posX:a,posY:s,summaryList:c}}):e.push({mode:kn.Score,dmid:n,text:h,stime:r,duration:f,modeInfo:{key:i,count:p,skin:d,duration:f,skinUnselected:u,posX:a,posY:s}})}))}editorClock(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.ClockIn,delete:!0});t.forEach((t=>{const{key:i,dmid:n,from:r,to:o,pos_x:a,pos_y:s,data:l}=t||{},{total:A,endClock:c,msg:h,type:d}=l||{};e.push({mode:kn.ClockIn,dmid:n,text:h,stime:r,duration:o-r,modeInfo:{key:i,type:d,total:A,endClock:c,posX:a,posY:s}})}))}editorGoods(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.GoodsLike,delete:!0});t.forEach((t=>{const{key:i,dmid:n,from:r,to:o,pos_x:a,pos_y:s,data:l}=t||{},{msg:A,type:c,keyword:h,button_selected:d,button_unselected:u,button_icon:p,desc:g,item_id_str:f,item_image:m,user_sub:y}=l||{};e.push({mode:kn.GoodsLike,dmid:n,text:A,stime:r,duration:o-r,modeInfo:{key:i,type:c,posX:a,posY:s,keyword:h,itemIdStr:f,itemImage:m,userSub:y,desc:g,buttonSelected:d,buttonUnSelected:u,buttonIcon:p}})}))}editorCmtime(t,e){if(!(null==t?void 0:t.length))return e.push({mode:kn.Cmtime,delete:!0});t.forEach((t=>{const{key:i,dmid:n,from:r,to:o,pos_x:a,pos_y:s,data:l,realTo:A}=t||{};e.push({mode:kn.Cmtime,dmid:n,text:"",stime:r,duration:o-r,modeInfo:{key:i,posX:a,posY:s,upSlogan:l.upSlogan,upSloganIcon:l.upSloganIcon,ifSupported:l.ifSupported,realTo:A}})}))}onDispose(){super.onDispose(),this.upMid=null}}Tn([r.Fl],Fn.prototype,"cmdVisible",1),Tn([r.Fl],Fn.prototype,"creator",1);class Ln extends At.eV{constructor(){super(...arguments),this.tag="HttpDmSkip",this.url="//api.bilibili.com/x/player/card/click"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){return{code:t.code,message:t.message}}}var Nn=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor;class Un extends s.u{constructor(t){super(t),(0,r.rC)(this)}get defaultState(){return{}}get skips(){var t,e;let i=null==(t=this.userStore.info)?void 0:t.operationCard;const n=null==(e=this.mpdStore.body)?void 0:e.isPreview,r=this.interactStore.renderInteractionTPL;return n||r?null:i}jumpCard(t){return new Ln(this.rootPlayer).r(t)}onDispose(){super.onDispose()}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?Pn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Nn(e,i,o)})([r.Fl],Un.prototype,"skips",1);var On=i(35668);class Gn extends At.eV{constructor(){super(...arguments),this.tag="HttpDmMask"}r(t,e){return i=this,n=null,r=function*(){return this.request({url:e.url,responseType:"arraybuffer",headers:{range:e.range}})},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}}class Hn extends s.u{constructor(){super(...arguments),this.maskTrack={hasMask:0,browser:null,supportMask:0,invalidGPU:0}}get defaultState(){return{maskUrl:"",fps:24,maxfps:24,disable:!1}}onLoaded(t){if(super.onLoaded(t),t.dmMask&&(this.maskTrack.hasMask=1,this.maskTrack.browser=w.X.info,this.maskTrack.invalidGPU=+this.configStore.invalidGPU),t.dmMask&&w.X.chrome.alike&&!w.X.edge.alike&&!this.configStore.invalidGPU){this.maskTrack.supportMask=1;const{maskUrl:e,fps:i}=t.dmMask;e?this.setState({maxfps:i,maskUrl:e}):this.setState({maskUrl:""})}}isPointFillInMask(t,e,i){var n;this.nodes.dmSvgMaskWrap.innerHTML="",this.dmMaskSvg&&(this.nodes.dmSvgMaskWrap.appendChild(this.dmMaskSvg),this.dmMaskSvgInfo=this.generateDmMaskSvgInfo(this.dmMaskSvg));const r=null==(n=this.dmMaskSvgInfo)?void 0:n.detail;if(!r)return!1;try{const{svgOriginalWidth:n,svgOriginalHeight:o,svgPoint:a,inverseCTM:s,paths:l}=r,A=i.width,c=i.height,h=this.mediaStore.video.videoHeight,d=this.mediaStore.video.videoWidth;if(h>d){const i=c*(d/h),r=Math.min(i,A),s=Math.max(0,(A-r)/2);if(t<s||t>s+r)return!0;const l=(t-s)/r,u=e/c;if(l<0||l>1||u<0||u>1)return!0;a.x=l*n,a.y=u*o}else a.x=t/A*n,a.y=e/c*o;const u=a.matrixTransform(s);a.x=u.x,a.y=u.y;for(const t of l)if(null==t?void 0:t.isPointInFill(a))return!0;return!1}catch(t){return!1}}generateDmMaskSvgInfo(t){const e={detail:null,hasActiveMask:Boolean(t)};if(!t)return e;try{const i=t.querySelector("g");if(!(null==i?void 0:i.getCTM))return e;const n=i.getCTM();if(!(null==n?void 0:n.inverse))return e;const r=t.getAttribute("viewBox"),o=r?r.split(" ").map(Number):null,a=o&&!isNaN(o[2])?o[2]:320,s=o&&!isNaN(o[3])?o[3]:180,l=t.createSVGPoint(),A=Array.from(i.querySelectorAll("path"));return{detail:{svgOriginalWidth:a,svgOriginalHeight:s,svgPoint:l,inverseCTM:n.inverse(),paths:A},hasActiveMask:!0}}catch(t){return e}}getBufferRange(t,e){if(!this.state.maskUrl)return Promise.reject(new Error("no url"));const i=-1===e?`bytes=${t}-`:`bytes=${t}-${e}`;return new Gn(this.rootPlayer).r(null,{url:this.state.maskUrl,range:i})}onDispose(){super.onDispose(),this.dmMaskSvgInfo=null}}class Vn extends At.eV{constructor(){
super(...arguments),this.tag="HttpDmPanel",this.url="//api.bilibili.com/x/v2/dm/panel"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,method:"get",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){if(0===(null==t?void 0:t.code))return{colorfulPanel:t.data.colorful_panel,colorfulPrivilegeDetails:{vipOrderPromotion:t.data.colorful_privilege_details.vip_order_promotion}}}}class Yn extends s.u{get defaultState(){return{fontsize:25,pool:0,mode:1,color:16777215,checkBoxValue:!1,colorfulPanel:null,colorfulPrivilegeDetails:null,colorful:null}}get upDm(){return this.danmakuStore.state.checkBox?this.state.checkBoxValue?1:0:2}get upCheckbox(){return this.danmakuStore.state.checkBox&&this.state.checkBoxValue}vipSwitch(){return new Vn(this.rootPlayer).r({oid:this.configStore.cid,pid:this.configStore.pid,type:1})}}var zn=i(65814),Wn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,jn=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Zn(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Wn(e,i,o),o};class qn extends s.u{constructor(t){super(t),this.records=new r.vP,this.sponsor=null,(0,r.rC)(this)}setSponsor(t){this.sponsor=t}getSponsorToast(t){var e,i;return null==(i=null==(e=this.sponsor)?void 0:e.toast)?void 0:i[String(t)]}getFirstSponsorToast(){var t;const e=null==(t=this.sponsor)?void 0:t.toast;if(!e)return;const i=Object.keys(e)[0];return i?{qn:Number(i),toast:e[i]}:void 0}get maxActions(){return 5}get maxFixedActions(){return 1}cannotSetRecord(t,e,i){return!(!i||!t.length)&&Math.min(...t.map((t=>t.priority)))>e.priority}abortOldestRecord(t,e){if(t.length>=e){const i=new Map,n=[];t.sort(((t,e)=>t.priority-e.priority)).forEach((t=>{i.has(t.priority)?i.get(t.priority).push(t):i.set(t.priority,[t])})),i.forEach(((t,e)=>{const i=t.sort(((t,e)=>t.timeStamp-e.timeStamp));n.push(...i)}));const r=t.length-e+1,o=Math.min(r,n.length);for(let t=0;t<o;t++){const e=n[t];e&&this.remove(e.iid,"abort")}}}trySetTimerClock(t){t.duration&&!t.timerClock&&(t.timerClock=new h.eF(((e,i)=>{i>=e&&this.remove(t.iid,"delay")}),t.duration,250))}create(t,e){const i=(0,zn.M)();if(t.iid=i,t.timeStamp=Date.now(),null==t.priority&&(t.fixed?t.priority=100:t.confirmText?t.priority=10:t.priority=0),t.fixed){const i=[];if(this.records.forEach((t=>t.fixed&&i.push(t))),i.length>=this.maxFixedActions){if(this.cannotSetRecord(i,t,e))return null;this.abortOldestRecord(i,this.maxFixedActions)}}if(this.records.size>=this.maxActions){const i=[...this.records.values()];if(this.cannotSetRecord(i,t,e))return null;this.abortOldestRecord(i,this.maxActions)}return t=Object.assign({text:"Hello",duration:3e3},t),this.trySetTimerClock(t),this.records.set(t.iid,t),i}update(t,e){const i=this.records.get(t);return!!i&&(i.timeStamp=Date.now(),!!e&&(i.text&&e.text&&(i.text=e.text),i.confirmText&&e.confirmText&&(i.confirmText=e.confirmText),i.hide=e.hide,this.records.set(t,i),!0))}remove(t,e="api"){const i=this.records.get(t);return!!i&&(i.timerClock&&(i.timerClock.abort(),i.timerClock=null),this.records.delete(t),"function"==typeof i.onRemoved&&i.onRemoved({reason:e}),!0)}resumeClock(t){const e=this.records.get(t);return!(!e||!e.timerClock)&&(e.timerClock.resume(),!0)}suspendClock(t){const e=this.records.get(t);return!(!e||!e.timerClock)&&(e.timerClock.suspend(),!0)}getActions(){return{maxActions:this.maxActions,maxFixedActions:this.maxFixedActions}}onDispose(){super.onDispose(),[...this.records.values()].filter((t=>!t.persistent)).forEach((t=>{this.remove(t.iid,"lifecycle")})),this.sponsor=null}onDisconnect(){super.onDisconnect(),this.records.forEach((t=>{this.remove(t.iid,"lifecycle")}))}}jn([r.LO],qn.prototype,"records",2),jn([r.aD],qn.prototype,"create",1),jn([r.aD],qn.prototype,"update",1),jn([r.aD],qn.prototype,"remove",1);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;class Jn extends At.eV{constructor(){super(...arguments),this.tag="HttpUser",this.retried=0,this.url="//api.bilibili.com/x/player/wbi/v2"}r(t,e){return i=this,n=null,r=function*(){return this.retried=0,this.params=t,this.config=Object.assign({retryCount:3,retryInterval:500},e),this.getRemoteResponse().then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}getRemoteResponse(){return this.request({url:this.url,params:this.params,withCredentials:!0}).catch((t=>!At.eV.isCanceled(t)&&!At.eV.isGaiaFailed(t)&&this.config.retryCount>this.retried?new Promise(((t,e)=>{this.timer=window.setTimeout((()=>{this.retried++,this.getRemoteResponse().then(t,e),this.log.i(`Retry: ${this.retried}/${this.config.retryCount}`)}),this.config.retryInterval)})):Promise.reject(t)))}parse(t){var e,i,n,r,o,a,s,l,A;const c={err:null},h=t.data||{},d=h.dm_mask||{},u={pn:+h.page_no,mid:+h.login_mid,aid:+h.aid,cid:+h.cid,bvid:h.bvid,name:h.name,hashId:h.login_mid_hash,isOwner:!!h.is_owner,isUgcPayPreview:!!h.is_ugc_pay_preview,allowBp:!!h.allow_bp,blockTime:+h.block_time,role:+h.role,hasNext:!!h.has_next,permission:h.permission,lastCid:+h.last_play_cid,lastPlayTime:+h.last_play_time,onlineCount:+h.online_count,previewToast:h.preview_toast,answerStatus:+h.answer_status,viewPoints:h.view_points,pugvWatchStatus:null!=(i=null==(e=h.pugv)?void 0:e.watch_status)?i:0,pugvPayStatus:null!=(r=null==(n=h.pugv)?void 0:n.pay_status)?r:0,pugvSeasonStatus:null!=(a=null==(o=h.pugv)?void 0:o.season_status)?a:0,dmMask:{fps:d.fps,maskUrl:d.mask_url},vip:h.vip||{},levelInfo:h.level_info||{},pCdnLoader:h.pcdn_loader||{},is360:!!(null==(s=null==h?void 0:h.options)?void 0:s.is_360),interaction:h.interaction,withoutVip:!!(null==(l=h.options)?void 0:l.without_vip),fawkes:h.fawkes,progressIcon:h.player_icon,longProgress:!!(null==(A=h.show_switch)?void 0:A.long_progress),bgmInfo:null==h?void 0:h.bgm_info,toastBlock:null==h?void 0:h.toast_block,is_upower_exclusive:null==h?void 0:h.is_upower_exclusive,is_upower_play:null==h?void 0:h.is_upower_play,elec_high_level:null==h?void 0:h.elec_high_level,disableShowUpInfo:null==h?void 0:h.disable_show_up_info,needLoginSubtitle:null==h?void 0:h.need_login_subtitle,is_upower_exclusive_with_qa:null==h?void 0:h.is_upower_exclusive_with_qa,arc_aigc:null==h?void 0:h.arc_aigc,self_visible:null==h?void 0:h.self_visible},p=h.operation_card;(null==p?void 0:p.length)&&(u.operationCard=this.parseCard(p));const g={isSystemAdmin:!1,vipType:+u.vip.type,vipStatus:+u.vip.status};return Object.assign(c,u,g),c}parseCard(t){return t.map((t=>{var e,i;const n={id:t.id,from:t.from,to:t.to,status:t.status,cardType:t.card_type,bizType:t.biz_type};return 1===t.card_type?(n.title=t.standard_card.title,n.buttonTitle=t.standard_card.button_title,n.buttonSelectedTitle=t.standard_card.button_selected_title,n.showSelected=t.standard_card.show_selected,n.seasonId=null==(e=t.param_follow)?void 0:e.season_id,n.activityId=null==(i=t.param_reserve)?void 0:i.activity_id):(n.icon=t.skip_card.icon.replace("http://","//")||"",n.label=t.skip_card.label,n.content=t.skip_card.content,n.button=t.skip_card.button,n.link=t.skip_card.link),n}))}dispose(t){super.dispose(t),clearTimeout(this.timer)}}var Kn=Object.defineProperty,Xn=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,er=(t,e,i)=>e in t?Kn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class ir extends At.eV{constructor(){super(...arguments),this.tag="HttpView"}r(t,e){return i=this,n=null,r=function*(){this.params=t,this.config=e,this.httpKind=e.httpKind;const i=this.getViewUrl();return this.request({url:i,params:this.getRequestParams(),withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}
},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}getViewUrl(){return{[l.HR.Ugc]:"//api.bilibili.com/x/web-interface/wbi/view/detail",[l.HR.Pgc]:"//api.bilibili.com/pgc/view/web/season",[l.HR.Pugv]:"//api.bilibili.com/pugv/view/web/season"}[this.httpKind]}getRequestParams(){var t,e,i,n,r;switch(this.httpKind){case l.HR.Pgc:case l.HR.Pugv:return{ep_id:this.params.episodeId,isGaiaAvoided:(null==(t=this.params)?void 0:t.isGaiaAvoided)||!1};case l.HR.Ugc:return this.params.aid?{aid:this.params.aid,need_view:1,isGaiaAvoided:(null==(e=this.params)?void 0:e.isGaiaAvoided)||!1}:{bvid:this.params.bvid,need_view:1,isGaiaAvoided:(null==(i=this.params)?void 0:i.isGaiaAvoided)||!1};default:return this.params.aid?{aid:this.params.aid,isGaiaAvoided:(null==(n=this.params)?void 0:n.isGaiaAvoided)||!1}:{bvid:this.params.bvid,isGaiaAvoided:(null==(r=this.params)?void 0:r.isGaiaAvoided)||!1}}}parse(t){switch(this.httpKind){case l.HR.Pgc:return this.parsePgc(t);case l.HR.Pugv:return this.parsePugv(t);case l.HR.Ugc:default:return this.parseUgc(t,this.params.p)}}parsePgc(t){const e=t.result,i={};if(e){const t=e.section,n=e.episodes,r=+e.season_id,o=e.up_info,a=e.stat,s=e.title,l=(t,e)=>{const n=+t.aid,r=+t.cid,o=t.bvid,a=t.cover,s=+t.pub_time,l=+t.duration,A=e+1;n&&(i.aid=n),r&&(i.cid=r),o&&(i.bvid=o),a&&(i.pic=a),A&&(i.p=A),s&&(i.pubdate=s),l&&(i.duration=l/1e3)};if(a&&(i.archiveInfo={view:a.views,danmaku:a.danmakus,coin:a.coins,favorite:a.favorites,like:a.likes,reply:a.replies,share:a.shares}),s&&(i.title=s),o&&(i.owner={mid:o.mid,name:o.uname,face:o.avatar}),r&&(i.seasonId=r),Array.isArray(n)&&n.length)for(let t=0;t<n.length;t++){const e=n[t];if(+e.id==+this.params.episodeId)return l(e,t),i}if(Array.isArray(t)&&t.length)for(let e=0;e<t.length;e++){const n=t[e].episodes;if(Array.isArray(n)&&n.length)for(let t=0;t<n.length;t++){const e=n[t];if(+e.id==+this.params.episodeId)return l(e,t),i}}}return i}parsePugv(t){var e;const i=t.data,n={};if(i){const t=i.episodes,r=+i.season_id,o=i.up_info,a=i.user_status,s=i.title;if(r&&(n.seasonId=r),o&&(n.owner={mid:o.mid,name:o.uname,face:null==(e=o.avatar)?void 0:e.replace("http://","//")}),a&&(n.payed=a.payed),s&&(n.title=s),Array.isArray(t)&&t.length)for(const e of t)if(+e.id==+this.params.episodeId){const t=+e.aid,i=+e.cid,r=e.bvid,o=e.cover,a=+e.pub_time,s=+e.index;return t&&(n.aid=t),i&&(n.cid=i),r&&(n.bvid=r),o&&(n.pic=o),s&&(n.p=s),a&&(n.pubdate=a),n}}return n}parseUgc(t,e){var i;if(0!==(null==t?void 0:t.code)){let e=new Error;throw e.data=t,e}let n=t.data;const r={};if(n&&n.View){n=n.View;const t=+n.aid,o=n.bvid,a=n.pages,s=n.title,l=n.pic,A=n.desc;if(t&&(r.aid=t),o&&(r.bvid=o),s&&(r.title=s),l&&(r.pic=l),A&&(r.desc=A),n.pubdate&&(r.pubdate=+n.pubdate),n.duration&&(r.duration=+n.duration),n.owner&&(r.owner={mid:n.owner.mid,name:n.owner.name,face:null==(i=n.owner.face)?void 0:i.replace("http://","//")}),n.stat){const t=n.stat;r.archiveInfo=((t,e)=>{for(var i in e||(e={}))$n.call(e,i)&&er(t,i,e[i]);if(Xn)for(var i of Xn(e))tr.call(e,i)&&er(t,i,e[i]);return t})({},t)}if(Array.isArray(n.staff)&&n.staff.length>1&&(r.staff=[],n.staff.forEach((t=>{var e;r.staff.push({mid:t.mid,name:t.name,face:null==(e=t.face)?void 0:e.replace("http://","//")})}))),Array.isArray(a)&&a.length){let t=0,i=!1;if(this.params.cid&&(i=a.some(((e,i)=>{if(e.cid===this.params.cid)return t=i,!0}))),i)r.p=t+1,r.cid=this.params.cid;else{const t=a[(0,wt.Z)(e-1,0,a.length-1)||0];if(t){const e=+t.page,i=+t.cid;e&&(r.p=e),i&&(r.cid=i)}}}}return r}}class nr extends At.eV{constructor(){super(...arguments),this.tag="HttpVideoShot",this.url="//api.bilibili.com/x/player/videoshot"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t}).then((e=>({body:this.parse(e.data,t.cid),response:e})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t,e){const i=t.data;if(!i)return null;const n=new Map;return i.video_shots&&Object.keys(null==i?void 0:i.video_shots).length>0?(Object.keys(i.video_shots).forEach((t=>{if(i.video_shots[t]){const e=i.video_shots[t];e.pvdata&&e.image&&n.set(parseInt(t),{pvData:e.pvdata,xLen:+e.img_x_len,yLen:+e.img_y_len,xSize:+e.img_x_size,ySize:+e.img_y_size,images:e.image})}})),n):(i.pvdata&&i.image&&n.set(e,{pvData:i.pvdata,xLen:+i.img_x_len,yLen:+i.img_y_len,xSize:+i.img_x_size,ySize:+i.img_y_size,images:i.image}),n)}}var rr=Object.defineProperty,or=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,cr=(t,e,i)=>e in t?rr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,hr=(t,e)=>{for(var i in e||(e={}))lr.call(e,i)&&cr(t,i,e[i]);if(sr)for(var i of sr(e))Ar.call(e,i)&&cr(t,i,e[i]);return t},dr=(t,e)=>or(t,ar(e));class ur extends At.eV{constructor(){super(...arguments),this.tag="HttpVideoDetail",this.url="//api.bilibili.com/x/web-interface/wbi/view/detail"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:dr(hr({},t),{platform:"web"}),method:"get",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data;if(!e)return{up:null,video:null,relate:null};return{up:{follow:e.Card.following,mid:e.View.owner.mid,name:e.View.owner.name,face:e.View.owner.face,fans:e.Card.follower},video:{title:e.View.title,bvid:e.View.bvid,stat:e.View.stat},relate:e.Related}}}var pr=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class gr{static isBrowserSupported(){return!!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)}static probeSupport(t){return pr(this,null,(function*(){if(!gr.isBrowserSupported())throw new Error("Must have basic EME support");const e=t||["org.w3.clearkey","com.widevine.alpha","com.microsoft.playready","com.microsoft.playready.recommendation","com.apple.fps.3_0","com.apple.fps.2_0","com.apple.fps.1_0","com.apple.fps","com.adobe.primetime"],i=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/mp4; codecs="hvc1.2.4.L120.90"'},{contentType:'video/mp4; codecs="hev1.1.6.L150.90"'},{contentType:'video/mp4; codecs="av01.0.00M.10.0.110.01.01.01.0"'},{contentType:'video/mp4; codecs="dvh1.05.07"'}],n=[{videoCapabilities:i,persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:i}],r=new Map,o=t=>pr(this,null,(function*(){var e;if("org.w3.clearkey"===t&&w.X.apple.alike)return r.set(t,null);try{const i=yield navigator.requestMediaKeySystemAccess(t,n),o=i.getConfiguration(),a=o.sessionTypes,s=null==(e=null==o?void 0:o.videoCapabilities)?void 0:e.map((t=>{var e,i;return null==(i=null==(e=t.contentType)?void 0:e.split("codecs=")[1])?void 0:i.split(".")[0]})),l=!!a&&a.includes("persistent-license");r.set(t,{persistentState:l,codecTypes:s}),yield i.createMediaKeys()}catch(e){r.set(t,null)}})),a=e.map((t=>o(t)));yield Promise.all(a);const s={};return r.forEach(((t,e)=>{s[e]=t})),s}))}}var fr=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class mr extends s.u{constructor(){super(...arguments),this.tag="HttpStore",this.renewalError=null,this.validKss=null,this.drmFallback=!1}getViewKind(){const t={isMissing:!1,isFatalError:!1,httpKind:l.HR.Ugc};switch(this.uiStore.kind){case l.HR.Pgc:this.configStore.episodeId||this.configStore.seasonId||(t.isFatalError=!0),t.httpKind=l.HR.Pgc;break;case l.HR.Pugv:
this.configStore.episodeId?this.configStore.aid&&this.configStore.cid||(t.isMissing=!0):t.isFatalError=!0,t.httpKind=l.HR.Pugv;break;case l.HR.Ugc:default:this.configStore.aid||this.configStore.bvid?this.configStore.aid&&this.configStore.cid||(t.isMissing=!0):t.isFatalError=!0,t.httpKind=l.HR.Ugc}return t}getPlayUrlParams(t){const e=this.configStore.httpQuery;let i;switch(this.configStore.channelKind){case l.u5.Embedded:case l.u5.Embedded_White:case l.u5.Embedded_Other:i="external-link";break;case l.u5.Homepage:case l.u5.Homepage_Topic:i="view-card";break;case l.u5.Creator:i="creative-center";break;default:i=""}const n={avid:this.configStore.aid,bvid:this.configStore.bvid,cid:this.configStore.cid,qn:this.qualityStore.requestQ,fnver:C.JC.DEFAULT,fnval:C.xL.getFnVal({mseSupported:this.configStore.mseSupported,enableHEVC:this.configStore.enableHEVC,enableAV1:this.configStore.enableAV1}),fourk:1,gaia_source:i,from_client:this.configStore.isChannel(l.u5.PC_APP)?"PC_APP":"BROWSER",is_main_page:this.configStore.isChannel(l.u5.Default)||this.configStore.isChannel(l.u5.Playlist),need_fragment:this.configStore.hasAdvPermission,season_id:this.configStore.seasonId,isGaiaAvoided:this.isGaiaAvoided(),cur_language:this.translationStore.state.reqLanguage||void 0,cur_production_type:this.translationStore.state.reqLanguageType||void 0,client_attr:this.translationStore.state.clientAttr,version_name:Ct.version,app_id:this.configStore.appId};if(this.patchAdvStore.hasValidAdv){const{aid:t,cid:e}=this.patchAdvStore.state.mainInfo;n.avid=t,n.cid=e}return this.configStore.episodeId&&(n.ep_id=this.configStore.episodeId),this.configStore.session&&(n.session=this.configStore.session),this.configStore.ndb.fnval&&(n.fnval=this.configStore.ndb.fnval),this.configStore.enableLoudness()&&(n.voice_balance=1),Object.assign({},e.playUrl,n,t)}getPlayUrlConfig(t){var e,i;const n={kind:l.HR.Ugc,mseSupported:this.configStore.mseSupported,isOutsideReload:this.configStore.outSideReload,requestFunc:null==(i=null==(e=this.configStore)?void 0:e.requestConfig)?void 0:i.reqHttpPlayUrlInfo};switch(this.configStore.channelKind){case l.u5.Homepage:n.retryCount=1,n.kind=this.uiStore.kind;break;case l.u5.Manager:n.kind=l.HR.Manager;break;case l.u5.Oneself:n.kind=l.HR.Oneself;break;case l.u5.Default:default:n.kind=this.uiStore.kind}return Object.assign(n,t)}detectAndSaveDRMCapacity(){return fr(this,null,(function*(){const t=[],e=Date.now(),i=yield gr.probeSupport(["org.w3.clearkey","com.widevine.alpha","com.widevine.alpha.experiment","com.apple.fps.3_0","com.apple.fps.2_0","com.apple.fps.1_0","com.apple.fps"]);i&&(Object.keys(i).forEach((e=>{var n;i[e]&&t.push({ks:e,codecTypes:null==(n=i[e])?void 0:n.codecTypes})})),this.localStore.set({ksInfo:{ts:e,kss:t}}),this.validKss=t)}))}getValidKeySystems(t=!1){return fr(this,null,(function*(){if(this.validKss)return this.validKss;const e=Date.now();let i=this.localStore.get().ksInfo;if(!(t||i&&(i.ts||i.kss))){this.log.i("[DRM] No cached Key Systems, first detecting");try{yield this.detectAndSaveDRMCapacity()}catch(t){this.log.e("[DRM] Failed to detect Key Systems:",t.message||"none supported")}i=this.localStore.get().ksInfo}return i&&i.ts&&i.kss&&i.kss.length&&i.kss[0].codecTypes&&(this.validKss=i.kss,i.ts+604800>e)?this.validKss:(this.detectAndSaveDRMCapacity().catch(et.Z),this.validKss||[])}))}fetchLocalCachePlayUrl(t,e,i){return fr(this,null,(function*(){var n;try{const n=new C.xL(this.rootPlayer,{memCache:t}),r=this.getPlayUrlParams(e),o=this.getPlayUrlConfig(i),a=yield(0,de.$)(this.rootPlayer,{type:"playurl",cid:this.configStore.cid});return((null==a?void 0:a.data)||(null==a?void 0:a.result))&&(o.preloadPlayUrl=a.data||a.result,o.fromLocalCache=!0,this.qualityStore.setState({newQuality:o.preloadPlayUrl.quality})),yield n.r(r,o)}catch(t){this.track.o(x.w.O_Player_Url_Error,{code:(null==(n=null==t?void 0:t.raw)?void 0:n.code)||-1,message:(null==t?void 0:t.message)||"unkown error"});return Promise.reject(t)}}))}getReqDRMType(t){return fr(this,null,(function*(){const e=this.uiStore.kind===l.HR.Pgc,i=yield this.getValidKeySystems(e).catch(et.Z),n=this.localStore.getLocalDataByHardCodeKey("biliplayer_drm_pre_detect_result");let r,o;if(Array.isArray(i)){const a=i.sort(((t,e)=>{const i=t=>"com.widevine.alpha.experiment"===t?1:"com.widevine.alpha"===t?2:"org.w3.clearkey"===t?3:4;return i(t.ks)-i(e.ks)}));this.log.i("[getReqDRMType]","Valid Key Systems:",a.map((t=>t.ks))),this.track.o(x.w.O_DRM_Info,{drm:a.map((t=>t.ks)).join(",")});for(const i of a){const{ks:a}=i;switch(a){case"com.widevine.alpha.experiment":case"com.widevine.alpha":if(e&&!he.g.isAccelerated()){o=0,this.log.i("[getReqDRMType]","Skip Widevine due to insufficient GPU capability for PGC");continue}if(n&&!1===n.support){o=1,this.log.i("[getReqDRMType]","Skip Widevine due to previous pre-detect failure:",n.detail.message);continue}r=C.eH.Widevine;break;case"com.apple.fps.1_0":default:break;case"org.w3.clearkey":r=C.eH.BiliSelf}if(r){this.log.i("[getReqDRMType]",`Detected DRM Type: ${r} for QN: ${t}`);break}}}if(r)1===o?this.mpdStore.emitDRMCantPlayReason(X.MAYBE_PLATFORM_NOT_VERIFIED,n.detail.message):0===o&&this.mpdStore.emitDRMCantPlayReason(X.NO_GPU_ACCELERATION,"gpu not support acceleration");else{const t=this.localStore.get().ksInfo,e=!t.ts&&!t.kss;if(this.uiStore.kind===l.HR.Pgc&&e)return r=C.eH.Widevine,this.log.i("[getReqDRMType]","Default to Widevine for PGC"),r;this.mpdStore.emitDRMCantPlayReason(X.NO_VALID_SYSTEM,"no valid system")}return r}))}fetchPlayUrl(t,e,i){return fr(this,null,(function*(){var n;const r=this.renewalError;if(this.renewalError=null,this.configStore.fromLocalCache)return this.fetchLocalCachePlayUrl(t,e,i);const o=this.drmFallback||i&&i.drmFallback,a=new C.xL(this.rootPlayer,{memCache:t});this.playUrlHttp=a;const s=this.getPlayUrlParams(e),A=this.getPlayUrlConfig(i);if(o)this.drmFallback=!0;else switch(this.uiStore.kind){case l.HR.Pgc:case l.HR.Pugv:{this.rootStore.stageAtom.set(I.y.DRM_Detect_Head);const t=yield this.getReqDRMType(s.qn);t&&Object.assign(s,{drm_tech_type:t}),this.rootStore.stageAtom.set(I.y.DRM_Detect_Done);break}}if(this.uiStore.kind===l.HR.Ugc&&!this.configStore.cid)return r?Promise.reject(r):(this.track.o(x.w.O_Player_Cid_Error,{code:J.VIDEO_CID_ERROR,message:"Cid is not found"}),Promise.reject({code:J.VIDEO_CID_ERROR,message:"3107: Cid is not found"}));try{return yield a.r(s,A).then((t=>(this.playUrlHttp=null,t)))}catch(t){this.track.o(x.w.O_Player_Url_Error,{code:(null==(n=null==t?void 0:t.raw)?void 0:n.code)||-1,message:(null==t?void 0:t.message)||"unkown error"});const e=i&&i.initiator,r=Promise.reject(t);if(this.episodeStore.state.isRenewal)return r;if(e!==C.ZX.Initialize)return r;if(this.uiStore.kind!==l.HR.Ugc)return r;if(!t||!t.raw||null==t.raw.code)return r;switch(t.raw.code){case C.Vp.Done:case C.Vp.Uni_NeedPay:case C.Vp.Pugv_NeedPay:case C.Vp.Charing_NeedPay:case C.Vp.Old_Charing_NeedPay:break;default:return this.renewalError=t,Promise.reject({code:t.raw.code,errType:At.oo.E_Renewal,message:t.message,srcUrl:t.playUrl,raw:t.raw})}return r}}))}isGaiaAvoided(){const t=this.configStore.channelKind;return[l.u5.Embedded,l.u5.Embedded_Other,l.u5.Embedded_White,l.u5.Homepage,l.u5.Homepage_Topic,l.u5.Manager,l.u5.Oneself].includes(t)}fetchUserInfo(t){return fr(this,null,(function*(){var e,i;const n=new Jn(this.rootPlayer,{memCache:t}),r={aid:this.configStore.aid,cid:this.configStore.cid,ep_id:this.configStore.episodeId,season_id:this.configStore.seasonId,graph_version:this.episodeStore.state.isSameEpisode?null==(i=null==(e=this.userStore.info)?void 0:e.interaction)?void 0:i.graph_version:null,isGaiaAvoided:this.isGaiaAvoided()};return this.configStore.cid?(this.uiStore.state.kind===l.HR.Ugc&&(delete r.ep_id,delete r.season_id),this.patchAdvStore.hasValidAdv&&(r.aid=this.patchAdvStore.mainInfo.aid,r.cid=this.patchAdvStore.mainInfo.cid),this.uiStore.state.kind===l.HR.Pugv&&(r.video_type="pugv"),n.r(r)):(this.log.w("FetchUserInfo","Cid is not found"),null)}))}fetchViewInfo(t){return fr(this,null,(function*(){if(this.configStore.localUrl)return;return new ir(this.rootPlayer,{memCache:t}).r({p:this.configStore.p,aid:this.configStore.aid,
cid:this.configStore.cid,bvid:this.configStore.bvid,seasonId:this.configStore.seasonId,episodeId:this.configStore.episodeId,isGaiaAvoided:this.isGaiaAvoided()},{httpKind:this.getViewKind().httpKind})}))}fetchVideoShot(t){return fr(this,null,(function*(){const e=new nr(this.rootPlayer,{memCache:t});return this.patchAdvStore.hasValidAdv?e.r({aid:this.patchAdvStore.mainInfo.aid,cid:this.patchAdvStore.mainInfo.cid,cids:this.patchAdvStore.getCids().join("-"),batch:!0}):e.r({aid:this.configStore.aid,cid:this.configStore.cid})}))}fetchVideoDetail(t){return fr(this,null,(function*(){return new ur(this.rootPlayer,{memCache:t}).r({aid:this.configStore.aid,bvid:this.configStore.bvid,p:this.configStore.p,isGaiaAvoided:this.isGaiaAvoided()})}))}onDispose(){var t;super.onDispose();try{null==(t=this.playUrlHttp)||t.dispose(At.eV.LIFECYCLE_TOKEN),this.playUrlHttp=null}catch(t){}}}var yr=(t=>(t[t.Foreground=1]="Foreground",t[t.MiniOrPip=7]="MiniOrPip",t[t.Background=8]="Background",t))(yr||{}),br=(t=>(t[t.None=0]="None",t[t.EndRecommend=99]="EndRecommend",t))(br||{}),vr=(t=>(t[t.StopAfterCurrent=1]="StopAfterCurrent",t[t.AutoNext=2]="AutoNext",t[t.Loop=3]="Loop",t))(vr||{}),Er=(t=>(t[t.Muted=0]="Muted",t[t.Audible=1]="Audible",t))(Er||{});const Ir=new Set(["0","player_loop","player_end_recommend_autoplay"]);class Cr extends s.u{get defaultState(){return{pxStart:!1,vxStart:!1}}onPrepared(){super.onPrepared(),this.dp.pxTimeout=(0,r.gx)((()=>this.uiStore.state.isLoadTimeout),(()=>{this.track.o(x.w.O_Load_Timeout),queueMicrotask((()=>this.setState({pxStart:!0})))})),this.dp.pxStart=(0,r.gx)((()=>!(!this.rootStore.isLoaded||!this.userStore.info)),(()=>queueMicrotask((()=>this.setState({pxStart:!0}))))),this.dp.vxStart=(0,r.gx)((()=>!!(this.rootStore.isLoaded&&this.userStore.info&&this.mediaStore.state.firstPlay)),(()=>queueMicrotask((()=>this.setState({vxStart:!0})))))}getReportType(){switch(this.uiStore.state.kind){case l.HR.Pugv:return 10;case l.HR.Pgc:return 4;case l.HR.Ugc:default:return 3}}getSourceType(){const t=this.mpdStore.body;if(t&&t.abTestId)return+t.abTestId+10;if(!this.kernelStore.baseAgent)return 0;if(this.kernelStore.flvKernel){const t=this.kernelStore.flvKernel;return t?"FlvPlayer"===t.type?1:2:0}if(this.kernelStore.dashKernel){const t=12,e=13,i=this.kernelStore.dashKernel,n=i&&"function"==typeof i.getCurrentCodecID&&i.getCurrentCodecID("video");if(!n)return 0;switch(n){case t:return this.wmpStore.isUseWasmPlayer(this.mediaStore.video)?5:4;case e:return 6;default:return 3}}return 0}polarReport(t,e,i){this.rootPlayer.emit(o.t.Player_Polar_Report,new CustomEvent(o.t.Player_Polar_Report,{detail:{data:{name:t,type:e,params:i}}}))}getFid(){return`${l.u5[this.configStore.channelKind]}:${l.HR[this.uiStore.kind]||"Unknown"}:${this.configStore.iid}`}get reportPlayMode(){return this.rootStore.pageHidden?yr.Background:this.uiStore.screenKind===l.dY.Mini||this.uiStore.screenKind===l.dY.Pip?yr.MiniOrPip:yr.Foreground}get reportAutoPlay(){return Ir.has(this.episodeStore.state.referrer)?br.EndRecommend:br.None}get reportPlayMethod(){return this.settingStore.state.loop?vr.Loop:this.settingStore.state.handoff===l.ty.Abort?vr.StopAfterCurrent:vr.AutoNext}get reportPlayVolume(){return this.settingStore.state.muted||0===this.settingStore.state.volume?Er.Muted:Er.Audible}}var Br=Object.defineProperty,wr=Object.getOwnPropertyDescriptor;class xr extends s.u{constructor(t){super(t),this.tag="AuxStore",(0,r.rC)(this)}get defaultState(){return{isListSpread:!1,disableListSwitch:!1,currentMenu:A.ju.LIST,showBlock:0,playerH:0,height:0}}get height(){return this.auxStore.state.height+"px"}onStateCreated(){super.onStateCreated()}onLoaded(t){super.onLoaded(t)}onDispose(){super.onDispose(!0)}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?wr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Br(e,i,o)})([r.Fl],xr.prototype,"height",1);var Qr=i(24343),Sr=i(57370),kr=i(65723),Dr=(t=>(t[t.StudyNote=-1]="StudyNote",t[t.WonderMoment=1]="WonderMoment",t[t.Division=2]="Division",t[t.OpenEnd=3]="OpenEnd",t[t.AIPoint=4]="AIPoint",t))(Dr||{});class _r extends s.u{constructor(){super(...arguments),this.isShowAIPoint=!1}get defaultState(){return{[-1]:null,1:null,2:null,3:null,4:null}}onMount(){super.onMount(),this.dc.studyNote=(0,r.U5)((()=>this.state[-1]),(t=>{this.rootPlayer.emit(o.t.Player_Hotspot_Change,new CustomEvent(o.t.Player_Hotspot_Change,{detail:{type:-1,data:t}}))})),this.dc.wonderMoment=(0,r.U5)((()=>this.state[1]),(t=>{this.rootPlayer.emit(o.t.Player_Hotspot_Change,new CustomEvent(o.t.Player_Hotspot_Change,{detail:{type:1,data:t}}))})),this.dc.division=(0,r.U5)((()=>this.state[2]),(t=>{this.rootPlayer.emit(o.t.Player_Hotspot_Change,new CustomEvent(o.t.Player_Hotspot_Change,{detail:{type:2,data:t}}))})),this.dc.aiPoint=(0,r.U5)((()=>this.state[4]),(t=>{this.rootPlayer.emit(o.t.Player_Hotspot_Change,new CustomEvent(o.t.Player_Hotspot_Change,{detail:{type:4,data:t}}))}))}onLoaded(t){super.onLoaded(t),this.setInferredHotspot(t.viewPoints),this.mpdStore.body&&this.mpdStore.body.clipInfoList&&this.setOpenEndHotSpot(this.mpdStore.body.clipInfoList)}setOpenEndHotSpot(t){const e=[];if(Array.isArray(t)&&(null==t?void 0:t.length)){const i=this.patchAdvStore.prePatchDurationInSecAndInt();t.forEach((t=>{"CLIP_TYPE_OP"===t.clipType&&t.start===i&&e.push({type:3,from:t.end,to:t.end,content:""});const n=this.portStore.getDuration()-Math.ceil(this.patchAdvStore.postPatchDurationInSec());"CLIP_TYPE_ED"===t.clipType&&t.end&&t.start&&t.start<n&&t.end+1>=n&&e.push({type:3,from:t.start,to:t.start,content:""})}))}e.length&&this.set({type:3,data:e})}setInferredHotspot(t){if(!Array.isArray(t))return;const e={[-1]:[],1:[],2:[],4:[]};for(const i of t)if(i)switch(i.type){case-1:case 1:case 2:case 4:i.content=kr.t`${i.content}`,i.from+=this.patchAdvStore.prePatchDurationInSec(),i.to+=this.patchAdvStore.prePatchDurationInSec(),e[i.type].push(i)}Object.keys(e).forEach((t=>{const i=+t,n=this.setMissingDivision(e[i]);n.length&&this.set({type:i,data:n})}))}setMissingDivision(t){if(Array.isArray(t)&&t.length&&2===t[0].type){const e=t[0],i=t[t.length-1];e&&null==e.from&&(e.from=0),i&&null==i.to&&(i.to=this.portStore.getDuration())}return t}setSegmented(t){try{let e=JSON.parse(t);return e=e.map((t=>({type:t.type,from:t.from,to:t.to,content:t.content||"",permanent:t.permanent}))),this.set({type:2,data:e})}catch(t){return console.warn(t),!1}}addViewPoints(t){try{let e=JSON.parse(t);return e=e.map((t=>({type:t.type,from:t.from,to:t.to,content:t.content}))),this.set({type:1,data:e})}catch(t){return console.warn(t),!1}}setAIPoints(t){var e;if(!t||0===t.length){if(!this.state[4]||0===(null==(e=this.state[4])?void 0:e.length))return;return this.set({type:4,data:[]})}try{return t=t.map((t=>{var e;return{type:null!=(e=t.type)?e:4,from:t.from,to:t.to,content:t.content}})),this.set({type:4,data:t})}catch(t){return console.error(t),!1}}set(t){if(!t)return!1;if(null!=t.data&&!Array.isArray(t.data))return!1;switch(t.type){case-1:case 1:case 3:case 2:case 4:return this.setState({[t.type]:t.data}),!0;default:return!1}}get(t){switch(t){case-1:case 1:case 3:case 2:case 4:return{type:t,data:this.state[t]};default:return{type:t,data:null}}}}var Rr=i(15962);class Mr extends s.u{constructor(){super(...arguments),this.tag="PanoramaStore"}get defaultState(){return{disabled:!0,contextLost:!1,isActive:!1,gesture:!1,opened:!1,control:null,attitude:null,fov:NaN}}get attitude(){return this.state.attitude}get shortcutPrior(){return!this.state.disabled&&this.state.opened&&!this.state.contextLost}onLoaded(t){t.is360&&(0,Rr.M)()&&!(w.X.msie.alike||w.X.msie.ie11||w.X.edge.alike||w.X.trident.alike)?this.wmpStore.fallbackWasmPlayer(J.WASM_PLAYER_FALLBACK_360).then((()=>{this.setState({disabled:!1})})):this.setState({disabled:!0})}onStateCreated(){super.onStateCreated(),this.setState({opened:this.localStore.get().panorama})}onMount(){super.onMount(),this.dc.status=(0,r.U5)((()=>this.state.opened),(()=>{this.localStore.set({panorama:this.state.opened})}))}onDispose(){super.onDispose({opened:!0})}}var Tr=(t=>(t[t.Default=0]="Default",t[t.Member=1]="Member",t[t.Manager=2]="Manager",t))(Tr||{});const Fr={
image:"https://s1.hdslb.com/bfs/static/player/img/default.png",textColor:"ffffff",shadowColor:"222222",shadowOffsetX:0,shadowOffsetY:0,shadowRadius:0,progressColor:"00a1d6",progressShadowColor:"00a1d6"},Lr={0:"//api.bilibili.com/x/stein/edgeinfo_v2",2:"//manager.bilibili.co/x/stein/edgeinfo_v2/audit",1:"//api.bilibili.com/x/stein/edgeinfo_v2/preview"};class Nr extends At.eV{constructor(){super(...arguments),this.tag="HttpInteraction",this.retry=3}r(t,e){return i=this,n=null,r=function*(){return this.params=t,this.url=Lr[e],this.interactionRequest(this.retry)},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}interactionRequest(t){return this.request({url:this.url,params:this.params,withCredentials:!0}).then((e=>{window.clearTimeout(this.timer);const i=e.data;return i&&0===i.code||99003===i.code?{body:this.parse(i),response:e}:t?void(this.timer=window.setTimeout((()=>this.interactionRequest(--t)),1e3)):Promise.reject({code:i.code,message:i.message,url:this.url})}),(e=>{if(window.clearTimeout(this.timer),!t)return Promise.reject({code:-404,message:e.response&&e.response.status&&e.response.status.toString()||"",url:this.url});this.timer=window.setTimeout((()=>this.interactionRequest(--t)),1e3)}))}parse(t){if(0===t.code&&t.data){const e=t.data,i=[],n=[];let r,o=Fr;if(e.story_list&&Array.isArray(e.story_list)&&e.story_list.map((t=>{i.push({edgeId:t.edge_id,title:t.title,cid:t.cid,cover:t.cover.replace("http://","//"),startPos:t.start_pos,cursor:t.cursor,isCurrent:t.is_current})})),e.edges){const t=e.edges;if(t.skin){const e=t.skin;o={image:e.choice_image.replace(/^(https:)?\/\//,"https://"),textColor:e.title_text_color,shadowColor:e.title_shadow_color,shadowOffsetX:e.title_shadow_offset_x,shadowOffsetY:e.title_shadow_offset_y,shadowRadius:e.title_shadow_radius,progressColor:e.progressbar_color,progressShadowColor:e.progressbar_shadow_color}}t.questions&&Array.isArray(t.questions)&&t.questions.map((t=>{const e=[];t.choices&&Array.isArray(t.choices)&&t.choices.map((t=>{e.push({id:t.id,condition:t.condition,nativeAction:t.native_action,platformAction:t.platform_action,option:t.option,cid:t.cid,isDefault:t.is_default,x:t.x,y:t.y,width:t.width,height:t.height,textAlign:t.text_align,customUrl:t.custom_image_url,customWidth:t.custom_image_width,customHeight:t.custom_image_height,customRotate:t.custom_image_rotate,hidden:t.is_hidden,selected:t.selected,submited:t.submited})})),n.push({id:t.id,type:t.type,startTime:t.start_time,startTimeR:t.start_time_r,duration:t.duration,canPause:t.pause_video,title:t.title,color:t.title_color,fontsize:t.title_font_size,choices:e,fadeInTime:t.fade_in_time,fadeOutTime:t.fade_out_time})})),r={dimension:t.dimension,skin:o,questions:n}}return{code:t.code,message:t.message,data:{isLeaf:e.is_leaf,storyList:i,edgeId:e.edge_id,title:e.title,edges:r,buvid:e.buvid,hiddenVars:e.hidden_vars,hiddenVarsPreview:e.hidden_vars_preview,noTutorial:e.no_tutorial,noEvaluation:e.no_evaluation,noBacktracking:e.no_backtracking}}}return{code:t.code,message:t.message}}dispose(t){super.dispose(t),window.clearTimeout(this.timer)}}function Pr(t,e){return"_"===t||"$"===t||(!!/^[A-Z]$/i.test(t)||!(e||!/^[0-9]$/.test(t)))}function Ur(t){const e=t.charCodeAt(0);return e>8&&e<14||32===e}class Or{constructor(t){this.express=t,this.index=-1,this.current={kind:"Print"}}get kind(){return this.current.kind}get str(){return this.current.str}get num(){return this.current.num}putforward(){return this.char=this.express[++this.index],this.char}putback(){return this.char=this.express[--this.index],this.char}getNext(){do{if(this.putforward(),!this.char)return this.current={kind:"End"}}while("\n"!==this.char&&Ur(this.char));switch(this.char){case";":case"\n":return this.current={kind:"Print"};case"*":case"/":case"+":case"-":case"(":case")":return this.current={kind:this.char};case">":return"="===this.putforward()?this.current={kind:"GreaterEqual"}:(this.putback(),this.current={kind:">"});case"<":return"="===this.putforward()?this.current={kind:"LessEqual"}:(this.putback(),this.current={kind:"<"});case"=":return"="===this.putforward()?this.current={kind:"Equal"}:(this.putback(),this.current={kind:"="});case"&":return"&"===this.putforward()?this.current={kind:"&"}:(this.putback(),Error("bad token"),this.current={kind:"Print"});case"|":return"|"===this.putforward()?this.current={kind:"|"}:(this.putback(),Error("bad token"),this.current={kind:"Print"});case"!":return"="===this.putforward()?this.current={kind:"NotEqual"}:(this.putback(),this.current={kind:"!"});case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case".":this.current.kind="Number";let t=this.char;for(;this.putforward()&&/^[0-9.]$/.test(this.char);)t+=this.char;return this.current.num=Number(t),this.putback(),this.current;default:if(Pr(this.char,!0)){for(this.current.kind="Name",this.current.str=this.char;this.putforward()&&Pr(this.char,!1);)this.current.str+=this.char;return this.putback(),this.current}return Error("bad token"),this.current={kind:"Print"}}}}class Gr{constructor(t){this.table=null!=t?t:{}}logicalExpress(t){let e=this.comparisonExpress(t);for(;;)switch(this.token.kind){case"&":e=0!==this.comparisonExpress(!0)&&0!==e?1:0;break;case"|":e=0!==this.comparisonExpress(!0)||0!==e?1:0;break;default:return e}}comparisonExpress(t){let e=this.numberExpress(t);for(;;)switch(this.token.kind){case"Equal":e=e===this.numberExpress(!0)?1:0;break;case"NotEqual":e=e!==this.numberExpress(!0)?1:0;break;case">":e=e>this.numberExpress(!0)?1:0;break;case"GreaterEqual":e=e>=this.numberExpress(!0)?1:0;break;case"<":e=e<this.numberExpress(!0)?1:0;break;case"LessEqual":e=e<=this.numberExpress(!0)?1:0;break;default:return e}}numberExpress(t){let e=this.term(t);for(;;)switch(this.token.kind){case"+":e+=this.term(!0);break;case"-":e-=this.term(!0);break;default:return e}}term(t){let e,i=this.prim(t);for(;;)switch(this.token.kind){case"*":i*=this.prim(!0);break;case"/":if(!(e=this.prim(!0)))return console.error("divide by 0"),1/0;i/=e;break;default:return i}}prim(t){switch(t&&this.token.getNext(),this.token.kind){case"Number":{let t=this.token.num;return this.token.getNext(),t}case"Name":{this.table||(this.table={});let t=this.token.str;return"="===this.token.getNext().kind?this.table[t]=this.logicalExpress(!0):void 0===this.table[t]&&(this.table[t]=0),this.table[t]}case"+":return+this.prim(!0);case"-":return-this.prim(!0);case"!":return 0===this.prim(!0)?1:0;case"(":let t=this.logicalExpress(!0);return this.token.getNext(),t;default:return console.error("primary expected"),1/0}}eval(t){this.token=new Or(t);let e=0;for(;this.token.getNext(),"End"!==this.token.kind;){if("Print"===this.token.kind)continue;e=this.logicalExpress(!1);const t=this.token.current.kind;if("Print"!==t&&"End"!==t)return Error("unexpected char")}return e}}function Hr(t,e){const i=new Gr(t);let n="",r="",o=!1,a=e[0],s=0;for(;a;)o?"`"===a?(o=!1,n+=i.eval(r)):r+=a:"`"===a?(o=!0,r=""):"\\"===a?(s++,a=e[s],n+=a):n+=a,s++,a=e[s];return n}var Vr=i(38785),Yr=Object.defineProperty,zr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptor,Zr=Object.getOwnPropertyDescriptors,jr=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Kr=(t,e,i)=>e in t?Yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xr=(t,e)=>{for(var i in e||(e={}))qr.call(e,i)&&Kr(t,i,e[i]);if(jr)for(var i of jr(e))Jr.call(e,i)&&Kr(t,i,e[i]);return t},$r=(t,e)=>zr(t,Zr(e)),to=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Wr(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Yr(e,i,o),o},eo=(t=>(t[t.StoryList=0]="StoryList",t[t.TimeLine=1]="TimeLine",t[t.Question=2]="Question",t[t.Restart=3]="Restart",t[t.HistoryWatch=4]="HistoryWatch",t[t.Special=5]="Special",t))(eo||{});class io extends s.u{constructor(t){super(t),this.tag="InteractStore",this.preloadSymbol=!1,this.preloadAjax=[],this.interactionConfig={isLastPart:!1,portal:0,choiceSet:"",targetId:0,hiddenVars:null},this.hiddenMap={},this.preloadDataMap=new Map,(0,
r.rC)(this)}get defaultState(){return{disabled:!1,graphId:null,graphVersion:null,fetchStatus:null,needReload:!1,storyList:null,currentEdgeId:null,hiddenVars:null,questions:null,skin:null,dimension:null,noBacktracking:!1,noTutorial:!1,rookieGuide:!1,ctrl:Qr.A.Auto,unLoginToastId:null,special:null}}get isDisableSeamless(){return!!(w.X.msie.alike||w.X.edge.alike||w.X.msie.ie11)}get renderInteractionTPL(){return!!this.state.graphVersion}get showHiddenVars(){if(this.state.hiddenVars){const t=this.state.hiddenVars.filter((t=>t.is_show));return t.length&&!this.state.noBacktracking?t:null}return null}get canPrefetchPlayurl(){return this.state.questions&&!this.preloadSymbol?this.mediaStore.state.currentTime:null}get questions(){const t=this.mediaStore.state.duration;let e=[],i=null;if(this.state.questions)for(let n=0;n<this.state.questions.length;n++){const r=this.state.questions[n];if(!r.startTime&&r.startTimeR&&t&&(r.startTime=1e3*t-r.startTimeR),4!==r.type)0===r.type&&r.duration<=0?i=$r(Xr({},r),{start:t,end:t,autoSkip:!0}):r.duration<=0?i=$r(Xr({},r),{start:t,end:t,autoSkip:!1}):e.push($r(Xr({},r),{start:1e3*t-r.duration,end:1e3*t,countdown:!0,autoSkip:!1}));else{let t=!1;!r.canPause&&r.duration>0&&(t=!0),e.push($r(Xr({},r),{start:r.startTime,end:r.startTime+r.duration,countdown:t,autoSkip:!1}))}}return{inEnd:i,inPlay:e}}onNavigate(){super.onNavigate(),this.episodeStore.state.isSameEpisode||this.reset()}onLoaded(t){super.onLoaded(t);const e=t.interaction;if(t.mid&&this.clearSessionRecord(),!this.state.disabled)if(this.configStore.isChannel(l.u5.Manager)){const t=this.configStore.interactiveConfig;t?(this.setState({currentEdgeId:t.edgeId}),this.setState({graphVersion:t.graphVersion})):this.setState({graphVersion:null})}else(null==e?void 0:e.graph_version)?this.wmpStore.fallbackWasmPlayer(J.WASM_PLAYER_FALLBACK_INTERACTIVE).then((()=>{!this.state.disabled&&(null==e?void 0:e.graph_version)&&(1==+e.need_reload?this.setState({needReload:!0}):this.setState({graphVersion:e.graph_version}))})):this.setState({graphVersion:null});this.dp.fetchInteraction=(0,r.gx)((()=>!!this.state.graphVersion),(()=>{this.state.graphVersion&&this.fetchInteraction()})),this.dp.canPreloadPlayurl=(0,r.U5)((()=>this.canPrefetchPlayurl),(()=>{this.canPrefetchPlayurl&&this.state.questions.map((t=>{var e;4!==t.type&&(null==(e=t.choices)?void 0:e.length)&&this.prefetchPlayurl(t.choices).catch((t=>this.log.i(t&&t.message)))}))}))}getInteractionUrlKind(){let t;switch(this.configStore.channelKind){case l.u5.Creator:t=Tr.Member;break;case l.u5.Manager:t=Tr.Manager;break;case l.u5.Default:default:t=Tr.Default}return t}getInteractionParams(){return{platform:"pc",graph_version:this.state.graphVersion,portal:this.interactionConfig.portal,screen:this.uiStore.screenKind,edge_id:this.state.currentEdgeId,choices:this.interactionConfig.choiceSet,aid:this.configStore.aid,buvid:v.JU.buvid()}}fetchInteraction(){new Nr(this.rootPlayer).r(this.getInteractionParams(),this.getInteractionUrlKind()).then((t=>{var e,i,n,r,o;0===(null==(e=null==t?void 0:t.body)?void 0:e.code)&&(null==(i=null==t?void 0:t.body)?void 0:i.data)?(this.parseBody(t.body.data),this.setState({fetchStatus:!0})):99003===(null==(n=null==t?void 0:t.body)?void 0:n.code)?this.setSeamless(!0):(this.setState({graphVersion:null,fetchStatus:!1}),this.toastStore.create({text:"非常抱歉，选项加载失败，请刷新重试",duration:5e3}),this.track.e("interactive_loadfail",{aid:this.configStore.aid,cid:this.configStore.cid,bvid:this.configStore.bvid,code:null==(r=null==t?void 0:t.body)?void 0:r.code,message:(null==(o=null==t?void 0:t.body)?void 0:o.message)||"选项加载失败"}))})).catch((t=>{this.setState({graphVersion:null,fetchStatus:!1}),this.toastStore.create({text:"非常抱歉，选项加载失败，请刷新重试",duration:5e3}),this.track.e("interactive_loadfail",{aid:this.configStore.aid,cid:this.configStore.cid,bvid:this.configStore.bvid,code:null==t?void 0:t.code,message:(null==t?void 0:t.message)||"选项加载失败"})}))}parseBody(t){this.userStore.info.mid||(this.recordKey=`bpx_interaction_${this.configStore.bvid||this.configStore.aid}`,this.setSessionRecord(t));const{noEvaluation:e,noBacktracking:i,noTutorial:n,storyList:r,edges:o,isLeaf:a,hiddenVars:s,title:l}=t;e?this.endingStore.setState({disabled:!0}):this.endingStore.setState({disabled:!1}),this.setState({noBacktracking:!!i,noTutorial:!!n}),Array.isArray(r)&&r.length&&(null===this.state.currentEdgeId&&this.setState({currentEdgeId:+r[0].edgeId}),this.setState({storyList:r})),Array.isArray(s)&&s.length&&(this.setState({hiddenVars:s}),s.map((t=>{this.hiddenMap[t.id_v2]=t.value}))),this.ctrlStore.setState({majorTitle:Hr(this.hiddenMap,l)}),Array.isArray(null==o?void 0:o.questions)&&o.questions.length&&(this.setState({skin:o.skin,dimension:o.dimension,questions:o.questions}),127===o.questions[0].type?this.setState({special:!0}):this.setState({special:!1})),this.setInteractionConfig({isLastPart:!!a})}setSessionRecord(t){try{const e={cid:this.configStore.cid,edgeId:t.edgeId,title:t.title,cover:`//i0.hdslb.com/bfs/steins-gate/${this.configStore.cid}_screenshot.jpg`,startPos:0,cursor:0};let i=this.interactionConfig.targetId;const n={graphVersion:this.state.graphVersion,aid:this.configStore.aid,bvid:this.configStore.bvid,list:[]};let r=this.getSessionRecord()||n;this.state.graphVersion===r.graphVersion?r.list[i]||(r.list[i]={ptr:i,story:e}):(this.setInteractionConfig({targetId:0}),i=0,r=Object.assign({},n,{list:[{ptr:i,story:e}]})),this.interactionConfig.hiddenVars?t.hiddenVars=this.interactionConfig.hiddenVars:this.setInteractionConfig({hiddenVars:t.hiddenVars||null}),r.list[i].hiddenVars=this.interactionConfig.hiddenVars,r.list.filter((t=>{if(void 0!==t&&t.story)return t})),t.storyList=r.list.map((t=>t.story)),this.saveSessionRecord(r)}catch(t){console.warn(t)}}getSessionRecord(){return this.sessionStore.get().interaction[this.recordKey]}saveSessionRecord(t){this.sessionStore.set({interaction:{[this.recordKey]:t}})}clearSessionRecord(){this.sessionStore.get().interaction[this.recordKey]&&delete this.sessionStore.get().interaction[this.recordKey]}updateSessionRecord(){var t,e;if(0===this.interactionConfig.portal&&!this.userStore.info.mid){const i=this.getSessionRecord(),n=null==(t=null==i?void 0:i.list)?void 0:t.length;if(n&&n>this.interactionConfig.targetId){let t=!0;const r=i.list[this.interactionConfig.targetId+1];if(null==(e=null==r?void 0:r.hiddenVars)?void 0:e.length){const e=r.hiddenVars;for(let i=0;i<e.length;i++)void 0!==this.hiddenMap[e[i].id_v2]&&this.hiddenMap[e[i].id_v2]===e[i].value||(t=!1)}else t=!1;t||i.list.splice(this.interactionConfig.targetId+1,n)}this.saveSessionRecord(i),this.interactionConfig.targetId++,this.interactionConfig.hiddenVars&&this.interactionConfig.hiddenVars.map((t=>{void 0!==this.hiddenMap[t.id_v2]&&(t.value=this.hiddenMap[t.id_v2])}))}}setSeamless(t){this.kernelStore.dashKernel&&!this.isDisableSeamless&&this.kernelStore.dashKernel.setEndOfStreamState(t)}prefetchPlayurl(t){return e=this,i=null,n=function*(){var e,i,n,r;if(this.preloadSymbol||this.configStore.isChannel(l.u5.Manager))return!0;if(this.kernelStore.dashKernel&&this.kernelStore.dashKernel.getBufferLength("video")>9||this.mediaStore.state.duration-this.mediaStore.state.currentTime<9){this.preloadSymbol=!0;for(let o=0;o<t.length;o++){const a=t[o].cid;if(a){if(!this.preloadDataMap.has(a)){const t=yield this.mpdStore.prefetchPlayUrl({cid:a,ep_id:this.configStore.episodeId}).promise;if(t){const o=yield this.mpdStore.prefetchAVData(t.body);(null==(e=o.vbHttp)?void 0:e.xhr)&&this.preloadAjax.push(o.vbHttp.xhr),(null==(i=o.abHttp)?void 0:i.xhr)&&this.preloadAjax.push(o.abHttp.xhr);const s=yield null==(n=o.vbHttp)?void 0:n.promise,l=yield null==(r=o.abHttp)?void 0:r.promise;let A={type:"dash"};s&&(A=Object.assign({},A,{videoUrl:o.videoUrl,videoId:String(o.videoQn),video:s})),l&&(A=Object.assign({},A,{audioUrl:o.audioUrl,audioId:String(o.audioQn),audio:l})),this.preloadDataMap.set(a,{playurlData:t.raw,videoData:A})}}}else this.log.e("illegal cid in prefetchPlayurl function")}}},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}))
;var e,i,n}restart(){var t;if(this.state.graphVersion&&(null==(t=this.state.storyList)?void 0:t.length)){const t=this.state.storyList[0];this.callNextEdge({cid:+t.cid,edgeId:+t.edgeId,type:3},{portal:1,targetId:null,hiddenVars:null,choiceSet:""})}}timeline(){return this.state.graphVersion?this.state.storyList:null}isComplete(){return this.userStore.isInteraction?!!this.interactStore.interactionConfig.isLastPart&&this.portStore.isEnded(!1):null}jump(t){const e=this.timeline();if(Array.isArray(e)&&t<e.length){const i=e[t];this.callNextEdge({type:1,cid:i.cid,edgeId:i.edgeId,startPos:i.startPos},{portal:1,targetId:t,hiddenVars:null,choiceSet:""})}}setInteractionConfig(t){if((0,Vr.Z)(this.interactionConfig)&&(0,Vr.Z)(t))for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.prototype.hasOwnProperty.call(this.interactionConfig,e)&&this.interactionConfig[e]!==t[e]&&(this.interactionConfig[e]=t[e])}callNextEdge(t,e){var i;return this.log.i("[call next edge]",bt.p`from: ${t.type}, config: ${t}, alt: ${e}`),this.setState({currentEdgeId:t.edgeId}),e&&this.setInteractionConfig(Xr({},e)),this.updateSessionRecord(),this.episodeStore.reload({aid:this.configStore.aid,bvid:this.configStore.bvid,episodeId:this.configStore.episodeId,cid:t.cid,t:null!=(i=""+t.startPos/1e3)?i:null,stats:this.configStore.stats},{isSameEpisode:!0})}getDisableTime(t){if(!Array.isArray(this.state.questions))return 0;for(let e=0;e<this.state.questions.length;e++){const i=1e3*t,n=this.state.questions[e],r=this.mediaStore.state.duration;if(this.state.special){const t=1e3*(r+1)||n.fadeOutTime-n.startTime+1e3;return i>n.startTime&&i<t+n.startTime&&r-n.startTime/1e3||0}{const t=n.type;if(4===t&&i>n.startTime&&i<n.duration+n.startTime)return r-n.startTime/1e3||0;if(0===t||1===t||2===t||3===t)return n.duration/1e3||0}}}reset(){this.setState({currentEdgeId:null}),this.setInteractionConfig({isLastPart:!1,portal:0,choiceSet:"",targetId:0,hiddenVars:null})}onDispose(){this.preloadSymbol=!1,this.preloadAjax.length&&(this.preloadAjax.map((t=>{t.abort()})),this.preloadAjax=[]),super.onDispose({rookieGuide:!0,currentEdgeId:!0})}onDisconnect(){this.preloadDataMap.clear()}}to([r.Fl],io.prototype,"renderInteractionTPL",1),to([r.Fl],io.prototype,"showHiddenVars",1),to([r.Fl],io.prototype,"canPrefetchPlayurl",1);var no=Object.defineProperty,ro=Object.getOwnPropertyDescriptor,oo=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ro(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&no(e,i,o),o},ao=(t=>(t.weibo="weibo_web",t.tieba="tieba_web",t.qzone="qzone_web",t.qq="qq_web",t.link="copy_web",t.qrcode="weixin_web",t))(ao||{});class so extends s.u{constructor(t){super(t),this.tag="ShareStore",this.config={url:"",title:"",pic:"",description:"",iframeSrc:"",weiboTag:"#bilibili#"},(0,r.rC)(this)}get defaultState(){return{opened:!1}}get url(){if(-1===this.config.url.indexOf("null"))return-1===this.config.url.indexOf("?")?`${this.config.url}?share_source=`:`${this.config.url}&share_source=`}get embededUrl(){if(-1===this.config.url.indexOf("null"))return-1===this.config.url.indexOf("?")?`${this.config.url}?`:`${this.config.url}&`}get title(){return this.config.title.substr(0,120)}get pic(){return this.config.pic}get description(){return this.config.description.substr(0,120)}get iframeSrc(){return this.config.iframeSrc}get weiboTag(){return this.config.weiboTag}onMount(){super.onMount(),this.dc.openedChange=(0,r.U5)((()=>this.state.opened),(t=>{queueMicrotask((()=>{this.rootPlayer.isInitialized&&(this.log.i((t?"Open":"Close")+" SharePanel"),this.rootPlayer.emit(o.t.Player_SharePanel_Change,new CustomEvent(o.t.Player_SharePanel_Change,{detail:{opened:t}})))}))})),this.rootPlayer.on(o.t.Player_Play,(()=>this.close())),this.rootPlayer.on(o.t.Player_Seeking,(()=>this.close()))}onPrepared(){var t;super.onPrepared();const e=this.rootPlayer.window.document.title||this.ctrlStore.title||this.storyStore.state.title,{bvid:i,aid:n,cid:r}=this.configStore;let o="",a="";if(i||n||r)o=i?`${this.rootPlayer.window.location.protocol}//www.bilibili.com/video/${this.configStore.bvid}`:`${this.rootPlayer.window.location.protocol}//www.bilibili.com/video/av${this.configStore.aid}`,o=this.configStore.p>1?o+`?p=${this.configStore.p}`:o,a=`//player.bilibili.com/player.html?${this.configStore.bvid?`bvid=${this.configStore.bvid}`:`aid=${this.configStore.aid}`}&cid=${this.configStore.cid}&p=${this.configStore.p}&share_source=copy_web`;else{let t=l.HR.Pgc;this.uiStore.kind===l.HR.Pgc&&(o=`https://www.bilibili.com/bangumi/play/ep${this.configStore.episodeId}`),this.uiStore.kind===l.HR.Pugv&&(o=`https://www.bilibili.com/cheese/play/ep${this.configStore.episodeId}`,t=l.HR.Pugv),a=`//player.bilibili.com/player.html?episodeId=${this.configStore.episodeId}&kind=${t}`}const s=(null==(t=document.querySelector('meta[name="description"]'))?void 0:t.getAttribute("content"))||this.ctrlStore.title||this.storyStore.state.title;this.setConfig({url:o,iframeSrc:a}),e&&this.setConfig({title:kr.t`${e}`}),s&&this.setConfig({description:s})}open(t){var e;if(!this.endingStore.state.disabled){if(!this.state.opened){const t=this.rootPlayer.window.document.title||this.ctrlStore.title||this.storyStore.state.title,i=(null==(e=document.querySelector('meta[name="description"]'))?void 0:e.getAttribute("content"))||this.ctrlStore.title||this.storyStore.state.title;this.setConfig({title:kr.t`${t}`,description:i}),this.setState({opened:!0})}t&&this.setConfig(t)}}close(){this.state.opened&&this.setState({opened:!1})}setConfig(t){if((0,Vr.Z)(this.config)&&(0,Vr.Z)(t))for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.prototype.hasOwnProperty.call(this.config,e)&&this.config[e]!==t[e]&&(this.config[e]=t[e])}onDispose(){super.onDispose(),this.close()}}oo([r.LO],so.prototype,"config",2),oo([r.Fl],so.prototype,"url",1),oo([r.Fl],so.prototype,"embededUrl",1),oo([r.Fl],so.prototype,"title",1),oo([r.Fl],so.prototype,"pic",1),oo([r.Fl],so.prototype,"description",1),oo([r.Fl],so.prototype,"iframeSrc",1),oo([r.Fl],so.prototype,"weiboTag",1),oo([r.aD],so.prototype,"setConfig",1);var lo=i(68042),Ao=i(24490),co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,uo=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ho(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&co(e,i,o),o};const po={[Dr.Division]:{value:"章节",prefix:"division"},[Dr.WonderMoment]:{value:"高能",prefix:"wonder"},[Dr.StudyNote]:{value:"笔记",prefix:"note"},[Dr.OpenEnd]:{value:"片头片尾",prefix:"oped"},[Dr.AIPoint]:{value:"AI打点",prefix:"aipoint"}};class go extends s.u{constructor(t){super(t),(0,r.rC)(this)}get defaultState(){return{hasPreview:!0,isHover:!1,isDragging:!1,viewpointListOpened:!1,pbp:null,pbpstate:null}}onStateCreated(){super.onStateCreated(),this.setState({pbpstate:this.localStore.get().progress.pbpstate})}onMounted(){super.onMounted(),this.dc.pbpstate=(0,r.U5)((()=>this.state.pbpstate),(t=>{this.localStore.set({progress:{pbpstate:t}})}))}get isActive(){const t=this.state.isHover,e=this.state.isDragging;return t||e}get bufferRatio(){return this.mediaStore.state.remoteDuration&&this.mediaStore.state.bufferedTime/this.mediaStore.state.remoteDuration||0}get currentRatio(){return this.patchAdvStore.hasValidAdv?this.mediaStore.state.progressTime/this.portStore.getDuration()||0:this.mediaStore.state.remoteDuration&&this.mediaStore.state.progressTime/this.mediaStore.state.remoteDuration||0}get segmentData(){return this.mediaStore.state.remoteDuration?this.hotspotStore.state[Dr.Division]:null}get viewpoint(){if(!this.mediaStore.state.remoteDuration)return null;const t=this.hotspotStore.state[Dr.WonderMoment],e=this.hotspotStore.state[Dr.Division];let i=Object.assign([],t);return(null==e?void 0:e.length)&&(i=i.concat(e)),i.length?i:null}get activeDivisionIndex(){var t;if(null==(t=this.segmentData)?void 0:t.length){const t=this.mediaStore.state.currentTime+.001;for(let e=0;e<this.segmentData.length;e++){const i=this.segmentData[e];if(t>=i.from&&t<=i.to)return e}return null}return null}onDispose(){super.onDispose({pbpstate:1})}}uo([r.Fl],go.prototype,"isActive",1),uo([r.Fl],go.prototype,"bufferRatio",1),uo([r.Fl],go.prototype,"currentRatio",1),
uo([r.Fl],go.prototype,"segmentData",1),uo([r.Fl],go.prototype,"viewpoint",1),uo([r.Fl],go.prototype,"activeDivisionIndex",1);var fo=i(35692);function mo(t,e){return!(e<=1)&&(t>=0&&t<e-1)}var yo=Object.defineProperty,bo=Object.getOwnPropertyDescriptor,vo=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?bo(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&yo(e,i,o),o},Eo=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),Io=(t=>(t.None="none",t.Start="start",t.Cancel="cancel",t))(Io||{}),Co=(t=>(t[t.UGCSinglePart=0]="UGCSinglePart",t[t.UGCMultiPart=1]="UGCMultiPart",t[t.UGCSeasonPart=2]="UGCSeasonPart",t[t.PlaylistPart=3]="PlaylistPart",t[t.ActivityPart=4]="ActivityPart",t))(Co||{}),Bo=(t=>(t[t.Disable=-1]="Disable",t[t.Electric=1]="Electric",t[t.ElectricPlus=2]="ElectricPlus",t[t.HighElectric=3]="HighElectric",t))(Bo||{});class wo extends s.u{constructor(t){super(t),this.tag="ManuscriptStore",(0,r.rC)(this)}get defaultState(){return{title:"",cover:"",type:null,list:null,ugcMultipEpisodeList:null,ugcMultiFlattenEpisodeList:null,likeStatus:!1,coinStatus:!1,collectStatus:!1,likeDisable:!1,coinDisable:!1,collectDisable:!1,related:null,relatedAutoplay:!1,likeIcon:"",electricStatus:-1,electricBtnIcon:"",electricBtnText:"",stat:null,payed:null,tid:null,subTid:null}}onPrepared(){super.onPrepared(),this.applyExternalStoryInfo(),this.configStore.embeddedEnv&&this.fetchStoryInfo(),this.togglePoster(!0),this.fetchViewInfo()}applyExternalStoryInfo(){var t;const e=null==(t=this.configStore.viewInfo)?void 0:t.storyInfo;if(!e)return;const i={};null!=e.title&&(i.title=e.title),null!=e.tid&&(i.tid=e.tid),null!=e.subTid&&(i.subTid=e.subTid),null!=e.likeStatus&&(i.likeStatus=e.likeStatus),null!=e.coinStatus&&(i.coinStatus=e.coinStatus),null!=e.collectStatus&&(i.collectStatus=e.collectStatus),null!=e.likeIcon&&(i.likeIcon=e.likeIcon),null!=e.electricStatus&&(i.electricStatus=e.electricStatus),null!=e.stats&&(i.stat=e.stats),null!=e.payed&&(i.payed=e.payed),Object.keys(i).length>0&&this.setState(i)}onMount(){super.onMount(),this.rootPlayer.on(a.p.MEDIA_PLAY,(()=>this.togglePoster(!1)))}get tripleStatus(){const{likeStatus:t,coinStatus:e,collectStatus:i}=this.state,n=t&&e&&i;return this.hasTriple&&n}get hasTriple(){const{likeDisable:t,coinDisable:e,collectDisable:i}=this.state;return!(t||e||i||this.configStore.isChannel(l.u5.Embedded))}get eplist(){var t,e;const{list:i}=this.state;if(i&&i.length){const o=[];for(let a=0;a<i.length;a++){const s=i[a];o.push({p:a+1,aid:+(null!=(t=s.aid)?t:this.configStore.aid),cid:+s.cid,bvid:null!=(e=s.bvid)?e:this.configStore.bvid,seasonId:s.season_id,episodeId:s.episodeId||s.ep_id||s.epid,hasPrev:(n=a,r=i.length,!(r<=1)&&n>=1&&n<r),hasNext:mo(a,i.length),from:s.from,title:s.title||s.part,duration:+s.duration,playWay:+(null==s?void 0:s.play_way),status:+(null==s?void 0:s.status),redirect_url:null==s?void 0:s.redirect_url,badgeInfo:null==s?void 0:s.badge_info,longTitle:null==s?void 0:s.long_title,playerEpTitle:null==s?void 0:s.playerEpTitle})}return o}var n,r;return null}get ugcMultiEpisode(){const{ugcMultipEpisodeList:t}=this.state;return this.traverseUgcMultipEpisodeList(t)}isSection(t){return t.multiEpisodeType===fo.U.Section}isEpisodes(t){return t.multiEpisodeType===fo.U.Episodes}isItem(t){return t.multiEpisodeType===fo.U.Item}traverseUgcMultipEpisodeList(t){var e;const i=[];if(!Array.isArray(t)||0===t.length)return null;if(1===(null==t?void 0:t.length)){const i=t[0];if(i.multiEpisodeType===fo.U.Episodes&&1===(null==(e=null==i?void 0:i.list)?void 0:e.length))return null;i.multiEpisodeType===fo.U.Section&&(i.singleSection=!0)}else{t[0].multiEpisodeType===fo.U.Section&&(t=t.filter((t=>t.multiEpisodeType===fo.U.Section)))}const n=(t,e)=>{var i;t.cid=+t.cid,t.bvid=null!=(i=t.bvid)?i:this.configStore.bvid,t.hasPrev=!1,t.hasNext=!1,t.title=t.title||t.part,t.p=+t.p,+t.cid===this.configStore.cid?(t.active=+t.cid===this.configStore.cid,e.active=!0):t.active=!1},r=(t,e)=>{if(this.isSection(t))for(const e of t.list)r(e,t);if(this.isEpisodes(t))for(const i of t.list)r(i,t),i.active&&e&&(e.active=i.active);this.isItem(t)&&(n(t,e),i.push(t))};for(const e of t)r(e);return this.setState({ugcMultiFlattenEpisodeList:i}),t}findEpisodeByCid(t){const e=i=>{if(this.isSection(i))for(const t of i.list){const i=e(t);if(i)return i}if(this.isEpisodes(i))for(const t of i.list){const i=e(t);if(i)return i}if(this.isItem(i)&&i.cid===t)return i};for(const t of this.ugcMultiEpisode){let i=e(t);if(i)return i}}get ugcSectionList(){const t=this.ugcMultiEpisode;if(Array.isArray(t)&&t.length>0)return t.filter((t=>t.multiEpisodeType===fo.U.Section))}fetchStoryInfo(){return Eo(this,null,(function*(){const t=(0,r.gx)((()=>this.rootStore.isPrepared));this.dp.isPrepared&&this.dp.isPrepared(),this.dp.isPrepared=()=>t.cancel(),yield t;return this.httpStore.fetchVideoDetail(!0).then((({body:t})=>{const{video:e,relate:i}=t;e&&this.setState({title:e.title,stat:e.stat}),i&&this.setState({related:i})})).catch((t=>{if(!tt.Z.isCancel(t))return Promise.reject(t)}))}))}fetchViewInfo(){return Eo(this,null,(function*(){if(this.uiStore.kind!==l.HR.Pugv)return;const t=(0,r.gx)((()=>this.rootStore.isPrepared));this.dp.isViewPrepared&&this.dp.isViewPrepared(),this.dp.isViewPrepared=()=>t.cancel(),yield t;return this.httpStore.fetchViewInfo(!0).then((t=>{const e=t.body,{payed:i}=e;this.setState({payed:i})})).catch((t=>{if(!tt.Z.isCancel(t))return Promise.reject(t)}))}))}togglePoster(t){if(!this.configStore.poster)return;const e=this.mediaStore.video.paused,i=this.nodes.videoPoster;t&&!this.mediaStore.autoplay?e&&this.httpStore.fetchViewInfo(!0).then((t=>{i.innerHTML=`<img src="${(0,Re.Q)(t.body.pic,720)}" alt="poster">`,e&&(i.hidden=!1)})):i.hidden||(i.hidden=!0)}onDispose(){super.onDispose({title:1,cover:1,type:1,list:1,tid:1,subTid:1,likeStatus:1,coinStatus:1,collectStatus:1,likeDisable:1,coinDisable:1,collectDisable:1,related:1,relatedAutoplay:1}),this.nodes.videoPoster&&(this.nodes.videoPoster.hidden=!0)}}vo([r.Fl],wo.prototype,"eplist",1),vo([r.Fl],wo.prototype,"ugcMultiEpisode",1),vo([r.Fl],wo.prototype,"ugcSectionList",1);var xo=i(19247),Qo=i.n(xo),So=(t=>(t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARNING=2]="WARNING",t[t.ERROR=3]="ERROR",t))(So||{});class ko{constructor(){this.maximum=1e5,this.instances=new Map,this.records=new Set}getLogger(t){const e=`@@${t}`,i=this.instances;if(i.has(e))return i.get(e);{const n=this.records,r=new ko;return r.moduleId=t,r.records=n,i.set(e,r),r}}add(t,...e){const i=this.maximum,n=this.records,r=this.moduleId,o={level:t,messages:e,timestamp:Date.now(),moduleId:r};n.size>0&&n.size>i&&n.delete(n.keys().next().value),n.add(o)}getFilteredLog(t={}){var e;const i=this.records,n=this.moduleId,r=null!=(e=t.level)?e:-1,o=t.limit||1/0,a=[],s=[];t.header&&(s.push("--------------- Header(S) ---------------"),s.push(t.header),s.push("--------------- Header(E) ---------------"),s.push(""));for(const e of i.values())if(!t.filterModuleId||e.moduleId===n){if(a.length>=o)break;e.level>=r&&a.push(e)}s.push("--------------- Content(S) ---------------");for(const t of a){const e=[];e.push(`[${Qo()(t.timestamp).format("YYYY-MM-DD hh:mm:ss")}]`),e.push(So[t.level]),t.moduleId&&e.push(`[${t.moduleId}]`),t.messages.forEach((t=>e.push(bt.p`${t}`))),s.push(e.join(" "))}return s.push("--------------- Content(E) ---------------"),t.footer&&(s.push(""),s.push("--------------- Footer(S) ---------------"),s.push(t.footer),s.push("--------------- Footer(E) ---------------")),s.join("\n")}d(...t){this.add(0,...t)}i(...t){this.add(1,...t)}w(...t){this.add(2,...t)}e(...t){this.add(3,...t)}clear(){this.records&&this.records.clear()}}var Do=i(37039),_o=(t=>(t.OP="001111",t.EVENT="001114",t.QUALITY_MONITOR="002879",t))(_o||{});class Ro{constructor(){this.queues=[],this.toBeDefined="TBD"}checkArgsValidity(t,e,i){if("string"!=typeof t)throw new TypeError('Tne "name" MUST be a string')
;if(null!=e&&"object"!=typeof e&&console.warn(`[${t}]`,new TypeError(`The "value" of ${typeof e} type is deprecated. Use object instead`)),null!=i&&"object"!=typeof i)throw new TypeError('Tne "config" MUST be an object')}add(t,e,i){const n=t=>t&&"[object Object]"===Object.prototype.toString.call(t),r="function"==typeof this.getRealtimeReportInfo&&this.getRealtimeReportInfo(),o=Object.assign({name:t,value:e,rawData:e,srcUrl:null,exParam:null,prepend:!1,sendBeacon:!1,timeStamp:Date.now()},r,i);if(null==o.value||n(o.value)||(o.value={[this.toBeDefined]:o.value}),n(o.value))try{o.value=JSON.stringify(o.value)}catch(t){console.warn(t)}o.immediately&&"function"==typeof this.reportSender?this.reportSender(o):o.prepend?this.queues.unshift(o):this.queues.push(o)}o(t,e,i){this.add(t,e,Object.assign({},i,{origin:A.bt.Default,kind:"001111"}))}e(t,e,i){this.add(t,e,Object.assign({},i,{origin:A.bt.Default,kind:"001114"}))}clear(){this.queues.length=0}}const Mo=class{static add(t){"function"==typeof t&&(Mo.pendingList.push(t),Mo.onQueuePushed())}static increaseSign(){Mo.running++}static decreaseSign(){Mo.running--,Mo.onSignDecreased()}static onQueuePushed(){Mo.consumePendingList()}static onSignDecreased(){Mo.consumePendingList()}static consumePendingList(){const t=Mo.maximum-Mo.running;if(t>0){const e=Mo.pendingList,i=Math.min(t,e.length);for(let t=0;t<i;t++){const t=e.shift();t&&(t().then((()=>Mo.decreaseSign())).catch((()=>Mo.decreaseSign())),Mo.increaseSign())}}}};let To=Mo;To.maximum=3,To.pendingList=[],To.running=0;const Fo=class{static key(t,e){return e?`EID:${e}`:t?`CID:${t}`:"0"}static has(t){const e=Fo.buf;if(e.has(t)){const i=e.get(t);return!Fo.isExpired(i)||(Fo.remove(t),!1)}return!1}static get(t){return Fo.has(t)?Fo.buf.get(t):null}static set(t,e){const i=Fo.buf,n=Fo.quota;if(e.promise.then((t=>{e.json=t})).catch((e=>{Fo.remove(t)})),i.set(t,e),i.size>n.maximum){const t=i.size-n.maximum+n.discard,e=[...i.keys()];for(let i=0;i<t;i++)Fo.remove(e[i])}}static remove(t){const e=Fo.buf;if(e.has(t)){const i=e.get(t);i.http&&i.http.dispose("Canceled by RemoveAction"),e.delete(t)}}static clear(){Fo.buf.clear()}static isExpired(t){const e=Date.now()-t.timeStamp;return isNaN(e)||e>Fo.expired}};let Lo=Fo;Lo.buf=new Map,Lo.quota={discard:4,maximum:32},Lo.expired=18e5;const No=new class{constructor(){this.log=new ko,this.track=new Ro,this.mseSupported=(0,Do.a)()}getParams(t,e){const i={qn:0,fnver:C.JC.DEFAULT,fnval:C.xL.getFnVal({mseSupported:this.mseSupported,enableHEVC:e.enableHEVC,enableAV1:e.enableAV1}),fourk:1,voice_balance:1,gaia_source:"pre-load",isGaiaAvoided:!0};return Object.assign(i,t)}getConfig(t){const e={kind:l.HR.Ugc,mseSupported:this.mseSupported,retryCount:0,fromPrefetch:!0};switch(t.kind){case l.HR.Pgc:e.kind=l.HR.Pgc;break;case l.HR.Pugv:e.kind=l.HR.Pugv;break;case l.HR.Ugc:default:e.kind=l.HR.Ugc}return e}r(t,e){const i=new C.xL(this,{persistent:!0}),n=this.getParams(t,e),r=this.getConfig(e),o=i.r(n,r).then((t=>(t&&t.raw&&!t.raw[C.xL.reqCacheKey]&&(t.raw[C.xL.reqCacheKey]=(0,Bt.Z)({},n)),t)));return{http:i,promise:o}}};function Po(t,e){const i=Lo.key(t.cid,t.ep_id);Lo.has(i)||To.add((()=>{if(Lo.has(i))return Promise.reject(new Error("Cached"));{const n=No.r(t,e);return Lo.set(i,{http:n.http,promise:n.promise,timeStamp:Date.now()}),n.promise}}))}var Uo=i(95999);function Oo(t,e,i){const n=new XMLHttpRequest,r=new Promise(((r,o)=>{n.responseType="arraybuffer",n.onload=()=>r(n.response),n.onerror=o,n.onabort=o,n.open("GET",t,!0),n.setRequestHeader("Range",`bytes=${e}-${i-1}`),n.send()}));return{xhr:n,promise:r}}var Go=i(63212),Ho=Object.defineProperty,Vo=Object.defineProperties,Yo=Object.getOwnPropertyDescriptors,zo=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,jo=(t,e,i)=>e in t?Ho(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class qo extends s.f{constructor(){super(...arguments),this.tag="MpdAtom",this.endedTimer=null}fixRenewal(){queueMicrotask((()=>{const{configStore:t,episodeStore:e}=this.rootStore;this.log.w("[Renewal]"),t.remove("cid"),e.reload(null,{isRenewal:!0},{origin:A.bt.Default})}))}getStreamKid(t){if(t){const e=t.mediaDataSource,i=null==e?void 0:e.url,n=null==i?void 0:i.video;if(Array.isArray(n)&&n.length){const t=n[0],e=null==t?void 0:t.bilidrm_uri;if("string"==typeof e)return e.split("//").pop()}}return null}getLastWatchSecond(t){var e,i;const{episodeStore:n,configStore:r,mediaStore:o}=this.rootStore;if(!r.fromDid&&t){const n=o.video,a=r.cid,s=r.episodeId||(null==(i=null==(e=null==t?void 0:t.playViewBusinessInfo)?void 0:e.episodeInfo)?void 0:i.ep_id),l=o.state.duration,A=n.currentTime,c=(t.lastPlayTime||0)/1e3,h=a&&a===t.lastPlayCid,d=s&&((null==t?void 0:t.lastPlayEpid)===s||!!c);if((h||d)&&(A<3&&c>=5&&c<l-5)&&l>30)return c}return 0}getCachedRawMpd(){var t;const{episodeStore:e,interactStore:i,configStore:n}=this.rootStore,r=e.isFirst,o=this.rootPlayer.cd.playUrl;if(o&&(this.rootPlayer.cd.playUrl=null,r))return o;const a=n.cid,s=function(t,e){return Lo.get(Lo.key(t,e))}(a,n.episodeId);return s&&s.json?s.json.raw:null==(t=i.preloadDataMap.get(a))?void 0:t.playurlData}getSuspectDuration(t){if(t&&t.timelength&&t.mediaDataSource.duration){const e=5,i=Math.max(0,(t.timelength-t.mediaDataSource.duration)/1e3);return i>e?i:0}return 0}getLoudnessParams(t){const{patchAdvStore:e}=this.rootStore;if(e.isPlayingPatch()){const t=e.Episode;return t&&t.loudnessParams?t.loudnessParams:null}return t.loudnessParams}errProxy(t){if(!t)return;const{uiStore:e,errorStore:i}=this.rootStore,n=e.kind,r=t.message||"",o=t.playUrl||"";let a=null,s=null;if(r&&/JSON/.test(r))a=n===l.HR.Pgc?J.PLAYURL_BANGUMI_FORM_ERROR:J.PLAYURL_FORM_ERROR,s=`status:${r},url:${o}`;else switch(t.errType){case At.oo.E_Resolve:a=n===l.HR.Pgc?J.PLAYURL_BANGUMI_RESOLVE_ERROR:J.PLAYURL_RESOLVE_ERROR,s=`status:${r},url:${o}`;break;case At.oo.E_Network:a=n===l.HR.Pgc?J.PLAYURL_BANGUMI_NETWORK_ERROR:J.PLAYURL_NETWORK_ERROR,s=`type:https,status:${r},url:${o}`;break;default:return}i.err(q.PLAYURL_ERROR,a,s)}triggerLoadedAction(t,e){var i,n,r,o,a,s,l,A,c;const{mpdStore:h,episodeStore:d,errorStore:u,configStore:p,interactStore:g,freeStore:f,kernelStore:m,qualityStore:y,patchAdvStore:b,translationStore:v,toastStore:E}=this.rootStore,I=d.isFirst,C=d.state.isSameEpisode,B=(I?(0,j.Ac)():null)||(null==(i=g.preloadDataMap.get(p.cid))?void 0:i.videoData),w=!(!C||!B),x=b.hasValidAdv,Q=null==(n=null==t?void 0:t.playViewBusinessInfo)?void 0:n.episodeInfo,S=null==(r=null==t?void 0:t.playViewBusinessInfo)?void 0:r.seasonInfo;if(v.setCurLanguage((null==t?void 0:t.curLanguage)||Uo.S.ORIGIN,(null==t?void 0:t.languageType)||Uo.$.DEFAULT),this.track.e("translation_start_play",{lan:null==t?void 0:t.curLanguage,type:null==t?void 0:t.languageType}),(null==t?void 0:t.curLanguage)!==Uo.S.ORIGIN){const e=(null==t?void 0:t.languageType)===Uo.$.AI_VOICE?"AI原声翻译":"UP主上传配音",i=E.create({text:`正在播放${e}[${null==t?void 0:t.curLanguage.toUpperCase()}]`,confirmText:"播放原片",duration:8e3,manualMode:!0,onRemoved:()=>{i&&E.remove(i)},onConfirmClicked:()=>{this.track.e("translation_to_origin_click",{lan:null==t?void 0:t.curLanguage,type:null==t?void 0:t.languageType}),v.switchLanguage(Uo.S.ORIGIN,Uo.$.DEFAULT),i&&E.remove(i)}})}if((null==t?void 0:t.languageInfo)&&v.setLanguageInfo(t.languageInfo),!x&&Q&&p.setEpConfig(((t,e)=>Vo(t,Yo(e)))(((t,e)=>{for(var i in e||(e={}))Wo.call(e,i)&&jo(t,i,e[i]);if(zo)for(var i of zo(e))Zo.call(e,i)&&jo(t,i,e[i]);return t})({},Q),{episodeId:Q.ep_id})),S&&p.setEpConfig({seasonId:S.season_id,seasonType:S.season_type}),h.setState({cidSettled:!0}),u.resetCounter(),(null==(o=null==t?void 0:t.viewInfo)?void 0:o.strategyTrialInfo)&&t.viewInfo.strategyTrialInfo.trialProgressEnd>15&&y.setState({strategyTrialInfo:{enabled:t.viewInfo.strategyTrialInfo.enabled,trialProgressEnd:t.viewInfo.strategyTrialInfo.trialProgressEnd,promptText:t.viewInfo.strategyTrialInfo.promptText,autoSwitch:t.viewInfo.strategyTrialInfo.autoSwitch,stuuid:t.viewInfo.strategyTrialInfo.stuuid}}),null==(a=null==t?void 0:t.viewInfo)?void 0:a.qnTrialInfo){
const{remaining_times:e,trial_able:i,start:n,time_length:r,end_toast:o,auto_panel:a}=(null==(s=null==t?void 0:t.viewInfo)?void 0:s.qnTrialInfo)||{};if(i&&e){const s=null==(l=t.supportFormats)?void 0:l.map((t=>t.quality));(0,Go.Z)(s)>vt.nJ.alias.FHD_80&&y.setState({trialInfo:{remainingTimes:e,start:n,trialable:i,timelength:r,endToast:o,autoPanel:a||!1}})}}if(null==(A=null==t?void 0:t.viewInfo)?void 0:A.aiRepairQnTrialInfo){const{remaining_times:e,trial_able:i,end_toast:n,start:r,time_length:o}=t.viewInfo.aiRepairQnTrialInfo;i&&e>0&&y.setState({aiSwitchQualityTrialable:i,aiTrialQnResourceInfo:{icon:n.icon,start:r,timelength:o}})}(null==(c=null==t?void 0:t.viewInfo)?void 0:c.sponsor)&&E.setSponsor(t.viewInfo.sponsor),h.drmTechType?f.guardAtom.validPerm().then((()=>{this.log.i("validPerm","done"),m.attachExternal({mediaDataSource:t.mediaDataSource,quality:this.hackMpdData(t,e)},{initiator:e,preloadAVData:B,enableTransition:w})})).catch((t=>{f.guardAtom.handlePermDenied(t,e)})):m.attachExternal({mediaDataSource:t.mediaDataSource,quality:this.hackMpdData(t,e)},{initiator:e,preloadAVData:B,enableTransition:w})}hackMpdData(t,e){const{qualityStore:i,userStore:n,uiStore:r,portStore:o,configStore:a}=this.rootStore,s=t.quality;if(i.state.isTrialQuality)return i.state.reqQuality;if(r.kind!==l.HR.Ugc||n.isLogin){try{const n=i.requestQ;if(s!==n&&"string"!=typeof t.mediaDataSource.url){const r=t.mediaDataSource.url.video;if(!r||!r.length)return s;if(!!r.find((t=>t.id===n)))return n;if(a.reloadQuality&&vt.nJ.isValidQuality(a.reloadQuality))return this.log.i("[hackMpdData]","use reloadQuality: ",a.reloadQuality),a.reloadQuality;if(n===vt.nJ.alias.Auto&&s<vt.nJ.alias.FHD_80)return e!==C.ZX.Reload_Access||i.state.isLoginSwitch?vt.nJ.gt.abrMin:Math.max(...r.filter((t=>t.id<vt.nJ.alias.UHD_4K)).map((t=>t.id)))}if([vt.nJ.alias.UHD_DVision,vt.nJ.alias.UHD_HDR].includes(s)&&"string"!=typeof t.mediaDataSource.url&&Array.isArray(t.supportFormats)&&t.supportFormats.length>0){const e=o.getSupportedQualityList({formats:t.supportFormats}),i=t=>e.reduce(((e,i)=>i!==t?Math.max(e,i):e),0);if(!e.includes(s)){return i(s)||s}}}catch(t){}return s}return 16}prefetchAVData(t){return e=this,i=null,n=function*(){const e=this.rootStore.kernelStore.dashKernel,i=(t,e,i,n=7)=>{if(Array.isArray(i))for(const r of i)if(r.id===t&&r.baseUrl&&(r.codecid===n&&"video"===e||"audio"===e))return r.baseUrl.replace("http://","https://")};let n,r,o,a,s,l;if("dash"===t.mediaDataSource.type&&e){const A=e.getCurrentCodecID("video");o=e.getQualityNumberFromQualityIndex(e.getQualityFor("video"),"video"),s=e.getQualityNumberFromQualityIndex(e.getQualityFor("audio"),"audio"),a=i(o,"video",t.mediaDataSource.url.video,A),l=i(s,"audio",t.mediaDataSource.url.audio),a&&(n=Oo(a,0,5e5)),l&&(r=Oo(l,0,2e4))}return{vbHttp:n,abHttp:r,videoQn:o,videoUrl:a,audioQn:s,audioUrl:l}},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}setEndedTimer(t){t===C.ZX.Initialize&&(this.delEndedTimer(),this.dp.tmpPrepared=(0,r.gx)((()=>this.rootStore.isPrepared),(()=>{this.endedTimer=window.setTimeout((()=>this.rootStore.mpdStore.setState({isMpdEnded:!0})),0)})))}delEndedTimer(){this.endedTimer&&(clearTimeout(this.endedTimer),this.endedTimer=null),this.dp.tmpPrepared&&this.dp.tmpPrepared()}onDispose(){super.onDispose(),this.delEndedTimer()}}var Jo=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,Xo=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Ko(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Jo(e,i,o),o};class $o extends s.u{constructor(t){super(t),this.tag="MpdStore",this.body=null,(0,r.rC)(this),this.mpdAtom=new qo(t)}get defaultState(){return{isMpdEnded:!1,isMpdRequested:!1,isPreviewStream:null,suspectDuration:0,playUrlCode:null,mpdRetries:-1,cidSettled:!1}}get dmStartOffset(){return this.body&&this.body.dmOffset||0}get drmTechType(){return this.body?this.body.drmTechType:null}get isHighGradeVideo(){var t;return(null==(t=this.body)?void 0:t.qualityTag)===C.d9.HIGH_QUALITY}get streamKid(){return this.mpdAtom.getStreamKid(this.body)}get lastWatchSecond(){return this.mpdAtom.getLastWatchSecond(this.body)}get loudnessParams(){return this.mpdAtom.getLoudnessParams(this.body)}get previewType(){var t;return this.uiStore.kind===l.HR.Pgc?(null==(t=this.body)?void 0:t.isPreview)?3:1:0}onMount(){super.onMount(),this.dc.setPreviewStream=(0,r.U5)((()=>({body:this.body,info:this.userStore.info})),(t=>{switch(this.uiStore.state.kind){case l.HR.Pgc:case l.HR.Pugv:t.body&&this.setState({isPreviewStream:!!t.body.isPreview});break;case l.HR.Ugc:default:t.info&&this.setState({isPreviewStream:!!t.info.isUgcPayPreview})}})),this.dc.isPreviewStream=(0,r.U5)((()=>this.state.isPreviewStream),(t=>this.setState({suspectDuration:t?this.mpdAtom.getSuspectDuration(this.body):0}))),this.dc.suspectDuration=(0,r.U5)((()=>this.state.suspectDuration),(()=>this.rootPlayer.emit(o.t.Player_DurationChange,new CustomEvent(o.t.Player_DurationChange))))}onCommitted(){super.onCommitted();const t=this.httpStore.getViewKind();t.isFatalError||t.isMissing||(this.log.i("[PlayUrl]",'Starting on "Committed" hook'),this.startPlayUrlProxy(),this.setState({isMpdRequested:!0}))}onPrepared(){super.onPrepared(),this.state.isMpdRequested||(this.log.i("[PlayUrl]",'Starting on "Prepared" hook'),this.startPlayUrlProxy())}startPlayUrlProxy(){this.fetchPlayUrl(null,{initiator:C.ZX.Initialize,preloadPlayUrl:this.mpdAtom.getCachedRawMpd()})}hasHistory(t){const e=null==t?void 0:t.lastPlayTime;return e&&e>0}preSetPatchPlayUrlParams(t){const e=this.patchAdvStore.getPatchPlayUrlParams();return e&&(t||(t={}),Object.assign(t,e)),t}get cidSettled(){return this.state.cidSettled}fetchPlayUrl(t,e){this.rootStore.stageAtom.set(I.y.PlayUrl_Head),t=this.preSetPatchPlayUrlParams(t);const i=e&&e.initiator,n=t=>{var n,r;this.rootStore.stageAtom.set(I.y.PlayUrl_Done),this.rootPlayer.emit(o.t.Player_PlayUrl_Done,new CustomEvent(o.t.Player_PlayUrl_Done,{detail:{raw:t.raw}})),this.configStore.embeddedEnv&&t.body.quality>this.qualityStore.maxEmbeddedQn&&this.qualityStore.maxEmbeddedQn&&(t.body.quality=this.qualityStore.maxEmbeddedQn);const a=t.body.parsedFragmentVideoInfoList;if(this.patchAdvStore.setState({reportList:t.body.parsedReportFragmentVideoInfoList}),Array.isArray(a)&&a.length>1){let e,o,s,l=0;this.patchAdvStore.hasValidAdv?l=this.patchAdvStore.state.index:this.patchAdvStore.setState({reportList:t.body.parsedReportFragmentVideoInfoList}),(null==(r=null==(n=t.body)?void 0:n.playViewBusinessInfo)?void 0:r.episodeInfo)&&(e=t.body.playViewBusinessInfo.episodeInfo.aid,o=t.body.playViewBusinessInfo.episodeInfo.cid,s=t.body.playViewBusinessInfo.episodeInfo.ep_id),this.patchAdvStore.setState({videoList:t.body.parsedFragmentVideoInfoList}),this.patchAdvStore.setState({mainInfo:{aid:this.configStore.aid||e,cid:this.configStore.cid||o,episodeId:this.configStore.episodeId||s,timelength:t.body.parsedFragmentVideoInfoList[this.patchAdvStore.getMainIndex()].timelength}}),this.hasHistory(t.body)||this.configStore.t?(l=this.patchAdvStore.getMainIndex(),this.configStore.setEpConfig({aid:e,cid:o})):a[l].fragmentInfo&&this.configStore.startAdvPatchParser({aid:a[l].fragmentInfo.aid,cid:a[l].fragmentInfo.cid,episodeId:this.patchAdvStore.mainInfo.episodeId,extraEPInfo:this.configStore.extraEPInfo,seasonId:this.configStore.seasonId,seasonType:this.configStore.seasonType}),this.patchAdvStore.setState({index:l}),this.setMpdBody(a[l],i)}else this.setMpdBody(t.body,i);this.setState({mpdRetries:t.retries}),this.mpdAtom.setEndedTimer(i),(null==e?void 0:e.mpdDoneCallback)&&"function"==typeof(null==e?void 0:e.mpdDoneCallback)&&(null==e||e.mpdDoneCallback())};if(this.configStore.localUrl)return this.rootStore.stageAtom.set(I.y.PlayUrl_Tail),void this.kernelStore.attachExternal({quality:0,mediaDataSource:{type:"mp4",url:this.configStore.localUrl}},{initiator:i});this.httpStore.fetchPlayUrl(!1,t,e).then((t=>n(t))).catch((t=>{if(!tt.Z.isCancel(t))if(i!==C.ZX.Reload_Access){if(this.rootStore.stageAtom.set(I.y.PlayUrl_Tail),
this.rootPlayer.emit(o.t.Player_PlayUrl_Done,new CustomEvent(o.t.Player_PlayUrl_Done,{detail:{raw:t.raw}})),t){if("TypeError"===t.name)return this.log.e("[Fatal]",t.message,t.stack);null!==t.code&&this.setState({playUrlCode:t.code}),null!=t.retries&&this.setState({mpdRetries:t.retries})}if(i===C.ZX.Initialize&&t&&t.errType===At.oo.E_Renewal)return this.mpdAtom.fixRenewal();this.mpdAtom.errProxy(t),this.rootPlayer.emit(a.p.ERROR_PLAY_URL,t,i,null==t?void 0:t.playPermissionDenied),this.mpdAtom.setEndedTimer(i)}else this.log.i("[PlayUrl] Reload_Access do not retry")}))}patchAdapt(t){if(!t||!this.patchAdvStore.hasValidAdv)return t;const e=this.patchAdvStore.prePatchDurationInSecAndInt(),{clipInfoList:i}=t;return i&&i.length&&i.forEach((t=>{t.start+=e,t.end+=e})),t}setMpdBody(t,e){t&&t.session&&(this.configStore.session=t.session),this.body=this.patchAdapt(t),this.mpdAtom.triggerLoadedAction(t,e)}prefetchPlayUrl(t,e){const i=new C.xL(this.rootPlayer,{persistent:!0});t=this.preSetPatchPlayUrlParams(t);const n=i.r(this.httpStore.getPlayUrlParams(t),this.httpStore.getPlayUrlConfig(e));return{http:i,promise:n}}reloadPlayUrl(t){return new Promise(((e,i)=>{this.fetchPlayUrl(null,{initiator:t,mpdDoneCallback:()=>{"function"==typeof this.dp.fakeSwitchDone&&this.dp.fakeSwitchDone(),this.dp.fakeSwitchDone=(0,r.gx)((()=>!this.kernelStore.state.fakeSwitching),(()=>{this.log.i("[reloadPlayUrl] fakeSwitchDone"),this.rootPlayer.emit(a.p.Player_Reload_Access_Success),e(!0)}))}})}))}prefetchAVData(t){return e=this,i=null,n=function*(){return this.mpdAtom.prefetchAVData(t)},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}emitDRMCantPlayReason(t,e,i){const{type:n,version:r,os:a}=w.X.getCurrentBrowserAndOS(),s=e.split("TypeError -");if(i===K.KEY_ERROR&&s.length>1)try{const t=JSON.parse(s[1].trim());e=(null==t?void 0:t.message)||e}catch(t){e=s[1]}const l=`${a} - ${n===w.o.Chrome&&[87,108,122,132].includes(+r)&&t!==X.NO_GPU_ACCELERATION?"360(?)":n}_${r}: ${e}`;this.rootPlayer.emit(o.t.Player_CANT_PLAY_DRM,new CustomEvent(o.t.Player_CANT_PLAY_DRM,{detail:{code:t,message:l,originReason:e,details:{isChrome:n===w.o.Chrome,drmCode:i,browserType:n,browserVersion:r,os:a}}}))}fallback(t,e,i){const n=this.metricStore.quitInfo;this.log.w("[DRM:fallback]",e,i),this.emitDRMCantPlayReason(X.MAYBE_PLATFORM_NOT_VERIFIED,i||"Fallback",t),null==n.drmErr&&(n.drmErr=t),this.fetchPlayUrl(null,{initiator:C.ZX.DRM_Fallback,drmFallback:!0})}get payInfoDecision(){var t,e;const i=null==(e=null==(t=this.body)?void 0:t.playViewBusinessInfo)?void 0:e.userStatus.pay_info;if(i){const{pay_check:t,pay_pack_paid:e,sponsor:n}=i;return t||e||n}return!1}}Xo([r.LO.shallow],$o.prototype,"body",2),Xo([r.aD],$o.prototype,"setMpdBody",1);var ta=Object.defineProperty,ea=Object.getOwnPropertyDescriptor;class ia extends s.u{get defaultState(){return{seekDetail:{start:null,total:0},enterDetail:{start:0,total:0,locked:!1}}}onMount(){super.onMount(),this.rootPlayer.on(o.t.Player_Initialized,(()=>{this.state.enterDetail.locked&&this.changeState(this.state.enterDetail,{start:this.portStore.getCurrentTime()})})),this.rootPlayer.on(o.t.Player_Seeking,(()=>{this.seekingDetailHandler(),null===this.state.seekDetail.start&&this.changeState(this.state.seekDetail,{start:this.portStore.getCurrentTime()})})),this.rootPlayer.on(o.t.Player_Seeked,(()=>{this.seekedDetailHandler();const{start:t,total:e}=this.state.seekDetail;if(null!==t){const i=e+this.portStore.getCurrentTime()-t;this.changeState(this.state.seekDetail,{total:i,start:null})}})),this.rootPlayer.on(o.t.Player_Statue_Changed,(()=>{this.uiStore.screenKind===l.dY.Pip?this.pipEnterDetailHandler():this.pipLeaveDetailHandler()})),this.rootPlayer.window.addEventListener("beforeunload",this.onBeforeUnloadHandler)}seekingDetailHandler(){this.state.enterDetail.locked&&null===this.state.seekDetail.start&&this.changeState(this.state.seekDetail,{start:this.portStore.getCurrentTime()})}seekedDetailHandler(){const{start:t,total:e}=this.state.seekDetail;this.state.enterDetail.locked&&null!==t&&this.changeState(this.state.seekDetail,{start:null,total:e+this.portStore.getCurrentTime()-t})}resetSeekDetail(){this.state.enterDetail.locked||this.changeState(this.state.seekDetail,{start:null,total:0})}pipEnterDetailHandler(){this.resetSeekDetail(),this.state.enterDetail.locked||this.changeState(this.state.enterDetail,{locked:!0,start:this.portStore.getCurrentTime()})}pipLeaveDetailHandler(t=!1){const{locked:e,start:i,total:n}=this.state.enterDetail;if(e){const e=this.portStore.getCurrentTime(),r=n+e-i-this.state.seekDetail.total;this.changeState(this.state.enterDetail,{total:r,start:e,locked:t}),this.changeState(this.state.seekDetail,{total:0})}}getPipPlayingDuration(){return this.pipLeaveDetailHandler(!0),this.state.enterDetail.total}onBeforeUnloadHandler(){this.reportPipDuration()}reportPipDuration(t=!0){const e=Math.round(this.getPipPlayingDuration());e&&this.track.e("pip_playing_duration",e,{sendBeacon:t})}onDispose(){super.onDispose({enterDetail:1,seekDetail:1}),this.pipLeaveDetailHandler(this.state.enterDetail.locked),this.reportPipDuration(!1),this.changeState(this.state.enterDetail,{total:0})}onDisconnect(){super.onDisconnect(),this.rootPlayer.window.removeEventListener("beforeunload",this.onBeforeUnloadHandler)}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?ea(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&ta(e,i,o)})([n.ak],ia.prototype,"onBeforeUnloadHandler",1);var na=i(76173),ra=i(1291),oa=i(82517);class aa extends s.u{constructor(){super(...arguments),this.tag="WmpStore",this.WASM_PLAYER_MAX_QUALITY=116,this.WASM_PLAYER_DISABLE="bwphevc_disable",this.QUALITY_CPU_MAP={16:4,32:4,64:4,80:4,0:4,112:8,116:16},this.BLACK_LIST={1:!0,2:!0,9:!0,18:!0,208259:!0,1684013:!0,3479095:!0,9099524:!0,12754559:!0,21673742:!0,35361273:!0,40016273:!0,345039937:!0,386593697:!0,9285500:!0}}get isDisabledWasmPlayer(){try{return!0}catch(t){}return"1"===(0,ra.Gg)(this.WASM_PLAYER_DISABLE)}get isPrefEnableWasmPlayer(){return!this.mpdStore.drmTechType&&this.configStore.enableWMP&&St().isBwpHEVCPrefSupported()}onMount(){super.onMount(),this.rootPlayer.on(a.p.WASM_PLAYER_FALLBACK,(()=>{this.track.o(x.w.O_Wasm_Player,{code:J.WASM_PLAYER_FALLBACK_PERF}),this.log.i("WasmPlayer onperformance fallback to H.264"),this.disableWasmPlayer(),this.qualityStore.switchProxy()}))}isBwpElement(t){return"BWP-VIDEO"===(null==t?void 0:t.tagName)}isUseWasmPlayer(t){return!(!window.__ENABLE_WASM_PLAYER__||!this.isBwpElement(t))}isNeedSwitchBwpVideoTag(t,e,i){const n=this.isUseWasmPlayer(t),r=this.isCanUseWasmPlayer(e,i);if(n){if(!r)return!0}else if(r)return!0;return!1}checkWasmPlayerSupported(t,e){const i=this.mediaStore.video,n=this.createVideoElement(i,t,e);n&&i.parentElement&&(i.parentElement.insertBefore(n,i),this.mediaStore.replaceElement(n),this.rootPlayer.emit(a.p.PLAYER_MEDIA_CHANGED))}createNewVideoElement(t,e){const i=this.isUseWasmPlayer(this.mediaStore.video),n=this.createVideoElement(null,t,e);return!i||this.isUseWasmPlayer(n)||this.isDisabledWasmPlayer||this.track.o(x.w.O_Wasm_Player,{code:J.WASM_PLAYER_FALLBACK_QUALITY}),n}fallbackWasmPlayer(t){return new Promise(((e,i)=>{this.isUseWasmPlayer(this.mediaStore.video)?(this.track.o(x.w.O_Wasm_Player,{code:t}),this.log.i(`[fallbackWasmPlayer] fallback WasmPlayer, code: ${t}`),this.disableWasmPlayer(),this.qualityStore.switchProxy(),this.rootPlayer.once(a.p.PLAYER_MEDIA_CHANGED,(()=>{e({})}))):e({})}))}onWasmPlayerError(t,e,i=!1){this.isUseWasmPlayer(t)&&(this.track.o(x.w.O_Wasm_Player,{code:(null==e?void 0:e.code)||J.WASM_PLAYER_ERROR}),this.log.w(`[onWasmPlayerError] WasmPlayer is enable, disable it, code: ${null==e?void 0:e.code}, message: ${null==e?void 0:e.message}`),this.disableWasmPlayer(),i&&this.destroyWasmPlayer(t))}destroyWasmPlayer(t){t instanceof HTMLVideoElement||this.isBwpElement(t)&&(this.log.i("[destroyWasmPlayer] call WasmPlayer destroy"),t.destroy())}disableWasmPlayer(){(0,ra.KY)(this.WASM_PLAYER_DISABLE,"1")}createVideoElement(t,e,i){
const n=()=>(this.log.i("[createVideoElement] create native HTMLVideoElement"),window.__ENABLE_WASM_PLAYER__=!1,(0,E.Y)());if(this.isCanUseWasmPlayer(e,i)){if(!this.isBwpElement(t))return document.querySelectorAll("bwp-video").length>1?n():(this.log.i("[createVideoElement] create BwpElement"),window.__ENABLE_WASM_PLAYER__=!0,document.createElement("bwp-video"))}else if(!(t&&t instanceof HTMLVideoElement))return n();return null}isWasmPlayerSupported(t,e){var i,n;if(!window.AudioWorklet||!window.AudioWorkletNode||!window.SharedArrayBuffer)return!1;if(this.qualityStore.state.isTrialSwitch)return!1;if(!this.isPrefEnableWasmPlayer)return!1;if(null==(i=null==e?void 0:e.flac)?void 0:i.audio)return!1;if(this.BLACK_LIST[nt.get("DedeUserID")]||window.frameElement||!(0,oa.isBwpSupported)()||this.isDisabledWasmPlayer)return!1;const r=(null==(n=null==window?void 0:window.navigator)?void 0:n.hardwareConcurrency)||0,o=this.QUALITY_CPU_MAP[t]||0;if(!o||r<o)return!1;if(0===t&&this.WASM_PLAYER_MAX_QUALITY<80||t>this.WASM_PLAYER_MAX_QUALITY)return!1;return!!((e,i)=>{if(!(null==e?void 0:e.length)||!(null==i?void 0:i.length))return!1;let n=!1,r=!1;const o=e.filter((t=>12===t.codecid));if(o.length<=0)return!1;const a=e.filter((t=>7===t.codecid)),s=t=>t.filter((t=>t.id<=80)).length;return s(o)>=s(a)&&(r=!0),(o.find((e=>e.id===t))||0===t)&&(n=!0),r&&n})(null==e?void 0:e.video,null==e?void 0:e.audio)}isAV1Supported(t,e){if(!St().isAV1TypeSupported()||!(null==e?void 0:e.video))return!1;const i=e.video.filter((t=>13===t.codecid));if(!i.length)return!1;if(0!==t&&!i.some((e=>e.id===t)))return!1;const n=parseInt((0,ra.tv)(na.uU),10)||0,r=St().shouldUseHardwareDecodingAV1();if(0===n){if(t>(r?120:116)&&t<127)return!1}else if(3!==n)return!1;return!!!+(0,ra.Gg)("enableAV1Error")}isCanUseWasmPlayer(t,e){return!1}onDisconnect(){super.onDisconnect(),this.destroyWasmPlayer(this.mediaStore.video)}}var sa=i(14653),la=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,ca=(t=>(t[t.DEFAULT=0]="DEFAULT",t[t.PANORAMIC=1]="PANORAMIC",t[t.INTERACTIVE=2]="INTERACTIVE",t[t.DRM=3]="DRM",t))(ca||{});class ha extends s.u{constructor(){super(...arguments),this.rtsMap=new Map,this.rtsMapWthLang=new Map,this.rtsMapWthLangAndType=new Map,this.rtsMapForPlayMode=new Map,this.audioOnlyPlayTime=0,this.audioOnlyDuration=0,this.pcr={pageUnload:!1,earlyEOFSymbol:!1,quitInfo:{}},this.longTaskTimer=-1,this.rts=null,this.mct=null,this.maxTimeRecord=0}get pageUnload(){return this.pcr.pageUnload}get earlyEOFSymbol(){return this.pcr.earlyEOFSymbol}get quitInfo(){return this.pcr.quitInfo}get curLanguage(){return this.translationStore.state.curLanguage}get playingNormally(){const t=this.mediaStore.video,e=this.mediaStore.state.isFirstCanplay,i=this.errorStore,n=i.state.initError;return!(i.state.kernelError||n)&&!(!(t.readyState>=4&&e)||t.error)}setEarlyEOFSymbol(t){this.pcr.earlyEOFSymbol=t}getAbsolutePlayTime(){return this.getPlayTime(!1)}getRelativePlayTime(){return this.getPlayTime(!0)}getRelativePlayTimeMs(){const t=[...this.rtsMap.entries()].reduce(((t,[e,i])=>t+i*e),0);return Math.floor(t)}getMaxPlayTime(){return Math.floor(this.maxTimeRecord)}reportPlayModeStats(){const t=(this.rtsMapForPlayMode.get("back_normal")||0)/1e3,e=((this.rtsMapForPlayMode.get("fore_normal")||0)+(this.rtsMapForPlayMode.get("back_pip")||0)+(this.rtsMapForPlayMode.get("fore_pip")||0))/1e3,i={back_normal:t,other_total:e,audio_only:this.audioOnlyPlayTime/1e3,audio_only_duration:this.audioOnlyDuration/1e3};0!==t+e&&this.track.e("background_status",i)}getAllLanguageAbsolutePlayTime(t=!1,e=!1){const i={},n=e?this.rtsMapWthLangAndType:this.rtsMapWthLang,r=t?n.keys():[...n.keys()].filter((t=>!t.startsWith("origin")));for(const t of r){const e=n.get(t);if(e){const n=[...e.entries()].reduce(((t,[e,i])=>t+i),0);i[t]=Math.ceil(n/1e3)}}return i}getPageHiddenTime(){const t={};return t.back_normal=(this.rtsMapForPlayMode.get("back_normal")||0)/1e3,t.fore_normal=(this.rtsMapForPlayMode.get("fore_normal")||0)/1e3,t.back_pip=(this.rtsMapForPlayMode.get("back_pip")||0)/1e3,t.fore_pip=(this.rtsMapForPlayMode.get("fore_pip")||0)/1e3,t}onMount(){super.onMount(),this.rootPlayer.window.addEventListener("beforeunload",this.onBeforeUnload),this.rootPlayer.on(o.t.Player_Dispose,(()=>this.cleanAfterDispose()),1),this.rootPlayer.on(a.p.MEDIA_TIMEUPDATE,(()=>{this.startRecorder(),this.maxTimeRecordHandler()})).on(a.p.MEDIA_WAITING,(()=>this.pauseRecorder())).on(a.p.MEDIA_SEEKING,(()=>this.pauseRecorder())).on(a.p.MEDIA_SEEKED,(()=>{this.maxTimeRecordHandler()})).on(a.p.MEDIA_PAUSE,(()=>this.pauseRecorder())).on(a.p.MEDIA_ENDED,(()=>{this.pauseRecorder(),this.reportPlayModeStats(),this.patchAdvStore.hasValidAdv?this.maxTimeRecordHandler(Math.floor(this.portStore.getDuration())):this.maxTimeRecordHandler(this.mediaStore.state.duration)}))}onPrepared(){super.onPrepared(),this.clearLongTaskTimer(),this.longTaskTimer=window.setInterval((()=>{this.getAbsolutePlayTime()>5&&(this.clearLongTaskTimer(),this.ltMonitor=sa.Iy.startDetectLongTask())}),1e3)}clearLongTaskTimer(){window.clearInterval(this.longTaskTimer),this.longTaskTimer=-1}startRecorder(){const t=Date.now(),e=this.mediaStore.state.currentTime;if(!this.mediaStore.video.paused){if(null!=this.rts){const i=t-this.rts,n=1e3*(e-this.mct),r=this.mediaStore.video.playbackRate;if(i>0&&r>0){const t=1500,e=i<t?i:Math.min(i,n);if(e>0&&e<t){const t=(this.rtsMap.get(r)||0)+e;this.rtsMap.set(r,t);const i=this.rootStore.pageHidden,n=this.uiStore.state.sideScreen===l.dY.Pip,o=i?n?"back_pip":"back_normal":n?"fore_pip":"fore_normal",a=this.rtsMapForPlayMode.get(o)||0;this.rtsMapForPlayMode.set(o,a+e),this.mediaStore.audioOnlyByStartup&&(this.audioOnlyPlayTime+=e),this.mediaStore.isAudioOnlyMode&&(this.audioOnlyDuration+=e);const s=this.translationStore.state.curLanguage||"origin";this.rtsMapWthLang.has(s)||this.rtsMapWthLang.set(s,new Map);const A=this.rtsMapWthLang.get(s),c=(A.get(r)||0)+e;A.set(r,c);const h=this.translationStore.transformTypeToString(this.translationStore.state.curLanguageType,""),d=h?`${s}-${h}`:s;this.rtsMapWthLangAndType.has(d)||this.rtsMapWthLangAndType.set(d,new Map);const u=this.rtsMapWthLangAndType.get(d),p=(u.get(r)||0)+e;u.set(r,p)}}}this.rts=t,this.mct=e}}pauseRecorder(){this.rts=null,this.mct=null}maxTimeRecordHandler(t){this.patchAdvStore.hasValidAdv?this.maxTimeRecord=Math.max(this.maxTimeRecord,t||this.portStore.getCurrentTime()):this.maxTimeRecord=Math.max(this.maxTimeRecord,t||this.mediaStore.state.currentTime)}getPlayTime(t){const e=[...this.rtsMap.entries()].reduce(((e,[i,n])=>e+n*(t?i:1)),0);return Math.floor(e/1e3)}onBeforeUnload(){this.pcr.pageUnload=!0,this.reportPlayModeStats(),this.rootStore.isDisposing||(this.rootPlayer.emit(a.p.PLAYER_UNLOAD),this.rootPlayer.emit(a.p.PLAYER_UNLOADED))}disConnectLongTaskObserver(){this.ltMonitor&&this.ltMonitor.observer&&(this.ltMonitor.observer.disconnect(),this.ltMonitor=null)}cleanAfterDispose(){this.pcr.pageUnload=!1,this.pcr.earlyEOFSymbol=!1,this.pcr.quitInfo={},this.maxTimeRecord=0,this.pauseRecorder(),this.rtsMap.clear(),this.rtsMapWthLang.clear(),this.rtsMapWthLangAndType.clear(),this.rtsMapForPlayMode.clear(),this.audioOnlyPlayTime=0,this.audioOnlyDuration=0,this.clearLongTaskTimer(),this.disConnectLongTaskObserver()}onDisconnect(){super.onDisconnect(),this.rootPlayer.window.removeEventListener("beforeunload",this.onBeforeUnload)}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?Aa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&la(e,i,o)})([n.ZP],ha.prototype,"onBeforeUnload",1);class da extends At.eV{constructor(){super(...arguments),this.tag="HttpHeartbeat",this.url="//api.bilibili.com/x/click-interface/web/heartbeat"}r(t,e){return i=this,n=null,r=function*(){return this.request({url:this.url,method:"POST",params:e,data:t,withCredentials:!0},{wbi:!0})},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}}class ua extends s.u{constructor(){super(...arguments),this.hb={timer:null,startTime:null,disabled:!1,nextRestart:!1,prevPlayType:null},this.realPlayedTime=0}
onMount(){super.onMount(),this.addEvents()}onPrepared(){super.onPrepared(),this.dp.vxStart=(0,r.gx)((()=>this.trackStore.state.vxStart),(()=>this.startReport()))}addEvents(){this.rootPlayer.on(a.p.MEDIA_PLAYING,(()=>{this.mediaStore.state.firstPlay&&(this.hb.nextRestart||this.heartbeat(3),this.hb.disabled=!1)})).on(a.p.MEDIA_PAUSE,(()=>{this.mediaStore.state.firstPlay&&(this.isPlaybackCompleted()||this.heartbeat(2),this.hb.disabled=!0)})).on(a.p.MEDIA_SEEKED,(()=>{this.hb.nextRestart&&(this.heartbeat(1),this.hb.nextRestart=!1)})).on(a.p.MEDIA_ENDED,(()=>{this.heartbeatEndedHandler()})),this.rootPlayer.on(a.p.PLAYER_UNLOAD,(()=>{(this.hb.disabled||this.mediaStore.state.paused)&&(this.timestamp=performance.now()),this.heartbeatQuitHandler()}))}startReport(){this.portStore.getRemoteNow().then((t=>{this.rootPlayer.hasFeature("noVTReport")||this.sendRealtime(t)}))}sendRealtime(t){this.hb.startTime=t,this.heartbeat(1),this.hb.timer=window.setInterval((()=>{this.hb.disabled||this.mediaStore.state.paused||this.heartbeat(0)}),15e3)}heartbeatEndedHandler(){this.isPlaybackCompleted()&&this.heartbeat(4)}heartbeatQuitHandler(){this.isPlaybackCompleted()||this.heartbeat(4)}shouldDisableHeartbeat(t){return 3===t?2!==this.hb.prevPlayType:(1===this.hb.prevPlayType||3===this.hb.prevPlayType)&&1===t}getPlayedTime(){return this.isPlaybackCompleted()?-1:this.patchAdvStore.hasValidAdv?Math.floor(this.mediaStore.video.currentTime):Math.floor(this.portStore.getCurrentTime())}isPlaybackCompleted(){return!this.mpdStore.state.suspectDuration&&(!!this.mediaStore.video.ended||!!this.mediaStore.video.duration&&this.portStore.getCurrentTime().toFixed(1)===this.portStore.getDuration().toFixed(1))}heartbeat(t){var e;const i=[l.u5.PC_APP,l.u5.Manager];if(this.configStore.isChannel(...i))return;if(!this.hb.startTime)return;if(this.shouldDisableHeartbeat(t))return;const n=this.getPlayedTime(),r=this.metricStore.getRelativePlayTime(),o=this.metricStore.getAllLanguageAbsolutePlayTime();switch(t){case 0:this.realPlayedTime+=15,this.timestamp=performance.now();break;case 1:case 2:case 3:this.timestamp=performance.now();break;case 4:this.realPlayedTime+=Math.floor((performance.now()-this.timestamp)/1e3)}if(0===r&&0===n&&4===t)return;const s=this.configStore,A=this.userStore.info,c={player_version:Ct.version,video_dye_id:(null==(e=this.mpdStore.body)?void 0:e.videoDyeId)||"",video_file_name:this.kernelStore.getPlayingFileName("video"),play_method:this.trackStore.reportPlayMethod,play_volume:this.trackStore.reportPlayVolume,auto_play:this.trackStore.reportAutoPlay},h={start_ts:this.hb.startTime,mid:A.mid,aid:s.aid,cid:s.cid,type:this.trackStore.getReportType(),sub_type:s.seasonType,dt:2,play_type:t,realtime:r,played_time:n,real_played_time:this.realPlayedTime,refer_url:s.referrer,bsource:s.bSource,quality:this.qualityStore.realQ||this.qualityStore.quality,is_auto_qn:this.qualityStore.isAutoQ?1:0,video_duration:Math.floor(this.mediaStore.state.duration),last_play_progress_time:Math.floor(this.mediaStore.state.currentTime),max_play_progress_time:Math.floor(this.metricStore.getMaxPlayTime()),outer:this.configStore.channelKind===l.u5.Embedded_Other?1:0,statistics:this.configStore.statisticsReport,mobi_app:"web",device:"web",platform:"web",cur_language_vt:JSON.stringify(o),perfer_type:JSON.stringify(this.metricStore.getAllLanguageAbsolutePlayTime(!1,!0)),play_mode:this.trackStore.reportPlayMode};h.mid||delete h.mid,h.aid||delete h.aid,s.seasonId&&(h.sid=s.seasonId),s.episodeId&&(h.epid=s.episodeId),null!=s.spmId&&(h.spmid=s.spmId),null!=s.spmIdFrom&&(h.from_spmid=s.spmIdFrom),null!=s.spmIdFromOuter&&(c.from_outer_spmid=s.spmIdFromOuter),s.session&&(h.session=s.session),null!=s.playlistId&&(h.playlist_id=s.playlistId),null!=s.playlistType&&(h.playlist_type=s.playlistType),null!=s.trackId&&(h.track_id=s.trackId),s.noVTHistory&&(h.no_history=1),this.mpdStore.previewType&&(c.inline_type=this.mpdStore.previewType),this.patchAdvStore.hasValidAdv&&(h.attached_avid=this.patchAdvStore.mainInfo.aid,h.attached_cid=this.patchAdvStore.mainInfo.cid,h.last_play_progress_time=Math.floor(this.portStore.getCurrentTime()),"PRE"===this.patchAdvStore.getPlayingType()?h.played_time=0:"POST"===this.patchAdvStore.getPlayingType()&&(h.played_time=-1),s.aid!==this.patchAdvStore.mainInfo.aid?h.type=3:h.type=this.trackStore.getReportType(),h.attached_type=this.trackStore.getReportType(),h.max_play_progress_time-h.last_play_progress_time<=2&&(h.last_play_progress_time=h.max_play_progress_time)),h.extra=JSON.stringify(c),4===t&&(this.hb.nextRestart=!0),this.rootPlayer.emit(a.p.PLAYER_HEARTBEAT),new da(this.rootPlayer,{persistent:!0,noStore:!0}).r(h,{w_start_ts:h.start_ts,w_mid:h.mid,w_aid:h.aid,w_dt:h.dt,w_realtime:h.realtime,w_played_time:h.played_time,w_real_played_time:h.real_played_time,w_video_duration:h.video_duration,w_last_play_progress_time:h.last_play_progress_time}).catch(et.Z),this.hb.prevPlayType=t}resetHeartbeat(){this.hb.timer&&(clearInterval(this.hb.timer),this.hb.timer=null),this.hb.startTime=null,this.hb.prevPlayType=null,this.hb.disabled=!1,this.hb.nextRestart=!1}onNavigate(){this.realPlayedTime=0,this.timestamp=null}onDispose(){super.onDispose(),this.resetHeartbeat()}}class pa extends At.eV{constructor(){super(...arguments),this.tag="HttpStatsClick",this.url="//api.bilibili.com/x/click-interface/click/web/h5"}r(t,e){return i=this,n=null,r=function*(){return this.request({url:this.url,method:"POST",params:e,data:t,withCredentials:!0},{wbi:!0})},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}}var ga=i(84433);class fa extends s.u{onPrepared(){super.onPrepared(),this.dp.vxStart=(0,r.gx)((()=>this.trackStore.state.vxStart),(()=>this.startReport()))}startReport(){this.portStore.getRemoteNow().then((t=>{if(this.configStore.isPcApp){const e=this.getClickParams(t);this.rootPlayer.emit(o.t.Player_Virtual_Action,new CustomEvent(o.t.Player_Virtual_Action,{detail:{kind:l.s.First_Playtime,data:e?e[0]:null}}))}this.configStore.isChannel(l.u5.Manager)||this.rootPlayer.hasFeature("noVVReport")||this.sendPoint(t)}))}sendPoint(t){new pa(this.rootPlayer,{persistent:!0,noStore:!0}).r(...this.getClickParams(t)).catch(et.Z),new ga.h(this.rootPlayer,{persistent:!0,noStore:!0}).r(this.getLogParams(t)).catch(et.Z)}getClickParams(t){var e;const i=this.configStore,n=this.userStore.info,r=null!=(e=n.level)?e:0,o=Math.floor(this.mediaStore.state.firstPlay/1e3),a={play_method:this.trackStore.reportPlayMethod,play_volume:this.trackStore.reportPlayVolume,auto_play:this.trackStore.reportAutoPlay},s={mid:n.mid,aid:i.aid,cid:i.cid,part:i.p,lv:r,ftime:o,stime:t,type:this.trackStore.getReportType(),sub_type:this.configStore.seasonType,refer_url:i.referrer,bsource:i.bSource,outer:this.configStore.channelKind===l.u5.Embedded_Other?1:0,statistics:this.configStore.statisticsReport,mobi_app:"web",device:"web",platform:"web",cur_language:this.translationStore.state.curLanguage,perfer_type:this.translationStore.transformTypeToString(this.translationStore.state.curLanguageType,""),play_mode:this.trackStore.reportPlayMode};this.mpdStore.previewType&&(a.inline_type=this.mpdStore.previewType),s.mid||delete s.mid,s.aid||delete s.aid,i.seasonId&&(s.sid=i.seasonId),i.episodeId&&(s.epid=i.episodeId),null!=i.spmId&&(s.spmid=i.spmId),null!=i.spmIdFrom&&(s.from_spmid=i.spmIdFrom),null!=i.spmIdFromOuter&&(a.from_outer_spmid=i.spmIdFromOuter),i.session&&(s.session=i.session),null!=i.playlistId&&(s.playlist_id=i.playlistId),null!=i.playlistType&&(s.playlist_type=i.playlistType),null!=i.trackId&&(s.track_id=i.trackId),this.patchAdvStore.hasValidAdv&&(s.attached_avid=this.patchAdvStore.mainInfo.aid,this.patchAdvStore.isPlayingPatch()?s.type=3:s.type=4),s.extra=JSON.stringify(a);return[s,{w_aid:s.aid,w_part:s.part,w_ftime:s.ftime,w_stime:s.stime,w_type:s.type}]}getLogParams(t){const e=1e3*t,i=encodeURIComponent(this.rootPlayer.parent.location.href),n=this.configStore,r=this.settingStore.state.loop?1:0,o=this.qualityStore.quality,a=[]
;return a.push("000024"+e+i,this.trackStore.getFid(),this.portStore.rid,n.aid,n.cid,n.p,o,r),a.join("|")}}class ma extends s.u{get defaultState(){return{status:null,stime:null,ctime:null}}get isEnd(){return 3===this.state.status||!(2!==this.state.status||!this.mediaStore.state.ended)}onMount(){super.onMount(),this.dc.state=(0,r.U5)((()=>({isLoaded:this.rootStore.isLoaded,ctime:this.state.ctime,stime:this.state.stime,status:this.state.status})),(({isLoaded:t,ctime:e,stime:i,status:n})=>{t&&(2===n?e-i&&this.portStore.seekAutoplay(e-i):3===n&&(!this.mediaStore.state.ended&&this.portStore.seek(this.mediaStore.state.duration),this.endingStore.open()))}),{fireImmediately:!0})}onDispose(){}}var ya=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,va=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ba(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&ya(e,i,o),o};class Ea extends s.f{constructor(t){super(t),this.delay=2e3,this.delayTimer=null,(0,r.rC)(this),this.init()}get isLoadingStart(){return!this.rootStore.episodeStore.state.isSameEpisode&&this.rootStore.isCommitted}get isLoadingEnded(){return this.rootStore.isLoaded}init(){const t=`${y.a_}-loading`,e=this.nodes.container;this.loadNode=e.querySelector(`.${y.m}-loading-panel`),this.textNode=e.querySelector(`.${y.m}-loading-panel-text`),this.blurNode=e.querySelector(`.${y.m}-loading-panel-blur`),this.dc.isCommitted=(0,r.EH)((()=>{this.isLoadingStart&&(this.createDelayTimer(),this.loadNode.classList.add(t))})),this.dc.isLoaded=(0,r.EH)((()=>{this.isLoadingEnded&&(this.clearDelayTimer(),this.loadNode.classList.remove(t))}))}createDelayTimer(){this.clearDelayTimer(),this.delayTimer=window.setTimeout((()=>{this.textNode&&(this.textNode.hidden=!1),this.blurNode&&(this.blurNode.hidden=!1)}),this.delay)}clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}onDispose(){super.onDispose(),this.clearDelayTimer(),this.textNode&&(this.textNode.hidden=!0),this.blurNode&&(this.blurNode.hidden=!0)}}va([r.Fl],Ea.prototype,"isLoadingStart",1),va([r.Fl],Ea.prototype,"isLoadingEnded",1);class Ia{constructor(t){this.rootStore=t;const e=t.rootPlayer,i=e.log.getLogger("EpochAtom");e.on(o.t.Player_Committed,(()=>i.i("onCommitted")),-1).on(o.t.Player_Prepared,(()=>i.i("onPrepared",JSON.stringify(t.portStore.getManifest()))),-1).on(o.t.Player_Initialized,(()=>i.i("onInitialized")),-1).on(a.p.PLAYER_LOADED,(t=>i.i("onLoaded",`err:${!!t.err},mid:${t.mid||null}`)),-1).on(a.p.PLAYER_UNLOAD,(()=>i.i("onUnload")),-1).on(a.p.PLAYER_UNLOADED,(()=>i.i("onUnloaded")),-1).on(o.t.Player_Dispose,(()=>i.i("onDispose")),-1)}}var Ca=i(8776),Ba=i.n(Ca);function wa(t){const e=Object.assign({width:null,height:null,aspectRatio:"16:9"},t),i=t=>"number"==typeof t&&isFinite(t)&&Math.floor(t)===t;if(!i(e.width)&&!i(e.height))throw new TypeError('One of "width" and "height" MUST be an integer');const n=e.aspectRatio.split(":"),r=+n[0],o=+n[1];if(!(r>0&&o>0))throw new Error('Invalid "aspectRatio" format');const a=r/o,s=!!e.width;e.width?e.height=Math.round(e.width/a):e.width=Math.round(e.height/(1/a));let l=e.width,A=e.height,c=e.width/e.height;return c>a&&(s?A+=1:l-=1),c<a&&(s?A-=1:l+=1),Math.abs(c-a)>Math.abs(l/A-a)&&(e.width=l,e.height=A),e}var xa=i(85727);var Qa=i(94780),Sa=i(464);const ka='Interrupted by "Player_Dispose" event',Da='Interrupted by "Player_Disconnect" event';var _a=i(28483),Ra=i(89783),Ma=i(34259),Ta=i(82889),Fa=i(28759),La=i(78814);function Na(){const t=w.X.msie.alike?`${y._j}-msie`:w.X.edge.alike?`${y._j}-edge`:w.X.safari.alike?`${y._j}-safari`:w.X.firefox.alike?`${y._j}-firefox`:null,e=e=>{const i=document.createElement("div");return i.setAttribute("data-injector","nano"),e.forEach((t=>i.classList.add(t))),t&&i.classList.add(t),i};return{majorNode:e([y.eG,`${y.eG}-major`]),minorNode:e([y.eG,`${y.eG}-minor`])}}var Pa=i(11973);var Ua=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,Ga=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Oa(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Ua(e,i,o),o},Ha=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Va{constructor(t,e){this.isEmbed=!1,this.isEmbedSOP=!1,this.isInitialized=!1,this.cd={__placeholder__:!0},this.primary={},this.input={},this.theme={},this.disabled={},this.httpRequests=new Set,this.httpCaches=new Map,this.connectDetails={starting:!1,finished:!1},this.connectDeferred=null,this.disposeDeferredSet=new Set,this.disconnectDeferredSet=new Set,(0,r.rC)(this),Object.assign(this.input,t),Object.assign(this.theme,e),this.isInitialized=!1,this.beforeEmitter=new Sa.EventEmitter,this.emitter=new Sa.EventEmitter,this.afterEmitter=new Sa.EventEmitter,this.beforeEmitter.setMaxListeners(0),this.emitter.setMaxListeners(0),this.afterEmitter.setMaxListeners(0),this.log=new ko,this.track=new Ro,this.track.getRealtimeReportInfo=this.makeRealtimeReportMethod(),this.window=window,this.isEmbed=window!==window.parent,this.cd=this.createPrefetchProxy(),this.primary=(0,Pa.i)(this.input),this.searchParam=function(t){const e=Object.create(null);if("string"!=typeof t)return e;const i="debug",n=Ba().parse(t,{ignoreQueryPrefix:!0,plainObjects:!0});return"1"!==n[i]||(Object.keys(n).forEach((t=>{const r=n[t];if(t!==i&&null!=r)switch(t){case"ctrl":case"fnval":case"autoplay":case"no_gpu":case"no_cache":e[t]=+r;break;case"t":case"ns":case"spm_id_from":e[t]=r}})),console.log("[DEBUG] Parsed QueryString:",e)),e}(this.window.location.search),this.checkFrameStatus(),this.preBuildNodes(),this.log.i("[EntryTiming]",JSON.stringify(Qa._g.entryLoadTime)),sa.Iy.markOnce(sa.rS.Instantiate),sa.Iy.measureOnce(sa.Z6.IndexHead_To_Instantiate,sa.rS.Index_Head,sa.rS.Instantiate),this.instantiate=performance.now()}emit(t,...e){try{this.beforeEmitter.emit("**",...e),this.emitter.emit("**",...e),this.afterEmitter.emit("**",...e);const i=this.beforeEmitter.emit(t,...e),n=this.emitter.emit(t,...e),r=this.afterEmitter.emit(t,...e);return i||n||r}catch(t){throw this.log.e("[EventEmitter]",t&&t.message,t&&t.stack),t}}on(t,e,i){switch(!0){case i<0:this.beforeEmitter.on(t,e);break;case i>0:this.afterEmitter.on(t,e);break;default:this.emitter.on(t,e)}return this}once(t,e,i){switch(!0){case i<0:this.beforeEmitter.once(t,e);break;case i>0:this.afterEmitter.once(t,e);break;default:this.emitter.once(t,e)}return this}off(t,e,i){switch(!0){case i<0:this.beforeEmitter.off(t,e);break;case i>0:this.afterEmitter.off(t,e);break;default:this.emitter.off(t,e)}return this}removeAllListeners(){return this.beforeEmitter.removeAllListeners(),this.emitter.removeAllListeners(),this.afterEmitter.removeAllListeners(),this}getDimension(){const t={width:0,height:0};if(this.rootStore)return t.width=this.uiStore.state.containerWidth,t.height=this.uiStore.state.containerHeight,t;if(this.nodes&&this.nodes.container){const e=this.nodes.container;return t.width=e.offsetWidth,t.height=e.offsetHeight,t}return t}preBuildNodes(){const t=this.iid=(0,zn.M)().toString(),e=Na(),i=e.majorNode,n=e.minorNode;i.setAttribute("data-iid",t),n.setAttribute("data-iid",t),this.majorNode=i,this.minorNode=n}attachTemplate(){var t;const e=this.nodes,i=this.majorNode,n=e.container,r=null!=(t=this.primary.channelKind)?t:l.u5.Default,o=new Map;o.set(null,{topWrap:this.hasFeature("noControlLayer"),controlWrap:this.hasFeature("noControlLayer"),sendingArea:this.hasFeature("noSendingBar")}).set(l.u5.Homepage,{sendingArea:!0,topWrap:!0,controlWrap:!0}).set(l.u5.Homepage_Topic,{sendingArea:!0}).set(l.u5.Creator,{sendingArea:!0}).set(l.u5.Gamecenter,{sendingArea:!0,topWrap:!0,controlBottomRight:!0}).set(l.u5.Mini_Site,{sendingArea:!0,topWrap:!0,controlBottomRight:!0}),o.forEach(((t,i)=>((t,i)=>{t!==r&&null!=t||i&&Object.keys(i).forEach((t=>{const n=e[t],r=i[t];n&&null!=r&&(n.hidden=!!r)}))})(i,t))),(this.hasFeature("noLayerShadow")||this.primary.hideBoxShadow)&&n.classList.add(`${y.a_}-disable-box-shadow`),i&&!n.parentElement&&i.appendChild(n)}detachTemplate(){const t=this.nodes.container;if(t){const e=t.parentElement;e&&e.removeChild(t)}}
attachBaseNode(){const t=this.primary.element,e=this.primary.auxiliary,i=this.majorNode,n=this.minorNode;t&&!i.parentElement&&(0,_a.h)(t,i),e&&!n.parentElement&&(0,_a.h)(e,n)}detachBaseNode(){const t=this.majorNode,e=this.minorNode;t&&t.parentElement&&t.parentElement.removeChild(t),e&&e.parentElement&&e.parentElement.removeChild(e)}checkFrameStatus(){try{this.parent=window.parent&&window.parent.document?window.parent:window}catch(t){this.parent=window}this.isEmbed&&(this.isEmbedSOP=this.window!==this.parent),this.log.i("[FrameStatus]",`isEmbed:${this.isEmbed},isEmbedSOP:${this.isEmbedSOP}`)}createPrefetchProxy(){const t=this.input.prefetch;return this.input.prefetch=null,t&&"object"==typeof t?t:(this.log.w("[PrefetchProxy]","Invalid"),{__placeholder__:!0})}onError(...t){console.error("[EventError]:","whoops! there was an error",...t)}onDispose(){this.disposeDeferredSet.size&&(this.disposeDeferredSet.forEach((t=>{t&&"function"==typeof t.reject&&t.reject(new Error(ka))})),this.disposeDeferredSet.clear()),this.httpCaches.size&&this.httpCaches.clear();const t=[];this.httpRequests.forEach((e=>{e.persistent||t.push(e)})),t.forEach((t=>{t&&"function"==typeof t.dispose&&t.dispose(At.eV.LIFECYCLE_TOKEN),this.httpRequests.delete(t)}))}onDisconnect(){this.disconnectDeferredSet.size&&(this.disconnectDeferredSet.forEach((t=>{t&&"function"==typeof t.reject&&t.reject(new Error(Da))})),this.disconnectDeferredSet.clear()),this.httpRequests.forEach((t=>{t&&"function"==typeof t.dispose&&t.dispose(At.eV.LIFECYCLE_TOKEN)})),this.httpRequests.clear()}snapshotError(t){t&&t.message&&this.log.e(t.message)}isDisposeErr(t){return t&&t.message===ka}isDisconnectErr(t){return t&&t.message===Da}addDispose(t){return this.disposeDeferredSet.add(t),t.promise.then((()=>this.disposeDeferredSet.delete(t))).catch(this.snapshotError),t.promise.catch((()=>this.disposeDeferredSet.delete(t))).catch(this.snapshotError),t}addDisconnect(t){return this.disconnectDeferredSet.add(t),t.promise.then((()=>this.disconnectDeferredSet.delete(t))).catch(this.snapshotError),t.promise.catch((()=>this.disconnectDeferredSet.delete(t))).catch(this.snapshotError),t}getRuntimeMetadata(){return{version:Ct.version,revision:Ct.revision,lastCompiled:Ct.lastCompiled,creationTime:(0,Ra.r)(),userAgent:navigator.userAgent,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,maxTouchPoints:navigator.maxTouchPoints,deviceMemory:navigator.deviceMemory,devicePixelRatio:window.devicePixelRatio,viewport:`width:${window.innerWidth},height:${window.innerHeight}`,screen:`width:${screen.width},height:${screen.height},colorDepth:${screen.colorDepth}`,gpu:`vendor:${he.g.vendor},renderer:${he.g.renderer}`,frameUrl:document.URL,referrer:document.referrer}}hasFeature(t){const e=this.primary.featureList;return(0,La.Z)(e)?e.has(t):!!Array.isArray(e)&&new Set(e).has(t)}getFormattedLogs(t){const e=this.rootStore,i=this.getRuntimeMetadata(),n=Object.keys(i).map((t=>`${t}: ${i[t]}`));let r;return e&&e.kernelStore&&!t&&(r=e.kernelStore.getHistoryLogs()),this.log.getFilteredLog({limit:t,header:n.join("\n"),footer:r})}downloadLogs(t=0){const e=(0,Ra.p)(null,"yyyyMMdd_hhmmss");(0,Ma.L)({text:this.getFormattedLogs(t),filename:`BilibiliPlayer_${e}.log`})}reportLog(){try{let t=Sr.x5.WEB_ERROR_LOG+"";(0,Fa.Dy)({appkey:"web_player",preload:{r:"upos",profile:"feedback/bup",name:"main.log"},taskType:t,file:this.getFormattedLogs(),user:{mid:this.userStore.mid+"",buvid:this.userStore.buvid}}).then((t=>{this.log.i("[upload_sucess]",JSON.stringify(t))})).catch((t=>{this.log.i("[upload_err]",JSON.stringify(t)),this.track.o("log_upload_err",{err:t})}))}catch(t){this.log.e("[reportLog_error]",t.message,t.stack)}}makeRealtimeReportMethod(){return()=>{if(!this.isInitialized)return null;if(!this.rootStore)return null;const t=this.rootStore,{qualityStore:e,trackStore:i,mediaStore:n,portStore:r,metricStore:o}=t,a=t.mediaStore.video,s=e.state.nowQuality,l=n.state.bufferedTime;return{absPlayTime:o.getAbsolutePlayTime(),relPlayTime:o.getRelativePlayTime(),bufferedTime:l,currentTime:a.currentTime,duration:a.duration,readyState:a.readyState,playbackRate:a.playbackRate,nowQ:s,realQ:e.realQ,realAQ:e.realAQ,srcUrl:r.getPlayUrl(),sourceType:i.getSourceType()}}}connect(){return Ha(this,null,(function*(){return this.connectDetails.starting?(yield this.connectDeferred.promise,yield(0,r.gx)((()=>this.connectDetails.finished))):(this.connectHead=performance.now(),sa.Iy.markOnce(sa.rS.Connect_Head),sa.Iy.measureOnce(sa.Z6.Instantiate_To_ConnectHead,sa.rS.Instantiate,sa.rS.Connect_Head),Qa.$W.add(this),(0,r.z)((()=>this.connectDetails.starting=!0)),this.connectDeferred=new It.B,this.beforeEmitter.on("error",this.onError),this.afterEmitter.on("error",this.onError),this.emitter.on("error",this.onError),this.on(o.t.Player_Dispose,this.onDispose),this.on(o.t.Player_Disconnect,this.onDisconnect),this.nodes||(this.nodes=function(t){
const e=`\n        <div class="${t}-container">\n            <div class="${t}-primary-area" aria-label="哔哩哔哩播放器">\n                <div class="${t}-video-area">\n                    <div class="${t}-video-perch">\n                        <div class="${t}-video-wrap"></div>\n                    </div>\n                    <div class="${t}-video-poster" hidden></div>\n                    <div class="${t}-visual-wrap">\n                        <div class="${t}-visual-pixel"></div>\n                    </div>\n                    <div class ="${t}-new-dialogue-area"></div>\n                    <div class="${t}-render-dm-wrap">\n                        <div class="${t}-dm-svg-mask-wrap" style="opacity: 0;visibility:hidden;"></div>\n                        <div class="${t}-dm-mask-wrap">\n                            <div class="${t}-adv-dm-wrap"></div>\n                             <div class="${t}-row-dm-wrap"></div>\n                        </div>\n                        <div class="${t}-bas-dm-wrap"></div>\n                        <div class="${t}-cmd-dm-wrap">\n                            <div class="${t}-cmd-dm-inside"></div>\n                        </div>\n                    </div>\n\n                    <div class="${t}-ending-wrap" data-select="0">\n                        <div class="${t}-ending-backdrop" data-option="0"></div>\n                        <div class="${t}-ending-panel" data-option="1"></div>\n                        <div class="${t}-share-panel" data-option="2"></div>\n                    </div>\n                    <div class="${t}-subtitle-wrap"></div>\n                    <div class="${t}-top-wrap">\n                        <div class="${t}-top-mask" hidden></div>\n                        <div class="${t}-top-title"></div>\n                        <div class="${t}-top-follow"></div>\n                        <div class="${t}-top-left">\n                            <div class="${t}-top-left-title"></div>\n                            <div class="${t}-top-left-follow"></div>\n                            <div class="${t}-top-left-music"></div>\n                            <div class="${t}-top-left-panorama"></div>\n                        </div>\n                        <div class="${t}-top-issue">\n                            <span class="${t}-top-issue-icon"></span>\n                        </div>\n                    </div>\n                    <div class="${t}-state-wrap">\n                        <div class="${t}-state-play"></div>\n                        <div class="${t}-state-buff-icon"></div>\n                        <div class="${t}-state-buff-text">\n                            <span class="${t}-state-buff-title">正在缓冲...</span>\n                            <span class="${t}-state-buff-speed"></span>\n                        </div>\n                    </div>\n                    <div class="${t}-loading-panel">\n                        <div class="${t}-loading-panel-text" hidden></div>\n                        <div class="${t}-loading-panel-blur" hidden>\n                            <div class="${t}-loading-panel-blur-detail"></div>\n                        </div>\n                    </div>\n                    <div class="${t}-toast-wrap">\n                        <div class="${t}-toast-auto"></div>\n                        <div class="${t}-toast-fixed"></div>\n                    </div>\n                    <div class ="${t}-summary-wrap"></div>\n                    <div class="${t}-control-wrap">\n                        <div class="${t}-control-mask"></div>\n                        <div class="${t}-control-entity">\n                            <div class="${t}-control-top"></div>\n                            <div class="${t}-control-bottom">\n                                <div class="${t}-control-bottom-left"></div>\n                                <div class="${t}-control-bottom-center"></div>\n                                <div class="${t}-control-bottom-right"></div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="${t}-dialog-wrap"></div>\n                    <div class="${t}-music-wrap"></div>\n                    <div class="${t}-business-wrap business-hide"></div>\n                    <div class="${t}-dm-report-wrap"></div>\n                </div>\n                <div class="${t}-sending-area">\n                    <div class="${t}-sending-bar">\n                        <div class="${t}-sending-bar-left"></div>\n                        <div class="${t}-sending-bar-right"></div>\n                    </div>\n                </div>\n            </div>\n            <div class="${t}-dialog-area"></div>\n            <div class="${t}-tooltip-area"></div>\n            <div class="${t}-context-area"></div>\n        </div>`,i=(0,De.t)(e),n=`<div class ="${t}-ctrl-quality-bubble"></div>`,r=(0,De.t)(n);return{container:i,videoArea:i.querySelector(`.${t}-video-area`),sendingArea:i.querySelector(`.${t}-sending-area`),dialogArea:i.querySelector(`.${t}-dialog-area`),tooltipArea:i.querySelector(`.${t}-tooltip-area`),contextArea:i.querySelector(`.${t}-context-area`),danmakuArea:i.querySelector(`.${t}-render-dm-wrap`),videoPerch:i.querySelector(`.${t}-video-perch`),videoPoster:i.querySelector(`.${t}-video-poster`),videoWrap:i.querySelector(`.${t}-video-wrap`),rowDanmaku:i.querySelector(`.${t}-row-dm-wrap`),advDanmaku:i.querySelector(`.${t}-adv-dm-wrap`),basDanmaku:i.querySelector(`.${t}-bas-dm-wrap`),cmdDanmaku:i.querySelector(`.${t}-cmd-dm-wrap`),cmdInside:i.querySelector(`.${t}-cmd-dm-inside`),endingWrap:i.querySelector(`.${t}-ending-wrap`),endingPanel:i.querySelector(`.${t}-ending-panel`),sharePanel:i.querySelector(`.${t}-share-panel`),subtitleWrap:i.querySelector(`.${t}-subtitle-wrap`),topWrap:i.querySelector(`.${t}-top-wrap`),stateWrap:i.querySelector(`.${t}-state-wrap`),loadingPanel:i.querySelector(`.${t}-loading-panel`),toastWrap:i.querySelector(`.${t}-toast-wrap`),controlWrap:i.querySelector(`.${t}-control-wrap`),dialogWrap:i.querySelector(`.${t}-dialog-wrap`),sendingBar:i.querySelector(`.${t}-sending-bar`),musicWrap:i.querySelector(`.${t}-music-wrap`),businessWrap:i.querySelector(`.${t}-business-wrap`),summaryWrap:i.querySelector(`.${t}-summary-wrap`),controlEntity:i.querySelector(`.${t}-control-entity`),controlTop:i.querySelector(`.${t}-control-top`),controlBottomCenter:i.querySelector(`.${t}-control-bottom-center`),controlBottomLeft:i.querySelector(`.${t}-control-bottom-left`),controlBottomRight:i.querySelector(`.${t}-control-bottom-right`),topTitle:i.querySelector(`.${t}-top-title`),topFollow:i.querySelector(`.${t}-top-follow`),topLeftTitle:i.querySelector(`.${t}-top-left-title`),topLeftFollow:i.querySelector(`.${t}-top-left-follow`),topLeftMusic:i.querySelector(`.${t}-top-left-music`),topLeftPanoram:i.querySelector(`.${t}-top-left-panorama`),buffIcon:i.querySelector(`.${t}-state-buff-icon`),buffSpeed:i.querySelector(`.${t}-state-buff-speed`),toastAuto:i.querySelector(`.${t}-toast-auto`),toastFixed:i.querySelector(`.${t}-toast-fixed`),bubble:r,dmSvgMaskWrap:i.querySelector(`.${t}-dm-svg-mask-wrap`),dmMaskWrap:i.querySelector(`.${t}-dm-mask-wrap`),dmReportWrap:i.querySelector(`.${t}-dm-report-wrap`),newDialogueArea:i.querySelector(`.${t}-new-dialogue-area`)}}(y.m),this.primary.pcSpecialMode&&(this.nodes.videoArea.parentNode.append(this.nodes.controlWrap),this.nodes.container.classList.add(`${y.m}-container-pc-special`))),this.attachTemplate(),this.attachBaseNode(),this.rootStore=new Ls(this),this.rootStore.decomposeSubStores(this),(0,Ta.M)(window.__NanoGlobalTheme),sa.Iy.markOnce(sa.rS.Store_Tail),sa.Iy.measureOnce(sa.Z6.ConnectHead_To_StoreTail,sa.rS.Connect_Head,sa.rS.Store_Tail),this.storeTail=performance.now(),yield this.connectDeferred.promise,this.isInitialized=!0,this.emit(o.t.Player_Connected,new CustomEvent(o.t.Player_Connected)),(0,r.z)((()=>this.connectDetails.finished=!0)),sa.Iy.markOnce(sa.rS.Connect_Tail),sa.Iy.measureOnce(sa.Z6.ConnectHead_To_ConnectTail,sa.rS.Connect_Head,sa.rS.Connect_Tail),this.connectTail=performance.now()),!this.rootStore.errorStore.state.initError}))}disconnect(){
return Ha(this,null,(function*(){this.connectDetails.starting?((0,r.z)((()=>this.connectDetails.finished=!1)),this.connectDeferred&&(this.connectDeferred.reject(new Error('Interrupted by "Player.disconnect()" action')),this.connectDeferred=null),this.emit(a.p.PLAYER_UNLOAD),this.emit(a.p.PLAYER_UNLOADED),this.emit(o.t.Player_Dispose,new CustomEvent(o.t.Player_Dispose)),this.rootStore&&this.rootStore.disconnect(),this.emit(o.t.Player_Disconnect,new CustomEvent(o.t.Player_Disconnect)),this.isInitialized=!1,this.detachBaseNode(),this.detachTemplate(),this.removeAllListeners(),this.log.clear(),this.track.clear(),this.nodes=null,(0,r.z)((()=>this.connectDetails.starting=!1)),Qa.$W.delete(this)):yield(0,r.gx)((()=>!this.connectDetails.starting))}))}}Ga([r.LO],Va.prototype,"connectDetails",2),Ga([n.ZP],Va.prototype,"onError",1),Ga([n.ZP],Va.prototype,"onDispose",1),Ga([n.ZP],Va.prototype,"onDisconnect",1),Ga([n.ZP],Va.prototype,"snapshotError",1);const Ya=(...t)=>Object.assign({},...t,{origin:A.bt.Foreign});const za=[function(t){return{__core(){return t.kernelStore.dashKernel||t.kernelStore.flvKernel},__getUserParams(){return t.portStore.getUserParams()}}},function(t){return{setDanmakuSetting(e){t.dmSettingStore.setLocal(e)},setSegmented(e){t.hotspotStore.setSegmented(e)},setAIPoints(e){t.hotspotStore.setAIPoints(e)},addViewPoints(e){t.hotspotStore.addViewPoints(e)},editorCenter(e){return t.dmCmdStore.editorCenter(e)},addSubtitle(e){return t.subtitleStore.addSubtitle(e)},removeVideoBuffer(){return t.kernelStore.removeVideoBuffer()},recreateVideoBuffer(){return t.kernelStore.recreateVideoBuffer()},disableVideo(e){const i=t.kernelStore.baseAgent;i&&i.disableVideo(e)},enableVideo(e){const i=t.kernelStore.baseAgent;i&&i.enableVideo(e)}}},function(t){return{emit(e,...i){if("string"==typeof e&&/[A-Z]/.test(e))return console.error('The external "type" cannot contain uppercase letter');t.emit(e,...i)},on(e,i){return t.on(e,i),this},off(e,i){return t.off(e,i),this},once(e,i){return t.once(e,i),this},isInitialized(){return t.isInitialized},connect(){return t.connect()},disconnect(){return t.disconnect()}}},function(t){return{downloadLogs(){return t.downloadLogs()},getFormattedLogs(e=500){return t.getFormattedLogs(e)},reportLog(){return t.reportLog()},toggleFeature(e){Object.assign(t.disabled,e)}}},function(t){return{isEnded(){return t.portStore.isEnded(!1)},isPaused(){return t.portStore.isPaused()},isSeeking(){return t.portStore.isSeeking()},isMuted(){return t.portStore.isMuted()}}},function(t){return{mediaElement(){return t.mediaStore.video},canPlayType(e){return t.portStore.canPlayType(e)},getQuality(){return t.qualityStore.getQuality()},getCurrentTime(){return t.portStore.getCurrentTime()},getDuration(e){return t.portStore.getDuration(e)}}},function(t){return{getMediaInfo(){return t.portStore.getMediaInfo()},getUserInfo(){return t.portStore.getUserInfo()}}},function(t){return{getElements(){return t.portStore.getElements()},getStates(){return t.portStore.getStates()},getManifest(){return t.portStore.getManifest()},getSession(){return t.configStore.session},getSupportedQualityList(e){return t.portStore.getSupportedQualityList(e)}}},function(t){return{setLoop(e){return t.settingStore.setLoop(e,Ya())},getLoop(){return t.settingStore.getLoop()},setMuted(e,i){return t.settingStore.setMuted(e,i,Ya())},getMuted(){return t.settingStore.getMuted()},setVolume(e){return t.settingStore.setVolume(e,Ya())},getVolume(){return t.settingStore.getVolume()},setPlaybackRate(e){return t.settingStore.setPlaybackRate(e,Ya())},getPlaybackRate(){return t.settingStore.getPlaybackRate()},setMirror(e){return t.settingStore.setMirror(e,Ya())},getMirror(){return t.settingStore.getMirror()},setAspectRatio(e){return t.settingStore.setAspectRatio(e,Ya())},getAspectRatio(){return t.settingStore.getAspectRatio()},setLightOff(e){return t.settingStore.setLightOff(e,Ya())},getLightOff(){return t.settingStore.getLightOff()},setBlackGap(e){return t.settingStore.setBlackGap(e,Ya())},getBlackGap(){return t.settingStore.getBlackGap()},setAutoplay(e){return t.settingStore.setAutoplay(e,Ya())},getAutoplay(){return t.settingStore.getAutoplay()},setHandoff(e){return t.settingStore.setHandoff(e,Ya())},getHandoff(){return t.settingStore.getHandoff()},setPreferCodec(e){return t.settingStore.setPreferCodec(e)},getPreferCodec(){return t.settingStore.getPreferCodec()},setOpEd(e){return t.settingStore.setOpEd(e,Ya())},getOpEd(){return t.settingStore.getOpEd()},setVipQuality(){t.emit(o.t.Player_Vip_Qulaity_Trial,new CustomEvent(o.t.Player_Vip_Qulaity_Trial))},postVipBadfeeback(){t.emit(o.t.Player_Vip_Qulaity_Trial_End,new CustomEvent(o.t.Player_Vip_Qulaity_Trial_End))},toggleQualityToastLock(){t.portStore.toggleQualityToastLock()}}},function(t){return{play(e){return t.portStore.play(Ya(e))},pause(e){return t.portStore.pause(Ya(e))},seek(e,i){return t.portStore.seek(e,Ya(i))},reload(e){return t.episodeStore.reload(e,null,Ya())},goto(e,i,n){return t.episodeStore.goto(e,i,n,Ya())},prev(e){return t.episodeStore.prev(e,Ya())},next(e){return t.episodeStore.next(e,Ya())},requestStatue(e,i){return t.statueStore.requestStatue(e,i,Ya())},requestQuality(e,i){return t.qualityStore.requestQuality(e,i,Ya())},requestAutoplay(e){return t.mediaStore.startFirstPlay(!0,e)},fetch(e){return t.portStore.fetch(e)},reloadAccess(){return t.userStore.reloadAccess(Ya())}}},function(t){return{toast:{create(e,i){return t.toastStore.create(e,i)},update(e,i){return t.toastStore.update(e,i)},remove(e){return t.toastStore.remove(e)},resumeClock(e){return t.toastStore.resumeClock(e)},suspendClock(e){return t.toastStore.suspendClock(e)},getActions(){return t.toastStore.getActions()}}}},function(t){return{tooltip:{create(e){return t.tooltipStore.create(e)},update(e,i){return t.tooltipStore.update(e,i)},remove(e){return t.tooltipStore.remove(e)}}}},function(t){return{hotspot:{set(e){return t.hotspotStore.set(e)},get(e){return t.hotspotStore.get(e)}}}},function(t){return{danmaku:{open(){return t.dmSettingStore.setState({dmSwitchOut:!0,dmSwitch:!0})},close(){return t.dmSettingStore.setState({dmSwitchOut:!1,dmSwitch:!1})},isOpen(){return t.sendStore.dmVisible},isDisabled(){return!!t.danmakuStore.state.state},send(e,i){return t.sendStore.setState({outSendMsg:{msg:e,fromPremiere:i}})},getDanmakuX(){return t.danmakuStore.danmakuX}}}},function(t){return{sharePanel:{open(e){return t.shareStore.open(e)},close(){return t.shareStore.close()},isOpen(){return t.shareStore.state.opened}}}},function(t){return{endPanel:{open(){return t.endingStore.open()},close(){return t.endingStore.close()},isOpen(){return t.endingStore.state.opened}}}},function(t){return{interaction:{restart(){return t.interactStore.restart()},timeline(){return t.interactStore.timeline()},isComplete(){return t.interactStore.isComplete()},jump(e){return t.interactStore.jump(e)}}}},function(t){return{auxiliary:{openTabList(){return t.auxStore.setState({isListSpread:!0})},closeTabList(){return t.auxStore.setState({isListSpread:!1})},isTabListOpen(){return t.auxStore.state.isListSpread},enableUserSwitching(){return t.auxStore.setState({disableListSwitch:!1})},disableUserSwitching(){return t.auxStore.setState({disableListSwitch:!0})},isUserSwitchingDisabled(){return t.auxStore.state.disableListSwitch}}}},function(t){return{subtitle:{willShowBubble(){var e,i;return null!=(i=null==(e=t.subtitleStore)?void 0:e.getPgcBubble())?i:null},downloadLog(e){var i;null==(i=t.subtitleStore)||i.downloadSubtitleLog(e)},setDebugMode(e){var i;null==(i=t.subtitleStore)||i.setDebugMode(e)}}}},function(t){return{track:{requestAudioId(e){return t.kernelStore.requestAudioTrack(e)},getAudioId(){return t.kernelStore.getAudioTrackId()},getAudioList(){return t.kernelStore.getAudioTrackList()}}}},function(t){return{setState(e){return t.portStore.attachExtState(e)},readFrameAsBlob(e){return t.portStore.readFrameAsBlob(e)},readFrameAsDataURL(e){return t.portStore.readFrameAsDataURL(e)},getStageTiming(){return t.rootStore.stageAtom.getTiming()},updateRequestConfig(e){return t.configStore.updateRequestConfig(e)}}},function(t){return{hasValidAdv(){return t.portStore.hasValidAdv()},getAdvTotalDuration(e){
return t.portStore.getAdvTotalDuration(e)}}}];class Wa{constructor(t){this.prefix="bpx-legacy-browser",this.config=Object.assign({promptImageUrl:"//s1.hdslb.com/bfs/static/player/img/h5.png",promptTextList:["您当前的浏览器不支持 HTML5 播放器","请更换浏览器再试试哦~"]},t),this.container=this.config.container,this.container.innerHTML=this.template()}template(){const t=[];if(Array.isArray(this.config.promptTextList))for(const e of this.config.promptTextList)t.push(`<p class="${this.prefix}-text">${e}</p>`);return`\n            <div class="${this.prefix}-container">\n                <img class="${this.prefix}-image" src="${this.config.promptImageUrl}" alt="Legacy Browser">\n                ${t.join("")}\n            </div>\n        `}dispose(){const t=this.container.querySelector(`.${this.prefix}-container`);t&&t.parentElement&&t.parentElement.removeChild(t)}}var Za=Object.defineProperty,ja=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,Ka=(t,e,i)=>e in t?Za(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Xa=(t,e)=>{for(var i in e||(e={}))qa.call(e,i)&&Ka(t,i,e[i]);if(ja)for(var i of ja(e))Ja.call(e,i)&&Ka(t,i,e[i]);return t};class $a{constructor(){window[y.bw]&&window[y.bw].injector===this.injector?console.error(`The "${y.bw}" namespace already exist`):window[y.bw]=this}get injector(){return y.bw}get metadata(){return Object.assign(Object.create(null),Ct)}get cookies(){return nt}get EventType(){return Xa({},o.t)}get GroupKind(){return Xa({},l.HR)}get ScreenKind(){return Xa({},l.dY)}get FetcherKind(){return Xa({},l.qW)}get HandoffKind(){return Xa({},l.ty)}get ChannelKind(){return Xa({},l.u5)}get InternalKind(){return Xa({},l.s)}get HDRSupportStatus(){return St().isHEVCHDR10TypeSupported()}get DolbyVisionSupportStatus(){return St().isHEVCDolbyVisionTypeSupported()}get guid(){return zn.M}get prefetch(){return Po}get aspectRatio(){return wa}createPlayer(t,e){if(!(0,Vr.Z)(t))throw new Error("1 argument required and MUST be a plain object");return function(t='video/mp4; codecs="avc1.42001E, mp4a.40.2"'){const e="[canPlayType]:"+t;if(xa.x.has(e))return xa.x.get(e);const i=navigator.userAgent.toLowerCase(),n=!(/msie [\w.]+/.exec(i)||/Trident/i.test(i)&&/Windows NT 6/.test(i)||!window.URL);if(n){const e=document.createElement("video");if(e&&e.canPlayType)return!!e.canPlayType(t)}return xa.x.set(e,n),n}()?function(t){const e=za.map((e=>e(t))),i=Object.assign({},...e);return t.api=i,i}(new Va(t,e)):(t.element&&new Wa({container:t.element}),null)}searchParams(t=window.location.search){return Ba().parse(t,{ignoreQueryPrefix:!0,plainObjects:!0})}valueOf(){return[...Qa.$W]}}var ts=Object.defineProperty,es=Object.getOwnPropertyDescriptor,is=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?es(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&ts(e,i,o),o};class ns extends s.f{constructor(t){super(t),this.tag="[HelperAtom]",this.helpers=new Map,this.isReOk=!1,this.helperState={0:!1,1:!1,2:!1,3:!1,4:!1,5:!1,6:!1,7:!1,8:!1,9:!1,10:!1,11:!1},(0,r.rC)(this),this.init()}get canRequest(){return this.rootStore.isLoadEnded}setHelper(t,e){this.helperState[t]=e}init(){const t=this.rootStore.configStore;t.isChannel(l.u5.Homepage)||t.isChannel(l.u5.Homepage_Topic)?this.fetchHelpers():this.dc.fetchHelpers=(0,r.gx)((()=>this.canRequest),(()=>this.fetchHelpers()))}buildHelper(t){this.dc[t]&&this.log.e(`E:Helper(${t}) is repeatedly initialized`),this.dc[t]=(0,r.gx)((()=>this.isReOk&&this.rootStore.isLoadEnded&&this.helperState[t]),(()=>{const e=this.helpers.get(t);e?new e(this.rootStore).install():this.log.w(`Helper(${t}) not found`)}))}buildRootExtra(){Promise.resolve().then(i.bind(i,39578)).then((t=>{new t.RootExtra(this.rootStore),(0,r.z)((()=>this.isReOk=!0))})).catch((t=>{this.log.e("root_extra",t&&t.message)}))}fetchHelpers(){this.buildRootExtra();const{configStore:t,uiStore:e}=this.rootStore,i=(t,e)=>{this.helpers.set(t,e),this.setHelper(t,!0)},n=(t,e)=>{this.log.e(t,e&&e.message)},r=()=>{$a.getCommunityHelper().then((t=>i(2,t.CommunityHelper))).catch((t=>n("community_helper",t)))};if(this.buildHelper(0),$a.getCommonHelper().then((t=>i(0,t.CommonHelper))).catch((t=>n("common_helper",t))),t.isChannel(l.u5.Homepage)||t.isChannel(l.u5.Homepage_Topic))return this.buildHelper(5),void $a.getHomepageHelper().then((t=>i(5,t.HomepageHelper))).catch((t=>n("homepage_helper",t)));if(t.isChannel(l.u5.PC_APP))return this.buildHelper(9),void $a.getPCAppHelper().then((t=>i(9,t.PCHelper))).catch((t=>n("pc_app_helper",t)));if(t.isChannel(l.u5.Manager))return this.buildHelper(8),void $a.getManagerHelper().then((t=>i(8,t.ManagerHelper))).catch((t=>n("manager_helper",t)));if(t.isCreator())return this.buildHelper(6),void $a.getCreatorHelper().then((t=>i(6,t.CreatorHelper))).catch((t=>n("creator_helper",t)));if(t.isChannel(l.u5.Embedded)||t.isChannel(l.u5.Embedded_White)||t.isChannel(l.u5.Embedded_Other))return this.buildHelper(7),void $a.getEmbeddedHelper().then((t=>i(7,t.EmbeddedHelper))).catch((t=>n("embedded_helper",t)));if(t.isChannel(l.u5.Gamecenter))return this.buildHelper(10),void $a.getGamecenterHelper().then((t=>i(10,t.GamecenterHelper))).catch((t=>n("gamecenter_helper",t)));if(t.isChannel(l.u5.Mini_Site))return this.buildHelper(11),void $a.getMiniSiteHelper().then((t=>i(11,t.MiniSiteHelper))).catch((t=>n("mini_site_helper",t)));if(t.isChannel(l.u5.Playlist))this.buildHelper(2),r();else switch(e.kind){case l.HR.Pgc:this.buildHelper(1),$a.getBangumiHelper().then((t=>i(1,t.BangumiHelper))).catch((t=>n("bangumi_helper",t)));break;case l.HR.Pugv:this.buildHelper(3),$a.getClassroomHelper().then((t=>i(3,t.ClassroomHelper))).catch((t=>n("classroom_helper",t)));break;case l.HR.Ugc:default:this.buildHelper(2),r()}t.auxiliary&&(this.buildHelper(4),$a.getAuxiliaryHelper().then((t=>i(4,t.AuxiliaryHelper))).catch((t=>n("auxiliary_helper",t))))}}is([r.LO],ns.prototype,"isReOk",2),is([r.LO],ns.prototype,"helperState",2),is([r.Fl],ns.prototype,"canRequest",1),is([r.aD],ns.prototype,"setHelper",1);class rs extends s.f{constructor(){super(...arguments),this.loopTimer=null,this.referer={iSeek:null,iPlay:null,iPause:null}}get iSeekOnce(){const t=this.referer.iSeek;return this.referer.iSeek=null,t}get iPlayOnce(){const t=this.referer.iPlay;return this.referer.iPlay=null,t}get iPauseOnce(){const t=this.referer.iPause;return this.referer.iPause=null,t}setActionCaller(t,e){this.referer[t]=e}addEvents(){this.addReactions(),this.addProxyEvent(),this.addCanceledEvent(),this.addTrackEvent()}addProxyEvent(){const{mediaStore:t}=this.rootStore;this.rootPlayer.on(a.p.MEDIA_ENDED,(()=>this.mediaEndedHandler())),this.rootPlayer.on(a.p.PATCH_ADV_PLAY_ENDED,(()=>this.patchEndedHandler())),this.rootPlayer.on(a.p.MEDIA_PLAY,(()=>{t.setState({paused:t.video.paused}),this.rootPlayer.emit(o.t.Player_Play,new CustomEvent(o.t.Player_Play,{detail:{initiator:this.iPlayOnce}}))})).on(a.p.MEDIA_PAUSE,(()=>{t.setState({paused:t.video.paused}),this.rootPlayer.emit(o.t.Player_Pause,new CustomEvent(o.t.Player_Pause,{detail:{initiator:this.iPauseOnce}}))})),this.rootPlayer.on(a.p.MEDIA_PLAYING,(()=>{this.rootPlayer.emit(o.t.Player_Playing,new CustomEvent(o.t.Player_Playing))})).on(a.p.MEDIA_WAITING,(()=>{this.rootPlayer.emit(o.t.Player_Waiting,new CustomEvent(o.t.Player_Waiting))})),this.rootPlayer.on(a.p.MEDIA_SEEKING,(()=>{this.rootPlayer.emit(o.t.Player_Seeking,new CustomEvent(o.t.Player_Seeking,{detail:{initiator:this.referer.iSeek}}))})).on(a.p.MEDIA_SEEKED,(()=>{this.rootPlayer.emit(o.t.Player_Seeked,new CustomEvent(o.t.Player_Seeked,{detail:{initiator:this.iSeekOnce}}))})),this.rootPlayer.on(a.p.MEDIA_TIMEUPDATE,(()=>{this.rootPlayer.emit(o.t.Player_TimeUpdate,new CustomEvent(o.t.Player_TimeUpdate))})).on(a.p.MEDIA_DURATIONCHANGE,(()=>{this.rootPlayer.emit(o.t.Player_DurationChange,new CustomEvent(o.t.Player_DurationChange))})),this.rootPlayer.on(a.p.MEDIA_LOADEDMETADATA,(()=>{this.rootPlayer.emit(o.t.Player_LoadedMetadata,new CustomEvent(o.t.Player_LoadedMetadata))})).on(a.p.MEDIA_CANPLAY,(()=>{this.rootPlayer.emit(o.t.Player_Canplay,new CustomEvent(o.t.Player_Canplay))})).on(a.p.MEDIA_PROGRESS,(()=>{
this.rootPlayer.emit(o.t.Player_Progress,new CustomEvent(o.t.Player_Progress))})).on(a.p.MEDIA_RATECHANGE,(()=>{this.rootPlayer.emit(o.t.Player_RateChange,new CustomEvent(o.t.Player_RateChange))})).on(a.p.MEDIA_VOLUMECHANGE,(()=>{this.rootPlayer.emit(o.t.Player_VolumeChange,new CustomEvent(o.t.Player_VolumeChange))})).on(a.p.MEDIA_ERROR,(()=>{this.rootPlayer.emit(o.t.Player_Error,new CustomEvent(o.t.Player_Error))})),this.rootPlayer.on(a.p.MEDIA_LOADSTART,(()=>{this.rootPlayer.emit(o.t.Player_LoadStart,new CustomEvent(o.t.Player_LoadStart))})).on(a.p.MEDIA_LOADEDDATA,(()=>{this.rootPlayer.emit(o.t.Player_LoadedData,new CustomEvent(o.t.Player_LoadedData))})).on(a.p.MEDIA_STALLED,(()=>{this.rootPlayer.emit(o.t.Player_Stalled,new CustomEvent(o.t.Player_Stalled))})).on(a.p.MEDIA_SUSPEND,(()=>{this.rootPlayer.emit(o.t.Player_Suspend,new CustomEvent(o.t.Player_Suspend))})).on(a.p.MEDIA_ABORT,(()=>{this.rootPlayer.emit(o.t.Player_Abort,new CustomEvent(o.t.Player_Abort))})).on(a.p.MEDIA_EMPTIED,(()=>{this.rootPlayer.emit(o.t.Player_Emptied,new CustomEvent(o.t.Player_Emptied))}))}patchEndedHandler(){const{patchAdvStore:t}=this.rootStore;t.setState({index:t.state.index+1}),t.patchSwitch()}mediaEndedHandler(){const{mediaStore:t,settingStore:e,userStore:i}=this.rootStore,n=t.state.paused,r=t.state.ended;e.state.loop&&!i.isCharingTrialWatch?(t.setState({ended:!1}),n||this.rootPlayer.emit(o.t.Player_TimeUpdate,new CustomEvent(o.t.Player_TimeUpdate)),this.rootPlayer.emit(o.t.Player_Loop_Signal,new CustomEvent(o.t.Player_Loop_Signal,{cancelable:!0}))):(t.setState({paused:!0,ended:!0}),n||(this.rootPlayer.emit(o.t.Player_TimeUpdate,new CustomEvent(o.t.Player_TimeUpdate)),this.rootPlayer.emit(o.t.Player_Pause,new CustomEvent(o.t.Player_Pause))),r||this.rootPlayer.emit(o.t.Player_Ended,new CustomEvent(o.t.Player_Ended)))}addReactions(){this.dc.committed=(0,r.U5)((()=>this.rootStore.isCommitted),(t=>{t&&this.rootPlayer.emit(o.t.Player_Committed,new CustomEvent(o.t.Player_Committed))}),{fireImmediately:!0}),this.dc.prepared=(0,r.U5)((()=>this.rootStore.isPrepared),(t=>{t&&this.rootPlayer.emit(o.t.Player_Prepared,new CustomEvent(o.t.Player_Prepared))}),{fireImmediately:!0}),this.dc.initialized=(0,r.U5)((()=>this.rootStore.isLoaded),(t=>{t&&(this.rootPlayer.emit(o.t.Player_Initialized,new CustomEvent(o.t.Player_Initialized)),this.rootPlayer.connectDeferred&&this.rootPlayer.connectDeferred.isPending&&this.rootPlayer.connectDeferred.resolve())}),{fireImmediately:!0})}addCanceledEvent(){this.rootPlayer.on(o.t.Player_Loop_Signal,(t=>{t.defaultPrevented||(this.loopTimer=window.setTimeout((()=>{this.rootStore.portStore.seekAutoplay(0,"Loop")}),1))}),1)}addTrackEvent(){this.rootPlayer.on(o.t.Player_Initialized,(()=>{const{errorStore:t,episodeStore:e,uiStore:i,mpdStore:n}=this.rootStore;this.track.o(x.w.O_Enter,{drm:n.drmTechType||0,dpr:window.devicePixelRatio||NaN,screenW:screen.width,screenH:screen.height,colorDepth:screen.colorDepth,webdriver:+navigator.webdriver,initErr:+t.state.initError,initial:+e.isFirst,timeout:+i.state.isLoadTimeout,referrer:document.referrer,frameUrl:document.URL},{immediately:!0})})).on(a.p.MEDIA_ENDED,(()=>{this.track.o(x.w.O_Ended)}))}onDisconnect(){super.onDisconnect(),clearTimeout(this.loopTimer)}}class os extends At.eV{constructor(){super(...arguments),this.tag="HttpDrmCer",this.url="//bvc-drm.bilivideo.com/cer/bilidrm_pub.key"}r(){return t=this,e=null,i=function*(){return this.getRemoteResponse(0).then((t=>t.data))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}getRemoteResponse(t){return this.request({url:this.url,responseType:"arraybuffer"}).catch((e=>At.eV.isCanceled(e)?Promise.reject(e):t?this.getRemoteResponse(--t):Promise.reject(e)))}}class as extends At.eV{constructor(){super(...arguments),this.tag="HttpDrmCkc",this.url="//bvc-drm.bilivideo.com/bilidrm"}r(t){return e=this,i=null,n=function*(){return this.getRemoteResponse(0,JSON.stringify(t)).then((t=>{const e=t.data;if(e&&200===e.status&&e.ckc)return e;throw e&&e.message?new Error(`status: ${e.status}; message: ${e.message}`):new Error("Unknown error")}))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}getRemoteResponse(t,e){return this.request({url:this.url,method:"POST",data:e}).catch((i=>At.eV.isCanceled(i)?Promise.reject(i):t?this.getRemoteResponse(--t,e):Promise.reject(i)))}}class ss extends At.eV{constructor(){super(...arguments),this.tag="HttpDrmWidevineCer",this.url="//bvc-drm.bilivideo.com/cer/bilibili_certificate.bin"}r(){return t=this,e=null,i=function*(){return this.getRemoteResponse(0).then((t=>t.data))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}getRemoteResponse(t){return this.request({url:this.url,responseType:"arraybuffer"}).catch((e=>At.eV.isCanceled(e)?Promise.reject(e):t?this.getRemoteResponse(--t):Promise.reject(e)))}}class ls extends At.eV{constructor(){super(...arguments),this.tag="HttpDrmCheck",this.url="//api.bilibili.com/pgc/player/web/check"}r(t){return e=this,i=null,n=function*(){return this.getRemoteResponse(1,t).then((t=>{if(t.data)return t.data;throw new Error("Invalid data")}))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}getRemoteResponse(t,e){return this.request({url:this.url,method:"GET",params:e,withCredentials:!0}).catch((i=>At.eV.isCanceled(i)?Promise.reject(i):t?this.getRemoteResponse(--t,e):Promise.reject(i)))}}var As=i(91680);class cs{static bufferFromText(t=""){const e=new Uint8Array(t.length);for(let i=0;i<t.length;i++)e[i]=t.codePointAt(i);return e}static textFromBuffer(t){const e=[],i=new Uint8Array(t);for(let t=0;t<i.byteLength;t++)e.push(String.fromCodePoint(i[t]));return e.join("")}static decode(t=""){const e=As.toByteArray(t);return cs.textFromBuffer(e)}static encode(t=""){const e=cs.bufferFromText(t);return As.fromByteArray(e)}static encodeHex(t){return cs.encode(t.match(/\w{2}/g).map((t=>String.fromCharCode(parseInt(t,16)))).join(""))}static toUrl(t){return"string"==typeof t?t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"):t}}var hs=Object.defineProperty,ds=Object.defineProperties,us=Object.getOwnPropertyDescriptors,ps=Object.getOwnPropertySymbols,gs=Object.prototype.hasOwnProperty,fs=Object.prototype.propertyIsEnumerable,ms=(t,e,i)=>e in t?hs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ys=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class bs extends s.f{constructor(){super(...arguments),this.tag="GuardAtom",this.widevineServerURL="//bvc-drm.bilivideo.com/bili_widevine",this.permInterval=9e5}getHttpCer(){return ys(this,null,(function*(){const t=new os(this.rootPlayer,{memCache:!0});try{return yield t.r()}catch(t){throw this.log.e("getHttpCer",t&&t.message),t}}))}getHttpCkc(t){return ys(this,null,(function*(){const e=new as(this.rootPlayer);try{return(yield e.r({spc:t})).ckc}catch(t){throw this.log.e("getHttpCkc",t&&t.message),t}}))}getDrmSdkModule(){return ys(this,null,(function*(){if(!bs.DRM_SDK_MODULE)try{bs.DRM_SDK_MODULE=yield(0,j.T1)().then((t=>t.default()))}catch(t){this.log.e("getDrmSdkModule",t&&t.message)}return bs.DRM_SDK_MODULE}))}getHttpWidevineCer(){return ys(this,null,(function*(){const t=new ss(this.rootPlayer,{memCache:!0,persistent:!0});try{return yield t.r()}catch(t){throw this.log.e("getHttpWidevineCer",t&&t.message),t}}))}startPeriodicPerm(){this.permTimer||(this.permTimer=window.setTimeout((()=>{this.validPerm().then((()=>{this.log.i("validPerm","done"),this.abortPeriodicPerm(),this.startPeriodicPerm()
})).catch((t=>{this.handlePermDenied(t,C.ZX.Initialize)}))}),this.permInterval))}abortPeriodicPerm(){this.permTimer&&(clearTimeout(this.permTimer),this.permTimer=null)}handlePermDenied(t,e){const{kernelStore:i,configStore:n,toastStore:r}=this.rootStore,o=t&&t.message||"未知错误";this.log.e("validPerm","fail",o),this.abortPeriodicPerm(),i.attachExternal({quality:0,mediaDataSource:{type:"mp4",url:n.errorUrl}},{initiator:e}),r.create({text:o,duration:3500,manualMode:!0})}validPerm(){return ys(this,null,(function*(){const{configStore:t,uiStore:e}=this.rootStore;if(e.kind===l.HR.Pgc){const e=new ls(this.rootPlayer,{memCache:!1});try{const i=yield e.r({season_id:t.seasonId,ep_id:t.episodeId}),n=i.result&&i.result.allow_play,r=i.result&&i.result.errmsg||i.message;if(!n)throw new Error(r)}catch(t){}}return this.startPeriodicPerm()}))}getKeyDetail(t){const e=this.getHttpCer(),i=this.getDrmSdkModule(),n=new It.B;return Promise.all([e,i]).then((e=>ys(this,null,(function*(){const i=e[0],r=e[1],o=function(t=16){let e=Math.random().toString(36).slice(2);for(;e.length<t;)e+=Math.random().toString(36).slice(2);return e.slice(0,t)}(16),a=r.biliDRMGenSPC(t,o,i).spc,s=yield this.getHttpCkc(a),l=r.biliDRMParseCKC(As.toByteArray(s),o),A=cs.toUrl(cs.encodeHex(t)),c=cs.toUrl(l.key);if(!l||!l.key)throw new Error("Parsed CKC invalid");n.resolve(((t,e)=>ds(t,us(e)))(((t,e)=>{for(var i in e||(e={}))gs.call(e,i)&&ms(t,i,e[i]);if(ps)for(var i of ps(e))fs.call(e,i)&&ms(t,i,e[i]);return t})({},l),{protectionData:{"org.w3.clearkey":{clearkeys:{[A]:c},priority:0}}}))})))).catch((t=>n.reject(t))),{promise:n.promise,abort:()=>n.reject(new Error(At.eV.LIFECYCLE_TOKEN)),isAbort:t=>t&&t.message===At.eV.LIFECYCLE_TOKEN}}getWidevineDetail(){const t=this.getHttpWidevineCer(),e=new It.B;return t.then((t=>{const i=As.fromByteArray(new Uint8Array(t));if(!i)throw new Error("Get Widevine ServerCertificate Failed");e.resolve({protectionData:{"com.widevine.alpha":{serverURL:this.widevineServerURL,serverCertificate:i,priority:0}}})})).catch((t=>e.reject(t))),{promise:e.promise,abort:()=>e.reject(new Error(At.eV.LIFECYCLE_TOKEN)),isAbort:t=>t&&t.message===At.eV.LIFECYCLE_TOKEN}}onDispose(){super.onDispose(),this.abortPeriodicPerm()}}var vs=i(36005);var Es=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const Is=class extends s.f{constructor(t){super(t),this.loudnessActive=!1,this.video=null,this.isFirstTimeToEffect=!0,this.rootPlayer.on(o.t.Player_Navigate,(()=>this.onNavigate())),this.rootPlayer.on(a.p.PLAYER_BEFORE_MEDIA_REPLACE,(t=>this.changeEle(t))),this.rootPlayer.on(a.p.MEDIA_VOLUMECHANGE,(()=>{this.rootPlayer.mediaStore.video.muted||this.resume()})),this.rootPlayer.once(a.p.PLAYER_STORE_MOUNTED,(()=>this.onMounted()))}onMounted(){this.dc.play=(0,r.U5)((()=>this.rootStore.mediaStore.state.paused||this.rootStore.mediaStore.state.buffering),(t=>{t?this.loudnessActive&&this.loudnessMeter&&this.loudnessMeter.pause():this.loudnessActive&&this.loudnessMeter&&this.loudnessMeter.resume()}))}getMeterSDK(){return Es(this,null,(function*(){return Is.loudnessMeterSDK||(Is.loudnessMeterSDK=yield(0,j.pu)().then((t=>t.meterFactory))),Is.loudnessMeterSDK}))}startMeter(){return Es(this,null,(function*(){if(function(){if(!(0,vs.b)())return!1;try{return!!(new AudioContext).audioWorklet}catch(t){return!1}}())if(this.loudnessMeter)try{this.loudnessMeter.start()}catch(t){}else try{const t=yield this.getMeterSDK();this.loudnessMeter=t.createLufsMeter({sourceNode:this.gain,modes:[j.M5.Integrated]}),this.loudnessMeter.start(),this.loudnessMeter.on("dataavailable",(t=>{const{mode:e,value:i}=t.data;e===j.M5.Integrated?this.integratedLoudness=i:e===j.M5.ShortTerm&&(this.shortTermLoudness=i)}))}catch(t){this.log.i("[audioEffect] loudness meter start failed")}}))}resume(){if(!this.audioCtx)return;"suspended"===this.audioCtx.state&&this.audioCtx.resume()}onNavigate(){this.video=this.rootStore.mediaStore.video,this.rootPlayer.once(a.p.MEDIA_PLAYING,(()=>{this.init()}))}changeEle(t){this.destroy(),this.init(t)}init(t){t&&(this.video=t),(0,vs.b)()&&this.addReactions()}addReactions(){const{settingStore:t,mpdStore:e,patchAdvStore:i}=this.rootStore;this.dp.loudness=(0,r.U5)((()=>e.body&&!!e.loudnessParams&&!t.state.muted&&t.state.loudness),(t=>{t?this.loudnessNormalization():this.turnOffLoudnessNormalization()})),this.dp.playingKind=(0,r.U5)((()=>i.playingKind),(()=>{e.body&&!!e.loudnessParams&&!t.state.muted&&t.state.loudness?this.loudnessNormalization():this.turnOffLoudnessNormalization()}),{fireImmediately:!0})}loudnessNormalization(){const{mpdStore:t,wmpStore:e,toastStore:i,settingStore:n,configStore:r}=this.rootStore;if(!this.video)return;if(e.isBwpElement(this.video))return;if(!(0,vs.b)())return;if(!r.enableLoudness())return;const{measuredI:o,multiSceneArgs:a}=t.loudnessParams;if(!a)return;const{normalTargetI:s,highDynamicTargetI:l,undersizedTargetI:A}=a;if(this.getLocalGain())return this.isFirstTimeToEffect||i.create({text:"音效增强生效中，音量均衡暂不生效",duration:1e3}),void(this.isFirstTimeToEffect=!1);if(o<A)return;const c=n.getLoudness(),h=1*((c===T.iW.DYNAMIC?l:s)-o);this.loudnessActive=!0,this.startLoudness(h),this.track.e("loudness_normalization_effective",{residualI:h,option:c,measuredI:o}),this.log.i(`[audioEffect] loudness normalization start, the gain is ${h}, type is ${c}`),this.isFirstTimeToEffect=!1,this.startMeter()}db2gain(t){return Math.pow(10,t/20)}startLoudness(t){this.noCtx()&&this.getAudioContext();const e=this.audioCtx.state,i=this.source.connectingEffect;"suspended"===e?this.audioCtx.resume().then((()=>{i||this.connectGain(),this.gain.gain.setTargetAtTime(this.db2gain(t),this.audioCtx.currentTime,.015)})).catch((t=>{this.disConnectGain()})):(i||this.connectGain(),this.gain.gain.setTargetAtTime(this.db2gain(t),this.audioCtx.currentTime,.015))}getLocalGain(){const{localStore:t}=this.rootStore;try{const e=t.get().audioEffect;if(e)return e.gain||0}catch(t){}return 0}turnOffLoudnessNormalization(){const t=this.getLocalGain();this.loudnessActive&&!t&&this.setGain(0),this.log.i("[audioEffect] turn off loudness normalization"),this.loudnessActive=!1;try{this.loudnessMeter&&(this.loudnessMeter.pause(),this.loudnessMeter.stop(),this.loudnessMeter.reset()),this.integratedLoudness=0,this.shortTermLoudness=0}catch(t){}}getLoudnessActive(){return this.loudnessActive}getShotTermLoudness(){return+this.shortTermLoudness.toFixed(2)}getIntegratedLoudness(){return this.integratedLoudness===-1/0?NaN:"number"==typeof this.integratedLoudness?+this.integratedLoudness.toFixed(2):0}setGain(t){this.noCtx()||this.gain.gain.setTargetAtTime(this.db2gain(t),this.audioCtx.currentTime,.015)}disConnectGain(){try{this.gain&&this.gain.disconnect()}catch(t){}}connectGain(){try{this.gain&&(this.source.connect(this.gain),this.gain.connect(this.destination))}catch(t){}}onAudioGraphRebuilt(){this.loudnessMeter&&this.loudnessMeter.reconnect()}getAudioContext(){const t=this.video,e=this.audioCtx;return Is.weakMap.has(t)?(this.source=Is.weakMap.get(t),this.audioCtx=this.source.context):(this.audioCtx=new(window.AudioContext||window.webkitAudioContext),this.source=this.audioCtx.createMediaElementSource(t),Is.weakMap.set(t,this.source)),e!==this.audioCtx&&(this.destination=this.audioCtx.destination,this.gain=this.audioCtx.createGain()),this.audioCtx}closeAudioContext(){this.audioCtx&&"closed"!==this.audioCtx.state&&(this.audioCtx.close(),this.audioCtx=null)}getGain(){return this.gain}noCtx(){return!this.audioCtx||"closed"===this.audioCtx.state}getSource(){return this.source}getDestination(){return this.destination}defaultLoudnessOption(){try{if("function"==typeof St().getFawkesConfigValue){const t="dash_config",e="loudness_switch";return+St().getFawkesConfigValue(t,e)||0}}catch(t){}return 0}onDispose(){super.onDispose(),this.isFirstTimeToEffect=!0,this.turnOffLoudnessNormalization()}destroy(){this.turnOffLoudnessNormalization(),this.source&&this.source.disconnect(),this.disConnectGain(),this.closeAudioContext(),this.gain=null,this.destination=null,this.source=null;try{
this.loudnessMeter&&this.loudnessMeter.isRunning()&&(this.loudnessMeter.destroy(),this.loudnessMeter=null)}catch(t){}}};let Cs=Is;Cs.weakMap=new WeakMap;class Bs extends s.u{constructor(t){super(t),this.tag="FreeStore",this.eventAtom=new rs(t),this.guardAtom=new bs(t),this.audioAtom=new Cs(t)}onMount(){super.onMount(),this.eventAtom.addEvents()}onMounted(){super.onMounted();[Ea,Ia,ns].forEach((t=>new t(this.rootStore)))}}var ws=Object.defineProperty,xs=Object.getOwnPropertySymbols,Qs=Object.prototype.hasOwnProperty,Ss=Object.prototype.propertyIsEnumerable,ks=(t,e,i)=>e in t?ws(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ds=(t,e)=>{for(var i in e||(e={}))Qs.call(e,i)&&ks(t,i,e[i]);if(xs)for(var i of xs(e))Ss.call(e,i)&&ks(t,i,e[i]);return t};class _s extends s.u{constructor(){super(...arguments),this.tag="KVStore"}get defaultState(){return{dashConfig:{audio_only_config:{enabled:!0,default_time:20,audio_only_startup:!0,rules:[{id:"ua",priority:0,match:{0:["FireFox"]}}]}}}}onMounted(){var t,e;super.onMounted();try{const i=(null==(t=window.localStorage)?void 0:t.getItem)&&(null==(e=window.localStorage)?void 0:e.getItem("bilibili_player_kv_config"))||"{}",n=JSON.parse(i).dash_config||{};this.setState({dashConfig:Ds(Ds({},this.state.dashConfig),n)})}catch(t){}}onDispose(){super.onDispose({dashConfig:1})}}class Rs extends s.u{constructor(){super(...arguments),this.tag="ExpStore",this.globalABKey="webAbTest"}get defaultState(){return{}}onMounted(){super.onMounted(),this.runHandoffResetExp()}isExpDone(t){var e;return!!(null==(e=this.localStore.get().exp)?void 0:e[t])}markExpDone(t){this.localStore.set({exp:{[t]:1}})}getAbValue(t){var e;const i=this.rootStore.window;return null==(e=null==i?void 0:i[this.globalABKey])?void 0:e[t]}getExpOrKv(t,e,i=""){var n,r;const o=this.getAbValue(t);if(void 0!==o)return o;const a=null==(r=null==(n=this.rootStore.kvStore.state)?void 0:n.dashConfig)?void 0:r[e];return void 0!==a?String(a):i}getExpOrKvBool(t,e,i=!1){var n,r;const o=this.getAbValue(t);if(void 0!==o)return"true"===o||!0===o||"1"===o;const a=null==(r=null==(n=this.rootStore.kvStore.state)?void 0:n.dashConfig)?void 0:r[e];return void 0!==a?"true"===a||!0===a||"1"===a:i}get enableFastSwitchQn(){return this.getExpOrKvBool("enableFastSwitchQn","enable_fast_switch_qn",!1)}get onlyAudioEnabled(){return"ON"===this.getAbValue("only_audio_test")}get enableAutoQnAboveStart(){return this.getExpOrKvBool("enableAutoQnAboveStart","enable_auto_qn_above_start",!1)}get enableSourceChangeType(){return this.getExpOrKvBool("enable_source_change_type","enable_source_change_type",!1)}get enableStartupModelV2(){return this.getExpOrKvBool("enable_startup_model_v2","enable_startup_model_v2",!1)}runHandoffResetExp(){const t="continuous_play_btn_visible";function e(){var e;this.settingStore.setHandoff(l.ty.Auto);const i=this.rootStore.window;null==(e=null==i?void 0:i.localStorage)||e.setItem("recommend_auto_play","open"),this.markExpDone(t),this.track.e(`exp_${t}`,{exp:t,to:l.ty.Auto})}this.isExpDone(t)||"HIDE"===this.getAbValue(t)&&(this.dc.handoffResetExp=(0,r.U5)((()=>this.storyStore.state.type),(t=>{var i,n;if(null==t)return;if(t!==Co.UGCMultiPart&&t!==Co.UGCSeasonPart)return;this.settingStore.state.handoff===l.ty.Abort&&setTimeout((()=>e.call(this)),2e3),null==(n=(i=this.dc).handoffResetExp)||n.call(i),this.dc.handoffResetExp=null}),{fireImmediately:!0}))}}var Ms=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Fs=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Ts(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Ms(e,i,o),o};class Ls{constructor(t){this._isInitialized=!1,this._isDisposing=!1,this.subKeyList=[],this.ding=0,this.pageHidden=!1,(0,r.rC)(this),this.rootPlayer=t,this.nodes=t.nodes,this.window=t.window,this.parent=t.parent,this.isEmbed=t.isEmbed,this.isEmbedSOP=t.isEmbedSOP,this.stageAtom=new I.s(this),this.visibilityHandler(),this.addVisibilityEvents(),this.rootPlayer.on(o.t.Player_Navigate,(()=>this._isDisposing=!1),-1).on(o.t.Player_Dispose,(()=>this._isDisposing=!0),-1).on(o.t.Player_Dispose,(()=>this._isDisposing=!1),1),this.subStores={localStore:new W(this),sessionStore:new Z(this),settingStore:new T.hl(this),kvStore:new _s(this),configStore:new v.JU(this),assetStore:new se(this),mpdStore:new $o(this),kernelStore:new Ne(this),uiStore:new m(this),mediaStore:new M(this),userStore:new lt(this),upStore:new mt(this),episodeStore:new re.d(this),errorStore:new Ge(this),qualityStore:new le.OX(this),endingStore:new ne(this),portStore:new $t(this),statueStore:new Ke(this),sendStore:new di(this),danmakuStore:new Ni(this),dmAdvStore:new Vi(this),dmBasStore:new Zi(this),dmListStore:new dn(this),dmCmdStore:new Fn(this),dmSkipStore:new Un(this),dmSettingStore:new On.N(this),blockStore:new _n(this),dmMaskStore:new Hn(this),dmModeStore:new Yn(this),toastStore:new qn(this),tooltipStore:new wi(this),httpStore:new mr(this),trackStore:new Cr(this),pipStatStore:new ia(this),auxStore:new xr(this),ctrlStore:new Qr.a(this),menuStore:new Sr.wb(this),hotspotStore:new _r(this),panoramaStore:new Mr(this),interactStore:new io(this),shareStore:new so(this),subtitleStore:new lo.W5(this),translationStore:new Ao.MO(this),progressStore:new go(this),storyStore:new wo(this),premiereStore:new ma(this),wmpStore:new aa(this),metricStore:new ha(this),heartbeatTrack:new ua(this),viewTrack:new fa(this),patchAdvStore:new Yt(this),expStore:new Rs(this),freeStore:new Bs(this)},this.subKeyList=Object.keys(this.subStores),this.decomposeSubStores(this),this.rootPlayer.emit(a.p.PLAYER_GRAPH_FLATTEN),this.rootPlayer.emit(a.p.PLAYER_STORAGE_BUILD),this.rootPlayer.emit(a.p.PLAYER_STATE_CREATE),this.rootPlayer.emit(a.p.PLAYER_STATE_CREATED),this.rootPlayer.emit(a.p.PLAYER_STORE_MOUNT),this.rootPlayer.emit(a.p.PLAYER_STORE_MOUNTED),this.changeP(),(0,r.z)((()=>this._isInitialized=!0))}get isCommitted(){return this._isInitialized&&this.ding}get isPrepared(){const t=this.isCommitted&&this.configStore.state.isCompleteIdEnded;if(!this.rootPlayer.hasFeature("outSideReload"))return t;if(t&&this.mpdStore.cidSettled)return!0;return this._isInitialized&&(this.uiStore.state.isLoaded||this.uiStore.state.isLoadTimeout)&&!!this.configStore.episodeId}get isLoaded(){return this.isPrepared&&this.uiStore.state.isLoaded}get isLoadEnded(){return this.isPrepared&&(this.uiStore.state.isLoaded||this.uiStore.state.isLoadTimeout)}get isDisposing(){return this._isDisposing}changeP(){this.rootPlayer.emit(o.t.Player_Navigate,new CustomEvent(o.t.Player_Navigate)),this.ding+=1}decomposeSubStores(t){for(const e of this.subKeyList)t[e]=this.subStores[e]}visibilityHandler(){(0,r.z)((()=>{switch(document.visibilityState){case"hidden":this.pageHidden=!0;break;case"visible":this.pageHidden=!1;break;default:null!=document.hidden&&(this.pageHidden=document.hidden)}}))}addVisibilityEvents(){document.addEventListener("visibilitychange",this.visibilityHandler),window.addEventListener("pagehide",this.visibilityHandler)}removeVisibilityEvents(){document.removeEventListener("visibilitychange",this.visibilityHandler),window.removeEventListener("pagehide",this.visibilityHandler)}disconnect(){(0,r.z)((()=>this._isInitialized=!1)),this.removeVisibilityEvents()}}Fs([r.LO],Ls.prototype,"_isInitialized",2),Fs([r.LO],Ls.prototype,"ding",2),Fs([r.LO],Ls.prototype,"pageHidden",2),Fs([r.Fl],Ls.prototype,"isCommitted",1),Fs([r.Fl],Ls.prototype,"isPrepared",1),Fs([r.Fl],Ls.prototype,"isLoaded",1),Fs([r.Fl],Ls.prototype,"isLoadEnded",1),Fs([r.aD],Ls.prototype,"changeP",1),Fs([n.ZP],Ls.prototype,"visibilityHandler",1);class Ns{constructor(t){this.rootStore=t,this.rootPlayer=t.rootPlayer,this.mountedMap=new Map,this.rootPlayer.once(o.t.Player_Disconnect,(()=>{this.mountedMap.forEach((t=>clearTimeout(t))),this.mountedMap.clear()}))}install(t){Array.isArray(t)&&t.forEach((t=>{if(t){const e=new t(this.rootStore),i=window.setTimeout((()=>{e.install(),e.attachEvents(),this.mountedMap.delete(e)}),0);this.mountedMap.set(e,i)}}))}}var Ps=i(35706),Us=i(90050),Os=(t=>(t.Appear="appear",t.Click="click",t))(Os||{}),Gs=i(99195),Hs=(t=>(t.Qa="qa",t.Prompt="prompt",t))(Hs||{})},33890:function(t,e,i){"use strict";i.d(e,{s:function(){return m
},y:function(){return f}});var n=i(14653),r=i(94780),o=i(4727),a=i(745),s=i(89262),l=i(40898),A=i(54981),c=i(16466),h=i(80538),d=i(22451),u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?p(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&u(e,i,o),o},f=(t=>(t[t.Reload_Head=0]="Reload_Head",t[t.View_Head=1]="View_Head",t[t.View_Tail=2]="View_Tail",t[t.PlayUrl_Head=3]="PlayUrl_Head",t[t.PlayUrl_Done=4]="PlayUrl_Done",t[t.PlayUrl_Tail=5]="PlayUrl_Tail",t[t.Media_LoadStart=6]="Media_LoadStart",t[t.Media_Metadata=7]="Media_Metadata",t[t.Media_FirstFrame=8]="Media_FirstFrame",t[t.Media_Canplay=9]="Media_Canplay",t[t.DRM_Detect_Head=10]="DRM_Detect_Head",t[t.DRM_Detect_Done=11]="DRM_Detect_Done",t))(f||{});class m{constructor(t){this.rootStore=t,this.tag="StageAtom",this.timeMap=new Map,this.rootPlayer=t.rootPlayer,this.resetStageInfo(),this.rootPlayer.on(l.t.Player_Dispose,(()=>this.resetStageInfo()),1).on(l.t.Player_Navigate,(()=>this.addReportEvents())).on(l.t.Player_Dispose,(()=>this.dispose())),this.addTimeReaction()}set(t,e){if(this.stageTiming[t])return!1;{const i=`${this.tag}@hideTimeGap`;switch(t){case 3:n.Iy.markOnce(n.rS.PlayUrl_Head),n.Iy.measureOnce(n.Z6.ConnectHead_To_PlayUrlHead,n.rS.Connect_Head,n.rS.PlayUrl_Head);break;case 4:case 5:n.Iy.markOnce(n.rS.PlayUrl_Tail),n.Iy.measureOnce(n.Z6.PlayUrlHead_To_PlayUrlTail,n.rS.PlayUrl_Head,n.rS.PlayUrl_Tail);break;case 6:n.Iy.markOnce(n.rS.Media_LoadStart),n.Iy.measureOnce(n.Z6.PlayUrlTail_To_MediaLoadStart,n.rS.PlayUrl_Tail,n.rS.Media_LoadStart),this.hideTimeGap.streamTrusted=!this.rootStore.pageHidden,this.timeStarting(i);break;case 7:n.Iy.markOnce(n.rS.Media_Metadata),n.Iy.measureOnce(n.Z6.MediaLoadStart_To_MediaMetadata,n.rS.Media_LoadStart,n.rS.Media_Metadata),this.hideTimeGap.streamGap=this.timeFinished(i).hiddenDuration;break;case 8:n.Iy.markOnce(n.rS.Media_FirstFrame),n.Iy.measureOnce(n.Z6.MediaLoadStart_To_MediaFirstFrame,n.rS.Media_LoadStart,n.rS.Media_FirstFrame);break;case 9:n.Iy.markOnce(n.rS.Media_Canplay),n.Iy.measureOnce(n.Z6.MediaLoadStart_To_MediaCanplay,n.rS.Media_LoadStart,n.rS.Media_Canplay)}return this.stageTiming[t]=null!=e?e:performance.now(),!0}}getTiming(){const t=this.stageTiming,e=r._g,i=e.entryLoadTime,{episodeStore:s,errorStore:l,configStore:c,mpdStore:h,kernelStore:d}=this.rootStore,u=+s.isFirst,p=+(s.state.isRenewal||c.state.isRequestId),g=+this.hideTimeGap.streamTrusted,f=+l.state.initError,m=+h.state.mpdRetries,y=+d.state.streamRetries,b=-1===m?y:m+y,v=(0,o.F)(this.hideTimeGap.streamGap),E=(0,o.F)(e.entryRequestStart),I=(0,o.F)(e.entryResponseEnd),C=(0,o.F)(n.Iy.getMarkTimeByName(n.rS.Index_Head)),B=(0,o.F)(this.rootPlayer.instantiate),w=(0,o.F)(this.rootPlayer.connectHead),x=(0,o.F)(this.rootPlayer.storeTail),Q=(0,o.F)(this.rootPlayer.connectTail),S=(0,o.F)(t[0]),k=(0,o.F)(t[1]),D=(0,o.F)(t[2]),_=(0,o.F)(t[3]),R=(0,o.F)(t[4]),M=(0,o.F)(t[6]),T=(0,o.F)(t[7]),F=(0,o.F)(t[8]),L=(0,o.F)(t[9]),N=(0,o.F)(t[10]),P=(0,o.F)(t[11]),U=u?0:S,O=u?w:S,G=(0,o.F)(u?E:0),H=(0,o.F)(u?k-E:0),V=(0,o.F)(D-k),Y=(0,o.F)(R?R-D:0),z=(0,o.F)(R?T-R-v:0),W=(0,o.F)(u?k:0);let Z=0,j=0,q=0,J=0,K=0,X=0;R&&(Z=(0,o.F)(T-U-v),j=(0,o.F)(T-O-v),q=(0,o.F)(F-U-v),J=(0,o.F)(F-O-v),K=(0,o.F)(L-U-v),X=(0,o.F)(L-O-v)),c.isChannel(A.u5.Default)||(Z=j,q=J,K=X);let $=0,tt=0,et=0;return u&&i&&(tt=(0,o.F)(i.transferSize),$=(0,o.F)(i.duration),tt&&$&&(et=(0,o.F)(tt/$))),(0,a.Z)({context:{initial:u,visible:g,renewal:p,initErr:f,mpdRetries:m,streamRetries:y,totalRetries:b},origin:{metadata:Z,firstFrame:q,canplay:K},approx:{metadata:j,firstFrame:J,canplay:X},duration:{s1:G,s2:H,s3:V,s4:Y,s5:z,s6:W}},{timing:{entryReqStart:E,entryResEnd:I,indexHead:C,instantiate:B,connectHead:w,storeTail:x,connectTail:Q,streamGap:v,originStart:U,approxStart:O,reloadHead:S,viewHead:k,viewTail:D,playUrlHead:_,playUrlDone:R,loadStart:M,metadata:T,firstFrame:F,canplay:L,drmDetectHead:N,drmDetectDone:P},entry:{size:tt,duration:$,speed:et}})}resetStageInfo(){this.hideTimeGap={streamGap:0,streamTrusted:!1},this.stageTiming={0:NaN,1:NaN,2:NaN,3:NaN,4:NaN,5:NaN,6:NaN,7:NaN,8:NaN,9:NaN,10:NaN,11:NaN}}reportMetadata(){const t=this.getTiming(),e=t.context,i=t.duration,n=t.origin.metadata,r=t.approx.metadata;this.rootPlayer.track.o(c.w.O_Loaded_Time,{initErr:e.initErr,initial:e.initial,origin:n,approx:r}),this.rootPlayer.track.o(c.w.O_Stage,{initErr:e.initErr,initial:e.initial,renewal:e.renewal,visible:e.visible,origin:n,approx:r,totalRetries:e.totalRetries,streamRetries:e.streamRetries,mpdRetries:e.mpdRetries,s1:i.s1,s2:i.s2,s3:i.s3,s4:i.s4,s5:i.s5,s6:i.s6})}reportCanplay(){const t=this.getTiming(),e=t.context,i=t.origin.canplay,n=t.approx.canplay,r=this.rootStore.kernelStore,s={};r.baseAgent&&(s.canplaySpeed=(0,o.F)(r.baseAgent.averageThroughput)),this.rootPlayer.track.o(c.w.O_Frame_Time,{initErr:t.context.initErr,initial:e.initial,origin:i,approx:n}),this.rootPlayer.track.o(c.w.O_Media_Canplay,(0,a.Z)(s,t))}addReportEvents(){this.rootPlayer.once(h.p.MEDIA_LOADEDMETADATA,this.reportMetadata).once(h.p.MEDIA_CANPLAY,this.reportCanplay)}removeReportEvents(){this.rootPlayer.off(h.p.MEDIA_LOADEDMETADATA,this.reportMetadata).off(h.p.MEDIA_CANPLAY,this.reportCanplay)}timeStarting(t){const e=performance.now();this.timeMap.set(t,{startingTime:e,previousHiddenTime:this.rootStore.pageHidden?e:NaN,accumulativeHiddenTime:0})}timeFinished(t){const e=performance.now(),i=this.timeMap.get(t),n={duration:NaN,hiddenDuration:NaN,visibleDuration:NaN};return i&&(n.duration=e-i.startingTime,this.rootStore.pageHidden&&(i.accumulativeHiddenTime+=e-i.previousHiddenTime||0),n.hiddenDuration=i.accumulativeHiddenTime,n.visibleDuration=n.duration-n.hiddenDuration),this.timeMap.delete(t),n}addTimeReaction(){this.timeMapDisposer=(0,d.EH)((()=>{if(this.rootStore.pageHidden){if(this.timeMap.size){const t=performance.now();this.timeMap.forEach((e=>{e.previousHiddenTime=t}))}}else if(this.timeMap.size){const t=performance.now();this.timeMap.forEach((e=>{e.accumulativeHiddenTime+=t-e.previousHiddenTime||0}))}}))}dispose(){this.timeMapDisposer&&this.timeMapDisposer(),this.removeReportEvents()}}g([s.ZP],m.prototype,"reportMetadata",1),g([s.ZP],m.prototype,"reportCanplay",1)},83899:function(t,e,i){"use strict";i.d(e,{H:function(){return h},b:function(){return c}});var n=i(27615),r=i(89262),o=i(84585),a=i(28799),s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,A=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?l(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&s(e,i,o),o},c=(t=>(t.Flv="Flv",t.Dash="Dash",t))(c||{});class h{constructor(t,e,i){this.isAgentReady=!1,this.isQualityReady=!1,this.isAgentOffscreen=!1,this.rootStore=t,this.rootPlayer=t.rootPlayer,this.isAgentOffscreen=!!i,this.track=this.rootPlayer.track,this.video=e,this.rootStore.decomposeSubStores(this),this.isAgentReady=!0}get log(){if(!this._cachedLog){const t=this.rootPlayer.log;this._cachedLog=this.tag?t.getLogger(this.tag):t}return this._cachedLog}get isReady(){return this.isAgentReady}get isOffscreen(){return this.isAgentOffscreen}get startVQ(){return this.startPlayVQ}getPlayUrl(){let t=this.data&&this.data.mediaDataSource;return t&&t.segments&&t.segments[0]&&t.segments[0].url||""}getPlayingFileName(t){return""}attachSource(t){this.log.i("[attachSource]",`KernelType:${this.kind}`),this.data=t,this.data.seekType||(this.data.seekType="range")}attachEvent(){this.log.i("[attachEvent]"),this.isAgentOffscreen=!1,this.addBaseEvents()}resetQualityReadyState(){this.log.i("resetQualityReadyState"),this.isQualityReady=!1}w(){this.log.w("[Warning]","kernelPlayer is not destroyed")}setInitQuality(){if(!this.isQualityReady){const t=0===this.qualityStore.state.newQuality?0:this.realVQ;this.log.i("[setInitQuality]",`q:${t}`),this.qualityStore.setRenderedQuality(null,t),this.isQualityReady=!0}}restoreStates(){const t=this.kernelStore.cachedStatus;if(t){const e=t.currentTime,i=t.paused,n=this.video.duration;if(this.log.i("[Restore]",`paused:${i},currentTime:${e},duration:${n}`),e){const t=(0,o.Z)(e,0,n);t>0&&(this.seek(t),this.log.i("[Restore]","SeekAction"))}i?this.video.pause():(0,
a.z)(this.video).catch((t=>this.log.w("[Restore]","PlayFailed",t&&t.message)))}}addBaseEvents(){this.video.readyState>=n.VH.HAVE_METADATA?this.onLoadedmetadata():(this.video.addEventListener("loadedmetadata",this.onLoadedmetadata),this.video.addEventListener("canplay",this.onCanplay))}removeBaseEvents(){this.video.removeEventListener("loadedmetadata",this.onLoadedmetadata),this.video.removeEventListener("canplay",this.onCanplay)}onCanplay(){this.errorStore.abortRetry()}onLoadedmetadata(){this.restoreStates(),this.setInitQuality();try{this.startPlayVQ=this.qualityStore.realQ}catch(t){this.startPlayVQ=-1}}disableVideo(t){}enableVideo(t){}dispose(){this.log.i("dispose"),this.isAgentReady=!1,this.startPlayVQ=-1,this.resetQualityReadyState(),this.removeBaseEvents()}}A([r.ZP],h.prototype,"onCanplay",1),A([r.ZP],h.prototype,"onLoadedmetadata",1)},35706:function(t,e,i){"use strict";i.d(e,{v:function(){return s}});var n=i(65610),r=i(80538),o=i(40898),a=i(53229);class s{constructor(t){this.ppx=n.m,this.spx=n.a_,this.cpx=n._j,this.isInstalled=!1,this.rootStore=t,this.rootPlayer=t.rootPlayer,this.nodes=t.nodes,this.container=this.nodes.container,this.rootPlayer.minorNode.parentElement&&(this.auxiliary=this.rootPlayer.minorNode),this.track=this.rootPlayer.track,this.dp=Object.create(null),this.dc=Object.create(null),t.decomposeSubStores(this),t._rootExtra.decomposeSubExtras(this)}get log(){if(!this._cachedLog){const t=this.rootPlayer.log;this._cachedLog=this.tag?t.getLogger(this.tag):t}return this._cachedLog}install(){0}attachEvents(){this.rootPlayer.on(o.t.Player_Dispose,(()=>this.dp=(0,a.Jo)(this.dp))).once(o.t.Player_Disconnect,(()=>this.dc=(0,a.Jo)(this.dc))),this.rootStore.isLoadEnded&&this.userStore.info?this.onLoaded(this.userStore.info):this.rootPlayer.on(r.p.PLAYER_LOADED,(t=>this.onLoaded(t))),this.rootPlayer.on(o.t.Player_Access_Changed,(()=>this.onQuickLogin())).on(r.p.PLAYER_UNLOAD,(()=>this.onUnload())).on(o.t.Player_Dispose,(()=>this.onDispose())).once(o.t.Player_Disconnect,(()=>this.onDisconnect()))}onLoaded(t){}onQuickLogin(){}onUnload(){}onDispose(){}onDisconnect(){}}},65340:function(t,e,i){"use strict";i.d(e,{f:function(){return l},u:function(){return A}});var n=i(53229),r=i(40898),o=i(80538),a=i(22451),s=i(38785);class l{get log(){if(!this._cachedLog){const t=this.rootPlayer.log;this._cachedLog=this.tag?t.getLogger(this.tag):t}return this._cachedLog}constructor(t){var e;this.rootStore=t,this.rootPlayer=t.rootPlayer,this.nodes=t.nodes,this.track=this.rootPlayer.track,this.dp=Object.create(null),this.dc=Object.create(null),this.rootPlayer.on(r.t.Player_Dispose,(()=>this.dp=(0,n.Jo)(this.dp))).once(r.t.Player_Disconnect,(()=>this.dc=(0,n.Jo)(this.dc))),t.isLoadEnded&&(null==(e=t.userStore)?void 0:e.info)?this.onLoaded(t.userStore.info):this.rootPlayer.on(o.p.PLAYER_LOADED,(t=>this.onLoaded(t))),this.rootPlayer.on(r.t.Player_Access_Changed,(()=>this.onQuickLogin())).on(o.p.PLAYER_UNLOAD,(()=>this.onUnload())).on(r.t.Player_Dispose,(()=>this.onDispose())).once(r.t.Player_Disconnect,(()=>this.onDisconnect()))}onLoaded(t){}onQuickLogin(){}onUnload(){}onDispose(){}onDisconnect(){}}class A extends l{constructor(t){super(t),this.rootPlayer.once(o.p.PLAYER_GRAPH_FLATTEN,(()=>this.onGraphFlatten())).once(o.p.PLAYER_STORAGE_BUILD,(()=>this.onStorageBuild())).once(o.p.PLAYER_STATE_CREATE,(()=>this.onStateCreate())).once(o.p.PLAYER_STATE_CREATED,(()=>this.onStateCreated())).once(o.p.PLAYER_STORE_MOUNT,(()=>this.onMount())).once(o.p.PLAYER_STORE_MOUNTED,(()=>this.onMounted())),this.rootPlayer.on(r.t.Player_Navigate,(()=>this.onNavigate())).on(r.t.Player_Committed,(()=>this.onCommitted())).on(r.t.Player_Prepared,(()=>this.onPrepared()))}get defaultState(){return null}changeState(t,e){(0,n.$p)(t,e)}setState(t,e){!e&&this.rootStore.isDisposing||this.changeState(this.state,t)}onGraphFlatten(){this.rootStore.decomposeSubStores(this)}onStorageBuild(){}onStateCreate(){const t=this.defaultState;(0,s.Z)(t)&&(this.state=a.LO.object(t,null,{deep:!1}))}onStateCreated(){}onMount(){}onMounted(){}onNavigate(){}onCommitted(){}onPrepared(){}onDispose(t){const e=this.defaultState;if(e)if(t){if((0,s.Z)(t)){const e={},i=this.defaultState;Object.keys(i).forEach((n=>{t[n]||(e[n]=i[n])})),this.setState(e,!0)}}else this.setState(e,!0)}}},11973:function(t,e,i){"use strict";function n(t){const e=t.interactiveConfig||{};return void 0===t.graphVersion||e.graphVersion||(e.graphVersion=t.graphVersion),void 0===t.edgeId||e.edgeId||(e.edgeId=t.edgeId),{storageKey:t.storageKey,element:t.element,auxiliary:t.auxiliary,mntAuxSender:t.mntAuxSender,mntAuxConfig:t.mntAuxConfig,screenKind:t.screenKind,channelKind:t.channelKind,hideBoxShadow:t.hideBoxShadow,prefetch:t.prefetch,ctrl:t.ctrl,muted:t.muted,errorUrl:t.errorUrl,enableHEVC:t.enableHEVC,enableAV1:t.enableAV1,enableWMP:t.enableWMP,featureList:t.featureList,revision:t.revision,iid:t.iid,csource:t.csource,requestConfig:t.requestConfig,pcSpecialMode:t.pcSpecialMode,fullWrap:t.fullWrap,loadedIssueTime:t.loadedIssueTime,businessEmbededMode:t.businessEmbededMode,businessShowDmSwitch:t.businessShowDmSwitch,interactiveConfig:e}}function r(t){const e=t.interactiveConfig||{};return void 0===t.graphVersion||e.graphVersion||(e.graphVersion=t.graphVersion),void 0===t.edgeId||e.edgeId||(e.edgeId=t.edgeId),{kind:t.kind,aid:t.aid,cid:t.cid,bvid:t.bvid,seasonId:t.seasonId,episodeId:t.episodeId,p:t.p,t:t.t,fromDid:t.fromDid,replyDid:t.replyDid,stats:t.stats,seasonType:t.seasonType,httpQuery:t.httpQuery,controlsList:t.controlsList,autoplay:t.autoplay,hasPrev:t.hasPrev,hasNext:t.hasNext,localUrl:t.localUrl,poster:t.poster,extraEPInfo:t.extraEPInfo,seekUpdateMode:t.seekUpdateMode,localCache:t.localCache,interactiveConfig:e,quality:t.quality,viewInfo:t.viewInfo,playlistId:t.playlistId,playlistType:t.playlistType}}i.d(e,{i:function(){return n},s:function(){return r}})},51324:function(t,e,i){"use strict";i.d(e,{o:function(){return s}});var n=i(51102),r=i(30421),o=i(54981),a=i(90050);function s(){return{lastUnlogintrialView:0,lastUid:0,aiAnimationInfo:"[]",aiPromptToastInfo:"[]",media:{quality:r.yE,volume:r.D2,nonzeroVol:r.D2,hideBlackGap:!r.xw,dolbyAudio:!1,audioQuality:null,autoplay:r.QP,handoff:o.ty.Auto,seniorTip:!0,opEd:r.nG,loudnessSwitch:r.Dy,listLoop:!1,loop:!1},dmSend:{upDm:!1,dmChecked:!0},blockList:[],dmSetting:{status:!0,dmSwitch:!0,aiSwitch:!0,aiLevel:3,preventshade:!1,dmask:!0,typeScroll:!0,typeTopBottom:!0,typeColor:!0,typeSpecial:!0,opacity:.8,dmarea:50,speedplus:1,fontsize:1,fullscreensync:!0,speedsync:!1,fontfamily:n.X.linux.alike?"'Noto Sans CJK SC DemiLight'":"SimHei, 'Microsoft JhengHei'",bold:!n.X.iOS.alike,fontborder:0,seniorModeSwitch:0,dmdensity:1},basEditorData:{},audioEffect:null,boceTimes:[],interaction:{rookieGuide:null,showedDialog:!1},iswide:null,widesave:null,subtitle:{fade:a.a.fade,scale:a.a.scale,fontsize:a.a.fontsize,opacityNew:a.a.opacityNew,bilingual:a.a.bilingual,color:a.a.color,shadow:a.a.shadow,position:a.a.position},translation:{showBubbleTypes:[]},progress:{precisionGuide:null,pbpstate:!0,pinstate:!1},panorama:!0,ksInfo:{ts:0,kss:null},householdBroadToastShowDate:null,exp:{}}}},63188:function(t,e,i){"use strict";i.d(e,{Rr:function(){return o},YY:function(){return n},cy:function(){return r},iX:function(){return a}});var n=(t=>(t[t.prev=0]="prev",t[t.next=1]="next",t))(n||{}),r=(t=>(t.dm="dm",t.more="more",t))(r||{}),o=(t=>(t.show="show",t.click="click",t))(o||{}),a=(t=>(t[t.PanStart=0]="PanStart",t[t.Paning=1]="Paning",t[t.PanEnd=2]="PanEnd",t))(a||{})},2821:function(t,e,i){"use strict";i.d(e,{JU:function(){return O},uw:function(){return U},X8:function(){return P}});var n=i(65340),r=i(37039),o=i(51102),a=i(82889),s=i(62566),l=i(65814),A=i(1291),c=i(47450),h=i(96001),d=i(54981),u=i(65610),p=i(22513),g=i(76173),f=i(416),m=i.n(f),y=i(83370),b=i(20094),v=i(78814),E=i(24343),I=i(11973),C=i(33890),B=i(92452),w=i(95999),x=i(85077),Q=i(43122),S=i(30421),k=i(32502);var D=i(22451),_=Object.defineProperty,R=Object.getOwnPropertyDescriptor,M=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?R(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&_(e,i,o),o};class T extends n.f{constructor(t){super(t),
this.tag="ConfigAtom",this.debug={},this.reload={},this.primary={},this.validKeys=new Set(["p","aid","cid","bvid","seasonId","episodeId"]),this.tmp={},(0,D.rC)(this),(0,D.z)((()=>{this.debug=this.rootPlayer.searchParam,this.primary=(0,I.i)(this.rootPlayer.input)}))}get iScreenKind(){var t;return null!=(t=this.primary.screenKind)?t:d.dY.Normal}get iAutoplay(){return null!=this.debug.autoplay?this.debug.autoplay?U.Play:U.Pause:null==this.reload.autoplay?U.Unset:this.reload.autoplay?U.Play:U.Pause}get iMuted(){return this.primary.muted}get iQuality(){const{configStore:t}=this.rootStore,e=this.iKind===d.HR.Manager||t.isChannel(d.u5.Manager),i=function(t,e,i){var n,o;let a=null,s=null,l=()=>{if(!s)try{s=(0,x.m)(localStorage,t)}catch(t){}return s},A=Q.nJ.normalize(e),c=h.IL.Default,d=A;if(null==e||isNaN(A)){a=b.get(g.CQ);const t=null==(o=null==(n=l())?void 0:n.media)?void 0:o.quality;A=a?Q.nJ.normalize(a)||S.yE:Q.nJ.normalize(t)||S.yE,d=Math.max(Q.nJ.normalize(t)||S.yE,A),!i&&!(0,k.s)()&&A>Q.nJ.gt.login&&(A=d=S.yE)}A>Q.nJ.gt.mseSupported&&!(0,r.a)()&&(A=d=Q.nJ.gt.mseSupported);try{const t=l();if(t&&t.media){const e=t.media.audioQuality,i=t.media.dolbyAudio;null!=e?c=+e:i&&(c=h.IL.Dolby)}}catch(t){}return{aq:c,vq:A,maxVq:d}}(this.storageKey,this.reload.quality,e);return t.isPcApp&&(i.vq=i.maxVq),i}get iKind(){var t;return null!=(t=this.reload.kind)?t:d.HR.Ugc}get iLanguage(){try{if(!this.rootStore.userStore.isLogin||this.rootStore.configStore.pcSpecialMode)return w.S.ORIGIN;return b.get(g.gb)||w.S.ORIGIN}catch(t){}return w.S.ORIGIN}get storageKey(){return this.primary.storageKey||g.ul}get csource(){return this.primary.csource}setReloadConfig(){const{uiStore:t,configStore:e}=this.rootStore;this.reload=(0,I.s)(this.rootPlayer.input),t.setState({kind:this.iKind}),null!=this.iAutoplay&&(this.log.i("[InitialPlaybackState]",this.iAutoplay),e.setState({ips:this.iAutoplay}))}setEpConfig(t){Object.keys(t).forEach((e=>{this.reload[e]=t[e]}))}setPatchAdvReload(){this.reload=(0,I.s)(this.rootPlayer.input)}fixCompleteId(t){const{configStore:e,httpStore:i}=this.rootStore,n=i.getViewKind(),r=()=>{this.rootStore.stageAtom.set(C.y.View_Tail),e.setState({isCompleteIdEnded:!0})},o=()=>this.log.e("视频参数异常");(()=>{this.rootStore.stageAtom.set(C.y.View_Head)})(),n.isFatalError&&o(),n.isMissing?(i.fetchViewInfo(!0).then((e=>{e&&e.body&&t(e.body),r()})).catch((t=>{B.eV.isCanceled(t)||r()})),e.setState({isRequestId:!0})):(this.log.i("视频参数正常"),r())}cleanSessionConfig(t){if(this.rootPlayer.input&&"object"==typeof this.rootPlayer.input){const e=(0,I.s)({});Object.keys(e).forEach((t=>{e[t]=null}));const i={kind:this.reload.kind,seasonType:this.reload.seasonType,controlsList:this.reload.controlsList};Object.assign(this.rootPlayer.input,e,i,t)}}resetSessionData(){this.tmp.pid=null,this.tmp.session=null}fillStoryId(){this.fixCompleteId((t=>{t&&Object.keys(t).forEach((e=>{this.validKeys.has(e)&&(this.reload[e]=t[e])}))}))}cleanPrefetchData(){if(this.debug.no_cache){for(const t in this.rootPlayer.cd)Object.prototype.hasOwnProperty.call(this.rootPlayer.cd,t)&&delete this.rootPlayer.cd[t];return console.warn("Prefetch has been disabled"),!0}return!1}injectGlobalPlayer(t=100){let e=this.debug.ns,i=0;if(e&&isNaN(+e)){for(;null!=window[e]&&(i++,!(i>t));)e=this.debug.ns+i;null==window[e]?(window[e]=this.rootPlayer,this.tmp.name=e,console.log(this.tag,"GlobalPlayerName:",e)):console.warn(this.tag,"Inject Failed")}}onDisconnect(){super.onDisconnect(),this.tmp.name&&delete window[this.tmp.name]}}M([D.LO.shallow],T.prototype,"debug",2),M([D.LO.shallow],T.prototype,"reload",2),M([D.LO.shallow],T.prototype,"primary",2),M([D.aD],T.prototype,"setReloadConfig",1),M([D.aD],T.prototype,"setEpConfig",1),M([D.aD],T.prototype,"setPatchAdvReload",1);var F=i(91167),L=i.n(F),N=i(89965),P=(t=>(t[t.Paused_Auto=0]="Paused_Auto",t[t.Always_Show=1]="Always_Show",t[t.Paused_Show=2]="Paused_Show",t))(P||{}),U=(t=>(t[t.Unset=0]="Unset",t[t.Play=1]="Play",t[t.Pause=2]="Pause",t))(U||{});class O extends n.u{constructor(t){super(t),this.tag="ConfigStore",this.appId=100,this.configAtom=new T(t),this.tmp.mseSupported=(0,r.a)(),(o.X.iPad.alike||o.X.tesla.alike)&&this.pointingDevice.set(h.ao.Touch),(0,a.M)(this.rootPlayer.theme),this.revision?this.nodes.container.setAttribute("data-revision",`${this.revision}`):this.nodes.container.removeAttribute("data-revision"),this.isChannel(d.u5.Embedded)||this.isChannel(d.u5.Embedded_White)||this.isChannel(d.u5.Embedded_Other)?this.nodes.container.classList.add(`${u.m}-embedded`):this.nodes.container.classList.remove(`${u.m}-embedded`);const e=this.isChannel(d.u5.PC_APP)?"add":"remove";this.nodes.container.classList[e](`${u.m}-pc-app`);const i=this.isChannel(d.u5.Mini_Site)?"add":"remove";this.nodes.container.classList[i](`${u.m}-mini-site`);const n=this.isChannel(d.u5.Gamecenter)?"add":"remove";this.nodes.container.classList[n](`${u.m}-game-center`)}get defaultState(){return{ips:0,ctrl:E.A.Auto,isRequestId:!1,isCompleteIdEnded:!1}}get storageKey(){return this.configAtom.storageKey}get iid(){return this.tmp.iid||(this.tmp.iid="0",this.primary.iid&&(this.tmp.iid=this.primary.iid.toString())),this.tmp.iid}get csource(){return this.configAtom.csource}get fullWrap(){return this.primary.fullWrap}get element(){return this.primary.element}get auxiliary(){return this.primary.auxiliary||null}get mntAuxSender(){if(this.primary.mntAuxSender){if("string"==typeof this.primary.mntAuxSender){const t=this.rootStore.nodes.container.querySelector(this.primary.mntAuxSender);return t&&(this.primary.mntAuxSender=t),t}return this.primary.mntAuxSender}return this.rootStore.nodes.controlBottomCenter}get mntAuxConfig(){return this.primary.mntAuxConfig?this.primary.mntAuxConfig:this.primary.mntAuxConfig={}}get channelKind(){var t;return null!=(t=this.primary.channelKind)?t:d.u5.Default}get hideBoxShadow(){return!!this.primary.hideBoxShadow}get errorUrl(){return"string"==typeof this.primary.errorUrl?this.primary.errorUrl.replace(/^https?:/,""):p.Ml}get enableHEVC(){if(this.invalidGPU)return!1;const t=this.kvStore.state.dashConfig.enable_hevc||"1";return(!t||0!==parseInt(t))&&!!this.primary.enableHEVC}get enableAV1(){const t=this.kvStore.state.dashConfig.enable_av1||"1";return(!t||0!==parseInt(t))&&!!this.primary.enableAV1}get audioOnlyStartup(){if(this.isChannel(d.u5.PC_APP)||this.uiStore.kind!==d.HR.Ugc)return!1;if(!this.expStore.onlyAudioEnabled)return!1;const t=this.kvStore.state.dashConfig.audio_only_config;return!!(t&&t.enabled&&t.audio_only_startup)&&this.audioTime>0}get audioTime(){if(this.isChannel(d.u5.PC_APP)||this.uiStore.kind!==d.HR.Ugc)return 0;const t=this.kvStore.state.dashConfig.audio_only_config;if(!t||!t.enabled)return 0;const e=Number(t.default_time);try{const e=t.rules||[];e.sort(((t,e)=>t.priority-e.priority));const i=String(this.userStore.mid||""),n=String(this.userStore.buvid||""),r=i?m()(i):"";for(const t of e){if("mid"===t.id&&r)for(const e in t.match)if(Array.isArray(t.match[e])&&t.match[e].indexOf(r)>-1)return this.log.i("audioTime hit mid rule, time:",+e),+e;if("buvid"===t.id&&n)for(const e in t.match)if(Array.isArray(t.match[e])&&t.match[e].indexOf(n)>-1)return this.log.i("audioTime hit buvid rule, time:",+e),+e;if("ua"===t.id){const{type:e}=o.X.getCurrentBrowserAndOS();for(const i in t.match)if(Array.isArray(t.match[i])&&t.match[i].indexOf(e)>-1)return this.log.i("audioTime hit ua rule, browser:",e,"time:",+i),+i}}}catch(t){this.log.e("audioTime config parse error",t)}return e>0?e:0}get enableWMP(){return this.enableHEVC&&!!this.primary.enableWMP}get revision(){return+this.primary.revision}get ctrl(){switch(+this.primary.ctrl){case 0:case 2:case 1:return+this.primary.ctrl;default:return 0}}get embeddedEnv(){switch(this.channelKind){case d.u5.Embedded:return h.vt.Embedded;case d.u5.Embedded_White:return h.vt.White;case d.u5.Embedded_Other:return h.vt.Other;default:return h.vt.Nomal}}get businessEmbedMode(){return!!this.primary.businessEmbededMode}get businessShowDmSwitch(){return!!this.primary.businessShowDmSwitch}get p(){return+this.reload.p||1}get t(){return null!=this.ndb.t?(0,s.o)(this.ndb.t):this.fromDid||null==this.reload.t?null:(0,s.o)(this.reload.t)}get homepageT(){
const t=this.configStore.spmIdFrom;if("333.1007"===this.parseSpmidFrom(t)){const t=this.ndb.t||this.reload.t;if(t)return(0,s.o)(t)}return null}get extraEPInfo(){return this.reload.extraEPInfo||null}get viewInfo(){return this.reload.viewInfo||null}get aid(){return+this.reload.aid||null}get cid(){return+this.reload.cid||null}get bvid(){return this.reload.bvid||null}get localUrl(){return this.reload.localUrl||null}get fromLocalCache(){return this.isChannel(d.u5.PC_APP)&&!!this.reload.localCache}get seasonId(){return+this.reload.seasonId||null}get episodeId(){return+this.reload.episodeId||null}get stats(){return this.reload.stats?this.reload.stats:this.reload.stats={}}get fromDid(){return this.reload.replyDid?this.reload.replyDid:this.reload.fromDid}get replyDid(){return this.reload.replyDid}get httpQuery(){return this.reload.httpQuery?this.reload.httpQuery:this.reload.httpQuery={}}get controlsList(){const t=this.reload.controlsList;return(0,v.Z)(t)?t:Array.isArray(t)?this.reload.controlsList=new Set(t):this.reload.controlsList=new Set}get seasonType(){return+this.reload.seasonType||0}get hasPrev(){return null==this.reload.hasPrev?null:!!this.reload.hasPrev}get hasNext(){return null==this.reload.hasNext?null:!!this.reload.hasNext}get poster(){return!!this.reload.poster}get seekUpdateMode(){return this.reload.seekUpdateMode||"deferred"}get playlistId(){return this.reload.playlistId}get playlistType(){return this.reload.playlistType}get trackId(){return this.stats.trackId}get preliminaryReview(){return this.localUrl&&this.isChannel(d.u5.Manager)}get tmp(){return this.configAtom.tmp}get primary(){return this.configAtom.primary}get reload(){return this.configAtom.reload}get interactiveConfig(){return this.primary.interactiveConfig||{}}get graphVersion(){var t;return null==(t=this.primary.interactiveConfig)?void 0:t.graphVersion}get edgeId(){var t;return null==(t=this.primary.interactiveConfig)?void 0:t.edgeId}get ndb(){return this.configAtom.debug}get pid(){return this.tmp.pid||(this.tmp.pid=(0,l.M)()),this.tmp.pid}set session(t){t&&(this.tmp.session=t)}get session(){return this.tmp.session||(this.tmp.session=m()(O.getRandomString())),this.tmp.session}get mseSupported(){return this.tmp.mseSupported}get invalidGPU(){if(this.ndb.no_gpu)return!0;if(null==this.tmp.invalidGPU){const t=(0,A.tv)(g.Om)||"";this.tmp.invalidGPU=/Vulkan/i.test(t)}return this.tmp.invalidGPU}get pointingDevice(){return this.tmp.pointingDevice||(this.tmp.pointingDevice=new c.d9(h.ao.Default)),this.tmp.pointingDevice}get spmId(){return this.stats.spmId}get spmIdFrom(){return this.stats.spmIdFrom}get bSource(){return this.stats.bSource}get referrer(){return"string"==typeof this.stats.referrer?this.stats.referrer:document.referrer}get spmIdFromOuter(){return this.stats.spmIdFromOuter}get noDanmaku(){return this.rootPlayer.hasFeature("noDanmaku")}get outSideReload(){return this.rootPlayer.hasFeature("outSideReload")}get hasAdvPermission(){return this.rootPlayer.hasFeature("hasAdvPermission")}get noVTHistory(){return this.rootPlayer.hasFeature("noVTHistory")}get onlyTouchMode(){return this.pointingDevice.isOnlyAllow(h.ao.Touch)}get requestConfig(){return this.primary.requestConfig?this.primary.requestConfig:{}}get pcSpecialMode(){var t;return null==(t=this.primary)?void 0:t.pcSpecialMode}get isPcApp(){return this.isChannel(d.u5.PC_APP)}get statisticsReport(){let t={appId:100,platform:5,abtest:"",version:""};return this.configStore.isPcApp&&(t.appId=112,o.X.iOS.alike?t.platform=8:o.X.linux.alike?t.platform=9:t.platform=4),JSON.stringify(t)}get dmReportExtra(){const t={fid:this.trackStore.getFid(),version:this.portStore.metadata.version,revision:this.portStore.metadata.revision};return JSON.stringify(t)}get loadedIssueTime(){var t,e;if("number"==typeof this.primary.loadedIssueTime){const i=this.primary.loadedIssueTime,n=performance.now(),r=(n-((null==(e=null==(t=this.rootStore.stageAtom.getTiming())?void 0:t.timing)?void 0:e.approxStart)||n)||0)/1e3,o=1;return Math.max(Math.ceil(i-r+o),0)}return 15}get reloadQuality(){return"number"!=typeof this.reload.quality||isNaN(this.reload.quality)?null:+this.reload.quality}static buvid(){return b.get("buvid3")}static getRandomString(){return(b.get("buvid3")||Math.floor(1e5*Math.random()).toString(16))+Date.now()}onStateCreated(){super.onStateCreated(),this.configAtom.setReloadConfig();const t=this.configAtom.iQuality,e=this.configAtom.iLanguage;this.log.i("[onStateCreated]",JSON.stringify(t)),this.qualityStore.setState({nowAudio:t.aq,newAudio:t.aq,reqAudio:t.aq,nowQuality:t.vq,newQuality:t.vq,reqQuality:t.vq}),this.auxStore.setState({isListSpread:!!this.mntAuxConfig.isTabListOpen,disableListSwitch:!!this.mntAuxConfig.isUserSwitchingDisabled}),this.portStore.reqStatue(this.configAtom.iScreenKind),this.translationStore.setState({curLanguage:e,reqLanguage:e}),null!=this.configAtom.iMuted&&this.settingStore.setMuted(this.configAtom.iMuted),null!=this.ndb.ctrl?this.setState({ctrl:this.ndb.ctrl%2?E.A.Show:E.A.Hide}):1===this.ctrl&&this.setState({ctrl:E.A.Show})}onMount(){super.onMount(),this.injectFnVal()}onNavigate(){if(super.onNavigate(),this.reload.quality){const t=this.configAtom.iQuality;this.log.i("[onNavigate]",JSON.stringify(t),"quality:",this.configStore.reload.quality),this.qualityStore.setState({newAudio:t.aq,reqAudio:t.aq,newQuality:t.vq,reqQuality:t.vq})}}onCommitted(){super.onCommitted(),this.configAtom.cleanPrefetchData(),this.configAtom.injectGlobalPlayer(),this.configAtom.fillStoryId()}has(t){return null!=this.rootPlayer.input[t]}remove(t){if("cid"===t)this.reload[t]=null}isChannel(...t){return t.some((t=>t===this.channelKind))}isCreator(){return this.isChannel(d.u5.Creator)}enableLoudness(){try{if("function"==typeof L().getFawkesConfigValue){const t="dash_config",e="loudness_enable",i=+L().getFawkesConfigValue(t,e);return i>=1||Math.random()<i}}catch(t){}return!1}setEpConfig(t){this.configAtom.setEpConfig(t)}startReloadParser(t){this.configAtom.cleanSessionConfig(t),this.configAtom.resetSessionData(),this.configAtom.setReloadConfig()}startAdvPatchParser(t){Object.assign(this.rootPlayer.input,t),this.configAtom.setPatchAdvReload()}updateRequestConfig(t){Object.assign(this.primary.requestConfig,t)}injectFnVal(){const t=y.xL.getFnVal({mseSupported:this.mseSupported,enableHEVC:this.enableHEVC,enableAV1:this.enableAV1});(0,N.d)(g.CU,t.toString(),this.rootPlayer)}parseSpmidFrom(t){if(!t||"string"!=typeof t)return"";try{return t.split(".").splice(0,2).join(".")}catch(t){return""}}onDispose(){super.onDispose({ctrl:1})}}},24343:function(t,e,i){"use strict";i.d(e,{A:function(){return h},a:function(){return d}});var n=i(65340),r=i(40898),o=i(2821),a=i(22451),s=i(89262),l=Object.defineProperty,A=Object.getOwnPropertyDescriptor,c=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?A(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&l(e,i,o),o},h=(t=>(t[t.Auto=0]="Auto",t[t.Hide=1]="Hide",t[t.Show=2]="Show",t))(h||{});class d extends n.u{constructor(t){super(t),this.tag="CtrlStore",this.delayShowTimer=null,this.virtualHoverTimer=null,this.clientRect=null,this.clientRectRefresh=0,(0,a.rC)(this)}get defaultState(){return{containerFocus:!0,containerHover:!0,majorVirtualHover:0,majorHovered:!1,majorHidden:!1,majorTitle:null}}get ctrlHidden(){return this.isCtrlHidden()}get mouseHidden(){return this.ctrlHidden&&this.danmakuStore.state.noStopDm&&1!==this.interactStore.state.ctrl}get title(){return this.state.majorTitle}isCtrlHidden(){if(!this.errorStore.state.initError)switch(this.interactStore.state.ctrl){case 1:return!0;case 2:return!1}switch(this.configStore.state.ctrl){case 1:return!0;case 2:return!1}if(!this.mediaStore.state.firstPlay){if(!this.mediaStore.autoplay)return!1;if(this.mediaStore.state.autoplayNotAllowed)return!1}return!this.state.majorHovered&&!this.state.majorVirtualHover&&((!this.uiStore.isFullView||!this.sendStore.state.focus)&&((!this.mediaStore.state.paused||this.configStore.ctrl!==o.X8.Paused_Show)&&this.state.majorHidden))}focus(t){this.clearVirtualHoverTimer(),this.setState({majorVirtualHover:t})}blur(){this.clearVirtualHoverTimer(),this.setState({majorVirtualHover:0})}onMount(){super.onMount(),
this.dc.ctrlHidden=(0,a.U5)((()=>this.ctrlHidden),(t=>{t?queueMicrotask((()=>this.rootPlayer.emit(r.t.Player_Hide_Controls,new CustomEvent(r.t.Player_Hide_Controls)))):queueMicrotask((()=>this.rootPlayer.emit(r.t.Player_Show_Controls,new CustomEvent(r.t.Player_Show_Controls))))})),this.configStore.embeddedEnv||(this.dc.firstPlayDelayed=(0,a.U5)((()=>this.mediaStore.state.firstPlay),(t=>{!t||this.delayShowTimer||this.isCtrlHidden()||this.setCtrlTimer(1e3)}),{fireImmediately:!0})),this.dc.firstPlay=(0,a.U5)((()=>this.mediaStore.state.firstPlay),(t=>{t&&this.setState({containerFocus:!0})}),{fireImmediately:!0}),this.dc.forceHidden=(0,a.U5)((()=>1===this.interactStore.state.ctrl),(t=>{this.nodes.controlWrap.hidden=t})),this.dc.virtualHover=(0,a.U5)((()=>this.state.majorVirtualHover),(t=>{t&&(this.clearVirtualHoverTimer(),this.virtualHoverTimer=window.setTimeout((()=>{this.setState({majorVirtualHover:0})}),t))})),this.addEvents()}addEvents(){this.nodes.container.addEventListener("mouseenter",this.onMouseEnterContainer),this.nodes.container.addEventListener("mouseleave",this.onMouseLeaveContainer),this.configStore.onlyTouchMode||(this.nodes.videoArea.addEventListener("mousemove",this.onMouseMoveMedia),this.nodes.videoArea.addEventListener("mouseleave",this.onMouseLeaveMedia)),this.nodes.controlWrap.addEventListener("mouseenter",this.onHoverEnter),this.nodes.controlWrap.addEventListener("mouseleave",this.onHoverLeave),this.nodes.topWrap.addEventListener("mouseenter",this.onHoverEnter),this.nodes.topWrap.addEventListener("mouseleave",this.onHoverLeave),this.rootStore.window.addEventListener("scroll",this.onContainerChanged),this.rootStore.window.addEventListener("click",this.onFocusChanged),this.rootStore.isEmbedSOP&&this.rootStore.parent.addEventListener("click",this.onFocusChanged),this.rootPlayer.on(r.t.Player_Container_Resize,this.onContainerChanged)}removeEvents(){this.nodes.container&&(this.nodes.container.removeEventListener("mouseenter",this.onMouseEnterContainer),this.nodes.container.removeEventListener("mouseleave",this.onMouseLeaveContainer)),this.nodes.videoArea&&(this.nodes.videoArea.removeEventListener("mousemove",this.onMouseMoveMedia),this.nodes.videoArea.removeEventListener("mouseleave",this.onMouseLeaveMedia)),this.nodes.controlWrap&&(this.nodes.controlWrap.removeEventListener("mouseenter",this.onHoverEnter),this.nodes.controlWrap.removeEventListener("mouseleave",this.onHoverLeave)),this.nodes.topWrap&&(this.nodes.topWrap.removeEventListener("mouseenter",this.onHoverEnter),this.nodes.topWrap.removeEventListener("mouseleave",this.onHoverLeave)),this.rootStore.window.removeEventListener("scroll",this.onContainerChanged),this.rootStore.window.removeEventListener("click",this.onFocusChanged),this.rootStore.parent.removeEventListener("click",this.onFocusChanged),this.rootPlayer.off(r.t.Player_Container_Resize,this.onContainerChanged)}onMouseMoveMedia(t){const e=t.clientY-this.getValidClientRect().top,i=this.uiStore.state.videoAreaHeight;e<0||e>i||(e<i/3||e>i/3*2?this.setCtrlTimer(3e3):this.setCtrlTimer(1e3))}onMouseLeaveMedia(t){this.setMajorHidden(!0)}clearCtrlTimer(){this.delayShowTimer&&(clearTimeout(this.delayShowTimer),this.delayShowTimer=null)}setCtrlTimer(t){this.setMajorHidden(!1),this.delayShowTimer=window.setTimeout((()=>{this.setMajorHidden(!0)}),t)}setMajorHidden(t){this.clearCtrlTimer(),this.setState({majorHidden:t})}onHoverEnter(){this.setState({majorHovered:!0})}onHoverLeave(){this.setState({majorHovered:!1})}onFocusChanged(t){t&&t.target&&this.nodes.container.contains(t.target)?(this.setState({containerFocus:!0}),this.panoramaStore.state.control&&this.panoramaStore.state.control.contains(t.target)?this.panoramaStore.setState({isActive:!0}):this.panoramaStore.setState({isActive:!1})):(this.setState({containerFocus:!1}),this.panoramaStore.setState({isActive:!1}))}onMouseEnterContainer(){this.setState({containerHover:!0})}onMouseLeaveContainer(){this.setState({containerHover:!1})}onContainerChanged(){this.clientRect=null}getValidClientRect(){const t=Date.now();return t-this.clientRectRefresh>12e4&&(this.clientRect=null),this.clientRect||(this.clientRect=this.nodes.container.getBoundingClientRect(),this.clientRectRefresh=t),this.clientRect}clearVirtualHoverTimer(){this.virtualHoverTimer&&(clearTimeout(this.virtualHoverTimer),this.virtualHoverTimer=null)}onDispose(){super.onDispose({containerFocus:1,containerHover:1,majorVirtualHover:1,majorHovered:1,majorHidden:1})}onDisconnect(){super.onDisconnect(),this.removeEvents(),this.clearCtrlTimer(),this.clearVirtualHoverTimer()}}c([a.Fl],d.prototype,"ctrlHidden",1),c([a.Fl],d.prototype,"mouseHidden",1),c([a.Fl],d.prototype,"title",1),c([s.ZP],d.prototype,"onMouseMoveMedia",1),c([s.ZP],d.prototype,"onMouseLeaveMedia",1),c([s.ZP],d.prototype,"onHoverEnter",1),c([s.ZP],d.prototype,"onHoverLeave",1),c([s.ZP],d.prototype,"onFocusChanged",1),c([s.ZP],d.prototype,"onMouseEnterContainer",1),c([s.ZP],d.prototype,"onMouseLeaveContainer",1),c([s.ZP],d.prototype,"onContainerChanged",1)},35668:function(t,e,i){"use strict";i.d(e,{N:function(){return y},d:function(){return m}});var n=i(65340),r=i(92452);class o extends r.eV{constructor(){super(...arguments),this.tag="HttpDmSetting",this.url="//api.bilibili.com/x/v2/dm/web/config"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var a=i(51324),s=i(54981),l=i(22451),A=Object.defineProperty,c=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,g=(t,e,i)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,f=(t,e)=>{for(var i in e||(e={}))u.call(e,i)&&g(t,i,e[i]);if(d)for(var i of d(e))p.call(e,i)&&g(t,i,e[i]);return t},m=(t=>(t[t.unset=0]="unset",t[t.normal=1]="normal",t[t.more=2]="more",t[t.most=3]="most",t))(m||{});class y extends n.u{constructor(){super(...arguments),this.onlineSet={},this.blockList=[],this.block2IO={dmSwitch:"dm_switch",aiSwitch:"ai_switch",aiLevel:"ai_level",typeTopBottom:"blocktop_bottom",typeScroll:"blockscroll",typeColor:"blockcolor",typeSpecial:"blockspecial",dmask:"dmask",opacity:"opacity",fontfamily:"fontfamily",bold:"bold",preventshade:"preventshade",fontborder:"fontborder",speedplus:"speedplus",speedsync:"speedsync",fontsize:"fontsize",fullscreensync:"screensync",dmarea:"dm_area_v2",dmdensity:"dm_density",type:"draw_type",seniorModeSwitch:"senior_mode_switch"}}get defaultState(){return((t,e)=>c(t,h(e)))(f({},(0,a.o)().dmSetting),{dmFresh:0,dmClear:0,dmSwitchOut:null,currentSet:null,seniorMode:!1,dmaskForce:!1})}get miniSet(){return this.configStore.isChannel(s.u5.Homepage)}get aiLevel(){return this.state.dmarea<100&&this.state.dmarea>0?3:3===this.state.dmdensity||2===this.state.dmdensity?2:1===this.state.dmdensity?3:void 0}onStateCreated(){if(super.onStateCreated(),this.miniSet)return void this.setState({typeTopBottom:!1,speedplus:.5});const t=this.rootStore.localStore.get();this.setState(f({},t.dmSetting))}onMounted(){super.onMounted(),this.dc.dmLocal=(0,l.EH)((()=>{var t;let e=this.dmSettingStore.state.dmSwitch;const i=this.dmSettingStore.state.dmSwitchOut;"boolean"==typeof i&&(e=i),this.setLocal({dmSwitch:e}),null==(t=this.dmSetting({dmSwitch:e}))||t.catch((()=>{this.track.e("danmuku_set_error",{type:0,value:e})}))}))}onlineSetting(t){this.miniSet||(this.onlineSet=t,this.setLocal(t))}setLocal(t){this.setState(t),this.localStore.set({dmSetting:t}),this.setState({currentSet:t})}dmSetting(t){let e={};if(Object.keys(t).forEach((i=>{void 0!==this.onlineSet[i]&&t[i]!==this.onlineSet[i]&&(this.onlineSet[i]=t[i],e[this.block2IO[i]]=t[i])})),Object.keys(e).length){e.ts=Date.now(),this.setTrack(e);const t=new o(this.rootPlayer),i=this.danmakuStore.dmTrack.dmSetIO||{all:0,err:0};return i.all++,this.danmakuStore.dmTrack.dmSetIO=i,t.r(e).catch((()=>(i.err++,this.danmakuStore.dmTrack.dmSetIO=i,Promise.reject())))}return null}
refresh(){this.dmSettingStore.setState({dmFresh:this.state.dmFresh+1})}setTrack(t){t.ai_level&&this.track.e("danmaku_ai_level",String(t.ai_level)),t.opacity&&this.track.e("danmaku_final_opacity",String(t.opacity)),t.speedplus&&this.track.e("danmaku_final_speed",String(t.speedplus)),t.fontsize&&this.track.e("danmaku_final_size",String(t.fontsize))}reportLocalDmSetting(){const t={},e=this.localStore.get().dmSetting||{};Object.keys(this.block2IO).forEach((i=>{void 0!==e[i]&&(t[i]=e[i])})),this.track.e("local_dm_setting",t)}onUnload(){this.reportLocalDmSetting()}onDispose(){super.onDispose(!0)}}},40636:function(t,e,i){"use strict";i.d(e,{d:function(){return y},X:function(){return m}});var n=i(65340),r=i(22451),o=i(80538),a=i(40898),s=i(54981),l=i(4627),A=1/0;var c=function(t){return t?(t=(0,l.Z)(t))===A||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var h=function(t){var e=c(t),i=e%1;return e==e?i?e-i:e:0};var d=function(t){return"number"==typeof t&&t==h(t)},u=i(8886),p=i(41330),g=i(33890),f=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),m=(t=>(t[t.Total=0]="Total",t[t.Auto=1]="Auto",t))(m||{});class y extends n.u{constructor(t){super(t),this.tag="EpisodeStore",this.reloadReferrer={},this.reloadDeferred=null}get defaultState(){return{hasPrev:null,hasNext:null,isRenewal:!1,isSameEpisode:!1,referrer:""}}get isFirst(){return this.state.isRenewal?1===this.rootStore.ding||2===this.rootStore.ding:1===this.rootStore.ding}onLoaded(t){super.onLoaded(t);const e={};null!=this.configStore.hasPrev&&(e.hasPrev=this.configStore.hasPrev),null!=this.configStore.hasNext&&(e.hasNext=this.configStore.hasNext),this.setState(e)}isSameSeason(){const t=this.reloadReferrer,e=this.configStore;if(t)if(e.state.isCompleteIdEnded){if(e.seasonId&&t.seasonId)return e.seasonId===t.seasonId;if(e.aid&&t.aid)return e.aid===t.aid;if(e.bvid&&t.bvid)return e.bvid===t.bvid}else this.log.e("Illegal call isSameSeason method");return null}reload(t,e,i){return f(this,null,(function*(){return this.log.i("[reload]",u.p`config:${t},alt:${i}`),clearTimeout(this.reloadTimer),this.track.e("reload_from",{source:0}),this.reloadDeferred&&(this.reloadDeferred=null),this.configStore.state.isCompleteIdEnded&&(this.reloadReferrer={aid:this.configStore.aid,cid:this.configStore.cid,bvid:this.configStore.bvid,seasonId:this.configStore.seasonId,episodeId:this.configStore.episodeId}),this.rootPlayer.connectDetails.starting&&(this.rootPlayer.emit(o.p.PLAYER_UNLOAD),this.rootPlayer.emit(o.p.PLAYER_UNLOADED),this.rootPlayer.emit(a.t.Player_Dispose,new CustomEvent(a.t.Player_Dispose))),yield new Promise((t=>{this.reloadTimer=window.setTimeout(t,1)})),this.rootStore.stageAtom.set(g.y.Reload_Head),this.reloadDeferred=this.rootPlayer.addDispose(new p.B),this.setState({isRenewal:!!(null==e?void 0:e.isRenewal),isSameEpisode:!!(null==e?void 0:e.isSameEpisode),referrer:(null==i?void 0:i.initiator)||""}),null!=t&&this.configStore.startReloadParser(t),this.dp.reloadAction&&this.dp.reloadAction(),this.dp.reloadAction=(0,r.gx)((()=>this.rootStore.isLoaded),(()=>this.reloadDeferred.resolve())),this.rootStore.changeP(),yield this.reloadDeferred.promise,!this.errorStore.state.initError}))}prev(t,e){return f(this,null,(function*(){yield this.goto(-1,!1,t,e)}))}next(t,e,i){return f(this,null,(function*(){yield this.goto(1,!1,t,e,i)}))}goto(t,e,i,n,r){return f(this,null,(function*(){let o=this.settingStore.state.handoff===s.ty.Auto;if(r||(o=!0),!d(t))throw new Error("The first argument MUST be an integer");this.rootPlayer.emit(a.t.Player_Handoff_Signal,new CustomEvent(a.t.Player_Handoff_Signal,{detail:{offset:t,absolute:e,config:i,alt:n,auto:o,cid:this.configStore.cid,epid:this.configStore.episodeId,listLoop:this.settingStore.state.listLoop}}))}))}onDisconnect(){super.onDisconnect(),clearTimeout(this.reloadTimer)}}},57370:function(t,e,i){"use strict";i.d(e,{wb:function(){return d},x5:function(){return c}});var n=i(65340),r=Object.defineProperty,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,A=(t,e)=>{for(var i in e||(e={}))a.call(e,i)&&l(t,i,e[i]);if(o)for(var i of o(e))s.call(e,i)&&l(t,i,e[i]);return t},c=(t=>(t[t.BUFFERING=300]="BUFFERING",t[t.CANT_INTRACTVIE_WITH_PROGRESS_BAR=301]="CANT_INTRACTVIE_WITH_PROGRESS_BAR",t[t.AV_NOT_SYNC=302]="AV_NOT_SYNC",t[t.DM_NOT_DISPLAY=303]="DM_NOT_DISPLAY",t[t.SHOW_ADV=304]="SHOW_ADV",t[t.INFINITY_LOADING=305]="INFINITY_LOADING",t[t.BLACKSCREEN=306]="BLACKSCREEN",t[t.OTHER=307]="OTHER",t[t.COLLECTION=308]="COLLECTION",t[t.CS_FEEDBACK=309]="CS_FEEDBACK",t[t.FIRST_FRAME_LOADING_FAILED=310]="FIRST_FRAME_LOADING_FAILED",t[t.VIDEO_CORRUPTION=311]="VIDEO_CORRUPTION",t[t.WEB_ERROR_LOG=312]="WEB_ERROR_LOG",t[t.CAMPUS_NET_CANNT_ACCESS=354]="CAMPUS_NET_CANNT_ACCESS",t[t.SKIP_HEAD_OR_TAIL_ERROR=553]="SKIP_HEAD_OR_TAIL_ERROR",t))(c||{});const h={7:"H.264",12:"H.265",13:"AV1"};class d extends n.u{constructor(){super(...arguments),this.tag="ScreenEventsStore",this.videoInfo={}}get defaultState(){return{position:null,dmList:[],saturate:100,brightness:100,contrast:100,changeColor:null,videoInfo:null,showIssue:!1,showColor:!1,showEffect:!1,showKeyBoard:!1,showVideoInfo:!1,showSubtitleIssue:!1,showIssueFrom:"default"}}setVideoInfo(t,e){this.videoInfo.info=t,this.videoInfo.type=e,this.state.showVideoInfo&&this.setState({videoInfo:A({},this.videoInfo)})}getVideoInfoItems(){const{type:t}=this.videoInfo;return this.generateVideoInfoItems(t)}getVideoInfo(){const{info:t,type:e}=this.videoInfo;return this.updateVideoInfoData(e,null==t?void 0:t.mediaInfo,null==t?void 0:t.statisticsInfo)}getDmByPosition(t){var e;return(null==(e=this.state.dmList)?void 0:e.length)&&this.setState({dmList:[]}),this.setState({position:t}),this.state.dmList}hideAllPopupPanel(){this.setState({showIssue:!1,showColor:!1,showEffect:!1,showKeyBoard:!1,showVideoInfo:!1,showSubtitleIssue:!1,showIssueFrom:"default"})}updateVideoInfoData(t,e,i){if(!e||!i)return[];if(0===Object.keys(e).length||0===Object.keys(i).length)return[];let n,r,o,a,s=e.width+" x "+e.height;"DashPlayer"===t?s+="@"+Number(e.fps).toFixed(3):(e.hasOwnProperty("sarNum")&&(s+=" [SAR "+e.sarNum+":"+e.sarDen+"]"),e.hasOwnProperty("sar")&&(s+=" [SAR "+e.sar+"]"));try{i.url&&(n=/https?:\/\/(.+?)\//.exec(i.url)[1],r=/^(https?|wss?)\:\/\/?/.exec(i.url)[1]),i.videoURL&&(o=/https?:\/\/(.+?)\//.exec(i.videoURL)[1]),i.audioURL&&(a=/https?:\/\/(.+?)\//.exec(i.audioURL)[1])}catch(t){n="",r=""}let l=i.droppedFrames+" / "+i.decodedFrames;const A=this.wmpStore.isUseWasmPlayer(this.mediaStore.video)?"DashPlayer + WasmPlayer":i.playerType;let c=[{name:"mimeType",data:e.mimeType},{name:"playerType",data:A},{name:"resolution",data:s},{name:"streamType",data:r},{name:"streamHost",data:n},{name:"droppedFrames",data:l}];if("NativePlayer"===t)return c;if("FlvPlayer"===t){const t=i.currentSegmentIndex+1+"/"+i.totalSegmentCount,n=e.profile+", L"+e.level;let r=e.audioSampleRate+" Hz";const o=e.audioChannelCount;r+=1===o?", Mono":2===o?", Stereo":", "+o+" Channels",e.metadata&&e.metadata.description&&(r+=e.metadata.description&&/fixed_gap:True/.test(e.metadata.description)?", Fixed":"");const a=e.videoDataRate,s=e.audioDataRate;c=c.concat([{name:"fps",data:Number(e.fps).toFixed(3)},{name:"videoProfile",data:n},{name:"audioSampling",data:r},{name:"videoDatarate",data:Math.round(a)+" Kbps"},{name:"audioDatarate",data:Math.floor(s)+" Kbps"},{name:"segments",data:t},{name:"loader",data:i.loaderType},{name:"connectionSpeed",data:Math.round(i.speed)}])}if("DashPlayer"===t){let t=e.audioSampleRate+" Hz";const n=e.audioChannelCount,r=e.videoCodecID,s=h[r]||"";t+=1===n?", Mono":2===n?", Stereo":", "+n+" Channels";const A=e.videoDataRate,d=e.audioDataRate;c.splice(3,3);const u=(i.audioCurrentSegmentIndex||1)+" / "+(i.audioTotalSegmentCount||0);c=c.concat([{name:"videoDatarate",data:Math.round(A/1e3)+" Kbps"+(s?` [${s}]`:"")},{name:"audioDatarate",data:Math.floor(d/1e3)+" Kbps"},{name:"segments",data:u},{
name:"droppedFrames",data:l},{name:"videoStreamHost",data:o},{name:"audioStreamHost",data:a},{name:"videoConnectionSpeed",data:Math.round(i.videoConnectionSpeed)},{name:"audioConnectionSpeed",data:Math.round(i.audioConnectionSpeed)},{name:"networkActivity",data:Math.round(i.networkActivity/1024)}])}return c}generateVideoInfoItems(t){return"NativePlayer"===t?{infos:[{name:"mimeType",type:"text",title:"Mime Type",data:""},{name:"playerType",type:"text",title:"Player Type",data:""},{name:"resolution",type:"text",title:"Resolution",data:""},{name:"streamType",type:"text",title:"Stream Type",data:""},{name:"streamHost",type:"text",title:"Stream Host",data:""},{name:"droppedFrames",type:"text",title:"Dropped Frames",data:""},{name:"Log",type:"log",title:"Log",data:""}]}:"DashPlayer"===t?{infos:[{name:"mimeType",type:"text",title:"Mime Type",data:""},{name:"playerType",type:"text",title:"Player Type",data:""},{name:"resolution",type:"text",title:"Resolution",data:""},{name:"videoDatarate",type:"text",title:"Video DataRate",data:""},{name:"audioDatarate",type:"text",title:"Audio DataRate",data:""},{name:"segments",type:"text",title:"Segments",data:""},{name:"videoStreamHost",type:"text",title:"Video Host",data:""},{name:"audioStreamHost",type:"text",title:"Audio Host",data:""},{name:"videoConnectionSpeed",type:"graph",title:"Video Speed",unit:"Kbps",data:0},{name:"audioConnectionSpeed",type:"graph",title:"Audio Speed",unit:"Kbps",data:0},{name:"networkActivity",type:"graph",title:"Network Activity",unit:"KB",data:0},{name:"droppedFrames",type:"text",title:"Dropped Frames",data:""},{name:"Log",type:"log",title:"Log",data:""}]}:{infos:[{name:"mimeType",type:"text",title:"Mime Type",data:""},{name:"playerType",type:"text",title:"Player Type",data:""},{name:"resolution",type:"text",title:"Resolution",data:""},{name:"fps",type:"text",title:"FPS",data:""},{name:"videoProfile",type:"text",title:"Video Profile",data:""},{name:"audioSampling",type:"text",title:"Audio Sampling",data:""},{name:"videoDatarate",type:"text",title:"Video DataRate",data:""},{name:"audioDatarate",type:"text",title:"Audio DataRate",data:""},{name:"segments",type:"text",title:"Segments",data:""},{name:"loader",type:"text",title:"Loader",data:""},{name:"streamType",type:"text",title:"Stream Type",data:""},{name:"streamHost",type:"text",title:"Stream Host",data:""},{name:"connectionSpeed",type:"graph",title:"Connection Speed",unit:"KB/s",data:0},{name:"droppedFrames",type:"text",title:"Dropped Frames",data:""},{name:"Log",type:"log",title:"Log",data:""}]}}onDispose(){super.onDispose({showVideoInfo:1})}}},36471:function(t,e,i){"use strict";i.d(e,{NZ:function(){return F},UK:function(){return N},OX:function(){return P},pS:function(){return L}});var n=i(65340),r=i(22451),o=i(43122),a=i(8886),s=i(41330),l=i(83370),A=i(46740),c=i(96001),h=i(30421),d=i(40898),u=i(76173),p=i(54981),g=i(20094),f=i(83899),m=i(91167),y=i.n(m),b=i(92452);class v extends b.eV{constructor(){super(...arguments),this.tag="HttpHouseholdBroadReport",this.url="//api.bilibili.com/x/vip/play_events/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,method:"POST",data:t,withCredentials:!0})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class E extends n.f{constructor(){super(...arguments),this.tag="QualityAtom"}getSwitchTimeout(){const{patchAdvStore:t}=this.rootStore;return t.isPlayingPatch()?40:20}switchProxy(){const{kernelStore:t,qualityStore:e}=this.rootStore,i=t.baseAgent,n=i&&i.kernelPlayer,r=e.state.newQuality;return i&&n?(i.kind===f.b.Dash?this.switchDash(i,n,r):this.switchFlv(i,n,r),!0):(this.log.w("[switchProxy]","kernel is not initialized"),!1)}triggerRequestedEvent(t){t.isAutomatic&&"video"===t.mediaType&&this.setAudioQuality(t.newQ),"video"===t.mediaType&&t.newQ===o.nJ.alias.AI_100&&this.rootPlayer.emit(d.t.Player_Ai_Animation_Triggered,new CustomEvent(d.t.Player_Ai_Animation_Triggered)),this.rootPlayer.emit(d.t.Player_Quality_Requested,new CustomEvent(d.t.Player_Quality_Requested,{detail:t}))}triggerRenderedEvent(t){this.rootPlayer.emit(d.t.Player_Quality_Rendered,new CustomEvent(d.t.Player_Quality_Rendered,{detail:t}))}computeAutoTopVideoQuality(){const{uiStore:t,userStore:e,qualityStore:i}=this.rootStore,n=t.kind===p.HR.Ugc?o.nJ.gt.ugcLogin:o.nJ.gt.login;let r=e.isLogin?i.ABRTopQualityLimit:n;return i.maxEmbeddedQn&&(r=i.maxEmbeddedQn),r}reportHouseholdBroadbandInfo(t){var e;const{configStore:i,userStore:n,mpdStore:r}=this.rootStore,o=null==(e=r.body)?void 0:e.supportFormats;if(!o||!o.length)return;const a=o.find((e=>e.quality===t));if(!a||a.canWatchQnReason!==l.C$.CICC_HOME_NETWORK)return;const{canWatchQnReason:s,report:A}=a,c=new v(this.rootPlayer),h=null==A?void 0:A.EXT_VIP_REPORT_PARAMS;c.r({epid:i.episodeId,platform:"web",qn:t,reason:s,cid:i.cid,report_params:h||"",user_agent:navigator.userAgent,buvid:n.buvid}).catch((()=>{}))}switchDash(t,e,i){const{uiStore:n,qualityStore:r,kernelStore:a,mpdStore:s,userStore:A}=this.rootStore;if(this.canDashSeamless(t.realVQ,i))if(0===i){const t=this.computeAutoTopVideoQuality(),n=A.isLogin?o.nJ.gt.abrMin:o.nJ.gt.ugcLogin;e.setAutoSwitchQualityFor("video",!0).setAutoSwitchTopQualityFor("video",t),e.setAutoSwitchLowestQualityFor("video",n),r.setRenderedQuality(null,i)}else{const n=r.loginKeepAuto;e.setAutoSwitchQualityFor("video",!1).setQualityFor("video",i,this.getSwitchTimeout()).then((a=>{if(n){const t=this.computeAutoTopVideoQuality();e.setAutoSwitchQualityFor("video",!0).setAutoSwitchTopQualityFor("video",t)}const s=a&&+a.newQualityNumber||t.realVQ||i;r.setRenderedQuality(null,n?o.nJ.alias.Auto:s)})).catch((t=>{const e=r.state.nowQuality,i=r.state.newQuality,n=a.baseAgent&&a.baseAgent.realVQ,o=t&&t.code;let s,l;this.log.w("[switchDashQualityForVideo]",`code:${o},nowQ:${e},newQ:${i},realQ:${n}`),o===y().ERROR_CODE.SET_QUALITY_RENDER_CHANGED?(s=t,l=n):0===e&&i&&i===n?(s=null,l=i):(s=t,l=e),i&&i===n&&(s=null,l=i),r.setRenderedQuality(s,l)})),this.setAudioQuality(i)}else i===o.nJ.alias.AI_100?s.fetchPlayUrl({qn:i,extra_qn:1},{initiator:l.ZX.Switch_Quality}):s.fetchPlayUrl({qn:i,try_look:+r.state.isTrialQuality},{initiator:l.ZX.Switch_Quality})}setAudioQuality(t){var e,i;const{mpdStore:n,kernelStore:r,qualityStore:a}=this.rootStore,s=null==(i=null==(e=n.body)?void 0:e.mediaDataSource)?void 0:i.url,l=r.dashKernel,A=a.realAQ,c=(()=>{var e,i;const n=o.nJ.alias,r=t<=n.SD_32?n.AQ_30216:t<n.FHD_80?n.AQ_30232:n.AQ_30280;return s&&"string"!=typeof s&&Array.isArray(s.audio)&&s.audio.length&&+((null==(e=s.audio.find((t=>t.id===r)))?void 0:e.id)||(null==(i=s.audio[0])?void 0:i.id))||n.AQ_30280})();l&&c!==A&&(a.state.nowAudio||(this.log.i("[switchDashQualityForAudio]",`nAQ:${A},tAQ:${c}`),l.setAutoSwitchQualityFor("audio",!1).setQualityFor("audio",c).catch((t=>{const e=t&&t.code;this.log.w("[switchDashQualityForAudio]",`code:${e},newAQ:${c},realAQ:${A}`)}))))}switchFlv(t,e,i){this.rootStore.mpdStore.fetchPlayUrl({qn:i},{initiator:l.ZX.Switch_Quality})}canDashSeamless(t,e){var i,n;const{kernelStore:r,qualityStore:a,wmpStore:s,mediaStore:l,mpdStore:A,uiStore:c}=this.rootStore,h=(()=>{try{const i=r.dashKernel;if(i){const n=i.getQualityList("video");let r=!1,o=!1;for(const i of n){const n=+i.id;isNaN(n)||(n===t&&(r=!0),n===e&&(o=!0))}return r&&o}return!1}catch(t){return this.log.e("[hasRealAndTargetQnInQualityList]",t&&t.message),!1}})(),d=(()=>{try{return"undefined"!=typeof SourceBuffer&&!!SourceBuffer.prototype&&"function"==typeof SourceBuffer.prototype.changeType}catch(t){return!1}})(),u=a.state.newAudio!==a.state.nowAudio,g=t===o.nJ.alias.UHD_HDR||t===o.nJ.alias.UHD_DVision||e===o.nJ.alias.UHD_HDR||e===o.nJ.alias.UHD_DVision,f=d&&h,m=s.isNeedSwitchBwpVideoTag(l.video,e,null==(n=null==(i=A.body)?void 0:i.mediaDataSource)?void 0:n.url);if(this.log.i("[canDashSeamless]",`newQ:${e},isSwitchAudio:${u},isUniqueCodec:${g},supportsChangeType:${d},canSwitchWithinCurrentDashManifest:${h},canNativeSpecialVideoSwitch:${f},isNeedSwitchBwpVideoTag:${m}`),u)return!1;if(0===e)return!0;if(g&&!f)return!1
;if(m)return!1;if(!h)return!1;switch(c.kind){case p.HR.Pgc:case p.HR.Ugc:case p.HR.Pugv:}return!0}}var I=Object.defineProperty,C=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,x=(t,e,i)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;const Q=new Set([1036]),S=[[1,11],[14,18]];function k(t,e,i,n,r,a){const s=((t,e)=>{for(var i in e||(e={}))B.call(e,i)&&x(t,i,e[i]);if(C)for(var i of C(e))w.call(e,i)&&x(t,i,e[i]);return t})({highGradeIdleABRTopLimit:o.nJ.alias.UHD_4K,highGradeBusyABRTopLimit:o.nJ.alias.UHD_4K,idleABRTopLimit:o.nJ.alias.FHD_116,busyABRTopLimit:o.nJ.alias.FHD_116,idleHours:S},r),l=null!=e?e:o.nJ.alias.UHD_4K,{cluster:A,suggestedTopLimit:c}=function(t){var e,i,n,r,a,s,l,A,c,h,d,u,p;const g=null==t?void 0:t.realtime,f=null==t?void 0:t.historyStats,m=1===(null==g?void 0:g.isVip),y=null!=(e=null==g?void 0:g.archiveTid)?e:0,b=null!=(i=null==f?void 0:f.autoSwitchHigherCount)?i:0,v=null!=(n=null==f?void 0:f.autoSwitchLowerCount)?n:0,E=null!=(a=null==(r=null==t?void 0:t.manualSwitch)?void 0:r.count)?a:0,I=null!=(l=null==(s=null==t?void 0:t.manualSwitch)?void 0:s.latestQn)?l:0,C=null!=(c=null==(A=null==t?void 0:t.manualSwitch)?void 0:A.latestFromQn)?c:0,B=null!=(d=null==(h=null==t?void 0:t.manualSwitch)?void 0:h.downgradeCount)?d:0;return 1003===y?{cluster:"D",suggestedTopLimit:o.nJ.alias.HD_64}:!m&&Q.has(y)?{cluster:"B",suggestedTopLimit:o.nJ.alias.FHD_80}:b>0&&B>0&&I>0&&C>0&&I<C?{cluster:"A",suggestedTopLimit:null!=(p=null==(u=null==t?void 0:t.manualSwitch)?void 0:u.topQn)?p:I}:0===b&&0===v&&E>0&&I>0?{cluster:"C",suggestedTopLimit:I}:{cluster:"N",suggestedTopLimit:o.nJ.alias.UHD_4K}}(t),h=function(t){var e;const i=null==t?void 0:t.manualSwitch;if(!i||0===i.count)return o.nJ.alias.UHD_4K;const n=Math.floor(Date.now()/1e3)-7776e3;return(null!=(e=i.latestTs)?e:0)<n?o.nJ.alias.UHD_4K:Math.max(i.topQn||o.nJ.alias.HD_64,o.nJ.alias.HD_64)}(t),{idleHours:d,highGradeIdleABRTopLimit:u,highGradeBusyABRTopLimit:p,idleABRTopLimit:g,busyABRTopLimit:f}=s,m=function(t){const e=(null==t?void 0:t.length)?t:S,i=(new Date).getHours();return e.some((([t,e])=>i>=t&&i<e))}(d),y=null!=i?i:o.nJ.alias.HD_64;let b;if(n){const t=m?u:p;b=Math.min(t,l)}else if("N"!==A)b=Math.min(l,c,h),(null==a?void 0:a.enableAutoQnAboveStart)||(b=Math.max(b,y));else{const t=m?h>g?h:g:f;b=Math.min(t,l)}return(null==a?void 0:a.enableAutoQnAboveStart)&&(b=Math.max(b,y)),b=Math.min(b,o.nJ.alias.UHD_4K),{topLimit:b,clusterType:A,deviceLimit:l,clusterLimit:c,manualLimit:h,idle:m}}var D=i(69676),_=i(89965),R=Object.defineProperty,M=Object.getOwnPropertyDescriptor,T=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?M(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&R(e,i,o),o},F=(t=>(t[t.Unused=0]="Unused",t[t.Using=1]="Using",t[t.Used=2]="Used",t))(F||{}),L=(t=>(t[t.ai=1]="ai",t[t.vipQn=2]="vipQn",t[t.strategy=3]="strategy",t))(L||{}),N=(t=>(t[t.unUsed=0]="unUsed",t[t.using=1]="using",t[t.used=2]="used",t[t.closed=3]="closed",t))(N||{});class P extends n.u{constructor(t){super(t),this.tag="QualityStore",this.switchingTimer=null,this.qualityDeferred=null,this.deviceSmoothLimit=o.nJ.alias.UHD_4K,this.switchOutProb=0,this.lastAbrTopLimitResult=null,(0,r.rC)(this),this.qualityAtom=new E(t)}get defaultState(){return{oldAudio:NaN,nowAudio:NaN,newAudio:NaN,reqAudio:c.IL.Default,oldQuality:NaN,nowQuality:NaN,newQuality:NaN,reqQuality:h.yE,oldRealQ:NaN,isTrialQuality:!1,isTrialSwitch:!1,trialInfo:{start:0,remainingTimes:0,timelength:0,trialable:!1,endToast:null,autoPanel:!1},vipQnTrialStatus:0,aiSwitchStatus:0,aiSwitchQualityTrialable:!1,aiTrialQnResourceInfo:{icon:"",start:0,timelength:0},banQualityToast:!1,strategyTrialInfo:{enabled:!1,autoSwitch:!1,trialProgressEnd:0,promptText:"",stuuid:""},banQnTimePeriodToast:!1,banFinalQnTimePeriodToast:!1,isLoginSwitch:!1,hasShownQualityNamingToast:!1}}get aiSwitchStatus(){return this.state.aiSwitchStatus}get aiSwitchQualityTrialable(){return this.state.aiSwitchQualityTrialable}get aiTrialQnResourceInfo(){return this.state.aiTrialQnResourceInfo}get vipQnTrialStatus(){return this.state.vipQnTrialStatus}get formatPanel(){var t,e;return null==(e=null==(t=this.mpdStore)?void 0:t.body)?void 0:e.formatPanel}get flattenedFormatPanel(){var t,e,i,n,r;return[...null!=(i=null==(e=null==(t=this.formatPanel)?void 0:t.groups)?void 0:e.items)?i:[],...null!=(r=null==(n=this.formatPanel)?void 0:n.items)?r:[]]}getSupportedQualitiesFromVipVisionGroup(){var t,e,i;const n=null!=(i=null==(e=null==(t=this.formatPanel)?void 0:t.groups)?void 0:e.items)?i:[];return this.portStore.getSupportedQualityListByFormatPanel({formats:n.map((t=>({quality:t.quality,codecs:t.codecs})))})}get needVipVisionPanel(){const t=this.getSupportedQualitiesFromVipVisionGroup();return(null==t?void 0:t.length)>0}get filteredVipVisionPanel(){var t,e,i;if(!this.needVipVisionPanel)return;const n=this.getSupportedQualitiesFromVipVisionGroup();return null==(i=null==(e=null==(t=this.formatPanel)?void 0:t.groups)?void 0:e.items)?void 0:i.filter((t=>null==n?void 0:n.includes(t.quality)))}get isAutoQ(){const t=this.state.nowQuality,e=this.state.newQuality;if(0===t){if(isNaN(e)||e===t)return!0}else if(isNaN(t)&&0===e)return!0;return!1}get quality(){return isNaN(this.state.nowQuality)?this.state.newQuality:this.state.nowQuality}get realQ(){return this.kernelStore.baseAgent?this.kernelStore.baseAgent.realVQ:NaN}get realTopVideoQn(){return this.kernelStore.baseAgent?this.kernelStore.baseAgent.realTopVQ:NaN}getQualityName(t){var e,i;const n=((null==(i=null==(e=this.mpdStore)?void 0:e.body)?void 0:i.supportFormats)||[]).find((e=>e.quality===t));if(n)return n.newDescription;return o.nJ.item(t).name}getQualitySubtitle(t){var e,i;const n=((null==(i=null==(e=this.mpdStore)?void 0:e.body)?void 0:i.supportFormats)||[]).find((e=>e.quality===t));return null==n?void 0:n.subtitle}get getVipQnTrialStart(){return this.qualityStore.state.trialInfo.start}get getVipQnTrialAutoPanel(){var t;return(null==(t=this.qualityStore.state.trialInfo)?void 0:t.autoPanel)||!1}get getVipQnTrialTimelength(){var t,e;return null==(e=null==(t=this.qualityStore.state)?void 0:t.trialInfo)?void 0:e.timelength}get realAQ(){return this.kernelStore.baseAgent?this.kernelStore.baseAgent.realAQ:NaN}get requestQ(){return isNaN(this.state.reqQuality)?h.yE:this.state.reqQuality}get isSwitching(){const t=isNaN(this.state.newAudio),e=isNaN(this.state.nowAudio),i=isNaN(this.state.newQuality),n=isNaN(this.state.nowQuality),r=this.state.newAudio===this.state.nowAudio,o=this.state.newQuality===this.state.nowQuality;return!(t||e||i||n)&&(!r||!o)}get maxEmbeddedQn(){switch(this.configStore.embeddedEnv){case c.vt.White:return o.nJ.gt.whiteEmbedded;case c.vt.Other:return o.nJ.gt.otherEmbedded;default:return null}}onMount(){super.onMount(),this.dc.switching=(0,r.U5)((()=>this.isSwitching),(t=>{t&&this.switchProxy()}),{fireImmediately:!0}),this.dc.cacheQuality=(0,r.U5)((()=>({a:this.state.nowAudio,q:this.state.nowQuality})),(t=>{isNaN(t.a)||isNaN(t.q)||this.rootPlayer.emit(d.t.Player_Quality_Changed,new CustomEvent(d.t.Player_Quality_Changed))})),this.dc.abrLimitByUserLevel=(0,r.U5)((()=>this.userStore.isSuperUser&&this.userStore.isLogin),(()=>{const t=this.kernelStore.baseAgent,e=t&&t.kernelPlayer;if(t&&e&&t.kind===f.b.Dash&&this.state.nowQuality===o.nJ.alias.Auto){this.userStore.isSuperUser||e.setAutoSwitchTopQualityFor("video",o.nJ.alias.FHD_80)}}),{fireImmediately:!0}),this.dc.reqAudio=(0,r.U5)((()=>this.state.reqAudio),(t=>{isNaN(t)||this.localStore.set({media:{audioQuality:t}})})),this.dc.reqQuality=(0,r.U5)((()=>this.state.reqQuality),(t=>{var e;if(this.userStore){if(this.loginKeepAuto)return;if(o.nJ.isSuperQuality(t)&&this.hasAnyTrialAvailable)return;if(o.nJ.isSuperQuality(t)&&this.qualityStore.aiSwitchQualityTrialable)return;if(o.nJ.isSuperQuality(t)&&!this.userStore.isSuperUser&&(null==(e=this.userStore.info)?void 0:e.withoutVip))return}this.setLocalQuality(t)}),{fireImmediately:!0})}get loginKeepAuto(){const{nowQuality:t,isLoginSwitch:e,oldQuality:i,newQuality:n}=this.state;if(!isNaN(n)&&n>=o.nJ.alias.UHD_4K)return!1;const r=this.getQualitySupportFormatItem(n)
;return(null==r?void 0:r.canWatchQnReason)!==l.C$.CICC_HOME_NETWORK&&((t===o.nJ.alias.Auto||i===o.nJ.alias.Auto)&&e)}get hasAnyTrialAvailable(){return this.isCountBasedTrialAvailable||this.isTimeBasedTrialEnabled}get isCountBasedTrialAvailable(){var t,e;return(null==(t=this.state.trialInfo)?void 0:t.remainingTimes)&&(null==(e=this.state.trialInfo)?void 0:e.trialable)}get isTimeBasedTrialEnabled(){var t;return null==(t=this.state.strategyTrialInfo)?void 0:t.enabled}get isTimeBasedTrialProgressEnd(){var t;return null==(t=this.state.strategyTrialInfo)?void 0:t.trialProgressEnd}get isTimeBasedTrailAutoSwitch(){var t;return null==(t=this.state.strategyTrialInfo)?void 0:t.autoSwitch}get timeBasedTrialText(){var t;return null==(t=this.state.strategyTrialInfo)?void 0:t.promptText}get timeBasedTrialStuuid(){var t;return null==(t=this.state.strategyTrialInfo)?void 0:t.stuuid}get ABRTopQualityLimit(){var t,e,i;let n=o.nJ.gt.abrMax;try{const n=D.J.shared.getFullLocalUserPreference(),r=this.mpdStore.isHighGradeVideo,o=null==(e=null==(t=this.rootStore.kvStore.state)?void 0:t.dashConfig)?void 0:e.default_video_quality_cfg,a={enableAutoQnAboveStart:this.rootStore.expStore.enableAutoQnAboveStart},s=k(n,this.deviceSmoothLimit,(null==(i=null==n?void 0:n.realtime)?void 0:i.startupQualityNumber)||this.realQ||void 0,r,o,a);this.lastAbrTopLimitResult=s;const{topLimit:l,clusterType:A,deviceLimit:c,clusterLimit:h,manualLimit:d,idle:u}=s;return this.log.i("[ABRTopLimit]",`top:${l},cluster:${A},dev:${c},clu:${h},manual:${d},idle:${u},highGrade:${r}`),s.topLimit}catch(t){}return n}videoDataRateByQn(t){var e,i;const n=((null==(i=null==(e=this.rootPlayer.kernelStore)?void 0:e.dashKernel)?void 0:i.getQualityList("video"))||[]).find((e=>e.id===t+""));return(null==n?void 0:n.bitrate)/1e3||0}get videoSpeed(){var t,e,i,n;return(null==(n=null==(i=null==(e=null==(t=this.menuStore)?void 0:t.videoInfo)?void 0:e.info)?void 0:i.statisticsInfo)?void 0:n.speed)||0}setLocalQuality(t){const e=+t,i=null!=this.configStore.reloadQuality&&isNaN(this.state.oldRealQ);if(isNaN(e)||i)return;const n=g.get(u.CQ),r=this.localStore.get().media.quality;null!=n&&+n===e||(0,_.d)(u.CQ,e.toString(),this.rootPlayer),null!=r&&+r===e||this.localStore.set({media:{quality:e}})}switchProxy(){return this.qualityAtom.switchProxy()}requestQuality(t,e,i){return n=this,r=null,l=function*(){if(!this.configStore.isChannel(p.u5.Manager)&&!this.userStore.isLogin&&t>o.nJ.gt.login&&!this.state.isTrialQuality||this.maxEmbeddedQn&&t>this.maxEmbeddedQn){const t="Permission denied";throw this.log.w("[requestQuality]",t),new Error(t)}this.log.i("[requestQuality]",a.p`nvq:${t},naq:${+e},alt:${i}`);const n=this.rootPlayer.addDispose(new s.B);this.qualityDeferred&&(this.qualityDeferred=null),this.qualityDeferred=n;try{this.setRequestedQuality(t,null==e?null:+e)}catch(t){n.reject(t)}yield n.promise},new Promise(((t,e)=>{var i=t=>{try{a(l.next(t))}catch(t){e(t)}},o=t=>{try{a(l.throw(t))}catch(t){e(t)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,o);a((l=l.apply(n,r)).next())}));var n,r,l}getQuality(){return{oldA:this.state.oldAudio,nowA:this.state.nowAudio,newA:this.state.newAudio,oldQ:this.state.oldQuality,nowQ:this.state.nowQuality,newQ:this.state.newQuality,realQ:this.realQ,oldRQ:this.state.oldRealQ}}setRequestedQuality(t,e){const i=this.qualityAtom.getSwitchTimeout(),n="[setRequestedQuality]",r={audio:!0,video:!0};null==e&&(r.audio=!1);const o=this.state.nowAudio,a=this.state.nowQuality,s=null==t?a:+t,l=s===a,A=r.audio?+e:o;if(A===o&&(r.audio=!1),isNaN(s)&&(r.video=!1,!r.video&&!r.audio))throw new Error("Illegal argument");if(l&&(r.video=!1,!r.video&&!r.audio))throw new Error(`Same as current quality:${a},${o}`);if(clearTimeout(this.switchingTimer),r.video&&r.audio)this.log.i(n,"Request:A&V"),this.setState({newQuality:s,reqQuality:s,newAudio:A,reqAudio:A,oldRealQ:this.realQ}),this.qualityAtom.triggerRequestedEvent({mediaType:"audio",isAutomatic:!1,oldQ:o,newQ:A}),this.qualityAtom.triggerRequestedEvent({mediaType:"video",isAutomatic:!1,oldQ:a,newQ:s});else if(r.video)this.log.i(n,"Request:V"),this.setState({newQuality:s,reqQuality:s,oldRealQ:this.realQ}),this.qualityAtom.triggerRequestedEvent({mediaType:"video",isAutomatic:!1,oldQ:a,newQ:s});else{if(!r.audio){const t="Fatal error";throw this.log.e(n,t),new Error(t)}this.log.i(n,"Request:A"),this.setState({newAudio:A,reqAudio:A}),this.qualityAtom.triggerRequestedEvent({mediaType:"audio",isAutomatic:!1,oldQ:o,newQ:A})}this.switchingTimer=window.setTimeout((()=>{this.setRenderedQuality(new Error(`Timeout:${i}s`),this.state.nowQuality)}),1e3*i)}setRenderedQuality(t,e){const i="[setRenderedQuality]",n=()=>{var t,e;const i=this.kernelStore.dashKernel,n=this.mpdStore.body;if(i&&n){const r=i.getQualityFor("audio"),o=+i.getQualityNumberFromQualityIndex(r,"audio"),a=n.mediaDataSource.url,s=null==(t=null==a?void 0:a.dolby)?void 0:t.audio,l=null==(e=null==a?void 0:a.flac)?void 0:e.audio;if(Array.isArray(s))for(const t of s)if(+t.id===o)return c.IL.Dolby;if(l&&+l.id===o)return c.IL.Flac}return c.IL.Default},r=(()=>{const t="[setAudioQuality]",e=this.state.nowAudio,i=this.state.newAudio,r=n();if(e!==i){if(e===r)return this.log.e(t,`targetA:${r}`),this.setState({nowAudio:r,newAudio:r}),`Audio(type:${i}) maybe Unsupported or Unknown err`;this.log.i(t,`targetA:${r}`),this.setState({oldAudio:e,nowAudio:r,newAudio:r})}else this.log.i(t,`initialA:${r}`),this.setState({nowAudio:r,newAudio:r});return null})(),o=()=>this.qualityDeferred&&this.qualityDeferred.resolve(),s=t=>this.qualityDeferred&&this.qualityDeferred.reject(t),l=+e,A=this.state.nowQuality,h=this.state.newQuality,d=l===A;if(clearTimeout(this.switchingTimer),this.log.i(i,a.p`nVQ:${A},tVQ:${e},${t}`),isNaN(this.state.newQuality)||isNaN(this.state.newAudio)||isNaN(e)){const t="Lifecycle issue";return this.log.e(i,t),void s(new Error(t))}if(h===A){const t=this.state.oldAudio,e=this.state.nowAudio,n="string"==typeof r;if(this.log.i(i,d?"Only":"Extra","switch audio"),this.qualityAtom.triggerRenderedEvent({mediaType:"audio",isError:n,isAutomatic:!1,oldQ:t,newQ:e}),n?s(new Error(r)):o(),d)return}const u=(()=>t?(this.log.e(i,t.message),this.setState({nowQuality:A,newQuality:A}),t||new Error("Unknown")):isNaN(l)?(this.log.e(i,"targetQ:NaN"),this.setState({nowQuality:A,newQuality:A}),t||new TypeError("Rendered quality is not a number")):(d?(this.log.w(i,"targetQ same as nowQ"),this.setState({nowQuality:l,newQuality:l})):(this.log.i(i,`targetQ:${l}`),this.setState({oldQuality:A,nowQuality:l,newQuality:l})),null))(),p=this.state.oldQuality,g=this.state.nowQuality;this.qualityAtom.triggerRenderedEvent({mediaType:"video",isError:!!u,isAutomatic:!1,oldQ:p,newQ:g}),u?s(u):o()}requestVipPermission(t,e,i,n){const r=new A.d(this.rootPlayer),o={modify_type:t,biz_type:e};return i&&(o.st_uuid=i),n&&(o.aid=n),r.r(o)}reportHouseholdBroadbandInfo(t){this.qualityAtom.reportHouseholdBroadbandInfo(t)}getQualitySupportFormatItem(t){var e,i;if(!t)return null;const n=this.flattenedFormatPanel;for(const e of n)if(e.quality===t)return e;const r=(null==(i=null==(e=this.mpdStore)?void 0:e.body)?void 0:i.supportFormats)||[];for(const e of r)if(e.quality===t)return e;return null}onUnload(){this.qualityStore.hasAnyTrialAvailable&&o.nJ.isSuperQuality(this.state.reqQuality)&&this.setState({reqQuality:this.localStore.get().media.quality||o.nJ.alias.FHD_80}),this.qualityStore.aiSwitchQualityTrialable&&this.setState({reqQuality:this.localStore.get().media.quality||0}),super.onUnload()}onDispose(){super.onDispose({newAudio:1,reqAudio:1,newQuality:1,reqQuality:1}),clearTimeout(this.switchingTimer),this.switchingTimer=null}}T([r.Fl],P.prototype,"isSwitching",1),T([r.Fl],P.prototype,"maxEmbeddedQn",1),T([r.aD],P.prototype,"setRequestedQuality",1),T([r.aD],P.prototype,"setRenderedQuality",1)},67320:function(t,e,i){"use strict";i.d(e,{_k:function(){return p},hl:function(){return f},iW:function(){return g}});var n=i(65340),r=i(54981),o=i(30421),a=i(40898),s=i(76173),l=i(20094),A=i(22451),c=i(1291),h=i(4727),d=i(84585),u=i(89965),p=(t=>(t[t.DEF=0]="DEF",t[t.HEVC=1]="HEVC",t[t.AVC=2]="AVC",t[t.AV1=3]="AV1",t))(p||{}),g=(t=>(t[t.OFF=0]="OFF",t[t.STANDARD=1]="STANDARD",
t[t.DYNAMIC=2]="DYNAMIC",t))(g||{});class f extends n.u{get defaultState(){return{muted:!1,mirror:!1,lightOff:!1,autoplay:o.QP,hideBlackGap:!o.xw,volume:o.D2,playbackRate:1,aspectRatio:"0:0",codecType:0,handoff:r.ty.Auto,showSeek:!1,opEd:o.nG,loudness:0,listLoop:!1,loop:!1}}getRealVolume(){return this.state.muted?0:this.state.volume}onStateCreated(){super.onStateCreated(),this.rootPlayer.hasFeature("blackGap")?this.setState({hideBlackGap:this.localStore.get().media.hideBlackGap}):this.setState({hideBlackGap:!0}),this.setState({codecType:this.getLocalCodecType()})}onMount(){super.onMount(),this.addReactions()}onMounted(){super.onMounted();const t=this.localStore.get().media;this.setVolume(t.volume),this.setAutoplay(t.autoplay),this.setHandoff(t.handoff),this.setOpEd(t.opEd),this.setListLoop(t.listLoop),this.setLoop(t.loop);const e=this.rootStore.freeStore.audioAtom.defaultLoudnessOption(),i="number"==typeof t.loudnessSwitch?t.loudnessSwitch:e;this.setLoudness(i)}setBlackGapCookie(t){const e=String(+!this.state.hideBlackGap);(t||l.get(s.or)!==e)&&(0,u.d)(s.or,e,this.rootPlayer)}addReactions(){this.dc.loopAndEnded=(0,A.U5)((()=>this.state.loop),(t=>{t?(this.mediaStore.setState({ended:!1}),this.state.listLoop&&this.setListLoop(!1)):this.mediaStore.setState({ended:this.portStore.isEnded(!0)}),this.localStore.set({media:{loop:t}}),this.rootPlayer.emit(a.t.Player_LoopChange,new CustomEvent(a.t.Player_LoopChange))})),this.dc.mirror=(0,A.U5)((()=>this.state.mirror),(t=>{this.rootPlayer.emit(a.t.Player_MirrorChange,new CustomEvent(a.t.Player_MirrorChange))})),this.dc.aspectRatio=(0,A.U5)((()=>this.state.aspectRatio),(t=>{this.uiStore.resize(!1,!1),this.rootPlayer.emit(a.t.Player_AspectRatioChange,new CustomEvent(a.t.Player_AspectRatioChange))})),this.dc.lightOff=(0,A.U5)((()=>this.state.lightOff),(t=>{this.rootPlayer.emit(a.t.Player_LightOffChange,new CustomEvent(a.t.Player_LightOffChange))})),this.dc.hideBlackGap=(0,A.U5)((()=>this.state.hideBlackGap),(t=>{this.uiStore.resize(!1,!1),this.localStore.set({media:{hideBlackGap:t}}),this.setBlackGapCookie(!0),this.rootPlayer.emit(a.t.Player_BlackGapChange,new CustomEvent(a.t.Player_BlackGapChange,{detail:{blackGap:!t,mainScreen:this.uiStore.state.mainScreen,sideScreen:this.uiStore.state.sideScreen,screenKind:this.portStore.getScreenKind()}}))})),this.dc.autoplay=(0,A.U5)((()=>this.state.autoplay),(t=>{this.localStore.set({media:{autoplay:t}}),this.rootPlayer.emit(a.t.Player_AutoplayChange,new CustomEvent(a.t.Player_AutoplayChange))})),this.dc.handoff=(0,A.U5)((()=>this.state.handoff),(t=>{this.localStore.set({media:{handoff:t}}),this.rootPlayer.emit(a.t.Player_HandoffChange,new CustomEvent(a.t.Player_HandoffChange))})),this.dc.codecType=(0,A.U5)((()=>this.state.codecType),(t=>{this.setLocalCodecType(t),this.rootPlayer.emit(a.t.Player_PreferCodecChange,new CustomEvent(a.t.Player_PreferCodecChange))})),this.dc.opEd=(0,A.U5)((()=>this.state.opEd),(t=>{this.localStore.set({media:{opEd:t}}),this.rootPlayer.emit(a.t.Player_OpEdChange,new CustomEvent(a.t.Player_OpEdChange))})),this.dc.loudness=(0,A.U5)((()=>this.state.loudness),(t=>{this.localStore.set({media:{loudnessSwitch:+t}}),this.rootPlayer.emit(a.t.Player_LoudnessChange,new CustomEvent(a.t.Player_LoudnessChange))})),this.dc.volume=(0,A.U5)((()=>this.state.volume),(t=>{t?this.localStore.set({media:{volume:t,nonzeroVol:t}}):this.localStore.set({media:{volume:t}})})),this.dc.listLoop=(0,A.U5)((()=>this.state.listLoop),(t=>{t&&this.state.loop&&this.setState({loop:!1}),this.localStore.set({media:{listLoop:t}})}))}getLocalCodecType(){const t=+(0,c.tv)(s.uU);switch(t){case 0:case 1:case 2:case 3:return t;default:return 0}}setLocalCodecType(t){(0,c.co)(s.uU,String(t))}setLoop(t,e){this.setState({loop:!!t})}getLoop(){return this.state.loop}setMuted(t,e,i){if(this.mediaStore.video.muted=!!t,e){const e=this.mediaStore.video;e.volume=t?0:this.localStore.get().media.nonzeroVol}}getMuted(){return this.mediaStore.video.muted}setVolume(t,e,i){const n=this.mediaStore.video;e&&n.muted&&this.setMuted(!1,!1,i),n.volume=(0,d.Z)(t,0,1),this.setState({muted:n.muted,volume:(0,h.F)(n.volume)})}getVolume(){return this.mediaStore.video.volume}setPlaybackRate(t,e){const i=(0,d.Z)(t,.25,4);this.mediaStore.video.playbackRate=i,this.mediaStore.video.defaultPlaybackRate=i}getPlaybackRate(){return this.mediaStore.video.playbackRate}setMirror(t,e){this.setState({mirror:!!t})}getMirror(){return this.state.mirror}setAspectRatio(t,e){"string"==typeof t&&/^\d+(\.\d+)?:\d+(\.\d+)?$/.test(t)?this.setState({aspectRatio:t}):console.error("Illegal argument")}getAspectRatio(){return this.state.aspectRatio}setLightOff(t,e){this.rootPlayer.isEmbed||this.setState({lightOff:!!t})}getLightOff(){return this.state.lightOff}setBlackGap(t,e){this.rootPlayer.hasFeature("blackGap")&&this.setState({hideBlackGap:!t})}getBlackGap(){return!this.state.hideBlackGap}setAutoplay(t,e){this.setState({autoplay:!!t})}getAutoplay(){return this.state.autoplay}setOpEd(t,e){this.setState({opEd:!!t})}getOpEd(){return this.state.opEd}setLoudness(t,e){this.setState({loudness:t})}getLoudness(){return this.state.loudness}setListLoop(t){this.setState({listLoop:t})}setHandoff(t,e){switch(t){case r.ty.Auto:case r.ty.Delay:case r.ty.Abort:this.setState({handoff:t});break;default:console.error("Illegal argument")}}getHandoff(){return this.state.handoff}setPreferCodec(t){switch(t){case 0:case 1:case 2:case 3:this.setState({codecType:t});break;default:console.error("Illegal argument")}}getPreferCodec(){return this.state.codecType}onDispose(){super.onDispose({muted:1,lightOff:1,autoplay:1,hideBlackGap:1,volume:1,playbackRate:1,codecType:1,handoff:1,opEd:1,loudness:1,listLoop:1,loop:1})}}},68042:function(t,e,i){"use strict";i.d(e,{cp:function(){return U},cJ:function(){return O},W5:function(){return G}});var n=i(65340),r=i(92452),o=i(47614),a=i(55391),s=i.n(a),l=Object.defineProperty,A=Object.defineProperties,c=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(t,e,i)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;function g(t){Array.isArray(t)?t.forEach((t=>g(t))):t&&"object"==typeof t&&Object.keys(t).forEach((e=>{const i=e.replace(/([A-Z])/g,"_$1").toLowerCase();i!==e&&(t[i]=t[e],delete t[e]),g(t[i])}))}const f=class extends r.eV{constructor(){super(...arguments),this.tag="HttpSubtitleView"}initPb(){this.pb2Json=this.pb2Json||new o.Z({protocols:"proto",protobuf:s()})}parse(t){return(null==t?void 0:t.subtitle)&&g(t.subtitle),{error:null,details:t||null}}requestDefault(t,e){return this.initPb(),this.request(((t,e)=>A(t,c(e)))(((t,e)=>{for(var i in e||(e={}))d.call(e,i)&&p(t,i,e[i]);if(h)for(var i of h(e))u.call(e,i)&&p(t,i,e[i]);return t})({},e),{url:f.url,params:t,withCredentials:!0,responseType:"arraybuffer"})).then((t=>this.pb2Json.toJson(new Uint8Array(t.data),{type:"subtitle"})||{}))}r(t){return e=this,i=arguments,n=function*(t,e={}){const i=e,{requestFunc:n}=i,r=((t,e)=>{var i={};for(var n in t)d.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&h)for(var n of h(t))e.indexOf(n)<0&&u.call(t,n)&&(i[n]=t[n]);return i})(i,["requestFunc"]);return(n?n(t,e):this.requestDefault(t,r)).then((t=>this.parse(t))).catch((t=>({error:t,details:null})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}};let m=f;m.url="//api.bilibili.com/x/v2/subtitle/web/view";const y=[['nP](wOFRvU.+<fjS{jn-!$D|Dz&",zT`',"=CFxYRn{.y|uVyO$uh&sikph?N.ilF/`"],['Bn"q~|albg@]Go~ACgyDvKnd+)_D}^&J?',"Cu~L!xs~f^&r@'vh=q]q{eeng*sEg^kp#J"]];function b(t,e){let i="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n),o=e.charCodeAt(n%e.length);i+=String.fromCharCode(r^o)}return i}var v=i(22451),E=i(99195),I=i(54981),C=i(95999),B=i(90050),w=i(80538),x=i(63188),Q=Object.defineProperty,S=Object.defineProperties,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,T=(t,e,i)=>e in t?Q(t,e,{
enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,F=(t,e)=>{for(var i in e||(e={}))R.call(e,i)&&T(t,i,e[i]);if(_)for(var i of _(e))M.call(e,i)&&T(t,i,e[i]);return t},L=(t,e)=>S(t,D(e)),N=(t,e)=>{var i={};for(var n in t)R.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&_)for(var n of _(t))e.indexOf(n)<0&&M.call(t,n)&&(i[n]=t[n]);return i},P=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?k(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Q(e,i,o),o},U=(t=>(t.ButtonShown="translation-subtitles-button.player--shown",t.ButtonClick="translation-subtitles-button.player--click",t.LanguageTypeChoose="subtitle.language",t))(U||{}),O=(t=>(t[t.StartPlay=1]="StartPlay",t[t.SubtitleSwitch=3]="SubtitleSwitch",t))(O||{});class G extends n.u{constructor(t){super(t),this.tag="SubtitleStore",this.ugcMemory=null,this.renderData={[E.nK.Major]:null,[E.nK.Minor]:null},(0,v.rC)(this)}get defaultState(){return{hover:!1,enable:!1,isclosed:!0,lan:"",minorLan:"",fade:!1,color:"",scale:!1,shadow:null,opacity:null,fontsize:null,bilingual:!1,position:null,languageList:null,fixed:!1,fixedPosition:null,subtitlePosition:null,fontSizeType:null,enablePgcAiSubtitle:!1,isRawMeat:!1}}getCurrentSeasonId(){var t;return(null==(t=this.configStore)?void 0:t.seasonId)||null}getPgcConfig(t){var e;return((null==(e=this.localStore.get().subtitle)?void 0:e.pgcSubtitleSettings)||{})[t]||null}savePgcConfig(t){var e,i;if(!(null==(e=this.state.languageList)?void 0:e.length))return;const n=(null==(i=this.localStore.get().subtitle)?void 0:i.pgcSubtitleSettings)||{};n[t]=L(F({},n[t]),{fontsize:this.state.fontsize,color:this.state.color,opacity:this.state.opacity,shadow:this.state.shadow,position:this.state.position,scale:this.state.scale,fade:this.state.fade,seasonId:t,lastUsed:Date.now()});const r=Object.entries(n);if(r.length>10){const t=r.sort(((t,e)=>(t[1].lastUsed||0)-(e[1].lastUsed||0)));delete n[Number(t[0][0])]}this.localStore.set({subtitle:{pgcSubtitleSettings:n}})}patchPgcConfig(t){var e;const i=this.getCurrentSeasonId();if(!i)return;const n=(null==(e=this.localStore.get().subtitle)?void 0:e.pgcSubtitleSettings)||{};n[i]=L(F(F({},n[i]),t),{lastUsed:Date.now()}),this.localStore.set({subtitle:{pgcSubtitleSettings:n}})}onStateCreated(){if(super.onStateCreated(),this.uiStore.kind!==I.HR.Pgc){const t=this.localStore.get().subtitle;this.setState(L(F({},t),{opacity:t.opacityNew}))}}setSubtitleLogHelper(t,e){this.subtitleLogDownloader=t,this.subtitleDebugModeSetter=e}setDebugMode(t){var e;null==(e=this.subtitleDebugModeSetter)||e.call(this,t)}downloadSubtitleLog(t){var e;null==(e=this.subtitleLogDownloader)||e.call(this,t)}onMounted(){super.onMounted(),this.dc.subtitleStyle=(0,v.U5)((()=>({fade:this.state.fade,color:this.state.color,scale:this.state.scale,shadow:this.state.shadow,opacity:this.state.opacity,fontsize:this.state.fontsize,position:this.state.position})),(t=>{var e=t,{opacity:i}=e,n=N(e,["opacity"]);this.uiStore.kind===I.HR.Pgc?this.savePgcConfig(this.getCurrentSeasonId()):this.localStore.set({subtitle:L(F({},n),{opacityNew:i})})}),{equals:v.p6.structural}),this.dc.requestSubtitle=(0,v.U5)((()=>({curLanguage:this.translationStore.state.curLanguage,curLanguageType:this.translationStore.state.curLanguageType})),(({curLanguage:t})=>{t!=C.S.ORIGIN&&this.requestSubtitleOnLanguageChange()}),{equals:v.p6.structural})}handleSubtitleInfo(t,e=!1,i=!1){var n,r,o,a;if(t&&((null==(n=t.subtitles)?void 0:n.length)||e||i)){const e=Object.assign([],t.subtitles);(null==t?void 0:t.subtitle_position)&&this.setState({subtitlePosition:t.subtitle_position}),(null==t?void 0:t.font_size_type)&&this.setState({fontSizeType:t.font_size_type});const i=e.filter((t=>2!==t.ai_status));let n="";const s=e.find((t=>1===t.role));s&&(n=s.lan);const l=e.filter((t=>t.lan!==n));let A="";const c=e.find((t=>2===t.role));if(c&&(A=c.lan),e.length&&this.setState({languageList:e}),this.uiStore.kind===I.HR.Pgc){const t=this.getCurrentSeasonId(),a=this.getPgcConfig(t),l=e.some((t=>0===t.type)),h=e.some((t=>1===t.type));if(a){let t=a,{lan:e,isclosed:o}=t,h=N(t,["lan","isclosed"]);n=!l||s||e?n:(null==(r=i[0])?void 0:r.lan)||"",n||(o=!0),this.setState(L(F({},h),{lan:n||"",minorLan:A||"",isclosed:o,bilingual:!!c&&!o}))}else n=l&&!s?(null==(o=i[0])?void 0:o.lan)||"":n,this.setState(L(F(F({},B.a.pgcSubtitleSettings_Def[0]),n?{isclosed:!1}:{isclosed:!0}),{lan:n||"",minorLan:A||"",bilingual:!!c}));this.setState({enablePgcAiSubtitle:h,isRawMeat:l})}else{const t=this.localStore.get().subtitle;let i=!s;e.length&&this.ugcMemory&&(this.ugcMemory.isclosed&&(i=!0),this.ugcMemory.minorLan&&l.some((t=>t.lan===this.ugcMemory.minorLan))&&(A=this.ugcMemory.minorLan));let r=!!c;i&&(r=!1),e.length&&!this.ugcMemory&&(this.ugcMemory={}),this.setState(L(F({},t),{opacity:t.opacityNew,isclosed:i,bilingual:r,lan:n||"",minorLan:A||""}))}const h=this.translationStore.state.curLanguage,d=this.translationStore.state.curLanguageType,u=(this.translationStore.state.langList||[]).find((t=>t.lang===h&&t.type===d));u&&u.deText&&s&&(this.setState({isclosed:!1}),this.updateUgcMemory({isclosed:!1}),this.track.e("subtitle_detext_active",{lan:h,type:d}),(null==(a=s.subtitle_height)?void 0:a.value)&&this.setState({fixed:!0,fixedPosition:s.subtitle_height.value})),this.setState({enable:!0})}}getVideoType(){switch(this.uiStore.kind){case I.HR.Pgc:return 2;case I.HR.Pugv:return 3;default:return 1}}buildSubtitleParams(){var t;const e=this.uiStore.kind===I.HR.Pgc,i=e?this.getCurrentSeasonId():null,n=i?this.getPgcConfig(i):null,r={context_ext:JSON.stringify({video_type:this.getVideoType()}),type:1,cur_language:this.translationStore.state.curLanguage,cur_production_type:this.translationStore.state.curLanguageType,preferred_language:e?null==n?void 0:n.lan:null==(t=this.localStore.get().subtitle)?void 0:t.preferred_language,preferred2_language:e?null==n?void 0:n.minorLan:this.getUgcMemoryMinorLan()};return Object.keys(r).reduce(((t,e)=>{const i=r[e];return null!=i&&""!==i&&(t[e]=i),t}),{})}fetchSubtitle(t){var e,i;const{cid:n,aid:r}=this.rootStore.configStore,o=new m(this.rootPlayer),a=Object.assign({oid:n,pid:r},this.buildSubtitleParams());return o.r(a,{requestFunc:null==(i=null==(e=this.configStore)?void 0:e.requestConfig)?void 0:i.reqHttpSubtitleView}).then((e=>{var i,n,r;if(!e.details)return{};let o=e.details;if(!o.subtitle)return{};const a=o.subtitle;return!!(null==(n=null==(i=this.configStore)?void 0:i.requestConfig)?void 0:n.reqHttpSubtitleView)||null==(r=a.subtitles)||r.forEach((t=>{let e=t.subtitle_url;if(e){const i=e.split("?")[0],n=e.split("?")[1],r=function(t){const e=function(t){const e=t.match(/\/\/subtitle\.bilibili\.com\/([^?]+)/);return e?e[1]:null}(t);if(!e)return"";for(const t of y){const[i,n]=t,r=b((i?decodeURIComponent:decodeURI)(e),`${n}bilibili`);if(r.startsWith(i))return r.split(i)[1]}return""}(i),o=function(t,e){return t&&`//aisubtitle.hdslb.com${t}?${e}`||""}(r,n);o&&(t.subtitle_url=o)}})),t&&(t.subtitle=a,this.handleSubtitleInfo(t.subtitle,t.isOwner,t.needLoginSubtitle)),a})).catch((t=>(this.log.e("[fetchSubtitle]",t),{})))}requestSubtitleOnLanguageChange(){return t=this,e=null,i=function*(){const t=yield this.fetchSubtitle();t&&this.handleSubtitleInfo(t)},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}onLoaded(t){(this.configStore.cid||this.configStore.episodeId)&&this.fetchSubtitle(t)}findLanguageItem(t){if(!this.state.languageList||!t)return null;return this.state.languageList.find((e=>e.lan===t))}getUgcMemoryMinorLan(){var t;return(null==(t=this.ugcMemory)?void 0:t.minorLan)||""}updateUgcMemory(t){this.uiStore.kind!==I.HR.Pgc?this.ugcMemory&&(!1===t.isclosed?delete this.ugcMemory.isclosed:Object.assign(this.ugcMemory,t)):this.patchPgcConfig(t)}getPgcBubble(){var t;return!((null==(t=this.localStore.get().subtitle)?void 0:t.pgcBubbleShown)||!1)}setPgcBubble(t){this.localStore.set({subtitle:{pgcBubbleShown:t}})}addSubtitle(t){if(this.setState({enable:!0}),Array.isArray(t)){const[e,i]=t;e.body.sort(((t,e)=>t.from-e.from)),
this.rootPlayer.emit(w.p.PLAYER_CLEAR_SUBTITLE,E.nK.Major),this.setRenderData(E.nK.Major,e.body),i&&(i.body.sort(((t,e)=>t.from-e.from)),this.rootPlayer.emit(w.p.PLAYER_CLEAR_SUBTITLE,E.nK.Minor),this.setRenderData(E.nK.Minor,i.body))}else t.body.sort(((t,e)=>t.from-e.from)),this.rootPlayer.emit(w.p.PLAYER_CLEAR_SUBTITLE,E.nK.Major),this.setRenderData(E.nK.Major,t.body)}setRenderData(t,e){this.renderData[t]=e}trackPolar(t,e){var i,n;const r=this.state.subtitlePosition?1:0,o={vip_type:(null==(i=this.userStore.info)?void 0:i.vipType)||null,vip_status:(null==(n=this.userStore.info)?void 0:n.vipStatus)||null,season_id:this.configStore.seasonId||null,ep_id:this.configStore.episodeId||null,has_ai_info:r};switch(t){case"translation-subtitles-button.player--shown":this.trackStore.polarReport("translation-subtitles-button.player",x.Rr.show,F(F({},o),e));break;case"translation-subtitles-button.player--click":this.trackStore.polarReport("translation-subtitles-button.player",x.Rr.click,F(F({},o),e));break;case"subtitle.language":this.trackStore.polarReport(t,x.Rr.click,F(F({},o),e))}}onDispose(){super.onDispose({isclosed:1,fade:1,color:1,scale:1,shadow:1,opacity:1,fontsize:1,bilingual:1,position:1,lan:1}),this.setRenderData(E.nK.Major,null),this.setRenderData(E.nK.Minor,null)}}P([v.LO.shallow],G.prototype,"renderData",2),P([v.aD],G.prototype,"handleSubtitleInfo",1),P([v.aD],G.prototype,"requestSubtitleOnLanguageChange",1),P([v.aD],G.prototype,"setRenderData",1)},24490:function(t,e,i){"use strict";i.d(e,{MO:function(){return u},PR:function(){return h},SL:function(){return d}});var n=i(65340),r=i(83370),o=i(92452),a=i(95999),s=i(76173),l=i(80538),A=i(63188),c=i(89965),h=(t=>(t[t.Success=0]="Success",t[t.Failed=-1]="Failed",t[t.NoMediaDataSource=-2]="NoMediaDataSource",t[t.SameLanguage=-3]="SameLanguage",t))(h||{}),d=(t=>(t.SwitchSuccess="aidubswitch.option-switch-succeed",t.QuestionnaireClose="aidubswitch.qa-submit-close",t.QuestionnaireCancel="aidubswitch.qa-submit-cancel",t))(d||{});class u extends n.u{constructor(){super(...arguments),this.tag="TranslationStore"}get defaultState(){return{enable:!1,isclosed:!0,support:!1,curLanguage:a.S.ORIGIN,curLanguageType:a.$.DEFAULT,reqLanguage:a.S.ORIGIN,reqLanguageType:a.$.DEFAULT,langList:null,clientAttr:0,listTitle:"",bubble:null}}setCurLanguageToLocal(t,e){this.setState({curLanguage:t,curLanguageType:e});try{(0,c.d)(s.gb,t,this.rootPlayer)}catch(t){this.log.e("[TranslationStore]","Failed to set language cookie",t)}}setCurLanguage(t,e){this.setState({curLanguage:t,curLanguageType:e})}setLanguageInfo(t){this.setState({enable:!0,support:t.support,listTitle:t.listTitle,openToast:t.openToast,closeToast:t.closeToast,defaultTitle:t.defaultTitle,langList:t.langList,bubble:t.bubble})}getBubble(t){var e;return!((null==(e=this.localStore.get().translation)?void 0:e.showBubbleTypes)||[]).includes(t)}setBubble(t,e){var i;const n=(null==(i=this.localStore.get().translation)?void 0:i.showBubbleTypes)||[],r=e?Array.from(new Set([...n,t])):n.filter((e=>e!==t));this.localStore.set({translation:{showBubbleTypes:r}})}switchLanguage(t,e){return i=this,n=null,a=function*(){if(this.state.curLanguage===t&&this.state.curLanguageType===e)return-3;this.log.i("[Language]",`Switching to ${t} from ${this.state.curLanguage}`);const i=this.state.curLanguage,n=this.state.curLanguageType,a=this.portStore.getCurrentTime(),s=Date.now();this.setState({reqLanguage:t,reqLanguageType:e}),this.setState({clientAttr:1});const{promise:A,http:c}=this.mpdStore.prefetchPlayUrl();let h=-1;try{this.rootPlayer.emit(l.p.PLAYER_LANGUAGE_SWITCH,{stage:"start",curLanguage:i,curLanguageType:n,targetLanguage:t});const o=yield A;o&&o.body&&o.body.mediaDataSource?(yield this.rootStore.kernelStore.trySwitchSource({mediaDataSource:o.body.mediaDataSource,quality:o.body.quality},{initiator:r.ZX.LanguageSwitch,enableTransition:!0},{keepTransition:!0,autoPlay:!0,playAt:a}),this.log.i("[Language]","Switch successful"),this.setCurLanguageToLocal(t,e),h=0):(this.log.w("[Language]","Switch failed, no mediaDataSource found"),this.setState({reqLanguage:i}),h=-2)}catch(t){this.log.e("[Language]","Switch failed",t),this.setState({reqLanguage:i}),h=-1}return this.log.i("[Language]",`Switch result: ${h}`),this.rootPlayer.emit(l.p.PLAYER_LANGUAGE_SWITCH,{stage:0===h?"complete":"failed",targetLanguage:t,targetLanguageType:e,beforeLanguage:i,beforeLanguageType:n,costTime:Date.now()-s,curLanguage:this.state.curLanguage,curLanguageType:this.state.curLanguageType}),0===h&&this.trackPolar("aidubswitch.option-switch-succeed",{from_option:i,from_perfer_type:n}),null==c||c.dispose(o.eV.LIFECYCLE_TOKEN),h},new Promise(((t,e)=>{var r=t=>{try{s(a.next(t))}catch(t){e(t)}},o=t=>{try{s(a.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,o);s((a=a.apply(i,n)).next())}));var i,n,a}transformTypeToString(t,e){switch(t){case a.$.DEFAULT:return e;case a.$.MULTI_LANGUAGE:return"upload";case a.$.AI_VOICE:return"ai";default:return e}}trackPolar(t,e){switch(t){case"aidubswitch.option-switch-succeed":this.trackStore.polarReport(t,A.Rr.click,{avid:this.configStore.aid,cid:this.configStore.cid,player_session_id:this.configStore.session,from_option:(null==e?void 0:e.from_option)||a.S.ORIGIN,from_perfer_type:this.transformTypeToString(null==e?void 0:e.from_perfer_type,"original"),after_option:this.state.curLanguage,after_perfer_type:this.transformTypeToString(this.state.curLanguageType,"original")});break;case"aidubswitch.qa-submit-close":case"aidubswitch.qa-submit-cancel":this.trackStore.polarReport(t,A.Rr.click,{avid:this.configStore.aid,cid:this.configStore.cid})}}onDispose(){super.onDispose({reqLanguage:1})}}},39578:function(t,e,i){"use strict";i.r(e),i.d(e,{RootExtra:function(){return p}});var n=i(35706);class r extends n.v{}var o=i(40898),a=i(54981);class s extends n.v{p(t,e,i){this.rootPlayer.emit(o.t.Player_Virtual_Action,new CustomEvent(o.t.Player_Virtual_Action,{detail:{kind:a.s.Report_Observer,data:{type:e,options:{spm_id:t,msg:i?JSON.stringify(i):null}}}}))}}var l=i(22451);class A extends n.v{constructor(){super(...arguments),this.delay=2e3,this.frame=15,this.duration=800,this.paused=!0,this.dropFrames=0,this.startTimer=0,this.dropTimer=0,this.cbRecord={}}install(){super.install(),this.dc.dropFrames=(0,l.EH)((()=>{this.paused=this.mediaStore.state.paused,this.start()}))}start(){this.stop(),this.paused||(this.startTimer=window.setTimeout((()=>{this.dropFrames=this.droppedFrameCount(),clearTimeout(this.dropTimer),this.autoVisible()}),this.delay))}stop(){clearTimeout(this.startTimer),clearTimeout(this.dropTimer)}removeListener(t){delete this.cbRecord[t],Object.keys(this.cbRecord)||this.stop()}addListener(t,e){this.cbRecord[t]=this.cbRecord[t]||e,this.start()}autoVisible(){this.dropTimer=window.setTimeout((()=>{const t=this.droppedFrameCount();t-this.dropFrames>this.frame?Object.keys(this.cbRecord).forEach((t=>this.cbRecord[t]())):(this.dropFrames=t,this.autoVisible())}),this.duration)}droppedFrameCount(){return this.mediaStore.video.webkitDroppedFrameCount||0}onDispose(){super.onDispose(),this.stop()}}var c=i(53229),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor;class u extends n.v{constructor(t){super(t),this.tag="BpNcExtra",this.state={enabled:!1,version:"",source:"",sdkState:null},(0,l.rC)(this)}setState(t){(0,c.$p)(this.state,t)}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&h(e,i,o)})([l.LO],u.prototype,"state",2);class p{constructor(t){this.subKeyList=[],t._rootExtra=this,this.rootStore=t,this.rootPlayer=t.rootPlayer,this.subExtras={httpExtra:new r(t),trackExtra:new s(t),dropFrameExtra:new A(t),bpNcExtra:new u(t)},this.subKeyList=Object.keys(this.subExtras),this.subKeyList.forEach((t=>{const e=this.subExtras[t];e.install(),e.attachEvents()}))}decomposeSubExtras(t){for(const e of this.subKeyList)t[e]=this.subExtras[e]}}},69676:function(t,e,i){"use strict";i.d(e,{J:function(){return C}});var n=i(745),r=i(89262),o=i(76173);function a(t){var e;return[1-(e=function(t){if(t<0){var e=Math.exp(t);return e/(1+e)}return 1/(1+Math.exp(-t))
}((t[4]<=0?t[10]>.990191?-.989373:t[13]>1.5?-1.12391:-1.29355:t[2]>2.5?t[2]>7?t[11]>0?-.719542:-.905168:t[14]>0?-1.25701:t[4]<=6.15592?-.863307:-.994647:t[3]<=9.63384?t[5]>4.8081?t[3]>4.84811?-.661372:-1.13421:t[3]>4.84811?-1.26774:-.909149:t[0]<=0?t[5]>9.63626?-1.08486:-1.28431:-1.15053)+(t[4]<=0?t[6]>1.5?t[10]>.990191?.0957544:t[2]>13.5?.049574:-.179587:.101424:t[2]>2.5?t[0]>0?t[11]>0?t[2]>11?.332061:.233271:t[2]>9.5?.205293:.0221457:t[1]>4.8243?-.164803:t[14]>0?-.09543:.177551:t[6]>1.5?t[0]<=0?-.167169:-.0429348:t[13]>0?.0766295:.327211)+(t[4]<=0?t[10]>.990191?.0831032:t[3]>7.54856?t[2]>13.5?.0437179:-.169094:-.0227048:t[2]>2.5?t[2]>7?t[3]>22.7967?.22515:.115451:t[14]>0?-.135851:t[8]>2.875?-.12975:.129398:t[3]>10.2077?t[0]>0?-.0377204:-.155212:t[5]>4.8081?t[8]>1.025?0:.250272:t[3]>4.84811?-.143565:.0838682)+(t[4]<=0?t[6]>1.5?t[10]>.990191?.0676995:t[7]>0?t[13]>0?.213117:-.140323:-.17379:.0926488:t[15]>0?t[11]>0?t[12]>3.32888?.199081:.131361:t[3]>25.7733?.125125:0:t[6]>1.5?t[8]<=2.885?t[7]>0?.113978:-.0852539:t[5]>4.8081?-.134874:-.0503892:t[8]>1.025?-.00311742:.207519)+(t[2]>2.5?t[11]>0?t[2]>13.5?.194927:t[13]>0?t[14]>0?-.0603787:.143032:t[15]>0?.0974372:-.0356685:t[13]<=0?-.0980893:t[3]>18.927?.0694593:-.035957:t[6]>1.5?t[10]<=0?-.160494:t[1]<=1/0?-.110007:.0116638:t[3]>0?t[13]>0?t[11]>0?.148553:-.039432:.190829:-.157622)+(t[4]<=0?t[6]>1.5?t[2]>2.5?t[13]>0?.130808:-.128495:-.164828:t[3]>5.44025?.131842:-.0406706:t[2]>2.5?t[3]>24.8162?t[1]>8.29742?98856e-8:.143986:t[11]>1.49787?t[1]>4.8243?-932857e-9:.103629:t[4]<=5.19573?.0402875:-.0449242:t[6]>1.5?t[5]<=8.96117?-.101578:0:t[13]>0?.00991242:.149968)+(t[4]<=0?t[6]>1.5?t[7]>0?t[13]>0?.106265:-.121651:-.160739:.0516973:t[0]>0?t[7]>2.5?.155405:t[12]>3.68712?.0175959:t[12]>3.68568?.161751:.0471247:t[8]<=2.865?t[5]>4.85592?t[4]>5.86221?.00343285:.0959638:t[8]>1.515?-.0668158:.0841479:t[6]>1.5?t[5]>4.8081?-.145781:-.0232004:.10538)+(t[4]<=0?t[6]>1.5?t[2]>2.5?-.0676517:-.157145:.0437621:t[15]>0?t[8]>2.425?t[2]>8.5?.08339:-.0706186:t[12]>3.68712?t[2]>7?.0912471:-.00274715:t[12]>3.68568?.169533:.0779078:t[6]>1.5?t[8]<=2.885?t[2]>2.5?.0624904:-.0632891:t[0]<=0?-.118381:-.0125859:t[4]>5.3959?0:.116348)+(t[4]<=0?t[13]>0?t[7]>0?t[11]>3.65057?.17018:-.0171039:t[6]>1.5?-.133868:.0447225:t[6]>1.5?-.145265:.0156543:t[15]>0?t[8]>2.425?t[6]>4.5?.0688441:-.054952:.0891554:t[6]>1.5?t[8]<=2.885?t[11]>0?.066808:-.0331009:t[5]>4.8081?-.101934:-.0117767:t[13]>0?0:.107237)+(t[4]<=0?t[13]>0?t[2]>2.5?.0858156:-.0671629:-.135959:t[0]>0?t[2]>13.5?.115133:t[14]>0?t[3]>9.63384?-.0588346:.148519:t[13]>0?.0235962:.086647:t[8]<=2.605?t[3]>20.2621?t[14]>0?-.0432476:.110472:t[13]>0?-.0116072:.0992922:t[3]>10.5828?t[1]>4.8243?-.140843:-.0300149:.0465247)+(t[4]<=0?t[6]>1.5?t[2]>2.5?t[10]>.990191?.065004:-.0686113:t[6]>4.5?0:-.154426:.0303765:t[11]>0?t[2]>2.5?t[12]>3.50179?t[12]>3.68712?.0394369:.126424:t[12]>2.0751?-.0277832:.042983:t[6]>1.5?-.0696068:t[3]>4.84811?.105053:-.00491413:t[4]>4.63956?t[3]>17.6258?-.0228744:-.0935252:.0162908)+(t[4]<=0?t[13]>0?t[2]>2.5?.0876859:t[6]>1.5?-.124216:.0189086:t[6]>4.5?-.0246629:t[6]>1.5?-.14666:.0173843:t[0]>0?t[11]>0?.0617987:-.0123746:t[8]<=2.665?t[11]>0?t[4]>6.24125?-.0117465:.0623778:t[5]>6.94553?.0403682:-.0508442:t[6]>1.5?t[1]>4.8243?-.131545:-.0292726:.0551812)+(t[4]<=0?t[13]>0?t[2]>2.5?.0742939:-.0581512:t[6]>4.5?-.0217314:t[6]>1.5?-.143653:.0152855:t[2]>2.5?t[11]>0?t[8]>2.855?t[2]>8.5?.0675053:-.104414:.0492307:t[4]<=4.10261?.0726395:-.0223314:t[6]>1.5?t[0]<=0?-.116148:t[6]>3.5?-.096227:.0437393:t[6]>0?.0794893:-.156582)+(t[2]>2.5?t[12]>3.50179?t[12]>3.68712?t[2]>11?.0739373:935027e-9:t[10]<=1?t[5]>5.01396?.0757548:-.0172771:.124111:t[12]>1.582254?t[12]>2.0751?-.0395887:.0168004:-.0724613:t[3]>10.2077?t[0]>0?t[10]<=.666666?-.0976284:t[3]>24.5679?-.0809691:.0288956:-.123375:t[5]<=4.75788?-.0783816:t[3]<=0?-.151684:.069532)+(t[4]<=0?t[13]>0?t[11]>2.01268?t[2]>2.5?.118748:t[6]>1.5?-.102205:.0829645:-.073838:t[13]<=0?t[6]>1.5?-.0474408:.125534:t[6]>4.5?-.0185543:-.140577:t[2]>11?.0790839:t[13]<=0?t[8]>1.515?0:.0989769:t[2]>2.5?t[11]>0?.0243839:-.016022:t[6]>1.5?-.0584084:.0364281)+(t[4]<=0?t[13]>0?t[11]>2.01268?t[2]>2.5?t[3]>20.0028?0:.1362:t[6]>1.5?-.0911884:.0867063:-.0603423:t[6]>4.5?0:t[6]>1.5?t[13]<=-1.5?0:-.133478:.033106:t[13]<=0?t[10]>.999997?-.0138626:.0870968:t[2]>11?.0700607:t[12]>1.76453?t[5]<=5.28574?-.0230153:.0155786:-.0688256)+(t[4]<=0?t[13]>0?t[2]>2.5?.0436622:t[6]>1.5?-.101755:.0332815:t[6]>4.5?0:t[6]>1.5?-.126659:.0289788:t[8]<=1.025?.0748219:t[2]>2.5?t[12]>3.68568?t[12]>3.68712?0:.0749276:t[14]>0?-.0690543:.00602181:t[6]>1.5?t[6]>2.5?-.0354759:-.140785:t[3]>5.80061?.0692409:-.0241904)+(t[4]<=0?t[13]>0?t[11]>2.01268?.03133:-.0549408:t[13]<=0||t[2]>9.5?0:-.117234:t[8]<=1.515?t[5]>3.90192?.0666348:-.0290878:t[0]<=0?t[2]>2.5?t[1]>4.8243?-.126643:.0228373:t[5]>6.54031?-.00628619:-.0920494:t[8]>2.855?t[2]>8.5?.0442635:-.0770177:t[12]>3.68712?-.00245015:.0405889)+(t[4]<=0?t[2]>2.5?t[13]>0?.037477:t[13]<=0?.0772948:-.0442702:t[6]>1.5?t[3]>31.8194?.0132635:-.132639:t[3]>5.44025?.0865729:-.03067:t[7]>2.5?.0577883:t[6]>1.5?t[14]>0?t[2]>9.5?.0748322:-.134686:t[6]>2.5?.0116865:-.135255:t[3]>0?t[14]>0?.107686:.0331123:-.128712)+(t[8]<=1.515?t[8]>.27?t[9]>.522233?.0838437:0:t[3]>6.61271?.107021:0:t[13]<=0?t[10]>-.502941?t[3]>25.4503?t[10]>.999999?.08168:-.0120513:t[10]>.963299?-.0377125:-.0976475:t[8]<=2.825?0:.207221:t[7]>2.5?.0573105:t[14]>0?t[6]>1.5?-.0950038:.108602:t[8]>2.905?-.0926485:.0117486)+(t[2]>2.5?t[12]>3.50179?t[12]>3.68712?t[13]<=0?.0869044:-.00335963:.0594514:t[12]>1.29672?-.00111104:-.0753561:t[6]>1.5?t[0]<=0?t[5]>6.50951?t[8]<=3.015?0:-.109825:-.134711:t[6]>2.5?t[6]>3.5?-.068073:.0394752:-.131433:t[6]>0?t[0]>0?.0948409:t[13]>0?-.0436127:.048728:-.143879)+(t[4]<=0?t[6]>1.5?t[7]>0?-.00519597:t[6]>4.5?.00910873:-.130318:.0345516:t[5]<=4.29726?t[8]>1.755?-.0860111:t[11]>7.1705?.0618054:-.0272218:t[4]<=5.19573?t[8]>2.395?t[6]>4.5?.0601863:-.0248313:t[5]>8.06574?.103814:.0361397:t[0]<=0?t[9]>.0102567?.00791405:-.0412643:t[14]>0?-.017459:.027124)+(t[4]<=0?t[13]>0?t[11]>2.01268?.0319717:-.0504876:t[6]>4.5?0:t[6]>1.5?-.107392:625794e-9:t[5]<=6.50951?t[4]>5.27043?t[11]>2.4414?-.0128644:-.0723018:t[8]<=1.955?.0426855:t[12]>3.68568?.00984868:-.020477:t[4]<=6.18105?t[11]>7.2954?.0163929:.0637543:t[9]<=.276229?-.0614187:t[2]>13.5?.0771916:.00385649)+(t[2]>2.5?t[12]>3.50179?t[12]>3.87457?t[10]>.999999?t[3]>20.2621?.116691:0:-.0115125:.0470757:-.00481997:t[6]>1.5?t[0]<=0?t[3]>21.4262?t[9]>.0437172?.0353269:-.0663429:-.117693:t[6]>2.5?t[6]>3.5?-.0610244:.0371583:-.125784:t[3]>0?t[11]>7.54248?.0699268:t[8]>.825?-.0458283:.0347209:-.134961)+(t[5]<=4.29726?t[11]>4.92362?t[9]<=.0246951?-.0596198:t[2]>2.5?t[2]>3.5?-.00190021:.0977766:-.0364458:-.0770482:t[12]>1.87245?t[2]>2.5?t[13]<=0?.0684678:t[11]>9.42392?-.0119679:.0179227:t[6]>1.5?t[0]<=0?-.0800441:-.00376251:t[6]>0?.0404946:-.113963:t[8]<=2.405?t[12]>1.02464?.0108858:-.0916251:-.0802304)+(t[11]>0?t[2]>2.5?t[11]>9.73323?t[5]>4.63956?t[7]>2.5?.0307512:-.0346982:.0938304:.0201777:t[6]>1.5?t[4]>3.06778?t[6]>2.5?.0424463:-.0862319:t[1]>7.43189?577915e-9:-.0765268:t[14]>0?.0948346:.00220733:t[10]<=.967733?t[13]>0?-.0805778:.0144019:t[4]>5.91215?-.0587296:t[5]<=4.4485?-.0470843:.0189862)+(t[5]<=7.29132?t[2]>2.5?t[4]>5.09681?t[5]>6.45441?t[14]>0?-.0842657:.025883:-.0372105:t[2]>3.5?-.00516387:.0211454:t[0]>0?t[3]>19.7687?-.0716846:t[11]>0?.0527027:-.0466288:t[3]>7.90396?t[10]<=-.999993?.0577694:-.106322:-.0136731:t[4]<=0?-.0285499:t[4]<=6.53452?t[5]>8.50228?.10673:.0251085:.00496358)+(t[11]>0?t[12]>3.68712?t[8]<=3.555?.00669466:t[15]>0?0:t[6]>1.5?-.0949225:-.00734101:t[12]>3.68568?t[13]<=2.5?t[6]>3.5?-.0131243:.0451577:.0874805:t[12]>2.07414?t[8]<=2.805?-.00414257:-.0789748:t[12]>1.582254?.00570492:-.0595428:t[5]<=8.14134?t[3]>14.3138?t[8]<=3.205?-.0068279:-.0686599:-.0574205:.0279124)+(t[5]<=6.77479?t[0]>0?t[6]>3.5?t[2]>7?.00173728:-.0620125:t[9]>.0102567?-.023364:.0518836:t[2]>2.5?t[1]>4.8243?-.109245:t[8]>.27?-.0149735:.0827447:t[3]>6.61271?-.104459:-.00949774:t[4]>6.53452?-.0295179:t[8]<=2.815?t[14]>0?-.0170549:t[3]>31.182?-.0335349:.0625274:t[13]<=1.5?-.0432158:.00990264)+(t[5]>8.50228?t[10]>.999993?.0985619:.00853371:t[11]>0?t[12]>3.68712?t[13]<=4.5?0:t[15]>0?-.00450902:-.0779142:t[12]>3.68568?t[10]>-.999993?.0190189:.0773668:t[12]>2.07414?-.0424578:-.00174397:t[10]<=.967733?t[13]>0?t[10]>-.502941?-.0753442:.0177572:.0085533:t[6]>4.5?.0214897:t[14]>0?-.0831853:-.0108907)+(t[5]<=6.2832?t[11]>2.01268?t[8]<=.41?.0596666:-.00599793:t[10]<=.999999?-.0474305:0:t[11]>9.61263?t[3]>9.14617?t[7]>2.5?.0269796:t[14]>0?-.0912595:-.00881945:.0340781:t[8]<=2.885?t[3]>18.8101?t[14]>0?-.0284246:.0451905:-.0113695:t[0]<=0?t[14]>0?.0932103:-.0584808:t[13]<=1.5?-.0232702:.0378899)+(t[4]>6.2757?t[9]>.0359294?-.0124202:-.0735898:t[8]<=2.865?t[9]<=.0102567?t[4]>3.54085?t[3]>14.4924?-.00288354:-.0533217:t[3]>15.5115?.0742604:-.0087106:t[15]>0?t[11]>9.42392?-.0547969:.0221936:t[4]>5.27043?.0231537:.0611385:t[2]>11?.0444035:t[6]>1.5?t[15]<=0?-.0426327:0:t[3]>0?.0311227:-.0998868)+(t[4]>6.2757?t[9]>.276229?-.00582738:-.0572886:t[8]<=2.865?t[5]>4.2121?t[14]>0?t[2]>8.5?.037622:-.0640652:t[5]>6.37247?.0446298:.0104155:t[9]<=0?-.0855533:0:t[13]<=1.5?t[6]>4.5?t[9]>.61411?-.0360563:.0513413:t[13]>0?-.0660816:.0378645:t[6]>0?t[9]>.0774226?.0659217:-502663e-9:-.0969115)+(t[3]<=0?-.106006:t[6]>1.5?t[6]>2.5?t[8]<=.27?t[3]>21.8182?0:.0927723:t[5]>8.06574?.0290569:-.0050161:t[8]>2.195?0:-.132397:t[8]>1.025?-.0288812:t[9]>.0824136?t[8]>.505?0:.0841148:t[8]<=0?-.0412574:.0247398)+(t[4]>6.2757?t[9]>.522233?0:-.0433824:t[8]<=2.865?t[5]>4.85592?t[4]>3.54085?t[9]>.0102567?.0298278:-.00672077:.0549208:t[9]<=0?-.0487235:t[4]>4.67748?-.0390329:.0654767:t[0]<=0?t[10]<=-.978256?.100991:t[5]>4.85592?-.0450291:0:t[1]>5.11499?t[12]>3.68712?-.0179479:.0405253:t[13]>1.5?.0349529:-.0196639)+(t[12]>1.582254?t[5]>8.50228?t[4]<=7.75512?t[12]>8.06408||t[5]>10.0523?0:.0933229:-.00844285:t[9]<=0?t[4]>5.04664?t[3]>14.4924?-.0253151:-.0923041:t[5]>3.74943?.00859555:-.0741355:t[12]>3.68712?t[9]<=.79899?.0155186:-.0263184:t[12]>3.50179?.0445268:.00281129:t[8]<=1.515?.0397514:t[0]>0?0:-.0752622)+(t[3]<=0?-.0985668:t[6]>1.5?t[6]>2.5?t[14]>0?t[2]>8.5?.0612706:-.105191:t[5]<=6.48387?-.0018298:.0184623:t[8]>2.235?0:-.134697:t[11]>7.54248?t[11]>12.3631||t[10]<=-.978256?0:.0661364:t[13]>0?t[9]>.0774226?0:-.0846826:t[11]>1.49787?124766e-9:.0549915)+(t[12]>1.29672?t[5]>8.50228?t[4]<=7.75512?t[12]>8.06408?0:.0710327:-.00827629:t[11]>2.01268?t[12]>3.87457?t[1]>4.119?-.0332308:.00281362:t[12]>3.68568?.0309541:.00104496:t[4]>5.75732?t[8]>2.425?-356706e-9:-.0712982:t[3]>20.8568?.0383784:-.00943361:t[8]<=1.515?.0303776:t[1]>6.54031||t[11]>8.93049?0:-.101677)+(t[10]<=-.999993?t[4]>4.15101&&t[6]>1.5?.128528:0:t[6]>0?t[6]>1.5?t[6]>2.5?t[14]>0?-.0232488:.00423172:-.117896:t[14]>0?t[1]>6.44254?.0220112:.0918457:t[4]>5.44025?-.0582806:.0166868:-.0927938)+(t[5]<=3.19846?t[15]>2.5?.00303123:t[9]>.909545?0:t[4]<=6.24125?-.0827719:0:t[6]>0?t[10]<=-.999993?t[8]<=1.49?0:.163997:t[8]>3.015?-.0862423:t[12]>1.582254?.00461305:-.0330428:-.0954086)+(t[12]>1.29672?t[13]<=0?t[13]>0?t[8]>2.625?t[10]>-.333333?-.00229496:.152727:t[12]>7.908672?.00748269:-.0515099:t[8]>.41?0:.0451556:t[12]>3.6884?t[2]>7?t[12]>5.96592?.0445592:-.00941739:t[6]>3.5?-.104676:-.0153717:t[12]>3.68568?t[8]>1.955?.00661689:.0476267:t[12]>2.07414?-.0274523:.0077137:-.055656)+(t[12]>1.29672?t[13]>2.5?t[8]<=2.275?-.00572463:t[2]>7?.131248:0:t[11]>9.61263?t[1]>5.70877?t[1]>9.23654?.0353729:-.0444105:t[8]>1.805?-.0213449:.0246433:t[13]<=0?t[8]<=3.325?-.00141633:-.0447751:t[8]>2.915?-.0490619:.00954258:t[8]<=1.515?.0196938:t[9]<=.923564?-.0982487:-.00908027)+(t[12]>1.29672?t[3]<=0?-.08067:t[6]>1.5?t[6]>2.5?t[8]<=.27?.0529221:-.0012557:t[8]>2.005?0:-.11398:t[4]>3.83939?t[5]>5.35422?-.0307696:.0245364:t[12]>3.6884?0:.0448517:t[8]<=1.515?.0180438:t[9]<=.923564?-.0891213:-.00797146)+(t[13]>2.5?t[8]<=2.275?-.0019014:t[7]>1.5?.122617:0:t[12]>1.76453?t[12]>3.87457?t[9]<=.983999?t[3]>31.182?.0519058:-.00457721:t[8]<=1.515?.0447811:-.0323394:t[12]>3.50179?t[8]>1.955?.00219151:.0321075:t[12]>2.07414?-.0261397:0:t[8]<=2.525?t[5]>5.41387?-.0162809:.0432388:t[3]>31.182?0:-.0689291)+(t[4]>5.86221?t[11]>0?t[11]>5.61495?t[13]>1.5?.0526635:-.0192633:t[9]>.0102567?.0740754:-.00314248:-.0432536:t[11]>5.85076?t[3]>17.5?t[2]>11?.0215175:t[11]>10.3775?-.0479:-.0106969:t[0]>0?t[4]>4.99382?-.017282:.0518068:-.00169396:t[5]>5.53141?t[13]>0?t[3]>17.5?.0600164:-.00446114:.00706605:-.00901134)+(t[13]<=0?t[13]>0?t[3]>23.4667?t[8]>2.685?.0630245:t[12]>7.73035?.0727999:-.0318442:t[10]>.333333?t[3]>19.7687?-.0792214:.0120002:-.0675562:.00937034:t[3]<=4.84811?-.0679568:t[12]>3.87457?t[12]>5.62464?.00802322:t[10]>.999998?.012647:-.0456821:t[12]>3.68568?t[4]>4.93086?363899e-9:.0386845:t[12]>2.76608?-.0467556:.00443599)+(t[9]<=.0207259?t[5]>4.85592?t[4]>5.17332?t[5]>5.18458?t[3]>16.1573?-.0177028:-.106001:.0435904:t[10]>.866666?t[10]>.999993?-.00222996:.0455245:t[3]>18.455?-.0420472:.00744278:t[11]>8.64813?.00967204:-.0572057:t[10]>.999999?.0260925:t[9]<=.0837719?.049437:t[13]<=0?t[3]>6.2393?-.027198:.0426476:t[0]<=0?-.00627706:.0106096)+(t[3]<=41.3667?t[9]<=.0207259?t[5]>3.74943?t[10]>.999997?t[8]>1.985?-.0282533:.0212351:t[12]>3.87457?-.0208828:.00406234:t[8]>2.745?0:-.074933:t[10]>.999999?t[12]>3.31848?t[3]>18.6898?.061959:.00665106:t[15]>0?-.031004:.0187043:t[9]<=.040202?.0690245:t[11]>2.01268?.00153708:-.0174473:t[5]<=9.63626?.0610738:.00822683)+(t[7]>2.5?t[8]>2.635?.0821228:.0107134:t[10]<=.316666?t[9]>.79899?t[8]<=2.335?.0360755:t[6]>1.5?-.0548977:.06718:t[9]>.494675?-.0673628:t[12]>6.4058?.0361059:-.0207303:t[4]<=4.63956?t[4]>4.48299?.0725595:t[8]>1.955?-649824e-9:.0611951:t[12]>3.6884?t[12]>5.62464?.00368298:-.0430715:t[12]>3.68568?.0175331:-.0038346)+(t[5]<=3.19846?t[9]>.222813?0:-.0487448:t[6]>0?t[8]>3.075?-.0666503:t[9]<=0?t[8]>2.735?.0197651:-.0106162:t[5]<=3.44986?.0726328:.00394587:-.0812706)+(t[10]<=-.502941?t[8]<=2.335?t[3]>5.44025?t[4]>3.23849?t[8]>.825?-.052385:0:.0200657:.0675836:.188036:t[8]>3.015?-.0852658:t[0]>0?t[6]>3.5?t[2]>7?.00274562:-.0539857:t[14]>0?-.0512745:.037373:t[3]>26.5654?t[4]>7.75512?0:.0758847:t[9]>.0102567?.00415539:-.0243334)+(t[5]>7.29132?t[11]>8.00687?t[8]>2.475?-.0576685:t[3]>23.1002?-.013391:.0204426:.0216468:t[4]<=5.27043?t[6]>4.5?.0353218:t[3]>23.1002?-.0593351:t[5]>3.74943?.00812243:-.0386411:t[11]>2.01268?t[0]<=0?t[1]>4.8243?-.0619103:250074e-10:t[6]>3.5?-.0193109:.0413391:t[10]<=.999999?-.0548902:t[12]>3.6884?-.0609052:0)+(t[10]<=-.502941?t[8]<=2.335?t[3]>5.44025?t[4]>3.31402?t[4]>4.48299?0:-.0597985:.0140162:.06307:.164059:t[8]>3.205?-.0834674:t[12]>3.50179?t[12]>3.68712?t[4]<=6.65737?.00498843:-.0224853:t[4]<=6.61271?0:.0386623:t[9]>.0102567?t[13]<=0?-.0183797:.0127402:t[12]>2.62208?-.0544471:-.0123962)+(t[5]>9.14724?t[8]<=2.295?.0962814:t[5]>9.63626?t[10]>-.502941?-.0810504:0:t[11]>5.61495?t[3]>18.455?-.0264429:.00983563:.059742:t[10]<=-.999993?t[8]<=1.515?t[5]>6.74347?.0250338:-.0118273:.11546:t[8]>3.205?-.0756752:t[0]>0?t[6]>3.5?-.00836053:.0212675:t[1]>4.88658?-.0422071:-.00109586)+(t[13]<=0?t[4]>3.54085||t[3]>19.0532?0:.0707845:t[13]<=0?t[12]>3.771348?.0095784:t[8]>1.49?-.00955348:t[4]>5.46171?.0191719:-.0727949:t[14]>0?t[2]>8.5?t[8]<=2.155?-.0185384:.0462324:t[6]>1.5?-.108427:.0540091:t[8]>2.905?t[2]>5.5?0:-.087112:t[6]>4.5?-.0235715:.00869706)+(t[3]<=38.4159?t[1]>8.23204?t[7]>0?-.0870094:t[1]>9.23654?.0225359:-.0318895:t[13]>0?t[10]>-.502941?t[10]>.316666?-.0017501:-.0300973:t[3]>15.1888?.102907:0:t[3]>14.4924?t[15]>0?.0130622:-.0241393:t[11]>7.60465?.0491079:.0062973:t[8]>1.985?t[10]<=.999996?-.0417321:0:t[5]>7.89562?.0764643:.0164571)+(t[4]>6.89213?t[3]>23.2802?t[11]>2.01268?.0081152:-.0224218:t[4]>7.1448?t[4]>7.36866?t[11]>6.28879?0:-.0593782:.00169941:-.0857656:t[3]<=38.4159?t[1]>8.23204?t[2]>2.5?-.0780719:t[1]>9.23654?.0199926:-.0278715:t[11]>11.7552?t[1]<=7.09133?.0373457:-.037605:t[11]>11.2968?-.0438166:780237e-9:t[8]>1.985?-.00716066:.0461788)+(t[4]>6.89213?t[3]>23.2802?0:t[4]>7.1448?t[4]>7.36866?t[11]>6.28879?0:-.054006:.00151197:-.077106:t[3]<=38.4159?t[1]>8.23204?t[2]>2.5?-.070027:t[1]>9.23654?.0177342:-.0243669:t[1]>7.43189?t[11]>9.55105?-.0110995:.0395495:t[2]>2.5?.00317191:-.00992041:t[8]>1.985?-.00635068:t[5]>7.89562?.0629214:.00805938)+(t[4]>6.89213?t[11]>6.14954?t[11]>8.18102?t[12]>3.68568?0:-.0537113:.0423725:t[3]>32.5039?.00319424:-.0516425:t[13]>2.5?t[3]>8.67325?.0627737:0:t[13]<=0?t[4]>3.77269?t[4]>4.48299?.0195631:-.043998:t[3]>18.8101?0:.0638161:t[10]<=.316666?t[10]>-.502941?-.0261597:.052909:t[4]<=3.65057?.0285305:-929336e-9)+(t[12]>1.04942?t[2]>13.5?t[9]>.994949?-.051156:t[10]>.999993?t[9]>.0717968?.0142869:-.0177276:t[11]>10.6766?0:.0606279:t[5]<=3.74943?t[8]>2.265?t[12]>2.2893?.0520446:-.00929767:t[9]<=.901087?-.0599751:-358614e-9:t[3]<=0?-.0686173:t[3]>7.90396?-.00169049:.0177482:t[8]<=1.515?.0285079:t[11]>3.02013?-.0791287:0))),e]
}var s=i(43122);function l(t){return t<32?0:t<64?1:t<80?2:t<116?3:t<120?4:5}class A{static evaluateLgbmScore(t){try{const e=t.realtime,i=t.historyStats,n=l(e.topQualityNumber||0),r=l(e.startupQualityNumber||0),o=Math.max(n-r,0),s=e.duration||0,A=e.isVip||0,c=i.validVV||0,h=0===c?1:0,d=c>0?(i.autoSwitchHigherCountInStartup||0)/c:0,u=c>0?(i.autoSwitchLowerCountInStartup||0)/c:0,p=c>0?l(i.lastQuitQuality||0):0,g=function(t){const e=[];return e[0]=void 0!==t.is_vip?t.is_vip:0,e[1]=void 0!==t.feat_cold_start_x_duration?t.feat_cold_start_x_duration:0,e[2]=void 0!==t.feat_top_qn_x_downgrade?t.feat_top_qn_x_downgrade:0,e[3]=void 0!==t.feat_top_qn_x_duration?t.feat_top_qn_x_duration:0,e[4]=Math.log1p(t.feat_hist_avg_playback_time_log||0),e[5]=Math.log1p(t.feat_duration_log||0),e[6]=void 0!==t.feat_top_qn_bucket_val?t.feat_top_qn_bucket_val:0,e[7]=void 0!==t.feat_startup_qn_downgrade_magnitude?t.feat_startup_qn_downgrade_magnitude:0,e[8]=void 0!==t.feat_hist_startup_qn_bucket_avg?t.feat_hist_startup_qn_bucket_avg:0,e[9]=void 0!==t.feat_hist_startup_fullscreen_rate?t.feat_hist_startup_fullscreen_rate:0,e[10]=void 0!==t.feat_auto_switch_net_direction?t.feat_auto_switch_net_direction:0,e[11]=void 0!==t.feat_archive_engagement_score?t.feat_archive_engagement_score:0,e[12]=void 0!==t.feat_screen_capability?t.feat_screen_capability:0,e[13]=void 0!==t.feat_quit_qn_gap?t.feat_quit_qn_gap:0,e[14]=void 0!==t.archive_is_high_grade?t.archive_is_high_grade:0,e[15]=void 0!==t.feat_vip_x_downgrade?t.feat_vip_x_downgrade:0,e}({is_vip:A,feat_cold_start_x_duration:h*s,feat_top_qn_x_downgrade:n*o,feat_top_qn_x_duration:n*Math.log1p(s),feat_hist_avg_playback_time_log:i.avgAutoPlaybackTime||0,feat_duration_log:s,feat_top_qn_bucket_val:n,feat_startup_qn_downgrade_magnitude:o,feat_hist_startup_qn_bucket_avg:c>0&&i.avgAutoStartupQualityIndex||0,feat_hist_startup_fullscreen_rate:c>0?(i.fullscreenVV||0)/c:0,feat_auto_switch_net_direction:c>0?d-u:0,feat_archive_engagement_score:Math.log1p((e.archiveStatLike||0)+2*(e.archiveStatCoin||0)+3*(e.archiveStatShare||0)),feat_screen_capability:e.display?Math.min(e.display.width*e.display.height/1e6,10):0,feat_quit_qn_gap:c>0?p-r:0,archive_is_high_grade:e.isHighGradeVideo?1:0,feat_vip_x_downgrade:A*o});return a(g)[1]||0}catch(t){return 0}}static evaluateStartupModelV2(t){var e,i;const n=[64,80,116,120];try{const r=null==t?void 0:t.realtime,o=null==t?void 0:t.historyStats,a=function(t){return[t.top_quality_number||0,t.device_limit||0,t.history_last_quit_quality||0,t.is_vip||0,t.is_login||0,t.history_avg_startup_quality_idx||0,t.history_auto_switch_lower||0,t.history_valid_vv||0,t.archive_sub_tid||0,t.fresh_rate||0,t.history_avg_playback_time||0,t.up_fans||0,t.manual_switch_latest_qn||0,t.cpu_cores||0,t.screen_w||0,t.archive_duration||0,t.archive_shares||0]}({top_quality_number:(null==r?void 0:r.topQualityNumber)||0,device_limit:(null==r?void 0:r.abrTopQualityNumber)||s.nJ.alias.UHD_4K,history_last_quit_quality:(null==o?void 0:o.lastQuitQuality)||0,is_vip:(null==r?void 0:r.isVip)||0,is_login:(null==r?void 0:r.isLogin)||0,history_avg_startup_quality_idx:(null==o?void 0:o.avgAutoStartupQualityIndex)||0,history_auto_switch_lower:(null==o?void 0:o.autoSwitchLowerCount)||0,history_valid_vv:(null==o?void 0:o.validVV)||0,archive_sub_tid:(null==r?void 0:r.archiveSubTid)||0,fresh_rate:0,history_avg_playback_time:(null==o?void 0:o.avgAutoPlaybackTime)||0,up_fans:(null==r?void 0:r.upFans)||0,manual_switch_latest_qn:(null==(e=null==t?void 0:t.manualSwitch)?void 0:e.latestQn)||0,cpu_cores:(null==r?void 0:r.cpuCores)||0,screen_w:(null==(i=null==r?void 0:r.display)?void 0:i.width)||0,archive_duration:(null==r?void 0:r.duration)||0,archive_shares:(null==r?void 0:r.archiveStatShare)||0}),l=function(t){var e=0,i=0,n=0,r=0;e+=t[1]<=72?t[5]<=2.025?t[3]<=1e-35?t[1]<=1e-35?t[6]<=3.5?t[9]<=115.5?-1.116:-1.128:-1.111:t[6]<=1e-35?t[13]<=4.5?-1.13:-1.114:t[5]<=1.655?-1.131:-1.121:t[1]<=1e-35?-1.142:t[16]<=71.5?-1.114:-1.133:t[6]<=1e-35?t[7]<=52.5?t[12]<=72?t[1]<=1e-35?-1.127:-1.119:-1.138:t[16]<=69.5?t[12]<=96?-1.112:-1.13:t[1]<=1e-35?-1.132:-1.117:t[6]<=2.5?t[3]<=1e-35?t[5]<=2.765?-1.124:-1.135:t[1]<=24?-1.142:-1.123:t[16]<=149.5?t[6]<=3.5?-1.131:-1.136:-1.14:t[5]<=2.935?t[14]<=1711?t[12]<=72?t[12]<=1e-35?t[7]<=3.5?-1.136:-1.129:-1.121:-1.141:t[9]<=64.5?t[1]<=96?t[12]<=72?-1.131:-1.141:-1.138:t[1]<=96?t[14]<=2306?-1.136:-1.14:-1.142:t[14]<=1682?t[3]<=1e-35?t[6]<=1e-35?t[14]<=1419?-1.131:-1.135:-1.122:t[6]<=1e-35?-1.138:-1.133:t[9]<=118.5?t[5]<=3.325?t[12]<=72?-1.136:-1.142:t[3]<=1e-35?-1.139:-1.141:t[12]<=1e-35?-1.142:t[12]<=72?-1.118:-1.142,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[12]<=72?-.755:t[0]<=48?-.7347:-.7551:t[14]<=1438?-.7289:t[9]<=57.5?-.7373:-.751:t[0]<=96?t[5]<=1.01?t[14]<=1601?t[9]<=60.5?-.7337:-.7306:t[8]<=19?-.7418:-.7284:t[1]<=72?t[14]<=1362?-.7339:-.7284:t[14]<=1711?-.7385:-.7334:t[10]<=24.5?-.7272:t[7]<=90.5?t[10]<=292.5?-.7546:-.7503:t[5]<=2.905?-.7509:-.742:t[5]<=2.165?t[7]<=7.5?t[0]<=118?t[9]<=71.5?t[1]<=118?-.7497:-.738:t[3]<=1e-35?-.7415:-.7485:t[14]<=1709?-.7485:-.7538:t[9]<=163.5?t[0]<=96?t[12]<=72?-.7544:-.7467:-.749:t[10]<=95.5?-.7351:-.7512:t[3]<=1e-35?t[12]<=72?t[14]<=2004?t[9]<=32.5?-.7505:-.7435:t[8]<=2023?-.7328:-.7384:t[14]<=1721?t[0]<=96?-.7313:-.7398:t[9]<=63.5?-.7321:-.7257:t[0]<=118?t[5]<=3.305?t[8]<=2025?-.7494:-.7449:t[1]<=114?-.7495:-.7477:t[7]<=3.5?t[9]<=120.5?-.7505:-.7538:t[8]<=2150?-.7501:-.7466,n+=t[3]<=1e-35?t[1]<=96?t[6]<=1e300?t[5]<=2.885?-2.023:t[5]<=2.895&&t[8]<=2065?-2.01:-2.023:t[4]<=1e-35?t[16]<=37.5?t[16]<=34.5?-2.023:-2.009:(t[8],-2.023):-2.023:t[1]<=118?-2.009:t[5]<=2.375?-2.023:-2.018:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[4]<=1e-35?t[13]<=10.5?-1.989:-2.002:t[2]<=96?-2.019:-2.006:t[8]<=2084?t[8]<=2038?-2.005:-1.981:t[13]<=8.5?-1.985:-2.01:t[2]<=96?t[8]<=2043?t[5]<=3.675?-1.982:-1.997:t[12]<=96?-2.002:-1.977:t[5]<=3.355?t[12]<=96?-1.995:-1.967:t[6]<=1e-35?-1.965:-1.979:t[2]<=96?t[8]<=2006?t[16]<=757.5?t[9]<=59.5?-2.023:-2.012:-1.989:t[9]<=30.5?-1.998:t[5]<=3.505?-2.011:-2.016:t[5]<=2.605?t[13]<=12.5?t[8]<=2066?-2.013:-2.009:t[16]<=3.5?-2.016:-2.021:t[16]<=18700?t[9]<=180.5?-2.007:-2.013:-2.023,r+=t[0]<=118?t[0]<=48?t[3]<=1e-35?t[16]<=29960?t[6]<=9.5?-2.7:t[6]<=10.5?-2.686:-2.7:t[7]<=12.5?-2.7:-2.667:t[16]<=2.5?t[6]<=58.5?t[9]<=260.5?-2.689:-2.699:t[14]<=1678?-2.657:-2.68:t[9]<=141.5?t[14]<=2034?-2.675:-2.64:t[9]<=280.5?-2.634:-2.68:t[12]<=118?t[16]<=17020?t[10]<=1053?-2.7:t[10]<=1087?-2.686:-2.7:t[9]<=239.5?t[16]<=18700?-2.68:-2.7:-2.675:t[6]<=1e-35?-2.7:-2.643:t[7]<=3.5?t[13]<=6.5?t[2]<=122.5?-2.687:-2.639:t[14]<=1708?t[9]<=143.5?t[14]<=1502?-2.614:-2.648:-2.605:t[13]<=16.5?t[0]<=122.5?-2.61:-2.59:t[16]<=206.5?-2.601:-2.587:t[13]<=12.5?t[10]<=249.5?t[0]<=126.5?t[2]<=96?-2.664:-2.637:-2.59:t[12]<=96?t[6]<=1.5?-2.666:-2.692:-2.598:t[10]<=175.5?t[9]<=160.5?t[10]<=119.5?-2.637:-2.604:t[16]<=15.5?-2.587:-2.608:t[6]<=8.5?t[12]<=1e-35?-2.631:-2.678:-2.691,e+=t[0]<=72?t[7]<=1.5?t[1]<=72?.02235:t[14]<=2034?t[13]<=4.5?t[8]<=2026?.008341:.01529:t[8]<=2028?.002884:.008388:t[8]<=2037?-.004497:t[13]<=12.5?1143e-7:.003925:t[16]<=194.5?t[1]<=72?t[0]<=48?t[2]<=72?.02042:.007304:.02288:t[14]<=1921?.007191:-.007931:t[1]<=72?.02215:t[2]<=72?t[6]<=3.5?.01031:.01867:-.007361:t[2]<=72?t[5]<=6.5?t[1]<=72?t[13]<=20.5?t[14]<=1362?-.003557:-.008699:t[8]<=2028?9673e-7:-.005463:t[7]<=23.5?t[0]<=114?-.001543:-.008638:t[1]<=96?.007954:-1138e-7:t[14]<=1698?t[2]<=48?.01967:t[8]<=2046?.008775:.01368:t[13]<=11.5?t[2]<=48?.01411:.00656:t[7]<=11.5?-.006259:.003513:t[5]<=3.115?t[14]<=1804?t[1]<=72?-.00763:t[0]<=114?.002629:-.004134:t[13]<=8.5?t[5]<=2.825?-3145e-7:-.005095:t[0]<=114?-.005456:-.008896:t[6]<=1e-35?t[8]<=19?.01118:t[7]<=26.5?-.008807:-.01045:t[13]<=4.5?t[8]<=2072?-.005704:-3331e-7:t[14]<=1709?-.005461:-.008893,
i+=t[1]<=96?t[0]<=72?t[1]<=72?t[12]<=72?-.01403:t[0]<=48?.006045:-.01421:t[10]<=200.5?t[8]<=2037?.005237:-.01089:.01042:t[0]<=96?t[5]<=1.01?t[9]<=61.5?t[8]<=19?-.005163:.009867:t[9]<=167.5?.01193:.01379:t[1]<=72?t[12]<=1e-35?.01213:.005866:t[12]<=72?.004281:.01269:t[10]<=24.5?.01346:t[6]<=8.5?t[10]<=299.5?-.01269:-.00918:-.005271:t[5]<=2.165?t[6]<=3.5?t[0]<=118?t[9]<=115.5?t[8]<=2084?-.009411:-.005647:t[12]<=96?-.002058:-.01273:t[8]<=2126?t[9]<=156.5?-.0111:-.01402:-.006506:t[9]<=59.5?t[15]<=14.5?-.01027:-.01385:t[10]<=289.5?t[8]<=2027?-.009574:-.01283:t[6]<=10.5?-.001021:-.01341:t[1]<=96?t[0]<=72?t[8]<=2020?t[8]<=2018?-.001361:.006131:t[15]<=249.5?-.009091:-.003732:t[15]<=2778?.01353:t[9]<=145.5?.001766:.008188:t[0]<=118?t[5]<=3.305?t[8]<=2025?-.008264:-.003666:t[0]<=114?-.008484:-.006653:t[6]<=24.5?t[8]<=2150?-.00964:-.00591:t[9]<=122.5?-.01036:-.01295,n+=t[3]<=1e-35?t[14]<=-1e-35?t[9]<=143.5?.01992:-.008646:t[12]<=96?t[13]<=29.5?t[2]<=114?t[11]<=1457e4?-.008639:-.007994:t[14]<=1546?-.008028:-.008635:t[7]<=99.5?-.008646:-1621e-7:-.003811:t[2]<=96?t[4]<=1e-35?t[16]<=9.5?.04183:t[14]<=1799?.004617:t[11]<=50370?.008437:.04297:t[6]<=1e-35?t[14]<=1512?t[7]<=26.5?.005233:-.002807:t[9]<=59.5?.02536:.008373:t[9]<=175.5?t[9]<=59.5?-.003135:.0101:t[7]<=57.5?.03178:.01481:t[6]<=1e-35?t[7]<=40.5?t[2]<=118?t[7]<=3.5?.01427:.02276:t[9]<=118.5?.005411:.01545:t[2]<=118?t[9]<=161.5?.02879:.03567:t[16]<=1.5?.01397:.0243:t[9]<=72.5?t[7]<=96.5?t[9]<=59.5?.019:.01206:t[14]<=2196?.003475:.01206:t[11]<=411e4?t[6]<=9.5?.01577:.02086:t[16]<=359.5?.01996:.001941,r+=t[1]<=118?t[3]<=1e-35?t[10]<=916.5?t[8]<=2158?t[4]<=1e-35?-.008045:-.008044:t[15]<=3135?-.008044:t[8]<=2161?.02421:-.008044:t[10]<=938.5?.008738:-.008045:t[4]<=1e-35?t[15]<=1041?t[2]<=72?t[9]<=60.5?.04656:.002771:t[9]<=122.5?.03671:.06145:t[9]<=243.5?t[2]<=72?-.005598:.02089:.04479:t[1]<=114?t[2]<=118?t[10]<=49.5?-.005599:-.007827:t[1]<=72?.006243:-.006418:t[8]<=2009?t[15]<=991.5?.004117:.04423:t[5]<=3.325?-.004954:.006352:t[9]<=154.5?t[10]<=163.5?t[3]<=1e-35?t[14]<=1470?.04746:t[2]<=72?-.008051:.01636:t[14]<=2293?t[12]<=118?.04996:.1019:t[2]<=118?.06399:.08329:t[12]<=114?t[14]<=2034?t[8]<=2128?.03254:.004482:t[15]<=435.5?.01895:.05881:.08359:t[12]<=1e-35?t[10]<=127.5?t[8]<=2071?.09353:t[5]<=2.495?.0961:.07597:t[14]<=1708?t[9]<=237.5?.06381:.02806:t[15]<=481.5?.08178:.06871:t[2]<=72?.03862:.01645,e+=t[1]<=72?t[2]<=24?t[3]<=1e-35?t[1]<=1e-35?t[14]<=2034?t[13]<=3.5?.02099:.01675:t[6]<=3.5?.003183:.01815:t[10]<=16.5?.02237:t[11]<=5912?.01848:-.00197:-.004853:t[6]<=2.5?t[1]<=24?t[3]<=1e-35?t[12]<=48?.008508:-.004525:-.008994:t[11]<=56060?t[14]<=837?-.006199:.01524:t[15]<=216.5?.01839:.002769:t[1]<=1e-35?t[2]<=72?.01911:-.009995:t[11]<=5679?9162e-8:t[13]<=20.5?-.007482:-.002926:t[2]<=72?t[10]<=363.5?t[14]<=1682?t[8]<=2031?1125e-8:t[13]<=16.5?.004924:.01325:t[1]<=96?t[13]<=4.5?.003356:-.003687:-.007185:t[14]<=1698?t[10]<=2988?t[8]<=2051?.003776:.01333:t[2]<=48?.01906:.01233:t[3]<=1e-35?t[11]<=10460?.00372:.01007:7654e-7:t[10]<=16.5?t[2]<=72?t[13]<=4.5?t[3]<=1e-35?.002804:-.00412:t[12]<=1e-35?-.008203:.001978:t[11]<=1e-35?.01002:-.01017:t[3]<=1e-35?t[12]<=72?t[14]<=1839?.004287:-.001299:-.008516:t[14]<=1914?t[12]<=72?-.001883:-.008953:t[13]<=9.5?-.00494:-.007818,i+=t[3]<=1e-35?t[4]<=1e-35?t[6]<=3.5?t[14]<=1967?t[15]<=268.5?t[16]<=1.5?-.01257:-.007396:t[10]<=71.5?-.002575:-.009768:t[11]<=2334e3?t[10]<=296.5?.005019:-5071e-7:.008608:t[16]<=5.5?t[6]<=9.5?t[15]<=1672?-.01346:-.01019:-.01399:t[8]<=2027?t[8]<=2018?-.01:.001602:t[10]<=187.5?-.01315:-.008614:t[5]<=2.765?t[12]<=72?t[12]<=1e-35?t[14]<=1711?.001921:.005405:t[15]<=1826?-.003965:-.01045:t[16]<=1.5?t[14]<=1409?.006941:.01201:t[11]<=5679?.01197:.01428:t[14]<=1682?t[8]<=2079?t[12]<=1e-35?.006613:5102e-7:t[15]<=1264?.004705:4217e-7:t[8]<=2084?t[11]<=1e-35?-8207e-7:.01032:t[11]<=148900?.006238:.009833:t[6]<=38.5?t[15]<=10650?t[6]<=19.5?t[12]<=96?t[8]<=2084?-.007416:-.00586:t[5]<=2.945?-.01201:-.009153:t[11]<=162.5?t[16]<=1e-35?-.008288:.001032:t[8]<=2005?-.005361:-.009735:t[16]<=26.5?t[11]<=13960?-.003069:t[14]<=2061?.002742:.01074:t[15]<=13680?t[16]<=219.5?-.001813:.006566:t[14]<=1920?-.01173:-.004126:.004923,n+=t[0]<=96?t[3]<=1e-35?t[7]<=1e-35?t[4]<=1e-35?t[16]<=37.5?t[16]<=34.5?-.00809:.006142:t[8]<=2015?-.008423:-.008637:t[0]<=72?-.008644:-.008631:t[0]<=72?-.008639:t[1]<=72?-.008628:-.008633:t[1]<=96?t[5]<=3.255?t[8]<=2105?t[8]<=2020?-.006226:-.008626:t[1]<=72?-.008431:7837e-7:t[16]<=152.5?t[5]<=3.475?.006831:-.008684:.02667:t[0]<=72?t[10]<=38.5?-.001187:t[9]<=145.5?.01888:.01008:.04647:t[0]<=118?t[5]<=3.305?t[1]<=96?t[0]<=114?.03253:t[9]<=57.5?.03864:.05039:t[8]<=2030?t[8]<=2016?.01777:.03877:t[9]<=105.5?.01296:.02494:t[9]<=144.5?t[12]<=96?t[10]<=99.5?.03307:.02445:t[10]<=371.5?.04169:.05131:t[16]<=1.5?t[7]<=4.5?.02642:.03874:t[10]<=497.5?.04041:.0201:t[7]<=3.5?t[0]<=122.5?t[9]<=45.5?.01462:t[16]<=1e-35?-.004912:.001012:t[9]<=60.5?-.004078:-.008434:t[1]<=114?t[9]<=141.5?.01223:.03282:t[8]<=2031?t[10]<=179.5?-.005072:.003254:t[16]<=18700?.005633:-.004925,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[0]<=72?t[2]<=118?-.008042:-.008047:t[2]<=72?-.008037:-.008039:t[0]<=114?t[2]<=96?-.008045:-.008043:t[5]<=3.325?-.008045:-.00805:t[8]<=2159?-.008039:.02131:t[12]<=96?t[2]<=72?t[11]<=1457e4?t[5]<=1.01?-.007276:.00501:.03814:t[9]<=61.5?t[11]<=7834?.001978:-.004721:t[11]<=501500?.002467:.01887:.05584:t[7]<=1.5?t[9]<=53.5?.03325:t[8]<=2125?t[8]<=2098?t[9]<=77.5?.05688:.07391:t[9]<=62.5?.07985:.0903:t[9]<=200.5?t[16]<=243.5?.01728:.05021:t[16]<=315.5?.06304:.07693:t[9]<=152.5?t[0]<=122.5?t[8]<=2047?t[7]<=38.5?.06089:.03655:t[5]<=2.085?.04775:.02714:t[5]<=.295?.02225:t[9]<=33.5?.04725:.08214:t[7]<=44.5?t[11]<=541600?t[2]<=96?.08939:.07355:t[16]<=594.5?.02504:.0608:t[5]<=2.855?.07384:t[9]<=164.5?.06635:.03646,e+=t[0]<=72?t[1]<=72?t[11]<=1507e3?t[0]<=48?t[5]<=2.195?.02176:t[10]<=420.5?.01867:.005598:.02219:t[1]<=48?-.00636:.02229:t[3]<=1e-35?t[2]<=72?t[6]<=10.5?t[13]<=5.5?.01819:.01306:t[16]<=368.5?.02166:.0178:t[2]<=114?t[10]<=61.5?.005769:-.005102:t[8]<=2027?.004031:.01181:t[8]<=2071?-.00992:t[11]<=143.5?.001543:t[6]<=1.5?-.01047:-.006544:t[2]<=72?t[10]<=3708?t[1]<=72?t[13]<=22.5?t[16]<=181.5?-.006961:-.00962:t[6]<=3.5?-.001848:-.006191:t[5]<=1.125?t[13]<=1.5?.001155:-.007231:t[1]<=96?.005071:-.003026:t[3]<=1e-35?t[2]<=48?t[13]<=5.5?.01839:.01305:t[16]<=1e-35?.01196:.006065:t[13]<=9.5?t[11]<=10460?6317e-7:.01147:t[11]<=93390?-.004293:.001708:t[5]<=3.105?t[1]<=72?-.008901:t[0]<=96?t[5]<=2.765?.001735:-.002504:t[13]<=10.5?-.003171:-.006295:t[6]<=1e-35?t[8]<=19?.006289:t[10]<=60.5?-.01022:-.00743:t[13]<=4.5?t[1]<=72?-.01033:-.001036:t[1]<=114?-.007297:-.009394,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[7]<=16.5?t[3]<=1e-35?t[13]<=8.5?.003699:-.004318:-.01218:t[16]<=19.5?-.01176:t[3]<=1e-35?-.003931:-.01275:t[3]<=1e-35?t[6]<=3.5?t[15]<=5609?.005313:-.01117:t[5]<=2.195?.00427:.01072:t[15]<=737.5?-.01182:-.00402:t[2]<=72?t[7]<=14.5?t[5]<=2.385?.008424:t[8]<=2054?.006094:-.002007:t[5]<=2.895?t[8]<=2022?.004507:-.001144:t[2]<=48?-.008712:-.003039:t[5]<=1.01?t[2]<=96?.01441:t[13]<=5.5?.004527:.01132:t[12]<=72?t[3]<=1e-35?.004709:-.002699:.01271:t[2]<=72?t[16]<=1.5?t[7]<=4.5?-.008322:-.013:t[15]<=210.5?-.01077:t[12]<=72?t[6]<=15.5?-.006411:-.01234:.004488:t[2]<=96?t[5]<=3.925?t[3]<=1e-35?t[8]<=2080?.009844:447e-7:t[7]<=48.5?-.008538:2919e-7:t[13]<=5.5?.007981:t[3]<=1e-35?.01302:.001284:t[3]<=1e-35?t[8]<=2026?t[15]<=8218?.001029:.007783:t[13]<=9.5?-.006757:-.001314:t[5]<=3.565?t[1]<=118?-.005878:-.009014:t[7]<=5.5?-.009356:-.01262,
n+=t[0]<=96?t[1]<=96?t[4]<=1e-35?t[2]<=24?t[13]<=18.5?t[14]<=1721?-.008563:-.007117:t[14]<=2548?-.007332:.008449:t[7]<=65.5?t[13]<=4.5?-.005912:-.002646:t[13]<=16.5?.01854:-.007066:t[2]<=96?t[6]<=1e-35?-.008621:t[16]<=10.5?-.008223:-.008622:t[16]<=152.5?t[6]<=1.5?-.008693:3972e-7:t[8]<=2042?.01323:-.008689:t[0]<=72?t[13]<=12.5?t[6]<=8.5?-.007391:.0112:t[14]<=1708?-.008633:-.006472:.04159:t[0]<=118?t[2]<=96?t[1]<=96?t[7]<=50.5?.04339:t[16]<=2.5?.0104:.03122:t[14]<=2548?t[8]<=2042?.02188:.011:t[7]<=1.5?.04279:.0247:t[6]<=1e-35?t[7]<=36.5?t[14]<=1947?.02958:.03758:t[2]<=114?.03866:.04527:t[1]<=96?.04229:t[16]<=1e-35?.01076:.0237:t[7]<=3.5?t[0]<=122.5?t[13]<=16.5?t[8]<=2109?8622e-7:.006995:t[7]<=1.5?-.003758:.00276:t[13]<=12.5?-.004031:-.00842:t[1]<=114?t[14]<=1920?.03365:.01235:t[2]<=96?t[7]<=8.5?.005712:-.001497:t[8]<=2037?3058e-7:.007449,r+=t[1]<=118?t[3]<=1e-35?t[11]<=1457e4?t[16]<=29960?t[4]<=1e-35?t[7]<=1e-35?-.008041:-.008037:t[12]<=118?-.008033:-.008045:t[7]<=96.5?t[1]<=24?-.008041:-.008035:.01679:t[5]<=2.005?.01191:-.008036:t[4]<=1e-35?t[15]<=1041?t[11]<=632400?t[16]<=41.5?.0461:.02095:t[9]<=99.5?.03795:.07071:t[5]<=1.01?t[9]<=57.5?.02319:9926e-7:.05439:t[11]<=4875e3?t[13]<=2.5?.01469:t[1]<=114?-.007601:-.005017:t[16]<=350.5?t[9]<=60.5?.01241:-.006619:t[15]<=1007?.05807:.007604:t[9]<=100.5?t[5]<=2.315?t[3]<=1e-35?t[13]<=11.5?-.008059:.03345:t[7]<=8.5?t[16]<=27.5?.07647:.05181:t[15]<=390.5?.03258:.05084:t[12]<=96?t[9]<=60.5?t[15]<=2443?.0296:.05446:t[11]<=581600?-.005113:.008772:.0652:t[3]<=1e-35?.01016:t[7]<=48.5?t[15]<=481.5?t[7]<=13.5?.07241:.05994:t[15]<=977.5?.04286:.06736:t[12]<=1e-35?t[5]<=3.105?.04438:.07075:t[12]<=96?-2541e-7:.04828,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-9967e-7:t[12]<=72?.02154:t[2]<=48?-618e-6:.02184:t[3]<=1e-35?t[2]<=72?t[14]<=1927?t[7]<=7.5?.01596:.02017:t[6]<=3.5?.005102:.01638:t[2]<=122.5?t[8]<=2069?-.005936:-4076e-7:t[8]<=2026?.004481:.01127:t[8]<=2084?-.009633:t[11]<=184.5?.01013:t[14]<=1711?-.002559:-.008459:t[2]<=72?t[1]<=72?t[6]<=1e-35?t[7]<=39.5?t[14]<=1920?-6009e-7:-.007172:t[7]<=97.5?.02163:.006208:t[14]<=1849?t[1]<=48?-.003177:-.007799:-.008539:t[7]<=19.5?t[14]<=1698?t[8]<=2046?-.001173:.006936:t[14]<=1953?-.002546:-.007866:t[14]<=1682?t[8]<=2022?.006073:.01313:t[0]<=96?.006757:-5737e-7:t[14]<=1682?t[6]<=1e-35?t[7]<=65.5?t[3]<=1e-35?-8001e-7:-.00572:t[11]<=1e-35?.008935:-.006826:t[1]<=72?t[7]<=56.5?-.01043:-.004423:t[12]<=72?.004124:-.005928:t[6]<=1e-35?t[0]<=96?t[8]<=2078?-.007344:-.005012:t[8]<=171.5?4924e-7:-.009088:t[1]<=72?-.009109:t[3]<=1e-35?2751e-7:-.005534,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[11]<=93390?t[7]<=17.5?t[15]<=3037?-.005012:-.01277:t[10]<=157.5?-.01246:-.009092:t[15]<=561.5?t[10]<=243.5?-.003285:-.01005:t[7]<=53.5?.005154:-.01108:t[5]<=3.005?t[11]<=10890?t[6]<=2.5?-.005023:.004687:t[11]<=407800?.005846:.01066:-.01064:t[5]<=1.01?t[14]<=1682?t[14]<=1408?t[7]<=67.5?.006471:.002768:.008282:t[12]<=1e-35?t[14]<=1977?.0109:.01314:t[12]<=72?-.006922:.01319:t[12]<=72?t[14]<=1953?t[12]<=1e-35?.0032:-.004067:t[12]<=1e-35?.00815:-.001755:.01193:t[6]<=9.5?t[1]<=118?t[15]<=5005?t[15]<=268.5?t[5]<=1.895?-.01018:-.006638:t[1]<=96?-.003836:-.006778:t[1]<=96?t[10]<=177.5?.001688:-.00861:t[15]<=5609?.002645:-.008324:t[7]<=3.5?t[11]<=1e-35?-.001253:t[10]<=121.5?-.01184:-.008474:t[14]<=2173?-.007536:t[10]<=434.5?-.01059:-.003984:t[5]<=2.845?t[16]<=83.5?-.01363:t[8]<=2038?t[5]<=.985?-.01385:-.003116:-.01283:t[1]<=96?.01018:t[5]<=2.905?.001286:-.01032,n+=t[0]<=96?t[1]<=96?t[1]<=1e-35?t[2]<=24?t[9]<=63.5?t[11]<=300300?-.008434:-.006773:t[8]<=2070?-.008155:-.001433:t[12]<=96?t[9]<=300.5?-.003793:.006042:.01544:t[2]<=96?t[14]<=-1e-35?t[11]<=961.5?.009431:-.008613:t[6]<=1e-35?-.008609:-.008456:t[10]<=238.5?t[0]<=48?-.006414:-.008682:t[10]<=278.5?.02071:-.005693:t[1]<=118?.04472:t[14]<=2548?-.008253:-.004645:t[0]<=118?t[2]<=96?t[1]<=96?t[11]<=209500?t[11]<=7561?.03407:.04439:.01999:t[14]<=2281?t[8]<=2042?.02086:.00967:t[2]<=72?.03091:.01788:t[10]<=27.5?t[2]<=96?t[8]<=2071?.03769:.0296:t[10]<=18.5?.034:.04419:t[12]<=96?t[1]<=96?.03781:.0207:t[10]<=115.5?.03496:.04535:t[2]<=96?t[9]<=30.5?.02142:t[11]<=45380?t[10]<=331.5?.001919:.0142:t[9]<=321.5?-.002206:.004781:t[8]<=2020?t[10]<=11.5?t[2]<=118?.01472:-.008699:t[14]<=2548?-.00432:.001546:t[10]<=189.5?t[13]<=16.5?.005076:-.004841:t[12]<=72?.007004:.02526,r+=t[1]<=118?t[3]<=1e-35?t[11]<=1457e4?t[16]<=29960?t[1]<=96?-.008028:-.008034:t[7]<=97.5?-.008032:.01988:t[8]<=2157?-.008033:.01457:t[1]<=1e-35?t[13]<=5.5?t[7]<=1e-35?.009314:t[7]<=3.5?-.002498:-.008055:t[11]<=805100?t[14]<=2034?.0116:.03413:t[16]<=594.5?.0242:.05427:t[11]<=4432e3?t[5]<=3.085?t[1]<=114?-.007806:-.006969:t[1]<=114?-.007104:.002548:t[7]<=1.5?t[11]<=7448e3?.05686:.04766:t[2]<=118?-.007417:.03605:t[13]<=9.5?t[16]<=291.5?t[7]<=55.5?t[3]<=1e-35?.005658:t[5]<=2.925?.05801:.03793:t[2]<=118?t[14]<=2506?.01479:.03768:t[5]<=2.525?.08338:.02099:t[8]<=2126?t[11]<=3917e3?t[11]<=29e4?.03645:.01011:.0454:t[5]<=1.995?.025:-6898e-7:t[7]<=4.5?t[5]<=2.995?t[16]<=1930?t[11]<=261.5?.04593:.0671:t[16]<=22780?.04908:.07314:t[11]<=204800?.06122:t[11]<=1507e3?.02637:.05034:t[14]<=2237?t[16]<=18700?t[8]<=2071?.04444:.02887:.06869:t[12]<=1e-35?t[11]<=805100?.06337:.04826:.04089,e+=t[0]<=72?t[1]<=72?t[12]<=72?t[0]<=48?t[2]<=1e-35?t[13]<=26?.02039:.006813:.02051:.02138:t[2]<=48?-.004073:.02142:t[3]<=1e-35?t[2]<=72?t[9]<=74.5?t[7]<=6.5?.0161:.01987:t[11]<=8697?.01091:.004058:t[2]<=122.5?t[16]<=6117?-.001906:-.01103:t[9]<=100.5?.01111:.004998:t[11]<=34.5?-.001891:t[9]<=42.5?-.004745:t[12]<=1e-35?-.009429:-.005932:t[2]<=72?t[1]<=72?t[13]<=22.5?t[9]<=61.5?t[7]<=6.5?-.00432:-.008211:-.01031:t[11]<=2573e3?t[11]<=78e3?-.005782:-8166e-8:-.009261:t[7]<=21.5?t[1]<=114?t[9]<=63.5?.002067:-.004208:t[9]<=166.5?-.00635:-.01093:t[1]<=96?t[2]<=48?.0135:.00691:t[9]<=119.5?.003694:-.004107:t[3]<=1e-35?t[9]<=141.5?t[1]<=72?t[7]<=54.5?-.009915:-.006014:t[7]<=91.5?-.001629:-.004681:t[7]<=1.5?t[9]<=503?-.008444:-.00227:t[7]<=69.5?-.00486:-.007408:t[9]<=147.5?t[12]<=72?t[12]<=1e-35?-.006848:.00488:-.00987:t[12]<=1e-35?-.009398:t[12]<=96?-.002839:-.00922,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[14]<=360.5?.002567:t[12]<=72?-.01361:t[2]<=48?.006348:-.01381:t[14]<=1438?.01108:t[7]<=2.5?-.00999:.001723:t[0]<=96?t[2]<=72?t[1]<=72?t[6]<=1e-35?.004935:.01195:t[7]<=20.5?.005486:-.002259:t[10]<=16.5?t[7]<=2.5?.011:.01439:t[12]<=72?.005463:.01263:t[14]<=1441?-.001308:t[10]<=547.5?-.01174:t[10]<=722.5?.001973:-.009918:t[2]<=72?t[6]<=8.5?t[16]<=6.5?t[10]<=147.5?t[6]<=3.5?-.006106:-.01267:t[1]<=114?-.0122:-.009391:t[16]<=8.5?.002795:t[10]<=13.5?-7237e-7:-.007532:t[16]<=65.5?-.01338:t[12]<=72?t[14]<=2178?-.01076:-.002253:.003196:t[2]<=96?t[10]<=1724?t[3]<=1e-35?t[0]<=114?.007852:-.007446:t[7]<=39.5?-.008906:-6572e-7:t[7]<=91.5?t[3]<=1e-35?.01121:.001118:t[16]<=1.5?.01037:.005537:t[3]<=1e-35?t[0]<=72?t[14]<=2034?-.003701:.003346:t[0]<=114?.01498:.005819:t[10]<=57.5?t[7]<=10.5?-.009423:-.01256:t[0]<=118?-.006056:-.008712,n+=t[0]<=96?t[4]<=1e-35?t[2]<=24?t[7]<=3.5?t[10]<=41.5?-.007886:t[13]<=7.5?-.006752:-.001738:-.008324:t[7]<=56.5?t[13]<=5.5?t[13]<=2.5?-7439e-7:-.007277:t[16]<=1.5?.001429:-.003118:t[10]<=23.5?.03396:t[7]<=95.5?.007866:-.008632:t[2]<=96?-.008414:t[16]<=303.5?t[8]<=2004?t[10]<=221.5?.01823:-.008691:-.007652:t[10]<=185.5?-.008673:.02277:t[0]<=118?t[2]<=96?t[10]<=2576?t[8]<=2078?t[13]<=6.5?.003797:.0281:t[7]<=1.5?.03483:.0114:t[13]<=15.5?t[15]<=31.5?.02273:.006693:t[7]<=10.5?.002722:.01979:t[10]<=69.5?t[7]<=7.5?t[8]<=2043?.03842:.02977:t[10]<=25.5?.0428:.03112:t[12]<=96?t[8]<=2086?.02391:.01268:.04207:t[7]<=60.5?t[13]<=16.5?t[8]<=2030?t[15]<=2503?-7838e-7:-.007719:t[7]<=3.5?.001122:.005993:t[2]<=118?-.004065:.01179:t[2]<=96?t[11]<=104100?t[10]<=181.5?.004011:.02882:t[8]<=2150?-.004812:.004878:t[8]<=2100?t[7]<=99.5?.009631:.02614:t[15]<=137.5?.0202:.002627,
r+=t[1]<=118?t[1]<=114?t[2]<=118?t[16]<=17020?t[2]<=96?-.008021:t[13]<=20.5?-.007963:-.004803:t[16]<=18700?.008504:-.008028:t[16]<=1818?-.007414:.02203:t[13]<=5.5?t[2]<=118?t[13]<=2.5?t[7]<=1e-35?-4788e-7:-.008028:t[15]<=3135?-.007945:-.005196:t[7]<=91.5?.008794:-.008046:t[16]<=238.5?t[12]<=118?t[2]<=118?-.004099:.009663:.02408:t[16]<=261.5?t[15]<=907.5?.01242:.04856:t[9]<=99.5?-.003061:.005551:t[13]<=9.5?t[16]<=291.5?t[7]<=55.5?t[2]<=96?t[7]<=15.5?.04347:.01843:t[13]<=6.5?.03562:.05136:t[2]<=118?t[14]<=2161?.01424:.03563:t[6]<=1e-35?.06703:.01729:t[15]<=264.5?t[7]<=7.5?.01421:.0562:t[15]<=404.5?-.004749:t[16]<=501.5?.04075:.01595:t[7]<=4.5?t[15]<=261.5?t[13]<=18.5?t[15]<=121.5?.05434:.06508:.07246:t[14]<=1708?t[15]<=643.5?.01945:.04832:t[13]<=18.5?.05391:.06556:t[14]<=2237?t[16]<=18700?t[9]<=100.5?.0255:.03927:.06406:t[12]<=1e-35?t[15]<=352.5?.0502:.06081:.03896,e+=t[0]<=72?t[7]<=1.5?t[3]<=1e-35?t[1]<=72?.01992:t[8]<=2027?t[8]<=2016?.007216:4037e-8:t[13]<=9.5?.01474:.009334:t[1]<=96?.02009:-.008316:t[16]<=2.5?t[1]<=72?t[7]<=5.5?t[3]<=1e-35?.01845:.002068:t[11]<=9835e3?.02037:.007946:.001037:t[1]<=72?t[13]<=60?.02073:.01212:t[3]<=1e-35?t[5]<=1.895?.01474:-.002275:-.009942:t[5]<=2.945?t[1]<=72?t[13]<=42?t[11]<=1e-35?.02316:t[15]<=384.5?-.005934:-.009144:t[8]<=2089?t[6]<=22.5?-.006318:-3296e-7:t[6]<=3.5?.003463:-.004723:t[0]<=114?t[13]<=8.5?t[8]<=2037?-1857e-7:.004856:t[7]<=4.5?-.004764:-417e-6:t[7]<=23.5?-.008179:t[13]<=9.5?-.001932:-.006291:t[13]<=8.5?t[13]<=3.5?t[0]<=114?t[7]<=50.5?.0122:-.001218:-.003364:t[3]<=1e-35?t[11]<=1e-35?.01097:-.003977:t[5]<=3.355?-.003161:-.007414:t[3]<=1e-35?t[5]<=3.075?t[1]<=72?-.01034:-.003024:t[16]<=87960?-.007016:616e-6:t[5]<=4.165?t[6]<=1.5?-.007603:-.004866:t[16]<=61500?-.00938:-.002829,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[14]<=360.5?4662e-7:t[0]<=48?t[10]<=420.5?-.01254:-.007725:-.01365:t[15]<=607.5?t[14]<=1395?.01308:-7517e-7:t[13]<=5.5?-2173e-7:-.01278:t[0]<=96?t[2]<=72?t[1]<=72?t[6]<=1e-35?.004657:.01135:t[5]<=2.915?.003434:-.004047:t[10]<=30.5?t[6]<=1e-35?.01376:.01066:t[14]<=1804?.003311:.007644:t[0]<=114?t[13]<=12.5?-.008238:-4945e-7:t[5]<=3.355?-.0121:-.008246:t[2]<=72?t[13]<=3.5?t[14]<=2758?t[6]<=3.5?t[15]<=799.5?-.01159:-.006273:-.01322:.006644:t[6]<=8.5?t[15]<=249.5?t[8]<=2019?-.003303:-.01032:t[0]<=118?-.004729:-.009568:t[5]<=2.855?-.01136:.002694:t[2]<=96?t[10]<=1724?t[3]<=1e-35?t[0]<=114?.007973:-.006678:t[0]<=96?-.01344:-.004601:t[13]<=1.5?t[14]<=2293?.009719:.004372:t[3]<=1e-35?.01089:.001802:t[3]<=1e-35?t[8]<=2026?t[8]<=2015?-4802e-9:.006173:t[0]<=72?-.004438:.01088:t[5]<=3.595?t[1]<=118?-.005743:-.009027:t[6]<=1e-35?-.01191:-.009057,n+=t[3]<=1e-35?t[1]<=96?t[14]<=-1e-35?t[5]<=2.635?t[1]<=24?-.008609:t[11]<=2433?-.008606:-.008586:.006451:t[14]<=1452?t[14]<=1441?t[16]<=3553?-.008589:-.008489:.005181:t[1]<=1e-35?t[2]<=24?-.008597:-.008609:t[5]<=1.01?-.008579:-.008587:t[1]<=118?.003489:t[5]<=2.375?t[11]<=3902?-.008618:t[13]<=11.5?-.008609:-.008593:-.004388:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[1]<=48?t[11]<=837500?.01145:.02755:t[11]<=392900?-.002969:.007717:t[1]<=24?.03892:t[11]<=34620?.009876:.02162:t[2]<=96?t[10]<=263.5?t[5]<=.49?.04525:.02206:t[14]<=2293?.00924:.0204:t[5]<=3.355?t[9]<=144.5?.01468:.02776:t[6]<=1e-35?.03823:.02921:t[2]<=96?t[11]<=1342?t[13]<=16.5?t[11]<=475.5?.006054:.0288:t[5]<=2.695?.004198:-.002877:t[10]<=697.5?t[9]<=58.5?.007102:-.001656:.01114:t[16]<=18700?t[10]<=257.5?t[5]<=2.445?-.004491:.004933:t[2]<=118?.01137:4525e-7:-.00778,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[4]<=1e-35?t[11]<=267800?-.008029:-.004779:t[1]<=96?t[3]<=1e-35?-.008018:-.008024:t[0]<=114?-.00803:-.008037:t[6]<=12.5?t[3]<=1e-35?-.008022:-.008045:t[13]<=15.5?-.008032:.01839:t[3]<=1e-35?t[11]<=1457e4?t[10]<=916.5?t[1]<=118?-.008026:-.008103:t[5]<=2.435?-.008026:.01761:t[10]<=69.5?-.008035:.03133:t[15]<=1041?t[14]<=1927?t[11]<=1351e3?.02153:.04356:t[11]<=53980?.06172:.03146:t[15]<=8997?t[15]<=2503?.006513:-.00573:.02544:t[13]<=9.5?t[5]<=2.315?t[10]<=123.5?.06229:t[13]<=6.5?t[14]<=1537?.04562:.01797:t[10]<=196.5?.04035:.05894:t[14]<=1698?t[0]<=122.5?t[11]<=17320?.02334:-.001436:.04173:t[13]<=6.5?t[5]<=2.995?.03202:.001427:t[5]<=3.315?.03246:.05215:t[0]<=122.5?t[6]<=50.5?t[14]<=1708?t[15]<=177.5?.05296:.02704:t[10]<=123.5?.05725:.04278:t[11]<=418200?t[14]<=1920?.06658:.04766:t[13]<=16.5?.0582:.07023:t[11]<=45380?.07053:t[15]<=1200?.05177:.0696,e+=t[0]<=72?t[7]<=1.5?t[3]<=1e-35?t[1]<=72?t[0]<=48?.01563:.02061:t[15]<=151.5?t[13]<=15.5?.01757:.0111:t[13]<=7.5?.0115:.007398:t[4]<=1e-35?-.008951:t[1]<=96?.02061:.00332:t[16]<=2.5?t[1]<=72?t[7]<=5.5?t[3]<=1e-35?.01809:.002018:t[11]<=9835e3?.01997:.007779:.001:t[1]<=72?t[13]<=60?.02031:.0119:t[3]<=1e-35?t[6]<=7.5?.01058:.01771:-.009897:t[10]<=43.5?t[3]<=1e-35?t[13]<=8.5?t[11]<=1e-35?t[7]<=24.5?.003435:.01607:t[13]<=3.5?.005786:-.004077:t[11]<=15.5?t[15]<=268.5?-.003063:.00609:t[11]<=481400?-.006368:-.008022:t[11]<=1e-35?.01012:t[13]<=4.5?-.003199:t[13]<=10.5?-.007788:-.009231:t[0]<=96?t[1]<=72?t[13]<=42?t[15]<=384.5?-.005951:-.008882:t[15]<=777.5?-.001992:-.006246:t[13]<=11.5?t[6]<=2.5?.002432:.006495:t[10]<=335.5?-.002129:7582e-7:t[13]<=9.5?t[1]<=72?-.00966:t[6]<=2.5?-.003885:3387e-7:t[0]<=114?t[1]<=72?-.009717:-.003405:t[10]<=497.5?-.008212:-.003604,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[14]<=360.5?5184e-7:-.01312:t[5]<=.49?-.008387:.005312:t[0]<=96?t[2]<=72?t[1]<=72?t[13]<=22.5?.01231:.008237:t[7]<=24.5?.0049:-.00279:t[5]<=1.01?t[7]<=5.5?.0105:.01413:t[14]<=1610?.002605:.007367:t[7]<=90.5?-.01113:t[0]<=114?.0015:t[9]<=238.5?-.01044:-.002922:t[2]<=72?t[9]<=56.5?t[7]<=1.5?t[8]<=2084?t[8]<=2005?-42e-5:-.01091:-.002136:t[5]<=3.055?t[1]<=96?-.01281:-.0104:-.002834:t[9]<=115.5?t[5]<=1.995?t[7]<=6.5?-.00733:-.0106:t[1]<=118?-.00221:-.008673:t[3]<=1e-35?t[7]<=3.5?.004665:-.006715:t[1]<=118?-.00432:-.01186:t[2]<=96?t[5]<=3.875?t[3]<=1e-35?t[0]<=114?.008185:-.006711:t[7]<=48.5?-.008816:-808e-6:t[9]<=175.5?t[8]<=2098?8013e-8:.007417:t[1]<=114?.005136:.009882:t[3]<=1e-35?t[8]<=2026?t[8]<=2015?5886e-9:.0061:t[0]<=72?-.004375:.01076:t[5]<=3.595?t[1]<=118?-.005683:-.008934:t[7]<=1.5?-.008951:-.01186,n+=t[0]<=96?t[3]<=1e-35?t[2]<=1e-35?t[11]<=336e3?t[16]<=3553?-.008582:t[16]<=4664?-.007031:-.008584:t[11]<=347800?.002142:-.008578:-.008574:t[1]<=96?t[5]<=3.255?t[5]<=2.795?t[2]<=1e-35?-.006295:-.008492:t[5]<=2.915?.002:-.007067:t[11]<=2221?.02171:t[16]<=303.5?-.008663:.009272:t[1]<=96?t[9]<=59.5?.03078:t[16]<=5.5?.02409:.01111:.03863:t[0]<=118?t[2]<=96?t[1]<=96?t[0]<=114?.01964:t[9]<=60.5?.0323:.04343:t[5]<=3.445?t[9]<=101.5?.01301:.02248:t[1]<=114?.01465:.006199:t[5]<=3.355?t[1]<=96?t[11]<=179e3?.03078:.0411:t[9]<=144.5?.01441:.02623:t[2]<=96?t[13]<=6.5?.02053:.03051:t[5]<=3.375?.03882:.03071:t[2]<=96?t[11]<=1075?t[13]<=16.5?t[13]<=11.5?.005597:.01765:t[9]<=303.5?-.002459:.003421:t[9]<=58.5?t[5]<=3.675?.006774:.01023:t[1]<=114?.01065:-.001887:t[5]<=2.425?t[13]<=7.5?516e-6:t[9]<=164.5?-.004224:-.008116:t[16]<=18700?t[16]<=8697?.005739:.02364:-.008034,r+=t[1]<=118?t[3]<=1e-35?t[6]<=4.5?t[1]<=96?-.008013:t[9]<=88.5?-.00802:-.008026:t[15]<=1334?t[1]<=96?-.008013:-.008021:t[15]<=1386?.01085:t[8]<=2158?-.008016:.004054:t[4]<=1e-35?t[15]<=1041?t[8]<=2077?t[8]<=2024?.03021:.05317:t[15]<=488.5?678e-7:.03888:t[15]<=8997?t[9]<=163.5?-.003721:.01521:.02931:t[1]<=114?t[13]<=2.5?.01719:t[14]<=3427?-.007562:-8265e-7:t[8]<=2009?t[8]<=2003?-.008046:.0394:t[9]<=256.5?-.005318:.007484:t[13]<=9.5?t[13]<=6.5?t[2]<=48?.04754:t[2]<=118?t[8]<=2007?.0243:.001501:t[14]<=1537?.03911:.01354:t[3]<=1e-35?.002106:t[6]<=2.5?t[12]<=96?.03625:.06343:t[8]<=2066?.03311:-.005428:t[14]<=1977?t[8]<=2150?t[2]<=118?t[14]<=1827?.0307:.04479:t[15]<=1436?.05504:.03956:t[8]<=2198?t[9]<=121.5?.004088:.03264:.06137:t[9]<=180.5?t[9]<=167.5?t[2]<=125.5?.0455:.05921:t[15]<=497.5?.02327:.04358:t[2]<=72?.0671:t[8]<=2078?.05028:.05785,
e+=t[0]<=72?t[7]<=1.5?t[3]<=1e-35?t[0]<=48?t[8]<=2027?t[8]<=2016?.008978:8975e-7:t[13]<=9.5?.01438:.008674:.02002:t[4]<=1e-35?t[8]<=2084?-.009974:t[11]<=206.5?.001047:-.007627:t[16]<=1e-35?.0119:.0198:t[12]<=72?t[16]<=194.5?t[7]<=6.5?t[3]<=1e-35?.01592:.005228:t[0]<=48?.01842:.02006:t[3]<=1e-35?t[0]<=48?.01267:.02026:t[4]<=1e-35?-.008903:.02023:t[0]<=48?t[15]<=161.5?.01525:-.0077:t[7]<=22.5?.01131:.02014:t[0]<=96?t[13]<=11.5?t[12]<=72?t[12]<=1e-35?t[8]<=2073?-.002472:1576e-7:t[13]<=4.5?.01892:.009262:-.007777:t[7]<=1e-35?t[8]<=2084?t[12]<=1e-35?-.008466:-6485e-7:t[11]<=667800?-.003742:-.009336:t[12]<=72?t[12]<=1e-35?-.00401:.01018:-.007991:t[6]<=1e-35?t[13]<=6.5?t[11]<=1105e3?t[15]<=5866?-.00514:.003092:t[8]<=2089?-.00528:.008886:t[7]<=1e-35?-.00947:t[8]<=68?.0028:-.007479:t[12]<=72?t[12]<=1e-35?t[15]<=121.5?4018e-7:-.005206:t[13]<=3.5?.01624:.004628:-.009054,i+=t[3]<=1e-35?t[4]<=1e-35?t[2]<=72?t[9]<=74.5?t[10]<=60.5?t[8]<=2033?-.005076:-.009801:-.01178:t[11]<=8382?-.005114:.003114:t[2]<=72?t[9]<=123.5?t[8]<=2027?2829e-7:-.005843:t[11]<=9310?-.001955:.004462:t[8]<=2068?.0118:t[5]<=3.005?-.007452:.007223:t[2]<=72?t[10]<=2576?t[16]<=3.5?t[5]<=2.165?-.002404:.002288:t[12]<=1e-35?.006854:.002146:t[13]<=7.5?t[11]<=5016?-.004598:-.009221:t[11]<=2792e3?-.004173:.0067:t[10]<=16.5?t[2]<=114?t[8]<=19?-.005175:.01217:t[8]<=2073?.01035:.005965:t[12]<=72?t[9]<=143.5?.003175:.007341:.01121:t[2]<=96?t[2]<=72?t[13]<=12.5?t[5]<=2.965?t[10]<=15.5?.002647:-.007082:t[11]<=475.5?-.01174:.003363:t[5]<=3.075?-.009369:-.004998:t[5]<=3.805?t[13]<=22.5?-.006821:t[5]<=3.035?4016e-7:-.006492:t[4]<=1e-35?-.01331:t[13]<=15.5?.006649:.00238:t[5]<=3.435?t[12]<=96?t[16]<=11.5?-.004655:-.007245:-.01192:t[2]<=114?t[11]<=162.5?-.004211:-.009058:t[10]<=497.5?-.01159:-.00533,n+=t[1]<=96?t[5]<=3.035?t[1]<=48?t[5]<=2.835?t[12]<=96?t[9]<=301.5?-.007411:.008706:.01207:t[5]<=2.885?.01248:t[9]<=58.5?-.006741:-.00277:t[5]<=2.795?t[14]<=-1e-35?t[10]<=578.5?-.008565:.01006:t[6]<=5.5?-.008152:-.006979:t[6]<=1e-35?t[15]<=896.5?-.00705:-.00857:t[10]<=73.5?-.008566:-.001654:t[8]<=2038?t[10]<=722.5?-.007853:.01755:t[15]<=2563?t[13]<=5.5?t[11]<=7561?.02034:-.003616:t[11]<=60990?.009804:.02788:.03397:t[1]<=118?t[5]<=3.435?t[12]<=96?t[8]<=2083?t[9]<=197.5?.01828:.02805:t[9]<=60.5?.005754:.01713:t[8]<=2066?t[8]<=2030?.03911:.04357:t[8]<=2098?.02591:.04453:t[14]<=1967?t[12]<=96?t[13]<=4.5?.01355:.02489:t[10]<=192.5?.04261:.03585:t[10]<=347.5?t[9]<=90.5?.02655:.03245:t[5]<=3.755?.006686:.024:t[10]<=1241?t[5]<=2.325?t[13]<=16.5?t[11]<=1342?.008219:-.002767:t[15]<=977.5?-.005459:-.008209:t[15]<=946.5?t[6]<=9.5?.003557:.0175:t[11]<=186900?-.002876:.002531:.01543,r+=t[3]<=1e-35?t[13]<=26?t[8]<=2087?t[10]<=91.5?t[10]<=89.5?t[14]<=1281?-.00617:-.008013:t[9]<=62.5?-.008013:.02331:t[8]<=2080?t[4]<=1e-35?-.008017:-.008008:t[8]<=2081?-.00618:-.00801:t[8]<=2088?t[10]<=143.5?t[10]<=91.5?-.00622:.001555:t[13]<=18.5?.0275:-.006114:t[10]<=916.5?t[14]<=1e-35?-.006107:-.007954:t[10]<=966.5?.02051:-.007431:t[14]<=1153?.05741:t[13]<=29.5?t[10]<=139.5?t[8]<=2074?-.008009:.005218:-.008009:-.008014:t[7]<=42.5?t[12]<=118?t[13]<=5.5?t[2]<=118?t[10]<=49.5?.0228:.006553:t[10]<=1394?.02179:.05138:t[8]<=2099?t[8]<=2067?.0227:.01204:t[8]<=2128?.03631:.02421:.06102:t[2]<=118?t[13]<=7.5?t[12]<=114?t[8]<=2109?-.004575:.003053:t[7]<=74.5?.05171:.005389:t[10]<=204.5?t[12]<=96?.01396:.03404:t[14]<=2221?.00173:.01094:t[10]<=123.5?t[9]<=63.5?t[10]<=119.5?.02018:.04502:t[8]<=2126?.01375:.03943:t[6]<=1e-35?t[9]<=244.5?-.002759:.03447:t[10]<=320.5?-.007135:-5238e-7,e+=t[1]<=72?t[5]<=2.235?t[7]<=1.5?t[3]<=1e-35?t[9]<=123.5?t[4]<=1e-35?.0109:.004514:t[1]<=1e-35?.002858:.009827:t[4]<=1e-35?-.008493:.01133:t[9]<=62.5?t[5]<=1.01?t[3]<=1e-35?.01713:.01042:t[6]<=2.5?.01342:.002627:t[12]<=48?t[7]<=20.5?.004966:.01374:-.002858:t[6]<=1e-35?t[1]<=48?t[12]<=72?t[5]<=2.765?.01223:.002451:-.005198:t[7]<=42.5?t[3]<=1e-35?.008377:.01913:.01695:t[6]<=3.5?t[7]<=94.5?t[7]<=16.5?-.004572:.00106:t[6]<=2.5?.01272:6026e-7:t[1]<=24?-.008171:-.003944:t[5]<=3.125?t[14]<=1610?t[7]<=9.5?t[3]<=1e-35?t[8]<=2025?-.002565:.003236:-.004047:t[12]<=72?t[8]<=2083?.004089:.008384:-.003903:t[1]<=96?t[12]<=72?t[12]<=1e-35?-.001026:.009088:-.008586:t[9]<=169.5?t[8]<=2168?-.005332:.003027:-.009315:t[14]<=1682?t[3]<=1e-35?t[14]<=1425?t[13]<=7.5?.004337:-.002479:t[13]<=2.5?.01461:-.002946:-.00529:t[3]<=1e-35?t[1]<=118?t[9]<=167.5?-.005934:-.008525:.009277:-.0086,i+=t[0]<=96?t[0]<=72?t[7]<=6.5?t[0]<=48?t[14]<=2004?t[15]<=249.5?-.008621:-.004503:t[11]<=8995?-.003881:.001739:-.01292:t[16]<=194.5?t[12]<=72?-.01255:t[7]<=28.5?.002436:-.01163:t[0]<=48?t[2]<=72?-.008207:.001912:-.01337:t[2]<=72?t[7]<=54.5?t[14]<=1761?t[7]<=5.5?.007341:.002482:t[13]<=7.5?.005839:.009884:t[14]<=1354?t[16]<=1357?-.007532:.007399:t[15]<=314.5?-.001141:.003313:t[14]<=1610?t[8]<=2082?t[13]<=2.5?-.004772:.007577:t[8]<=2104?.001979:.006354:t[14]<=1977?t[8]<=19?485e-6:.009374:.01124:t[2]<=96?t[2]<=72?t[13]<=12.5?t[0]<=118?t[15]<=3135?-.002381:-.01118:-.008957:-.009647:t[7]<=53.5?t[0]<=118?t[15]<=186.5?.002385:-.003706:t[16]<=1e-35?-.001674:-.01027:t[13]<=11.5?t[15]<=634.5?.007729:.002831:t[15]<=323.5?-.001351:.004205:t[0]<=118?t[7]<=25.5?t[8]<=2066?t[8]<=2017?-.005228:-.01074:t[11]<=116300?-.004612:-.00792:-.009168:t[13]<=8.5?t[2]<=114?-.004467:-.009422:-.01076,n+=t[2]<=96?t[2]<=1e-35?t[9]<=170.5?t[4]<=1e-35?t[11]<=336e3?t[11]<=1835?-.001567:-.006186:6557e-8:t[12]<=96?t[13]<=5.5?-.002833:.001823:.01861:t[4]<=1e-35?t[13]<=22.5?-.003214:t[11]<=475.5?.02853:5009e-7:t[9]<=173.5?.03174:t[12]<=96?.007613:.02988:t[12]<=96?t[9]<=167.5?t[4]<=1e-35?-.007227:t[2]<=72?-.004433:-.006316:t[2]<=72?t[6]<=14.5?9355e-7:.01926:t[9]<=500.5?-.005393:.01132:t[10]<=525.5?t[13]<=10.5?.02283:3437e-7:.03027:t[10]<=5265?t[12]<=96?t[16]<=18.5?t[2]<=114?t[6]<=3.5?.007242:-9507e-7:t[15]<=79.5?.003353:.01241:t[16]<=124.5?t[10]<=571.5?.01996:.002415:t[6]<=15.5?.01161:-.006304:t[7]<=75.5?t[12]<=118?t[13]<=12.5?.00661:.02517:.00355:t[2]<=114?t[9]<=100.5?.004413:.0281:.0338:t[2]<=118?t[7]<=6.5?t[9]<=62.5?t[7]<=2.5?.003459:.02146:.02831:t[13]<=11.5?t[11]<=2433?.02688:.03374:t[11]<=3917e3?.02773:.01314:t[9]<=63.5?t[7]<=5.5?-.007082:.01005:.0211,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[5]<=2.435?-.008012:t[5]<=2.675?.01291:-.008018:t[8]<=2076?t[5]<=1.01?.001251:t[14]<=1927?.02764:.04732:t[11]<=5214?t[14]<=1601?.01103:-.007568:t[11]<=8076?.07027:.01471:t[8]<=1e-35?t[0]<=96?t[5]<=1.01?-.006295:-.008011:.01947:t[11]<=1457e4?t[6]<=1e300?t[3]<=1e-35?-.008004:-.00803:t[14]<=2548?-.008015:-.00747:t[8]<=2157?-.00802:.01988:t[7]<=48.5?t[0]<=122.5?t[14]<=1709?t[11]<=411e4?t[5]<=2.325?.04329:.02644:t[7]<=1.5?.0033:.007602:t[10]<=151.5?t[14]<=2629?.04723:.0643:t[8]<=2151?.03965:5064e-7:t[11]<=13030?.04954:t[7]<=3.5?t[11]<=108100?.05888:.05538:.06612:t[2]<=96?t[5]<=2.915?t[6]<=2.5?t[14]<=2178?.0397:.06232:.01548:t[14]<=1920?t[11]<=890500?-.004325:.004287:t[2]<=72?.03009:.01028:t[14]<=1747?t[10]<=187.5?t[5]<=3.155?.02804:.06051:t[14]<=1678?-.004927:.02298:t[5]<=2.955?t[5]<=2.695?.02338:.04715:t[5]<=3.135?.01633:.04025,e+=t[0]<=72?t[2]<=1e-35?t[4]<=1e-35?t[8]<=2029?t[8]<=2015?t[11]<=3452?.01464:.002227:-.00392:t[13]<=9.5?t[8]<=2082?.01483:.008921:t[14]<=2134?.006455:8259e-8:t[10]<=916.5?.001577:t[8]<=2002?.003926:.01904:t[12]<=72?t[1]<=72?t[14]<=876.5?.005124:.01955:t[2]<=72?t[14]<=2407?.01583:.003977:t[10]<=71.5?.004917:-.005794:t[0]<=48?t[13]<=22.5?-.009306:-7229e-7:.01915:t[2]<=72?t[10]<=5265?t[1]<=72?t[13]<=3.5?-.004588:t[11]<=7.5?.02281:-.008765:t[14]<=1698?t[8]<=2037?6744e-7:.00886:t[0]<=114?5351e-7:-.006733:t[0]<=96?t[13]<=5.5?t[11]<=34620?.01055:.0186:t[2]<=24?.01553:.005617:t[14]<=1682?.009385:t[11]<=25820?-.003588:.003498:t[10]<=16.5?t[2]<=72?t[13]<=5.5?t[1]<=72?-.01026:2052e-8:t[0]<=114?-.007076:-.009886:t[11]<=1e-35?.01302:-.009935:t[14]<=1711?t[12]<=72?t[1]<=72?-.007481:.002512:-.007513:t[0]<=96?t[1]<=72?-.009666:-.00198:t[13]<=9.5?-.004845:-.007799,
i+=t[1]<=96?t[0]<=72?t[0]<=48?t[11]<=20040?t[11]<=1e-35?.00155:-.01233:t[5]<=1.575?t[11]<=26810?.005794:-.01129:t[7]<=23.5?.008654:-.005761:-.01315:t[0]<=96?t[5]<=1.01?t[9]<=141.5?t[11]<=1e-35?-.005309:.009011:t[9]<=167.5?.01133:.01281:t[1]<=72?t[9]<=30.5?.009711:.01301:t[9]<=139.5?.003434:.007868:t[7]<=97.5?t[5]<=2.725?t[13]<=5.5?-.005209:-.01156:t[0]<=114?-.009047:-.01298:t[0]<=114?.006288:t[16]<=1.5?-512e-6:-.008251:t[0]<=118?t[5]<=1.655?t[7]<=6.5?t[13]<=20.5?t[15]<=239.5?-.00976:-.005063:t[13]<=29.5?.00773:-.002652:t[9]<=164.5?t[3]<=1e-35?-.01195:-.002282:t[16]<=1012?-.006565:.009985:t[3]<=1e-35?t[0]<=48?t[13]<=7.5?-.006731:-196e-6:t[15]<=5292?.01156:.004379:t[5]<=2.645?t[0]<=114?-.007998:-.005874:t[1]<=96?.003804:-.005494:t[9]<=89.5?t[5]<=3.555?t[0]<=122.5?t[5]<=2.725?-.009518:-.00662:-.01073:-.01118:t[7]<=6.5?-.01183:t[5]<=2.445?-.001742:t[15]<=12.5?.01659:-.009541,n+=t[1]<=96?t[2]<=96?t[5]<=3.035?t[4]<=1e-35?t[9]<=62.5?t[2]<=24?-.007839:-.004497:t[16]<=7.5?.004338:-.002397:-.008004:t[9]<=115.5?t[11]<=475.5?.03527:t[16]<=1e-35?.01078:-.008322:.02765:t[11]<=166600?t[8]<=2081?t[8]<=2065?t[5]<=2.335?.01994:-.001179:t[15]<=119.5?.003269:.0279:-.002326:t[16]<=2.5?.00206:t[16]<=1131?t[5]<=2.965?.03848:.02452:.008658:t[1]<=118?t[2]<=96?t[8]<=2025?t[5]<=3.675?t[11]<=184.5?-.003014:.03058:t[11]<=5912?.02:.005714:t[14]<=1698?t[15]<=2134?.001921:.02159:t[2]<=72?.02031:.01059:t[5]<=3.355?t[9]<=135.5?t[8]<=2025?.02327:.01087:t[9]<=243.5?.02189:.03039:t[6]<=1e-35?t[5]<=3.485?.03514:.02577:t[14]<=1921?.02322:.03004:t[2]<=96?t[11]<=1342?t[11]<=475.5?2295e-8:t[8]<=2064?.03067:.002468:t[9]<=30.5?.01541:t[8]<=2002?.01274:-.001506:t[5]<=2.935?t[15]<=442.5?t[15]<=222.5?-549e-7:.01772:-.002121:t[16]<=18700?t[15]<=5866?.008308:-.006278:-.007909,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[5]<=2.435?t[13]<=5.5?t[0]<=72?-.008005:-.00802:t[9]<=91.5?-.008008:-.008011:t[5]<=2.715?.009111:-.008015:t[13]<=15.5?t[9]<=144.5?t[8]<=2026?.03047:.008004:t[8]<=2066?-.007244:.004411:t[9]<=147.5?t[13]<=18.5?-.005186:.02884:t[13]<=18.5?.04774:.02158:t[8]<=1e-35?t[3]<=1e-35?t[0]<=48?-.00804:-.008:t[13]<=16.5?.04026:-.00809:t[8]<=2198?t[9]<=239.5?t[3]<=1e-35?-.007998:-.008028:t[9]<=240.5?-.003114:-.008015:t[8]<=2199?t[9]<=141.5?.02678:-.008007:t[0]<=96?-.007999:-.008031:t[7]<=2.5?t[14]<=1698?t[10]<=217.5?.004848:t[9]<=60.5?t[14]<=1499?.03653:.01627:.04918:t[13]<=6.5?.02503:t[0]<=122.5?t[13]<=18.5?.04468:.05006:.0549:t[0]<=122.5?t[5]<=1.805?.05715:t[13]<=14.5?t[8]<=2030?.0339:.02088:t[14]<=1708?.02652:.03917:t[5]<=.295?t[9]<=165.5?.003877:.03148:t[8]<=2029?.06376:t[8]<=2102?.03844:.05555,e+=t[2]<=72?t[4]<=1e-35?t[3]<=1e-35?t[7]<=7.5?t[14]<=2034?t[15]<=268.5?.0166:.01226:t[7]<=3.5?.002413:.0148:t[16]<=1283?.01821:t[13]<=15.5?.01605:.001925:-.007174:t[6]<=1e-35?t[7]<=28.5?t[16]<=2.5?t[14]<=1921?.008822:-.001934:t[14]<=1537?.00478:-.002181:t[3]<=1e-35?t[2]<=48?.01612:.01055:t[14]<=1827?.009948:.003224:t[16]<=1.5?t[11]<=15650?t[14]<=1698?.01015:.001647:-8428e-7:t[12]<=1e-35?t[14]<=1721?-.002165:-.005586:t[12]<=72?.01097:-.004855:t[3]<=1e-35?t[4]<=1e-35?t[6]<=7.5?t[13]<=22.5?t[7]<=4.5?.002124:-.007303:.008088:t[14]<=2034?t[15]<=5292?.01002:.002996:t[11]<=9310?.007439:-5509e-7:t[14]<=1698?t[6]<=1e-35?t[7]<=62.5?.001227:-.00392:t[12]<=72?.004161:-.005059:t[6]<=1e-35?t[11]<=229800?-.003335:-.005593:t[12]<=72?7756e-7:-.008885:t[6]<=1e-35?t[14]<=1921?t[14]<=1438?-.003231:t[13]<=7.5?-.005367:-.007264:-.008497:t[14]<=1682?-6941e-8:t[15]<=100.5?t[12]<=72?.004744:-.009992:-.005484,i+=t[3]<=1e-35?t[0]<=72?t[6]<=1e300?t[12]<=72?t[0]<=48?t[9]<=89.5?-.009782:-6305e-7:-.0131:t[0]<=48?t[10]<=210.5?.004554:.0135:-.01246:t[4]<=1e-35?t[14]<=2034?t[15]<=5292?-.003925:.002887:t[11]<=9310?-.001127:.006129:-.01129:t[14]<=1698?t[5]<=1.01?t[11]<=1e-35?-.003543:t[12]<=72?.007209:.01432:t[12]<=72?t[12]<=1e-35?.003329:-.007425:t[5]<=2.875?.01184:.005037:t[10]<=61.5?t[9]<=74.5?t[11]<=1e-35?-6797e-8:.009754:t[14]<=1747?.009329:.01242:t[12]<=72?t[12]<=1e-35?.006894:-.001176:.01251:t[0]<=96?t[0]<=72?t[4]<=1e-35?t[15]<=10650?t[10]<=13.5?.006419:-.008073:.001359:t[10]<=991.5?-.01284:-.001984:t[10]<=50.5?t[14]<=1367?-.00202:t[11]<=96610?.01232:.00595:t[12]<=72?t[6]<=4.5?2862e-7:.01013:.01143:t[0]<=118?t[6]<=39.5?t[12]<=96?t[6]<=13.5?-.006472:5758e-7:-.01105:.008689:t[9]<=89.5?t[14]<=1708?t[6]<=3.5?-.004648:-.009215:t[5]<=3.355?-.008179:-.01139:t[6]<=50.5?-.009771:-.01214,n+=t[3]<=1e-35?t[14]<=1e-35?t[8]<=2037?.009729:t[15]<=88.5?-.008661:t[10]<=243.5?-.008571:-.00854:t[2]<=96?t[14]<=1708?t[9]<=237.5?t[6]<=1e300?-.008523:-.008043:t[15]<=5866?-.008442:.004113:t[4]<=1e-35?t[2]<=24?-.00855:-.008572:t[9]<=301.5?-.00853:-.008458:-.004503:t[2]<=96?t[8]<=2083?t[10]<=41.5?t[4]<=1e-35?.02418:t[9]<=241.5?.00921:.00211:t[9]<=101.5?t[14]<=1711?2995e-7:.01484:t[15]<=1601?.01635:.02783:t[9]<=152.5?t[15]<=497.5?t[14]<=1729?1611e-7:.008854:t[9]<=48.5?-.004649:.002405:t[8]<=2198?t[10]<=115.5?.01382:-6931e-7:.03421:t[10]<=71.5?t[2]<=118?t[10]<=65.5?t[8]<=2073?.0213:.01057:t[16]<=775.5?.02834:.02169:t[8]<=2090?t[15]<=616.5?.01381:.02042:t[16]<=2239?.01201:.001482:t[8]<=2083?t[8]<=2011?t[15]<=435.5?.01502:.003356:t[15]<=76.5?.003554:.01736:t[6]<=1.5?t[12]<=72?.008818:.01751:t[9]<=61.5?.009737:8999e-7,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=48?t[6]<=1e300?-.008:t[11]<=267800?-.008007:-.004544:t[0]<=96?t[3]<=1e-35?-.007993:-.008007:t[7]<=42.5?-.008033:-.00802:t[8]<=2156?t[3]<=1e-35?-.007994:-.008054:.01671:t[3]<=1e-35?t[7]<=99.5?t[1]<=118?-.008003:t[9]<=89.5?-.008075:-.008141:t[10]<=505.5?-.008003:.03246:t[9]<=130.5?t[5]<=.885?t[8]<=2080?.02461:.006287:t[8]<=2031?.008962:-.006343:t[11]<=501500?t[9]<=299.5?.02444:-.007009:t[9]<=243.5?.02816:.05787:t[7]<=4.5?t[14]<=1698?t[11]<=29e4?t[10]<=331.5?.02331:t[9]<=60.5?.04445:.05508:t[10]<=27.5?t[14]<=1499?.02311:.01508:-.003492:t[0]<=122.5?t[11]<=39670?t[5]<=2.675?.04936:.03434:t[7]<=2.5?.04507:.03535:t[9]<=180.5?.05326:.0508:t[0]<=122.5?t[14]<=1997?t[5]<=1.425?.05964:t[5]<=3.425?.02144:.03501:t[6]<=8.5?t[9]<=284?.0336:.05899:.004421:t[5]<=.295?t[9]<=165.5?.003773:.03146:t[11]<=10460?.04321:t[8]<=2055?.06074:.0527,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.002921:t[0]<=48?t[7]<=27.5?t[10]<=966.5?.01542:.007261:.01932:.0191:t[3]<=1e-35?t[2]<=72?t[7]<=7.5?t[14]<=1927?.0138:.004665:t[16]<=1283?.01797:.01156:t[2]<=122.5?t[10]<=71.5?.005736:-.00489:t[8]<=2027?.003168:.0103:t[8]<=2084?-.009541:t[14]<=1794?t[16]<=469.5?.006934:-.007446:-.007804:t[2]<=72?t[10]<=5265?t[1]<=72?t[13]<=22.5?-.008243:t[14]<=1920?-67e-5:-.006449:t[7]<=26.5?t[0]<=114?-.001554:-.007967:t[1]<=96?.007069:-3658e-7:t[14]<=1698?t[2]<=48?.01804:t[14]<=1408?.01549:.009226:t[3]<=1e-35?t[13]<=5.5?.01073:.004436:t[14]<=2548?.003856:-.005744:t[10]<=35.5?t[7]<=4.5?t[13]<=4.5?t[13]<=2.5?.007816:-.003136:t[1]<=114?-.006709:-.009538:t[8]<=21.5?.01143:t[10]<=15.5?-.009948:-.005648:t[0]<=96?t[1]<=72?t[7]<=38.5?-.009428:-.005671:t[14]<=1711?.003369:-.001549:t[14]<=1641?t[1]<=96?-.008264:-.001437:t[13]<=5.5?-.00445:-.007003,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[14]<=837?.009281:t[7]<=8.5?t[9]<=58.5?.007265:-.005575:t[5]<=2.675?-.0106:-.006014:t[16]<=81.5?t[6]<=3.5?t[7]<=38.5?.002627:-.006483:t[5]<=2.265?-7456e-7:.005546:t[6]<=1.5?t[7]<=7.5?.006072:-.003678:t[15]<=264.5?.006803:.01073:t[10]<=45.5?t[14]<=1682?t[14]<=1460?t[12]<=72?.004103:.01332:t[5]<=2.385?.007559:.001496:t[9]<=167.5?t[14]<=1921?.009057:.01106:t[12]<=1e-35?.01259:.009209:t[12]<=72?t[14]<=1997?t[12]<=1e-35?.00267:-.004479:t[9]<=90.5?.00531:.009363:t[5]<=2.475?.01355:t[14]<=1787?.007052:.01093:t[6]<=19.5?t[1]<=118?t[7]<=1e-35?t[1]<=96?t[14]<=2548?-.003224:.002007:t[9]<=60.5?-.0048:-.008413:t[5]<=2.275?t[9]<=55.5?-.00874:-.005853:t[1]<=96?.002498:-.004914:t[9]<=88.5?t[14]<=2293?t[5]<=2.745?-.008298:-.005415:t[16]<=1e-35?-.00812:-.0112:t[7]<=34.5?-.01113:t[7]<=64.5?-.002995:-.008506:t[12]<=48?t[15]<=11760?-.01237:-.001463:.004281,
n+=t[0]<=96?t[3]<=1e-35?t[7]<=1e-35?t[14]<=1537?-.007884:-.008538:-.008522:t[4]<=1e-35?t[2]<=96?t[15]<=1565?t[8]<=2023?.02182:.0104:t[11]<=323100?.0185:.03629:-.002485:t[11]<=83680?t[5]<=1.01?.007371:t[11]<=3175?-.0059:-.008579:t[8]<=2080?t[5]<=2.995?-6406e-7:.02306:t[8]<=2159?-.006631:.008934:t[0]<=118?t[2]<=96?t[7]<=71.5?t[15]<=1864?t[14]<=2247?.01442:.02578:t[11]<=55.5?-.008865:.03203:t[11]<=6351?t[2]<=72?.02409:.01154:t[15]<=44.5?.02489:.006979:t[5]<=3.315?t[7]<=19.5?t[14]<=1553?.008501:.02443:t[5]<=2.005?.03115:.01374:t[7]<=9.5?t[14]<=1967?.02299:.02919:t[5]<=3.705?.02394:.03354:t[7]<=3.5?t[11]<=121400?t[11]<=18510?t[14]<=2061?-.00409:.006515:t[15]<=592.5?-.004724:-.007781:t[14]<=1830?t[8]<=2026?.0178:.003637:t[7]<=1.5?-.001924:.006359:t[8]<=2038?t[7]<=5.5?.0137:t[5]<=3.695?-.002814:.00433:t[11]<=1269?t[8]<=2105?.01783:.001898:t[2]<=96?-3876e-8:.006469,r+=t[0]<=118?t[4]<=1e-35?t[12]<=96?t[9]<=61.5?t[11]<=1457e4?t[14]<=2034?-.006383:.002383:t[14]<=1537?.02561:-.006858:t[11]<=805100?t[5]<=2.995?-.001832:.04372:t[15]<=442.5?.02842:.006337:.04317:t[11]<=1e-35?t[13]<=15.5?t[9]<=61.5?t[5]<=3.085?-.008001:-.008141:-.005487:t[10]<=107.5?-.003024:.02793:t[11]<=1457e4?t[9]<=239.5?t[0]<=96?-.00799:-.008023:t[9]<=240.5?-.003103:-.008006:t[7]<=1e-35?t[11]<=1669e4?.01934:-.008032:t[0]<=96?-.007997:-.00804:t[7]<=1.5?t[13]<=8.5?t[15]<=1386?t[11]<=358900?.04559:.02212:.004928:t[15]<=233.5?t[9]<=75.5?.05245:t[9]<=227.5?.04228:.04926:t[14]<=1708?t[14]<=1698?.0393:.02347:t[11]<=8697?.03494:.04492:t[0]<=122.5?t[14]<=1747?t[7]<=46.5?t[10]<=634.5?.02903:.008327:t[10]<=202.5?.01885:7923e-7:t[13]<=6.5?t[5]<=2.715?.03637:.001766:t[10]<=123.5?.03617:.0271:t[10]<=16.5?.02162:t[13]<=11.5?t[11]<=121400?.02581:.05199:t[10]<=145.5?.0501:.0564,e+=t[0]<=72?t[7]<=6.5?t[0]<=48?t[9]<=71.5?t[2]<=24?t[15]<=226.5?.01584:.01156:t[8]<=2029?.001607:.009439:t[8]<=2072?t[2]<=72?.004685:-8302e-7:t[16]<=469.5?.00667:7646e-7:.01859:t[12]<=72?t[16]<=238.5?t[0]<=48?t[2]<=48?.01755:.01269:.01871:t[9]<=206?t[15]<=1200?.01609:.008264:-.002868:t[0]<=48?t[7]<=55.5?-.008606:.002112:.01846:t[2]<=72?t[10]<=5265?t[12]<=1e-35?t[7]<=40.5?t[0]<=114?-.003732:-.008404:t[5]<=2.195?.008361:-.00113:t[12]<=72?t[9]<=59.5?.02064:.008195:t[7]<=93.5?-.008332:-.002783:t[2]<=24?t[15]<=3037?.01865:.00395:t[9]<=139.5?t[0]<=96?.01027:.004312:t[15]<=3842?.001266:-.009801:t[5]<=3.125?t[12]<=72?t[12]<=1e-35?t[9]<=139.5?-1026e-8:-.004789:t[15]<=384.5?.001999:.01528:t[9]<=122.5?t[5]<=2.495?-.009434:-.004511:-.009229:t[7]<=6.5?t[13]<=4.5?t[16]<=1.5?-.005916:2743e-8:t[9]<=164.5?-.006322:-.009138:t[5]<=3.895?-.006931:t[8]<=21.5?.004748:-.009885,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.008578:t[1]<=72?t[0]<=48?t[15]<=20140?-.01092:.003104:-.01291:t[15]<=599.5?.006853:-.006393:t[0]<=96?t[2]<=72?t[1]<=72?t[14]<=1920?.008086:.0118:t[7]<=27.5?.004637:-.002911:t[5]<=1.01?t[7]<=2.5?.00969:.01331:t[14]<=1711?.003052:.007283:t[7]<=90.5?t[5]<=2.315?-.007483:-.012:t[5]<=2.905?-.009204:.001019:t[2]<=72?t[16]<=1.5?t[7]<=3.5?t[15]<=749.5?-.01022:t[11]<=713.5?.003439:-.006666:t[5]<=3.165?t[1]<=118?-.009554:-.01235:-.002526:t[15]<=268.5?t[15]<=119.5?-.01165:t[5]<=.505?7015e-7:-.008761:t[15]<=276.5?.005366:t[5]<=3.755?-.005352:-.009529:t[2]<=96?t[5]<=1.995?t[16]<=2.5?t[14]<=2247?.009058:.003381:t[15]<=4735?.003232:-.004417:t[1]<=96?t[4]<=1e-35?6533e-7:.01205:t[7]<=33.5?-.007838:-7905e-7:t[3]<=1e-35?t[14]<=1947?t[0]<=72?-.003412:.005929:t[11]<=8995?12e-5:.005969:t[5]<=3.885?t[1]<=118?-.004946:-.008126:t[7]<=10.5?-.008754:-.01189,n+=t[3]<=1e-35?t[1]<=114?t[14]<=1e-35?t[15]<=219.5?.00985:t[8]<=2065?-.008547:t[7]<=9.5?-.008515:-.008528:t[7]<=1e-35?t[14]<=1546?t[16]<=37.5?-.006966:-.008477:t[1]<=96?-.008508:-.008553:t[1]<=96?t[1]<=1e-35?-.008529:-.008507:-.007247:t[7]<=69.5?t[6]<=1e-35?t[8]<=2071?-.00863:t[8]<=2088?-.005714:-.008576:-.004888:.0121:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[15]<=284.5?t[10]<=643.5?-.006089:.0197:t[8]<=2052?-.00416:.009257:t[8]<=2084?t[8]<=2052?.009042:.02267:t[14]<=1460?.02194:.005054:t[10]<=49.5?t[14]<=2049?t[15]<=328.5?.0246:.02018:t[16]<=8.5?.02643:.02942:t[8]<=2030?t[8]<=2016?.01237:.03002:t[12]<=96?.01194:.03052:t[7]<=2.5?t[6]<=1e-35?t[15]<=323.5?t[16]<=45.5?-.006483:-7851e-7:t[15]<=2029?.00159:-.003011:.01413:t[16]<=17020?t[8]<=2035?t[10]<=179.5?-.004793:.004786:t[8]<=2079?.007602:.004197:t[16]<=29960?-.005259:-.0079,r+=t[1]<=118?t[3]<=1e-35?t[16]<=29960?t[8]<=2158?t[1]<=114?t[10]<=1e-35?-.007979:-.007986:t[2]<=24?-.007994:-.007999:t[15]<=3135?-.007986:t[6]<=1.5?-.00799:.02887:t[10]<=916.5?-.007993:.02243:t[1]<=1e-35?t[6]<=1e-35?t[15]<=340.5?.07264:t[10]<=59.5?.01025:.04277:t[16]<=8.5?t[15]<=2029?-.007464:.003755:t[16]<=38.5?.04556:.01485:t[16]<=17020?t[1]<=114?t[2]<=118?-.007843:-.004231:t[16]<=238.5?-.006209:.001322:t[16]<=25730?.04596:t[7]<=19.5?-.008031:-.005266:t[10]<=331.5?t[7]<=47.5?t[3]<=1e-35?t[14]<=1438?.03037:t[10]<=123.5?-.006824:.02121:t[14]<=1921?t[15]<=239.5?.04108:.03048:t[2]<=72?.04887:.04086:t[2]<=96?t[15]<=607.5?t[14]<=2548?.003814:.02083:t[15]<=907.5?.03904:.01484:t[10]<=77.5?t[2]<=118?.03137:.05689:t[14]<=2293?.01703:.03421:t[15]<=226.5?t[15]<=130.5?.01911:.05075:t[6]<=1.5?t[14]<=2034?t[16]<=9231?.01211:.0373:.03165:t[7]<=20.5?.01443:t[2]<=96?.001317:-.006168,e+=t[4]<=1e-35?t[3]<=1e-35?t[13]<=9.5?t[8]<=2027?t[8]<=2017?t[7]<=3.5?.01163:.01755:t[13]<=8.5?.00295:.01428:t[15]<=296.5?.01738:t[6]<=3.5?.01295:.01689:t[6]<=1.5?t[11]<=9310?t[15]<=7560?.009553:-.00295:t[14]<=1398?.01371:.003094:t[13]<=22.5?t[14]<=2034?.0156:.008214:.004273:-.00947:t[5]<=2.935?t[14]<=1698?t[8]<=2082?t[8]<=2003?t[11]<=7561?.01209:.00533:t[7]<=22.5?-6317e-7:.002982:t[8]<=2094?t[11]<=1457e4?.01069:-.003579:t[5]<=1.205?-.00512:.004745:t[13]<=4.5?t[3]<=1e-35?t[8]<=2073?.00105:.004987:t[10]<=316.5?-.003766:.002041:t[11]<=96610?t[6]<=4.5?-4925e-7:-.006245:t[14]<=1711?8377e-7:-.005392:t[14]<=1682?t[3]<=1e-35?t[8]<=2074?t[13]<=2.5?.01646:-4697e-7:t[15]<=1631?.001726:.005881:t[15]<=5292?t[13]<=3.5?-8771e-7:-.004395:.003467:t[3]<=1e-35?t[13]<=10.5?t[14]<=2004?-.001934:-.004549:t[8]<=2082?-.006064:-.003327:t[13]<=9.5?t[5]<=3.175?-.001829:-.005961:t[10]<=263.5?-.007953:-.004764,i+=t[3]<=1e-35?t[0]<=72?t[7]<=6.5?t[0]<=48?t[9]<=94.5?t[5]<=1.995?-.005786:.007419:t[4]<=1e-35?.001237:-.008465:-.0128:t[9]<=173.5?t[11]<=1678e3?-.0116:t[2]<=24?-.01087:.003311:t[0]<=48?t[11]<=5214?-.01113:.01116:-.01241:t[2]<=72?t[10]<=11.5?t[13]<=5.5?t[2]<=48?-.01192:-.004291:-.001714:t[6]<=1e-35?t[7]<=90.5?.004918:-.001874:t[9]<=30.5?.00583:.009011:t[5]<=2.955?t[13]<=3.5?t[5]<=2.765?.001956:.007303:t[0]<=118?.00662:-.0105:t[7]<=9.5?t[9]<=141.5?.007509:.01163:t[10]<=38.5?.01329:.01022:t[2]<=96?t[2]<=72?t[9]<=56.5?9262e-7:t[0]<=96?t[0]<=72?-.008014:.001718:-.008518:t[0]<=72?-.01291:t[10]<=2988?t[0]<=96?.005375:-.004717:t[9]<=18.5?.009074:.003489:t[0]<=96?t[0]<=72?t[4]<=1e-35?-.006044:-.012:t[11]<=53980?t[5]<=3.835?.005348:.01246:t[6]<=1e-35?.008281:-.001729:t[5]<=3.435?t[0]<=122.5?t[10]<=167.5?-.00761:-.005321:-.01289:t[7]<=24.5?-.009229:-.0118,n+=t[3]<=1e-35?t[1]<=114?t[11]<=24.5?t[11]<=15.5?t[1]<=96?t[10]<=1339?-.008504:-.008495:t[13]<=7.5?-.008516:-.008604:t[10]<=153.5?t[1]<=48?-.008528:-.008494:.002476:t[7]<=1e-35?t[11]<=336e3?t[15]<=1532?-.008517:-.008476:t[11]<=347800?.002755:-.00821:t[12]<=114?t[1]<=96?-.008496:-.008519:-.00687:t[7]<=91.5?t[11]<=701300?t[11]<=1574?t[7]<=2.5?-.008616:-.008748:t[10]<=254.5?-.00854:-.008586:-.005459:.003959:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[15]<=222.5?t[9]<=181.5?-.005895:.01042:t[10]<=278.5?.01008:9263e-8:t[15]<=4439?t[7]<=97.5?.0211:.006637:-.007411:t[10]<=50.5?t[1]<=96?t[13]<=34?.01738:9575e-7:t[13]<=4.5?.0128:.02416:t[12]<=96?t[9]<=100.5?.01219:.01958:t[1]<=96?.008322:.03146:t[10]<=1241?t[7]<=95.5?t[11]<=1022?t[9]<=119.5?.002283:.01383:t[15]<=2075?.00135:-.003022:t[11]<=27940?t[10]<=451.5?.007503:.02964:t[6]<=1e-35?.006421:-3864e-7:.01643,
r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[5]<=2.435?t[15]<=3135?t[9]<=61.5?-.00799:-.007998:t[15]<=3250?.02042:-.007992:t[5]<=2.605?.01604:-.008009:t[15]<=1041?t[16]<=2.5?-5393e-7:t[14]<=2034?.02248:.03795:t[5]<=2.195?t[15]<=8218?-.003424:.01106:.03516:t[12]<=118?t[16]<=17020?t[5]<=3.325?t[5]<=1e-35?-.007376:-.007986:t[5]<=3.335?-.001323:-.008025:t[3]<=1e-35?t[12]<=72?-.007986:-.008029:t[0]<=96?.0314:-.008035:t[15]<=2134?t[0]<=96?-.00799:t[5]<=3.105?-.008025:-.008043:.02099:t[0]<=126.5?t[13]<=9.5?t[5]<=2.355?t[2]<=118?t[5]<=2.295?.03879:.02426:t[15]<=763.5?.05218:.04523:t[5]<=3.315?t[9]<=167.5?.006333:.01786:t[5]<=3.695?.03936:.01984:t[14]<=1708?t[15]<=174.5?t[16]<=87.5?.03895:.04699:t[2]<=72?-9093e-8:.02405:t[13]<=16.5?t[9]<=286.5?.03193:.04185:t[5]<=2.825?.04346:.03639:t[16]<=59.5?.05209:.04491,e+=t[0]<=72?t[0]<=48?t[6]<=1.5?t[13]<=7.5?t[14]<=2243?t[8]<=2027?.007949:.01414:t[1]<=72?.001315:-.01085:t[4]<=1e-35?t[14]<=2034?.004621:-.001598:t[12]<=72?.01477:-.006645:t[6]<=6.5?t[13]<=7.5?t[8]<=2024?.009348:.01618:t[12]<=72?.009852:-.007016:t[11]<=2573e3?t[12]<=48?.01684:.00882:t[7]<=18.5?.004382:.01752:.01831:t[14]<=1682?t[1]<=72?t[15]<=103.5?t[6]<=9.5?-.002739:t[13]<=11.5?.009908:-.001095:t[13]<=14.5?t[12]<=1e-35?-.008614:-.003986:t[7]<=89.5?-.005424:.001279:t[0]<=96?t[6]<=2.5?t[8]<=2074?-1395e-7:.003769:t[13]<=5.5?.01061:.005755:t[6]<=2.5?t[0]<=118?-.002797:-.006061:t[11]<=1749?-.00368:.00626:t[0]<=96?t[13]<=4.5?t[12]<=72?t[12]<=1e-35?-.002074:.009265:-.00844:t[1]<=72?t[15]<=625.5?-.007998:-.01:t[7]<=2.5?-.006861:-.004083:t[6]<=1e-35?t[14]<=1921?t[13]<=6.5?-.003808:-.007492:t[8]<=2016?-.007496:-.0091:t[15]<=20.5?.009623:t[1]<=96?-.008574:-.005263,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[11]<=93390?t[14]<=837?.00581:t[7]<=17.5?-.006742:-.01019:t[7]<=56.5?t[14]<=1192?.01087:-8132e-7:-.00854:t[11]<=5679?t[6]<=2.5?t[7]<=33.5?-.005262:-.01252:t[8]<=2052?-.004284:.004676:t[11]<=418200?t[8]<=2123?.005555:-.001286:t[11]<=599e4?.008743:.01406:t[5]<=1.01?t[14]<=1682?t[14]<=1409?t[9]<=18.5?.001645:.005625:.006823:t[9]<=141.5?t[7]<=1e-35?.007255:.009769:t[12]<=1e-35?.01176:.003577:t[14]<=1698?t[12]<=72?t[8]<=2037?.003554:-.001263:.009803:t[12]<=72?t[12]<=1e-35?.005408:-.002711:t[12]<=114?.01204:.003033:t[6]<=6.5?t[1]<=96?t[4]<=1e-35?t[9]<=115.5?t[8]<=2027?-.003107:-.007171:t[8]<=2014?.005001:-.001519:t[12]<=96?.01432:t[14]<=2034?5167e-7:.008584:t[1]<=118?t[5]<=3.315?t[8]<=2043?-.006869:-.003871:t[9]<=169.5?-.00652:-.00861:t[9]<=119.5?t[14]<=2237?-.006385:-.009633:t[12]<=72?-.01036:-.002307:t[5]<=1.995?-.01155:t[1]<=96?.009188:-.006052,n+=t[3]<=1e-35?t[14]<=-1e-35?t[10]<=155.5?.00866:t[8]<=2065?-.008567:t[10]<=822.5?-.008511:-.008488:t[13]<=29.5?t[6]<=1e300?t[5]<=3.325?t[16]<=29960?-.008484:-.007974:-.006459:t[14]<=1546?t[13]<=11.5?-.008507:-.006597:t[4]<=1e-35?-.008531:-.008488:t[15]<=5866?t[4]<=1e-35?t[6]<=2.5?-.008517:-.00854:t[14]<=1441?-.00853:-.008487:-1932e-7:t[8]<=2082?t[14]<=1438?t[10]<=125.5?t[8]<=2054?t[10]<=107.5?-.004556:.007363:t[10]<=49.5?.01142:.02745:t[13]<=12.5?-.005911:t[16]<=8.5?-.002276:.003209:t[8]<=2070?t[10]<=1622?t[8]<=2015?.007124:.0137:t[6]<=4.5?.01541:.03838:t[15]<=161.5?t[6]<=1e-35?.01691:.004518:t[8]<=2075?.02184:.01561:t[5]<=1.125?t[16]<=20370?t[6]<=1.5?t[10]<=260.5?.01451:.03604:t[13]<=2.5?-.002362:.01114:-.001399:t[14]<=813?.02402:t[6]<=15.5?t[12]<=96?.006482:.01513:-.002983,r+=t[0]<=118?t[1]<=118?t[8]<=2198?t[4]<=1e-35?t[14]<=1708?-.004322:-.007997:t[0]<=96?t[3]<=1e-35?-.007974:-.007991:t[13]<=5.5?-.008004:-.008017:t[8]<=2199?t[6]<=3.5?t[9]<=185.5?-.007998:-.007981:.0349:t[0]<=96?t[0]<=72?-.007984:-.007973:t[13]<=5.5?-.008004:-.008017:t[3]<=1e-35?t[5]<=2.435?t[8]<=2158?t[1]<=118?-.007987:-.008087:t[15]<=3135?-.007987:.01176:t[5]<=2.765?.004345:-.008007:t[15]<=1041?t[6]<=1.5?t[8]<=2080?.03031:.01375:-.004921:t[6]<=1.5?t[15]<=2378?-.004188:.02786:t[15]<=8218?-.005552:.007359:t[0]<=126.5?t[14]<=1997?t[5]<=2.785?t[6]<=5.5?t[9]<=56.5?.005821:.02994:.04946:t[1]<=118?.04629:t[8]<=2150?.02071:.003649:t[6]<=5.5?t[9]<=227.5?t[9]<=163.5?.0354:.0234:t[5]<=3.085?.04549:.03805:.0196:t[5]<=2.895?.04353:.04979,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[13]<=7.5?t[14]<=3073?t[13]<=1e-35?1869e-7:.01504:-.003059:t[6]<=3.5?t[12]<=72?.007747:-.005608:t[15]<=219.5?.01744:.01412:t[9]<=56.5?t[11]<=199300?t[6]<=1e-35?.01243:.002204:-.006487:t[14]<=1827?t[15]<=1631?-.006046:.00203:t[12]<=1e-35?-.008595:-.004431:t[11]<=1e-35?.01167:.01813:t[14]<=1682?t[0]<=114?t[10]<=131.5?t[12]<=72?t[12]<=1e-35?-.001265:.01113:-.007586:t[12]<=72?t[12]<=1e-35?.00275:.0121:t[10]<=175.5?4428e-7:-.006937:t[6]<=2.5?t[13]<=7.5?t[14]<=1145?.00356:-.004577:t[16]<=7608?-.007741:-.003437:t[10]<=278.5?t[13]<=16.5?2448e-7:-.00694:t[10]<=398.5?.01595:.002816:t[10]<=61.5?t[3]<=1e-35?t[9]<=167.5?t[14]<=2118?-.004432:-.007109:t[14]<=1708?-.006065:-.008899:t[13]<=4.5?t[11]<=209500?-.00579:3236e-7:t[11]<=1e-35?.00302:-.00882:t[0]<=96?t[12]<=72?t[12]<=1e-35?-.001526:.009074:-.00764:t[9]<=164.5?t[12]<=72?-.004406:-.008966:t[14]<=1708?-.006047:-.009154,i+=t[3]<=1e-35?t[0]<=72?t[7]<=6.5?t[0]<=48?t[8]<=2026?t[10]<=161.5?.001607:-.008104:t[9]<=90.5?-.006952:-7733e-7:-.0124:t[9]<=173.5?t[13]<=1e-35?.00546:t[12]<=72?-.0115:-.00417:t[0]<=48?t[11]<=5214?-.01138:.007275:-.01227:t[14]<=1687?t[10]<=131.5?t[8]<=68?t[12]<=48?-.01246:.001629:t[8]<=2031?.007543:.005275:t[12]<=72?t[12]<=1e-35?.002759:-.006788:t[7]<=94.5?.01151:.003986:t[10]<=61.5?t[9]<=167.5?t[14]<=2118?.00885:.01103:.01198:t[12]<=72?t[12]<=1e-35?.006353:-.002685:.01177:t[0]<=96?t[0]<=72?t[7]<=14.5?t[0]<=48?t[11]<=32240?-.003899:-.008597:-.01236:-.01243:t[11]<=223800?t[10]<=28.5?t[14]<=1281?-6765e-7:.01077:t[12]<=72?.003742:.01124:t[9]<=238.5?-.003294:t[10]<=119.5?.009943:.002294:t[0]<=118?t[6]<=39.5?t[12]<=96?t[14]<=1398?-.002456:-.006257:-.01077:.008294:t[14]<=2243?t[9]<=123.5?t[11]<=4875e3?-.007587:-.002115:t[7]<=3.5?-.01192:-.008208:t[7]<=3.5?-.01193:-.009595,n+=t[1]<=96?t[2]<=96?t[12]<=96?t[1]<=24?t[9]<=181.5?t[2]<=24?-.007465:-.004291:t[6]<=1e-35?.01087:-6932e-7:t[6]<=1e-35?-.008234:t[10]<=1951?-.00654:.003298:t[8]<=2072?.01765:t[13]<=10.5?.01018:t[9]<=175.5?-.006056:.008751:t[10]<=24.5?t[13]<=10.5?.01281:-.002284:t[9]<=60.5?t[8]<=2038?t[7]<=20.5?.02276:-.008748:t[8]<=2085?.02595:.01196:t[1]<=72?-.004997:t[9]<=175.5?.00333:.02442:t[1]<=118?t[2]<=96?t[2]<=72?t[6]<=5.5?t[10]<=249.5?.02059:.01235:-.002211:t[12]<=72?t[7]<=67.5?.01082:.003478:t[7]<=96.5?.02471:.008311:t[10]<=47.5?t[7]<=6.5?t[13]<=6.5?.01002:.02372:t[1]<=114?.03106:.0278:t[12]<=96?t[8]<=2084?.01706:.00654:.03184:t[7]<=4.5?t[10]<=505.5?t[9]<=71.5?t[9]<=58.5?.006451:-.004132:t[8]<=2028?.007501:-8245e-7:.01097:t[8]<=2037?t[10]<=185.5?-.006679:t[7]<=11.5?.01379:-729e-6:t[8]<=2079?t[12]<=72?.006191:.02258:t[7]<=5.5?.01639:.002528,r+=t[1]<=118?t[3]<=1e-35?t[15]<=3135?t[4]<=1e-35?-.007983:t[5]<=1.01?t[1]<=72?-.007974:-.007963:-.007973:t[15]<=3250&&t[5]<=1.34?.02078:-.007974:t[4]<=1e-35?t[15]<=1041?t[16]<=4.5?.008045:t[16]<=12.5?.04513:.02624:t[5]<=1.01?t[10]<=119.5?.01522:-.004319:.03233:t[16]<=11920?t[1]<=114?t[13]<=2.5?.01601:-.007427:t[16]<=261.5?-.005542:.002899:t[7]<=2.5?t[15]<=825.5?.007678:.04594:t[12]<=118?-.007129:.006646:t[10]<=296.5?t[7]<=47.5?t[3]<=1e-35?t[5]<=1.995?t[13]<=15.5?-.00809:.009219:.03189:t[13]<=16.5?t[5]<=2.295?.04033:.03106:t[15]<=183.5?.04637:.03772:t[2]<=96?t[15]<=513.5?t[15]<=226.5?.01201:-.002581:t[15]<=694.5?.04294:.01969:t[10]<=196.5?t[5]<=3.095?.02193:.03626:t[10]<=252.5?-.004473:.02137:t[13]<=8.5?t[5]<=2.325?.02673:t[16]<=1513?t[15]<=1200?-.002298:-.007268:.02079:t[5]<=2.785?t[16]<=87.5?.01753:.04734:t[5]<=3.245?t[13]<=20.5?.01915:-5357e-7:t[15]<=1007?.03991:.01038,
e+=t[1]<=72?t[2]<=24?t[3]<=1e-35?t[4]<=1e-35?t[14]<=2034?t[10]<=71.5?.01298:.016:t[6]<=10.5?.004923:.01711:t[6]<=1.5?.01398:-.003485:t[11]<=4065?.004759:-.008413:t[6]<=1e-35?t[1]<=1e-35?t[3]<=1e-35?-3118e-7:-.01035:t[14]<=876.5?-.005425:t[11]<=2792e3?.01317:-.001254:t[6]<=2.5?t[3]<=1e-35?t[11]<=7080?.00963:.004219:t[1]<=24?-.00864:.006546:t[4]<=1e-35?.01229:t[16]<=63.5?-.002255:-.006435:t[2]<=72?t[10]<=384.5?t[1]<=96?t[14]<=1682?t[16]<=87.5?.008918:.001459:t[12]<=1e-35?-.00114:.005187:t[14]<=1682?278e-6:-.006694:t[14]<=1698?t[10]<=615.5?.01368:t[8]<=2051?.001024:.01182:t[3]<=1e-35?t[11]<=67640?.004687:.01165:t[12]<=1e-35?-1141e-7:.01544:t[10]<=41.5?t[6]<=1e-35?t[11]<=1e-35?.009771:t[10]<=1e-35?-.009643:-.005624:t[3]<=1e-35?t[12]<=1e-35?-.00466:.008041:-.008218:t[3]<=1e-35?t[12]<=72?t[14]<=1570?.004904:-2881e-8:-.007377:t[14]<=1682?t[6]<=2.5?-.003066:.004764:t[14]<=1921?-.00449:-.007191,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[12]<=72?-.01225:t[2]<=48?.01009:-.01267:t[12]<=1e-35?.007415:t[10]<=63.5?.00126:-.01287:t[0]<=96?t[2]<=72?t[1]<=72?t[10]<=1241?.01053:.00337:t[7]<=16.5?.005187:-.003306:t[10]<=41.5?t[7]<=15.5?.00933:.01292:t[1]<=72?.01141:.004381:t[0]<=114?t[7]<=57.5?-.00914:-.001813:t[10]<=398.5?-.01265:t[9]<=244.5?-.01171:-.003772:t[0]<=118?t[2]<=72?t[9]<=90.5?t[7]<=6.5?t[10]<=59.5?-.005076:-.009018:t[0]<=96?-.0113:-.008194:t[7]<=10.5?t[16]<=194.5?.002675:-.003643:t[10]<=363.5?-.002934:-.009712:t[2]<=96?t[3]<=1e-35?t[10]<=63.5?.002001:.01089:t[0]<=96?-.01267:.003686:t[3]<=1e-35?t[8]<=2026?.003242:-.003107:t[10]<=49.5?-.008781:-.005338:t[9]<=145.5?t[2]<=96?t[10]<=1453?t[7]<=89.5?-.01031:-.002907:t[2]<=72?-.00826:.003693:t[10]<=764.5?t[8]<=2141?-.009575:-.00647:t[16]<=10.5?.002514:-.006129:t[7]<=3.5?-.01165:t[10]<=127.5?-.01164:-.008141,n+=t[1]<=96?t[5]<=3.005?t[2]<=96?t[4]<=1e-35?t[9]<=62.5?t[2]<=72?-.007548:-.00411:t[2]<=48?-.002345:.01053:t[6]<=1e-35?-.008273:t[5]<=2.795?-.007925:-.003732:t[11]<=323100?t[10]<=464.5?t[5]<=2.895?-.002982:.007924:t[11]<=7080?.03138:.004962:t[9]<=60.5?.0275:t[9]<=144.5?7156e-7:.01894:t[7]<=94.5?t[11]<=541600?t[2]<=114?t[14]<=2548?.02516:.007292:t[6]<=1e-35?-.008045:.009593:.03164:t[6]<=1.5?-.007377:.009995:t[1]<=118?t[2]<=96?t[2]<=72?t[6]<=5.5?t[10]<=249.5?.02006:.01207:-.002226:t[7]<=71.5?t[14]<=1698?.003016:.01457:t[5]<=2.895?.003056:.01245:t[5]<=3.435?t[9]<=144.5?t[5]<=2.195?.02184:.01002:.02152:t[7]<=6.5?t[14]<=1967?.01883:.02483:t[6]<=1e-35?.02883:.01745:t[7]<=4.5?t[10]<=505.5?t[9]<=71.5?t[9]<=58.5?.006358:-.004115:t[11]<=1416?.01162:-1064e-8:.01076:t[2]<=96?t[11]<=1269?t[7]<=93.5?.01814:-.004108:-.001149:t[5]<=2.885?-1818e-7:t[2]<=118?.008118:6629e-7,r+=t[0]<=118?t[1]<=118?t[16]<=17020?t[0]<=96?t[0]<=48?t[16]<=2315?-.00798:-.005878:t[5]<=1.01?-.00796:-.007969:t[7]<=41.5?t[1]<=114?-.008008:-.008022:-.008:t[8]<=2198?t[3]<=1e-35?-.00797:-.008029:.02424:t[3]<=1e-35?t[8]<=2158?t[1]<=118?-.007979:-.008087:t[8]<=2159?.01269:-.007981:t[15]<=1041?t[9]<=165.5?t[16]<=4664?.01502:.03667:t[8]<=2065?.01745:.04453:t[5]<=3.135?t[16]<=219.5?.001507:.03333:t[14]<=1709?.00987:-.005843:t[7]<=4.5?t[14]<=1708?t[15]<=419.5?t[8]<=2032?.0291:t[8]<=2083?.04606:.03451:t[15]<=1133?t[8]<=2079?.02604:.003878:t[15]<=1631?.04207:.01982:t[1]<=118?.05293:t[8]<=2159?t[5]<=2.755?.04045:.03399:t[16]<=158.5?.01289:.03309:t[0]<=122.5?t[14]<=2293?t[1]<=118?t[5]<=3.095?.06041:.03523:t[8]<=2042?.02981:.01785:t[9]<=218?t[8]<=2079?.02265:.03375:.04196:t[15]<=177.5?.02003:t[16]<=194.5?t[5]<=2.895?.02543:.04029:t[9]<=60.5?.04907:.04368,e+=t[1]<=72?t[2]<=24?t[9]<=89.5?t[1]<=1e-35?t[7]<=1.5?.009659:t[12]<=72?.01509:-.004151:t[10]<=41.5?.01607:t[11]<=1134?.0183:-2515e-7:t[15]<=272.5?t[7]<=3.5?.001734:.01684:-.00162:t[11]<=267800?t[1]<=48?t[12]<=72?t[14]<=1921?.006111:.001351:-.008359:t[10]<=23.5?t[14]<=822?-.00842:.01451:t[9]<=294.5?.003494:.01021:t[10]<=1241?t[15]<=435.5?.001406:t[14]<=1708?-.001423:-.006989:t[13]<=7.5?t[12]<=72?.008788:-.002238:1427e-7:t[2]<=72?t[7]<=27.5?t[10]<=519.5?t[14]<=1953?t[12]<=1e-35?-.002553:.005352:-.00798:t[9]<=121.5?.005595:-.003001:t[14]<=1947?t[2]<=48?t[13]<=5.5?.01593:.009034:t[10]<=359.5?.003176:.008698:t[7]<=99.5?-7642e-7:.009678:t[10]<=16.5?t[7]<=2.5?t[13]<=5.5?t[13]<=2.5?.01053:-.00139:t[12]<=1e-35?-.007281:.002639:t[11]<=1e-35?.01234:-.009738:t[1]<=96?t[12]<=72?t[14]<=1761?.003794:-.001161:-.008097:t[9]<=141.5?t[12]<=72?-.003281:-.009655:t[14]<=1839?-.003863:-.008988,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[11]<=1507e3?t[0]<=48?t[11]<=148900?-.0114:-.00485:-.01244:t[1]<=48?.008698:-.01254:t[11]<=186900?t[5]<=2.505?.009448:-.00407:-.0119:t[0]<=96?t[5]<=1.01?t[9]<=61.5?t[8]<=68?-.007408:.007928:t[9]<=167.5?.01008:.01172:t[1]<=72?t[8]<=2052?.007901:.01115:t[9]<=139.5?.002995:.007527:t[7]<=93.5?t[8]<=2069?t[11]<=38200?-.01204:-.004221:-.01223:t[8]<=2070?-.009087:t[6]<=1.5?-.008208:.006442:t[0]<=118?t[6]<=3.5?t[3]<=1e-35?t[9]<=83.5?t[0]<=48?-.005247:.007816:t[11]<=7080?106e-6:.005156:t[9]<=119.5?t[0]<=114?-.006308:-.004382:t[5]<=3.505?-.005893:-.008007:t[5]<=2.615?t[3]<=1e-35?t[9]<=59.5?-.01175:-.009581:-.003306:t[1]<=96?.01003:t[5]<=2.825?.002844:-.00612:t[9]<=144.5?t[8]<=2145?t[0]<=125.5?t[5]<=2.915?-.00951:-.007033:-.01161:t[11]<=599e4?t[11]<=215900?-.002546:-.007441:.001282:t[7]<=43.5?-.01124:t[8]<=2105?-.008809:t[11]<=209500?.00607:-.007535,n+=t[0]<=96?t[3]<=1e-35?t[11]<=2195e3?-.008461:t[11]<=224e4?-.004788:-.008462:t[1]<=96?t[10]<=238.5?t[2]<=1e-35?t[13]<=12.5?.00164:-.007853:t[0]<=48?-.007352:-.008627:t[10]<=316.5?t[14]<=1967?.003279:.0209:t[11]<=247400?-.008669:-.001719:t[1]<=96?t[8]<=2023?t[10]<=22.5?.0236:.004416:t[8]<=2029?-.008851:.01123:.03241:t[0]<=118?t[2]<=96?t[1]<=96?t[8]<=2052?.01432:t[10]<=464.5?.03575:.01787:t[14]<=2463?t[8]<=2042?.01602:.007069:t[15]<=195.5?.01018:.02072:t[10]<=79.5?t[2]<=96?t[13]<=7.5?.01362:.02367:t[10]<=75.5?.02276:.02843:t[1]<=96?t[13]<=11.5?.0314:.02516:t[12]<=96?.01384:.02807:t[2]<=96?t[11]<=1075?t[14]<=1804?-.005997:t[11]<=475.5?.006572:.0196:t[10]<=371.5?t[0]<=122.5?-7116e-7:-.008052:t[15]<=370.5?.01993:.001077:t[8]<=2037?t[15]<=812.5?t[8]<=2017?.01294:-9768e-7:t[14]<=2034?-.003243:-.008829:t[13]<=12.5?t[2]<=118?.008214:.001606:t[10]<=1121?9758e-7:.007806,r+=t[1]<=118?t[1]<=114?t[11]<=1457e4?t[2]<=118?t[13]<=1e-35?.004309:-.007899:t[15]<=4270?t[11]<=2195e3?-.007071:.02535:.02609:t[2]<=122.5?-.007977:.01611:t[11]<=411e4?t[13]<=5.5?t[5]<=3.485?t[13]<=2.5?-.003751:-.007809:t[5]<=3.605?.01565:-.008018:t[5]<=3.085?t[12]<=24?-.002789:.009428:t[14]<=1464?.04793:.005703:t[15]<=1007?t[13]<=5.5?t[5]<=1.01?-.007986:.03464:t[15]<=907.5?.02022:.0437:t[13]<=1e300?t[14]<=2548?-.008017:.0101:.01719:t[13]<=9.5?t[5]<=2.925?t[2]<=96?t[10]<=309.5?t[11]<=1069e3?.01803:.04268:t[15]<=683.5?.001721:.01481:t[11]<=864600?t[15]<=3037?.03508:.01789:t[5]<=2.875?-.003727:.02566:t[15]<=328.5?t[15]<=174.5?t[10]<=52.5?.04124:.005816:t[15]<=201.5?.04089:.02396:t[15]<=2563?t[11]<=112300?-.004104:.01033:.02052:t[12]<=118?t[12]<=1e-35?t[14]<=1977?t[10]<=221.5?.01895:.02936:t[11]<=392.5?.01648:.0332:t[10]<=420.5?t[10]<=137.5?.007048:.02987:t[7]<=5.5?-.008428:-.002127:.04724,e+=t[1]<=72?t[5]<=2.065?t[7]<=1.5?t[14]<=1927?t[10]<=61.5?t[14]<=1570?.00379:.006708:.01299:t[1]<=24?-.001028:.01277:t[16]<=19.5?t[2]<=72?t[5]<=1.01?.01567:.01076:t[5]<=1.125?-.005291:.0122:t[2]<=72?t[5]<=1.01?.01142:9273e-7:t[1]<=1e-35?-.007649:.009891:t[6]<=1e-35?t[11]<=116300?t[1]<=1e-35?-.003453:.01244:t[1]<=48?-.005416:t[5]<=2.995?.01317:-5338e-7:t[11]<=300300?t[6]<=2.5?t[7]<=18.5?-.002816:.00983:-.003226:-.006292:t[2]<=72?t[7]<=21.5?t[10]<=519.5?t[14]<=1953?t[5]<=1.205?-.005144:.001415:-.007951:t[1]<=114?t[14]<=1438?.01249:.003483:-.004433:t[10]<=351.5?t[1]<=114?t[10]<=131.5?.008846:.002249:-.004786:t[14]<=1947?t[2]<=48?.01386:.008597:.002964:t[5]<=3.115?t[12]<=72?t[14]<=1761?t[1]<=118?.003351:-.004534:t[1]<=114?-.001287:-.006418:-.008591:t[7]<=9.5?t[14]<=1747?t[1]<=114?-.001285:-.005836:t[12]<=1e-35?-.007579:3046e-7:t[11]<=1e-35?.006345:t[5]<=3.435?-.005665:-.009718,
i+=t[4]<=1e-35?t[6]<=3.5?t[13]<=7.5?t[15]<=854.5?t[9]<=59.5?t[8]<=2020?.00805:-.009647:t[14]<=2548?-.009981:-1389e-7:t[11]<=132500?t[11]<=7080?-.006103:6811e-8:t[5]<=.835?.004679:-.008094:t[15]<=268.5?t[8]<=2020?t[13]<=18.5?-.003441:.01382:t[11]<=1416?-.003351:-.007298:t[10]<=398.5?t[9]<=83.5?-.001879:.001366:-.008746:t[5]<=2.665?t[9]<=59.5?t[15]<=14.5?-.008026:-.01181:t[10]<=187.5?t[8]<=2027?-.007678:-.01136:t[6]<=9.5?-3485e-7:-.01009:.00844:t[5]<=3.005?t[12]<=72?t[12]<=1e-35?t[8]<=2079?t[11]<=7.5?-.003826:.002463:t[14]<=1682?-9934e-7:.001129:t[15]<=458.5?t[10]<=39.5?-.009612:-.001416:t[11]<=17920?-.006453:-.01021:t[12]<=96?t[15]<=419.5?t[13]<=4.5?-.006437:.008009:t[14]<=2407?.01122:.00827:t[9]<=278.5?t[5]<=2.375?-.01169:-.007518:t[5]<=2.875?-.007841:.002458:t[6]<=39.5?t[10]<=173.5?t[8]<=2105?t[11]<=206.5?-.002385:-.008589:t[13]<=14.5?5076e-7:-.006855:t[9]<=50.5?.003327:t[5]<=3.405?-.00427:-.006894:.007492,n+=t[0]<=96?t[4]<=1e-35?t[9]<=62.5?t[2]<=96?t[2]<=24?t[15]<=3384?-.008007:-.003505:t[15]<=390.5?-.003103:-.006477:.01371:t[6]<=1.5?t[11]<=206.5?-.008233:t[11]<=392.5?.02148:-416e-6:-.007253:t[5]<=3.175?t[2]<=96?-.008198:t[11]<=407800?t[11]<=109.5?.001324:-.008587:t[14]<=1698?.02264:-.00873:t[11]<=78e3?t[5]<=3.445?.006679:-.008697:t[13]<=11.5?-.008765:.02663:t[0]<=118?t[2]<=96?t[9]<=115.5?t[5]<=2.195?t[11]<=13030?.01236:.004347:t[15]<=3037?.01303:.03057:t[5]<=2.825?t[2]<=48?.02621:.01263:t[13]<=22.5?.02235:.03573:t[5]<=3.365?t[13]<=7.5?t[12]<=72?.008782:.02688:t[11]<=179e3?.01603:.02249:t[2]<=96?t[13]<=7.5?.01334:.023:t[5]<=3.375?.02767:.02414:t[2]<=96?t[11]<=1075?t[14]<=1804?-.005983:t[11]<=475.5?.006462:.01915:t[15]<=70.5?t[11]<=229800?-.004234:.02275:t[0]<=122.5?-4286e-7:-.007199:t[5]<=2.455?-.004623:t[5]<=3.315?t[5]<=3.265?.005187:.01801:t[11]<=2342?.009308:6605e-7,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[11]<=1457e4?t[2]<=72?t[13]<=7.5?-.007967:-.007977:t[13]<=18.5?-.007986:.01035:t[6]<=2.5?-.007998:.02816:t[13]<=5.5?t[14]<=1535?.007044:t[9]<=75.5?-.00825:-.004179:t[11]<=3406e3?t[12]<=48?.01906:.04223:.04237:t[12]<=122.5?t[12]<=118?t[11]<=1457e4?t[8]<=1e-35?-.007274:-.007969:t[8]<=2157?-.007982:.01951:t[9]<=120.5?.02099:t[2]<=96?-.007982:-.008015:.02736:t[0]<=122.5?t[9]<=152.5?t[12]<=118?t[14]<=2293?t[8]<=2030?.02692:.01895:t[6]<=5.5?.02895:.002382:.04176:t[14]<=1708?t[8]<=2103?t[11]<=25820?.01578:.03472:.01441:t[13]<=22.5?t[11]<=411e4?.03067:.04028:t[8]<=2071?.04421:.03547:t[11]<=4432e3?t[0]<=126.5?t[11]<=21290?t[13]<=12.5?.03328:.04118:.01801:t[6]<=2.5?.03831:.04236:t[2]<=48?.04316:.04749,e+=t[0]<=72?t[7]<=1.5?t[4]<=1e-35?t[14]<=1927?t[8]<=2028?t[8]<=2015?.007234:-.002149:t[8]<=2091?.01042:.005623:t[8]<=2030?t[8]<=2016?-.001465:-.008471:t[11]<=9310?.003426:-.001738:t[8]<=37?2278e-7:.01679:t[12]<=72?t[0]<=48?t[2]<=72?t[16]<=6.5?.01537:.01125:t[4]<=1e-35?-.003351:.01171:.01724:t[0]<=48?t[7]<=14.5?-.00931:-.001143:.01552:t[2]<=72?t[5]<=5.165?t[12]<=1e-35?t[6]<=1e-35?t[7]<=19.5?-.004256:.00483:t[14]<=1698?-.001767:-.00546:t[12]<=72?t[11]<=467200?.009418:.01944:-.006604:t[14]<=1698?t[2]<=24?.01893:t[11]<=2984e3?.01253:.001709:t[16]<=1e-35?t[11]<=27940?.004684:.01427:t[0]<=96?.004788:-.002203:t[5]<=3.115?t[14]<=1711?t[12]<=72?t[8]<=2074?4346e-8:.004629:t[11]<=1749?-.001267:-.008792:t[12]<=72?t[7]<=7.5?-.005581:-.001702:-.009103:t[6]<=1e-35?t[11]<=1e-35?.01162:t[7]<=10.5?-.007293:-.009584:t[14]<=1682?t[8]<=2041?-.005819:-9332e-7:t[14]<=2173?-.006479:-.008501,i+=t[3]<=1e-35?t[4]<=1e-35?t[6]<=3.5?t[14]<=2004?t[15]<=189.5?t[6]<=3.5?-.01022:-.006175:t[8]<=2026?3091e-7:-.004602:t[11]<=9310?t[11]<=610.5?.004143:-.003283:t[8]<=2030?.009555:.004034:t[8]<=2038?t[15]<=183.5?-.01186:t[10]<=36.5?.002882:-.007315:-.01129:t[14]<=1698?t[8]<=2079?t[8]<=2003?t[12]<=72?-.002078:.009969:t[12]<=1e-35?.004867:-4111e-7:t[5]<=1.125?t[15]<=1500?.00389:-2437e-7:t[12]<=72?-.001703:.00749:t[5]<=2.765?t[12]<=72?t[12]<=1e-35?.003942:-.004512:.01164:t[8]<=2084?t[8]<=2052?.007367:.009539:t[15]<=1864?.006943:.003352:t[7]<=23.5?t[15]<=8218?t[14]<=2136?t[15]<=427.5?t[11]<=300300?-.006838:-.009588:t[7]<=12.5?-.005336:-.008396:t[8]<=2008?-.005513:t[8]<=2026?-.01151:-.008332:t[8]<=2012?t[10]<=278.5?.009415:t[14]<=2061?-.005:.004107:t[8]<=2052?-.01033:t[11]<=2342?.007758:-.002749:t[6]<=31.5?t[12]<=114?t[14]<=2196?t[4]<=1e-35?-.01175:-.004819:t[7]<=25.5?.00429:-.006336:-.01002:.002855,n+=t[1]<=96?t[2]<=96?t[5]<=3.005?t[4]<=1e-35?t[9]<=62.5?t[2]<=72?-.007654:-.003851:t[6]<=1.5?.002867:-.002512:t[6]<=83.5?t[6]<=1e-35?-.008272:-.007126:.01066:t[9]<=111.5?-.008828:t[9]<=237.5?t[6]<=1e-35?-.002338:.01592:.02934:t[5]<=2.725?t[10]<=707.5?t[13]<=8.5?.01328:t[8]<=2154?-.003548:.01207:.02151:t[11]<=229800?t[8]<=2024?-.007666:t[8]<=2099?.01571:-.007201:t[13]<=16.5?.02892:.01684:t[1]<=118?t[2]<=96?t[5]<=3.255?t[8]<=2046?t[11]<=184.5?4192e-7:.02368:t[2]<=72?.0174:.004771:t[13]<=7.5?t[11]<=16730?.009217:-2507e-7:t[1]<=114?.01517:.007489:t[10]<=49.5?t[6]<=8.5?t[5]<=3.105?.01853:.027:t[13]<=4.5?.001038:.02111:t[13]<=7.5?t[5]<=3.315?.006575:.02129:t[8]<=2030?.02238:.01448:t[2]<=96?t[10]<=683.5?t[5]<=2.865?t[11]<=1200?.002544:-.00526:t[13]<=8.5?.004319:-6827e-7:.0118:t[5]<=2.405?-.004386:t[8]<=2021?t[5]<=3.695?-.002728:.007824:t[11]<=94.5?.01726:.005438,r+=t[0]<=118?t[0]<=48?t[3]<=1e-35?t[11]<=1457e4?t[13]<=5.5?t[13]<=1e-35?-.007996:-.007963:t[12]<=1e-35?-.007975:-.008001:t[9]<=144.5?t[10]<=19.5?-.00798:-.008016:.0247:t[15]<=1041?t[9]<=303.5?t[11]<=411e4?.02356:.04578:t[14]<=2548?-.007354:.01173:t[13]<=6.5?.02609:t[8]<=2099?-.00482:.01123:t[8]<=1e-35?t[0]<=96?t[0]<=72?-.007982:-.007959:.01879:t[11]<=1457e4?t[9]<=239.5?t[0]<=96?-.007953:-.007995:t[9]<=240.5?-.002535:-.007972:t[8]<=2159?t[3]<=1e-35?-.007957:-.008027:.02093:t[10]<=441.5?t[13]<=16.5?t[0]<=122.5?t[9]<=271?t[5]<=2.295?.0324:.0221:t[8]<=2071?.02963:.03563:t[11]<=4432e3?t[9]<=119.5?.02722:.03597:.04249:t[14]<=1747?t[14]<=1505?.03931:t[15]<=195.5?.03767:.01701:t[15]<=2075?t[15]<=625.5?.03683:.02891:.04123:t[9]<=115.5?t[10]<=1121?t[15]<=1410?t[5]<=3.065?-.006859:-.002482:.002227:.02396:t[10]<=653.5?t[8]<=2041?.0333:t[10]<=539.5?.0116:-.003859:t[13]<=20.5?.04034:.02197,e+=t[1]<=72?t[2]<=24?t[9]<=89.5?t[1]<=24?t[6]<=5.5?.008437:-.005286:t[7]<=1.5?t[14]<=2034?.009677:-.003618:t[9]<=36.5?.01509:.01207:t[6]<=22.5?-753e-6:.01545:t[6]<=1e-35?t[1]<=1e-35?t[8]<=2071?-.007254:7689e-7:t[11]<=138100?.01293:t[7]<=9.5?-6656e-7:.00979:t[7]<=2.5?t[8]<=2028?t[8]<=2016?.005106:-.004277:t[14]<=1927?.007187:.002198:t[11]<=5679?t[8]<=2052?.01295:.001324:t[13]<=26?-.005185:-622e-6:t[2]<=72?t[7]<=17.5?t[14]<=1698?t[8]<=2054?-.001255:t[10]<=75.5?3241e-8:.009301:t[10]<=420.5?-.005389:.001045:t[13]<=9.5?t[2]<=48?t[1]<=118?.01525:.002354:t[8]<=2024?.001303:.008804:t[1]<=114?t[12]<=72?.004902:-.007876:-.004927:t[10]<=39.5?t[7]<=15.5?t[14]<=1711?t[13]<=2.5?.01364:-.003132:t[13]<=4.5?4098e-7:-.007896:t[11]<=1e-35?.01291:-.00956:t[1]<=96?t[12]<=72?t[14]<=1711?.003874:-8835e-7:-.007407:t[14]<=1914?t[12]<=72?-.001417:-.007996:t[9]<=141.5?-.004514:-.008455,i+=t[3]<=1e-35?t[0]<=72?t[7]<=1.5?t[0]<=48?t[8]<=2026?t[8]<=2016?-.001234:.006268:t[9]<=75.5?-.0058:-527e-6:-.01239:t[16]<=2.5?t[7]<=4.5?-.008173:-.01163:t[0]<=48?t[2]<=72?-.006696:.004547:-.01243:t[2]<=72?t[10]<=11.5?t[2]<=48?t[9]<=58.5?-.01151:-.004588:t[16]<=28.5?-.004583:.001564:t[6]<=1e-35?t[7]<=28.5?.005933:-.001697:t[9]<=23.5?.005622:.008715:t[10]<=25.5?t[7]<=9.5?t[9]<=141.5?.00757:.01099:.01253:t[8]<=2074?t[9]<=143.5?.005636:.009605:t[8]<=2097?.001536:.004785:t[2]<=96?t[2]<=72?t[15]<=763.5?-.008298:t[6]<=11.5?-.005725:.002675:t[10]<=3708?t[7]<=65.5?t[0]<=96?-6331e-7:-.008234:t[0]<=118?.004198:-.004543:t[0]<=72?-.01228:t[9]<=241.5?.004229:.009402:t[0]<=96?t[0]<=72?t[0]<=48?t[8]<=2007?-629e-6:-.007788:-.01201:t[16]<=81.5?.009604:8415e-7:t[10]<=26.5?t[7]<=3.5?t[0]<=118?-.007167:-.01023:-.01146:t[0]<=118?-.005656:t[8]<=2141?-.008897:-.004822,
n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[6]<=1e300?t[0]<=48?t[2]<=24?-.008447:-.008482:t[6]<=1e-35?-.008422:-.008434:t[14]<=1537?t[11]<=336e3?-.008419:-.005761:t[0]<=48?-.008495:-.008422:-.006234:t[14]<=1920?.009692:-.007991:t[0]<=118?t[0]<=96?t[1]<=96?t[11]<=475.5?t[15]<=1500?-.005302:.009176:t[6]<=1e-35?-.008213:-.004173:t[1]<=118?.03414:t[15]<=2563?.01032:.02356:t[2]<=96?t[1]<=96?t[8]<=2071?.01607:.02752:t[14]<=2463?.00893:.01756:t[6]<=1e-35?t[2]<=114?.02068:.02461:t[1]<=96?.02743:.01123:t[1]<=114?t[6]<=1e-35?.00797:.02339:t[2]<=96?t[11]<=1022?t[11]<=475.5?.001912:.01812:t[8]<=2003?.009634:-6982e-7:t[15]<=880.5?t[15]<=763.5?.004848:.01347:t[8]<=2024?-.006661:.002677,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[0]<=48?t[11]<=267800?-.007964:-.007186:t[3]<=1e-35?-.007947:-.007964:t[7]<=42.5?t[1]<=114?-.007992:-.008008:t[1]<=114?-.007979:-.007992:t[8]<=2159?t[3]<=1e-35?t[7]<=1.5?-.007963:-.00795:-.008023:.02034:t[3]<=1e-35?t[11]<=1457e4?t[1]<=118?t[2]<=24?-.007959:-.007969:t[9]<=45.5?-.008045:-.008101:t[15]<=2778?t[2]<=1e-35?-.00798:-.008026:.02827:t[15]<=1041?t[9]<=303.5?t[8]<=2067?.03195:.02039:t[2]<=1e-35?.008968:-.008189:t[15]<=8997?t[8]<=2097?-.004947:.01563:.01957:t[7]<=3.5?t[1]<=118?.04102:t[0]<=122.5?t[11]<=3917e3?t[9]<=59.5?.01908:.02891:t[9]<=75.5?.003372:.02666:t[11]<=45380?.03707:.03322:t[9]<=156.5?t[2]<=96?t[0]<=122.5?t[7]<=86.5?.01644:.004306:t[15]<=2319?.02435:.04403:t[8]<=2057?t[7]<=95.5?.03184:.01762:t[7]<=34.5?.01499:.02343:t[9]<=163.5?.03815:t[8]<=2070?t[11]<=2433?.01401:.03608:t[15]<=127.5?.03492:.02078,e+=t[0]<=72?t[0]<=48?t[9]<=71.5?t[6]<=1.5?t[14]<=2049?t[8]<=2028?.004947:.01099:t[7]<=70.5?-.001939:.01179:t[15]<=2637?t[8]<=2027?.01144:.01518:t[6]<=3.5?.003079:.01107:t[4]<=1e-35?t[6]<=8.5?t[8]<=2071?-.002023:.002022:.01437:t[5]<=1.01?.002006:t[9]<=143.5?.009364:.01825:t[8]<=21.5?.007896:.01693:t[5]<=2.935?t[14]<=1721?t[8]<=2081?t[7]<=3.5?-.005239:t[8]<=2002?.007031:-52e-6:t[0]<=96?t[8]<=2106?.007803:.002668:t[14]<=1513?.00184:-.004288:t[13]<=5.5?t[0]<=114?t[15]<=82.5?.004604:-2423e-7:t[9]<=60.5?715e-6:-.006325:t[0]<=114?t[14]<=2335?-.002498:-.006478:t[7]<=98.5?-.008745:-.001959:t[14]<=1682?t[0]<=96?t[13]<=2.5?t[8]<=2094?.01494:.002741:t[9]<=61.5?-3314e-7:-.004099:t[5]<=2.985?.004924:t[6]<=1.5?-.005596:-.001954:t[9]<=118.5?t[5]<=3.155?t[5]<=3.015?-.004543:-.001185:t[0]<=96?-.005214:-.007614:t[14]<=1780?t[8]<=2084?-.006883:-.002956:t[0]<=114?-.007896:-.009181,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.006679:t[1]<=72?t[0]<=48?t[7]<=21.5?-.007189:-.01229:-.01223:t[14]<=1395?.009753:t[8]<=149?.00393:-.008362:t[0]<=96?t[2]<=72?t[1]<=72?t[6]<=1e-35?.003349:.01047:t[5]<=2.925?.002903:-.004179:t[5]<=1.01?t[7]<=5.5?.008979:.01242:t[14]<=1610?.002099:.006334:t[7]<=90.5?-.01079:t[14]<=2548?t[5]<=2.905?-.01188:-.004541:.002392:t[0]<=118?t[2]<=72?t[13]<=5.5?t[5]<=3.065?t[7]<=1.5?-.006424:-.01052:8582e-7:t[6]<=3.5?t[15]<=226.5?-.007645:-.002704:t[3]<=1e-35?-.00938:-.001914:t[2]<=96?t[3]<=1e-35?t[8]<=2071?.01247:.004809:t[0]<=96?-.0125:.002161:t[3]<=1e-35?t[8]<=2027?.003232:-.002779:t[5]<=3.425?-.004613:-.008725:t[2]<=96?t[7]<=49.5?t[5]<=4.005?t[13]<=10.5?-.00736:-.01142:t[2]<=72?-.01046:.004619:t[5]<=2.915?-.006648:t[2]<=72?-.004611:.005001:t[5]<=2.325?t[13]<=6.5?-.006584:-.01074:t[0]<=122.5?t[15]<=466.5?-.008871:-.005767:-.0119,n+=t[3]<=1e-35?t[0]<=125.5?t[0]<=96?t[7]<=1e-35?t[11]<=336e3?t[16]<=3553?-.008446:-.008259:t[11]<=347800?.004005:-.008114:t[0]<=72?t[13]<=7.5?-.008434:-.008453:t[10]<=1e-35?-.008397:-.008422:t[13]<=15.5?-.003355:-.008808:7674e-7:t[0]<=118?t[0]<=96?t[1]<=96?t[10]<=238.5?t[2]<=1e-35?-.001946:-.008073:t[10]<=316.5?.01151:-.007138:t[1]<=96?t[11]<=154600?.008968:.01862:.03171:t[2]<=96?t[1]<=96?t[7]<=56.5?.03204:.01651:t[7]<=93.5?.01465:.007485:t[10]<=79.5?t[7]<=1.5?.02015:.02518:t[1]<=96?.02508:.01401:t[7]<=3.5?t[0]<=122.5?t[1]<=118?-.008:t[16]<=10.5?-.003121:.001055:t[16]<=194.5?-.005563:-.007853:t[1]<=114?.01761:t[2]<=96?t[7]<=8.5?.00521:-.001377:t[13]<=12.5?.00602:.001313,r+=t[0]<=118?t[1]<=118?t[4]<=1e-35?t[16]<=219.5?t[8]<=2079?-.007958:-.007989:-.004022:t[0]<=96?t[5]<=1.01?t[0]<=72?-.007955:-.007938:t[2]<=96?-.007947:-.007961:t[1]<=114?t[2]<=118?-.007979:-.007992:t[13]<=5.5?-.007983:-.008003:t[12]<=96?t[2]<=72?t[14]<=2548?t[5]<=1.01?-.007546:-.001536:t[5]<=1e-35?.036:-.006092:t[13]<=5.5?t[14]<=2548?-.006638:.0019:t[8]<=2151?5634e-7:.01401:.03273:t[13]<=9.5?t[5]<=2.355?t[2]<=114?t[5]<=2.295?t[8]<=2079?.03664:.02484:t[14]<=2506?.005949:.021:t[16]<=280.5?t[14]<=1470?.04299:.03204:t[8]<=2102?.01536:.03026:t[8]<=2024?t[5]<=3.245?t[8]<=2017?.01037:.03082:.03848:t[5]<=3.325?t[5]<=3.035?.01435:-.002449:t[8]<=2089?.009613:.02858:t[1]<=118?t[2]<=118?t[5]<=2.885?.02523:.03872:.04717:t[0]<=122.5?t[5]<=2.785?t[14]<=1747?.02176:.02996:t[16]<=87.5?.02601:.01728:t[16]<=194.5?.03226:t[5]<=2.705?.0343:.03996,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.004373:t[4]<=1e-35?t[7]<=6.5?.00321:.01491:t[13]<=2.5?.01112:.01651:t[3]<=1e-35?t[9]<=74.5?t[6]<=1.5?t[13]<=7.5?.01168:.007253:t[12]<=72?.01427:-.00278:t[14]<=1830?t[12]<=1e-35?.006853:.01913:t[6]<=3.5?.001151:.0122:t[12]<=1e-35?-.008859:-.004395:t[14]<=1698?t[1]<=114?t[1]<=72?t[12]<=1e-35?t[13]<=14.5?-.008198:-.003717:t[10]<=187.5?-9795e-7:.004541:t[10]<=41.5?t[13]<=2.5?.01389:-.001446:t[12]<=72?.004705:-.00547:t[6]<=2.5?t[7]<=21.5?t[1]<=118?-.005017:-.008033:t[7]<=42.5?.002039:-.00577:t[10]<=278.5?t[6]<=9.5?.001011:-.007681:.009294:t[10]<=61.5?t[3]<=1e-35?t[9]<=167.5?t[14]<=1921?-.004396:-.006424:t[14]<=1709?-.004704:-.008619:t[13]<=11.5?t[14]<=2463?-.006632:-.008915:t[12]<=122.5?-.008929:-6069e-7:t[0]<=96?t[1]<=72?t[13]<=22.5?-.009123:-.005913:t[12]<=72?4488e-7:-.006889:t[9]<=119.5?t[1]<=48?-.01072:-.004359:t[14]<=1741?-.005392:-.008285,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[0]<=48?t[12]<=72?t[7]<=23.5?-.007378:-.01222:.007125:-.01213:t[9]<=119.5?.003773:-.009738:t[0]<=96?t[2]<=72?t[1]<=72?t[6]<=1e-35?.003298:.01038:t[10]<=5265?.002464:-.004592:t[10]<=47.5?t[7]<=11.5?.008946:.0121:t[1]<=72?.01111:.003967:t[7]<=90.5?-.01069:t[6]<=9.5?t[10]<=165.5?-.00269:-.01168:-2931e-7:t[0]<=118?t[2]<=72?t[9]<=70.5?t[7]<=1.5?t[10]<=35.5?-.001115:-.007582:t[16]<=8.5?-.01091:-.007581:t[10]<=302.5?t[6]<=9.5?7728e-7:-.01074:t[9]<=286.5?-.007037:.003006:t[2]<=96?t[10]<=1241?t[1]<=118?-7376e-7:.01309:t[7]<=91.5?.002094:.00722:t[1]<=96?t[0]<=72?-.002069:.0147:t[10]<=27.5?-.009081:-.005031:t[2]<=96?t[7]<=49.5?t[10]<=1453?-.01005:t[2]<=72?-.008668:.001992:t[2]<=72?t[10]<=77.5?-.009526:3041e-7:t[10]<=47.5?.005774:-.003273:t[10]<=167.5?t[9]<=123.5?-.008338:-.01071:t[0]<=122.5?t[13]<=12.5?-.004108:-.007741:-.01234,n+=t[3]<=1e-35?t[0]<=125.5?t[0]<=96?t[2]<=1e-35?t[14]<=1537?t[11]<=336e3?-.008396:-.005754:t[0]<=48?-.008477:-.0084:t[5]<=4.005?t[1]<=96?-.008413:-.008435:t[0]<=72?-.008424:-.008386:t[13]<=15.5?-.003343:-.008798:7608e-7:t[0]<=118?t[0]<=96?t[1]<=96?t[5]<=3.255?t[1]<=72?-.008313:-.005469:t[2]<=96?-.008655:.0116:t[1]<=96?t[9]<=271?.01058:.03175:.03076:t[2]<=96?t[1]<=96?t[8]<=2052?.01106:.02641:t[14]<=1698?.005739:.01324:t[5]<=3.315?t[1]<=96?.02504:.01281:t[2]<=96?.01967:.02444:t[0]<=126.5?t[9]<=23.5?t[1]<=114?.021:t[2]<=118?.00626:3793e-7:t[5]<=2.965?t[13]<=29.5?-3416e-7:.005241:t[9]<=160.5?.006165:-.001283:t[8]<=2071?-.005215:-.008048,r+=t[3]<=1e-35?t[11]<=1457e4?t[11]<=15.5?t[5]<=2.995?t[8]<=2120?t[2]<=114?-.007952:-.007989:-.005601:.01026:t[14]<=1081?t[10]<=587.5?t[4]<=1e-35?-.007951:-.00794:.006942:t[10]<=916.5?t[15]<=44.5?-.007369:-.00794:t[10]<=938.5?.007227:-.007945:t[15]<=3135?t[5]<=2.635?t[8]<=2158?t[4]<=1e-35?-.007993:-.00794:-.008037:3727e-7:t[14]<=1537?.03435:.01278:t[2]<=118?t[10]<=299.5?t[5]<=2.005?t[14]<=1920?t[2]<=72?-.001113:.02301:t[8]<=2126?.02179:.01094:t[8]<=2099?t[6]<=1.5?.009047:-8049e-7:t[8]<=2107?.02388:.01019:t[4]<=1e-35?t[15]<=334.5?.03684:.01442:t[5]<=3.185?t[8]<=4218?7167e-7:.03636:t[15]<=1864?.01368:-.003651:t[15]<=1948?t[5]<=2.585?t[6]<=4.5?t[12]<=118?.02626:.03963:t[11]<=610.5?.004027:.02018:t[5]<=3.245?t[10]<=107.5?.01394:-.001841:t[15]<=653.5?.01035:.02821:t[5]<=3.085?t[12]<=118?t[8]<=2102?.001585:.01772:.03879:t[15]<=3503?.006308:.03497,
e+=t[0]<=72?t[1]<=72?t[0]<=48?t[10]<=735.5?t[8]<=2095?.01601:t[7]<=23.5?.007014:.0171:t[5]<=2.195?.01658:-.002255:.01644:t[3]<=1e-35?t[13]<=7.5?t[4]<=1e-35?t[8]<=2027?.01094:.0145:t[5]<=1.01?-.003169:.00912:t[9]<=61.5?t[10]<=22.5?.006675:.01258:t[8]<=2042?-1755e-7:.005533:t[8]<=2037?-.01017:t[13]<=11.5?t[10]<=54.5?8121e-7:-.006151:-.008351:t[5]<=3.115?t[1]<=72?t[9]<=30.5?t[15]<=3602?t[15]<=551.5?-.004584:-.007139:7409e-7:t[15]<=334.5?t[1]<=48?-8683e-7:-.006854:-.009038:t[0]<=114?t[9]<=139.5?t[8]<=2073?363e-6:.003648:t[8]<=2073?-.005096:-.001098:t[7]<=19.5?t[13]<=5.5?-.004235:-.008337:t[9]<=74.5?-.002036:-.006828:t[3]<=1e-35?t[9]<=141.5?t[8]<=21.5?t[7]<=92.5?.00607:.0198:t[13]<=3.5?.005132:-.003641:t[9]<=167.5?-.005652:t[15]<=20140?-.008196:.001734:t[13]<=6.5?t[13]<=2.5?.003614:t[5]<=3.605?.002367:-.005214:t[10]<=79.5?t[13]<=9.5?-.007278:-.008679:t[9]<=144.5?-.005019:-.008064,i+=t[1]<=96?t[0]<=72?t[12]<=72?t[1]<=72?t[4]<=1e-35?t[8]<=2096?-.01017:6463e-7:t[10]<=17.5?-.007088:-.01185:t[12]<=1e-35?.005462:-.01321:t[0]<=48?.00863:t[8]<=2015?849e-6:-.01209:t[0]<=96?t[5]<=1.125?t[9]<=61.5?t[8]<=108.5?-.00657:.007673:t[9]<=167.5?.009245:.01133:t[1]<=72?t[12]<=1e-35?.01077:.004816:t[12]<=72?.003097:.01054:t[10]<=21.5?.01621:t[10]<=302.5?-.01146:t[15]<=599.5?-.0106:-.003683:t[0]<=118?t[6]<=9.5?t[15]<=8218?t[9]<=32.5?t[4]<=1e-35?-.008781:-.004988:t[1]<=96?-.003047:-.005504:t[1]<=96?t[6]<=1e-35?.003712:-.005963:t[8]<=2006?-8499e-7:-.008689:t[0]<=72?t[16]<=368.5?t[15]<=14.5?-.006648:-.01129:t[8]<=2039?-.001523:-.01128:t[1]<=96?.008328:t[9]<=161.5?-.007571:.003642:t[9]<=120.5?t[8]<=2136?t[0]<=122.5?t[5]<=2.325?-.01058:-.006518:-.01101:t[9]<=45.5?-.007895:t[15]<=245.5?-.009668:-.002077:t[10]<=125.5?-.01041:t[0]<=122.5?t[9]<=147.5?-.002962:-.007898:-.01197,n+=t[3]<=1e-35?t[0]<=114?t[14]<=1452?t[14]<=1441?t[0]<=96?t[16]<=3553?-.008408:-.008294:-.007014:.003973:t[0]<=96?t[0]<=48?t[13]<=7.5?-.008423:-.00846:t[10]<=1e-35?-.008381:-.008403:-.008919:t[14]<=1721?.01357:-.007538:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[8]<=2024?t[14]<=1799?.007877:.02716:t[10]<=43.5?.007644:.02357:t[16]<=303.5?t[10]<=316.5?1767e-7:-.007614:t[8]<=2080?.01379:-.004334:t[14]<=1641?t[8]<=2031?t[8]<=2016?.01242:.02628:t[10]<=93.5?.01412:.004872:t[10]<=1837?t[12]<=96?.01543:.02455:t[13]<=4.5?.006694:.0201:t[0]<=122.5?t[9]<=26.5?.01918:t[10]<=1453?t[8]<=2038?-8013e-7:.002258:.01461:t[16]<=194.5?t[0]<=126.5?t[0]<=125.5?-.002907:.008538:-.005674:t[14]<=1920?-.005332:-.008456,r+=t[0]<=118?t[1]<=118?t[0]<=96?t[0]<=48?t[16]<=2315?t[3]<=1e-35?-.007947:-.007992:-.006568:t[3]<=1e-35?t[0]<=72?-.007941:-.007933:t[2]<=118?-.007954:-.007969:t[2]<=118?t[1]<=114?t[13]<=34?-.007981:-.007971:t[16]<=1e-35?-.00798:-.008:t[11]<=4875e3?t[0]<=114?-.007994:-.00801:-.008054:t[3]<=1e-35?t[11]<=1457e4?t[16]<=29960?t[1]<=118?-.007953:-.00807:t[6]<=4.5?-.007976:.02623:t[6]<=2.5?-.007982:.02912:t[14]<=1441?t[16]<=145.5?-.008271:-.002953:t[16]<=75.5?t[16]<=8.5?.01591:.03707:t[8]<=2141?.00784:.02659:t[0]<=122.5?t[13]<=7.5?t[16]<=1930?t[12]<=118?t[6]<=1.5?.02002:.01001:.03819:t[14]<=1598?-.005918:.01064:t[14]<=1708?t[6]<=1.5?t[16]<=723.5?.02352:.0142:t[11]<=46830?.01616:-.00335:t[8]<=2052?t[8]<=2017?.02441:.03392:t[8]<=2159?.02514:.01421:t[8]<=2136?t[11]<=6136?.02639:t[16]<=24.5?.03719:t[16]<=376.5?.02962:.03484:.02328,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.003202:t[4]<=1e-35?t[6]<=16.5?.01308:.00266:t[12]<=72?.01616:t[0]<=48?.002275:.01638:t[3]<=1e-35?t[13]<=7.5?t[4]<=1e-35?t[13]<=1e-35?-.00109:.01359:t[12]<=1e-35?-.004112:.009329:t[6]<=3.5?t[14]<=2034?.006922:.002099:t[5]<=1.295?.01332:-.002026:t[14]<=1794?t[6]<=1e-35?-.007248:-.001735:-.009202:t[14]<=1682?t[1]<=72?t[13]<=15.5?t[12]<=1e-35?-.008908:t[5]<=2.935?.003091:-.007433:t[11]<=10460?t[11]<=2111?-.003732:.006418:t[11]<=132500?-.008514:-.002323:t[5]<=3.125?t[0]<=114?t[12]<=72?.004897:-.00487:t[6]<=3.5?-.004444:.005168:t[0]<=114?t[14]<=1425?.001511:-.002195:t[13]<=7.5?-.003392:-.007102:t[5]<=3.105?t[1]<=72?t[14]<=1920?-.003559:t[11]<=1574?-.005024:-.008368:t[13]<=9.5?t[12]<=72?6381e-7:-.007927:t[0]<=114?-.00331:-.007497:t[3]<=1e-35?t[11]<=1e-35?.007364:t[14]<=1953?-.005248:-.007241:t[6]<=1e-35?t[13]<=2.5?.003232:-.008394:t[16]<=214.5?-.006653:-.002718,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.00762:t[1]<=72?t[0]<=48?t[12]<=72?-.01073:.001938:-.01193:t[12]<=24?t[12]<=1e-35?.005515:-.01313:.01471:t[0]<=96?t[14]<=1687?t[1]<=72?t[12]<=1e-35?.01009:.004042:t[10]<=25.5?.005312:6247e-7:t[10]<=63.5?t[9]<=167.5?.008992:.01122:t[1]<=72?.01073:.005094:t[10]<=21.5?.01606:t[10]<=302.5?-.01138:t[15]<=599.5?-.01053:-.003647:t[0]<=118?t[13]<=3.5?t[0]<=72?t[1]<=118?t[13]<=1e-35?.006195:-.01019:.003392:t[1]<=96?t[10]<=93.5?.006966:-.004154:t[10]<=1622?-.003854:-.006085:t[3]<=1e-35?t[9]<=111.5?t[0]<=72?-.004877:.01099:t[14]<=1721?-.002536:.004627:t[13]<=4.5?t[1]<=118?-.003367:.004236:t[10]<=81.5?-.006639:-.004577:t[9]<=120.5?t[8]<=2136?t[0]<=122.5?t[12]<=96?-.006675:-.0113:-.01092:t[9]<=45.5?-.00783:t[14]<=2407?-.001798:-.009693:t[10]<=125.5?t[8]<=2130?t[14]<=1708?-.008378:-.01104:-.008603:t[0]<=122.5?t[9]<=147.5?-.002919:-.007831:-.01188,n+=t[3]<=1e-35?t[0]<=114?t[15]<=1532?t[0]<=96?t[0]<=48?t[2]<=24?-.008407:-.008457:t[5]<=1.01?-.008371:-.008394:-.007483:t[15]<=1716?t[7]<=1e-35?t[8]<=2037?.01717:-.008411:t[5]<=3.005?-.008396:-.008369:t[4]<=1e-35?t[2]<=24?-.008412:-.008455:t[5]<=4.005?-.008397:-.008379:t[7]<=64.5?t[11]<=3313?-.008756:-.001862:.01269:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[8]<=2024?t[11]<=13960?.01467:.02802:t[8]<=2067?.002241:.01535:t[11]<=78e3?t[5]<=3.835?-.00237:-.008335:t[9]<=238.5?.008141:-.0039:t[2]<=96?t[7]<=63.5?t[5]<=2.315?.01126:.01948:t[13]<=18.5?.00648:.0156:t[5]<=3.355?t[9]<=20.5?.008945:.01567:t[7]<=9.5?.0187:.02368:t[7]<=60.5?t[9]<=26.5?.01617:t[0]<=122.5?t[15]<=4735?6488e-7:-.005549:t[11]<=8076?5463e-7:-.006482:t[2]<=96?t[5]<=2.885?.01161:t[11]<=897.5?.0053:-.002935:t[9]<=100.5?t[8]<=2077?.007139:-.001445:t[0]<=126.5?.009569:-.005764,r+=t[0]<=118?t[1]<=118?t[4]<=1e-35?t[11]<=267800?t[7]<=18.5?-.007969:-.007943:-.00395:t[0]<=96?t[3]<=1e-35?t[5]<=1.01?-.007924:-.007934:t[0]<=48?-.007985:-.007952:t[7]<=41.5?t[1]<=114?-.007985:-.008003:t[13]<=7.5?-.007968:-.007979:t[3]<=1e-35?t[11]<=1457e4?t[7]<=99.5?t[1]<=118?-.007949:-.008069:t[2]<=24?-.007941:.03771:t[7]<=2.5?-.007978:.02561:t[13]<=5.5?t[11]<=1134?.01188:t[11]<=22530?-.008216:-.004659:t[11]<=8995?t[2]<=72?.02018:.04147:t[8]<=2018?-.001834:.01749:t[0]<=122.5?t[5]<=2.085?t[2]<=118?t[7]<=48.5?t[13]<=7.5?.01902:.02691:t[13]<=7.5?.005957:.01897:t[7]<=3.5?.02603:t[8]<=2072?.04153:.03811:t[8]<=2037?t[13]<=7.5?t[5]<=3.165?.01422:.02588:t[8]<=2017?.02149:.03624:t[13]<=14.5?t[12]<=72?.006171:.02375:t[2]<=114?.0248:.01693:t[8]<=2136?t[11]<=6136?.02555:t[5]<=1.995?t[11]<=60990?.03274:.0284:t[7]<=13.5?.03322:.03888:.02262,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[9]<=74.5?t[12]<=72?t[14]<=2243?.01218:.003996:t[14]<=1438?-.009404:-.0017:t[15]<=186.5?t[8]<=2072?.00812:.01341:t[4]<=1e-35?.002014:.01094:t[4]<=1e-35?t[13]<=10.5?t[8]<=2103?-.008607:-2186e-7:-.01016:t[14]<=1441?.008078:t[13]<=12.5?.01147:.01744:t[8]<=21.5?.007191:.01597:t[5]<=2.935?t[14]<=1711?t[12]<=72?t[12]<=1e-35?t[8]<=2079?3673e-8:.003877:t[15]<=358.5?.005447:.013:t[5]<=2.875?t[14]<=1441?-.005863:-.00971:.003355:t[9]<=118.5?t[12]<=72?t[0]<=114?1246e-7:-.005548:t[16]<=942.5?-.008687:.001293:t[0]<=96?t[15]<=340.5?-.002873:-.005892:-.009094:t[14]<=1682?t[0]<=114?t[5]<=3.115?t[15]<=328.5?-.001567:.002637:t[13]<=2.5?.007554:-.001969:t[8]<=2159?t[0]<=122.5?-.005012:-.01045:t[14]<=1441?.008035:-.006067:t[14]<=1947?t[9]<=164.5?t[13]<=4.5?-8818e-7:-.005175:t[14]<=1708?-.006767:-.008469:t[9]<=144.5?t[5]<=3.335?-.005445:-.007908:t[12]<=1e-35?-.008901:-.005748,
i+=t[1]<=96?t[0]<=72?t[1]<=72?t[12]<=72?-.01163:t[0]<=48?.008325:-.01191:t[12]<=72?t[12]<=1e-35?.00561:-.01303:.0144:t[0]<=96?t[5]<=2.855?t[1]<=72?t[12]<=1e-35?.01017:.005914:t[12]<=72?.002642:.01117:t[8]<=37?t[12]<=48?-.007573:.01001:t[10]<=97.5?.008394:.006547:t[7]<=90.5?t[10]<=24.5?-.00687:-.0111:t[8]<=2070?t[15]<=458.5?-.00546:-.01227:t[0]<=114?.00794:-.005097:t[0]<=118?t[6]<=6.5?t[3]<=1e-35?t[0]<=48?t[15]<=164.5?-.008382:-.002109:t[0]<=114?.01227:.004988:t[8]<=2043?t[8]<=2016?-.005823:-.008371:t[12]<=96?-.004994:-.009374:t[0]<=72?t[16]<=224.5?-.01114:t[16]<=409.5?-.00161:-.009262:t[15]<=705.5?t[1]<=96?.01421:.001116:t[10]<=210.5?.00325:-.01002:t[8]<=2130?t[7]<=2.5?-.01041:t[5]<=2.825?-.01056:t[10]<=764.5?-.007096:-.001351:t[5]<=2.905?t[15]<=16.5?.01747:t[15]<=435.5?-.008707:-.005742:t[8]<=2164?t[7]<=6.5?-.009217:-.003264:t[8]<=2170?.009891:-.003462,n+=t[3]<=1e-35?t[14]<=-1e-35?t[13]<=12.5?.0162:t[1]<=96?t[2]<=48?-.008395:-.008413:-.008536:t[1]<=96?t[6]<=1e300?t[4]<=1e-35?t[2]<=24?-.008397:-.00845:t[6]<=1e-35?-.008373:-.008384:t[14]<=1546?t[11]<=336e3?-.008364:-.005535:t[4]<=1e-35?-.008449:-.00837:t[13]<=22.5?t[14]<=1598?t[2]<=48?-.008613:-.001189:t[2]<=114?-.008644:-.006597:.002135:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[2]<=96?t[8]<=2066?-.00813:-.001406:t[8]<=2085?.01009:-.002266:t[8]<=2038?t[6]<=2.5?-9473e-7:.01431:t[8]<=2084?.02059:.008663:t[2]<=96?t[14]<=1711?t[8]<=2042?.01179:.002742:t[1]<=96?.0215:.01203:t[6]<=1e-35?t[1]<=96?.003201:.01956:t[13]<=2.5?.005505:.01588:t[11]<=1269?t[14]<=2034?t[13]<=16.5?t[16]<=8.5?.00117:.01483:-.006948:t[6]<=1e-35?t[16]<=63.5?.01841:.005654:.006401:t[6]<=1.5?t[2]<=118?t[13]<=12.5?.005952:934e-6:t[16]<=1068?-.003095:.006308:t[13]<=29.5?t[13]<=16.5?2725e-8:-.006015:.007892,r+=t[1]<=118?t[1]<=114?t[16]<=17020?-.007863:t[11]<=1457e4?t[5]<=3.255?-.007943:.02583:.02008:t[11]<=411e4?t[2]<=72?t[5]<=1e-35?t[14]<=2548?-.007951:.02699:t[5]<=1.01?-.007791:-.001003:t[4]<=1e-35?t[7]<=5.5?3232e-8:.01879:t[5]<=3.325?-.006127:.002009:t[9]<=61.5?t[5]<=.995?-.006809:t[10]<=18.5?.03823:.01007:t[15]<=1007?t[11]<=599e4?.03362:.02449:t[15]<=1631?.01693:-.00809:t[5]<=2.785?t[2]<=114?t[5]<=2.785?t[5]<=2.665?t[5]<=2.315?.02537:.007362:t[11]<=33300?.03749:.02898:t[14]<=2034?t[9]<=141.5?.005308:.01554:t[16]<=6.5?.006978:.02764:t[7]<=12.5?t[11]<=4875e3?t[11]<=610.5?.01709:.02589:t[16]<=7608?.007155:.02373:t[10]<=367.5?t[2]<=118?.02376:.03483:.04098:t[9]<=149.5?t[10]<=490.5?t[14]<=2243?t[15]<=2443?.01107:.0277:t[7]<=11.5?.01067:.02757:t[5]<=3.055?-.004619:t[11]<=179e3?.02006:.001885:t[16]<=152.5?t[10]<=153.5?.0338:.02079:t[9]<=163.5?.03363:t[7]<=4.5?.0247:.005218,e+=t[0]<=72?t[1]<=72?t[12]<=72?.01555:t[0]<=48?-.003725:.01594:t[9]<=71.5?t[5]<=1.01?t[12]<=72?t[10]<=12.5?.001066:.0124:-.005542:t[13]<=4.5?t[15]<=9804?.01044:1127e-7:t[15]<=8218?.004564:-.004303:t[11]<=7080?t[5]<=1.01?t[10]<=45.5?.004106:.01368:t[9]<=319.5?.001408:.01151:t[12]<=48?t[1]<=72?-.001311:.01018:-.009745:t[5]<=2.935?t[1]<=72?t[9]<=30.5?t[11]<=78e3?t[11]<=3043?-.001536:-.008177:t[11]<=257600?.006202:-.003635:t[15]<=352.5?t[15]<=198.5?-.007718:261e-7:t[11]<=1507e3?-.008883:-.005042:t[0]<=96?t[12]<=72?t[12]<=1e-35?.001643:.0108:t[5]<=2.755?-.008465:-.004695:t[9]<=122.5?t[5]<=2.005?-.005624:-.001425:-.007795:t[9]<=141.5?t[0]<=96?t[13]<=2.5?.006963:t[11]<=1e-35?.009559:-.003328:t[10]<=77.5?t[13]<=6.5?-.002035:-.007497:t[12]<=72?-.002783:-.007818:t[9]<=164.5?t[0]<=96?t[16]<=14170?-.005797:.002237:t[10]<=131.5?-.008333:-.005406:t[10]<=571.5?-.008392:t[15]<=1532?-.008237:5916e-7,i+=t[3]<=1e-35?t[4]<=1e-35?t[2]<=48?t[9]<=89.5?t[7]<=6.5?t[10]<=87.5?-.004956:-.008695:-.01072:t[10]<=446.5?t[8]<=2131?2652e-7:.008174:-.01121:t[8]<=2026?t[8]<=2016?t[9]<=160.5?-.002483:.00751:.007517:t[13]<=9.5?t[8]<=2083?-.008467:-.003029:t[2]<=48?-.001011:.006931:t[2]<=72?t[10]<=2576?t[16]<=10.5?t[8]<=2080?.00244:-7131e-7:t[7]<=35.5?.006523:.003031:t[2]<=48?t[9]<=119.5?-.01042:-.001051:t[16]<=17.5?-.006021:-9206e-7:t[5]<=2.855?t[12]<=72?t[12]<=1e-35?.002718:-.006601:.01028:t[7]<=6.5?t[9]<=141.5?.004816:.008737:t[10]<=25.5?.01082:.006834:t[2]<=96?t[2]<=72?-.00701:t[5]<=3.795?t[13]<=5.5?t[12]<=72?-.001639:.009172:-.005676:t[4]<=1e-35?-.01238:t[7]<=91.5?.002668:.007159:t[10]<=117.5?t[7]<=10.5?t[9]<=170.5?t[8]<=2069?-.007844:-.005008:t[8]<=2010?-.002751:-.008979:t[5]<=3.315?-.007193:-.009665:t[12]<=96?t[16]<=13.5?t[7]<=27.5?-.005765:-.002061:t[8]<=2080?-.007582:-.004313:-.01002,n+=t[3]<=1e-35?t[13]<=11.5?t[4]<=1e-35?t[2]<=24?-.008383:-.008429:t[5]<=2.385?t[5]<=2.375?t[5]<=2.375?-.008373:-.008343:t[15]<=870.5?-.008372:-.00603:-.008377:t[16]<=6.5?t[11]<=2195e3?t[5]<=2.885?t[13]<=29.5?-.0083:-.004266:t[11]<=357.5?.006033:-.007951:.001364:t[15]<=1532?t[4]<=1e-35?-.008434:-.008358:t[15]<=1716?t[4]<=1e-35?.006093:-.008369:t[6]<=18.5?-.008385:-.006919:t[2]<=96?t[5]<=6.5?t[15]<=2134?t[9]<=60.5?t[15]<=561.5?.007959:6286e-7:t[4]<=1e-35?.02185:.009985:t[4]<=1e-35?.02812:t[15]<=9804?.01383:-.001422:t[12]<=72?t[13]<=11.5?t[11]<=3043?.004503:-.001082:t[15]<=4735?.004751:.02209:.02561:t[5]<=3.925?t[16]<=11.5?t[6]<=1.5?t[12]<=24?.007252:.01372:t[5]<=3.025?.003239:-.00255:t[16]<=9231?t[11]<=835.5?.01966:.01062:t[5]<=3.075?-.002262:.01011:t[2]<=118?t[11]<=3917e3?t[11]<=835.5?.01681:.02007:t[5]<=3.99?.01459:-.003465:t[16]<=4664?t[15]<=1907?.009891:.01476:t[9]<=179.5?.002224:.01117,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[5]<=2.435?t[11]<=1457e4?-.007942:t[15]<=2319?-.007999:.02559:t[10]<=587.5?-.007982:.03032:t[15]<=1041?t[9]<=59.5?t[11]<=1574?.02153:3598e-7:t[11]<=1269?.01159:.02692:t[5]<=1.01?t[8]<=2084?-.007093:-.003346:.02783:t[8]<=1e-35?t[3]<=1e-35?-.007944:t[9]<=135.5?.0343:-.006382:t[16]<=17020?t[3]<=1e-35?t[0]<=48?-.007958:-.007921:t[7]<=33.5?-.007987:-.007963:t[8]<=2196?t[9]<=239.5?-.007947:.0136:.02017:t[7]<=4.5?t[8]<=2129?t[9]<=58.5?.01438:t[11]<=160100?t[15]<=103.5?.03374:.02787:t[16]<=342.5?.02137:.0271:t[9]<=165.5?t[9]<=74.5?t[5]<=.995?.02292:.006796:6035e-7:t[5]<=.995?t[16]<=255.5?.01999:.02578:.03346:t[9]<=144.5?t[5]<=2.785?t[8]<=2126?t[11]<=53980?.01941:.0324:.005045:t[5]<=3.325?t[8]<=2025?.02174:.005646:t[10]<=497.5?.02474:.01606:t[8]<=2105?t[11]<=664.5?.0122:t[16]<=479.5?.03082:.02243:t[5]<=3.115?t[15]<=551.5?.00788:.02589:-.00125,e+=t[0]<=72?t[0]<=48?t[13]<=7.5?t[14]<=2049?t[6]<=1e300?t[15]<=2927?.01334:.007835:t[8]<=2029?.003797:.01092:t[4]<=1e-35?t[6]<=6.5?.005771:.01518:t[15]<=504.5?.01105:-.005534:t[6]<=3.5?t[4]<=1e-35?t[9]<=61.5?.005263:-.001002:t[8]<=2002?-.003075:.01269:t[8]<=2023?t[8]<=2015?.01422:-2987e-7:t[14]<=2178?.01336:.004785:t[8]<=21.5?.008274:.01564:t[14]<=1682?t[0]<=96?t[10]<=43.5?t[8]<=205?t[15]<=15.5?.005188:.01743:t[8]<=2031?-.003529:-1396e-7:t[8]<=2082?t[15]<=91.5?.006864:5058e-7:t[8]<=2091?.009806:.003147:t[10]<=83.5?t[11]<=7448e3?-.005653:.002119:t[13]<=3.5?t[15]<=2701?.00377:-.005155:t[11]<=7561?-.006148:-6423e-7:t[0]<=96?t[10]<=45.5?t[14]<=1921?t[13]<=4.5?2893e-7:-.004805:-.007139:t[9]<=75.5?t[6]<=3.5?3562e-8:-.004113:t[14]<=1830?-3478e-7:-.004939:t[10]<=29.5?t[11]<=7.5?971e-6:t[13]<=4.5?-.004725:-.008636:t[9]<=160.5?t[8]<=2171?-.005026:.001028:t[14]<=1741?-.005209:-.009135,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[7]<=42.5?t[10]<=563.5?t[9]<=56.5?.005429:-.005849:t[10]<=1241?.004621:-.004338:t[10]<=177.5?t[16]<=19.5?-.007653:.001452:-.009961:t[3]<=1e-35?t[5]<=2.235?t[6]<=2.5?-.003124:.004016:t[8]<=2047?.002888:.008591:t[15]<=737.5?-.01036:t[9]<=143.5?-.007441:.001812:t[10]<=45.5?t[9]<=141.5?t[8]<=108.5?t[6]<=1e-35?-.00758:.0115:t[6]<=2.5?.007216:.005301:.009686:t[9]<=139.5?t[8]<=2037?t[8]<=2012?.001213:.006904:t[5]<=2.615?-2181e-7:.002314:t[3]<=1e-35?t[8]<=2081?.008107:.004867:t[8]<=2066?.005179:-.007523:t[1]<=118?t[5]<=2.165?t[9]<=71.5?t[6]<=6.5?t[15]<=378.5?-.008359:-.005025:-.01029:t[3]<=1e-35?t[6]<=3.5?.004337:-.007699:-.00527:t[3]<=1e-35?t[4]<=1e-35?t[8]<=2026?.00287:-.003852:t[8]<=2018?.003546:.01184:t[6]<=39.5?t[9]<=120.5?-.004827:-.006555:.01525:t[3]<=1e-35?t[9]<=33.5?.009466:t[9]<=74.5?-.01065:8348e-7:t[9]<=147.5?t[8]<=2149?-.007533:-.003748:-.009906,
n+=t[3]<=1e-35?t[1]<=96?t[7]<=1e-35?t[11]<=336e3?t[8]<=2015?t[8]<=2014?-.008381:-.007851:t[4]<=1e-35?-.00843:-.008351:t[11]<=347800?.00435:t[8]<=2070?-.007399:-.008385:t[10]<=1e-35?t[4]<=1e-35?t[13]<=7.5?-.00838:-.008427:-.008338:t[4]<=1e-35?t[9]<=70.5?-.008378:-.008432:-.008365:t[7]<=51.5?t[7]<=9.5?t[11]<=230.5?-.008658:t[9]<=167.5?-.008548:-.008445:-.006928:.004737:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[11]<=541600?t[13]<=18.5?.00489:-.004093:t[10]<=65.5?.004608:.02082:t[1]<=24?.02855:t[15]<=8997?.009713:-.005917:t[10]<=52.5?t[9]<=135.5?t[13]<=4.5?.008723:.01628:t[11]<=5389e3?.01922:.003967:t[8]<=2027?t[8]<=2016?.0102:.02396:t[9]<=60.5?.006706:.01294:t[10]<=451.5?t[11]<=1269?t[11]<=567.5?t[10]<=292.5?-5835e-7:.009112:t[8]<=2064?.03079:.007784:t[10]<=95.5?t[8]<=2064?-.006896:-5194e-7:t[8]<=2002?.01133:.001355:t[11]<=1678e3?t[8]<=2011?768e-6:t[6]<=3.5?.01524:.002169:t[15]<=799.5?-.007429:.00618,r+=t[1]<=118?t[1]<=114?t[16]<=17020?t[13]<=1e-35?.003795:t[16]<=1761?t[10]<=49.5?-.007385:-.007877:t[16]<=1818?.008445:-.007405:t[11]<=1457e4?t[15]<=9804?t[1]<=96?-.007925:-.007986:.02368:.02013:t[13]<=5.5?t[11]<=1457e4?t[8]<=2003?t[7]<=2.5?.01609:-.007944:t[16]<=104.5?-.007419:-.004337:.01457:t[11]<=5389e3?t[8]<=2067?t[8]<=2065?-1215e-7:.01232:t[16]<=8697?-.00348:.007199:t[1]<=114?t[15]<=458.5?.01697:-.007359:t[8]<=2079?.01934:.03293:t[10]<=424.5?t[13]<=9.5?t[10]<=296.5?t[11]<=449700?t[15]<=174.5?.01405:.02404:t[6]<=1e-35?.01798:.004453:t[6]<=1.5?.005675:-.00726:t[8]<=2150?t[10]<=359.5?t[11]<=1835?.01779:.02406:.03571:t[10]<=32.5?t[16]<=1105?.01892:.03005:t[8]<=2152?-.004644:.01343:t[16]<=1513?t[16]<=1.5?t[6]<=1e-35?t[7]<=5.5?.02048:.01899:.003413:t[15]<=616.5?t[13]<=11.5?-.004559:-.008155:t[10]<=673.5?.01011:-.003378:t[10]<=653.5?.01434:.02881,e+=t[1]<=72?t[2]<=24?t[3]<=1e-35?t[9]<=115.5?t[1]<=1e-35?t[10]<=41.5?.01019:.01362:t[10]<=1160?2815e-7:.01556:t[15]<=272.5?.009272:t[15]<=2075?-.002313:.009206:-.006057:t[11]<=41330?t[1]<=48?t[3]<=1e-35?t[12]<=72?.006635:-.005255:t[1]<=24?-.008917:.005944:t[10]<=24.5?t[14]<=822?-.008774:.01291:t[8]<=2052?.009764:.005281:t[10]<=1241?t[15]<=82.5?.01521:t[9]<=40.5?5635e-7:-.003699:t[3]<=1e-35?t[9]<=62.5?.006662:.001118:t[1]<=1e-35?-.007888:.007992:t[2]<=72?t[10]<=2988?t[1]<=114?t[14]<=1953?t[15]<=3135?.00506:-.002218:-.002403:t[12]<=1e-35?-.006892:.007554:t[3]<=1e-35?t[2]<=24?.01778:t[9]<=72.5?.01139:.004057:t[14]<=1947?.005081:-.004448:t[10]<=35.5?t[2]<=122.5?t[11]<=1e-35?.01168:t[10]<=34.5?-.005286:-.009194:t[3]<=1e-35?t[12]<=1e-35?-.004003:.009992:-.007946:t[3]<=1e-35?t[12]<=72?t[9]<=141.5?.002878:-.002797:-.007025:t[14]<=1899?t[12]<=72?-8687e-7:-.008505:t[9]<=123.5?-.004663:-.008255,i+=t[1]<=96?t[0]<=72?t[12]<=72?t[1]<=72?t[4]<=1e-35?t[7]<=9.5?.001203:-.01174:t[14]<=505?-.005896:-.01154:t[12]<=1e-35?.005835:-.01292:t[7]<=26.5?.008046:t[16]<=479.5?-.01153:-.001952:t[0]<=96?t[14]<=1687?t[1]<=72?t[7]<=60.5?.01018:.00582:t[5]<=1.01?.005286:3613e-7:t[5]<=2.935?t[1]<=72?.01114:.004557:t[14]<=1977?.008099:.01016:t[7]<=97.5?t[10]<=85.5?-.0048:t[10]<=299.5?-.01218:-.008826:t[10]<=722.5?.00199:-.00963:t[0]<=118?t[5]<=2.235?t[9]<=71.5?t[7]<=6.5?t[1]<=118?-.006294:.004978:t[16]<=83.5?-.01056:-.007362:t[12]<=1e-35?t[15]<=268.5?-.005219:.001428:t[10]<=95.5?-.004823:-.01145:t[1]<=96?t[0]<=72?t[15]<=249.5?-.005965:-.001312:.01022:t[5]<=3.365?t[16]<=19.5?-.001643:-.005323:t[0]<=114?-.006652:-.004968:t[9]<=147.5?t[0]<=122.5?t[10]<=822.5?t[14]<=2196?-.006242:-.008295:t[9]<=26.5?-.007219:.002107:t[5]<=2.245?t[15]<=1532?-.006082:-.01223:-.01141:t[7]<=34.5?-.01043:-.007752,n+=t[0]<=96?t[0]<=48?t[2]<=72?t[9]<=300.5?t[9]<=70.5?t[10]<=12.5?7578e-8:-.007667:t[16]<=210.5?-.007367:-4482e-7:.01222:t[10]<=938.5?t[13]<=4.5?t[8]<=2090?-.007482:792e-6:t[8]<=2071?-374e-6:-.004409:.01513:t[5]<=3.175?t[2]<=96?t[16]<=155600?-.008228:.002461:t[11]<=29e4?t[8]<=2004?.005462:-.008657:t[9]<=120.5?.02264:-.008702:t[16]<=152.5?t[5]<=3.375?.00163:-.008721:.02182:t[0]<=118?t[2]<=96?t[10]<=57.5?t[13]<=15.5?t[5]<=3.645?.004908:.02173:t[2]<=72?.01859:.00942:t[15]<=1864?t[8]<=2041?.01703:.008006:t[9]<=182.5?.01679:.02775:t[5]<=3.435?t[16]<=12.5?t[10]<=115.5?.01404:.006848:t[8]<=2075?.01871:.01149:t[2]<=96?t[13]<=5.5?.01068:.01792:t[10]<=50.5?.02225:.01872:t[5]<=2.325?t[8]<=2071?-.006065:t[2]<=72?.007779:-.004898:t[11]<=961.5?t[11]<=567.5?t[5]<=3.195?-448e-6:.01028:t[11]<=771.5?.02587:.00628:t[2]<=96?t[9]<=30.5?.02242:-6897e-7:t[10]<=153.5?-6256e-7:.004977,r+=t[0]<=118?t[0]<=48?t[3]<=1e-35?t[11]<=1457e4?t[2]<=24?t[9]<=70.5?-.007926:-.007948:t[12]<=1e-35?-.007948:-.007976:t[7]<=9.5?t[10]<=12.5?-.007964:-.008002:.0292:t[15]<=1041?t[16]<=4.5?t[8]<=2065?-.005088:.01698:t[16]<=51.5?.03818:.01568:t[9]<=156.5?t[15]<=7560?-.005131:.008151:t[11]<=418200?.001973:.03598:t[12]<=125.5?t[8]<=1e-35?t[9]<=60.5?.02007:t[0]<=114?-.007936:-.00821:t[16]<=17020?t[3]<=1e-35?-.007913:-.007968:t[8]<=2196?-.006132:.02225:.02306:t[10]<=403.5?t[7]<=42.5?t[9]<=152.5?t[8]<=2126?t[9]<=32.5?.00643:.02323:t[16]<=104.5?-.003332:.01519:t[10]<=123.5?t[8]<=2071?.03206:.02636:t[16]<=130.5?.02083:.02637:t[2]<=96?t[15]<=513.5?t[10]<=159.5?-7725e-7:.01275:t[16]<=548.5?.02645:.006977:t[10]<=189.5?t[11]<=324.5?.002969:.02382:t[10]<=371.5?.009495:.03279:t[9]<=164.5?t[0]<=122.5?t[15]<=180.5?.02325:t[16]<=21.5?.009837:-.004697:.02839:t[11]<=75240?.006517:t[11]<=632400?.03111:.01487,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.003414:.01505:t[2]<=72?t[9]<=89.5?t[14]<=2407?t[9]<=55.5?.01369:.01095:t[15]<=599.5?.005785:-.001438:t[15]<=288.5?t[16]<=19.5?.001819:.0143:t[16]<=155.5?.004621:-.003178:t[2]<=72?t[9]<=109.5?t[8]<=2030?.001937:.007311:t[1]<=72?-3626e-7:.0176:-.00687:t[2]<=72?t[5]<=6.5?t[1]<=72?t[13]<=22.5?t[14]<=1470?-.005378:-.008741:t[14]<=2034?-.002981:-.009306:t[5]<=1.125?t[9]<=18.5?4056e-7:-.006234:t[0]<=114?.004061:-.00439:t[14]<=1947?t[2]<=24?t[15]<=3135?.01806:.003085:t[13]<=5.5?.01118:.006309:t[0]<=96?t[9]<=166.5?.007111:-.003015:-.003915:t[5]<=3.125?t[14]<=1610?t[1]<=72?t[5]<=2.705?-.001241:-.009966:t[0]<=114?.003253:-.002632:t[13]<=5.5?t[5]<=2.865?.001108:-.00447:t[14]<=1947?-.002798:-.00623:t[2]<=72?t[13]<=5.5?t[1]<=72?-.01057:6114e-7:t[0]<=96?-.005839:-.00858:t[5]<=4.165?t[14]<=2173?-.005282:-.007875:t[8]<=19?.01145:-.009286,i+=t[3]<=1e-35?t[0]<=72?t[7]<=5.5?t[0]<=48?t[9]<=100.5?t[2]<=72?-.004862:.006706:t[4]<=1e-35?.003121:-.009482:-.01125:t[16]<=534.5?t[14]<=1e-35?.007207:-.0104:t[2]<=72?-.00776:t[0]<=48?.009328:-.01182:t[2]<=72?t[10]<=5265?t[12]<=1e-35?t[13]<=42?.007308:.003653:t[12]<=72?-.003827:.00928:t[14]<=1698?t[2]<=48?-.01156:-.005809:t[7]<=1.5?.008912:-.003659:t[10]<=25.5?t[7]<=3.5?t[9]<=164.5?.006976:.01095:.01172:t[14]<=1610?t[12]<=72?.001359:.007894:t[12]<=72?.005413:.01135:t[2]<=96?t[2]<=72?t[16]<=1e-35?-.008109:t[16]<=1283?t[9]<=57.5?.005329:-.004917:-.008298:t[0]<=72?-.01171:t[10]<=12.5?t[9]<=115.5?.007437:.002065:t[7]<=55.5?-.004866:.001874:t[0]<=96?t[0]<=72?t[4]<=1e-35?t[13]<=29.5?-.0064:.002377:-.01076:t[16]<=81.5?t[10]<=505.5?.0037:.0114:.002276:t[10]<=36.5?t[7]<=5.5?t[0]<=118?-.006351:-.00937:-.01073:t[12]<=96?t[0]<=122.5?-.005048:-.01062:-.01029,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[15]<=1532?t[0]<=48?t[2]<=24?-.008359:-.008415:t[6]<=1e-35?-.008333:-.008345:t[15]<=1716?t[1]<=1e-35?-.002418:-.008342:t[1]<=96?-.008342:-.008396:-.005927:t[7]<=68.5?t[9]<=61.5?-.008641:-.002796:.008945:t[0]<=118?t[0]<=96?t[1]<=96?t[9]<=30.5?.003569:t[6]<=1e-35?-.008079:-.005:t[1]<=118?.02947:t[8]<=2024?.01851:.008248:t[2]<=96?t[1]<=96?t[7]<=50.5?.02673:.01408:t[7]<=26.5?.01364:.007283:t[6]<=1e-35?t[1]<=96?.02702:.01764:t[1]<=96?.02327:.009291:t[1]<=114?t[6]<=1e-35?.007296:.02465:t[7]<=1.5?t[13]<=8.5?t[8]<=2105?.005166:-.005385:t[13]<=26?-.002788:.003452:t[15]<=63.5?t[9]<=120.5?.02583:.00773:t[8]<=2037?-.002572:.002756,
r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[10]<=1e-35?t[0]<=72?-.007921:-.007902:-.007915:t[1]<=114||t[9]<=29.5?-.00796:-.007986:t[8]<=2159?t[0]<=96?-.007923:-.008004:.01907:t[13]<=5.5?t[11]<=1457e4?t[13]<=2.5?t[8]<=2071?-.008011:.001857:t[10]<=13.5?-.004881:-.007824:.01636:t[2]<=72?t[6]<=1.5?t[15]<=1041?.003287:-.004245:t[15]<=8997?-.00763:.01499:t[11]<=6351?.02711:t[9]<=61.5?-.006045:.01202:t[13]<=9.5?t[8]<=2028?t[10]<=169.5?t[2]<=96?.03648:.02526:t[2]<=118?t[10]<=196.5?.01104:.02229:.03345:t[10]<=77.5?t[2]<=114?t[13]<=7.5?.01114:.02365:t[10]<=45.5?.01196:.02805:t[9]<=164.5?t[15]<=2199?-3053e-7:.01548:t[2]<=96?-.001952:.0153:t[8]<=2150?t[11]<=431.5?t[15]<=370.5?.01778:.001896:t[1]<=118?t[11]<=138100?.04621:.02389:t[10]<=597.5?.02381:.01485:t[6]<=1e-35?t[8]<=2181?t[8]<=2163?.01949:.002156:t[9]<=144.5?.03687:.02569:t[10]<=175.5?.01314:-.007127,e+=t[0]<=72?t[1]<=72?t[0]<=48?t[12]<=72?t[11]<=501500?.01387:.004478:-.003093:.01513:t[2]<=72?t[9]<=89.5?t[7]<=6.5?t[5]<=1.425?.01035:9709e-9:t[15]<=7560?.01341:.003799:t[6]<=3.5?t[15]<=466.5?.005305:-.002472:.01235:t[2]<=72?t[9]<=109.5?t[13]<=7.5?.008354:.003931:t[1]<=72?-3552e-7:.0173:t[12]<=24?-.005457:-.009465:t[2]<=72?t[5]<=6.5?t[1]<=72?t[13]<=22.5?t[15]<=384.5?-.005423:-.008587:t[7]<=36.5?-.001714:-.005477:t[7]<=21.5?t[5]<=2.105?-.004707:.001285:t[9]<=88.5?.005706:-.001926:t[9]<=119.5?t[2]<=48?t[7]<=98.5?.01257:.01782:t[1]<=96?.009336:.002498:t[7]<=4.5?-.007184:t[11]<=2573e3?.002708:.01445:t[5]<=3.125?t[9]<=139.5?t[12]<=72?t[1]<=72?-.007371:.00117:-.007628:t[0]<=96?t[1]<=72?-.009837:-.003424:t[7]<=98.5?-.007569:-.001586:t[6]<=1e-35?t[11]<=1e-35?.007399:t[7]<=4.5?-.006268:-.009188:t[13]<=5.5?t[1]<=72?-.01052:-2783e-7:t[9]<=147.5?-.005503:-.0083,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[7]<=11.5?t[3]<=1e-35?t[13]<=4.5?.006474:-.00193:-.01035:t[5]<=2.645?-.008854:t[15]<=318.5?-.008335:212e-8:t[3]<=1e-35?t[6]<=2.5?t[5]<=2.765?-5268e-7:.006435:t[12]<=1e-35?.007514:8748e-7:t[15]<=777.5?-.009625:t[9]<=143.5?-.007277:.002784:t[2]<=72?t[5]<=2.995?t[7]<=17.5?t[5]<=2.115?.007156:.001749:t[9]<=82.5?-.001073:.004473:t[9]<=72.5?t[2]<=48?-.00884:-.004371:8978e-7:t[10]<=24.5?t[7]<=2.5?t[9]<=164.5?.006034:.01055:.01146:t[12]<=72?t[13]<=9.5?.001296:.005196:.01008:t[2]<=72?t[9]<=65.5?t[9]<=55.5?t[5]<=3.075?-.009778:.001892:-.006896:t[7]<=4.5?t[1]<=118?.001909:-.009087:-.00559:t[2]<=96?t[5]<=1.01?t[12]<=96?t[3]<=1e-35?.01012:.003825:-.00936:t[1]<=96?t[6]<=1e-35?-.002682:.008999:t[7]<=48.5?-.005168:-1327e-7:t[3]<=1e-35?t[9]<=100.5?t[13]<=6.5?-.00551:-9729e-7:.00315:t[5]<=3.565?t[12]<=96?-.004754:-.01071:t[7]<=26.5?-.007443:-.01052,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[14]<=1452?t[14]<=1441?t[13]<=15.5?-.008342:-.008264:.004273:t[0]<=48?t[2]<=24?-.008353:-.008407:t[6]<=1e-35?-.008324:-.008337:-.005902:t[7]<=68.5?t[11]<=431.5?-.008785:-.002906:.008868:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[7]<=53.5?t[8]<=2024?.01612:.008204:.02716:t[0]<=72?t[12]<=1e-35?-.008434:-.002746:t[11]<=199300?-.004384:.003605:t[2]<=96?t[7]<=26.5?t[13]<=29.5?.01333:.02087:t[14]<=1920?.004364:.01062:t[6]<=1e-35?t[7]<=77.5?.01647:.01995:t[12]<=96?.01028:.02336:t[7]<=3.5?t[6]<=1e-35?t[13]<=8.5?t[8]<=2079?.00761:-.002892:t[11]<=2433?.003574:-.003089:.008558:t[13]<=12.5?t[8]<=2030?t[11]<=154600?.001281:-.004596:t[11]<=771.5?.01449:.005472:t[7]<=90.5?t[6]<=2.5?-.001041:-.006019:t[14]<=1698?-.001963:.003411,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[3]<=1e-35?t[10]<=1e-35?-.007898:-.00791:t[0]<=48?-.007973:-.007926:t[1]<=114?t[2]<=118?-.007952:-.00797:t[9]<=29.5?-.007957:-.007982:t[16]<=17020?t[3]<=1e-35?t[11]<=1669e4?-.007947:-.007909:-.007996:.01022:t[3]<=1e-35?t[11]<=1457e4?t[10]<=916.5?t[1]<=118?-.00793:-.008074:t[16]<=2184?-.00794:.03442:t[6]<=2.5?t[14]<=1920?-.007968:-.00799:.02402:t[9]<=294.5?t[0]<=114?t[14]<=1927?.01529:.02682:-.007353:t[11]<=1868e3?t[11]<=25820?-.008332:-.00498:.01033:t[9]<=149.5?t[10]<=77.5?t[2]<=114?t[10]<=14.5?t[14]<=2034?.005208:.01938:t[11]<=7834?.02791:.01902:t[16]<=149.5?t[10]<=47.5?.02543:.03614:t[14]<=2178?.01723:.02651:t[0]<=122.5?t[9]<=143.5?t[6]<=21.5?.01381:.02997:-.004814:t[16]<=2184?.02148:.03049:t[1]<=118?.03328:t[0]<=122.5?t[10]<=125.5?t[16]<=238.5?.02782:.02167:t[11]<=292.5?.005116:.02168:.02808,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.003442:t[12]<=72?t[13]<=2.5?.008776:.01494:t[7]<=15.5?-.003259:.01548:t[3]<=1e-35?t[2]<=72?t[14]<=2548?t[7]<=15.5?.01081:.01377:t[6]<=3.5?-2585e-7:.01122:t[2]<=72?t[12]<=1e-35?.006178:.01821:t[14]<=1494?-.009341:-.002168:t[12]<=1e-35?-.00887:-.005521:t[2]<=72?t[1]<=72?t[13]<=22.5?t[12]<=1e-35?t[6]<=1.5?-.006218:-.008734:-.002513:t[6]<=1e-35?t[7]<=17.5?-.001747:.0107:t[14]<=1921?-.002022:-.009386:t[7]<=14.5?t[14]<=1598?t[1]<=96?.004635:-.002583:t[13]<=7.5?-9234e-7:-.005744:t[3]<=1e-35?t[2]<=48?.01172:.005855:t[14]<=1947?.002759:-.00383:t[14]<=1610?t[6]<=1e-35?t[7]<=67.5?t[1]<=114?-3479e-7:-.006481:t[13]<=6.5?-2446e-7:-.005851:t[1]<=72?t[7]<=92.5?-.009202:-.004479:t[0]<=118?.005318:-.002926:t[3]<=1e-35?t[6]<=1e-35?t[14]<=2146?-.004442:-.006796:t[1]<=72?-.007915:.00109:t[6]<=1e-35?t[11]<=1e-35?.001754:-.00799:t[0]<=114?-.002957:-.005864,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[13]<=10.5?t[14]<=1090?.01083:t[8]<=2052?-.005167:9449e-7:t[14]<=813?.00527:t[5]<=2.645?-.008111:-.003939:t[3]<=1e-35?t[6]<=2.5?t[5]<=2.245?-.003317:.003507:t[13]<=22.5?.008875:.005049:t[10]<=722.5?t[6]<=7.5?-.006962:-1651e-7:-.01199:t[10]<=44.5?t[14]<=1682?t[8]<=2075?t[8]<=68?-.01081:.006123:t[5]<=1.425?.003821:-.002411:t[13]<=4.5?t[5]<=1.995?.004666:-.006928:t[9]<=167.5?.008386:.01057:t[12]<=72?t[14]<=1799?t[8]<=2083?.00199:-.002309:t[3]<=1e-35?.004307:-.002045:t[5]<=3.815?.01005:-4881e-7:t[6]<=16.5?t[3]<=1e-35?t[9]<=74.5?t[4]<=1e-35?t[8]<=2027?-.001768:-.006521:t[12]<=1e-35?.006161:-.008386:t[14]<=1598?t[1]<=114?-.001733:-.01102:t[4]<=1e-35?.002659:.009763:t[1]<=118?t[12]<=96?t[8]<=2082?-.005714:-.003982:t[1]<=114?-.01078:-.006498:t[9]<=147.5?t[14]<=2463?-.005749:-.008833:t[10]<=175.5?-.009901:-.007366:t[5]<=2.935?t[13]<=15.5?-.0109:-.006579:.003371,n+=t[0]<=96?t[0]<=48?t[6]<=1e-35?t[9]<=58.5?t[14]<=2196?-.007406:t[8]<=2096?-.00716:.01557:t[7]<=51.5?t[9]<=319.5?-.002608:.007599:t[4]<=1e-35?.01265:-8435e-7:t[12]<=96?t[9]<=300.5?t[14]<=1721?-.008206:-.006278:.00469:.01387:t[9]<=15.5?-.001343:t[8]<=2022?t[10]<=167.5?-.005835:-.007708:-.00807:t[0]<=118?t[14]<=1641?t[10]<=61.5?t[7]<=98.5?t[11]<=292.5?.02086:.01378:t[8]<=2052?.01636:.005061:t[8]<=2025?t[8]<=2016?.002023:.0227:t[12]<=72?.002618:.01264:t[12]<=96?t[10]<=167.5?t[9]<=121.5?.01494:.01796:t[7]<=73.5?.015:.008994:t[9]<=161.5?t[11]<=18510?.01271:.02256:t[11]<=758900?.02493:.01747:t[9]<=59.5?t[8]<=2030?t[7]<=93.5?t[10]<=159.5?-.005815:.001847:t[8]<=2023?.01462:-.006286:t[9]<=57.5?t[6]<=4.5?.005195:.01987:.01743:t[8]<=2066?t[11]<=1574?t[9]<=175.5?-6805e-7:.01606:t[9]<=312.5?-.003472:.003503:t[7]<=3.5?t[0]<=122.5?4405e-8:-.007505:t[8]<=2082?.007342:.001454,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[11]<=1457e4?t[13]<=7.5?-.007914:t[5]<=1.01?-.007928:-.007947:t[8]<=2098?-.008:.02683:t[13]<=5.5?-.007451:t[8]<=2068?t[8]<=2024?.01255:.02842:t[8]<=2109?.005088:.02313:t[16]<=17020?t[8]<=1e-35?t[10]<=1053?t[9]<=61.5?-.007945:-.004568:.02564:t[0]<=1e-35?t[3]<=1e-35?-.007936:-.005726:t[3]<=1e-35?-.007902:-.007958:t[3]<=1e-35?t[11]<=1457e4?-.007916:-.007981:t[0]<=96?.04108:-.007988:t[9]<=149.5?t[5]<=2.935?t[7]<=21.5?t[8]<=2128?t[9]<=58.5?.01014:.02355:t[9]<=56.5?.02939:.007946:t[0]<=125.5?t[5]<=2.665?.003269:.01636:t[10]<=117.5?.01145:.0343:t[5]<=3.375?t[10]<=420.5?t[8]<=2027?.02596:.007263:t[11]<=1596e3?-.004891:.006772:t[8]<=2096?t[8]<=2024?.02756:.006273:t[11]<=632400?.03142:.01337:t[11]<=431.5?.004858:t[8]<=2105?t[10]<=257.5?t[9]<=167.5?.03275:.02597:t[16]<=130.5?.01931:.02461:t[7]<=3.5?t[13]<=18.5?.01838:.02592:t[8]<=2196?.01158:.02507,
e+=t[0]<=72?t[1]<=72?t[12]<=72?.01461:t[7]<=15.5?-.006829:.01532:t[2]<=72?t[9]<=74.5?t[7]<=6.5?t[8]<=2025?.007548:.01046:t[5]<=1.01?.0134:.00624:t[15]<=272.5?t[16]<=16.5?.001531:.01273:t[16]<=152.5?.005441:-.002125:t[2]<=72?t[8]<=2029?t[8]<=2016?.003998:-.003944:t[9]<=74.5?.007305:.001764:t[8]<=2069?-.008123:t[8]<=2093?.003191:-.008209:t[2]<=72?t[5]<=6.5?t[1]<=72?t[9]<=1e-35?t[7]<=35.5?-1868e-7:-.004862:t[12]<=1e-35?-.007902:-.002485:t[7]<=21.5?t[8]<=2076?-.004528:.001061:t[0]<=114?.004926:-.003504:t[0]<=96?t[2]<=48?t[9]<=119.5?.01503:.005731:t[9]<=72.5?.009005:.002298:t[9]<=59.5?t[8]<=2161?.006908:-.002929:-647e-7:t[5]<=3.105?t[12]<=72?t[1]<=72?-.007959:t[0]<=114?.001169:-.004544:t[9]<=120.5?t[5]<=2.245?-.01022:-.004056:-.009018:t[7]<=10.5?t[9]<=149.5?t[8]<=2073?-.006231:-.003406:-.008159:t[5]<=3.435?t[15]<=59.5?.007713:-.005231:t[8]<=19?.01137:-.009187,i+=t[1]<=96?t[0]<=72?t[1]<=72?t[11]<=1507e3?t[0]<=48?t[5]<=2.195?-.01138:-.005705:-.0114:t[1]<=48?.007338:-.01148:t[15]<=571.5?.006439:t[9]<=182.5?-.01174:.002389:t[0]<=96?t[5]<=1.01?t[9]<=61.5?t[11]<=1e-35?-.007373:.006985:t[9]<=167.5?.008963:.0106:t[1]<=72?t[9]<=20.5?.007681:.01063:t[9]<=139.5?.002339:.006631:t[6]<=8.5?t[1]<=72?t[11]<=144300?-.009631:-.001978:t[5]<=3.525?-.0118:-.008052:-.001482:t[0]<=118?t[6]<=16.5?t[15]<=8218?t[13]<=7.5?t[4]<=1e-35?-.006932:-.004238:t[1]<=118?-.005276:-.001757:t[6]<=1e-35?t[15]<=13680?.003345:-.004847:-.00766:t[5]<=2.935?t[13]<=15.5?-.01084:t[6]<=58.5?-.003331:-.01017:.00627:t[9]<=147.5?t[15]<=378.5?t[6]<=1e-35?t[5]<=2.655?-.005215:-.008928:t[15]<=70.5?-.004357:-.009664:t[15]<=513.5?t[11]<=2020?.01271:-.003947:t[0]<=125.5?-.005616:-.01052:t[7]<=34.5?t[15]<=233.5?-.0113:-.009537:t[15]<=790.5?t[6]<=1e-35?-.007082:-.01188:t[16]<=5.5?.009256:-.005463,n+=t[0]<=96?t[1]<=96?t[1]<=1e-35?t[2]<=48?t[9]<=300.5?t[9]<=63.5?-.007723:-.004654:.01008:t[7]<=56.5?t[9]<=301.5?-.002733:.004951:.01303:t[5]<=3.825?t[5]<=3.355?-.008214:t[8]<=2070?-.008704:.01017:t[7]<=20.5?.02471:-.008582:t[1]<=118?.02847:t[0]<=72?t[15]<=825.5?-.008539:.001716:.01192:t[0]<=118?t[2]<=96?t[7]<=71.5?t[1]<=96?t[15]<=1386?.02288:.02817:t[8]<=2042?.01638:.008438:t[1]<=118?t[10]<=283.5?.0126:.005057:-.009054:t[5]<=3.355?t[1]<=96?t[7]<=23.5?.02574:.01906:t[9]<=143.5?.007682:.01547:t[7]<=10.5?t[9]<=135.5?.01342:.01718:t[10]<=183.5?.02067:.01654:t[9]<=59.5?t[8]<=2030?t[15]<=825.5?t[10]<=185.5?-.001847:.008643:t[5]<=2.755?-.005313:-.008866:t[1]<=118?t[5]<=3.505?.0276:.006084:t[5]<=2.885?152e-7:.007398:t[8]<=2066?t[7]<=35.5?t[9]<=170.5?-.004626:791e-6:t[5]<=3.065?-7453e-7:.01008:t[7]<=3.5?t[15]<=1024?.001029:-.004071:t[8]<=2089?.006868:.00126,r+=t[0]<=118?t[1]<=118?t[8]<=2198?t[0]<=96?t[0]<=48?t[8]<=2018?-.007167:-.007918:t[3]<=1e-35?-.007897:-.007919:t[1]<=114?t[7]<=41.5?-.007956:-.007941:t[13]<=34?-.007974:-.007949:t[8]<=2199?t[2]<=114?-.007924:.03488:t[0]<=96?-.0079:-.007954:t[3]<=1e-35?t[8]<=2158?t[1]<=118?t[2]<=24?-.007911:-.007937:t[13]<=11.5?-.008031:-.008109:t[15]<=3135?-.007925:.009502:t[13]<=9.5?t[8]<=2019?.01595:t[15]<=790.5?-.004292:.00572:t[15]<=1041?t[13]<=20.5?.0242:.01107:t[8]<=2067?.01118:-.006425:t[13]<=7.5?t[8]<=2026?t[7]<=93.5?t[13]<=1.5?t[2]<=96?.01499:.0271:.0152:t[8]<=2020?.001661:.01505:t[15]<=3699?t[6]<=4.5?t[2]<=96?.008791:.01593:-.001:-.00592:t[8]<=2128?t[7]<=95.5?t[1]<=118?.03294:t[8]<=2002?.009171:.02159:t[12]<=1e-35?t[6]<=1e-35?.0129:.02358:.001737:t[6]<=1e-35?t[15]<=1214?t[8]<=2181?.01256:.02451:t[14]<=2034?.01901:.02905:t[15]<=634.5?.0142:-.005068,e+=t[0]<=72?t[1]<=72?t[0]<=48?t[7]<=25.5?t[5]<=2.195?t[4]<=1e-35?.004909:.0144:t[2]<=72?-.005758:.01574:.01505:.01464:t[3]<=1e-35?t[2]<=72?t[7]<=6.5?t[15]<=239.5?.01184:.008146:t[5]<=2.355?.01307:-3722e-8:t[2]<=114?t[16]<=2817?-.001921:-.01019:t[15]<=272.5?.009034:.005668:t[1]<=72?t[11]<=34.5?-.001:-.008758:8487e-7:t[2]<=72?t[5]<=5.165?t[1]<=72?t[16]<=185.5?t[1]<=24?-.001484:-.005619:-.00776:t[7]<=4.5?t[3]<=1e-35?-.001779:-.007503:t[7]<=96.5?.001433:.00693:t[3]<=1e-35?t[2]<=24?t[15]<=763.5?.01841:.01052:t[16]<=28.5?.01061:.005726:t[16]<=8.5?t[11]<=19290?.001486:.01161:t[7]<=98.5?-.002614:.006613:t[5]<=3.125?t[1]<=72?t[15]<=749.5?t[15]<=481.5?-.00729:-.00247:-.008888:t[0]<=114?t[5]<=2.765?.00184:-.001867:t[1]<=114?-.008867:-.004388:t[6]<=1e-35?t[11]<=1e-35?.005946:t[7]<=10.5?-.00694:-.009139:t[3]<=1e-35?t[1]<=72?-.009616:-.003944:t[5]<=3.355?-.003488:-.007679,i+=t[1]<=96?t[1]<=72?t[5]<=2.165?t[13]<=10.5?t[7]<=19.5?t[1]<=48?-.006367:.004966:-.006682:t[7]<=28.5?t[15]<=3503?-.003452:-.01105:-.009219:t[3]<=1e-35?t[15]<=82.5?-.005638:t[16]<=185.5?.003208:.007412:t[15]<=737.5?-.01044:t[7]<=97.5?-.00453:.005608:t[2]<=72?t[5]<=2.915?t[7]<=27.5?.004826:-4713e-8:t[2]<=24?-.01042:t[9]<=62.5?-.004565:.001621:t[5]<=1.01?t[7]<=4.5?t[9]<=161.5?.005889:.00998:.01122:t[12]<=72?t[12]<=1e-35?.002994:-.005444:.01018:t[2]<=72?t[9]<=65.5?t[7]<=6.5?t[10]<=59.5?t[15]<=5005?-.005261:.004855:-.008233:t[5]<=1.125?-.01001:t[2]<=48?-3704e-7:-.007532:t[3]<=1e-35?t[15]<=272.5?-.006301:t[10]<=299.5?.006079:-.005369:-.005713:t[2]<=96?t[10]<=3708?t[3]<=1e-35?.005122:t[7]<=66.5?-.007188:.001282:t[13]<=1.5?.009322:t[3]<=1e-35?.01073:.00232:t[3]<=1e-35?t[13]<=6.5?-.005019:t[15]<=7560?-5522e-7:.004901:t[5]<=3.435?t[1]<=118?-.003889:-.006685:t[7]<=5.5?-.007344:-.009854,n+=t[3]<=1e-35?t[0]<=114?t[9]<=144.5?t[0]<=96?t[0]<=48?t[14]<=1281?-.008291:-.008349:t[10]<=1e-35?-.008286:-.008314:-.007467:t[14]<=1537?t[4]<=1e-35?t[9]<=147.5?.01432:-.008404:t[10]<=22.5?-.008295:-.008313:t[4]<=1e-35?t[9]<=301.5?-.008405:-.008441:t[10]<=22.5?-.008282:-.008314:t[9]<=64.5?-.007356:.01213:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[9]<=59.5?.02822:t[9]<=300.5?.009971:.02465:t[10]<=54.5?t[2]<=1e-35?-.00226:-.008347:t[8]<=2072?.00392:-.005255:t[2]<=96?t[10]<=34.5?t[14]<=2173?.003586:.01261:t[15]<=1864?.01131:.02091:t[10]<=1837?t[12]<=96?.01134:.0211:t[2]<=96?.01585:.02007:t[13]<=7.5?t[15]<=397.5?t[10]<=192.5?t[10]<=119.5?.009259:.001767:t[14]<=1698?.02235:.007933:t[10]<=113.5?-.006521:t[8]<=2006?-.005545:.00336:t[15]<=2503?t[9]<=256.5?t[0]<=122.5?.001503:-.003401:t[8]<=2021?.002545:-.004509:t[14]<=1708?t[8]<=2075?-.004389:.007211:t[10]<=11.5?-.003994:-.00858,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[4]<=1e-35?t[14]<=1708?-.003868:-.007933:t[0]<=96?t[10]<=1e-35?-.007887:-.0079:t[1]<=114?-.007945:-.007964:t[6]<=12.5?t[3]<=1e-35?t[11]<=1669e4?-.007952:-.007904:-.007966:.006503:t[3]<=1e-35?t[11]<=1457e4?t[10]<=916.5?t[1]<=118?-.007918:-.00806:t[10]<=1023?.02871:-.007936:t[6]<=2.5?t[14]<=1920?-.007963:-.007985:.02616:t[13]<=5.5?t[10]<=13.5?t[11]<=87070?.01169:-.006903:-.0075:t[12]<=48?t[14]<=1927?.009326:.02081:t[10]<=490.5?.03441:.008659:t[13]<=12.5?t[12]<=118?t[10]<=331.5?t[0]<=126.5?t[14]<=2034?.01483:.01947:.02674:t[14]<=1678?t[13]<=11.5?3861e-7:-.006913:t[6]<=1e-35?.02029:.008142:.02962:t[0]<=122.5?t[14]<=1708?t[6]<=24.5?t[14]<=1495?.01841:.009683:.02181:t[10]<=17.5?.02945:t[10]<=30.5?.01086:.0215:t[10]<=47.5?.02376:.02913,e+=t[1]<=72?t[2]<=24?t[9]<=89.5?t[4]<=1e-35?t[7]<=6.5?t[8]<=2033?.00679:.01056:.01293:t[6]<=1.5?t[11]<=116300?.01349:7318e-7:-.003067:t[15]<=272.5?.009589:t[11]<=5912?.007012:t[15]<=1631?-.006247:.003093:t[6]<=2.5?t[1]<=48?t[12]<=72?t[13]<=7.5?.007215:.002359:t[15]<=161.5?-477e-6:-.009441:t[13]<=4.5?t[7]<=13.5?-.004148:.008753:t[11]<=193100?.01135:.004653:t[4]<=1e-35?t[2]<=72?.01253:-.007155:t[15]<=88.5?.005611:t[8]<=2052?-5792e-7:-.005072:t[2]<=72?t[7]<=17.5?t[1]<=96?t[8]<=2057?-.001988:t[2]<=48?-9831e-7:.008097:t[12]<=1e-35?-.006458:.004695:t[9]<=88.5?t[2]<=48?t[1]<=96?.01278:.005248:t[8]<=2023?.001484:.007153:t[1]<=114?.002375:-.005314:t[6]<=1e-35?t[1]<=96?t[8]<=2078?t[11]<=1e-35?.005645:-.005347:t[7]<=53.5?3027e-7:-.004666:t[9]<=70.5?-.00557:-.007711:t[2]<=96?t[12]<=72?t[12]<=1e-35?.001981:.01219:-.007177:t[9]<=143.5?t[15]<=91.5?.005722:-.002654:-.00727,
i+=t[3]<=1e-35?t[0]<=72?t[0]<=48?t[2]<=72?t[14]<=1947?t[12]<=72?-.008392:.007215:t[15]<=236.5?-.005573:.003622:t[8]<=2027?t[8]<=2016?-8629e-7:.006587:t[14]<=2004?-.003801:.001657:-.0112:t[2]<=72?t[10]<=2576?t[12]<=1e-35?t[15]<=309.5?.003718:.006913:t[12]<=72?-.003333:.008556:t[14]<=1601?t[2]<=48?-.01198:-.006281:t[11]<=72670?-5183e-7:-.005606:t[10]<=16.5?t[2]<=118?.01111:t[13]<=2.5?.001682:.008324:t[12]<=72?t[8]<=2083?.005023:.001288:.01032:t[2]<=96?t[2]<=72?t[13]<=4.5?t[15]<=1319?-.006953:.008704:t[0]<=72?-.009396:t[0]<=96?.001459:-.006961:t[10]<=3708?t[0]<=72?-.01143:t[0]<=96?.004795:-.00392:t[0]<=72?-.0115:t[13]<=3.5?.009634:.00393:t[0]<=96?t[0]<=72?t[15]<=4270?-.008133:-.001222:t[11]<=247400?t[14]<=1281?-.004423:.007868:t[16]<=942.5?.003818:-.008582:t[10]<=16.5?t[2]<=96?t[0]<=118?-.006102:-.00934:-.01016:t[12]<=96?t[0]<=122.5?-.005024:-.01036:-.009781,n+=t[0]<=96?t[1]<=96?t[4]<=1e-35?t[2]<=24?t[14]<=1698?t[15]<=14.5?-.007039:-.008239:t[6]<=12.5?-.005249:-.00823:t[5]<=3.105?t[12]<=96?-.002581:.01002:.01282:t[5]<=3.355?t[5]<=3.025?t[5]<=2.895?-.00828:-.007951:t[16]<=795.5?-.008661:.005879:t[15]<=435.5?t[2]<=96?-.008507:-.008872:t[2]<=114?.01238:.002346:t[0]<=72?t[10]<=857.5?t[14]<=1921?-.008404:-.004298:t[15]<=226.5?.01296:-1282e-7:.02642:t[0]<=118?t[2]<=96?t[1]<=96?t[0]<=114?.01411:t[5]<=3.075?.02684:.01602:t[14]<=2463?t[10]<=281.5?.01004:.003743:t[15]<=186.5?.005069:.01614:t[5]<=3.325?t[1]<=96?t[10]<=246.5?.02387:.01891:t[16]<=2.5?.005303:.01229:t[2]<=96?t[14]<=1921?.01401:.01678:t[10]<=97.5?.01982:.01496:t[1]<=114?t[15]<=280.5?.02235:.00525:t[2]<=96?t[10]<=683.5?t[15]<=737.5?-1948e-7:-.003349:.01049:t[5]<=3.315?t[5]<=2.425?-.004115:.003901:t[14]<=1601?.004455:-.002483,r+=t[1]<=118?t[3]<=1e-35?t[11]<=1457e4?t[16]<=29960?t[1]<=96?t[7]<=1e-35?-.007882:-.00789:t[6]<=1.5?-.007924:-.007901:t[7]<=97.5?t[1]<=96?-.007896:-.00793:.02321:t[6]<=9.5?t[8]<=2157?t[1]<=24?-.007977:-.007907:-.008014:.02576:t[4]<=1e-35?t[9]<=59.5?t[7]<=1e-35?-.008413:-.003976:t[11]<=1269?.005731:t[9]<=299.5?.02061:.002918:t[11]<=4432e3?t[16]<=22780?t[1]<=114?-.007585:-.005834:t[8]<=2018?.02117:-.007966:t[16]<=243.5?t[1]<=114?-.007933:-.008044:t[9]<=256.5?.01205:.0309:t[7]<=48.5?t[12]<=114?t[9]<=115.5?t[8]<=2161?t[16]<=2239?.01877:.01129:t[8]<=2202?-.006277:.01682:t[16]<=130.5?t[6]<=8.5?.02172:.01493:t[8]<=2006?.01477:.02285:.03019:t[14]<=2407?t[12]<=118?t[12]<=1e-35?t[16]<=1215?.009759:.02028:t[16]<=30.5?.007609:-.004938:.0289:t[6]<=4.5?t[16]<=8.5?t[7]<=76.5?.02784:.01403:t[6]<=1e-35?.02594:.01306:.004747,e+=t[1]<=72?t[5]<=2.235?t[7]<=1.5?t[14]<=1927?t[9]<=61.5?t[7]<=1e-35?.004856:.009357:t[11]<=606500?.003625:-.002117:t[1]<=48?t[11]<=8382?.002522:-.003117:.012:t[16]<=2.5?t[15]<=1532?t[5]<=1.01?.01291:.008768:t[11]<=20670?.01135:.003942:t[12]<=48?t[9]<=181.5?.008426:-8534e-8:-.003257:t[6]<=1e-35?t[11]<=41330?t[1]<=1e-35?-.006844:.01127:t[15]<=195.5?.01373:t[14]<=1830?.005013:-.004451:t[11]<=3175?t[7]<=18.5?-.002123:t[6]<=2.5?.01286:.002748:t[6]<=3.5?t[11]<=481400?.001604:-.006956:-.006104:t[5]<=3.125?t[14]<=1711?t[12]<=72?t[12]<=1e-35?t[1]<=118?.002825:-.004078:t[15]<=198.5?.004306:.01191:-.006261:t[9]<=118.5?t[12]<=72?t[12]<=1e-35?-6952e-7:.008159:-.007141:t[7]<=18.5?-.007179:-.004239:t[14]<=1682?t[14]<=1377?t[14]<=1362?t[14]<=1145?.00504:-.001429:.005971:t[1]<=96?-.002116:t[6]<=1.5?-.005725:.004819:t[1]<=96?t[9]<=100.5?t[11]<=1e-35?.008372:-.004587:t[14]<=1747?-.003283:-.007444:-.007556,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[7]<=42.5?t[11]<=93390?t[14]<=876.5?.00682:-.005803:t[15]<=522.5?-.005032:.004471:-.00878:t[3]<=1e-35?t[11]<=3313?t[6]<=2.5?-.005723:.002234:t[6]<=3.5?.00485:.008402:t[15]<=737.5?-.009026:t[7]<=97.5?-.005:.005266:t[5]<=1.01?t[14]<=1682?t[14]<=1425?t[10]<=49.5?.01167:.002252:t[13]<=2.5?-.005991:.006236:t[14]<=1947?.007734:.00961:t[14]<=1711?t[6]<=2.5?t[13]<=11.5?3294e-7:.00359:t[11]<=43800?-4829e-7:-.005238:t[14]<=1953?t[3]<=1e-35?.003844:-.001993:t[7]<=19.5?.008681:.004864:t[1]<=118?t[5]<=1.575?t[6]<=3.5?t[13]<=22.5?t[10]<=159.5?-.003856:-.009332:.005961:t[13]<=34?t[15]<=183.5?-.01079:-.005849:-.01053:t[3]<=1e-35?t[4]<=1e-35?t[13]<=3.5?-.00779:-493e-6:t[14]<=1478?2465e-7:.009596:t[6]<=38.5?t[14]<=2196?-.004789:-.006163:.01319:t[3]<=1e-35?t[13]<=34?t[14]<=1698?-.01016:-.001625:.007856:t[7]<=5.5?t[13]<=6.5?-.003964:-.009475:t[14]<=2061?-.005726:-.008344,n+=t[1]<=96?t[1]<=48?t[14]<=2196?t[13]<=4.5?-.006714:t[8]<=2002?t[9]<=59.5?.02416:.002648:t[6]<=8.5?-.003485:-.008156:t[10]<=722.5?t[8]<=2019?t[8]<=2017?-.00438:.0151:t[10]<=223.5?-.004566:.002865:.0107:t[6]<=1e-35?t[9]<=15.5?.004929:-.00752:t[10]<=238.5?t[6]<=11.5?-.007091:t[13]<=18.5?-.005181:.01784:t[10]<=260.5?t[14]<=1967?-.003074:.02175:t[7]<=55.5?-.001866:-.006932:t[1]<=118?t[10]<=61.5?t[14]<=2049?t[1]<=114?t[9]<=165.5?.01427:.01813:t[16]<=17020?.01229:-.002787:t[11]<=4875e3?.01695:.00908:t[8]<=2027?t[8]<=2016?t[11]<=96610?.01129:.0026:t[9]<=170.5?.02584:.01762:t[14]<=1682?t[15]<=880.5?-4458e-7:.005948:t[9]<=144.5?.007592:.01298:t[7]<=3.5?t[11]<=126800?t[6]<=1e-35?-.005777:t[15]<=280.5?-.004959:.002487:t[13]<=29.5?t[11]<=204800?.01067:-1177e-7:.01331:t[13]<=18.5?t[7]<=96.5?t[15]<=2134?.003598:-.003483:t[11]<=27940?.0121:.003901:t[10]<=424.5?t[15]<=340.5?.002519:-.003694:.007456,r+=t[2]<=96?t[11]<=1457e4?t[5]<=3.145?t[16]<=8.5?t[10]<=13.5?t[11]<=247400?1829e-7:.02021:t[8]<=2041?-.005992:-.007524:t[5]<=1e-35?t[15]<=59.5?.0336:.00472:t[14]<=3427?-.00408:.008678:t[7]<=24.5?t[9]<=59.5?.006855:t[8]<=2090?.01752:.02845:t[8]<=2141?-.007164:.01064:t[8]<=2087?-.007233:t[15]<=2563?t[15]<=296.5?.0325:t[16]<=11920?-.00823:.004937:.03471:t[8]<=2097?t[2]<=118?t[10]<=189.5?t[11]<=1022?t[9]<=237.5?-.00615:.01282:t[15]<=2778?.01275:-.001106:t[15]<=481.5?t[8]<=2077?.006362:-.002396:t[11]<=1351e3?-.001828:.006607:t[5]<=2.325?t[16]<=1e-35?t[15]<=2199?.02726:.01701:t[15]<=977.5?.007741:.02378:t[5]<=3.205?t[8]<=2081?-.003376:.01411:t[8]<=2069?.0177:.00118:t[14]<=1698?t[16]<=20370?t[5]<=3.595?t[14]<=1367?-.00599:.003126:.01596:.02836:t[8]<=2103?t[11]<=1749?t[7]<=29.5?-.006827:.004537:t[9]<=144.5?.01537:.02379:t[11]<=347800?t[10]<=233.5?.008226:-.003222:t[7]<=98.5?.01415:-.001478,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.003224:t[4]<=1e-35?.008909:.01404:t[2]<=72?t[14]<=2446?t[15]<=121.5?.01343:t[13]<=22.5?.01002:9713e-7:t[6]<=1.5?t[15]<=799.5?.001461:-.007063:t[8]<=2099?.01042:-.004012:t[2]<=122.5?t[8]<=2004?7261e-8:t[8]<=2071?-.009376:-.004059:t[8]<=2028?t[8]<=2016?.004902:-.003942:t[13]<=9.5?.00903:.003113:t[2]<=72?t[5]<=3.435?t[1]<=72?t[14]<=1494?t[1]<=48?.004275:-.006089:t[13]<=5.5?-.005552:-.008198:t[5]<=1.125?t[13]<=1.5?8985e-7:-.00623:t[1]<=96?.004452:-.002146:t[14]<=1947?t[2]<=24?t[16]<=409.5?.01698:.006464:t[16]<=25.5?.01024:.005027:t[0]<=96?t[15]<=2134?.002675:.01613:t[16]<=8.5?-2415e-7:-.007016:t[5]<=3.125?t[1]<=72?t[14]<=1601?-.006748:-.009348:t[14]<=1610?t[8]<=2078?6827e-7:.004683:t[0]<=96?-.001027:-.0051:t[6]<=1e-35?t[8]<=19?.007443:t[5]<=3.135?-.008904:-.006588:t[13]<=4.5?t[8]<=2086?-.004285:.00294:t[0]<=114?-.005882:-.008369,i+=t[0]<=96?t[0]<=72?t[0]<=48?t[7]<=30.5?t[6]<=1.5?t[14]<=2004?-.003405:6552e-7:t[13]<=22.5?-.007331:.00632:t[13]<=20.5?t[2]<=96?-.00828:.001932:-.01083:-.01111:t[2]<=72?t[10]<=2576?t[6]<=1e-35?t[7]<=28.5?.004927:-.00171:t[14]<=1878?.004398:.008112:t[2]<=24?t[7]<=7.5?2259e-7:-.01275:t[14]<=1698?-.006344:-9775e-7:t[10]<=39.5?t[7]<=6.5?t[8]<=2086?.008953:.005225:t[11]<=1e-35?-.00852:.01102:t[14]<=1799?t[8]<=2079?.004105:2241e-8:t[13]<=9.5?.004533:.00725:t[2]<=96?t[2]<=72?t[6]<=25.5?t[14]<=2758?t[13]<=7.5?-.00925:-.006445:9445e-7:.001506:t[10]<=2988?t[7]<=41.5?t[0]<=118?-.005303:-.0101:t[15]<=180.5?.008069:-.001074:t[7]<=91.5?t[14]<=2293?.003655:-.001563:t[15]<=61.5?.00274:.009287:t[10]<=69.5?t[7]<=10.5?t[0]<=118?t[8]<=2069?-.007324:-.004811:t[13]<=6.5?-.004169:-.009442:t[2]<=114?-.009573:-.01096:t[0]<=122.5?t[11]<=7448e3?t[0]<=118?-.00456:-.006375:6127e-7:-.01015,
n+=t[3]<=1e-35?t[0]<=114?t[11]<=2195e3?t[5]<=3.325?t[0]<=96?t[0]<=48?-.008332:-.008277:-.008877:-.006258:t[11]<=224e4?t[0]<=72?.01113:t[5]<=2.395?-.00827:-.008298:t[0]<=48?t[5]<=2.605?-.008312:-.008376:t[5]<=1.125?-.00826:-.00829:t[7]<=69.5?t[14]<=1537?-.006116:-.008819:.007931:t[0]<=118?t[0]<=96?t[0]<=48?t[8]<=2023?t[16]<=268.5?.01109:.03107:t[8]<=2027?-.00899:.007897:t[16]<=303.5?t[14]<=1281?.008116:-.006001:t[14]<=1921?-.003261:.01671:t[5]<=3.365?t[14]<=1452?t[7]<=59.5?.009478:-.004354:t[16]<=18.5?.01026:.01473:t[14]<=1921?t[8]<=2042?.01605:.01305:t[9]<=100.5?.01352:.01678:t[7]<=3.5?t[0]<=122.5?t[9]<=56.5?.009561:t[13]<=29.5?-9317e-7:.009578:t[15]<=777.5?-.008431:-.004626:t[15]<=340.5?t[16]<=775.5?t[0]<=126.5?.007343:-.006711:t[7]<=12.5?.015:-.0052:t[8]<=2018?t[9]<=61.5?9743e-7:-.007565:t[11]<=94.5?.02437:.001947,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[11]<=1457e4?t[10]<=916.5?t[2]<=24?-.007895:-.007926:t[16]<=2239?-.007903:.0421:t[10]<=69.5?-.007965:.02627:t[10]<=17.5?-.007323:t[16]<=25730?t[16]<=2.5?.007723:.01875:t[13]<=11.5?-.00732:.006633:t[12]<=126.5?t[11]<=1e-35?t[3]<=1e-35?t[0]<=48?-.007976:-.007898:t[9]<=60.5?.03466:-.005647:t[11]<=1457e4?t[3]<=1e-35?-.007884:-.007947:t[16]<=17020?-.007929:.0095:.03086:t[7]<=4.5?t[13]<=6.5?t[16]<=280.5?.01856:.002212:t[9]<=45.5?.0125:t[0]<=126.5?t[10]<=95.5?.0212:.01843:.02469:t[0]<=126.5?t[13]<=18.5?t[11]<=1022?t[10]<=169.5?-.0031:.01055:t[9]<=143.5?.01113:.016:t[10]<=424.5?t[16]<=534.5?.02352:.01561:.01039:.02613,e+=t[2]<=72?t[4]<=1e-35?t[3]<=1e-35?t[9]<=74.5?t[7]<=6.5?t[10]<=59.5?.007027:.01162:.01285:t[6]<=9.5?t[10]<=451.5?211e-6:.01438:.01399:-.007634:t[10]<=2576?t[6]<=1e-35?t[1]<=96?t[7]<=28.5?.002958:.008135:t[7]<=35.5?-.007408:.002286:t[12]<=1e-35?t[9]<=23.5?.001002:-.003476:t[12]<=72?.01113:-.004965:t[1]<=96?t[7]<=1.5?t[9]<=182.5?.007108:-.005845:t[9]<=59.5?.01238:.008145:t[9]<=139.5?t[11]<=20040?6794e-7:.009226:-.003734:t[1]<=72?t[3]<=1e-35?t[6]<=1.5?t[11]<=7080?t[1]<=1e-35?.006583:.01052:t[9]<=123.5?.004851:3293e-7:t[15]<=134.5?.007143:t[11]<=154600?-.001144:-.00614:t[1]<=24?-.008805:t[10]<=54.5?.01052:t[7]<=90.5?6552e-7:.009603:t[10]<=41.5?t[7]<=5.5?t[3]<=1e-35?t[9]<=164.5?-.002014:-.006639:-.007305:t[11]<=1e-35?.01449:t[10]<=14.5?-.009173:-.004843:t[3]<=1e-35?t[9]<=141.5?t[12]<=72?.002785:-.005462:t[6]<=1e-35?-.004777:-3538e-7:t[9]<=143.5?t[12]<=72?-.002263:-.007984:-.007189,i+=t[1]<=96?t[2]<=72?t[6]<=1e-35?t[10]<=2576?t[1]<=72?t[12]<=72?-.006281:.006415:t[8]<=2037?.003803:-.001862:t[1]<=72?-.01014:t[14]<=1698?-.00776:-.002181:t[12]<=1e-35?t[3]<=1e-35?t[15]<=79.5?-.002473:.00578:t[8]<=2038?.006877:-.003733:t[12]<=72?-.007007:.007058:t[1]<=72?t[3]<=1e-35?t[6]<=1.5?t[11]<=16730?-.005803:.001617:t[8]<=2052?-.001313:.00766:t[10]<=125.5?-.01014:t[10]<=135.5?.00796:-.006212:t[10]<=44.5?t[2]<=114?t[10]<=1e-35?.0109:.00678:t[14]<=1967?.005914:.009577:t[12]<=72?t[14]<=1610?3298e-8:.003757:t[12]<=114?.009592:-.001077:t[2]<=96?t[2]<=72?t[6]<=8.5?t[3]<=1e-35?t[14]<=2034?-.003995:.003654:t[1]<=118?-.005857:-.008778:t[12]<=48?-.009849:.00118:t[10]<=14.5?t[12]<=72?t[15]<=4027?.006389:-.005284:-.003027:t[3]<=1e-35?t[11]<=2573e3?.006648:-.004209:t[1]<=118?-8729e-7:-.006322:t[10]<=17.5?-.01008:t[12]<=96?t[1]<=118?-.003627:t[8]<=2136?-.006729:-.002518:-.009664,n+=t[3]<=1e-35?t[0]<=114?t[6]<=1e300?t[0]<=96?t[5]<=4.005?t[0]<=48?-.008299:-.008282:t[0]<=48?-.008312:-.008244:-.007301:t[14]<=1537?t[11]<=336e3?t[8]<=2015?-.008051:-.008327:t[11]<=381400?.01172:-.006784:t[0]<=48?t[13]<=7.5?-.008344:-.00838:t[11]<=15.5?-.008473:-.008256:t[14]<=1721?.01005:t[15]<=404.5?-.008897:-.006059:t[0]<=118?t[0]<=96?t[0]<=48?t[11]<=1507e3?t[10]<=111.5?.008262:-9643e-7:t[8]<=2070?.005587:.0259:t[10]<=316.5?t[0]<=72?-.008549:.007432:t[11]<=96610?-.008464:-.002526:t[2]<=96?t[15]<=1864?t[2]<=72?.009988:.005189:t[5]<=3.885?.01942:.009796:t[5]<=3.355?t[13]<=34?.01212:.006602:t[6]<=22.5?.01835:.01433:t[10]<=206.5?t[5]<=2.405?t[11]<=407800?t[8]<=2064?-.006599:-.001264:t[13]<=9.5?-.008785:-.005307:t[2]<=96?t[6]<=1e-35?-.004145:7943e-7:t[5]<=2.745?.005549:3193e-9:t[15]<=61.5?.02335:t[5]<=3.015?t[5]<=2.865?.002002:.01149:t[11]<=519.5?.01816:354e-6,r+=t[0]<=118?t[0]<=48?t[3]<=1e-35?t[15]<=3135?t[2]<=48?t[13]<=5.5?-.007887:-.007907:t[13]<=7.5?-.00791:-.007934:t[15]<=3250?.02226:t[16]<=6877?-.00791:-.007973:t[16]<=2.5?t[13]<=15.5?t[15]<=2319?-.007156:-.001323:.01592:t[15]<=384.5?t[16]<=942.5?.02483:.008752:t[5]<=1.01?.008938:.02662:t[2]<=122.5?t[16]<=17020?t[5]<=3.325?t[0]<=96?-.007881:-.007943:t[10]<=1053?-.007964:.003127:t[7]<=1e-35?t[3]<=1e-35?-.007892:.02205:t[3]<=1e-35?-.007898:-.007975:.03136:t[10]<=175.5?t[13]<=6.5?t[2]<=24?.01654:t[10]<=159.5?-.007723:.001428:t[7]<=95.5?t[5]<=2.865?t[10]<=41.5?.02641:.02118:t[14]<=1370?.009074:.01919:t[2]<=118?t[10]<=159.5?.009584:.0288:t[15]<=581.5?.02752:.01919:t[15]<=100.5?t[7]<=36.5?-.009035:-5767e-7:t[16]<=1159?t[16]<=548.5?t[14]<=1721?.005685:.01598:t[16]<=723.5?.00357:-.007153:t[15]<=664.5?.0273:t[0]<=122.5?.01038:.02529,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[9]<=74.5?t[7]<=26.5?t[14]<=2299?.009182:-1547e-7:t[13]<=15.5?.01321:.007484:t[11]<=7834?t[10]<=20.5?-.001763:.008657:t[9]<=413?.001469:-.00983:t[7]<=67.5?t[14]<=1711?t[8]<=2077?-.006915:.002369:t[6]<=1e-35?-.005287:-.0082:t[13]<=15.5?.01359:-.001926:t[8]<=37?.008779:.01406:t[5]<=2.935?t[14]<=1711?t[7]<=3.5?t[3]<=1e-35?t[13]<=12.5?-1103e-7:-.005124:-.006352:t[8]<=2082?t[13]<=11.5?.002301:-.001112:t[0]<=96?.005792:-2501e-7:t[9]<=67.5?t[7]<=8.5?t[11]<=1868e3?-.005297:.001063:t[5]<=2.625?.001468:-.00169:t[0]<=96?t[7]<=18.5?-.006505:-.003368:t[8]<=2006?-.002377:-.0087:t[14]<=1682?t[0]<=96?t[10]<=141.5?t[13]<=3.5?6092e-7:-.002162:t[11]<=411e4?.003781:-.005866:t[6]<=1e-35?t[13]<=12.5?-.00434:-.007502:t[6]<=13.5?.00108:-.01029:t[14]<=1921?t[11]<=1e-35?.01275:t[9]<=197.5?-.004571:-.007803:t[6]<=1e-35?t[8]<=1e-35?.00563:-.007812:t[8]<=2164?-.00573:.002843,i+=t[3]<=1e-35?t[2]<=72?t[5]<=1.995?t[9]<=72.5?t[9]<=59.5?t[15]<=2844?-.008461:-.002833:t[8]<=2027?-5353e-7:-.005594:t[14]<=1698?t[10]<=221.5?-.006078:.008512:t[10]<=189.5?.005191:-9452e-8:t[16]<=11.5?t[15]<=171.5?-.004082:t[14]<=946?.01049:.001788:t[14]<=1814?t[12]<=1e-35?.00383:-.002716:.006045:t[5]<=2.855?t[9]<=141.5?t[12]<=72?t[12]<=1e-35?.001327:-.006243:.008419:t[8]<=2081?.007238:t[8]<=2107?4157e-7:.007019:t[2]<=96?t[5]<=3.245?t[14]<=1658?.002724:.007442:t[13]<=2.5?-.001011:.009831:t[9]<=109.5?t[8]<=2028?.00446:-342e-6:t[14]<=1709?.001331:.00728:t[2]<=96?t[2]<=72?t[13]<=12.5?-.003139:-.006873:t[5]<=3.885?t[13]<=5.5?t[5]<=2.355?.009655:-3861e-7:-.004243:t[9]<=179.5?t[15]<=4027?.002686:-.009086:t[12]<=72?.007669:-.002408:t[10]<=117.5?t[2]<=114?t[15]<=9804?t[9]<=135.5?-.005654:-.007517:-.002203:-.008837:t[12]<=96?t[16]<=11.5?t[14]<=1395?.00508:-.003221:t[8]<=2155?-.005775:-4843e-7:-.009421,n+=t[3]<=1e-35?t[0]<=114?t[7]<=1e-35?t[8]<=2070?t[8]<=2069?t[13]<=15.5?-.0083:-.007574:.006034:t[1]<=96?t[0]<=48?-.008313:-.00825:t[1]<=96?-.008364:-.00858:t[0]<=96?t[5]<=4.005?t[1]<=118?-.008277:-.008392:t[0]<=48?-.008309:-.008235:-.007281:t[7]<=64.5?t[8]<=2071?-.00874:-.003511:.01234:t[0]<=118?t[0]<=96?t[1]<=96?t[5]<=3.255?t[6]<=1e-35?-.008407:-.004391:t[15]<=435.5?-.008664:.01152:t[0]<=72?t[8]<=2002?.02317:.009171:.02772:t[1]<=96?t[7]<=89.5?t[8]<=2099?.02371:.01719:t[15]<=763.5?.01773:3043e-7:t[5]<=3.365?t[6]<=1.5?.01049:.003711:t[12]<=72?.01382:.01969:t[7]<=1.5?t[6]<=1e-35?t[5]<=2.995?t[13]<=16.5?-.005175:-.00815:t[15]<=419.5?-.005702:.004054:t[0]<=122.5?t[13]<=8.5?.006121:8579e-8:-.006023:t[1]<=114?.01436:t[0]<=126.5?t[6]<=3.5?.002857:-.001499:-.004511,
r+=t[0]<=118?t[0]<=48?t[12]<=96?t[13]<=5.5?t[6]<=1e300?t[15]<=3135?-.00782:-.002196:t[8]<=2003?.02599:-.006383:t[5]<=1.01?t[15]<=9804?-.006174:.01118:t[15]<=1041?.00333:-.004478:.02533:t[12]<=126.5?t[16]<=17020?t[8]<=1e-35?t[5]<=3.325?-.007907:.02314:t[0]<=96?-.007878:-.00794:t[8]<=2198?t[9]<=239.5?-.00791:.009811:.01956:.02817:t[10]<=175.5?t[13]<=6.5?t[5]<=1.125?t[16]<=291.5?.01904:.005573:-.006357:t[0]<=122.5?t[9]<=20.5?-.005872:t[14]<=1708?.01523:.01891:t[15]<=513.5?t[8]<=2071?.023:.01697:t[9]<=60.5?.02583:.02347:t[15]<=100.5?t[9]<=169.5?-.007825:-.002082:t[14]<=1721?t[10]<=233.5?.02006:t[16]<=2710?-.001086:.01814:t[8]<=2151?t[5]<=2.785?.02358:.01526:t[16]<=152.5?-.005237:.008501,e+=t[1]<=72?t[2]<=24?t[3]<=1e-35?t[4]<=1e-35?t[9]<=74.5?t[7]<=6.5?.009915:.01267:t[6]<=9.5?6983e-7:.01379:t[10]<=44.5?.01144:t[16]<=118.5?.001572:-.007923:t[4]<=1e-35?-.007889:.002726:t[6]<=2.5?t[1]<=48?t[3]<=1e-35?t[7]<=4.5?.005968:.001553:t[1]<=1e-35?-.008458:.003696:t[13]<=10.5?t[6]<=1e-35?.007567:-.001789:t[6]<=1e-35?.01088:.00572:t[4]<=1e-35?t[2]<=72?.01075:-.006195:t[16]<=49.5?-.001927:-.005834:t[2]<=72?t[7]<=21.5?t[10]<=464.5?t[3]<=1e-35?t[15]<=2563?6713e-7:-.005167:-.0073:t[9]<=121.5?t[10]<=2988?.001637:.009062:-.003009:t[3]<=1e-35?t[2]<=48?t[13]<=5.5?.01474:.008534:t[10]<=99.5?.008685:.003806:t[10]<=281.5?-.002409:t[9]<=159.5?.005425:-.003424:t[10]<=43.5?t[7]<=9.5?t[13]<=4.5?t[16]<=110.5?-.003488:.004853:t[3]<=1e-35?-.004685:-.007801:t[10]<=17.5?-.008974:-.003892:t[3]<=1e-35?t[9]<=139.5?t[13]<=3.5?.0135:.001812:-.002755:t[9]<=143.5?t[6]<=2.5?-.003575:-4188e-8:-.006976,i+=t[0]<=96?t[0]<=72?t[0]<=48?t[6]<=3.5?t[9]<=100.5?t[7]<=30.5?-.003795:-.01024:t[4]<=1e-35?8345e-7:-.01023:t[13]<=18.5?t[8]<=2038?-.003364:-.009136:-.01017:-.01095:t[2]<=72?t[6]<=1e-35?t[7]<=19.5?t[8]<=2075?.005388:-5987e-7:t[2]<=48?-.007851:-.001882:t[15]<=304.5?t[10]<=210.5?.00602:.001816:.007191:t[10]<=44.5?t[7]<=9.5?t[8]<=2073?.008869:.005148:t[10]<=15.5?.01105:.007247:t[9]<=126?t[8]<=2073?.004334:.001747:t[8]<=2081?.00802:.004658:t[2]<=96?t[2]<=72?t[13]<=26?t[0]<=118?t[8]<=2136?-.002283:-.009921:-.007454:-.008834:t[10]<=2988?t[7]<=65.5?-.007232:t[15]<=497.5?.004542:-.001733:t[7]<=91.5?t[13]<=26?-4071e-7:.005513:t[13]<=29.5?.00807:-.002538:t[10]<=52.5?t[7]<=5.5?t[0]<=118?t[8]<=2069?-.007328:-.004675:t[9]<=120.5?-.006466:-.009696:-.01007:t[8]<=2135?t[0]<=122.5?t[11]<=7448e3?-.005597:.002046:-.01063:t[11]<=323100?t[15]<=599.5?-.004422:.003732:t[9]<=233.5?-.002502:-.009103,n+=t[3]<=1e-35?t[1]<=114?t[14]<=-1e-35?t[15]<=219.5?.0118:t[15]<=340.5?-.008375:t[1]<=48?-.00833:-.008286:t[7]<=1e-35?t[14]<=1546?t[9]<=144.5?-.007846:-.003017:t[1]<=96?-.008239:-.008356:t[10]<=1e-35?t[1]<=96?-.008227:-.008303:t[1]<=96?-.008266:-.008282:t[7]<=69.5?t[10]<=490.5?t[9]<=320.5?t[9]<=141.5?-.008463:-.008731:-.007135:-.002421:.009888:t[1]<=118?t[1]<=96?t[10]<=54.5?t[13]<=8.5?t[8]<=2083?.0165:-.006549:t[8]<=2052?-.007919:-.001894:t[8]<=2052?t[14]<=2034?-.006166:.006488:t[8]<=2083?.01809:.003878:t[10]<=225.5?t[14]<=2287?t[8]<=2043?.01464:.01083:t[9]<=61.5?.01091:.01627:t[12]<=24?t[14]<=1442?-.001253:.007888:t[9]<=143.5?.008565:.01855:t[13]<=16.5?t[12]<=118?t[7]<=96.5?t[10]<=877.5?.002207:.009064:t[9]<=139.5?.002105:.009598:-.007037:t[9]<=312.5?t[7]<=1.5?t[14]<=1708?-.001466:-.007216:t[7]<=3.5?.01241:-.00102:.008775,r+=t[2]<=96?t[16]<=1040?t[9]<=58.5?t[10]<=11.5?.01082:t[10]<=71.5?t[15]<=2319?-.006943:.002855:-.007357:t[12]<=118?t[14]<=2463?t[7]<=32.5?-.00396:-.007023:t[10]<=123.5?.004658:-.003702:.01863:t[10]<=69.5?t[10]<=14.5?-.007051:t[7]<=19.5?t[7]<=17.5?.006766:.03093:t[8]<=2100?-.008172:.003971:t[16]<=20370?t[16]<=1068?.01577:t[14]<=1698?-.007233:-.001505:t[16]<=32180?t[16]<=29960?.006203:.02822:t[6]<=10.5?-.007216:.01351:t[2]<=118?t[8]<=2099?t[9]<=77.5?t[10]<=749.5?t[12]<=114?.004046:.01722:t[15]<=561.5?8066e-7:-.004557:t[8]<=2067?t[8]<=2002?-.004462:.008882:t[10]<=17.5?.01827:.001021:t[14]<=1367?t[8]<=2103?-1375e-7:-.007726:t[8]<=2127?t[9]<=29.5?-.001751:.01362:t[16]<=8697?.005238:.01822:t[10]<=59.5?t[10]<=45.5?t[15]<=390.5?.01891:.005787:t[16]<=2053?t[13]<=12.5?.01467:.02319:.006303:t[7]<=13.5?t[8]<=2005?.02872:t[9]<=144.5?.002907:.01893:t[9]<=53.5?.02277:t[9]<=58.5?.003742:-.005408,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[9]<=74.5?t[2]<=72?t[14]<=2372?.01164:.003062:t[8]<=2027?.002167:.008836:t[4]<=1e-35?t[8]<=2055?-8243e-7:.004145:t[2]<=72?.01555:.005448:t[4]<=1e-35?t[13]<=9.5?t[8]<=2103?-.008659:-.001633:-.009586:t[5]<=2.375?.01264:.002902:t[8]<=21.5?.007906:.01386:t[2]<=72?t[10]<=2576?t[14]<=1878?t[5]<=1.01?t[7]<=24.5?-.004863:.004929:t[8]<=2079?7038e-8:.004301:t[7]<=17.5?t[9]<=61.5?-.004588:-.008076:t[5]<=2.425?.003349:-.002777:t[14]<=1698?t[2]<=24?.01664:t[13]<=7.5?.01239:.007662:t[9]<=63.5?t[2]<=48?.01073:.005191:t[7]<=4.5?-.007654:8325e-7:t[5]<=3.125?t[14]<=1711?t[8]<=2082?t[10]<=133.5?-.002794:5121e-7:t[0]<=96?.005257:-.001926:t[9]<=118.5?t[5]<=2.665?5077e-7:-.003035:t[0]<=96?-.005147:-.007967:t[7]<=9.5?t[13]<=4.5?t[7]<=1e-35?2013e-7:-.005309:t[14]<=1758?-.00419:-.007526:t[5]<=3.905?t[7]<=97.5?-.005968:8083e-9:t[8]<=19?.007114:-.00902,i+=t[3]<=1e-35?t[2]<=72?t[2]<=24?t[9]<=89.5?t[7]<=5.5?t[10]<=60.5?-.001218:-.006019:t[9]<=75.5?-.006054:-.009717:t[12]<=1e-35?t[11]<=5912?-8401e-7:.006175:-.008375:t[6]<=1e-35?t[7]<=17.5?t[14]<=1711?-.002749:.004177:t[10]<=113.5?-.005644:-.001478:t[11]<=10890?t[14]<=1698?-.002622:.003738:t[6]<=1.5?.001929:.005575:t[6]<=1e-35?t[10]<=16.5?t[7]<=2.5?.005914:t[11]<=1e-35?-.00511:.009691:t[14]<=1839?t[12]<=72?9764e-7:.007015:t[12]<=72?.004503:.01017:t[9]<=123.5?t[12]<=72?t[12]<=1e-35?.001468:-.008358:.007663:t[14]<=1709?t[9]<=244.5?.001564:.01184:t[11]<=8382?.004208:.008231:t[2]<=96?t[2]<=72?t[6]<=1e-35?-.006881:-.004318:t[7]<=72.5?t[10]<=2988?t[9]<=32.5?-.001386:-.006533:t[13]<=26?-.001513:.00501:t[6]<=1e-35?t[9]<=71.5?.006672:.002097:-.00113:t[10]<=69.5?t[7]<=6.5?t[9]<=139.5?t[13]<=15.5?-.005884:-.002449:t[11]<=125.5?7625e-7:-.007745:-.00875:t[12]<=96?t[12]<=72?-.004504:.004228:-.009398,n+=t[3]<=1e-35?t[9]<=62.5?t[13]<=15.5?t[4]<=1e-35?t[6]<=1e300?-.008259:-.008335:t[11]<=771.5?t[13]<=11.5?-.008221:-.007665:t[10]<=490.5?-.008259:-.00822:t[8]<=2027?t[8]<=2025?t[16]<=3553?-.008265:-.007552:.008064:-.008274:t[16]<=6.5?t[11]<=2195e3?t[5]<=2.885?t[13]<=29.5?-.0082:-.002982:t[11]<=357.5?.01104:-.008279:.004093:t[11]<=1457e4?t[4]<=1e-35?-.008352:t[10]<=20.5?-.008223:-.008258:t[10]<=398.5?-.008277:.007372:t[8]<=2082?t[8]<=2070?t[15]<=5292?t[10]<=1724?t[10]<=857.5?.009295:.001564:.01902:t[5]<=1.755?t[13]<=9.5?-319e-7:.01171:t[16]<=1184?.003015:-.007302:t[4]<=1e-35?t[11]<=32240?.007727:.02959:t[10]<=59.5?t[9]<=61.5?-.002861:.008877:t[6]<=10.5?.01217:9359e-7:t[10]<=69.5?t[16]<=2111?t[9]<=167.5?t[10]<=61.5?.00752:.01881:t[4]<=1e-35?.02271:.01139:t[15]<=174.5?.01472:t[15]<=592.5?-.001864:.005248:t[5]<=1.125?t[9]<=74.5?.006325:.0216:t[8]<=2087?t[10]<=189.5?-.009253:-.002123:t[8]<=3211?.003888:.01458,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[3]<=1e-35?t[5]<=4.005?-.007875:-.00786:t[0]<=48?-.007943:-.007893:t[1]<=114?t[2]<=118?-.007923:-.007943:t[13]<=1.5?-.007928:-.007955:t[8]<=2159?t[3]<=1e-35?t[8]<=2085?-.007884:-.007909:-.007983:.01837:t[3]<=1e-35?t[11]<=1457e4?t[5]<=2.435?t[1]<=118?-.007895:-.008052:t[5]<=2.675?.007132:-.007934:t[6]<=3.5?-.007961:.02708:t[13]<=5.5?t[11]<=21810?-.008307:t[11]<=96610?.01709:-.007455:t[9]<=256.5?t[9]<=165.5?.01209:.02154:8045e-7:t[5]<=2.925?t[13]<=16.5?t[8]<=2151?t[9]<=55.5?.002862:t[2]<=114?.01448:.01876:t[11]<=1134?.02446:t[11]<=209500?-.002932:.01315:t[11]<=411e4?t[5]<=2.815?t[8]<=2099?.02158:.02473:t[2]<=96?.01506:.0208:.01347:t[0]<=126.5?t[6]<=4.5?t[9]<=156.5?t[8]<=2026?.01907:.007041:t[2]<=96?.02636:.01647:t[8]<=2090?-.008387:.001655:.02563,
e+=t[0]<=72?t[0]<=48?t[2]<=72?t[14]<=2061?t[13]<=5.5?t[15]<=2927?.01191:.007552:t[10]<=22.5?.002168:.008939:t[6]<=1.5?t[5]<=.49?.007285:-.003858:t[13]<=15.5?.01167:.002425:t[12]<=72?t[12]<=1e-35?t[14]<=1921?.004084:-.001279:t[15]<=378.5?.01303:.01769:t[5]<=1.995?-.00988:-.00285:t[6]<=2.5?.01361:.01489:t[2]<=72?t[10]<=5265?t[6]<=1e-35?t[0]<=114?t[15]<=3135?.003604:-.004304:t[13]<=3.5?-5716e-7:-.007326:t[14]<=1920?t[12]<=1e-35?-.00204:.004173:t[2]<=24?-.007143:-.003849:t[14]<=1741?t[2]<=24?.01565:t[11]<=8995?.006017:.01086:t[11]<=21810?t[2]<=48?.006037:-5707e-7:t[13]<=11.5?.01052:.003681:t[5]<=3.125?t[12]<=72?t[13]<=11.5?t[5]<=2.755?.002769:-.001097:t[14]<=1839?-2306e-7:-.004323:t[14]<=1601?t[11]<=7834?-.002411:-.007515:t[10]<=243.5?-.009156:-.007561:t[6]<=1e-35?t[11]<=1e-35?.01233:t[10]<=61.5?-.008751:-.006418:t[13]<=4.5?t[13]<=2.5?.007598:-.0024:t[0]<=114?-.005156:-.007961,i+=t[0]<=96?t[0]<=72?t[0]<=48?t[7]<=26.5?t[8]<=2027?t[16]<=7.5?-.002453:.002464:t[13]<=7.5?-.006825:-.002837:t[12]<=72?t[13]<=15.5?-.01016:-.00571:-.002278:-.01091:t[5]<=1.125?t[11]<=1e-35?t[7]<=63.5?t[13]<=15.5?-.002038:.00543:-.01055:t[13]<=8.5?t[13]<=2.5?-8106e-8:.006682:t[16]<=14170?.008342:.003127:t[12]<=72?t[12]<=1e-35?t[8]<=2073?.005471:.002593:t[15]<=384.5?1327e-7:-.008785:t[7]<=59.5?.01107:t[13]<=8.5?.005174:.009196:t[0]<=118?t[12]<=96?t[13]<=4.5?t[15]<=1319?t[15]<=412.5?2184e-7:-.007301:t[8]<=2016?.0115:-3335e-7:t[16]<=30.5?t[10]<=1622?-.002762:-.005069:t[0]<=114?-.006546:-.00471:t[11]<=23330?t[8]<=2066?-.009657:t[7]<=74.5?.001902:-.008123:-.01054:t[8]<=2130?t[7]<=2.5?t[10]<=27.5?-.006005:t[13]<=8.5?-.007987:-.009931:t[10]<=749.5?t[16]<=2710?-.006921:-.0109:t[10]<=938.5?.00463:-.004809:t[10]<=27.5?t[11]<=94.5?.01102:-.006831:t[10]<=43.5?.01439:t[11]<=215900?8575e-7:-.00493,n+=t[3]<=1e-35?t[1]<=114?t[14]<=-1e-35?t[7]<=22.5?t[1]<=48?-.008318:-.008277:.002295:t[14]<=1452?t[14]<=1441?t[16]<=3553?-.008254:-.008121:.008704:t[1]<=96?t[6]<=1e-35?-.008231:-.008249:t[6]<=1e-35?-.008333:-.008263:t[7]<=69.5?t[16]<=6117?t[9]<=294.5?t[12]<=1e-35?-.008647:-.008374:-.006896:-.005032:.008755:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[13]<=18.5?t[8]<=2093?.007496:-.002985:t[7]<=13.5?.004494:-.004393:t[8]<=2084?t[8]<=2047?.005953:.01741:t[13]<=8.5?.01132:.00123:t[14]<=1977?t[8]<=2043?t[8]<=2004?.007193:.01505:t[6]<=1e-35?.009758:.004286:t[9]<=61.5?t[6]<=1e-35?.01213:.002844:t[16]<=9.5?.0126:.01534:t[8]<=2037?t[9]<=167.5?t[16]<=2384?t[7]<=40.5?-.00663:-8882e-7:t[16]<=25730?.006416:-.00711:t[6]<=4.5?t[7]<=1.5?-.00758:4815e-7:.0092:t[7]<=2.5?t[14]<=2548?t[16]<=274.5?-.003229:7483e-7:t[16]<=206.5?.006342:-.00175:t[8]<=2042?t[13]<=15.5?.005088:.02139:t[13]<=12.5?.004522:.001079,r+=t[0]<=118?t[1]<=118?t[16]<=17020?t[4]<=1e-35?t[16]<=469.5?t[15]<=841.5?-.007875:-.00789:-.003216:t[0]<=96?t[5]<=4.35?-.007873:-.007859:t[1]<=114?-.007924:-.007944:t[16]<=18700?.0153:t[0]<=96?t[10]<=380.5?-.007881:-.007903:t[2]<=118?-.007959:-.008013:t[2]<=118?t[2]<=72?t[12]<=118?t[15]<=8997?-.007115:.0103:.03835:t[15]<=896.5?t[4]<=1e-35?.00342:-.007713:t[5]<=2.655?.009922:-.006451:.03522:t[5]<=2.785?t[2]<=114?t[10]<=673.5?t[2]<=96?t[5]<=2.665?.02087:.02618:t[10]<=57.5?.02118:.006531:t[9]<=63.5?t[2]<=96?.001224:.01356:t[9]<=155.5?.02114:.01129:t[1]<=118?.02785:t[2]<=118?t[15]<=481.5?.0193:.01624:t[10]<=187.5?.01037:.02659:t[6]<=8.5?t[1]<=118?.0274:t[0]<=122.5?t[9]<=156.5?.009251:.01627:.02243:t[6]<=12.5?.001849:-.007203,e+=t[0]<=72?t[0]<=48?t[2]<=72?t[14]<=2061?t[13]<=5.5?t[8]<=2027?.009406:.01213:t[15]<=189.5?.01219:.00684:t[6]<=1.5?t[7]<=16.5?-.003753:.01324:t[13]<=15.5?.01154:.002375:t[8]<=2029?t[1]<=48?t[6]<=1.5?.01487:.004437:t[2]<=72?-816e-6:-.009043:t[14]<=1921?t[1]<=96?.01417:.005118:t[6]<=3.5?-.004448:.001709:.01358:t[2]<=72?t[1]<=72?t[14]<=1920?t[13]<=20.5?t[7]<=83.5?-.007255:-.001788:t[14]<=1598?-.001578:.006309:t[8]<=2028?-.00321:-.007533:t[7]<=21.5?t[14]<=1698?t[8]<=2054?-.001613:.005858:t[0]<=114?-.001943:-.007455:t[13]<=9.5?t[2]<=48?.01301:.005359:t[1]<=114?.0039:-.003532:t[14]<=1601?t[1]<=72?t[15]<=5609?t[15]<=749.5?-.006157:-.009691:t[14]<=1535?.003463:-.004763:t[6]<=1e-35?t[7]<=39.5?-3613e-7:-.004747:t[12]<=72?.003498:-.00436:t[6]<=1e-35?t[0]<=96?t[14]<=1977?-.003871:-.006313:t[8]<=19?.001352:-.007819:t[1]<=72?-.00767:t[0]<=96?.00101:-.003913,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.006777:t[1]<=72?t[0]<=48?t[12]<=72?-.00926:.004659:-.01089:t[8]<=2064?.005927:-.008832:t[0]<=96?t[2]<=72?t[1]<=72?t[14]<=1920?.006372:.009764:t[10]<=424.5?.002563:-.00308:t[10]<=30.5?t[2]<=72?.006955:.01041:t[1]<=72?.01013:.00344:t[14]<=1281?-.001249:t[2]<=96?t[8]<=2079?-.008098:-.002905:-.01067:t[2]<=72?t[9]<=55.5?t[14]<=2237?t[10]<=2576?-.009092:1082e-7:t[11]<=60990?t[10]<=490.5?.003107:-.00888:-.00977:t[9]<=65.5?t[8]<=2027?t[8]<=2017?-.008378:789e-6:t[10]<=12.5?.004092:-.007445:t[3]<=1e-35?t[10]<=85.5?.002514:-.004255:t[10]<=238.5?-.006473:-2582e-7:t[2]<=96?t[10]<=1241?t[0]<=118?t[3]<=1e-35?.007591:-7675e-7:t[8]<=2150?-.007806:-.001376:t[3]<=1e-35?.01182:t[0]<=96?-.01186:.004876:t[1]<=96?t[8]<=2026?t[3]<=1e-35?.004129:-.001788:t[0]<=72?-.003225:.01115:t[10]<=83.5?t[2]<=96?-.006958:-.008959:t[12]<=96?-.004068:-.009692,n+=t[3]<=1e-35?t[2]<=96?t[11]<=357.5?t[5]<=2.885?t[5]<=2.855?t[10]<=47.5?-.008075:-.008263:-.006347:t[7]<=64.5?t[15]<=3250?-.008266:-.008435:t[7]<=83.5?.03012:-.008247:t[15]<=1532?t[4]<=1e-35?t[2]<=24?-.008243:-.008329:t[5]<=4.005?-.008244:-.008208:t[7]<=99.5?t[15]<=1716?-.006913:-.008199:t[9]<=181.5?-.008236:.01462:-.003438:t[2]<=96?t[4]<=1e-35?t[11]<=42650?t[11]<=4442?.01099:-2406e-7:t[16]<=255.5?.032:t[8]<=2037?.001932:.01784:t[10]<=57.5?t[9]<=1e-35?t[15]<=119.5?.003876:-.002803:t[16]<=133.5?.006268:.001462:t[8]<=2081?t[9]<=167.5?.004785:.01208:t[5]<=1.125?.0139:.0011:t[5]<=3.695?t[8]<=2083?t[8]<=2014?t[15]<=340.5?.008294:.001406:t[16]<=13.5?.006655:.01106:t[11]<=24920?t[5]<=2.605?.00654:-3753e-7:t[15]<=3135?.005743:-.004374:t[2]<=118?t[7]<=2.5?t[9]<=62.5?.002963:.01169:t[10]<=643.5?.01007:.01529:t[15]<=155.5?t[8]<=2071?-5884e-7:.006445:t[8]<=2098?.01032:.00461,r+=t[2]<=96?t[9]<=59.5?t[10]<=12.5?t[11]<=184.5?.0282:t[11]<=581600?-.007996:.01542:t[11]<=1457e4?t[10]<=60.5?t[8]<=2019?-5805e-7:-.006799:-.007342:t[8]<=2087?-.007885:.01418:t[5]<=3.145?t[11]<=3917e3?t[14]<=2548?t[7]<=37.5?-.003796:-.006871:t[14]<=3450?-6256e-7:.01954:t[15]<=304.5?t[15]<=192.5?-.008006:.02091:t[10]<=41.5?.01434:-.001821:t[7]<=23.5?.02241:-.005387:t[2]<=118?t[9]<=155.5?t[4]<=1e-35?t[14]<=1927?t[9]<=141.5?-.005247:.01189:t[9]<=62.5?.01571:-.008112:t[8]<=2099?t[10]<=225.5?.007089:.001066:t[8]<=2124?.01182:.00326:t[15]<=2378?t[5]<=2.715?t[15]<=1532?.01627:.02607:t[11]<=1868e3?.006259:.01253:t[8]<=2073?t[10]<=127.5?.009929:-.004088:t[11]<=238300?-.001306:.01413:t[5]<=3.405?t[5]<=2.525?t[8]<=2052?.02399:.01301:t[10]<=79.5?t[5]<=3.075?.001946:.02:t[7]<=3.5?.009283:-.004676:t[5]<=3.695?t[5]<=3.475?.0309:t[5]<=3.565?.007144:.02084:t[15]<=841.5?t[7]<=3.5?.007685:-.004411:.02048,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.001801:t[11]<=3281e3?t[15]<=23970?t[13]<=2.5?.007776:.01341:t[10]<=363.5?.01368:5179e-7:.006575:t[3]<=1e-35?t[13]<=7.5?t[1]<=72?t[15]<=854.5?.01167:.008745:t[12]<=1e-35?-.003646:.01121:t[12]<=72?t[10]<=22.5?.004184:.008931:-.008922:t[11]<=109.5?.002064:t[8]<=2037?-.009961:-.007423:t[14]<=1687?t[0]<=96?t[1]<=72?t[12]<=1e-35?t[13]<=12.5?-.007471:-.003138:.00228:t[10]<=41.5?t[13]<=3.5?.01309:-2461e-7:t[8]<=2082?.002388:.006581:t[10]<=41.5?t[13]<=4.5?t[8]<=2107?-.004403:.01074:t[14]<=1077?.001851:-.005919:t[1]<=96?-.007586:t[6]<=2.5?-.001649:.005414:t[10]<=63.5?t[3]<=1e-35?t[13]<=9.5?t[10]<=12.5?.009207:-.003794:t[8]<=2083?-.006606:-.00492:t[13]<=6.5?t[11]<=3281e3?-.004875:.008562:t[8]<=108.5?-2044e-7:-.007865:t[0]<=96?t[1]<=72?t[11]<=87070?-.008195:-.005617:t[8]<=2073?-.001493:.002802:t[8]<=2168?t[12]<=96?-.005207:-.009643:t[10]<=335.5?-.002158:.005487,
i+=t[1]<=96?t[2]<=72?t[10]<=1241?t[13]<=22.5?t[14]<=1598?t[16]<=1989?2418e-7:.006908:t[2]<=24?.007724:.003787:t[11]<=7448e3?t[1]<=48?.002514:-.001225:.01145:t[13]<=11.5?t[5]<=2.745?t[1]<=72?-.01005:-.005591:.00318:t[1]<=72?t[11]<=864600?-.01062:.005552:t[14]<=1598?-.005213:.001602:t[5]<=1.01?t[1]<=72?t[14]<=1464?t[14]<=1181?.009192:6518e-7:t[9]<=56.5?.006422:-.005998:t[2]<=114?t[10]<=61.5?.01051:.005047:t[9]<=60.5?.003712:.008432:t[2]<=96?t[14]<=1721?t[13]<=11.5?3201e-8:.002488:t[9]<=118.5?.002995:.006806:t[1]<=72?-.008298:t[10]<=65.5?.008496:-.00401:t[2]<=96?t[2]<=72?t[13]<=3.5?t[16]<=11920?t[14]<=2758?-.008555:.006966:.002528:t[1]<=96?t[10]<=22.5?-.001075:-.005557:t[11]<=24.5?.005264:-.006888:t[10]<=1241?t[15]<=812.5?t[1]<=96?.00773:-4912e-7:-.00626:t[16]<=1e-35?t[15]<=116.5?.003525:.009836:.003082:t[5]<=3.565?t[13]<=7.5?-.003018:t[15]<=8218?-.00568:.00273:-.009334,n+=t[3]<=1e-35?t[0]<=114?t[7]<=1e-35?t[14]<=1537?t[9]<=144.5?t[13]<=15.5?-.008273:-.005712:t[9]<=147.5?.009397:-.008284:t[1]<=96?t[0]<=48?-.008276:-.008204:t[1]<=96?-.008322:-.008491:t[0]<=96?t[10]<=1e-35?t[0]<=48?-.008261:-.008192:t[1]<=118?-.008237:-.008354:-.007118:t[7]<=64.5?t[14]<=1537?-.002401:-.008801:.01524:t[0]<=118?t[0]<=96?t[1]<=96?t[6]<=1e-35?t[14]<=1271?.009484:-.007965:t[1]<=72?-.007986:-5113e-7:t[0]<=72?t[10]<=281.5?.008855:.02395:.0224:t[1]<=96?t[13]<=5.5?t[7]<=94.5?.01836:.007491:t[10]<=275.5?.02301:.0178:t[10]<=50.5?t[13]<=4.5?.00478:.01332:t[8]<=2027?.01287:.007533:t[7]<=2.5?t[13]<=16.5?t[0]<=122.5?t[1]<=118?-.007133:.002057:-.005343:t[6]<=1e-35?t[10]<=30.5?-.008106:-.004807:t[9]<=280.5?-.004865:.005884:t[10]<=206.5?t[14]<=2196?t[8]<=2030?-.00549:.003973:t[9]<=83.5?.001052:-.006322:t[1]<=114?.01778:t[7]<=12.5?.007302:.002351,r+=t[1]<=118?t[1]<=114?t[16]<=17020?t[13]<=1e-35?.003151:-.007742:t[11]<=1457e4?t[5]<=3.99?-.007891:.02212:.0159:t[11]<=411e4?t[13]<=5.5?t[7]<=1e-35?t[11]<=24.5?.01857:-.004523:t[5]<=3.485?-.007407:.002114:t[5]<=3.085?t[1]<=114?-8217e-7:-.006475:t[10]<=171.5?.01737:-.004549:t[15]<=1007?t[16]<=350.5?-.007968:t[16]<=987.5?.03115:.0114:t[14]<=2548?-.007994:.003933:t[13]<=9.5?t[5]<=2.965?t[15]<=3250?t[16]<=274.5?t[7]<=55.5?.01935:.01098:t[10]<=204.5?.01763:.00648:2282e-7:t[16]<=16.5?t[5]<=3.245?t[10]<=163.5?.01189:-.006282:t[5]<=3.485?.02036:.01307:t[7]<=85.5?t[11]<=313e3?-.008974:-.00274:.01377:t[7]<=24.5?t[15]<=481.5?t[15]<=334.5?t[7]<=2.5?.0192:.01459:t[16]<=99.5?.02618:.01883:t[15]<=725.5?t[10]<=161.5?-.004922:.011:t[7]<=14.5?.01698:.02377:t[14]<=2196?t[5]<=2.775?t[5]<=2.705?.01136:.02755:t[7]<=96.5?-.002917:.01089:t[16]<=534.5?t[7]<=98.5?.018:.02659:t[5]<=3.745?.005075:.01803,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.001806:t[12]<=72?t[4]<=1e-35?.008121:.01334:t[10]<=966.5?.01397:-.00335:t[2]<=72?t[9]<=74.5?t[14]<=2548?t[7]<=6.5?.008723:.012:t[13]<=7.5?.005989:-.004178:t[14]<=1553?.009175:t[7]<=3.5?-8221e-7:.005654:t[2]<=122.5?t[12]<=72?t[10]<=115.5?.002734:-.005717:-.009916:t[12]<=1e-35?t[14]<=2196?.004024:-.001709:.0168:t[2]<=72?t[10]<=3708?t[1]<=72?t[12]<=1e-35?t[13]<=22.5?-.00768:-.004066:-1189e-7:t[1]<=96?t[7]<=29.5?-6752e-9:.0057:t[10]<=281.5?-.005671:.002016:t[14]<=1698?t[2]<=48?.01442:t[16]<=16.5?.01094:.006272:t[7]<=1.5?-.006755:t[13]<=11.5?.00745:.002195:t[10]<=39.5?t[7]<=15.5?t[13]<=4.5?t[16]<=173.5?-.004298:.003265:t[0]<=114?-.00529:-.008292:t[10]<=21.5?-.008955:t[14]<=1460?.00534:-.006105:t[0]<=96?t[1]<=72?t[7]<=38.5?-.00867:-.004582:t[12]<=72?.001781:-.00618:t[14]<=1598?t[1]<=96?-.00733:-1773e-7:t[9]<=143.5?-.0043:-.007439,i+=t[1]<=96?t[0]<=72?t[12]<=72?t[1]<=72?t[13]<=2.5?-.003621:t[4]<=1e-35?-.005959:-.01069:t[14]<=1438?.009776:t[12]<=1e-35?-.003358:-.01246:t[0]<=48?.009305:-.01053:t[0]<=96?t[14]<=1687?t[1]<=72?t[12]<=1e-35?.008319:.002289:t[5]<=1.01?.004148:253e-6:t[5]<=2.765?t[1]<=72?.009266:.003216:t[14]<=1947?.006982:.008987:t[7]<=94.5?t[5]<=2.885?t[16]<=149.5?-.009453:-.003631:-.01075:t[13]<=7.5?t[5]<=2.815?-.006507:.00845:-.007547:t[0]<=118?t[6]<=6.5?t[3]<=1e-35?t[13]<=7.5?t[4]<=1e-35?-.00612:.004379:t[12]<=72?-2797e-8:.01137:t[12]<=96?t[16]<=39.5?-.004006:-.005357:-.008606:t[5]<=2.435?t[13]<=15.5?t[3]<=1e-35?-.009779:-.002508:t[16]<=335.5?-.009874:-2549e-7:t[1]<=118?t[6]<=13.5?-.004318:.004388:.007828:t[7]<=28.5?t[13]<=8.5?t[5]<=1.995?-.007744:t[7]<=2.5?.003825:-.004099:t[7]<=2.5?-.009205:-.00758:t[14]<=2243?t[0]<=122.5?t[5]<=3.255?-.00378:-.007653:-.009025:t[1]<=118?.001592:-.00744,n+=t[3]<=1e-35?t[14]<=-1e-35?t[9]<=74.5?t[5]<=2.575?t[5]<=2.335?-.008284:-.008257:-.008412:.02003:t[2]<=114?t[14]<=1708?t[9]<=237.5?t[7]<=1e-35?-.007613:-.00819:t[7]<=99.5?-.008106:.01038:t[4]<=1e-35?t[2]<=24?-.008234:-.008314:t[5]<=2.855?-.008231:-.008191:-.00525:t[2]<=96?t[5]<=6.5?t[7]<=64.5?t[5]<=2.895?t[9]<=61.5?.004649:.01066:t[9]<=294.5?.008066:.01715:t[14]<=1513?t[15]<=504.5?.002769:-.007738:t[15]<=2503?.004753:.01567:t[4]<=1e-35?.0158:t[14]<=2463?t[15]<=127.5?.004633:-9109e-7:t[7]<=1.5?-.007292:.006336:t[5]<=3.925?t[16]<=17.5?t[6]<=2.5?t[14]<=2348?.004072:.008068:t[15]<=257.5?.005895:-.001877:t[11]<=664.5?t[6]<=1e-35?.01209:.02167:t[9]<=167.5?.006683:.01083:t[2]<=118?t[7]<=4.5?t[15]<=137.5?.01587:.006716:t[9]<=164.5?.01313:.01562:t[11]<=4223e3?t[9]<=71.5?.006798:.009597:t[15]<=1007?-.003918:.005415,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[0]<=48?t[16]<=2315?-.007877:-.005852:t[5]<=4.005?-.007864:-.007848:t[7]<=9.5?t[1]<=114?-.007931:-.007955:t[10]<=1394?-.007928:-.007908:t[16]<=17020?-.007903:.008939:t[3]<=1e-35?t[1]<=118?t[2]<=24?t[11]<=1457e4?-.007866:-.008047:-.007913:-.008056:t[0]<=114?t[11]<=3406e3?t[14]<=1698?.003478:.01334:.02343:t[14]<=1709?.007008:t[14]<=2034?-.006692:-.006604:t[10]<=302.5?t[7]<=47.5?t[5]<=2.295?t[16]<=17.5?.02513:t[10]<=56.5?.01623:.02164:t[14]<=1370?t[16]<=15.5?.01026:-.002987:t[0]<=122.5?.01613:.02106:t[2]<=96?t[5]<=2.965?t[6]<=1.5?.005402:.02282:t[10]<=63.5?.004025:-.006702:t[5]<=3.315?t[14]<=2293?.007173:.01804:t[10]<=143.5?.01745:.02782:t[14]<=1682?t[7]<=5.5?.009046:t[5]<=2.815?.007298:t[10]<=555.5?-.004052:-.007555:t[16]<=36.5?t[2]<=114?t[5]<=3.315?.01675:.02802:t[10]<=458.5?.01652:.006135:t[16]<=67.5?-.009063:t[10]<=840.5?.008473:.02224,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[2]<=72?t[12]<=72?t[7]<=5.5?.008274:.01163:-.00288:t[8]<=2027?t[8]<=2016?.004842:-.003201:t[6]<=1e-35?.001009:.007862:t[4]<=1e-35?t[8]<=2177?t[8]<=2037?-.009969:-.00838:-.003809:t[10]<=991.5?t[10]<=153.5?.003574:.01204:-.003733:t[8]<=21.5?.007602:.01326:t[2]<=72?t[10]<=12.5?t[3]<=1e-35?t[13]<=5.5?t[2]<=48?.01418:.009635:t[8]<=2022?.00105:.00713:t[13]<=11.5?t[2]<=24?.01435:.003563:t[7]<=58.5?-.005399:.001589:t[7]<=17.5?t[12]<=1e-35?t[0]<=96?-.002997:-.00774:t[12]<=72?.01046:-.007532:t[6]<=1e-35?t[0]<=114?.005958:-.003966:t[12]<=72?-.0013:-.007379:t[10]<=16.5?t[7]<=2.5?t[13]<=5.5?t[8]<=2078?-.003412:.002384:t[0]<=96?-.004906:-.008037:t[8]<=19?.0112:t[7]<=60.5?-.00818:-.009197:t[3]<=1e-35?t[12]<=72?t[12]<=1e-35?4781e-7:.01043:t[7]<=96.5?-.008074:-.005595:t[12]<=72?t[12]<=1e-35?-.004074:.005263:t[8]<=2171?-.00864:-.001908,i+=t[3]<=1e-35?t[4]<=1e-35?t[2]<=48?t[7]<=5.5?t[14]<=2548?t[10]<=87.5?-.002794:-.007863:t[8]<=2099?-.001187:.01168:t[5]<=1.995?-.009157:.002545:t[8]<=2026?t[8]<=2016?t[11]<=6136?-.007304:.002922:t[8]<=2021?.009483:.002669:t[14]<=2034?t[2]<=72?-.004161:.003196:t[15]<=616.5?-6317e-7:.005497:t[2]<=72?t[10]<=5265?t[12]<=72?t[12]<=1e-35?.002646:-.004771:t[7]<=13.5?.01223:.004465:t[14]<=1601?t[11]<=2792e3?-.008777:5877e-7:t[7]<=98.5?-.002525:-.007033:t[5]<=2.845?t[12]<=72?t[8]<=2075?.003173:3087e-9:.009351:t[7]<=25.5?t[8]<=2080?.006854:.00348:t[8]<=19?-.009533:.009134:t[2]<=96?t[2]<=72?t[15]<=334.5?-.007397:t[10]<=20.5?.003674:t[12]<=72?-.00518:.003305:t[5]<=3.885?t[7]<=48.5?-.004686:t[15]<=141.5?.006348:-.001972:t[4]<=1e-35?-.01173:t[12]<=96?.005674:-.007102:t[5]<=3.435?t[12]<=96?t[12]<=72?-.004263:.005132:-.00923:t[7]<=13.5?t[15]<=8218?t[11]<=53980?-.005088:-.007024:-.002094:-.00843,
n+=t[3]<=1e-35?t[13]<=29.5?t[2]<=114?t[11]<=2195e3?t[14]<=1452?t[14]<=1441?-.008205:.007809:t[4]<=1e-35?-.008263:-.008198:t[11]<=224e4?t[9]<=144.5?-.008227:.01249:t[15]<=3135?-.008223:-.00763:-.004547:t[15]<=5866?t[11]<=5389e3?t[4]<=1e-35?t[2]<=48?-.008287:-.008326:t[14]<=1464?-.008305:-.008208:-.005811:.002164:t[2]<=96?t[8]<=2082?t[4]<=1e-35?t[9]<=256.5?t[15]<=334.5?-8762e-7:.01702:.02762:t[11]<=890500?t[6]<=1e-35?.005213:.009234:t[15]<=2503?-7776e-7:.01318:t[8]<=2091?t[9]<=156.5?t[6]<=2.5?-.003813:-.009489:t[7]<=50.5?-.006137:.009076:t[11]<=5912?t[15]<=300.5?.01241:.002392:t[6]<=11.5?.001622:.01731:t[6]<=1e-35?t[7]<=60.5?t[2]<=118?t[14]<=3427?.00833:.02388:t[13]<=29.5?.002781:.01548:t[2]<=118?t[2]<=114?.01217:.01543:t[13]<=26?.01099:.003555:t[8]<=2080?t[14]<=1438?t[7]<=2.5?.002612:-.00542:t[15]<=119.5?.002021:.00981:t[13]<=3.5?t[8]<=2107?.002003:-.00444:t[14]<=1362?.01646:.004886,r+=t[0]<=118?t[1]<=118?t[0]<=96?t[5]<=4.35?t[3]<=1e-35?-.007859:-.007885:t[3]<=1e-35?t[7]<=3.5?-.007853:-.007838:-.007874:t[7]<=34.5?t[1]<=114?-.007926:-.007949:t[10]<=578.5?-.007925:-.007905:t[3]<=1e-35?t[7]<=99.5?t[15]<=3135?t[1]<=118?-.007884:-.008044:t[15]<=3250?.01903:-.0079:t[10]<=673.5?-.007866:.05009:t[15]<=1041?t[13]<=5.5?-.002391:t[5]<=.49?.02104:.009901:t[12]<=96?t[15]<=9804?-.005311:.004987:.02917:t[7]<=23.5?t[13]<=6.5?t[15]<=340.5?.003969:t[15]<=683.5?.0206:t[15]<=2134?1199e-7:.01317:t[13]<=16.5?t[5]<=2.295?t[15]<=222.5?.02506:.01879:t[1]<=118?.02284:.01485:t[7]<=15.5?t[7]<=1.5?.01987:.01645:.02499:t[10]<=202.5?t[15]<=340.5?t[5]<=3.325?t[5]<=2.965?.01083:-8867e-7:.02172:t[13]<=18.5?t[7]<=83.5?.01712:.01007:t[15]<=694.5?.02224:.01552:t[15]<=226.5?t[5]<=2.765?.03015:t[7]<=88.5?.02128:.001602:t[15]<=2075?t[9]<=143.5?-.003639:.01043:t[7]<=83.5?.01048:.02095,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.004947:t[11]<=3281e3?.01288:.005499:t[13]<=9.5?t[6]<=5.5?t[15]<=239.5?t[1]<=96?.01021:-.009224:t[16]<=635.5?.006904:.002751:t[16]<=7258?t[11]<=7448e3?.01188:7676e-7:.004496:t[6]<=3.5?t[7]<=4.5?t[14]<=1927?.003684:-.00105:t[15]<=643.5?-381e-6:-.007472:t[16]<=741.5?.01058:t[10]<=145.5?.008631:-.002328:t[0]<=96?t[14]<=1711?t[1]<=72?t[13]<=20.5?t[11]<=2342?-979e-6:-.008268:t[11]<=69860?-.004813:.001759:t[5]<=1.125?t[14]<=1425?.002585:-.002333:t[6]<=2.5?.003295:.00797:t[5]<=2.755?t[1]<=72?t[15]<=825.5?-.005012:-.008683:t[13]<=5.5?.00378:-.002198:t[13]<=4.5?t[1]<=72?-.007553:.002162:t[14]<=1947?-.004024:-.006267:t[5]<=1.855?t[14]<=1627?t[16]<=2629?t[1]<=118?-.004484:-.007964:-.001596:t[13]<=4.5?-.003273:-.008054:t[14]<=1920?t[7]<=18.5?t[0]<=122.5?-.003746:-.01022:t[1]<=96?-.007039:36e-5:t[7]<=94.5?t[13]<=6.5?-.001075:-.006401:t[13]<=29.5?-.004893:-5091e-7,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.005826:t[1]<=72?t[0]<=48?t[10]<=420.5?-.009884:-.001354:-.01069:t[5]<=2.505?.005716:-.00548:t[0]<=96?t[14]<=1711?t[1]<=72?t[9]<=233.5?.01006:.00527:t[5]<=1.125?.004882:405e-6:t[9]<=115.5?t[5]<=2.725?.003403:.006794:t[10]<=532.5?.009121:.005917:t[7]<=90.5?t[10]<=28.5?-.004457:t[10]<=320.5?-.01102:-.007333:t[14]<=2548?t[5]<=2.925?-.009795:-.001355:.003954:t[0]<=118?t[5]<=1.575?t[7]<=6.5?t[9]<=115.5?t[10]<=24.5?-9979e-7:-.005419:t[1]<=96?.002775:-.007427:t[9]<=200.5?t[3]<=1e-35?-.009255:-.002012:.005809:t[3]<=1e-35?t[0]<=72?t[9]<=119.5?-.003286:.002758:t[7]<=98.5?.01045:.002369:t[0]<=114?t[5]<=3.335?-.003455:-.006022:t[14]<=1442?.002509:-.00378:t[9]<=147.5?t[0]<=122.5?t[14]<=1709?t[9]<=83.5?-.003651:-.009304:t[9]<=143.5?-.006602:-.002346:t[5]<=2.245?t[16]<=26.5?-.01027:-.004259:-.01015:t[7]<=6.5?-.009627:t[10]<=125.5?-.009885:t[15]<=3842?-.006252:.002409,n+=t[3]<=1e-35?t[13]<=29.5?t[2]<=114?t[14]<=1537?t[7]<=1e-35?t[9]<=144.5?-.007819:-.003367:t[12]<=114?-.008168:-.006975:t[4]<=1e-35?t[2]<=24?-.008218:-.008298:t[15]<=5866?-.008199:-.008139:-.004515:t[7]<=99.5?t[6]<=18.5?t[4]<=1e-35?t[2]<=96?-.00829:-.00832:t[14]<=1464?-.008296:-.008203:-.005687:.002161:t[2]<=96?t[8]<=2082?t[4]<=1e-35?t[9]<=256.5?t[15]<=334.5?-8977e-7:.01665:.0269:t[12]<=72?t[13]<=29.5?.004739:.01508:t[15]<=1801?.007165:.01844:t[8]<=2091?t[9]<=156.5?t[6]<=2.5?-.003796:-.009478:t[7]<=50.5?-.006121:.008964:t[6]<=11.5?t[2]<=72?.006038:9424e-7:.01749:t[6]<=1e-35?t[7]<=60.5?t[2]<=118?t[14]<=3427?.008197:.02338:t[13]<=29.5?.002738:.01522:t[2]<=118?t[2]<=114?.01196:.01517:t[13]<=26?.0108:.003492:t[8]<=2080?t[14]<=1438?t[7]<=2.5?.002558:-.005406:t[15]<=119.5?.001979:.00965:t[13]<=3.5?t[8]<=2107?.001965:-.00443:t[14]<=1550?.01023:.004121,r+=t[0]<=118?t[1]<=118?t[0]<=96?t[3]<=1e-35?t[11]<=1457e4?t[9]<=135.5?-.007853:-.007847:t[16]<=17020?-.007875:-.007962:t[0]<=48?t[13]<=7.5?-.007889:-.007952:t[0]<=72?-.007857:-.00788:t[2]<=118?t[13]<=5.5?t[2]<=96?-.007898:-.007908:t[1]<=114?-.007913:-.007937:t[11]<=4875e3?t[1]<=114?-.007929:-.007948:-.008017:t[3]<=1e-35?t[11]<=1457e4?t[16]<=29960?t[1]<=118?-.007879:-.008044:t[16]<=32180?.02622:-.007905:t[9]<=63.5?-.007956:.02843:t[14]<=1441?t[16]<=224.5?-.008412:-.005188:t[9]<=294.5?t[13]<=7.5?-8104e-7:.0181:t[11]<=3597?.01023:-.006887:t[0]<=122.5?t[14]<=1708?t[6]<=1.5?t[16]<=741.5?t[2]<=72?.003141:.01589:t[14]<=1495?.01123:7866e-7:t[16]<=145.5?t[6]<=3.5?-.005336:-.008754:t[13]<=12.5?1865e-7:.01717:t[1]<=118?t[16]<=261.5?.01634:.0286:t[6]<=8.5?t[13]<=6.5?.007601:.01535:-.001022:t[13]<=10.5?t[11]<=9310?.009544:t[16]<=456.5?.02206:.01646:t[9]<=60.5?.02406:t[9]<=155.5?.01363:.02146,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.002714:t[4]<=1e-35?.008852:t[12]<=72?.0131:t[0]<=48?-7905e-7:.01331:t[9]<=89.5?t[5]<=1.34?t[12]<=72?t[14]<=2548?.01014:.002238:-.007614:t[16]<=16.5?t[14]<=2196?.009115:-.002298:t[10]<=478.5?-.007555:.003757:t[1]<=72?t[11]<=2779?t[14]<=1535?.01273:.002912:t[14]<=1721?.00184:-.002421:t[5]<=.995?.01569:.002238:t[0]<=96?t[14]<=1780?t[1]<=72?t[9]<=233.5?t[11]<=2908?-5358e-7:-.007131:t[5]<=2.475?-.006143:6202e-8:t[5]<=1.125?t[14]<=1409?.002337:-.002075:t[12]<=72?.003861:-.00461:t[5]<=2.765?t[1]<=72?t[9]<=120.5?-.008927:-.004729:t[9]<=121.5?.001831:-.003607:t[9]<=100.5?t[16]<=1.5?-.00456:-.002189:t[12]<=1e-35?-.00711:-.00284:t[5]<=1.995?t[14]<=1921?t[9]<=111.5?t[15]<=10650?-.005934:.003502:-.007936:-.008458:t[9]<=144.5?t[1]<=96?t[1]<=48?-.01015:-.006693:t[12]<=72?-.002339:-.00796:t[14]<=1741?t[11]<=9665?-9933e-7:-.005814:t[9]<=224?-.007343:-.009272,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.004314:t[1]<=72?t[11]<=7448e3?t[4]<=1e-35?-.005967:-.01048:-.001911:t[9]<=57.5?.006968:t[8]<=2018?-7013e-7:-.01224:t[0]<=96?t[14]<=1780?t[1]<=72?t[9]<=233.5?.008911:.005878:t[5]<=1.125?.004756:9654e-7:t[5]<=2.765?t[1]<=72?.009405:.00358:t[9]<=100.5?.006801:.009348:t[1]<=72?t[7]<=90.5?t[10]<=299.5?-.009476:-.003411:6589e-7:t[11]<=6136?-.003784:-.01071:t[0]<=118?t[5]<=1.34?t[7]<=6.5?t[14]<=2758?t[9]<=118.5?-.005202:-.001074:.0114:t[9]<=206?t[13]<=11.5?-.009352:-.005243:.00752:t[1]<=96?t[4]<=1e-35?t[8]<=2026?.001074:-.003526:.01034:t[8]<=2043?t[11]<=6351?-.007786:-.005008:t[5]<=3.305?-.001643:-.004625:t[9]<=147.5?t[8]<=2152?t[0]<=122.5?t[7]<=2.5?-.007881:-.005297:t[5]<=1.995?-.00799:-.01063:t[10]<=93.5?t[9]<=118.5?-.006837:-.0023:t[9]<=111.5?.003271:-.005016:t[7]<=3.5?t[8]<=2012?-.007206:-.009868:t[10]<=125.5?-.009571:t[7]<=12.5?-.001151:-.006868,n+=t[3]<=1e-35?t[1]<=114?t[14]<=-1e-35?t[15]<=219.5?.01279:t[15]<=323.5?-.008291:t[15]<=777.5?-.008219:-.008245:t[7]<=1e-35?t[14]<=1546?t[9]<=144.5?-.007749:-.002994:t[1]<=96?-.008174:-.008294:t[1]<=96?t[5]<=4.005?-.008207:-.008168:-.007084:t[7]<=69.5?t[10]<=434.5?t[9]<=300.5?t[16]<=24.5?-.008558:-.008332:-.006044:-.003438:.009788:t[1]<=118?t[1]<=96?t[10]<=54.5?t[9]<=161.5?t[15]<=222.5?-.006753:.00471:t[5]<=3.065?-.005457:.01755:t[8]<=2038?t[10]<=707.5?-.005186:.01108:t[8]<=2083?.01473:.003477:t[10]<=79.5?t[14]<=2237?t[1]<=114?.01237:.009539:t[1]<=96?.009042:.01414:t[14]<=1682?t[8]<=2035?.008901:9688e-7:t[8]<=2084?.01054:.006282:t[10]<=343.5?t[5]<=2.325?t[16]<=89.5?t[7]<=5.5?.004098:-.005954:t[15]<=977.5?-.004507:-.008667:t[5]<=2.665?t[8]<=2038?.00146:.0121:t[7]<=96.5?3599e-7:.00368:t[16]<=1930?t[5]<=3.275?t[9]<=62.5?.003706:.01542:t[5]<=3.755?-.004358:.01413:t[9]<=65.5?.00258:-.006004,
r+=t[1]<=118?t[3]<=1e-35?t[16]<=29960?t[8]<=2158?t[1]<=96?-.007846:-.007877:t[15]<=3135?-.007852:t[6]<=9.5?-.007872:.0331:t[7]<=98.5?-.007881:.02499:t[4]<=1e-35?t[15]<=1041?t[16]<=4.5?-449e-6:t[16]<=38.5?.02402:.01146:t[5]<=2.905?t[13]<=7.5?.006264:-.004389:.01858:t[1]<=114?t[13]<=2.5?.01208:t[16]<=1761?-.0077:-.003017:t[16]<=238.5?t[5]<=3.325?-.006225:.00287:t[5]<=3.165?4872e-7:.01777:t[7]<=54.5?t[13]<=8.5?t[5]<=2.315?t[7]<=2.5?t[16]<=1930?.01631:.001884:t[5]<=1.68?.02691:.0179:t[8]<=2141?t[15]<=2134?.005508:.02:-.007164:t[3]<=1e-35?t[13]<=22.5?t[5]<=2.245?-.007555:.009355:.02101:t[12]<=118?t[15]<=226.5?.01796:.01502:.02434:t[5]<=3.795?t[13]<=12.5?t[8]<=2042?t[16]<=97.5?.005782:.02268:t[8]<=2159?-.001933:.01463:t[16]<=29.5?.01643:t[8]<=2091?-5109e-7:.01483:t[8]<=2082?t[5]<=3.815?t[8]<=2071?.01419:.005719:-.002441:t[12]<=1e-35?t[16]<=501.5?.01703:.007136:.02871,e+=t[2]<=72?t[3]<=1e-35?t[2]<=24?t[9]<=89.5?t[16]<=2.5?t[15]<=561.5?.01168:.008133:t[10]<=896.5?.006779:.01309:t[10]<=299.5?t[11]<=7561?.006048:-.003668:t[16]<=124.5?.01524:.004097:t[10]<=13.5?t[9]<=166.5?t[16]<=55.5?.01043:.00595:3936e-7:t[16]<=12.5?t[15]<=167.5?.008348:.003051:t[10]<=414.5?-6944e-7:.004246:t[10]<=363.5?t[9]<=60.5?t[11]<=89680?t[15]<=180.5?.006179:-8659e-7:-.005068:-.00681:t[16]<=3.5?t[11]<=805100?.005414:.0158:t[12]<=1e-35?t[6]<=1e-35?.001123:-.004911:.01001:t[3]<=1e-35?t[6]<=1e-35?t[10]<=16.5?t[8]<=68?.01058:t[13]<=2.5?.005422:-.006451:t[8]<=2078?t[9]<=141.5?-1389e-7:-.004639:t[12]<=72?.003407:-.003759:t[9]<=141.5?t[12]<=72?t[12]<=1e-35?.002902:.01351:-.00568:t[11]<=6351?t[8]<=2073?-4867e-7:.00415:t[12]<=72?-.002618:-.00947:t[10]<=17.5?t[13]<=6.5?t[8]<=2167?-.004707:.007576:t[11]<=1e-35?.003595:-.007329:t[9]<=144.5?t[12]<=72?t[12]<=1e-35?-.002641:.006257:-.007791:-.006263,i+=t[1]<=96?t[2]<=72?t[6]<=1e-35?t[10]<=2576?t[16]<=10.5?t[1]<=72?-.00685:-1592e-7:t[12]<=72?.001089:.00972:t[2]<=24?-.01082:t[1]<=72?-.009374:-.0033:t[12]<=1e-35?t[3]<=1e-35?t[13]<=42?.006112:.002624:t[13]<=12.5?.004809:-.005085:t[12]<=72?-.008536:.005521:t[1]<=72?t[6]<=3.5?t[14]<=1211?.007186:t[8]<=2052?-.007354:-.001906:t[15]<=144.5?-.004754:.006449:t[10]<=47.5?t[6]<=1e-35?t[8]<=68?-.005199:.00962:t[13]<=5.5?.0018:.007212:t[12]<=72?t[14]<=1997?.001282:.005086:.00891:t[2]<=96?t[2]<=72?t[16]<=1e-35?t[2]<=1e-35?t[15]<=4027?-.004504:.002338:t[14]<=2758?-.008518:.00585:t[1]<=96?t[8]<=2027?5196e-7:-.003649:t[1]<=118?-.005104:-.008263:t[10]<=1241?t[12]<=24?t[1]<=118?-4338e-7:-.005928:t[15]<=2563?.005851:-.007866:t[13]<=26?t[14]<=2281?.004307:-.001795:t[15]<=119.5?.002334:.008858:t[10]<=23.5?-.009508:t[12]<=96?t[1]<=96?.006839:t[8]<=2042?-.006399:-.003628:-.008359,n+=t[3]<=1e-35?t[0]<=114?t[7]<=1e-35?t[14]<=1537?t[16]<=37.5?t[16]<=33.5?-.007114:.01253:t[16]<=3553?-.008238:-.007917:t[0]<=48?t[14]<=2196?-.008279:-.008295:t[16]<=2.5?-.008185:-.008163:t[0]<=96?t[5]<=4.005?t[2]<=96?-.0082:-.008373:t[2]<=72?-.008198:-.008143:-.006269:t[7]<=64.5?t[10]<=424.5?-.00857:-.002298:.01319:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[16]<=1.5?t[2]<=96?.02225:.02046:t[7]<=53.5?.008504:.02126:t[5]<=3.825?t[5]<=2.925?-8212e-7:-.006543:t[10]<=111.5?.02364:-8817e-7:t[2]<=96?t[7]<=93.5?t[10]<=3708?.01226:.00663:t[14]<=1827?-.00155:.006865:t[5]<=3.325?t[16]<=12.5?.005933:.01228:t[7]<=2.5?.01199:.01609:t[7]<=84.5?t[0]<=126.5?t[5]<=2.325?t[10]<=87.5?-.006382:-8054e-7:t[14]<=1601?.003599:-7924e-8:-.005567:t[10]<=343.5?t[2]<=96?t[14]<=2178?-.003806:.002874:t[14]<=2136?.006307:.001727:t[16]<=1e-35?.02183:t[16]<=7.5?-.005993:.01052,r+=t[1]<=118?t[1]<=114?t[2]<=118?t[9]<=163.5?t[12]<=118?t[2]<=114?-.007855:-.007749:t[10]<=249.5?-.00789:-.002426:t[1]<=72?t[6]<=71.5?-.00785:.00479:t[6]<=1.5?-.007861:-.004815:t[11]<=599e4?t[8]<=2004?.0117:t[11]<=1494?-.005553:-.007936:.02148:t[11]<=411e4?t[5]<=3.085?t[2]<=118?t[12]<=48?-.006757:-1375e-7:t[8]<=2105?-.00299:.002009:t[8]<=2033?.02312:t[9]<=294.5?.003305:-.008032:t[9]<=61.5?t[5]<=2.885?t[11]<=1457e4?-.007084:.01316:.02544:t[8]<=2037?.02382:t[9]<=237.5?-.006677:.01848:t[10]<=202.5?t[12]<=118?t[12]<=1e-35?t[6]<=7.5?t[9]<=30.5?.001517:.01487:.02532:t[12]<=96?t[10]<=50.5?.01095:-.008292:.01323:.02317:t[7]<=53.5?t[9]<=118.5?t[6]<=3.5?t[10]<=490.5?.01421:.006461:-.001326:t[7]<=15.5?t[8]<=2102?.009489:.01901:.02271:t[7]<=97.5?t[6]<=1e-35?.007684:t[5]<=2.875?.00341:-.006406:t[8]<=2089?t[11]<=392900?-.006367:.00924:t[11]<=209500?.02636:.006519,e+=t[2]<=72?t[5]<=1.995?t[3]<=1e-35?t[7]<=6.5?t[4]<=1e-35?t[10]<=60.5?.00577:.009727:t[10]<=991.5?-.001085:.006432:t[16]<=73.5?t[2]<=48?.01212:.009323:t[9]<=90.5?.009247:.002521:t[5]<=1.425?-.006964:t[13]<=10.5?.007074:-3087e-7:t[16]<=113.5?t[3]<=1e-35?t[15]<=174.5?.007007:t[2]<=24?.007948:.00205:t[7]<=17.5?t[8]<=2073?-.007947:2293e-7:t[15]<=141.5?.007606:-2958e-7:t[7]<=98.5?t[7]<=1.5?.004485:t[10]<=302.5?-.004351:-4706e-7:t[8]<=2064?.0139:-2509e-7:t[3]<=1e-35?t[4]<=1e-35?t[8]<=2027?t[8]<=2016?t[8]<=2011?.001474:.00986:t[15]<=292.5?403e-6:-.00608:t[13]<=9.5?t[8]<=2083?.01195:.006908:t[15]<=249.5?.007566:.00265:t[5]<=2.925?t[9]<=67.5?t[8]<=2033?4621e-7:.003417:t[8]<=2078?-.002646:.001241:t[7]<=15.5?t[8]<=2080?-.003157:6089e-7:t[10]<=1837?-.003403:-.006831:t[5]<=3.355?t[9]<=147.5?t[15]<=100.5?t[9]<=76.5?-.00442:.00352:t[10]<=115.5?-.004935:-.001818:-.006114:t[13]<=6.5?-.003468:-.007131,i+=t[1]<=96?t[1]<=72?t[11]<=108100?t[10]<=653.5?t[3]<=1e-35?t[11]<=3313?-.002509:.002181:t[15]<=334.5?-.01043:-.004457:t[14]<=837?.01021:t[3]<=1e-35?-.005666:-.01016:t[3]<=1e-35?t[15]<=82.5?-.009446:t[10]<=1241?.006372:7792e-7:t[15]<=1057?t[13]<=15.5?-.01091:-.00227:t[13]<=5.5?.007382:-.003906:t[10]<=23.5?t[14]<=1682?t[13]<=2.5?-.005729:t[14]<=1419?.002356:.005068:t[13]<=4.5?t[11]<=1298e3?.004759:-.003603:t[16]<=14170?.00786:.001166:t[14]<=1997?t[8]<=2035?t[8]<=2004?-.001105:.005186:t[14]<=1535?-.002071:.00156:t[13]<=4.5?t[10]<=111.5?.007048:.002823:.00682:t[1]<=118?t[15]<=249.5?t[4]<=1e-35?t[16]<=1e-35?-.009291:t[8]<=2027?-6729e-7:-.006866:t[3]<=1e-35?.00942:t[8]<=2025?-.006506:-.003653:t[3]<=1e-35?t[9]<=89.5?t[10]<=32.5?-.001126:-.006215:t[11]<=7080?7905e-9:.005387:t[9]<=190?t[8]<=2067?-.005213:-.002955:-.006132:t[9]<=147.5?t[8]<=2139?t[16]<=1432?t[3]<=1e-35?.001657:-.005742:-.008982:-.003008:-.008012,n+=t[0]<=96?t[1]<=96?t[5]<=3.255?t[6]<=1e-35?t[5]<=3.005?t[5]<=3.005?-.008209:-.008173:-.008575:t[5]<=2.795?t[4]<=1e-35?-.004928:-.00812:t[5]<=2.805?-.002458:-.007816:t[1]<=72?t[9]<=62.5?.01158:-.008691:t[15]<=1214?t[5]<=3.555?-.008684:-.008543:-.008797:t[1]<=118?.02422:t[6]<=1.5?t[9]<=62.5?t[5]<=2.835?-.007526:-.003259:t[16]<=6.5?.005713:-.001256:t[10]<=12.5?.01706:t[6]<=11.5?-.007168:-.008196:t[0]<=118?t[1]<=96?t[6]<=9.5?t[10]<=24.5?t[9]<=60.5?.008538:.02161:t[13]<=15.5?.02072:.01584:.01235:t[10]<=50.5?t[13]<=4.5?t[15]<=643.5?-.002134:.01115:t[9]<=144.5?.01142:.01345:t[12]<=96?t[6]<=1.5?.007987:.00278:t[1]<=114?.01912:.01342:t[9]<=156.5?t[1]<=96?.01803:t[5]<=2.325?t[10]<=63.5?-.006693:4385e-7:t[5]<=3.315?.0046:7383e-7:t[15]<=977.5?t[13]<=16.5?t[9]<=181.5?.006041:-.001204:t[16]<=30.5?-.007709:-.001602:t[5]<=2.885?t[5]<=2.355?-.003766:.003996:t[6]<=1e-35?-.004011:-.009049,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[0]<=48?t[11]<=267800?-.007859:-.006998:t[10]<=1e-35?-.00783:-.007847:t[7]<=34.5?t[1]<=114?-.007913:-.007939:t[10]<=722.5?-.007913:-.007892:t[8]<=2159?t[1]<=96?t[8]<=2102?-.007862:-.007906:-.007991:.02:t[2]<=72?t[11]<=1457e4?t[13]<=11.5?t[10]<=20.5?-.006733:-.007785:t[8]<=2005?.009676:-.005057:.0124:t[12]<=96?t[2]<=114?t[9]<=61.5?-.002527:.003265:.0203:.02344:t[9]<=149.5?t[8]<=2041?t[7]<=85.5?t[11]<=10890?t[8]<=2017?.01597:.02375:t[6]<=3.5?.01439:.02369:t[2]<=114?t[11]<=15140?.007892:-.002237:.01892:t[0]<=122.5?t[10]<=61.5?t[2]<=118?.01106:.0192:t[12]<=96?.006129:.01829:t[9]<=60.5?t[13]<=12.5?.01935:.02654:t[0]<=126.5?.008194:.01975:t[1]<=118?.02649:t[7]<=44.5?t[8]<=2063?t[11]<=864600?.02106:.01546:t[13]<=18.5?.0142:.01834:t[9]<=163.5?.02311:t[2]<=118?.006815:.01908,
e+=t[0]<=72?t[1]<=72?t[12]<=72?t[13]<=2.5?.006814:t[5]<=3.99?.01273:.00609:t[2]<=48?-.00593:.01339:t[3]<=1e-35?t[2]<=72?t[9]<=89.5?t[10]<=33.5?.007042:.0107:t[15]<=288.5?.01166:.001245:t[2]<=122.5?t[15]<=870.5?-.006162:6394e-8:t[8]<=2027?.001592:.006976:t[8]<=2072?-.009396:t[8]<=2104?t[15]<=777.5?-.003191:-.007432:-.00883:t[2]<=72?t[10]<=5265?t[1]<=72?t[12]<=1e-35?t[13]<=22.5?-.007586:-.003845:t[9]<=59.5?.005326:-.002665:t[0]<=114?t[5]<=1.125?-.003271:.003518:t[12]<=1e-35?-.006547:.001067:t[3]<=1e-35?t[2]<=24?.01533:t[13]<=5.5?.01003:.005401:t[13]<=11.5?t[2]<=24?.01494:.004074:t[9]<=167.5?-475e-6:-.004891:t[5]<=3.175?t[12]<=72?t[12]<=1e-35?t[9]<=139.5?2878e-7:-.004077:t[15]<=384.5?.00123:.01374:t[9]<=120.5?t[5]<=2.995?-.004181:-.008228:-.008295:t[2]<=118?t[8]<=19?.004493:t[10]<=171.5?-.008472:-.005254:t[13]<=6.5?t[13]<=3.5?.008483:-.002521:t[3]<=1e-35?-.004926:-.007724,i+=t[3]<=1e-35?t[0]<=72?t[7]<=7.5?t[0]<=48?t[8]<=2026?t[8]<=2016?-.001391:.004602:t[15]<=280.5?-.006329:-.002257:-.01027:t[12]<=72?t[11]<=3406e3?-.00937:t[2]<=72?-.006764:.007701:t[0]<=48?.006368:-.01054:t[2]<=72?t[10]<=5265?t[12]<=1e-35?t[13]<=42?.006052:.002673:t[12]<=72?-.003766:.007549:t[2]<=24?-.0114:t[13]<=5.5?-.005784:-.001101:t[5]<=2.925?t[12]<=72?t[12]<=1e-35?.003008:-.006441:.009495:t[7]<=20.5?t[13]<=3.5?-.00364:.006931:t[10]<=1837?.00771:.01046:t[2]<=96?t[2]<=72?t[0]<=96?t[0]<=72?t[0]<=48?-.002175:-.01024:.003743:t[5]<=2.735?-.00756:t[11]<=4617?-.008845:-.002679:t[5]<=.995?t[0]<=72?-.01072:t[12]<=72?.006347:-.006849:t[7]<=54.5?t[0]<=96?2328e-9:-.006161:.00104:t[0]<=96?t[0]<=72?-.007433:t[5]<=3.265?.001403:t[7]<=3.5?.004665:.01212:t[10]<=49.5?t[7]<=5.5?t[0]<=118?-.00514:-.007873:-.009507:t[12]<=96?t[0]<=122.5?-.004015:-.009414:-.009548,n+=t[2]<=96?t[2]<=1e-35?t[14]<=2196?t[4]<=1e-35?t[11]<=3043?t[11]<=1134?-.004625:.006762:t[11]<=1069e3?-.00531:-2514e-8:t[14]<=1145?-.007973:t[15]<=5292?9798e-7:-.002681:t[11]<=24920?t[14]<=2446?.02406:t[15]<=384.5?-.002737:.002191:t[11]<=1868e3?t[12]<=96?.00548:.01977:t[16]<=243.5?.006823:-6251e-7:t[5]<=3.005?t[12]<=96?t[14]<=2243?t[5]<=2.795?-.006513:-.004884:t[2]<=72?1234e-7:-.004617:t[10]<=21.5?.01991:t[7]<=18.5?.01498:-.003824:t[15]<=2778?t[15]<=318.5?t[6]<=7.5?.006151:.01863:t[5]<=3.895?-.001035:.01038:t[6]<=1e-35?.008933:.01834:t[10]<=1622?t[4]<=1e-35?-.00924:t[12]<=96?t[16]<=13.5?t[10]<=117.5?.006895:.002291:t[10]<=75.5?.009977:.005845:t[12]<=118?t[16]<=4.5?.01624:.01031:t[7]<=89.5?-2828e-7:.01287:t[2]<=118?t[16]<=47.5?t[7]<=1.5?.004312:t[10]<=2576?.02134:.01434:t[16]<=55.5?.005214:t[7]<=96.5?.01081:.01418:t[16]<=25.5?t[7]<=6.5?-.009772:t[16]<=1.5?.002116:.0104:.01075,r+=t[0]<=118?t[1]<=118?t[16]<=17020?t[0]<=96?t[0]<=48?t[16]<=2315?-.007858:-.005306:t[5]<=4.35?-.007844:-.007827:t[1]<=114?t[9]<=20.5?-.007889:-.007905:t[13]<=1.5?-.007901:-.007931:t[16]<=18700?.01383:t[3]<=1e-35?t[10]<=181.5?-.00785:-.007876:t[6]<=12.5?-.007941:-.007988:t[3]<=1e-35?t[10]<=916.5?t[15]<=3135?t[1]<=118?-.007869:-.008029:t[15]<=3250?.01696:-.007885:t[16]<=4020?t[5]<=1.425?-.007856:-.007968:.04064:t[6]<=3.5?t[15]<=245.5?t[16]<=41.5?.03012:.01386:t[5]<=3.125?.008996:.02594:-.007533:t[9]<=149.5?t[0]<=122.5?t[5]<=2.085?t[10]<=663.5?t[15]<=304.5?.02217:.01558:t[14]<=2299?.01078:.01584:t[5]<=2.665?t[16]<=97.5?-.007851:.002336:t[14]<=1708?.005194:.01186:t[10]<=278.5?t[13]<=12.5?.01887:.02351:t[6]<=1.5?t[16]<=942.5?2953e-7:.01799:.01912:t[1]<=118?.02581:t[10]<=95.5?t[10]<=73.5?t[5]<=2.695?.02019:.01451:.02228:t[14]<=1708?t[9]<=206?.01445:.004363:t[13]<=26?.01529:.02239,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[14]<=2004?t[9]<=32.5?t[1]<=72?.01113:-.003189:t[13]<=1e-35?-.007135:.007192:t[11]<=18510?t[11]<=1e-35?-.005706:.007228:t[5]<=2.195?7456e-7:-.005899:t[4]<=1e-35?t[11]<=184.5?-.004289:t[14]<=1721?-.007645:-.009533:t[5]<=2.745?t[1]<=72?.01379:.005531:.001239:t[6]<=1e-35?.01253:.01317:t[5]<=2.935?t[1]<=72?t[14]<=1849?t[1]<=24?3278e-7:t[9]<=122.5?-.007162:-.004118:t[13]<=5.5?t[10]<=145.5?-.002284:-.007613:t[10]<=339.5?-.009334:-.006839:t[0]<=114?t[14]<=1927?t[5]<=1.01?-.002896:.002826:t[13]<=6.5?3473e-7:-.004536:t[14]<=1709?t[6]<=3.5?-.003824:.003696:t[9]<=61.5?-.004987:-.008142:t[14]<=1648?t[1]<=118?t[13]<=2.5?t[14]<=1438?.001514:.01621:t[1]<=72?-.004975:-435e-6:t[11]<=7448e3?t[6]<=8.5?-.004343:-.00894:t[14]<=1513?-.001631:.00627:t[14]<=1921?t[11]<=1e-35?.01286:t[9]<=181.5?-.004144:-.007411:t[0]<=114?t[9]<=141.5?-.005457:-.007138:t[10]<=272.5?-.008206:-.005449,i+=t[3]<=1e-35?t[0]<=72?t[7]<=7.5?t[0]<=48?t[14]<=2004?t[13]<=7.5?-.005434:-.001957:t[11]<=18510?-7495e-7:.004677:-.01056:t[16]<=224.5?t[12]<=72?-.009706:t[0]<=48?.005935:-.009813:t[0]<=48?t[14]<=2004?-.003581:.00736:-.01076:t[14]<=1711?t[5]<=1.125?t[11]<=1e-35?-.01057:t[13]<=2.5?-.003174:.0053:t[12]<=72?t[12]<=1e-35?.002043:-.005985:t[7]<=58.5?.01048:.004677:t[5]<=2.765?t[13]<=3.5?t[12]<=72?.001934:.01029:t[14]<=2049?.005033:.008217:t[13]<=4.5?t[5]<=2.865?-.005508:.004314:t[12]<=72?.007564:.01023:t[0]<=96?t[0]<=72?t[0]<=48?t[13]<=4.5?t[11]<=224e4?-.003887:.01063:t[11]<=347800?-.005576:-.01112:-.01018:t[5]<=1.425?t[16]<=9231?.008196:-.004039:t[12]<=72?t[14]<=1495?-.006111:.002744:.0094:t[0]<=118?t[12]<=96?t[12]<=72?t[14]<=1977?-.003956:-.005324:t[7]<=95.5?-.003843:.007505:-.008444:t[7]<=3.5?t[13]<=6.5?-.001555:-.008663:t[15]<=450.5?-.006879:t[13]<=16.5?-.003986:-.007622,n+=t[3]<=1e-35?t[1]<=96?t[11]<=24.5?t[5]<=2.885?-.008183:t[9]<=74.5?-.008189:.01209:t[7]<=1e-35?t[11]<=336e3?t[1]<=1e-35?-.00827:-.008154:t[11]<=347800?.005462:-.007794:t[5]<=4.005?-.00818:-.00814:t[7]<=51.5?t[7]<=4.5?t[9]<=300.5?-.008482:-.007149:t[11]<=3313?-.008662:-.001554:.008019:t[1]<=118?t[1]<=96?t[10]<=50.5?t[9]<=121.5?t[15]<=592.5?-.003587:.005736:t[8]<=2161?-.006548:2982e-7:t[8]<=2038?t[1]<=72?.002494:-.008286:t[8]<=2080?.01549:.00434:t[6]<=3.5?t[8]<=2082?t[11]<=38200?.0101:.01208:t[5]<=3.755?.004757:.01029:t[10]<=155.5?t[9]<=120.5?.00136:.01747:t[6]<=29.5?.002307:-.008838:t[7]<=60.5?t[13]<=16.5?t[15]<=2029?t[15]<=1826?.001265:.01799:t[13]<=15.5?-.005325:.002416:t[13]<=29.5?t[8]<=2108?-.003946:-.008392:t[11]<=204800?-9659e-7:.0068:t[11]<=65100?t[8]<=2100?t[8]<=2020?1393e-7:.01181:t[5]<=2.875?-.002557:.008585:t[11]<=381400?t[5]<=3.005?-.00374:.003588:t[9]<=83.5?-4984e-7:.007727,r+=t[0]<=118?t[1]<=118?t[4]<=1e-35?t[16]<=342.5?-.007869:-.002697:t[0]<=96?t[5]<=4.03?-.007841:t[7]<=3.5?-.007834:-.007819:t[7]<=33.5?t[1]<=114?-.007907:-.007933:-.007894:t[13]<=5.5?t[7]<=1e-35?t[8]<=2003?.01918:t[13]<=2.5?-.001047:-.007965:t[15]<=4270?t[16]<=942.5?-.007857:-.007256:t[10]<=44.5?-.001968:-.007878:t[5]<=2.135?t[10]<=52.5?t[15]<=1041?.002957:-.004063:t[10]<=316.5?-.007794:-.005115:t[8]<=2037?.02581:t[8]<=2089?-.008193:.0152:t[7]<=48.5?t[0]<=122.5?t[8]<=2043?t[10]<=597.5?t[16]<=921.5?.02171:.01331:t[13]<=10.5?.005777:.01551:t[5]<=2.745?t[13]<=7.5?.008957:.01545:t[13]<=8.5?.001553:.01206:t[15]<=961.5?t[15]<=219.5?.02019:.01459:t[5]<=2.245?.0191:.02301:t[7]<=70.5?t[5]<=3.225?t[13]<=15.5?t[5]<=2.875?.005297:-.007695:.01134:-.006735:t[7]<=95.5?t[8]<=2149?t[11]<=154600?.01363:.02085:t[10]<=83.5?.01409:-.006932:t[8]<=2100?t[11]<=46830?.001628:.01033:t[11]<=501500?.01622:.004858,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[2]<=72?t[14]<=2243?t[7]<=7.5?.008537:.01099:t[15]<=799.5?.006996:-.002439:t[8]<=2027?t[8]<=2016?.004453:-.003308:t[14]<=2004?.007819:.002682:t[4]<=1e-35?t[11]<=184.5?-.004263:-.0089:t[5]<=2.745?t[1]<=72?.01368:.005467:.001235:.01262:t[2]<=72?t[5]<=3.435?t[1]<=72?t[14]<=1849?t[1]<=24?.00175:-.005506:t[5]<=2.245?-.003215:-.008075:t[0]<=114?t[7]<=29.5?-4419e-7:.005323:t[7]<=96.5?-.007097:-3284e-7:t[14]<=1698?t[2]<=48?t[11]<=2077e3?.01435:.003075:t[8]<=2047?.004538:.01033:t[11]<=75240?t[2]<=24?.012:.001909:t[7]<=11.5?29e-5:.009711:t[5]<=3.125?t[14]<=1711?t[1]<=72?t[5]<=2.685?-.00498:-.008233:t[8]<=2074?2582e-7:.004005:t[5]<=2.765?t[0]<=96?-1202e-7:-.005722:t[14]<=1921?-.003037:-.00594:t[7]<=3.5?t[14]<=1709?t[8]<=2043?-.004994:-6303e-7:t[0]<=96?-.004696:-.007475:t[5]<=3.845?t[7]<=97.5?-.005732:-.002802:t[8]<=21.5?.01156:-.008591,
i+=t[2]<=96?t[2]<=72?t[4]<=1e-35?t[7]<=7.5?t[9]<=83.5?t[10]<=60.5?-.003097:-.007052:t[15]<=1041?-.001174:.003446:t[16]<=291.5?t[15]<=14.5?-.005266:-.009671:t[14]<=2134?-.005543:.005841:t[7]<=96.5?t[10]<=1284?t[16]<=113.5?6686e-7:.003452:t[7]<=1.5?162e-6:-.004469:t[10]<=99.5?t[12]<=72?-.007314:.003538:t[15]<=323.5?-.003588:.001601:t[10]<=25.5?t[12]<=96?t[7]<=94.5?t[9]<=62.5?.005039:.007579:t[11]<=7.5?-.005963:.008825:-.007285:t[12]<=72?t[14]<=2034?t[12]<=1e-35?.001385:-.004324:t[9]<=90.5?.002667:.006187:t[12]<=96?t[4]<=1e-35?8931e-7:.008314:t[9]<=169.5?-.004525:.004265:t[10]<=1e-35?t[2]<=114?t[9]<=119.5?-.005368:-.007971:t[11]<=17320?t[15]<=2443?-.008342:-.001498:-.009982:t[12]<=96?t[16]<=3.5?t[15]<=1200?t[14]<=1442?.002294:-.004541:t[7]<=27.5?-.003447:.002439:t[7]<=98.5?t[12]<=72?-.004943:.003809:t[10]<=335.5?-.006604:-.01094:t[7]<=94.5?t[7]<=21.5?-.009433:t[7]<=50.5?2174e-7:-.007761:-.01053,n+=t[1]<=96?t[2]<=96?t[5]<=3.035?t[4]<=1e-35?t[2]<=48?t[5]<=2.995?-.006674:.02449:t[13]<=4.5?-.005839:-.001371:t[5]<=2.745?-.007785:t[14]<=360.5?.01134:-.006385:t[15]<=2778?t[9]<=115.5?t[16]<=1e-35?.002565:-.009058:.01526:.01803:t[5]<=2.865?t[10]<=208.5?t[8]<=2161?-.003985:.00899:t[14]<=2034?.002763:.01503:t[8]<=2038?t[1]<=72?.007195:-.008488:t[15]<=284.5?t[8]<=2107?-.003765:.01273:t[8]<=2080?.01968:.007241:t[1]<=118?t[2]<=96?t[8]<=2043?t[10]<=99.5?.007103:t[10]<=230.5?.01894:.009472:t[14]<=1920?t[15]<=4027?-2825e-7:.01376:t[15]<=4270?.005521:.01761:t[5]<=3.315?t[16]<=29.5?t[8]<=2030?.00904:.003177:t[14]<=1598?.004393:.01263:t[2]<=96?t[8]<=2074?.01202:.008557:t[10]<=83.5?.01537:.00958:t[2]<=96?t[9]<=30.5?.01173:t[10]<=683.5?-.001344:.007614:t[8]<=2020?t[15]<=812.5?t[10]<=214.5?-.003292:.00819:-.007352:t[5]<=2.885?t[15]<=450.5?.003684:-.003194:t[10]<=764.5?.003424:.01448,r+=t[1]<=118?t[3]<=1e-35?t[1]<=96?-.00783:-.007865:t[4]<=1e-35?t[16]<=2.5?t[8]<=2066?-.006933:.01299:t[16]<=30.5?t[9]<=147.5?.01745:.02999:t[8]<=2141?.009105:.02338:t[1]<=114?t[16]<=17020?t[10]<=49.5?-.005052:-.007444:t[1]<=96?.01791:-.007937:t[16]<=238.5?t[5]<=3.325?-.00615:.001257:t[9]<=256.5?1644e-7:.01469:t[7]<=95.5?t[8]<=2043?t[16]<=2384?t[10]<=429.5?t[9]<=135.5?.0229:.01739:t[2]<=96?.00407:.01597:t[7]<=6.5?t[9]<=71.5?-.00172:.008405:.01502:t[5]<=3.405?t[9]<=155.5?t[2]<=114?.01055:.002689:t[5]<=2.855?.01887:.01274:t[2]<=118?t[9]<=30.5?9884e-7:.0141:t[5]<=3.485?.0243:.01352:t[2]<=96?t[8]<=2084?t[8]<=2063?t[7]<=98.5?.008358:-.004002:t[8]<=2070?-.004522:-.009025:t[9]<=169.5?t[5]<=3.045?.005089:-.005083:.01526:t[10]<=29.5?t[2]<=118?t[8]<=2102?.005551:.01925:t[8]<=2105?.02428:.02303:t[9]<=200.5?t[8]<=2128?.01323:.001503:t[6]<=1e-35?.001461:-.007925,e+=t[1]<=72?t[5]<=2.235?t[7]<=1.5?t[8]<=2028?t[8]<=2016?t[8]<=2011?.00162:.00798:-.002263:t[13]<=7.5?.006702:.002987:t[16]<=2.5?t[5]<=1.01?.01091:t[11]<=1429e3?.008244:-.005406:t[12]<=48?t[15]<=161.5?.009792:.005732:-.004498:t[11]<=108100?t[8]<=2052?t[11]<=15650?t[5]<=2.385?685e-6:.01217:.002425:t[8]<=2077?t[15]<=94.5?.006554:-.004777:t[2]<=72?58e-5:.006552:t[15]<=370.5?t[16]<=224.5?t[1]<=48?.01221:9582e-7:-.004207:-.004789:t[2]<=72?t[7]<=17.5?t[12]<=1e-35?t[5]<=2.115?-.004713:t[8]<=2073?-.00248:.00538:t[12]<=72?t[13]<=29.5?.01803:.004252:-.008282:t[13]<=9.5?t[2]<=48?.01187:t[8]<=2024?4047e-7:.007382:t[1]<=114?t[12]<=72?.003773:-.006148:-.00458:t[5]<=3.125?t[12]<=72?t[13]<=8.5?t[8]<=2037?-.001007:.003327:t[12]<=1e-35?-.002268:.01014:-.007234:t[7]<=9.5?t[13]<=6.5?t[8]<=2072?-.003931:.002095:t[12]<=1e-35?-.005989:.002815:t[11]<=1e-35?.01295:t[5]<=3.585?-.00451:-.008528,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.006974:t[12]<=72?t[4]<=1e-35?t[7]<=7.5?-5623e-9:-.01009:-.01034:t[7]<=15.5?.009625:t[5]<=1.935?8047e-7:-.0106:t[0]<=96?t[14]<=1687?t[1]<=72?t[12]<=1e-35?.007817:.00167:t[5]<=1.01?.004223:3371e-7:t[5]<=2.855?t[1]<=72?.008981:.003321:t[14]<=1977?.006562:.008612:t[7]<=93.5?t[10]<=24.5?-.007182:-.0109:t[9]<=145.5?-.008629:t[5]<=2.905?-.007957:.00601:t[0]<=118?t[5]<=1.34?t[9]<=74.5?t[7]<=6.5?t[14]<=2243?-.005163:.005461:t[0]<=96?-.009089:6614e-8:t[15]<=242.5?t[11]<=1664?.001061:-.009655:t[12]<=1e-35?.003091:-.006352:t[1]<=96?t[4]<=1e-35?t[15]<=189.5?-.005575:-9125e-7:.008977:t[12]<=96?t[5]<=3.085?-.002767:-.004583:-.008454:t[7]<=3.5?t[14]<=1537?t[0]<=122.5?t[15]<=599.5?-.007046:-.002317:-.009959:t[5]<=2.995?-.009358:t[15]<=725.5?-.004224:-.009011:t[0]<=122.5?t[11]<=7448e3?t[10]<=91.5?-.008056:-.004774:.003418:t[5]<=2.245?t[11]<=80640?-.009295:.001701:-.0105,n+=t[0]<=96?t[1]<=96?t[5]<=3.255?t[4]<=1e-35?t[7]<=12.5?7125e-7:t[7]<=77.5?-.008174:-.008144:t[7]<=1e-35?t[14]<=1281?-.00587:-.00795:t[5]<=2.895?-.008169:-.008006:t[16]<=152.5?t[7]<=98.5?t[7]<=93.5?-.008711:-.00853:.01117:.01477:t[1]<=118?.02182:t[9]<=56.5?t[16]<=795.5?t[7]<=10.5?-.007051:-.008028:t[10]<=11.5?-.002368:-.00822:t[5]<=3.105?t[9]<=62.5?-.004007:-7339e-7:.01196:t[0]<=118?t[1]<=96?t[7]<=89.5?t[14]<=1711?t[13]<=8.5?.01769:.01333:t[16]<=23.5?.02259:.01781:t[16]<=93.5?t[10]<=722.5?8544e-7:.01883:.02151:t[10]<=61.5?t[14]<=1947?t[5]<=3.165?.009779:.01611:t[16]<=2384?.01319:.00954:t[14]<=1682?t[13]<=29.5?.00504:-.003537:t[12]<=96?.007817:.01584:t[7]<=4.5?t[13]<=16.5?t[5]<=2.335?t[7]<=1.5?-.006644:-.003033:t[10]<=71.5?.01197:-148e-6:t[9]<=243.5?t[14]<=1698?4579e-8:-.00643:.002635:t[7]<=5.5?.01939:t[1]<=96?.01637:t[16]<=18700?.001909:-.006698,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[7]<=1e-35?t[13]<=7.5?-.007869:-.007898:t[13]<=5.5?t[0]<=72?-.007826:-.007938:t[12]<=48?-.00786:-.007938:t[9]<=165.5?t[13]<=12.5?t[13]<=5.5?-.006653:.01501:t[8]<=2015?.008187:-.005728:t[9]<=286.5?t[15]<=276.5?.0308:.01694:.003834:t[12]<=118?t[8]<=1e-35?t[10]<=1053?t[9]<=61.5?-.007887:-.001168:.0205:t[16]<=17020?t[3]<=1e-35?-.007827:-.007899:t[8]<=2198?-.007869:.01794:t[8]<=1e-35?.02872:-.007911:t[7]<=4.5?t[13]<=16.5?t[8]<=2129?t[0]<=122.5?t[9]<=58.5?.003268:.01537:.01909:t[16]<=79.5?-.007919:t[10]<=22.5?.015:.00415:t[9]<=240.5?t[10]<=149.5?.01672:t[9]<=139.5?.02168:.01939:t[16]<=51.5?t[10]<=177.5?.01439:.01944:.008492:t[0]<=122.5?t[9]<=152.5?t[10]<=69.5?t[8]<=2018?.003392:.01243:t[10]<=99.5?-.004509:.007435:t[7]<=8.5?.001609:t[16]<=15.5?.01934:.01311:t[10]<=45.5?t[9]<=233.5?.003319:.009955:t[15]<=664.5?.01732:t[0]<=126.5?.02371:.01993,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[9]<=89.5?t[2]<=72?t[14]<=2758?.0101:-.003237:t[16]<=27.5?.007902:.004539:t[15]<=239.5?t[16]<=8.5?1849e-7:.01025:t[16]<=39.5?.00467:-5662e-7:t[9]<=42.5?t[7]<=28.5?t[14]<=1721?.0026:-.00557:.01246:t[14]<=1787?t[14]<=1535?-.007583:-.001331:-.007643:.01241:t[2]<=72?t[10]<=3708?t[14]<=1920?t[7]<=43.5?t[9]<=62.5?2225e-7:-.004483:t[5]<=2.065?.009251:.00221:t[7]<=98.5?t[9]<=60.5?-.002472:-.005873:t[10]<=123.5?.01161:5175e-7:t[14]<=2178?t[2]<=48?t[13]<=11.5?.01331:.005731:t[14]<=1409?.01159:.005283:t[9]<=166.5?t[3]<=1e-35?.003134:-.004212:-.008491:t[5]<=3.125?t[9]<=141.5?t[14]<=1601?t[10]<=263.5?.001069:.004015:t[5]<=2.725?946e-6:-.002855:t[14]<=1780?t[14]<=1546?-.003866:-2303e-7:t[0]<=96?-.004753:-.007967:t[7]<=10.5?t[13]<=6.5?t[16]<=83.5?-.004137:.001522:t[14]<=1747?-.003967:-.006982:t[5]<=3.435?t[10]<=335.5?-.005599:-.001677:t[14]<=1025?2053e-7:-.00839,i+=t[3]<=1e-35?t[0]<=72?t[7]<=7.5?t[0]<=48?t[9]<=88.5?t[8]<=2026?127e-6:-.00459:t[4]<=1e-35?.002948:-.009341:-.01009:t[12]<=72?t[9]<=200.5?t[11]<=3406e3?-.009468:-.003627:t[0]<=48?.009:-.0105:t[13]<=20.5?t[11]<=15650?-.004008:.009247:-.011:t[14]<=1687?t[8]<=2080?t[12]<=1e-35?t[13]<=3.5?.002706:.005386:t[12]<=72?-.006759:.005852:t[8]<=2094?t[9]<=62.5?-.002444:.004505:t[6]<=3.5?.001457:.007677:t[9]<=67.5?t[12]<=72?t[12]<=1e-35?.004802:-.001938:.009748:t[14]<=1849?t[8]<=2083?.006481:.002247:t[7]<=18.5?.00877:.007342:t[0]<=118?t[0]<=72?t[4]<=1e-35?t[11]<=347800?t[13]<=10.5?-.009079:-.001138:-.009753:-.009747:t[0]<=96?t[11]<=229800?t[9]<=61.5?.004639:.009905:t[9]<=145.5?-.004489:.004718:t[6]<=39.5?t[12]<=96?-.004226:-.008726:.01127:t[7]<=3.5?t[8]<=2130?t[14]<=1546?-.006454:-.009501:t[13]<=8.5?-6999e-7:-.007406:t[11]<=7448e3?t[0]<=122.5?t[9]<=88.5?-.003805:-.006034:-.009035:.002661,
n+=t[3]<=1e-35?t[14]<=-1e-35?t[9]<=74.5?t[10]<=238.5?-.00831:t[7]<=5.5?-.00822:-.008193:.01965:t[12]<=96?t[15]<=1532?t[2]<=114?t[2]<=96?-.008146:-.008204:-.006246:t[7]<=99.5?t[15]<=1716?-.006794:-.008137:t[9]<=197.5?-.008166:.01782:-.001658:t[8]<=2080?t[14]<=1438?t[10]<=587.5?t[9]<=57.5?t[8]<=2037?-.008333:-.003855:t[10]<=157.5?.004516:-.005156:t[15]<=3250?t[2]<=96?.003984:.00965:-.004121:t[8]<=2016?t[5]<=2.935?t[2]<=96?.00417:.008622:t[10]<=363.5?.003812:-.003804:t[15]<=192.5?t[7]<=57.5?.004484:.008247:t[15]<=2259?.009421:.01227:t[2]<=96?t[9]<=60.5?t[14]<=1682?t[15]<=2927?-.004073:.007309:t[7]<=98.5?.002933:-.00357:t[4]<=1e-35?.01957:t[9]<=62.5?.01647:.002561:t[10]<=79.5?t[7]<=1.5?t[14]<=1470?.01113:.003754:t[10]<=61.5?.004312:.01154:t[9]<=298.5?t[10]<=260.5?6592e-7:.004471:.01331,r+=t[0]<=118?t[4]<=1e-35?t[9]<=163.5?t[2]<=72?t[15]<=8997?t[16]<=22780?-.00736:.004465:t[5]<=1.01?-.00788:.0436:t[15]<=1024?t[13]<=12.5?.003385:-.005425:t[9]<=57.5?.004612:-.00724:t[2]<=96?t[13]<=15.5?t[7]<=4.5?-.007837:-.003279:t[15]<=233.5?.01479:.002254:.02534:t[2]<=122.5?t[8]<=1e-35?t[0]<=96?t[9]<=144.5?-.007478:.001724:.0141:t[16]<=17020?t[0]<=96?-.007828:-.007899:t[8]<=2198?-.007868:.01759:.02262:t[7]<=4.5?t[5]<=2.995?t[16]<=2239?t[16]<=1466?t[8]<=2129?.01678:.01157:.02185:t[13]<=9.5?t[15]<=991.5?.001507:.01198:t[0]<=125.5?.01405:.01958:t[16]<=9.5?.01638:t[8]<=2109?t[16]<=1068?.008818:.0169:-.001357:t[0]<=122.5?t[9]<=152.5?t[2]<=96?t[9]<=59.5?-.001421:.007355:t[5]<=3.875?.008246:.01471:t[7]<=8.5?.001578:t[16]<=15.5?.01897:.01288:t[5]<=2.245?t[2]<=114?-8619e-7:.01564:t[15]<=664.5?.01716:t[0]<=126.5?.02335:.01958,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.005102:.01209:t[2]<=72?t[9]<=115.5?t[14]<=2548?t[7]<=7.5?.007695:.01109:t[10]<=41.5?-.006335:.004899:t[15]<=314.5?t[16]<=19.5?-7e-4:.01134:t[10]<=309.5?-.002157:.01081:t[2]<=122.5?t[10]<=61.5?.002891:-.007045:t[14]<=2034?t[8]<=2028?7875e-7:.00523:t[8]<=2037?-.004642:246e-6:t[2]<=72?t[10]<=2576?t[1]<=72?t[15]<=309.5?t[15]<=213.5?-.004666:.002299:t[9]<=36.5?-.003901:-.007436:t[7]<=13.5?t[0]<=96?-7719e-7:-.006835:t[1]<=114?.004942:-.002593:t[14]<=1698?t[2]<=48?.01415:t[8]<=2050?.005366:.01097:t[7]<=3.5?t[15]<=318.5?.002473:-.007281:t[2]<=24?.01381:.004519:t[10]<=39.5?t[7]<=8.5?t[0]<=96?t[9]<=164.5?-.002573:-.006484:t[9]<=65.5?-.005787:-.007937:t[8]<=19?.01203:t[10]<=26.5?-.008528:-.003446:t[0]<=96?t[1]<=72?t[15]<=694.5?-.004279:-.008299:t[8]<=2073?-7225e-7:.003148:t[14]<=1682?t[1]<=96?-.00727:-8324e-7:t[9]<=144.5?-.004248:-.007044,i+=t[3]<=1e-35?t[2]<=72?t[5]<=1.995?t[9]<=30.5?t[14]<=2095?-.00756:t[10]<=41.5?.009294:-.004672:t[4]<=1e-35?t[9]<=90.5?-.005857:.001187:t[10]<=1339?.005206:-.003496:t[6]<=3.5?t[8]<=2085?t[8]<=2010?-.003152:.001917:t[9]<=118.5?-.003476:.002897:t[16]<=116.5?t[16]<=26.5?.005018:-7792e-7:.008564:t[5]<=2.925?t[8]<=2073?t[9]<=144.5?t[8]<=2003?-.001173:.003195:.007253:t[14]<=2463?t[14]<=1525?-.002828:3716e-7:t[9]<=91.5?.002147:.007308:t[4]<=1e-35?t[8]<=2026?t[8]<=2015?5945e-7:.006568:t[14]<=1947?-.002549:.003232:t[6]<=1e-35?t[10]<=2341?.005081:.008617:t[8]<=2074?.006425:.003033:t[2]<=96?t[2]<=72?t[16]<=1e-35?-.006776:t[16]<=30.5?t[16]<=24.5?-.002828:.00942:t[10]<=22.5?.001744:-.005872:t[5]<=3.925?t[16]<=1e-35?t[10]<=119.5?.008164:-.001688:-.00432:t[4]<=1e-35?-.01146:t[9]<=179.5?.002674:.006593:t[5]<=3.555?t[8]<=2042?-.005827:-.003291:t[6]<=1e-35?-.007916:t[11]<=162.5?234e-6:t[10]<=414.5?-.006236:.004217,n+=t[3]<=1e-35?t[14]<=-1e-35?t[13]<=12.5?.01511:t[15]<=323.5?-.008385:t[5]<=2.425?-.008195:-.008259:t[2]<=96?t[13]<=29.5?t[14]<=1537?t[6]<=1e300?-.008093:-.007298:t[4]<=1e-35?-.008202:-.00813:t[15]<=5866?t[16]<=9775?-.008157:-.005432:.002343:-.003855:t[2]<=96?t[10]<=877.5?t[9]<=60.5?t[14]<=1409?t[13]<=7.5?-.007946:-.002862:t[6]<=3.5?.00698:-9506e-7:t[4]<=1e-35?t[13]<=15.5?.02481:.01347:t[15]<=174.5?.002043:.008914:t[14]<=1731?t[13]<=15.5?t[15]<=39.5?.002241:-.004708:t[4]<=1e-35?.01038:-.001001:t[4]<=1e-35?.01819:t[10]<=1284?.002609:.01331:t[10]<=1951?t[14]<=1438?t[13]<=7.5?t[10]<=289.5?-.005708:-.002557:t[15]<=1264?.001:.01351:t[16]<=18700?t[15]<=20.5?-.003996:.00641:t[16]<=36200?-.001361:-.005368:t[2]<=118?t[16]<=25.5?t[2]<=114?.01268:.01555:t[5]<=2.565?.01196:-.001973:t[9]<=170.5?t[13]<=18.5?.006554:.002425:t[14]<=1729?.01974:.008601,r+=t[1]<=118?t[1]<=114?t[16]<=17020?t[2]<=118?t[13]<=15.5?t[16]<=4436?-.007822:-.007622:t[5]<=2.885?-.007674:-.006253:t[13]<=22.5?t[9]<=20.5?-.004169:-.007913:.01656:t[2]<=118?t[8]<=2171?t[1]<=96?-.007842:-.007902:-.007948:t[16]<=25730?.02134:t[9]<=181.5?-.007868:-.007916:t[2]<=72?t[5]<=1e-35?t[14]<=2548?t[9]<=166.5?-.007855:-.008241:.0237:t[8]<=2158?t[14]<=1281?-.006138:-.007722:t[8]<=2160?.02416:-.007526:t[16]<=238.5?t[4]<=1e-35?t[13]<=15.5?-.003561:.003961:t[5]<=3.485?-.007033:-7109e-8:t[8]<=2141?t[9]<=61.5?-.005506:.004796:t[8]<=2206?.01411:-.008244:t[12]<=118?t[14]<=2034?t[8]<=2150?t[8]<=2003?t[2]<=114?-.004079:.01278:t[6]<=1e-35?.00952:.01311:t[5]<=2.085?t[8]<=2181?.008879:.01815:t[16]<=162.5?.00367:-.006149:t[12]<=1e-35?t[9]<=227.5?t[9]<=167.5?.01464:.01103:t[9]<=244.5?.01795:.0155:t[5]<=3.005?.0134:-.001183:.02209,e+=t[0]<=72?t[1]<=72?t[0]<=48?t[5]<=2.195?.01201:t[7]<=25.5?t[2]<=48?-.006707:.008546:.01352:.01233:t[3]<=1e-35?t[2]<=72?t[9]<=90.5?t[7]<=6.5?.007803:.01091:t[15]<=300.5?.00914:7373e-7:t[2]<=122.5?t[8]<=2071?-.007145:3178e-8:t[8]<=2027?.001494:.006193:t[8]<=2071?-.009124:t[9]<=63.5?-.00545:-.008166:t[2]<=72?t[5]<=5.165?t[1]<=72?t[15]<=309.5?t[5]<=2.205?.004672:-.004326:t[9]<=36.5?-.003761:-.007402:t[7]<=13.5?t[0]<=96?-616e-6:-.00667:t[1]<=114?.004906:-.002571:t[9]<=72.5?t[2]<=48?t[7]<=22.5?.005364:.01322:t[8]<=2026?.002876:.007654:t[9]<=260.5?t[1]<=96?.004336:-.001075:-.008833:t[5]<=3.125?t[9]<=135.5?t[1]<=72?t[15]<=749.5?-.004211:-.008513:t[0]<=114?.001671:-.003404:t[8]<=2083?t[9]<=175.5?-.003836:-.006683:t[0]<=96?4838e-7:-.006797:t[6]<=1.5?t[8]<=19?.006406:t[7]<=35.5?-.006708:-.008556:t[9]<=147.5?t[8]<=2041?-.005898:-.002221:t[3]<=1e-35?-.006152:-.00809,i+=t[0]<=96?t[0]<=72?t[0]<=48?t[6]<=7.5?t[14]<=2004?t[13]<=7.5?-.005504:-.002001:t[14]<=2561?1996e-7:.006866:t[16]<=1562?-.009196:t[2]<=24?-.007181:.004496:-.01018:t[2]<=72?t[5]<=4.005?t[6]<=1e-35?t[7]<=28.5?.004114:-.001773:t[12]<=1e-35?.005997:-1397e-7:t[2]<=48?t[14]<=1678?-.01125:-.004838:t[14]<=1425?-.008199:-.001098:t[5]<=1.125?t[7]<=5.5?t[13]<=3.5?.001973:.006924:.009946:t[12]<=72?t[14]<=1698?5531e-7:.003898:t[12]<=118?.00916:.00103:t[2]<=96?t[2]<=72?t[13]<=26?t[16]<=27.5?t[12]<=48?-4877e-7:-.01044:t[15]<=599.5?-.007971:-.004:t[5]<=3.155?-.009262:-1563e-7:t[5]<=.995?t[15]<=4027?t[14]<=2281?.00721:.001991:-.005301:t[7]<=94.5?t[15]<=1948?-.004078:-.009342:t[15]<=239.5?.008837:-5292e-7:t[5]<=3.555?t[12]<=96?t[0]<=122.5?t[16]<=12.5?-.002428:-.004366:-.008889:-.009751:t[7]<=26.5?t[0]<=118?t[13]<=6.5?-.002336:-.005922:t[14]<=2049?-.006634:-.00939:t[6]<=1e-35?-.009637:-.005919,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[6]<=1e300?t[0]<=48?t[9]<=74.5?-.00814:-.008238:t[6]<=1e-35?-.008126:-.008145:t[16]<=37.5?t[16]<=35.5?-.007868:.01028:t[8]<=2015?-.008047:-.008184:-.005679:t[15]<=216.5?-.007921:t[9]<=62.5?-.004045:.01709:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[15]<=2199?t[8]<=2023?.01337:.004826:t[2]<=114?.02362:.009877:t[16]<=942.5?t[15]<=144.5?-.008342:-.002313:t[8]<=2071?.01438:-.004386:t[2]<=96?t[15]<=2199?t[9]<=167.5?.004844:.01159:t[8]<=2023?.006035:.01576:t[6]<=1e-35?t[12]<=96?.01199:.01756:t[16]<=11.5?.002848:.01056:t[16]<=17020?t[12]<=118?t[0]<=126.5?t[12]<=72?.001296:.007569:t[13]<=12.5?-.002511:-.007639:-.00823:t[15]<=592.5?-.008416:t[15]<=2029?4256e-8:-.008839,
r+=t[0]<=118?t[4]<=1e-35?t[5]<=1.975?t[11]<=1457e4?t[12]<=72?t[5]<=1e-35?9594e-7:-.007373:.006252:.01768:t[9]<=71.5?t[14]<=2034?t[11]<=7834?1809e-7:-.006331:t[11]<=5679?-.007206:.01116:t[11]<=805100?t[6]<=17.5?.01341:-.002387:t[16]<=1761?.01898:.003839:t[12]<=118?t[16]<=17020?t[11]<=1e-35?t[9]<=144.5?-.007546:.001057:t[0]<=96?-.007823:-.007893:t[6]<=55.5?t[9]<=237.5?-.007858:-.007945:t[16]<=20370?.02011:-5134e-7:t[7]<=32.5?.01952:t[5]<=3.105?-.007868:-.007909:t[0]<=122.5?t[10]<=441.5?t[7]<=95.5?t[14]<=2034?t[16]<=2629?.01252:.00561:t[11]<=392.5?.007002:.01531:t[7]<=97.5?t[10]<=384.5?-.006036:.008982:t[14]<=1864?.002888:.01286:t[14]<=1682?t[11]<=39670?5357e-7:t[11]<=1234e3?-.008922:-.005732:t[9]<=159.5?t[11]<=1963e3?-1731e-7:.01627:t[6]<=1e-35?.01771:.00783:t[11]<=6579?t[5]<=3.325?.008813:.01605:t[11]<=13490?.02147:t[11]<=4432e3?t[9]<=143.5?.01087:.01781:t[10]<=653.5?.02119:.0191,e+=t[2]<=72?t[5]<=1.995?t[3]<=1e-35?t[9]<=89.5?t[10]<=71.5?t[1]<=72?.007912:-.002464:t[16]<=7.5?.01095:.00866:t[10]<=441.5?t[6]<=8.5?-.001624:.008897:.005845:t[5]<=1.125?-.007075:t[1]<=72?.01188:t[14]<=2237?.004176:-.005757:t[6]<=3.5?t[1]<=114?t[9]<=60.5?t[1]<=48?8382e-7:.005178:t[13]<=16.5?-7106e-7:.004618:-.005143:t[1]<=72?t[11]<=3175?t[11]<=1494?-.003661:.006839:-.005509:t[14]<=1682?.00873:t[5]<=2.625?.00632:-.003963:t[1]<=72?t[3]<=1e-35?t[6]<=3.5?t[11]<=7080?t[1]<=1e-35?.00443:.008428:t[13]<=7.5?.005252:.002034:t[11]<=336e3?-.001231:-.007854:t[1]<=24?-.007737:t[5]<=2.875?t[11]<=2195e3?.01059:-.003862:.001831:t[5]<=3.175?t[9]<=141.5?t[1]<=96?t[5]<=2.775?.002875:-.001044:t[5]<=2.005?-.006662:-.00135:t[14]<=1708?-6892e-7:t[1]<=118?-.00444:-.00874:t[6]<=1e-35?t[11]<=1e-35?.00985:t[10]<=60.5?-.008305:-.005305:t[13]<=4.5?t[3]<=1e-35?.004001:-.002359:t[3]<=1e-35?-.003786:-.007177,i+=t[1]<=96?t[1]<=72?t[3]<=1e-35?t[16]<=81.5?t[15]<=82.5?-.006888:t[8]<=2052?-.003121:.00191:t[13]<=8.5?.006444:t[1]<=24?.01061:.001467:t[15]<=737.5?-.008619:t[15]<=825.5?.01069:t[13]<=4.5?.006575:-.005352:t[14]<=1927?t[14]<=1470?t[8]<=2030?t[8]<=2005?-.001399:.005018:t[12]<=72?-.001137:.006906:t[12]<=72?t[12]<=1e-35?.00376:-.004377:.008587:t[9]<=122.5?t[12]<=72?t[12]<=1e-35?.005478:-.001143:.009915:t[3]<=1e-35?.008333:t[7]<=1.5?.01123:4565e-7:t[1]<=118?t[7]<=1.5?t[3]<=1e-35?t[9]<=100.5?t[15]<=8218?-.002164:.004162:t[8]<=2064?.006938:.001016:t[15]<=1167?t[8]<=2037?-.00932:-.004823:t[9]<=119.5?-9224e-8:-.004557:t[4]<=1e-35?t[16]<=4.5?t[9]<=166.5?-.009188:9696e-7:t[15]<=195.5?-.007583:-.002645:t[1]<=96?.008562:t[3]<=1e-35?.008558:-.003847:t[7]<=3.5?t[13]<=9.5?t[3]<=1e-35?.003894:t[16]<=4020?-.007073:-6894e-8:-.009119:t[14]<=2173?t[9]<=101.5?t[9]<=74.5?-.003518:.007783:-.006334:-.006468,n+=t[3]<=1e-35?t[2]<=96?t[1]<=96?t[11]<=2195e3?t[1]<=1e-35?t[2]<=24?-.00813:-.008235:t[10]<=11.5?-.008099:-.00814:t[11]<=224e4?t[1]<=24?.01678:-.008132:t[1]<=1e-35?-.008193:-.008126:t[7]<=92.5?t[11]<=7448e3?t[14]<=2548?-.008432:-.007129:-.00386:-.001085:-.002392:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[2]<=96?t[8]<=2070?-.006906:-3588e-7:t[8]<=2080?.006707:-.003314:t[15]<=581.5?t[15]<=352.5?.009882:.02036:t[15]<=1334?-.004352:.01023:t[5]<=2.215?t[2]<=96?t[7]<=80.5?.009514:.003643:t[7]<=1.5?.006391:.01429:t[8]<=2082?t[10]<=804.5?.008898:.002703:t[14]<=1460?-.004201:.004209:t[2]<=96?t[11]<=24.5?.01724:t[8]<=2006?t[11]<=520300?-.003252:.01703:t[15]<=7560?-.001448:.009159:t[10]<=192.5?t[8]<=2150?t[8]<=2037?-.005366:3406e-7:t[15]<=599.5?.02016:-.003016:t[2]<=118?t[5]<=3.745?.002436:.009577:t[10]<=299.5?.01534:-.003909,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[11]<=1457e4?t[5]<=2.435?t[2]<=48?-.007823:-.007885:t[9]<=100.5?.0166:-.007932:t[6]<=4.5?t[7]<=1e-35?-.007915:-.007969:.02886:t[11]<=1749?t[7]<=1e-35?.008851:t[9]<=60.5?.005007:-.007484:t[9]<=280.5?t[9]<=243.5?.01353:.03074:t[11]<=22530?-.008411:.008611:t[11]<=1457e4?t[1]<=118?t[0]<=96?t[5]<=4.35?-.007822:-.007805:t[1]<=114?-.007877:-.007905:t[9]<=179.5?t[11]<=15.5?-.004664:-.008225:.006042:t[3]<=1e-35?t[11]<=1669e4?t[9]<=62.5?-.007861:-.007937:-.007833:.009205:t[7]<=42.5?t[0]<=122.5?t[5]<=2.085?t[9]<=60.5?t[11]<=229800?.02103:.01691:.01464:t[9]<=152.5?t[5]<=3.395?.007651:.01258:t[2]<=96?.01977:.01383:t[5]<=3.095?t[9]<=118.5?.01058:.01769:t[9]<=70.5?.01963:.01713:t[5]<=2.925?t[2]<=118?t[6]<=18.5?t[9]<=284?.007342:.02575:.02638:t[5]<=2.525?t[7]<=83.5?.01904:.02268:-.002801:t[6]<=4.5?t[11]<=1022?-.006744:t[11]<=562300?.01133:.003169:-.004414,e+=t[2]<=72?t[4]<=1e-35?t[9]<=89.5?t[7]<=6.5?t[10]<=87.5?t[15]<=239.5?.008134:.003325:.00973:t[15]<=8997?.01072:.002386:t[15]<=253.5?t[13]<=18.5?.009976:-.004944:t[10]<=429.5?-.002803:.006401:t[10]<=2576?t[16]<=3.5?t[14]<=2034?t[10]<=99.5?.00791:.002939:t[8]<=2075?-.003631:.003518:t[1]<=48?t[7]<=5.5?.002285:-.006141:t[10]<=246.5?-.002129:.002641:t[1]<=96?t[13]<=5.5?.01058:t[7]<=11.5?.002276:.007703:t[14]<=1920?.007213:-9188e-7:t[1]<=72?t[15]<=103.5?t[4]<=1e-35?t[9]<=141.5?.007533:-.00433:.01039:t[1]<=24?t[7]<=4.5?t[14]<=1927?.0028:-.002403:t[16]<=2.5?.001543:-.007004:t[10]<=784.5?t[14]<=1002?-.009744:.00215:t[14]<=1181?-.007254:.007115:t[10]<=35.5?t[7]<=9.5?t[13]<=4.5?t[2]<=72?.002165:-.00473:t[14]<=1827?-.002938:-.006461:t[8]<=19?.01357:-.008456:t[1]<=96?t[9]<=141.5?t[8]<=2073?191e-6:.003442:t[14]<=1708?1822e-7:-.003941:t[9]<=121.5?t[14]<=1598?-3405e-7:-.003365:-.005956,i+=t[1]<=96?t[1]<=72?t[6]<=1e-35?t[11]<=93390?t[9]<=59.5?t[6]<=1e-35?-.00304:.00714:t[9]<=244.5?-.004979:-.007745:t[15]<=907.5?t[13]<=10.5?.001603:-.006845:t[10]<=1241?.006115:-.001647:t[3]<=1e-35?t[11]<=336e3?t[6]<=2.5?1704e-7:.005297:t[6]<=3.5?.006057:.009703:t[15]<=737.5?t[16]<=55.5?-.01047:-.003193:t[15]<=1565?.00575:-.004554:t[10]<=50.5?t[9]<=141.5?t[11]<=1e-35?-.006264:t[13]<=4.5?.001582:.005467:t[9]<=167.5?t[10]<=26.5?.007145:.001801:.008815:t[12]<=72?t[12]<=1e-35?t[9]<=115.5?.001099:.004182:t[15]<=450.5?.002217:-.008715:t[9]<=286.5?.008206:-.002901:t[6]<=16.5?t[3]<=1e-35?t[9]<=115.5?t[15]<=5005?t[13]<=5.5?-.006315:-.001855:t[10]<=65.5?.003995:-.006729:t[16]<=2384?t[6]<=1e-35?.009422:.003358:t[11]<=112300?-.009069:.002165:t[9]<=115.5?t[6]<=13.5?t[12]<=96?-.003876:-.007761:.009345:t[1]<=118?t[11]<=108100?-.004194:-.006254:t[10]<=175.5?-.008733:-.005168:t[12]<=48?t[15]<=11760?-.009247:.002582:.002407,n+=t[2]<=96?t[2]<=1e-35?t[4]<=1e-35?t[8]<=2002?.007569:t[14]<=2324?t[15]<=242.5?-.007221:-.002825:t[8]<=2019?.008936:-.003239:t[13]<=4.5?t[15]<=561.5?-.006601:t[14]<=1561?-.006035:.00208:t[14]<=2548?t[15]<=20.5?.01885:.001357:t[11]<=41330?.001786:.005634:t[5]<=3.055?t[12]<=96?t[14]<=2243?t[5]<=2.795?-.006354:-.00472:t[2]<=72?2197e-7:-.004463:t[13]<=16.5?.01518:-5054e-7:t[6]<=1e-35?t[5]<=3.535?t[13]<=15.5?-3989e-7:.01111:-.003892:t[11]<=6136?.01531:t[8]<=2084?.009009:-.006205:t[5]<=3.695?t[16]<=12.5?t[14]<=1438?-.004966:t[5]<=2.005?t[13]<=5.5?.01426:.002562:t[2]<=114?8605e-7:.005187:t[11]<=392.5?t[6]<=1e-35?.01097:.02262:t[8]<=2080?t[8]<=2018?.002341:.008551:t[11]<=1069e3?.0025:.007984:t[2]<=118?t[11]<=411e4?.01219:t[5]<=3.99?t[13]<=11.5?.01806:.004973:-.004552:t[16]<=28.5?t[8]<=2065?-.002077:t[16]<=18.5?.006224:-.004723:t[15]<=841.5?t[16]<=1989?.00937:.02106:t[16]<=1159?.006173:-.00525,r+=t[0]<=118?t[4]<=1e-35?t[3]<=1e-35?t[5]<=2.435?t[8]<=2158?t[2]<=24?-.007819:-.00788:t[8]<=2159?.01017:-.007838:t[5]<=2.615?.01581:-.007913:t[8]<=2067?t[14]<=1441?.005302:t[8]<=2065?.01481:.02719:t[2]<=48?t[8]<=2094?-.008473:.002933:t[8]<=2109?.00581:.01618:t[1]<=118?t[8]<=2198?t[0]<=96?-.007813:-.007886:t[8]<=2199?t[2]<=1e-35?.02916:-.007849:-.007836:t[14]<=2548?t[8]<=2004?-.005755:-.008175:-1275e-7:t[7]<=42.5?t[0]<=122.5?t[8]<=2063?t[10]<=149.5?t[7]<=7.5?.01678:.02206:t[10]<=243.5?.006779:.01413:t[5]<=2.085?t[10]<=41.5?.01926:.01267:t[10]<=31.5?-.003503:.009837:t[5]<=3.095?t[8]<=2092?.01046:.01763:t[8]<=2064?.01677:.01856:t[10]<=189.5?t[2]<=96?t[5]<=2.905?.01774:t[14]<=2034?-.002048:.008948:t[2]<=118?t[6]<=1e-35?.00879:.01699:t[5]<=2.525?.02144:-.001231:t[14]<=1698?t[7]<=97.5?-.002423:-.008906:t[7]<=96.5?t[7]<=84.5?.004584:-.006671:t[10]<=324.5?.004996:.01452,
e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.00361:t[12]<=72?t[4]<=1e-35?t[7]<=12.5?.001899:.0115:t[13]<=2.5?.006531:.01219:t[7]<=15.5?-.005822:.01256:t[3]<=1e-35?t[2]<=72?t[14]<=2243?t[7]<=7.5?.007909:.01055:t[6]<=1.5?-.001529:.006565:t[2]<=122.5?t[14]<=1438?-.01048:-.002104:t[8]<=2027?.001123:.006473:t[8]<=2041?-.009503:t[12]<=1e-35?-.007393:-.002839:t[2]<=72?t[1]<=72?t[13]<=42?t[14]<=1362?-.002265:-.006953:t[6]<=1e-35?t[7]<=18.5?.004939:.01577:t[7]<=36.5?-7499e-7:-.005607:t[7]<=7.5?t[14]<=1953?t[8]<=2063?-.003721:8954e-7:t[8]<=2088?-.008758:-.003974:t[0]<=96?t[7]<=96.5?.004506:.008833:t[7]<=98.5?-4356e-7:.005893:t[0]<=96?t[6]<=1e-35?t[8]<=2078?t[13]<=2.5?.01282:-.004596:t[7]<=80.5?7225e-8:-.004589:t[1]<=72?t[8]<=2071?-.00496:-.008189:t[14]<=1535?.005783:.001385:t[6]<=1e-35?t[14]<=1921?t[13]<=6.5?-.002707:-.00586:-.007945:t[1]<=96?-.008003:t[14]<=1698?8813e-7:-.003452,i+=t[1]<=96?t[2]<=72?t[6]<=1e-35?t[7]<=28.5?t[12]<=72?t[1]<=72?-.0058:.001518:.01127:t[1]<=72?-.009682:t[2]<=48?-.007138:-.001949:t[3]<=1e-35?t[11]<=10890?t[14]<=1682?-.003163:.004131:t[1]<=72?.006757:.001948:t[9]<=119.5?-4538e-7:-.01005:t[1]<=72?t[6]<=1.5?t[11]<=13030?t[14]<=822?.009292:-.006578:t[3]<=1e-35?.001407:-.006614:t[3]<=1e-35?.005767:-.003386:t[6]<=1e-35?t[7]<=70.5?t[14]<=1977?.003899:.00753:t[11]<=1e-35?-.008995:.007744:t[12]<=72?t[14]<=1494?-.003199:.001182:.006823:t[2]<=72?t[9]<=56.5?t[14]<=2237?-.008246:t[11]<=60990?t[6]<=1e-35?-.006677:.005214:-.01052:t[6]<=9.5?t[1]<=118?t[9]<=74.5?-.004454:-9418e-7:-.007072:-.007577:t[2]<=96?t[7]<=80.5?t[3]<=1e-35?.005855:t[1]<=118?-2294e-7:-.006157:t[4]<=1e-35?-.007421:t[6]<=1e-35?.006275:6162e-7:t[3]<=1e-35?t[14]<=2034?t[12]<=1e-35?-77e-5:-.01189:t[11]<=2334e3?.001858:.00902:t[6]<=1e-35?t[7]<=35.5?-.005502:-.008124:-.003868,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[14]<=1452?t[14]<=1441?t[16]<=3553?-.00813:-.007984:.009219:t[0]<=48?t[2]<=72?-.008128:-.008228:t[10]<=1e-35?-.008086:-.008128:-.00641:t[14]<=1864?.01078:-.006721:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[7]<=58.5?t[16]<=1.5?.01522:.00599:.02106:t[10]<=505.5?t[0]<=72?-.008044:.002824:t[7]<=1e-35?-.00247:-.008436:t[2]<=96?t[10]<=3708?t[15]<=1361?.0079:.01478:t[13]<=11.5?.001295:.006357:t[10]<=73.5?t[7]<=1.5?.01037:.01421:t[14]<=1537?.001868:.008674:t[7]<=3.5?t[13]<=16.5?t[0]<=122.5?t[15]<=2503?.001199:-.004595:-.0064:t[16]<=214.5?t[16]<=36.5?-.004523:.007596:t[2]<=1e-35?-.008507:-.004175:t[13]<=12.5?t[11]<=835.5?t[16]<=15.5?.007433:.02252:t[0]<=126.5?.003047:-.007566:t[7]<=93.5?t[16]<=4.5?-.006703:-.00118:t[7]<=98.5?.005342:-.001485,r+=t[0]<=118?t[1]<=122.5?t[16]<=17020?t[8]<=1e-35?t[1]<=118?t[3]<=1e-35?-.007823:-.007902:-.002796:t[1]<=118?t[0]<=96?-.007809:-.007881:t[3]<=1e-35?-.008029:-.008516:t[8]<=2196?t[1]<=96?t[16]<=18700?-.007853:-.007828:t[1]<=114?-.007904:-.007991:.01927:t[3]<=1e-35?t[7]<=99.5?t[7]<=1e-35?t[14]<=2004?-.007872:-.007896:t[16]<=6.5?-.007808:-.007843:t[16]<=8100?t[10]<=441.5?-.007804:-.007907:.05272:t[10]<=17.5?-.007355:t[10]<=38.5?.02843:t[8]<=2141?.009571:.02001:t[7]<=54.5?t[10]<=441.5?t[8]<=2129?t[1]<=118?.02069:t[0]<=122.5?.01301:.01694:t[8]<=2200?t[14]<=1535?4909e-7:.00955:.01889:t[8]<=2018?.01435:t[6]<=1e-35?t[15]<=397.5?-.002041:.01182:t[7]<=14.5?-.008718:.005806:t[0]<=126.5?t[1]<=118?t[10]<=145.5?t[7]<=95.5?-.003583:.008956:.02298:t[14]<=2196?t[10]<=563.5?.001869:.008224:t[10]<=204.5?.01372:.002525:.02018,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[2]<=72?t[14]<=2407?t[9]<=55.5?.01053:.007779:t[12]<=72?.003683:-.01016:t[8]<=2027?t[8]<=2015?.004373:-.003449:t[14]<=2004?.006941:.001963:t[4]<=1e-35?t[8]<=2084?-.009111:t[9]<=59.5?-.00228:-.007665:t[11]<=83680?.01257:.00312:t[8]<=37?.00516:.01208:t[2]<=72?t[6]<=1e-35?t[7]<=28.5?t[0]<=96?t[8]<=2073?-.001506:.005061:t[7]<=17.5?-.007101:-751e-6:t[9]<=141.5?t[2]<=48?.0104:.005756:t[2]<=24?.00945:-2369e-7:t[12]<=1e-35?t[9]<=23.5?t[11]<=10890?.003947:-.00213:t[14]<=1920?-.003344:-.006178:t[12]<=72?t[12]<=24?.004964:.01399:t[11]<=381400?-.008469:.001048:t[0]<=96?t[6]<=1e-35?t[8]<=2078?t[11]<=1e-35?.008061:-.00457:t[7]<=80.5?9066e-8:-.004538:t[12]<=72?t[12]<=1e-35?6265e-7:.01119:t[7]<=67.5?-.008348:-.002671:t[6]<=1e-35?t[14]<=1921?t[9]<=147.5?-.004989:-.007187:-.007913:t[9]<=141.5?t[12]<=72?-.001224:-.007961:t[11]<=229800?-.007668:-.002977,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.007858:t[1]<=72?t[11]<=3281e3?-.009799:-.001094:t[14]<=1395?.009749:t[8]<=149?.005428:-.008911:t[0]<=114?t[2]<=72?t[1]<=72?t[0]<=96?.007207:-.002394:t[10]<=434.5?.002052:-.003228:t[10]<=30.5?t[6]<=4.5?.009299:.005928:t[1]<=72?.008277:.002776:t[9]<=251?-.01041:t[2]<=114?-.008404:-7559e-7:t[0]<=118?t[2]<=72?t[9]<=56.5?t[14]<=2243?t[6]<=3.5?-.007059:-.009263:t[1]<=118?-.008793:.00329:t[9]<=239.5?t[10]<=22.5?-4144e-7:-.005047:t[11]<=12140?-.007427:.007784:t[2]<=96?t[10]<=281.5?t[8]<=2037?-.003319:.002125:t[1]<=114?.002542:.007451:t[1]<=96?t[0]<=72?-.001194:.01105:t[10]<=65.5?-.006848:-.003038:t[2]<=96?t[10]<=2988?t[14]<=1721?t[14]<=1471?-.007345:.002305:t[8]<=2128?-.009119:-.003845:t[2]<=72?-.006228:t[8]<=2072?.001329:.008758:t[10]<=61.5?t[9]<=82.5?t[14]<=1708?-.004095:-.007803:-.008893:t[11]<=7448e3?t[0]<=122.5?-.005118:-.009462:.002245,n+=t[0]<=96?t[0]<=48?t[9]<=56.5?t[11]<=300300?t[13]<=11.5?-.007858:-.00379:t[11]<=313e3?.01605:t[2]<=1e-35?-.002964:-.007801:t[12]<=24?t[6]<=2.5?t[8]<=2023?5405e-7:-.003668:-.007418:t[16]<=13.5?.01526:t[11]<=1429e3?-.005641:.004304:t[2]<=96?t[8]<=2025?t[10]<=167.5?t[10]<=165.5?-.006146:.009459:-.00783:t[14]<=2061?-.008122:-.007571:t[8]<=2068?t[16]<=26.5?t[2]<=118?-.008617:.005917:t[14]<=1698?.0205:.002704:-.008605:t[0]<=118?t[2]<=96?t[10]<=3708?t[9]<=101.5?t[8]<=2014?-.002647:.007142:t[11]<=184.5?7264e-7:.01157:t[13]<=11.5?t[12]<=24?8602e-7:.01223:t[14]<=1698?-2052e-7:.007883:t[10]<=73.5?t[2]<=96?t[13]<=4.5?.001649:.01088:t[10]<=71.5?.01142:.01432:t[12]<=96?t[14]<=1537?.001305:.007445:t[10]<=151.5?.01126:.01682:t[0]<=126.5?t[9]<=399.5?t[8]<=2063?t[11]<=1269?.005931:-.002638:t[13]<=14.5?.003085:-465e-6:t[8]<=2018?t[6]<=1e-35?-.005291:.00229:t[10]<=275.5?.00326:.009514:-.006213,r+=t[1]<=118?t[3]<=1e-35?t[10]<=916.5?t[1]<=96?t[5]<=4.005?-.007812:t[2]<=72?-.007804:-.007782:t[2]<=24?t[11]<=1457e4?-.00781:-.008:-.007873:t[10]<=938.5?.01042:-.007817:t[1]<=1e-35?t[13]<=5.5?t[11]<=87070?t[11]<=15140?-.008404:.02029:-.00751:t[11]<=3406e3?t[5]<=1.01?.009515:.0219:.02346:t[11]<=4875e3?t[13]<=1e-35?.03276:t[1]<=114?-.007285:-.004553:t[6]<=21.5?t[13]<=8.5?.01522:-.00743:.02041:t[7]<=54.5?t[10]<=764.5?t[13]<=16.5?t[11]<=632400?t[5]<=3.595?.01186:.01797:t[15]<=378.5?.01288:.007721:t[7]<=1.5?t[6]<=1e-35?.01923:.01395:t[5]<=2.855?.01706:.0106:t[13]<=12.5?t[13]<=8.5?.003296:-.005827:.01121:t[5]<=3.365?t[11]<=562300?t[11]<=223800?t[13]<=12.5?-.004752:.008543:.01567:t[11]<=1963e3?t[15]<=933.5?-.004762:-.009229:t[15]<=1601?.001264:.01147:t[2]<=96?t[15]<=625.5?t[7]<=81.5?.007658:-.002672:t[13]<=16.5?.01499:-1275e-7:t[2]<=118?t[13]<=7.5?.005513:.01341:t[5]<=3.435?.02111:.004208,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.003876:t[12]<=72?.0118:t[2]<=48?-.002621:.01239:t[2]<=72?t[9]<=89.5?t[14]<=2243?t[7]<=5.5?.007319:.01015:t[10]<=41.5?-.005624:.005654:t[12]<=1e-35?t[7]<=20.5?-1167e-7:.007004:.008511:t[2]<=122.5?t[10]<=60.5?3457e-7:t[16]<=4436?-.005827:-.01067:t[12]<=1e-35?t[14]<=1921?.003462:-.001233:.014:t[2]<=72?t[10]<=5265?t[1]<=72?t[9]<=30.5?t[14]<=2049?-.002343:-.008728:t[12]<=1e-35?-.007466:-.002002:t[7]<=21.5?t[14]<=2178?-.001368:-.007426:t[14]<=1494?.01133:.003164:t[14]<=1601?t[2]<=48?.01338:.009295:t[0]<=96?t[9]<=29.5?.00851:.004308:t[14]<=2237?.002951:-.004762:t[5]<=3.105?t[12]<=72?t[14]<=1804?t[1]<=72?-.005154:.002413:t[12]<=1e-35?-.002288:.01:t[14]<=1546?t[7]<=44.5?-.009515:-246e-6:t[9]<=120.5?-.005688:-.009049:t[7]<=35.5?t[14]<=1648?t[1]<=72?-.008211:-.001833:t[0]<=96?-.00538:-.007545:t[5]<=3.355?t[7]<=97.5?-.006299:-.001575:-.008425,
i+=t[1]<=96?t[0]<=72?t[12]<=72?t[1]<=72?-.009901:t[12]<=1e-35?.004821:-.01272:t[7]<=15.5?.01113:-.00836:t[0]<=96?t[2]<=72?t[1]<=72?t[6]<=1e-35?.002517:.007887:t[7]<=21.5?.003314:-.003579:t[10]<=16.5?t[7]<=2.5?.006415:.009755:t[1]<=72?.008684:.002784:t[7]<=90.5?t[1]<=72?t[15]<=599.5?-.01081:-.003343:-.01042:t[6]<=8.5?t[15]<=261.5?-6407e-7:-.01034:9816e-7:t[0]<=118?t[2]<=72?t[7]<=5.5?t[10]<=49.5?t[15]<=236.5?-.004305:4894e-7:t[15]<=226.5?-.008805:-.003984:t[0]<=114?t[1]<=118?-.008:.004208:t[1]<=114?.008838:-.004785:t[2]<=96?t[3]<=1e-35?t[15]<=870.5?.00994:.004657:t[0]<=96?-.01163:.003138:t[3]<=1e-35?t[0]<=48?-6974e-7:.006707:t[10]<=43.5?-.006263:-.003176:t[2]<=96?t[7]<=44.5?t[10]<=1453?-.007951:t[2]<=72?-.006811:.003269:t[2]<=72?t[6]<=1.5?-.007661:.002293:t[10]<=113.5?-.006391:.004384:t[10]<=115.5?-.008001:t[2]<=118?-.005567:t[7]<=8.5?.004346:-.004565,n+=t[1]<=96?t[5]<=3.015?t[1]<=48?t[5]<=2.775?t[9]<=62.5?-.007003:t[5]<=2.235?-9355e-8:-.008202:t[5]<=2.965?t[5]<=2.845?-.004226:.007502:t[9]<=333.5?-.003507:.003555:t[5]<=2.885?t[12]<=114?t[6]<=14.5?-.007419:-.00409:.005021:t[5]<=2.925?t[15]<=1386?-.002378:.01337:-.005877:t[7]<=94.5?t[8]<=2020?t[15]<=1214?.008536:-.00913:t[11]<=475.5?.02453:t[11]<=78e3?.004873:.01603:t[8]<=2078?t[8]<=2070?-.001233:.01179:-.008216:t[1]<=118?t[5]<=3.355?t[8]<=2030?t[8]<=2016?t[7]<=17.5?.009853:.002822:t[15]<=186.5?.004632:.01733:t[9]<=167.5?t[12]<=96?.002803:.01419:t[8]<=2206?.009637:.02103:t[12]<=96?t[1]<=114?t[15]<=749.5?.01138:.0092:t[8]<=2090?.009139:.005855:.0158:t[7]<=3.5?t[15]<=100.5?-.006681:t[11]<=1269?t[9]<=141.5?-.006208:.01642:t[15]<=2503?-6996e-7:-.006565:t[7]<=5.5?t[13]<=15.5?t[5]<=3.405?.02182:.005238:-.001114:t[5]<=2.715?t[7]<=48.5?-.005046:.001596:t[7]<=96.5?.001014:.004323,r+=t[0]<=118?t[0]<=48?t[2]<=72?t[11]<=1457e4?t[15]<=8997?t[14]<=2548?-.007354:-5233e-7:t[15]<=10650?.02783:-.007853:.01969:t[12]<=96?t[7]<=99.5?t[15]<=1041?.002287:-.004985:.0299:.02163:t[2]<=122.5?t[11]<=1e-35?t[9]<=60.5?.01661:t[0]<=114?-.007827:-.008081:t[11]<=1457e4?t[0]<=96?-.007804:-.00788:t[16]<=15250?-.007852:.01086:.02133:t[10]<=424.5?t[7]<=47.5?t[0]<=122.5?t[14]<=1682?t[11]<=132500?.01361:.004952:t[10]<=89.5?.01662:.01273:t[15]<=961.5?t[15]<=219.5?.01787:.0112:t[10]<=292.5?.01929:.01575:t[2]<=96?t[15]<=1864?t[14]<=2034?-.001814:.008659:.01986:t[16]<=18.5?t[2]<=118?.005532:.01543:t[10]<=189.5?.01556:.01008:t[14]<=1512?-.003238:t[11]<=1507e3?t[11]<=381400?t[7]<=84.5?.01005:-7345e-7:t[10]<=697.5?-.006953:.004945:t[16]<=479.5?.02301:.008563,e+=t[0]<=72?t[0]<=48?t[2]<=72?t[14]<=2061?t[9]<=89.5?t[9]<=55.5?.0101:.007479:t[11]<=8697?.007383:-8607e-7:t[15]<=799.5?.004985:-.003848:t[8]<=2029?t[8]<=2016?t[8]<=2011?7952e-7:.009636:t[11]<=18510?-.001778:-.005851:t[13]<=11.5?t[5]<=.505?.00742:-.001278:t[11]<=50370?.00337:-3303e-7:.01187:t[2]<=72?t[5]<=6.5?t[12]<=1e-35?t[14]<=1953?t[13]<=14.5?-.003116:5797e-7:t[15]<=50.5?.002082:-.005915:t[12]<=72?t[11]<=1175e3?.006783:.01526:t[9]<=59.5?-.002132:-.007615:t[14]<=1601?t[11]<=2779?t[2]<=48?.01197:.003229:t[9]<=59.5?.01369:.009343:t[11]<=21810?t[0]<=96?.003849:-.003603:t[13]<=7.5?.01091:.004331:t[5]<=3.105?t[12]<=72?t[14]<=1804?t[8]<=2074?-7727e-9:.004009:t[9]<=118.5?-6334e-7:-.005:t[14]<=1546?t[5]<=2.495?-.00892:-.002791:-.008115:t[14]<=1682?t[2]<=72?t[13]<=2.5?.00603:-.002456:t[5]<=4.165?-.00192:-.007518:t[2]<=72?t[13]<=9.5?-.003255:-.007117:t[5]<=3.435?-.005485:-.008189,i+=t[3]<=1e-35?t[0]<=72?t[0]<=48?t[2]<=72?t[14]<=2243?t[16]<=2.5?-.008341:-.004211:t[6]<=1.5?.006837:-.007293:t[6]<=4.5?t[7]<=21.5?.006214:-.001258:t[14]<=2034?-.001997:.002451:-.01012:t[2]<=72?t[10]<=5265?t[7]<=12.5?.006549:t[6]<=3.5?-6496e-8:.005403:t[14]<=1601?-.007992:t[11]<=32240?-5325e-7:-.00544:t[5]<=2.935?t[14]<=1711?t[5]<=2.045?.004361:5198e-7:t[16]<=1e-35?.002508:.005445:t[7]<=9.5?t[14]<=1658?.003889:.007162:t[10]<=91.5?.00971:.006508:t[2]<=96?t[2]<=72?t[5]<=3.045?-.006059:t[11]<=138100?t[14]<=2243?-.009843:.004554:t[5]<=3.265?.009813:-9594e-7:t[0]<=72?-.01073:t[5]<=1.995?t[7]<=91.5?.002685:.007866:t[7]<=57.5?-.004385:.002144:t[0]<=96?t[0]<=72?t[4]<=1e-35?t[11]<=358900?-.002576:-.009753:-.00916:t[10]<=50.5?t[16]<=7608?.007814:-.002508:-5225e-7:t[5]<=3.565?t[16]<=1e-35?t[5]<=3.295?-.001426:-.006432:t[0]<=122.5?-.004584:-.01021:t[7]<=5.5?t[0]<=118?-.004614:-.007917:-.008814,n+=t[3]<=1e-35?t[0]<=114?t[7]<=1e-35?t[11]<=336e3?t[1]<=96?t[0]<=48?-.008141:-.008084:t[1]<=96?-.008211:-.008442:t[11]<=347800?.005656:t[16]<=6.5?-.003254:-.008145:t[0]<=96?t[5]<=4.005?t[1]<=118?-.00811:-.008246:t[1]<=96?-.00806:-.008152:-.005527:t[10]<=429.5?-.007396:.005142:t[0]<=118?t[0]<=96?t[1]<=96?t[5]<=3.255?t[6]<=1e-35?-.008392:-.004658:t[11]<=1416?.01661:-4041e-7:t[0]<=72?t[11]<=50370?.004568:.01097:.02222:t[1]<=96?t[7]<=56.5?t[5]<=2.725?.01513:.01893:t[5]<=2.875?.01646:.008515:t[5]<=3.325?t[6]<=1.5?.007381:.002253:t[9]<=118.5?.008051:.0107:t[7]<=3.5?t[0]<=122.5?t[1]<=118?-.00814:t[6]<=1e-35?-.002858:775e-6:t[11]<=1e5?-.007624:-.003737:t[1]<=96?.01208:t[7]<=5.5?t[13]<=15.5?.01328:-5052e-7:t[16]<=18700?.001581:-.006513,r+=t[0]<=118?t[0]<=48?t[3]<=1e-35?t[11]<=1457e4?t[16]<=29960?t[2]<=72?-.007809:-.007877:t[5]<=2.435?-.00786:.03479:t[6]<=5.5?t[13]<=8.5?-.007884:-.007938:.02593:t[8]<=2067?t[8]<=2066?t[16]<=2.5?-.00396:.01719:.03162:t[13]<=20.5?t[8]<=2151?.005403:.02012:t[13]<=29.5?-.004709:-.008452:t[2]<=122.5?t[8]<=1e-35?t[13]<=11.5?t[5]<=3.245?-.007827:-.008155:.0126:t[11]<=1457e4?t[0]<=96?-.007801:-.007877:t[8]<=2196?-.007853:.02788:.02093:t[10]<=424.5?t[0]<=122.5?t[14]<=1708?t[11]<=431e3?t[6]<=1e-35?.00918:.01436:t[10]<=41.5?.0151:.002641:t[13]<=16.5?t[8]<=2032?.01467:.0108:t[11]<=25820?.01254:.01652:t[8]<=2126?t[13]<=20.5?t[16]<=5048?.01545:.01832:.01891:.01101:t[5]<=3.595?t[10]<=547.5?t[11]<=758900?t[11]<=50370?-.00419:-.009257:-.00141:t[14]<=1460?-.007554:t[11]<=1596e3?.006037:.01765:.01577,e+=t[0]<=72?t[1]<=72?t[12]<=72?t[4]<=1e-35?t[7]<=9.5?-6168e-7:.01177:t[13]<=2.5?.006123:.01173:t[7]<=15.5?-.007611:t[9]<=173.5?.01228:.004668:t[3]<=1e-35?t[9]<=88.5?t[12]<=72?t[7]<=16.5?.006935:.01024:-.006103:t[6]<=3.5?t[12]<=1e-35?-.002246:.004719:t[10]<=183.5?.01215:.002996:t[12]<=1e-35?t[10]<=125.5?-.004759:-.00848:t[7]<=4.5?.004113:-.009173:t[3]<=1e-35?t[1]<=72?t[12]<=1e-35?t[13]<=22.5?t[6]<=52.5?-.00715:-.01007:t[6]<=7.5?-.006199:-.001412:t[12]<=48?.01462:t[12]<=72?-6389e-8:-.008774:t[10]<=43.5?t[9]<=130.5?t[13]<=4.5?.002612:-.001863:t[16]<=15250?-.005412:.002768:t[12]<=72?t[9]<=141.5?.003076:-.001613:t[7]<=44.5?-.008255:-.004418:t[10]<=85.5?t[13]<=4.5?t[10]<=57.5?t[9]<=64.5?4046e-7:-.008173:-.008705:t[13]<=11.5?t[10]<=39.5?-.006181:-.002914:t[16]<=1989?-.007471:-.005319:t[9]<=169.5?t[1]<=72?-.008143:t[12]<=72?-.001529:-.006971:t[9]<=319.5?t[0]<=96?-.001487:-.006694:-.009589,i+=t[1]<=96?t[0]<=72?t[12]<=72?t[0]<=48?t[8]<=2096?t[9]<=59.5?-.001902:-.009897:t[10]<=257.5?-.006427:.003414:-.01:t[7]<=55.5?t[8]<=2037?.01169:.005138:-.01016:t[0]<=96?t[1]<=72?t[12]<=1e-35?t[6]<=7.5?.009517:.007057:t[12]<=72?-.004685:.01067:t[10]<=43.5?t[9]<=130.5?.004899:.007712:t[12]<=72?.001546:.008347:t[7]<=90.5?t[10]<=384.5?-.01066:t[9]<=119.5?-.0113:-.004701:t[8]<=2070?-.00781:t[6]<=8.5?-.003288:.005284:t[0]<=118?t[6]<=8.5?t[3]<=1e-35?t[9]<=74.5?t[0]<=72?-.003563:.007068:t[7]<=6.5?.001732:.008105:t[12]<=96?t[10]<=192.5?-.004175:-.00215:-.008019:t[0]<=72?t[13]<=15.5?t[13]<=4.5?-.006313:-.009192:t[8]<=2038?.004008:-.008358:t[6]<=38.5?t[6]<=12.5?-.005376:.003291:.01212:t[9]<=166.5?t[8]<=2145?t[10]<=857.5?t[0]<=125.5?-.005501:-.009395:t[13]<=11.5?.003245:-.004744:t[7]<=1.5?.001194:t[10]<=43.5?.004647:-.004217:t[7]<=3.5?-.009261:t[10]<=117.5?-.009116:-.005303,
n+=t[0]<=96?t[4]<=1e-35?t[2]<=24?t[9]<=399.5?t[9]<=99.5?-.007608:t[9]<=101.5?.01209:-.004429:.02103:t[11]<=910900?t[8]<=2069?t[9]<=56.5?-.007643:-1137e-7:t[9]<=227.5?-.006559:9902e-7:t[8]<=2011?.01252:t[9]<=62.5?-.001821:.005528:t[5]<=3.215?t[2]<=96?-.007753:t[6]<=1.5?-.007381:t[14]<=2548?-.003126:.01475:t[11]<=1664?.015:t[8]<=2022?.008626:-.008822:t[0]<=118?t[2]<=96?t[7]<=70.5?t[5]<=4.005?t[14]<=1682?.006643:.01371:t[9]<=348.5?.007528:-.001112:t[2]<=72?t[11]<=148900?.009973:3339e-7:t[12]<=96?4906e-7:.01238:t[5]<=3.435?t[12]<=96?t[9]<=530.5?.008053:.002688:t[9]<=182.5?.01083:.0174:t[7]<=2.5?t[8]<=2103?.01:.006244:.01355:t[7]<=79.5?t[9]<=181.5?t[9]<=170.5?t[8]<=2030?-.003345:.001037:.008451:t[2]<=114?-.006182:-.002009:t[8]<=2100?t[5]<=2.455?t[2]<=118?.003627:-.009142:t[11]<=1868e3?.009202:-.002494:t[14]<=2548?t[9]<=118.5?-.003705:.004303:t[11]<=381400?2018e-7:.01242,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[0]<=48?t[16]<=2315?-.007817:-.005218:t[5]<=4.35?-.007804:-.007785:t[1]<=114?-.00786:-.007884:t[8]<=2159?-.007846:.01737:t[3]<=1e-35?t[11]<=1457e4?t[2]<=24?t[1]<=118?-.007801:-.00801:t[1]<=118?-.007867:-.008035:t[7]<=9.5?-.007923:.02604:t[13]<=5.5?t[11]<=43800?.006341:t[11]<=381400?-.005381:-.008234:t[16]<=75.5?t[11]<=1749?.01028:.02008:t[11]<=411e4?.006761:.02068:t[7]<=23.5?t[13]<=8.5?t[5]<=1.505?.01678:t[11]<=758900?t[5]<=2.565?.01281:.002574:t[7]<=8.5?-.002847:.01398:t[8]<=2043?t[16]<=2239?t[5]<=3.275?.01853:.01453:t[16]<=17020?.008512:.01626:t[0]<=126.5?t[8]<=2202?.01131:.01825:.01739:t[2]<=96?t[3]<=1e-35?.02109:t[8]<=2018?t[5]<=3.035?.02245:-5397e-7:t[5]<=2.745?.004345:-.005033:t[5]<=3.315?t[11]<=581600?t[11]<=53980?.005481:.0148:t[11]<=4432e3?-.004248:.01308:t[2]<=118?t[5]<=3.385?.02212:.01084:t[5]<=3.455?.01937:.001887,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.006091:t[15]<=23970?t[13]<=2.5?.006392:.01159:t[10]<=420.5?.01202:-.001449:t[3]<=1e-35?t[2]<=72?t[9]<=88.5?t[8]<=2027?.005285:.009129:t[6]<=9.5?.001944:.0118:t[10]<=61.5?.005043:t[15]<=870.5?-.007001:-.001809:t[8]<=2071?-.009097:t[14]<=1641?t[10]<=1087?.004618:-.003045:t[8]<=2151?-.005554:-.009961:t[2]<=72?t[1]<=72?t[10]<=2127?t[13]<=22.5?t[9]<=61.5?-.005657:-.008417:t[14]<=2034?-.003106:-.0085:t[15]<=1410?.007543:-.007409:t[10]<=398.5?t[1]<=96?t[13]<=4.5?.004487:-4392e-7:t[14]<=1438?.004205:-.005299:t[14]<=1731?t[15]<=1532?.009687:.004372:t[9]<=115.5?.005232:-5286e-7:t[10]<=16.5?t[2]<=72?t[13]<=4.5?t[1]<=72?-.006639:.00265:t[1]<=114?-.004402:-.007844:t[8]<=21.5?.01283:t[14]<=1682?-.007118:-.008403:t[0]<=96?t[1]<=72?t[15]<=749.5?-.004901:-.008585:t[14]<=2446?.001682:-.003251:t[14]<=1914?t[1]<=96?-.007771:-.001479:t[9]<=160.5?-.003911:-.007835,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.006106:t[1]<=72?t[15]<=23970?t[4]<=1e-35?-.005243:-.009816:t[10]<=555.5?-.01027:.006917:t[5]<=.905?-.008504:.005861:t[0]<=96?t[1]<=72?t[15]<=103.5?t[14]<=1678?-.004286:.006415:t[13]<=20.5?.009371:.007379:t[5]<=2.945?t[14]<=1997?.001051:.00499:t[14]<=1601?.00262:.006747:t[1]<=72?t[9]<=121.5?t[13]<=16.5?-.00929:-.003558:7129e-7:t[5]<=3.255?-.01046:t[13]<=26?-.009036:-8476e-8:t[0]<=118?t[15]<=121.5?t[4]<=1e-35?t[13]<=11.5?t[9]<=59.5?-.004191:-.009133:t[9]<=155.5?-.003862:-.008658:t[3]<=1e-35?.01002:t[5]<=2.655?-.005277:-6651e-7:t[3]<=1e-35?t[9]<=74.5?t[0]<=72?-.003781:.006947:t[14]<=1598?-.001843:.003883:t[8]<=2061?t[8]<=2017?-.002528:-.006413:t[14]<=2049?-.002331:-.004604:t[9]<=166.5?t[15]<=450.5?t[10]<=31.5?.001642:t[10]<=71.5?-.009876:-.006282:t[8]<=2150?t[14]<=1747?-.002097:-.005915:t[9]<=59.5?-.004582:4211e-7:t[5]<=2.745?-.008763:t[8]<=2100?-.007692:-.003699,n+=t[3]<=1e-35?t[0]<=114?t[7]<=1e-35?t[14]<=1537?t[11]<=336e3?t[8]<=2015?-.007848:-.008155:t[11]<=368100?.01892:-.006288:t[0]<=48?-.008204:t[11]<=206.5?-.008161:-.008068:t[0]<=96?t[5]<=4.005?t[6]<=8.5?-.008104:-.008077:t[0]<=48?-.008128:-.008047:-.006146:t[5]<=2.855?t[14]<=1598?-.001422:-.007922:.01492:t[0]<=118?t[0]<=96?t[0]<=48?t[11]<=541600?t[11]<=5450?.0083:.001099:t[14]<=2049?.01022:.0238:t[10]<=316.5?t[0]<=72?-.00845:.006154:t[11]<=96610?-.008383:-.001773:t[14]<=1711?t[8]<=2027?t[8]<=2016?.006624:.01475:t[10]<=87.5?.007326:.002529:t[12]<=96?t[5]<=2.905?.01031:.007555:t[9]<=182.5?.01255:.01638:t[7]<=79.5?t[9]<=181.5?t[9]<=170.5?t[8]<=2030?-.003288:.001159:t[11]<=20040?.01198:.005865:t[10]<=71.5?t[8]<=2072?-412e-7:-.004039:t[14]<=2034?-.003615:-.007024:t[11]<=1868e3?t[10]<=512.5?t[9]<=105.5?.001449:.01001:t[11]<=890500?9552e-7:.009516:t[10]<=145.5?t[14]<=1708?.01105:-.001023:-.006672,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[4]<=1e-35?t[16]<=490.5?t[13]<=7.5?-.007799:-.007859:-.002419:t[0]<=96?t[5]<=4.35?-.007802:-.007782:t[1]<=114?-.007857:-.007881:t[16]<=17020?t[0]<=96?t[11]<=1669e4?-.007842:-.007805:-.007905:.009523:t[13]<=5.5?t[11]<=1457e4?t[6]<=1e300?t[5]<=4.005?-.007819:-.007357:t[16]<=1e-35?-682e-6:-.00774:.01834:t[12]<=96?t[5]<=2.975?t[13]<=7.5?.01021:-.004563:t[11]<=8995?.005648:-8131e-7:.014:t[9]<=149.5?t[12]<=118?t[5]<=2.785?t[12]<=1e-35?t[5]<=2.665?.01059:.01701:-4258e-7:t[5]<=3.395?t[10]<=296.5?.007194:-.001663:t[5]<=3.745?.01506:.00677:.01866:t[1]<=118?.01891:t[10]<=235.5?t[16]<=9.5?.01895:t[16]<=29.5?.009106:.01371:t[16]<=1.5?.003569:t[0]<=122.5?.01169:.01693,e+=t[0]<=72?t[1]<=72?t[0]<=48?t[10]<=420.5?t[8]<=2096?.012:t[8]<=2104?-.001095:.01258:t[7]<=14.5?3315e-7:.01229:.01161:t[3]<=1e-35?t[9]<=88.5?t[6]<=1.5?t[8]<=2027?.002635:.007228:t[13]<=4.5?.007511:.009964:t[8]<=2055?t[6]<=2.5?-.002209:.007377:t[1]<=72?.002772:.01335:t[8]<=2037?-.009476:-.00723:t[0]<=96?t[5]<=2.765?t[1]<=72?t[13]<=14.5?-.007157:t[6]<=7.5?-.006132:-4961e-7:t[7]<=7.5?t[10]<=539.5?-.002473:.002643:t[9]<=123.5?.004226:-8477e-7:t[9]<=166.5?t[13]<=4.5?t[1]<=72?-.004285:.002906:t[8]<=2078?-.002906:-.001155:t[6]<=1e-35?t[8]<=2206?-.006649:-.00115:t[1]<=72?-.00689:.00162:t[5]<=1.505?t[13]<=6.5?t[8]<=2083?t[7]<=28.5?-.005509:5606e-7:t[7]<=1e-35?.00684:-.006789:t[8]<=21.5?.003095:t[9]<=70.5?-.006543:-.007755:t[9]<=156.5?t[1]<=96?t[6]<=5.5?-.008617:-.005558:t[0]<=118?-.00103:-.004421:t[7]<=98.5?t[9]<=263.5?-.006612:-.008958:t[5]<=3.005?946e-6:-.007946,i+=t[3]<=1e-35?t[2]<=72?t[5]<=1.995?t[9]<=88.5?t[10]<=61.5?t[4]<=1e-35?-.005003:.005182:t[4]<=1e-35?-.007974:-.005001:t[10]<=299.5?.003699:t[14]<=1827?-.005092:.001788:t[6]<=1.5?t[14]<=1921?t[8]<=2010?-.00591:-2878e-7:.003741:t[8]<=2048?9496e-7:.004878:t[5]<=2.765?t[9]<=123.5?t[5]<=2.005?.003363:t[8]<=2033?.002354:-9879e-7:t[8]<=2081?.006231:t[14]<=2306?-8844e-7:.006857:t[4]<=1e-35?t[8]<=2026?t[8]<=2015?8362e-7:.006664:t[15]<=222.5?-.005415:-2922e-7:t[9]<=65.5?t[10]<=97.5?.005216:.001612:t[6]<=1e-35?.007733:.004995:t[2]<=96?t[2]<=72?t[15]<=236.5?-.007132:t[6]<=5.5?-.004032:t[14]<=2335?-.001206:.00774:t[5]<=3.875?t[9]<=60.5?t[15]<=177.5?.004674:-.001657:-.00487:t[4]<=1e-35?-.0111:t[14]<=2247?.005672:7573e-7:t[5]<=3.595?t[16]<=12.5?t[6]<=5.5?t[14]<=1425?.003396:-.003292:t[15]<=634.5?-.002614:.01018:-.004516:t[2]<=114?t[15]<=4439?t[9]<=135.5?-.004534:-.006633:t[16]<=1.5?.00527:-.003478:-.008365,n+=t[3]<=1e-35?t[14]<=-1e-35?t[9]<=74.5?t[5]<=2.575?t[1]<=48?-.008154:-.008122:-.008344:.01917:t[1]<=96?t[7]<=1e-35?t[14]<=1546?t[11]<=336e3?-.008075:-.004336:t[1]<=1e-35?-.008198:-.008062:t[5]<=4.005?t[2]<=96?-.008092:-.008339:t[1]<=24?-.008126:-.008041:t[5]<=2.795?t[9]<=233.5?t[10]<=95.5?-.006902:-.008545:-.006247:-8602e-7:t[1]<=118?t[1]<=96?t[5]<=2.315?t[9]<=163.5?t[11]<=96610?-.002278:.006317:t[12]<=114?-.005564:.0102:t[12]<=1e-35?t[13]<=22.5?.008637:-.002615:t[9]<=166.5?-.00792:.005208:t[10]<=85.5?t[2]<=96?t[13]<=2.5?.002129:.008105:t[5]<=3.275?.006899:.01335:t[9]<=60.5?t[12]<=96?.003431:.01248:t[14]<=1921?.006313:.01043:t[10]<=1241?t[5]<=2.375?t[10]<=266.5?t[2]<=48?-.002108:-.005576:.001747:t[13]<=9.5?t[9]<=71.5?.001925:.009753:t[2]<=96?-.001204:.001478:.01253,
r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[4]<=1e-35?t[6]<=41.5?t[5]<=1.935?-.007794:-.007852:-.002208:t[0]<=96?t[5]<=4.35?-.007799:-.007779:t[1]<=114?-.007853:-.007877:t[8]<=2165?t[1]<=96?t[8]<=2140?-.007813:-.007877:-.007936:.02926:t[3]<=1e-35?t[5]<=2.435?t[1]<=118?t[6]<=1e300?-.007804:-.007863:t[9]<=119.5?-.008:-.008092:t[5]<=2.745?.006381:-.007871:t[15]<=1041?t[5]<=.49?t[9]<=179.5?.01959:.008998:t[12]<=48?.002313:.01585:t[8]<=2027?t[5]<=3.135?.02272:.00563:t[12]<=96?-.005617:.007803:t[0]<=122.5?t[1]<=118?t[9]<=94.5?.0247:t[9]<=163.5?.005809:.02024:t[5]<=2.745?t[9]<=26.5?-.009949:t[5]<=2.665?.0111:.01731:t[12]<=118?t[9]<=156.5?.005725:.01138:.0205:t[11]<=4432e3?t[11]<=20670?t[9]<=167.5?t[11]<=7834?.0186:.01653:.01283:t[0]<=126.5?.005016:.01538:t[15]<=1601?.0188:.02143,e+=t[2]<=72?t[5]<=1.995?t[7]<=3.5?t[4]<=1e-35?t[14]<=2243?t[10]<=59.5?.003785:.008194:-.003174:t[12]<=1e-35?t[14]<=2034?-.001537:-.007269:t[12]<=48?.01238:-.005363:t[9]<=59.5?t[2]<=48?.0104:t[11]<=10890?.0044:.01002:t[14]<=1741?t[11]<=1175e3?.009122:.00157:t[2]<=24?.006192:.001958:t[14]<=1921?t[7]<=96.5?t[16]<=206.5?t[15]<=88.5?.006893:.001907:t[12]<=1e-35?-.002171:.004327:t[15]<=323.5?t[15]<=239.5?.006356:.0123:t[14]<=1362?.0108:.001532:t[7]<=17.5?-.005521:t[5]<=2.545?.005715:-.001814:t[5]<=2.865?t[12]<=72?t[9]<=167.5?t[14]<=1721?t[12]<=1e-35?.003342:.01113:t[15]<=167.5?.004236:-15e-5:t[12]<=1e-35?t[5]<=2.505?-.002087:-.005717:.01127:-.00687:t[4]<=1e-35?t[7]<=4.5?t[9]<=100.5?t[14]<=2262?.004053:-.002656:t[11]<=2779?.002416:-.001781:-.00785:t[5]<=3.125?t[14]<=1839?t[15]<=497.5?-.002614:.002009:t[9]<=61.5?-2967e-7:-.004626:t[7]<=2.5?t[9]<=149.5?-.001355:-.005614:t[11]<=1e-35?.001844:-.006489,i+=t[1]<=96?t[2]<=72?t[5]<=3.365?t[6]<=1e-35?t[7]<=97.5?t[1]<=72?-.003198:.002256:t[9]<=63.5?-.008168:.0015:t[11]<=407800?t[13]<=18.5?.003472:8134e-7:t[1]<=72?.006841:.001424:t[13]<=5.5?t[11]<=7834?t[2]<=48?-.008163:-.001613:-.00859:t[2]<=24?-.008869:t[1]<=72?-.007947:-8178e-7:t[10]<=25.5?t[1]<=72?t[5]<=2.995?t[11]<=2984e3?-.005321:.006678:.007699:t[7]<=3.5?t[13]<=5.5?.001029:.006258:t[11]<=1e-35?-.00546:.00942:t[9]<=126?t[2]<=96?t[5]<=2.645?-534e-7:.00287:t[9]<=61.5?-.005303:.004461:t[2]<=96?t[5]<=3.035?.005009:-.005054:-.002119:t[2]<=96?t[2]<=72?t[7]<=1.5?t[1]<=96?t[13]<=6.5?-.004577:-2774e-7:t[11]<=15.5?.005685:-.006042:t[9]<=59.5?t[5]<=3.055?-.008235:.002018:-.004496:t[5]<=1.01?t[9]<=333.5?.003266:t[11]<=713.5?-709e-6:.008284:t[7]<=48.5?-.003377:t[10]<=177.5?-.001776:.004056:t[5]<=3.595?t[1]<=118?t[13]<=5.5?-2961e-7:-.00353:-.004677:t[1]<=96?.004276:-.008339,n+=t[3]<=1e-35?t[14]<=-1e-35?t[9]<=74.5?t[5]<=2.575?t[5]<=2.335?-.008148:-.008119:-.008336:.01886:t[11]<=2195e3?t[5]<=3.325?t[14]<=1452?t[14]<=1441?-.008064:.009737:t[4]<=1e-35?-.008134:-.008059:-.005872:t[11]<=224e4?t[9]<=144.5?t[6]<=91.5?-.00808:-.008133:.01699:t[16]<=29960?t[4]<=1e-35?-.008148:-.008075:t[10]<=578.5?-.007627:9791e-7:t[5]<=3.925?t[9]<=311.5?t[6]<=5.5?t[9]<=30.5?t[11]<=45380?-.001184:-.006744:t[14]<=1438?.001104:.005311:t[13]<=6.5?-.007166:t[9]<=197.5?.001847:.01115:t[10]<=119.5?t[11]<=46830?.01098:-8451e-7:t[11]<=520300?t[11]<=12140?.007926:.0151:.02136:t[13]<=2.5?-.008227:t[14]<=2237?t[12]<=96?t[10]<=43.5?.01141:.005926:t[16]<=501.5?.01269:3912e-7:t[13]<=12.5?t[9]<=143.5?.002285:.006771:t[16]<=17020?.008924:-.003391,r+=t[0]<=118?t[1]<=118?t[16]<=17020?t[4]<=1e-35?t[16]<=77.5?t[8]<=2079?-.007808:-.007855:-8636e-7:t[0]<=96?t[3]<=1e-35?-.007787:-.007809:t[7]<=33.5?-.007871:-.007848:t[8]<=2198?t[3]<=1e-35?t[13]<=22.5?-.007805:-.007826:t[2]<=114?-.00787:-.007936:.01729:t[3]<=1e-35?t[7]<=99.5?t[2]<=24?t[1]<=118?-.007795:-.00799:t[1]<=118?-.007859:-.008024:t[16]<=29960?t[13]<=15.5?-.007778:-.007896:.05033:t[9]<=256.5?t[8]<=2032?t[8]<=2018?.01359:.02618:t[8]<=2109?.00666:.01857:t[7]<=1e-35?.007957:t[8]<=2067?-.005424:-.008305:t[0]<=122.5?t[1]<=118?t[16]<=145.5?t[16]<=2.5?.004182:.01683:.02225:t[13]<=6.5?t[2]<=48?.01594:t[16]<=274.5?.004404:-.00383:t[9]<=29.5?-.008945:t[7]<=4.5?.01215:.009048:t[8]<=2126?t[9]<=61.5?t[8]<=2069?.01604:.01975:t[8]<=2029?.01677:t[9]<=144.5?.008003:.01627:.009733,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.005965:t[0]<=48?t[10]<=735.5?.01031:t[11]<=148900?.01169:-.006638:.01154:t[2]<=72?t[14]<=2446?t[9]<=74.5?t[10]<=25.5?.005233:.009025:t[6]<=9.5?4478e-7:.01106:t[6]<=3.5?-.004072:.007753:t[2]<=122.5?t[10]<=61.5?.004132:t[11]<=368100?-.008285:-.003581:t[8]<=2029?t[8]<=2016?.002706:-.003703:t[13]<=9.5?.007013:.002552:t[2]<=72?t[1]<=72?t[10]<=30.5?t[11]<=2136e3?.01305:-.008389:t[9]<=30.5?t[8]<=2030?7835e-7:-.0041:t[14]<=1721?-.005221:-.00828:t[0]<=114?t[10]<=424.5?t[13]<=4.5?.004885:-4904e-7:t[14]<=1698?.009263:.00453:t[10]<=324.5?t[14]<=1438?.005011:-.007523:t[14]<=1947?.002565:-.004614:t[10]<=16.5?t[6]<=1.5?t[11]<=1e-35?.01045:-.007963:t[13]<=4.5?t[1]<=72?-.005583:.003345:t[1]<=114?-.004881:-.0079:t[0]<=96?t[1]<=72?t[11]<=2195e3?-.007165:-.001238:t[8]<=2073?-9575e-7:.002749:t[14]<=1914?t[1]<=96?-.007804:-.001368:t[9]<=156.5?-.004115:-.007522,i+=t[3]<=1e-35?t[2]<=72?t[4]<=1e-35?t[9]<=74.5?t[15]<=5292?t[10]<=25.5?-.002845:-.0075:t[15]<=6295?.009885:-.003149:t[6]<=3.5?t[16]<=2111?.004986:-.007628:-.006242:t[6]<=1e-35?t[10]<=2576?t[9]<=60.5?-.001796:.002741:t[16]<=17.5?-.006725:-.002228:t[9]<=30.5?t[15]<=504.5?-2873e-7:.004109:t[6]<=8.5?.004252:.007962:t[4]<=1e-35?t[8]<=2027?t[8]<=2016?t[15]<=5292?-.002381:.005682:t[8]<=2019?.008362:9865e-7:t[13]<=7.5?-.005591:t[11]<=56060?-.002173:.001961:t[10]<=16.5?t[6]<=1.5?.0082:t[13]<=5.5?7796e-7:.005754:t[8]<=2074?t[8]<=2003?-2311e-7:.004294:t[8]<=2098?-3822e-7:.002356:t[2]<=96?t[2]<=72?t[15]<=226.5?-.007665:t[13]<=4.5?t[15]<=1319?-.004353:.008109:t[11]<=961.5?.002523:-.004682:t[10]<=1e-35?t[4]<=1e-35?-.01089:.004675:t[15]<=141.5?.004564:-.00315:t[10]<=57.5?t[15]<=2927?t[2]<=114?t[11]<=81.5?8888e-7:-.005927:-.008068:t[16]<=7.5?5768e-7:-.004946:t[16]<=3.5?t[6]<=12.5?-.0027:.00685:-.004553,n+=t[3]<=1e-35?t[14]<=-1e-35?t[13]<=12.5?.01461:t[1]<=96?t[1]<=48?-.00815:-.008118:-.008334:t[5]<=3.325?t[14]<=1452?t[14]<=1441?t[1]<=96?-.008069:-.007386:.009143:t[1]<=114?t[1]<=96?-.008062:-.008133:t[13]<=3.5?-.004775:-.008484:-.004945:t[1]<=118?t[1]<=96?t[6]<=1e-35?t[10]<=54.5?t[6]<=1e-35?-.004923:3272e-7:t[7]<=26.5?.006114:-.002251:t[7]<=97.5?t[5]<=2.315?.002631:.01231:t[5]<=2.905?.01103:-.00777:t[5]<=2.235?t[14]<=2237?t[16]<=61500?.008531:-7289e-7:t[1]<=96?.005397:.01132:t[12]<=96?t[7]<=19.5?.007908:.003551:t[13]<=9.5?.01644:.008446:t[12]<=118?t[13]<=12.5?t[10]<=79.5?t[13]<=11.5?-.004161:.008833:t[5]<=1.01?.019:.002742:t[5]<=3.735?t[13]<=29.5?-.00133:.003867:t[14]<=2034?-9704e-7:.01276:-.007127,r+=t[0]<=118?t[1]<=118?t[8]<=2198?t[0]<=96?t[0]<=48?t[8]<=2018?-.006816:-.007807:t[3]<=1e-35?-.007784:-.007805:t[7]<=35.5?t[1]<=114?-.007858:-.007885:t[6]<=1e-35?-.00784:-.007859:t[8]<=2199?t[9]<=60.5?.02868:-.007824:t[0]<=96?-.007788:t[7]<=22.5?-.007883:-.007847:t[3]<=1e-35?t[8]<=2158?t[2]<=24?t[1]<=118?-.007791:-.007997:t[1]<=118?-.007856:-.008007:t[8]<=2159?.01126:t[1]<=122.5?-.008065:-.007808:t[13]<=5.5?t[8]<=2072?.007708:t[8]<=2087?-.003597:-.008265:t[8]<=2171?t[8]<=2109?.01024:.02379:t[14]<=1920?.006106:-.005794:t[13]<=6.5?t[15]<=167.5?.01094:t[15]<=404.5?-.002155:t[15]<=607.5?.01665:t[8]<=2006?.009726:-.001591:t[0]<=122.5?t[13]<=16.5?t[8]<=2119?t[14]<=1682?.006901:.01125:t[6]<=2.5?.006415:-.007355:t[14]<=1741?t[7]<=46.5?.01213:.003776:t[8]<=2079?.01198:.01618:t[9]<=70.5?t[7]<=1.5?.0145:.01968:t[9]<=118.5?t[6]<=1e-35?-.001153:.01732:t[15]<=1200?.01336:.01762,
e+=t[0]<=72?t[1]<=72?t[0]<=48?t[12]<=72?t[2]<=1e-35?t[9]<=29.5?-.004406:.00886:t[10]<=81.5?.006565:.01149:-.00515:.0115:t[3]<=1e-35?t[2]<=72?t[9]<=90.5?t[15]<=5292?.008165:.002286:t[9]<=413?.003023:-.006785:t[10]<=61.5?.006621:t[16]<=548.5?-.003355:-.008201:t[12]<=1e-35?t[10]<=32.5?-.003542:-.008637:t[10]<=12.5?.004156:-.007453:t[2]<=72?t[1]<=72?t[10]<=30.5?t[15]<=1111?.01618:-.007211:t[9]<=30.5?t[15]<=1214?-.001999:-.005855:t[2]<=48?-.008388:-.005923:t[5]<=1.125?t[9]<=18.5?t[6]<=1e-35?.006968:-.003889:t[15]<=264.5?-.002608:-.006563:t[0]<=96?t[2]<=48?.009581:.004148:t[9]<=164.5?9947e-7:-.006247:t[5]<=3.175?t[12]<=72?t[1]<=72?t[15]<=749.5?-.004813:-.008739:t[0]<=96?.001403:-.002673:t[9]<=122.5?t[5]<=2.495?-.008498:-.002796:-.008138:t[6]<=1e-35?t[10]<=286.5?t[16]<=36200?-.007912:-676e-7:t[10]<=312.5?.005575:-.004842:t[9]<=149.5?t[0]<=96?-.001644:-.005039:t[1]<=114?-.006104:-.007965,i+=t[1]<=96?t[0]<=72?t[12]<=72?t[14]<=360.5?6997e-7:t[1]<=72?t[13]<=2.5?-7214e-7:-.009644:t[12]<=1e-35?.004434:-.0121:t[7]<=14.5?.01239:t[0]<=48?9375e-7:-.009669:t[0]<=96?t[14]<=1711?t[1]<=72?t[7]<=56.5?.007916:.004661:t[5]<=1.01?.00404:1664e-7:t[5]<=2.765?t[1]<=72?.00878:.002867:t[13]<=4.5?.001652:.006984:t[7]<=97.5?t[10]<=83.5?t[7]<=1e-35?-.01162:-.003662:t[1]<=48?-.006516:-.01057:t[5]<=2.905?-.006056:.00952:t[0]<=118?t[5]<=1.34?t[7]<=7.5?t[13]<=20.5?t[10]<=69.5?-.001662:-.005083:t[16]<=8.5?.01018:.002898:t[13]<=15.5?t[12]<=72?-.008743:-2287e-7:t[16]<=335.5?-.006324:.007123:t[3]<=1e-35?t[0]<=48?t[13]<=7.5?-.004536:6013e-7:t[14]<=1478?-3942e-7:.008914:t[12]<=96?t[12]<=72?-.003604:.002463:-.00772:t[14]<=2178?t[0]<=122.5?t[13]<=8.5?t[5]<=2.925?-.0042:-9943e-8:t[10]<=804.5?-.005243:4644e-7:-.00798:t[5]<=3.055?-.008209:t[5]<=3.445?t[16]<=5.5?.00174:-.006303:-.007613,n+=t[3]<=1e-35?t[0]<=114?t[5]<=3.325?t[15]<=1532?t[0]<=96?t[1]<=96?-.008058:-.00811:-.007136:t[15]<=1716?t[8]<=2027?.001272:-.008077:t[1]<=96?-.008064:-.008146:-.004919:t[5]<=2.855?t[8]<=2071?-.008759:-.005499:.01144:t[0]<=118?t[0]<=96?t[1]<=96?t[5]<=3.825?t[8]<=2105?-.007106:-.003068:t[9]<=57.5?.01422:-.008746:t[1]<=96?t[15]<=1007?.008604:.003013:.01965:t[1]<=96?t[5]<=2.885?t[16]<=20.5?.01897:.01567:t[5]<=2.995?.007257:.01386:t[2]<=96?t[8]<=2047?.007655:.003527:t[5]<=3.315?.005191:.01101:t[1]<=114?t[8]<=2088?.01718:-9365e-8:t[0]<=122.5?t[9]<=26.5?.01635:t[12]<=118?9933e-7:-.006451:t[9]<=40.5?.004421:t[0]<=125.5?-.008728:-.0048,r+=t[0]<=118?t[4]<=1e-35?t[13]<=5.5?t[11]<=1457e4?t[6]<=1e300?t[10]<=13.5?-.00414:-.007689:t[11]<=42650?-.007452:6149e-7:.01488:t[12]<=48?t[5]<=1.01?t[11]<=1457e4?-.004941:.01967:t[15]<=799.5?.00304:-.002053:t[10]<=179.5?.004094:.02335:t[12]<=118?t[16]<=17020?t[8]<=1e-35?t[5]<=3.325?-.006856:.02559:t[0]<=96?-.007788:-.007858:t[8]<=2196?t[15]<=119.5?.01056:-.007872:.0195:t[8]<=1e-35?.02453:t[5]<=3.045?-.007841:-.007881:t[0]<=122.5?t[13]<=16.5?t[8]<=2123?t[13]<=6.5?t[15]<=167.5?.01302:.001492:t[5]<=1.805?.01852:.009858:t[5]<=2.365?t[6]<=1.5?.01133:.004252:t[8]<=2195?-7446e-7:.01248:t[11]<=567.5?.00413:t[10]<=424.5?t[16]<=152.5?.01554:.0119:.005839:t[11]<=4432e3?t[13]<=11.5?t[0]<=126.5?t[5]<=.995?.01182:-.004507:.01495:t[10]<=65.5?.012:.01758:t[5]<=3.035?.02116:.01665,e+=t[3]<=1e-35?t[4]<=1e-35?t[9]<=88.5?t[16]<=1.5?t[15]<=854.5?.01003:t[10]<=71.5?651e-6:.00801:t[5]<=1.995?t[10]<=57.5?.005055:.009243:-.007386:t[15]<=189.5?t[9]<=180.5?t[10]<=189.5?.01093:5999e-7:.01234:t[11]<=7834?t[9]<=300.5?.002626:.01277:t[8]<=2071?-.002823:.001315:t[5]<=2.765?t[12]<=72?t[12]<=1e-35?t[9]<=1e-35?.004087:5404e-7:t[15]<=352.5?.00387:.01128:t[1]<=72?t[15]<=481.5?.005298:-.005124:-.007622:t[1]<=72?t[10]<=11.5?t[9]<=59.5?-.003665:.00781:t[11]<=53980?.003014:-.003071:t[9]<=141.5?t[15]<=245.5?-.002231:-1537e-7:t[9]<=167.5?-.003141:-.005625:t[1]<=72?t[10]<=50.5?t[11]<=2792e3?.009543:-.005433:t[15]<=88.5?.01136:t[1]<=48?t[15]<=841.5?-.006188:.0014:t[11]<=15650?.005546:-4181e-7:t[5]<=1.855?t[8]<=1e-35?.002332:t[1]<=114?t[9]<=100.5?-.004348:-.006439:-.007245:t[9]<=143.5?t[12]<=72?t[12]<=1e-35?-.002159:.005412:t[1]<=96?-.00151:-.008119:t[9]<=271?t[16]<=342.5?-.004346:-.006757:-.008402,i+=t[1]<=96?t[2]<=72?t[5]<=3.365?t[16]<=11.5?t[15]<=94.5?-.004217:t[11]<=323100?5131e-8:.003932:t[10]<=1241?t[14]<=1721?.001938:.004872:-.005787:t[16]<=17.5?t[11]<=11320?t[1]<=72?-.008483:-.002941:-.008154:t[11]<=2792e3?t[9]<=147.5?-.003966:.001747:.004873:t[5]<=1.01?t[1]<=72?t[11]<=837500?t[14]<=822?.00963:-.004801:.006676:t[7]<=4.5?t[9]<=60.5?.003326:.006988:t[11]<=1e-35?-.006057:.009194:t[2]<=96?t[9]<=135.5?t[5]<=2.655?-202e-6:.002948:t[14]<=1921?.003416:.006594:t[16]<=2629?t[16]<=17.5?-.002297:-.00708:.005315:t[2]<=96?t[2]<=72?t[7]<=6.5?t[1]<=96?t[15]<=442.5?-.003602:-4011e-7:t[1]<=118?-.004178:-.007223:t[5]<=2.495?-.007858:t[1]<=96?.006232:-.004811:t[10]<=2988?t[15]<=812.5?t[7]<=47.5?-.001896:.004705:t[14]<=1460?.001427:-.005667:t[7]<=92.5?t[14]<=1495?.009886:.001521:.007564:t[5]<=4.005?t[11]<=7448e3?t[1]<=118?t[16]<=33.5?-.00206:-.004547:-.00537:t[15]<=1007?-.003859:.007978:-.008811,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[7]<=1e-35?t[16]<=37.5?t[16]<=35.5?-.007767:.01054:t[8]<=2015?-.007951:-.008107:t[5]<=4.005?t[6]<=5.5?-.008075:-.008046:t[2]<=72?-.008065:-.008007:-.00527:t[7]<=64.5?t[7]<=2.5?-.008628:-.003452:.00847:t[0]<=118?t[0]<=96?t[1]<=96?t[5]<=3.255?t[6]<=1e-35?-.008268:-.004392:t[16]<=152.5?-.001417:.01607:t[1]<=96?t[13]<=14.5?.01113:.004773:.01937:t[1]<=96?t[7]<=56.5?t[16]<=81.5?.01745:.01147:t[6]<=8.5?.01368:.002862:t[2]<=96?t[7]<=93.5?.007613:.00161:t[5]<=3.295?.005439:.01094:t[7]<=60.5?t[16]<=1761?t[8]<=2066?t[13]<=29.5?-.00413:-9695e-7:t[0]<=126.5?3724e-7:-.006568:t[16]<=17020?t[5]<=3.455?.005544:-.004243:t[13]<=15.5?-962e-6:-.00826:t[16]<=162.5?t[6]<=9.5?t[13]<=12.5?.006052:3935e-7:.02029:t[8]<=2114?t[13]<=7.5?-.005732:.002418:t[13]<=18.5?-.006947:-.001258,r+=t[3]<=1e-35?t[11]<=1457e4?t[11]<=15.5?t[5]<=2.995?t[8]<=2071?t[8]<=2011?-.007812:-.008178:t[15]<=1167?-.007929:-.002275:.009113:t[14]<=1081?t[13]<=29.5?t[2]<=96?-.00778:-.007806:.01966:t[15]<=44.5?t[13]<=18.5?-.007774:.001986:t[2]<=114?-.007789:-.003422:t[15]<=3135?t[5]<=2.635?t[5]<=2.005?-.007981:t[8]<=2156?-.007817:-.007924:.002057:t[13]<=12.5?.0101:.01962:t[2]<=118?t[5]<=4.725?t[12]<=118?t[13]<=12.5?t[2]<=24?.01048:.002066:t[8]<=2099?.005008:.01031:t[8]<=2025?.02214:t[13]<=16.5?.008168:.01836:t[16]<=19.5?t[11]<=664.5?t[2]<=96?-.003821:.008516:t[11]<=57570?-.006268:-.00239:t[8]<=4218?t[4]<=1e-35?.01277:7743e-7:.02155:t[5]<=3.405?t[12]<=96?t[13]<=20.5?t[8]<=2066?.005472:-.004597:.01623:.01703:t[8]<=2002?t[11]<=7271?.008486:t[14]<=2548?-.00714:-.001696:t[15]<=239.5?t[16]<=2111?.01323:.005237:t[8]<=2096?.006774:.01059,e+=t[3]<=1e-35?t[1]<=1e-35?t[9]<=141.5?t[7]<=16.5?t[5]<=1.995?t[10]<=71.5?.005144:.008852:-.008048:t[5]<=2.715?.01013:-.005925:t[13]<=11.5?.01065:t[9]<=161.5?-.003591:t[11]<=5016?.005058:2174e-7:t[5]<=2.765?t[12]<=72?t[12]<=1e-35?t[13]<=1e300?5766e-7:.004076:t[7]<=9.5?.01357:.007287:t[1]<=72?t[7]<=18.5?-.008487:.004945:-.007554:t[1]<=72?t[10]<=11.5?t[7]<=9.5?.002833:.00967:t[11]<=53980?.003077:-.003043:t[14]<=1682?t[12]<=1e-35?4399e-7:.004912:t[9]<=61.5?-6217e-7:-.003979:t[1]<=72?t[10]<=50.5?t[11]<=2792e3?.009478:-.005375:t[1]<=48?t[14]<=1711?.002883:t[5]<=2.955?-.00121:-.008329:t[13]<=12.5?t[11]<=392.5?.01577:-.002297:t[11]<=19290?.01:.0017:t[5]<=1.855?t[14]<=1711?t[14]<=1145?.004784:t[1]<=118?-.004083:-.00708:t[9]<=30.5?t[11]<=758900?-.006514:.007749:t[11]<=1e-35?-.002124:-.007466:t[14]<=1920?t[12]<=72?t[14]<=1113?.01255:-2738e-7:-.007291:t[9]<=141.5?t[10]<=355.5?-.004199:-.001193:-.006981,
i+=t[1]<=96?t[0]<=72?t[1]<=72?t[11]<=1507e3?-.009469:t[1]<=48?.00949:-.01003:t[11]<=186900?t[11]<=17320?t[8]<=2002?.004138:-.009738:.009742:-.01002:t[0]<=96?t[2]<=72?t[1]<=72?t[10]<=16.5?4902e-7:.00715:t[5]<=2.885?.001525:-.003837:t[5]<=1.01?t[6]<=1e-35?.009073:.006056:t[1]<=72?.00843:.002374:t[0]<=114?t[5]<=2.985?t[5]<=2.755?-.001681:-.0083:.001986:t[10]<=497.5?-.009565:t[11]<=864600?-.007157:-7615e-8:t[2]<=96?t[2]<=72?t[6]<=3.5?t[3]<=1e-35?t[0]<=72?-.00185:.008315:t[0]<=118?-.004493:-.007115:t[5]<=2.995?t[16]<=6.5?-.008932:-.006108:.004637:t[10]<=2988?t[3]<=1e-35?t[11]<=837500?.007622:-.002556:t[15]<=141.5?.003369:-.004049:t[15]<=4027?t[0]<=114?.003397:.007609:-.003823:t[5]<=4.005?t[8]<=2064?t[6]<=5.5?t[11]<=541600?-.00674:-.00334:.001131:t[0]<=118?t[2]<=114?-1162e-7:-.003436:t[8]<=2164?-.005244:.002826:t[2]<=114?t[1]<=114?-.009735:t[1]<=118?-.002824:-.007359:-.009619,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[7]<=1e-35?t[14]<=1537?t[16]<=37.5?-.005678:-.008032:t[0]<=48?-.008165:-.008031:t[5]<=4.005?t[6]<=5.5?-.00807:-.00804:t[2]<=72?-.008061:-.008:-.005253:t[7]<=64.5?t[14]<=1537?-.00208:-.008719:.008364:t[0]<=118?t[0]<=96?t[4]<=1e-35?t[7]<=56.5?t[7]<=4.5?.008202:-2257e-7:.01843:t[16]<=303.5?t[5]<=1.01?.009448:-.005026:t[8]<=2080?.0106:-.008:t[2]<=114?t[14]<=1698?t[5]<=2.895?.005349:.001058:t[12]<=96?.007965:.01359:t[6]<=1e-35?t[7]<=40.5?.01023:.01358:t[14]<=1921?.007237:.0102:t[7]<=60.5?t[16]<=1761?t[8]<=2066?t[14]<=1460?-.00803:-.002571:t[0]<=126.5?363e-6:-.006545:t[16]<=17020?t[5]<=3.455?.005469:-.004222:t[7]<=5.5?-.002574:-.007475:t[16]<=162.5?t[6]<=9.5?t[8]<=2028?-7393e-7:.005092:.0199:t[8]<=2114?t[6]<=1e-35?.003331:-.002583:t[5]<=3.405?-.007274:-.00214,r+=t[1]<=118?t[3]<=1e-35?t[6]<=9.5?t[1]<=96?t[5]<=4.005?-.007785:-.007763:t[13]<=5.5?-.007797:-.007846:t[7]<=11.5?t[15]<=3135?-.007799:.03959:-.007774:t[4]<=1e-35?t[15]<=513.5?t[13]<=10.5?.00278:t[9]<=294.5?.01725:.004509:t[7]<=4.5?t[14]<=1920?-.005457:.0034:t[10]<=73.5?.00484:.01994:t[1]<=114?t[13]<=1e-35?.02722:t[14]<=3427?-.00711:225e-6:t[5]<=3.165?t[6]<=19.5?-.00595:.001109:t[14]<=1409?.02252:.002066:t[7]<=54.5?t[10]<=497.5?t[14]<=1953?t[15]<=442.5?t[7]<=3.5?.01293:.009476:t[15]<=634.5?.001448:.009492:t[15]<=28.5?.01865:t[9]<=60.5?.01447:.01147:t[9]<=115.5?t[10]<=1053?t[15]<=1214?-.007152:-9213e-7:.00579:t[10]<=991.5?.0136:.003632:t[14]<=1761?t[10]<=187.5?t[10]<=145.5?t[10]<=77.5?.005002:-.00541:.02281:t[7]<=95.5?-4992e-8:t[9]<=63.5?-.003213:-.008313:t[7]<=70.5?t[6]<=1e-35?t[14]<=2196?.001023:.009278:-.009457:t[13]<=15.5?t[7]<=77.5?.01706:.005702:t[15]<=91.5?.02047:.009724,e+=t[2]<=72?t[5]<=2.085?t[3]<=1e-35?t[7]<=4.5?t[1]<=72?t[9]<=74.5?.006889:.002419:t[12]<=1e-35?-.002515:.005889:t[13]<=3.5?t[2]<=48?.01069:.008412:t[9]<=179.5?.007252:.001465:t[5]<=1.125?-.005924:t[1]<=72?.009389:t[7]<=5.5?-.004325:.002493:t[6]<=1.5?t[1]<=114?t[12]<=72?t[7]<=6.5?-1498e-7:.004854:t[7]<=27.5?-.009303:.00108:-.005247:t[1]<=72?t[16]<=53.5?-.001249:-.006317:t[12]<=24?t[9]<=62.5?.001883:-.005957:t[12]<=72?.01723:-.001189:t[3]<=1e-35?t[1]<=72?t[6]<=2.5?t[7]<=33.5?t[6]<=1e-35?.003634:-.001648:t[1]<=1e-35?-6706e-7:.00763:t[5]<=2.865?t[9]<=74.5?5107e-7:-.005877:-.008101:t[5]<=1.01?t[7]<=4.5?t[9]<=141.5?-1095e-7:-.004595:-.007768:t[12]<=72?t[12]<=1e-35?.001192:.008954:t[16]<=8100?-.006739:.006679:t[1]<=72?t[6]<=4.5?t[16]<=214.5?.007757:.001846:-.004092:t[5]<=2.005?t[13]<=4.5?-.00325:t[7]<=3.5?-.006743:-.00827:t[9]<=144.5?t[12]<=72?-.001566:-.007784:-.006044,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.007253:t[0]<=48?t[7]<=25.5?t[10]<=420.5?-.006125:.002518:-.01009:-.009761:t[0]<=96?t[2]<=72?t[10]<=3708?t[1]<=72?.00661:.001448:t[2]<=24?-.009443:-.003288:t[10]<=16.5?t[7]<=4.5?.005745:.009296:t[1]<=72?.008295:.002446:t[7]<=93.5?t[10]<=24.5?t[15]<=599.5?-.008354:-7344e-7:-.009114:t[6]<=8.5?t[9]<=238.5?-.009653:.001887:.006505:t[2]<=96?t[2]<=72?t[7]<=7.5?t[3]<=1e-35?t[10]<=59.5?-4041e-7:-.005724:t[1]<=118?-.00418:-.00713:t[9]<=59.5?t[0]<=72?-.008925:-.00588:t[10]<=16.5?.00959:-.005381:t[10]<=1724?t[3]<=1e-35?t[15]<=397.5?.007843:-2618e-7:t[7]<=65.5?-.00633:.001519:t[9]<=179.5?t[3]<=1e-35?.009106:.001057:t[0]<=114?.003715:.009035:t[10]<=16.5?t[2]<=114?t[1]<=114?-.009611:t[1]<=118?-.001491:-.007009:-.009655:t[0]<=118?t[9]<=23.5?t[14]<=1367?.00892:-.001155:t[7]<=15.5?-.002521:-.004663:t[15]<=390.5?-.007105:t[0]<=122.5?-.003457:-.008928,n+=t[0]<=96?t[1]<=96?t[2]<=96?t[4]<=1e-35?t[7]<=12.5?-.001553:t[2]<=24?-.008014:-.008056:t[6]<=1e-35?t[2]<=72?-.008079:-.008041:t[16]<=10.5?-.007394:-.008066:t[6]<=1.5?t[16]<=942.5?t[6]<=1e-35?-.008476:-.008701:t[11]<=223800?-.008671:.005395:t[11]<=1664?.0149:-.001665:t[1]<=118?.01907:t[2]<=72?t[14]<=2548?t[7]<=2.5?-.006175:-.007754:t[16]<=173.5?-.006669:.004925:t[7]<=56.5?t[11]<=148900?-.003237:1294e-8:.01139:t[0]<=118?t[1]<=96?t[14]<=1470?.005251:t[7]<=93.5?t[11]<=72670?.0179:.01314:t[16]<=1.5?.003709:.01395:t[6]<=1e-35?t[2]<=96?t[8]<=2047?.007854:.003648:t[7]<=30.5?.008298:.01168:t[13]<=11.5?t[7]<=54.5?.003942:-.002302:t[8]<=2014?-.001848:.007205:t[7]<=1.5?t[13]<=16.5?t[1]<=118?-.006954:t[8]<=2007?.008008:-3927e-7:t[11]<=2433?.003056:t[13]<=22.5?-.007522:-5019e-7:t[1]<=114?.0127:t[1]<=118?t[13]<=5.5?.001612:-.00695:t[2]<=96?-6216e-7:.002352,r+=t[0]<=118?t[1]<=118?t[16]<=17020?t[4]<=1e-35?t[16]<=490.5?t[2]<=24?-.007775:-.007828:-.001985:t[0]<=96?t[5]<=4.03?-.007783:-.007762:t[1]<=114?-.007839:-.007863:t[8]<=2196?t[0]<=96?t[8]<=2150?-.007793:-.00782:t[2]<=114?-.007862:-.007933:.01688:t[13]<=5.5?t[14]<=2548?t[13]<=2.5?t[8]<=2071?-.008023:.002805:t[0]<=1e-35?-.006088:-.007691:t[2]<=1e-35?.009868:t[5]<=1.505?-.007817:-.00819:t[12]<=96?t[14]<=1927?t[9]<=243.5?-.002881:.009715:t[9]<=60.5?.01081:9412e-7:.01587:t[0]<=122.5?t[1]<=118?t[2]<=114?.009493:t[8]<=2079?.0237:.01629:t[9]<=149.5?t[5]<=2.925?t[2]<=118?.008271:.01369:t[5]<=3.315?.001864:.008169:t[9]<=163.5?t[16]<=342.5?.01412:.01807:t[5]<=2.745?.01453:.009627:t[13]<=10.5?t[5]<=2.815?t[16]<=26.5?.01615:.01242:.007641:t[9]<=60.5?.01851:t[9]<=144.5?.009772:t[9]<=164.5?.01731:.01403,e+=t[0]<=72?t[1]<=72?t[12]<=72?t[0]<=48?t[2]<=1e-35?t[15]<=1386?.001117:.01197:t[10]<=81.5?.006748:.01164:.01128:t[2]<=48?-.005993:.01186:t[3]<=1e-35?t[2]<=48?t[7]<=7.5?t[10]<=59.5?.003992:.008187:t[5]<=1.995?.009776:-.005385:t[2]<=72?t[12]<=1e-35?.003969:.0148:t[10]<=61.5?.01283:-.005475:t[2]<=72?-.006777:-.009381:t[3]<=1e-35?t[2]<=72?t[10]<=12.5?t[2]<=48?t[7]<=68.5?.006524:.01226:t[16]<=1e-35?.007986:.004322:t[1]<=72?t[12]<=1e-35?-.004381:.001803:t[7]<=7.5?-.002337:.003714:t[10]<=16.5?t[7]<=14.5?t[1]<=72?-.008643:-.002863:t[16]<=36200?-.008034:.00303:t[12]<=72?t[1]<=72?-.005823:.001589:t[16]<=9231?-.00684:.002409:t[5]<=1.125?t[2]<=72?t[5]<=1.01?t[10]<=47.5?-.005132:-.009547:t[7]<=99.5?.001103:.006871:t[7]<=5.5?t[1]<=114?-.004618:-.007289:t[10]<=52.5?.002297:-.008355:t[12]<=72?t[12]<=1e-35?t[0]<=118?-.002259:-.004873:t[10]<=111.5?-.004514:.01052:-.00731,i+=t[1]<=96?t[2]<=72?t[10]<=2576?t[6]<=1e-35?t[12]<=72?t[1]<=72?-.005868:1393e-7:t[10]<=388.5?.001995:.01051:t[12]<=1e-35?t[3]<=1e-35?.004128:-.001796:t[12]<=72?-.006302:.005474:t[2]<=24?-.009272:t[1]<=72?-.008501:t[16]<=17.5?-.004512:-752e-6:t[5]<=1.01?t[1]<=72?t[11]<=1596e3?t[5]<=.985?.00945:-.004942:.007254:t[6]<=1e-35?t[8]<=68?-.005447:.008882:t[8]<=2086?.005899:.002856:t[12]<=72?t[8]<=2074?t[12]<=1e-35?.003009:-.004684:t[8]<=2097?-.001636:.001343:t[1]<=72?-.003804:t[12]<=114?.008571:.001036:t[2]<=96?t[2]<=72?t[6]<=8.5?t[3]<=1e-35?t[6]<=8.5?-.003821:-6288e-8:t[1]<=118?-.00441:-.006662:t[5]<=2.855?-.008448:9269e-7:t[10]<=1724?t[3]<=1e-35?t[11]<=837500?.006357:-.003347:t[8]<=2026?-.006236:-.001916:t[16]<=1e-35?.006873:t[3]<=1e-35?.009218:.001277:t[5]<=3.365?t[12]<=96?t[12]<=72?t[16]<=1e-35?-.001111:-.003953:.006919:-.008974:t[10]<=54.5?-.008567:t[8]<=2164?-.006199:.001425,
n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[7]<=1e-35?t[16]<=37.5?t[16]<=35.5?-.007739:.0127:t[8]<=2015?-.007943:-.008093:t[5]<=4.005?t[1]<=72?-.00804:-.008061:t[1]<=96?-.007999:-.008089:-.005374:t[7]<=64.5?t[7]<=4.5?-.008761:-.007084:.0114:t[0]<=118?t[0]<=96?t[1]<=96?t[10]<=238.5?t[7]<=1e-35?-.00291:-.008265:t[10]<=316.5?.008691:-.006991:t[0]<=72?t[10]<=272.5?.001437:.009079:.01844:t[1]<=96?t[8]<=2020?.004594:t[10]<=388.5?.01557:.009938:t[5]<=3.325?t[8]<=2043?.00902:.003309:t[12]<=96?.008732:.0146:t[7]<=1.5?t[5]<=2.005?t[10]<=43.5?-.004136:-.007915:t[1]<=118?-.007188:t[0]<=122.5?5419e-7:-.00552:t[1]<=114?.01253:t[1]<=118?t[10]<=446.5?-.006852:8417e-7:t[12]<=1e-35?.002013:-.002077,r+=t[1]<=118?t[3]<=1e-35?t[16]<=29960?t[1]<=96?t[5]<=4.005?t[1]<=72?-.007768:-.007783:t[2]<=72?-.00777:-.007744:t[2]<=24?t[13]<=5.5?-.007763:-.007799:t[13]<=7.5?-.00782:-.007856:t[7]<=99.5?t[1]<=96?-.007793:-.007858:.04115:t[1]<=1e-35?t[13]<=5.5?t[11]<=22530?-.007734:.006994:t[16]<=75.5?t[11]<=664.5?.004517:.018:t[16]<=238.5?-.003447:.009536:t[11]<=4432e3?t[13]<=1e-35?.02618:t[1]<=114?-.007385:-.003588:t[16]<=243.5?t[14]<=1920?-.004675:-.007967:t[15]<=1007?.01762:.007482:t[13]<=8.5?t[2]<=48?t[16]<=280.5?t[11]<=8382?.0111:.01584:t[5]<=3.005?.01816:t[13]<=5.5?.004516:-.002512:t[15]<=2029?t[5]<=2.945?t[5]<=2.855?-.003717:.008121:t[16]<=1068?-.006418:7098e-7:.01053:t[7]<=23.5?t[12]<=114?t[15]<=233.5?t[15]<=63.5?.006381:.01355:t[11]<=2342?.005819:.01017:.01831:t[14]<=1513?t[14]<=1281?.004397:t[5]<=3.355?-.008398:-.001676:t[2]<=96?t[15]<=513.5?-.001142:.01181:t[5]<=3.105?.007006:.01125,e+=t[0]<=72?t[1]<=72?t[14]<=360.5?-.005181:t[12]<=72?t[4]<=1e-35?t[13]<=11.5?.009692:.001094:.0112:t[0]<=48?-.001713:.01154:t[3]<=1e-35?t[9]<=88.5?t[5]<=1.895?t[10]<=59.5?.006249:.009078:t[13]<=11.5?-7821e-7:-.007339:t[1]<=72?t[10]<=408.5?.001252:.0118:t[16]<=376.5?.00964:.01715:t[14]<=1711?t[10]<=125.5?5985e-7:-.00714:-.008142:t[3]<=1e-35?t[14]<=1610?t[1]<=72?t[12]<=1e-35?t[13]<=14.5?-.007221:-.003035:t[10]<=147.5?-.006111:.01047:t[5]<=1.01?t[13]<=2.5?.01385:1349e-7:t[12]<=72?.004055:-.003184:t[5]<=2.635?t[1]<=72?t[10]<=339.5?-.007528:-.002601:t[13]<=5.5?.00418:-5189e-7:t[9]<=165.5?t[1]<=72?-.006207:-.002229:t[14]<=1708?-.002476:-.006557:t[5]<=1.855?t[14]<=1921?t[13]<=7.5?t[14]<=1140?.008065:-.0044:t[0]<=114?-.004754:-.007123:-.007681:t[14]<=1899?t[12]<=72?t[0]<=118?6109e-7:-.002493:t[5]<=3.335?-.008566:-.001416:t[9]<=160.5?t[10]<=371.5?-.004458:-.001266:t[0]<=96?-.001103:-.007638,i+=t[0]<=96?t[0]<=72?t[0]<=48?t[7]<=30.5?t[8]<=2027?t[2]<=72?-4591e-7:.006204:t[14]<=2004?-.004558:6518e-7:t[12]<=72?-.008553:-7357e-7:-.009617:t[14]<=1610?t[8]<=2082?t[2]<=72?t[5]<=4.005?.003614:-.007277:t[5]<=.995?.007408:.002157:t[12]<=72?t[5]<=1.205?.002376:-.002045:.009078:t[5]<=2.935?t[13]<=20.5?t[14]<=2243?.004175:.007448:t[12]<=72?.001198:.008789:t[2]<=72?t[6]<=1e-35?-.00203:.008841:t[7]<=20.5?.006418:.009084:t[2]<=96?t[2]<=72?t[13]<=14.5?t[5]<=2.465?-.005061:t[0]<=118?.002549:-.005446:t[5]<=3.045?-.0077:t[7]<=78.5?-.009898:.003114:t[5]<=3.885?t[15]<=130.5?t[13]<=11.5?.009707:-.001764:t[0]<=114?-9347e-7:-.005667:t[9]<=241.5?t[15]<=4027?.003164:-.00883:t[0]<=114?.004722:.009893:t[5]<=3.295?t[12]<=96?t[9]<=55.5?t[5]<=2.405?-.006532:-5162e-7:t[6]<=13.5?-.004259:.004741:-.008719:t[7]<=5.5?t[13]<=6.5?t[15]<=1631?-.003752:.005549:t[0]<=118?-.004981:-.007099:-.008061,n+=t[0]<=96?t[1]<=96?t[1]<=1e-35?t[6]<=2.5?t[5]<=3.105?t[12]<=48?-.003493:.005386:.01545:t[16]<=13100?t[14]<=1920?-.007981:-.006898:t[6]<=6.5?.003481:-.008029:t[5]<=3.825?t[5]<=3.355?t[6]<=1e-35?-.008049:-.007659:t[9]<=141.5?-.008742:.007067:t[7]<=20.5?.02277:-.008509:t[0]<=72?t[14]<=2196?t[14]<=1920?-.008201:-.00881:.00458:.0215:t[0]<=118?t[1]<=96?t[9]<=278.5?t[0]<=114?.01137:t[10]<=223.5?.01865:.01522:t[10]<=91.5?t[7]<=93.5?.001877:.005809:.01357:t[10]<=50.5?t[14]<=1947?t[1]<=114?.008929:.006633:t[16]<=1.5?.009154:.01131:t[12]<=96?t[7]<=17.5?.007167:.002745:t[10]<=111.5?.006584:.01334:t[7]<=3.5?t[9]<=59.5?t[14]<=1920?.008637:.002184:t[16]<=1818?t[0]<=122.5?-.002104:-.007488:t[16]<=2817?.009661:-.001517:t[1]<=114?t[15]<=625.5?.01629:.002899:t[15]<=435.5?t[5]<=3.695?.001664:.01568:t[16]<=1613?-8695e-7:.003351,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[0]<=48?t[8]<=2018?-.006811:-.007792:t[5]<=4.35?-.007778:-.007756:t[1]<=114?t[7]<=25.5?-.007844:-.007825:t[5]<=3.055?-.007853:-.007892:t[8]<=2196?t[1]<=96?t[8]<=2156?-.007795:-.007863:-.00792:.02848:t[2]<=72?t[11]<=1457e4?t[12]<=118?t[11]<=411e4?-.006899:-3296e-7:.02598:.01929:t[13]<=6.5?t[14]<=1441?t[11]<=57570?.004199:-.007941:t[11]<=4875e3?-.007843:-.004985:t[14]<=1441?t[10]<=512.5?-.002556:-.007903:t[12]<=96?.002574:.01669:t[0]<=122.5?t[1]<=118?t[11]<=199300?.009131:t[10]<=398.5?.02476:.01334:t[11]<=4432e3?t[5]<=2.005?t[2]<=118?.01004:.01653:t[13]<=6.5?-8502e-7:.00822:t[14]<=1438?-.006952:t[5]<=2.945?.01245:.00258:t[10]<=283.5?t[13]<=11.5?.01334:.01672:t[14]<=1721?t[11]<=7561?.009776:.007548:t[8]<=2031?.01254:t[0]<=126.5?.01302:.01554,e+=t[0]<=72?t[1]<=72?t[12]<=72?t[4]<=1e-35?t[7]<=12.5?952e-6:.01093:t[5]<=3.745?t[11]<=501500?.01113:.009078:.004158:t[2]<=48?-.006451:.01174:t[3]<=1e-35?t[2]<=72?t[7]<=4.5?t[12]<=1e-35?.004949:.01269:t[5]<=2.325?.00921:-.003037:t[16]<=206.5?t[16]<=5.5?-.004495:.002923:t[5]<=3.005?-.00479:-.01001:t[11]<=184.5?-.003701:t[12]<=1e-35?-.008024:-.004104:t[3]<=1e-35?t[2]<=72?t[1]<=72?t[12]<=1e-35?t[5]<=.995?.002812:-.004925:.002673:t[7]<=28.5?t[5]<=2.325?-.002049:.003172:t[2]<=48?.009288:.004897:t[5]<=2.855?t[1]<=72?t[7]<=42.5?-.008739:-.00389:t[12]<=72?.002386:-.006402:t[7]<=35.5?t[1]<=72?-.008572:-.002438:t[5]<=3.245?-.004394:-.008118:t[5]<=1.855?t[2]<=72?t[5]<=1.01?-.007814:t[11]<=21290?-.001008:.005363:t[11]<=1e-35?6638e-7:t[7]<=7.5?-.006486:-.008308:t[0]<=114?t[1]<=72?t[2]<=96?-.005541:-.009102:t[7]<=8.5?-.004042:5508e-8:t[1]<=114?-.007901:t[6]<=1.5?-.004623:-8073e-7,i+=t[3]<=1e-35?t[0]<=72?t[0]<=48?t[2]<=72?t[14]<=2004?t[7]<=7.5?-.004737:-.007809:t[7]<=17.5?.00325:-.008004:t[8]<=2027?t[8]<=2015?-842e-6:.007547:t[13]<=8.5?-.005082:-588e-6:-.009624:t[14]<=1610?t[8]<=2082?t[2]<=72?t[10]<=3708?.003659:-.007362:t[10]<=21.5?.007246:.001988:t[5]<=1.205?t[2]<=72?-3478e-7:.008053:t[8]<=2094?-.004902:4592e-7:t[5]<=2.635?t[13]<=20.5?t[5]<=1.01?.008386:.003809:t[12]<=72?3278e-7:.009755:t[2]<=72?t[5]<=2.915?.005344:-.001248:t[5]<=2.905?.004602:.007795:t[2]<=96?t[2]<=72?t[13]<=12.5?t[11]<=60990?-19e-5:-.00471:t[5]<=3.045?-.006459:t[7]<=75.5?-.007448:.00227:t[5]<=3.885?t[7]<=55.5?t[0]<=114?-.002404:-.00692:5077e-7:t[0]<=72?-.01014:t[13]<=34?.00289:.007636:t[0]<=96?t[0]<=72?t[13]<=29.5?-.005687:.005781:t[11]<=247400?.006011:-.001429:t[5]<=3.295?t[12]<=96?t[13]<=7.5?-.001681:-.004091:-.008639:t[7]<=5.5?t[13]<=6.5?-.001725:-.00593:-.008014,n+=t[0]<=96?t[0]<=48?t[2]<=24?t[9]<=399.5?t[14]<=2548?t[11]<=300300?-.007659:-.005226:t[16]<=238.5?-.006412:.007502:.01903:t[10]<=18.5?.01591:t[5]<=3.105?t[8]<=2023?-.00109:-.00435:.01201:t[5]<=3.175?t[16]<=155600?t[2]<=96?t[5]<=2.895?-.007798:-.006628:t[11]<=29e4?-.007399:.006749:.004821:t[16]<=152.5?t[6]<=1.5?-.008578:.005141:.015:t[0]<=118?t[2]<=96?t[10]<=2576?t[8]<=2073?t[11]<=184.5?2943e-7:.009331:t[9]<=60.5?496e-6:.009031:t[13]<=15.5?t[0]<=114?.002824:-.002153:t[14]<=1920?.002111:.01047:t[10]<=79.5?t[2]<=96?t[13]<=7.5?.002378:.009754:t[5]<=3.265?.009048:.01233:t[16]<=12.5?t[5]<=3.295?.002308:.008713:t[8]<=2015?764e-6:.008542:t[8]<=2061?t[13]<=29.5?t[10]<=89.5?t[8]<=2018?-.008752:-.003741:t[10]<=121.5?.008603:-.001625:.007983:t[11]<=46830?t[8]<=2100?t[10]<=490.5?.004852:.01883:t[10]<=339.5?-.001915:.00684:t[9]<=59.5?t[11]<=449700?.01735:-.001296:t[2]<=96?-.002159:.001087,
r+=t[0]<=118?t[1]<=118?t[8]<=2198?t[0]<=96?t[0]<=48?t[8]<=2018?-.006798:-.007789:t[5]<=4.35?-.007776:-.007754:t[1]<=114?t[7]<=34.5?-.007841:-.007821:t[7]<=37.5?-.007871:-.007841:t[8]<=2199?t[3]<=1e-35?t[9]<=169.5?-.007907:-.007772:.02427:t[0]<=96?t[10]<=22.5?-.007756:-.007779:t[7]<=20.5?-.007868:-.007831:t[3]<=1e-35?t[8]<=2158?t[2]<=24?t[1]<=118?-.007772:-.007966:t[1]<=118?-.007843:-.00801:t[8]<=2159?.008179:t[2]<=48?-.007767:-.007875:t[5]<=2.695?t[8]<=2008?t[10]<=299.5?.01285:-.00208:t[2]<=72?.001799:.01276:-.002836:t[0]<=122.5?t[1]<=118?t[7]<=23.5?.01852:t[2]<=114?.005149:.01709:t[7]<=95.5?t[5]<=2.915?t[9]<=59.5?.003848:.01075:t[5]<=3.565?.005454:.01147:t[8]<=2084?t[10]<=351.5?-.00353:.005557:t[5]<=2.915?-818e-6:.01109:t[10]<=283.5?t[7]<=16.5?.01407:.01711:t[14]<=1721?t[9]<=118.5?.007059:.009378:t[9]<=70.5?.01481:t[8]<=2070?.01203:.0134,e+=t[0]<=72?t[1]<=72?t[12]<=72?t[13]<=2.5?.005105:t[5]<=3.99?.01099:.00517:t[7]<=26.5?-.005697:.01168:t[3]<=1e-35?t[2]<=72?t[7]<=5.5?t[9]<=100.5?.005883:.001812:t[9]<=144.5?.00955:6324e-7:t[5]<=2.535?t[16]<=206.5?-.003776:-.008538:-4342e-7:t[12]<=1e-35?-.007922:t[12]<=72?.003492:-.009483:t[2]<=72?t[5]<=3.885?t[1]<=72?t[12]<=1e-35?t[13]<=22.5?-.007518:-.003233:t[9]<=238.5?.005705:-.001633:t[7]<=20.5?t[0]<=96?-4318e-7:-.005589:t[0]<=114?.003797:-.002665:t[3]<=1e-35?t[2]<=48?t[7]<=76.5?.007371:.01242:t[7]<=15.5?-2681e-7:.006759:t[13]<=11.5?t[2]<=24?.01262:.003106:t[7]<=98.5?-.002959:.004784:t[5]<=3.135?t[1]<=72?t[5]<=2.805?t[16]<=31.5?-.008145:-.005104:-.009253:t[12]<=72?t[9]<=135.5?.001439:-.002885:t[16]<=9231?-.006839:4399e-7:t[7]<=9.5?t[13]<=5.5?t[1]<=72?-.009309:-962e-7:t[9]<=164.5?-.004347:-.00698:t[5]<=3.905?t[2]<=96?-.007928:-.004266:t[16]<=921.5?-.008142:-.006707,i+=t[3]<=1e-35?t[5]<=1.295?t[6]<=2.5?t[14]<=2034?t[9]<=75.5?t[8]<=2091?-.002492:.001941:t[11]<=2342?-8016e-7:.006412:t[10]<=260.5?t[11]<=10070?.003803:.00944:-.001673:t[9]<=59.5?t[16]<=649.5?t[12]<=1e-35?-.008537:-.004634:t[8]<=2098?-.007613:.001915:t[13]<=22.5?t[14]<=1438?-.007523:-.002659:.008415:t[14]<=1864?t[12]<=72?t[12]<=1e-35?t[8]<=2074?.002387:-2135e-7:t[8]<=2092?-.009105:-.003279:t[5]<=2.875?t[6]<=6.5?.008802:.001584:t[5]<=2.935?-.009988:.00506:t[9]<=109.5?t[5]<=2.645?t[12]<=72?6925e-7:.008086:t[6]<=1e300?.00421:5936e-7:t[11]<=59350?t[8]<=2074?.005553:.003293:t[16]<=5048?.00745:.004108:t[6]<=34.5?t[16]<=9.5?t[11]<=7.5?t[5]<=3.385?t[5]<=2.915?-.007931:-.01041:-.005386:t[14]<=1601?t[11]<=1075?.003049:-.001827:t[14]<=1658?-.00967:-.003104:t[8]<=2069?t[8]<=2010?t[11]<=3406e3?-.00259:-.009308:t[6]<=7.5?-.005153:-.007408:t[11]<=1749?t[6]<=2.5?-3785e-7:-.009448:t[10]<=1525?-.004246:.003745:.005896,n+=t[0]<=96?t[0]<=48?t[2]<=24?t[9]<=63.5?t[10]<=822.5?-.007344:t[10]<=840.5?.02215:-.008009:t[8]<=2070?-.007264:t[9]<=100.5?.007655:-.003023:t[10]<=18.5?.01692:t[5]<=3.325?t[12]<=118?-.003183:.01262:.009437:t[5]<=3.025?t[2]<=96?t[5]<=2.895?-.007856:-.006789:t[14]<=1441?.01022:-.008458:t[8]<=2069?t[2]<=96?-.008572:t[5]<=3.265?.01929:.002824:-.008546:t[0]<=118?t[14]<=1452?t[5]<=3.265?t[7]<=92.5?t[13]<=29.5?.003844:-.004243:t[14]<=1367?-.002054:-.008908:t[2]<=96?t[0]<=114?.003768:-.007396:t[8]<=2079?.01284:.006352:t[2]<=96?t[5]<=3.675?t[8]<=2084?.01048:.004699:t[12]<=96?.002737:.01569:t[5]<=3.355?t[9]<=160.5?.004919:.009965:t[7]<=2.5?.008145:.01191:t[7]<=4.5?t[13]<=16.5?t[0]<=122.5?t[14]<=1502?-.00367:.001323:-.005683:t[2]<=72?.001854:t[9]<=301.5?-.005179:.001249:t[2]<=96?t[10]<=697.5?t[14]<=1505?-.006242:-8229e-7:.007926:t[5]<=2.515?-.004637:t[13]<=7.5?.005825:.001685,r+=t[0]<=118?t[0]<=48?t[2]<=72?t[15]<=8997?t[11]<=411e4?t[12]<=48?-.007075:.001186:t[7]<=1.5?.01668:-.007251:t[15]<=10650?.02779:t[10]<=50.5?-.007901:-.007782:t[2]<=114?t[15]<=245.5?t[15]<=229.5?.003571:.0232:t[6]<=3.5?-.003345:.01902:.02019:t[12]<=118?t[11]<=1e-35?t[5]<=3.325?t[2]<=96?-.007807:-.008035:.01517:t[0]<=96?t[5]<=3.99?-.007766:-.008062:t[0]<=114?-.007829:-.007854:t[11]<=7.5?.02238:t[2]<=96?-.0078:t[7]<=72.5?-.007907:-.007852:t[9]<=152.5?t[0]<=122.5?t[5]<=2.085?t[2]<=118?t[7]<=48.5?.009825:.004387:t[10]<=41.5?.01799:.007302:t[5]<=3.325?t[15]<=2075?.003342:.01014:t[15]<=616.5?.01216:.005871:t[11]<=4432e3?t[11]<=22530?t[11]<=6579?.008575:.01616:.006386:.01743:t[10]<=123.5?t[10]<=71.5?t[2]<=114?.009556:.01438:t[9]<=237.5?.01585:.01773:t[11]<=184.5?.002858:t[6]<=1e-35?t[10]<=451.5?.007442:.01553:t[2]<=114?.016:.01121,e+=t[2]<=72?t[5]<=1.995?t[3]<=1e-35?t[7]<=5.5?t[1]<=72?t[14]<=2034?.006315:9176e-8:t[14]<=1281?.009027:-.002282:t[13]<=11.5?t[5]<=1.295?.009481:.004166:t[14]<=1698?.008963:.004125:t[5]<=1.125?-.005944:t[1]<=72?.01068:t[14]<=1921?.003883:-.00372:t[1]<=114?t[15]<=155.5?t[10]<=89.5?.008636:.003452:t[14]<=1711?t[1]<=72?6138e-7:.00444:t[11]<=392900?6398e-7:-.003505:t[13]<=6.5?.003717:-.005512:t[3]<=1e-35?t[1]<=72?t[11]<=7080?t[15]<=249.5?t[14]<=1281?7725e-7:.008725:.004668:t[15]<=130.5?.00824:t[10]<=857.5?-.002681:.00225:t[5]<=1.01?t[7]<=5.5?t[13]<=5.5?.002096:-.003441:t[11]<=1e-35?.008797:-.007899:t[14]<=1839?t[13]<=11.5?.003747:.001059:t[5]<=2.645?.001371:-.002429:t[1]<=72?t[10]<=54.5?t[13]<=4.5?-.003852:.008727:t[13]<=12.5?t[15]<=70.5?.0113:-.002869:.00597:t[5]<=2.005?t[13]<=4.5?-.002225:t[11]<=1e-35?.005377:-.007418:t[14]<=1921?t[10]<=85.5?-.005002:-.001237:t[13]<=9.5?-.002538:-.006945,i+=t[1]<=96?t[0]<=72?t[12]<=72?t[1]<=72?-.009423:t[12]<=1e-35?.003648:-.01181:t[7]<=26.5?.009917:-.009807:t[0]<=96?t[2]<=72?t[1]<=72?t[12]<=1e-35?.00708:8737e-8:t[7]<=20.5?.002833:-.002611:t[6]<=1e-35?t[8]<=2078?.006554:.004199:t[1]<=72?.008565:6422e-7:t[7]<=90.5?t[1]<=72?-.006277:-.009839:t[0]<=114?.00236:t[7]<=98.5?-.001302:-.009074:t[2]<=96?t[2]<=72?t[7]<=5.5?t[1]<=96?t[0]<=72?-.001776:.0111:t[0]<=118?-.003906:-.006705:t[13]<=3.5?t[4]<=1e-35?-.008898:-.005627:t[15]<=155.5?-.007759:-.003786:t[7]<=90.5?t[0]<=96?t[16]<=45.5?1842e-7:.008232:t[16]<=1e-35?.002989:-.002039:t[0]<=72?-.006126:t[6]<=1e-35?.006701:9964e-7:t[6]<=1.5?t[7]<=51.5?t[8]<=2065?t[8]<=2005?-.003129:-.007025:t[13]<=6.5?1299e-8:-.004291:t[2]<=114?-.005737:-.008267:t[16]<=31.5?t[7]<=28.5?t[13]<=7.5?-.008846:-.001033:t[15]<=920.5?-.001237:.007365:t[15]<=2637?t[8]<=2026?-.002102:-.007566:.00275,n+=t[3]<=1e-35?t[14]<=-1e-35?t[5]<=2.885?t[10]<=2576?t[10]<=266.5?-.008343:-.008084:-.005945:.0149:t[1]<=96?t[2]<=1e-35?t[14]<=1546?t[11]<=336e3?-.008016:-.004138:t[4]<=1e-35?-.008141:-.007998:t[5]<=4.005?t[2]<=96?-.008031:-.008325:t[2]<=72?-.008024:-.007964:t[15]<=5005?t[14]<=1598?t[5]<=2.075?-.007377:.006414:t[15]<=1235?-.008515:-.005709:.007139:t[1]<=118?t[2]<=96?t[5]<=3.885?t[14]<=1535?t[11]<=2779?.008392:-.001549:t[15]<=2199?.006248:.01197:t[12]<=96?t[1]<=72?-.008126:.001295:.0142:t[10]<=79.5?t[1]<=96?t[15]<=204.5?-3932e-7:.006276:t[2]<=96?.008018:.0111:t[16]<=13.5?t[12]<=72?.00138:.0104:t[10]<=91.5?-.002649:.007578:t[10]<=1241?t[5]<=2.375?t[10]<=260.5?t[5]<=1.995?-.00152:-.006321:.004828:t[2]<=96?t[11]<=1342?.004858:-.001046:t[16]<=18700?.002475:-.007828:.01168,r+=t[1]<=118?t[1]<=114?t[2]<=118?t[15]<=20140?t[5]<=2.885?t[15]<=61.5?-.007036:-.007758:t[5]<=2.895?9249e-8:-.007479:t[9]<=197.5?-.007778:t[14]<=1537?.02532:-.00778:t[15]<=1716?t[14]<=1741?t[5]<=3.505?-.007828:.001004:t[8]<=2140?-.007833:-.008064:t[15]<=2199?.01311:.007058:t[9]<=48.5?t[8]<=2003?t[2]<=114?-.007772:.0217:t[2]<=118?t[9]<=20.5?-.004836:-.007715:t[14]<=2548?-.006316:.006962:t[8]<=2032?t[8]<=2027?t[5]<=3.125?-8836e-8:.01842:t[14]<=2034?.01298:.02586:t[8]<=2141?t[9]<=286.5?-.004298:.001939:t[8]<=2205?.006752:-.008184:t[9]<=152.5?t[12]<=96?t[12]<=1e-35?t[5]<=2.315?t[8]<=2005?-.0013:.0095:t[15]<=2075?.004595:.0114:t[15]<=264.5?.006653:t[8]<=2125?-.009188:-.002087:t[8]<=2026?.01769:t[8]<=2086?.006434:.01503:t[7]<=42.5?t[8]<=2007?.00568:t[15]<=67.5?.01752:t[15]<=737.5?.01042:.01251:t[6]<=1e-35?t[2]<=118?t[5]<=2.555?.004489:-.003784:.01854:t[8]<=2072?.01291:.008641,
e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[7]<=26.5?t[8]<=2027?t[8]<=2017?.004739:-.001211:t[8]<=2093?.007438:.003843:t[12]<=72?t[15]<=8997?.009838:.002804:.003065:t[4]<=1e-35?t[8]<=2103?-.008512:t[9]<=60.5?-.00174:-.01004:t[9]<=60.5?t[7]<=34.5?.00201:.01163:.01333:t[8]<=21.5?.003777:.011:t[3]<=1e-35?t[2]<=72?t[10]<=2576?t[6]<=1e-35?t[7]<=40.5?2364e-8:.00488:t[12]<=1e-35?-.00274:.002999:t[2]<=24?t[7]<=12.5?.003648:.0136:t[9]<=119.5?.00697:.001988:t[10]<=24.5?t[7]<=5.5?t[9]<=161.5?-9769e-7:-.005969:t[8]<=19?.01383:-.007832:t[12]<=72?t[12]<=1e-35?4956e-7:.008836:t[9]<=122.5?-.003965:-.007498:t[10]<=155.5?t[2]<=72?t[10]<=1e-35?t[8]<=2161?.003718:-.003336:t[7]<=26.5?-.006802:-.001269:t[10]<=16.5?t[7]<=3.5?-.006598:-.008232:t[9]<=179.5?-.004159:-.007758:t[12]<=72?t[12]<=1e-35?t[9]<=145.5?-.001763:-.005887:t[8]<=2070?.00711:.01571:t[2]<=72?-.004324:t[15]<=581.5?-.006136:-.008828,i+=t[3]<=1e-35?t[0]<=72?t[7]<=26.5?t[0]<=48?t[8]<=2027?t[8]<=2016?-.001356:.004618:t[9]<=74.5?-.004378:3627e-7:t[11]<=1e-35?.004912:-.009793:t[12]<=72?t[6]<=41.5?-.009392:t[13]<=15.5?-.008366:8526e-7:t[9]<=159.5?.003408:-.01103:t[9]<=61.5?t[12]<=72?t[12]<=1e-35?t[5]<=2.765?.001861:.004158:t[5]<=2.875?-.002381:-.01019:t[5]<=2.555?.009806:t[16]<=136.5?.007887:.003702:t[5]<=2.995?t[8]<=2085?t[7]<=18.5?.007378:.004017:t[5]<=1.425?.008812:.002:t[9]<=167.5?t[11]<=520300?.005614:.007334:t[0]<=96?.007971:-4171e-7:t[0]<=118?t[0]<=72?t[0]<=48?t[9]<=164.5?t[7]<=32.5?-.002775:-.009314:-.008657:-.009307:t[0]<=96?t[16]<=8100?t[5]<=3.835?.00175:.007707:-.0082:t[12]<=96?t[6]<=25.5?-.003263:.004611:-.007214:t[7]<=5.5?t[13]<=6.5?t[11]<=199300?-.005453:.002269:t[9]<=118.5?t[8]<=2065?-.00792:-.005321:-.008319:t[5]<=3.695?t[13]<=26?t[16]<=2710?-.003238:-.006742:t[5]<=3.505?-.007113:-.003529:-.008178,n+=t[3]<=1e-35?t[1]<=96?t[8]<=2070?t[8]<=2069?t[5]<=2.885?t[6]<=1e300?-.008013:-.007715:t[5]<=2.895?.006209:-.008026:t[1]<=96?-.008018:.01665:t[1]<=1e-35?t[2]<=24?t[13]<=5.5?-.007986:-.008046:t[13]<=9.5?-.008103:-.008143:t[5]<=4.005?t[1]<=72?-.008011:-.008035:t[2]<=72?-.008009:-.007954:t[16]<=2.5?t[13]<=12.5?-.005474:t[5]<=2.535?-.007168:-.008617:t[16]<=6.5?.02412:t[16]<=29960?t[8]<=2090?-.008365:-.006139:.005068:t[1]<=118?t[2]<=96?t[5]<=3.885?t[8]<=2083?t[16]<=1357?.006927:.01411:t[8]<=2091?-.003316:.004597:t[1]<=72?t[16]<=649.5?-.00834:-.005613:t[1]<=114?.003578:-.001065:t[10]<=79.5?t[1]<=96?t[5]<=2.815?-.001165:.01307:t[6]<=2.5?.0112:.007862:t[12]<=96?t[8]<=2088?.005457:7313e-7:t[1]<=96?.002802:.01314:t[12]<=118?t[10]<=41.5?t[16]<=21.5?t[16]<=2.5?-.005324:-.008818:t[16]<=328.5?.004716:-.003996:t[2]<=96?t[5]<=2.565?.004677:-4074e-7:t[5]<=3.715?.001965:.007371:-.007779,r+=t[0]<=118?t[1]<=118?t[11]<=1457e4?t[0]<=96?t[3]<=1e-35?t[14]<=1682?-.007764:-.007755:t[0]<=48?-.00783:-.00778:t[1]<=114?t[2]<=118?-.007818:-.007838:t[13]<=1.5?-.007825:-.007858:t[2]<=122.5?t[3]<=1e-35?t[11]<=1669e4?-.007834:-.007782:-.007863:t[9]<=60.5?.02337:-.00789:t[3]<=1e-35?t[11]<=1457e4?t[2]<=72?t[2]<=24?-.007766:-.00784:t[13]<=18.5?-.007885:.006756:t[15]<=3037?-.007926:.02585:t[15]<=195.5?t[14]<=1927?.009204:.0223:t[9]<=237.5?t[15]<=1041?.006623:-411e-6:t[9]<=256.5?.02082:.004371:t[14]<=1708?t[12]<=118?t[11]<=431e3?t[2]<=96?t[14]<=1362?.01049:318e-6:t[15]<=458.5?.01362:.0062:t[2]<=96?t[2]<=72?.001779:.01413:t[9]<=160.5?-.001112:.006113:.01788:t[13]<=16.5?t[1]<=118?t[14]<=1953?.02031:.009293:t[0]<=122.5?t[13]<=6.5?.003833:.009048:t[2]<=96?.01572:.01277:t[13]<=26?t[2]<=48?t[15]<=323.5?.01587:.01341:t[15]<=1991?.009377:.01642:t[11]<=336e3?.01574:.01325,e+=t[0]<=72?t[0]<=48?t[3]<=1e-35?t[14]<=2004?t[8]<=2027?t[8]<=2017?.006504:4855e-7:t[15]<=340.5?.009426:.006218:t[7]<=49.5?t[14]<=2898?.00171:-.005896:.01115:t[4]<=1e-35?t[8]<=2103?-.008477:t[15]<=229.5?.004604:-.006727:t[14]<=1886?.01296:t[14]<=2237?.002072:.0124:t[8]<=21.5?.003731:.01093:t[3]<=1e-35?t[2]<=72?t[10]<=2576?t[6]<=1e-35?t[7]<=97.5?.001037:.006968:t[12]<=1e-35?-.002714:.002973:t[2]<=24?t[7]<=12.5?.003642:.01352:t[14]<=1425?.01046:.005383:t[10]<=24.5?t[7]<=5.5?t[8]<=2073?-.004241:2678e-8:t[8]<=19?.0137:-.007807:t[12]<=72?t[12]<=1e-35?5038e-7:.008713:t[14]<=1601?-.003441:-.007484:t[10]<=155.5?t[2]<=72?t[10]<=1e-35?t[14]<=1947?.004909:-.002853:t[7]<=26.5?-.006771:-.001252:t[10]<=16.5?t[14]<=1385?-.00342:-.007544:t[14]<=1709?-.002734:-.005675:t[14]<=2173?t[12]<=72?t[12]<=1e-35?-.001396:.01083:t[2]<=72?-.001511:-.008191:t[8]<=2179?t[15]<=201.5?-.002778:-.006354:.002022,i+=t[1]<=96?t[0]<=72?t[14]<=360.5?.004907:t[1]<=72?t[0]<=48?t[7]<=27.5?-.003899:-.009939:-.0096:t[5]<=.49?t[8]<=2070?-.00507:-.01184:.006066:t[0]<=96?t[1]<=72?t[13]<=42?t[7]<=42.5?.009643:.007908:t[10]<=210.5?.007746:.004393:t[5]<=1.01?t[14]<=1601?.002862:.006279:t[14]<=1610?-1891e-7:.002942:t[10]<=302.5?t[7]<=90.5?t[13]<=7.5?-.009582:-.0108:-.004629:t[10]<=722.5?t[10]<=525.5?-.005233:.002951:-.009546:t[0]<=118?t[6]<=6.5?t[1]<=114?t[5]<=3.315?t[9]<=164.5?-.004241:-1837e-7:t[10]<=83.5?-.009208:-.004358:t[8]<=2093?t[8]<=2026?-7699e-7:-.003283:t[8]<=2102?.00189:-.001614:t[5]<=2.355?t[13]<=15.5?t[13]<=4.5?-.005839:-.008568:t[14]<=1814?-.009788:.002695:t[1]<=118?t[6]<=12.5?-.003896:.005102:.007515:t[10]<=764.5?t[7]<=3.5?t[13]<=6.5?t[5]<=.995?-.004307:.00302:t[14]<=1708?-.005331:-.008235:t[1]<=114?.001941:t[0]<=122.5?-.004923:-.00834:t[14]<=1741?.00481:t[7]<=5.5?-.01059:-.001237,n+=t[3]<=1e-35?t[0]<=114?t[0]<=96?t[6]<=1e300?t[5]<=4.005?t[6]<=5.5?-.008028:-.007995:t[2]<=72?-.008013:-.007952:t[14]<=1537?t[16]<=37.5?-.005599:-.007996:t[0]<=48?-.008129:-.007985:-.005118:t[14]<=1721?.009669:-.007226:t[0]<=118?t[0]<=96?t[0]<=48?t[2]<=96?t[8]<=2151?.007858:-.001283:t[16]<=224.5?-.008667:-2985e-7:t[10]<=505.5?t[16]<=501.5?-.00194:.01014:t[6]<=34.5?-.008336:-893e-6:t[2]<=96?t[10]<=3708?t[15]<=1864?.005707:.01313:t[8]<=2169?.001722:.01038:t[10]<=79.5?t[6]<=2.5?.01151:.008188:t[12]<=96?.005059:.01255:t[5]<=2.375?t[10]<=260.5?t[16]<=921.5?t[2]<=48?.001801:-.004646:t[16]<=3026?-.008715:-.007022:.002212:t[5]<=2.655?t[15]<=725.5?.01259:.001721:t[2]<=96?t[15]<=61.5?.004576:-.001168:t[5]<=3.275?.002762:-.001105,r+=t[1]<=118?t[3]<=1e-35?t[16]<=29960?t[8]<=2158?t[1]<=96?t[10]<=1e-35?-.007742:-.007764:t[2]<=24?-.00776:-.007833:t[15]<=3135?t[16]<=17020?-.007762:-.007957:t[15]<=3384?.03068:-.007791:t[7]<=98.5?t[1]<=1e-35?t[9]<=90.5?-.007824:-.00787:t[8]<=2156?-.007769:-.007822:.02974:t[4]<=1e-35?t[15]<=195.5?t[8]<=2037?.01971:t[8]<=2071?.01944:.006364:t[10]<=50.5?t[15]<=1041?.008492:-6272e-7:t[8]<=2031?.02388:.008225:t[1]<=114?t[16]<=17020?t[16]<=1761?-.007777:-.005291:t[8]<=2102?-.007862:.02286:t[16]<=261.5?t[9]<=60.5?.001436:-.005862:t[9]<=256.5?1654e-7:.012:t[12]<=118?t[10]<=123.5?t[12]<=1e-35?t[8]<=2006?t[15]<=1948?-7609e-7:.01029:t[2]<=118?.009083:.01099:t[7]<=11.5?t[12]<=48?-.008381:-.01157:t[10]<=63.5?.01052:.00144:t[8]<=2032?t[7]<=10.5?t[8]<=2018?-3901e-7:.01149:t[7]<=93.5?.01568:.005829:t[16]<=13100?t[2]<=72?-.002184:.005361:t[15]<=673.5?.01894:.009421:.01733;var o=Math.max(e,i,n,r),a=Math.exp(e-o),s=Math.exp(i-o),l=Math.exp(n-o),A=Math.exp(r-o),c=a+s+l+A;return[a/c,s/c,l/c,A/c]}(a);let A=0,c=l[0];for(let t=1;t<l.length;t++)l[t]>c&&(c=l[t],A=t);const h={};for(let t=0;t<n.length;t++)h[n[t]]=Math.round(1e3*l[t])/1e3;return{qn:n[A],prob:c,allProbs:h}}catch(t){return{qn:0,prob:0,allProbs:{}}}}static getOptimizedStartupQualityInfo(t,e,i=!1){var n,r,o,a;const l=null==t?void 0:t.realtime.isHighGradeVideo,A=null==t?void 0:t.manualSwitch,c=null==t?void 0:t.lastAutoPlayback,h=s.nJ.alias.FHD_116,d=s.nJ.alias.FHD_116,u=s.nJ.alias.UHD_4K,p=Math.floor(Date.now()/1e3)-7776e3,g=(null!=(n=null==A?void 0:A.latestTs)?n:0)>=p,f=g&&(null==A?void 0:A.topQn)||0,m=g?0:(null==c?void 0:c.quitQn)||0;let y=e,b=0,v=0,E="default";if(i){const i=this.evaluateStartupModelV2(t);b=Math.round(1e3*i.prob)/1e3,v=i.qn,i.prob>=.3?(y=i.qn,E="model"):f>0?(y=Math.max(f,e),E="P0_manual"):m>0&&(y=m,E="P1_session"),l&&(y=Math.max(y,h))}else y=g?Math.max(f,e):e,m>0&&(y=m),l&&(y=Math.max(y,h));const I=Math.floor(Date.now()/1e3)-604800,C=null==A?void 0:A.latestDowngradeQn,B=null!=(r=null==A?void 0:A.latestDowngradeTs)?r:0;if(C>0&&B>=I){const t=Math.min(y,C);t<y&&(y=t,E="downgrade_protect")}
const w=null!=(a=null==(o=null==t?void 0:t.realtime)?void 0:o.topQualityNumber)?a:d,x=Math.min(y>w?w:y,u);let Q=y>=s.nJ.alias.FHD_112?u:d;const S=g?0:(null==c?void 0:c.topQn)||0;S>0&&(Q=S),Q=Q>w?w:Q,Q=Math.min(Q,u);return{currentQn:e,currentTopQn:w,manualSwitchQn:null==A?void 0:A.topQn,switchOutProb:1-b,modelConfidence:b,modelRecommendQn:v,decisionSource:E,finalAbrTopQn:Q,finalAbrStartupQn:x,sessionAutoQuitQn:m||void 0,sessionAutoTopQn:S||void 0}}}var c=Object.defineProperty,h=Object.defineProperties,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,y=(t,e)=>{for(var i in e||(e={}))g.call(e,i)&&m(t,i,e[i]);if(p)for(var i of p(e))f.call(e,i)&&m(t,i,e[i]);return t},b=(t,e)=>h(t,u(e));const v=100,E={STARTUP_HOUR:"sh",STARTUP_QUALITY_NUMBER:"sqn",STARTUP_QUALITY_INDEX:"sqi",TOP_QUALITY_NUMBER:"tqn",TOP_QUALITY_INDEX:"tqi",QUIT_QUALITY_NUMBER:"qqn",QUIT_QUALITY_INDEX:"qqi",QUIT_REALTIME:"qt",ARCHIVE_DURATION:"ad",IS_AUTO:"isauto",FULLSCREEN:"fs",AUTO_SWITCH_HIGHER:"awh",AUTO_SWITCH_LOWER:"awl",AUTO_SWITCH_HIGHER_IN_STARTUP:"awhs",AUTO_SWITCH_LOWER_IN_STARTUP:"awls",MANUAL_SWITCH_CURRENT_QN:"mscq",MANUAL_SWITCH_TARGET_QN:"mstq",TIMESTAMP:"ts"},I=class{constructor(){this.LOCAL_STORAGE_KEY="bilibili_player_smart_abr_user_preference_v0_1",this.SESSION_STORAGE_KEY="bilibili_player_smart_abr_session_preference_v0_1",this.data={realtime:{},historyStats:{validVV:0,fullscreenVV:0},historyRecords:[],manualSwitch:{topQn:0,latestQn:0,latestFromQn:0,latestTs:0,count:0,downgradeCount:0}},this.currentMediaQualities=[];try{this.currentSessionAbrTopQn=s.nJ.alias.FHD_116;const t=this.getLocalStorageData(this.LOCAL_STORAGE_KEY);if(t){const e=JSON.parse(t);e.realtime&&(e.historyStats||e.stats)?this.migrateFromPrevious(e):this.migrateFromLegacy(e)}else this.saveLocalData()}catch(t){}this.collectRealtimeContext()}static get shared(){return this._shared||(this._shared=new I),this._shared}collectRealtimeContext(){try{const t=window.devicePixelRatio||1;this.data.realtime.display={width:Math.round(screen.width*t),height:Math.round(screen.height*t)},this.data.realtime.cpuCores=navigator.hardwareConcurrency||0;const e=new Date;this.data.realtime.nowTs=e.getTime(),this.data.realtime.nowHour=e.getHours(),this.saveLocalData()}catch(t){}}setUserStatus(t){null!=t.isLogin&&(this.data.realtime.isLogin=t.isLogin?1:0),null!=t.isVip&&(this.data.realtime.isVip=t.isVip?1:0),this.saveLocalData()}setCurrentRealtimeInfo(t){Object.entries(t).forEach((([t,e])=>{null!=e&&(this.data.realtime[t]=e)}))}setCurrentPlaybackInfo(t){const{mediaDataSource:e,quality:i,isAuto:n,archiveParams:r}=t;if(!e)return;const a="object"==typeof e.url?e.url:null,s=null==a?void 0:a.video;if(!(null==s?void 0:s.length))return;const l={AVC:7,HEVC:12,AV1:13},A={},c={};for(const[t,e]of Object.entries(l)){const i=[...new Set(s.filter((t=>t.codecid===e)).map((t=>t.id||0)))];A[t]=i.length,c[t]=i.length>0?Math.max(...i):0}const h=Math.max(c.AVC||0,c.HEVC||0,c.AV1||0),d=[...new Set(s.map((t=>t.id||0)))].sort(((t,e)=>t-e));this.currentMediaQualities=d;const u=i||0,p=d.indexOf(u),g=r?function(t){const{duration:e=0,cachedStartupTime:i=0,seekTime:n,fromLocalCache:r,cid:o,episodeId:a,body:s}=t;let l=0;if(e>0)if(i>0)l=i;else if("number"==typeof n&&n>0&&n<e)l=n;else if(!r&&s){const t=(s.lastPlayTime||0)/1e3;(o&&o===s.lastPlayCid||a&&s.lastPlayEpid===a)&&e>30&&t>=5&&t<e-5&&(l=t)}return l=Math.min(Math.max(l,0),e),{startupArchiveTime:Math.round(1e3*l)/1e3,startupArchiveTimeRate:e>0?Math.round(1e4*Math.min(l/e,1))/1e4:0}}(b(y({},r),{duration:null==a?void 0:a.duration})):void 0;this.setCurrentRealtimeInfo(y({startupQualityNumber:u,startupQualityIndex:p>=0?p:0,topQualityNumber:h,topQualityIndex:Math.max(A.AVC-1,A.HEVC-1,A.AV1-1,0),duration:(null==a?void 0:a.duration)?Math.round(a.duration):0,topQualityIndexByCodec:{AVC:Math.max(A.AVC-1,-1),HEVC:Math.max(A.HEVC-1,-1),AV1:Math.max(A.AV1-1,-1)},codecPreferType:parseInt(this.getLocalStorageData(o.uU)||"0",10),isAuto:n?1:0},g))}updateCurrentStartupQuality(t){if(!this.currentMediaQualities||0===this.currentMediaQualities.length)return;let e=[...this.currentMediaQualities].reverse().findIndex((e=>t>=e));e=e>=0?this.currentMediaQualities.length-1-e:0,this.setCurrentRealtimeInfo({startupQualityNumber:this.currentMediaQualities[e]||t,startupQualityIndex:e})}updateCurrentAbrTopQuality(t){"number"!=typeof t||isNaN(t)||t<=0||this.setCurrentRealtimeInfo({abrTopQualityNumber:t})}recordSessionInit(t){this.setUserStatus({isLogin:t.isLogin,isVip:t.isVip})}getRealtimeContext(){return y({},this.data.realtime)}getAbrStartupQualityInfo(t=64,e=!0){const i=A.getOptimizedStartupQualityInfo(b(y({},this.data),{lastAutoPlayback:this.getLastAutoPlaybackInfo()}),t,e)||{finalAbrStartupQn:t,finalAbrTopQn:s.nJ.alias.FHD_116};return this.currentSessionAbrTopQn=i.finalAbrTopQn,this.updateCurrentAbrTopQuality(i.finalAbrTopQn),i}getAbrTopQuality(){return Math.max(this.currentSessionAbrTopQn||0,s.nJ.alias.FHD_116)}getLastAutoPlaybackInfo(){try{const t=null==sessionStorage?void 0:sessionStorage.getItem(this.SESSION_STORAGE_KEY);if(!t)return{quitQn:0,topQn:0,latestTs:0};const e=JSON.parse(t);return{quitQn:(null==e?void 0:e.quitQn)||0,topQn:(null==e?void 0:e.topQn)||0,latestTs:(null==e?void 0:e.latestTs)||0}}catch(t){return{quitQn:0,topQn:0,latestTs:0}}}setLastAutoPlaybackInfo(t){if("number"!=typeof t.quitQn||isNaN(t.quitQn)||t.quitQn<=0)return;if("number"!=typeof t.topQn||isNaN(t.topQn)||t.topQn<=0)return;const e=this.getLastAutoPlaybackInfo(),i={quitQn:Math.max(e.quitQn||0,t.quitQn),topQn:Math.max(e.topQn||0,t.topQn),latestTs:Math.floor(Date.now()/1e3)};try{null==sessionStorage||sessionStorage.setItem(this.SESSION_STORAGE_KEY,JSON.stringify(i))}catch(t){}}setUserManualSwitchOutInfo(t){if(!t.displayid)return;if("number"!=typeof t.currentRealQ||isNaN(t.currentRealQ))return;if("number"!=typeof t.targetQn||isNaN(t.targetQn))return;if(0===t.currentQn&&t.targetQn>0){this.setCurrentPlaybackInfoByDisplayid(t.displayid,{[E.MANUAL_SWITCH_CURRENT_QN]:t.currentRealQ,[E.MANUAL_SWITCH_TARGET_QN]:t.targetQn});const e=this.data.manualSwitch;e.topQn=Math.max(e.topQn||0,t.targetQn),e.latestQn=t.targetQn,e.latestFromQn=t.currentRealQ,e.latestTs=Math.floor(Date.now()/1e3),e.count=(e.count||0)+1,t.targetQn<t.currentRealQ&&(e.downgradeCount=(e.downgradeCount||0)+1,e.latestDowngradeQn=t.targetQn,e.latestDowngradeTs=Math.floor(Date.now()/1e3)),this.saveLocalData()}}setCurrentPlaybackInfoByDisplayid(t,e,i=!1){if(!t||!e)return;const r=t.substring(0,8),o=this.data.historyRecords,a=o[o.length-1];if(a&&a.id===r?(0,n.Z)(a,e):o.push((0,n.Z)({id:r,[E.TIMESTAMP]:Math.floor(Date.now()/1e3)},e)),o.length>v&&o.shift(),i){this.computeHistoryStats();this.getLocalStorageData(this.LOCAL_STORAGE_KEY)&&this.saveLocalData()}}computeHistoryStats(){let t=this.data.historyRecords;const e=this.data.historyStats,i=(t,e)=>t.reduce(((t,i)=>t+(i[e]||0)),0),n=Math.floor(Date.now()/1e3)-2592e3;t=t.filter((t=>t[E.TIMESTAMP]>=n&&t[E.QUIT_REALTIME]>10));const r=t,o=r.filter((t=>t[E.FULLSCREEN]>0));e.validVV=r.length,e.fullscreenVV=o.length,e.isFrequentFullscreenUser=r.length>0&&o.length/r.length>=.4?1:0,r.length>0&&(e.lastQuitQuality=r[r.length-1][E.QUIT_QUALITY_NUMBER]),e.autoSwitchHigherCount=i(t,E.AUTO_SWITCH_HIGHER),e.autoSwitchLowerCount=i(t,E.AUTO_SWITCH_LOWER),e.autoSwitchHigherCountInStartup=i(t,E.AUTO_SWITCH_HIGHER_IN_STARTUP),e.autoSwitchLowerCountInStartup=i(t,E.AUTO_SWITCH_LOWER_IN_STARTUP);const a=t.filter((t=>1===t[E.IS_AUTO]));if(a.length>0){const t=i(a,E.QUIT_REALTIME);e.avgAutoPlaybackTime=Math.round(t/a.length);const n=i(a,E.STARTUP_QUALITY_INDEX)/a.length;e.avgAutoStartupQualityIndex=Math.round(100*n)/100;const r=i(a,E.TOP_QUALITY_INDEX)/a.length;e.avgStartupVsTopQualityDiff=Math.round(100*(r-n))/100}const s=t.filter((t=>t[E.ARCHIVE_DURATION]>0&&t[E.QUIT_REALTIME]>0));if(s.length>0){const t=s.reduce(((t,e)=>{const i=e[E.QUIT_REALTIME],n=e[E.ARCHIVE_DURATION];return t+Math.min(i/n,1)}),0);e.avgAutoPlaybackTimeRate=Math.round(t/s.length*1e4)/1e4}}
getHistoryStats(){return y({},this.data.historyStats)}saveLocalData(){try{null==localStorage||localStorage.setItem(this.LOCAL_STORAGE_KEY,JSON.stringify(this.data))}catch(t){}}getLocalStorageData(t){try{return null==localStorage?void 0:localStorage.getItem(t)}catch(t){}}getFullLocalUserPreference(){return this.data}migrateFromPrevious(t){this.data={realtime:t.realtime||{},historyStats:t.historyStats||t.stats||{},historyRecords:t.historyRecords||t.recentPlaybackHistory||[],manualSwitch:t.manualSwitch||{topQn:0,latestQn:0,latestTs:0,count:0}}}migrateFromLegacy(t){this.data={realtime:{display:t.display,cpuCores:t.cpuCores,isLogin:t.isLogin,isVip:t.isVip},historyStats:{validVV:t.validVV||0,fullscreenVV:t.fullscreenVV||0,isFrequentFullscreenUser:t.isFrequentFullscreenUser,autoSwitchHigherCount:t.autoSwitchHigherCount||0,autoSwitchLowerCount:t.autoSwitchLowerCount||0,avgAutoStartupQualityIndex:t.avgAutoStartupQualityIndex||0,avgAutoPlaybackTime:t.avgAutoPlaybackTime||0},historyRecords:t.recentPlaybackHistory||[],manualSwitch:{topQn:0,latestQn:0,latestFromQn:0,latestTs:0,count:0,downgradeCount:0}}}};let C=I;C.RECORD_KEY=E,((t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&c(e,i,o)})([r.ZP],C.prototype,"setCurrentPlaybackInfoByDisplayid",1)},89965:function(t,e,i){"use strict";i.d(e,{d:function(){return a}});var n=i(20094),r=i(54981),o=i(40898);const a=(t,e,i)=>{var a,s;const l=Math.floor(((new Date).getTime()+31536e6)/1e3);n.set(t,e),i&&(null==(s=null==(a=i.rootStore)?void 0:a.configStore)?void 0:s.isChannel(r.u5.PC_APP))&&i.emit(o.t.Player_Virtual_Action,new CustomEvent(o.t.Player_Virtual_Action,{detail:{kind:r.s.SetCookie,data:{name:t,value:e,expirationDate:l}}}))}},28799:function(t,e,i){"use strict";i.d(e,{Y:function(){return r},z:function(){return o}});i(27615);var n=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));function r(){const t=document.createElement("video");t.crossOrigin="anonymous";try{return t}catch(e){return t}}function o(t){return n(this,null,(function*(){return t.play()}))}},39524:function(t,e,i){"use strict";i.d(e,{$:function(){return p}});var n=i(40898),r=i(54981),o=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,h=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d=(t,e)=>{for(var i in e||(e={}))A.call(e,i)&&h(t,i,e[i]);if(l)for(var i of l(e))c.call(e,i)&&h(t,i,e[i]);return t},u=(t,e)=>a(t,s(e));function p(t,e){return new Promise(((i,o)=>{t.emit(n.t.Player_Virtual_Action,new CustomEvent(n.t.Player_Virtual_Action,{detail:{kind:r.s.GetVideoData,data:u(d({},e),{cb:t=>{0===(null==t?void 0:t.code)?i(t):o()}})}}))}))}},32502:function(t,e,i){"use strict";i.d(e,{s:function(){return r}});var n=i(20094);function r(){return!!n.get("DedeUserID")}},55053:function(t,e,i){"use strict";i.r(e),i.d(e,{AuxiliaryHelper:function(){return Ht}});var n=i(50282),r=i.n(n),o=i(75572),a=i.n(o),s=i(64423),l=i.n(s),A=i(52182),c=i.n(A),h=i(73632),d=i.n(h),u=i(51831),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals;var g=i(5489),f=i(22451),m=i(57012),y=i(62022),b=i(51839),v=i(97203),E=i.n(v),I=i(54826),C=i.n(I),B=i(99550);class w extends g.vq{install(){super.install();const t=this.ppx;this.auxiliary.innerHTML=this.renderFragment(),document.body.appendChild((0,B.t)(`<div class="${t}-filter-wrap ${t}-bas-danmaku-code" style="display: none;"></div>`)),this.template={area:this.auxiliary.querySelector(`.${this.ppx}-auxiliary`),collapse:this.auxiliary.querySelector(`.${this.ppx}-collapse`),filters:this.auxiliary.querySelector(`.${this.ppx}-filter`),wraplist:this.auxiliary.querySelector(`.${this.ppx}-wraplist`),settingMenu:this.auxiliary.querySelector(`.${this.ppx}-setting-menu`)};const e={header:this.template.filters,body:this.template.wraplist,value:this.auxStore.state.isListSpread,canCollapse:!this.auxStore.state.disableListSwitch,foldText:"展开",unfoldText:"收起"};1===this.configStore.revision?(this.template.area.setAttribute("data-revision",`${this.configStore.revision}`),e.foldText=`<span class="arrow-icon">${E()}</span>`,e.unfoldText=`<span class="arrow-icon">${E()}</span>`):3===this.configStore.revision?(this.template.area.setAttribute("data-revision",`${this.configStore.revision}`),e.foldText=`<span class="arrow-icon">${C()}</span>`,e.unfoldText=`<span class="arrow-icon">${C()}</span>`):this.template.area.removeAttribute("data-revision"),this.collapse=new m.UO(this.template.collapse,e),this.collapse.on("change",(t=>{if(t.value&&this.track.e("danmaku_list_show"),t.manual){this.track.e("danmaku_item",t.value?"1":"0");const e={currentMenu:this.auxStore.state.currentMenu||g.ju.LIST,isListSpread:t.value};this.auxStore.setState(e)}}));const i=(0,y.Z)((()=>{this.resize()}),100);return this.dc.resize=(0,f.U5)((()=>this.uiStore.state.containerHeight),(t=>{t&&this.portStore.getScreenKind()!==g.dY.Mini&&i()}),{fireImmediately:!0}),this.dc.collapse=(0,f.U5)((()=>this.auxStore.state.isListSpread),(t=>{setTimeout((()=>{this.collapse.value(t)}),1)})),this.dc.canCollapse=(0,f.U5)((()=>!this.auxStore.state.disableListSwitch),(t=>{setTimeout((()=>{this.collapse.updateOptions({canCollapse:t})}),1)})),this.dc.userChange=(0,f.U5)((()=>this.userStore.info),(t=>{this.reload(t)}),{fireImmediately:!0}),this.dc.isLogin=(0,f.EH)((()=>{const t=this.userStore.isLogin?"remove":"add";this.template.area.classList[t](`${this.ppx}-unlogin`)})),this.dc.dmSearch=(0,f.U5)((()=>this.dmListStore.state.searchId),(t=>{var e;t&&(this.auxStore.setState({currentMenu:g.ju.LIST,isListSpread:!0}),null==(e=this.dropdown)||e.value(g.ju.LIST))})),this.dc.addBlock=(0,f.U5)((()=>this.auxStore.state.showBlock),(t=>{var e;t&&(this.auxStore.setState({currentMenu:g.ju.BLOCK,isListSpread:!0}),null==(e=this.dropdown)||e.value(g.ju.BLOCK))})),this.dc.height=(0,f.EH)((()=>{this.template.wraplist.style.height=this.auxStore.height})),this}reload(t){var e;const i=this.getMenuList(t);null==(e=this.dropdown)||e.destroy(),this.dropdown=new m.Lt(this.template.filters,{items:i});const n=this.auxStore.state.currentMenu;n&&this.dropdown.value(n),this.dropdown.on("change",(t=>{const e={currentMenu:t.value};switch(this.auxStore.state.disableListSwitch||(e.isListSpread=!0),this.auxStore.setState(e),t.value){case g.ju.LIST:this.track.e("button_danmakulist");break;case g.ju.BLOCK:this.track.e("button_blocksetting");break;case g.ju.ADV:this.track.e("button_advanceddanmu");break;case g.ju.BAS:this.track.e("button_basdanmu")}}))}getMenuList(t){const e=[{name:"弹幕列表",value:g.ju.LIST},{name:"屏蔽设定",value:g.ju.BLOCK},{name:"高级弹幕",value:g.ju.ADV}];return t&&(t.memberRole===b.Rs.USER_ADVANCED||t.memberRole===b.Rs.USER_VIP||t.isOwner)&&e.push({name:"BAS弹幕",value:g.ju.BAS}),e}renderFragment(){const t=this.ppx
;return`<div class="${t}-auxiliary">\n            <div class="${t}-collapse"></div>\n            <div class="${t}-filter"></div>\n            <div class="${t}-wraplist">\n                <div class="${t}-filter-wrap ${t}-bas-danmaku-visual"></div>\n                <div class="${t}-filter-wrap ${t}-dm" role="list">\n                    <div class="${t}-dm-management"></div>\n                    <div class="${t}-dm-function"></div>\n                    <div class="${t}-dm-wrap">\n                        <div class="${t}-dm-container"></div>\n                        <div class="${t}-dm-load-status"></div>\n                    </div>\n                    <div class="${t}-dm-wrap-child"><div class="${t}-dm-container"></div></div>\n                    <div class="${t}-dm-btn-footer">\n                        <div class="${t}-dm-btn-history">查看历史弹幕</div>\n                    </div>\n                </div>\n                <div class="${t}-filter-wrap ${t}-block ${t}-bscrollbar" role="block"></div>\n                <div class="${t}-filter-wrap ${t}-adv-danmaku"></div>\n                <div class="${t}-setting" style="display:none"></div>\n            </div>\n        </div>`}resize(){const t=this.container.getBoundingClientRect();let e=this.auxiliary.getBoundingClientRect().top;e>t.bottom&&(e=t.top);let i=t.bottom-e-46;i<420&&(i=t.height-46),this.auxStore.setState({height:i,playerH:t.height})}onDispose(){super.onDispose()}onDisconnect(){super.onDisconnect(),this.auxiliary.innerHTML=""}}var x=i(30905),Q=i(65723),S=i(89783),k=i(31168),D=i(61072),_=i(10379),R=i(23849),M=i.n(R),T=Object.defineProperty,F=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,P=(t,e,i)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class U{constructor(t,e){this.container=t,this.weekConfigDefault=["日","一","二","三","四","五","六"],this.monthConfigDefault=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],this.yearNameDefault="年",this.inited=!1,this.options=((t,e)=>{for(var i in e||(e={}))L.call(e,i)&&P(t,i,e[i]);if(F)for(var i of F(e))N.call(e,i)&&P(t,i,e[i]);return t})({appendTo:document.body,currentDate:null,onChange:t=>{}},e),this.ppx=e.ppx,this.init()}init(){this.monthDataCache={},this.reDate=new Date,this.utcTime=this.reDate.getTime()+6e4*this.reDate.getTimezoneOffset(),this.timeZeroOffset=60*(this.reDate.getTimezoneOffset()+480);try{this.window=window.parent&&window.parent.document?window.parent:window}catch(t){this.window=window}this.activeDateArr=[],this.inited=!1,this.status=0,this.options.currentDate?this.current=this.getDateObj(this.options.currentDate.year,this.options.currentDate.month,this.options.currentDate.day):this.current=this.getDateObj(),this.active=this.current,this.activeMonth=this.current,this.hasNext=!1,this.container.addEventListener("click",(t=>{t.preventDefault(),this.toggle()}))}getDateObj(t,e,i){let n;t?"number"!=typeof t||e||i?n=new Date(t,e,i):(10===(t+"").toString().length&&(t*=1e3),t+=1e3*this.timeZeroOffset,n=new Date(t)):n=new Date;const r=n.getFullYear(),o=n.getMonth(),a=n.getDate(),s=new Date(r,o,a).getTime()/1e3-this.timeZeroOffset,l=new Date(r,o,1).getDay();return{fullDate:n,year:r,month:o,day:a,num:new Date(r,o+1,0).getDate(),firstDayPos:l,timestamp:s}}dayContentTemplate(t){let e,i,n="";if("object"==typeof t){for(i=t.firstDayPos,e=0;e<i;e++)n+=this.daySpanTemplate("");for(i=t.num,e=0;e<i;e++)n+=this.daySpanTemplate(this.getDateObj(t.year,t.month,e+1))}return n}daySpanTemplate(t){return"object"==typeof t?`<span class="${this.ppx}-date-picker-day" data-timestamp="${t.timestamp}" data-action="changeDay">${t.day}</span>`:`<span class="${this.ppx}-date-picker-day">${t}</span>`}initialize(){if(this.inited)return;this.inited=!0;const t=this.options.appendTo;let e="";const i=this.ppx;t.appendChild((0,B.t)(this.snippet())),this.template={container:t.querySelector(`.${i}-date-picker`),year:t.querySelector(`.${i}-date-picker-year`),prev:t.querySelector(`.${i}-date-picker-btn.btn-prev`),next:t.querySelector(`.${i}-date-picker-btn.btn-next`),month:t.querySelector(`.${i}-date-picker-month`),week:t.querySelector(`.${i}-date-picker-week`),dayContent:t.querySelector(`.${i}-date-picker-day-content`)},this.options.bottom&&(this.template.container.style.cssText=`bottom: ${this.options.bottom}px;`),this.weekConfigDefault.forEach((t=>{e+=this.daySpanTemplate(t)})),this.template.year.textContent=this.current.year+this.yearNameDefault,this.template.month.textContent=this.monthConfigDefault[this.current.month],this.template.week.innerHTML=e,this.template.dayContent.innerHTML=this.dayContentTemplate(this.current),this.bindEvents()}initializeClass(){const t=this.template.dayContent.querySelectorAll(`.${this.ppx}-date-picker-day[data-timestamp]`);if(!t.length)return;let e,i;this.hasNext=!0,this.template.next.classList.remove(`${this.ppx}-disabled`);for(let n=0,r=this.activeMonth.num;n<r;n++)e=t[n],i=Number(e.dataset.timestamp),i&&this.activeDateArr.indexOf(i)>-1?e.classList.add("day-enable"):e.classList.remove("day-enable"),i===this.active.timestamp?e.classList.add(`${this.ppx}-active`):e.classList.remove(`${this.ppx}-active`);return this.hasNext=i<this.getDateObj().timestamp,this.hasNext?this.template.next.classList.remove(`${this.ppx}-disabled`):this.template.next.classList.add(`${this.ppx}-disabled`),this}bindEvents(){return this.template.container.addEventListener("click",(t=>{var e;t.stopPropagation();const i=t.target;switch(i.dataset.action){case"prev":this.changeMonth(-1);break;case"next":this.changeMonth(1);break;case"changeDay":null==(e=this.template.dayContent.querySelector(`.${this.ppx}-active`))||e.classList.remove(`${this.ppx}-active`),i.classList.add(`${this.ppx}-active`),this.changeDay(1e3*Number(i.dataset.timestamp))}})),this.eventList={windowClick:t=>!!this.container.contains(t.target)||(2===t.button||void this.hide()),windowCT:t=>{if(this.container.contains(t.target))return!0;this.hide()},windowKeydown:t=>{27===t.keyCode&&this.hide()}},this.window.addEventListener("click",this.eventList.windowClick,!0),this.window.addEventListener("contextmenu",this.eventList.windowCT,!0),this.window.addEventListener("keydown",this.eventList.windowKeydown),this}reload(){this.init(),this.initialize()}changeDay(t){this.active=this.getDateObj(t),this.active.timestamp===this.getDateObj().timestamp&&(t=0),"function"==typeof this.options.onChange&&this.options.onChange(t/1e3),this.hide()}changeMonth(t){this.inited||this.initialize(),this.activeMonth=this.getDateObj(this.activeMonth.year,this.activeMonth.month+t,1),this.template.year.innerHTML=this.activeMonth.year+this.yearNameDefault,this.template.month.innerHTML=this.monthConfigDefault[this.activeMonth.month],this.template.dayContent.innerHTML=this.dayContentTemplate(this.activeMonth),this.fetchHistoryDateIndex().then((()=>{this.initializeClass()}))}toggle(){this.inited||this.initialize(),this.fetchHistoryDateIndex().then((()=>{this.activeDateArr.length>0?this.status?this.hide():this.show():(this.activeDateArr.push(this.getDateObj().timestamp),this.show())}))}fetchHistoryDateIndex(){const t=(0,S.p)(new Date(this.activeMonth.year,this.activeMonth.month),"yyyy-MM");return new Promise((e=>{this.monthDataCache[t]?e():this.options.getActive(t).then((i=>{var n;this.monthDataCache[t]=i,(null==(n=i.body)?void 0:n.length)&&i.body.forEach((t=>{const[e,i,n]=t.split("-").map(Number),r=this.getDateObj(e,i-1,n).timestamp;this.activeDateArr.push(r)})),this.activeDateArr.push(this.getDateObj().timestamp),e()})).catch((t=>{}))}))}show(){this.status=1,this.template.container.classList.add(`${this.ppx}-show`),this.initializeClass()}hide(){this.status=0,this.template.container.classList.remove(`${this.ppx}-show`)}value(){return 1e3*this.active.timestamp}snippet(){const t=this.ppx
;return`<div class="${t}-date-picker">\n            <div class="${t}-date-picker-header">\n                <span data-action="prev" class="${t}-date-picker-btn btn-prev">${M()}</span>\n                <span data-action="next" class="${t}-date-picker-btn btn-next ${t}-disabled">${E()}</span>\n                <span class="${t}-date-picker-year"></span><span class="${t}-date-picker-month"></span>\n            </div>\n            <div class="${t}-date-picker-body">\n            <div class="${t}-date-picker-week"></div>\n            <div class="${t}-date-picker-day-content"></div>\n        </div>`}clear(){var t,e;this.activeDateArr=[],this.monthDataCache={},this.activeMonth=this.current,this.active=this.current,null==(e=null==(t=this.template)?void 0:t.container)||e.remove(),this.inited=!1}dispose(){var t,e,i;this.clear(),this.window.removeEventListener("click",null==(t=this.eventList)?void 0:t.windowClick,!0),this.window.removeEventListener("contextmenu",null==(e=this.eventList)?void 0:e.windowCT,!0),this.window.removeEventListener("keydown",null==(i=this.eventList)?void 0:i.windowKeydown)}}var O=i(25360),G=i.n(O),H=i(73476),V=i.n(H),Y=i(41814),z=i.n(Y),W=i(25817),Z=i.n(W),j=i(32547),q=i.n(j),J=i(35130),K=i.n(J),X=i(71183),$=i(5169);class tt extends g.vq{constructor(){super(...arguments),this.dmidMoved={},this.dmidDelted={},this.selected=[],this.orderlist={stime:"danmuku_time_menu",text:"danmuku_content_menu",date:"danmuku_sendtime_menu"}}install(){return super.install(),this.auxiliaryContainer=this.auxiliary.querySelector(`.${this.ppx}-auxiliary`),this.danmaku=this.auxiliary.querySelector(`.${this.ppx}-dm`),this.danmakuMask=this.auxiliary.querySelector(`.${this.ppx}-dm-load-status`),this.danmakuWrap=this.auxiliary.querySelector(`.${this.ppx}-dm-wrap`),this.dc.collapse=(0,f.U5)((()=>({menu:this.auxStore.state.currentMenu,unfold:this.auxStore.state.isListSpread})),(({menu:t,unfold:e})=>{t===g.ju.LIST?e&&this.show():this.hide(),this.trackExtra.p("player.danmaku-list.click",g.p0.Click)}),{fireImmediately:!0}),this.dc.loadStatus=(0,f.EH)((()=>{const t=this.danmakuStore.state.state,e=this.danmakuStore.state.textSide;switch(this.dmListStore.state.loadding){case 0:this.danmakuMask.textContent="弹幕列表填充中...",this.danmaku.classList.remove(`${this.ppx}-hide-status`),this.danmakuMask.classList.remove(`${this.ppx}-dm-close`);break;case 1:this.danmaku.classList.add(`${this.ppx}-hide-status`);break;case 2:this.danmakuMask.innerHTML=`弹幕列表装填失败 <span class="${this.ppx}-reset">点击重试</span>`,this.danmakuMask.querySelector(`.${this.ppx}-reset`).addEventListener("click",(()=>{this.dmListStore.setState({loadding:0}),this.show(!0)}))}t&&(this.danmakuMask.textContent=e,this.danmaku.classList.remove(`${this.ppx}-hide-status`),this.danmakuMask.classList.add(`${this.ppx}-dm-close`))})),this}show(t){this.danmaku.style.display="block",!this.inited||t?(this.inited||this.toinit(),this.inited=!0,this.dc.loadAll=this.dc.loadAll||(0,f.U5)((()=>this.danmakuStore.canLoadAll),(e=>{e&&this.danmakuStore.loadDmPbAll(t).then((()=>{this.dmListStore.setState({loadding:1})})).catch((t=>{this.dmListStore.setState({loadding:2})}))}),{fireImmediately:!0})):this.resize()}hide(){this.danmaku.style.display=""}toinit(){const t={management:this.auxiliary.querySelector(`.${this.ppx}-dm-management`),dmFunction:this.auxiliary.querySelector(`.${this.ppx}-dm-function`),dmContainer:this.auxiliary.querySelector(`.${this.ppx}-dm-container`),dmWrapChild:this.auxiliary.querySelector(`.${this.ppx}-dm-wrap-child`),historyBtn:this.auxiliary.querySelector(`.${this.ppx}-dm-btn-history`)};if(this.createTpl(),this.template=t,t.dmFunction.innerHTML=this.createTpl(),this.patchAdvStore.hasValidAdv){this.template.historyBtn.style.display="none"}this.resize(),this.initList(),this.createDatePicker(),this.dc.userChange=(0,f.U5)((()=>this.userStore.info),(e=>{const{isOwner:i,role:n,mid:r}=e||{};this.cMid!==r&&(this.cMid=r,this.dmListStore.isShow&&this.update()),t.management.innerHTML="",(i||n===b.Rs.P_ROLE_ASSISTANT)&&this.danamkuManagement(),r?t.historyBtn.classList.remove(`${this.ppx}-disable`):t.historyBtn.classList.add(`${this.ppx}-disable`)}),{fireImmediately:!0}),this.template.historyBtn.addEventListener("click",(()=>{this.track.e("history_danmuku")})),t.management.addEventListener("click",(t=>{const e=t.target.dataset.action;e&&(t.stopPropagation(),this.managementClick(e))}),!0),t.dmFunction.addEventListener("click",(t=>{const e=t.target.dataset.action;e&&(t.stopPropagation(),this.dmFunctionClick(e))}),!0),t.dmContainer.addEventListener("click",(t=>{const e=t.target,i=e.dataset.action;if(i){t.stopPropagation(),this.tooltipStore.remove("btnHover");const n=Number(e.dataset.index),r=this.dmListStore.allDm[n];this.dmClick(i,r,e)}}),!0),t.dmContainer.addEventListener("mouseover",(t=>{const e=t.target,i=e.dataset.action;i&&this.dmHover(i,e)}),!0),t.dmContainer.addEventListener("mouseout",(t=>{this.tooltipStore.remove("btnHover")}),!1),t.dmContainer.addEventListener("dblclick",(t=>{const e=t.target,i=e.dataset.action,n=Number(e.dataset.index);i&&t.stopPropagation();const r=this.dmListStore.allDm[n];r&&this.portStore.seekAutoplay(r.stime/1e3-.01,"DmListDblclick")}),!0),this.contextmenu=new _.V(this.auxiliaryContainer,t.dmContainer,{ppx:this.ppx,theme:"white",onChange:(t,e,i)=>{const n=i.dataset.index,r=this.dmListStore.allDm[n];return n&&r?{id:n,html:this.menuList(r),click:t=>{this.menuClick(t,r)}}:null}}),this.dc.refresh=(0,f.EH)((()=>{this.dmListStore.state.refresh&&this.update()})),this.dc.scrollTo=(0,f.EH)((()=>{this.dmListStore.canScrollTo&&setTimeout((()=>{this.scrollTo(this.dmListStore.state.searchId),this.dmListStore.setState({searchId:""})}),10)}));const e=t.dmFunction.querySelector(`.${this.ppx}-dm-number-span`);this.dc.dmNum=(0,f.U5)((()=>({history:this.dmListStore.state.history,num:this.dmListStore.state.count,isShow:this.dmListStore.isShow})),(({history:t,num:i,isShow:n})=>{i>=0&&n&&(e.textContent=t,this.longList.updateCound(i))}),{fireImmediately:!0}),this.dc.resize=(0,f.U5)((()=>this.auxStore.state.height),(t=>{this.dmListStore.isShow&&t&&this.portStore.getScreenKind()!==g.dY.Mini&&this.resize()}),{fireImmediately:!0})}scrollTo(t){const e=this.dmListStore.allDm;let i;for(i=0;i<e.length;i++)if(e[i].dmid===t)return this.longList.scrollTo(i),void this.childHide()}resize(){var t,e;const{height:i,playerH:n}=this.auxStore.state;let r=i-32-39;const o=this.userStore.info;((null==o?void 0:o.isOwner)||(null==o?void 0:o.role)===b.Rs.P_ROLE_ASSISTANT)&&(r-=52),r<20&&(r=n-32-39-46),this.listHeight=r,this.danmakuMask.style.cssText=`height:${r}px;line-height:${r}px;`,this.danmakuWrap.style.cssText=`height:${r}px;`;const a=this.danmaku.querySelector(`.${this.ppx}-no-dm`);a&&(a.style.cssText=`height:${r}px;line-height:${r}px;`),this.childTemplate&&(this.childTemplate.wrap.style.cssText=`height:${r+7}px;`),null==(t=this.longList)||t.resize(),null==(e=this.childList)||e.resize()}dmFunctionClick(t){var e;switch(t){case"cancel":null==(e=this.longList)||e.clearSelect(),this.track.e("list_prevent_cancel");break;case"block":this.blockList(),this.track.e("list_prevent_all");break;case"stime":case"text":case"date":let i=`${this.ppx}-dm-function`;this.orderby===t?this.positive=!this.positive:(this.orderby=t,this.positive=!0),this.dmListStore.allDm=this.order(this.orderby,this.positive,this.dmListStore.allDm),this.positive||(i+=` ${this.ppx}-order-rotate`),i+=` ${this.ppx}-order-${this.orderby}`,this.template.dmFunction.className=i,this.dmListStore.refresh(),this.track.e(this.orderlist[this.orderby])}}order(t,e,i){if("text"===t){const n=[];for(let t=i.length-1;t>=0;t--)this.blockStore.judge(i[t])&&n.push(i.splice(t,1)[0]);n.sort(this.orderFunction(e,t)),i.sort(this.orderFunction(e,t)),i=e?i.concat(n):n.concat(i)}else i.sort(this.orderFunction(e,t));return i}orderFunction(t,e){return function(i,n){return i[e]>n[e]?t?1:-1:i[e]<n[e]?t?-1:1:0}}blockList(){var t;const e=this.selected;if(null==e?void 0:e.length){const i=[];e.forEach((t=>{-1!==i.indexOf(t.uhash)||this.dmListStore.isMineDanmaku(t)||i.push(t.uhash)})),i.length>1?this.blockStore.blockUserList(i):1===i.length&&this.blockStore.add(i[0],2),
null==(t=this.longList)||t.clearSelect()}}managementClick(t){switch(t){case"m_move":this.danmakuMove(),this.track.e("list_up_tosubtitle");break;case"m_protect":this.danmakuState(),this.track.e("list_up_protect");break;case"m_delete":this.danmakuDel(),this.track.e("list_up_ignore_report")}}dmHover(t,e){let i="";switch(t){case"recall":i="撤回这条弹幕";break;case"report":i="举报该弹幕的发送者";break;case"protect":i="申请保护该弹幕";break;case"block":i="屏蔽该弹幕的发送者";break;case"blocked":i="取消屏蔽该弹幕的发送者"}i&&this.tooltipStore.create({target:e,name:"btnHover",title:i,duration:0})}dmClick(t,e,i){switch(t){case"recall":this.recall(e),this.track.e("list_recall");break;case"report":this.report(e);break;case"protect":this.protect(e),this.track.e("danmaku_protect_apply_dmlist");break;case"block":case"blocked":this.block(e,"block"===t),this.track.e("list_prevent")}}recall(t){const{mouseClientX:e,mouseClientY:i}=this.uiStore.state;this.dmListStore.recall(t.dmid,null==t?void 0:t.oid).then((t=>{0!==t.body.code?this.tooltipStore.create({clientX:e,clientY:i,name:"recall_err",title:t.body.message||"撤回失败，服务器出错",duration:1e3}):this.tooltipStore.create({clientX:e,clientY:i,name:"recall_success",title:"撤回成功",duration:1e3})})).catch((t=>{this.tooltipStore.create({clientX:e,clientY:i,name:"recall_err",title:t.message||"撤回失败，服务器出错",duration:1e3})}))}report(t,e="list_report"){this.isNotRepeatReport(t.dmid)?this.reportShow(t).show():this.tooltipStore.create({name:"report",title:"已举报",duration:1e3});const i={dmid:t.dmid};t.weight>0&&(i.weight=t.weight),this.track.e(e,i),this.trackExtra.p("player.danmaku-list-report.click",g.p0.Click,{dmid:t.dmid,msg:t.text,weight:t.weight,is_updm:t.mode===X.yC.UpProfile,is_highlight_dm:t.isHighLike,is_folddm:!1})}isNotRepeatReport(t){const e=D.P.reported||[];return!(e&&e instanceof Array)||!(e.indexOf(t)>-1)}get hitDmReportABTest(){var t;return"V1"===(null==(t=window.webAbTest)?void 0:t.danmaku_report_version)}reportShow(t){return this.hitDmReportABTest?this.reportPanel=new D.P(this.auxiliaryContainer,{ppx:this.ppx,aid:this.configStore.aid,cid:this.configStore.cid,scene:"normal",dmcontent:t.text,dmid:t.dmid,from_spmid:this.configStore.spmId,submit:e=>{var i,n,r,o,a,s;this.track.e("dm_report_list_contextmenu",{dmid:t.dmid,code:null==(i=e.response)?void 0:i.code,msg:null==(n=e.response)?void 0:n.message}),(e.res||36204===(null==(r=e.response)?void 0:r.code))&&D.P.reported.push(t.dmid),e.block_action.block_user,e.block_action.block_dm&&this.danmakuStore.dmReportBlock(`^(${t.text})+$`,t.dmid,t.uhash),(e.res||36204===(null==(o=e.response)?void 0:o.code))&&this.blockStore.tempBlockList.push(e.dmid),e.res||36204===(null==(a=e.response)?void 0:a.code)?this.tooltipStore.create({name:"report",title:"举报已受理",duration:3e3}):this.tooltipStore.create({name:"report",title:(null==(s=e.response)?void 0:s.message)||"举报失败",duration:3e3}),this.reportPanel=null},hide:t=>{this.reportPanel=null}}):(this.reportPanel||(this.reportPanel=new $.y(this.auxiliaryContainer,m.ZP,{theme:"black",ppx:this.ppx,close:G(),submit:(e,i)=>this.danmakuStore.dmReport(e,t.multiView||e.originCid).then((({body:t})=>{var n;return 0!==t.code&&36204!==t.code||(this.tooltipStore.create({name:"report",title:"举报已受理",duration:1e3}),this.danmakuStore.dmReportBlock(null==(n=t.data)?void 0:n.block,null==e?void 0:e.dmid,i)),t.code})).catch((t=>(this.tooltipStore.create({name:"report",title:(null==t?void 0:t.message)||"举报失败",duration:3e3}),null))),checkbox:t=>{this.localStore.set({dmSend:{dmChecked:t}})}})),this.reportPanel.update(t,this.localStore.get().dmSend.dmChecked,this.configStore.cid)),this.reportPanel}protect(t){const{mouseClientX:e,mouseClientY:i}=this.uiStore.state;this.dmListStore.protect(t.dmid).then((({body:t})=>{this.tooltipStore.create({clientX:e,clientY:i,name:"protect",title:t.message||"申请已提交，请耐心等待UP主审核！",duration:1e3})})).catch((t=>{this.tooltipStore.create({clientX:e,clientY:i,name:"protect",title:t.message||"申请失败，请重新申请",duration:1e3})}))}block(t,e){e?this.blockStore.add(t.uhash,2):this.blockStore.remove(t.uhash,2),this.trackExtra.p("player.danmaku-list-block.click",g.p0.Click,{dmid:t.dmid,msg:t.text,weight:t.weight,is_updm:t.mode===X.yC.UpProfile,is_highlight_dm:t.isHighLike,is_folddm:!1,action:e?1:0})}update(){var t;null==(t=this.longList)||t.refresh(),this.updateChild()}updateChild(){var t;this.child&&(null==(t=this.childList)||t.refresh())}initList(){let t=this.dmListStore.filteredAllDm.length;this.longList=new m.GT(this.template.dmContainer,{itemHeight:24,count:t,getItem:t=>{const e=this.dmListStore.filteredAllDm||[];return e.length>0?this.dmli(e[t],t):this.noDm()}}),this.longList.on("selectChange",(t=>{var e;const i=this.dmListStore.filteredAllDm;let n;this.selected=[];for(const e in t.selected)n=i[e],n&&!this.blockStore.judge(n,!0)&&this.selected.push(n);this.selected.length>1?this.multipleInit().show(this.selected.length):null==(e=this.multiple)||e.hide()}))}dmli(t,e){var i;if(!t)return this.track.e("list_no_dm"),"";let n=Q.t`${null!=(i=t.text)?i:""}`;const r=this.blockStore.judge(t,!0),o=this.blockStore.judgeUser(t);let a="",s="",l="";if(r){const t=this.blockState(r);a+=" dm-info-row-block",o&&(a+=" dm-info-row-block-user"),s+=`<span class="dm-info-tips dm-info-block">${t}</span>`,l+=`<span class="dm-info-block">${t}</span>`}else 9!==t.mode&&(s+=`<span class="dm-info-date" >${(0,S.p)(new Date(1e3*t.date),"MM-dd hh:mm")}</span>`);const A=(0,k.Z)(t.stime/1e3);switch(t.mode){case 7:try{n=t.text?JSON.parse(t.text.replace(/\r|\n|\/r|\/n/g,""))[4]:"",n=Q.t`${null!=n?n:""}`}catch(t){console.debug(t)}a+=" dm-info-row-super";break;case 8:a+=" dm-info-row-special";break;case 9:a+=" dm-info-row-code"}(1===t.pool||this.dmidMoved[t.dmid])&&(a+=" dm-info-row-caption"),this.dmidDelted[t.dmid]&&(a+=" dm-info-row-deleting");const c=this.dmListStore.isMineDanmaku(t),h=this.patchAdvStore.hasValidAdv&&this.patchAdvStore.isPatchAdv(null==t?void 0:t.oid);let d="",u="";h||(this.dmListStore.canProtect(t)?(this.dmListStore.dmidApplied[t.dmid]?(u="已申请",d="dm-info-protected"):u="申请保护",s+=`<span class="dm-info-protect-btn ${d}" data-action="protect" data-index="${e}">${u}</span>`):!c&&t.mode<8&&(o?(d="dm-info-blocked",u="取消屏蔽"):u="屏蔽用户",s+=`<span class="dm-info-block-btn ${d}" data-action="block${o?"ed":""}" data-index="${e}">${u}</span>`));let p=u?`${this.ppx}-db-btn`:"";return c&&9!==t.mode?s+=`<span class="dm-info-recall-btn ${p}" data-action="recall" data-index="${e}">撤回</span>`:h||(s+=`<span class="dm-info-report-btn ${p}" data-action="report" data-index="${e}">举报</span>`),`<div class="dm-info-row ${a}" data-index="${e}">\n        <span class="dm-info-time">${A}</span>\n        <span class="dm-info-dm" title="${n.substring(0,1e3)}" data-index="${e}">\n            ${n.substring(0,30)+l}\n        </span>\n        ${s}\n        </div>`}multipleInit(){return this.multiple||(this.template.dmFunction.appendChild((0,B.t)(this.multipleTpl())),this.multiple={template:{line:this.template.dmFunction.querySelector(`.${this.ppx}-dm-multiple`),number:this.template.dmFunction.querySelector(`.${this.ppx}-dm-multiple-number`)},show:t=>{this.multiple.template.line.classList.add(`${this.ppx}-show`),this.multiple.template.number.textContent=String(t)},hide:()=>{this.multiple.template.line.classList.remove(`${this.ppx}-show`)}}),this.multiple}blockState(t){switch(t){case b.Rs.BLOCK_CLOUD_UP:return"UP主屏蔽";case b.Rs.BLOCK_LIST_USER:case b.Rs.BLOCK_LIST_KEYWORD:case b.Rs.BLOCK_LIST_COLOR:case b.Rs.BLOCK_LIST_REGEXP:return"已屏蔽";case b.Rs.BLOCK_SCROLL:case b.Rs.BLOCK_REVERSE:case b.Rs.BLOCK_BOTTOM:case b.Rs.BLOCK_TOP:case b.Rs.BLOCK_COLOR:case b.Rs.BLOCK_DISABLED:case b.Rs.BLOCK_GUEST:case b.Rs.BLOCK_FONTSIZE:default:return""}}danamkuManagement(){const t=this.ppx,e=this.template,i=[{svg:V(),text:"移动",action:"m_move",title:"选中弹幕移动到字幕池(按住Ctrl可多选)"},{svg:z(),text:"保护",action:"m_protect",title:"保护选中弹幕(按住Ctrl可多选)"},{svg:Z(),text:"忽略",action:"m_ignore",title:"忽略被举报的弹幕(按住Ctrl可多选)"},{svg:q(),text:"删除",action:"m_delete",title:"删除选中弹幕(按住Ctrl可多选)"}];this.danmaku.classList.add(`${t}-hasmanage`),i.forEach((i=>{let n=(0,
B.t)(`<div class="${t}-up-btn" data-action="${i.action}">\n            <span class="${t}-up-btn-icon">${i.svg}</span>\n            <span>${i.text}</span>\n            </div>`);n.addEventListener("mouseenter",(t=>{t.stopPropagation(),this.tooltipStore.remove(i.action),this.tooltipStore.create({target:n,name:i.action,title:i.title,position:g.DU.TopCenter,duration:0})})),n.addEventListener("mouseleave",(t=>{t.stopPropagation(),this.tooltipStore.remove(i.action)})),e.management.appendChild(n)}))}danmakuMove(){var t;if(null==(t=this.selected)?void 0:t.length){const t=[],e=this.selected.map((e=>(t.push(e),e.dmid))),{mouseClientX:i,mouseClientY:n}=this.uiStore.state;this.tooltipStore.remove("m_move"),this.dmListStore.move(e.join(",")).then((e=>{0===e.body.code?(t.forEach((t=>{this.dmidMoved[t.dmid]=!0})),this.update(),this.moveTooltip("操作成功",i,n)):this.moveTooltip(e.body.message||"操作失败",i,n)})).catch((t=>{this.moveTooltip((null==t?void 0:t.message)||"操作失败",i,n)}))}}danmakuDel(){var t;if(null==(t=this.selected)?void 0:t.length){const t=[],e=this.selected.map((e=>(t.push(e),e.dmid))),{mouseClientX:i,mouseClientY:n}=this.uiStore.state;this.tooltipStore.remove("m_delete"),this.dmListStore.delete(e.join(",")).then((e=>{0===e.body.code?(t.forEach((t=>{this.dmidDelted[t.dmid]=!0})),this.update(),this.moveTooltip("操作成功",i,n)):this.moveTooltip(e.body.message||"操作失败",i,n)})).catch((t=>{this.moveTooltip((null==t?void 0:t.message)||"操作失败",i,n)}))}}danmakuState(){var t;if(null==(t=this.selected)?void 0:t.length){const t=[],e=this.selected.map((e=>(t.push(e),e.dmid))),{mouseClientX:i,mouseClientY:n}=this.uiStore.state;this.tooltipStore.remove("m_protect"),this.dmListStore.dmState(e.join(",")).then((t=>{0===t.body.code?this.moveTooltip("操作成功",i,n):this.moveTooltip(t.body.message||"操作失败",i,n)})).catch((t=>{this.moveTooltip((null==t?void 0:t.message)||"操作失败",i,n)}))}}moveTooltip(t,e,i){this.tooltipStore.create({clientX:e,clientY:i,name:"move",title:t,duration:1e3})}createDatePicker(){return this.datePicker||(this.datePicker=new U(this.template.historyBtn,{ppx:this.ppx,appendTo:this.template.historyBtn,bottom:40,getActive:t=>this.dmListStore.laodActiveMonth(t),onChange:t=>{const e=t+60*((new Date).getTimezoneOffset()+480),i=t?new Date(1e3*e):new Date;this.dmListStore.setState({history:`(${i.getMonth()+1}月${i.getDate()}日)`}),this.loadHistory(0===t?"0":(0,S.p)(i,"yyyy-MM-dd"))}})),this.datePicker}loadHistory(t){this.dmListStore.reset(),this.dmListStore.setState({loadding:0,count:0,addDmList:[],addBasList:[],addAdvList:[]}),this.danmakuStore.loadHistory(t).then((e=>{var i;if(this.dmListStore.appendDm(e),null==(i=this.dmListStore.basList)?void 0:i.length){const e=[],i=new Date(t).getTime()/1e3+86400;this.dmListStore.basList.forEach((n=>{(n.date<=i||"0"===t)&&(e.push(n),this.dmListStore.allDm.push(n))})),this.dmListStore.setState({addBasList:e})}this.dmListStore.setState({loadding:1,count:this.dmListStore.allDm.length})})).catch((()=>{this.dmListStore.setState({loadding:2})}))}menuClick(t,e){const i=t.dataset.action;switch(i){case"menu_copy":this.menuCopy(e,t),this.track.e("list_contextmenu_copy");break;case"menu_report":this.report(e,"list_contextmenu_report");break;case"menu_child":this.menuChild(e),this.track.e("list_contextmenu_watchall");break;case"menu_block":case"menu_blocked":this.menuBlock(e,"menu_block"===i),this.track.e("list_contextmenu_prevent");break;case"menu_recall":this.recall(e),this.track.e("list_contextmenu_recall");break;case"menu_forbid":this.menuForbid(e),this.track.e("list_contextmenu_ban")}}menuCopy(t,e){x.T.copy(t.mode>6?"<? 高级弹幕 />":t.text,{container:this.auxiliaryContainer})?this.tooltipStore.create({target:e,name:"copy",title:"已复制",duration:1e3}):this.tooltipStore.create({target:e,name:"copy",title:"复制失败",duration:1e3})}menuBlock(t,e){var i;(null==(i=this.selected)?void 0:i.length)>1?this.blockList():this.block(t,e)}menuForbid(t){const{mouseClientX:e,mouseClientY:i}=this.uiStore.state;this.danmakuStore.dmForbid(t.dmid).then((({body:t})=>{0===t.code?this.moveTooltip("操作成功",e,i):this.moveTooltip((null==t?void 0:t.message)||"操作失败",e,i)})).catch((t=>{this.moveTooltip((null==t?void 0:t.message)||"操作失败",e,i)}))}menuList(t){let e=[{name:`${this.ppx}-menu-copy`,action:"menu_copy",text:"复制选中弹幕"},{action:"menu_child",text:"查看该发送者的所有弹幕"}];if(this.patchAdvStore.hasValidAdv&&this.patchAdvStore.isPatchAdv(null==t?void 0:t.oid)&&e.push({action:"menu_report",text:"举报弹幕"}),this.dmListStore.isMineDanmaku(t))9!==t.mode&&e.push({action:"menu_recall",text:"撤回这条弹幕"});else{const i=this.blockStore.judgeUser(t);let n="menu_block",r="";this.selected.length>1?r="屏蔽这些弹幕的发送者":i?(r="取消屏蔽这条弹幕的发送者",n="menu_blocked"):r="屏蔽发送者",e.unshift({action:n,text:r});const o=this.userStore.info;((null==o?void 0:o.isOwner)||(null==o?void 0:o.role)===b.Rs.P_ROLE_ASSISTANT)&&e.push({action:"menu_forbid",text:"UP主视频中禁言此用户"})}let i="";return e.forEach((({text:t,action:e,name:n})=>{i+=`<li class="${n||""}" data-action="${e}">${t}</li>`})),i}createTpl(){const t=this.ppx;return`<div class="${t}-dm-btn-time" data-action="stime">时间<span class="${t}-dm-btn-icon">${K()}</span></div>\n            <div class="${t}-dm-btn-dm" data-action="text">弹幕内容 <span class="${t}-dm-number-span"></span><span class="${t}-dm-btn-icon">${K()}</span></div>\n            <div class="${t}-dm-btn-date" data-action="date">发送时间<span class="${t}-dm-btn-icon">${K()}</span></div>\n            `}multipleTpl(){const t=this.ppx;return`<div class="${t}-dm-multiple">\n            <div class="${t}-dm-multiple-title">已选择<span class="${t}-dm-multiple-number">-</span>条</div>\n            <div class="${t}-dm-multiple-cancel" data-action="cancel">取消选择</div>\n            <div class="${t}-dm-multiple-submit" data-action="block">批量屏蔽</div>\n            </div>`}noDm(){return`<div class="${this.ppx}-no-dm" style="height:${this.listHeight}px;line-height:${this.listHeight}px;">该视频弹幕为空</div>`}menuChild(t){const e=t.uhash;this.child={orderby:"stime",positive:!0,list:[]},this.dmListStore.allDm.forEach((t=>{t.uhash===e&&this.child.list.push(t)}));const i=this.child.list.length;if(this.childWrap)this.childWrap.classList.add(`${this.ppx}-show`),this.childList.updateCound(i);else{this.childWrap=this.auxiliary.querySelector(`.${this.ppx}-dm-wrap-child`);const t=this.childWrap.querySelector(`.${this.ppx}-dm-container`);t.innerHTML=this.createTplChild(),this.childTemplate={close:this.childWrap.querySelector(`.${this.ppx}-child-close`),num:this.childWrap.querySelector(`.${this.ppx}-dm-list-child-number`),function:this.childWrap.querySelector(`.${this.ppx}-dm-function`),wrap:this.childWrap.querySelector(`.${this.ppx}-dm-wrap`)},this.childTemplate.function.addEventListener("click",(t=>{const e=t.target.dataset.action;e&&(t.stopPropagation(),this.childFunctionClick(e))})),t.addEventListener("click",(t=>{const e=t.target,i=e.dataset.action;if(i){t.stopPropagation(),this.tooltipStore.remove("btnHover");const n=Number(e.dataset.index),r=this.child.list[n];this.dmClick(i,r,e)}})),t.addEventListener("mouseover",(t=>{const e=t.target,i=e.dataset.action;i&&this.dmHover(i,e)}),!0),t.addEventListener("mouseout",(t=>{this.tooltipStore.remove("btnHover")}),!1),t.addEventListener("dblclick",(t=>{const e=t.target,i=e.dataset.action,n=Number(e.dataset.index);i&&t.stopPropagation();const r=this.child.list[n];r&&(this.portStore.seek(r.stime/1e3-.01,{initiator:g.hH.ManualAction}),this.portStore.play())}),!0),this.resize(),this.childTemplate.close.addEventListener("click",(t=>{this.childHide()})),this.childWrap.classList.add(`${this.ppx}-show`),this.initChildList()}this.childTemplate.num.textContent=String(i),this.childTemplate.num.setAttribute("title",`当前弹幕：${i}`)}childHide(){var t;this.child=null,null==(t=this.childWrap)||t.classList.remove(`${this.ppx}-show`)}childFunctionClick(t){switch(t){case"stime":case"text":case"date":let e=`${this.ppx}-dm-function`;this.child.orderby===t?this.child.positive=!this.child.positive:(this.child.orderby=t,this.child.positive=!0),this.child.list=this.order(this.child.orderby,this.child.positive,this.child.list),this.child.positive||(e+=` ${this.ppx}-order-rotate`),e+=` ${this.ppx}-order-${this.child.orderby}`,
this.childTemplate.function.className=e,this.updateChild(),this.track.e(this.orderlist[this.orderby])}}initChildList(){let t=this.child.list.length;this.childList=new m.GT(this.childTemplate.wrap,{itemHeight:24,count:t,getItem:t=>{const e=this.child.list||[];return e.length>0?this.dmli(e[t],t):this.noDm()}})}createTplChild(){const t=this.ppx;return`<div class="${t}-panel-title">找到<span class="${t}-dm-list-child-number">-</span>条弹幕<span class="${t}-child-close">${G()}</span>\n            </div>\n            <div class="${t}-dm-function">\n                <div class="${t}-dm-btn-time" data-action="stime">时间<span class="${t}-dm-btn-icon">${K()}</span></div>\n                <div class="${t}-dm-btn-dm" data-action="text">弹幕内容<span class="${t}-dm-btn-icon">${K()}</span></div>\n                <div class="${t}-dm-btn-date" data-action="date">发送时间<span class="${t}-dm-btn-icon">${K()}</span></div>\n            </div>\n            <div class="${t}-dm-wrap"></div>`}onDispose(){var t;if(super.onDispose(),null==(t=this.datePicker)||t.dispose(),this.template){let t=`${this.ppx}-dm-function`;this.template.dmFunction.className=t,this.childTemplate&&(this.childTemplate.function.className=t)}}get dmAiBlockAbTestFlag(){var t;return"NEW"===(null==(t=window.webAbTest)?void 0:t.danmuku_block_version)}onDisconnect(){var t,e;super.onDisconnect(),null==(t=this.reportPanel)||t.dispose(),null==(e=this.contextmenu)||e.dispose()}}var et=i(48760),it=i(70417),nt=i(53731);var rt=i(34259);var ot=i(38665),at=i.n(ot),st=i(32971),lt=i.n(st),At=i(44127);class ct extends g.vq{constructor(){super(...arguments),this.cTab="0"}install(){return super.install(),this.block=this.auxiliary.querySelector(`.${this.ppx}-block`),this.auxiliaryContainer=this.auxiliary.querySelector(`.${this.ppx}-auxiliary`),this.dc.collapse=(0,f.U5)((()=>({menu:this.auxStore.state.currentMenu,unfold:this.auxStore.state.isListSpread})),(({menu:t,unfold:e})=>{t===g.ju.BLOCK?e&&this.show():this.hide()})),this}show(){this.block.style.display="block",this.inited?this.resize():(this.inited=!0,this.toinit())}hide(){this.block.style.display=""}toinit(){this.block.innerHTML=this.createTpl();const t={switch:this.auxiliary.querySelector(`.${this.ppx}-block-switch`),sync:this.auxiliary.querySelector(`.${this.ppx}-block-sync-btn`),input:this.auxiliary.querySelector(`.${this.ppx}-block-add-input`),add:this.auxiliary.querySelector(`.${this.ppx}-block-add-btn`),number:this.auxiliary.querySelector(`.${this.ppx}-block-number`),tab:this.auxiliary.querySelector(`.${this.ppx}-block-tab`),list:this.auxiliary.querySelector(`.${this.ppx}-block-list`),item:this.auxiliary.querySelector(`.${this.ppx}-block-list-item`)};this.template=t,this.blockScrollbar=new et.Z(this.block,{preventDefault:!1}),this.resize(),this.initList();new m.rs(t.switch,{value:this.dmSettingStore.state.status,content:""}).on("change",(t=>{this.dmSettingStore.setLocal({status:t.value}),this.trackExtra.p("player.dmfilter_list.click",g.p0.Click),this.track.e("danmaku_ban_on",t.value?1:0)})),this.dc.blockSwitch=(0,f.U5)((()=>this.dmSettingStore.state.status),(t=>{t?this.block.classList.remove(`${this.ppx}-hide`):this.block.classList.add(`${this.ppx}-hide`),this.blockScrollbar.refresh(),this.dmSettingStore.refresh()})),this.dc.login=(0,f.EH)((()=>{this.userStore.isLogin?this.block.classList.remove(`${this.ppx}-unlogin`):this.block.classList.add(`${this.ppx}-unlogin`)})),this.dc.blockSync=(0,f.EH)((()=>{this.blockStore.state.isSyncBlocked?t.sync.classList.add(`${this.ppx}-hide`):t.sync.classList.remove(`${this.ppx}-hide`)}));new m.zx(t.add,{type:"gray"}).on("click",(()=>{this.addBlock(),this.trackExtra.p("player.dmfilter_add.click",g.p0.Click)})),t.input.addEventListener("keydown",(t=>{13===t.keyCode&&this.addBlock()})),this.dc.refresh=(0,f.EH)((()=>{this.blockStore.state.refresh&&this.blockLine()})),this.dc.resize=(0,f.U5)((()=>this.auxStore.state.height),(t=>{this.blockStore.isShow&&t&&this.portStore.getScreenKind()!==g.dY.Mini&&this.resize()}),{fireImmediately:!0}),this.globalEvents()}resize(){this.blockScrollbar.refresh()}globalEvents(){this.template.sync.addEventListener("click",(()=>{this.blockStore.state.isSyncBlocked||(this.trackExtra.p("player.dmfilter_sync.click",g.p0.Click),this.track.e("danmaku_ban_synchronize"),this.userStore.isLogin?this.dmSync():this.userStore.requestQuickLoginPromise().then((()=>{this.dmSync()})).catch(At.Z))})),this.contextmenu=new _.V(this.auxiliaryContainer,this.template.list,{ppx:this.ppx,theme:"white",list:[{id:"1",html:"导出json文件",click:()=>{!function(t){try{(0,rt.L)({text:JSON.stringify(t,null),mimeType:"text/json",filename:"bilibili.block.json"})}catch(t){}}(this.blockStore.blockList)}},{id:"2",html:"导入json文件",click:()=>{var t;t=t=>{this.blockStore.fromOut(t)},(0,rt.w)((e=>{let i=[];try{i=JSON.parse(e.result)}catch(t){}t(i)}))}},{id:"3",html:"导入xml文件",click:()=>{var t;t=t=>{this.blockStore.fromOut(t)},(0,rt.w)((e=>{let i;try{const t=e.result?e.result.replace(/[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]/g,""):"";i=(new window.DOMParser).parseFromString(t,"text/xml")}catch(t){console.error("parse blocklist error")}const n=[];if(!i)return void t(n);const r=i.querySelectorAll("item");(null==r?void 0:r.length)?(r.forEach((t=>{const e=t.textContent||"";if(!e)return;const i=t.getAttribute("enabled"),r=e.split("=");r.length>=2?n.push({type:"u"===r[0]?2:"r"===r[0]?1:0,filter:e.substr(2),opened:"true"===i}):n.push({type:0,filter:e,opened:"true"===i})})),t(n)):t(n)}),".xml")}}]})}dmSync(){this.blockStore.dmSync().then((t=>{var e;const i=null==(e=t.body.list)?void 0:e.length;this.tooltipStore.create({target:this.template.sync,name:"block",title:`已成功同步${i}条屏蔽词`,duration:1e3})})).catch((t=>{this.tooltipStore.create({target:this.template.sync,name:"block_error",title:t.message||"同步失败",duration:1e3})}))}initList(){new m.mQ(this.template.tab,{value:this.cTab,items:[{name:"屏蔽文本",value:"0"},{name:"屏蔽正则",value:"1"},{name:"屏蔽用户",value:"2"}]}).on("change",(t=>{this.cTab=t.value,console.log(t.value),this.trackExtra.p("player.dmfilter_tab.click",g.p0.Click,{tab:0===Number(t.value)?"string":1===Number(t.value)?"regular":"mid"}),this.blockLine()}))}blockLine(){const t=Number(this.cTab),e=this.blockStore.blockList||[];this.template.item.innerHTML="";let i=0;e.forEach((n=>{if(n.type===t){if(!n.filter)return;let t=(0,B.t)(this.blockLineTP(n.filter,n.opened,n.id));this.template.item.appendChild(t),i++;let r=t.querySelector(`.${this.ppx}-block-list-state`);if(r.addEventListener("click",(()=>{n.opened=!n.opened,n.opened?(r.textContent="启用",t.classList.remove(`${this.ppx}-disabled`),this.track.e("danmaku_ban_effect",n.type)):(r.textContent="关闭",t.classList.add(`${this.ppx}-disabled`),this.track.e("danmaku_ban_invilid",n.type)),this.localStore.set({blockList:e}),this.blockStore.setLastUid(),this.dmSettingStore.refresh()})),t.querySelector(`.${this.ppx}-block-list-delete`).addEventListener("click",(()=>{this.blockStore.remove(n.filter,n.type),(0,it.b)(t),this.track.e("danmaku_ban_delete",n.type)})),!n.id){let e=t.querySelector(`.${this.ppx}-block-list-sync`);e.addEventListener("click",(()=>{n.id||this.blockStore.add(n.filter,n.type,!0).then((i=>{0===i.code?(e.innerHTML=at(),t.classList.remove(`${this.ppx}-noid`)):(e.innerHTML=lt(),t.classList.add(`${this.ppx}-noid`))}))}))}}})),this.template.number.textContent=String(i||"-")}blockLineTP(t,e,i){let n="";return e||(n+=`${this.ppx}-disabled`),i||(n+=` ${this.ppx}-noid`),`<div class="${this.ppx}-block-list-line ${n}">\n            <div class="${this.ppx}-block-list-content" title="${(0,nt.A)(t)}">${(0,nt.A)(t)}</div>\n            <div class="${this.ppx}-state-list-wrap">\n                <span class="${this.ppx}-block-list-state">${e?"启用":"关闭"}</span>\n                <span class="${this.ppx}-block-list-delete">${q()}</span>\n                <span class="${this.ppx}-block-list-sync">${i?at():lt()}</span>\n            </div>\n        </div>`}addBlock(){var t;let e=null==(t=this.template.input.value)?void 0:t.trim();if(e){const t="/"===(i=e)[0]&&"/"===i[i.length-1]&&i.length>2;t&&(e=e.substr(1,e.length-2)),this.blockStore.add(e,t?1:0).then((({message:t})=>{this.template.input.value="",this.tooltipStore.create({
target:this.template.add,name:"add_block",title:t,duration:1e3})}))}var i;this.track.e("danmaku_ban_textfield")}createTpl(){const t=this.ppx;return`<div class="${t}-block-area">\n                    <div class="${t}-block-top">\n                        <div>\n                            <div class="${t}-block-label">屏蔽列表</div>\n                            <div class="${t}-block-switch"></div>\n                        </div>\n                        <div class="${t}-block-sync-btn">\n                            <span class="${t}-sync-icon">${lt()}</span>\n                            <span>同步屏蔽列表</span>\n                        </div>\n                    </div>\n                    <div class="${t}-block-add">\n                        <input type="text" class="${t}-block-add-input" placeholder="添加屏蔽词，正则以&quot;/&quot;开头&quot;/&quot;结尾" value="" />\n                        <div class="${t}-block-add-btn">添加</div>\n                    </div>\n                    <div class="${t}-block-tab"></div>\n                    <div class="${t}-block-list">\n                        <div class="${t}-block-list-function">\n                            <div class="${t}-block-list-function-content">内容 ( <span class="${t}-block-number">-</span> )</div>\n                            <div class="${t}-state-list-wrap">\n                                <div class="${t}-block-list-state">状态</div>\n                                <div class="${t}-block-list-delete">操作</div>\n                                <div class="${t}-block-list-sync">同步</div>\n                            </div>\n                        </div>\n                        <div class="${t}-block-list-item"></div>\n                    </div>\n                </div>`}onDispose(){super.onDispose()}onDisconnect(){var t;super.onDisconnect(),null==(t=this.contextmenu)||t.dispose()}}var ht=i(27097),dt=i(62566),ut=i(46330),pt=i(23529),gt=i(99149);class ft{constructor(t,e){this.moveChangeStatus=!1,this.pickingPathStatus=!1,this.maxPathValue=200,this.allowPickStatus=!1,this.allowPathPickStatus=!1,this.pathArr=[],this.value={x:0,y:0,w:0,h:0},this.status=!1,this.canvas=document.createElement("canvas"),this.subLine=document.createElement("canvas"),this.container=t,this.options=Object.assign(this.defOptions,e),this.createCanvas(),this.createSubLine(),this.addEvents()}get defOptions(){return{isPath:!1,isPercent:!1,onHide(){},onChange(){}}}get isOpened(){return this.status}init(){this.moveChangeStatus=!this.options.isPath,this.pathArr=this.options.isPath?this.pathArr:[],this.tuneCanvas(),this.tuneSubLine(),this.drawPath(),this.show()}addEvents(){this.canvas.onclick=t=>{this.options.isPath?this.options.isPath&&!this.pickingPathStatus?(this.pickingPathStatus=!0,this.addPath(this.getPos(t),!0),this.drawPath()):this.options.isPath&&this.pickingPathStatus&&(this.addPath(this.getPos(t)),this.hide(),this.triggerChange(),this.triggerHide()):(this.value=this.getPos(t),this.hide(),this.triggerChange(),this.triggerHide())},this.canvas.onmousemove=t=>{this.pickingPathStatus&&(this.addPath(this.getPos(t)),this.drawPath()),this.moveChangeStatus&&(this.value=this.getPos(t),this.triggerChange())}}removeEvents(){this.canvas&&(this.canvas.onclick=null,this.canvas.onmousemove=null)}clearCanvasRect(t){const e=t.getContext("2d");e&&e.clearRect(0,0,t.width,t.height)}createCanvas(){this.canvas.style.position="absolute",this.canvas.style.top="50%",this.canvas.style.left="50%",this.canvas.style.transform="translate(-50%, -50%)",this.canvas.style.background="rgba(0, 0, 0, 0.1)",this.canvas.style.zIndex="999",this.container.appendChild(this.canvas)}tuneCanvas(){this.canvas.width=this.options.width||this.container.offsetWidth,this.canvas.height=this.options.height||this.container.offsetHeight,this.clearCanvasRect(this.canvas)}createSubLine(){this.subLine.style.position="absolute",this.subLine.style.top="50%",this.subLine.style.left="50%",this.subLine.style.transform="translate(-50%, -50%)",this.subLine.style.background="transparent",this.subLine.style.zIndex="998",this.container.appendChild(this.subLine)}tuneSubLine(){const t=this.subLine.width=this.canvas.width,e=this.subLine.height=this.canvas.height,i=t/20,n=this.subLine.getContext("2d");this.clearCanvasRect(this.subLine),n.beginPath();for(let r=i;r<t;r+=i)n.moveTo(r,0),n.lineTo(r,e);for(let r=i;r<e;r+=i)n.moveTo(0,r),n.lineTo(t,r);n.lineWidth=1,n.strokeStyle="white",n.stroke()}drawPath(){const t=this.pathArr,e=this.canvas.getContext("2d");if(this.clearCanvasRect(this.canvas),t.length){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(let i=1,n=t.length;i<n;i++)e.lineTo(t[i].x,t[i].y);e.lineWidth=2,e.strokeStyle="red",e.stroke()}}addPath(t,e){const i=this.maxPathValue;e?this.pathArr=[]:this.pathArr.length>=i&&this.pathArr.shift(),this.pathArr.push(t)}getPos(t){const e=this.canvas.getBoundingClientRect();return{w:Math.floor(e.width),h:Math.floor(e.height),x:Math.floor(t.pageX-e.left),y:Math.floor(t.pageY-e.top-(document.body.scrollTop||document.documentElement.scrollTop))}}getValue(){const t=this.options;return t.isPercent?t.isPath?this.pathArr:{x:parseFloat((this.value.x/this.canvas.width).toFixed(3)),y:parseFloat((this.value.y/this.canvas.height).toFixed(3))}:t.isPath?this.pathArr:this.value}triggerChange(){"function"==typeof this.options.onChange&&this.options.onChange(this.getValue())}triggerHide(){"function"==typeof this.options.onHide&&this.options.onHide()}disablePick(){this.allowPickStatus=!1,this.allowPathPickStatus=!1}enablePick(){this.allowPickStatus=!0}disablePathPick(){this.allowPathPickStatus=!1}enablePathPick(){this.allowPickStatus=!0,this.allowPathPickStatus=!1}show(){this.status=!0,this.subLine&&(this.subLine.style.display=""),this.canvas&&(this.canvas.style.display="")}hide(){this.status=!1,this.moveChangeStatus=!1,this.pickingPathStatus=!1,this.subLine&&(this.subLine.style.display="none"),this.canvas&&(this.canvas.style.display="none")}update(t,e){Object.assign(this.options,t),e&&(this.status=!0),this.resize()}resize(){this.status&&this.init()}destroy(){this.removeEvents(),this.subLine&&this.subLine.parentElement&&this.subLine.parentElement.removeChild(this.subLine),this.canvas&&this.canvas.parentElement&&this.canvas.parentElement.removeChild(this.canvas)}}var mt=i(38785),yt=i(61068),bt=Object.defineProperty,vt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,wt=(t,e,i)=>e in t?bt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class xt extends g.vq{constructor(){super(...arguments),this.spinner={},this.advDmOptions=Object.assign({},this.defaultOptions)}get defaultOptions(){return{color:(0,ht.Z)("#FFFFFF"),size:36,family:"SimHei",stroke:1,zRotate:0,yRotate:0,duration:4.5,sOpacity:1,eOpacity:1,aTime:500,aDelay:0,linearSpeedUp:1,aWay:1,startX:0,startY:0,endX:0,endY:0,followType:"none",isPercent:!1,text:"",stime:0,path:[]}}install(){return super.install(),this.dmAdv=this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku`),this.dc.collapse=(0,f.U5)((()=>({menu:this.auxStore.state.currentMenu,unfold:this.auxStore.state.isListSpread})),(({menu:t,unfold:e})=>{t===g.ju.ADV?e&&this.show():this.hide()})),this}show(){this.dmAdv.style.display="block",this.inited?this.resize():(this.inited=!0,this.toinit())}hide(){this.dmAdv.style.display=""}toinit(){this.dmAdv.appendChild(this.createTpl());const t={dmAdvPanel:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-panel`),colorPicker:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-color-picker`),fontFamily:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-font-family-select`),fontStroke:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-font-stroke`),speedUp:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-speedup`),animationWay1:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-animation-way1`),animationWay2:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-animation-way2`),position:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-pos`),percent:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-pos-percent`),
start:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-pos-start-follow`),end:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-pos-end-follow`),pick:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-pick`),pickBtn:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-pick-btn`),textInput:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-text-input`),showTimeInput:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-showtime-input`),showTimeTip:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-showtime-tip`),currentTime:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-current-time`),testBtn:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-send-test`),sendBtn:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-send-send`),dialog:this.auxiliary.querySelector(`.${this.ppx}-adv-danmaku-dialog`)};t.dialogContent=(0,B.t)(`\n            <div class="${this.ppx}-adv-danmaku-dialog-content">\n                <div class="${this.ppx}-adv-danmaku-dialog-text"></div>\n                <div class="${this.ppx}-adv-danmaku-dialog-functions"></div>\n            </div>`),this.template=t,this.scrollbar=new et.Z(this.template.dmAdvPanel,{preventDefault:!1}),this.resize(),this.initUI();const e=(0,yt.Z)((()=>{this.resize()}),40);this.dc.resize=(0,f.U5)((()=>this.auxStore.state.height),(t=>{this.dmAdvStore.isShow&&t&&this.portStore.getScreenKind()!==g.dY.Mini&&e()}),{fireImmediately:!0}),this.dc.verify=(0,f.U5)((()=>({isLoaded:this.rootStore.isLoaded,isShow:this.dmAdvStore.isShow})),(({isLoaded:t,isShow:e})=>{t&&e&&this.verify()}),{fireImmediately:!0}),this.dc.verificationState=(0,f.U5)((()=>this.dmAdvStore.state.verifyState),(t=>{this.setState(t)}),{fireImmediately:!0}),this.dc.userChange=(0,f.U5)((()=>{var t;return null==(t=this.userStore.info)?void 0:t.mid}),(t=>{this.cMid!==t&&(this.cMid=t,this.dmAdvStore.isShow&&(this.verifyPromise=null,this.verify()))}))}setState(t){var e,i,n;switch(t){case g.p7.Hide:null==(e=this.dialog)||e.hide();break;case g.p7.None:this.disable();break;case g.p7.NeedBuy:this.updateDialog({title:`启用本视频的特殊弹幕需要支付2硬币，${(null==(i=this.userStore.info)?void 0:i.isOwner)?"":"并且要经过UP主的同意确认。"}是否要购买？`,functions:[{text:"否",clickHandler:()=>{this.dmAdvStore.setState({verifyState:g.p7.Hide})}},{text:"使用硬币",clickHandler:()=>{this.buyVerification()}}]}),this.disable();break;case g.p7.Request:this.updateDialog({title:"启用本视频的特殊弹幕需要UP主同意，是否要发送请求？",functions:[{text:"否",clickHandler:()=>{this.dmAdvStore.setState({verifyState:g.p7.Hide})}},{text:"发送请求",clickHandler:()=>{this.verifyPromise=null,this.verify()}}]}),this.disable();break;case g.p7.Confirm:this.dmAdvStore.setState({verifyState:g.p7.Confirm}),null==(n=this.dialog)||n.hide(),this.enable();break;case g.p7.Verification:this.updateDialog({title:"正在等待UP主同意开启使用",functions:[{text:"确定",clickHandler:()=>{this.dmAdvStore.setState({verifyState:g.p7.Hide})}}]}),this.disable();break;case g.p7.Reject:this.updateDialog({title:"UP主拒绝您的请求",functions:[{text:"确定",clickHandler:()=>{this.dmAdvStore.setState({verifyState:g.p7.Hide})}}]}),this.disable()}}resize(){var t;this.scrollbar.refresh(),null==(t=null==this?void 0:this.pathPicker)||t.resize()}initUI(){const t=this.userStore.info;(null==t?void 0:t.level)>=2&&new m.zH(this.template.colorPicker,{}).on("change",(t=>{this.setOption({color:(0,ht.Z)(t.value)})})),new m.Ph(this.template.fontFamily,{items:[{name:"黑体",value:'SimHei, "Microsoft JhengHei"'},{name:"宋体",value:"SimSun"},{name:"新宋体",value:"NSimSun"},{name:"仿宋",value:"FangSong"},{name:"微软雅黑",value:'"Microsoft YaHei"'}]}).on("change",(t=>{this.setOption({family:t.value})}));this.auxiliary.querySelectorAll(`.${this.ppx}-adv-danmaku-spinner`).forEach((t=>{const e=t.dataset,i=e.key;this.spinner[i]=new m.II(t,{value:e.value,min:parseInt(e.min,10),max:parseInt(e.max,10),step:parseFloat(e.step),type:"number"}),this.spinner[i].on("change",(t=>{this.setOption({[i]:+t.value})}))})),new m.XZ(this.template.fontStroke,{value:!!this.advDmOptions.stroke,name:"文字描边"}).on("change",(t=>{this.setOption({stroke:+t.value})})),new m.XZ(this.template.speedUp,{value:!!this.advDmOptions.linearSpeedUp,name:"线性加速"}).on("change",(t=>{this.setOption({linearSpeedUp:+t.value})})),new m.XZ(this.template.percent,{value:!!this.advDmOptions.isPercent,name:"按百分比"}).on("change",(t=>{this.setOption({isPercent:t.value}),this.resetOptionsOfPosSpinners(t.value)})),new m.XZ(this.template.currentTime,{value:!0,name:"当前时间"}).on("change",(t=>{t.value?(this.showTimeInput.value(""),this.showTimeInput.disabled=!0,this.setOption({stime:0})):this.showTimeInput.disabled=!1})),new m.zx(this.template.animationWay1,{type:"small"}).on("click",(()=>{this.animationWay(1)})),new m.zx(this.template.animationWay2,{type:"small"}).on("click",(()=>{this.animationWay(2)})),new m.zx(this.template.start,{type:"gray"}).on("click",(()=>{this.followWay("start",!this.template.start.classList.contains("active"))})),new m.zx(this.template.end,{type:"gray"}).on("click",(()=>{this.followWay("end",!this.template.end.classList.contains("active"))})),new m.zx(this.template.pickBtn,{type:"small"}).on("click",(()=>{this.togglePathPickerPresent()})),new m.zx(this.template.testBtn,{type:"large"}).on("click",(()=>{this.testAdvDm()})),new m.zx(this.template.sendBtn,{type:"large"}).on("click",(()=>{this.sendAdvDm()})),this.textInput=new m.II(this.template.textInput,{type:"textarea"}).on("blur",(()=>{this.setOption({text:this.textInput.value()})})),this.showTimeInput=new m.II(this.template.showTimeInput,{disabled:!0}).on("blur",(()=>{const t=(0,dt.N)(this.showTimeInput.value()),e=this.portStore.getDuration();t>=0&&t<=e&&t!==this.advDmOptions.stime&&this.setOption({stime:t})})),this.template.showTimeInput.addEventListener("mouseenter",(()=>{(0,ut.o)(this.template.showTimeTip)})),this.template.showTimeInput.addEventListener("mouseleave",(()=>{(0,pt.N)(this.template.showTimeTip)}))}animationWay(t){var e;this.setOption({aWay:t}),1===t?(this.template.animationWay1.classList.add("active"),this.template.animationWay2.classList.remove("active"),(0,ut.o)(this.template.position),(0,pt.N)(this.template.pick),this.setOption({path:[]})):(this.template.animationWay1.classList.remove("active"),this.template.animationWay2.classList.add("active"),(0,pt.N)(this.template.position),(0,ut.o)(this.template.pick)),(null==(e=null==this?void 0:this.pathPicker)?void 0:e.isOpened)&&this.pathPicker.update(this.getPathPickOptions(t))}getPathPickOptions(t=this.advDmOptions.aWay){const e=this;let i=[];const n=this.advDmOptions.followType;let r,o;return 1===t?(r=t=>{const i=this.advDmOptions.isPercent&&t.w?parseFloat((t.x/t.w).toFixed(3)):t.x,r=this.advDmOptions.isPercent&&t.h?parseFloat((t.y/t.h).toFixed(3)):t.y;"none"!==n&&(e.spinner[`${n}X`].value(i),e.spinner[`${n}Y`].value(r))},o=()=>{e.template.start.classList.remove("active"),e.template.end.classList.remove("active")}):(r=t=>{i=t},o=()=>{e.advDmOptions.path=i,e.template.start.classList.remove("active"),e.template.end.classList.remove("active")}),{isPercent:this.advDmOptions.isPercent,isPath:2===t,onChange:r,onHide:o}}followWay(t,e){e?(this.template[t].classList.add("active"),this.setOption({followType:t}),"start"===t?this.template.end.classList.remove("active"):this.template.start.classList.remove("active"),this.togglePathPickerPresent(!0)):(this.template.start.classList.remove("active"),this.template.end.classList.remove("active"),this.togglePathPickerPresent())}togglePathPickerPresent(t=!1){var e,i;!t&&(null==(e=null==this?void 0:this.pathPicker)?void 0:e.isOpened)?null==(i=this.pathPicker)||i.hide():(this.pathPicker||(this.pathPicker=new ft(this.rootStore.nodes.videoArea,{})),this.pathPicker.update(this.getPathPickOptions(),!0))}resetOptionsOfPosSpinners(t){const e=[this.spinner.startX,this.spinner.startY,this.spinner.endX,this.spinner.endY],i=t?.01:1,n=t?.99:9999;e.forEach((t=>{t.value(0),t.options=((t,e)=>vt(t,Et(e)))(((t,e)=>{for(var i in e||(e={}))Ct.call(e,i)&&wt(t,i,e[i]);if(It)for(var i of It(e))Bt.call(e,i)&&wt(t,i,e[i]);return t})({},t.options),{max:n,step:i})}))}verify(){this.verifyPromise||(this.verifyPromise=this.dmAdvStore.verify(),this.verifyPromise.then((t=>{var e,i
;(null==(e=t.body)?void 0:e.hasBuy)?(null==(i=t.body)?void 0:i.confirm)>=0&&this.dmAdvStore.setState({verifyState:t.body.confirm}):t.body.confirm||t.body.accept?this.dmAdvStore.setState({verifyState:g.p7.NeedBuy}):this.dmAdvStore.setState({verifyState:g.p7.None})})))}updateDialog(t){this.dialog||(this.dialog=new m.Vq(this.template.dialog,{title:"高级弹幕",body:this.template.dialogContent}),this.dialog.on("change",(({hide:t})=>{t&&this.dmAdvStore.setState({verifyState:g.p7.Hide})}))),this.dialog.show(),this.template.dialogContent.querySelector(`.${this.ppx}-adv-danmaku-dialog-text`).innerHTML=t.title;const e=this.template.dialogContent.querySelector(`.${this.ppx}-adv-danmaku-dialog-functions`);e.innerHTML="",t.functions.forEach((t=>{const i=(0,B.t)(`<button class="${this.ppx}-adv-danmaku-dialog-function">${t.text}</button>`);i.addEventListener("click",t.clickHandler),e.appendChild(i)}))}buyVerification(){this.buyVerifyPromise||(this.buyVerifyPromise=this.dmAdvStore.buyVerify()),this.buyVerifyPromise.then((t=>{var e,i,n;0===(null==(e=t.body)?void 0:e.code)?(this.tooltipStore.create({name:"buyVerification",title:(null==(i=t.body)?void 0:i.message)||"操作成功",target:this.template.dmAdvPanel,position:g.DU.CenterCenter,duration:1e3}),this.verifyPromise=null,this.verify()):this.tooltipStore.create({name:"buyVerificationError",title:(null==(n=t.body)?void 0:n.message)||"操作失败",target:this.template.dmAdvPanel,position:g.DU.CenterCenter,duration:1e3})})).catch((()=>{this.tooltipStore.create({name:"buyVerificationError",title:"操作失败",target:this.template.dmAdvPanel,position:g.DU.CenterCenter,duration:1e3})}))}disable(){this.template.dmAdvPanel.classList.add("mask"),this.template.dmAdvPanel.classList.remove(`${this.ppx}-bscrollbar`),this.scrollbar.disable()}enable(){this.template.dmAdvPanel.classList.remove("mask"),this.template.dmAdvPanel.classList.add(`${this.ppx}-bscrollbar`),this.scrollbar.enable()}setOption(t){if((0,mt.Z)(this.advDmOptions)&&(0,mt.Z)(t))for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.prototype.hasOwnProperty.call(this.advDmOptions,e)&&this.advDmOptions[e]!==t[e]&&(this.advDmOptions[e]=t[e])}parseAdvDmOptions(){const t=[],e=this.advDmOptions,i=[e.startX,e.startY,[e.sOpacity,e.eOpacity].join("-"),e.duration,e.text,e.zRotate,e.yRotate,e.endX,e.endY,e.aTime,e.aDelay,e.stroke,e.family,e.linearSpeedUp];return e.path.length&&(e.path.forEach(((e,i)=>{t[i]=`${e.x},${e.y}`})),i.push(`M${t.join("L")}`),i.toString().length>288)?(this.tooltipStore.create({name:"messageToLong",title:"路径拾取太长，可能导致弹幕发送失败",target:this.template.dmAdvPanel,position:g.DU.CenterCenter}),null):{stime:this.portStore.getCurrentTime(),mode:7,size:e.size,color:e.color,date:0,class:0,uhash:"",dmid:"",text:i}}testAdvDm(){this.dmAdvStore.state.verifyState===g.p7.Confirm&&(this.advDmOptions.text?setTimeout((()=>{this.dmAdvStore.setState({testAdvDm:this.parseAdvDmOptions()})}),0):this.textInput.focus())}sendAdvDm(){if(this.dmAdvStore.state.verifyState===g.p7.Confirm)if(this.advDmOptions.text){const t=this.parseAdvDmOptions();if(t){const e=this.advDmOptions.stime||this.portStore.getCurrentTime(),i={type:1,oid:this.configStore.cid,msg:JSON.stringify(t.text),progress:Math.ceil(1e3*e),color:t.color,fontsize:t.size,pool:0,mode:7,rnd:this.configStore.pid,plat:1,aid:this.configStore.aid};this.dmAdvStore.send(i).then((i=>{var n,r,o,a;if(0===(null==(n=i.body)?void 0:n.code)&&(null==(r=i.body)?void 0:r.dmid)){t.dmid=i.body.dmid,this.textInput.value("");const n={stime:e,mode:7,size:t.size,color:t.color,date:Math.floor(+new Date/1e3),pool:0,dmid:i.body.dmid,uhash:null==(o=this.userStore.info)?void 0:o.hashId,text:JSON.stringify(t.text)};this.dmListStore.addDm(n),this.tooltipStore.create({name:"advDmSendSuccess",title:"发送成功",target:this.template.dmAdvPanel,position:g.DU.CenterCenter})}else this.tooltipStore.create({name:"advDmSendError",title:(null==(a=i.body)?void 0:a.message)||"发送失败",target:this.template.dmAdvPanel,position:g.DU.CenterCenter})})).catch((()=>{this.tooltipStore.create({name:"advDmSendError",title:"发送失败",target:this.template.dmAdvPanel,position:g.DU.CenterCenter})}))}}else this.textInput.focus()}createTpl(){
const t=this.ppx,e=`<div class="${t}-adv-danmaku-panel ${t}-bscrollbar">\n            <div class="${t}-adv-danmaku-group-wrap">\n                <div class="${t}-adv-danmaku-group">\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-color">\n                        <span class="${t}-adv-danmaku-title">弹幕颜色</span>\n                        <div class="${t}-adv-danmaku-color-picker"></div>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-font">\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-font-size">\n                            <span class="${t}-adv-danmaku-title">字体大小</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="36" data-min="10" data-max="127" data-step="1" data-key="size" data-origin="36"></span>\n                        </div>\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-font-family">\n                            <span class="${t}-adv-danmaku-title">文本字体</span>\n                            <span class="${t}-adv-danmaku-font-family-select"></span>\n                            <span class="${t}-adv-danmaku-checkbox ${t}-adv-danmaku-font-stroke"></span>\n                        </div>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-rotate">\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-rotateZ">\n                            <span class="${t}-adv-danmaku-title">Z轴翻转</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="360" data-step="1" data-key="zRotate" data-origin="0"></span>\n                        </div>\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-rotateY">\n                            <span class="${t}-adv-danmaku-title">Y轴翻转</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="360" data-step="1" data-key="yRotate" data-origin="0"></span>\n                        </div>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-property">\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-duration">\n                            <span class="${t}-adv-danmaku-title">生存时间</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="4.5" data-min="0" data-max="10" data-step="0.1" data-key="duration" data-origin="4.5"></span>\n                        </div>\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-opacity">\n                            <span class="${t}-adv-danmaku-title">衰弱透明度</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="1" data-min="0" data-max="1" data-step=".01" data-key="sOpacity" data-origin="1"></span>\n                            <span>~</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="1" data-min="0" data-max="1" data-step="0.01" data-key="eOpacity" data-origin="1"></span>\n                        </div>\n                    </div>\n                </div>\n                <div class="${t}-adv-danmaku-group">\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-animation">\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-animation-time">\n                            <span class="${t}-adv-danmaku-title">运动耗时</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="500" data-min="0" data-max="10000" data-step="100" data-key="aTime" data-origin="500"></span>\n                        </div>\n                        <div class="${t}-adv-danmaku-group-item ${t}-adv-danmaku-animation-delay">\n                            <span class="${t}-adv-danmaku-title">延迟时间（毫秒）</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="10000" data-step="100" data-key="aDelay" data-origin="0"></span>\n                            <span class="${t}-adv-danmaku-checkbox ${t}-adv-danmaku-speedup"></span>\n                        </div>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-animation-way">\n                        <span class="${t}-adv-danmaku-title">运动方式</span>\n                        <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-animation-way1 active">起始位置</span>\n                        <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-animation-way2">路径跟随</span>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-pos">\n                        <span class="${t}-adv-danmaku-title">弹幕坐标<span class="${t}-adv-danmaku-checkbox ${t}-adv-danmaku-pos-percent"></span></span>\n                        <div class="${t}-adv-danmaku-pos-start">\n                            <span class="${t}-adv-danmaku-pos-title">起始</span>\n                            <span class="${t}-adv-danmaku-pos-axis">X</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="9999" data-step="1" data-key="startX" data-origin="0"></span>\n                            <span class="${t}-adv-danmaku-pos-axis">Y</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="9999" data-step="1" data-key="startY" data-origin="0"></span>\n                            <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-pos-start-follow">跟踪拾取</span>\n                        </div>\n                        <div class="${t}-adv-danmaku-pos-end">\n                            <span class="${t}-adv-danmaku-pos-title">结束</span>\n                            <span class="${t}-adv-danmaku-pos-axis">X</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="9999" data-step="1" data-key="endX" data-origin="0"></span>\n                            <span class="${t}-adv-danmaku-pos-axis">Y</span>\n                            <span class="${t}-adv-danmaku-spinner" data-value="0" data-min="0" data-max="9999" data-step="1" data-key="endY" data-origin="0"></span>\n                            <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-pos-end-follow">跟踪拾取</span>\n                        </div>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-pick" style="display: none;">\n                        <span class="${t}-adv-danmaku-title">弹幕坐标</span>\n                        <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-pick-btn">拾取定位</span>\n                    </div>\n                </div>\n                <div class="${t}-adv-danmaku-group">\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-text">\n                        <span class="${t}-adv-danmaku-title">弹幕正文</span>\n                        <div class="${t}-adv-danmaku-text-input"></div>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-showtime">\n                        <span class="${t}-adv-danmaku-title">弹幕出现时间</span>\n                        <div class="${t}-adv-danmaku-showtime-input"></div>\n                        <span class="${t}-adv-danmaku-showtime-tip" style="display: none;">hh:mm:ss</span>\n                        <span class="${t}-adv-danmaku-checkbox ${t}-adv-danmaku-current-time"></span>\n                    </div>\n                    <div class="${t}-adv-danmaku-group-row ${t}-adv-danmaku-send">\n                        <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-send-test">测试效果</span>\n                        <span class="${t}-adv-danmaku-btn ${t}-adv-danmaku-send-send">发送弹幕</span>\n                    </div> \n                </div>\n            </div>\n        </div>\n        <div class="${t}-adv-danmaku-dialog"></div>`;return(0,gt.i)(e)}onDispose(){super.onDispose(),this.verifyPromise=null,
this.buyVerifyPromise=null}}var Qt=i(58927),St=i(34201);class kt extends g.vq{constructor(){super(...arguments),this.inputs={},this.data={content:"",fontSize:"5",fontFamily:"SimHei, Microsoft JhengHei",bold:!1,textShadow:!0,strokeWidth:"0",strokeColor:"#FFFFFF",time:"-1",zIndex:"0",anchorX:"0.5",anchorY:"0.5",frames:[{duration:"1",x:"50",y:"50",color:"#FFFFFF",scale:"1",alpha:"1",rotateX:"0",rotateY:"0",rotateZ:"0"}]},this.framesIndex=0,this.uiLists={}}install(){return super.install(),this.templateWrap=this.auxiliary.querySelector(`.${this.ppx}-bas-danmaku-visual`),this.templateWrap.classList.add(`${this.ppx}-bscrollbar`),this.dc.collapse=(0,f.U5)((()=>({menu:this.auxStore.state.currentMenu,unfold:this.auxStore.state.isListSpread})),(({menu:t,unfold:e})=>{t===g.ju.BAS?e&&this.show():this.hide()})),this}show(){this.templateWrap.style.display="block",this.inited||(this.inited=!0,this.toinit())}hide(){this.templateWrap.style.display=""}toinit(){this.createTpl(),this.initList(),this.dc.hidePathPicker=(0,f.U5)((()=>this.dmBasStore.isShowVisual),(t=>{t||this.hidePathPicker()}),{fireImmediately:!0}),this.dc.resizePathPicker=(0,f.U5)((()=>({width:this.uiStore.state.containerWidth,height:this.uiStore.state.containerHeight})),(()=>{this.pathPicker&&this.pathPicker.isOpened&&this.pathPicker.resize()}),{fireImmediately:!0})}initList(){const t=this.ppx+"-bas-visualpanel";this.template={basWrap:this.templateWrap.querySelector(`.${t}`),switchBtn:this.templateWrap.querySelector(`.${t}-switch-btn`),changeableCollapse:this.templateWrap.querySelector(`.${t}-changeable-collapse`),changeableHeader:this.templateWrap.querySelector(`.${t}-changeable-header`),changeableBody:this.templateWrap.querySelector(`.${t}-changeable-body`),checkCurrenttime:this.templateWrap.querySelector(`.${t}-check-currenttime`),positionPickBtn:this.templateWrap.querySelector(`.${t}-position-picker`),alphaValue:this.templateWrap.querySelector(`.${t}-span-alpha-value`),frames:this.templateWrap.querySelector(`.${t}-frames`),removeFrameBtn:this.templateWrap.querySelector(`.${t}-frame-remove`),previewBtn:this.templateWrap.querySelector(`.${t}-preview`),editBtn:this.templateWrap.querySelector(`.${t}-edit`),sendBtn:this.templateWrap.querySelector(`.${t}-send`),frameWrap:this.templateWrap.querySelector(`.${t}-frame-wrap`)};new m.zx(this.template.switchBtn,{type:"text"}).on("click",(()=>{this.dmBasStore.state.showCodePanel?this.dmBasStore.setState({showCodePanel:!1}):this.dmBasStore.setState({showCodePanel:!0})}));["content","fontSize","fontFamily","bold","textShadow","strokeWidth","strokeColor","time","zIndex","anchorX","anchorY"].forEach((e=>{this.template[e]=this.templateWrap.querySelector(`.${t}-input-${e}`)})),["duration","x","y","color","scale","alpha","rotateX","rotateY","rotateZ"].forEach((e=>{this.template[e]=this.templateWrap.querySelector(`.${t}-input-${e}`)})),this.inputs.content=new m.II(this.template.content,{placeholder:"请输入弹幕内容",value:this.data.content}),this.inputs.content.on("change",(t=>{this.data.content=t.value})),this.inputs.fontSize=new m.II(this.template.fontSize,{type:"number",max:100,min:0,value:this.data.fontSize}),this.inputs.fontSize.on("change",(t=>{this.data.fontSize=t.value})),this.inputs.fontFamily=new m.Ph(this.template.fontFamily,{items:[{name:"黑体",value:"SimHei, Microsoft JhengHei"},{name:"宋体",value:"SimSun"},{name:"新宋体",value:"NSimSun"},{name:"仿宋",value:"FangSong"},{name:"微软雅黑",value:"Microsoft YaHei"}],value:this.data.fontFamily}),this.inputs.fontFamily.on("change",(t=>{this.data.fontFamily=t.value})),this.inputs.bold=new m.XZ(this.template.bold,{name:"粗体",value:this.data.bold}),this.inputs.bold.on("change",(t=>{this.data.bold=t.value})),this.inputs.textShadow=new m.XZ(this.template.textShadow,{name:"阴影",value:this.data.textShadow}),this.inputs.textShadow.on("change",(t=>{this.data.textShadow=t.value})),this.inputs.strokeWidth=new m.II(this.template.strokeWidth,{type:"number",min:0,value:this.data.strokeWidth}),this.inputs.strokeWidth.on("change",(t=>{this.data.strokeWidth=t.value})),this.inputs.strokeColor=new m.zH(this.template.strokeColor,{value:this.data.strokeColor}),this.inputs.strokeColor.on("change",(t=>{this.data.strokeColor=t.value})),this.inputs.time=new m.II(this.template.time,{type:"number",min:0,disabled:!0}),this.inputs.time.on("change",(t=>{this.data.time=this.checkCurrenttime.value()?"-1":t.value})),this.checkCurrenttime=new m.XZ(this.template.checkCurrenttime,{value:!0,name:"当前时间"}),this.checkCurrenttime.on("change",(t=>{t.value?this.inputs.time.disabled=!0:this.inputs.time.disabled=!1,this.data.time=t.value?"-1":this.inputs.time.value()})),this.inputs.zIndex=new m.II(this.template.zIndex,{type:"number",min:0,value:this.data.zIndex}),this.inputs.zIndex.on("change",(t=>{this.data.zIndex=t.value})),this.inputs.anchorX=new m.II(this.template.anchorX,{type:"number",max:1,min:0,step:.5,value:this.data.anchorX}),this.inputs.anchorX.on("change",(t=>{this.data.anchorX=t.value})),this.inputs.anchorY=new m.II(this.template.anchorY,{type:"number",max:1,min:0,step:.5,value:this.data.anchorY}),this.inputs.anchorY.on("change",(t=>{this.data.anchorY=t.value})),new m.UO(this.template.changeableCollapse,{header:this.template.changeableHeader,body:this.template.changeableBody,value:!0,canCollapse:!1}),this.template.frames.addEventListener("click",(e=>{const i=e.target,n=this.templateWrap.querySelectorAll(`.${t}-frame`);if(i.classList.contains(`${t}-frame-add`)){this.template.removeFrameBtn.insertAdjacentHTML("beforebegin",`<span class="${t}-frame">${n.length+1}</span>`);const e=this.data.frames[this.data.frames.length-1];this.data.frames.push({duration:"1",x:e.x,y:e.y,color:e.color,scale:e.scale,alpha:e.alpha,rotateX:e.rotateX,rotateY:e.rotateY,rotateZ:e.rotateZ})}else i.classList.contains(`${t}-frame-remove`)?n.length>1&&(this.template.frameWrap.removeChild(n[n.length-1]),this.data.frames.pop()):i.classList.contains(`${t}-frame`)&&(this.templateWrap.querySelector(`.${t}-frame-active`).classList.remove(`${t}-frame-active`),i.classList.add(`${t}-frame-active`),this.switchFrame(+i.innerText-1))})),this.inputs.duration=new m.II(this.template.duration,{type:"number",min:0,value:this.data.frames[0].duration}),this.inputs.duration.on("change",(t=>{this.data.frames[this.framesIndex].duration=""===t.value?void 0:t.value})),this.inputs.x=new m.II(this.template.x,{type:"number",max:100,min:0,step:1,value:this.data.frames[0].x}),this.inputs.x.on("change",(t=>{this.data.frames[this.framesIndex].x=""===t.value?void 0:t.value})),this.inputs.y=new m.II(this.template.y,{type:"number",max:100,min:0,step:1,value:this.data.frames[0].y}),this.inputs.y.on("change",(t=>{this.data.frames[this.framesIndex].y=""===t.value?void 0:t.value}));new m.zx(this.template.positionPickBtn,{type:"gray"}).on("click",(()=>{this.pathPicker&&this.pathPicker.isOpened?this.hidePathPicker():this.showPathPicker()})),this.inputs.color=new m.zH(this.template.color,{value:this.data.frames[0].color}),this.inputs.color.on("change",(t=>{this.data.frames[this.framesIndex].color=""===t.value?void 0:t.value})),this.inputs.scale=new m.II(this.template.scale,{type:"number",max:1,min:0,step:.1,value:this.data.frames[0].scale}),this.inputs.scale.on("change",(t=>{this.data.frames[this.framesIndex].scale=""===t.value?void 0:t.value})),this.inputs.alpha=new m.II(this.template.alpha,{type:"number",max:1,min:0,step:.1,value:this.data.frames[0].alpha}),this.inputs.alpha.on("change",(t=>{this.data.frames[this.framesIndex].alpha=""===t.value?void 0:t.value})),this.inputs.rotateX=new m.II(this.template.rotateX,{type:"number",step:10,value:this.data.frames[0].rotateX}),this.inputs.rotateX.on("change",(t=>{this.data.frames[this.framesIndex].rotateX=""===t.value?void 0:t.value})),this.inputs.rotateY=new m.II(this.template.rotateY,{type:"number",step:10,value:this.data.frames[0].rotateY}),this.inputs.rotateY.on("change",(t=>{this.data.frames[this.framesIndex].rotateY=""===t.value?void 0:t.value})),this.inputs.rotateZ=new m.II(this.template.rotateZ,{type:"number",step:10,value:this.data.frames[0].rotateZ}),this.inputs.rotateZ.on("change",(t=>{this.data.frames[this.framesIndex].rotateZ=""===t.value?void 0:t.value})),
this.uiLists.previewBtn=new m.zx(this.template.previewBtn,{type:"gray"}),this.uiLists.previewBtn.on("click",(()=>{this.onTest()})),this.editBtn=new m.zx(this.template.editBtn,{type:"blue",disabled:!0}),this.editBtn.on("click",(()=>{this.onSend(this.editId)})),this.uiLists.sendBtn=new m.zx(this.template.sendBtn,{type:"blue"}),this.uiLists.sendBtn.on("click",(()=>{this.onSend()})),this.dc.wrapDisplay=(0,f.U5)((()=>({menu:this.auxStore.state.currentMenu,screenKind:this.uiStore.screenKind})),(({menu:t,screenKind:e})=>{t===g.ju.BAS&&(e===g.dY.Wide?this.templateWrap.style.display="none":(this.templateWrap.style.display="block",this.scrollbar.refresh()))}),{fireImmediately:!0}),this.scrollbar=new et.Z(this.templateWrap,{preventDefault:!1}),this.dc.resize=(0,f.U5)((()=>this.auxStore.state.height),(t=>{this.dmBasStore.isShowVisual&&t&&this.portStore.getScreenKind()!==g.dY.Mini&&this.scrollbar.refresh()}),{fireImmediately:!0}),this.danmakuStore.state.state&&this.dmClose(!0)}createTpl(){const t=this.ppx+"-bas-visualpanel";this.templateWrap.innerHTML=`\n        <div class="${t}">\n        <div class="${t}-switch-btn">代码模式</div>\n        <div class="${t}-box">\n            <div class="${t}-line">\n                <span class="${t}-label ${t}-label-letter">文本内容</span>\n                <span class="${t}-input ${t}-input-content"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">文本大小</span>\n                <span class="${t}-input ${t}-input-fontSize"></span>\n                <span class="${t}-span">%</span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">文本字体</span>\n                <span class="${t}-input ${t}-input-fontFamily"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">文本样式</span>\n                <span class="${t}-input ${t}-input-bold"></span>\n                <span class="${t}-input ${t}-input-textShadow"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">描边宽度</span>\n                <span class="${t}-input ${t}-input-strokeWidth"></span>\n                <span class="${t}-span">px</span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">描边颜色</span>\n                <span class="${t}-input ${t}-input-strokeColor"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">出现时间</span>\n                <span class="${t}-input ${t}-input-time"></span>\n                <span class="${t}-span">毫秒</span>\n                <span class="${t}-check-currenttime"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">层级</span>\n                <span class="${t}-input ${t}-input-zIndex"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">锚点</span>\n                <span class="${t}-span">X</span>\n                <span class="${t}-input ${t}-input-anchorX"></span>\n                <span class="${t}-span">Y</span>\n                <span class="${t}-input ${t}-input-anchorY"></span>\n            </div>\n        </div>\n        <div class="${t}-changeable-collapse"></div>\n        <div class="${t}-changeable-header">\n            <span class="${this.cpx}-svg-icon">${C()}</span>\n            <span>动画属性</span>\n        </div>\n        <div class="${t}-changeable-body">\n            <div class="${t}-line ${t}-frames">\n                <span class="${t}-label">动画帧</span>\n                <span class="${t}-frame-wrap">\n                    <span class="${t}-frame ${t}-frame-active">1</span><span class="${t}-frame-remove">－</span><span class="${t}-frame-add">＋</span>\n                </span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">持续时间</span>\n                <span class="${t}-input ${t}-input-duration"></span>\n                <span class="${t}-span">秒</span>\n            </div>\n            <div class="${t}-br"></div>\n            <div class="${t}-line">\n                <span class="${t}-label">位置</span>\n                <span class="${t}-span">X</span>\n                <span class="${t}-input ${t}-input-x"></span>\n                <span class="${t}-span">%</span>\n                <span class="${t}-span">Y</span>\n                <span class="${t}-input ${t}-input-y"></span>\n                <span class="${t}-span">%</span>\n                <span class="${t}-position-picker">位置拾取</span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">文本颜色</span>\n                <span class="${t}-input ${t}-input-color"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">缩放</span>\n                <span class="${t}-input ${t}-input-scale"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">透明度</span>\n                <span class="${t}-input ${t}-input-alpha"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-label">旋转</span>\n                <span class="${t}-span">X</span>\n                <span class="${t}-input ${t}-input-rotateX"></span>\n                <span class="${t}-span">Y</span>\n                <span class="${t}-input ${t}-input-rotateY"></span>\n                <span class="${t}-span">Z</span>\n                <span class="${t}-input ${t}-input-rotateZ"></span>\n            </div>\n            <div class="${t}-line">\n                <span class="${t}-preview">预览弹幕</span><span class="${t}-edit">修改弹幕</span><span class="${t}-send">发送弹幕</span>\n            </div>\n            </div>\n        </div>`}dmClose(t){this.inited&&(t?(this.uiLists.previewBtn.disable(),this.uiLists.sendBtn.disable()):(this.uiLists.previewBtn.enable(),this.uiLists.sendBtn.enable()))}switchFrame(t){this.framesIndex=t,this.setFrameInputs()}setFrameInputs(t=this.data.frames[this.framesIndex]){for(const e in t)t.hasOwnProperty(e)&&this.inputs[e].value(void 0===t[e]?"":t[e])}setData(t){return e=this,i=null,n=function*(){const e=this.ppx+"-bas-visualpanel";Qt.default.parse({danmaku:t,success:t=>{this.editId=t.dmid,this.editBtn.disabled=!1;let i="";for(let n=0;n<(t.sets[0].items?t.sets[0].items.length+1:1);n++)i+=`<span class="${e}-frame">${n+1}</span>`;if(this.switchFrame(0),this.template.frameWrap.innerHTML=`${i}<span class="${e}-frame-remove">－</span><span class="${e}-frame-add">＋</span>`,this.inputs.time.value(t.stime),this.checkCurrenttime.value(!1),this.inputs.content.value(t.defs[0].attrs.content),this.inputs.fontSize.value(t.defs[0].attrs.fontSize.value),this.inputs.fontFamily.value(t.defs[0].attrs.fontFamily),this.inputs.bold.value(t.defs[0].attrs.bold.value),this.inputs.textShadow.value(t.defs[0].attrs.textShadow.value),this.inputs.strokeWidth.value(t.defs[0].attrs.strokeWidth.value),this.inputs.strokeColor.value((0,St.X)(t.defs[0].attrs.strokeColor)),this.inputs.zIndex.value(t.defs[0].attrs.zIndex.value),this.inputs.anchorX.value(t.defs[0].attrs.anchorX.value),this.inputs.anchorY.value(t.defs[0].attrs.anchorY.value),this.inputs.duration.value(t.sets[0].items?t.sets[0].items[0].duration/1e3:t.sets[0].duration/1e3),this.inputs.x.value(t.defs[0].attrs.x.value),this.inputs.y.value(t.defs[0].attrs.y.value),this.inputs.color.value((0,St.X)(t.defs[0].attrs.color)),this.inputs.scale.value(t.defs[0].attrs.scale.value),this.inputs.alpha.value(t.defs[0].attrs.alpha.value),this.inputs.rotateX.value(t.defs[0].attrs.rotateX.value),this.inputs.rotateY.value(t.defs[0].attrs.rotateY.value),this.inputs.rotateZ.value(t.defs[0].attrs.rotateZ.value),t.sets[0].items){let e=0;for(let i=0;i<t.sets[0].items.length;i++)e+=t.sets[0].items[i].duration,this.data.frames[i+1]={duration:(t.sets[0].items[i+1]?t.sets[0].items[i+1].duration:t.sets[1].duration-e)/1e3+"",x:t.sets[0].items[i].attrs.x.value+"",y:t.sets[0].items[i].attrs.y.value+"",color:(0,St.X)(t.sets[0].items[i].attrs.color),scale:t.sets[0].items[i].attrs.scale.value+"",
alpha:t.sets[0].items[i].attrs.alpha.value+"",rotateX:t.sets[0].items[i].attrs.rotateX.value+"",rotateY:t.sets[0].items[i].attrs.rotateY.value+"",rotateZ:t.sets[0].items[i].attrs.rotateZ.value+""}}},error:t=>{this.tooltipStore.create({name:"formatError",target:this.template.editBtn,position:g.DU.TopCenter,title:"弹幕格式错误: "+t})}})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}getData(){let t="";this.data.frames.length>1&&this.data.frames.slice(1).forEach(((e,i)=>{t+=`\n${0===i?"":"then "}set v {\n    ${void 0!==e.x?`x = ${e.x}%`:""}\n    ${void 0!==e.y?`y = ${e.y}%`:""}\n    ${void 0!==e.color?`color = 0x${e.color.slice(1)}`:""}\n    ${void 0!==e.scale?`scale = ${e.scale}`:""}\n    ${void 0!==e.alpha?`alpha = ${e.alpha}`:""}\n    ${void 0!==e.rotateX?`rotateX = ${e.rotateX}`:""}\n    ${void 0!==e.rotateY?`rotateY = ${e.rotateY}`:""}\n    ${void 0!==e.rotateZ?`rotateZ = ${e.rotateZ}`:""}\n} ${e.duration}s`}));let e=0;this.data.frames.forEach((t=>{e+=+t.duration})),t+=`\nset v {\n} ${e}s`;const i=`def text v {\n    content = "${this.data.content}"\n    fontSize = ${this.data.fontSize}%\n    fontFamily = "${this.data.fontFamily}"\n    bold = ${this.data.bold?"1":"0"}\n    textShadow = ${this.data.textShadow?"1":"0"}\n    strokeWidth = ${this.data.strokeWidth}\n    strokeColor = 0x${this.data.strokeColor.slice(1)}\n    zIndex = ${this.data.zIndex}\n    anchorX = ${this.data.anchorX}\n    anchorY = ${this.data.anchorY}\n    x = ${this.data.frames[0].x}%\n    y = ${this.data.frames[0].y}%\n    color = 0x${this.data.frames[0].color.slice(1)}\n    scale = ${this.data.frames[0].scale}\n    alpha = ${this.data.frames[0].alpha}\n    rotateX = ${this.data.frames[0].rotateX}\n    rotateY = ${this.data.frames[0].rotateY}\n    rotateZ = ${this.data.frames[0].rotateZ}\n}\n${t}\n// Generated by bas visual panel`;return{stime:+this.data.time>=0?+this.data.time/1e3:this.portStore.getCurrentTime(),mode:9,size:0,color:0,date:0,pool:0,uhash:"",dmid:"0",text:i}}onTest(){if(!this.data.content)return void this.tooltipStore.create({name:"emptyText",target:this.template.previewBtn,position:g.DU.TopCenter,title:"请输入弹幕内容"});const t=this.getData();t.stime=+this.data.time>=0?+this.data.time/1e3:-1,this.dmBasStore.test(t).then((()=>{this.tooltipStore.create({name:"testSuccess",target:this.template.previewBtn,position:g.DU.TopCenter,title:"测试弹幕发送成功"})})).catch((t=>{this.tooltipStore.create({name:"formatError",target:this.template.previewBtn,position:g.DU.TopCenter,title:t.message})}))}onSend(t){this.data.content?this.dmBasStore.send(this.getData(),t).then((()=>{this.tooltipStore.create({name:"testSuccess",target:this.template.editBtn,position:g.DU.CenterCenter,title:"发送成功"})})).catch((t=>{this.tooltipStore.create({name:"formatError",target:this.template.editBtn,position:g.DU.CenterCenter,title:t.message})})):this.tooltipStore.create({name:"emptyText",target:this.template.previewBtn,position:g.DU.TopCenter,title:"请输入弹幕内容"})}showPathPicker(){this.pathPicker||(this.pathPicker=new ft(this.rootStore.nodes.videoArea,this.getPathPickerOptions())),this.pathPicker.update(this.getPathPickerOptions(),!0)}hidePathPicker(){this.pathPicker&&this.pathPicker.hide()}getPathPickerOptions(){return{isPercent:!0,isPath:!1,onChange:t=>{this.inputs.x.value((100*t.x).toFixed(2)),this.inputs.y.value((100*t.y).toFixed(2))}}}onDispose(){super.onDispose()}}var Dt=i(89262),_t=i(54),Rt=i.n(_t),Mt=i(68918),Tt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Lt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Ft(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Tt(e,i,o),o};class Nt extends g.vq{constructor(){super(...arguments),this.editorIndex=0,this.checkbox={},this.editorSwitch=0,this.storage={},this.uiLists={}}install(){return super.install(),this.dc.showVisual=(0,f.U5)((()=>this.dmBasStore.isShowVisual),(t=>{t||this.dmBasStore.setState({showCodePanel:!1})}),{fireImmediately:!0}),this.dc.showCodePanel=(0,f.U5)((()=>this.dmBasStore.state.showCodePanel),(t=>{t?this.show():this.hide()}),{fireImmediately:!0}),this}show(){var t,e;this.inited?(0,ut.o)(null==(t=this.template)?void 0:t.wrap):(this.inited=!0,this.toinit(),(0,ut.o)(null==(e=this.template)?void 0:e.wrap))}hide(){var t;(0,pt.N)(null==(t=this.template)?void 0:t.wrap),this.hidePathPicker()}toinit(){const t=this.getLocalStorage();this.editorData=t.data,this.storage=t.storage,this.dc.resizeScroll=(0,f.EH)((()=>{if(this.dmBasStore.state.showCodePanel&&this.uiStore.state.containerWidth&&this.uiStore.state.containerHeight&&this.uiStore.screenKind!==g.dY.Mini){const t=Rt()(this.container).offset(),e=this.uiStore.screenKind===g.dY.Wide?0:340;this.template.wrap.style.width=this.uiStore.state.containerWidth+e+"px",this.template.wrap.style.top=t.top+Rt()(this.container).height()+24+"px",this.template.wrap.style.left=t.left+"px",this.scrollbarResize()}})),this.dc.resizePathPicker=(0,f.U5)((()=>({width:this.uiStore.state.containerWidth,height:this.uiStore.state.containerHeight})),(()=>{this.pathPicker&&this.pathPicker.isOpened&&this.pathPicker.resize()}),{fireImmediately:!0}),this.config={color:16777215,size:36,duration:4.5,text:"",x:0,y:0,isPercent:0,testKeep:!1};const e={wrap:document.querySelector(`.${this.ppx}-bas-danmaku-code`)};this.template=e,this.createTpl(),this.initPanel()}initPanel(){const t=this.ppx+"-bas-codepanel";this.template=Object.assign(this.template,{container:this.template.wrap.querySelector(".bas-danmaku-editor-wrap"),colorBtn:this.template.wrap.querySelector(".bas-danmaku-color-btn"),colorText:this.template.wrap.querySelector(".adv-danmaku-text-color"),positonText:this.template.wrap.querySelector(".adv-danmaku-text-pos"),colorPickerWrap:this.template.wrap.querySelector(`.${t}-color-picker-wrap`),colorPicker:this.template.wrap.querySelector(`.${t}-color-picker`),posPicker:this.template.wrap.querySelector(".adv-danmaku-stoke"),stime:this.template.wrap.querySelector(".adv-danmaku-start-time"),ctime:this.template.wrap.querySelector(".adv-danmaku-current-time"),text:this.template.wrap.querySelector(".adv-danmaku-text"),pickerBtn:this.template.wrap.querySelector(".adv-danmaku-pick-path-btn"),clearBtn:this.template.wrap.querySelector(".adv-danmaku-clear-btn"),testBtn:this.template.wrap.querySelector(".bas-danmaku-test-btn"),sendBtn:this.template.wrap.querySelector(".adv-danmaku-send-btn"),newTabBtn:this.template.wrap.querySelector(".bas-danmaku-new-tab-btn"),editorWrap:this.template.wrap.querySelector(".bas-danmaku-editor-tab-wrap"),editorTab:this.template.wrap.querySelector(".bas-danmaku-editor-tab"),helpBtn:this.template.wrap.querySelector(".adv-danmaku-help-btn"),testKeepBtn:this.template.wrap.querySelector(".bas-danmaku-test-keep")});let e="";for(let t=0;t<this.editorData.length;t++)e+=`<li ${t===this.editorIndex?'class="bas-danmaku-editor-tab-active"':""} data-index="${t}"><span class="bas-danmaku-editor-tab-status" data-status="${this.editorData[t][3]}"></span><span class="bas-danmaku-editor-tab-text">${t+1}</span><span class="bas-danmaku-editor-tab-close">－</span></li>`;this.template.editorTab.insertAdjacentHTML("beforeend",e),this.basScrollbar=new et.Z(this.template.editorWrap,{}),this.checkbox.testKeep=new m.XZ(this.template.testKeepBtn,{value:!1,name:"测试弹幕常驻"}),this.checkbox.testKeep.on("change",(t=>{this.editorData[this.editorIndex][2]=t.value?1:0,this.setLocalStorage()})),this.checkbox.ctime=new m.XZ(this.template.ctime,{value:!0,name:"当前时间"}),this.checkbox.ctime.on("change",(t=>{t.value?(this.stimeInput.value(""),this.stimeInput.disabled=!0,this.setStime(-1,this.editorIndex,!0)):this.stimeInput.disabled=!1}));new m.zx(this.template.clearBtn,{type:"gray"}).on("click",(()=>{this.dmSettingStore.setState({dmClear:this.dmSettingStore.state.dmClear+1}),this.tooltipStore.create({name:"testSuccess",renderTarget:this.template.wrap,position:g.DU.CenterCenter,title:"清屏成功"})}));new m.zx(this.template.pickerBtn,{type:"gray"}).on("click",(()=>{this.pathPicker&&this.pathPicker.isOpened?this.hidePathPicker():this.showPathPicker()})),
this.uiLists.testBtn=new m.zx(this.template.testBtn,{type:"gray"}),this.uiLists.testBtn.on("click",(()=>{this.onTest()})),this.uiLists.sendBtn=new m.zx(this.template.sendBtn,{type:"gray"}),this.uiLists.sendBtn.on("click",(()=>{this.onSend()}));new m.zx(this.template.newTabBtn,{type:"gray"}).on("click",(()=>{this.addEditorTab()}));new m.zx(this.template.helpBtn,{type:"gray"}).on("click",(()=>{(0,Mt.x)("https://bilibili.github.io/bas/",this.rootPlayer)}));const n=new m.zx(this.template.colorBtn,{type:"gray"});let r=!0;n.on("click",(()=>{r?(0,ut.o)(this.template.colorPickerWrap):(0,pt.N)(this.template.colorPickerWrap),r=!r}));new m.zH(this.template.colorPicker,{}).on("change",(t=>{this.template.colorText.innerHTML=`color = 0x${t.value.slice(1)}`})),this.template.colorText.addEventListener("click",this.onClickColorTextHandler),this.template.positonText.addEventListener("click",this.onClickPositionTextHandler),this.danmakuStore.state.state&&this.dmClose(!0),Promise.resolve().then(i.bind(i,3925)).then((t=>{this.initEditor()})),this.editor||this.disable(),this.template.wrap.querySelector("."+this.ppx+"-panel-back").addEventListener("click",(()=>{this.dmBasStore.setState({showCodePanel:!1})})),this.stimeInput=new m.II(this.template.stime,{disabled:!0,type:"number"}),this.stimeInput.on("input",(t=>{let e;e=t.value.indexOf(":")>0?60*parseFloat(t.value.split(":")[0])+parseFloat(t.value.split(":")[1]):parseFloat(t.value),isNaN(e)||"number"!=typeof e||this.setStime(e,this.editorIndex,!0)})),this.template.editorTab.addEventListener("click",(t=>{const e=t.target;"LI"===e.tagName.toUpperCase()?parseInt(e.dataset.index,10)>=0&&this.switchEditorTab(parseInt(e.dataset.index,10)):e.classList.contains("bas-danmaku-editor-tab-close")&&this.removeEditorTab(e.parentElement)}))}createTpl(){const t=this.ppx+"-bas-codepanel";this.template.wrap.innerHTML=`\n            <div class="${this.ppx}-panel-title advanced-danmaku-group bas-danmaku-title">\n                <span class="${this.ppx}-panel-title-text">BAS弹幕</span>\n                <span class="${this.ppx}-panel-back"><span class="${this.cpx}-svg-icon">${G()}</span></span>\n            </div>\n            <div class="${this.ppx}-panel-title advanced-danmaku-group bas-danmaku-controller">\n                <div class="bas-danmaku-controller-line">\n                    <span class="adv-danmaku-btn-span bas-danmaku-new-tab-btn">新建标签页</span>\n                    <span class="adv-danmaku-btn-span adv-danmaku-help-btn">帮助</span>\n                    <span class="adv-danmaku-btn-span adv-danmaku-clear-btn">清屏</span>\n                    <span class="adv-danmaku-btn-span bas-danmaku-test-btn">测试效果</span>\n                    <span class="adv-danmaku-checkbox-span bas-danmaku-test-keep"></span>\n                    <span class="adv-danmaku-btn-span adv-danmaku-send-btn">发送弹幕</span>\n                </div>\n            </div>\n            <div class="advanced-danmaku-group bas-danmaku-editor-wrap">\n                <div class="bas-danmaku-editor-tab-wrap ${t}-bscrollbar">\n                    <ul class="bas-danmaku-editor-tab"></ul>\n                </div>\n                <div class="bas-danmaku-setting">\n                    <div class="bas-danmaku-setting-item">\n                        <span class="content-span">弹幕出现时间:</span>\n                        <div class="adv-danmaku-start-time"></div>\n                        <span class="content-span">毫秒</span>\n                        <span class="adv-danmaku-checkbox-span adv-danmaku-send-time adv-danmaku-current-time"></span>\n                    </div>\n                    <div class="bas-danmaku-setting-item">\n                        <span class="adv-danmaku-btn-span bas-danmaku-color-btn">颜色拾取</span>\n                        <span class="adv-danmaku-text-color content-span">color = 0xffffff</span>\n                        <span class="${t}-color-picker-wrap" style="display: none;">\n                            <span class="${t}-color-picker"></span>\n                        </span>\n                    </div>\n                    <div class="bas-danmaku-setting-item">\n                        <span class="adv-danmaku-btn-span adv-danmaku-pick-path-btn">坐标拾取</span>\n                        <span class="adv-danmaku-text-pos content-span">x = 0 y = 0</span>\n                    </div>\n                </div>\n                <div class="bas-danmaku-editor" id="bas-editor"></div>\n            </div>`}onClickColorTextHandler(){x.T.copy(this.template.colorText.innerHTML,{container:this.template.colorText})&&this.tooltipStore.create({name:"copySuccess",renderTarget:this.template.wrap,position:g.DU.CenterCenter,title:"复制成功"})}onClickPositionTextHandler(){x.T.copy(this.template.positonText.innerHTML.replace(" y =","\ny ="),{container:this.template.positonText})&&this.tooltipStore.create({name:"copySuccess",renderTarget:this.template.wrap,position:g.DU.CenterCenter,title:"复制成功"})}initEditor(){this.inited&&!this.editor&&window.ace&&(this.editor=window.ace.edit("bas-editor"),this.editor.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0}),this.editor.getSession().setMode("ace/mode/bas"),this.editor.setTheme("ace/theme/crimson_editor"),this.editor.$blockScrolling=1/0,this.editorSetValue(this.editorData[this.editorIndex][0]),this.setStime(),this.checkbox.testKeep.value(this.editorData[this.editorIndex][2]?1:0),this.editor.clearSelection(),this.editor.on("change",(t=>{this.editorSwitch?this.editorSwitch--:(this.editorData[this.editorIndex][0]=this.editor.getValue(),0===this.editorData[this.editorIndex][3]&&this.editorData[this.editorIndex][0]?this.setStatus(1):1!==this.editorData[this.editorIndex][3]||this.editorData[this.editorIndex][0]?2===this.editorData[this.editorIndex][3]&&this.setStatus(3):this.setStatus(0),this.setLocalStorage())})),this.enable())}editorSetValue(t){this.editorSwitch=2,t||this.editorSwitch--,this.editor.getValue()||this.editorSwitch--,this.editor.setValue(t),this.setSendButtonText()}setLocalStorage(){if(1!==this.editorData.length||""!==this.editorData[0][0])return this.storage[this.configStore.cid]=this.editorData,this.rootStore.localStore.set({basEditorData:this.storage})}getLocalStorage(){const t=this.rootStore.localStore.get().basEditorData;let e=[];return t[this.configStore.cid]&&(e=t[this.configStore.cid]),e.length&&"[object Array]"===Object.prototype.toString.call(e)||(e=[["",-1,0,0]]),e=e.map((t=>(t[0]||(t[0]=""),t[1]||(t[1]=-1),t[2]||(t[2]=0),t[3]||(t[3]=0),""===t[0]?t[3]=0:t[4]||(t[3]=1),t))),{storage:t,data:e}}setStime(t=this.editorData[this.editorIndex][1],e=this.editorIndex,i){e!==this.editorIndex||i||(t>=0?(this.checkbox.ctime.value(!1),this.stimeInput.value(t)):this.checkbox.ctime.value(!0)),this.editorData[e][1]=t,this.setLocalStorage()}getStime(){return this.checkbox.ctime.value()?-1:parseFloat(this.stimeInput.value())}setStatus(t,e=this.editorIndex){this.editorData[e][3]=t,this.template.wrap.querySelectorAll(".bas-danmaku-editor-tab-status")[e].dataset.status=t+"",this.setSendButtonText(),this.setLocalStorage()}setSendButtonText(){3===this.editorData[this.editorIndex][3]?this.uiLists.sendBtn.setText("修改弹幕"):this.uiLists.sendBtn.setText("发送弹幕")}dmClose(t){this.inited&&(t?(this.uiLists.testBtn.disable(),this.uiLists.sendBtn.disable()):(this.uiLists.testBtn.enable(),this.uiLists.sendBtn.enable()))}scrollbarResize(){this.basScrollbar&&this.basScrollbar.refresh()}getData(){let t;return t={stime:this.getStime()>=0?this.getStime()/1e3:this.portStore.getCurrentTime(),mode:9,size:this.config.size,color:this.config.color,date:0,pool:0,uhash:"0",dmid:"0",text:this.editor.getValue()},t}setConfig(t,e){return t instanceof Array?t.forEach((t=>{this.setConfig(t)})):t&&(e||e>=0)&&this.config.hasOwnProperty(t)?this.config[t]=e:t instanceof Object&&t.key&&t.hasOwnProperty("value")&&(this.config[t.key]=t.value),this}onTest(){this.editor&&setTimeout((()=>{const t=this.getData();t.stime=this.getStime()>=0?this.getStime()/1e3:-1,this.dmBasStore.test(t,this.checkbox.testKeep.value()).then((()=>{this.tooltipStore.create({name:"testSuccess",renderTarget:this.template.wrap,position:g.DU.TopCenter,title:"测试弹幕发送成功"})})).catch((t=>{
this.tooltipStore.create({name:"formatError",renderTarget:this.template.wrap,position:g.DU.TopCenter,title:t.message})}))}),0)}onSend(){if(this.editor)if(2===this.editorData[this.editorIndex][3])this.tooltipStore.create({name:"basError",renderTarget:this.template.wrap,position:g.DU.CenterCenter,title:"发送错误：请勿重复发送，请编辑后重新发送或新建标签页"});else{const t=this.getData(),e=1!==this.editorData[this.editorIndex][3]?this.editorData[this.editorIndex][4]:null;this.dmBasStore.send(t,e).then((t=>{this.tooltipStore.create({name:"testSuccess",renderTarget:this.template.wrap,position:g.DU.CenterCenter,title:e?"修改成功：可能会有短时间延迟":"发送成功"}),this.editorData[this.editorIndex][4]=t.dmid,this.setStatus(2)})).catch((t=>{this.tooltipStore.create({name:"formatError",renderTarget:this.template.wrap,position:g.DU.CenterCenter,title:t.message}),-2===t.code&&this.setStatus(1)}))}}switchEditorTab(t){if(this.editor){const e=this.template.editorTab.querySelectorAll("li");e[this.editorIndex].classList.remove("bas-danmaku-editor-tab-active"),this.editorIndex=parseInt(t+"",10),e[this.editorIndex].classList.add("bas-danmaku-editor-tab-active"),this.editorSetValue(this.editorData[this.editorIndex][0]),this.setStime(),this.checkbox.testKeep.value(this.editorData[this.editorIndex][2]?1:0),this.editor.clearSelection()}}addEditorTab(){if(this.editor){const t=this.template.editorTab.querySelectorAll("li"),e=t[t.length-1];this.editorData[this.editorData.length]=["",-1,0,0],e.insertAdjacentHTML("afterend",`<li data-index="${this.editorData.length-1}"><span class="bas-danmaku-editor-tab-status" data-status="0"></span><span class="bas-danmaku-editor-tab-text">${this.editorData.length}</span><span class="bas-danmaku-editor-tab-close">－</span></li>`),this.setLocalStorage(),this.scrollbarResize()}}removeEditorTab(t){if(this.editor&&this.editorData.length>1){const e=parseInt(t.dataset.index,10);this.editorData.splice(e,1),this.editorIndex>e?this.editorIndex--:this.editorIndex===e&&(0!==this.editorIndex&&this.editorIndex--,this.editorSetValue(this.editorData[this.editorIndex][0]),this.setStime(),this.editor.clearSelection());let i="";for(let t=0;t<this.editorData.length;t++)i+=`<li ${t===this.editorIndex?'class="bas-danmaku-editor-tab-active"':""} data-index="${t}"><span class="bas-danmaku-editor-tab-status" data-status="${this.editorData[t][3]}"></span><span class="bas-danmaku-editor-tab-text">${t+1}</span><span class="bas-danmaku-editor-tab-close">－</span></li>`;this.template.editorTab.innerHTML=i,this.setLocalStorage(),this.scrollbarResize()}}showPathPicker(){this.pathPicker||(this.pathPicker=new ft(this.rootStore.nodes.videoArea,this.getPathPickerOptions())),this.pathPicker.update(this.getPathPickerOptions(),!0)}hidePathPicker(){this.pathPicker&&this.pathPicker.hide()}getPathPickerOptions(){return{isPercent:!0,isPath:!1,onChange:t=>{this.template.positonText.innerHTML=`x = ${(100*t.x).toFixed(1)}% y = ${(100*t.y).toFixed(1)}%`}}}disable(){this.template.wrap.classList.add("bas-mask")}enable(){this.template.wrap.classList.remove("bas-mask")}onDispose(){super.onDispose()}onDisconnect(){var t,e,i,n;super.onDisconnect(),null==(e=null==(t=this.template)?void 0:t.colorText)||e.removeEventListener("click",this.onClickColorTextHandler),null==(n=null==(i=this.template)?void 0:i.positonText)||n.removeEventListener("click",this.onClickPositionTextHandler)}}Lt([Dt.ZP],Nt.prototype,"onClickColorTextHandler",1),Lt([Dt.ZP],Nt.prototype,"onClickPositionTextHandler",1);var Pt=i(18417),Ut=Object.defineProperty,Ot=Object.getOwnPropertyDescriptor;class Gt extends g.vq{constructor(){super(...arguments),this.templateNodes=this.viewpointTemplate(),this.activeToken=this.spx+"-active",this.isUpdateItemList=!1}install(){super.install(),this.premiereStore.state.status||(this.dc.viewpoint=(0,f.U5)((()=>this.progressStore.viewpoint),(t=>{this.auxiliary&&(t?this.templateNodes.container.parentElement||this.init(t):this.templateNodes.container.parentElement&&(this.activeIndex=null,this.templateNodes.container.parentElement.removeChild(this.templateNodes.container),this.removeEventListener()))}),{fireImmediately:!0}))}init(t){this.auxiliary.appendChild(this.templateNodes.container),this.addEventListener(),this.dp.open=(0,f.U5)((()=>this.progressStore.state.viewpointListOpened),(e=>{e?(this.templateNodes.container.style.visibility="",this.templateNodes.container.style.height="auto",this.templateNodes.container.setAttribute("fold","true"),this.updateList(t)):(this.templateNodes.container.style.visibility="hidden",this.templateNodes.container.style.height="0",this.templateNodes.container.setAttribute("fold","false"))}),{fireImmediately:!0}),this.dp.currentTime=(0,f.U5)((()=>this.progressStore.activeDivisionIndex),(t=>{var e,i;if(null!=t&&this.activeIndex!==t){const n=this.templateNodes.menu.querySelectorAll(`.${this.ppx}-viewpoint-menu-item[data-type="${g.Wp.Division}"]`);if(null!=this.activeIndex&&(null==(e=n[this.activeIndex])||e.classList.remove(this.activeToken)),null==(i=n[t])||i.classList.add(this.activeToken),this.activeIndex=t,this.scrollbar){const e=Math.max(70*-t,this.scrollbar.maxScrollY);this.scrollbar.scrollTo(0,e)}}}),{fireImmediately:!0})}viewpointTemplate(){const t=(0,B.t)(`\n            <div class="${this.ppx}-viewpoint" style="height: 0px; visibility: hidden;">\n                <div class="${this.ppx}-viewpoint-header">\n                    <span class="${this.ppx}-viewpoint-header-text">看点</span>\n                    <span class="${this.ppx}-viewpoint-header-close" data-action="close"><span class="${this.cpx}-svg-icon">${G()}</span></span>\n                </div>\n                <div class="${this.ppx}-viewpoint-body">\n                    <ul class="${this.ppx}-viewpoint-menu"></ul>\n                </div>\n            </div>\n        `);1===this.configStore.revision?t.setAttribute("data-revision",`${this.configStore.revision}`):t.removeAttribute("data-revision");const e=t.querySelector(`.${this.ppx}-viewpoint-body`),i=t.querySelector(`.${this.ppx}-viewpoint-menu`),n=t.querySelector(`.${this.ppx}-viewpoint-header-close`);return{container:t,body:e,menu:i,close:n}}updateList(t){if(this.isUpdateItemList)return;let e="",i=this.templateNodes.container.querySelector(`.${this.ppx}-viewpoint-header-text`);for(let n=0;n<t.length;n++){const r=t[n];let o=r.from;e+=`\n                <li class="${this.ppx}-viewpoint-menu-item" data-from="${o}" data-type="${r.type}" data-action="seek">\n                    <div class="${this.ppx}-viewpoint-menu-item-cover">\n                        ${r.imgUrl?`<img src="${(0,Pt.Q)(r.imgUrl.replace("http://","//"),360)}"/>`:""}\n                        ${r.team_name&&r.team_type?`<span class="${this.ppx}-viewpoint-menu-item-team-tag ${this.ppx}-team-${r.team_type}">${r.team_name}</span>`:""}\n                    </div>\n                    <div class="${this.ppx}-viewpoint-menu-item-info">\n                        <div class="${this.ppx}-viewpoint-menu-item-content">\n                            <span class="${this.ppx}-viewpoint-menu-item-active"></span>${r.content}\n                        </div>\n                        <div class="${this.ppx}-viewpoint-menu-item-time">${r.type===g.Wp.Division?`${(0,k.Z)(r.from)}-${(0,k.Z)(r.to)}`:`${(0,k.Z)(r.from)}`}</div>\n                    </div>\n                </li>\n            `,1===r.type?i.innerHTML="高能":i.innerHTML="章节"}this.templateNodes.menu.innerHTML=e,t.length>4&&(this.scrollbar||(this.scrollbar=new et.Z(this.templateNodes.body,{preventDefault:!1}))),this.isUpdateItemList=!0}addEventListener(){this.templateNodes.container.addEventListener("click",this.onClickHandler)}removeEventListener(){this.templateNodes.container.removeEventListener("click",this.onClickHandler)}onClickHandler(t){const e=t.target;switch(e.dataset.action){case"close":this.progressStore.setState({viewpointListOpened:!1}),this.track.e("aux_viewpointlist_close");break;case"seek":let t=(0,dt.N)(e.dataset.from);this.portStore.seekAutoplay(t,"Viewpointlist"),this.track.e("unfullscreen_watch_point_list_click")}}onDispose(){var t;this.isUpdateItemList=!1,null==(t=this.scrollbar)||t.destroy(),this.scrollbar=null}onDisconnect(){this.removeEventListener()}}((t,e,i,n)=>{
for(var r,o=n>1?void 0:n?Ot(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&Ut(e,i,o)})([Dt.ZP],Gt.prototype,"onClickHandler",1);class Ht extends g.Su{install(){super.install([w,tt,ct,xt,kt,Nt,Gt])}}},19982:function(t,e,i){"use strict";i.r(e),i.d(e,{BangumiHelper:function(){return kt}});i(6498);var n=i(5489),r=i(66292),o=i(85531),a=i(52419),s=i(11039),l=i(66568),A=i(86722),c=i(21064),h=i(42353),d=i(62240),u=i(95643),p=i(67102),g=i(94598),f=i(80283),m=i(18337),y=i(29608),b=i(64242),v=i(55963),E=i(12410),I=i(44699),C=i(50669),B=i(82949),w=i(92572),x=i(96429),Q=i(54878),S=i(55508),k=i(2528),D=i(26063),_=i(49929),R=i(94663),M=i(99718),T=i(12326),F=i(43199),L=i(3744),N=i(58920),P=i(25289),U=i(71427),O=i(22451),G=i(21962);const H=1e4;class V extends G.A{constructor(){super(...arguments),this.paused=!0,this.trackInfo={show:0},this.opShowed=!1,this.edShowed=!1}install(){return super.install(),this.dc.threeBody=(0,O.U5)((()=>this.danmakuStore.state.threeBody),(t=>{t?(this.bodyConfig={opTime:t.opMilliSeconds,edTime:t.edMilliSeconds,zipUrl:t.resourceUrl,avatar:t.avatar,mid:t.mid},this.loadDm({zip:t.resourceUrl}),this.init()):this.clear()}),{fireImmediately:!0}),this}init(){if(this.inited)return;this.inited=!0,this.cmdName="three-body";const t=this.dmSettingStore.state;this.config={duration:3e3,opacity:t.opacity,fontfamily:t.fontfamily,typeSpecial:t.typeSpecial},this.tpl(),this.resize(),this.dc.dmPause=(0,O.U5)((()=>this.danmakuStore.isPaused),(t=>{t?this.pause():this.play()}),{fireImmediately:!0}),this.dc.crossClear=(0,O.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.clear()})),this.dc.dmCrossSet=(0,O.EH)((()=>{const t=this.dmSettingStore.state.currentSet;if(t)for(let e in t)Object.prototype.hasOwnProperty.call(this.config,e)&&(this.config[e]=t[e],"typeSpecial"!==e||t[e]||this.clear())})),this.dc.timeUpdate=(0,O.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.mediaStore.state.paused||this.play()})),this.rootPlayer.on(n.p2.PLAYER_UNLOAD,(()=>{var t;const e=this.trackInfo;((t=this.metricStore.quitInfo).dmInfo||(t.dmInfo={})).threebody=e})),this.rootPlayer.on(n.p2.PLAYER_BEFORE_SEEKING,(()=>{this.clear()})),this.rootPlayer.on(n.p2.MEDIA_ENDED,(()=>{this.clear()}))}pause(){this.paused=!0}play(){this.paused&&this.bodyConfig&&(this.paused=!1,this.animate&&window.cancelAnimationFrame(this.animate),this.runNext())}hide(){this.clear()}draw(t){var e,i;if(t>=this.bodyConfig.opTime&&t<=this.bodyConfig.opTime+H||t>=this.bodyConfig.edTime&&t<=this.bodyConfig.edTime+H){const n=this.bodyConfig.zipUrl,r=null==(e=this.fold[n])?void 0:e.background,o=null==(i=this.fold[n])?void 0:i.text,{ring:a,text:s}=this.template;if(n&&r&&o){if(t>=this.bodyConfig.opTime&&t<=this.bodyConfig.opTime+H){this.opShowed||(this.opShowed=!0,this.trackInfo.show++);const e=Math.floor((t-this.bodyConfig.opTime)/52),i=Math.max(Math.ceil(e%190),0);null==a||a.setAttribute("src",r[i]||""),null==s||s.setAttribute("src",o[i]||""),this.renderAvatar(i),this.dmAsh(i)}if(t>=this.bodyConfig.edTime&&t<=this.bodyConfig.edTime+H){this.edShowed||(this.edShowed=!0,this.trackInfo.show++);const e=Math.floor((t-this.bodyConfig.edTime)/52),i=Math.max(Math.ceil(e%190),0);null==a||a.setAttribute("src",r[i]||""),null==s||s.setAttribute("src",o[i]||""),this.renderAvatar(i),this.dmAsh(i)}}}else this.clear()}renderAvatar(t){let e=0,i=0,n=50,r=50;t>=23&&t<=31?e=Math.min((t-23)/8+.3,1):t>=185&&t<=190?e=Math.max(1-(t-185)/5,0):t>31&&t<185&&(e=1),t>=23&&t<=26?i=Math.min(t/3+.5,1):t>=185&&t<=190?i=Math.max((t-185)/5+1,2):t>=63&&t<=65?i=Math.min(t/3+.2,1.2):(t>26&&t<62||t>65&&t<185)&&(i=1),t>=63&&t<=70&&(n=Math.floor(20*Math.random()-10)+50,r=Math.floor(20*Math.random()-10)+50),this.template.face.style.cssText+=`opacity:${e};transform:translateX(-${n}%) translateY(-${r}%) scale(${i});`}dmAsh(t){this.danmakuStore.state.ashAnimation||t<69||(t>=69&&t<=72?this.danmakuStore.setState({ashAnimation:1}):t>72&&this.danmakuStore.setState({ashAnimation:2}))}runNext(){this.animate=window.requestAnimationFrame((()=>{this.nextFrame()}))}nextFrame(){var t;const e=1e3*this.cTime;this.visible&&(null==(t=this.config)?void 0:t.typeSpecial)?this.paused||(this.draw(e),this.runNext()):this.pause()}addClassName(t,e){t&&t.classList.add(e)}removeClassName(t,e){t&&t.classList.contains(e)&&t.classList.remove(e)}formatUrl(t){let e=t.replace("http://","//");return e=e.replace("https://","//"),0!==e.indexOf("//")&&(e="//"+e),e}clear(){var t,e,i;this.inited&&(null==(t=this.template)||t.ring.setAttribute("src",""),null==(e=this.template)||e.text.setAttribute("src",""),(null==(i=this.template)?void 0:i.face)&&(this.template.face.style.cssText+="opacity:0;trnasform:scale(0);"),this.danmakuStore.setState({ashAnimation:0}))}resize(){this.inited&&super.resize()}tpl(){const t=`${this.ppx}-three-body`,e="//i0.hdslb.com/bfs/face/member/noface.jpg@88w_88h_1c_100q.webp",i=this.bodyConfig.avatar||e,n=`<div class="${t}">\n                            <img class="${t}-face" src="${this.formatUrl(i)}"></img>\n                            <img class="${t}-ring">\n                            <img class="${t}-text">\n                            <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 0 0">\n                                    <filter id="fractal" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">\n                                        <feTurbulence id="turbulence" type="fractalNoise" baseFrequency=".03 .03" numOctaves="20">\n                                        <animate attributeName="baseFrequency" from="0.1 0.1" to="0.07 0.01" dur="10s" repeatCount="indefinite" />\n                                        </feTurbulence>\n                                        <feDisplacementMap in="SourceGraphic" scale="10"></feDisplacementMap>\n                                    </filter>\n                            </svg>\n                    </div>`,r=this.nodes.cmdDanmaku;r.insertAdjacentHTML("beforeend",n),this.template={wrap:r.querySelector(`.${t}`),face:r.querySelector(`.${t}-face`),ring:r.querySelector(`.${t}-ring`),text:r.querySelector(`.${t}-text`)},this.template.face.addEventListener("error",(()=>{this.template.face.src=e}))}onDispose(){super.onDispose(),this.clear(),this.opShowed=!1,this.edShowed=!1,this.bodyConfig=null}onDisconnect(){super.onDisconnect(),this.clear(),this.inited=!1,this.bodyConfig=null}}var Y=i(28090),z=i(22805),W=i(25772),Z=i(98551),j=i(68648),q=i(81615),J=i(88913),K=i(48054),X=i(53982),$=i(77673),tt=i(78041),et=i(71030),it=i(48512),nt=i(17371),rt=i(75091),ot=i(28149),at=i(86971),st=i(40912),lt=i(11508),At=i(30406),ct=i(71859),ht=i(54734),dt=i(9848),ut=i(49273),pt=i(46740),gt=i(36471),ft=i(43122),mt=i(99550),yt=i(23529),bt=i(87563),vt=i.n(bt),Et=i(17104),It=i.n(Et),Ct=i(57277);class Bt extends n.vq{constructor(){super(...arguments),this.hasAutoSwitched=!1,this.hasVipPromptToastShowed=!1,this.countDownTimer=0,this.countDownUiTimer=0,this.trialTimer=0,this.aiTimer=0,this.acceptQuality=[],this.aiAnimationContainer=null}install(){super.install(),this.cid=this.configStore.cid,this.rootPlayer.on(n.tw.Player_TimeUpdate,(()=>{const t=this.portStore.getSupportedQualityList()||this.acceptQuality;if(this.userStore.isSuperUser&&!this.hasVipPromptToastShowed&&!this.hasAiAppearedToday(0)&&t.includes(ft.nJ.alias.AI_100)&&this.qualityStore.state.nowQuality!==ft.nJ.alias.AI_100&&this.cid===this.configStore.cid&&this.metricStore.getAbsolutePlayTime()>5){this.setLocalList(0),this.hasVipPromptToastShowed=!0;const t=`\n                    <div class="${this.ppx}-ai-prompt-toast">\n                        ${vt()}<span>大会员畅享【智能修复画质】经典重现</span> \n                    </div>                    \n                `;this.trackStore.polarReport("aiqn-vip.toast",n.Rr.show,{play_qn:this.qualityStore.state.nowQuality});const e=(0,mt.t)(t);this.toastStore.create({duration:5e3,text:e,confirmText:"立即开启",onConfirmClicked:()=>{this.trackStore.polarReport("aiqn-vip.toast",n.Rr.click,{play_qn:this.qualityStore.state.nowQuality,qn:ft.nJ.alias.AI_100}),this.qualityStore.requestQuality(ft.nJ.alias.AI_100)}})}
!this.userStore.isSuperUser&&this.userStore.isLogin&&this.qualityStore.aiSwitchQualityTrialable&&this.qualityStore.aiSwitchStatus===gt.NZ.Unused&&!this.patchAdvStore.hasValidAdv&&!this.hasAutoSwitched&&this.qualityStore.aiTrialQnResourceInfo.start<this.metricStore.getAbsolutePlayTime()&&(this.hasAutoSwitched=!0,this.qualityStore.requestQuality(ft.nJ.alias.AI_100).then((()=>{this.qualityStore.setState({aiSwitchStatus:gt.NZ.Using})})))})),this.dc.acceptQuality=(0,O.U5)((()=>{var t;return this.userStore.state.isUserPrepared&&(null==(t=this.mpdStore.body)?void 0:t.acceptQuality)}),(t=>{if(Array.isArray(t)&&t.length){const e=Object.assign([],t);(0,Ct.Z)(this.acceptQuality,e)||(this.acceptQuality=e)}}),{fireImmediately:!0}),this.dc.reqQuality=(0,O.U5)((()=>this.qualityStore.state.nowQuality),(t=>{if(t===ft.nJ.alias.AI_100&&!this.hasAiAppearedToday(1)){const e=this.uiStore.state.videoAreaWidth,i=this.uiStore.state.videoAreaHeight,r=Math.atan(i/e)*(180/Math.PI)+"deg";this.nodes.videoWrap.style.setProperty("--ai-animation-degree","-"+r);const o=`\n                    <div class = "${this.ppx}-ai-animation-container ${this.ppx}-ai-animation-container-show">\n                        <div class="${this.ppx}-ai-animation-mask ${this.ppx}-ai-animation-mask-top"></div>\n                        <div class="${this.ppx}-ai-animation-mask ${this.ppx}-ai-animation-mask-bottom"></div>\n                        <div class = "${this.ppx}-ai-animation">\n                            ${It()}\n                        </div>\n                    </div>\n                `;this.setLocalList(1),this.trackStore.polarReport("aiqn-animation.0",n.Rr.show,{play_qn:t}),this.aiAnimationContainer=(0,mt.t)(o),this.nodes.videoWrap.appendChild(this.aiAnimationContainer),this.aiTimer=window.setTimeout((()=>{(0,yt.N)(this.aiAnimationContainer),this.aiAnimationContainer.classList.remove(`${this.ppx}-ai-animation-container-show`)}),2e3)}}),{fireImmediately:!0}),this.dc.AiTrialStatus=(0,O.U5)((()=>this.qualityStore.aiSwitchStatus),(t=>{if(t===gt.NZ.Using){this.qualityStore.requestVipPermission(pt.M.ReduceCnt,gt.pS.ai);const t=this.qualityStore.aiTrialQnResourceInfo.timelength;this.trialTimer=window.setTimeout((()=>{this.qualityStore.setState({aiSwitchStatus:gt.NZ.Used})}),1e3*t),this.countDownTimer=window.setTimeout((()=>{const t=`<div class="${this.ppx}-ai-countDown-toast">\n                            <span>智能修复清晰度</span>\n                            <span class="${this.ppx}-ai-countDown-toast-num">5</span>\n                            <span>秒钟后结束体验</span>\n                        </div>`,e=(0,mt.t)(t);this.trackStore.polarReport("aiqn-free-toast.end",n.Rr.show,{play_qn:ft.nJ.alias.AI_100}),this.toastStore.create({text:e,confirmText:"成为大会员",duration:5e3,manualMode:!0,onConfirmClicked:()=>{this.trackStore.polarReport("aiqn-free-toast.pay-btn",n.Rr.click,{play_qn:ft.nJ.alias.AI_100});let t={appId:170,appSubId:"aiqnfreetoast",sourceFrom:"666.25.aiqn-free-toast.pay-btn.click",quality:ft.nJ.alias.AI_100+"",qn:ft.nJ.alias.AI_100};this.userStore.requestSuperGuide(t)}}),this.countdown(5,e)}),t-5>0?1e3*(t-5):5e3)}else if(t===gt.NZ.Used){const t=this.localStore.get().media.quality,e=ft.nJ.isSuperQuality(t)?ft.nJ.getHighestAvailableUnSuperQuality(this.acceptQuality):t;this.qualityStore.requestQuality(e)}}),{fireImmediately:!0})}hasAiAppearedToday(t){const e=this.getAiLocalList(t),i=null==e?void 0:e.find((t=>{var e;return t.mid===(null==(e=this.userStore.info)?void 0:e.mid)}));if(i){const t=new Date(i.last),e=new Date;if(t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear())return!0}return!1}setLocalList(t){var e;const i=this.getAiLocalList(t),n=null==(e=this.userStore.info)?void 0:e.mid,r=i.find((t=>t.mid===n));r?r.last=Date.now():i.push({mid:n,last:Date.now()}),1===t?this.localStore.set({aiAnimationInfo:JSON.stringify(i)}):this.localStore.set({aiPromptToastInfo:JSON.stringify(i)})}getAiLocalList(t){const e=0===t?this.localStore.get().aiPromptToastInfo:this.localStore.get().aiAnimationInfo;let i;return i=e?JSON.parse(e):[],i}countdown(t,e){if(!e)return;const i=e.querySelector(`.${this.ppx}-ai-countDown-toast-num`),n=()=>{i.innerHTML=t+"",--t>=0&&(this.countDownUiTimer=window.setTimeout(n,1e3))};n()}onDispose(){super.onDispose(),this.hasAutoSwitched=!1,this.hasVipPromptToastShowed=!1,this.aiAnimationContainer=null,window.clearTimeout(this.trialTimer),window.clearTimeout(this.countDownTimer),window.clearTimeout(this.countDownUiTimer),window.clearTimeout(this.aiTimer)}}var wt=i(30451),xt=i(62557),Qt=i(75736),St=i(1624);class kt extends n.Su{install(){super.install([r.F,o.u,xt.N,ct.j,a.x,s.K,l.q,A.C,c.J,u.D,h.b,d.M,p.K,g.o,L.t,N.s,f.Q,dt.G,m.c,y._,b.y,v.u,E.v,I.z,C.l,B.C,w.o,x.E,Q.D,S.$,k.U,D.J,_.a,M.S,R.q,T.X,F.I,P.T,U.k,V,Y.e,z.T,K.w,q.o,X.H,$.Q,tt.R,W.E,et.P,J.u,Z.R,it.t,nt.L,rt.a,ot.k,at.B,st.N,j.D,lt.e,At.e,ht.L,ut.I,Bt,wt.i,Qt.w,St.s])}}},35926:function(t,e,i){"use strict";i.r(e),i.d(e,{ClassroomHelper:function(){return st}});i(6498);var n=i(5489),r=i(66292),o=i(85531),a=i(28149),s=i(40912),l=i(48054),A=i(53982),c=i(81615),h=i(86971),d=i(68648),u=i(17371),p=i(75091),g=i(88913),f=i(98551),m=i(22805),y=i(77673),b=i(78041),v=i(48512),E=i(52419),I=i(11039),C=i(66568),B=i(86722),w=i(21064),x=i(42353),Q=i(62240),S=i(95643),k=i(67102),D=i(94598),_=i(80283),R=i(18337),M=i(29608),T=i(64242),F=i(55963),L=i(12410),N=i(44699),P=i(50669),U=i(82949),O=i(92572),G=i(62557),H=i(96429),V=i(54878),Y=i(55508),z=i(23998),W=i(8690),Z=i(26063),j=i(49273),q=i(96411),J=i(94663),K=i(99718),X=i(12326),$=i(43199),tt=i(3744),et=i(58920),it=i(71427),nt=i(25289),rt=i(11508),ot=i(30757),at=i(2528);class st extends n.Su{install(){super.install([r.F,o.u,m.T,l.w,c.o,A.H,y.Q,b.R,g.u,f.R,v.t,u.L,p.a,a.k,h.B,s.N,d.D,rt.e,E.x,I.K,C.q,B.C,w.J,S.D,x.b,Q.M,k.K,D.o,tt.t,et.s,_.Q,R.c,M._,T.y,F.u,L.v,N.z,P.l,U.C,O.o,G.N,H.E,V.D,Y.$,z.n,W.G,at.U,Z.J,j.I,q.T,ot.Q,K.S,J.q,X.X,$.I,nt.T,it.k])}}},46068:function(t,e,i){"use strict";i.r(e),i.d(e,{CommonHelper:function(){return Rt}});var n=i(50282),r=i.n(n),o=i(75572),a=i.n(o),s=i(64423),l=i.n(s),A=i(52182),c=i.n(A),h=i(73632),d=i.n(h),u=i(18907),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals
;var g=i(5489),f=i(22451),m=JSON.parse('{"v":"5.6.5","fr":30,"ip":0,"op":90,"w":24,"h":24,"nm":"loading - blue","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"圆点3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":10,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":20,"s":[100]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":40,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[16.844,14.031,0],"ix":2},"a":{"a":0,"k":[-2.25,2.781,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.774,0],[0,-0.774],[-0.774,0],[0,0.774]],"o":[[-0.774,0],[0,0.774],[0.774,0],[0,-0.774]],"v":[[0,-1.402],[-1.402,0],[0,1.402],[1.402,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.285,2.715],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"圆点2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":15,"s":[100]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":35,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":45,"s":[100]},{"t":55,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12.156,14.031,0],"ix":2},"a":{"a":0,"k":[-2.25,2.781,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.774,0],[0,-0.774],[-0.774,0],[0,0.774]],"o":[[-0.774,0],[0,0.774],[0.774,0],[0,-0.774]],"v":[[0,-1.402],[-1.402,0],[0,1.402],[1.402,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.285,2.715],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"圆点1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":10,"s":[100]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":20,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":40,"s":[100]},{"t":50,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[7.625,14.031,0],"ix":2},"a":{"a":0,"k":[-2.25,2.781,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.774,0],[0,-0.774],[-0.774,0],[0,0.774]],"o":[[-0.774,0],[0,0.774],[0.774,0],[0,-0.774]],"v":[[0,-1.402],[-1.402,0],[0,1.402],[1.402,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.285,2.715],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12,12,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[],"ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"天线左 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[7.391,1.8,0],"ix":2},"a":{"a":0,"k":[-0.298,-9.69,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":60,"s":[100,0,100]},{"t":63,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.408,0],[0,-0.408],[0,0],[-0.408,0],[0,0.408],[0,0]],"o":[[-0.408,0],[0,0],[0,0.408],[0.408,0],[0,0],[0,-0.408]],"v":[[0,-3.388],[-0.739,-2.649],[-0.739,2.649],[0,3.388],[0.739,2.649],[0.739,-2.649]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.26,-6.371],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"矩形 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":60,"op":90,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"天线右 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[12.297,5.7,0],"ix":2},"a":{"a":0,"k":[-0.376,-4.176,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":80,"s":[100,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":84,"s":[100,110,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":87,"s":[100,95,100]},{"t":90,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.408,0],[0,-0.408],[0,0],[-0.408,0],[0,0.408],[0,0]],"o":[[-0.408,0],[0,0],[0,0.408],[0.408,0],[0,0],[0,-0.408]],"v":[[0,-3.388],[-0.739,-2.649],[-0.739,2.649],[0,3.388],[0.739,2.649],[0.739,-2.649]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.26,-6.371],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"矩形 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":60,"op":90,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"形状图层 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12,13.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[98.401,107.097,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"st","c":{"a":0,"k":[0.043137256056,0.639215707779,0.584313750267,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.043137256056,0.639215707779,0.584313750267,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0]],"o":[[0,0]],"v":[[-0.191,0.233]],"c":false},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.043137256056,0.639215707779,0.584313750267,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 2","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.048,0],[0,-2.201],[0,-1.598],[-3.016,0],[-2.482,0],[0,2.092],[0,1.8],[3.055,0]],"o":[[0,0],[-3.048,0],[0,2.031],[0,2.087],[2.031,0],[3.054,0],[0,-1.875],[0,-2.15],[-1.844,0]],"v":[[-0.05,-6.758],[-6.13,-6.726],[-10.121,-2.585],[-10.137,3.078],[-6.162,6.816],[6.092,6.822],[10.27,3.073],[10.285,-2.635],[6.091,-6.718]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.043137256056,0.639215707779,0.584313750267,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 1","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":-60,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12,13.75,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[98.401,107.097,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"st","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.043137254902,0.639215686275,0.58431372549,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0]],"o":[[0,0]],"v":[[-0.191,0.233]],"c":false},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.043137254902,0.639215686275,0.58431372549,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 2","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.048,0],[0,-2.201],[0,-1.598],[-3.016,0],[-2.482,0],[0,2.092],[0,1.8],[3.055,0]],"o":[[0,0],[-3.048,0],[0,2.031],[0,2.087],[2.031,0],[3.054,0],[0,-1.875],[0,-2.15],[-1.844,0]],"v":[[-0.05,-6.758],[-6.13,-6.726],[-10.121,-2.585],[-10.137,3.078],[-6.162,6.816],[6.092,6.822],[10.27,3.073],[10.285,-2.635],[6.091,-6.718]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.547],"y":[1]},"o":{"x":[0.453],"y":[0]},"t":63,"s":[0]},{"t":80,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.043137254902,0.639215686275,0.58431372549,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 1","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":60,"op":90,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"nm":"点点点 - blue","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[12,12,0],"ix":2},"a":{"a":0,"k":[12,12,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":24,"h":24,"ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"天线左","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[7.391,1.8,0],"ix":2},"a":{"a":0,"k":[-0.298,-9.69,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.408,0],[0,-0.408],[0,0],[-0.408,0],[0,0.408],[0,0]],"o":[[-0.408,0],[0,0],[0,0.408],[0.408,0],[0,0],[0,-0.408]],"v":[[0,-3.388],[-0.739,-2.649],[-0.739,2.649],[0,3.388],[0.739,2.649],[0.739,-2.649]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.26,-6.371],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"矩形 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"天线右","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":50,"s":[100]},{"t":60,"s":[0]}],"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[12.297,5.7,0],"ix":2},"a":{"a":0,"k":[-0.376,-4.176,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.408,0],[0,-0.408],[0,0],[-0.408,0],[0,0.408],[0,0]],"o":[[-0.408,0],[0,0],[0,0.408],[0.408,0],[0,0],[0,-0.408]],"v":[[0,-3.388],[-0.739,-2.649],[-0.739,2.649],[0,3.388],[0.739,2.649],[0.739,-2.649]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.270588248968,0.270588248968,0.270588248968,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.63137254902,0.839215686275,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.26,-6.371],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"矩形 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0}],"markers":[]}'),y=i(20733),b=i.n(y)
;class v extends g.vq{constructor(){super(...arguments),this.lagSpeedShowTimer=0,this.lagSpeedUpdateTimer=0}install(){if(super.install(),this.rootPlayer.hasFeature("noBufferView"))return;const t=`${this.spx}-buff`;this.dc.playing=(0,f.EH)((()=>{this.mediaStore.state.buffering||(this.container.classList.remove(t),this.getBuffAnimation().goToAndStop(Math.floor(this.getBuffAnimation().totalFrames/2),!0),this.clearLagSpeed())})),this.dc.waiting=(0,f.EH)((()=>{this.mediaStore.state.buffering&&(this.container.classList.add(t),this.getBuffAnimation().play(),this.showLagSpeed())}),{delay:500})}createBuffAnimation(t){t&&(this.buffAnimation&&this.buffAnimation.destroy(),this.buffAnimation=b().loadAnimation({container:this.nodes.buffIcon,renderer:"svg",loop:!0,autoplay:!0,animationData:t}))}getBuffAnimation(){return this.buffAnimation||this.createBuffAnimation(m),this.buffAnimation}showLagSpeed(){this.lagSpeedShowTimer||(this.lagSpeedShowTimer=window.setTimeout((()=>{this.lagSpeedShowTimer&&this.updateLagSpeed()}),1e3))}updateLagSpeed(){let t=this.calcAverageThroughput();this.nodes.buffSpeed&&(this.nodes.buffSpeed.textContent=this.adjustSpeedUnit(t)),this.lagSpeedUpdateTimer||(this.lagSpeedUpdateTimer=window.setInterval((()=>{if(this.lagSpeedUpdateTimer){const e=this.calcAverageThroughput();e!==t&&(this.nodes.buffSpeed&&(this.nodes.buffSpeed.textContent=this.adjustSpeedUnit(e)),t=e)}}),1e3))}calcAverageThroughput(){let t=0;return this.kernelStore.baseAgent&&(t=this.kernelStore.baseAgent.lastSecondThroughput),t}adjustSpeedUnit(t){return isNaN(t)?"":t>=1024?(t/1024).toFixed(2)+"MB/s":t.toFixed(2)+"KB/s"}clearLagSpeed(){clearTimeout(this.lagSpeedShowTimer),clearInterval(this.lagSpeedUpdateTimer),this.lagSpeedShowTimer=0,this.lagSpeedUpdateTimer=0,this.nodes.buffSpeed&&(this.nodes.buffSpeed.textContent="")}onDispose(){super.onDispose(),this.clearLagSpeed()}}var E=i(46330),I=i(23529),C=i(89262),B=i(44127),w=i(2218),x=i.n(w),Q=i(51839),S=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?k(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&S(e,i,o),o};class _ extends g.vq{constructor(t){super(t),this.tag="Director",this.hasControlOpacityAdded=!1,(0,f.rC)(this)}get dblClickDisabled(){return this.rootPlayer.hasFeature("noDoubleClick")||this.configStore.isChannel(g.u5.Mini_Site)}get isPauseAction(){return!!this.rootStore.isLoaded&&((!this.mediaStore.state.ended||!this.userStore.isInteraction)&&(this.mediaStore.state.paused&&!this.mediaStore.state.seeking))}install(){super.install();const t=`${this.spx}-paused`;this.dc.playAction=(0,f.EH)((()=>{this.mediaStore.state.paused||this.container.classList.remove(t)})),this.dc.pauseAction=(0,f.EH)((()=>{if(this.isPauseAction){if(this.configStore.controlsList.has("noPlaybackClue"))return;this.container.classList.add(t)}}),{delay:100}),this.dc.mirror=(0,f.EH)((()=>{const t=`${this.spx}-mirror`;this.settingStore.state.mirror?this.container.classList.add(t):this.container.classList.remove(t)})),this.dc.aspectRatio=(0,f.EH)((()=>{const t=this.settingStore.state.aspectRatio,e=this.nodes.videoWrap;if("0:0"!==t){if(e){const i=e.clientWidth,n=e.clientHeight,r=e.getBoundingClientRect(),o=function(t){const e={width:0,height:0,wRatio:0,hRatio:0},i=t.aspectRatio.split(":"),n=+i[0],r=+i[1];return n>0&&r>0&&(t.width/n>t.height/r?(e.width=t.height/r*n,e.height=t.height):(e.width=t.width,e.height=t.width/n*r),e.wRatio=e.width/t.width,e.hRatio=e.height/t.height),e}({width:this.uiStore.state.videoAreaWidth-(r.width-i),height:this.uiStore.state.videoAreaHeight-(r.height-n),aspectRatio:t});o.wRatio>0&&o.hRatio>0?(this.nodes.videoWrap.style.setProperty("width",100*o.wRatio+"%"),this.nodes.videoWrap.style.setProperty("height",100*o.hRatio+"%"),this.mediaStore.video.style.setProperty("object-fit","fill"),this.container.setAttribute("data-aspect-ratio",t)):this.resetAspectRatio()}}else this.resetAspectRatio()})),this.dc.lightOff=(0,f.EH)((()=>{const t=`${this.spx}-light-off`;this.settingStore.state.lightOff?this.rootPlayer.majorNode.classList.add(t):this.rootPlayer.majorNode.classList.remove(t)})),this.dc.blackGap=(0,f.EH)((()=>{const t=`${this.spx}-black-gap`;this.uiStore.hasBlackGap?this.container.classList.add(t):this.container.classList.remove(t)})),this.dc.isFullView=(0,f.EH)((()=>{const t=this.nodes.sendingArea,e=this.nodes.sendingBar;if(this.configStore.embeddedEnv||this.configStore.isChannel(g.u5.PC_APP)){const t=this.configStore.mntAuxSender;t&&e.parentElement!==t&&t.appendChild(e)}else if(this.premiereStore.state.status)if(this.uiStore.state.sideScreen===g.dY.Full){const t=this.configStore.mntAuxSender;t&&e.parentElement!==t&&t.appendChild(e)}else e.parentElement!==t&&t.appendChild(e);else if(this.uiStore.isFullView){const t=this.configStore.mntAuxSender;t&&e.parentElement!==t&&t.appendChild(e)}else e.parentElement!==t&&t.appendChild(e)})),this.dc.isTinyView=(0,f.EH)((()=>{const t=this.nodes.stateWrap.querySelector(`.${this.ppx}-state-play`),e=this.nodes.controlWrap.querySelector(`.${this.ppx}-control-mask`);this.configStore.businessEmbedMode?(0,E.o)(t,e,this.nodes.controlEntity):this.uiStore.isTinyView&&!this.configStore.isPcApp?(0,I.N)(t,e,this.nodes.controlEntity):(0,E.o)(t,e,this.nodes.controlEntity)})),this.dc.screenChanged=(0,f.EH)((()=>{const t=this.uiStore.screenKind,e=this.portStore.getScreenKind(!0);this.container.setAttribute("data-screen",g.dY[e].toLowerCase());const i=[this.nodes.topWrap,this.nodes.stateWrap,this.nodes.toastWrap,this.nodes.sendingArea,this.nodes.controlWrap];if(t===g.dY.Mini?(this.nodes.container.style.right=this.uiStore.state.miniScreenRight+"px",this.nodes.container.style.bottom=this.uiStore.state.miniScreenBottom+"px",(0,I.N)(...i)):(this.nodes.container.style.right="",this.nodes.container.style.bottom="",(0,E.o)(...i)),this.configStore.embeddedEnv){const t=this.mediaStore.state.ended,e=this.uiStore.isTinyView;t||e?((0,I.N)(this.nodes.controlWrap),(0,I.N)(this.nodes.topWrap)):((0,E.o)(this.nodes.controlWrap),(0,E.o)(this.nodes.topWrap))}this.configStore.businessEmbedMode&&((0,E.o)(this.nodes.controlWrap),(0,I.N)(this.nodes.topWrap))})),this.dc.ctrlHidden=(0,f.EH)((()=>{this.container.setAttribute("data-ctrl-hidden",this.ctrlStore.ctrlHidden.toString())})),this.dc.mouseHidden=(0,f.EH)((()=>{const t=`${this.spx}-no-cursor`;this.ctrlStore.mouseHidden?this.container.classList.add(t):this.container.classList.remove(t)})),this.dc.restrict=(0,f.EH)((()=>{const t=`${this.spx}-regulated-intervals`;this.danmakuStore.regulatedIntervals?(this.log.i("Hit Restrict Intervals: Hidden Danmaku"),this.container.classList.add(t)):this.container.classList.remove(t)})),this.configStore.isChannel(g.u5.Gamecenter)&&(this.dc.ctrlBottomRightHidden=(0,f.EH)((()=>{if(!this.ctrlStore.ctrlHidden){this.hasControlOpacityAdded=!1,window.clearTimeout(this.controlOpacityTimer),this.controlOpacityTimer=null;const t=this.nodes.controlWrap.querySelector(`.${this.ppx}-control-bottom-right`);t&&t.classList.remove("ctrl-opacity")}}))),this.addEvents()}timeUpdateHandler(){this.hasControlOpacityAdded||this.controlOpacityTimer||!this.ctrlStore.ctrlHidden||(this.controlOpacityTimer=window.setTimeout((()=>{const t=this.nodes.controlWrap.querySelector(`.${this.ppx}-control-bottom-right`);t&&(t.classList.add("ctrl-opacity"),this.hasControlOpacityAdded=!0)}),5e3))}onPauseHandler(){const t=this.nodes.controlWrap.querySelector(`.${this.ppx}-control-bottom-right`);t&&t.classList.remove("ctrl-opacity"),this.hasControlOpacityAdded=!1,window.clearTimeout(this.controlOpacityTimer),this.controlOpacityTimer=null}addEvents(){this.configStore.isChannel(g.u5.Gamecenter)||(this.configStore.onlyTouchMode?this.addHammerListeners():(this.nodes.videoPerch&&(this.nodes.videoPerch.addEventListener("click",this.onClick),this.nodes.videoPerch.addEventListener("dblclick",this.onDblClick)),this.rootPlayer.on(g.tw.Player_Perch_Click,this.onPerchClick,1))),this.configStore.isChannel(g.u5.Gamecenter)&&(this.rootPlayer.on(g.tw.Player_TimeUpdate,this.timeUpdateHandler),this.rootPlayer.on(g.tw.Player_Pause,this.onPauseHandler))}removeEvents(){
this.configStore.onlyTouchMode||(this.nodes.videoPerch&&(this.nodes.videoPerch.removeEventListener("click",this.onClick),this.nodes.videoPerch.removeEventListener("dblclick",this.onDblClick)),this.rootPlayer.off(g.tw.Player_Perch_Click,this.onPerchClick,1)),this.configStore.isChannel(g.u5.Gamecenter)&&(this.rootPlayer.off(g.tw.Player_TimeUpdate,this.timeUpdateHandler),this.rootPlayer.off(g.tw.Player_Pause,this.onPauseHandler))}onClick(){if(this.configStore.embeddedEnv===g.vt.Other){const t=this.portStore.getRedirectTime();return(0,Q.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),void this.portStore.pause()}clearTimeout(this.clickTimer),this.dblClickDisabled?this.rootPlayer.emit(g.tw.Player_Perch_Click,new CustomEvent(g.tw.Player_Perch_Click,{cancelable:!0})):this.clickTimer=window.setTimeout((()=>{this.rootPlayer.emit(g.tw.Player_Perch_Click,new CustomEvent(g.tw.Player_Perch_Click,{cancelable:!0}))}),200)}onDblClick(){if(clearTimeout(this.clickTimer),this.dblClickDisabled)return;const t=Date.now()-this.clickTimestamp;t<2e3&&this.log.i("[ClickDiff]",t),t<=500&&this.rootPlayer.emit(g.tw.Player_Perch_Click,new CustomEvent(g.tw.Player_Perch_Click,{cancelable:!0}));const e=this.portStore.getScreenKind()!==g.dY.Full?g.dY.Full:null;this.portStore.reqStatue(e),this.track.e(g.wM.E_DoubleTap_Fullscreen,{val:+(e===g.dY.Full)})}onPerchClick(t){this.clickTimestamp=Date.now(),t.defaultPrevented||this.mediaStore.video.controls||(this.panoramaStore.state.gesture?this.panoramaStore.setState({gesture:!1}):(this.portStore.isPaused()?(this.portStore.play({initiator:g.hH.ManualAction}).catch(B.Z),this.track.e(g.wM.E_Play_Screen)):(this.portStore.pause({initiator:g.hH.ManualAction}),this.track.e(g.wM.E_Pause_Screen)),this.trackExtra.p("player.play_pause.click",g.p0.Click,{action:3,switch:this.portStore.isPaused()?1:0})))}addHammerListeners(){const t=new(x().Manager)(this.nodes.videoPerch);t.add(new(x().Tap)({event:"doubletap",taps:2,interval:500,posThreshold:20,threshold:5})),t.add(new(x().Tap)({event:"singletap"})),t.get("doubletap").recognizeWith("singletap"),t.add(new(x().Pan)({direction:x().DIRECTION_ALL,threshold:20})),t.add(new(x().Pan)({event:"2ppan",direction:x().DIRECTION_HORIZONTAL,pointers:2})),t.on("singletap",(t=>{this.ctrlStore.isCtrlHidden()?(this.configStore.setState({ctrl:g.AQ.Show}),this.track.e("hammer_gesture",{kind:"singletap",func:"ctrlVisible"})):(this.configStore.setState({ctrl:g.AQ.Hide}),this.track.e("hammer_gesture",{kind:"singletap",func:"ctrlHidden"}))})),t.on("doubletap",(t=>{this.mediaStore.video.controls||(this.portStore.isPaused()?(this.portStore.play({initiator:"Hammer Doubletap"}).catch(B.Z),this.track.e("hammer_gesture",{kind:"doubletap",func:"mediaPlay"})):(this.portStore.pause({initiator:"Hammer Doubletap"}),this.track.e("hammer_gesture",{kind:"doubletap",func:"mediaPause"})))}));let e="";t.on("panstart",(t=>{t.pointers&&t.pointers[0]&&this.rootPlayer.emit(g.p2.PLAYER_TOUCH_GESTURE,{kind:g.iX.PanStart,data:{pageX:t.pointers[0].pageX,pageY:t.pointers[0].pageY}})})),t.on("panright panleft",(t=>{if(t.pointers&&t.pointers[0]){if(e){if("panright"!==e&&"panleft"!==e)return}else e=t.type;this.rootPlayer.emit(g.p2.PLAYER_TOUCH_GESTURE,{kind:g.iX.Paning,data:{direction:"horizontal",pageX:t.pointers[0].pageX,pageY:t.pointers[0].pageY,deltaX:t.deltaX,deltaY:t.deltaY}})}})),t.on("panup pandown",(t=>{if(t.pointers&&t.pointers[0]){if(e){if("panup"!==e&&"pandown"!==e)return}else e=t.type;this.rootPlayer.emit(g.p2.PLAYER_TOUCH_GESTURE,{kind:g.iX.Paning,data:{direction:"vertical",pageX:t.pointers[0].pageX,pageY:t.pointers[0].pageY,deltaY:t.deltaY}})}})),t.on("panend pancancel",(t=>{if(!t.pointers||!t.pointers[0])return;let i=null;"panright"===e||"panleft"===e?i="horizontal":"panup"!==e&&"pandown"!==e||(i="vertical"),this.rootPlayer.emit(g.p2.PLAYER_TOUCH_GESTURE,{kind:g.iX.PanEnd,data:{direction:i,pageX:t.pointers[0].pageX,pageY:t.pointers[0].pageY,deltaX:t.deltaX,deltaY:t.deltaY}}),e=""})),t.get("pan").requireFailure("2ppan");let i=!0;const n=[.5,.75,1,1.25,1.5,2];t.on("2ppanright 2ppanleft",(t=>{if(i){i=!1;const e=n.indexOf(this.settingStore.state.playbackRate)+("2ppanright"===t.type?1:-1);e>=0&&e<n.length&&(this.settingStore.setPlaybackRate(n[e]),this.track.e("hammer_gesture",{kind:"2ppan",func:"playbackrateAdjust"}))}})),t.on("2ppanend 2ppancancel",(t=>{i=!0})),t.get("pan").recognizeWith("2ppan"),t.get("pan").requireFailure("2ppan"),this.hammerManager=t}removeHammerListeners(){this.hammerManager&&this.hammerManager.destroy()}resetAspectRatio(){this.nodes.videoWrap.style.removeProperty("width"),this.nodes.videoWrap.style.removeProperty("height"),this.mediaStore.video.style.removeProperty("object-fit"),this.container.removeAttribute("data-aspect-ratio")}onDisconnect(){super.onDisconnect(),clearTimeout(this.clickTimer),clearTimeout(this.controlOpacityTimer),this.removeHammerListeners()}}D([f.Fl],_.prototype,"isPauseAction",1),D([C.ZP],_.prototype,"timeUpdateHandler",1),D([C.ZP],_.prototype,"onPauseHandler",1),D([C.ZP],_.prototype,"onClick",1),D([C.ZP],_.prototype,"onDblClick",1),D([C.ZP],_.prototype,"onPerchClick",1);var R=i(43122),M=i(92452),T=i(54981);class F extends M.eV{constructor(){super(...arguments),this.tag="HttpStatsDolby"}r(t,e){return this.httpKind=e.httpKind,this.request({url:this.getUrl(),method:"POST",data:t,withCredentials:!0})}getUrl(){return{[T.HR.Ugc]:"//api.bilibili.com/x/click-interface/click/dolby",[T.HR.Pgc]:"//api.bilibili.com/pgc/report/web/dolby"}[this.httpKind]}}class L{constructor(t){this.sent=!1,this.reporter=t,this.rootPlayer=t.rootPlayer;const e=(0,f.U5)((()=>t.mediaStore.state.firstPlay&&t.trackStore.state.pxStart),(t=>t&&this.firstPlayHandler()),{fireImmediately:!0});this.rootPlayer.on(g.tw.Player_Disconnect,(()=>e())).on(g.tw.Player_Dispose,(()=>{this.sent=!1}))}firstPlayHandler(){if(this.sent)return;const t=this.reporter.qualityStore;(t.realQ===R.nJ.alias.UHD_DVision||t.state.nowAudio===g.IL.Dolby)&&(this.send(),this.sent=!0)}send(){const t=this.reporter.configStore,e={aid:t.aid,cid:t.cid,scene:"play"};t.episodeId&&(e.ep_id=t.episodeId),t.seasonId&&(e.season_id=t.seasonId),new F(this.rootPlayer,{persistent:!0,noStore:!0}).r(e,{httpKind:this.getHttpConfig().httpKind})}getHttpConfig(){const t=this.reporter.uiStore,e={httpKind:g.HR.Ugc,type:"ugc"};switch(t.kind){case g.HR.Pgc:e.httpKind=g.HR.Pgc,e.type="ogv";break;case g.HR.Ugc:default:e.httpKind=g.HR.Ugc,e.type="ugc"}return e}}var N=i(1291),P=i(54769);class U{constructor(t){this.reporter=t,this.rootPlayer=t.rootPlayer;const e=(0,f.gx)((()=>t.trackStore.state.pxStart),(()=>{const t=window.setTimeout((()=>this.start()),5e3);this.rootPlayer.on(g.tw.Player_Disconnect,(()=>clearTimeout(t)))}));this.rootPlayer.on(g.tw.Player_Disconnect,(()=>e()))}start(){(0,N.co)(g.Om,P.g.renderer),this.reportRefreshRate()}getBrowserCodecInfo(){const t=document.createElement("video"),e={};return['video/mp4; codecs="av01"','video/mp4; codecs="av01.0.10M.08"','video/mp4; codecs="av01.0.10M.10"','video/mp4; codecs="av01.0.10M.12"','video/mp4; codecs="av01.1.31M.08"','video/mp4; codecs="av01.2.31H.12"','video/mp4; codecs="hev1.1.6.L93.B0"','video/mp4; codecs="vp09.00.50.08"'].forEach(((i,n)=>{try{const r=t.canPlayType(i),o=window.MediaSource&&window.MediaSource.isTypeSupported(i);e[n]=`${r};${o}`}catch(t){}})),e}reportRefreshRate(){const t=window.requestIdleCallback,e=()=>{"function"==typeof window.requestAnimationFrame&&requestAnimationFrame((t=>{requestAnimationFrame((e=>{var i,n;const r=Math.round(1e3/(e-t));r>=15&&this.reporter.track&&this.reporter.track.o(g.wM.O_Device_Info,{freshRate:r,codecInfo:this.getBrowserCodecInfo(),gpuRenderer:P.g.renderer,coreNum:navigator.hardwareConcurrency||0,hdr:!!(null==(i=null==window?void 0:window.matchMedia("(dynamic-range:high)"))?void 0:i.matches),p3:!!(null==(n=null==window?void 0:window.matchMedia("(color-gamut:p3)"))?void 0:n.matches)})}))}))};"function"==typeof t?t((()=>e()),{timeout:5e3}):setTimeout(e,5e3)}}var O=(t=>(t[t.OTHER=0]="OTHER",t[t.PAGEVIEW=1]="PAGEVIEW",t[t.CLICK=2]="CLICK",t[t.EXPOSURE=3]="EXPOSURE",t[t.SYSTEM=4]="SYSTEM",t[t.TRACKER=5]="TRACKER",t[t.CUSTOM=7]="CUSTOM",
t[t.COMPATIBLE=8]="COMPATIBLE",t[t.PLAYER=9]="PLAYER",t))(O||{}),G=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WIFI=1]="WIFI",t[t.CELLULAR=2]="CELLULAR",t[t.OFFLINE=3]="OFFLINE",t[t.OTHERNET=4]="OTHERNET",t[t.ETHERNET=5]="ETHERNET",t))(G||{});class H extends M.eV{constructor(){super(...arguments),this.tag="HttpTrackMisaka",this.url="//api.bilibili.com/x/web-frontend/data/collector"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,responseType:"json",data:JSON.stringify(t),method:"POST",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class V{constructor(t){this.isTrackEnabled=!1,this.trackRate=1,this.feedbackUploadLimit=0,this.currentDisplayId="",this.reporter=t,this.rootPlayer=t.rootPlayer,this.isTrackEnabled=Math.random()<this.trackRate,this.feedbackUploadLimit=0,this.currentDisplayId=this.rootPlayer.configStore.session}send(t){const e=()=>{const e={code:"",msg:""};try{const i=JSON.parse(t.value);return Object.assign(e,i)}catch(t){return e}};switch(t.name){case g.wM.O_Video_Error:this.sendMisaka({code:g.bp.VIDEO_ERROR.toString(),msg:t.value},t.timeStamp);break;case g.wM.O_Web_VideoLoad_Fail:{const t=e();this.sendMisaka({code:t.code,msg:t.msg});break}case g.wM.O_Player_Feedback_Report:{const t=e();this.checkUploadLimit(this.currentDisplayId)&&this.sendMisaka({code:t.tag_id,msg:t.msg});break}}}checkUploadLimit(t){try{return this.rootPlayer.configStore.session!==t?(this.currentDisplayId=this.rootPlayer.configStore.session,this.feedbackUploadLimit=1,!0):(this.feedbackUploadLimit++,this.feedbackUploadLimit<=3)}catch(t){return!0}}sendMisaka(t,e){const i=this.reporter.trackStore,n=this.reporter.configStore;if(!this.isTrackEnabled)return;if(/spider/i.test(navigator.userAgent))return;const r=this.reporter.getMediaInfo(),o=String(this.reporter.userStore.info.mid||""),a=(t,e)=>{const i=e?parseInt(t,10):parseFloat(t);return isNaN(i)?0:i},s={eventId:"web-player-monitor",ctime:e||Date.now(),mid:o,eventCategory:O.TRACKER,appInfo:{appId:21,platform:5,buvid:n.session},runtimeInfo:{network:G.ETHERNET,version:this.reporter.version},extendedFields:{business:"player",rate:this.trackRate+"",referer:document.referrer,ua:navigator.userAgent,app_key:"web_main",cid:n.cid+"",season_type:n.seasonType+"",played_time:this.reporter.portStore.getCurrentTime()+"",abgroup:"0",playback_rate:a(this.reporter.settingStore.getPlaybackRate()||1,!1)+"",first_video_time:"",first_audio_time:"",video_width:a(r.width,!0)+"",video_height:a(r.height,!0)+"",acodec:r.audioCodec||"",vcodec:r.videoCodec||"",video_fps:r.fps+"",audio_bitrate:r.audioDataRate?Math.round(r.audioDataRate)+"":"0",video_bitrate:r.videoDataRate?Math.round(r.videoDataRate)+"":"0",video_duration:r.videoDuration?a(r.videoDuration,!0)+"":"0",audio_duration:r.audioDuration?a(r.audioDuration,!0)+"":"0",video_drop_rate:r.drop?r.drop+"":"0",video_cur_qn:this.reporter.qualityStore.getQuality().nowQ+"",video_url:r.video_url||"",audio_url:r.audio_url||"",audio_host:r.audio_host||"",video_host:r.video_host||"",http_url_retry_count:this.reporter.errorStore.getRetryCount()+"",video_loader_type:r.loaderType,video_profile:r.profile,audio_sampling:r.audioSampling,connection_speed:r.speed?Math.round(r.speed)+"":"0",player_type:"h5",core_type:i.getSourceType()+"",video_loadlag_count:this.reporter.stuckInfo.count+"",video_loadlag_end_time:this.reporter.stuckInfo.duration+"",error_code:t&&t.code?t.code:"",error_msg:t&&t.msg?t.msg:"",final_error_code:t&&t.final_code?t.final_code:"",final_error_msg:t&&t.final_msg?t.final_msg:""}};new H(this.rootPlayer,{noStore:!0,persistent:!0}).r([s]).catch(B.Z)}}i(47019);var Y=i(22056),z=i.n(Y);class W{static cloneDeep(t,e){if(null===t||"object"!=typeof t)return t;let i;if(W.isTypedArray(t)&&"function"==typeof t.slice)return i=t.slice(),i;i=Array.isArray(t)?[]:{};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];i[n]=e&&"object"==typeof r?W.cloneDeep(r,e):r}return i}static isTypedArray(t){return!!(t&&t.buffer instanceof ArrayBuffer&&t.BYTES_PER_ELEMENT)}static downloadFile(t,e){let i=document.createElement("a"),n=e.slice&&"data:"===e.slice(0,5),r=e.lastIndexOf&&e.lastIndexOf(".")>-1;i.download=t,i.style.display="none",i.href=r||n?e:URL.createObjectURL(new Blob([e])),document.body.appendChild(i),i.click(),document.body.removeChild(i)}static concatArrayBuffer(t,e){if(!t)return e;if(!e)return t;let i=new Uint8Array(t.byteLength+e.byteLength);return i.set(new Uint8Array(t),0),i.set(new Uint8Array(e),t.byteLength),i.buffer}static concatUint8Array(t,e){if(!t)return e;if(!e)return t;let i=new Uint8Array(t.byteLength+e.byteLength);return i.set(t,0),i.set(e,t.byteLength),i}static encodeUTF8(t){const e=encodeURIComponent(t),i=[];for(let t=0;t<e.length;t++){const n=e.charAt(t);if("%"===n){const n=e.charAt(t+1)+e.charAt(t+2),r=parseInt(n,16);i.push(r),t+=2}else i.push(n.charCodeAt(0))}return new Uint8Array(i)}static decodeUTF8(t){let e="";for(let i=0;i<t.byteLength;i++)e+="%"+t[i].toString(16);return decodeURIComponent(e)}}var Z=W;const j=class{static sizeCheckSum(t){let e=0;return e=j.crc8Table[e^255&t],e=j.crc8Table[e^t>>8&255],e=j.crc8Table[e^t>>16&255],e=j.crc8Table[e^t>>24&255],255&e}};let q=j;q.crc8Table=new Uint8Array([234,212,150,168,18,44,110,80,127,65,3,61,135,185,251,197,165,155,217,231,93,99,33,31,48,14,76,114,200,246,180,138,116,74,8,54,140,178,240,206,225,223,157,163,25,39,101,91,59,5,71,121,195,253,191,129,174,144,210,236,86,104,42,20,179,141,207,241,75,117,55,9,38,24,90,100,222,224,162,156,252,194,128,190,4,58,120,70,105,87,21,43,145,175,237,211,45,19,81,111,213,235,169,151,184,134,196,250,64,126,60,2,98,92,30,32,154,164,230,216,247,201,139,181,15,49,115,77,88,102,36,26,160,158,220,226,205,243,177,143,53,11,73,119,23,41,107,85,239,209,147,173,130,188,254,192,122,68,6,56,198,248,186,132,62,0,66,124,83,109,47,17,171,149,215,233,137,183,245,203,113,79,13,51,28,34,96,94,228,218,152,166,1,63,125,67,249,199,133,187,148,170,232,214,108,82,16,46,78,112,50,12,182,136,202,244,219,229,167,153,35,29,95,97,159,161,227,221,103,89,27,37,10,52,118,72,242,204,142,176,208,238,172,146,40,22,84,106,69,123,57,7,189,131,193,255]);var J=q,K=i(43571);var X=class{constructor(t,e,i){t&&e&&(this.eventId=t,this.logId=e,this.init(i))}init(t){t&&(this.data=this.generateRecord(t))}generatePB(t){return K.infoc.AppEvent.encode(t).finish()}generateRecord(t){let e=new Uint8Array;e=Z.concatUint8Array(e,Z.encodeUTF8("RDIO"));const i=this.generatePB(t),n=this.generateMeta("eventId",this.eventId,!0),r=this.generateMeta("logId",this.logId),o=n.byteLength+r.byteLength+i.byteLength,a=new ArrayBuffer(4),s=(128<<24|o)>>>0;new DataView(a).setUint32(0,s);const l=new Uint8Array(a);e=Z.concatUint8Array(e,l);const A=new Uint8Array([J.sizeCheckSum(s)]);return e=Z.concatUint8Array(e,A),e=Z.concatUint8Array(e,n),e=Z.concatUint8Array(e,r),e=Z.concatUint8Array(e,i),e=z().gzip(e),e}generateMeta(t,e,i=!1){let n=new Uint8Array;if(!t)return n;const r=Z.encodeUTF8(t);if(r.byteLength<1||r.byteLength>256)return n;const o=new Uint8Array([r.byteLength]);n=Z.concatUint8Array(n,o),n=Z.concatUint8Array(n,r);const a=Z.encodeUTF8(e),s=new ArrayBuffer(4),l=((i?128:0)<<24|a.byteLength)>>>0;new DataView(s).setUint32(0,l);const A=new Uint8Array(s);return n=Z.concatUint8Array(n,A),n=Z.concatUint8Array(n,a),n}},$=i(70811);var tt=class{constructor(){}destroy(){}report(t,e){if(t&&t.length>0){let i=new Uint8Array;for(let e=0;e<t.length;e++)if(t[e]&&t[e].eventId&&t[e].logId){const n=new X(t[e].eventId,t[e].logId,t[e]);i=Z.concatUint8Array(i,n.data)}i.byteLength&&this.postRecord(i,t.length,e)}}downloadRecord(t){if(t&&t.length>0){let e=new Uint8Array;for(let i=0;i<t.length;i++)if(t[i]&&t[i].eventId&&t[i].logId){const n=new X(t[i].eventId,t[i].logId,t[i]);e=Z.concatUint8Array(e,n.data)}e.byteLength&&Z.downloadFile("my_infoc.pb.io",e)}}postRecord(t,e=1,i){if(!t||!t.byteLength)return;let n="//data.bilibili.com/log/pbweb/";if(n+=e>1?"unrealtime?web":"realtime?web",i&&window.navigator&&window.navigator.sendBeacon){
window.navigator.sendBeacon(n,t)||this.xhrPostRecord(n,t)}else this.xhrPostRecord(n,t)}xhrPostRecord(t,e){(0,$.Z)({url:t,method:"post",withCredentials:!0,data:e}).then((t=>{})).catch((t=>{}))}};var et=class{constructor(){this.init()}init(){this.main=new tt}destroy(){}report(t,e){this.main&&t&&t.length>0&&this.main.report(t,e)}},it=i(20094),nt=i(51102);class rt{constructor(t){this.isMonitorEnabled=!1,this.monitorForced=!1,this.abnormalEnableMonitorForced=!1,this.reporter=t,this.rootPlayer=t.rootPlayer,this.trackSDK=new et,this.isMonitorEnabled=Math.random()<.03,this.monitorForced="1"===it.get("qualityMonitorForce")}send(t){var e;if(!this.isMonitorEnabled&&this.abnormalEnableMonitorForced)switch(t.name){case g.wM.O_End_Load:case g.wM.O_Video_Error:case g.wM.O_Web_VideoLoad_Fail:case g.wM.O_Load_Dash_Warning:case g.wM.O_Wasm_Player:this.monitorForced=!0}if(this.monitorForced||this.isMonitorEnabled)switch(t.name){case"start_time":case"initial_time":case"viewTime":case"time_error":case g.wM.O_Loaded_Time:case g.wM.O_CDN_Time:case g.wM.O_Show_Time:case g.wM.O_Enter:case g.wM.O_Quit:case g.wM.O_Start_Load:case g.wM.O_End_Load:case g.wM.O_Seek_End_Load:case g.wM.O_Video_Error:case g.wM.O_Web_VideoLoad_Fail:case g.wM.O_Load_Dash_Warning:this.sendMonitor(t.name,t.value,t.sendBeacon,t.timeStamp,t.readyState);break;case g.wM.O_Wasm_Player:this.sendMonitor(t.name,null==(e=t.rawData)?void 0:e.code,t.sendBeacon,t.timeStamp,t.readyState)}}judgeNaN(t,e){const i=e?parseInt(t,10):parseFloat(t);return isNaN(i)?0:i}sendMonitor(t,e,i,n,r){if(!t||!this.trackSDK)return;const o=this.reporter.trackStore,a=this.reporter.configStore,s=Math.floor(this.reporter.portStore.getCurrentTime()),l=Math.max(this.reporter.metricStore.getRelativePlayTime(),0),A=Math.round(1e3*this.reporter.mediaStore.state.bufferedTime),c=this.reporter.getMediaInfo(),h=!(!this.reporter.userStore.info.dmMask||!nt.X.chrome.alike||nt.X.edge.alike),d=this.reporter.portStore.getPlayUrl(),u=[],p=new K.infoc.AppEvent,f=new K.infoc.AppInfo,m=new K.infoc.AppRuntimeInfo;f.appId=21,f.platform=6,f.buvid=a.session,f.chid=navigator.userAgent,f.brand=encodeURI(document.referrer),f.uid=+this.reporter.userStore.info.mid||0,p.appInfo=f,m.network=K.infoc.RuntimeNetWork.ETHERNET,m.version=this.reporter.version,p.runtimeInfo=m,p.mid=String(this.reporter.userStore.info.mid||""),p.ctime=n||+new Date,p.logId=g.w9.QUALITY_MONITOR,p.eventCategory=K.infoc.EventCategory.TRACKER;const y={};p.extendedFields=y,y.cid=String(a.cid||0),y.mode="1",y.time_of_video=s?String(this.judgeNaN(s,!0)):"0",y.real_time=l?String(this.judgeNaN(l,!0)):"0",y.sub_type=a.seasonType?String(this.judgeNaN(a.seasonType,!0)):"0",y.avid=a.aid?String(a.aid):"0",y.danmaku=this.reporter.sendStore.dmVisible?"1":"0",y.player_mode=this.reporter.statueMapping[this.reporter.portStore.getScreenKind()]?String(this.judgeNaN(this.reporter.statueMapping[this.reporter.portStore.getScreenKind()],!0)):"0",y.player_session_id=a.session?String(a.session):"0",y.is_autoplay=this.reporter.settingStore.getAutoplay()?"1":"0",y.ready_state=r?String(this.judgeNaN(r,!0)):"0",y.buffer_duration=A?String(this.judgeNaN(A,!0)):"0",y.danmaku_dmask=h?"1":"0",y.iformat=o.getSourceType()?String(this.judgeNaN(o.getSourceType(),!0)).slice(-1):"0",y.playback_rate=this.judgeNaN(this.reporter.settingStore.getPlaybackRate(),!1)+"",y.buffering_count=this.judgeNaN(this.reporter.stuckInfo.count,!0)+"",y.first_audio_time="",y.first_video_time="",y.width=this.judgeNaN(c.width,!0)+"",y.height=this.judgeNaN(c.height,!0)+"",y.acodec=c.audioCodec||"",y.vcodec=c.videoCodec||"",y.audio_bitrate=c.audioDataRate?Math.round(c.audioDataRate)+"":"0",y.video_bitrate=c.videoDataRate?Math.round(c.videoDataRate)+"":"0",y.video_duration=c.videoDuration?Math.round(c.videoDuration)+"":"0",y.audio_duration=c.audioDuration?Math.round(c.audioDuration)+"":"0",y.vdrop_rate=c.drop?this.judgeNaN(c.drop,!1)+"":"0",y.dash_cur_qn=String(this.judgeNaN(this.reporter.qualityStore.getQuality().nowQ||0,!0)),y.audio_url=c.audio_url||"",y.video_url=c.video_url||"",y.video_net_speed=c.speed?Math.round(c.speed)+"":"0",y.video_host=c.video_host||"",y.audio_host=c.audio_host||"",y.player_status=String(this.judgeNaN(this.reporter.playerStatus,!0)),y.url_info=d?String(this.judgeNaN(d,!0)):"0",y.force_report=this.monitorForced?"1":"0",this.monitorHandleEvent(t,p,e,n),p.eventId&&(u.push(p),this.trackSDK.report(u,i))}monitorHandleEvent(t,e,i,n){switch(t){case"viewTime":t="view_time";break;case g.wM.O_CDN_Time:t="cdn_time";break;case g.wM.O_Show_Time:t="show_time"}switch(t){case g.wM.O_Enter:case"time_error":case g.wM.O_Start_Load:e.eventId=`main.web_player.${t}.tracker`;break;case"start_time":case"initial_time":case"view_time":case g.wM.O_Loaded_Time:case g.wM.O_Show_Time:case g.wM.O_CDN_Time:case g.wM.O_End_Load:case g.wM.O_Seek_End_Load:e.eventId=`main.web_player.${t}.tracker`,e.extendedFields.time_of_event=String(this.judgeNaN(this.reporter.mediaStore.state.bufferedTime||0,!0));break;case g.wM.O_Quit:e.eventId="main.web_player.quit.tracker";let r=0,o=this.reporter.mediaStore.state.bufferStartTime;o&&(r=(n=n||+new Date)-o),e.extendedFields.load_lag_time=r?String(this.judgeNaN(r,!0)):"0";break;case g.wM.O_Video_Error:if(e.eventId="main.web_player.video_error.tracker",i){i.split(",",3).forEach((t=>{if(t){const i=t.split(":");"from"===i[0]?e.extendedFields.error_from=i[1]?this.judgeNaN(i[1],!0)+"":"0":"code"===i[0]&&(e.extendedFields.error=i[1]?this.judgeNaN(i[1],!0)+"":"0")}}))}break;case g.wM.O_Web_VideoLoad_Fail:if(e.eventId="main.web_player.web_videoload_fail.tracker",i){i.split(",",3).forEach((t=>{if(t){const i=t.split(":");"code"===i[0]&&(e.extendedFields.error=i[1]?this.judgeNaN(i[1],!0)+"":"0")}}))}break;case g.wM.O_Load_Dash_Warning:if(e.eventId="main.web_player.load_dash_warning.tracker",i){const t=i.split(",",3);let n=parseInt(t[0],10);e.extendedFields.error=n?String(this.judgeNaN(n,!0)):"0"}break;case g.wM.O_Wasm_Player:e.eventId="main.web_player.wasm_player.tracker",i&&(e.extendedFields.error=String(this.judgeNaN(i,!0)));break;default:e.eventId=""}}}var ot=i(84433),at=Object.defineProperty,st=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,ct=(t,e,i)=>e in t?at(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ht=(t,e)=>{for(var i in e||(e={}))lt.call(e,i)&&ct(t,i,e[i]);if(st)for(var i of st(e))At.call(e,i)&&ct(t,i,e[i]);return t};class dt{constructor(t){this.labCookie="",this.bufferingTimer=null,this.reporter=t,this.rootPlayer=t.rootPlayer,this.labCookie=it.get("laboratory");const e=(0,f.U5)((()=>t.trackStore.state.pxStart),(e=>{var i,n;if(!e)return;const r=t.rootStore.stageAtom.getTiming(),o=+t.errorStore.state.initError;t.track.o(g.wM.O_CDN_Time,{val:r.duration.s4,initErr:o}),t.track.o(g.wM.O_Show_Time,{val:r.duration.s5,initErr:o,tag:null!=(n=null==(i=t.rootPlayer.mpdStore.body)?void 0:i.qualityTag)?n:""},{exParam:t.kernelStore.serviceModule})}),{fireImmediately:!0}),i=()=>this.reporter.mpdStore.drmTechType?g.bV.DRM:this.reporter.panoramaStore.shortcutPrior?g.bV.PANORAMIC:this.reporter.userStore.isInteraction?g.bV.INTERACTIVE:g.bV.DEFAULT,n=()=>{var t,e,i,n;const r=this.reporter.rootPlayer.danmakuStore.danmakuX,o=this.reporter.blockStore,a=(null==(t=null==r?void 0:r.manager)?void 0:t.danmakuShowInfo)||{},s=(null==(e=null==r?void 0:r.manager)?void 0:e.danmakuFilterInfo)||{},l={};let A=0;for(const[t,e]of Object.entries(a)){const n="object"==typeof e&&null!==e?null!=(i=e.totalNumber)?i:0:null!=e?e:0;n&&(l[t]=n,A+=n)}return{pullCount:(null==(n=this.reporter.rootPlayer.danmakuStore.dmTrack)?void 0:n.dmnum)||0,filterPassCount:o.filterPassCount,renderedTotal:A,blockedTotal:o.dmBlockCount,rendered:l,blockByReason:ht({},o.blockCountByReason),blockByType:ht({},o.blockCountByType),engineFilter:ht({},s),setting:{dmArea:this.reporter.rootPlayer.dmSettingStore.state.dmarea,dmDensity:this.reporter.rootPlayer.dmSettingStore.state.dmdensity,aiLevel:this.reporter.rootPlayer.dmSettingStore.aiLevel,blockScroll:!this.reporter.rootPlayer.dmSettingStore.state.typeScroll,blockFixed:!this.reporter.rootPlayer.dmSettingStore.state.typeTopBottom,
blockColor:!this.reporter.rootPlayer.dmSettingStore.state.typeColor,blockSpecial:!this.reporter.rootPlayer.dmSettingStore.state.typeSpecial}}},r=()=>{var t,e;const i=this.reporter.getMediaInfo();return i?{vso:null==(t=i.vStartOffset)?void 0:t.toFixed(3),aso:null==(e=i.aStartOffset)?void 0:e.toFixed(3),vcodec:i.videoCodec,acodec:i.audioCodec,vrd:((i.videoDuration||0)/1e3).toFixed(3),ard:((i.audioDuration||0)/1e3).toFixed(3),ableExt:i.enableExtFrame,canUseExt:i.canUseExtFrame,extFrameErr:i.extFrameFailed}:{}};this.rootPlayer.on(g.tw.Player_Disconnect,(()=>e())).on(g.p2.PLAYER_UNLOAD,(()=>{var t,e;try{this.reporter.kernelStore.dashKernel&&(null==(t=this.reporter.kernelStore.baseAgent)||t.reportMpdList(),null==(e=this.reporter.kernelStore.baseAgent)||e.saveLocalPlaybackInfo())}catch(t){}})).on(g.p2.PLAYER_UNLOADED,(()=>{var t,e;const o=this.reporter.metricStore.quitInfo,a=this.reporter.metricStore.playingNormally;o.playingNormally=a,this.reporter.metricStore.ltMonitor&&(o.longTask=this.reporter.metricStore.ltMonitor.finalDt()),o.initial=+this.reporter.episodeStore.isFirst,o.initErr=+this.reporter.errorStore.state.initError,o.isLoadTimeout=+this.reporter.uiStore.state.isLoadTimeout,o.real_played_time=this.reporter.metricStore.getAbsolutePlayTime(),o.archiveType=i();this.reporter.freeStore.audioAtom.getLoudnessActive()&&(o.loudnessType=this.reporter.settingStore.state.loudness,o.loudnessType&&(o.integrateLoudness=this.reporter.freeStore.audioAtom.getIntegratedLoudness())),o.dmInfo&&(o.dmInfo.modes=this.reporter.dmListStore.getDMModeMap()),this.reporter.track.o(g.wM.O_Dm_Filter_Info,n()),o.mediaInfo=r(),o.isVip=+this.reporter.userStore.isSuperUser,o.tag=null!=(e=null==(t=this.rootPlayer.mpdStore.body)?void 0:t.qualityTag)?e:"",o.manuscriptType=this.reporter.storyStore.state.type,this.reporter.track.o(g.wM.O_Quit,o,{prepend:!0,immediately:!0,sendBeacon:!0})})),this.rootPlayer.on(g.p2.MEDIA_WAITING,(()=>{const e=t.portStore.getCurrentTime(),i=t.mediaStore.state.aBufferLength,n=t.mediaStore.state.vBufferLength;this.bufferingTimer=window.setTimeout((()=>{this.reporter.track.o(g.wM.O_Video_Buffer,{val:e,abl:i,vbl:n})}),3e3)})).on(g.p2.MEDIA_PLAYING,(()=>{clearTimeout(this.bufferingTimer),this.bufferingTimer=null})).on(g.tw.Player_Disconnect,(()=>{clearTimeout(this.bufferingTimer),this.bufferingTimer=null}))}send(t){var e;const{configStore:i,portStore:n,trackStore:r}=this.reporter.rootStore;let o=t.value;if(t.name===g.wM.O_Wasm_Player)o=String((null==(e=t.rawData)?void 0:e.code)||0);const a={logId:t.kind,ctime:t.timeStamp,fid:r.getFid(),ver:n.rid,eventId:t.name,eventParam:o,displayId:i.session,seasonId:i.seasonId,episodeId:i.episodeId,aid:i.aid,cid:i.cid,part:i.p,currentTime:Math.floor(t.currentTime),readyState:t.readyState,statue:this.reporter.statueMapping[n.getScreenKind()],handover:this.reporter.getHandoverType(),sourceType:t.sourceType,quality:t.nowQ,realtime:t.relPlayTime,srcUrl:t.srcUrl,exParam:t.exParam,abVer:this.labCookie,label:this.reporter.getTrackLabel(t.name)};(["slidekey","slidebar","preview_new_show","local_dm_setting","ctrl_subtitle_show","ctrl_prev_show","ctrl_next_show","pause_screen","play_screen","shortcut_"].includes(t.name)||0===t.name.indexOf("shortcut_"))&&(a.srcUrl="",a.label="");const s=new ot.h(this.rootPlayer,{persistent:!0,noStore:!0});t.sendBeacon?s.sendBeacon(a):s.r(a).catch(B.Z)}}var ut=i(91167),pt=i.n(ut);class gt{constructor(t){this.labcookie="",this.pbReportTmpStore=[],this.reporter=t,this.rootPlayer=t.rootPlayer,this.labcookie=it.get("laboratory"),this.reportpb=window.ReporterPb&&new window.ReporterPb({feature:{tech:!0},autoPv:!1})}send(t){var e;const{configStore:i,trackStore:n,portStore:r}=this.reporter.rootStore;let o=t.value;if(t.name===g.wM.O_Wasm_Player)o=String((null==(e=t.rawData)?void 0:e.code)||0);const a={logId:t.kind,ctime:t.timeStamp,fid:n.getFid(),ver:r.rid,eventId:t.name,eventParam:o,displayId:i.session,seasonId:i.seasonId,episodeId:i.episodeId,aid:i.aid,cid:i.cid,part:i.p,currentTime:Math.floor(t.currentTime),readyState:t.readyState,statue:this.reporter.statueMapping[r.getScreenKind()],handover:this.reporter.getHandoverType(),sourceType:t.sourceType,quality:t.nowQ,realtime:t.relPlayTime,srcUrl:t.srcUrl,exParam:t.exParam,abVer:this.labcookie,label:this.reporter.getTrackLabel(t.name)};this.isReportPbInitialized(a)}getPbReportConfig(){try{const t="dash_config",e="pb_log_mid_white_list",i="pb_log_buvid_white_list",n="pb_log_is_and",r="pb_log_flow_percentage",o="pb_log_eventid_list",a=pt().getFawkesConfigValue(t,e),s=pt().getFawkesConfigValue(t,i),l=pt().getFawkesConfigValue(t,o),A=pt().getFawkesConfigValue(t,n),c=pt().getFawkesConfigValue(t,r),h=a&&JSON.parse(a)||[],d=s&&JSON.parse(s)||[],u="false"!==A,p=Number(c)||0;return{processLogic:u,midWhiteList:h,buvidWhitelist:d,flowPercentage:p,eventidList:l&&JSON.parse(l)||[]}}catch(t){this.rootPlayer.log.e("获取实验分组数据错误")}}isReportPbInitialized(t){this.reportpb?this.processPbReportTmpStore(t):(this.pbReportTmpStore.push(t),this.reportpb=window.ReporterPb&&new window.ReporterPb({feature:{tech:!0},autoPv:!1}))}processPbReportTmpStore(t){this.pbReportTmpStore.length>0&&(this.pbReportTmpStore.map((t=>{this.upload(t)})),this.pbReportTmpStore=[]),this.upload(t)}upload(t){var e,i;const n=Object.assign({processLogic:!1,midWhiteList:[],buvidWhitelist:[""],flowPercentage:.01,eventidList:[]},this.getPbReportConfig());try{if(n.midWhiteList.includes(Number(null==(i=null==(e=this.rootPlayer.userStore)?void 0:e.info)?void 0:i.mid))||n.buvidWhitelist.includes(String(it.get("buvid3"))))this.playerInfoUpload(t);else try{n.processLogic?this.processAndLogic(t,n):this.processOrLogic(t,n)}catch(t){this.rootPlayer.log.e("fawkes配置错误 "+t)}}catch(t){this.rootPlayer.log.e("fawkes配置错误 "+t)}}processAndLogic(t,e){this.BKDRHash(t.displayId)<e.flowPercentage&&(0===e.eventidList.length?this.playerInfoUpload(t):e.eventidList.map((e=>{e===t.eventId&&this.playerInfoUpload(t)})))}processOrLogic(t,e){const i=this.BKDRHash(t.displayId);0===e.eventidList.length?this.playerInfoUpload(t):(e.eventidList.map((e=>{e===t.eventId&&this.playerInfoUpload(t)})),i<e.flowPercentage&&(e.eventidList.includes(t.eventId)||this.playerInfoUpload(t)))}BKDRHash(t){let e=0;for(let i=0;i<t.length;i++)e=131*e+t.charCodeAt(i)&2147483647;return(2147483647&e)%100*.01}playerInfoUpload(t){var e,i,n,r,o,a,s,l,A,c,h,d,u,p,g;let f={spmId:null==(e=this.rootPlayer.configStore)?void 0:e.spmId,playFromSpmid:this.rootPlayer.configStore.spmIdFrom,avid:t.aid,cid:t.cid,pname:t.part,roomId:-1,seasonId:t.seasonId,epId:t.episodeId,videoType:-1,subType:null==(i=this.rootPlayer.uiStore)?void 0:i.kind,fid:t.fid,fver:t.ver,playerSessionId:t.displayId,progress:t.currentTime+"",playMethod:null==(n=this.rootPlayer.settingStore)?void 0:n.getHandoff(),videoFormat:t.sourceType,playerPlaybackState:(null==(r=this.rootPlayer.portStore)?void 0:r.isPaused())?0:1,danmaku:this.rootPlayer.dmSettingStore.state.dmSwitch?1:0,statue:t.statue,videoquality:(null==(o=this.rootPlayer.qualityStore)?void 0:o.realQ)+"",audioquality:(null==(a=this.rootPlayer.qualityStore)?void 0:a.realAQ)+"",speed:(null==(s=this.rootPlayer.settingStore)?void 0:s.getPlaybackRate())+"",isAutoplay:null==(l=this.rootPlayer.mediaStore)?void 0:l.autoplay,duration:null==(A=this.rootPlayer.portStore)?void 0:A.getDuration(),realtime:t.realtime,videourl:null==(d=null==(h=null==(c=this.rootPlayer)?void 0:c.kernelStore)?void 0:h.dashKernel)?void 0:d.getCurrentPlayURLFor("video"),audiourl:null==(g=null==(p=null==(u=this.rootPlayer)?void 0:u.kernelStore)?void 0:p.dashKernel)?void 0:g.getCurrentPlayURLFor("audio"),playerExtra:mt.parseEventparam(t.eventParam,t.label,this.rootPlayer)};try{const e=t=>{let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];"object"==typeof r&&null!==r&&(r=e(r)),void 0!==r&&(i[n]=r)}return i};this.reportpb.tech(t.eventId,Object.assign({type:"player"},e(f)))}catch(t){this.rootPlayer.log.e(t)}}}const ft=class{static addTestGroup(t,e,i){try{return["nc_test","webplayer","seeder_web_test"].map((n=>{0!==ft.getTestGroup(t,n,i)&&(e[n]=ft.getTestGroup(t,n,i))})),e}catch(t){i.log.e("实验分组数据添加错误"+t)}}static getTestGroup(t,e,i){try{if(!JSON.parse(t).webAbTest)return
;return JSON.parse(t).webAbTest[e]||0}catch(t){i.log.e("获取实验分组数据错误"+t)}}};let mt=ft;mt.parseEventparam=(t,e,i)=>{const n=ft.isJSON(t)?JSON.parse(t):t+"";let r={};if(Array.isArray(n)||null===n||"object"!=typeof n)r={default:n+""};else if("object"==typeof n)for(const t in n)r.hasOwnProperty(t)||(r[t]="object"==typeof n[t]?JSON.stringify(n[t]):String(n[t]));return ft.addTestGroup(e,r,i)},mt.isJSON=t=>{try{JSON.parse(t)}catch(t){return!1}return!0};var yt=i(12326),bt=i(84585),vt=Object.defineProperty,Et=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,xt=(t,e,i)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Qt=(t,e)=>{for(var i in e||(e={}))Bt.call(e,i)&&xt(t,i,e[i]);if(Ct)for(var i of Ct(e))wt.call(e,i)&&xt(t,i,e[i]);return t},St=(t,e)=>Et(t,It(e));class kt extends g.vq{constructor(){super(...arguments),this.nameSymbols={},this.taskTimer=null,this.statueMapping={[g.dY.Normal]:3,[g.dY.Wide]:4,[g.dY.Web]:2,[g.dY.Mini]:5,[g.dY.Full]:1,[g.dY.Pip]:6},this.playerStatus=0,this.stuckInfo={count:0,duration:0}}get version(){return this.portStore.metadata.version+"-"+this.portStore.metadata.revision}install(){super.install();const t=new dt(this),e=new V(this),i=new rt(this),n=new gt(this),r=(new U(this),new L(this),r=>{if(!this.configStore.localUrl&&r){if(r.name===g.wM.O_Video_Error||r.name===g.wM.O_Quit){if(this.nameSymbols[r.name])return;this.nameSymbols[r.name]=!0}this.metricStore.pageUnload&&(r.sendBeacon=!0),this.recordData(r),t.send(r),n.send(r),e.send(r),i.send(r)}});this.track.reportSender=r;const o=(t=3)=>{if(!this.rootPlayer.track.queues.length)return;const e=this.rootPlayer.track.queues,i=(0,bt.Z)(t,1,e.length);for(let t=0;t<i;t++)r(e.shift())},a=()=>{this.taskTimer||(this.taskTimer=window.setInterval((()=>o()),200))},s=()=>{for(;this.rootPlayer.track.queues.length;)o()},l=()=>{clearInterval(this.taskTimer),this.taskTimer=null};this.dc.pxStart=(0,f.U5)((()=>this.trackStore.state.pxStart),(t=>t&&a()),{fireImmediately:!0}),this.rootPlayer.on(g.p2.PLAYER_UNLOADED,(()=>s()),1).on(g.tw.Player_Dispose,(()=>this.cleanAfterDispose()),1).on(g.tw.Player_Disconnect,(()=>l())),this.addEvents()}cleanAfterDispose(){this.nameSymbols={},this.playerStatus=0,this.stuckInfo={count:0,duration:0}}recordData(t){if(t.name===g.wM.O_End_Load)this.stuckInfo.count++,this.stuckInfo.duration=JSON.parse(t.value).val}addEvents(){this.rootPlayer.on(g.p2.MEDIA_LOADSTART,(()=>{this.playerStatus=0})).on(g.p2.MEDIA_CANPLAY,(()=>{this.playerStatus=1})).on(g.p2.MEDIA_STALLED,(()=>{this.playerStatus=2})).on(g.p2.MEDIA_WAITING,(()=>{this.playerStatus=2})).on(g.p2.MEDIA_PLAY,(()=>{this.playerStatus=3})).on(g.p2.MEDIA_PAUSE,(()=>{this.playerStatus=4})).on(g.p2.MEDIA_ENDED,(()=>{this.playerStatus=5}))}getHandoverType(){if(this.settingStore.state.loop)return 3;switch(this.settingStore.state.handoff){case g.ty.Abort:return 1;case g.ty.Auto:case g.ty.Delay:return 2;default:return 0}}getTrackLabel(t){var e,i,n,r,o,a,s;const l=this.userStore.info;if(!l)return null;const A=this.trackStore.getSourceType(),c={},h=window.webAbTest;l.err||(1===A?Object.assign(c,null==(i=null==(e=l.pCdnLoader)?void 0:e.flv)?void 0:i.labels):2!==A&&Object.assign(c,null==(r=null==(n=l.pCdnLoader)?void 0:n.dash)?void 0:r.labels)),h&&"object"==typeof h&&(c.webAbTest=h);const d=this.kernelStore.getPlayerIdle();if(d)c.playerIdle=d;else{const t=this.kernelStore.getPlayerUserWhite();t&&(c.playerWhite=t)}const u=[g.wM.O_Enter,g.wM.O_Show_Time,g.wM.O_CDN_Time,g.wM.O_Loaded_Time,g.wM.O_Frame_Time,g.wM.O_Media_Canplay];if(c.qn=(()=>u.includes(t)&&this.kernelStore.baseAgent?this.kernelStore.baseAgent.startVQ:this.qualityStore.realQ||-1)(),c.aq=this.qualityStore.realAQ||-1,this.bpNcExtra.state.enabled){const e={ncEnabled:this.bpNcExtra.state.enabled,ncVersion:this.bpNcExtra.state.version,ncSource:this.bpNcExtra.state.source},i=null==(o=this.bpNcExtra.state.sdkState)?void 0:o.getData;t===g.wM.O_Quit&&i&&(e.ncGetData=+i.useP2P||0,e.ncGetDataSuccess=+i.useP2PSuccess||0),Object.assign(c,e)}window[yt.j]&&Object.assign(c,{loaderEnabled:!0});const p=this.getKernelReportInfo();p&&Object.assign(c,p),c.hasPatchAdv=this.patchAdvStore.hasValidAdv,c.uaFullVersion=nt.X.vDetail?nt.X.vDetail.fullV:"",c.topQn=this.qualityStore.realTopVideoQn||-1,c.duration=this.portStore.getDuration()||-1;try{let t={audio:0,video:0};const e=this.kernelStore.dashKernel;t={audio:e.state.segmentsInfoMap.audio.realDuration,video:e.state.segmentsInfoMap.video.realDuration},c.realVideoDuration=(null==(a=t.video)?void 0:a.toFixed(3))||-1,c.realAudioDuration=(null==(s=t.audio)?void 0:s.toFixed(3))||-1}catch(t){}const f=this.portStore.getScreenKind();return c.viewportKind=this.statueMapping[f]||0,c.realtimeMs=this.metricStore.getRelativePlayTimeMs(),JSON.stringify(c)}getKernelReportInfo(){if(!this.kernelStore||!this.kernelStore.dashKernel)return null;const t=this.kernelStore.dashKernel;return{dashLdType:"function"==typeof t.getDisableLoaderType?t.getDisableLoaderType():0,dashVersion:pt().CONFIG.version}}getMediaInfo(){const t={videoCodec:"",audioCodec:"",video_url:"",audio_url:"",loaderType:"",profile:"",audioSampling:"",drop:"",video_host:"",audio_host:"",videoDataRate:0,audioDataRate:0,width:0,height:0,fps:0,duration:0,audioDuration:0,videoDuration:0,speed:0,vStartOffset:0,aStartOffset:0},e=()=>{const e=this.kernelStore.flvKernel;if(!e)return t;const i=e.mediaInfo,n=i.audioChannelCount,r=i.metadata&&i.metadata.description;let o=i.audioSampleRate+" Hz",a="";o+=1===n?", Mono":2===n?", Stereo":", "+n+" Channels",r&&(o+=/fixed_gap:True/.test(r)?", Fixed":"");try{e.statisticsInfo.url&&(a=/https?:\/\/(.+?)\//.exec(e.statisticsInfo.url)[1])}catch(t){}return St(Qt(Qt({},t),i),{audioSampling:o,videoDuration:i.duration,audioDuration:i.duration,profile:i.profile,video_url:e.statisticsInfo.url,video_host:a,speed:e.statisticsInfo.speed,loaderType:e.statisticsInfo.loaderType,drop:e.statisticsInfo.droppedFrames/e.statisticsInfo.decodedFrames})},i=()=>{const e=this.kernelStore.dashKernel;if(!e)return t;const i=e.getVideoInfo().mediaInfo,n=e.getVideoInfo().statisticsInfo;let r={audio:0,video:0},o="",a="";try{r={audio:e.state.segmentsInfoMap.audio.realDuration,video:e.state.segmentsInfoMap.video.realDuration}}catch(t){r={audio:this.portStore.getDuration(),video:this.portStore.getDuration()}}try{n.videoURL&&(o=/https?:\/\/(.+?)\//.exec(n.videoURL)[1]),n.audioURL&&(a=/https?:\/\/(.+?)\//.exec(n.audioURL)[1])}catch(t){}const s=n.useExtraFrames||{};return Qt(St(Qt(Qt({},t),i),{audioDataRate:+i.audioDataRate/1024,videoDataRate:+i.videoDataRate/1024,video_url:n.videoURL,audio_url:n.audioURL,video_host:o,audio_host:a,speed:n.speed/8,audioDuration:1e3*r.audio,videoDuration:1e3*r.video,drop:n.droppedFrames/n.decodedFrames,vStartOffset:i.videoStartOffset,aStartOffset:i.audioStartOffset}),s)};return this.kernelStore.flvKernel?e():this.kernelStore.dashKernel?i():t}}var Dt=i(68063);class _t extends g.vq{constructor(){super(...arguments),this.tag="KVLoad"}get kvConfigKey(){return"bilibili_player_kv_config"}install(){super.install(),this.kvSDK=new Dt.Z(1),this.setKVConfig()}setKVConfig(){return t=this,e=null,i=function*(){var t,e,i;try{(null==(t=window.localStorage)?void 0:t.getItem)&&window.localStorage.getItem(this.kvConfigKey)&&window.localStorage.removeItem(this.kvConfigKey);const i=yield this.kvSDK.getConfigByPromise();for(let t in i){const e=i[t];for(let t in e)if("string"==typeof e[t])try{e[t]=JSON.parse(e[t])}catch(t){}}(null==(e=window.localStorage)?void 0:e.setItem)&&window.localStorage.setItem(this.kvConfigKey,JSON.stringify(i))}catch(t){(null==(i=window.localStorage)?void 0:i.setItem)&&window.localStorage.setItem(this.kvConfigKey,"")}},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}onDispose(){super.onDispose(),this.kvSDK.destory()}}class Rt extends g.Su{install(){super.install([_t,kt,_,v]),this.rootPlayer&&this.rootPlayer.log.i("[Helper]","Common helper is installed")}}},
48465:function(t,e,i){"use strict";i.r(e),i.d(e,{CommunityHelper:function(){return Mt}});i(6498);var n=i(5489),r=i(66292),o=i(85531),a=i(28149),s=i(40912),l=i(48054),A=i(53982),c=i(81615),h=i(86971),d=i(68648),u=i(25772),p=i(71030),g=i(17371),f=i(75091),m=i(88913),y=i(98551),b=i(11508),v=i(22805),E=i(77673),I=i(78041),C=i(48512),B=i(30406),w=i(52419),x=i(11039),Q=i(66568),S=i(86722),k=i(21064),D=i(42353),_=i(62240),R=i(95643),M=i(67102),T=i(94598),F=i(80283),L=i(18337),N=i(29608),P=i(64242),U=i(55963),O=i(12410),G=i(44699),H=i(50669),V=i(82949),Y=i(92572),z=i(62557),W=i(83554),Z=i(96429),j=i(63801),q=i(22451),J=i(80155),K=i.n(J),X=i(18417),$=i(23529),tt=i(46330),et=i(99550),it=i(89262),nt=i(55537),rt=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?ot(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&rt(e,i,o),o};class st extends n.vq{constructor(){super(...arguments),this.templateNodes=this.followTemplate()}install(){super.install(),this.dc.follow=(0,q.U5)((()=>this.upStore.state.follow),(t=>{t?this.hide():this.show()}),{fireImmediately:!0}),this.dc.face=(0,q.U5)((()=>this.upStore.state.face),(t=>{t?(this.templateNodes.container.style.opacity="1",this.templateNodes.face.src=(0,X.Q)(this.upStore.state.face,96)):(this.templateNodes.container.style.opacity="0",this.templateNodes.face.src="")}),{fireImmediately:!0}),this.dc.isShow=(0,q.U5)((()=>this.isHide),(t=>{t?(0,$.N)(this.templateNodes.container):(0,tt.o)(this.templateNodes.container)}),{fireImmediately:!0})}get isHide(){return this.uiStore.isTinyView||this.userStore.disableShowUpInfo&&"LargeEventsPlayer"===this.configStore.iid}show(){this.templateNodes.container.parentElement||(this.nodes.topLeftFollow.appendChild(this.templateNodes.container),this.templateNodes.container.addEventListener("click",this.onFollowClickHandler)),this.templateNodes.text.textContent="关注",this.templateNodes.icon.style.width="",this.templateNodes.icon.style.visibility="",(0,tt.o)(this.templateNodes.container)}hide(){this.templateNodes.text.textContent="已关注",this.templateNodes.icon.style.width="0",this.templateNodes.icon.style.visibility="hidden",(0,$.N)(this.templateNodes.container)}followTemplate(){const t=`<div class="${this.ppx}-follow"><img class="${this.ppx}-follow-face" /><span class="${this.ppx}-follow-icon"><span class="${this.cpx}-svg-icon">${K()}</span></span><span class="${this.ppx}-follow-text">关注</span></div>`,e=(0,et.t)(t),i=e.querySelector(`.${this.ppx}-follow-face`),n=e.querySelector(`.${this.ppx}-follow-icon`),r=e.querySelector(`.${this.ppx}-follow-text`);return{container:e,face:i,icon:n,text:r}}onFollowClickHandler(t){if(t.stopPropagation(),!this.userStore.isLogin)return void this.userStore.requestQuickLogin();const{mid:e,follow:i}=this.upStore.state;e&&!i&&(this.track.e("player_follow_click"),this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Follow,data:{fid:e,act:nt.dd.Add_Attention,re_src:nt.gC.Player_Top_Follow}}})))}}at([q.Fl],st.prototype,"isHide",1),at([it.ZP],st.prototype,"onFollowClickHandler",1);var lt=i(54878),At=i(55508),ct=i(23998),ht=i(8690),dt=i(2528),ut=i(26063),pt=i(49929),gt=i(49273),ft=i(96411),mt=i(94663),yt=i(99718),bt=i(12326),vt=i(43199),Et=i(10490),It=i(3744),Ct=i(58920),Bt=i(25289),wt=i(75736),xt=i(71427),Qt=i(28090),St=i(30451),kt=i(56820),Dt=i(1624),_t=i(9848),Rt=i(31036);class Mt extends n.Su{install(){super.install([r.F,o.u,v.T,l.w,c.o,A.H,E.Q,I.R,u.E,p.P,m.u,y.R,C.t,g.L,f.a,a.k,h.B,s.N,d.D,b.e,B.e,w.x,x.K,Q.q,S.C,k.J,R.D,D.b,_.M,M.K,wt.w,T.o,It.t,Ct.s,F.Q,L.c,N._,P.y,U.u,O.v,G.z,H.l,V.C,Y.o,j.Q,z.N,W.H,Z.E,st,lt.D,At.$,ct.n,ht.G,dt.U,ut.J,pt.a,gt.I,ft.T,yt.S,mt.q,bt.X,Rt.L,vt.I,Et.s,Bt.T,Dt.s,xt.k,Qt.e,St.i,kt.G,_t.G])}}},11483:function(t,e,i){"use strict";i.r(e),i.d(e,{CreatorHelper:function(){return C}});i(6498);var n=i(5489),r=i(66292),o=i(85531),a=i(18337),s=i(64242),l=i(29608),A=i(12410),c=i(88913),h=i(48512),d=i(17371),u=i(48054),p=i(68648),g=i(22805),f=i(77673),m=i(78041),y=i(55963),b=i(44699),v=i(50669),E=i(11039),I=i(30757);class C extends n.Su{install(){super.install([r.F,o.u,l._,A.v,a.c,s.y,c.u,h.t,d.L,u.w,p.D,g.T,f.Q,m.R,y.u,b.z,v.l,E.K,I.Q])}}},15432:function(t,e,i){"use strict";i.r(e),i.d(e,{EmbeddedHelper:function(){return Wt}});i(6498);var n=i(5489),r=i(66292),o=i(85531),a=i(12410),s=i(22805),l=i(48054),A=i(77673),c=i(88913),h=i(48512),d=i(17371),u=i(30406),p=i(52419),g=i(11039),f=i(80283),m=i(83554),y=i(2528),b=i(96429),v=i(96411),E=i(94663),I=i(99718),C=i(43199),B=i(50669),w=i(82949),x=i(58920),Q=i(10490),S=i(23998),k=i(49929),D=i(18337),_=i(64242),R=i(44699),M=i(29608),T=i(68648),F=i(11508),L=i(75091),N=i(66568),P=i(95643),U=i(21064),O=i(42353),G=i(94598),H=i(3744),V=i(30757),Y=i(25289),z=i(28090),W=i(71427),Z=i(22451),j=i(80155),q=i.n(j),J=i(23529),K=i(46330),X=i(18417),$=i(99550),tt=i(89262),et=i(51839),it=Object.defineProperty,nt=Object.getOwnPropertyDescriptor;class rt extends n.vq{constructor(){super(...arguments),this.templateNodes=this.followTemplate()}install(){super.install(),this.show(),this.dc.width=(0,Z.U5)((()=>this.uiStore.isTinyView),(t=>{t?(0,J.N)(this.templateNodes.container):(0,K.o)(this.templateNodes.container)}),{fireImmediately:!0}),this.dc.face=(0,Z.U5)((()=>this.upStore.state.face),(t=>{t?(this.templateNodes.face.src=(0,X.Q)(this.upStore.state.face,96),this.templateNodes.name.innerHTML=this.upStore.state.name,this.templateNodes.container.style.opacity="1"):(this.templateNodes.container.style.opacity="0",this.templateNodes.face.src="")}),{fireImmediately:!0})}show(){this.templateNodes.container.parentElement||(this.nodes.topLeftFollow.appendChild(this.templateNodes.container),this.templateNodes.container.addEventListener("click",this.onFollowClickHandler)),this.upStore.state.follow?this.templateNodes.text.innerHTML="已关注":this.templateNodes.text.innerHTML=`${q()}<span>关注</span>`,(0,K.o)(this.templateNodes.container)}hide(){this.templateNodes.text.textContent="已关注",this.templateNodes.text.style.width="0",this.templateNodes.text.style.visibility="hidden",(0,J.N)(this.templateNodes.container)}followTemplate(){const t=`\n            <div class="${this.ppx}-follow">\n                <img class="${this.ppx}-follow-face" />\n                <span class="${this.ppx}-follow-name"></span>\n                <span class="${this.ppx}-follow-text"></span>\n            </div>`,e=(0,$.t)(t),i=e.querySelector(`.${this.ppx}-follow-name`),n=e.querySelector(`.${this.ppx}-follow-face`),r=e.querySelector(`.${this.ppx}-follow-icon`),o=e.querySelector(`.${this.ppx}-follow-text`);return{container:e,name:i,face:n,icon:r,text:o}}onFollowClickHandler(t){t.stopPropagation(),this.RedirectToMain()}RedirectToMain(){let t;switch(this.configStore.embeddedEnv){case n.vt.Embedded:t=et.ZZ.Embed;break;case n.vt.White:case n.vt.Other:t=et.ZZ.Embed_White_Other}window.open(`${this.rootPlayer.window.location.protocol}//space.bilibili.com/${this.upStore.state.mid}`)}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?nt(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&it(e,i,o)})([tt.ZP],rt.prototype,"onFollowClickHandler",1);var ot=i(25360),at=i.n(ot),st=i(45483),lt=i.n(st),At=i(88712),ct=i.n(At),ht=i(86049),dt=i.n(ht),ut=i(87857),pt=i.n(ut),gt=i(62615),ft=i(22378),mt=i(67644),yt=i(28759),bt=i(20094),vt=i(57370),Et=Object.defineProperty,It=Object.getOwnPropertyDescriptor,Ct=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?It(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Et(e,i,o),o};class Bt extends n.vq{constructor(){super(...arguments),this.timer={showTimer:0,hideTimer:0}}install(){super.install(),this.nodes.topWrap.insertAdjacentHTML("beforeend",this.tpl());const t=this.ppx;this.templateNodes={container:this.nodes.topWrap.querySelector(`.${t}-top-buttons`),like:this.nodes.topWrap.querySelector(`.${t}-top-buttons-like`),reply:this.nodes.topWrap.querySelector(`.${t}-top-buttons-reply`),share:this.nodes.topWrap.querySelector(`.${t}-top-buttons-share`),more:this.nodes.topWrap.querySelector(`.${t}-top-buttons-more`),later:this.nodes.topWrap.querySelector(`.${t}-top-button-menu-later`),
issue:this.nodes.topWrap.querySelector(`.${t}-top-button-menu-issue`),menu:this.nodes.topWrap.querySelector(`.${t}-top-button-menu`)},this.dc.embedView=(0,Z.U5)((()=>this.uiStore.embedView),(t=>{t<n.pp.Normal||this.configStore.isChannel(n.u5.Mini_Site)?(0,J.N)(this.templateNodes.container):(0,K.o)(this.templateNodes.container)}),{fireImmediately:!0}),this.dc.stat=(0,Z.U5)((()=>this.storyStore.state.stat),(e=>{e?(this.templateNodes.like.querySelector(`.${t}-top-button-text`).innerHTML=(0,gt.u)(e.like),this.templateNodes.reply.querySelector(`.${t}-top-button-text`).innerHTML=(0,gt.u)(e.reply)):(this.templateNodes.like.style.display="none",this.templateNodes.reply.style.display="none")}),{fireImmediately:!0}),this.tooltipStore.create({name:"feedback-btn",title:"反馈",target:this.templateNodes.issue,position:n.DU.BottomCenter,tip:!0}),this.dc.show=(0,Z.EH)((()=>{var t;this.menuStore.state.showIssue&&!this.uiStore.isTinyView?this.showBack():null==(t=this.bBack)||t.hide()})),this.dc.tinyMode=(0,Z.EH)((()=>{this.uiStore.isTinyView?(0,J.N)(this.templateNodes.issue):(0,K.o)(this.templateNodes.issue)})),this.dc.isLoaded=(0,Z.EH)((()=>{const t=this.rootStore.isLoaded?"remove":"add";this.nodes.topWrap.classList[t](`${this.ppx}-show`)})),this.bindEvent()}bindEvent(){this.templateNodes.more.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.more.addEventListener("mouseleave",this.onMouseLeaveHandler),this.templateNodes.like.addEventListener("click",this.onLikeHandler),this.templateNodes.reply.addEventListener("click",this.onReplyHandler),this.templateNodes.issue.addEventListener("click",this.onIssueHandler),this.templateNodes.share.addEventListener("click",this.onShareHandler),this.templateNodes.later.addEventListener("click",this.onLaterHandler)}onMouseEnterHandler(){this.clearTimer(),this.timer.showTimer=window.setTimeout((()=>{this.templateNodes.menu.classList.add(`${this.spx}-top-menu-show`)}),300)}onMouseLeaveHandler(){this.timer.hideTimer&&window.clearTimeout(this.timer.hideTimer),this.timer.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),200)}onLikeHandler(){this.jumpToPage()}onReplyHandler(){this.jumpToPage()}onIssueHandler(){this.menuStore.hideAllPopupPanel(),this.menuStore.menuStore.setState({showIssue:!0}),this.track.e("player_feedback")}onShareHandler(t){new mt.E(this.rootPlayer).r({oid:this.configStore.aid}).then((e=>{e[this.configStore.aid]?this.tooltipStore.create({title:"该内容不能转发分享",target:t.target,name:"ending:share",position:n.DU.TopCenter}):this.shareStore.open()})).catch((t=>{this.tooltipStore.create({title:(null==t?void 0:t.message)||"request share forbid fail",target:t.target,name:"ending:share"}),this.log.e("[EndingPanel]","ShareBtn",t&&t.message||"request share forbid fail")})),this.track.e("end_share")}onLaterHandler(){this.jumpToPage()}jumpToPage(){const t=this.portStore.getRedirectTime();(0,et.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),this.portStore.pause()}clearTimer(t=!0){this.timer.showTimer&&window.clearTimeout(this.timer.showTimer),this.timer.hideTimer&&(window.clearTimeout(this.timer.hideTimer),this.timer.hideTimer=null,t||this.templateNodes.menu.classList.remove(`${this.spx}-top-menu-show`))}showBack(){this.bBack||(this.bBack=new ft.Z({close:at(),container:this.nodes.videoArea,aid:this.configStore.aid||0,cid:this.configStore.cid||0,bvid:this.configStore.bvid||"",version:"HTML5-"+this.portStore.metadata.version+"-"+this.portStore.metadata.revision,track:(t,e)=>{"load-failed"!==this.menuStore.state.showIssueFrom&&this.track.e(t,e)},closeCb:()=>{this.menuStore.setState({showIssue:!1,showIssueFrom:"default"})},submit:t=>{this.rootPlayer.emit(n.tw.Player_Submit_Feedback,new CustomEvent(n.tw.Player_Submit_Feedback,{detail:{tagId:t.tag_id,content:t.content}})),this.log.i("[tag]",JSON.stringify(t)),this.upload(t)},getPlayInfo:()=>{var t,e,i;return{cid:this.configStore.cid,url:null!=(t=this.portStore.getPlayUrl())?t:"",progress:null==(i=(e=this.portStore).getCurrentTime)?void 0:i.call(e)}}})),this.bBack.show()}upload(t){var e;const i=this.menuStore.state.showIssueFrom;let n=""+t.tag_id;"load-failed"===i&&(n=vt.x5.FIRST_FRAME_LOADING_FAILED+""),(0,yt.Dy)({appkey:"web_player",preload:{r:"upos",profile:"feedback/bup",name:"main.log"},taskType:n,file:this.rootPlayer.getFormattedLogs(),user:{mid:String((null==(e=this.userStore.info)?void 0:e.mid)||""),buvid:bt.get("buvid3")}}).then((t=>{this.log.i("[upload_sucess]",JSON.stringify(t))})).catch((t=>{this.log.i("[upload_err]",JSON.stringify(t)),this.track.o("log_upload_err",{err:t})}))}tpl(){const t=this.ppx;return`\n          <div class="${t}-top-buttons">\n            <div class="${t}-top-button ${t}-top-buttons-like">\n              <span class="${t}-top-button-icon">${lt()}</span>\n              <span class="${t}-top-button-text">-</span>\n            </div>\n            <div class="${t}-top-button ${t}-top-buttons-reply">\n              <span class="${t}-top-button-icon">${ct()}</span>\n              <span class="${t}-top-button-text">-</span>\n            </div>\n            <div class="${t}-top-button ${t}-top-buttons-share">\n              <span class="${t}-top-button-icon">${dt()}</span>\n              <span class="${t}-top-button-text">分享</span>\n            </div>\n            <div class="${t}-top-button ${t}-top-buttons-more">\n              <span class="${t}-top-button-icon">${pt()}</span>\n              <span class="${t}-top-button-text">更多</span>\n              <ul class="${t}-top-button-menu">\n                <li class="${t}-top-button-menu-item ${t}-top-button-menu-later">稍后再看</li>\n                <li class="${t}-top-button-menu-item ${t}-top-button-menu-issue">问题反馈</li>\n              <ul>\n            </div>\n          </div>\n    `}}Ct([tt.ZP],Bt.prototype,"onMouseEnterHandler",1),Ct([tt.ZP],Bt.prototype,"onMouseLeaveHandler",1),Ct([tt.ZP],Bt.prototype,"onLikeHandler",1),Ct([tt.ZP],Bt.prototype,"onReplyHandler",1),Ct([tt.ZP],Bt.prototype,"onIssueHandler",1),Ct([tt.ZP],Bt.prototype,"onShareHandler",1),Ct([tt.ZP],Bt.prototype,"onLaterHandler",1);var wt=i(97203),xt=i.n(wt),Qt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,kt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?St(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Qt(e,i,o),o};class Dt extends n.vq{install(){if(super.install(),this.configStore.embeddedEnv>n.vt.Embedded){const t=this.ppx;this.nodes.videoArea.insertAdjacentHTML("beforeend",this.tpl()),this.templateNodes={button:this.nodes.videoArea.querySelector(`.${t}-enter-button`)},this.dc.width=(0,Z.U5)((()=>this.uiStore.embedView),(t=>{t===n.pp.Tiny?(0,K.o)(this.templateNodes.button):(0,J.N)(this.templateNodes.button)}),{fireImmediately:!0}),this.templateNodes.button.addEventListener("click",(()=>{const t=this.portStore.getRedirectTime();(0,et.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),this.portStore.pause()})),this.nodes.videoArea.addEventListener("mouseenter",this.onShowPause),this.nodes.videoArea.addEventListener("mouseleave",this.onHidePause)}}onShowPause(){this.mediaStore.state.firstPlay&&(this.templateNodes.button.style.visibility="visible")}onHidePause(){this.mediaStore.state.firstPlay&&(this.templateNodes.button.style.visibility="hidden")}tpl(){return`\n        <div class="${this.ppx}-enter-button">进入哔哩哔哩，观看更高清 ${xt()}</div>\n    `}}kt([tt.ZP],Dt.prototype,"onShowPause",1),kt([tt.ZP],Dt.prototype,"onHidePause",1);var _t=i(19570),Rt=i.n(_t),Mt=i(34675),Tt=i.n(Mt),Ft=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Nt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Lt(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Ft(e,i,o),o};class Pt extends n.vq{install(){if(super.install(),this.configStore.businessEmbedMode)return;const t=this.ppx;this.nodes.videoArea.insertAdjacentHTML("beforeend",this.tpl()),this.templateNodes={button:this.nodes.videoArea.querySelector(`.${t}-play-pause-button`)},this.dc.width=(0,Z.U5)((()=>this.uiStore.isTinyView),(t=>{t?(0,K.o)(this.templateNodes.button):(0,J.N)(this.templateNodes.button)}),{fireImmediately:!0}),
this.templateNodes.button.addEventListener("click",(()=>{this.mediaStore.state.paused?this.portStore.play():this.portStore.pause()})),this.dp.pause=(0,Z.U5)((()=>this.mediaStore.state.paused),(t=>{t?(this.templateNodes.button.innerHTML=Rt(),this.templateNodes.button.style.visibility="visible"):this.templateNodes.button.innerHTML=Tt()}),{fireImmediately:!0}),this.nodes.videoArea.addEventListener("mouseenter",this.onShowPause),this.nodes.videoArea.addEventListener("mouseleave",this.onHidePause),this.dp.isFirstPlay=(0,Z.U5)((()=>this.mediaStore.state.firstPlay),(t=>{this.templateNodes.button.style.visibility=t?"hidden":"visible"}),{fireImmediately:!0})}onShowPause(){this.templateNodes.button.style.visibility="visible"}onHidePause(){this.mediaStore.state.firstPlay&&(this.mediaStore.state.paused||(this.templateNodes.button.style.visibility="hidden"))}tpl(){return`\n        <div class="${this.ppx}-play-pause-button"> ${Rt()}</div>\n    `}}Nt([tt.ZP],Pt.prototype,"onShowPause",1),Nt([tt.ZP],Pt.prototype,"onHidePause",1);var Ut=i(31168),Ot=i(68918),Gt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Vt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Ht(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&Gt(e,i,o),o};class Yt extends n.vq{get isShow(){const t=this.mediaStore.state.paused,e=this.mediaStore.state.firstPlay,i=this.mediaStore.state.ended,r=this.storyStore.state.related||[];return!(this.uiStore.state.videoAreaWidth<n.vd.Normal||!r.length||!t||!e||i)}get isShowButton(){const t=this.ctrlStore.ctrlHidden;return!this.uiStore.isTinyView&&!t}install(){super.install(),this.nodes.videoArea.insertAdjacentHTML("beforeend",this.tpl()),this.templateNodes={wrap:this.nodes.videoArea.querySelector(`.${this.ppx}-relation-wrap`),context:this.nodes.videoArea.querySelector(`.${this.ppx}-relation-context`),button:this.nodes.videoArea.querySelector(`.${this.ppx}-relation-button`)},this.templateNodes.button&&(this.dp.isShowButton=(0,Z.U5)((()=>this.isShowButton),(t=>{t?(0,K.o)(this.templateNodes.button):(0,J.N)(this.templateNodes.button)}),{fireImmediately:!0})),this.dp.render=(0,Z.U5)((()=>({width:this.uiStore.state.videoAreaWidth,related:this.storyStore.state.related})),(({width:t,related:e})=>{if(t>=n.vd.Normal){const i=Math.floor((t-n.vd.Normal)/200)+4;this.renderRelateList(e,i)}else this.templateNodes.context.innerHTML="";const i=t>40?t-40+"px":"0px";this.templateNodes.context.style.width=i}),{fireImmediately:!0}),this.dp.showrelation=(0,Z.U5)((()=>this.isShow),(t=>{const{currentTime:e,duration:i}=this.mediaStore.state;(e>i-.2||e<.2)&&(t=!1),this.templateNodes.wrap.classList[t?"add":"remove"](`${this.ppx}-relation-wrap-show`)}),{fireImmediately:!0}),this.templateNodes.button&&this.templateNodes.button.addEventListener("click",(()=>{const t=this.portStore.getRedirectTime();(0,et.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t)}))}renderRelateList(t,e){if(this.templateNodes.context.innerHTML="",!Array.isArray(t)||!t.length)return;const i=t.slice(0,e),r=this.ppx;i.forEach((t=>{const e=(0,$.t)(`\n                <div class="${r}-relation-context-item">\n                    <div class="${r}-relation-context-poster">\n                    <img src=${t.pic} class="${r}-relation-context-poster-img">\n                    <div class="${r}-relation-context-poster-duration">${(0,Ut.Z)(t.duration)}</div>\n                    </div>\n                    <div class="${r}-relation-context-title"></div>\n                </div>\n            `);let i;switch(e.querySelector(`.${r}-relation-context-title`).innerText=t.title,this.configStore.embeddedEnv){case n.vt.Embedded:i=et.ZZ.Embed;break;case n.vt.White:case n.vt.Other:i=et.ZZ.Embed_White_Other}e.addEventListener("click",(()=>{let e=`https://www.bilibili.com/video/${t.bvid?t.bvid:`av${t.aid}`}?spm_id_from=${i}`;(0,Ot.x)(e,this.rootPlayer)})),this.templateNodes.context.appendChild(e)}))}tpl(){const t=this.ppx;return`\n       \n        <div class="${t}-relation-wrap"> \n        ${this.configStore.embeddedEnv===n.vt.Other?`<div class="${t}-relation-button">进入哔哩哔哩，观看更高清 ${xt()}</div>`:""}\n            <div class="${t}-relation-context"></div>\n        </div>\n        \n      `}onDispose(){super.onDispose()}}Vt([Z.Fl],Yt.prototype,"isShow",1),Vt([Z.Fl],Yt.prototype,"isShowButton",1);var zt=i(30451);class Wt extends n.Su{install(){const t=this.rootStore.configStore.embeddedEnv,e=[a.v,r.F,o.u,s.T,l.w,A.Q,c.u,h.t,d.L,u.e,p.x,g.K,f.Q,m.H,b.E,y.U,v.T,I.S,E.q,C.I,B.l,w.C,x.s,Q.s,rt,S.n,Bt,Yt,k.a,D.c,_.y,R.z,M._,Dt,Pt,zt.i],i=[T.D],Z=[F.e,L.a,N.q,U.J,P.D,O.b,G.o,H.t,V.Q,Y.T,z.e,W.k],j=[L.a,F.e,V.Q];switch(t){case n.vt.Embedded:super.install(e.concat(Z,i));break;case n.vt.White:super.install(e.concat(j,i));break;default:super.install(e.concat(i))}}}},56049:function(t,e,i){"use strict";i.r(e),i.d(e,{GamecenterHelper:function(){return b}});i(6498);var n=i(5489),r=i(66292),o=i(18337),a=i(64242),s=i(29608),l=i(12410),A=i(17371),c=i(48054),h=i(22805),d=i(77673),u=i(78041),p=i(55963),g=i(44699),f=i(50669),m=i(11039),y=i(30757);class b extends n.Su{install(){super.install([r.F,s._,l.v,o.c,a.y,A.L,c.w,h.T,d.Q,u.R,p.u,g.z,f.l,m.K,y.Q])}}},88993:function(t,e,i){"use strict";i.r(e),i.d(e,{HomepageHelper:function(){return a}});i(6498);var n=i(11039),r=i(5489),o=i(43199);class a extends r.Su{install(){super.install([n.K,o.I])}}},64115:function(t,e,i){"use strict";i.r(e),i.d(e,{ManagerHelper:function(){return P}});i(6498);var n=i(5489),r=i(66292),o=i(64242),a=i(88913),s=i(48512),l=i(17371),A=i(48054),c=i(22805),h=i(68648),d=i(77673),u=i(55963),p=i(44699),g=i(11039),f=i(30757),m=i(62240),y=i(95643),b=i(52419),v=i(12410),E=i(29608),I=i(40912),C=i(85531),B=i(75091),w=i(49273),x=i(50669),Q=i(11508),S=i(99550),k=i(89262),D=i(11799),_=i.n(D),R=i(22451),M=Object.defineProperty,T=Object.getOwnPropertyDescriptor;class F extends n.vq{constructor(){super(...arguments),this.tag="CtrlRotate",this.rotateDeg=0,this.templateNodes=this.rotateTemplate()}install(){super.install(),this.configStore.controlsList.has("noRotate")||(this.templateNodes.rotateIcon.querySelector(`.${this.cpx}-svg-icon`).innerHTML=_(),this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.updateTips(),this.dc.videoStyle=(0,R.U5)((()=>this.uiStore.state.videoAreaWidth||this.uiStore.state.videoAreaHeight),(()=>this.updateStatue()),{fireImmediately:!0}),this.addEventListener())}rotateTemplate(){const t=(0,S.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-rotate" role="button" aria-label="旋转" tabindex="0">\n            <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-rotate-icon">\n                <span class="${this.cpx}-svg-icon"></span>\n            </div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-rotate-icon`);return{container:t,rotateIcon:e}}onClickHandler(){3!==this.rotateDeg?this.rotateVideo():this.resetVideoWrap()}updateStatue(){this.updateTips(),this.updateRotateVideoStyle()}updateTips(){this.tooltipStore.remove("ctrl:rotate");const t=this.uiStore.isFullView?28:19;this.tooltipStore.create({name:"ctrl:rotate",title:"旋转视频",target:this.templateNodes.container,position:n.DU.TopCenter,gap:t,tip:!0})}updateRotateVideoStyle(){if(0===this.rotateDeg)return;const t=-90*this.rotateDeg,e=this.uiStore.state.videoAreaWidth,i=this.uiStore.state.videoAreaHeight;this.nodes.videoWrap.style.cssText=`\n            transform-origin: center center;\n            width: ${this.rotateDeg%2==0?e:i}px;\n            height: ${this.rotateDeg%2==0?i:e}px;\n            transform: rotate(${t}deg);\n        `}rotateVideo(){this.rotateDeg+=1,this.updateRotateVideoStyle()}resetVideoWrap(){this.rotateDeg=0;this.nodes.videoWrap.style.cssText=""}addEventListener(){this.templateNodes.container.addEventListener("click",this.onClickHandler)}removeEventListener(){this.templateNodes.container.removeEventListener("click",this.onClickHandler)}onDispose(){this.resetVideoWrap()}onDisconnect(){this.removeEventListener()}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?T(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&M(e,i,o)})([k.ZP],F.prototype,"onClickHandler",1)
;var L=i(18337),N=i(2528);class P extends n.Su{install(){super.install([v.v,r.F,o.y,a.u,s.t,B.a,Q.e,l.L,F,A.w,I.N,h.D,c.T,d.Q,u.u,p.z,b.x,g.K,y.D,b.x,m.M,u.u,E._,C.u,w.I,x.l,f.Q,L.c,N.U])}}},67633:function(t,e,i){"use strict";i.r(e),i.d(e,{MiniSiteHelper:function(){return b}});i(6498);var n=i(5489),r=i(66292),o=i(18337),a=i(64242),s=i(17371),l=i(48054),A=i(22805),c=i(77673),h=i(55963),d=i(44699),u=i(50669),p=i(11039),g=i(30757),f=i(10490),m=i(49273),y=i(52419);class b extends n.Su{install(){super.install([r.F,o.c,a.y,y.x,s.L,l.w,A.T,c.Q,h.u,d.z,u.l,p.K,g.Q,f.s,m.I])}}},72545:function(t,e,i){"use strict";i.r(e),i.d(e,{PCHelper:function(){return Nt}});i(6498);var n=i(5489),r=i(66292),o=i(85531),a=i(48054),s=i(53982),l=i(68648),A=i(25772),c=i(71030),h=i(17371),d=i(75091),u=i(88913),p=i(98551),g=i(11508),f=i(22805),m=i(77673),y=i(48512),b=i(52419),v=i(11039),E=i(66568),I=i(86722),C=i(21064),B=i(42353),w=i(62240),x=i(95643),Q=i(67102),S=i(94598),k=i(80283),D=i(18337),_=i(29608),R=i(64242),M=i(55963),T=i(12410),F=i(44699),L=i(50669),N=i(82949),P=i(92572),U=i(62557),O=i(83554),G=i(96429),H=i(63801),V=i(54878),Y=i(55508),z=i(2528),W=i(26063),Z=i(49929),j=i(49273),q=i(96411),J=i(9848),K=i(94663),X=i(99718),$=i(12326),tt=i(43199),et=i(10490),it=i(3744),nt=i(58920),rt=i(25289),ot=i(75736),at=i(71427),st=i(28090),lt=i(30451),At=i(56820),ct=i(1624),ht=i(99550),dt=i(89262),ut=i(40762),pt=i.n(ut),gt=i(78089),ft=i.n(gt),mt=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,bt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?yt(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&mt(e,i,o),o};class vt extends n.vq{constructor(){super(...arguments),this.templateNode=this.tpl(),this.switch=!1}install(){super.install(),this.nodes.controlBottomRight.appendChild(this.templateNode),this.templateNode.addEventListener("click",this.onClickHandler),window.addEventListener("setAspect",this.onSetAspect),this.tooltipStore.create({name:"aspect-ratio",title:"锁定宽高比",target:this.templateNode,position:n.DU.TopCenter,tip:!0,renderTarget:this.templateNode})}tpl(){return(0,ht.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-aspect" role="button" aria-label="宽高比" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon">${pt()}</span></div>\n            </div>\n        `)}onSetAspect(t){"unaspect"===(null==t?void 0:t.detail)&&(this.switch=!1,this.handleInitSvg())}onClickHandler(){this.track.e("ctrl_summary_aspect"),this.switch=!this.switch,this.rootPlayer.emit(n.tw.Player_Aspect_Switch_Change,new CustomEvent(n.tw.Player_Aspect_Switch_Change,{detail:this.switch})),this.handleInitSvg()}handleInitSvg(){!0===this.switch?(this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML=`${ft()}`,this.tooltipStore.update("aspect-ratio",{title:"自由宽高比"})):(this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML=`${pt()}`,this.tooltipStore.update("aspect-ratio",{title:"锁定宽高比"}))}onDisconnect(){window.removeEventListener("setAspect",this.onClickHandler)}}bt([dt.ZP],vt.prototype,"onSetAspect",1),bt([dt.ZP],vt.prototype,"onClickHandler",1)
;var Et=i(20733),It=i.n(Et),Ct=JSON.parse('{"v":"5.6.3","fr":60,"ip":17,"op":34,"w":112,"h":88,"nm":"预合成 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"NULL CONTROL","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[56.797,44.266,0],"ix":2},"a":{"a":0,"k":[60,60,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.509},"o":{"x":0.167,"y":0},"t":18,"s":[56.875,62.562,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.994},"o":{"x":0.333,"y":0},"t":25,"s":[59.375,65.062,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":33,"s":[56.875,62.562,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0.293},"o":{"x":0.167,"y":0},"t":83,"s":[56.875,62.562,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":91,"s":[59.375,65.062,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99,"s":[56.875,62.562,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":32,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"t":97,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Path 2","parent":1,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.509},"o":{"x":0.167,"y":0},"t":18,"s":[63.125,57.438,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.994},"o":{"x":0.333,"y":0},"t":25,"s":[65.625,59.938,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":33,"s":[63.125,57.438,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0.293},"o":{"x":0.167,"y":0},"t":83,"s":[63.125,57.438,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":91,"s":[65.625,59.938,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99,"s":[63.125,57.438,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"t":97,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"形状","tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.33,"y":0.932},"o":{"x":0.167,"y":0},"t":17,"s":[56,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.67,"y":1},"o":{"x":0.28,"y":0},"t":20,"s":[61,49,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.997},"o":{"x":0.11,"y":0.156},"t":25,"s":[51,39,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":0},"o":{"x":0.67,"y":0.67},"t":33,"s":[56,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":0.764},"o":{"x":0.167,"y":0.118},"t":83,"s":[56,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.28,"y":0},"t":90,"s":[61,49,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.882},"o":{"x":0.11,"y":0.078},"t":95,"s":[51,39,0],"to":[0,0,0],"ti":[0,0,0]},{"t":99,"s":[56,44,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.333,"y":0},"t":20,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-6.5],[12,-4.5],[12,4.492],[10,6.492],[-10,6.492],[-12,4.492],[-12,-4.5],[-10,-6.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-7.5],[12,-5.5],[12,5.5],[10,7.5],[-10,7.5],[-12,5.5],[-12,-5.5],[-10,-7.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":90,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-6.5],[12,-4.5],[12,4.492],[10,6.492],[-10,6.492],[-12,4.492],[-12,-4.5],[-10,-6.5]],"c":true}]},{"t":95,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-7.5],[12,-5.5],[12,5.5],[10,7.5],[-10,7.5],[-12,5.5],[-12,-5.5],[-10,-7.5]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.695,-0.898],[0,0],[-0.301,0.791],[0,0],[0,0],[0,0],[-0.353,-0.527],[0,0],[0.488,0.459],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-0.311,1.142],[0,0],[0.436,-0.664],[0,0],[0,0],[0,0],[0.259,0.351],[0,0],[-0.498,-0.566],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-7.723,-4.652],[-8.688,-4.652],[-8.688,-2.885],[-9.871,-2.885],[-9.871,-1.997],[-8.699,-1.997],[-10.213,1.058],[-9.788,2.074],[-8.688,-0.113],[-8.688,4.319],[-7.723,4.319],[-7.723,-0.357],[-6.8,0.961],[-6.24,0.17],[-7.723,-1.362],[-7.723,-1.997],[-6.603,-1.997],[-6.603,-2.885],[-7.723,-2.885]],"c":true},"ix":2},"nm":"路径 9","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[-0.332,1.367],[0,0],[0.643,-0.996],[0,0]],"o":[[0,0],[-0.27,1.142],[0,0],[0.602,-0.996]],"v":[[-4.726,-0.035],[-5.628,-0.22],[-6.987,2.981],[-6.126,3.499]],"c":true},"ix":2},"nm":"路径 10","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,0],[0.415,1.093],[0,0],[-0.322,-1.367]],"o":[[-0.301,-1.249],[0,0],[0.373,1.054],[0,0]],"v":[[-0.566,3.216],[-1.634,-0.298],[-2.516,-0.025],[-1.468,3.596]],"c":true},"ix":2},"nm":"路径 11","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0.654],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.249,0],[0.311,0.039]],"o":[[0,0],[0.685,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0.264],[-0.29,0],[0,0]],"v":[[-5.14,4.221],[-4.093,4.221],[-3.055,3.235],[-3.055,-0.933],[-0.597,-0.933],[-0.597,-1.821],[-6.479,-1.821],[-6.479,-0.933],[-4.041,-0.933],[-4.041,3.011],[-4.425,3.411],[-5.338,3.352]],"c":true},"ix":2},"nm":"路径 12","mn":"ADBE Vector Shape - Group","hd":false},{"ind":5,"ty":"sh","ix":6,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-1.136,-4.174],[-5.939,-4.174],[-5.939,-3.295],[-1.136,-3.295]],"c":true},"ix":2},"nm":"路径 13","mn":"ADBE Vector Shape - Group","hd":false},{"ind":6,"ty":"sh","ix":7,"ks":{"a":0,"k":{"i":[[0,0],[1.12,0],[0.56,0.156],[0.021,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.218,0.293],[-0.021,0.322],[0,0],[0.519,-0.859],[0,0],[-0.176,0.566],[-0.498,-0.195],[-2.49,0],[0,0]],"o":[[-0.55,0.039],[-2.054,0],[-0.01,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.249,-0.195],[0.052,-0.293],[0,0],[-0.052,1.064],[0,0],[0.301,-0.478],[0.384,0.478],[0.622,0.244],[0,0],[0,0]],"v":[[9.787,3.255],[7.287,3.313],[3.355,3.069],[3.314,3.06],[3.314,2.191],[4.652,2.191],[4.652,1.371],[3.314,1.371],[3.314,0.531],[4.911,0.531],[4.911,-0.308],[0.472,-0.308],[0.472,0.531],[2.453,0.531],[2.453,2.62],[1.748,1.898],[1.851,0.971],[0.98,0.863],[0.119,3.753],[0.824,4.348],[1.54,2.786],[2.857,3.801],[7.515,4.172],[9.621,4.172]],"c":true},"ix":2},"nm":"路径 14","mn":"ADBE Vector Shape - Group","hd":false},{"ind":7,"ty":"sh","ix":8,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[4.559,-4.359],[0.876,-4.359],[0.876,-0.816],[4.559,-0.816]],"c":true},"ix":2},"nm":"路径 15","mn":"ADBE Vector Shape - Group","hd":false},{"ind":8,"ty":"sh","ix":9,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[3.604,-2.231],[3.604,-1.577],[1.831,-1.577],[1.831,-2.231]],"c":true},"ix":2},"nm":"路径 16","mn":"ADBE Vector Shape - Group","hd":false},{"ind":9,"ty":"sh","ix":10,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[3.604,-2.934],[1.831,-2.934],[1.831,-3.598],[3.604,-3.598]],"c":true},"ix":2},"nm":"路径 17","mn":"ADBE Vector Shape - Group","hd":false},{"ind":10,"ty":"sh","ix":11,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.041,-0.205],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.031,0.215],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.021,0.205],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.041,-0.195],[0,0],[0,0]],"v":[[9.538,-4.359],[4.994,-4.359],[4.994,-3.52],[6.851,-3.52],[6.758,-2.905],[5.274,-2.905],[5.274,1.107],[6.146,1.107],[6.146,-2.114],[8.387,-2.114],[8.387,1.107],[9.299,1.107],[9.299,-2.905],[7.629,-2.905],[7.743,-3.52],[9.538,-3.52]],"c":true},"ix":2},"nm":"路径 18","mn":"ADBE Vector Shape - Group","hd":false},{"ind":11,"ty":"sh","ix":12,"ks":{"a":0,"k":{"i":[[0,0],[0.622,0.439],[0,0],[-0.373,-0.43]],"o":[[-0.425,-0.449],[0,0],[0.664,0.498],[0,0]],"v":[[9.673,2.406],[8.106,1.068],[7.443,1.654],[8.988,3.05]],"c":true},"ix":2},"nm":"路径 19","mn":"ADBE Vector Shape - Group","hd":false},{"ind":12,"ty":"sh","ix":13,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0.259,-0.41],[0.747,-0.254],[0,0],[-0.363,0.508],[-0.041,0.918]],"o":[[0,0],[0,0],[-0.021,0.664],[-0.27,0.39],[0,0],[0.799,-0.273],[0.353,-0.547],[0,0]],"v":[[7.723,-1.743],[6.81,-1.743],[6.81,-0.337],[6.384,1.283],[4.86,2.249],[5.389,3.04],[7.131,1.859],[7.723,-0.337]],"c":true},"ix":2},"nm":"路径 20","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":14,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":276,"st":10,"bm":0}],"markers":[]}'),Bt=JSON.parse('{"v":"5.6.3","fr":60,"ip":17,"op":34,"w":112,"h":88,"nm":"预合成 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"NULL CONTROL","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[56.797,44.266,0],"ix":2},"a":{"a":0,"k":[60,60,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.509},"o":{"x":0.333,"y":0},"t":18,"s":[56.875,62.562,0],"e":[59.375,65.062,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[59.375,65.062,0],"e":[56.875,62.562,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[56.875,62.562,0],"e":[56.875,62.562,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0.293},"o":{"x":0.167,"y":0},"t":83,"s":[56.875,62.562,0],"e":[59.375,65.062,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":91,"s":[59.375,65.062,0],"e":[56.875,62.562,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"t":97}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Path 2","parent":1,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.509},"o":{"x":0.333,"y":0},"t":18,"s":[63.125,57.438,0],"e":[65.625,59.938,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[65.625,59.938,0],"e":[63.125,57.438,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[63.125,57.438,0],"e":[63.125,57.438,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0.293},"o":{"x":0.167,"y":0},"t":83,"s":[63.125,57.438,0],"e":[65.625,59.938,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":91,"s":[65.625,59.938,0],"e":[63.125,57.438,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"t":97}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"形状","tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.67,"y":1},"o":{"x":0.67,"y":0},"t":17,"s":[56,44,0],"e":[51,39,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.33,"y":0.943},"o":{"x":0.11,"y":0.049},"t":20,"s":[51,39,0],"e":[61,49,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.28,"y":0},"t":25,"s":[61,49,0],"e":[56,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[56,44,0],"e":[56,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":0.764},"o":{"x":0.167,"y":0.118},"t":83,"s":[56,44,0],"e":[61,49,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.28,"y":0},"t":90,"s":[61,49,0],"e":[51,39,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.882},"o":{"x":0.11,"y":0.078},"t":95,"s":[51,39,0],"e":[56,44,0],"to":[0,0,0],"ti":[0,0,0]},{"t":99}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-7.5],[12,-5.5],[12,5.5],[10,7.5],[-10,7.5],[-12,5.5],[-12,-5.5],[-10,-7.5]],"c":true}],"e":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-6.5],[12,-4.5],[12,4.492],[10,6.492],[-10,6.492],[-12,4.492],[-12,-4.5],[-10,-6.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-6.5],[12,-4.5],[12,4.492],[10,6.492],[-10,6.492],[-12,4.492],[-12,-4.5],[-10,-6.5]],"c":true}],"e":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-6.5],[12,-4.5],[12,4.492],[10,6.492],[-10,6.492],[-12,4.492],[-12,-4.5],[-10,-6.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":90,"s":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-6.5],[12,-4.5],[12,4.492],[10,6.492],[-10,6.492],[-12,4.492],[-12,-4.5],[-10,-6.5]],"c":true}],"e":[{"i":[[0,0],[0,-1.1],[0,0],[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0]],"o":[[1.1,0],[0,0],[0,1.1],[0,0],[-1.1,0],[0,0],[0,-1.1],[0,0]],"v":[[10,-7.5],[12,-5.5],[12,5.5],[10,7.5],[-10,7.5],[-12,5.5],[-12,-5.5],[-10,-7.5]],"c":true}]},{"t":95}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.695,-0.898],[0,0],[-0.301,0.791],[0,0],[0,0],[0,0],[-0.353,-0.527],[0,0],[0.488,0.459],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[-0.311,1.142],[0,0],[0.436,-0.664],[0,0],[0,0],[0,0],[0.259,0.351],[0,0],[-0.498,-0.566],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-7.723,-4.652],[-8.688,-4.652],[-8.688,-2.885],[-9.871,-2.885],[-9.871,-1.997],[-8.699,-1.997],[-10.213,1.058],[-9.788,2.074],[-8.688,-0.113],[-8.688,4.319],[-7.723,4.319],[-7.723,-0.357],[-6.8,0.961],[-6.24,0.17],[-7.723,-1.362],[-7.723,-1.997],[-6.603,-1.997],[-6.603,-2.885],[-7.723,-2.885]],"c":true},"ix":2},"nm":"路径 9","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[-0.332,1.367],[0,0],[0.643,-0.996],[0,0]],"o":[[0,0],[-0.27,1.142],[0,0],[0.602,-0.996]],"v":[[-4.726,-0.035],[-5.628,-0.22],[-6.987,2.981],[-6.126,3.499]],"c":true},"ix":2},"nm":"路径 10","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,0],[0.415,1.093],[0,0],[-0.322,-1.367]],"o":[[-0.301,-1.249],[0,0],[0.373,1.054],[0,0]],"v":[[-0.566,3.216],[-1.634,-0.298],[-2.516,-0.025],[-1.468,3.596]],"c":true},"ix":2},"nm":"路径 11","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0.654],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.249,0],[0.311,0.039]],"o":[[0,0],[0.685,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0.264],[-0.29,0],[0,0]],"v":[[-5.14,4.221],[-4.093,4.221],[-3.055,3.235],[-3.055,-0.933],[-0.597,-0.933],[-0.597,-1.821],[-6.479,-1.821],[-6.479,-0.933],[-4.041,-0.933],[-4.041,3.011],[-4.425,3.411],[-5.338,3.352]],"c":true},"ix":2},"nm":"路径 12","mn":"ADBE Vector Shape - Group","hd":false},{"ind":5,"ty":"sh","ix":6,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-1.136,-4.174],[-5.939,-4.174],[-5.939,-3.295],[-1.136,-3.295]],"c":true},"ix":2},"nm":"路径 13","mn":"ADBE Vector Shape - Group","hd":false},{"ind":6,"ty":"sh","ix":7,"ks":{"a":0,"k":{"i":[[0,0],[1.12,0],[0.56,0.156],[0.021,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.218,0.293],[-0.021,0.322],[0,0],[0.519,-0.859],[0,0],[-0.176,0.566],[-0.498,-0.195],[-2.49,0],[0,0]],"o":[[-0.55,0.039],[-2.054,0],[-0.01,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.249,-0.195],[0.052,-0.293],[0,0],[-0.052,1.064],[0,0],[0.301,-0.478],[0.384,0.478],[0.622,0.244],[0,0],[0,0]],"v":[[9.787,3.255],[7.287,3.313],[3.355,3.069],[3.314,3.06],[3.314,2.191],[4.652,2.191],[4.652,1.371],[3.314,1.371],[3.314,0.531],[4.911,0.531],[4.911,-0.308],[0.472,-0.308],[0.472,0.531],[2.453,0.531],[2.453,2.62],[1.748,1.898],[1.851,0.971],[0.98,0.863],[0.119,3.753],[0.824,4.348],[1.54,2.786],[2.857,3.801],[7.515,4.172],[9.621,4.172]],"c":true},"ix":2},"nm":"路径 14","mn":"ADBE Vector Shape - Group","hd":false},{"ind":7,"ty":"sh","ix":8,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[4.559,-4.359],[0.876,-4.359],[0.876,-0.816],[4.559,-0.816]],"c":true},"ix":2},"nm":"路径 15","mn":"ADBE Vector Shape - Group","hd":false},{"ind":8,"ty":"sh","ix":9,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[3.604,-2.231],[3.604,-1.577],[1.831,-1.577],[1.831,-2.231]],"c":true},"ix":2},"nm":"路径 16","mn":"ADBE Vector Shape - Group","hd":false},{"ind":9,"ty":"sh","ix":10,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[3.604,-2.934],[1.831,-2.934],[1.831,-3.598],[3.604,-3.598]],"c":true},"ix":2},"nm":"路径 17","mn":"ADBE Vector Shape - Group","hd":false},{"ind":10,"ty":"sh","ix":11,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[0.041,-0.205],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-0.031,0.215],[0,0]],"o":[[0,0],[0,0],[0,0],[-0.021,0.205],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0.041,-0.195],[0,0],[0,0]],"v":[[9.538,-4.359],[4.994,-4.359],[4.994,-3.52],[6.851,-3.52],[6.758,-2.905],[5.274,-2.905],[5.274,1.107],[6.146,1.107],[6.146,-2.114],[8.387,-2.114],[8.387,1.107],[9.299,1.107],[9.299,-2.905],[7.629,-2.905],[7.743,-3.52],[9.538,-3.52]],"c":true},"ix":2},"nm":"路径 18","mn":"ADBE Vector Shape - Group","hd":false},{"ind":11,"ty":"sh","ix":12,"ks":{"a":0,"k":{"i":[[0,0],[0.622,0.439],[0,0],[-0.373,-0.43]],"o":[[-0.425,-0.449],[0,0],[0.664,0.498],[0,0]],"v":[[9.673,2.406],[8.106,1.068],[7.443,1.654],[8.988,3.05]],"c":true},"ix":2},"nm":"路径 19","mn":"ADBE Vector Shape - Group","hd":false},{"ind":12,"ty":"sh","ix":13,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0.259,-0.41],[0.747,-0.254],[0,0],[-0.363,0.508],[-0.041,0.918]],"o":[[0,0],[0,0],[-0.021,0.664],[-0.27,0.39],[0,0],[0.799,-0.273],[0.353,-0.547],[0,0]],"v":[[7.723,-1.743],[6.81,-1.743],[6.81,-0.337],[6.384,1.283],[4.86,2.249],[5.389,3.04],[7.131,1.859],[7.723,-0.337]],"c":true},"ix":2},"nm":"路径 20","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[400,400],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":14,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":276,"st":10,"bm":0}],"markers":[]}'),wt=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,Qt=(t,e,i,n)=>{
for(var r,o=n>1?void 0:n?xt(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&wt(e,i,o),o};class St extends n.vq{constructor(){super(...arguments),this.templateNode=this.tpl(),this.isClosed=!1,this.animationName=""}install(){super.install(),this.configStore.pcSpecialMode&&(this.nodes.controlBottomRight.appendChild(this.templateNode),this.createAnimation(),this.templateNode.addEventListener("click",this.onClickHandler),this.updateStatue(),this.summaryAnimation.addEventListener("complete",this.onSummaryCompleteHandler))}tpl(){return(0,ht.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-clear" role="button"  tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon"></span></div>\n            </div>\n        `)}onClickHandler(){this.createAnimation(),this.summaryAnimation.play(),this.isClosed=!this.isClosed,this.updateStatue(),this.track.e("ctrl_summary_clear"),this.rootPlayer.emit(n.tw.Player_Summary_Change,new CustomEvent(n.tw.Player_Summary_Change,{detail:this.isClosed})),this.nodes.summaryWrap.style.display=this.isClosed?"none":"block"}createAnimation(){this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML="",this.summaryAnimation=It().loadAnimation({name:"summaryOn",container:this.templateNode.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:this.isClosed?Ct:Bt})}removeEventListener(){var t;this.templateNode.removeEventListener("click",this.onClickHandler),null==(t=this.summaryAnimation)||t.removeEventListener("complete",this.onSummaryCompleteHandler)}updateStatue(){this.tooltipStore.remove("ctrl:summary-clear"),this.tooltipStore.create({tip:!0,name:"ctrl:summary-clear",title:this.isClosed?"展示标题":"隐藏标题",target:this.templateNode,position:n.DU.TopCenter})}onSummaryCompleteHandler(){var t;null==(t=this.summaryAnimation)||t.stop(),this.summaryAnimation=null}onDisconnect(){var t;null==(t=this.summaryAnimation)||t.destroy(),this.summaryAnimation=null,this.removeEventListener()}}Qt([dt.ZP],St.prototype,"onClickHandler",1),Qt([dt.ZP],St.prototype,"onSummaryCompleteHandler",1);var kt=i(22451),Dt=i(92115);const _t=class{static initCbEvents(t){window.addEventListener("click",(e=>_t.windowCbClick(t,e)),!0)}static addEventsForMap(t,e){_t.cbMap.has(e)?_t.cbMap.get(e).push(t):_t.cbMap.set(e,[t])}static windowCbClick(t,e){var i;null==(i=_t.cbMap.get(t))||i.forEach((t=>t(e)))}static reset(t){_t.cbMap.delete(t)}};let Rt=_t;Rt.cbMap=new Map;class Mt extends n.vq{constructor(){super(...arguments),this.enteredToken=this.spx+"-entered"}install(){super.install(),Dt.T.initEvents(),this.configStore.pcSpecialMode&&Rt.initCbEvents(this.rootPlayer.iid);const t=document.createElement("div");t.className=`${this.ppx}-app-num`,this.nodes.topWrap.appendChild(t),this.dc.onlineCount=(0,kt.EH)((()=>{const{allNum:e}=this.sendStore.state;t.innerHTML=`<b>${e}</b>人正在看`}))}onDispose(){}onDisconnect(){Dt.T.reset(),this.configStore.pcSpecialMode&&Rt.reset(this.rootPlayer.iid)}}var Tt=i(54734),Ft=i(71859),Lt=i(31036);class Nt extends n.Su{install(){super.install([Mt,r.F,o.u,f.T,a.w,s.H,m.Q,A.E,c.P,u.u,p.R,y.t,St,d.a,h.L,l.D,g.e,vt,b.x,v.K,E.q,I.C,C.J,x.D,B.b,w.M,Q.K,ot.w,S.o,it.t,nt.s,k.Q,D.c,_._,R.y,M.u,T.v,F.z,L.l,N.C,P.o,H.Q,U.N,O.H,G.E,V.D,Y.$,z.U,W.J,Z.a,j.I,q.T,J.G,X.S,K.q,$.X,Lt.L,tt.I,et.s,rt.T,ct.s,at.k,st.e,lt.i,Tt.L,At.G,Ft.j])}}},28090:function(t,e,i){"use strict";i.d(e,{e:function(){return f}});var n=i(22451),r=i(21962),o=i(5489),a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,c=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,h=(t,e)=>{for(var i in e||(e={}))l.call(e,i)&&c(t,i,e[i]);if(s)for(var i of s(e))A.call(e,i)&&c(t,i,e[i]);return t};class d{constructor(t){this.options=h(h({},{src:"",autoplay:!1,loop:!0,canvas:null,width:750,height:750,container:null}),t),this.radio=window.devicePixelRatio,this.initVideo(),this.initWebgl(),this.options.autoplay&&this.video.play()}get currentTime(){return this.video.currentTime}get duration(){return this.video.duration}get src(){return this.video.src}initVideo(){const{loop:t,src:e,autoplay:i,container:n}=this.options,r=document.createElement("video");r.autoplay=i,r.muted=!0,r.volume=0,r.muted=!0,r.loop=t,r.style.display="none",r.src=e,r.crossOrigin="anonymous",r.setAttribute("type","video/mp4"),r.addEventListener("playing",(()=>{this.canCopyVideo=!0})),null==n||n.appendChild(r),this.video=r}drawFrame(){this.playing&&this.drawWebglFrame(),this.raf1=window.requestAnimationFrame((()=>{this.drawFrame()}))}drawWebglFrame(){const t=this.gl;this.canCopyVideo&&(t.texImage2D(t.TEXTURE_2D,0,t.RGB,t.RGB,t.UNSIGNED_BYTE,this.video),t.drawArrays(t.TRIANGLE_STRIP,0,4))}destroy(){this.options.container&&(this.options.container.innerHTML=""),this.raf1&&window.cancelAnimationFrame(this.raf1),this.raf2&&window.cancelAnimationFrame(this.raf2)}play(){this.playing=!0,this.canCopyVideo=!1,this.video.play()}pause(){this.playing=!1,this.video.pause()}reload(t){this.video.src=t,this.video.load()}onCanplay(t){t&&this.video.addEventListener("canplay",(()=>{t()}))}onError(t){t&&this.video.addEventListener("error",(()=>{t()}))}onTimeupdate(t){t&&this.video.addEventListener("timeupdate",(()=>{t()}))}onEnded(t){this.canCopyVideo=!1,t&&this.video.addEventListener("ended",(()=>{t()}))}onPlay(t){this.video.addEventListener("play",(()=>{this.raf2=window.requestAnimationFrame((()=>{this.drawFrame()})),t&&t()}))}initWebgl(){var t;this.canvas=this.options.canvas,this.canvas.width=this.options.width*this.radio,this.canvas.height=this.options.height*this.radio,this.canvas.addEventListener("click",(()=>{this.play()})),this.canvas||(this.canvas=document.createElement("canvas"),null==(t=this.options.container)||t.appendChild(this.canvas));const e=this.canvas.getContext("webgl");e.viewport(0,0,this.options.width*this.radio,this.options.height*this.radio);const i=this.initShaderProgram(e);e.linkProgram(i),e.useProgram(i);const n=this.initBuffer(e);e.bindBuffer(e.ARRAY_BUFFER,n.position);const r=e.getAttribLocation(i,"a_position");e.enableVertexAttribArray(r),e.vertexAttribPointer(r,2,e.FLOAT,!1,0,0),e.bindBuffer(e.ARRAY_BUFFER,n.texture);const o=e.getAttribLocation(i,"a_texCoord");e.enableVertexAttribArray(o),e.vertexAttribPointer(o,2,e.FLOAT,!1,0,0);const a=this.initTexture(e);e.bindTexture(e.TEXTURE_2D,a);const s=e.getUniformLocation(i,"u_scale");e.uniform2fv(s,[this.radio,this.radio]),this.gl=e}createShader(t,e,i){const n=t.createShader(e);return t.shaderSource(n,i),t.compileShader(n),t.getShaderParameter(n,t.COMPILE_STATUS)||console.error(t.getShaderInfoLog(n)),n}initShaderProgram(t){const e=this.createShader(t,t.VERTEX_SHADER,"\n        attribute vec2 a_position;\n        attribute vec2 a_texCoord;\n        varying vec2 v_texCoord;\n        uniform vec2 u_scale;\n        void main(void) {\n            gl_Position = vec4(a_position, 0.0, 1.0);\n            v_texCoord = a_texCoord;\n        }\n        "),i=this.createShader(t,t.FRAGMENT_SHADER,"\n        precision lowp float;\n        varying vec2 v_texCoord;\n        uniform sampler2D u_sampler;\n        void main(void) {\n            gl_FragColor = vec4(texture2D(u_sampler, v_texCoord).rgb, texture2D(u_sampler, v_texCoord+vec2(-0.5, 0)).r);\n        }\n        "),n=t.createProgram();return t.attachShader(n,e),t.attachShader(n,i),t.linkProgram(n),n}initBuffer(t){const e=new Float32Array([-1,1,1,1,-1,-1,1,-1]),i=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,i),t.bufferData(t.ARRAY_BUFFER,e,t.STATIC_DRAW);const n=t.createBuffer(),r=new Float32Array([.5,1,1,1,.5,0,1,0]);return t.bindBuffer(t.ARRAY_BUFFER,n),t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW),{position:i,texture:n}}initTexture(t){const e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,1),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}}var u=i(15962),p=i(51102),g=i(68918);class f extends r.A{constructor(){super(...arguments),
this.loopCount=0}install(){return super.install(),this.dc.businessConfig=(0,n.U5)((()=>this.dmCmdStore.state.businessConfig),(t=>{t&&(0,u.M)()&&!p.X.safari.alike&&(this.businessConfig={animationAttr:t.animationAttr,jumpUrl:t.jumpUrl,resource:t.resource,loopNum:t.loopNum,advancedBlocked:t.advancedBlocked},this.init(),this.startToPlay())}),{fireImmediately:!0}),this}init(){if(this.inited)return;const t=this.dmSettingStore.state;this.config={videoSpeed:this.settingStore.state.playbackRate||1,speedSync:t.speedsync,fullscreensync:t.fullscreensync,typeSpecial:t.typeSpecial},this.tpl(),this.resize(),this.inited=!0,this.dc.businessClear=(0,n.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.clear()})),this.dc.dmBusinessSet=(0,n.EH)((()=>{const t=this.dmSettingStore.state.currentSet;if(t)for(let e in t)Object.prototype.hasOwnProperty.call(this.config,e)&&(this.config[e]=t[e],"typeSpecial"!==e||t[e]?this.canvas.classList.add("video-show"):this.canvas.classList.remove("video-show"))})),this.dc.dmVisible=(0,n.EH)((()=>{this.sendStore.dmVisible?this.canvas.classList.add("video-show"):this.canvas.classList.remove("video-show")})),this.rootPlayer.on(o.p2.PLAYER_BEFORE_SEEKING,(()=>{this.clear()})),this.nodes.businessWrap.addEventListener("click",(t=>{if(!this.businessConfig.jumpUrl)return;t.stopPropagation();const e=this.formatUrl(this.businessConfig.jumpUrl);(0,g.x)(e,this.rootPlayer)}))}clear(){this.nodes.businessWrap.classList.add("business-hide"),this.businessConfig=null,this.loopCount=0}advancedBlocked(){var t,e;return 1===(null==(t=this.businessConfig)?void 0:t.advancedBlocked)&&!(null==(e=this.config)?void 0:e.typeSpecial)}resize(){this.inited&&super.resize()}startToPlay(){var t;if(!(this.businessConfig&&this.nodes.businessWrap.classList.contains("business-hide")&&(null==(t=this.config)?void 0:t.typeSpecial)&&this.sendStore.dmVisible))return;const e=this.formatUrl(this.businessConfig.resource);this.nodes.businessWrap.classList.remove("business-hide"),this.alphaVideo.src!==e&&this.alphaVideo.reload(e),this.alphaVideo.play()}tpl(){const t=this.nodes.businessWrap;t.insertAdjacentHTML("beforeend",`<canvas class="${this.ppx}-business-video"></canvas>`),this.canvas=t.querySelector(`.${this.ppx}-business-video`),this.alphaVideo=new d({container:t,canvas:this.canvas,width:750,height:750,autoplay:!1,loop:!1}),this.alphaVideo.onTimeupdate((()=>{this.businessConfig&&(this.businessConfig.currentTime=this.alphaVideo.currentTime,this.loopCount===this.businessConfig.loopNum-1&&this.alphaVideo.duration-this.alphaVideo.currentTime<=.3&&this.canvas.classList.contains("video-show")?this.canvas.classList.remove("video-show"):this.loopCount*this.alphaVideo.duration+this.alphaVideo.currentTime>=8&&this.canvas.classList.contains("video-show")&&(this.canvas.classList.remove("video-show"),window.setTimeout((()=>{this.clear()}),300)))})),this.alphaVideo.onPlay((()=>{this.businessConfig&&0===this.loopCount&&this.canvas.classList.add("video-show")})),this.alphaVideo.onEnded((()=>{this.businessConfig&&(this.loopCount<this.businessConfig.loopNum&&this.alphaVideo.play(),this.loopCount++,this.loopCount===this.businessConfig.loopNum&&this.clear())})),this.alphaVideo.onError((()=>{this.clear()})),this.alphaVideo.onCanplay()}formatUrl(t){let e=t.replace("http://","//");return e=e.replace("https://","//"),0!==e.indexOf("//")&&(e="//"+e),e}onDispose(){var t;super.onDispose(),this.clear(),null==(t=this.alphaVideo)||t.destroy(),this.inited=!1}onDisconnect(){var t;super.onDisconnect(),this.clear(),null==(t=this.alphaVideo)||t.destroy(),this.inited=!1}}},21962:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(5489),r=i(22451),o=i(68748),a=Math.pow;class s extends n.vq{constructor(t){super(t),this.closeID="-popup-dm-close",this.shrinkID="-popup-dm-shrink",this.shrinkState={OFF:0,ON:1,HIDE:2},this.loadPromise={},this.fold={},this.closeID=this.ppx+this.closeID,this.shrinkID=this.ppx+this.shrinkID,this.rootPlayer.on(n.tw.Player_LoadedMetadata,(()=>{this.resize()})),this.dc.resize=(0,r.U5)((()=>({height:this.uiStore.state.videoAreaHeight,width:this.uiStore.state.videoAreaWidth,videoNodeWidth:this.uiStore.state.videoNodeWidth,videoNodeHeight:this.uiStore.state.videoNodeHeight})),(({height:t,width:e,videoNodeWidth:i,videoNodeHeight:n})=>{e&&t&&i&&n&&this.resize()}),{fireImmediately:!0}),this.dc.dmVisible=(0,r.EH)((()=>{this.visible=this.dmCmdStore.cmdVisible,this.visible?this.timeUpdate():this.hide()})),this.dc.timeUpdate=(0,r.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.timeUpdate()})),this.wrap=this.nodes.cmdInside}get cTime(){return this.portStore.getCurrentTime()}get creator(){return this.dmCmdStore.creator}loadDm(t){return!t.zip||this.loadPromise[t.zip]||(this.loadPromise[t.zip]=this.load(t.zip).then((e=>{this.fold[t.zip]=e}))),this.loadPromise[t.zip]}load(t){return(0,o.qo)(t).then((t=>(0,o.Ri)(t))).catch((t=>(console.warn(t),{})))}getScale(t){let e=1,i=this.uiStore.state;const n=a(i.videoAreaWidth,2)+a(i.videoAreaHeight,2);switch(!0){case n<a(700,2):e=.7;break;case n<a(1500,2):e=1;break;default:e=1.5}return t={scaleS:e,scaleP:i.videoNodeWidth/667},this.scale=t,t}showBaseAnimate(t,e=1){t.style.transition="none",t.style.transform="translate(-50%,-50%) scale("+.98*e,setTimeout((()=>{t.style.transition="",t.style.transform=`translate(-50%,-50%) scale(${e}`}),20)}renderCloseTime(t,e,i=this.closeID){this.closeBtnStart=t,this.closeBtnEnd=e,this.closeBtnId=i,this.closeBtnAnimate&&window.cancelAnimationFrame(this.closeBtnAnimate),this.closeBtnAnimate=window.requestAnimationFrame((()=>{this.nextcloseBtnFrame()}))}closeHandler(t=null){console.log("base close")}resize(){this.shrinkBtn&&(this.scale=null,this.getScale())}timeUpdate(){}hide(){this.shrinkBtn&&(this.shrinkBtn.classList.add(`${this.shrinkID}-hide`),setTimeout((()=>{var t,e;(null==(t=this.shrinkBtn)?void 0:t.classList.contains(`${this.shrinkID}-hide`))&&(null==(e=this.shrinkBtn)||e.remove(),this.shrinkBtn=null)}),300))}moveTrigger(t){this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Creator_Attention_Pos_Update,data:t}}))}renderPercent(){const t=Math.floor((this.cTime-this.closeBtnStart)/(this.closeBtnEnd-this.closeBtnStart)*100),e=this.closeBtnId,i=e===this.shrinkID?this.nodes.videoArea:this.baseElement,[n,r]=[null==i?void 0:i.querySelector(`.${e}-left-bar`),null==i?void 0:i.querySelector(`.${e}-right-bar`)];n&&r&&(this.setPercent(n,Math.min(50,t)),this.setPercent(r,t-50))}setPercent(t,e){t.style.transform=`rotate(${e<0?-45:-45-3.6*e}deg)`}nextcloseBtnFrame(){this.mediaStore.state.paused||(this.closeBtnStart<=this.cTime&&this.closeBtnEnd>this.cTime&&this.renderPercent(),this.closeBtnAnimate=window.requestAnimationFrame((()=>{this.nextcloseBtnFrame()})))}onDispose(){super.onDispose(),this.closeBtnAnimate&&window.cancelAnimationFrame(this.closeBtnAnimate)}}},94598:function(t,e,i){"use strict";i.d(e,{o:function(){return b}});var n=i(22451),r=i(42718),o=i.n(r),a=i(74696),s=i.n(a),l=i(21962),A=i(653),c=i(5489);const h=["","-webkit-","-moz-","-ms-"],d=1,u=2,p=3,g=4,f=5,m=6,y=7;class b extends l.A{constructor(){super(...arguments),this.list=new A.n,this.cList=[],this.recyclingDiv=[],this.showList=[],this.btnSize={big:0,small:0}}install(){return super.install(),this.dc.addCrossList=(0,n.U5)((()=>this.dmListStore.multiViewBtn),(t=>{var e;if(null==t?void 0:t.length){this.showList=t;const i=null==(e=t[0].multiView)?void 0:e.buttonMaterial;if(!i)return;this.load(i).then((t=>{this.folds=t||{},this.init()}))}}),{fireImmediately:!0}),this.dc.addClipList=(0,n.U5)((()=>{var t;return null==(t=this.dmListStore.state.addCrossList)?void 0:t.slice(0)}),(t=>{const e=null==t?void 0:t.length;if(e){let i=0;for(;i<e;)this.list.binsert(t[i],A.w),i++}else this.list.length=0})),this}init(){this.hasCross=!0;const t=this.dmSettingStore.state;this.config={duration:4500,speedplus:t.speedplus,fontsize:t.fontsize,videoSpeed:this.settingStore.state.playbackRate||1,height:500,opacity:t.opacity,speedSync:t.speedsync,fontfamily:t.fontfamily,fullscreensync:t.fullscreensync},this.tpl(),this.resize(),this.dp.dmPause=(0,n.U5)((()=>this.danmakuStore.isPaused),(t=>{
t?this.pause():this.play()}),{fireImmediately:!0}),this.mediaStore.state.paused||this.nextFrame(),this.inited||(this.cmdName="cross",this.inited=!0,this.dc.playbackRate=(0,n.EH)((()=>{this.config.videoSpeed=this.settingStore.state.playbackRate||1})),this.dc.crossClear=(0,n.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.clear()})),this.dc.dmCrossSet=(0,n.EH)((()=>{const t=this.dmSettingStore.state.currentSet;if(t)for(let e in t)Object.prototype.hasOwnProperty.call(this.config,e)&&(this.config[e]=t[e])})),this.dc.timeUpdate=(0,n.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.mediaStore.state.paused||this.play()})),this.rootPlayer.on(c.p2.PLAYER_BEFORE_SEEKING,(()=>{this.clear()})))}pause(){this.paused=!0;const t=Date.now();this.cList.forEach((e=>{this.stopDm(e,t)}))}play(){if(!this.paused)return;this.paused=!1;const t=Date.now();this.cList.forEach((e=>{this.runDm(e,t)})),this.animate&&window.cancelAnimationFrame(this.animate),this.runNext()}inShow(t){return this.showList.some((e=>{if(t>=e.start&&t<=e.end)return this.show(),!0}))}show(){!this.isShow&&this.btnSize.big&&(this.isShow=!0,this.template.line.style.left=this.btnSize.big+"px",this.template.wrap.classList.add(`${this.ppx}-show`),this.template.wrap.classList.remove(`${this.ppx}-show-s`))}hide(){this.clear()}hideAll(){this.isShow&&(this.hide(),this.isShow=!1,this.template.wrap.classList.remove(`${this.ppx}-show`),this.scaleBtnTimer&&clearTimeout(this.scaleBtnTimer),this.scaleBtnTimer=null)}runNext(){this.animate=window.requestAnimationFrame((()=>{this.nextFrame()}))}nextFrame(){var t;const e=this.cTime;if(!this.inShow(e))return this.hideAll(),this.pause(),this.template.wrap.classList.remove(`${this.ppx}-show-s`),void(this.showSmallBtn=!1);if(this.scaleBtnTimer||(this.dmEvent(d),this.scaleBtnTimer=window.setTimeout((()=>{this.smallBtn()}),1e4)),!(null==(t=this.list)?void 0:t.length)||!this.visible)return void this.pause();const i=Date.now();if(this.hideDm)return this.cList.push(this.hideDm),this.runDm(this.hideDm,i),this.hideDm=null,void this.runNext();if(this.paused)return;const n=this.updateX(i);for(let t=0;t<this.list.length&&!((null==n?void 0:n.enter)>i);t++){const r=this.list[t],o=e-r.stime;if(!(r.on||o<0||o>.05||this.blockStore.judgeWord(r))){if(this.hideDm=this.renderDm(r,i),!n)break;n.end>=this.hideDm.middle&&(this.end(this.hideDm),this.hideDm=null);break}}this.runNext()}smallBtn(){this.showSmallBtn=!0,this.dmEvent(u),this.template.line.style.left=(this.btnSize.small||60)+"px",this.template.wrap.classList.add(`${this.ppx}-show-s`)}updateX(t){if(this.cList.length){for(let e=0;e<this.cList.length;e++){const i=this.cList[e];t>i.end&&!i.stop&&(this.cList.splice(e,1),this.end(i),e--)}let e;for(let t=this.cList.length-1;t>=0&&(e=this.cList[t],e.hover);t--)e=null;return e}}resetRender(t,e){t.stime=e-t.duration+t.rest,t.end=t.stime+t.duration,t.enter=t.stime+t.width/t.speed,t.middle=t.end-t.width/t.speed}end(t){t.dm.on=!1,t.dom.classList.add(`${this.ppx}-hide`),this.recyclingDiv.push(t.dom)}clear(){this.cList.forEach((t=>{this.end(t)})),this.cList.length=0}renderDm(t,e){var i;let n;this.recyclingDiv.length?n=this.recyclingDiv.shift():(n=document.createElement("div"),n.setAttribute("data-action","dm"),this.template.line.appendChild(n),this.addEvents(n)),n.setAttribute("data-id",t.dmid),n.textContent=t.text,n.className=`${this.ppx}-cross-dm`;const{width:r}=n.getBoundingClientRect(),o=this.width+r,a=(512+r)/this.config.duration*this.config.speedplus*(this.config.speedSync?this.config.videoSpeed:1),s=o/a;let l=`right:${this.width}px;opacity:${this.config.opacity};font-family: ${this.config.fontfamily}, Arial, Helvetica, sans-serif;`;const A=null==(i=this.folds)?void 0:i.reverse_danmaku;if(A){const{fillColor:t,strokeColor:e,strokeWidth:i}=A;t&&(l+=`color:${t};`),e&&(l+=`text-shadow:0 ${i}px ${e}, ${i}px 0 ${e}, -${i}px 0 ${e}, 0 -${i}px ${e};`)}t.on=!0;const c={dm:t,width:r,speed:a,duration:s,distance:o,x:0,dom:n,rest:s,startRunTime:e,stime:e,end:e+s,enter:e+r/a,middle:e+this.width/a,style:l,stop:!0};return n.style.cssText=c.style,c}resize(){this.hasCross&&(super.resize(),this.playerRect=this.nodes.videoArea.getBoundingClientRect(),this.playerRect.x=this.playerRect.left+document.documentElement.scrollLeft,this.width=this.uiStore.state.containerWidth)}renderStyle(t,e,i){let n="";for(let t=0;t<h.length;t++)n+=`${h[t]}transform: translateX(${e}px) translateY(0px) translateZ(0px);\n            ${h[t]}transition: ${h[t]}transform ${i}ms linear;`;t.dom.style.cssText=t.style+n}tpl(){const{expand:t,shrink:e,interaction:i}=this.folds,n=this.ppx,r=`<div class="${n}-cross">\n                        <div class="${n}-cross-btn" data-action="btn">\n                        <img class="${n}-cross-btn-img" src="${t}"/>\n                        <img class="${n}-cross-btn-img-s" src="${e}"/>\n                        </div>\n                        <div class="${n}-cross-right">\n                            <div class="${n}-cross-line"></div>\n                            <div class="${n}-cross-tip">\n                                <img class="${n}-cross-tip-img" src="${i}"/>\n                                <span class="${n}-cross-tip-center">${o()}</span>\n                                <span class="${n}-cross-tip-left">${s()}</span>\n                            </div>\n                        </div>\n                    </div>`,a=this.nodes.cmdDanmaku;a.insertAdjacentHTML("beforeend",r),this.template={wrap:a.querySelector(`.${n}-cross`),btn:a.querySelector(`.${n}-cross-btn`),img:a.querySelector(`.${n}-cross-btn-img`),imgs:a.querySelector(`.${n}-cross-btn-img-s`),line:a.querySelector(`.${n}-cross-line`),tip:a.querySelector(`.${n}-cross-tip`)},this.template.img.addEventListener("load",(()=>{const t=this.template.img.getBoundingClientRect();this.btnSize.big=t.width+10})),this.template.imgs.addEventListener("load",(()=>{const t=this.template.imgs.getBoundingClientRect();this.btnSize.small=t.width+10})),this.template.img.addEventListener("click",(()=>{this.dmEvent(p),this.scaleBtnTimer&&clearTimeout(this.scaleBtnTimer),this.scaleBtnTimer=null})),this.template.imgs.addEventListener("click",(()=>{this.dmEvent(g),this.scaleBtnTimer&&clearTimeout(this.scaleBtnTimer),this.scaleBtnTimer=null})),this.template.line.addEventListener("click",(t=>{const e=t.target;"dm"===e.dataset.action&&this.dmEvent(f,{dmid:e.dataset.id})})),this.template.tip.addEventListener("click",(()=>{this.dmEvent(m)})),this.template.tip.addEventListener("mouseenter",(()=>{this.dmTimer&&clearTimeout(this.dmTimer),this.tipTimer&&clearTimeout(this.tipTimer)})),this.template.tip.addEventListener("mouseleave",(()=>{this.tipTimer&&clearTimeout(this.tipTimer),this.tipTimer=window.setTimeout((()=>{this.stop2run()}),150)})),this.nodes.videoArea.addEventListener("mousemove",(t=>{clearTimeout(this.hoverTimer),clearTimeout(this.hoverHideTimer),this.noCursor=!1,this.hoverTimer=window.setTimeout((()=>{this.noCursor=!0}),300),this.hoverHideTimer=window.setTimeout((()=>{this.stop2run()}),2e3)}))}addEvents(t){t.addEventListener("mouseenter",(e=>{this.noCursor||(this.dmTimer&&clearTimeout(this.dmTimer),this.dmTimer=window.setTimeout((()=>{this.stop2run();const i=t.dataset.id;this.stopRender=this.searchDm(i),this.stopRender.stop=!0,this.stopRender.hover=!0,this.showTips(e.pageX-this.playerRect.x),this.paused||this.stopDm(this.stopRender)}),150))})),t.addEventListener("mouseleave",(()=>{this.dmTimer&&clearTimeout(this.dmTimer),!this.paused&&this.stopRender?this.dmTimer=window.setTimeout((()=>{this.stop2run()}),150):this.dmTimer=window.setTimeout((()=>{this.hideTips()}),150)}))}stop2run(){if(this.hideTips(),this.stopRender){const t=Date.now();this.stopRender.end=t+this.stopRender.rest,this.stopRender.stime=this.stopRender.end-this.stopRender.duration,this.mediaStore.state.paused||this.runDm(this.stopRender,t)}this.stopRender=null}searchDm(t){let e;return this.cList.some((i=>{t===i.dm.dmid&&(e=i)})),e}stopDm(t,e=Date.now()){if(!t)return;t.stop=!0,t.rest-=e-t.startRunTime;let i=(e-t.stime)*t.speed;this.renderStyle(t,i,0)}runDm(t,e){t&&(this.resetRender(t,e),t.startRunTime=e,t.stop=!1,this.renderStyle(t,t.distance,t.rest))}hideTips(){
this.template.tip.className=`${this.ppx}-cross-tip`}showTips(t){this.tipTimer&&clearTimeout(this.tipTimer);let e=`${this.ppx}-cross-tip `;t<80?e+=`${this.ppx}-left`:t>this.playerRect.width-80?e+=`${this.ppx}-right`:e+=`${this.ppx}-center`,t=Math.min(t,this.playerRect.width-80),t=Math.max(t,80),this.template.tip.style.left=t+"px",this.template.tip.className=e,this.dmEvent(y)}dmEvent(t,e){switch(t){case p:case f:case m:this.hideDmOpacity()}this.rootPlayer.emit(c.tw.Player_Virtual_Action,new CustomEvent(c.tw.Player_Virtual_Action,{detail:{kind:c.s.DM_Cross,data:{event:t,data:e}}}))}hideDmOpacity(){this.nodes.rowDanmaku.classList.add(`${this.ppx}-cross-hide`)}onDispose(){super.onDispose(),this.pause(),this.hasCross=!1,this.isShow=!1,this.recyclingDiv.length=0,this.list.length=0,this.cList.length=0,this.showList.length=0,this.animate&&window.cancelAnimationFrame(this.animate),this.scaleBtnTimer&&clearTimeout(this.scaleBtnTimer),this.scaleBtnTimer=null,this.nodes.rowDanmaku.classList.remove(`${this.ppx}-cross-hide`),this.template&&this.nodes.cmdDanmaku.removeChild(this.template.wrap)}onDisconnect(){super.onDisconnect()}}},25289:function(t,e,i){"use strict";i.d(e,{T:function(){return R}});var n=i(22451),r=i(61068),o=i(65389),a=i.n(o),s=i(87395),l=i.n(s),A=i(76497),c=i.n(A),h=i(79302),d=i.n(h),u=i(85753),p=i.n(u),g=i(29888),f=i.n(g),m=i(70612),y=i.n(m),b=i(46348),v=i.n(b),E=i(25360),I=i.n(E),C=i(21962),B=i(5169),w=i(30905),x=i(653),Q=i(5506),S=i(5489),k=i(57012),D=Math.pow;const _=["","-webkit-","-moz-","-ms-"];class R extends C.A{constructor(){super(...arguments),this.dmLikeInfo={},this.list=new x.n,this.cList=[],this.recyclingDiv=[],this.showList=[],this.selfSendList=[],this.mousePosition={x:-1,y:-1}}install(){return super.install(),this.dc.addMetaList=(0,n.U5)((()=>this.dmListStore.state.reverseDmSrc),(t=>{(null==t?void 0:t.length)&&(this.showList=this.showList.concat(t),this.init())}),{fireImmediately:!0}),this.dc.addReverseList=(0,n.U5)((()=>{var t;return null==(t=this.dmListStore.state.addReverseList)?void 0:t.slice(0)}),(t=>{const e=null==t?void 0:t.length;if(e){let i,n=0;for(;n<e;)i=t[n],i.border?(i.stime=this.cTime+.1,this.list.binsert(i,x.w)):this.list.binsert(i,x.w),n++}else this.list.length=0,this.clear()}),{fireImmediately:!0}),this}init(){if(this.hasReverse=!0,this.inited)return;this.cmdName="reverse",this.inited=!0;const t=this.dmSettingStore.state;this.config={duration:4500,speedplus:t.speedplus,fontsize:t.fontsize,videoSpeed:this.settingStore.state.playbackRate||1,height:500,opacity:t.opacity,speedSync:t.speedsync,fontfamily:t.fontfamily,fullscreensync:t.fullscreensync,dmSwitch:t.dmSwitch,typeSpecial:t.typeSpecial},this.tpl(),this.resize(),this.dc.dmPause=(0,n.U5)((()=>this.danmakuStore.isPaused),(t=>{t?this.pause():this.play()}),{fireImmediately:!0}),!0===this.config.typeSpecial?this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`):!1===this.config.typeSpecial&&(this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`),this.clear()),!0===this.config.dmSwitch?this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`):!1===this.config.dmSwitch&&this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`),this.mediaStore.state.paused||this.nextFrame();const e=(0,r.Z)((()=>{this.resize()}),40);this.dc.resize=(0,n.U5)((()=>({height:this.uiStore.state.videoAreaHeight,width:this.uiStore.state.videoAreaWidth})),(({height:t,width:i})=>{i&&t&&e()}),{fireImmediately:!0}),this.dc.playbackRate=(0,n.EH)((()=>{this.config.videoSpeed=this.settingStore.state.playbackRate||1})),this.dc.reverseClear=(0,n.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`),this.clear()})),this.dc.dmReverseSet=(0,n.EH)((()=>{const t=this.dmSettingStore.state.currentSet;if(t)for(let e in t)Object.prototype.hasOwnProperty.call(this.config,e)&&(this.config[e]=t[e])})),this.dc.typeSpecial=(0,n.EH)((()=>{let t=this.dmSettingStore.state.currentSet.typeSpecial;void 0!==t&&(!0===t?this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`):!1===t&&(this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`),this.clear()))})),this.dc.dmSwitch=(0,n.EH)((()=>{let t=this.dmSettingStore.state.currentSet.dmSwitch;void 0!==t&&(!0===t?this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`):!1===t&&this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`))})),this.dc.timeUpdate=(0,n.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.mediaStore.state.paused||this.play()})),this.rootPlayer.on(S.p2.PLAYER_BEFORE_SEEKING,(()=>{this.clear()}))}pause(){this.paused=!0;const t=Date.now();this.cList.forEach((e=>{this.stopDm(e,t)}))}play(){if(!this.paused)return;this.paused=!1;const t=Date.now();this.cList.forEach((e=>{this.runDm(e,t)})),this.animate&&window.cancelAnimationFrame(this.animate),this.runNext()}parseUrl(t){let e=t.replace("http://","//");return e=e.replace("https://","//"),0!==e.indexOf("//")&&(e="//"+e),e}inShow(t){return this.showList.some((e=>{if(t>=e.start&&t<=e.end)return e.picture.resource!==this.imgResourse?(this.imgResourse=e.picture.resource,this.loadImg(e.picture.resource).then((()=>{const t=this.parseUrl(e.skip_link);this.template.btn.addEventListener("click",(()=>{e.skip_link&&(window.location.href=t)})),this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`)})).catch((()=>{this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`)}))):e.picture.resource===this.imgResourse&&!this.template.btn.classList.contains(`${this.ppx}-reverse-btn-show`)&&this.imgLoaded&&this.template.btn.classList.add(`${this.ppx}-reverse-btn-show`),this.show(),!0}))}show(){this.isShow||(this.isShow=!0,this.template.wrap.classList.add(`${this.ppx}-show`))}hide(){this.clear()}hideAll(){this.isShow&&(this.hide(),this.isShow=!1,this.template.wrap.classList.remove(`${this.ppx}-show`),this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`))}runNext(){this.animate=window.requestAnimationFrame((()=>{this.nextFrame()}))}nextFrame(){var t;const e=this.cTime;if(!this.config.typeSpecial||!this.config.dmSwitch)return this.hideAll(),void this.pause();if(!(null==(t=this.list)?void 0:t.length)||!this.visible)return void this.pause();if(!this.inShow(e))return this.hideAll(),void this.pause();const i=Date.now();if(this.hideDm)return this.cList.push(this.hideDm),this.runDm(this.hideDm,i),this.hideDm=null,void this.runNext();if(this.paused)return;const n=this.updateX(i);for(let t=0;t<this.list.length&&!((null==n?void 0:n.enter)>i);t++){const r=this.list[t],o=r.stime-e;if(!(r.border&&this.selfSendList.indexOf(r.dmid)>-1||r.on||o<0&&!r.border)){if(o>.05&&!r.border)break;if(r.border||!this.blockStore.judgeWord(r)){if(this.hideDm=this.renderDm(r,i),r.border&&this.selfSendList.push(r.dmid),!n)break;n.end>=this.hideDm.middle&&!r.border&&(this.end(this.hideDm),this.hideDm=null);break}}}this.runNext()}updateX(t){if(this.cList.length){for(let e=0;e<this.cList.length;e++){const i=this.cList[e];t>i.end&&!i.stop&&(this.cList.splice(e,1),this.end(i),e--)}let e;for(let t=this.cList.length-1;t>=0&&(e=this.cList[t],e.hover);t--)e=null;return e}}resetRender(t,e){t.stime=e-t.duration+t.rest,t.end=t.stime+t.duration,t.enter=t.stime+t.width/t.speed,t.middle=t.end-t.width/t.speed}end(t){t.dm.on=!1,t.dom.classList.add(`${this.ppx}-hide`),this.recyclingDiv.push(t.dom)}clear(){this.cList.forEach((t=>{this.end(t)})),this.cList.length=0,this.selfSendList.length=0}renderDm(t,e){let i;this.recyclingDiv.length?i=this.recyclingDiv.shift():(i=document.createElement("div"),i.setAttribute("data-action","dm"),this.template.line.appendChild(i),this.addEvents(i)),i.setAttribute("data-id",t.dmid),i.textContent=t.text,i.className=`${this.ppx}-reverse-dm`;const{width:n}=i.getBoundingClientRect(),r=this.width+n,o=(512+n)/this.config.duration*this.config.speedplus*(this.config.speedSync?this.config.videoSpeed:1),a=r/o;let s=`right:${this.width}px;opacity:${this.config.opacity};font-family: ${this.config.fontfamily}, Arial, Helvetica, sans-serif;`;const l=t.effect.font_stroke_color;l&&(s+=`text-shadow:0 1px ${l}, 1px 0 ${l}, -1px 0 ${l}, 0 -1px ${l};`),t.on=!0;const A={dm:t,width:n,speed:o,duration:a,
distance:r,x:0,dom:i,rest:a,startRunTime:e,stime:e,end:e+a,enter:e+n/o,middle:e+this.width/o,style:s,stop:!0};return i.style.cssText=A.style,A}resize(){if(!this.hasReverse)return;this.clear(),super.resize(),this.playerRect=this.nodes.videoArea.getBoundingClientRect(),this.playerRect.y=this.playerRect.top+document.documentElement.scrollTop,this.playerRect.x=this.playerRect.left+document.documentElement.scrollLeft,this.width=this.uiStore.state.containerWidth;const t=this.template.btn.getBoundingClientRect();this.template.line.style.left=t.left-this.playerRect.left+t.width+"px"}renderStyle(t,e,i){let n="";for(let t=0;t<_.length;t++)n+=`${_[t]}transform: translateX(${e}px) translateY(0px) translateZ(0px);\n            ${_[t]}transition: ${_[t]}transform ${i}ms linear;`;t.dom.style.cssText=t.style+n}tpl(){const t=this.ppx,e=`<div class="${t}-reverse">\n                    <div class="${t}-reverse-wrap">\n                    <div class="${t}-reverse-btn" data-action="btn">\n                        <img class="${t}-reverse-img" src=""/>\n                    </div>\n                        <div class="${t}-reverse-right">\n                            <div class="${t}-reverse-line"></div>\n                            <div class="${t}-reverse-tip">\n                            <div class="${t}-reverse-tip-center">${a()}</div>\n                            <div class="${t}-reverse-tip-left">${l()}</div>\n                            <div class="${t}-dm-tip-like">${c()}</div>\n                            <div class="${t}-dm-tip-like-num"></div>\n                            <div class="${t}-dm-tip-copy">${d()}</div>\n                            <div class="${t}-dm-tip-recall">${p()}</div>\n                            <div class="${t}-dm-tip-back">${f()}</div>\n                            </div>\n                            </div>\n                        </div>\n                    </div>\n                    </div>`,i=`<div class="${t}-reverse-report-wrap"></div>`,n=this.nodes.cmdDanmaku,r=this.nodes.videoArea;n.insertAdjacentHTML("beforeend",e),r.insertAdjacentHTML("beforeend",i),this.template={wrap:n.querySelector(`.${t}-reverse`),btn:n.querySelector(`.${t}-reverse-btn`),img:n.querySelector(`.${t}-reverse-img`),line:n.querySelector(`.${t}-reverse-line`),tip:n.querySelector(`.${t}-reverse-tip`),like:n.querySelector(`.${t}-reverse-right .${t}-dm-tip-like`),likeNum:n.querySelector(`.${t}-reverse-right .${t}-dm-tip-like-num`),recall:n.querySelector(`.${t}-reverse-right .${t}-dm-tip-recall`),back:n.querySelector(`.${t}-reverse-right .${t}-dm-tip-back`),copy:n.querySelector(`.${t}-reverse-right .${t}-dm-tip-copy`),bgM:n.querySelector(`.${t}-reverse-tip-center`),bgL:n.querySelector(`.${t}-reverse-tip-left`),report:r.querySelector(`.${t}-reverse-report-wrap`)},this.template.tip.addEventListener("mouseenter",(()=>{this.dmTimer&&clearTimeout(this.dmTimer),this.tipTimer&&clearTimeout(this.tipTimer)})),this.template.tip.addEventListener("mouseleave",(()=>{this.tipTimer&&clearTimeout(this.tipTimer),this.tipTimer=window.setTimeout((()=>{this.stop2run()}),150)})),this.template.like.addEventListener("click",(()=>{this.dmLiked()})),this.template.back.addEventListener("click",(()=>{var t;const e=null==(t=this.stopRender)?void 0:t.dm,i=null==e?void 0:e.dmid;if(i){this.userStore.info;if(!this.userStore.isLogin)return void this.userStore.requestQuickLogin();if(this.dmListStore.isMineDanmaku(e))return void this.danmakuStore.tooltipCenter("c_report","不能举报自己弹幕");if(this.isNotRepeatReport(i))return this.enterBack=!0,clearTimeout(this.hoverHideTimer),void this.reportShow(e).show();this.danmakuStore.tooltipCenter("c_report","已举报")}this.stop2run()})),this.template.copy.addEventListener("click",(()=>(this.dmCopy(this.stopRender.dm),!1))),this.template.recall.addEventListener("click",(()=>{var t;const e=this.stopRender.dom,i=null==(t=this.stopRender.dm)?void 0:t.dmid;return this.dmListStore.recall(i).then((t=>{if(t&&(void 0!==t.body.code||t.body.message))if(0===t.body.code){e.classList.add(`${this.ppx}-hide`);for(let t=0;t<this.list.length;t++)if(this.list[t].dmid===i){this.list.splice(t,1);break}this.danmakuStore.tooltipCenter("recall","撤回成功")}else this.danmakuStore.tooltipCenter("recall",t.body.message);else{const t="撤回失败，服务器出错";this.danmakuStore.tooltipCenter("recall",t)}})),!1})),this.nodes.videoArea.addEventListener("click",(t=>{if(this.clickDm)return this.dmLiked(1),t.stopPropagation(),void t.preventDefault()}),!0)}loadImg(t){const e=this.list[0].size;return this.template.btn.classList.contains(`${this.ppx}-reverse-btn-show`)&&this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`),this.imgLoaded=!1,new Promise(((i,n)=>{this.template.img.style.width="",this.template.img.style.height="",this.template.img.addEventListener("load",(()=>{const t=this.template.img.width,n=this.template.img.height,r=1.125*e*2,o=t*r/n;this.template.img.style.cssText+=`width:${o}px;height:${r}px;`,this.template.btn.style.cssText+=`width:${o}px;height:${r}px;`;const a=this.template.btn.getBoundingClientRect();this.template.line.style.left=a.left-this.playerRect.left+a.width+"px",this.template.line.style.bottom=(r/4||0)+"px",this.imgLoaded=!0,i(0)})),this.template.img.addEventListener("error",(()=>{this.template.img.style.cssText+="width:0px;height:0px;",this.template.btn.style.cssText+="width:0px;height:0px;";const t=this.template.btn.getBoundingClientRect();this.template.line.style.left=t.left-this.playerRect.left+"px",this.template.line.style.bottom="0px",this.imgLoaded=!1,n()})),this.template.img.src=this.parseUrl(t)}))}dmCopy(t){let e="";e=w.T.copy(t.mode>6?"<? 高级弹幕 />":t.text,{container:this.container})?"已复制":"复制失败",this.tooltipStore.create({target:this.container,name:"copy",title:e,duration:1e3})}dmLiked(t=0){if(!this.stopRender||void 0===this.stopRender.liked)return;if(!this.userStore.isLogin)return this.userStore.requestQuickLogin(),!1;const e=this.stopRender.dm,i=null==e?void 0:e.dmid,n=this.stopRender.liked;let r=this.stopRender.num;if(this.likeStatus(!n),this.likeNum(n?-1:1),i){if(r=n?--r:++r,this.danmakuStore.dmLike(i,n?2:1,null==e?void 0:e.effect.cid),this.dmLikeInfo[i]=Promise.resolve({liked:!n,num:r}),this.stopRender.dm.unlike)return;if(n)this.stopRender.dom.classList.remove("b-danmaku-liked");else{if(this.stopRender.dm.isHighLike)return void setTimeout((()=>{this.stopRender.dom.classList.add("b-danmaku-liked")}),20);const t=.8*this.stopRender.dm.size;let e=`width:${t}px;height:${t}px;`;6===this.stopRender.dm.mode?e+=`right:0;margin:${.18*t}px -${1.25*t}px 0 0 ;`:e+=`margin:${.18*t}px 0 0 -${1.25*t}px;`,this.stopRender.dom.insertAdjacentHTML("afterbegin",`<span class="b-danmaku-liked-icon" style="${e}">${y()}</span>`),setTimeout((()=>{this.stopRender.dom.classList.add("b-danmaku-liked")}),20)}}this.likedTimer=window.setTimeout((()=>{this.stop2run()}),500)}likeStatus(t){this.template.like.innerHTML=t?v():c()}masterState(){var t;const e=this.dmListStore.isMineDanmaku(null==(t=this.stopRender)?void 0:t.dm);this.template.tip.classList[e?"add":"remove"](`${this.ppx}-master`)}likeNum(t=0){this.stopRender.num+=t,this.template.likeNum.textContent=this.formatNum(this.stopRender.num),this.updateDmLikeInfo()}formatNum(t){let e=String(t);t>1e4&&(e=(t/1e4).toFixed(1)+"万");const i=t>D(10,5);return this.template.tip.classList[i?"add":"remove"](`${this.ppx}-many-like`),t?e:""}updateDmLikeInfo(){var t;const e=null==(t=this.stopRender.dm)?void 0:t.dmid;e&&(this.dmLikeInfo[e]=Promise.resolve({num:this.stopRender.num,liked:this.stopRender.liked}))}getDmLikeInfo(t){return this.dmLikeInfo[t]||(this.dmLikeInfo[t]=this.danmakuStore.dmLikeStats(t),this.dmLikeInfo[t]=new Promise(((e,i)=>{this.danmakuStore.dmLikeStats(t).then((({body:t})=>{t?e(t):i(t)})).catch((t=>{i(t)}))}))),this.dmLikeInfo[t]}reportShow(t){let e;const i=null==t?void 0:t.effect;e=20016===(null==i?void 0:i.id)&&(null==i?void 0:i.cid)&&(null==i?void 0:i.cid)!==this.configStore.cid?null==i?void 0:i.cid:this.configStore.cid,this.reportPanel=new B.y(this.template.report,k.ZP,{theme:"black",ppx:this.ppx,close:I(),submit:(t,e)=>this.danmakuStore.dmReport(t,t.originCid).then((({body:i})=>{var n;const r=Q.f[i.code]||i.message||"举报失败"
;return this.danmakuStore.tooltipCenter("report",r),this.danmakuStore.dmReportBlock(null==(n=i.data)?void 0:n.block,t.dmid,e),i.code})).catch((t=>(this.danmakuStore.tooltipCenter("report",(null==t?void 0:t.message)||"举报失败"),null))),hide:t=>{if(!t){this.stop2run();const t=this.template.report.querySelector(`.${this.ppx}-report-wrap`);t&&this.template.report.removeChild(t)}},checkbox:t=>{this.localStore.set({dmSend:{dmChecked:t}})}}),this.reportPanel.update(t,this.localStore.get().dmSend.dmChecked,e);return this.template.report.querySelector(`.${this.ppx}-report-wrap`).style.pointerEvents="auto",this.reportPanel}isNotRepeatReport(t){const e=B.y.reported||[];return!(e&&e instanceof Array)||!(e.indexOf(t)>-1)}addEvents(t){t.addEventListener("mouseenter",(e=>{this.noCursor||(this.dmTimer&&clearTimeout(this.dmTimer),this.dmTimer=window.setTimeout((()=>{var i,n;this.stop2run();const r=t.dataset.id;this.stopRender=this.searchDm(r),this.stopRender.stop=!0,this.stopRender.hover=!0,this.stopRender.dm.effect.cid=0===(null==(i=this.stopRender.dm)?void 0:i.effect.cid)?this.configStore.cid:null==(n=this.stopRender.dm)?void 0:n.effect.cid,this.showTips(e.pageX-this.playerRect.x),this.getDmLikeInfo(this.stopRender.dm.dmid).then((t=>{var e;(null==(e=this.stopRender)?void 0:e.hover)&&(this.stopRender.num=t.num,this.stopRender.liked=t.liked,this.likeStatus(t.liked),this.likeNum(),this.masterState())})),this.paused||this.stopDm(this.stopRender)}),150))})),t.addEventListener("mouseleave",(()=>{this.dmTimer&&clearTimeout(this.dmTimer),!this.paused&&this.stopRender?this.dmTimer=window.setTimeout((()=>{this.stop2run()}),150):this.dmTimer=window.setTimeout((()=>{this.hideTips()}),150)}))}stop2run(){if(this.hideTips(),this.stopRender){const t=Date.now();this.stopRender.end=t+this.stopRender.rest,this.stopRender.stime=this.stopRender.end-this.stopRender.duration,this.mediaStore.state.paused||this.runDm(this.stopRender,t)}this.stopRender=null}searchDm(t){let e;return this.cList.some((i=>{t===i.dm.dmid&&(e=i)})),e}stopDm(t,e=Date.now()){if(!t)return;t.stop=!0,t.rest-=e-t.startRunTime;let i=(e-t.stime)*t.speed;this.renderStyle(t,i,0)}runDm(t,e){t&&(this.resetRender(t,e),t.startRunTime=e,t.stop=!1,this.renderStyle(t,t.distance,t.rest))}hideTips(){this.template.tip.className=`${this.ppx}-reverse-tip`}showTips(t){this.tipTimer&&clearTimeout(this.tipTimer);let e=`${this.ppx}-reverse-tip `;t<80?e+=`${this.ppx}-left`:t>this.playerRect.width-80?e+=`${this.ppx}-right`:e+=`${this.ppx}-center`,t=Math.min(t,this.playerRect.width-80),t=Math.max(t,80),this.template.tip.style.left=t+"px",this.template.tip.className=e}onDispose(){var t,e;super.onDispose(),this.pause(),this.clear(),this.hasReverse=!1,this.isShow=!1,this.recyclingDiv.length=0,this.list.length=0,this.cList.length=0,this.showList.length=0,this.animate&&window.cancelAnimationFrame(this.animate),(null==(t=this.template)?void 0:t.wrap)&&this.template.wrap.classList.remove(`${this.ppx}-show`),(null==(e=this.template)?void 0:e.btn)&&this.template.btn.classList.remove(`${this.ppx}-reverse-btn-show`)}onDisconnect(){super.onDisconnect()}}},58920:function(t,e,i){"use strict";i.d(e,{s:function(){return o}});var n=i(22451),r=i(5489);class o extends r.vq{constructor(){super(...arguments),this.list=[]}install(){return this.dc.addToastList=(0,n.U5)((()=>{var t;return null==(t=this.danmakuStore.state.postPanel)?void 0:t.slice(0)}),(t=>{(null==t?void 0:t.length)?(this.list=this.list.concat(t),this.list.sort(((t,e)=>t.start-e.start)),this.init()):this.list.length=0}),{fireImmediately:!0}),this}init(){this.inited||(this.inited=!0,this.dc.timeUpdate=(0,n.U5)((()=>this.mediaStore.state.currentTime),(t=>{this.patchAdvStore.hasValidAdv&&!this.patchAdvStore.isPlayingPatch()?this.next(1e3*t):this.patchAdvStore.hasValidAdv||this.next(1e3*t)}),{fireImmediately:!0}),this.dc.buffering=(0,n.U5)((()=>this.mediaStore.state.buffering),(t=>{t&&this.next(1e3*this.mediaStore.state.progressTime)}),{fireImmediately:!0}))}next(t){for(let e=0;e<this.list.length;e++){const i=this.list[e];if(i.start<=t&&(-1===i.end||t<=i.end))return this.sendStore.setState({postPanelCard:i}),void(i.toast&&t<=i.start+i.toast.duration?(this.showed||this.show(i),this.showed=!0):this.hide())}this.showed=!1,this.sendStore.setState({postPanelCard:null}),this.hide()}hide(){this.card=null,this.toastStore.remove(this.toastId)}show(t){this.card!==t&&(this.card=t,this.toastId=this.toastStore.create({text:this.card.toast.text,duration:this.card.toast.duration||3e3,fixed:!0,manualMode:!0}),this.track.e("encourage_dm_toast",{encourage_type:t.bizType}))}onDispose(){super.onDispose(),this.inited=!1}onDisconnect(){super.onDisconnect()}}},3744:function(t,e,i){"use strict";i.d(e,{t:function(){return A}});var n=i(92651),r=i(51125),o=i.n(r),a=i(22451),s=i(5489),l=i(21962);class A extends l.A{constructor(){super(...arguments),this.haltTime=510,this.resource={}}install(){return super.install(),this.dc.upEggInfo=(0,a.U5)((()=>this.dmCmdStore.state.upEgg),(t=>{this.card||(this.card=t,this.inited?this.startEgg():t&&(this.init(),this.startEgg()))}),{fireImmediately:!0}),this}init(){this.inited||(this.inited=!0,this.nodes.cmdDanmaku.insertAdjacentHTML("beforeend",this.tpl()),this.scaleDom=this.nodes.cmdDanmaku.querySelector(`.${this.ppx}-scale`),this.upEgg=this.nodes.cmdDanmaku.querySelector(`.${this.ppx}-upegg`),this.img=this.upEgg.querySelector(`.${this.ppx}-img`),this.imgTxt=this.upEgg.querySelector(`.${this.ppx}-img-txt`),this.resize(),this.rootPlayer.on(s.p2.MEDIA_SEEKING,(()=>{this.hide()})),this.dc.resize=(0,a.U5)((()=>({height:this.uiStore.state.containerHeight,width:this.uiStore.state.containerWidth})),(({height:t,width:e})=>{e&&t&&this.resize()}),{fireImmediately:!0}))}resize(){if(super.resize(),!this.card)return;let{scaleS:t}=this.getScale();this.scaleDom.style.cssText=`${(0,n.g)("transform",`scale(${t})`)};`}hide(){this.card&&(clearTimeout(this.timer),this.upEgg.className=this.getClass(0),this.card=null)}getClass(t){const{text_img:e,animation:i}=this.card;let n=`${this.ppx}-upegg ${this.ppx}-egg-${i}-${t}`;return e&&(n+=` ${this.ppx}-hasTxt`),n}show(t){if(!this.card)return;this.card.from=this.cTime;const{resource:e,text_img:i,imglist:n,delay:r,delays:o}=this.card;if(i&&(this.imgTxt.src=decodeURIComponent(i)),t)e&&(this.img.src=decodeURIComponent(e));else if(n){let t;this.card.index=1;try{t=JSON.parse(decodeURIComponent(o))}catch(t){}if(t){const e=+r||0;this.img.src=n[0],this.timer=window.setTimeout((()=>{this.renderGif(t)}),this.haltTime+e)}}this.upEgg.className=this.getClass(1),clearTimeout(this.hideTimer),this.hideTimer=window.setTimeout((()=>{this.hide()}),5e3)}renderGif(t){var e;const{imglist:i,index:n}=this.card;if(n>=i.length)return clearTimeout(this.hideTimer),void(this.hideTimer=window.setTimeout((()=>{this.hide()}),this.haltTime));this.img.src=i[n],this.timer=window.setTimeout((()=>{this.renderGif(t)}),null!=(e=t[n])?e:t[t.length-1]),this.card.index++}startEgg(){return t=this,e=null,i=function*(){if(this.card)if("2"===this.card.resource_type)if(this.card.imglist)this.show();else{if(this.card.data=yield this.loadEggBg(this.card),this.card.data instanceof ArrayBuffer){const e=yield(t=this.card.data,(new(o())).loadAsync(t).then((t=>{const e=[];for(let i in t.files)if(!t.files[i].dir){const n=t.files[i].name;if(/\.(png|jpg|jpeg|gif)$/.test(n)&&!/^__MACOSX/.test(n)){const i=t.file(n).async("base64").then((t=>{const e=n.split("/");let i=e.pop().split(".");const r=i[0],o=i[1];return{folder:e.pop(),name:r,content:`data:image/${o};base64,${t}`}}));e.push(i)}}return e})).then((t=>Promise.all(t).then((t=>{const e={};return t.forEach((t=>{e[t.folder]=e[t.folder]||{length:0},e[t.folder][t.name]=t.content,e[t.folder].length+=1})),e})))));this.card.imglist=e.frames}var t;this.show()}else this.show(!0)},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}loadEggBg(t){let e=decodeURIComponent(t.resource);return e=e.replace("http://","//"),e?(t.resource=e,this.resource[e]=this.resource[e]||new Promise(((t,i)=>{
this.dmCmdStore.getImg(e).then((({data:e})=>{t(e)})).catch((e=>{t(e)}))})),this.resource[e]):Promise.resolve(null)}tpl(){return`<div class="${this.ppx}-scale"><div class="${this.ppx}-upegg">\n        <img class= "${this.ppx}-img-txt"/>\n        <img class= "${this.ppx}-img"/>\n        </div></div>`}onDispose(){super.onDispose(),this.hide()}onDisconnect(){super.onDisconnect(),this.nodes.cmdDanmaku&&this.upEgg&&this.nodes.cmdDanmaku.removeChild(this.upEgg),this.inited=!1}}},71427:function(t,e,i){"use strict";i.d(e,{k:function(){return A}});var n=i(22451),r=i(21962),o=i(5489),a=i(97294),s=i.n(a);function l(){return s()('/*! @metadata nano: 4.9.85-96806e61 (2026-06-10T16:59:44+08:00) */!function(){"use strict";const t=class{constructor(i,e,r){this.availableIndexSet=new Set,this.totalAvailablePixelCount=0,this.currentFilledPixelCount=0,this.currentFilledCount=0,this.currentScale=1,this.containerWidth=Math.ceil(e),this.containerHeight=Math.ceil(r);const n=this.containerWidth*this.containerHeight;if(i.length/4!==n)return;this.redArray=new Uint8Array(n),this.greenArray=new Uint8Array(n),this.blueArray=new Uint8Array(n),this.alphaArray=new Uint8Array(n),this.filledArray=new Uint8Array(n),this.integralPixelArray=new Uint32Array(n);for(let t=0;t<this.containerWidth;t++)for(let e=0;e<this.containerHeight;e++){const r=this.positionToIndex(t,e);this.redArray[r]=i[4*r],this.greenArray[r]=i[4*r+1],this.blueArray[r]=i[4*r+2],this.alphaArray[r]=i[4*r+3],this.alphaArray[r]>0&&(this.totalAvailablePixelCount+=1),this.filledArray[r]=this.alphaArray[r]>0?0:1,this.integralPixelArray[r]=this.filledArray[r],t>0&&(this.integralPixelArray[r]+=this.integralPixelArray[this.positionToIndex(t-1,e)]),e>0&&(this.integralPixelArray[r]+=this.integralPixelArray[this.positionToIndex(t,e-1)]),t>0&&e>0&&(this.integralPixelArray[r]-=this.integralPixelArray[this.positionToIndex(t-1,e-1)])}const s=this.containerWidth>this.containerHeight?this.containerHeight:this.containerWidth,a=s<500?Math.max(Math.floor(4*s/500),1):t.SPIRAL_DELTA,o=function(t,i,e){const r=t/i,n=r>1?Math.ceil(r*e):e,s=r>1?e:Math.ceil(r*e);let a=0,o=0;return function(e,r=0){const h=(e+=r)<0?-1:1,l=3&Math.ceil(Math.sqrt(1+4*e*h)-h);return 0===l?a+=n:1===l?o+=s:2===l?a-=n:o-=s,{col:a+Math.floor(t/2),row:o+Math.floor(i/2)}}}(this.containerWidth,this.containerHeight,a);let h=0;for(;;){h+=1;const t=o(h,0);if(t.col<0||t.col>=this.containerWidth)break;if(t.row<0||t.row>=this.containerHeight)break;const i=this.positionToIndex(t.col,t.row);this.filledArray[i]>0||this.availableIndexSet.add(i)}}get filledRatio(){return this.totalAvailablePixelCount>0?this.currentFilledPixelCount/this.totalAvailablePixelCount:1}get filledCount(){return this.currentFilledCount}findAvailable(i,e){let r=null;for(;this.currentScale>=t.MIN_SCALE;){for(let t of this.availableIndexSet){const n=this.indexToPosition(t);if(this.tryInsert(n,i,e,this.currentScale)){r={position:n,scale:this.currentScale,rotated:!1,color:this.getColorByPosition(n.col,n.row)};break}if(this.tryInsert(n,i,e,this.currentScale,!0)){r={position:n,scale:this.currentScale,rotated:!0,color:this.getColorByPosition(n.col,n.row)};break}}if(r)break;this.currentScale-=t.SCALE_DELTA}return r&&this.updateAvailableIndexSet(r.position,i,e,r.scale,r.rotated),r}updateAvailableIndexSet(t,i,e,r=1,n=!1){const s=(n?e:i)*r,a=(n?i:e)*r,o=Math.floor(t.col-s/2),h=Math.ceil(t.col+s/2),l=Math.floor(t.row-a/2),c=Math.ceil(t.row+a/2);if(!(o<0||h>=this.containerWidth||l<0||c>=this.containerHeight))for(let t=o;t<=h;t++)for(let i=l;i<=c;i++)this.availableIndexSet.delete(this.positionToIndex(t,i))}tryInsert(t,i,e,r=1,n=!1){const s=(n?e:i)*r,a=(n?i:e)*r,o=Math.floor(t.col-s/2),h=Math.ceil(t.col+s/2),l=Math.floor(t.row-a/2),c=Math.ceil(t.row+a/2);return!(o<0||h>=this.containerWidth||l<0||c>=this.containerHeight)&&(!!this.isAvailable(o,l,h,c)&&(this.updateIntegralPixelArray(o,l,h,c),this.currentFilledPixelCount+=(h-o)*(c-l),this.currentFilledCount+=1,!0))}isAvailable(t,i,e,r){return this.integralPixelArray[this.positionToIndex(e,r)]-(i<=0?0:this.integralPixelArray[this.positionToIndex(e,i-1)])-(t<=0?0:this.integralPixelArray[this.positionToIndex(t-1,r)])+(i<=0||t<=0?0:this.integralPixelArray[this.positionToIndex(t-1,i-1)])<=0}updateIntegralPixelArray(t,i,e,r){for(let n=t;n<this.containerWidth;n++)for(let t=i;t<this.containerHeight;t++){const i=this.positionToIndex(n,t);n<=e&&t<=r&&(this.filledArray[i]=1),this.integralPixelArray[i]=this.filledArray[i],n>0&&(this.integralPixelArray[i]+=this.integralPixelArray[this.positionToIndex(n-1,t)]),t>0&&(this.integralPixelArray[i]+=this.integralPixelArray[this.positionToIndex(n,t-1)]),n>0&&t>0&&(this.integralPixelArray[i]-=this.integralPixelArray[this.positionToIndex(n-1,t-1)])}}get pixelCount(){return this.containerWidth*this.containerHeight}positionToIndex(t,i){return e={col:t,row:i},r=this.containerWidth,e.row*r+e.col;var e,r}indexToPosition(t){return function(t,i){return{col:t%i,row:Math.floor(t/i)}}(t,this.containerWidth)}getColorByPosition(t,i){return this.getColorByIndex(this.positionToIndex(t,i))}getColorByIndex(t){if(t>=this.pixelCount)throw new Error(`index overflow, width: ${this.containerWidth}, height: ${this.containerHeight}, index: ${t}`);return[this.redArray[t],this.greenArray[t],this.blueArray[t],this.alphaArray[t]]}};let i=t;i.MIN_SCALE=.1,i.SCALE_DELTA=.1,i.SPIRAL_DELTA=4;const e=class{constructor(t,e,r,n,s){this.offsets=0,this.resultArr=[],this.img=t,this.model=s,this.containerWidth=e,this.containerHeight=r,this.finder=new i(t.data,e,r),this.fontsize=n}insert(t,e=0){this.model.splice(e,0,t),this.offsets=0,this.resultArr=[],this.finder=new i(this.img.data,this.containerWidth,this.containerHeight)}add(t){t.length||(this.model=this.models.concat(t))}runOnce(){if(this.completed)return null;const t=this.model[this.offsets],i=this.finder.findAvailable(t.width,t.height);return this.offsets++,i?{model:t,style:i}:null}run(t=Number.POSITIVE_INFINITY,i){const e=[],r=Date.now();for(;!this.completed&&Date.now()-r<t;){const t=this.runOnce();if(t&&(e.push(t),"number"==typeof i&&i<=e.length))break}return e}get results(){return this.resultArr}get completed(){return this.offsets>=this.model.length||this.filledRatio>=e.COMPLETED_MIN_FILLED_RATIO}get image(){return this.img}get models(){return this.model}get offset(){return this.offsets}get filledRatio(){return this.finder.filledRatio}};let r=e;r.COMPLETED_MIN_FILLED_RATIO=.8;class n{constructor(t,i,e,n,s,a){this.count=15,this.timeout=2e3,this.containerWidth=0,this.containerHeight=0,this.insertData=[],this.running=!1,this.limit=0,this.fontsize=15,this.scaleFact=1,this.bgImageData=t,this.containerWidth=i,this.containerHeight=e,this.worker=n,this.insertData=s,this.pixelRatio=a,this.engine=new r(this.bgImageData,this.containerWidth,this.containerHeight,this.fontsize*this.pixelRatio,this.insertData)}beginDraw(t=!1,i,e,r){let n=0,s=[];for((null==r?void 0:r.length)&&this.engine.add(r);n<7;){const t=this.engine.run(this.timeout,this.count+5*n);s.push(t),n++;if(this.engine.completed||n>=7)break}this.worker.postMessage({name:"endDraw",views:s,isFullFilled:this.engine.filledRatio>.5,isDone:this.engine.completed||n>=7,isSelf:t,from:i,to:e})}selfSendItem(t,i,e){this.insertData&&(this.insertData.unshift({msg:t.msg,special:!0,width:t.width,height:t.height}),this.running=!0,this.engine=new r(this.bgImageData,this.containerWidth,this.containerHeight,this.fontsize*this.pixelRatio,this.insertData),this.beginDraw(!0,i,e))}}const s=self;let a;s.addEventListener("message",(t=>{switch(t.data.event){case"init":const i=t.data.imageData;a=new n(i,i.width,i.height,s,t.data.dms,t.data.pixelRatio);break;case"beginDraw":if(!a)return;a.beginDraw(!1,t.data.from,t.data.to,t.data.dms);break;case"selfSendItem":if(!a)return;a.selfSendItem(t.data.item,t.data.from,t.data.to)}}))}();',"Worker",void 0,void 0)}class A extends r.A{constructor(){super(...arguments),this.list=[],this.canvasViews=[],this.pixelRatio=3,this.fontsize=72,this.isFullFilled=!1,this.selfSendFlag=!1,this.isFinderDone=!1,this.imgLoaded=!1,this.maskCanvas=document.createElement("canvas"),this.cloudCanvas=document.createElement("canvas"),this.imageCanvas=document.createElement("canvas"),
this.trackInfo={selfSendCount:0,fullFilled:0,unFullfilled:0,combineCount:0,totalCount:0}}install(){return super.install(),this.dc.list=(0,n.U5)((()=>this.dmCmdStore.state.wordCloud),(t=>{(null==t?void 0:t.length)&&(this.init(),t.forEach((t=>{t.dms||(t.dms=[]),t.dms=this.processDm(t.dms)})),this.list=this.list.concat(t),this.list.sort(((t,e)=>t.from-e.from)))}),{fireImmediately:!0}),this.dc.list=(0,n.U5)((()=>this.dmCmdStore.state.wordCloudSelfItem),(t=>{t&&(this.list.unshift(t),this.selfSend(t))})),this}init(){if(this.inited)return;this.canvas=document.createElement("canvas");this.canvas.getContext("2d").font=`${this.fontsize}px "Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif`,this.worker=new l,this.worker.onmessage=t=>{if("endDraw"===t.data.name){this.isFullFilled=t.data.isFullFilled,this.canvasViews.length=0,this.isFinderDone=!1,t.data.isFullFilled?(this.trackInfo.combineCount++,this.trackInfo.fullFilled++,this.trackInfo.unFullfilled--):this.trackInfo.unFullfilled++;for(let e=0;e<t.data.views.length;e++)this.trackInfo.totalCount+=t.data.views[e].length,this.canvasViews.push({result:t.data.views[e],onFilled:!1,onShined:!1,stime:t.data.from+1*e+1,etime:t.data.to});this.isFinderDone=!0}};const t=this.dmSettingStore.state;this.config={duration:4500,speedplus:t.speedplus,fontsize:t.fontsize,videoSpeed:this.settingStore.state.playbackRate||1,height:500,opacity:t.opacity,speedSync:t.speedsync,fontfamily:t.fontfamily,fullscreensync:t.fullscreensync,typeSpecial:t.typeSpecial},this.tpl(),this.resize(),this.dp.dmPause=(0,n.U5)((()=>this.danmakuStore.isPaused),(t=>{t?this.pause():this.play()}),{fireImmediately:!0}),this.inited=!0,this.dc.playbackRate=(0,n.EH)((()=>{this.config.videoSpeed=this.settingStore.state.playbackRate||1})),this.dc.wordcloudClear=(0,n.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.clear()})),this.dc.dmwordcloudSet=(0,n.EH)((()=>{const t=this.dmSettingStore.state.currentSet;if(t)for(let e in t)Object.prototype.hasOwnProperty.call(this.config,e)&&(this.config[e]=t[e],"typeSpecial"!==e||t[e]?this.timeUpdate():this.clear())})),this.dc.timeUpdate=(0,n.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.mediaStore.state.paused||this.play()})),this.dc.dmVisible=(0,n.EH)((()=>{this.sendStore.dmVisible?this.timeUpdate():this.clear()})),this.rootPlayer.on(o.p2.PLAYER_BEFORE_SEEKING,(()=>{this.selfSendFlag=!1}))}pause(){this.paused=!0}play(){this.paused&&(this.paused=!1,this.animate&&window.cancelAnimationFrame(this.animate),this.runNext())}show(){this.template.wrap.classList.add(`${this.ppx}-show`),this.template.wrap.classList.remove(`${this.ppx}-hide`)}timeUpdate(){var t;if(!this.sendStore.dmVisible||!(null==(t=this.list)?void 0:t.length)||!this.config.typeSpecial)return;const e=this.cTime;for(let t=0;t<this.list.length;t++){const i=this.list[t];if(i.from<=e&&e<=i.to){if(this.imgLoaded&&this.show(),i===this.card)return;return this.processBgImageData(i.resource).then((t=>{this.canvasViews.length=0,this.worker.postMessage({event:"init",imageData:t,dms:i.dms,pixelRatio:this.pixelRatio}),this.worker.postMessage({event:"beginDraw",from:i.from,to:i.to})})),void(this.card=i)}}this.card=null,this.imgLoaded=!1,this.clear()}runNext(){this.animate=window.requestAnimationFrame((()=>{this.nextFrame()}))}nextFrame(){var t;const e=this.cTime;(null==(t=this.canvasViews)?void 0:t.length)&&this.isFinderDone&&this.drawCloud(e),this.runNext()}selfSend(t){if(!this.worker)return;const{rectWidth:e,rectHeight:i}=this.measureRect(t.text);this.trackInfo.selfSendCount++,this.worker.postMessage({event:"selfSendItem",item:{msg:t.text,width:e,height:i},from:this.cTime,to:this.card.to}),this.selfSendFlag=!0}clear(){var t;(null==(t=this.template)?void 0:t.wrap.classList.contains(`${this.ppx}-show`))&&(this.template.wrap.classList.remove(`${this.ppx}-show`),this.template.wrap.classList.add(`${this.ppx}-hide`))}resize(){var t;if(!this.inited)return;if(super.resize(),!this.card)return;let e=this.template.wrap.offsetWidth,i=this.template.wrap.offsetHeight;const n=e/667;this.card.posX=333.5,this.card.posY=.5*i/n;let r=`transform: translate(-50%,-50%);top:${this.card.posY*n}px;`;const o=this.originalImageWidth>.9*e?2:null==(t=this.card)?void 0:t.positionType;this.originalImageWidth>this.originalImageHeight?(this.template.img.style.width=.9*e+"px",this.template.bg.style.width=.9*e+"px",this.template.img.style.height=this.originalImageHeight*(.9*e/this.originalImageWidth)+"px",this.template.bg.style.height=this.originalImageHeight*(.9*e/this.originalImageWidth)+"px",r+=1===o?`left:${this.card.posX*n*.2+.9*e/2}px;`:3===o?` left:${this.card.posX*n*1.8-.9*e/2}px;`:`left:${this.card.posX*n}px;`):(this.template.img.style.width=this.originalImageWidth*(.7*i/this.originalImageHeight)+"px",this.template.bg.style.width=this.originalImageWidth*(.7*i/this.originalImageHeight)+"px",this.template.img.style.height=.7*i+"px",this.template.bg.style.height=.7*i+"px",r+=1===o?`left:${this.card.posX*n*.2+this.originalImageWidth*(.7*i/this.originalImageHeight/2)}px;`:3===o?` left:${this.card.posX*n*1.8-this.originalImageWidth*(.7*i/this.originalImageHeight/2)}px;`:`left:${this.card.posX*n}px;`),this.template.bg.style.cssText+=r}tpl(){const t=this.ppx,e=`<di class="${t}-wordcloud">\n                        <div class="${t}-wordcloud-bg" data-action="bg">\n                            <img class="${t}-wordcloud-bg-src" src=""/>\n                            <div class="${t}-wordcloud-bg-shine"></div>\n                            <div class="${t}-wordcloud-bg-shadow"></div>\n                            <div class="${t}-wordcloud-bg-cv"></div>\n                        </div>\n                    </div>`,i=this.nodes.cmdDanmaku;i.insertAdjacentHTML("beforeend",e),this.template={wrap:i.querySelector(`.${t}-wordcloud`),bg:i.querySelector(`.${t}-wordcloud-bg`),img:i.querySelector(`.${t}-wordcloud-bg-src`),cv:i.querySelector(`.${t}-wordcloud-bg-cv`),shadow:i.querySelector(`.${t}-wordcloud-bg-shadow`),shine:i.querySelector(`.${t}-wordcloud-bg-shine`)},this.template.cv.appendChild(this.cloudCanvas),this.template.shadow.appendChild(this.maskCanvas),this.template.shine.appendChild(this.imageCanvas)}drawCloud(t){var e,i;let n;this.cloudCanvas.getContext("2d").clearRect(0,0,this.cloudCanvas.width,this.cloudCanvas.height);const r=this.canvasViews[this.canvasViews.length-1].etime;if(n=!this.selfSendFlag&&(null==(e=this.card)?void 0:e.from)?this.card.from+1*this.canvasViews.length+1:this.canvasViews[this.canvasViews.length-1].stime+1,t>n&&t<=n+.5&&this.isFullFilled){const e=Math.min(.5,.5-t+n);this.template.img.style.cssText+=`transition:all ${e}s linear;opacity:1`,this.template.shine.style.cssText+=`transition:all ${e}s linear;opacity:1`}if(t>n+.5&&t<=n+.8&&this.isFullFilled){const e=Math.min(.3,.3-t+n+.5);this.template.img.style.cssText+="transition:all 0s linear;opacity:1",this.template.shine.style.cssText=`transition:all ${e}s linear;opacity:0;transform:scale(1.1)`}if(t>n+.8&&t<=n+1.8&&this.isFullFilled&&(this.template.img.style.cssText+="transition:all 0s linear;opacity:1"),t>n+1.8&&t<=n+2.3&&this.isFullFilled){const e=Math.min(.5,.5-t+n+1.8);this.template.shine.style.cssText="transition:all 0s linear;opacity:0",this.template.img.style.cssText+=`transition:all ${e}s linear;opacity:0.3`,this.template.shadow.style.cssText+=`transition:all ${e}s linear;opacity:0.6`}t>n+2.3&&this.isFullFilled&&(this.template.shine.style.cssText="transition:all 0s linear;opacity:0;scale(1)",this.template.img.style.cssText+="transition:all 0s linear;opacity:0.3",this.template.shadow.style.cssText+="transition:all 0s linear;opacity:0.6"),t<n&&(this.template.img.style.cssText+="transition:all 0s linear;opacity:0");for(let e=0;e<this.canvasViews.length;e++){const o=this.canvasViews[e];let a;if(a=!this.selfSendFlag&&(null==(i=this.card)?void 0:i.from)?t-this.card.from-1*e-1:t-o.stime,!(a<0))if(0<=a&&a<=1){const t=a/1*.2+.8,e=a/1;this.snapshot(o.result,t,e)}else if(a>1&&t<=n)this.snapshot(o.result,1,1);else if(t>n&&t<=n+2.3&&this.isFullFilled)this.snapshot(o.result,1,1);else{if(t>n+2.3&&this.isFullFilled){if(Math.floor((t-n)/2%this.canvasViews.length)!==e){
this.snapshot(o.result,1,1);continue}const i=(t-n)%2/2;let r=1;r=i>.5?2*i-1:1-2*i,this.snapshot(o.result,1,r)}if(t>n&&!this.isFullFilled){if(Math.floor((t-n)/2%this.canvasViews.length)!==e){this.snapshot(o.result,1,1);continue}const i=(t-n)%2/2;let r=1;r=i>.5?2*i-1:1-2*i,this.snapshot(o.result,1,r)}if(t<=r&&t>r-.5){const e=r-t;this.snapshot(o.result,1,2*e)}else;}}}processDm(t){for(let e=0;e<t.length;e++)if(this.block(t[e].msg))t.splice(e,1),e--;else{const{rectWidth:i,rectHeight:n}=this.measureRect(t[e].msg);t[e].width=i,t[e].height=n}return t}block(t){const e=this.blockStore.blockList;let i;if(this.dmSettingStore.state.status)for(let n=0;n<e.length;n++)if(i=e[n],i.opened){if(0===i.type)try{if(new RegExp(i.filter.replace(/(\^|\$|\\|\.|\*|\+|\?|\(|\)|\[|\]|\{|\}|\||\/)/g,"\\$1"),"i").test(t))return!0}catch(t){}if(1===i.type)try{if(this.filterRegexp(i.filter).test(t))return!0}catch(t){}}}measureRect(t){const e=this.canvas.getContext("2d");e.font=`${this.fontsize}px "Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif`;return{rectWidth:e.measureText(t).width,rectHeight:Math.max(this.fontsize,e.measureText("m").width,e.measureText("Ｗ").width)}}filterRegexp(t){const e=/^\/(.+)\/([img]{0,3})$/.exec(t);try{return new RegExp(e[1],e[2])}catch(e){return new RegExp(t)}}processBgImageData(t){return new Promise(((e,i)=>{if(!t)return;this.imgLoaded=!1;const n=this.template.img;n.style.width="",n.style.height="",n.crossOrigin="Anonymous",n.onload=()=>{this.imgLoaded=!0,this.originalImageHeight=n.height,this.originalImageWidth=n.width,this.resize();const t=this.toimageData(n);this.renderShapeAndShadow(this.template.img),e(t)},n.onerror=()=>{i()},n.src=this.formatUrl(t)}))}formatUrl(t){let e=t.replace("http://","//");return e=e.replace("https://","//"),0!==e.indexOf("//")&&(e="//"+e),e}toimageData(t){const e=document.createElement("canvas"),i=this.originalImageWidth,n=this.originalImageHeight;e.width=i*this.pixelRatio,e.height=n*this.pixelRatio,this.cloudCanvas.width=i*this.pixelRatio,this.cloudCanvas.height=n*this.pixelRatio;const r=e.getContext("2d");r.drawImage(t,0,0,i*this.pixelRatio,n*this.pixelRatio);return r.getImageData(0,0,i*this.pixelRatio,n*this.pixelRatio)}bitmapToCanvas(t){const e=document.createElement("canvas");return e.getContext("bitmaprenderer").transferFromImageBitmap(t),e}snapshot(t,e,i,n=!1){const r=this.cloudCanvas.getContext("2d");if(t.filter((t=>!t.model.special)).forEach((t=>{r.fillStyle=n?`rgba(255,255,255,${i})`:`rgba(${t.style.color[0]}, ${t.style.color[1]}, ${t.style.color[2]}, ${i})`,r.save(),r.font=`${Math.floor(this.fontsize*t.style.scale)}px "Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif`,r.translate(t.style.position.col,t.style.position.row),t.style.rotated&&r.rotate(.5*Math.PI),r.scale(e,e),r.fillText(t.model.msg,.5*-t.model.width*t.style.scale,.3*t.model.height*t.style.scale),r.restore()})),n){this.cloudCanvas.getContext("2d")}t.filter((t=>t.model.special)).forEach((t=>{r.save(),r.fillStyle=`rgba(${t.style.color[0]}, ${t.style.color[1]}, ${t.style.color[2]}, ${i})`,r.font=`${Math.floor(this.fontsize*t.style.scale)}px "Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif`,r.strokeStyle=`rgba(255,255,255,${i})`,r.lineWidth=3,r.translate(t.style.position.col,t.style.position.row),t.style.rotated&&r.rotate(.5*Math.PI),r.scale(e,e),r.fillText(t.model.msg,.5*-t.model.width*t.style.scale,.3*t.model.height*t.style.scale),r.strokeRect(.5*-t.model.width*t.style.scale,.5*-t.model.height*t.style.scale,t.model.width*t.style.scale,t.model.height*t.style.scale),r.restore()}))}renderShapeAndShadow(t){const e=this.maskCanvas.getContext("2d"),i=this.imageCanvas.getContext("2d");this.maskCanvas.width=this.imageCanvas.width=t.width,this.maskCanvas.height=this.imageCanvas.height=t.height,e.drawImage(t,0,0,t.width,t.height),i.drawImage(t,0,0,t.width,t.height);const n=e.getImageData(0,0,this.maskCanvas.width,this.maskCanvas.height),r=e.createImageData(n);for(let t=0;t<n.data.length;t+=4){0===n.data[t+3]?(r.data[t]=r.data[t+1]=r.data[t+2]=255,r.data[t+3]=0):(r.data[t]=r.data[t+1]=r.data[t+2]=0,r.data[t+3]=255)}e.putImageData(r,0,0)}terminateWorker(){this.worker&&this.worker.terminate(),this.worker=null}onDispose(){super.onDispose(),this.pause(),this.clear(),this.inited=!1,this.list.length=0,this.animate&&window.cancelAnimationFrame(this.animate),this.terminateWorker()}onDisconnect(){super.onDisconnect(),this.inited=!1}}},25772:function(t,e,i){"use strict";i.d(e,{E:function(){return d}});var n=i(5489),r=i(99550),o=i(24701),a=i.n(o),s=i(22451),l=i(89262),A=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?c(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&A(e,i,o),o};class d extends n.vq{constructor(t){super(t),this.templateNode=this.dolbyTemplate(),(0,s.rC)(this)}get active(){var t;return!!this.userStore.isLogin&&(!(!(null==(t=this.userStore.info)?void 0:t.withoutVip)&&!this.userStore.isSuperUser)&&(this.qualityStore.isSwitching?this.qualityStore.state.newAudio===n.IL.Dolby:this.qualityStore.state.nowAudio===n.IL.Dolby))}install(){super.install(),this.dc.playurl=(0,s.U5)((()=>{var t;return null==(t=this.mpdStore.body)?void 0:t.mediaDataSource}),(t=>{const e=(0,n.rs)(t);e.hasDolbyAudio&&this.portStore.canPlayType("EC3DolbyATMOS")?this.init(e.dolbyName):this.templateNode.parentElement&&(this.nodes.controlBottomRight.removeChild(this.templateNode),this.templateNode.removeEventListener("click",this.onClickHandler))}),{fireImmediately:!0})}dolbyTemplate(){return(0,r.t)(`<div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-dolby" role="button" aria-label="杜比" tabindex="0"><div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon">${a()}</span></div></div>`)}init(t){this.templateNode.parentElement||(this.track.e("ctrl_dolby_show"),this.nodes.controlBottomRight.prepend(this.templateNode),this.templateNode.addEventListener("click",this.onClickHandler),this.dc.opened=(0,s.U5)((()=>this.active),(e=>{e?this.templateNode.classList.add(`${this.spx}-active`):this.templateNode.classList.remove(`${this.spx}-active`),this.updateTooltip(t)}),{fireImmediately:!0}))}updateTooltip(t=""){var e;const i=`<span class="${this.ppx}-ctrl-dolby-tooltip-icon">${(null==(e=this.userStore.info)?void 0:e.withoutVip)?"限免中":"大会员"}</span>`;this.tooltipStore.remove("ctrl:dolby"),this.tooltipStore.create({tip:!0,name:"ctrl:dolby",position:n.DU.TopCenter,target:this.templateNode,title:`<span class="${this.ppx}-ctrl-dolby-tooltip">${this.active?"关闭":"开启"}${t}${i}</span>`,slotMode:!0})}onClickHandler(){var t;if(!this.userStore.isLogin)return void this.userStore.requestQuickLogin();if(!(null==(t=this.userStore.info)?void 0:t.withoutVip)&&!this.userStore.isSuperUser)return void this.userStore.requestSuperGuide({subtitle:"即可解锁杜比音效",appId:10,appSubId:"ugcdubi",quality:"dubi",qn:n.IL.Dolby});const e=!this.active;this.track.e("dolby_effect",{switch:e?1:2}),this.qualityStore.requestQuality(this.qualityStore.state.nowQuality,e?n.IL.Dolby:n.IL.Default)}}h([s.Fl],d.prototype,"active",1),h([l.ZP],d.prototype,"onClickHandler",1)},98551:function(t,e,i){"use strict";i.d(e,{R:function(){return B}});var n=i(5489),r=i(46330),o=i(99550),a=i(65723),s=i(22451),l=i(89262),A=i(35692),c=i(48760),h=i(23173),d=i(57277),u=i(54826),p=i.n(u),g=i(31928),f=i.n(g),m=i(57012),y=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,E=Reflect.get,I=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?b(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&y(e,i,o),o};const C=class extends n.vq{constructor(){super(...arguments),this.templateNodes=this.eplistTemplate(),this.showToken=this.spx+"-show",this.activeToken=this.spx+"-active",this.minHeight=0,this.singelEP=!1}install(){return t=this,e=null,i=function*(){var t,e,i;(t=C.prototype,e=this,i="install",E(v(t),i,e)).call(this),this.configStore.localUrl||(this.dc.eplist=(0,s.U5)((()=>this.rootStore.isLoaded&&this.storyStore.eplist),(t=>{
if(!this.storyStore.ugcMultiEpisode)if(t&&t.length>1)if(this.templateNodes.container.parentElement||((0,r.o)(this.templateNodes.container),this.nodes.controlBottomRight.querySelector(`.${this.ppx}-ctrl-quality`).insertAdjacentElement("afterend",this.templateNodes.container),this.addEventListener()),(0,d.Z)(t,this.currentEplist)){const t=this.templateNodes.menu.querySelectorAll(`.${this.ppx}-ctrl-eplist-menu-item`);t&&t.length&&t.forEach((t=>{t.classList.remove(this.activeToken),this.configStore.episodeId?+t.dataset.episodeid===this.configStore.episodeId&&t.classList.add(this.activeToken):+t.dataset.cid===this.configStore.cid&&t.classList.add(this.activeToken)}))}else this.currentEplist=Object.assign([],t),this.updateMenu(t);else this.templateNodes.container.parentElement&&(this.removeEventListener(),this.templateNodes.container.parentElement.removeChild(this.templateNodes.container),this.currentEplist=null,this.templateNodes=this.eplistTemplate())}),{fireImmediately:!0}),this.dc.ugcMultiEpisode=(0,s.U5)((()=>this.rootStore.isLoaded&&this.storyStore.ugcMultiEpisode),(t=>{if(!this.storyStore.eplist)if(t)if(this.isMultiEplist=!0,this.templateNodes.container.parentElement||((0,r.o)(this.templateNodes.container),this.nodes.controlBottomRight.querySelector(`.${this.ppx}-ctrl-quality`).insertAdjacentElement("afterend",this.templateNodes.container),this.addEventListener()),this.templateNodes.menuWrap.innerHTML="",this.clearEplistScroll(),t[0].multiEpisodeType===A.U.Section){const e=t.find((t=>t.active));e&&(e.list.forEach(((t,e)=>{(null==t?void 0:t.active)&&(this.multiEpScrollY=-30*e)})),this.updateMultiEpMenu(e,this.templateNodes.menuWrap),this.minHeight||(this.minHeight=Math.max(180,this.templateNodes.menuWrap.getBoundingClientRect().height)),this.templateNodes.menuWrap.style.minHeight=this.minHeight+"px")}else{this.singelEP=!0;const e=t[0];e.multiEpisodeType===A.U.Episodes&&e.list.forEach(((t,e)=>{(null==t?void 0:t.active)&&(this.multiEpScrollY=-30*e)})),this.updateMultiEpMenu(t[0],this.templateNodes.menuWrap),this.clearEplistScroll(),this.eplistScroll=new c.Z(this.templateNodes.menuWrap,{preventDefault:!1});const i=Math.max(this.multiEpScrollY,this.eplistScroll.maxScrollY);this.eplistScroll.scrollTo(0,i)}else this.templateNodes.container.parentElement&&(this.templateNodes.container.parentElement.removeChild(this.templateNodes.container),this.clearEplistScroll(),this.removeEventListener(),this.currentEplist=null,this.templateNodes=this.eplistTemplate())}),{fireImmediately:!0}),this.dc.screenKind=(0,s.U5)((()=>this.uiStore.isFullView),(()=>{this.eplistScroll&&(this.configStore.isChannel(n.u5.PC_APP)?this.refreshTimer=window.setTimeout((()=>{this.eplistScroll.refresh()}),0):this.eplistScroll.refresh())})))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}clearSelectionScroll(){this.sectionSelector&&(this.sectionSelector.destroy(),this.sectionSelector=null)}clearEplistScroll(){this.eplistScroll&&(this.eplistScroll.destroy(),this.eplistScroll=null)}updateMultiEpMenu(t,e){let i=`${this.spx}-multi-active-item`;this.configStore.isPcApp&&(i+=` ${this.ppx}-pc-app-active`);const n=`${this.ppx}-ctrl-eplist-episodes-content-collapsed`;if(t.multiEpisodeType===A.U.Section){const i=`<div class= "${this.ppx}-ctrl-eplist-section">\n                ${t.singleSection?"":`\n                <div class= "${this.ppx}-ctrl-eplist-section-top">\n                    <div class ="${this.ppx}-ctrl-eplist-section-title">\n                    \n                    </div>\n                </div>\n                `}\n                <div class= "${this.ppx}-ctrl-eplist-section-bottom">\n                    <ul class = "${this.ppx}-ctrl-eplist-section-content"></ul>\n                </div>\n            </div>`,n=this.storyStore.ugcSectionList,r=(0,o.t)(i),a=r.querySelector(`.${this.ppx}-ctrl-eplist-section-top`),s=null==a?void 0:a.querySelector(`.${this.ppx}-ctrl-eplist-section-title`),l=r.querySelector(`.${this.ppx}-ctrl-eplist-section-bottom`),A=r.querySelector(`.${this.ppx}-ctrl-eplist-section-content`);this.clearSelectionScroll(),this.clearEplistScroll(),s&&(this.sectionSelector=new m.Ph(s,{dark:!0,value:t.title,items:n.map((t=>({name:t.title,value:t.title}))),maxHeight:100}),this.sectionSelector.on("change",this.selectChangeHandler)),e.appendChild(r);for(const e of t.list)this.updateMultiEpMenu(e,A);this.eplistScroll=new c.Z(l,{preventDefault:!1});const h=Math.max(this.multiEpScrollY,this.eplistScroll.maxScrollY);(null==t?void 0:t.active)&&this.eplistScroll.scrollTo(0,h)}else if(t.multiEpisodeType===A.U.Episodes){const r=`<div class= "${this.ppx}-ctrl-eplist-episodes">\n                    <div class= "${this.ppx}-ctrl-eplist-episodes-title ${t.active?i:""} ${t.active?`${this.ppx}-ctrl-eplist-episodes-title-collapsed`:""} ${this.singelEP?`${this.ppx}-ctrl-eplist-episodes-title-hide`:""}" data-collapsed =${t.active} >\n                        <div class= "${this.ppx}-ctrl-eplist-episodes-title-text">${a.t`${t.title}`}</div>\n                        <span class="${this.cpx}-svg-icon  ${this.singelEP?`${this.ppx}-ctrl-eplist-episodes-title-svg-hide`:""}">${p()}</span>\n                    </div>\n            </div>`,s=`<ul class = "${this.ppx}-ctrl-eplist-episodes-content ${t.active?n:""}"></ul>`,l=(0,o.t)(r),A=(0,o.t)(s);l.appendChild(A),e.appendChild(l);const c=l.querySelector(`.${this.ppx}-ctrl-eplist-episodes-title`);null==c||c.addEventListener("click",this.titleClickHandler);for(const e of t.list)this.updateMultiEpMenu(e,A)}else{let n;n=t.active?`<li class = "${this.ppx}-ctrl-eplist-multi-menu-item ${i}" data-cid = ${t.cid}>\n                    <span class="${this.cpx}-svg-icon">${f()}</span>\n                    <span class ="${this.ppx}-ctrl-eplist-multi-menu-item-text">${a.t`${t.title}`}</span>\n                </li>`:`<li class = "${this.ppx}-ctrl-eplist-multi-menu-item" data-cid = ${t.cid}>\n                    <span class ="${this.ppx}-ctrl-eplist-multi-menu-item-text">${a.t`${t.title}`}</span>\n                </li>`;const r=(0,o.t)(n);e.appendChild(r)}}titleClickHandler(t){var e;if(this.singelEP)return;const i=t.target;let n="true"===(null==(e=null==i?void 0:i.dataset)?void 0:e.collapsed);n=!n,i.dataset.collapsed=n.toString();const r=i.parentElement.querySelector(`.${this.ppx}-ctrl-eplist-episodes-content`);null==r||r.classList.toggle(`${this.ppx}-ctrl-eplist-episodes-content-collapsed`),null==i||i.classList.toggle(`${this.ppx}-ctrl-eplist-episodes-title-collapsed`)}selectChangeHandler(t){this.templateNodes.menuWrap.innerHTML="";const e=this.storyStore.ugcSectionList.find((e=>e.title===(null==t?void 0:t.value)));e&&(this.updateMultiEpMenu(e,this.templateNodes.menuWrap),this.minHeight||(this.minHeight=Math.max(180,this.templateNodes.menuWrap.getBoundingClientRect().height)),this.templateNodes.menuWrap.style.minHeight=this.minHeight+"px")}eplistTemplate(){const t=(0,o.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-eplist" role="button" aria-label="选集" tabindex="0">\n                <div class="${this.ppx}-ctrl-eplist-result">选集</div>\n                <div class="${this.ppx}-ctrl-eplist-menu-wrap">\n                    <ul class="${this.ppx}-ctrl-eplist-menu"></ul>\n                </div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-eplist-menu-wrap`),i=t.querySelector(`.${this.ppx}-ctrl-eplist-menu`);return{container:t,menuWrap:e,menu:i}}updateMenu(t){if(!t||!t.length)return;let e="",i=0;if(t.forEach(((t,r)=>{var o;let s="";if(this.configStore.episodeId?+t.episodeId===this.configStore.episodeId&&(i=r,s=this.activeToken):+t.cid===this.configStore.cid&&(i=r,s=this.activeToken),this.uiStore.kind===n.HR.Pugv){const i=!!(null==(o=this.storyStore.state)?void 0:o.payed),n=2===(null==t?void 0:t.playWay),r=(i||(null==t?void 0:t.status)<=1)&&!n,l=!i&&(null==t?void 0:t.status)>1&&2!==(null==t?void 0:t.status)&&!n,A=!i&&2===(null==t?void 0:t.status)||n
;r&&(e+=`<li class="${this.ppx}-ctrl-eplist-menu-item  ${s}" data-cid="${t.cid}" ${null!=t.episodeId?`data-episodeid="${t.episodeId}"`:""}><div class="${this.ppx}-ctrl-eplist-menu-item-title">${a.t`${this.episodePrefix(t.title,t.p)}`} </div><div class="${this.ppx}-ctrl-eplist-menu-item-badge" style="display: none"> 付费</div></li>`),l&&(e+=`<li class="${this.ppx}-ctrl-eplist-menu-item ${s}" data-cid="${t.cid}" ${null!=t.episodeId?`data-episodeid="${t.episodeId}"`:""}><div class="${this.ppx}-ctrl-eplist-menu-item-title">${a.t`${this.episodePrefix(t.title,t.p)}`} </div><div class="${this.ppx}-ctrl-eplist-menu-item-badge"> 付费</div></li>`),A&&(e+=`<li class="${this.ppx}-ctrl-eplist-menu-item ${s}" data-cid="${t.cid}" ${null!=t.episodeId?`data-episodeid="${t.episodeId}"`:""}>${a.t`<div class="${this.ppx}-ctrl-eplist-menu-item-title">${this.episodePrefix(t.title,t.p)}</div>`} <div class="${this.ppx}-ctrl-eplist-menu-item-badge" style="background-color: #ffa726"> 付费</div></li>`)}else if(this.uiStore.kind===n.HR.Pgc){const{badgeInfo:i}=t;i&&(null==i?void 0:i.bg_color)&&(null==i?void 0:i.text)?e+=`<li class="${this.ppx}-ctrl-eplist-menu-item ${s}" data-cid="${t.cid}" ${null!=t.episodeId?`data-episodeid="${t.episodeId}"`:""}>${a.t`<div class="${this.ppx}-ctrl-eplist-menu-item-title">${null==t?void 0:t.playerEpTitle} </div>`} <div class="${this.ppx}-ctrl-eplist-menu-item-badge" style="background-color: ${i.bg_color}; color: #ffffff !important;"> ${i.text}</div></li>`:e+=`<li class="${this.ppx}-ctrl-eplist-menu-item ${s}" data-cid="${t.cid}" ${null!=t.episodeId?`data-episodeid="${t.episodeId}"`:""}>${a.t`<div class="${this.ppx}-ctrl-eplist-menu-item-title">${null==t?void 0:t.playerEpTitle}</div>`} </li>`}else e+=`<li class="${this.ppx}-ctrl-eplist-menu-item ${this.ppx}-ctrl-eplist-menu-item-non-pugv  ${s}" data-cid="${t.cid}" ${null!=t.episodeId?`data-episodeid="${t.episodeId}"`:""}>${a.t`${this.episodePrefix(t.title,t.p)}`}</li>`})),this.templateNodes.menu.innerHTML=e,t.length>19){this.eplistScroll=new c.Z(this.templateNodes.menuWrap,{preventDefault:!1,freeScroll:!0});const t=Math.max(30*-i,this.eplistScroll.maxScrollY);this.eplistScroll.scrollTo(0,t)}}episodePrefix(t,e){return 2!==this.storyStore.state.type&&(t=`P${e} ${t}`),this.uiStore.kind===n.HR.Pgc&&(t=`第${e}话 ${t}`),t}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("page_list_show"),this.templateNodes.container.classList.remove(this.showToken)))}onClickHandler(t){var e;let i=t.target;if("LI"===i.tagName.toUpperCase()||"DIV"===i.tagName.toUpperCase()){this.uiStore.kind!==n.HR.Pugv&&this.uiStore.kind!==n.HR.Pgc||(i=i.parentNode);const t=+i.dataset.cid,r=this.storyStore.eplist,o=r.findIndex((e=>+e.cid===t));if(this.templateNodes.container.classList.remove(this.showToken),t===this.configStore.cid||-1===o)return;this.ctrlStore.setState({majorHovered:!1});if(null==(e=r[o])?void 0:e.redirect_url)return void this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Redirect,data:r[o]}}));if(this.configStore.outSideReload)return void this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Eplist_Pgc_Direct,data:{index:o}}}));this.episodeStore.reload({p:r[o].p,cid:r[o].cid,aid:r[o].aid,bvid:r[o].bvid,episodeId:r[o].episodeId,stats:{spmId:this.configStore.spmId,spmIdFrom:h.Q.stringify({type:this.storyStore.state.type,action:h.A.Player_Ctrl_Eplist})}}),this.track.e("fullscreen_selectP")}}onMultiEplistClickHandler(t){var e;let i=t.target;if("LI"===i.tagName.toUpperCase()&&(null==(e=null==i?void 0:i.classList)?void 0:e.contains(`${this.ppx}-ctrl-eplist-multi-menu-item`))){const t=+i.dataset.cid,e=this.storyStore.findEpisodeByCid(t);if(t===this.configStore.cid)return;if(this.ctrlStore.setState({majorHovered:!1}),null==e?void 0:e.redirect_url)return void this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Redirect,data:e}}));this.episodeStore.reload({p:e.p,cid:e.cid,aid:e.aid,bvid:e.bvid,episodeId:e.episodeId,stats:{spmId:this.configStore.spmId,spmIdFrom:h.Q.stringify({type:this.storyStore.state.type,action:h.A.Player_Ctrl_Eplist})}})}}onMouseEnterHandler(){this.clearTimer(),this.showTimer=window.setTimeout((()=>{this.templateNodes.container.classList.add(this.showToken)}),this.configStore.onlyTouchMode?0:300)}onMouseLeaveHandler(){this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),this.configStore.onlyTouchMode?0:200)}addEventListener(){this.templateNodes.menu.addEventListener("click",this.onClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.addEventListener("mouseleave",this.onMouseLeaveHandler),this.isMultiEplist&&this.templateNodes.menuWrap.addEventListener("click",this.onMultiEplistClickHandler)}removeEventListener(){var t;this.templateNodes.menu.removeEventListener("click",this.onClickHandler),this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.removeEventListener("mouseleave",this.onMouseLeaveHandler),this.isMultiEplist&&(null==(t=this.templateNodes.menuWrap)||t.removeEventListener("click",this.onMultiEplistClickHandler))}onDispose(){window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer),window.clearTimeout(this.refreshTimer),this.isMultiEplist=!1,this.singelEP=!1,this.clearSelectionScroll(),this.clearEplistScroll();this.templateNodes.container.querySelectorAll(`.${this.ppx}-ctrl-eplist-episodes-title`).forEach((t=>{t.removeEventListener("click",this.titleClickHandler)})),this.multiEpScrollY=null}onDisconnect(){this.removeEventListener()}};let B=C;I([l.ZP],B.prototype,"titleClickHandler",1),I([l.ZP],B.prototype,"selectChangeHandler",1),I([l.ZP],B.prototype,"onClickHandler",1),I([l.ZP],B.prototype,"onMultiEplistClickHandler",1),I([l.ZP],B.prototype,"onMouseEnterHandler",1),I([l.ZP],B.prototype,"onMouseLeaveHandler",1)},71030:function(t,e,i){"use strict";i.d(e,{P:function(){return d}});var n=i(5489),r=i(99550),o=i(90110),a=i.n(o),s=i(22451),l=i(89262),A=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?c(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&A(e,i,o),o};class d extends n.vq{constructor(t){super(t),this.templateNode=this.hiresTemplate(),(0,s.rC)(this)}get active(){var t;return!!this.userStore.isLogin&&(!!((null==(t=this.userStore.info)?void 0:t.withoutVip)||this.isUpWatch||this.userStore.isSuperUser)&&(this.qualityStore.isSwitching?this.qualityStore.state.newAudio===n.IL.Flac:this.qualityStore.state.nowAudio===n.IL.Flac))}get isUpWatch(){var t;return+(null==(t=this.userStore.info)?void 0:t.mid)==+this.upStore.state.mid}install(){super.install(),this.dc.playurl=(0,s.U5)((()=>{var t;return this.userStore.state.isUserPrepared&&(null==(t=this.mpdStore.body)?void 0:t.mediaDataSource)}),(t=>{const e=(0,n.rs)(t),i=e.hasDolbyAudio&&this.portStore.canPlayType("EC3DolbyATMOS"),r=e.hasFlacAudio&&this.portStore.canPlayType("FLAC");!i&&r?this.init(e.flacName):this.templateNode.parentElement&&(this.nodes.controlBottomRight.removeChild(this.templateNode),this.templateNode.removeEventListener("click",this.onClickHandler))}),{fireImmediately:!0})}hiresTemplate(){return(0,r.t)(`<div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-flac"><div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon">${a()}</span></div></div>`)}init(t=""){this.templateNode.parentElement||(this.track.e("ctrl_flac_show"),this.nodes.controlBottomRight.prepend(this.templateNode),this.templateNode.addEventListener("click",this.onClickHandler),this.dp.opened=(0,s.U5)((()=>this.active),(e=>{e?this.templateNode.classList.add(`${this.spx}-active`):this.templateNode.classList.remove(`${this.spx}-active`),this.updateTooltip(t)}),{fireImmediately:!0}),this.dp.screen=(0,s.U5)((()=>this.uiStore.isFullView),(()=>{this.updateTooltip(t)})))}updateTooltip(t){var e
;const i=`<span class="${this.ppx}-ctrl-flac-tooltip-icon">${(null==(e=this.userStore.info)?void 0:e.withoutVip)?"限免中":"大会员"}</span>`;this.tooltipStore.remove("ctrl:flac"),this.tooltipStore.create({gap:this.uiStore.isFullView?28:19,tip:!0,name:"ctrl:flac",position:n.DU.TopCenter,target:this.templateNode,title:`<span class="${this.ppx}-ctrl-flac-tooltip">${this.active?"关闭":"开启"}${t}${i}</span>`,slotMode:!0})}onClickHandler(){if(this.userStore.info&&this.userStore.info.err)return;if(this.qualityStore.isSwitching)return;if(!this.userStore.isLogin)return void this.userStore.requestQuickLogin();if(!this.userStore.info.withoutVip&&!this.isUpWatch&&!this.userStore.isSuperUser)return void this.userStore.requestSuperGuide({subtitle:"立即解锁Hi-Res无损音质",appId:10,appSubId:"ugcWav",quality:"wav",qn:n.IL.Flac});const t=!this.active;this.track.e("ctrl_flac_effect",{switch:t?1:2,vip_type:this.userStore.info.vipType,vip_status:this.userStore.info.vipStatus}),this.qualityStore.requestQuality(this.qualityStore.state.nowQuality,t?n.IL.Flac:n.IL.Default).catch((()=>{this.track.e("ctrl_flac_fail")}))}}h([s.Fl],d.prototype,"active",1),h([l.ZP],d.prototype,"onClickHandler",1)},68648:function(t,e,i){"use strict";i.d(e,{D:function(){return m}})
;var n=i(5489),r=i(99550),o=i(89262),a=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":60,"w":88,"h":88,"nm":"全屏渐变","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"中心圆","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.81,0.81,0.833],"y":[1,1,1]},"o":{"x":[1,1,0.68],"y":[0,0,0]},"t":2,"s":[100,100,100]},{"i":{"x":[0.991,0.991,0.27],"y":[1,1,1]},"o":{"x":[1,1,0.167],"y":[-0.014,-0.014,0]},"t":13,"s":[184,184,100]},{"t":22,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.21,0],[-0.11,-2.12],[0,0],[0,0],[2.14,0],[0,2.21]],"o":[[2.14,0],[0,0],[0,0],[-0.11,2.12],[-2.21,0],[0,-2.21]],"v":[[0,-4],[4,-0.2],[4,0],[4,0.2],[0,4],[-4,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"左扇形","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":34,"s":[0]},{"t":40,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[23.316,27.897,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-11.8,5.91],[0,0],[0,-4.7],[0,0]],"o":[[0,0],[-3.93,1.97],[0,0],[0,-14.1]],"v":[[4.584,-16.103],[15.314,5.367],[8.684,16.107],[-15.316,16.107]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"右扇形","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":34,"s":[0]},{"t":40,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[64.684,27.897,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-14.1],[0,0],[3.93,1.97],[0,0]],"o":[[0,0],[0,-4.7],[0,0],[11.79,5.91]],"v":[[15.314,16.107],[-8.686,16.107],[-15.316,5.367],[-4.576,-16.103]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"下扇形","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":34,"s":[0]},{"t":40,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,66.323,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.15,2.08],[0,0],[7.07,0],[5.56,3.52],[0,0],[-3.23,0]],"o":[[0,0],[-5.56,3.52],[-7.07,0],[0,0],[2.16,2.08],[3.23,0]],"v":[[8.319,-13.677],[19.219,8.123],[-0.001,13.673],[-19.221,8.123],[-8.321,-13.677],[-0.001,-10.327]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"左放射1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"t":21,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[31.995,35.665,0],"to":[0.208,0.208,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":4,"s":[33.245,36.915,0],"to":[0,0,0],"ti":[0.625,0.625,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[31.995,35.665,0],"to":[-0.625,-0.625,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[29.495,33.165,0],"to":[0,0,0],"ti":[-0.417,-0.417,0]},{"t":29,"s":[31.995,35.665,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-4.55],[0,0],[-6.32,3.15]],"o":[[-4.07,2.03],[0,0],[0,-7.06],[0,0]],"v":[[6.635,-2.405],[0.005,8.335],[-6.635,8.335],[3.675,-8.335]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"右放射1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"t":21,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[55.99,35.665,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":4,"s":[54.74,36.915,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[55.99,35.665,0],"to":[0.417,-0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[58.49,33.165,0],"to":[0,0,0],"ti":[0.417,-0.417,0]},{"t":29,"s":[55.99,35.665,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[4.07,2.03],[0,0],[-0.32,-6.71]],"o":[[0,0],[0,0],[0,-4.55],[0,0],[6,3.01],[0,0]],"v":[[6.62,7.405],[6.62,8.335],[0.01,8.335],[-6.62,-2.405],[-3.62,-8.335],[6.62,7.405]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"下放射1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"t":21,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[44,57.655,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":4,"s":[44,56.405,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[44,57.655,0],"to":[0,0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":21,"s":[44,60.155,0],"to":[0,0,0],"ti":[0,0.417,0]},{"t":29,"s":[44,57.655,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[3.26,2.51],[0,0],[-4.65,4.47],[0,0],[4.11,0.01]],"o":[[-4.11,0.02],[0,0],[4.65,4.47],[0,0],[-3.27,2.5],[0,0]],"v":[[0,4.975],[-11.38,1.135],[-8.32,-4.975],[8.32,-4.975],[11.38,1.135],[0,4.975]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"左放射2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[30]},{"t":24,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[25.73,31.78,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[26.98,33.03,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[25.73,31.78,0],"to":[-0.417,-0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[23.23,29.28,0],"to":[0,0,0],"ti":[-0.417,-0.417,0]},{"t":32,"s":[25.73,31.78,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-9.26,4.63],[0,0],[0.01,-7.86]],"o":[[0,0],[0,-10.35],[0,0],[-7.03,3.5],[0,0]],"v":[[-2.44,12.22],[-9.05,12.22],[6.05,-12.22],[9.05,-6.31],[-2.44,12.22]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"右放射2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[30]},{"t":24,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[62.275,31.78,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[61.025,33.03,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[62.275,31.78,0],"to":[0.417,-0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[64.775,29.28,0],"to":[0,0,0],"ti":[0.417,-0.417,0]},{"t":32,"s":[62.275,31.78,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0],[6.71,3.34],[0,0],[0,0],[-0.49,-9.84]],"o":[[0,0],[0,0],[0,0],[-0.36,-7.48],[0,0],[0,0],[8.8,4.42],[0,0]],"v":[[9.015,10.85],[9.015,12.22],[2.435,12.22],[2.435,11.22],[-9.015,-6.31],[-6.015,-12.22],[-6.015,-12.22],[9.015,10.85]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"下放射2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[30]},{"t":24,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[44.01,65.965,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[44.01,64.715,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[44.01,65.965,0],"to":[0,0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":24,"s":[44.01,68.465,0],"to":[0,0,0],"ti":[0,0.417,0]},{"t":32,"s":[44.01,65.965,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[5.47,0.01],[4.52,3.06],[0,0],[-7.32,5.43],[0,0]],"o":[[-5.46,0.01],[0,0],[7.32,5.43],[0,0],[-4.52,3.07]],"v":[[-0.01,5.345],[-15.32,0.655],[-12.32,-5.345],[12.32,-5.345],[15.32,0.655]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"左放射3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[30]},{"t":27,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":6,"s":[19.45,27.895,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[20.7,29.145,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[19.45,27.895,0],"to":[-0.417,-0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":27,"s":[16.95,25.395,0],"to":[0,0,0],"ti":[-0.417,-0.417,0]},{"t":35,"s":[19.45,27.895,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[-12.2,6.1],[0,0],[0,-11.13]],"o":[[0,0],[0,-13.64],[0,0],[-9.96,4.96],[0,0]],"v":[[-4.81,16.105],[-11.45,16.105],[8.45,-16.105],[11.45,-10.165],[-4.81,16.105]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"右放射3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[30]},{"t":27,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":6,"s":[68.58,27.895,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[67.33,29.145,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[68.58,27.895,0],"to":[0.417,-0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":27,"s":[71.08,25.395,0],"to":[0,0,0],"ti":[0.417,-0.417,0]},{"t":35,"s":[68.58,27.895,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[9.48,4.74],[0,0],[0,-13.64]],"o":[[0,0],[0,0],[-0.53,-10.58],[0,0],[12.2,6.1],[0,0]],"v":[[11.42,16.105],[4.78,16.105],[4.78,14.635],[-11.42,-10.165],[-8.48,-16.105],[11.42,16.105]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"下放射3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[30]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[30]},{"t":27,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":6,"s":[44,74.22,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":10,"s":[44,72.97,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":16,"s":[44,74.22,0],"to":[0,0.417,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":27,"s":[44,76.72,0],"to":[0,0,0],"ti":[0,0.417,0]},{"t":35,"s":[44,74.22,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[11.74,7.41],[0,0],[-9.83,6.53]],"o":[[-11.74,7.41],[0,0],[9.83,6.53],[0,0]],"v":[[19.22,0.22],[-19.22,0.22],[-16.22,-5.78],[16.24,-5.78]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-1,"op":300,"st":0,"bm":0}],"markers":[]}'),s=i(20733),l=i.n(s),A=i(22451),c=i(21689),h=i.n(c),d=i(91202),u=i.n(d),p=Object.defineProperty,g=Object.getOwnPropertyDescriptor,f=(t,e,i,n)=>{
for(var r,o=n>1?void 0:n?g(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&p(e,i,o),o};class m extends n.vq{constructor(){super(...arguments),this.templateNode=this.fullScreenTemplate()}install(){super.install(),this.statueStore.hasFullscreenFn&&this.statueStore.fullscreenEnabled?(this.nodes.controlBottomRight.appendChild(this.templateNode),this.updateStatue(this.uiStore.state.sideScreen===n.dY.Full,this.uiStore.isFullView?28:19),this.configStore.embeddedEnv?(this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML=h(),this.dp.sideScreen=(0,A.U5)((()=>this.uiStore.state.sideScreen),(t=>{t===n.dY.Full?this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML=u():this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML=h()}),{fireImmediately:!0})):this.createAnimation(),this.addEventListener()):this.track.e("fullscreen_disabled")}fullScreenTemplate(){return(0,r.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-full" role="button" aria-label="全屏" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon"></span></div>\n            </div>\n        `)}createAnimation(){this.fullScreenAnimation=l().loadAnimation({name:"fullscreen",container:this.templateNode.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:a})}updateStatue(t,e){this.tooltipStore.remove("ctrl:fullscreen"),this.tooltipStore.create({tip:!0,gap:e,offsetX:-.15,name:"ctrl:fullscreen",title:t?"退出全屏 (f)":"进入全屏 (f)",target:this.templateNode,position:n.DU.TopCenter})}onClickHandler(){let t=0;this.configStore.embeddedEnv&&(this.templateNode.querySelector(`.${this.cpx}-svg-icon`).innerHTML=this.uiStore.screenKind===n.dY.Full?h():u()),this.uiStore.screenKind===n.dY.Full?(t=0,this.portStore.reqStatue(null)):(t=1,this.portStore.reqStatue(n.dY.Full)),this.track.e("browser_fullscreen",t)}onMouseEnterHandler(){this.fullScreenAnimation.play()}onFullScreenCompleteHandler(){this.fullScreenAnimation.stop()}onStatueChangedHandler(t){const e=t.detail.sideScreen,i=this.uiStore.isFullView?28:19;e===n.dY.Full?this.updateStatue(!0,i):this.updateStatue(!1,i)}addEventListener(){this.templateNode.addEventListener("click",this.onClickHandler),this.configStore.embeddedEnv||(this.templateNode.addEventListener("mouseenter",this.onMouseEnterHandler),this.fullScreenAnimation.addEventListener("complete",this.onFullScreenCompleteHandler)),this.rootPlayer.on(n.tw.Player_Statue_Changed,this.onStatueChangedHandler)}removeEventListener(){this.templateNode.removeEventListener("click",this.onClickHandler),this.fullScreenAnimation&&(this.templateNode.removeEventListener("mouseenter",this.onMouseEnterHandler),this.fullScreenAnimation.removeEventListener("complete",this.onFullScreenCompleteHandler)),this.rootPlayer.off(n.tw.Player_Statue_Changed,this.onStatueChangedHandler)}onDisconnect(){this.removeEventListener()}}f([o.ZP],m.prototype,"onClickHandler",1),f([o.ZP],m.prototype,"onMouseEnterHandler",1),f([o.ZP],m.prototype,"onFullScreenCompleteHandler",1),f([o.ZP],m.prototype,"onStatueChangedHandler",1)},53982:function(t,e,i){"use strict";i.d(e,{H:function(){return p}});var n=i(5489),r=i(99550),o=i(89262),a=i(22451),s=i(77561),l=i.n(s),A=i(44127),c=i(23173),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&h(e,i,o),o};class p extends n.vq{constructor(){super(...arguments),this.templateNode=this.nextButtonTemplate()}install(){super.install(),this.dc.hasNext=(0,a.EH)((()=>{if(this.episodeStore.state.hasNext){if(!this.templateNode.parentElement){this.nodes.controlBottomLeft.querySelector(`.${this.ppx}-ctrl-play`).insertAdjacentElement("afterend",this.templateNode),this.updateTooltip(),this.addEventListener(),this.track.e("ctrl_next_show")}}else this.templateNode.parentElement&&(this.templateNode.parentElement.removeChild(this.templateNode),this.removeEventListener())}))}nextButtonTemplate(){return(0,r.t)(`<div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-next" role="button" aria-label="下一个" tabindex="0"><div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon">${l()}</span></div></div>`)}updateTooltip(){this.tooltipStore.remove("ctrl:next");const t=this.uiStore.isFullView?28:19;this.tooltipStore.create({gap:t,name:"ctrl:next",title:"下一个 (])",target:this.templateNode,position:n.DU.TopCenter,tip:!0})}onClickHandler(){this.configStore.outSideReload?this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Prev_Next_Pgc_Direct,data:{prevOrNext:n.YY.next}}})):(this.episodeStore.next({stats:{spmId:this.configStore.spmId,spmIdFrom:c.Q.stringify({type:this.storyStore.state.type,action:c.A.Player_Ctrl_Next})}}).catch(A.Z),this.track.e("click_next"))}addEventListener(){this.templateNode.addEventListener("click",this.onClickHandler),this.rootPlayer.on(n.tw.Player_Statue_Changed,this.updateTooltip)}removeEventListener(){this.templateNode.removeEventListener("click",this.onClickHandler),this.rootPlayer.off(n.tw.Player_Statue_Changed,this.updateTooltip)}onDisconnect(){this.removeEventListener()}}u([o.ZP],p.prototype,"updateTooltip",1),u([o.ZP],p.prototype,"onClickHandler",1)},28149:function(t,e,i){"use strict";i.d(e,{k:function(){return y}})
;var n=i(5489),r=i(23529),o=i(46330),a=i(99550),s=i(89262),l=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":61,"w":88,"h":88,"nm":"小窗 hover 额外元素","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"路径","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[100]},{"t":40,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[30.496,33.743,0],"to":[2.062,1.833,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[42.871,44.743,0],"to":[0,0,0],"ti":[2.062,1.833,0]},{"t":30,"s":[30.496,33.743,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.78,-0.79],[0,0],[0,0],[-1.04,0.08],[0,0],[0,0],[-0.08,-1.04],[0,0],[0,0],[1.03,-0.07],[0,0],[0,0],[0.08,1.03],[0,0],[0,0],[-1.04,0.08],[0,0],[0,0],[0,0],[-0.79,0.79],[0,0]],"o":[[0,0],[0,0],[0,-1.06],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[-1.06,0],[0,0],[0,0],[0,-1.06],[0,0],[0,0],[0,0],[-0.79,-0.78],[0,0],[0.79,-0.79]],"v":[[-4.038,-9.809],[2.282,-3.499],[2.282,-7.6],[4.132,-9.6],[4.282,-9.6],[8.282,-9.6],[10.272,-7.749],[10.282,-7.6],[10.282,8.4],[8.432,10.391],[8.282,10.4],[-7.718,10.4],[-9.718,8.551],[-9.718,8.4],[-9.718,4.4],[-7.868,2.4],[-7.718,2.4],[-3.138,2.4],[-9.688,-4.16],[-9.688,-6.99],[-6.868,-9.809]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"小窗","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[67,65,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[{"i":[[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0]],"o":[[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0]],"v":[[16,-8],[16,8],[12,12],[-12,12],[-16,8],[-16,-8],[-12,-12],[12,-12]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[{"i":[[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0]],"o":[[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0]],"v":[[19,-4.875],[19,11.125],[15,15.125],[-9,15.125],[-13,11.125],[-13,-4.875],[-9,-8.875],[15,-8.875]],"c":true}]},{"t":40,"s":[{"i":[[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0]],"o":[[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0]],"v":[[16,-8],[16,8],[12,12],[-12,12],[-16,8],[-16,-8],[-12,-12],[12,-12]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Rectangle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"路径","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[41,41,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[26,-28],[34,-20],[34,4],[26,4],[26,-16.8],[22.8,-20],[-22.8,-20],[-25.99,-16.98],[-26,-16.8],[-26,16.8],[-22.98,19.99],[-22.8,20],[2,20],[2,28],[-26,28],[-34,20],[-34,-20],[-26,-28]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[29.35,-21.5],[37.35,-13.5],[37.45,8],[29.45,8],[29.35,-10.3],[26.15,-13.5],[-17.45,-13.5],[-20.64,-10.48],[-20.65,-10.3],[-20.7,19.3],[-17.68,22.49],[-17.5,22.5],[7.05,22.5],[7.05,30.5],[-20.7,30.5],[-28.7,22.5],[-28.65,-13.5],[-20.65,-21.5]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":40,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[26,-28],[34,-20],[34,4],[26,4],[26,-16.8],[22.8,-20],[-22.8,-20],[-25.99,-16.98],[-26,-16.8],[-26,16.8],[-22.98,19.99],[-22.8,20],[2,20],[2,28],[-26,28],[-34,20],[-34,-20],[-26,-28]],"c":true}]},{"t":50,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[26,-28],[34,-20],[34,4],[26,4],[26,-16.8],[22.8,-20],[-22.8,-20],[-25.99,-16.98],[-26,-16.8],[-26,16.8],[-22.98,19.99],[-22.8,20],[2,20],[2,28],[-26,28],[-34,20],[-34,-20],[-26,-28]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),A=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":61,"w":88,"h":88,"nm":"小窗 hover 额外元素退出 ","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"大框","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[42,44,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[26,-28],[34,-20],[34,4],[26,4],[26,-16.8],[22.8,-20],[-22.8,-20],[-25.99,-16.98],[-26,-16.8],[-26,16.8],[-22.98,19.99],[-22.8,20],[2,20],[2,28],[-26,28],[-34,20],[-34,-20],[-26,-28]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[15,-31.875],[23,-23.875],[23,-15.5],[15,-15.5],[15,-20.675],[11.8,-23.875],[-27.05,-23.875],[-30.24,-20.855],[-30.25,-20.675],[-30.25,8.05],[-27.23,11.24],[-27.05,11.25],[-23.25,11.25],[-23.25,19.25],[-30.25,19.25],[-38.25,11.25],[-38.25,-23.875],[-30.25,-31.875]],"c":true}]},{"t":40,"s":[{"i":[[0,0],[0,-4.42],[0,0],[0,0],[0,0],[1.77,0],[0,0],[0.09,-1.68],[0,0],[0,0],[-1.68,-0.09],[0,0],[0,0],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,0],[0,0],[0,-1.77],[0,0],[-1.71,0],[0,0],[0,0],[0,1.71],[0,0],[0,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[26,-28],[34,-20],[34,4],[26,4],[26,-16.8],[22.8,-20],[-22.8,-20],[-25.99,-16.98],[-26,-16.8],[-26,16.8],[-22.98,19.99],[-22.8,20],[2,20],[2,28],[-26,28],[-34,20],[-34,-20],[-26,-28]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"箭头","td":1,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[100]},{"t":40,"s":[0]}],"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[66.913,68.947,0],"to":[-2.062,-1.833,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[54.538,57.947,0],"to":[0,0,0],"ti":[-2.062,-1.833,0]},{"t":30,"s":[66.913,68.947,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.78,-0.79],[0,0],[0,0],[-1.04,0.08],[0,0],[0,0],[-0.08,-1.04],[0,0],[0,0],[1.03,-0.07],[0,0],[0,0],[0.08,1.03],[0,0],[0,0],[-1.04,0.08],[0,0],[0,0],[0,0],[-0.79,0.79],[0,0]],"o":[[0,0],[0,0],[0,-1.06],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[-1.06,0],[0,0],[0,0],[0,-1.06],[0,0],[0,0],[0,0],[-0.79,-0.78],[0,0],[0.79,-0.79]],"v":[[-4.038,-9.809],[2.282,-3.499],[2.282,-7.6],[4.132,-9.6],[4.282,-9.6],[8.282,-9.6],[10.272,-7.749],[10.282,-7.6],[10.282,8.4],[8.432,10.391],[8.282,10.4],[-7.718,10.4],[-9.718,8.551],[-9.718,8.4],[-9.718,4.4],[-7.868,2.4],[-7.718,2.4],[-3.138,2.4],[-9.688,-4.16],[-9.688,-6.99],[-6.868,-9.809]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":" 小窗","tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[68,68,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":10,"s":[{"i":[[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0]],"o":[[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0]],"v":[[16,-8],[16,8],[12,12],[-12,12],[-16,8],[-16,-8],[-12,-12],[12,-12]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[{"i":[[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0]],"o":[[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0]],"v":[[9.188,-30.25],[9.188,4.5],[5.188,8.5],[-40.375,8.625],[-44.375,4.625],[-44.375,-30.125],[-40.375,-34.125],[5.188,-34.25]],"c":true}]},{"t":40,"s":[{"i":[[0,-2.209],[0,0],[2.209,0],[0,0],[0,2.209],[0,0],[-2.209,0],[0,0]],"o":[[0,0],[0,2.209],[0,0],[-2.209,0],[0,0],[0,-2.209],[0,0],[2.209,0]],"v":[[16,-8],[16,8],[12,12],[-12,12],[-16,8],[-16,-8],[-12,-12],[12,-12]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Rectangle","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),c=i(22451),h=i(20733),d=i.n(h),u=i(91785),p=i.n(u),g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,m=(t,e,i,n)=>{
for(var r,o=n>1?void 0:n?f(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&g(e,i,o),o};class y extends n.vq{constructor(){super(...arguments),this.tag="CtrlPip",this.templateNodes=this.pipTemplate(),this.enteredToken=this.spx+"-entered"}install(){super.install(),this.premiereStore.state.status||(this.statueStore.hasPipFn&&this.statueStore.pipEnabled?(this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.updateStatue(this.uiStore.state.sideScreen===n.dY.Pip,this.uiStore.isFullView?28:19),this.configStore.embeddedEnv?(this.templateNodes.enterIcon.querySelector(`.${this.cpx}-svg-icon`).innerHTML=p(),this.templateNodes.leaveIcon.querySelector(`.${this.cpx}-svg-icon`).innerHTML=p()):this.createAnimation(),this.addEventListener(),this.dc.panorama=(0,c.U5)((()=>!this.panoramaStore.state.disabled),(t=>{t?this.templateNodes.container.setAttribute("disabled","true"):this.templateNodes.container.removeAttribute("disabled")}),{fireImmediately:!0})):this.track.e("pip_disabled"),this.dc.hasAdv=(0,c.U5)((()=>this.patchAdvStore.hasValidAdv),(t=>{return e=this,i=null,a=function*(){if(t&&this.uiStore.kind!==n.HR.Pugv){(0,r.N)(this.templateNodes.container);try{this.uiStore.state.sideScreen===n.dY.Pip&&this.statueStore.requestStatue(null,!0).then((()=>{this.track.e("pip_leave")}))}catch(t){console.error("fail to quit pip")}}else(0,o.o)(this.templateNodes.container)},new Promise(((t,n)=>{var r=t=>{try{s(a.next(t))}catch(t){n(t)}},o=t=>{try{s(a.throw(t))}catch(t){n(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,o);s((a=a.apply(e,i)).next())}));var e,i,a}),{fireImmediately:!0}))}pipTemplate(){const t=(0,a.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-pip" role="button" aria-label="画中画" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-pip-enter"><span class="${this.cpx}-svg-icon"></span></div>\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-pip-leave"><span class="${this.cpx}-svg-icon"></span></div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-pip-enter`),i=t.querySelector(`.${this.ppx}-ctrl-pip-leave`);return{container:t,enterIcon:e,leaveIcon:i}}createAnimation(){this.pipEnterAnimation=d().loadAnimation({name:"pipEnter",container:this.templateNodes.enterIcon.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:l}),this.pipLeaveAnimation=d().loadAnimation({name:"pipLeave",container:this.templateNodes.leaveIcon.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:A})}updateStatue(t,e){this.tooltipStore.remove("ctrl:pip"),this.tooltipStore.create({tip:!0,name:"ctrl:pip",title:t?"退出画中画":"开启画中画",gap:e,target:this.templateNodes.container,position:n.DU.TopCenter}),this.templateNodes.container.classList[t?"add":"remove"](this.enteredToken)}onClickHandler(){this.panoramaStore.state.disabled&&(this.uiStore.state.sideScreen===n.dY.Pip?this.statueStore.requestStatue(null,!0).then((()=>{this.track.e("pip_leave")})):this.wmpStore.fallbackWasmPlayer(n.fR.WASM_PLAYER_FALLBACK_PIP).then((()=>{this.statueStore.requestStatue(n.dY.Pip).then((()=>{this.track.e("pip_enter")})).catch((()=>{this.toastStore.create({text:"当前视频不支持画中画功能",duration:3500})}))})))}onMouseEnterHandler(){this.uiStore.state.sideScreen===n.dY.Pip?this.pipLeaveAnimation.play():this.pipEnterAnimation.play()}onPipEnterCompleteHandler(){this.pipEnterAnimation.stop()}onPipLeaveCompleteHandler(){this.pipLeaveAnimation.stop()}onStatueChangedHandler(t){const e=t.detail.sideScreen,i=this.uiStore.isFullView?28:19;e===n.dY.Pip?this.updateStatue(!0,i):this.updateStatue(!1,i)}addEventListener(){this.templateNodes.container.addEventListener("click",this.onClickHandler),this.configStore.embeddedEnv||(this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.pipEnterAnimation.addEventListener("complete",this.onPipEnterCompleteHandler),this.pipLeaveAnimation.addEventListener("complete",this.onPipLeaveCompleteHandler)),this.rootPlayer.on(n.tw.Player_Statue_Changed,this.onStatueChangedHandler)}removeEventListener(){this.templateNodes.container.removeEventListener("click",this.onClickHandler),this.pipEnterAnimation&&(this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.pipEnterAnimation.removeEventListener("complete",this.onPipEnterCompleteHandler),this.pipLeaveAnimation.removeEventListener("complete",this.onPipLeaveCompleteHandler)),this.rootPlayer.off(n.tw.Player_Statue_Changed,this.onStatueChangedHandler)}onDisconnect(){this.removeEventListener()}}m([s.ZP],y.prototype,"onClickHandler",1),m([s.ZP],y.prototype,"onMouseEnterHandler",1),m([s.ZP],y.prototype,"onPipEnterCompleteHandler",1),m([s.ZP],y.prototype,"onPipLeaveCompleteHandler",1),m([s.ZP],y.prototype,"onStatueChangedHandler",1)},48054:function(t,e,i){"use strict";i.d(e,{w:function(){return p}})
;var n=i(5489),r=i(99550),o=i(89262),a=i(22451),s=i(44127),l=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":60,"w":28,"h":28,"nm":"播放->暂停","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7.199,"s":[0],"e":[100]},{"t":26.400390625}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":4.801,"s":[4,14,0],"e":[14.6,14,0],"to":[1.767,0,0],"ti":[-1.583,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":24,"s":[14.6,14,0],"e":[13.5,14,0],"to":[1.583,0,0],"ti":[0.1,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":28.801,"s":[13.5,14,0],"e":[14,14,0],"to":[-0.1,0,0],"ti":[-0.083,0,0]},{"t":38.400390625}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[1.094,-0.781],[0,0],[0,0],[-1.125,-0.75],[0,0],[0,0],[0,1.062],[0,0]],"o":[[0,0],[-0.688,0.562],[0,0],[0,0],[1.125,0.75],[0,0],[0,0],[0,-1.062],[0,0]],"v":[[-7.031,-10.875],[-9.422,-10.469],[-10,-7.992],[-10,8.016],[-9,10.992],[-5,10.031],[7.969,1.875],[9,0],[7.969,-1.938]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 1","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":93,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[100],"e":[0]},{"t":9.599609375}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":1,"k":[{"i":{"x":[0.259],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[8.75],"e":[19]},{"t":9.599609375}],"ix":3},"y":{"a":0,"k":14,"ix":4}},"a":{"a":0,"k":[-5.25,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":4.801,"s":[100,100,100],"e":[0,0,100]},{"t":16.80078125}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.469,0],[0,0],[0,0],[-2.484,0],[0,0],[0,0]],"o":[[-2.469,0],[0,0],[0,0],[2.484,0],[0,0],[0,0]],"v":[[-5.484,-10],[-8,-7.984],[-8.008,7.984],[-5.5,9.992],[-3.004,7.996],[-2.984,-8]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":93,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"形状图层 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100],"e":[0]},{"t":12}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[19.438,14.125,0],"ix":2},"a":{"a":0,"k":[-5.375,0.125,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100],"e":[0,0,100]},{"t":16.80078125}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.469,0],[0,0],[0,0],[-2.484,0],[0,0],[0,0]],"o":[[-2.469,0],[0,0],[0,0],[2.484,0],[0,0],[0,0]],"v":[[-5.484,-10],[-8,-7.984],[-8.008,7.984],[-5.5,9.992],[-3.004,7.996],[-2.984,-8]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":93,"st":0,"bm":0}],"markers":[]}'),A=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":60,"w":28,"h":28,"nm":"暂停->播放","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.33],"y":[0]},"t":0,"s":[100],"e":[0]},{"t":10}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.67,"y":1},"o":{"x":1,"y":0},"t":0,"s":[14.6,14,0],"e":[4,14,0],"to":[1.583,0,0],"ti":[0,0,0]},{"t":12}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[1.094,-0.781],[0,0],[0,0],[-1.125,-0.75],[0,0],[0,0],[0,1.062],[0,0]],"o":[[0,0],[-0.688,0.562],[0,0],[0,0],[1.125,0.75],[0,0],[0,0],[0,-1.062],[0,0]],"v":[[-7.031,-10.875],[-9.422,-10.469],[-10,-7.992],[-10,8.016],[-9,10.992],[-5,10.031],[7.969,1.875],[9,0],[7.969,-1.938]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 1","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":-5,"op":88,"st":-5,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11.199,"s":[0],"e":[100]},{"t":20.80078125}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[24.812,14,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[0.809,0.809,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":6.4,"s":[0,0,100],"e":[110,110,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[-0.525,-0.525,0]},"t":16,"s":[110,110,100],"e":[90,90,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":20.801,"s":[90,90,100],"e":[100,100,100]},{"t":28}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.469,0],[0,0],[0,0],[-2.484,0],[0,0],[0,0]],"o":[[-2.469,0],[0,0],[0,0],[2.484,0],[0,0],[0,0]],"v":[[-5.484,-10],[-8,-7.984],[-8.008,7.984],[-5.5,9.992],[-3.004,7.996],[-2.984,-8]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":4,"op":70,"st":4,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.571],"y":[1]},"o":{"x":[0.05],"y":[0]},"t":4,"s":[0],"e":[100]},{"t":23.19921875}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":1,"k":[{"i":{"x":[0.889],"y":[1]},"o":{"x":[0.192],"y":[0.965]},"t":4,"s":[25],"e":[14]},{"t":23.19921875}],"ix":3},"y":{"a":1,"k":[{"i":{"x":[0.95],"y":[1]},"o":{"x":[0.05],"y":[0]},"t":4,"s":[14],"e":[14]},{"t":23.19921875}],"ix":4}},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.469,0],[0,0],[0,0],[-2.484,0],[0,0],[0,0]],"o":[[-2.469,0],[0,0],[0,0],[2.484,0],[0,0],[0,0]],"v":[[-5.484,-10],[-8,-7.984],[-8.008,7.984],[-5.5,9.992],[-3.004,7.996],[-2.984,-8]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"?? 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"?? 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":4,"op":70,"st":4,"bm":0}],"markers":[]}'),c=i(20733),h=i.n(c),d=Object.defineProperty,u=Object.getOwnPropertyDescriptor
;class p extends n.vq{constructor(){super(...arguments),this.templateNode=this.playTemplate()}install(){super.install(),this.templateNode.parentElement||(this.createAnimation(this.mediaStore.state.paused),this.addEventListener(),this.nodes.controlBottomLeft.appendChild(this.templateNode)),this.dc.pause=(0,a.U5)((()=>this.mediaStore.state.paused),(t=>{this.createAnimation(t).play()}),{fireImmediately:!0})}playTemplate(){return(0,r.t)(`<div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-play" role="button" aria-label="播放/暂停" tabindex="0"><div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon"></span></div></div>`)}onClickHandler(){if(!this.premiereStore.isEnd){if(this.mediaStore.state.paused){if(this.mediaStore.video.ended&&this.patchAdvStore.hasValidAdv&&!this.kernelStore.state.srcSwitching)return void this.portStore.seekAutoplay(0,n.hH.ManualAction);this.portStore.play({initiator:n.hH.ManualAction}).catch(s.Z),this.track.e("play_button")}else this.portStore.pause({initiator:n.hH.ManualAction}),this.track.e("pause_button");this.trackExtra.p("player.play_pause.click",n.p0.Click,{action:1,switch:this.mediaStore.state.paused?1:0})}}addEventListener(){this.templateNode.addEventListener("click",this.onClickHandler)}removeEventListener(){this.templateNode.removeEventListener("click",this.onClickHandler)}createAnimation(t){return this.startAnimation&&this.startAnimation.destroy(),this.startAnimation=h().loadAnimation({name:"play",container:this.templateNode.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:t?l:A}),this.startAnimation}onDisconnect(){this.removeEventListener()}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?u(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&d(e,i,o)})([o.ZP],p.prototype,"onClickHandler",1)},48512:function(t,e,i){"use strict";i.d(e,{t:function(){return p}});var n=i(46330),r=i(23529),o=i(99550),a=i(89262),s=i(22451),l=i(5489),A=i(51839),c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?h(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&c(e,i,o),o};const u=class extends l.vq{constructor(){super(...arguments),this.showToken=`${this.spx}-show`,this.activeToken=`${this.spx}-active`,this.templateNodes=this.playbackRateTemplate()}static get info(){return[{name:"2.0x",value:2},{name:"1.5x",value:1.5},{name:"1.25x",value:1.25},{name:"1.0x",value:1},{name:"0.75x",value:.75},{name:"0.5x",value:.5}]}static get mapping(){return{1:"倍速",2:"2.0x",.5:"0.5x",1.5:"1.5x",.75:"0.75x",1.25:"1.25x"}}static normalize(t){return u.mapping[t]?u.mapping[t]:Number.isInteger(t)?t.toFixed(1)+"x":t+"x"}install(){super.install(),this.premiereStore.state.status||(this.templateNodes.container.parentElement||(this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.addEventListener()),this.dc.playbackRate=(0,s.U5)((()=>this.settingStore.state.playbackRate),(t=>{this.filterActive(),this.templateNodes.result.innerHTML=u.normalize(t)})),this.configStore.embeddedEnv&&(this.dc.isShowCtrlButtons=(0,s.U5)((()=>this.uiStore.isShowCtrlButtons),(t=>{t?(0,n.o)(this.templateNodes.container):(0,r.N)(this.templateNodes.container)}),{fireImmediately:!0})))}getRealPlaybackRateList(){return this.configStore.isChannel(l.u5.Manager)?[4,3.5,3,2.5,2,1.5,1,.5,.25].map((t=>({name:1===t?"1.0":u.normalize(t),value:t}))):u.info}playbackRateTemplate(){let t="";const e=this.settingStore.getPlaybackRate();this.getRealPlaybackRateList().forEach((i=>{let n="";e===i.value&&(n=this.activeToken),t+=`<li class="${this.ppx}-ctrl-playbackrate-menu-item ${n}" data-value="${i.value}">${i.name}</li>`}));const i=(0,o.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-playbackrate" role="button" aria-label="倍速" tabindex="0">\n                <div class="${this.ppx}-ctrl-playbackrate-result">${u.normalize(e)}</div>\n                <ul class="${this.ppx}-ctrl-playbackrate-menu">\n                    ${t}\n                </ul>\n            </div>\n        `),n=i.querySelector(`.${this.ppx}-ctrl-playbackrate-result`),r=i.querySelector(`.${this.ppx}-ctrl-playbackrate-menu`);return{container:i,result:n,menu:r}}filterActive(){this.templateNodes.menu.querySelectorAll(`.${this.ppx}-ctrl-playbackrate-menu-item`).forEach((t=>{t.classList.remove(this.activeToken),+t.dataset.value===this.settingStore.state.playbackRate&&t.classList.add(this.activeToken)}))}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("speed_show"),this.templateNodes.container.classList.remove(this.showToken)))}onMouseEnterHandler(){this.clearTimer(),this.showTimer=window.setTimeout((()=>{this.templateNodes.container.classList.add(this.showToken)}),this.configStore.onlyTouchMode?0:300)}onMouseLeaveHandler(){this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),this.configStore.onlyTouchMode?0:350)}onClickHandler(t){const e=t.target;if("LI"===e.tagName.toUpperCase()){const t=+e.dataset.value;this.templateNodes.container.classList.remove(this.showToken),t!==this.settingStore.getPlaybackRate()&&(this.settingStore.setPlaybackRate(t),this.track.e("speed_click",t))}}onBtnClickHandler(){const t=this.portStore.getRedirectTime();(0,A.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),this.portStore.pause()}addEventListener(){this.configStore.embeddedEnv===l.vt.Other?this.templateNodes.container.addEventListener("click",this.onBtnClickHandler):this.templateNodes.menu.addEventListener("click",this.onClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.addEventListener("mouseleave",this.onMouseLeaveHandler)}removeEventListener(){this.configStore.embeddedEnv===l.vt.Other?this.templateNodes.container.addEventListener("click",this.onBtnClickHandler):this.templateNodes.menu.removeEventListener("click",this.onClickHandler),this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.removeEventListener("mouseleave",this.onMouseLeaveHandler)}onDispose(){window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer)}onDisconnect(){this.removeEventListener()}};let p=u;d([a.ZP],p.prototype,"onMouseEnterHandler",1),d([a.ZP],p.prototype,"onMouseLeaveHandler",1),d([a.ZP],p.prototype,"onClickHandler",1),d([a.ZP],p.prototype,"onBtnClickHandler",1)},81615:function(t,e,i){"use strict";i.d(e,{o:function(){return p}});var n=i(5489),r=i(99550),o=i(89262),a=i(22451),s=i(77561),l=i.n(s),A=i(44127),c=i(23173),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&h(e,i,o),o};class p extends n.vq{constructor(){super(...arguments),this.templateNode=this.prevButtonTemplate()}install(){super.install(),this.dc.hasPrev=(0,a.EH)((()=>{if(this.episodeStore.state.hasPrev){if(!this.templateNode.parentElement){this.nodes.controlBottomLeft.querySelector(`.${this.ppx}-ctrl-play`).insertAdjacentElement("beforebegin",this.templateNode),this.updateTooltip(),this.addEventListener(),this.track.e("ctrl_prev_show")}}else this.templateNode.parentElement&&(this.templateNode.parentElement.removeChild(this.templateNode),this.removeEventListener())}))}prevButtonTemplate(){return(0,r.t)(`<div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-prev" role="button" aria-label="上一个" tabindex="0""><div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon">${l()}</span></div></div>`)}updateTooltip(){this.tooltipStore.remove("ctrl:prev");const t=this.uiStore.isFullView?28:19;this.tooltipStore.create({gap:t,name:"ctrl:prev",title:"上一个 ([)",target:this.templateNode,position:n.DU.TopCenter,tip:!0})}onClickHandler(){this.configStore.outSideReload?this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Prev_Next_Pgc_Direct,data:{prevOrNext:n.YY.prev}}})):(this.episodeStore.prev({stats:{spmId:this.configStore.spmId,spmIdFrom:c.Q.stringify({
type:this.storyStore.state.type,action:c.A.Player_Ctrl_Prev})}}).catch(A.Z),this.track.e("click_prev"))}addEventListener(){this.templateNode.addEventListener("click",this.onClickHandler),this.rootPlayer.on(n.tw.Player_Statue_Changed,this.updateTooltip)}removeEventListener(){this.templateNode.removeEventListener("click",this.onClickHandler),this.rootPlayer.off(n.tw.Player_Statue_Changed,this.updateTooltip)}onDisconnect(){this.removeEventListener()}}u([o.ZP],p.prototype,"updateTooltip",1),u([o.ZP],p.prototype,"onClickHandler",1)},22805:function(t,e,i){"use strict";i.d(e,{T:function(){return P}});var n=i(5489),r=i(51102),o=i(99550),a=i(18417),s=i(46330),l=i(23529),A=i(85727);function c(){return t=this,e=null,i=function*(){const t="[hasAvif]";if(A.x.has(t))return A.x.get(t);let e=!1;try{e=yield new Promise((t=>{const e=new Image;e.onload=e.onerror=()=>{t(2===e.height)},e.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}))}catch(t){}return A.x.set(t,e),e},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}var h=i(51882),d=i(31168),u=i(20733),p=i.n(u),g=i(22451),f=i(89262),m=i(57619),y=i.n(m),b=i(63476),v=i.n(b),E=i(62022),I=i(92452);class C extends I.eV{constructor(){super(...arguments),this.tag="HttpProgress"}r(t){return e=this,i=null,n=function*(){return this.request({url:t,method:"GET",responseType:"json"})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}class B extends I.eV{constructor(){super(...arguments),this.tag="HttpPbp",this.url="//bvc.bilivideo.com/pbp/data"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:Object.assign({},t,{r:"loader"}),withCredentials:!1}).then((t=>({info:this.parse(t),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){var e,i,n,r,o,a,s;const l=(null==(e=null==t?void 0:t.data)?void 0:e.modules)||[];for(let t=0;t<l.length;t++){const e=l[t];if("pbp"===e.load_mode&&(null==(n=null==(i=e.params)?void 0:i.data)?void 0:n.step_sec)&&(null==(s=null==(a=null==(o=null==(r=e.params)?void 0:r.data)?void 0:o.events)?void 0:a.default)?void 0:s.length))return{mode:e.load_mode,params:{data:e.params.data.events.default,stepSec:e.params.data.step_sec}}}}}var w=i(65159),x=JSON.parse('{"v":"5.7.4","fr":60,"ip":0,"op":26,"w":54,"h":54,"nm":"游标","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Rectangle 21","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[30]},{"t":16}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[27,46.75,0],"e":[27,33,0],"to":[0,-2.292,0],"ti":[0,2.292,0]},{"t":25}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,-100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[5,-1.5],[0.037,1.5],[-5,-1.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 21","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":72,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Rectangle 20","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":4,"s":[0],"e":[60]},{"t":20}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":4,"s":[27,34.75,0],"e":[27,21,0],"to":[0,-2.292,0],"ti":[0,2.292,0]},{"t":25}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,-100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[5,-1.5],[0.037,1.5],[-5,-1.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 20","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":72,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Rectangle 19","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[0],"e":[90]},{"t":25}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[27,22.75,0],"e":[27,9,0],"to":[0,-2.292,0],"ti":[0,2.292,0]},{"t":25}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,-100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[5,-1.5],[0.037,1.5],[-5,-1.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 19","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":72,"st":0,"bm":0}],"markers":[]}');class Q{constructor(t){this.dbName=t.dbNamde,this.storeName=t.storeName,this.keyPath=t.keyPath,this.initDB()}static available(){return!!window.indexedDB}initDB(t=0){this.openDB=t>0?window.indexedDB.open(this.dbName,t):window.indexedDB.open(this.dbName),this.dbPromise=new Promise(((t,e)=>{this.openDB.onsuccess=()=>{this.dbVersion=this.openDB.result.version,this.updateDB(this.openDB.result),t(this.openDB.result)},this.openDB.onupgradeneeded=()=>{this.openDB.result.objectStoreNames.contains(this.storeName)||this.openDB.result.createObjectStore(this.storeName,{keyPath:this.keyPath})},this.openDB.onerror=t=>{e(t)}}))}updateDB(t){t.objectStoreNames.contains(this.storeName)||this.initDB(this.dbVersion+1)}checkExpire(t){return e=this,i=null,n=function*(){const e=yield this.dbPromise;if(t)this.get(t).then((i=>{i&&i.expireTime<Date.now()&&e.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t)}));else{const t=e.transaction([this.storeName],"readwrite").objectStore(this.storeName).openCursor();t.onsuccess=e=>{const i=t.result;i&&(this.checkExpire(i.key),i.continue())}}},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}get(t){return new Promise(((e,i)=>{this.dbPromise.then((i=>{const n=i.transaction([this.storeName]).objectStore(this.storeName).get(t);n.onsuccess=()=>{e(n.result)},
n.onerror=()=>{e(null)}})).catch((()=>{i()}))}))}set(t,e){this.dbPromise.then((i=>{null!=e&&(t.expire=Date.now()+e);i.transaction(this.storeName,"readwrite").objectStore(this.storeName).put(t)}))}dispose(){this.openDB&&(this.openDB.onsuccess=null,this.openDB.onupgradeneeded=null,this.openDB.onerror=null)}}var S=i(12647),k=i.n(S),D=i(90174),_=i.n(D);class R{constructor(t){this.svgW=1e3,this.svgH=100,this.increasedHeightRatio=.2,this.pinCacheKey="pbp_pin_v3",this.zebraAreas=[],this.zebraStart=0,this.zebraEnd=null,this.lastUpdateTime=0,this.firstRefresh=!1,this.pinClickCnt=0,this.config=t,this.ppx=this.config.ppx+"-pbp",this.points=this.calcPoints(),this.db=new Q({dbNamde:"pbp3",storeName:"pbpZebraCache",keyPath:"cid"}),this.db.get(this.config.cid).then((t=>{t&&t.data?this.zebraAreas=t.data:this.db.checkExpire(null),this.refreshZebraPath()}))}static hasSupport(){return!("function"!=typeof MutationObserver&&!window.WebKitMutationObserver&&!window.MozMutationObserver)&&(!!Promise&&(!(!localStorage&&!sessionStorage)&&Q.available()))}calcPoints(){let{duration:t,data:e,step:i}=this.config;const n=Math.floor(t()/i);n>e.length&&(e=e.concat(new Array(n-e.length).fill(0)));const r=e.reduce(((t,e)=>t>e?t:e),0),o=[];return e.forEach(((t,i)=>{const n=t/r||0;o.push({value:t,ratioH:n,ratioW:i/e.length})})),o}createTemplate(){const t="http://www.w3.org/2000/svg",e=`${this.ppx}-curve-path`,i=`${this.ppx}-played-path`,n=`${this.ppx}-videoshot`,r=(0,o.t)(`<div class="${this.ppx}"></div>`),a=document.createElementNS(t,"svg");a.setAttribute("viewBox",`0 0 ${this.svgW} ${this.svgH}`),a.setAttribute("preserveAspectRatio","none"),a.setAttribute("width","100%"),a.setAttribute("height","100%");const s=document.createElementNS(t,"defs"),l=document.createElementNS(t,"clipPath");l.setAttribute("id",e),l.setAttribute("clipPathUnits","userSpaceOnUse");const A=document.createElementNS(t,"path");A.setAttribute("d",this.generateBezierCurvePath()),l.appendChild(A);const c=document.createElementNS(t,"clipPath");c.setAttribute("id",i),c.setAttribute("clipPathUnits","userSpaceOnUse");const h=document.createElementNS(t,"rect");h.setAttribute("x","0"),h.setAttribute("width","0"),h.setAttribute("y","0"),h.setAttribute("height","100%"),c.appendChild(h);const d=document.createElementNS(t,"path");d.setAttribute("d",this.generateZebraPath()),c.appendChild(d),s.appendChild(l),s.appendChild(c);const u=document.createElementNS(t,"g");u.setAttribute("fill-opacity","0.2"),u.setAttribute("clip-path",`url(#${e})`),u.setAttribute("class",`${n}`);const p=document.createElementNS(t,"rect");p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("fill","rgba(255, 255, 255)"),u.appendChild(p);const g=document.createElementNS(t,"rect");g.setAttribute("x","0"),g.setAttribute("y","0"),g.setAttribute("width","100%"),g.setAttribute("height","100%"),g.setAttribute("fill","var(--bpx-primary-color, #00a1d6)"),g.setAttribute("clip-path",`url(#${i})`),u.appendChild(g);const f=document.createElementNS(t,"line");f.setAttribute("y1","0"),f.setAttribute("y2","100%"),f.setAttribute("style","stroke: rgba(255, 255, 255, 0.2); stroke-width: 1;"),u.appendChild(f),a.appendChild(s),a.appendChild(u),r.appendChild(a),this.config.container.appendChild(r),u.addEventListener("click",(t=>{const e=(t.clientX-a.getBoundingClientRect().left)/a.getBoundingClientRect().width;this.config.seek(e*this.config.duration()),this.config.track("slidepbp")})),this.templates={pbp:r,svg:a,line:f,group:u,clipRect:h,fillRect:p,zebraPath:d,playedRect:g}}generateBezierCurvePath(){const t=this.increasedHeightRatio*this.svgH,e=this.points[1].ratioW*this.svgW/2,i=["M 0 100 L 0 "+(this.svgH-t)];let n=0,r=this.svgH-t;const o=this.points.concat([{value:1,ratioW:1,ratioH:0}]);for(let a=1;a<o.length;a++){const s=o[a],l=s.ratioW*this.svgW,A=this.svgH-(t+(1-this.increasedHeightRatio)*s.ratioH*this.svgH),c=n+e;i.push(`C ${c.toFixed(1)} ${r.toFixed(1)}, ${c.toFixed(1)} ${A.toFixed(1)}, ${l.toFixed(1)} ${A.toFixed(1)}`),n=l,r=A}return i.push("L 1000 100 Z"),i.join(" ")}generateZebraPath(){const t=[];for(let e=0;e<this.zebraAreas.length;e++){const i=this.zebraAreas[e],n=this.svgW*i[0],r=this.svgW*i[1];t.push(`M ${n.toFixed(1)} 100 H ${r.toFixed(1)} V 0 H ${n.toFixed(1)} Z`)}return t.join(" ")}refresh(){const{clipRect:t,line:e}=this.templates;if(null!==this.zebraStart&&null!==this.zebraEnd&&this.zebraEnd>this.zebraStart){const e=100*this.zebraStart,i=100*this.zebraEnd-e;t.setAttribute("x",`${e.toFixed(2)}%`),t.setAttribute("width",`${i.toFixed(2)}%`)}let i=this.config.currentTime();this.firstRefresh||(i=0,this.firstRefresh=!0);const n=i/this.config.duration()*this.svgW-.5;e.setAttribute("x1",`${n>=0?n:0}`),e.setAttribute("x2",`${n||0}`)}updateZebraAreas(){if(null!==this.zebraStart&&null!==this.zebraEnd){const t=Object.assign([],this.zebraAreas);for(let e=0;e<t.length;e++){const i=t[e][0],n=t[e][1];if(this.zebraStart>n){if(e+1===t.length){this.zebraAreas.push([this.zebraStart,this.zebraEnd]);break}}else{if(this.zebraStart>=i&&this.zebraEnd<=n)break;this.zebraStart<=i&&this.zebraEnd>=i&&this.zebraEnd<n?this.zebraAreas[e]=[this.zebraStart,n]:this.zebraStart>=i&&this.zebraStart<=n&&this.zebraEnd>n?this.zebraAreas[e]=[i,this.zebraEnd]:this.zebraAreas.splice(e,0,[this.zebraStart,this.zebraEnd])}}if(this.zebraAreas.length>1){const t=[];let e=this.zebraAreas[0][1],i=0;for(let n=1;n<this.zebraAreas.length;n++){const r=this.zebraAreas[n][0],o=this.zebraAreas[n][1];e>r?(e<o&&(this.zebraAreas[i]=[this.zebraAreas[i][0],o],e=o,i=n),t.push(n)):(e=o,i=n)}t.forEach(((t,e)=>{this.zebraAreas.splice(t-e,1)}))}else this.zebraAreas.push([this.zebraStart,this.zebraEnd]);this.refreshZebraPath()}}refreshZebraPath(){this.templates&&this.templates.zebraPath&&this.templates.zebraPath.setAttribute("d",this.generateZebraPath())}createPin(){const t=(0,o.t)(`<div class="${this.ppx}-pin">\n                <div class="${this.ppx}-pin-icon"></div>\n                <span class="${this.ppx}-pin-tip"></span>\n            </div>`),e=t.querySelector(`.${this.ppx}-pin-icon`),i=t.querySelector(`.${this.ppx}-pin-tip`);this.templates.pin=t,this.opened=!!this.config.pinstate(),this.updatePinState(e,i,this.opened),this.templates.pbp.appendChild(t),t.addEventListener("click",(()=>{this.updatePinState(e,i,!this.opened)}))}updatePinState(t,e,i){i?(t.innerHTML=k(),e.innerText="关闭《高能进度条》常驻",this.templates.pbp.classList.add("pin")):(t.innerHTML=_(),e.innerText="打开《高能进度条》常驻",this.templates.pbp.classList.remove("pin")),this.opened=i,this.config.pinstate(i)}show(t){return e=this,i=null,n=function*(){this.points&&(this.createTemplate(),this.refresh(),this.createPin(),this.opacity(t))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}setBottom(t){this.templates&&this.templates.pbp&&(this.templates.pbp.style.bottom=t)}hide(){this.templates&&this.templates.pbp&&this.templates.pbp.parentElement&&this.templates.pbp.parentElement.removeChild(this.templates.pbp)}opacity(t){this.templates&&this.templates.pbp&&(t?(this.templates.pbp.classList.add("show"),this.templates.pin&&(this.templates.pin.style.opacity="1")):(this.templates.pbp.classList.remove("show"),this.templates.pin&&(this.templates.pin.style.opacity="0")))}executeZebraCached(){const t=this.config.currentTime(),e=Number((t/this.config.duration()||0).toFixed(4));this.zebraEnd=e,this.updateZebraAreas(),this.zebraStart=this.zebraEnd,this.lastUpdateTime=null,this.db.set({cid:this.config.cid,data:this.zebraAreas},2592e6)}seek(){this.updateZebraAreas(),this.lastUpdateTime=null,this.zebraStart=this.zebraEnd=null}timeupdate(){const t=this.config.currentTime(),e=t/this.config.duration()||0;let i=!1;null!=this.lastUpdateTime&&(i=t<this.lastUpdateTime||t-this.lastUpdateTime>1.5),i?(this.updateZebraAreas(),this.lastUpdateTime=null,this.zebraStart=this.zebraEnd=null):(null===this.zebraStart&&(this.zebraStart=Number(e.toFixed(4))),this.zebraEnd=Number(e.toFixed(4)),this.lastUpdateTime-t>=15?this.executeZebraCached():this.lastUpdateTime=t),this.refresh()}
dispose(){this.hide(),this.db.dispose()}}var M=Object.defineProperty,T=Object.getOwnPropertyDescriptor,F=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?T(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&M(e,i,o),o},L=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const N={imgW:0,imgH:0,xLen:0,yLen:0,perImgW:160,perImgH:90,images:null,indexList:null};class P extends n.vq{constructor(t){super(t),this.templateNodes=this.progressTemplate(),this.videoshot=Object.assign({},N),this.hotspotMap=new Map,this.segmentGap=.003,this.hoverTimer=0,this.imagePromises={},this.computedPoints=[],this.thumbTimer=0,this.thumbDirection=0,this.ratioY=1,this.maxRatioY=11,this.showScaleplateHeight=15,this.startPercentage=0,this.savedLeft=0,this.savedRight=0,this.scaleplateTrackReported=!1,this.precisionEndTime=null,this.panMajorHiddenSet=!1,this.panStartPercentage=0,this.showChargingTip=!1,this.activeToken=this.spx+"-active",this.pullingToken=this.spx+"-pulling",this.videoShotMap=new Map,this.savedIndexMap={},this.throttleSeekFunc=null,this.isFirstInit=!0,this.thumbData=null,(0,g.rC)(this)}get dynamicThumb(){return!r.X.trident.alike}setThumbData(t){this.thumbData=t}get precisionMode(){var t,e,i,r;return!((null==(t=this.hotspotStore.state[n.Wp.Division])?void 0:t.length)||(null==(e=this.hotspotStore.state[n.Wp.WonderMoment])?void 0:e.length)||(null==(i=this.hotspotStore.state[n.Wp.AIPoint])?void 0:i.length))&&!!(null==(r=this.userStore.info)?void 0:r.longProgress)}get points(){if(!this.mediaStore.state.remoteDuration)return null;const t=this.hotspotStore.state[n.Wp.StudyNote],e=this.hotspotStore.state[n.Wp.WonderMoment],i=this.hotspotStore.state[n.Wp.OpenEnd];let r=Object.assign([],t);return(null==e?void 0:e.length)&&(r=r.concat(e)),(null==i?void 0:i.length)&&(r=r.concat(i)),r.length?r:null}get aiPoints(){var t;return null!=(t=this.hotspotStore.state[n.Wp.AIPoint])?t:[]}install(){super.install(),this.premiereStore.state.status||this.configStore.controlsList.has("noProgressBar")||(this.dc.isLoaded=(0,g.U5)((()=>!(!this.rootStore.isLoaded||!this.mediaStore.state.remoteDuration)),(t=>{t?(this.templateNodes.mainProgressArea.parentElement||(this.fetchPbpInfo(),this.nodes.controlTop.appendChild(this.templateNodes.mainProgressArea),this.setThumbData(null),this.scaleplateTrackReported=!1,this.videoshot=Object.assign({},N),this.addReactions(),this.addEventsListener()),this.templateNodes.shadowProgress.parentElement||this.nodes.controlEntity.appendChild(this.templateNodes.shadowProgress)):(this.templateNodes.shadowProgress.parentElement&&this.nodes.controlEntity.removeChild(this.templateNodes.shadowProgress),this.templateNodes.mainProgressArea.parentElement&&(this.nodes.controlTop.removeChild(this.templateNodes.mainProgressArea),this.removeEventsListener(),this.templateNodes=this.progressTemplate()))}),{fireImmediately:!0}))}addReactions(){this.dp.segmentData=(0,g.U5)((()=>this.progressStore.segmentData),(t=>{this.appendSchedules(t)}),{fireImmediately:!0}),this.dp.buffer=(0,g.U5)((()=>this.progressStore.bufferRatio),(t=>{this.updateBufferSchedule(t)}),{fireImmediately:!0}),this.dp.current=(0,g.U5)((()=>this.progressStore.currentRatio),(t=>{this.progressStore.state.isDragging||(this.updateCurrentSchedule(t),this.updateThumbPosition(t))}),{fireImmediately:!0}),this.dp.setThumbData=(0,g.U5)((()=>this.userStore.info),(t=>{if(t&&this.dynamicThumb){const e=t.progressIcon;e&&e.url1&&e.url2&&e.hash1&&e.hash2&&t.aid===this.configStore.aid?this.fetchThumbIcon():(this.setThumbData({thumbDragData:w,thumbDropData:w}),this.hasDropData=!1)}}),{fireImmediately:!0}),this.dp.createThumbAnimation=(0,g.U5)((()=>this.thumbData),(t=>{t&&this.createThumbAnimation(t)}),{fireImmediately:!0}),this.dp.isActive=(0,g.U5)((()=>this.progressStore.isActive),(t=>{t?this.templateNodes.mainProgressWrap.classList.add(this.activeToken):this.templateNodes.mainProgressWrap.classList.remove(this.activeToken)})),this.dp.points=(0,g.U5)((()=>this.points),(t=>{var e;(null==(e=this.hotspotStore.state[n.Wp.AIPoint])?void 0:e.length)||this.configStore.channelKind!==n.u5.Mini_Site&&((null==t?void 0:t.length)?this.appendPoints(t):(this.computedPoints=[],this.templateNodes.pointWrap.innerHTML="",this.templateNodes.mainFreeZone.innerHTML=""))}),{fireImmediately:!0}),this.dp.studyNote=(0,g.U5)((()=>this.hotspotStore.state[n.Wp.StudyNote]),(t=>{var e,i;(null==(e=this.hotspotStore.state[n.Wp.AIPoint])?void 0:e.length)&&(null==t?void 0:t.length)&&this.configStore.channelKind!==n.u5.Mini_Site&&this.appendPoints(t.concat(null!=(i=this.hotspotStore.state[n.Wp.AIPoint])?i:[]))}),{fireImmediately:!0}),this.dp.aiPoints=(0,g.U5)((()=>this.aiPoints),(t=>{var e;if(this.configStore.channelKind!==n.u5.Mini_Site)if(null==t?void 0:t.length)this.templateNodes.popup.classList.add(`${this.ppx}-ai-point`),this.templateNodes.hotspot.classList.add(`${this.ppx}-ai-point`),Object.keys(this.hotspotStore.state).forEach((t=>{+t!==n.Wp.AIPoint&&+t!==n.Wp.StudyNote&&(this.hotspotMap.set(+t,this.hotspotStore.state[t]),this.hotspotStore.set({type:+t,data:null}))})),this.appendPoints(t.concat(null!=(e=this.hotspotStore.state[n.Wp.StudyNote])?e:[]));else{if(this.isFirstInit)return void(this.isFirstInit=!1);this.templateNodes.popup.classList.remove(`${this.ppx}-ai-point`),this.templateNodes.hotspot.classList.remove(`${this.ppx}-ai-point`),this.templateNodes.pointWrap.innerHTML="",this.templateNodes.mainFreeZone.innerHTML="",this.computedPoints=[],Object.keys(this.hotspotStore.state).forEach((t=>{var e;+t===n.Wp.AIPoint||+t===n.Wp.StudyNote&&!this.hotspotMap.has(+t)||(this.hotspotStore.set({type:+t,data:null!=(e=this.hotspotMap.get(+t))?e:[]}),this.hotspotMap.delete(+t))}))}}),{fireImmediately:!0}),this.dp.precisionMode=(0,g.U5)((()=>this.precisionMode),(t=>{t?this.pullAnimation=p().loadAnimation({container:this.templateNodes.pullIndicator,renderer:"svg",loop:!1,autoplay:!1,animationData:x}):this.pullAnimation&&(this.pullAnimation.destroy(),this.pullAnimation=null)}),{fireImmediately:!0}),this.dp.shadow=(0,g.U5)((()=>this.ctrlStore.ctrlHidden),(t=>{this.configStore.pcSpecialMode?this.nodes.controlEntity.setAttribute("data-shadow-show","false"):(t?this.nodes.controlEntity.setAttribute("data-shadow-show","true"):this.nodes.controlEntity.setAttribute("data-shadow-show","false"),this.pbpRender&&this.pbpRender.opacity(!t))}),{fireImmediately:!0}),this.dp.pbp=(0,g.U5)((()=>this.uiStore.kind!==n.HR.Pugv&&!this.configStore.embeddedEnv&&this.progressStore.state.pbp),(t=>{t?this.pbpRender||(this.pbpRender=new R({container:this.nodes.controlEntity,cid:this.configStore.cid,data:t.params.data,step:t.params.stepSec,ppx:this.ppx,duration:()=>this.mediaStore.state.remoteDuration,currentTime:()=>this.mediaStore.state.currentTime,seek:t=>this.seekHandler(t,"pbp"),track:t=>{this.track.e(t)},pinstate:t=>{if(null==t)return this.localStore.get().progress.pinstate;this.localStore.set({progress:{pinstate:t}})}}),this.updatePBPState(this.progressStore.state.pbpstate)):(this.pbpRender&&(this.rootPlayer.off(n.tw.Player_Seeking,this.onSeekedHandler),this.rootPlayer.off(n.tw.Player_TimeUpdate,this.onTimeupdateHandler),this.rootPlayer.off(n.p2.PLAYER_HEARTBEAT,this.onHeartBeatHandler),this.pbpRender.dispose(),this.pbpRender=null),this.templateNodes.mainProgressWrap.style.paddingBottom="")}),{fireImmediately:!0}),this.dp.pbpstate=(0,g.U5)((()=>this.progressStore.state.pbpstate),(t=>{this.pbpRender&&this.updatePBPState(t)}));const t=(0,E.Z)((()=>{this.resize()}),100);this.dp.resize=(0,g.U5)((()=>this.uiStore.state.videoAreaWidth),(e=>{e&&t()}))}progressTemplate(){
const t=`\n            <div class="${this.ppx}-progress-area">\n                <div class="${this.ppx}-progress-freezone"></div>\n                <div class="${this.ppx}-progress-wrap">\n                    <div class="${this.ppx}-progress">\n                        <div class="${this.ppx}-progress-schedule-wrap"></div>\n                        <div class="${this.ppx}-progress-point-wrap"></div>\n                        <div class="${this.ppx}-progress-thumb">\n                            ${this.dynamicThumb?`<div class="${this.ppx}-progress-thumb-icon ${this.ppx}-progress-thumb-icon-dynamic"></div>`:`<div class="${this.ppx}-progress-thumb-icon"><span class="${this.cpx}-svg-icon">${y()}</span></div>`}\n                        </div>\n                        <div class="${this.ppx}-progress-move-indicator">\n                            <div class="${this.ppx}-progress-move-indicator-down"></div>\n                            <div class="${this.ppx}-progress-move-indicator-up"></div>\n                        </div>\n                        <div class="${this.ppx}-progress-popup">\n                            <div class="${this.ppx}-progress-preview hidden">\n                                <img class="${this.ppx}-progress-preview-image" />\n                                <div class="${this.ppx}-progress-preview-charging-tip">\n                                    <div class="${this.ppx}-progress-preview-charging-icon">\n                                        <div class="${this.ppx}-progress-charging-svg">\n                                            <span class="${this.cpx}-svg-icon">${v()}</span>\n                                        </div>\n                                    </div>\n                                    <div class="${this.ppx}-progress-preview-charging-text">\n                                        为TA充电后即可观看\n                                    </div>\n                                </div>\n                                <div class="${this.ppx}-progress-preview-time"></div>\n                            </div>\n                            <div class="${this.ppx}-progress-hotspot"></div>\n                        </div>\n                        <div class="${this.ppx}-progress-pull-indicator"></div>\n                        <div class="${this.ppx}-progress-cursor"></div>\n                        <div class="${this.ppx}-progress-scaleplate"></div>\n                    </div>\n                </div>\n            </div>\n        `,e=`\n            <div class="${this.ppx}-shadow-progress-area">\n                <div class="${this.ppx}-shadow-progress-schedule-wrap"></div>\n            </div>\n        `,i=(0,o.t)(t),n=i.querySelector(`.${this.ppx}-progress-freezone`),r=i.querySelector(`.${this.ppx}-progress-wrap`),a=i.querySelector(`.${this.ppx}-progress-schedule-wrap`),s=i.querySelector(`.${this.ppx}-progress`),l=i.querySelector(`.${this.ppx}-progress-point-wrap`),A=i.querySelector(`.${this.ppx}-progress-thumb`),c=i.querySelector(`.${this.ppx}-progress-thumb-icon-dynamic`),h=i.querySelector(`.${this.ppx}-progress-move-indicator`),d=i.querySelector(`.${this.ppx}-progress-popup`),u=i.querySelector(`.${this.ppx}-progress-preview`),p=i.querySelector(`.${this.ppx}-progress-preview-image`),g=i.querySelector(`.${this.ppx}-progress-preview-charging-tip`),f=i.querySelector(`.${this.ppx}-progress-preview-time`),m=i.querySelector(`.${this.ppx}-progress-hotspot`),b=i.querySelector(`.${this.ppx}-progress-pull-indicator`),E=i.querySelector(`.${this.ppx}-progress-cursor`),I=i.querySelector(`.${this.ppx}-progress-scaleplate`),C=(0,o.t)(e),B=C.querySelector(`.${this.ppx}-shadow-progress-schedule-wrap`);return{mainProgressArea:i,mainFreeZone:n,mainProgressWrap:r,mainScheduleWrap:a,progress:s,pointWrap:l,thumb:A,dynamicIcon:c,moveIndicator:h,popup:d,preview:u,previewImage:p,previewTime:f,chargingTip:g,hotspot:m,pullIndicator:b,cursor:E,scaleplate:I,shadowProgress:C,shadowScheduleWrap:B}}appendSchedules(t){var e;let i="";if(t&&1!==t.length&&0!==t.length){const n=t.length,r=1-this.segmentGap*(n-1);let o=0;for(let e=0;e<n;e++){const n=t[e],a=(n.to-n.from)/this.mediaStore.state.remoteDuration*r,s=this.segmentGap*e+o;i+=`\n                    <div class="${this.ppx}-progress-schedule ${this.ppx}-progress-schedule-segment" style="width: ${100*a}%; left: ${100*s}%; margin-right: ${100*this.segmentGap}%;">\n                        <div class="${this.ppx}-progress-schedule-padding"></div>\n                        <div class="${this.ppx}-progress-schedule-buffer"></div>\n                        <div class="${this.ppx}-progress-schedule-current"></div>\n                        <div class="${this.ppx}-progress-schedule-text"></div>\n                    </div>\n                `,o+=a}const a=(null==(e=t[0])?void 0:e.permanent)?"add":"remove";this.templateNodes.shadowProgress.classList[a]("permanent")}else i=`\n                <div class="${this.ppx}-progress-schedule">\n                    <div class="${this.ppx}-progress-schedule-buffer"></div>\n                    <div class="${this.ppx}-progress-schedule-current"></div>\n                </div>\n            `;this.templateNodes.mainScheduleWrap.innerHTML=i,this.templateNodes.shadowScheduleWrap.innerHTML=i,this.updateCurrentSchedule(this.progressStore.currentRatio),this.updateBufferSchedule(this.progressStore.bufferRatio);const n=this.templateNodes.mainScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-padding`);if(n.length)n.forEach((t=>{t.addEventListener("mouseover",(function(){t.parentElement.classList.add("hover"),t.addEventListener("mouseout",(function e(){t.parentElement.classList.remove("hover"),t.removeEventListener("mouseout",e)}))}))}));else{const t=this.templateNodes.progress;this.pbpRender;t.addEventListener("mouseenter",(()=>{t.classList.add("hover"),t.addEventListener("mouseleave",(function e(){t.classList.remove("hover"),t.removeEventListener("mouseleave",e)}))}))}const r=this.templateNodes.shadowScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-padding`),o=this.templateNodes.shadowScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-text`);r.length&&r.forEach((t=>{t.parentElement&&t.parentElement.removeChild(t)})),o.length&&this.dmCmdStore.creator&&o.forEach(((e,i)=>{e.innerText=t[i].content||"待填写"}))}updateCurrentSchedule(t,e=!0){const i=this.progressStore.segmentData,n=this.templateNodes.mainScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-current`),r=this.templateNodes.shadowScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-current`);if(n.length)if(i&&1!==i.length&&0!==i.length)for(let i=0;i<n.length;i++){const o=this.calSegmentScheduleScaleX(t,i);n[i].style.transform=`scaleX(${o})`,e&&(r[i].style.transform=`scaleX(${o})`)}else n[0].style.transform=`scaleX(${t})`,e&&(r[0].style.transform=`scaleX(${t})`)}updateBufferSchedule(t,e=!0){const i=this.progressStore.segmentData,n=this.templateNodes.mainScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-buffer`),r=this.templateNodes.shadowScheduleWrap.querySelectorAll(`.${this.ppx}-progress-schedule-buffer`);if(n.length)if(i&&1!==i.length&&0!==i.length)for(let i=0;i<n.length;i++){const o=this.calSegmentScheduleScaleX(t,i);n[i].style.transform=`scaleX(${o})`,e&&(r[i].style.transform=`scaleX(${o})`)}else n[0].style.transform=`scaleX(${t*this.ratioY})`,e&&(r[0].style.transform=`scaleX(${t})`)}calSegmentScheduleScaleX(t,e){const i=this.mediaStore.state.remoteDuration,n=this.progressStore.segmentData,r=n[e].from/i,o=n[e].to/i;let a;return a=t<r?0:t>=r&&t<o?Math.max((t-r)/(o-r),0):t>=o?1:0,a}updateThumbPosition(t){const e=(this.templateNodes.mainProgressWrap.clientWidth-this.templateNodes.thumb.clientWidth)*t;this.templateNodes.thumb.style.transform=`translateX(${e}px)`,this.templateNodes.pullIndicator.style.transform=`translateX(${e}px)`,this.templateNodes.cursor.style.transform=`translateX(${this.templateNodes.mainProgressWrap.clientWidth*t}px)`}appendPoints(t){var e,i;t=Object.assign([],t).sort(((t,e)=>t.from-e.from)),this.computedPoints=[],this.templateNodes.pointWrap.innerHTML="",this.templateNodes.mainFreeZone.innerHTML="";for(let r=0;r<t.length;r++){
const s=t[r],l=this.computePointValue(s);this.computedPoints.push(l);const A=(0,o.t)(`<span class="${this.ppx}-progress-point ${n.Km[s.type]?`${this.ppx}-progress-point-${n.Km[s.type].prefix}`:""}" style="width: ${l.width}px; left: ${l.left}px;"></span>`);if(s.type===n.Wp.AIPoint&&(A.addEventListener("mouseenter",(()=>{A.classList.add("hover")})),A.addEventListener("mouseleave",(()=>{A.classList.remove("hover")}))),this.templateNodes.pointWrap.appendChild(A),s.logoUrl){const t=(0,o.t)(`<div class="${this.ppx}-progress-point-logo" style="width: ${l.width}px; left: ${l.left}px;">\n                        <div class="${this.ppx}-progress-point-logo-image-container">\n                            <img src="${(0,a.Q)(s.logoUrl.replace("http://","//"),96)}" data-seek="${s.from}" />\n                            <div class="${this.ppx}-circle ${this.ppx}-circle-${null!=(e=s.team_type)?e:"blue"}" style="display: ${s.team_name?"block":"none"}"></div>\n                            <div class="${this.ppx}-triangle ${this.ppx}-triangle-${null!=(i=s.team_type)?i:"blue"}" style="display: ${s.team_name?"block":"none"}"></div>\n                        </div>\n                    </div>`);this.tooltipStore.create({tip:!0,name:`ctrl:viewpointlogo${r}`,title:s.team_name?`${s.content}·${s.team_name}`:s.content,target:t.querySelector("img"),position:n.DU.TopCenter}),t.querySelector("img").addEventListener("mousedown",(t=>{t.stopPropagation(),t.preventDefault(),this.track.e("view_point_logo_click"),this.seekHandler(s.from,"ProgressLogo")})),this.templateNodes.mainFreeZone.appendChild(t)}}}computePointValue(t){const e=Object.assign({},t,{left:0,width:0,end:t.to,start:t.from}),i=this.mediaStore.state.remoteDuration,r=this.templateNodes.mainScheduleWrap.clientWidth,o=t=>t/i*r,a=t=>t/r*i,s=o(t.to-t.from);if(e.width=e.type===n.Wp.AIPoint?4:Math.floor(Math.max(s,6)),s<6){const t=o(e.from);if(t+e.width>r){const i=a(r-(t+e.width));e.from+=i}}return e.to=e.from+a(e.width),e.left=Math.floor(o(e.from)),e}fetchThumbIcon(){return L(this,null,(function*(){var t;const e=this.userStore.info.progressIcon,i=new C(this.rootPlayer),n=(yield i.r(e.url1)).data,r=(yield i.r(e.url2)).data;n&&r?(this.setThumbData({thumbDragData:n,thumbDropData:r}),this.hasDropData=!0,this.templateNodes.thumb.style.width=this.templateNodes.thumb.style.height=(null!=(t=e.size)?t:28)+"px"):(this.setThumbData({thumbDragData:w,thumbDropData:w}),this.hasDropData=!1)}))}fetchPbpInfo(){this.patchAdvStore.hasValidAdv||this.configStore.preliminaryReview||this.configStore.controlsList.has("noPBP")||this.configStore.isChannel(n.u5.Gamecenter)||this.configStore.isChannel(n.u5.Mini_Site)||!R.hasSupport()||r.X.msie.alike||r.X.msie.ie11||r.X.edge.alike||r.X.trident.alike||this.configStore.localUrl||this.configStore.cid&&new B(this.rootPlayer).r({aid:this.configStore.aid,cid:this.configStore.cid,bvid:this.configStore.bvid}).then((({info:t})=>{this.progressStore.setState({pbp:t})}))}updatePBPState(t){this.patchAdvStore.hasValidAdv||(t?(this.templateNodes.progress.style.height="4px",this.pbpRender.show(!this.ctrlStore.isCtrlHidden()),this.rootPlayer.on(n.tw.Player_Seeking,this.onSeekedHandler),this.rootPlayer.on(n.tw.Player_TimeUpdate,this.onTimeupdateHandler),this.rootPlayer.on(n.p2.PLAYER_HEARTBEAT,this.onHeartBeatHandler)):(this.templateNodes.progress.style.height="",this.pbpRender.hide(),this.rootPlayer.off(n.tw.Player_Seeking,this.onSeekedHandler),this.rootPlayer.off(n.tw.Player_TimeUpdate,this.onTimeupdateHandler),this.rootPlayer.off(n.p2.PLAYER_HEARTBEAT,this.onHeartBeatHandler)))}onSeekedHandler(){this.pbpRender.seek()}onTimeupdateHandler(){this.pbpRender.timeupdate()}onHeartBeatHandler(){this.pbpRender.executeZebraCached()}createThumbAnimation(t){if(!this.dynamicThumb)return;const{thumbDragData:e,thumbDropData:i}=t;this.thumbDragAnimation&&this.thumbDragAnimation.destroy(),this.thumbDropAnimation&&this.thumbDropAnimation.destroy(),this.thumbDragDom||(this.thumbDragDom=document.createElement("div")),this.thumbDropDom||(this.thumbDropDom=document.createElement("div")),this.thumbDelay=300,this.templateNodes.dynamicIcon.innerHTML="",this.templateNodes.dynamicIcon.appendChild(this.thumbDropDom),this.thumbDragAnimation=p().loadAnimation({container:this.thumbDragDom,renderer:"svg",loop:!1,autoplay:!1,animationData:e}),this.thumbDropAnimation=p().loadAnimation({container:this.thumbDropDom,renderer:"svg",loop:!1,autoplay:!1,animationData:i}),this.hasDropData?(this.thumbDropAnimation.goToAndStop(0,!0),this.thumbDropAnimation.totalFrames>0&&this.thumbDropAnimation.animationData&&this.thumbDropAnimation.animationData.fr>0&&(this.thumbDelay=Math.floor(this.thumbDropAnimation.totalFrames/this.thumbDropAnimation.animationData.fr*1e3)+200)):this.thumbDropAnimation.goToAndStop(Math.floor(this.thumbDropAnimation.totalFrames/2),!0)}addEventsListener(){this.templateNodes.mainProgressWrap.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.mainProgressWrap.addEventListener("mouseleave",this.onMouseLeaveHandler),this.templateNodes.mainProgressWrap.addEventListener("mousedown",this.onMouseDownHandler),this.templateNodes.mainProgressWrap.addEventListener("touchstart",this.onTouchStartHandler),this.rootPlayer.on(n.p2.PLAYER_TOUCH_GESTURE,(t=>this.onTouchHandler(t)))}removeEventsListener(){this.templateNodes.mainProgressWrap.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.mainProgressWrap.removeEventListener("mouseleave",this.onMouseLeaveHandler)}onMouseEnterHandler(t){var e;(0,s.o)(this.templateNodes.popup,this.templateNodes.moveIndicator),this.hoverTimer=window.setTimeout((()=>{this.progressStore.setState({isHover:!0})}),this.configStore.onlyTouchMode?0:300),(null==(e=this.videoshot)?void 0:e.images)?(this.rootPlayer.window.addEventListener("mousemove",this.onMouseMoveHandler),this.rootPlayer.isEmbed&&this.rootPlayer.parent.addEventListener("mousemove",this.onMouseMoveHandler),this.track.e("preview_new_show")):this.requestVideoShot(t).then((()=>{this.rootPlayer.window.addEventListener("mousemove",this.onMouseMoveHandler),this.rootPlayer.isEmbed&&this.rootPlayer.parent.addEventListener("mousemove",this.onMouseMoveHandler),this.track.e("preview_new_show")}))}onMouseLeaveHandler(t){t.preventDefault(),window.clearTimeout(this.hoverTimer),this.progressStore.setState({isHover:!1}),this.progressStore.isActive||(this.rootPlayer.window.removeEventListener("mousemove",this.onMouseMoveHandler),this.rootPlayer.isEmbed&&this.rootPlayer.parent.addEventListener("mousemove",this.onMouseMoveHandler))}onMouseMoveHandler(t){if(this.precisionModeMove)return;const e=this.calcMoveDistance(t),i=this.mediaStore.state.remoteDuration||0,n=Math.min(Math.max(i*e.percentage,0),i);this.updateMoveIndicatorLeft(e.distance),this.updatePreviewContent(e.percentage,n),this.updateHotspotContent(e.percentage)}onMouseDownHandler(t){0===t.button&&(t.preventDefault(),this.handleDragDown(t),this.rootPlayer.window.addEventListener("mousemove",this.onDragMoveHandler),this.rootPlayer.window.addEventListener("mouseup",this.onDragUpHandler),this.rootPlayer.isEmbed&&(this.rootPlayer.parent.addEventListener("mousemove",this.onDragMoveHandler),this.rootPlayer.parent.addEventListener("mouseup",this.onDragUpHandler)),document.addEventListener("mouseleave",this.onDragUpHandler))}handleDragDown(t){(0,l.N)(this.templateNodes.moveIndicator),(0,s.o)(this.templateNodes.popup),this.defaultHeight||(this.defaultHeight=this.templateNodes.progress.clientHeight),this.popupBottom||(this.popupBottom=parseInt(getComputedStyle(this.templateNodes.popup).bottom,10)),window.clearTimeout(this.thumbTimer),this.progressStore.setState({isDragging:!0});const e=this.calcMoveDistance(t).percentage;this.updateCurrentSchedule(e,!1),this.updateThumbPosition(e),this.savedTime=this.mediaStore.state.currentTime,this.precisionMode&&(this.startPercentage=e,this.pullAnimation.play(),null===this.localStore.get().progress.precisionGuide&&(this.precisionGuide=this.toastStore.create({text:"按住进度条上移，定位更加精准",timeStamp:5e3,manualMode:!0}),this.localStore.set({progress:{precisionGuide:!0}})))}processThrottleSeek(){
this.configStore.isChannel(n.u5.Manager)&&"realtime"===this.configStore.seekUpdateMode&&(this.throttleSeekFunc||(this.throttleSeekFunc=(0,E.Z)((()=>{const t=this.mediaStore.state.remoteDuration||0,e=Math.min(Math.max(t*this.movedPercentage,0),t);this.portStore.seek(e,{initiator:"ctrl:manager:progress"})}),250)),this.portStore.pause(),this.throttleSeekFunc())}cancelThrottleSeek(){this.throttleSeekFunc&&(this.throttleSeekFunc.cancel(),this.throttleSeekFunc=null)}onDragMoveHandler(t){t.preventDefault(),(0,l.N)(this.templateNodes.moveIndicator);const e=this.calcMoveDistance(t);if(this.pullingHandler(t,e.percentage),this.movedPercentage!==e.percentage){if(this.movedPercentage=e.percentage,this.updateCurrentSchedule(e.percentage,!1),this.updateThumbPosition(e.percentage),this.precisionMode&&1!==this.ratioY){this.precisionModeMove||(this.precisionModeMove=!0);const t=this.mediaStore.state.remoteDuration;let i=Math.max(this.boundLeftTime+this.savedLeft,0),n=Math.min(this.boundRightTime+this.savedRight,t);if(0===e.percentage||1===e.percentage){const r=(i,n)=>{if(0===e.percentage&&i<=0||1===e.percentage&&n>=t)return!1;0===e.percentage?(i-=10,n-=10,this.savedLeft-=10,this.savedRight-=10):1===e.percentage&&(i+=10,n+=10,this.savedLeft+=10,this.savedRight+=10),i=Math.max(i,0),n=Math.min(n,t),this.updateScaleplateTPL(i,n),this.precisionEndTime=i+(n-i)*e.percentage,this.updatePreviewContent(e.percentage,this.precisionEndTime),this.boundAnimation=window.requestAnimationFrame((()=>{r(i,n)}))};r(i,n)}else window.cancelAnimationFrame(this.boundAnimation);this.precisionEndTime=i+(n-i)*e.percentage,this.updatePreviewContent(e.percentage,this.precisionEndTime)}else this.precisionEndTime=null,this.thumbDragAnimation&&(0===this.thumbDirection&&(this.templateNodes.dynamicIcon.innerHTML="",this.templateNodes.dynamicIcon.appendChild(this.thumbDragDom),this.thumbDragAnimation.goToAndStop(Math.floor(this.thumbDragAnimation.totalFrames/2),!0)),e.eventClientX>this.thumbClientX&&this.thumbDirection<1?(this.thumbDirection=1,this.thumbDragAnimation.setDirection(this.thumbDirection),this.thumbDragAnimation.play()):e.eventClientX<this.thumbClientX&&this.thumbDirection>-1&&(this.thumbDirection=-1,this.thumbDragAnimation.setDirection(this.thumbDirection),this.thumbDragAnimation.play())),this.thumbClientX=e.eventClientX;this.processThrottleSeek()}}onDragUpHandler(t){this.cancelThrottleSeek(),(0,l.N)(this.templateNodes.popup),this.rootPlayer.window.removeEventListener("mousemove",this.onDragMoveHandler),this.rootPlayer.window.removeEventListener("mouseup",this.onDragUpHandler),this.rootPlayer.isEmbed&&(this.rootPlayer.parent.removeEventListener("mousemove",this.onDragMoveHandler),this.rootPlayer.parent.removeEventListener("mouseup",this.onDragUpHandler)),this.templateNodes.mainProgressWrap.removeEventListener("touchmove",this.onMouseMoveHandler),this.templateNodes.mainProgressWrap.removeEventListener("touchend",this.onDragUpHandler),document.removeEventListener("mouseleave",this.onDragUpHandler),this.progressStore.state.isHover||(this.rootPlayer.window.removeEventListener("mousemove",this.onMouseMoveHandler),this.rootPlayer.isEmbed&&this.rootPlayer.parent.removeEventListener("mousemove",this.onMouseMoveHandler)),this.hasDropData?this.thumbTimer=window.setTimeout((()=>{this.progressStore.setState({isDragging:!1})}),this.thumbDelay):this.progressStore.setState({isDragging:!1}),this.thumbDropAnimation&&(this.templateNodes.dynamicIcon.innerHTML="",this.templateNodes.dynamicIcon.appendChild(this.thumbDropDom),this.hasDropData?this.thumbDropAnimation.goToAndPlay(0,!0):this.thumbDropAnimation.goToAndStop(Math.floor(this.thumbDropAnimation.totalFrames/2),!0),this.thumbDirection=0);const e=this.calcMoveDistance(t).percentage,i=this.portStore.getDuration(),r=null!==this.precisionEndTime?this.precisionEndTime:e*this.mediaStore.state.remoteDuration;if(r>i&&this.uiStore.kind===n.HR.Pgc)this.seekHandler(i-1,"Progress");else if(r>i&&this.userStore.isCharingTrialWatch)this.seekHandler(i-.9,"Progress");else{if(this.savedTime!==r){this.seekHandler(r,"Progress"),1===this.ratioY?this.track.e("slidebar",{val:this.mediaStore.state.currentTime}):this.track.e("high_precision_bar_slider",{val:this.ratioY>=this.showScaleplateHeight?1:0});const t=this.getHotspotContent(r);t.isHit&&t.type===n.Wp.WonderMoment&&this.track.e("view_point_click")}this.resetPullConfig()}}onTouchStartHandler(t){t.cancelable&&t.preventDefault(),this.videoshot.images||this.requestVideoShot(t),this.handleDragDown(t),this.templateNodes.mainProgressWrap.addEventListener("touchmove",this.onTouchMoveHandler),this.templateNodes.mainProgressWrap.addEventListener("touchend",this.onDragUpHandler),this.templateNodes.mainProgressWrap.addEventListener("touchcancel",this.onDragUpHandler),this.track.e("preview_new_show")}onTouchMoveHandler(t){const e=this.calcMoveDistance(t);this.onMouseMoveHandler(t),this.updateThumbPosition(e.percentage),this.updateCurrentSchedule(e.percentage,!1)}onTouchHandler(t){if(!t)return;const{kind:e,data:i}=t,r=this.mediaStore.state.remoteDuration,o=this.templateNodes.mainProgressWrap.clientWidth;switch(e){case n.iX.PanStart:if(!i)return;const t=i.pageY,e=this.uiStore.state.videoAreaHeight;this.panStartArea=t<e/3?180:t<e/3*2?360:540,this.savedTime=this.mediaStore.state.currentTime,this.panStartPercentage=this.progressStore.currentRatio,this.videoshot.images||this.requestVideoShot();break;case n.iX.Paning:if(!i)return;const{direction:a,deltaX:A}=i;if("horizontal"!==a)return;this.configStore.state.ctrl!==n.AQ.Show&&(this.panMajorHiddenSet=!0,this.configStore.setState({ctrl:n.AQ.Show})),this.progressStore.setState({isHover:!0,isDragging:!0}),(0,l.N)(this.templateNodes.moveIndicator),(0,s.o)(this.templateNodes.popup);const c=A*Math.min(this.panStartArea,r)/o,h=Math.min(Math.max(r*this.panStartPercentage+c,0),r),d=h/r;this.panEndTime=h,this.updatePreviewContent(d,h),this.updateHotspotContent(d),this.updateCurrentSchedule(d,!1),this.updateThumbPosition(d);break;case n.iX.PanEnd:if((0,l.N)(this.templateNodes.popup),!i||"horizontal"!==i.direction)return;this.panMajorHiddenSet&&(this.panMajorHiddenSet=!1,this.configStore.setState({ctrl:n.AQ.Auto})),this.progressStore.setState({isHover:!1,isDragging:!1}),this.savedTime!==this.panEndTime&&(this.seekHandler(this.panEndTime,"Progress"),this.track.e("hammer_gesture",{kind:"pan",func:"progressAdjust"}))}}updateMoveIndicatorLeft(t){this.templateNodes.moveIndicator.style.left=t+"px"}requestVideoShot(t){return L(this,null,(function*(){if(this.configStore.preliminaryReview)return;const e=yield this.httpStore.fetchVideoShot(!0),i=yield c();if(!e||!e.body)return;let n=new Map;n=e.body;const r=[];n.forEach(((e,o)=>{r.push(new Promise((e=>L(this,null,(function*(){const r=n.get(o);if(r.images&&r.pvData){const n=/\/\/bimp\.hdslb\.com\//i,s=/\/\/i[0-3]\.hdslb\.com\//i;for(let t=0;t<r.images.length;t++){let e=r.images[t];const o=n.test(e),l=s.test(e);if(o||l){e=a.Y.removeBfsParams(e);const t=o?"50q":"80q";"jpg"===a.Y.getUrlExt(e)&&(i?e+=`@3200w_1800h_${t}.avif`:(0,h.x)()?e+=`@3200w_1800h_${t}.webp`:e+=`@${t}`)}r.images[t]=e}const l=r,A=t=>{if(t)return new Promise(((e,i)=>{const n=new XMLHttpRequest;n.open("GET",t.replace("http://","//")),n.responseType="arraybuffer";const r=[];n.onload=()=>{const t=n.response,i=new DataView(t),o=new Uint8Array(t.byteLength);for(let t=0;t<o.length;t+=2){const e=i.getUint8(t)<<8|i.getUint8(t+1);r.push(e)}e(r)},n.send(null)}))},c=yield A(l.pvData),d=this.calcMoveDistance(t),u=this.mediaStore.state.remoteDuration||0,p=Math.min(Math.max(u*d.percentage,0),u);this.hoverCTime=p;let g=0;if(c){let t=this.getIndex(c);const e=+l.xLen*+l.yLen;g=Math.floor(t/e)}this.imagePromises[l.images[g]]||(this.imagePromises[l.images[g]]=new Promise(((t,e)=>{const i=new Image;i.crossOrigin="anonymous";let n=l.images[g];i.src=n,i.onload=()=>{const e=Object.assign({},N,{imgW:i.width,imgH:i.height,xLen:+l.xLen||10,yLen:+l.yLen||10,perImgW:i.width/(+l.xLen||10),perImgH:i.height/(+l.xLen||10),images:l.images,image:i});e.indexList=c,e.cid=o,this.videoShotMap.set(o,e),t({image:i})},i.onerror=()=>{const t=l.images[++g];t&&(i.src=t)}}))),e(0)}})))))})),yield Promise.allSettled(r)}))}
updatePreviewContent(t,e){if(this.patchAdvStore.hasValidAdv){let t=this.patchAdvStore.getCurrentCid(e);-1!==t&&(this.videoshot=this.videoShotMap.get(t))}else this.videoshot=this.videoShotMap.get(this.configStore.cid);const i=this.templateNodes.mainProgressWrap.clientWidth;let n=t*i-80;n<0?n=0:n>i-160&&(n=i-160),this.hoverCTime=e,this.templateNodes.previewTime.innerHTML=(0,d.Z)(e),this.templateNodes.popup.style.left=n+"px",this.appendPreviewImage()}getIndex(t){if(!t||!t.length)return;let e=this.hoverCTime>this.portStore.getDuration()&&this.mpdStore.body.isPreview?this.portStore.getDuration():this.hoverCTime,i=t.length-2;this.patchAdvStore.hasValidAdv&&(e-=this.patchAdvStore.getCurrentStartTime(e));for(let n=0;n<t.length-1;n++)if(e>=t[n]&&e<t[n+1]){i=n-1;break}return i>=0&&i||0}chargingTipDisplay(){const t=this.shouldShowChargingTip();this.showChargingTip!==t&&(this.showChargingTip=t,this.updateChargingTipUI())}shouldShowChargingTip(){if(!(!this.userStore.isChargedWatch&&this.userStore.isCharingTrialWatch))return!1;return!(this.hoverCTime<this.mediaStore.state.duration)}updateChargingTipUI(){const{chargingTip:t,previewImage:e}=this.templateNodes;this.showChargingTip?(t.classList.add("show"),e.classList.add("charging-blur")):(t.classList.remove("show"),e.classList.remove("charging-blur"))}appendPreviewImage(){return L(this,null,(function*(){if(this.chargingTipDisplay(),!this.videoshot)return;const{images:t,indexList:e,xLen:i,yLen:n,perImgW:r,perImgH:o}=this.videoshot;if(!t||!t.length)return;let a=this.getIndex(e);const s=i*n,l=t[Math.floor(a/s)];if(!l)return!1;const A=this.savedIndexMap[this.videoshot.cid]!==a;this.savedIndexMap[this.videoshot.cid]=a;const c=a%s%i*r,h=Math.floor(a%s/n)*o;let d=null;if(this.imagePromises[l])d=this.imagePromises[l];else{const t=new Image;t.setAttribute("crossOrigin","anonymous"),t.src=l,d=this.imagePromises[l]=new Promise((e=>{t.onload=()=>e({image:t}),t.onerror=()=>e(null)}))}try{let{image:t}=yield d;if(A&&t){const e=document.createElement("canvas");e.width=r,e.height=o,e.getContext("2d").drawImage(t,c,h,r,o,0,0,r,o);const i=e.toDataURL("image/jpeg");this.templateNodes.preview.classList.remove("hidden"),this.templateNodes.previewImage.setAttribute("src",i)}}catch(t){}}))}updateHotspotContent(t){const e=this.mediaStore.state.remoteDuration*t,i=this.getHotspotContent(e);let n="";i.isHit&&i.value&&(n=i.value),this.templateNodes.hotspot.innerHTML=n}getHotspotContent(t){let e={isHit:!1,value:"",type:NaN};const i=this.hotspotStore.state[n.Wp.Division];return this.computedPoints.length&&(e=this.hotspotContentRule(this.computedPoints,t),e.isHit)||i&&(e=this.hotspotContentRule(i,t)),e}hotspotContentRule(t,e){let i={isHit:!1,value:"",type:NaN};for(let n=0;n<t.length;n++){const r=t[n];if(e>=r.from&&e<=r.to){i.isHit=!0,i.value=r.team_name?`${r.content}·${r.team_name}`:r.content,i.type=r.type;break}}return i}calcMoveDistance(t){const e=this.templateNodes.mainProgressWrap.clientWidth,i=this.templateNodes.mainProgressWrap.getBoundingClientRect().left,n=t.clientX||t.changedTouches&&t.changedTouches[0].clientX,r=Math.min(Math.max((n||0)-i-0,0),e);return{distance:r,percentage:r/e,eventClientX:n}}pullingHandler(t,e){if(!this.precisionMode)return;1===this.ratioY&&this.startPercentage!==e&&(this.startPercentage=e);const i=this.templateNodes.progress.clientHeight/this.defaultHeight;if(i>=1&&i<=this.maxRatioY){const e=t.clientY,n=this.templateNodes.progress.getBoundingClientRect().bottom,r=Math.min(Math.max(Math.floor(n-e),this.defaultHeight),this.maxRatioY*this.defaultHeight);if(this.templateNodes.progress.style.height=r+"px",this.ratioY!==i){if(this.ratioY=i,this.pullAnimation.stop(),this.precisionGuide&&(this.toastStore.remove(this.precisionGuide),this.precisionGuide=null),this.savedLeft=this.savedRight=0,this.precisionEndTime=null,this.templateNodes.popup.style.bottom=this.popupBottom+r-this.defaultHeight+"px",this.boundLeftTime=(1-1/i)*this.startPercentage*this.mediaStore.state.remoteDuration,this.boundRightTime=this.boundLeftTime+1/i*this.mediaStore.state.remoteDuration,this.updateScaleplateTPL(this.boundLeftTime,this.boundRightTime),i>1){const t=-.205*r+13.026,e=1.026*r+6.872;this.templateNodes.cursor.style.width=t+"px",this.templateNodes.cursor.style.left=-t/2+"px",this.templateNodes.cursor.style.height=e+"px",this.templateNodes.cursor.style.top=(r-e)/2+"px",this.templateNodes.mainProgressWrap.classList.add(this.pullingToken)}else this.templateNodes.mainProgressWrap.classList.remove(this.pullingToken);this.updateBufferSchedule(this.progressStore.bufferRatio,!1)}}else this.resetPullConfig()}resetPullConfig(){this.pullAnimation&&this.pullAnimation.stop(),this.ratioY=1,this.startPercentage=0,this.movedPercentage=0,this.precisionEndTime=null,this.precisionModeMove=!1,this.savedLeft=this.savedRight=0,this.templateNodes.cursor.style.width="",this.templateNodes.cursor.style.left="",this.templateNodes.cursor.style.height="",this.templateNodes.cursor.style.top="",this.templateNodes.popup.style.bottom="",this.templateNodes.scaleplate.innerHTML="",this.templateNodes.progress.style.height=this.pbpRender&&this.progressStore.state.pbpstate?"4px":"",window.cancelAnimationFrame(this.boundAnimation),this.templateNodes.mainProgressWrap.classList.remove(this.pullingToken)}updateScaleplateTPL(t,e){this.templateNodes.scaleplate.innerHTML="";if(this.ratioY>=this.showScaleplateHeight/this.defaultHeight){let i="";const n=e-t;if(n<=60)return void(this.templateNodes.scaleplate.innerHTML="");const r=n/60,o=this.templateNodes.mainProgressWrap.clientWidth,a=o/r,s=(1-t%60/60)*a;for(let t=1;t<r+1;t++){const e=s+(t-1)*a;if(!(e<=o))break;i+=`<div class="${t%2==0?`${this.ppx}-progress-scaleplate-2m`:`${this.ppx}-progress-scaleplate-1m`}" style="left: ${e}px;"></div>`}this.templateNodes.scaleplate.innerHTML=i,this.scaleplateTrackReported||(this.track.e("high_precision_bar_show"),this.scaleplateTrackReported=!0)}else this.templateNodes.scaleplate.innerHTML=""}resize(){if(this.updateThumbPosition(this.progressStore.currentRatio),this.computedPoints.length){const t=this.templateNodes.pointWrap.querySelectorAll(`.${this.ppx}-progress-point`),e=this.templateNodes.mainFreeZone.querySelectorAll(`.${this.ppx}-progress-point-logo`);for(let i=0;i<this.computedPoints.length;i++){const n=this.computedPoints[i],r=this.computePointValue({to:n.end,from:n.start,type:n.type,content:n.content});t[i].style.width=r.width+"px",t[i].style.left=r.left+"px",this.computedPoints[i].logoUrl&&e[i]&&(e[i].style.left=r.left+"px",e[i].style.width=r.width+"px"),this.computedPoints[i].from=r.from,this.computedPoints[i].to=r.to}}}seekHandler(t,e){if(this.userStore.isInteraction){const e=this.interactStore.getDisableTime(t);e&&(t=Math.min(t,this.mediaStore.state.remoteDuration-e-.4))}this.portStore.seekAutoplay(t,e)}onDispose(){this.hotspotStore.setAIPoints([]),this.hotspotMap.clear(),this.cancelThrottleSeek()}onDisconnect(){this.hotspotStore.setAIPoints([]),this.hotspotMap.clear()}}F([g.LO.shallow],P.prototype,"thumbData",2),F([g.aD],P.prototype,"setThumbData",1),F([g.Fl],P.prototype,"precisionMode",1),F([g.Fl],P.prototype,"points",1),F([f.ZP],P.prototype,"onSeekedHandler",1),F([f.ZP],P.prototype,"onTimeupdateHandler",1),F([f.ZP],P.prototype,"onHeartBeatHandler",1),F([f.ZP],P.prototype,"onMouseEnterHandler",1),F([f.ZP],P.prototype,"onMouseLeaveHandler",1),F([f.ZP],P.prototype,"onMouseMoveHandler",1),F([f.ZP],P.prototype,"onMouseDownHandler",1),F([f.ZP],P.prototype,"onDragMoveHandler",1),F([f.ZP],P.prototype,"onDragUpHandler",1),F([f.ZP],P.prototype,"onTouchStartHandler",1),F([f.ZP],P.prototype,"onTouchMoveHandler",1)},88913:function(t,e,i){"use strict";i.d(e,{u:function(){return P}});var n=i(46330),r=i(23529),o=i(43122),a=i(99550),s=i(89262),l=i(87563),A=i.n(l),c=i(59375),h=i.n(c),d=i(94527),u=i.n(d),p=i(62363),g=i.n(p),f=i(7975),m=i.n(f),y=i(48132),b=i.n(y),v=i(12227),E=i.n(v),I=i(45916),C=i.n(I),B=i(92565),w=i.n(B),x=i(22451),Q=i(5489),S=i(57277),k=i(63212),D=i(51839),_=i(46740),R=i(83370),M=i(48760),T=i(36471),F=Object.defineProperty,L=Object.getOwnPropertyDescriptor,N=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?L(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o)
;return n&&o&&F(e,i,o),o};class P extends Q.vq{constructor(){super(...arguments),this.templateNodes=this.qualityTemplate(),this.showToken=`${this.spx}-show`,this.activeToken=`${this.spx}-active`,this.countBasedTrialRemainingTimes=0,this.vipTrialTimer=0,this.vipTrialToastTimer=0,this.vipTrialTid=0,this.resizeDebounceTimer=0,this.hasCountBasedTrialToastAuto=!1,this.vipQnEndToast=null,this.vipTrailPromptToastSent=!1,this.isInTimeBasedTrialFrame=!1,this.hasTriggeredFirst15sSwitch=!1,this.isAutoUsed=!1}install(){this.configStore.isChannel(Q.u5.Creator)&&this.configStore.localUrl||(super.install(),this.dc.needVipVisionPanel=(0,x.U5)((()=>this.qualityStore.needVipVisionPanel),(t=>{const e=`${this.ppx}-vip-vision-panel`;t?this.templateNodes.container.classList.contains(e)||this.templateNodes.container.classList.add(e):this.templateNodes.container.classList.contains(e)&&this.templateNodes.container.classList.remove(e)}),{fireImmediately:!0}),this.templateNodes.container.parentElement||(this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.addEventListener()),this.templateNodes.container.contains(this.nodes.bubble)||this.templateNodes.container.appendChild(this.nodes.bubble),this.configStore.embeddedEnv&&(this.dc.isShowCtrlButtons=(0,x.U5)((()=>this.uiStore.isShowCtrlButtons),(t=>{t?(0,n.o)(this.templateNodes.container):(0,r.N)(this.templateNodes.container)}),{fireImmediately:!0})),this.dc.remaining=(0,x.U5)((()=>{var t;return null==(t=this.qualityStore.state.trialInfo)?void 0:t.remainingTimes}),(t=>{t&&this.isTrialStatusUnused()&&(this.countBasedTrialRemainingTimes=t,this.vipQnEndToast=this.qualityStore.state.trialInfo.endToast)}),{fireImmediately:!0}),this.rootPlayer.on(Q.tw.Player_Vip_Qulaity_Trial,(()=>{this.switchVipTrialQuality(),this.hasCountBasedTrialToastAuto=!0})),this.rootPlayer.on(Q.tw.Player_Vip_Qulaity_Trial_End,(()=>{this.qualityStore.requestVipPermission(_.M.Close,T.pS.vipQn),this.qualityStore.setState({vipQnTrialStatus:T.UK.closed}),this.updateMenu(this.acceptQuality)})),this.rootPlayer.on(Q.p2.Player_Reload_Access_Success,(()=>{this.qualityStore.state.isLoginSwitch||this.updateMenu(this.acceptQuality)})),this.rootPlayer.on(Q.tw.Player_Container_Resize,(()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout((()=>{this.resize(),this.resizeDebounceTimer=0}),200)})),this.rootPlayer.on(Q.tw.Player_TimeUpdate,(()=>{this.handleVipQnTrialTimeFrame(),this.handleTrialAt15s(),this.hasCountBasedTrialPermission()&&this.qualityStore.isCountBasedTrialAvailable&&this.portStore.getDuration()>60&&this.metricStore.getAbsolutePlayTime()>this.qualityStore.getVipQnTrialStart&&(this.qualityStore.getVipQnTrialAutoPanel?this.switchVipTrialQuality(!0):(this.cid=this.configStore.cid,this.vipTrailPromptToastSent||this.configStore.cid!==this.cid||this.qualityStore.state.vipQnTrialStatus===T.UK.closed||(this.vipTrailPromptToastSent=!0,this.rootPlayer.emit(Q.tw.Player_Vip_Trial_Prompt_Toast,new CustomEvent(Q.tw.Player_Vip_Trial_Prompt_Toast,{detail:{startOrEnd:1,duration:8e3,autoPanel:!1,timeLength:1e3*this.qualityStore.getVipQnTrialTimelength,remainingTimes:this.countBasedTrialRemainingTimes}})))),this.hasCountBasedTrialToastAuto=!0)})),this.dc.isInTrialTimeFrame=(0,x.U5)((()=>this.qualityStore.isTimeBasedTrialEnabled),(t=>{t&&(this.handleVipQnTrialTimeFrame(),this.handleTrialAt15s())}),{fireImmediately:!0}),this.dc.vipQnTrialStatus=(0,x.U5)((()=>this.qualityStore.state.vipQnTrialStatus),(t=>{var e,i,n,r,s;if(t===T.UK.using){if(this.qualityStore.isTimeBasedTrialEnabled)return void this.qualityStore.requestVipPermission(_.M.ReduceCnt,T.pS.strategy,this.qualityStore.timeBasedTrialStuuid,this.configStore.aid);this.qualityStore.requestVipPermission(_.M.ReduceCnt,T.pS.vipQn),this.countBasedTrialRemainingTimes-=1,this.envokeVipToast()}else if(t===T.UK.used||t===T.UK.closed){const l=o.nJ.isSuperQuality(this.localStore.get().media.quality)?o.nJ.getHighestAvailableUnSuperQuality(this.acceptQuality):this.localStore.get().media.quality;if(t===T.UK.used){if(this.qualityStore.isTimeBasedTrialEnabled){const t=this.toastStore.getFirstSponsorToast(),o=null==(e=null==t?void 0:t.toast)?void 0:e.end_toast;if(this.trackStore.polarReport("toast-vip-qn-trysee-end",Q.Rr.show,{isSponsor:!!o}),!this.userStore.isSuperUser){const t=(null==(i=null==o?void 0:o.toast_text)?void 0:i.text)||"大会员清晰度体验即将结束",e=null==(n=null==o?void 0:o.toast_text)?void 0:n.text_color,c=`\n                                    <div class="${this.ppx}-quality-naming-toast">\n                                        ${A()}<span${e?` style="color:${e}"`:""}>${t}</span>\n                                    </div>\n                                `,h=(0,a.t)(c);this.toastStore.create({text:h,duration:3e3,confirmText:(null==(r=null==o?void 0:o.button)?void 0:r.text)||"开通大会员",confirmColor:null==(s=null==o?void 0:o.button)?void 0:s.text_color,onConfirmClicked:()=>{this.trackStore.polarReport("toast-vip-qn-trysee-end",Q.Rr.click,{isSponsor:!!o}),this.userStore.requestSuperVipTrialQuality({qn:l,appId:9,appSubId:`${this.configStore.aid}-${l}`,sourceFrom:`${this.configStore.spmId.split(".").slice(0,2).join(".")}.toast-vip-qn-end-pay-btn`})}})}return this.changeQuality(l,"vipTrialEnd"),this.qualityStore.setState({banQnTimePeriodToast:!1}),void this.qualityStore.setState({banFinalQnTimePeriodToast:!0})}let t="";this.hasCountBasedTrialToastAuto?t="qn_auto":this.uiStore.kind===Q.HR.Pgc?t="ogvqnpay_ty":this.uiStore.kind===Q.HR.Ugc&&(t="ugcqnpay_ty"),this.qualityStore.getVipQnTrialAutoPanel&&this.userStore.requestSuperVipTrialQuality({qn:l,appId:194,appSubId:t,sourceFrom:`${this.configStore.spmId.split(".").slice(0,2).join(".")}.vip-qn-list-purchase-btn.click`})}this.changeQuality(l,"vipTrialEnd")}})),this.dc.acceptQuality=(0,x.U5)((()=>{var t;return this.userStore.state.isUserPrepared&&(null==(t=this.mpdStore.body)?void 0:t.acceptQuality)}),(t=>{if(Array.isArray(t)&&t.length){const e=Object.assign([],t);(0,S.Z)(this.acceptQuality,e)||(this.acceptQuality=e,this.updateMenu(e))}else this.templateNodes.menu.innerHTML=""}),{fireImmediately:!0}),this.dc.login=(0,x.U5)((()=>this.userStore.isLogin),(()=>{this.envokeUpdateBadge()})),this.dc.isSwitching=(0,x.U5)((()=>this.qualityStore.isSwitching),(t=>{t&&(this.qualityStore.state.isTrialQuality&&this.updateMenu(this.acceptQuality),this.nowQualityChangeHandler(this.qualityStore.state.newQuality),this.envokeUpdateBadge())})),this.dc.track=(0,x.U5)((()=>this.qualityStore.state.isTrialQuality),(()=>{this.updateMenu(this.acceptQuality),this.nowQualityChangeHandler(this.qualityStore.state.newQuality)})),this.dc.isCharingTrialWatch=(0,x.U5)((()=>this.userStore.isCharingTrialWatch),(()=>{this.updateMenu(this.acceptQuality),this.nowQualityChangeHandler(this.qualityStore.state.newQuality)})),this.dc.handleFirstPlay=(0,x.U5)((()=>!!(this.rootStore.isLoaded&&this.userStore.info&&this.mediaStore.state.firstPlay)),(t=>{var e;if(!t||!(null==(e=this.mpdStore.body)?void 0:e.supportFormats))return;this.mpdStore.body.supportFormats.some((t=>t.canWatchQnReason===R.C$.CICC_HOME_NETWORK))&&this.trackStore.polarReport("family-vip-play.start",Q.Rr.show,{vip_type:this.userStore.info.vipType,vip_status:this.userStore.info.vipStatus})}),{fireImmediately:!0}))}handleVipQnTrialTimeFrame(){const t=this.qualityStore.isTimeBasedTrialEnabled,e=this.qualityStore.isTimeBasedTrialProgressEnd;if(!t)return;const i=this.portStore.getCurrentTime()<=e;i||this.qualityStore.vipQnTrialStatus!==T.UK.using||(this.qualityStore.setState({vipQnTrialStatus:T.UK.used}),this.updateMenu(this.acceptQuality),this.envokeUpdateBadge()),i!==this.isInTimeBasedTrialFrame&&(this.isInTimeBasedTrialFrame=i,this.updateMenu(this.acceptQuality),this.envokeUpdateBadge())}handleTrialAt15s(){var t,e,i,n,r;if(this.hasTriggeredFirst15sSwitch)return;if(this.qualityStore.vipQnTrialStatus===T.UK.closed)return;const o=this.portStore.getCurrentTime();if(o<15)return;const s=this.qualityStore.isTimeBasedTrialProgressEnd;if(s&&o>=s-15)return;const l=this.toastStore.getFirstSponsorToast(),c=null==(t=null==l?void 0:l.toast)?void 0:t.start_toast;if(c){
if(this.qualityStore.state.hasShownQualityNamingToast)return;if(this.qualityStore.quality>=l.qn)return;this.hasTriggeredFirst15sSwitch=!0,this.qualityStore.setState({hasShownQualityNamingToast:!0}),this.trackStore.polarReport("toast-vip-qn-switch-btn",Q.Rr.show,{});const t=(null==(e=null==c?void 0:c.toast_text)?void 0:e.text)||"",o=null==(i=null==c?void 0:c.toast_text)?void 0:i.text_color,s=`\n                <div class="${this.ppx}-quality-naming-toast">\n                    ${A()}<span${o?` style="color:${o}"`:""}>${t}</span>\n                </div>\n            `,h=(0,a.t)(s),d=this.toastStore.create({text:h,duration:3e3,confirmText:null==(n=null==c?void 0:c.button)?void 0:n.text,confirmColor:null==(r=null==c?void 0:c.button)?void 0:r.text_color,onConfirmClicked:()=>{this.changeQuality(null==l?void 0:l.qn,"vipTrialToast"),this.trackStore.polarReport("toast-vip-qn-switch-btn",Q.Rr.click,{}),this.toastStore.remove(d)}})}else{if(!this.qualityStore.isTimeBasedTrialEnabled)return;if(!this.qualityStore.isTimeBasedTrailAutoSwitch)return;if(!this.isTrialStatusUnused())return;this.hasTriggeredFirst15sSwitch=!0;const t=this.switchQnbySpeed();t?(this.changeQuality(t),this.isAutoUsed=!0):this.qualityStore.setState({vipQnTrialStatus:T.UK.closed})}}getQualityName(t){return this.qualityStore.getQualityName(t)}getQualitySubtitle(t){return this.qualityStore.getQualitySubtitle(t)}switchVipTrialQuality(t=!1){try{const e=o.nJ.getHighestAvailableSuperQuality(this.portStore.getSupportedQualityList()||this.acceptQuality),i=t?"vipTrialForced":"vipTrialToast";this.changeQuality(e,i)}catch(t){}}qualityTemplate(){var t,e;const i=this.qualityStore.state.newQuality,n=null==(t=this.qualityStore.flattenedFormatPanel)?void 0:t.find((t=>t.quality===i)),r=null==(e=this.qualityStore.filteredVipVisionPanel)?void 0:e.find((t=>t.quality===i)),o=this.qualityStore.needVipVisionPanel&&0!==i,s=(0,a.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-quality" role="button" aria-label="清晰度" tabindex="0">\n                <div class="${this.ppx}-ctrl-quality-result">${o?this.generateVipResultTempalte(n,!!r):this.getQualityName(i)}</div>\n                <div class="${this.ppx}-ctrl-quality-menu-wrap">\n                    <ul class="${this.ppx}-ctrl-quality-menu"></ul>\n                </div>\n               \n            </div>\n        `),l=s.querySelector(`.${this.ppx}-ctrl-quality-result`),A=s.querySelector(`.${this.ppx}-ctrl-quality-menu`),c=s.querySelector(`.${this.ppx}-ctrl-quality-menu-wrap`);return{container:s,result:l,menu:A,menuWrap:c}}updateMenu(t){if(this.qualityStore.needVipVisionPanel)return void this.updateVipVisionMenu();if(!t)return;if(this.configStore.fromLocalCache)return;let e="";this.hasTrialRule()&&(e+=`<li class ="${this.ppx}-ctrl-quality-menu-feedback">\n                ${this.qualityStore.isTimeBasedTrialEnabled?`<div class="${this.ppx}-ctrl-quality-menu-feedback-title">${this.qualityStore.timeBasedTrialText}</div>`:` <div class="${this.ppx}-ctrl-quality-menu-feedback-title">\n                    <span class="${this.cpx}-top-info-icon">${h()}</span><span>剩</span>\n                    <span class="${this.ppx}-ctrl-quality-menu-feedback-times">${this.countBasedTrialRemainingTimes}</span>\n                    次大会员清晰度免费体验\n                </div>`}\n               \n                <div class="${this.ppx}-ctrl-quality-menu-feedback-desc">成为大会员畅享全部清晰度${u()}</div>\n                <span class="${this.cpx}-top-close-icon">${g()}</span>\n            </li>`),(t=this.portStore.getSupportedQualityList()||t)&&!t.includes(0)&&t.push(0);const i=t.indexOf(126),n=t.indexOf(125);-1!==i&&-1!==n&&t.splice(n,1),-1===t.indexOf(0)&&t.push(0);for(let i=0;i<t.length;i++){const n=t[i],r=this.shouldShowCindyQuality(n)&&!this.userStore.isLogin?"cindy-width-token":"";let a="",s="",l=n===o.nJ.alias.AI_100?`${this.ppx}-ctrl-quality-menu-item-vip-trial`:"";const A=this.getQualitySubtitle(n);let c=this.hasTrialRule()?`${this.ppx}-ctrl-quality-menu-item-vip-trial`:"",h=A?`${this.ppx}-ctrl-quality-menu-item-with-subtitle`:"";if(0===n&&0===this.qualityStore.state.nowQuality){const t=this.getQualityName(this.qualityStore.realQ);a=`<span class="${this.ppx}-ctrl-quality-text">自动(${t})</span>`}else{const t=this.getQualityName(n);if(n===o.nJ.alias.AI_100)a=`<span class="${this.ppx}-ctrl-quality-text ${this.ppx}-ctrl-quality-text-vip-trial">\n                    <div class="${this.ppx}-ctrl-quality-text-vip-trial-name"> ${t} </div>\n                    <div class="${this.ppx}-ctrl-quality-text-vip-trial-description"> 人工智能增强画质 </div>\n                 </span>`;else if(A){const e=(t,e)=>{let i=0;for(let n=0;n<t.length;n++)if(i+=/[\x00-\x7f]/.test(t[n])?.5:1,i>e)return t.slice(0,n)+"...";return t},i=e(t,8),n=e(A,15);a=`<span class="${this.ppx}-ctrl-quality-text ${this.ppx}-ctrl-quality-text-with-subtitle">\n                            <div class="${this.ppx}-ctrl-quality-text-with-subtitle-name"> ${i} </div>\n                            <div class="${this.ppx}-ctrl-quality-text-with-subtitle-description"> ${n} </div>\n                         </span>`}else if(o.nJ.isSuperQuality(n)&&this.hasTrialRule()&&n!==o.nJ.alias.UHD_DVision)a=`<span class="${this.ppx}-ctrl-quality-text ${this.ppx}-ctrl-quality-text-vip-trial">\n                            <div class="${this.ppx}-ctrl-quality-text-vip-trial-name"> ${t} </div>\n                            <div class="${this.ppx}-ctrl-quality-text-vip-trial-description"> 大会员清晰度专享 </div>\n                         </span>`;else{const e=0===n?"自动":t;a=`<span class="${this.ppx}-ctrl-quality-text">${e}</span>`}}n===this.qualityStore.state.nowQuality&&(s=this.activeToken);const d=n!==o.nJ.alias.UHD_DVision||A?"":`<span class="${this.ppx}-ctrl-quality-tip"><span class="${this.cpx}-svg-icon">${m()}</span></span>`;e+=`<li class="${this.ppx}-ctrl-quality-menu-item ${r} ${c} ${h} ${s} ${l}" data-value="${n}">${a}${d}${this.updateBadge(n)}</li>`}this.templateNodes.menu.innerHTML=e,this.templateNodes.menu.classList[t.includes(o.nJ.alias.AI_100)?"add":"remove"](`${this.ppx}-ctrl-quality-ai-menu`);const r=this.templateNodes.menu.querySelector(`.${this.cpx}-top-info-icon`);if(r){const t="vipTrialInfoToolTip";this.tooltipStore.create({tip:!0,title:"不感兴趣？点击关闭不再试用会员清晰度",name:t,target:r,position:Q.DU.TopCenter,duration:1e3})}this.resize()}resize(){this.qualityListScroll&&(this.qualityListScroll.destroy(),this.qualityListScroll=null);const t=this.nodes.container.clientHeight;(0,k.Z)(this.acceptQuality)>o.nJ.alias.FHD_80&&this.hasTrialRule()&&t<423?(this.templateNodes.menuWrap.classList.add(`${this.ppx}-ctrl-quality-menu-wrap-scroll`),this.qualityListScroll=new M.Z(this.templateNodes.menuWrap,{preventDefault:!1,scrollbar:{fade:!0},mouseWheel:!0})):this.templateNodes.menuWrap.classList.remove(`${this.ppx}-ctrl-quality-menu-wrap-scroll`)}updateBadge(t){var e,i,n,r,a;let s="";const l=this.getUnloginGreatestQuality();return this.configStore.isChannel(Q.u5.Manager)?"":(this.userStore.isLogin?(this.uiStore.kind!==Q.HR.Pugv&&!this.configStore.isCreator()&&o.nJ.isSuperQuality(t)&&(s=this.hasTrialRule()&&t!==o.nJ.alias.UHD_DVision?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${this.qualityStore.state.newQuality===t?"试用中":"可试用"}</span>`:`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${(null==(e=this.userStore.info)?void 0:e.withoutVip)?"限免中":"大会员"}</span>`,this.qualityStore.isTimeBasedTrialEnabled&&(s=!this.isInTimeBasedTrialFrame||this.qualityStore.vipQnTrialStatus!==T.UK.unUsed&&this.qualityStore.vipQnTrialStatus!==T.UK.using||t===o.nJ.alias.UHD_DVision?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${(null==(i=this.userStore.info)?void 0:i.withoutVip)?"限免中":"大会员"}</span>`:`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${this.qualityStore.state.newQuality===t?"试用中":"限时体验"}</span>`)),
t===o.nJ.alias.AI_100&&(s=this.qualityStore.aiSwitchQualityTrialable?this.qualityStore.aiSwitchStatus===T.NZ.Used?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${(null==(r=this.userStore.info)?void 0:r.withoutVip)?"限免中":"大会员"}</span>`:`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${this.qualityStore.state.nowQuality===o.nJ.alias.AI_100?"试用中":"可试用"}</span>`:`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${(null==(n=this.userStore.info)?void 0:n.withoutVip)?"限免中":"大会员"}</span>`)):(null==(a=this.userStore.info)?void 0:a.withoutVip)?t>l&&(s=`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-needlogin">登录即享</span>`):this.uiStore.kind!==Q.HR.Pugv&&o.nJ.isSuperQuality(t)?s=`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">大会员</span>`:t>l&&(s=this.uiStore.kind===Q.HR.Ugc&&this.qualityStore.state.isTrialQuality?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">${this.qualityStore.state.newQuality===t?"试用中":"可试用"}</span>`:`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-needlogin">登录即享</span>`),s)}generateVipVisionBadge(t,e){return`\n            <div class="${this.ppx}-ctrl-quality-vip-vision-badge ${e||""}">\n                <span>${t}</span>\n            </div>\n        `}updateVipVisionBadge(t){return Array.isArray(t)?this.handleArrayItems(t):this.handleSingleItem(t)}handleArrayItems(t){var e,i;if(!this.userStore.isLogin)return this.generateVipVisionBadge((null==(e=this.userStore.info)?void 0:e.withoutVip)?"限免中":"大会员");if(this.hasTrialRule()){const e=t.some((t=>t.quality===this.qualityStore.state.nowQuality));return this.generateVipVisionBadge(e?"试用中":"可试用",e?"vip-trialing":"")}return this.generateVipVisionBadge((null==(i=this.userStore.info)?void 0:i.withoutVip)?"限免中":"大会员")}handleSingleItem(t){var e,i;if(this.configStore.isChannel(Q.u5.Manager))return"";const n=t.quality,r=this.getUnloginGreatestQuality(),a=o.nJ.isSuperQuality(n);if(this.userStore.isLogin){if(this.shouldShowVipBadge(a)){if(this.hasTrialRule()&&n!==o.nJ.alias.UHD_DVision){const t=n===this.qualityStore.state.nowQuality;return this.generateVipVisionBadge(t?"试用中":"可试用")}return this.generateVipVisionBadge((null==(e=this.userStore.info)?void 0:e.withoutVip)?"限免中":"大会员")}return""}return(null==(i=this.userStore.info)?void 0:i.withoutVip)?n>r?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-needlogin">登录即享</span>`:"":this.shouldShowVipBadge(a)?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-bigvip">大会员</span>`:n>r?`<span class="${this.ppx}-ctrl-quality-badge ${this.ppx}-ctrl-quality-badge-needlogin">登录即享</span>`:""}shouldShowVipBadge(t){return this.uiStore.kind!==Q.HR.Pugv&&!this.configStore.isCreator()&&t}svipAuthentication(t){var e;return!(null==(e=this.userStore.info)?void 0:e.withoutVip)&&this.uiStore.kind!==Q.HR.Pugv&&!!o.nJ.isSuperQuality(t)}showSvipDialog(t,e){var i,n;if((null==e?void 0:e.canWatchQnReason)===R.C$.CICC_HOME_NETWORK)return!1;const r=this.userStore.isLogin&&this.mpdStore.payInfoDecision,a=(this.mpdStore.body.supportFormats||[]).find((e=>e.quality===t)),s=null==(i=this.qualityStore.flattenedFormatPanel)?void 0:i.find((e=>e.quality===t));let l;if(l=s?!(null==s?void 0:s.hasPreview):!a.has_preview,l&&this.mpdStore.body.isPreview&&this.uiStore.kind===Q.HR.Pgc)return!0;if(!this.userStore.isSuperUser&&!r){if(126===t)return!0;if(t===o.nJ.alias.AI_100&&this.showAiCashier()){if(this.patchAdvStore.hasValidAdv)return!0;if(this.showAiCashier())return!1}if(this.hasTrialRule()&&t!==o.nJ.alias.UHD_DVision)return!1;if(!(null==(n=this.userStore.info)?void 0:n.isOwner))return!0}return!1}noLogin(t){const e=this.getUnloginGreatestQuality();if(!this.userStore.isLogin&&t>e)return!0}generateVipResultTempalte(t,e){var i;const n=null==(i=null==t?void 0:t.formatTag)?void 0:i.hdrTag,r=e?t.title.split(" ")[0]:t.title,o={[R.H$.HDR10]:"HDR 10",[R.H$.HDR_Dolby]:"dolby",[R.H$.SDR_ENHANCED]:"SDR增强",[R.H$.AI_ENHANCED]:"AI修复",[R.H$.HDR_VIVID]:"HDR Vivid"};let a=e?`<span class="${this.cpx}-svg-icon ${this.ppx}-vip-vision-result-svg">${b()}</span>`:"";n&&n in o&&(a=`\n            <span class="${this.cpx}-svg-icon ${this.ppx}-vip-vision-result-svg">${b()}</span>\n            <span class="${this.ppx}-ctrl-quality-vip-vision-result-tag">${o[n]}</span>\n        `);return`\n                    <div class="${this.ppx}-ctrl-quality-vip-vision-result-content">\n                \n                        ${a}\n                        <span>&nbsp;${r}</span>\n                    </div>\n                `}nowQualityChangeHandler(t){const{newQuality:e}=this.qualityStore.state;if(!this.qualityStore.loginKeepAuto||t!==e){if(this.qualityStore.needVipVisionPanel){const e=this.qualityStore.flattenedFormatPanel.find((e=>e.quality===t)),i=this.qualityStore.filteredVipVisionPanel.some((e=>e.quality===t));e&&(this.templateNodes.result.innerHTML=this.generateVipResultTempalte(e,i))}else this.noLogin(t)&&this.qualityStore.state.isTrialQuality?this.templateNodes.result.innerHTML=`\n                    <span class="${this.ppx}-ctrl-quality-result-trial">试用</span>\n                   <span>${this.getQualityName(t)}</span>\n                `:this.templateNodes.result.innerHTML=this.getQualityName(t);this.envokeUpdateBadge(),this.updateMenu(this.acceptQuality),this.qualityStore.needVipVisionPanel?this.filterVipVisionActive(t):this.filterActive(t)}}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("quality_show"),this.templateNodes.container.classList.remove(this.showToken)))}filterActive(t){const e=this.templateNodes.menu.querySelectorAll(`.${this.ppx}-ctrl-quality-menu-item`);if(e&&e.length){e.forEach((e=>{if(e.classList.remove(this.activeToken),0==+e.dataset.value)if(0!==t)e.innerHTML="自动";else{const t=this.getQualityName(this.qualityStore.realQ);e.innerHTML="智能修复"===t?"自动":`自动(${t})`}}));for(let i=0;i<e.length;i++){const n=e[i];if(+n.dataset.value===t){n.classList.add(this.activeToken);break}}}}filterVipVisionActive(t){const e=`.${this.ppx}-ctrl-quality-vip-vision-menu-item, .${this.ppx}-ctrl-quality-vip-vision-group-item, .${this.ppx}-ctrl-quality-vip-vision-group-item-title, .${this.ppx}-ctrl-quality-vip-vision-group-single-item-title`;this.templateNodes.menu.querySelectorAll(e).forEach((e=>{e.classList.remove(this.activeToken),e.dataset.value&&+e.dataset.value===t&&e.classList.add(this.activeToken),(e.classList.contains(`${this.ppx}-ctrl-quality-vip-vision-group-item-title`)||e.classList.contains(`${this.ppx}-ctrl-quality-vip-vision-group-single-item-title`))&&this.qualityStore.filteredVipVisionPanel.some((e=>e.quality===t))&&e.classList.add(this.activeToken)}))}onVipVisionMenuClickHandler(t){var e,i,n;const r=t.target,o=+r.dataset.value;if(this.ctrlStore.setState({majorHovered:!1}),null==r?void 0:r.classList.contains(`${this.ppx}-vip-vision-qa`))return void this.rootPlayer.emit(Q.tw.Player_Virtual_Action,new CustomEvent(Q.tw.Player_Virtual_Action,{detail:{kind:Q.s.Vip_Vision_Question_Wall}}));if((null==r?void 0:r.className)===this.cpx+"-top-close-icon")return this.qualityStore.isTimeBasedTrialEnabled?this.qualityStore.requestVipPermission(_.M.Close,T.pS.strategy,this.qualityStore.timeBasedTrialStuuid,this.configStore.aid):this.qualityStore.requestVipPermission(_.M.Close,T.pS.vipQn),this.qualityStore.setState({vipQnTrialStatus:T.UK.closed}),this.updateMenu(this.portStore.getSupportedQualityList()||this.acceptQuality),clearTimeout(this.vipTrialTimer),clearTimeout(this.vipTrialToastTimer),this.trackStore.polarReport("vip-qn-list-close-btn",Q.Rr.click,{qn:this.qualityStore.state.nowQuality,autoPanel:this.qualityStore.getVipQnTrialAutoPanel}),this.rootPlayer.emit(Q.tw.Player_Vip_Trial_Toast_Envoked,new CustomEvent(Q.tw.Player_Vip_Trial_Toast_Envoked,{detail:{startOrEnd:0,duration:8e3,autoPanel:this.qualityStore.getVipQnTrialAutoPanel}})),
void this.rootPlayer.emit(Q.tw.Player_Vip_Trial_Prompt_Toast,new CustomEvent(Q.tw.Player_Vip_Trial_Prompt_Toast,{detail:{startOrEnd:0,duration:8e3,autoPanel:this.qualityStore.getVipQnTrialAutoPanel,remainingTimes:this.countBasedTrialRemainingTimes,timeLength:1e3*this.qualityStore.getVipQnTrialTimelength}}));if((null==r?void 0:r.className)===this.ppx+"-ctrl-quality-menu-feedback-desc"&&(this.trackStore.polarReport("vip-qn-list",Q.Rr.click,{play_qn:this.qualityStore.state.nowQuality,qn:o,auto_panel:this.qualityStore.getVipQnTrialAutoPanel}),this.userStore.requestSuperVipTrialQuality({qn:o,appId:194,appSubId:this.uiStore.kind===Q.HR.Pgc?"ogvqnpay_ty":"ugcqnpay_ty",sourceFrom:`${this.configStore.spmId.split(".").slice(0,2).join(".")}.vip-qn-list.click`})),this.qualityStore.isSwitching)return void this.templateNodes.container.classList.remove(this.showToken);const a=this.qualityStore.flattenedFormatPanel.find((t=>t.quality===o));this.trackStore.polarReport("quality-list.0",Q.Rr.click,{qn:o,play_qn:this.qualityStore.state.nowQuality,auto_panel:this.qualityStore.getVipQnTrialAutoPanel,is_vip_vision:o>=120?"1":"0",resolution_tag:null==(e=null==a?void 0:a.formatTag)?void 0:e.resolutionTag,frame_tag:null==(i=null==a?void 0:a.formatTag)?void 0:i.frameTag,hdr_tag:null==(n=null==a?void 0:a.formatTag)?void 0:n.hdrTag}),"LI"===r.tagName.toUpperCase()&&(this.templateNodes.container.classList.remove(this.showToken),this.track.e("quality_click",{value:o}),this.changeQuality(o))}onClickHandler(t){if(this.qualityStore.needVipVisionPanel)return this.onVipVisionMenuClickHandler(t);const e=t.target,i=+e.dataset.value;if(this.ctrlStore.setState({majorHovered:!1}),(null==e?void 0:e.className)===this.cpx+"-top-close-icon")return this.qualityStore.requestVipPermission(_.M.Close,T.pS.vipQn),this.qualityStore.setState({vipQnTrialStatus:T.UK.closed}),this.updateMenu(this.portStore.getSupportedQualityList()||this.acceptQuality),clearTimeout(this.vipTrialTimer),clearTimeout(this.vipTrialToastTimer),void(this.qualityStore.isCountBasedTrialAvailable&&(this.trackStore.polarReport("vip-qn-list-close-btn",Q.Rr.click,{qn:this.qualityStore.state.nowQuality,autoPanel:this.qualityStore.getVipQnTrialAutoPanel}),this.rootPlayer.emit(Q.tw.Player_Vip_Trial_Toast_Envoked,new CustomEvent(Q.tw.Player_Vip_Trial_Toast_Envoked,{detail:{startOrEnd:0,duration:8e3,autoPanel:this.qualityStore.getVipQnTrialAutoPanel}})),this.rootPlayer.emit(Q.tw.Player_Vip_Trial_Prompt_Toast,new CustomEvent(Q.tw.Player_Vip_Trial_Prompt_Toast,{detail:{startOrEnd:0,duration:8e3,autoPanel:this.qualityStore.getVipQnTrialAutoPanel,remainingTimes:this.countBasedTrialRemainingTimes,timeLength:1e3*this.qualityStore.getVipQnTrialTimelength}}))));if((null==e?void 0:e.className)===this.ppx+"-ctrl-quality-menu-feedback-desc"&&(this.trackStore.polarReport("vip-qn-list",Q.Rr.click,{play_qn:this.qualityStore.state.nowQuality,qn:i,auto_panel:this.qualityStore.getVipQnTrialAutoPanel}),this.userStore.requestSuperVipTrialQuality({qn:i,appId:194,appSubId:this.uiStore.kind===Q.HR.Pgc?"ogvqnpay_ty":"ugcqnpay_ty",sourceFrom:`${this.configStore.spmId.split(".").slice(0,2).join(".")}.vip-qn-list.click`})),this.qualityStore.isSwitching)this.templateNodes.container.classList.remove(this.showToken);else if(this.trackStore.polarReport("quality-list.0",Q.Rr.click,{qn:i,play_qn:this.qualityStore.state.nowQuality,auto_panel:this.qualityStore.getVipQnTrialAutoPanel,vip_vision:"0"}),"LI"===e.tagName.toUpperCase()){if(this.qualityStore.isTimeBasedTrialEnabled&&this.isInTimeBasedTrialFrame&&this.portStore.getCurrentTime()>this.qualityStore.isTimeBasedTrialProgressEnd-15&&o.nJ.isSuperQuality(i)&&i!==o.nJ.alias.UHD_DVision)return void this.toastStore.create({text:"即将超出可试看时段，切换失败",duration:3e3});this.templateNodes.container.classList.remove(this.showToken),this.track.e("quality_click",{value:i}),this.changeQuality(i)}}changeQuality(t,e="ctrlbar"){var i,n,r;const{nowQuality:a,isTrialQuality:s}=this.qualityStore.state,l=this.qualityStore.loginKeepAuto,A=this.qualityStore.realQ,c=this.qualityStore.state.oldRealQ,h=this.configStore.isChannel(Q.u5.Manager);if(this.configStore.embeddedEnv>Q.vt.Embedded&&this.qualityStore.maxEmbeddedQn&&t>this.qualityStore.maxEmbeddedQn){const t=this.portStore.getRedirectTime();return(0,D.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),this.portStore.pause(),Promise.resolve(null)}if(this.noLogin(t)&&!h)return!o.nJ.isSuperQuality(t)&&s?this.qualityStore.requestQuality(t).then((()=>{this.track.e("ctlbar_quality_result",{success:1,targetQn:t,currentQn:a,currentRealQ:A,trial:1})})).catch((()=>{this.track.e("ctlbar_quality_result",{success:0,targetQn:t,currentQn:a,currentRealQ:A,trial:1}),this.nowQualityChangeHandler(A)})):(this.qualityStore.setState({isLoginSwitch:!0}),this.userStore.requestQuickLoginPromise().then((()=>{return e=this,i=null,n=function*(){t!==o.nJ.alias.AI_100&&!this.noLogin(t)&&this.changeQuality(t)},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n})).catch((()=>{this.qualityStore.setState({isLoginSwitch:!1})}))),Promise.resolve(null);const d=(this.mpdStore.body.supportFormats||[]).find((e=>e.quality===t));if(t===o.nJ.alias.FHD_80&&d&&!d.has_preview&&this.mpdStore.body.isPreview&&this.uiStore.kind===Q.HR.Pgc)return this.userStore.requestSuperGuide({quality:t+"",qn:t}),Promise.resolve(null);if(this.svipAuthentication(t)&&!h&&(this.track.e("main_1080p"),t===o.nJ.alias.UHD_DVision&&this.track.e("dolby_horizon",{is_vip:this.userStore.isSuperUser?1:0}),t===o.nJ.alias.UHD_8K&&this.track.e("8k_horizon"),this.showSvipDialog(t,d))){let e;return e=t===o.nJ.alias.UHD_DVision?{subtitle:"即可解锁杜比音效",appId:9,appSubId:"126",quality:t+""}:t===o.nJ.alias.AI_100?{appId:170,appSubId:"qnPay",sourceFrom:"666.25.qn-pay-button.click",quality:t+""}:{quality:t+"",qn:t},this.userStore.requestSuperGuide(e),Promise.resolve(null)}const u=l?o.nJ.alias.Auto:t,p=l?c:A;this.track.e(`${e}_quality`,{targetQn:u,currentQn:a,currentRealQ:p,loginKeepAuto:l,originTargetQn:t});let g=null;const f=(0,Q.rs)(null==(i=this.mpdStore.body)?void 0:i.mediaDataSource),m=f.hasDolbyAudio&&f.hasDolbyAudioSrc&&this.portStore.canPlayType("EC3DolbyATMOS");return t===o.nJ.alias.UHD_DVision&&m&&(g=Q.IL.Dolby),this.canStartSuperQualityTrial(t)&&this.qualityStore.isTimeBasedTrialEnabled&&!(null==(r=null==(n=this.toastStore.getFirstSponsorToast())?void 0:n.toast)?void 0:r.end_toast)&&this.qualityStore.setState({banQnTimePeriodToast:!0}),this.qualityStore.requestQuality(t,g).then((()=>{var i;const n=this.qualityStore.loginKeepAuto?0:t;this.track.e(`${e}_quality_result`,{success:1,targetQn:n,currentQn:a,currentRealQ:p,loginKeepAuto:l,originTargetQn:t}),"ctrlbar"===e&&(null==(i=Q.JS.shared)||i.setUserManualSwitchOutInfo({displayid:this.configStore.session,currentQn:a,currentRealQ:A,targetQn:n})),this.qualityStore.setState({isLoginSwitch:!1}),t!==o.nJ.alias.AI_100||this.userStore.isSuperUser||this.qualityStore.aiSwitchStatus!==T.NZ.Unused||this.qualityStore.setState({aiSwitchStatus:T.NZ.Using}),this.canStartSuperQualityTrial(t)&&this.qualityStore.isTimeBasedTrialEnabled&&this.trackStore.polarReport("vip-qn-trysee-start",Q.Rr.show,{qn:this.qualityStore.state.nowQuality,autoPanel:this.qualityStore.getVipQnTrialAutoPanel}),this.nowQualityChangeHandler(this.qualityStore.state.nowQuality)})).catch((()=>{this.track.e(`${e}_quality_result`,{success:0,targetQn:t,currentQn:a,currentRealQ:A}),isNaN(this.qualityStore.state.nowQuality)||this.nowQualityChangeHandler(this.qualityStore.state.nowQuality)}))}onMouseEnterHandler(){this.clearTimer(),this.showTimer=window.setTimeout((()=>{this.templateNodes.container.classList.add(this.showToken)}),this.configStore.onlyTouchMode?0:300);this.nodes.bubble.style.display="none",this.hasCountBasedTrialPermission()&&this.qualityStore.isCountBasedTrialAvailable&&this.trackStore.polarReport("vip-qn-list",Q.Rr.show,{qn:this.qualityStore.state.nowQuality,auto_panel:this.qualityStore.getVipQnTrialAutoPanel})}onMouseLeaveHandler(){
this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),this.configStore.onlyTouchMode?0:350)}addEventListener(){this.templateNodes.menu.addEventListener("click",this.onClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.addEventListener("mouseleave",this.onMouseLeaveHandler),this.rootPlayer.on(Q.tw.Player_Quality_Rendered,this.onQualityRender)}onQualityRender(t){"video"===t.detail.mediaType&&(isNaN(this.qualityStore.state.oldRealQ)||(this.canStartSuperQualityTrial(t.detail.newQ)&&this.qualityStore.setState({vipQnTrialStatus:T.UK.using}),this.trackStore.polarReport("player.switch-clarity",Q.Rr.click,{before_qn:this.qualityStore.state.oldRealQ,target_qn:this.qualityStore.realQ||this.qualityStore.quality,is_auto_qn:this.qualityStore.isAutoQ?1:0,is_trial:this.qualityStore.state.vipQnTrialStatus===T.UK.using?1:0})),t.detail.isAutomatic?this.nowQualityChangeHandler(0):(this.nowQualityChangeHandler(t.detail.newQ),this.qualityStore.state.isTrialQuality&&this.updateMenu(this.acceptQuality)))}envokeUpdateBadge(){var t,e;const i=null==(t=this.templateNodes.menu)?void 0:t.querySelectorAll(`.${this.ppx}-ctrl-quality-menu-item`),n=null==(e=this.templateNodes.menu)?void 0:e.querySelectorAll(`.${this.ppx}-ctrl-quality-menu-item-vip-trial`),r=Array.from(i).concat(Array.from(n));r&&r.length&&r.forEach((t=>{const e=t.querySelector(`.${this.ppx}-ctrl-quality-badge`);e&&t.removeChild(e),t.innerHTML+=this.updateBadge(+t.dataset.value)}))}getUnloginGreatestQuality(){let t=this.uiStore.kind===Q.HR.Ugc?o.nJ.gt.ugcLogin:o.nJ.gt.login;return t=this.configStore.embeddedEnv===Q.vt.White?o.nJ.gt.whiteEmbedded:t,t}removeEventListener(){this.templateNodes.menu.removeEventListener("click",this.onClickHandler),this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.removeEventListener("mouseleave",this.onMouseLeaveHandler),this.rootPlayer.off(Q.tw.Player_Quality_Rendered,this.onQualityRender)}isTrialStatusUnused(){return this.qualityStore.vipQnTrialStatus===T.UK.unUsed}isTrialStatusUsableOrUsing(){return this.qualityStore.vipQnTrialStatus===T.UK.unUsed||this.qualityStore.vipQnTrialStatus===T.UK.using}hasCountBasedTrialConditions(){return this.userStore.isLogin&&this.qualityStore.hasAnyTrialAvailable&&this.isTrialStatusUnused()}canStartSuperQualityTrial(t){return o.nJ.isSuperQuality(t)&&this.qualityStore.hasAnyTrialAvailable&&this.isTrialStatusUnused()}switchQnbySpeed(){const t=[...this.portStore.getSupportedQualityList()||this.acceptQuality||[]].sort(((t,e)=>e-t));for(const e of t)if(o.nJ.isSuperQuality(e)&&e!==o.nJ.alias.UHD_DVision){const t=this.qualityStore.videoDataRateByQn(e),i=this.qualityStore.videoSpeed;if(i>=9900)return e;if(1.25*t<i)return e}return 0}hasCountBasedTrialPermission(){return this.hasCountBasedTrialConditions()}hasTrialRule(){return this.qualityStore.isTimeBasedTrialEnabled?this.isTrialStatusUsableOrUsing()&&this.isInTimeBasedTrialFrame:this.qualityStore.hasAnyTrialAvailable&&this.isTrialStatusUsableOrUsing()}showAiCashier(){return!(!this.userStore.isLogin||!this.qualityStore.aiSwitchQualityTrialable||this.qualityStore.aiSwitchStatus===T.NZ.Used)}envokeVipToast(){this.vipTrialTid||(this.vipTrialTid=this.toastStore.create({text:"免费为你开启会员高清体验",duration:5e3})),window.clearTimeout(this.vipTrialTimer),window.clearTimeout(this.vipTrialToastTimer),this.vipTrialTimer=null,this.vipTrialToastTimer=null;const t=this.qualityStore.getVipQnTrialTimelength;this.vipTrialTimer=window.setTimeout((()=>{this.qualityStore.setState({vipQnTrialStatus:T.UK.used})}),1e3*t),this.vipTrialToastTimer=window.setTimeout((()=>{this.rootPlayer.emit(Q.tw.Player_Vip_Trial_Toast_Envoked,new CustomEvent(Q.tw.Player_Vip_Trial_Toast_Envoked,{detail:{startOrEnd:1,duration:8e3,remainingTimes:this.countBasedTrialRemainingTimes,endToast:this.vipQnEndToast,autoPanel:this.qualityStore.getVipQnTrialAutoPanel}}))}),t>8?1e3*(t-8):8e3)}shouldShowCindyQuality(t){var e,i,n;const r=null==(n=null==(i=null==(e=this.mpdStore)?void 0:e.body)?void 0:i.playConf)?void 0:n.isNewDescription,a=t===o.nJ.alias.UHD_4K||t===o.nJ.alias.UHD_8K;return r&&a&&!this.configStore.isPcApp}onDispose(){window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer),window.clearTimeout(this.vipTrialTimer),window.clearTimeout(this.vipTrialToastTimer),window.clearTimeout(this.resizeDebounceTimer),this.hasCountBasedTrialToastAuto=!1,this.countBasedTrialRemainingTimes=0,this.vipTrialTid=0,this.acceptQuality=null,this.vipQnEndToast=null,this.cid=null,this.isAutoUsed=!1,this.vipTrailPromptToastSent=!1,this.hasTriggeredFirst15sSwitch=!1,this.qualityListScroll&&(this.qualityListScroll.destroy(),this.qualityListScroll=null)}generateSpecialQualityIcon(t){var e;switch(t.quality){case o.nJ.alias.UHD_HDR:return`<span>&nbsp;·&nbsp; </span><span class="${this.cpx}-svg-icon ${this.ppx}-vip-vision-hdr10-icon">${E()}</span>`;case o.nJ.alias.UHD_DVision:return`<span>&nbsp;·&nbsp; </span><span class="${this.cpx}-svg-icon ${this.ppx}-vip-vision-dolby-icon">${C()}</span>`;case o.nJ.alias.SDR_122:{const i=(null==(e=t.formatTag)?void 0:e.hdrTag)===R.H$.AI_ENHANCED?"AI修复":"SDR增强";return`<span>&nbsp;·&nbsp; </span><span class="${this.cpx}-svg-icon ${this.ppx}-vip-vision-sdr-text">${i}</span>`}default:return""}}generateVipTrialFeedbackHtml(){return`\n            <li class="${this.ppx}-ctrl-quality-menu-feedback">\n                <div class="${this.ppx}-ctrl-quality-menu-feedback-title">\n                    <span class="${this.cpx}-top-info-icon">${h()}</span>\n                    <span>剩</span>\n                    <span class="${this.ppx}-ctrl-quality-menu-feedback-times">${this.countBasedTrialRemainingTimes}</span>\n                    次大会员清晰度免费体验\n                </div>\n                <div class="${this.ppx}-ctrl-quality-menu-feedback-desc">成为大会员畅享全部清晰度${u()}</div>\n                <span class="${this.cpx}-top-close-icon">${g()}</span>\n            </li>\n        `}generateSingleQualityItemHtml(t,e){return`\n            <li class="${this.ppx}-ctrl-quality-vip-vision-group-single-item" data-value="${t.quality}">\n                <div class="${this.ppx}-ctrl-quality-vip-vision-group-single-item-title ${e?this.activeToken:""}">\n                    <span class="${this.cpx}-svg-icon ${this.ppx}-ctrl-vip-vision-icon">\n                    ${b()} \n                        <span class ="${this.ppx}-vip-vision-qa">${w()}</span>\n                    </span>\n                    ${this.updateVipVisionBadge([t])}\n                </div>\n                <div class="${this.ppx}-ctrl-quality-vip-vision-group-single-item-subtitle">\n                    <span>${t.title}</span>\n                    ${this.generateSpecialQualityIcon(t)}\n                </div>\n            </li>\n        `}generateGroupTitleHtml(t,e){return`\n            <li class="${this.ppx}-ctrl-quality-vip-vision-group-item-title ${t?this.activeToken:""}" data-value="${e}">\n                <div class="${this.ppx}-ctrl-quality-vip-vision-group-item-title-content">\n                    <span class="${this.cpx}-svg-icon ${this.ppx}-ctrl-vip-vision-icon">${b()}\n                      <span class ="${this.ppx}-vip-vision-qa">${w()}</span>\n                    </span>\n                </div>\n                ${this.updateVipVisionBadge(this.qualityStore.filteredVipVisionPanel)}\n            </li>\n        `}generateQualityItemHtml(t,e){return`\n            <li class="${this.ppx}-ctrl-quality-vip-vision-group-item ${e?this.activeToken:""}" \n                data-value="${t.quality}">\n                <div class="${this.ppx}-ctrl-quality-vip-vision-group-item-text">\n                    <span>${t.title}</span>\n                    ${this.generateSpecialQualityIcon(t)}\n                </div>\n            </li>\n        `}generateAutoQualityItemHtml(){const t=this.qualityStore.flattenedFormatPanel.find((t=>t.quality===this.qualityStore.realQ));return`\n            <div class="${this.ppx}-ctrl-quality-vip-vision-menu-item-text">\n                自动(${(null==t?void 0:t.title)||""})\n            </div>\n        `}generateRegularQualityItemHtml(t){
const e=0===t.quality?"自动":t.title;return`\n            <div class="${this.ppx}-ctrl-quality-vip-vision-menu-item-text">${e}</div>\n        `}updateVipVisionMenu(){const{formatPanel:t,filteredVipVisionPanel:e,state:{nowQuality:i}}=this.qualityStore,n=e.some((t=>t.quality===i));let r=this.hasTrialRule()?this.generateVipTrialFeedbackHtml():"";if(null==e?void 0:e.length){let t="";if(1===e.length)t=this.generateSingleQualityItemHtml(e[0],n);else{const o=Math.max(...e.map((t=>t.quality)));r+=this.generateGroupTitleHtml(n,o),t="";for(let n=0;n<e.length;n++){const r=e[n],o=r.quality===i;t+=this.generateQualityItemHtml(r,o)}}r+=`<li class="${this.ppx}-ctrl-quality-vip-vision-group">\n                    <ul class="${this.ppx}-ctrl-quality-vip-vision-group-list">\n                        ${t}\n                    </ul>\n                </li>\n            `}t.items.some((t=>0===t.quality))||t.items.push({title:"自动",quality:0,format:"hdflv2"}),r+=t.items.map((t=>{const e=t.quality===i,n=0===t.quality&&0===i?this.generateAutoQualityItemHtml():this.generateRegularQualityItemHtml(t);return`\n                <li class="${this.ppx}-ctrl-quality-vip-vision-menu-item ${e?this.activeToken:""} \n                    ${this.hasTrialRule()?"vip-trial":""}" \n                    data-value="${t.quality}">\n                    ${n}\n                    ${this.updateVipVisionBadge(t)}\n                </li>\n            `})).join(""),this.templateNodes.menu.innerHTML=r}onDisconnect(){this.removeEventListener()}}N([s.ZP],P.prototype,"onClickHandler",1),N([s.ZP],P.prototype,"onMouseEnterHandler",1),N([s.ZP],P.prototype,"onMouseLeaveHandler",1),N([s.ZP],P.prototype,"onQualityRender",1)},75091:function(t,e,i){"use strict";i.d(e,{a:function(){return x}});var n=i(5489),r=i(46330),o=i(23529),a=i(36005),s=i(99550),l=i(89262),A=i(51839),c=i(57012),h=i(91),d=i.n(h),u=i(97203),p=i.n(u),g=i(20733),f=i.n(g),m=i(22451),y=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":60,"w":88,"h":88,"nm":"设置流畅","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"t":40,"s":[120]}],"ix":10},"p":{"a":0,"k":[44,43.875,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":10.668,"s":[88,88,100]},{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":22,"s":[88,88,100]},{"t":40,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[1.55,0],[1.48,0.24],[0,0],[1.69,0.98],[0,0],[-0.69,1.83],[0,0],[1.16,3.05],[0,0],[0,1.95],[0,0],[-1.93,0.32],[0,0],[-2.03,2.48],[0,0],[-1.69,0.98],[0,0],[-1.25,-1.51],[0,0],[-1.74,0],[-1.65,-0.31],[0,0],[-1.69,-0.98],[0,0],[0.68,-1.84],[0,0],[-1.09,-3.08],[0,0],[0,-1.95],[0,0],[1.93,-0.32],[0,0],[2.09,-2.44],[0,0],[1.69,-0.98],[0,0],[1.24,1.51]],"o":[[-1.48,0.24],[-1.55,0],[0,0],[-1.24,1.51],[0,0],[-1.69,-0.98],[0,0],[-2.09,-2.44],[0,0],[-1.93,-0.32],[0,0],[0,-1.95],[0,0],[1.09,-3.08],[0,0],[-0.68,-1.84],[0,0],[1.69,-0.98],[0,0],[1.65,-0.31],[1.74,0],[0,0],[1.25,-1.51],[0,0],[1.69,0.98],[0,0],[2.03,2.48],[0,0],[1.93,0.32],[0,0],[0,1.95],[0,0],[-1.16,3.05],[0,0],[0.69,1.83],[0,0],[-1.69,0.98],[0,0]],"v":[[4.54,27.511],[0,27.871],[-4.54,27.511],[-8.7,32.561],[-13.79,33.481],[-21.78,28.871],[-23.52,24.001],[-21.29,18.061],[-26.21,9.761],[-32.66,8.681],[-36,4.741],[-36,-4.489],[-32.66,-8.429],[-26.4,-9.479],[-21.66,-17.869],[-23.96,-23.999],[-22.21,-28.869],[-14.22,-33.479],[-9.13,-32.559],[-5.1,-27.659],[0,-28.129],[5.1,-27.659],[9.13,-32.559],[14.22,-33.479],[22.21,-28.869],[23.96,-23.999],[21.66,-17.869],[26.4,-9.479],[32.66,-8.429],[36,-4.489],[36,4.741],[32.66,8.681],[26.21,9.761],[21.29,18.061],[23.52,24.001],[21.78,28.871],[13.79,33.481],[8.7,32.561]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-8.84,0],[0,8.84],[8.84,0],[0,-8.84]],"o":[[8.84,0],[0,-8.84],[-8.84,0],[0,8.84]],"v":[[0,16.125],[16,0.125],[0,-15.875],[-16,0.125]],"c":true},"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[4.42,0],[0,4.42],[-4.42,0],[0,-4.42]],"o":[[-4.42,0],[0,-4.42],[4.42,0],[0,4.42]],"v":[[0,8.125],[-8,0.125],[0,-7.875],[8,0.125]],"c":true},"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),b=i(82517),v=i(67320),E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,C=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?I(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&E(e,i,o),o};const B=[{desc:"优先使用播放器内置策略播放",position:n.DU.TopLeft,offsetX:1},{desc:"优先使用 AV1 编码视频播放",position:n.DU.TopCenter,offsetX:0},{desc:"优先使用 HEVC/H.265 编码视频播放",position:n.DU.TopCenter,offsetX:0},{desc:"优先使用 AVC/H.264 编码视频播放",position:n.DU.TopRight,offsetX:-1}],w=[{desc:"自动平衡不同视频间的音量大小",position:n.DU.TopLeft,offsetX:1},{desc:"平衡音量同时保留更多声音细节",position:n.DU.TopCenter,offsetX:0},{desc:"关闭音量均衡",position:n.DU.TopRight,offsetX:-1}];class x extends n.vq{constructor(){super(...arguments),this.templates=this.settingTemplate(),this.showToken=`${this.spx}-show`,this.rightToken=`${this.spx}-right`}install(){super.install(),this.templates.container.parentElement||(this.nodes.controlBottomRight.appendChild(this.templates.container),this.configStore.embeddedEnv?this.templates.container.querySelector(`.${this.cpx}-svg-icon`).innerHTML=d():this.createAnimation(),this.addEventsListener()),this.dc.interaction=(0,m.U5)((()=>this.interactStore.state.graphVersion),(t=>{t?(this.settingStore.setMirror(!1),this.settingStore.setLoop(!1),this.settingStore.setAspectRatio("0:0"),this.templates.mirror.disabled=!0,this.templates.loop.disabled=!0,this.templates.aspect.disabled=!0):(this.templates.mirror.disabled=!1,this.templates.loop.disabled=!1,this.templates.aspect.disabled=!1)}),{fireImmediately:!0}),this.dc.panorama=(0,m.U5)((()=>!this.panoramaStore.state.disabled),(t=>{var e;const i=this.templates.others.querySelector(`.${this.ppx}-ctrl-setting-panoram`);t?(this.templates.panorama=new c.XZ(i,{name:"全景模式",value:this.panoramaStore.state.opened,dark:!0}).on("change",(t=>{this.panoramaStore.setState({opened:t.value}),this.track.e("panoramic_broadcast",+t.value)})),(0,r.o)(i)):(null==(e=this.templates.panorama)||e.destroy(),(0,o.N)(i))}),{fireImmediately:!0}),this.configStore.embeddedEnv&&(this.dc.isShowCtrlButtons=(0,m.U5)((()=>this.uiStore.isShowCtrlButtons),(t=>{t?(0,r.o)(this.templates.container):(0,o.N)(this.templates.container)}),{fireImmediately:!0})),this.dc.highenergy=(0,m.U5)((()=>this.uiStore.kind!==n.HR.Pugv&&!this.configStore.embeddedEnv&&this.progressStore.state.pbp),(t=>{var e;const i=this.templates.others.querySelector(`.${this.ppx}-ctrl-setting-highenergy`);t?(this.templates.highenergy=new c.XZ(i,{name:"高能进度条",value:this.progressStore.state.pbpstate,dark:!0}).on("change",(t=>{this.progressStore.setState({pbpstate:t.value}),this.track.e("highenergy_progress",+t.value)})),(0,r.o)(i)):(null==(e=this.templates.highenergy)||e.destroy(),(0,o.N)(i))}),{fireImmediately:!0}),this.dc.loudness=(0,m.U5)((()=>this.mpdStore.body&&this.mpdStore.body.loudnessParams),(t=>{const e=this.templates.container.querySelector(`.${this.ppx}-ctrl-setting-loudness`),i=this.wmpStore.isBwpElement(this.mediaStore.video),n=this.configStore.enableLoudness(),s=!i&&(0,a.b)()&&n;t&&s?(this.track.e("loudness_normalization_archive",{
aid:this.configStore.aid,cid:this.configStore.cid}),(0,r.o)(e)):(0,o.N)(e)}),{fireImmediately:!0}),this.dc.oped=(0,m.U5)((()=>this.uiStore.kind!==n.HR.Ugc&&!!(this.mpdStore.body&&this.mpdStore.body.clipInfoList&&this.mpdStore.body.clipInfoList.length)),(t=>{var e;const i=this.templates.container.querySelector(`.${this.ppx}-ctrl-setting-oped`);if(this.templates.menu.optionsUpdate(this.getMenuStyle(t)),t){if(this.templates.oped)return;this.templates.oped=new c.rs(i,{content:"",name:"跳过头尾",value:this.settingStore.state.opEd}).on("change",(t=>{this.settingStore.setState({opEd:t.value}),this.track.e(t.value?"op_ed_on":"op_ed_off")})),(0,r.o)(i)}else null==(e=this.templates.oped)||e.destroy(),this.templates.oped=null,(0,o.N)(i)}),{fireImmediately:!0}),this.dc.mainScreen=(0,m.U5)((()=>this.uiStore.state.mainScreen),(t=>{if(t===n.dY.Wide)this.localStore.set({iswide:!0});else this.localStore.set({iswide:!1})})),this.dc.widesave=(0,m.U5)((()=>!this.premiereStore.state.status&&this.userStore.info),(t=>{t&&this.widesaveHandler(t)}),{fireImmediately:!0}),this.dc.handoff=(0,m.U5)((()=>this.settingStore.state.handoff),(t=>{+this.templates.handoff.value()!==t&&this.templates.handoff.value(t)})),this.dc.loop=(0,m.U5)((()=>this.premiereStore.state.status),(t=>{this.templates.loop.disabled=!!t}),{fireImmediately:!0}),this.dc.singleEpisodeLoop=(0,m.U5)((()=>this.settingStore.state.loop),(t=>{this.templates.loop&&this.templates.loop.value(t)})),this.dc.listLoop=(0,m.U5)((()=>this.settingStore.state.listLoop),(t=>{this.templates.listLoop&&this.templates.listLoop.value(t)}))}settingTemplate(){const t=!!(this.uiStore.kind===n.HR.Pgc&&this.mpdStore.body&&this.mpdStore.body.clipInfoList&&this.mpdStore.body.clipInfoList.length),e=(0,s.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-setting" role="button" aria-label="设置" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon"></span></div>\n                <div class="${this.ppx}-ctrl-setting-box">\n                    <div class="${this.ppx}-ctrl-setting-menu">\n                        <div class="${this.ppx}-ctrl-setting-menu-left">\n                            <div class="${this.ppx}-ctrl-setting-mirror"></div>\n                            <div class="${this.ppx}-ctrl-setting-loop"></div>\n                            ${this.configStore.isPcApp?`<div class="${this.ppx}-ctrl-setting-list-loop"></div>`:`<div class="${this.ppx}-ctrl-setting-autoplay"></div>`}\n                            <div class="${this.ppx}-ctrl-setting-oped"></div>\n                            <div class="${this.ppx}-ctrl-setting-more">\n                                <span class="${this.ppx}-ctrl-setting-more-text">更多播放设置</span>\n                                <span class="${this.cpx}-svg-icon">${p()}</span>\n                            </div>\n                        </div>\n                        <div class="${this.ppx}-ctrl-setting-menu-right">\n                            <div class="${this.ppx}-ctrl-setting-handoff">\n                                <div class="${this.ppx}-ctrl-setting-handoff-title">播放方式</div>\n                                <div class="${this.ppx}-ctrl-setting-handoff-content"></div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-setting-aspect">\n                                <div class="${this.ppx}-ctrl-setting-aspect-title">视频比例</div>\n                                <div class="${this.ppx}-ctrl-setting-aspect-content"></div>\n                            </div>\n                            ${this.portStore.canPlayType("HEVC")||this.portStore.canPlayType("AV1")||(0,b.isBwpSupported)()?`\n                                <div class="${this.ppx}-ctrl-setting-codec">\n                                    <div class="${this.ppx}-ctrl-setting-codec-title">播放策略</div>\n                                    <div class="${this.ppx}-ctrl-setting-codec-content"></div>\n                                </div>\n                                `:""}\n                            <div class="${this.ppx}-ctrl-setting-loudness">\n                                <div class="${this.ppx}-ctrl-setting-loudness-title">音量均衡</div>\n                                <div class="${this.ppx}-ctrl-setting-loudness-content"></div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-setting-others">\n                                <div class="${this.ppx}-ctrl-setting-others-title">其他设置</div>\n                                <div class="${this.ppx}-ctrl-setting-others-content">\n                                    <div class="${this.ppx}-ctrl-setting-checkbox ${this.ppx}-ctrl-setting-blackgap"></div>\n                                    <div class="${this.ppx}-ctrl-setting-checkbox ${this.ppx}-ctrl-setting-lightoff"></div>\n                                    <div class="${this.ppx}-ctrl-setting-checkbox ${this.ppx}-ctrl-setting-widesave"></div>\n                                    <div class="${this.ppx}-ctrl-setting-checkbox ${this.ppx}-ctrl-setting-panoram"></div>\n                                    <div class="${this.ppx}-ctrl-setting-checkbox ${this.ppx}-ctrl-setting-highenergy"></div>\n\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        `),i=e.querySelector(`.${this.ppx}-ctrl-setting-more`),r=e.querySelector(`.${this.ppx}-ctrl-setting-codec-content`),a=e.querySelector(`.${this.ppx}-ctrl-setting-loudness-content`),l=e.querySelector(`.${this.ppx}-ctrl-setting-others-content`),A=t?32:0,h=new c.s_(e.querySelector(`.${this.ppx}-ctrl-setting-menu`),{dark:!0,value:0,body:[{element:e.querySelector(`.${this.ppx}-ctrl-setting-menu-left`),width:132,height:this.configStore.embeddedEnv?108:140+A},{element:e.querySelector(`.${this.ppx}-ctrl-setting-menu-right`),width:286,height:void 0}]}),d=new c.rs(e.querySelector(`.${this.ppx}-ctrl-setting-mirror`),{value:this.settingStore.state.mirror,content:"",name:"镜像画面"}).on("change",(t=>{this.settingStore.setMirror(t.value),this.track.e("videomirror_setting",+t.value)})),u=new c.rs(e.querySelector(`.${this.ppx}-ctrl-setting-loop`),{value:this.settingStore.state.loop,content:"",name:"单集循环"}).on("change",(t=>{this.settingStore.setState({loop:t.value}),this.track.e("repeat",+t.value)}));let g=null;this.configStore.isPcApp?g=new c.rs(e.querySelector(`.${this.ppx}-ctrl-setting-list-loop`),{value:this.settingStore.state.listLoop,content:"",name:"列表循环"}).on("change",(t=>{this.settingStore.setState({listLoop:t.value}),this.track.e(t.value?"list_loop_on":"list_loop_off")})):new c.rs(e.querySelector(`.${this.ppx}-ctrl-setting-autoplay`),{value:this.settingStore.state.autoplay,content:"",name:"自动开播"}).on("change",(t=>{this.settingStore.setState({autoplay:t.value}),this.track.e(t.value?"autoplay_on":"autoplay_off")}));const f=new c.Y8(e.querySelector(`.${this.ppx}-ctrl-setting-handoff-content`),{value:this.settingStore.state.handoff,dark:!0,style:"button",labels:[{name:"自动切集",value:n.ty.Auto},{name:"播完暂停",value:n.ty.Abort}]}).on("change",(t=>{this.settingStore.setState({handoff:+t.value}),t.manual&&this.track.e("auto_part",t.value)})),m=new c.Y8(e.querySelector(`.${this.ppx}-ctrl-setting-aspect-content`),{value:this.settingStore.state.aspectRatio,dark:!0,style:"button",labels:[{name:"自动",value:"0:0"},{name:"4:3",value:"4:3"},{name:"16:9 ",value:"16:9"}]}).on("change",(t=>{this.settingStore.setState({aspectRatio:t.value}),this.track.e("video_scale_choose",t.value)}));if(r){this.track.e("codec_prefer_type_init",this.settingStore.state.codecType),new c.Y8(r,{value:this.settingStore.state.codecType,dark:!0,style:"button",labels:[{name:"默认",value:n._k.DEF},{name:"AV1",value:n._k.AV1},{name:"HEVC",value:n._k.HEVC},{name:"AVC",value:n._k.AVC}]}).on("change",(t=>{this.settingStore.setState({codecType:+t.value}),this.track.e("codec_prefer_type",t.value)}));const t=r.querySelectorAll(".bui-radio-item");t&&t.length&&t.forEach(((t,e)=>{this.tooltipStore.create({name:`ctrl:codec:${e}`,target:t,title:B[e].desc,position:B[e].position,
offsetX:B[e].offsetX,tip:!0})}))}if(a){new c.Y8(a,{value:this.settingStore.state.loudness,dark:!0,style:"button",labels:[{name:"标准",value:v.iW.STANDARD},{name:"高动态",value:v.iW.DYNAMIC},{name:"关闭",value:v.iW.OFF}]}).on("change",(t=>{this.settingStore.setState({loudness:+t.value}),this.track.e("loudness_prefer_type",{option:+t.value})}));const t=a.querySelectorAll(".bui-radio-item");t&&t.length&&t.forEach(((t,e)=>{this.tooltipStore.create({name:`ctrl:loundness:${e}`,target:t,title:w[e].desc,position:w[e].position,offsetX:w[e].offsetX,tip:!0})}))}const y=l.querySelector(`.${this.ppx}-ctrl-setting-blackgap`);this.rootPlayer.hasFeature("blackGap")?new c.XZ(y,{name:"隐藏黑边",value:this.settingStore.state.hideBlackGap,dark:!0}).on("change",(t=>{this.settingStore.setState({hideBlackGap:t.value}),this.track.e("hidden_blackedge",+t.value)})):(0,o.N)(y);const E=l.querySelector(`.${this.ppx}-ctrl-setting-lightoff`);return this.rootPlayer.isEmbed||this.configStore.isPcApp||this.rootPlayer.hasFeature("noLightOff")?(0,o.N)(E):new c.XZ(E,{name:"关灯模式",value:this.settingStore.state.lightOff,dark:!0}).on("change",(t=>{this.settingStore.setState({lightOff:t.value}),this.track.e("light_close",+t.value)})),{container:e,loudness:a,more:i,others:l,menu:h,mirror:d,loop:u,aspect:m,handoff:f,listLoop:g}}getMenuStyle(t){const e=t?32:0;return{body:[{width:132,height:this.configStore.embeddedEnv?108:140+e},{width:286,height:void 0}]}}createAnimation(){this.settingAnimation=f().loadAnimation({name:"setting",container:this.templates.container.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:y})}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("button_setting"),this.templates.menu.value(0),this.templates.container.classList.remove(this.showToken,this.rightToken)))}onMouseEnterHandler(){var t;this.configStore.embeddedEnv||null==(t=this.settingAnimation)||t.play(),this.clearTimer(),this.showTimer=window.setTimeout((()=>{this.templates.container.classList.add(this.showToken)}),this.configStore.onlyTouchMode?0:300)}onMouseLeaveHandler(){this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),this.configStore.onlyTouchMode?0:350)}onSettingCompleteHandler(){this.settingAnimation.stop()}onClickHandler(){this.templates.container.classList.add(this.rightToken),this.templates.menu.value(1),this.track.e("more_settings")}addEventsListener(){var t;this.templates.more.addEventListener("click",this.onClickHandler),this.templates.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.templates.container.addEventListener("mouseleave",this.onMouseLeaveHandler),null==(t=this.settingAnimation)||t.addEventListener("complete",this.onSettingCompleteHandler)}removeEventsListener(){this.templates.more.removeEventListener("click",this.onClickHandler),this.templates.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templates.container.removeEventListener("mouseleave",this.onMouseLeaveHandler),this.settingAnimation&&this.settingAnimation.removeEventListener("complete",this.onSettingCompleteHandler)}onDispose(){super.onDispose(),this.templates.mirror.value(!1),this.templates.aspect.value("0:0")}onDisconnect(){this.removeEventsListener()}widesaveHandler(t){var e;const i=this.templates.others.querySelector(`.${this.ppx}-ctrl-setting-widesave`);t.memberRole===A.Rs.USER_VIP||t.memberRole===A.Rs.USER_ADVANCED?(this.templates.widesave=new c.XZ(i,{name:"记忆宽屏",value:!!this.localStore.get().widesave,dark:!0}).on("change",(t=>{this.localStore.set({widesave:t.value}),this.track.e(t.value?"memory_widescreen_on":"memory_widescreen_off")})),this.localStore.get().iswide&&this.localStore.get().widesave&&this.portStore.reqStatue(n.dY.Wide)):(null==(e=this.templates.widesave)||e.destroy(),(0,o.N)(i))}}C([l.ZP],x.prototype,"onMouseEnterHandler",1),C([l.ZP],x.prototype,"onMouseLeaveHandler",1),C([l.ZP],x.prototype,"onSettingCompleteHandler",1),C([l.ZP],x.prototype,"onClickHandler",1)},11508:function(t,e,i){"use strict";i.d(e,{e:function(){return D}});var n=i(5489),r=i(46330),o=i(23529),a=i(99550),s=i(89262),l=i(57012),A=i(27059),c=i.n(A),h=i(75348),d=i.n(h),u=i(97203),p=i.n(u),g=i(72083),f=i.n(g),m=i(22819),y=i.n(m),b=i(14779),v=i.n(b),E=i(22451),I=i(48760),C=i(68918),B=i(24490),w=i(68042),x=Object.defineProperty,Q=Object.getOwnPropertyDescriptor,S=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?Q(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&x(e,i,o),o},k=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class D extends n.vq{constructor(t){super(t),this.htmlTextMap={0:{height:220,htmlText:'\n                <p>B站自研的AI原声翻译功能通过大模型翻译、音色克隆、中文字幕改写、口型匹配等AI能力，将中文原生视频转化为"外语原生视频"：</p>\n                <ul>\n                    <li>• 将中文内容翻译为外语</li>\n                    <li>• 保留原视频内说话人的音色、语调和话语节奏</li>\n                    <li>• 在可能的情况下，会同步将原视频内的中文字幕擦除并匹配对应外语字幕、将讲中文的嘴型匹配为外语嘴型</li>\n                </ul>\n            '},1:{height:320,htmlText:`\n                <p>本视频存在多语言配音版本：</p>\n                    <p>若无AI标记，则该音轨由<span class="${this.ppx}-ctrl-description-content-highlight">UP主自行上传</span></p>\n                    <p>若存在AI标记，则为<span class="${this.ppx}-ctrl-description-content-highlight">AI原声翻译</span>（平台自动生成翻译）：</p>\n                <p>B站自研的AI原声翻译功能通过大模型翻译、音色克隆、中文字幕改写、口型匹配等AI能力，将中文原生视频转化为"外语原生视频"：</p>\n                <ul>\n                    <li>• 将中文内容翻译为外语</li>\n                    <li>• 保留原视频内说话人的音色、语调和话语节奏</li>\n                    <li>• 在可能的情况下，会同步将原视频内的中文字幕擦除并匹配对应外语字幕、将讲中文的嘴型匹配为外语嘴型</li>\n                </ul>\n            `}},this.templateNodes=this.subtitleTemplate(),this.showToken=`${this.spx}-show`,this.activeToken=`${this.spx}-active`,this.justBackFromDescription=!1,this.subtitleLanguageMap={},this.translationLanguageMap={},this.hasMouthChange=!1,this.hasSubtitleDetext=!1,this.majorIndex=0,this.minorIndex=0,this.translationIndex=0,this.toastId=null,this.subtitleStyleMap={0:{w:144,h:0,sH:80},1:{w:144,h:60,sH:83},2:{w:144,h:40,sH:136},3:{w:144,h:135,sH:176},4:{w:260,h:99,sH:212},5:{w:144,h:40,sH:136}},this.translationStyleMap={0:{w:144,h:60,sH:49},1:{w:144,h:175,sH:136}},this.toastTextMap={[n.$v.DEFAULT]:{switch:"",success:"",failure:"",closed:""},[n.$v.MULTI_LANGUAGE]:{switch:"正在切换音轨",success:"已成功切换至UP主上传音轨",failure:"UP主上传音轨切换失败",closed:"多语言配音已关闭"},[n.$v.AI_VOICE]:{switch:"AI原声翻译开启中",success:"AI原声翻译切换成功",failure:"AI原声翻译切换失败",closed:"AI原声翻译已关闭"}},(0,E.rC)(this)}get panelStatus(){const t=this.subtitleStore.state.enable,e=this.translationStore.state.enable;return t&&e?3:t?1:e?2:0}get bilingualStatus(){const{languageList:t,bilingual:e}=this.subtitleStore.state;return this.userStore.isLogin||this.uiStore.kind!==n.HR.Ugc?t?t.length>1?e?4:3:2:0:1}get translationStatus(){const{langList:t}=this.translationStore.state;return this.userStore.isLogin?t&&t.length>=1?1:null:0}get translationTypeInfo(){var t,e;const i=(null==(e=null==(t=this.translationStore)?void 0:t.state)?void 0:e.langList)||[],r=i.some((t=>t.type===n.$v.MULTI_LANGUAGE));return{hasUserUploadedAudio:r,hasAITranslation:i.some((t=>t.type===n.$v.AI_VOICE)),descriptionType:r?1:0}}initSubtitleComponent(){var t;this.createUI(),this.addReactions();const e=this.nodes.controlBottomRight.querySelector(`.${this.ppx}-ctrl-playbackrate`),i=this.nodes.controlBottomRight.querySelector(`.${this.ppx}-ctrl-quality`);null==(t=e||i)||t.insertAdjacentElement("afterend",this.templateNodes.container),this.addEventListener(),this.track.e("ctrl_subtitle_show")}install(){super.install(),this.dc.enable=(0,E.U5)((()=>({subtitleEnable:this.subtitleStore.state.enable,translationEnable:this.translationStore.state.enable,isLogin:this.userStore.isLogin,languageList:this.subtitleStore.state.languageList})),(({subtitleEnable:t,translationEnable:e,isLogin:i,languageList:a})=>{this.destroyComponent(),i||this.uiStore.kind!==n.HR.Ugc||this.subtitleStore.setState({isclosed:!0}),
(t||e)&&(t&&this.trackExtra.p("player.player.subtitle-button.show.player",n.p0.Appear,{avid:this.configStore.aid,cid:this.configStore.cid}),this.templateNodes.container.parentElement||this.initSubtitleComponent(),this.configStore.embeddedEnv&&(this.dc.isShowCtrlButtons=(0,E.U5)((()=>this.uiStore.isShowCtrlButtons),(t=>{t?(0,r.o)(this.templateNodes.container):(0,o.N)(this.templateNodes.container)}),{fireImmediately:!0})))}),{fireImmediately:!0})}subtitleTemplate(){const t=(0,
a.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-subtitle" aria-label="字幕" tabindex="0">\n            <div class="${this.ppx}-ctrl-subtitle-result-wrap">\n                <div class="${this.ppx}-ctrl-subtitle-result">字幕</div>\n                <span class="${this.cpx}-svg-icon" style="display:none">${c()}</span>\n            </div>\n                <div class="${this.ppx}-ctrl-subtitle-box">\n                    <div class="${this.ppx}-ctrl-subtitle-menu">\n                        <div class="${this.ppx}-ctrl-subtitle-menu-left">\n                            <div class="${this.ppx}-ctrl-subtitle-menu-translation">\n                                <div class="${this.ppx}-ctrl-translation-title-area">\n                                    <div class="${this.ppx}-ctrl-translation-add-wrap ${this.ppx}-ctrl-subtitle-item-flex">\n                                        <div class="${this.ppx}-ctrl-translation-title">\n                                            <div class="${this.ppx}-ctrl-translation-title-text">''</div>\n                                            <span class="${this.cpx}-svg-icon">${d()}</span>\n                                        </div>\n                                    </div>\n                                    <div class="${this.ppx}-ctrl-translation-close-switch" data-action="close">关闭</div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-translation-language">\n                                    <div class="${this.ppx}-ctrl-translation-content">\n                                        <div class="${this.ppx}-ctrl-translation-inner"></div>\n                                    </div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-translation-separator"></div>\n                                <div class="${this.ppx}-ctrl-translation-unlogin" style="display: none">\n                                    <div class="${this.ppx}-ctrl-translation-unlogin-content">登录可享</div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-translation-feedback">\n                                    <div class="${this.ppx}-ctrl-translation-feedback-text">原声翻译体验反馈</div>\n                                    <span class="${this.cpx}-svg-icon">${p()}</span>\n                                </div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-subtitle-menu-origin">\n                                <div class="${this.ppx}-ctrl-subtitle-title-area">\n                                    <div class="${this.ppx}-ctrl-subtitle-add-wrap ${this.ppx}-ctrl-subtitle-item-flex">\n                                        <div class="${this.ppx}-ctrl-subtitle-title">字幕</div>\n                                        <div class="${this.ppx}-ctrl-subtitle-add">添加字幕</div>\n                                    </div>\n                                    <div class="${this.ppx}-ctrl-subtitle-close-switch" data-action="close">关闭</div>\n                                    <div class="${this.ppx}-ctrl-subtitle-fake-switch" style="display: none">\n                                         <div class="${this.ppx}-ctrl-subtitle-fake-switch-text">关闭</div>\n                                         <span class="${this.cpx}-svg-icon">${f()}</span>\n                                    </div>\n                                <div class="${this.ppx}-ctrl-subtitle-separator-above"></div>\n                                <div class="${this.ppx}-ctrl-subtitle-language-unlogin" style="display: none">\n                                    <div class="${this.ppx}-ctrl-subtitle-language-unlogin-content">登录可享</div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-subtitle-bilingual-above">字幕</div>\n                                <div class="${this.ppx}-ctrl-subtitle-language">\n                                    <div class="${this.ppx}-ctrl-subtitle-nolan">暂无字幕</div>\n                                    <div class="${this.ppx}-ctrl-subtitle-major">\n                                        <div class="${this.ppx}-ctrl-subtitle-major-title">主字幕</div>\n                                        <div class="${this.ppx}-ctrl-subtitle-major-content">\n                                            <div class="${this.ppx}-ctrl-subtitle-major-inner"></div>\n                                        </div>\n                                    </div>\n                                    <div class="${this.ppx}-ctrl-subtitle-minor">\n                                        <div class="${this.ppx}-ctrl-subtitle-minor-title">副字幕</div>\n                                        <div class="${this.ppx}-ctrl-subtitle-minor-content">\n                                            <div class="${this.ppx}-ctrl-subtitle-minor-inner"></div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-subtitle-separator-bottom"></div>\n                                <div class="${this.ppx}-ctrl-subtitle-bilingual-bottom">字幕</div>\n                                <div class="${this.ppx}-ctrl-subtitle-setting">\n                                    <span class="${this.ppx}-ctrl-subtitle-setting-text">字幕设置</span>\n                                    <span class="${this.cpx}-svg-icon">${p()}</span>\n                                </div>\n                            </div>    \n                        </div>\n                        <div class="${this.ppx}-ctrl-subtitle-menu-right">\n                            <div class="${this.ppx}-ctrl-subtitle-item ${this.ppx}-ctrl-subtitle-item-flex">\n                                <div class="${this.ppx}-ctrl-subtitle-fontsize">\n                                    <div class="${this.ppx}-ctrl-subtitle-fontsize-title">字幕大小</div>\n                                    <div class="${this.ppx}-ctrl-subtitle-fontsize-content"></div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-subtitle-color">\n                                    <div class="${this.ppx}-ctrl-subtitle-color-title">字幕颜色</div>\n                                    <div class="${this.ppx}-ctrl-subtitle-color-content"></div>\n                                </div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-subtitle-item ${this.ppx}-ctrl-subtitle-item-flex">\n                                <div class="${this.ppx}-ctrl-subtitle-shadow">\n                                    <div class="${this.ppx}-ctrl-subtitle-shadow-title">描边方式</div>\n                                    <div class="${this.ppx}-ctrl-subtitle-shadow-content"></div>\n                                </div>\n                                <div class="${this.ppx}-ctrl-subtitle-position">\n                                    <div class="${this.ppx}-ctrl-subtitle-position-title">默认位置</div>\n                                    <div class="${this.ppx}-ctrl-subtitle-position-content"></div>\n                                </div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-subtitle-item ${this.ppx}-ctrl-subtitle-opacity">\n                                <div class="${this.ppx}-ctrl-subtitle-opacity-title">背景不透明度</div>\n                                <div class="${this.ppx}-ctrl-subtitle-opacity-content"></div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-subtitle-other">\n                                <div class="${this.ppx}-ctrl-subtitle-other-title">其它设置</div>\n                                <div class="${this.ppx}-ctrl-subtitle-other-content">\n                                    <span class="${this.ppx}-ctrl-subtitle-scale"></span>\n                                    <span class="${this.ppx}-ctrl-subtitle-fade"></span>\n                                </div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-subtitle-separator"></div>\n                            <div class="${this.ppx}-ctrl-subtitle-reset">恢复默认设置</div>\n                        </div>\n                        <div class="${this.ppx}-ctrl-subtitle-menu-description">\n                            <div class="${this.ppx}-ctrl-description-title">\n                                <span class="${this.cpx}-svg-icon">${y()}</span>\n                                <div class="${this.ppx}-ctrl-description-title-text">''</div>\n                            </div>\n                            <div class="${this.ppx}-ctrl-description-separator"></div>\n                            <div class="${this.ppx}-ctrl-description-content">\n                                ${this.htmlTextMap[this.translationTypeInfo.descriptionType].htmlText}\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-subtitle-menu-left`),i=t.querySelector(`.${this.ppx}-ctrl-subtitle-menu-origin`),n=t.querySelector(`.${this.ppx}-ctrl-subtitle-close-switch`),r=t.querySelector(`.${this.ppx}-ctrl-subtitle-fake-switch`),o=t.querySelector(`.${this.ppx}-ctrl-subtitle-bilingual-above`),s=t.querySelector(`.${this.ppx}-ctrl-subtitle-bilingual-bottom`),l=t.querySelector(`.${this.ppx}-ctrl-subtitle-language`),A=t.querySelector(`.${this.ppx}-ctrl-subtitle-nolan`),h=t.querySelector(`.${this.ppx}-ctrl-subtitle-major`),u=t.querySelector(`.${this.ppx}-ctrl-subtitle-major-title`),g=t.querySelector(`.${this.ppx}-ctrl-subtitle-major-content`),m=t.querySelector(`.${this.ppx}-ctrl-subtitle-minor`),b=t.querySelector(`.${this.ppx}-ctrl-subtitle-minor-content`),v=t.querySelector(`.${this.ppx}-ctrl-subtitle-setting`),E=t.querySelector(`.${this.ppx}-ctrl-subtitle-other`),I=t.querySelector(`.${this.ppx}-ctrl-subtitle-language-unlogin`),C=t.querySelector(`.${this.ppx}-ctrl-subtitle-title`),B=t.querySelector(`.${this.ppx}-ctrl-subtitle-result`),w=t.querySelector(`.${this.ppx}-ctrl-subtitle-result-wrap .${this.cpx}-svg-icon`),x=t.querySelector(`.${this.ppx}-ctrl-subtitle-separator-above`),Q=t.querySelector(`.${this.ppx}-ctrl-subtitle-separator-bottom`),S=t.querySelector(`.${this.ppx}-ctrl-subtitle-menu-translation`),k=t.querySelector(`.${this.ppx}-ctrl-translation-title`),D=t.querySelector(`.${this.ppx}-ctrl-translation-close-switch`),_=t.querySelector(`.${this.ppx}-ctrl-translation-separator`),R=t.querySelector(`.${this.ppx}-ctrl-translation-unlogin`),M=t.querySelector(`.${this.ppx}-ctrl-translation-language`),T=t.querySelector(`.${this.ppx}-ctrl-translation-content`),F=t.querySelector(`.${this.ppx}-ctrl-translation-feedback`),L=t.querySelector(`.${this.ppx}-ctrl-translation-title .${this.cpx}-svg-icon`),N=t.querySelector(`.${this.ppx}-ctrl-description-title .${this.cpx}-svg-icon`),P=t.querySelector(`.${this.ppx}-ctrl-description-title-text`)
;return{container:t,subtitleMenuLeft:e,subtitleMenuOrigin:i,subtitleClose:n,subtitleFakeSwitch:r,subtitleBilingualAbove:o,subtitleBilingualBottom:s,subtitleLanguage:l,subtitleNolan:A,subtitleMajor:h,subtitleMajorTitle:u,subtitleMajorContent:g,subtitleMinor:m,subtitleMinorContent:b,subtitleSetting:v,subtitleAiIcon:w,subtitleOther:E,subtitleNoLoginContainer:I,subtitleTitle:C,subtitleResultName:B,subtitleSeparatorAbove:x,subtitleSeparatorBottom:Q,translation:S,translationTitle:k,translationClose:D,translationUnlogin:R,translationSeparator:_,translationLanguage:M,translationContent:T,translationFeedback:F,translationQuestionIcon:L,descriptionBackIcon:N,descriptionTitle:P}}addReactions(){this.dp.subtitleSwitch=(0,E.U5)((()=>this.subtitleStore.state.isclosed),(t=>{if(t){this.templateNodes.subtitleClose.classList.add(this.activeToken);this.templateNodes.container.querySelectorAll(`.${this.ppx}-ctrl-subtitle-language-item.${this.activeToken}`).forEach((t=>{t.classList.remove(this.activeToken)}))}else{this.templateNodes.subtitleClose.classList.remove(this.activeToken);const t=this.subtitleStore.state.lan,e=this.subtitleStore.state.minorLan;if(t){const e=this.templateNodes.subtitleMajorContent.querySelector(`.${this.ppx}-ctrl-subtitle-language-item[data-lan="${t}"]`);null==e||e.classList.add(this.activeToken)}if(e){const t=this.templateNodes.subtitleMinorContent.querySelector(`.${this.ppx}-ctrl-subtitle-language-item[data-lan="${e}"]`);null==t||t.classList.add(this.activeToken)}}}),{fireImmediately:!0}),this.dp.showBilingual=(0,E.U5)((()=>this.subtitleStore.state.languageList),(t=>{(null==t?void 0:t.length)>1?(this.updateBilingualPosition(),this.bilingualSwitchAbove||(this.bilingualSwitchAbove=new l.rs(this.templateNodes.subtitleBilingualAbove,{value:this.subtitleStore.state.bilingual,content:"",name:"双语字幕"}).on("change",(t=>{var e;null==(e=this.bilingualSwitchBottom)||e.value(t.value),this.onBilingualChange(t)}))),this.bilingualSwitchBottom||(this.bilingualSwitchBottom=new l.rs(this.templateNodes.subtitleBilingualBottom,{value:this.subtitleStore.state.bilingual,content:"",name:"双语字幕"}).on("change",(t=>{var e;null==(e=this.bilingualSwitchAbove)||e.value(t.value),this.onBilingualChange(t)})))):(this.bilingualSwitchAbove&&(this.bilingualSwitchAbove.destroy(),this.bilingualSwitchAbove=null),this.bilingualSwitchBottom&&(this.bilingualSwitchBottom.destroy(),this.bilingualSwitchBottom=null),(0,o.N)(this.templateNodes.subtitleBilingualAbove,this.templateNodes.subtitleBilingualBottom,this.templateNodes.subtitleSeparatorAbove))}),{fireImmediately:!0}),this.dp.translationStatus=(0,E.U5)((()=>this.translationStatus),(t=>{this.updateTranslationStyle(t)}),{fireImmediately:!0}),this.dp.panelStatus=(0,E.U5)((()=>this.panelStatus),(t=>{this.updatePanelLayout(t)}),{fireImmediately:!0}),this.dp.majorLan=(0,E.U5)((()=>this.subtitleStore.state.lan),(t=>{if(t&&!this.subtitleStore.state.isclosed){this.templateNodes.subtitleMajorContent.querySelectorAll(`.${this.ppx}-ctrl-subtitle-language-item`).forEach((e=>{e.classList.remove(this.activeToken),e.dataset.lan===t&&e.classList.add(this.activeToken)})),!this.subtitleStore.state.isclosed&&4!==this.bilingualStatus&&this.subtitleLanguageMap[t].lan_doc&&this.updateToast(`字幕已切换至 ${this.subtitleLanguageMap[t].lan_doc}`)}})),this.dp.minorLan=(0,E.U5)((()=>this.subtitleStore.state.minorLan),(t=>{if(t&&!this.subtitleStore.state.isclosed){this.templateNodes.subtitleMinorContent.querySelectorAll(`.${this.ppx}-ctrl-subtitle-language-item`).forEach((e=>{e.classList.remove(this.activeToken),e.dataset.lan===t&&e.classList.add(this.activeToken)}))}})),this.dp.translationSwitch=(0,E.U5)((()=>this.translationStore.state.isclosed),(t=>{if(t){this.templateNodes.translationClose.classList.add(this.activeToken);this.templateNodes.container.querySelectorAll(`.${this.ppx}-ctrl-translation-language-item.${this.activeToken}`).forEach((t=>{t.classList.remove(this.activeToken)})),(0,o.N)(this.templateNodes.translationFeedback,this.templateNodes.translationSeparator),this.translationStyleMap[1].sH=88}else this.templateNodes.translationClose.classList.remove(this.activeToken);this.menuPanel&&this.menuPanel.optionsUpdate({body:this.getPanelConfig()})}),{fireImmediately:!0}),this.dp.translationLan=(0,E.U5)((()=>{var t,e,i,n;return{language:null==(e=null==(t=this.translationStore)?void 0:t.state)?void 0:e.curLanguage,type:null==(n=null==(i=this.translationStore)?void 0:i.state)?void 0:n.curLanguageType}}),(({language:t,type:e})=>{var i;if(t&&Object.values(n.$v).includes(e)){this.templateNodes.translationContent.querySelectorAll(`.${this.ppx}-ctrl-translation-language-item`).forEach((i=>{i.classList.remove(this.activeToken),i.dataset.lan===t&&i.dataset.type===e.toString()&&i.classList.add(this.activeToken)}));const a=e===n.$v.AI_VOICE,s=a?56:8;a?(0,r.o)(this.templateNodes.translationFeedback,this.templateNodes.translationSeparator):(0,o.N)(this.templateNodes.translationFeedback,this.templateNodes.translationSeparator),this.translationStyleMap[1].sH=72+s+8,this.menuPanel&&this.menuPanel.optionsUpdate({body:this.getPanelConfig()}),this.subtitleStore.state.enable&&((null==(i=this.translationLanguageMap[t+e])?void 0:i.deText)?((0,r.o)(this.templateNodes.subtitleFakeSwitch),(0,o.N)(this.templateNodes.subtitleClose)):this.resetSubtitleState())}else this.subtitleStore.state.fixed&&this.subtitleStore.setState({isclosed:!0}),this.resetSubtitleState();this.translationStore.setState({isclosed:!t})}),{fireImmediately:!0,equals:E.p6.structural}),this.dp.bilingualStatus=(0,E.U5)((()=>this.bilingualStatus),(t=>{this.updatePanelStyle(t)}),{fireImmediately:!0}),this.dp.descriptionType=(0,E.U5)((()=>this.translationTypeInfo.descriptionType),(t=>{this.templateNodes.container.querySelector(`.${this.ppx}-ctrl-description-content`).innerHTML=this.htmlTextMap[t].htmlText,this.menuPanel&&this.menuPanel.optionsUpdate({body:this.getPanelConfig()})}),{fireImmediately:!0}),this.dp.bubbleUpdate=(0,E.U5)((()=>this.translationStore.state.bubble),(t=>{this.translationStore.state.enable&&(this.translationStore.getBubble(t.type)&&this.showTranslationOrSubtitleBubble(t.title),this.translationStore.setBubble(t.type,!0))}),{fireImmediately:!0}),this.dp.pgcBubbleUpdate=(0,E.U5)((()=>this.subtitleStore.state.languageList),(t=>{t&&t.length>0&&!0===this.subtitleStore.state.enablePgcAiSubtitle&&this.subtitleStore.getPgcBubble()&&(this.showTranslationOrSubtitleBubble("视频支持ai字幕啦"),this.subtitleStore.setPgcBubble(!0))}),{fireImmediately:!0}),this.dp.translationTitle=(0,E.U5)((()=>this.translationStore.state.listTitle),(t=>{this.templateNodes.translationTitle.querySelector(`.${this.ppx}-ctrl-translation-title-text`).textContent=t,this.templateNodes.descriptionTitle.textContent=t}),{fireImmediately:!0}),this.dp.isLoadedTrackPolar=(0,E.U5)((()=>this.rootStore.isLoaded),(()=>{var t,e;this.subtitleStore.trackPolar(w.cp.LanguageTypeChoose,{language_code:(null==(e=null==(t=this.subtitleStore)?void 0:t.state)?void 0:e.lan)||null,scene:w.cJ.StartPlay})}),{fireImmediately:!0})}resetSubtitleState(){(0,o.N)(this.templateNodes.subtitleFakeSwitch),(0,r.o)(this.templateNodes.subtitleClose),this.subtitleStore.setState({fixed:!1,fixedPosition:null},!0)}createUI(){var t,e;const i=this.subtitleStore.state.languageList,r=null==(e=null==(t=this.translationStore)?void 0:t.state)?void 0:e.langList,a=this.templateNodes.container;let s=0,A=0;if(i){s=Math.min(40*i.length,this.subtitleStyleMap[3].h),A=Math.min(40*i.length,this.subtitleStyleMap[4].h),this.subtitleStyleMap[3].h=s,this.subtitleStyleMap[4].h=A;const t=Math.min(40*i.length,135);this.subtitleStyleMap[5].h=t}if(r){const t=Math.min(40*r.length,this.translationStyleMap[1].h);this.translationStyleMap[1].h=t}this.menuPanel=new l.s_(a.querySelector(`.${this.ppx}-ctrl-subtitle-menu`),{dark:!0,value:0,body:this.getPanelConfig()}),this.createSubtitleSwitchEvents(),this.createTranslationSwitchEvents(),i&&(this.majorTemplate(),this.templateNodes.subtitleMajorContent.style.height=s+"px",i.length>2&&(this.majorScroll=new I.Z(this.templateNodes.subtitleMajorContent,{preventDefault:!1})),i.length>1&&(this.minorTemplate(),
this.templateNodes.subtitleMinorContent.style.height=A+"px",i.length>2&&(this.minorScroll=new I.Z(this.templateNodes.subtitleMinorContent,{preventDefault:!1})))),this.createTranslationUI();const c=!this.userStore.info.isOwner,h=a.querySelector(`.${this.ppx}-ctrl-subtitle-add`);if(c||this.uiStore.kind===n.HR.Pgc)(0,o.N)(h);else{new l.zx(h,{type:"border",disabled:c}).on("click",(()=>{this.track.e("subtitle_add"),this.portStore.pause(),(0,C.x)(`https://member.bilibili.com/v2#/zimu/my-zimu/zimu-editor?bvid=${this.configStore.bvid}&cid=${this.configStore.cid}&epid=${this.configStore.episodeId}`,this.rootPlayer)}))}this.createSubtitleSettingsUI()}createTranslationUI(){var t,e;const i=null==(e=null==(t=this.translationStore)?void 0:t.state)?void 0:e.langList;i&&i.length>0&&(this.track.e("translation_show"),this.translationTemplate(),this.templateNodes.translationContent.style.height=this.translationStyleMap[1].h+"px",i.length>4&&(this.translationScroll=new I.Z(this.templateNodes.translationContent,{preventDefault:!1})))}showTranslationOrSubtitleBubble(t){const e=this.templateNodes.container;if(!e)return;const i=t||"",n=(0,a.t)(`\n            <div class="${this.ppx}-translation-bubble">\n                <div class="${this.ppx}-translation-bubble-body">\n                    <span class="${this.cpx}-svg-icon">${v()}</span>\n                    <span class="${this.ppx}-translation-bubble-text">${i}</span>\n                    <div class="${this.ppx}-translation-bubble-arrow"></div>\n                </div>\n            </div>\n        `);e.appendChild(n),requestAnimationFrame((()=>{n.style.transition="opacity 0.3s ease-in-out",n.style.opacity="1"})),this.track.e("translation_intro_toast_show"),!0===this.subtitleStore.state.enablePgcAiSubtitle&&(this.pgcBubbleHideTimer=window.setTimeout((()=>{n.style.transition="opacity 0.3s ease-out",n.style.opacity="0",this.pgcBubbleRemoveTimer=window.setTimeout((()=>{n.parentElement&&n.parentElement.removeChild(n)}),300)}),5e3))}translationTemplate(){var t,e;const i=this.templateNodes.translationContent.querySelector(`.${this.ppx}-ctrl-translation-inner`);((null==(e=null==(t=this.translationStore)?void 0:t.state)?void 0:e.langList)||[]).forEach(((t,e)=>{const r=t.type===n.$v.AI_VOICE?` <span class="${this.cpx}-svg-icon">${c()}</span>`:"",o=(0,a.t)(`<div class="${this.ppx}-ctrl-translation-language-item" data-lan="${t.lang}" data-type="${t.type}">\n                     <div class="${this.ppx}-ctrl-translation-language-item-text">${t.title}</div>${r}\n                </div>`);this.tooltipStore.create({tip:!0,name:"ctrl:translation-tooltip-"+e,title:t.type===n.$v.AI_VOICE?"AI生成原声翻译（Beta）":"UP主上传配音",target:o,position:n.DU.TopCenter,offsetX:35,offsetY:20}),o.addEventListener("click",(()=>k(this,null,(function*(){if(this.translationStore.state.curLanguage===t.lang&&this.translationStore.state.curLanguageType===t.type)return;this.updateToast(this.toastTextMap[t.type].switch);const i=yield this.translationStore.switchLanguage(t.lang,t.type);i===B.PR.Success?(this.updateToast(this.toastTextMap[t.type].success+(t.type===n.$v.MULTI_LANGUAGE?`${t.title}`:" ")),this.translationIndex=e,this.track.e("translation_switch_language",{lan:t.lang,type:t.type}),this.translationStore.state.isclosed&&this.translationStore.setState({isclosed:!1})):(this.updateToast(this.toastTextMap[t.type].failure),this.track.e("translation_switch_language",{result:i}))})))),this.translationStore.state.curLanguage===t.lang&&this.translationStore.state.curLanguageType===t.type&&(o.classList.add(this.activeToken),this.translationIndex=e),!0===t.mouthChange&&(this.hasMouthChange=!0),!0===t.deText&&(this.hasSubtitleDetext=!0),t.type===n.$v.AI_VOICE&&(this.translationLanguageMap[t.lang+n.$v.AI_VOICE]=t),i.appendChild(o)}));const r=this.translationStore.state.curLanguageType===n.$v.AI_VOICE,s=r?56:8;r||((0,o.N)(this.templateNodes.translationFeedback),(0,o.N)(this.templateNodes.translationSeparator)),this.translationStyleMap[1].sH=72+s+8}createSubtitleSettingsUI(){const{fontsize:t,color:e,opacity:i,shadow:r,position:o,scale:a,fade:s}=this.subtitleStore.state,A=this.templateNodes.container,c=new l.Ph(A.querySelector(`.${this.ppx}-ctrl-subtitle-fontsize-content`),{dark:!0,value:`${t||1}`,items:[{name:"最小",value:"0.6"},{name:"较小",value:"0.8"},{name:"适中",value:"1"},{name:"较大",value:"1.3"},{name:"最大",value:"1.6"}]}).on("change",(t=>{this.subtitleStore.setState({fontsize:t.value}),this.track.e("subtitle_final_size",t.value)})),h=new l.Ph(A.querySelector(`.${this.ppx}-ctrl-subtitle-color-content`),{dark:!0,value:e,items:[{name:'<span style="background: #ffffff;"></span><span>白色</span>',value:"16777215"},{name:'<span style="background: #F44336;"></span><span>红色</span>',value:"16007990"},{name:'<span style="background: #9C27B0;"></span><span>紫色</span>',value:"10233776"},{name:'<span style="background: #673AB7;"></span><span>深紫色</span>',value:"6765239"},{name:'<span style="background: #3F51B5;"></span><span>靛青色</span>',value:"4149685"},{name:'<span style="background: #2196F3;"></span><span>蓝色</span>',value:"2201331"},{name:'<span style="background: #03A9F4;"></span><span>亮蓝色</span>',value:"240116"}]}).on("change",(t=>{this.subtitleStore.setState({color:t.value}),this.track.e("subtitle_final_color",t.value)})),d=new l.Ph(A.querySelector(`.${this.ppx}-ctrl-subtitle-shadow-content`),{dark:!0,value:r,items:[{name:"无描边",value:n.$G.None},{name:"重墨",value:n.$G.Heavyink},{name:"描边",value:n.$G.Stroke},{name:"45°投影",value:n.$G.Projection}]}).on("change",(t=>{this.subtitleStore.setState({shadow:t.value}),this.track.e("subtitle_final_shadow",t.value)})),u=new l.Ph(A.querySelector(`.${this.ppx}-ctrl-subtitle-position-content`),{dark:!0,value:o,items:[{name:"左下角",value:n.Aw.BottomLeft},{name:"底部居中",value:n.Aw.BottomCenter},{name:"右下角",value:n.Aw.BottomRight},{name:"左上角",value:n.Aw.TopLeft},{name:"顶部居中",value:n.Aw.TopCenter},{name:"右上角",value:n.Aw.TopRight}]}).on("change",(t=>{this.subtitleStore.setState({position:t.value}),this.track.e("subtitle_final_position",t.value)})),p=new l.iR(A.querySelector(`.${this.ppx}-ctrl-subtitle-opacity-content`),{dark:!0,trackLength:226,value:i>=0?i:.87}).on("move",(t=>{this.subtitleStore.setState({opacity:t.value})})).on("change",(t=>{this.subtitleStore.setState({opacity:t.value}),this.track.e("subtitle_final_opacity",t.value)})),g=new l.XZ(A.querySelector(`.${this.ppx}-ctrl-subtitle-scale`),{dark:!0,name:"等比缩放",value:a}).on("change",(t=>{this.subtitleStore.setState({scale:t.value}),this.track.e("subtitle_final_scale",+t.value)})),f=new l.XZ(A.querySelector(`.${this.ppx}-ctrl-subtitle-fade`),{dark:!0,name:"淡入淡出",value:s}).on("change",(t=>{this.subtitleStore.setState({fade:t.value}),this.track.e("subtitle_final_fade",+t.value)}));new l.zx(A.querySelector(`.${this.ppx}-ctrl-subtitle-reset`),{type:"transparent"}).on("click",(()=>{var t,e;c.value(n.ab.fontsize),h.value(n.ab.color),d.value(n.ab.shadow),u.value(n.ab.position),p.value(n.ab.opacityNew),f.value(n.ab.fade),g.value(n.ab.scale),null==(t=this.bilingualSwitchAbove)||t.value(n.ab.bilingual),null==(e=this.bilingualSwitchBottom)||e.value(n.ab.bilingual),this.track.e("subtitle_reset")}))}majorTemplate(){const t=this.templateNodes.subtitleMajorContent.querySelector(`.${this.ppx}-ctrl-subtitle-major-inner`);this.subtitleStore.state.languageList.forEach(((e,i)=>{const n=1===e.type?` <span class="${this.cpx}-svg-icon">${c()}</span>`:"",r=(0,a.t)(`<div class="${this.ppx}-ctrl-subtitle-language-item" data-lan="${e.lan}">\n                    <div class="${this.ppx}-ctrl-subtitle-language-item-text">${e.lan_doc}</div>${n}\n                </div>`);r.addEventListener("click",(()=>{this.subtitleStore.setState({lan:e.lan}),this.subtitleStore.state.isclosed&&(this.subtitleStore.setState({isclosed:!1}),this.subtitleStore.updateUgcMemory({isclosed:!1})),this.localStore.set({subtitle:{preferred_language:e.lan}}),this.subtitleStore.patchPgcConfig({lan:e.lan}),4!==this.bilingualStatus&&this.subtitleLanguageMap[this.subtitleStore.state.lan].lan_doc&&(this.updateToast(`字幕已切换至 ${this.subtitleLanguageMap[this.subtitleStore.state.lan].lan_doc}`),this.majorIndex=i),this.track.e("subtitle_major_language",{lan:e.lan}),
this.subtitleStore.trackPolar(w.cp.LanguageTypeChoose,{language_code:e.lan,scene:w.cJ.SubtitleSwitch}),1===e.type&&this.track.e("switch_ai_subtitle")})),this.subtitleStore.state.lan===e.lan&&(r.classList.add(this.activeToken),this.majorIndex=i),t.appendChild(r),this.subtitleLanguageMap[e.lan]=e}))}minorTemplate(){const t=this.templateNodes.subtitleMinorContent.querySelector(`.${this.ppx}-ctrl-subtitle-minor-inner`);this.subtitleStore.state.languageList.forEach(((e,i)=>{const n=1===e.type?` <span class="${this.cpx}-svg-icon">${c()}</span>`:"",r=(0,a.t)(`<div class="${this.ppx}-ctrl-subtitle-language-item" data-lan="${e.lan}">\n                    <div class="${this.ppx}-ctrl-subtitle-language-item-text">${e.lan_doc}</div>${n}\n                </div>`);r.addEventListener("click",(()=>{this.subtitleStore.setState({minorLan:e.lan}),this.subtitleStore.state.isclosed&&(this.subtitleStore.setState({isclosed:!1}),this.subtitleStore.updateUgcMemory({isclosed:!1})),this.minorIndex=i,2!==e.ai_status&&this.localStore.set({subtitle:{minorLan:e.lan}}),this.subtitleStore.updateUgcMemory({minorLan:e.lan}),this.track.e("subtitle_minor_language",{lan:e.lan}),this.subtitleStore.trackPolar(w.cp.LanguageTypeChoose,{language_code:e.lan,scene:w.cJ.SubtitleSwitch}),1===e.type&&this.track.e("switch_ai_subtitle")})),this.subtitleStore.state.minorLan===e.lan&&(r.classList.add(this.activeToken),this.minorIndex=i),t.appendChild(r)}))}getPanelConfig(){const t=[];let e=0;switch(this.panelStatus){case 3:{const i=this.translationStyleMap[this.translationStatus].h+this.translationStyleMap[this.translationStatus].sH,r=this.subtitleStyleMap[this.bilingualStatus].h+this.subtitleStyleMap[this.bilingualStatus].sH;e=Math.max(i,r),this.userStore.isLogin||this.uiStore.kind!==n.HR.Ugc?t.push({element:this.templateNodes.subtitleMenuLeft,width:this.subtitleStyleMap[this.bilingualStatus].w+this.translationStyleMap[this.translationStatus].w+24+20,height:e}):(e=144,t.push({element:this.templateNodes.subtitleMenuLeft,width:228,height:e}));break}case 1:e=this.subtitleStyleMap[this.bilingualStatus].h+this.subtitleStyleMap[this.bilingualStatus].sH,t.push({element:this.templateNodes.subtitleMenuLeft,width:this.subtitleStyleMap[this.bilingualStatus].w+24,height:e});break;case 2:e=this.translationStyleMap[this.translationStatus].h+this.translationStyleMap[this.translationStatus].sH,t.push({element:this.templateNodes.subtitleMenuLeft,width:this.translationStyleMap[this.translationStatus].w+24,height:e})}return 1!==this.panelStatus&&3!==this.panelStatus||t.push({element:this.templateNodes.container.querySelector(`.${this.ppx}-ctrl-subtitle-menu-right`),width:266,height:260}),2!==this.panelStatus&&3!==this.panelStatus||t.push({element:this.templateNodes.container.querySelector(`.${this.ppx}-ctrl-subtitle-menu-description`),width:332,height:Math.max(this.htmlTextMap[this.translationTypeInfo.descriptionType].height,e)}),t}onBilingualChange(t){if(this.subtitleStore.setState({bilingual:t.value}),this.localStore.set({subtitle:{bilingual:t.value}}),t.value){const{lan:t,minorLan:e,languageList:i}=this.subtitleStore.state;if(!e||e===t){const e=null==i?void 0:i.find((e=>e.lan!==t));e&&this.subtitleStore.setState({minorLan:e.lan})}}this.subtitleStore.updateUgcMemory({minorLan:t.value?this.subtitleStore.state.minorLan:""}),t.manual&&this.track.e("subtitle_final_bilingual",{value:t.value}),this.updateBilingualPosition()}updateBilingualPosition(){const{bilingual:t,languageList:e}=this.subtitleStore.state;(null==e?void 0:e.length)>1?t?((0,r.o)(this.templateNodes.subtitleBilingualAbove),(0,o.N)(this.templateNodes.subtitleBilingualBottom),(0,r.o)(this.templateNodes.subtitleSeparatorAbove)):((0,o.N)(this.templateNodes.subtitleBilingualAbove),(0,r.o)(this.templateNodes.subtitleBilingualBottom),(0,o.N)(this.templateNodes.subtitleSeparatorAbove)):(0,o.N)(this.templateNodes.subtitleBilingualAbove,this.templateNodes.subtitleBilingualBottom)}updatePanelLayout(t){var e;switch(t){case 3:(0,r.o)(this.templateNodes.subtitleMenuLeft,this.templateNodes.translation,this.templateNodes.subtitleMenuOrigin),this.templateNodes.subtitleResultName.innerHTML="翻译和字幕",this.userStore.isLogin||this.uiStore.kind!==n.HR.Ugc?(this.templateNodes.subtitleTitle.innerHTML="字幕",(0,r.o)(this.templateNodes.translation)):(this.templateNodes.subtitleTitle.innerHTML="AI原声翻译和字幕",(0,o.N)(this.templateNodes.translation));break;case 1:{(0,r.o)(this.templateNodes.subtitleMenuLeft,this.templateNodes.subtitleMenuOrigin),(0,o.N)(this.templateNodes.translation);const t=this.templateNodes.container.querySelector(`.${this.ppx}-ctrl-subtitle-menu-description`);t&&(0,o.N)(t);const i=null==(e=this.subtitleStore.state.languageList)?void 0:e.some((t=>1===t.type));if(this.uiStore.kind===n.HR.Pgc){this.templateNodes.subtitleResultName.innerHTML="多语言字幕",this.templateNodes.subtitleAiIcon&&(this.templateNodes.subtitleAiIcon.style.display=i?"":"none"),this.subtitleStore.trackPolar(w.cp.ButtonShown,{button_name:this.templateNodes.subtitleResultName.innerHTML,button_tip:i?"ai":""});break}this.templateNodes.subtitleResultName.innerHTML="字幕",this.templateNodes.subtitleAiIcon&&(this.templateNodes.subtitleAiIcon.style.display="none");break}case 2:(0,r.o)(this.templateNodes.translation),(0,o.N)(this.templateNodes.subtitleMenuOrigin),this.templateNodes.subtitleResultName.innerHTML="翻译";break;case 0:return void(0,o.N)(this.templateNodes.subtitleMenuLeft)}this.menuPanel&&this.menuPanel.optionsUpdate({body:this.getPanelConfig()})}updatePanelStyle(t){switch(this.menuPanel&&this.menuPanel.optionsUpdate({body:this.getPanelConfig()}),t){case 4:this.templateNodes.subtitleMajor.style.width="50%",this.templateNodes.subtitleMinor.style.width="50%",this.templateNodes.subtitleMajorContent.style.height=this.subtitleStyleMap[this.bilingualStatus].h+"px",(0,o.N)(this.templateNodes.subtitleNolan),(0,r.o)(this.templateNodes.subtitleMajorTitle,this.templateNodes.subtitleMajor,this.templateNodes.subtitleMinor);break;case 3:case 2:this.templateNodes.subtitleMajor.style.width="100%",this.templateNodes.subtitleMajorContent.style.height=this.subtitleStyleMap[this.bilingualStatus].h+"px",(0,o.N)(this.templateNodes.subtitleNolan,this.templateNodes.subtitleMinor,this.templateNodes.subtitleMajorTitle),(0,r.o)(this.templateNodes.subtitleMajor);break;case 5:this.templateNodes.subtitleMajor.style.width="100%",this.templateNodes.subtitleMajorContent.style.height=this.subtitleStyleMap[this.bilingualStatus].h+"px",(0,o.N)(this.templateNodes.subtitleNolan,this.templateNodes.subtitleMinor,this.templateNodes.subtitleMajorTitle,this.templateNodes.subtitleSeparatorAbove,this.templateNodes.subtitleBilingualAbove,this.templateNodes.subtitleBilingualBottom),(0,r.o)(this.templateNodes.subtitleMajor,this.templateNodes.subtitleSeparatorBottom);break;case 0:(0,o.N)(this.templateNodes.subtitleMajor,this.templateNodes.subtitleMinor,this.templateNodes.subtitleClose,this.templateNodes.subtitleSeparatorAbove,this.templateNodes.subtitleSeparatorBottom,this.templateNodes.subtitleSetting),(0,r.o)(this.templateNodes.subtitleNolan);break;case 1:(0,o.N)(this.templateNodes.subtitleLanguage,this.templateNodes.subtitleClose,this.templateNodes.subtitleSeparatorAbove,this.templateNodes.subtitleBilingualAbove,this.templateNodes.subtitleBilingualBottom),this.templateNodes.subtitleSeparatorBottom.style.margin="0 0 0 -8px",this.templateNodes.subtitleTitle.style.opacity="1",(0,r.o)(this.templateNodes.subtitleNoLoginContainer)}this.refreshScroll()}updateTranslationStyle(t){if(this.menuPanel&&this.menuPanel.optionsUpdate({body:this.getPanelConfig()}),0===t)(0,o.N)(this.templateNodes.translationLanguage,this.templateNodes.translationFeedback,this.templateNodes.translationClose),(0,r.o)(this.templateNodes.translationUnlogin),this.templateNodes.translationSeparator.style.margin="6px 0 0 -8px",this.templateNodes.translationTitle.style.opacity="1";this.refreshScroll()}refreshScroll(){if(this.majorScroll){this.majorScroll.refresh();const t=Math.max(40*-this.majorIndex,this.majorScroll.maxScrollY);this.majorScroll.scrollTo(0,t)}if(this.minorScroll){this.minorScroll.refresh();const t=Math.max(40*-this.minorIndex,this.minorScroll.maxScrollY)
;this.minorScroll.scrollTo(0,t)}if(this.translationScroll){this.translationScroll.refresh();const t=Math.max(40*-this.translationIndex,this.translationScroll.maxScrollY);this.translationScroll.scrollTo(0,t)}}updateToast(t){this.toastId&&this.toastStore.remove(this.toastId),this.toastId=this.toastStore.create({text:t,duration:3e3,onRemoved:()=>{this.toastId=null}})}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("subtitle_show"),this.menuPanel.value(0),this.templateNodes.container.classList.remove(this.showToken)))}onMouseEnterHandler(){var t;this.clearTimer(),this.subtitleStore.setState({hover:!0});const e=null==(t=this.subtitleStore.state.languageList)?void 0:t.some((t=>1===t.type));this.subtitleStore.trackPolar(w.cp.ButtonClick,{button_name:this.templateNodes.subtitleResultName.innerHTML,button_tip:e?"ai":""}),this.hideTranslationBubble(),this.showTimer=window.setTimeout((()=>{this.templateNodes.container.classList.add(this.showToken),this.refreshScroll()}),this.configStore.onlyTouchMode?0:300)}onMouseLeaveHandler(){this.subtitleStore.setState({hover:!1});const t=this.justBackFromDescription?1e3:200;this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1),this.justBackFromDescription=!1}),this.configStore.onlyTouchMode?0:t)}hideTranslationBubble(){const t=this.templateNodes.container.querySelector(`.${this.ppx}-translation-bubble`);t&&(t.style.opacity="0",setTimeout((()=>{t.parentElement&&t.parentElement.removeChild(t)}),0))}createSubtitleSwitchEvents(){this.templateNodes.subtitleClose.addEventListener("click",(()=>{var t;const e=this.subtitleStore.state.isclosed;(null==(t=this.subtitleStore.state.languageList)?void 0:t.length)&&!e&&(this.subtitleStore.setState({isclosed:!e}),this.subtitleStore.updateUgcMemory({isclosed:!e}),this.trackExtra.p("player.player.subtitle-button.click.player",n.p0.Click,{avid:this.configStore.aid,cid:this.configStore.cid}),this.track.e("subtitle_button_click",{isClosed:!e}),this.updateToast("字幕已关闭"))}))}createTranslationSwitchEvents(){this.templateNodes.translationClose.addEventListener("click",(()=>k(this,null,(function*(){var t;const e=this.translationStore.state.isclosed;if((null==(t=this.translationStore.state.langList)?void 0:t.length)&&!e&&(this.translationStore.setState({isclosed:!e}),this.track.e("translation_button_click",{isClosed:!e}),!e)){const t=this.translationStore.state.curLanguageType;let e=this.translationStore.switchLanguage(n.SQ.ORIGIN,n.$v.DEFAULT);(yield e)===B.PR.Success&&this.updateToast(this.toastTextMap[t].closed)}}))))}onSettingClickHandler(){this.menuPanel.value(1),this.track.e("subtitle_more")}onLoginClickHandler(){this.handleLogin()}handleLogin(){this.userStore.requestQuickLoginPromise().then((()=>{this.destroyComponent(),this.initSubtitleComponent()})),this.track.e("subtitle_login")}onTranslationQuestionClickHandler(){const t=3===this.panelStatus?2:1;this.menuPanel.value(t),this.track.e("translation_description_click")}onDescriptionBackClickHandler(){this.menuPanel.value(0),this.justBackFromDescription=!0}onTranslationFeedbackClickHandler(t){this.track.e("translation_feedback_click"),t&&t.isTrusted&&this.templateNodes.translationFeedback.contains(t.target)&&(this.showTranslationFeedbackModal(),this.uiStore.isFullView&&this.portStore.reqStatue(null))}showTranslationFeedbackModal(){var t,e;const i=`https://www.bilibili.com/york/interactive/web/question?${new URLSearchParams({aid:(null==(t=this.configStore.aid)?void 0:t.toString())||"",cid:(null==(e=this.configStore.cid)?void 0:e.toString())||"",lang:"zh",has_lip_sync:this.hasMouthChange?"true":"false",has_subtitle:this.hasSubtitleDetext?"true":"false",translation:this.translationStore.state.curLanguage}).toString()}`;this.track.e("translation_feedback_toast",i);const n=(0,a.t)(`\n            <div class="${this.ppx}-translation-feedback-modal" style="\n                position: fixed;\n                top: 0;\n                left: 0;\n                width: 100vw;\n                height: 100vh;\n                background: rgba(0, 0, 0, 0.6);\n                z-index: 10000;\n                display: flex;\n                justify-content: center;\n                align-items: center;\n            ">\n                <div class="${this.ppx}-translation-feedback-content" style="\n                    position: relative;\n                    background: white;\n                    border-radius: 12px;\n                    overflow: hidden;\n                    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);\n                ">\n                    <iframe \n                        src="${i}"\n                        style="\n                            width: 500px;\n                            height: 646px;\n                            border: none;\n                            display: block;\n                        "\n                        frameborder="0"\n                        scrolling="no">\n                    </iframe>\n                </div>\n            </div>\n        `);document.body.appendChild(n);const r=t=>{var e,i,o,a;if("questionnaire-close"===(null==(e=t.data)?void 0:e.action))if("submit"===(null==(i=t.data.params)?void 0:i.reason)){const e=setTimeout((()=>{var i;document.body.removeChild(n),window.removeEventListener("message",r),this.track.e("translation_feedback_close",{reason:(null==(i=t.data.params)?void 0:i.reason)||"unknown"}),clearTimeout(e)}),1e3)}else{document.body.removeChild(n),window.removeEventListener("message",r),this.track.e("translation_feedback_close",{reason:(null==(o=t.data.params)?void 0:o.reason)||"unknown"});try{const e="cancel"===(null==(a=t.data.params)?void 0:a.reason);this.translationStore.trackPolar(e?B.SL.QuestionnaireCancel:B.SL.QuestionnaireClose,null)}catch(t){}}};window.addEventListener("message",r),n.addEventListener("click",(t=>{t.target===n&&(document.body.removeChild(n),window.removeEventListener("message",r),this.track.e("translation_feedback_close",{reason:"mask"}),this.translationStore.trackPolar(B.SL.QuestionnaireClose,null))}))}addEventListener(){this.templateNodes.subtitleSetting.addEventListener("click",this.onSettingClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.addEventListener("mouseleave",this.onMouseLeaveHandler),this.templateNodes.translationFeedback.addEventListener("click",this.onTranslationFeedbackClickHandler),this.templateNodes.translationQuestionIcon.addEventListener("click",this.onTranslationQuestionClickHandler),this.templateNodes.descriptionBackIcon.addEventListener("click",this.onDescriptionBackClickHandler),this.tooltipStore.create({tip:!0,name:"ctrl:subtitle",title:"本视频开启原声翻译时不支持关闭字幕",target:this.templateNodes.subtitleFakeSwitch,position:n.DU.TopCenter}),this.templateNodes.subtitleNoLoginContainer.querySelector(`.${this.ppx}-ctrl-subtitle-language-unlogin-content`).addEventListener("click",this.onLoginClickHandler),this.templateNodes.translationUnlogin.querySelector(`.${this.ppx}-ctrl-translation-unlogin-content`).addEventListener("click",this.onLoginClickHandler)}removeEventListener(){this.templateNodes.subtitleSetting.removeEventListener("click",this.onSettingClickHandler),this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.removeEventListener("mouseleave",this.onMouseLeaveHandler),this.templateNodes.translationFeedback.removeEventListener("click",this.onTranslationFeedbackClickHandler),this.templateNodes.translationQuestionIcon.removeEventListener("click",this.onTranslationQuestionClickHandler),this.templateNodes.descriptionBackIcon.removeEventListener("click",this.onDescriptionBackClickHandler),this.templateNodes.subtitleNoLoginContainer.querySelector(`.${this.ppx}-ctrl-subtitle-language-unlogin-content`).removeEventListener("click",this.onLoginClickHandler),this.templateNodes.translationUnlogin.querySelector(`.${this.ppx}-ctrl-translation-unlogin-content`).removeEventListener("click",this.onLoginClickHandler)}destroyComponent(){window.clearTimeout(this.pgcBubbleHideTimer),
window.clearTimeout(this.pgcBubbleRemoveTimer),this.templateNodes.container.parentElement&&this.templateNodes.container.parentElement.removeChild(this.templateNodes.container),this.removeEventListener(),this.majorScroll=this.minorScroll=this.translationScroll=null,this.subtitleLanguageMap={},this.translationLanguageMap={},this.hasMouthChange=!1,this.hasSubtitleDetext=!1,this.subtitleStyleMap[3].h=135,this.subtitleStyleMap[4].h=99,this.subtitleStyleMap[5].h=40,this.translationStyleMap[1].h=175,this.bilingualSwitchAbove&&(this.bilingualSwitchAbove.destroy(),this.bilingualSwitchAbove=null),this.bilingualSwitchBottom&&(this.bilingualSwitchBottom.destroy(),this.bilingualSwitchBottom=null),this.templateNodes=this.subtitleTemplate()}onDispose(){super.onDispose();const t=document.body.querySelector(`.${this.ppx}-translation-feedback-modal`);t&&document.body.removeChild(t),this.destroyComponent()}}S([E.Fl],D.prototype,"panelStatus",1),S([E.Fl],D.prototype,"bilingualStatus",1),S([E.Fl],D.prototype,"translationStatus",1),S([E.Fl],D.prototype,"translationTypeInfo",1),S([s.ZP],D.prototype,"onMouseEnterHandler",1),S([s.ZP],D.prototype,"onMouseLeaveHandler",1),S([s.ZP],D.prototype,"createSubtitleSwitchEvents",1),S([s.ZP],D.prototype,"onSettingClickHandler",1),S([s.ZP],D.prototype,"onLoginClickHandler",1),S([s.ZP],D.prototype,"handleLogin",1),S([s.ZP],D.prototype,"onTranslationQuestionClickHandler",1),S([s.ZP],D.prototype,"onDescriptionBackClickHandler",1),S([s.ZP],D.prototype,"onTranslationFeedbackClickHandler",1)},30406:function(t,e,i){"use strict";i.d(e,{e:function(){return d}});var n=i(5489),r=i(99550),o=i(89262),a=i(93196),s=i.n(a),l=i(22451),A=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?c(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&A(e,i,o),o};class d extends n.vq{constructor(){super(...arguments),this.templateNode=this.syncTemplate()}install(){super.install(),this.dc.status=(0,l.U5)((()=>({ended:this.endingStore.state.opened,status:this.premiereStore.state.status})),(({ended:t,status:e})=>{if(t||2!==e)this.templateNode.parentElement&&(this.templateNode.parentElement.removeChild(this.templateNode),this.removeEventListener());else if(!this.templateNode.parentElement){this.nodes.controlBottomLeft.querySelector(`.${this.ppx}-ctrl-play`).insertAdjacentElement("afterend",this.templateNode),this.updateTooltip(),this.addEventListener(),this.track.e("ctrl_sync_show")}}),{fireImmediately:!0})}syncTemplate(){return(0,r.t)(`<div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-sync"><div class="${this.ppx}-ctrl-btn-icon"><span class="${this.cpx}-svg-icon">${s()}</span></div></div>`)}updateTooltip(){this.tooltipStore.remove("ctrl:sync");const t=this.uiStore.isFullView?28:19;this.tooltipStore.create({gap:t,name:"ctrl:sync",title:"同步播放进度",target:this.templateNode,position:n.DU.TopCenter,tip:!0})}onClickHandler(){this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Premiere,data:{type:"timeCalibration"}}})),this.track.e("ctrl_sync_click")}addEventListener(){this.templateNode.addEventListener("click",this.onClickHandler),this.rootPlayer.on(n.tw.Player_Statue_Changed,this.updateTooltip)}removeEventListener(){this.templateNode.removeEventListener("click",this.onClickHandler),this.rootPlayer.off(n.tw.Player_Statue_Changed,this.updateTooltip)}onDisconnect(){this.removeEventListener()}}h([o.ZP],d.prototype,"updateTooltip",1),h([o.ZP],d.prototype,"onClickHandler",1)},77673:function(t,e,i){"use strict";i.d(e,{Q:function(){return p}});var n=i(31168),r=i(99550),o=i(23529),a=i(46330),s=i(62566),l=i(89262),A=i(22451),c=i(5489),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&h(e,i,o),o};class p extends c.vq{constructor(){super(...arguments),this.templateNodes=this.timeLabelTemplate(),this.seekTimer=-1}install(){super.install(),this.templateNodes.container.parentElement||(this.nodes.controlBottomLeft.appendChild(this.templateNodes.container),this.addEventListener()),this.dc.current=(0,A.U5)((()=>this.mediaStore.state.progressTime),(t=>{this.templateNodes.current.innerHTML=(0,n.Z)(Math.ceil(t),this.mediaStore.state.duration)}),{fireImmediately:!0}),this.dc.duration=(0,A.U5)((()=>this.mediaStore.state.remoteDuration),(t=>{this.templateNodes.duration.innerHTML=(0,n.Z)(this.patchAdvStore.hasValidAdv?Math.ceil(this.portStore.getDuration()):Math.ceil(t))}),{fireImmediately:!0})}timeLabelTemplate(){const t=(0,r.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-time">\n                <input class="${this.ppx}-ctrl-time-seek" value="00:00" style="display: none;"/>\n                <div class="${this.ppx}-ctrl-time-label">\n                    <span class="${this.ppx}-ctrl-time-current">00:00</span>\n                    <span class="${this.ppx}-ctrl-time-divide">/</span>\n                    <span class="${this.ppx}-ctrl-time-duration">00:00</span>\n                </div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-time-seek`),i=t.querySelector(`.${this.ppx}-ctrl-time-label`),n=t.querySelector(`.${this.ppx}-ctrl-time-current`),o=t.querySelector(`.${this.ppx}-ctrl-time-duration`);return{container:t,seek:e,label:i,current:n,duration:o}}onClickHandler(t){t.preventDefault(),isNaN(this.mediaStore.state.duration)||this.premiereStore.state.status||this.configStore.channelKind!==c.u5.Mini_Site&&((0,o.N)(this.templateNodes.label),(0,a.o)(this.templateNodes.seek),this.templateNodes.seek.focus(),this.templateNodes.seek.value=this.clickCurrentTime=(0,n.Z)(Math.ceil(this.mediaStore.state.currentTime)),this.track.e("time_textarea",this.mediaStore.state.currentTime),this.templateNodes.seek.addEventListener("focusout",this.onFocusoutHandler),this.templateNodes.seek.addEventListener("keydown",this.onKeydownHandler))}seekHandler(t){clearTimeout(this.seekTimer),this.seekTimer=window.setTimeout((()=>{const e=this.portStore.getDuration();t>e&&this.uiStore.kind===c.HR.Pgc?this.portStore.seekAutoplay(e-1,"CtrlTimelabel"):this.portStore.seekAutoplay(t,"CtrlTimelabel")}),200)}onFocusoutHandler(){(0,o.N)(this.templateNodes.seek),(0,a.o)(this.templateNodes.label);const t=(0,s.N)(this.templateNodes.seek.value);(0,n.Z)(t)!==this.clickCurrentTime&&this.seekHandler(t),this.templateNodes.seek.removeEventListener("keydown",this.onKeydownHandler),this.templateNodes.seek.removeEventListener("focusout",this.onFocusoutHandler)}onKeydownHandler(t){if("Enter"===t.code){(0,o.N)(this.templateNodes.seek),(0,a.o)(this.templateNodes.label),this.templateNodes.seek.removeEventListener("keydown",this.onKeydownHandler),this.templateNodes.seek.removeEventListener("focusout",this.onFocusoutHandler);const t=(0,s.N)(this.templateNodes.seek.value);(0,n.Z)(t)!==this.clickCurrentTime&&this.seekHandler(t)}else"Escape"===t.code&&((0,o.N)(this.templateNodes.seek),(0,a.o)(this.templateNodes.label),this.templateNodes.seek.removeEventListener("keydown",this.onKeydownHandler),this.templateNodes.seek.removeEventListener("focusout",this.onFocusoutHandler))}addEventListener(){this.templateNodes.label.addEventListener("click",this.onClickHandler)}removeEventListener(){this.templateNodes.label.removeEventListener("click",this.onClickHandler)}onDispose(){super.onDispose(),clearTimeout(this.seekTimer)}onDisconnect(){this.removeEventListener()}}u([l.ZP],p.prototype,"onClickHandler",1),u([l.ZP],p.prototype,"onFocusoutHandler",1),u([l.ZP],p.prototype,"onKeydownHandler",1)},78041:function(t,e,i){"use strict";i.d(e,{R:function(){return u}});var n=i(5489),r=i(99550),o=i(89262),a=i(97203),s=i.n(a),l=i(22451),A=i(48760),c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?h(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&c(e,i,o),o};class u extends n.vq{constructor(){super(...arguments),this.templateNodes=this.viewpointTemplate(),this.showToken=this.spx+"-show"}install(){super.install(),this.premiereStore.state.status||(this.dc.viewpoint=(0,l.U5)((()=>this.progressStore.viewpoint),(t=>{
if(t)if(this.templateNodes.container.parentElement)this.dmCmdStore.creator&&this.appendViewPoint(t);else{this.nodes.controlBottomLeft.style.flex="1";this.nodes.controlBottomLeft.querySelector(`.${this.ppx}-ctrl-time`).insertAdjacentElement("afterend",this.templateNodes.container),this.appendViewPoint(t),this.addEventListener(),this.track.e("ctrl_viewpoint_show")}else this.templateNodes.container.parentElement&&(this.nodes.controlBottomLeft.style.flex="",this.templateNodes.container.parentElement.removeChild(this.templateNodes.container),this.removeEventListener(),this.templateNodes=this.viewpointTemplate())}),{fireImmediately:!0}),this.dc.activeDivisionIndex=(0,l.U5)((()=>({index:this.progressStore.activeDivisionIndex,segmentData:this.progressStore.segmentData})),(t=>{const{index:e,segmentData:i}=t;if(null!=e){const t=`章节 · ${i[e].content}`;this.templateNodes.resultText.innerHTML!==t&&(this.templateNodes.resultText.innerHTML=t)}else this.templateNodes.resultText.innerHTML="高能"}),{fireImmediately:!0}),this.dc.screenKind=(0,l.U5)((()=>this.uiStore.screenKind),(()=>{this.uiStore.isFullView?this.nodes.controlBottomLeft.style.flex="":this.progressStore.viewpoint&&(this.nodes.controlBottomLeft.style.flex="1")}),{fireImmediately:!0}))}viewpointTemplate(){const t=(0,r.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-viewpoint">\n                <div class="${this.ppx}-ctrl-viewpoint-inner">\n                    <div class="${this.ppx}-ctrl-viewpoint-content">\n                        <span class="${this.ppx}-ctrl-viewpoint-text">高能</span>\n                        <span class="${this.ppx}-ctrl-viewpoint-icon">\n                            <span class="${this.cpx}-svg-icon">${s()}</span>\n                        </span>\n                        <div class="${this.ppx}-ctrl-viewpoint-menu-wrap">\n                            <ul class="${this.ppx}-ctrl-viewpoint-menu"></ul>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-viewpoint-content`),i=t.querySelector(`.${this.ppx}-ctrl-viewpoint-text`),n=t.querySelector(`.${this.ppx}-ctrl-viewpoint-menu`),o=t.querySelector(`.${this.ppx}-ctrl-viewpoint-menu-wrap`);return{content:e,container:t,resultText:i,menu:n,menuWrap:o}}appendViewPoint(t){var e;let i="";for(let n=0;n<t.length;n++){const r=t[n];i+=`<li class="${this.ppx}-ctrl-viewpoint-menu-item" data-time="${r.from}">\n                <span class="${this.ppx}-ctrl-viewpoint-menu-item-team ${"red"===r.team_type?"team-red":"team-blue"}" style="opacity: ${r.team_name?1:0}; display: ${r.team_name?"inline-block":"none"}" data-time="${r.from}">${null!=(e=r.team_name)?e:""}</span>\n                <span class="${this.ppx}-ctrl-viewpoint-menu-item-content" data-time="${r.from}">${r.content}</span>\n            </li>`}this.templateNodes.menu.innerHTML=i,this.templateNodes.menu.querySelectorAll(`.${this.ppx}-ctrl-viewpoint-menu-item`).forEach((t=>{t.onclick=this.seekHandler})),t.length>10&&(this.viewpointScroll=new A.Z(this.templateNodes.menuWrap,{preventDefault:!1}))}updateMenuPosition(){const t=this.templateNodes.content.clientWidth;this.templateNodes.menuWrap.style.left=(t-210)/2+"px"}addEventListener(){this.templateNodes.content.addEventListener("click",this.openAuxiliaryHotspot),this.templateNodes.content.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.content.addEventListener("mouseleave",this.onMouseLeaveHandler),this.templateNodes.menu.querySelectorAll(`.${this.ppx}-ctrl-viewpoint-menu-item`).forEach((t=>{t.onclick=this.seekHandler}))}removeEventListener(){this.templateNodes.content.removeEventListener("click",this.openAuxiliaryHotspot),this.templateNodes.content.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.content.removeEventListener("mouseleave",this.onMouseLeaveHandler),this.templateNodes.menu.querySelectorAll(`.${this.ppx}-ctrl-viewpoint-menu-item`).forEach((t=>{t.onclick=null}))}openAuxiliaryHotspot(){this.track.e("unfullscreen_watch_point_list_show"),this.progressStore.setState({viewpointListOpened:!0})}seekHandler(t){t.stopPropagation();const e=+t.currentTarget.dataset.time;isNaN(e)||(this.portStore.seekAutoplay(e,"CtrlViewpoint"),this.track.e("fullscreen_watch_point_list_click"))}onMouseEnterHandler(t){t.stopPropagation(),this.clearTimer(),this.showTimer=window.setTimeout((()=>{this.templateNodes.container.classList.add(this.showToken)}),this.configStore.onlyTouchMode?0:300)}onMouseLeaveHandler(){this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),this.configStore.onlyTouchMode?0:200)}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("fullscreen_watch_point_list_show"),this.templateNodes.container.classList.remove(this.showToken)))}onDispose(){var t;window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer),null==(t=this.viewpointScroll)||t.destroy()}onDisconnect(){var t;this.removeEventListener(),null==(t=this.viewpointScroll)||t.destroy()}}d([o.ZP],u.prototype,"openAuxiliaryHotspot",1),d([o.ZP],u.prototype,"seekHandler",1),d([o.ZP],u.prototype,"onMouseEnterHandler",1),d([o.ZP],u.prototype,"onMouseLeaveHandler",1)},17371:function(t,e,i){"use strict";i.d(e,{L:function(){return B}})
;var n=i(57012),r=i(99550),o=i(23529),a=i(46330),s=i(89262),l=i(5489),A=i(61068),c=i(22451),h=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":91,"w":88,"h":88,"nm":"音量 hover","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"路径","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":2.5,"s":[100]},{"t":7.5,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[36.014,0.007,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.99,-0.95],[0,-12.45],[11.06,-5.27],[0.95,2],[-1.99,0.95],[0,9.35],[8.28,3.96],[-0.95,1.99]],"o":[[11.04,5.28],[0,12.46],[-1.99,0.95],[-0.95,-1.99],[8.3,-3.95],[0,-9.34],[-2,-0.95],[0.95,-2]],"v":[[-6.236,-28.896],[11.984,-0.006],[-6.266,28.894],[-11.596,27.004],[-9.706,21.674],[3.984,-0.006],[-9.676,-21.676],[-11.566,-27.006]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-7,"op":28,"st":-23,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"路径","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":0,"s":[100]},{"t":5,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[28,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-5.92],[4.78,-2.77]],"o":[[4.78,2.77],[0,5.92],[0,0]],"v":[[-4,-13.859],[4,0.001],[-4,13.861]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-7,"op":28,"st":-23,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"外部音浪 2","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28.334,"s":[0]},{"t":41.478515625,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.227,"y":1},"t":28.334,"s":[20.015,0.007,0],"to":[2.665,0,0],"ti":[-2.665,0,0]},{"t":46.48046875,"s":[36.004,0.007,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[1.002,1.002,0]},"t":28.334,"s":[79.017,79.017,100]},{"t":46.48046875,"s":[100.021,100.021,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.99,-0.95],[0,-12.45],[11.06,-5.27],[0.95,2],[-1.99,0.95],[0,9.35],[8.28,3.96],[-0.95,1.99]],"o":[[11.04,5.28],[0,12.46],[-1.99,0.95],[-0.95,-1.99],[8.3,-3.95],[0,-9.34],[-2,-0.95],[0.95,-2]],"v":[[-6.236,-28.896],[11.984,-0.006],[-6.266,28.894],[-11.596,27.004],[-9.706,21.674],[3.984,-0.006],[-9.676,-21.676],[-11.566,-27.006]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":34,"op":131,"st":24,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"内部音浪 2","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30.188,"s":[0]},{"t":43.333984375,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.201,"y":1},"t":30.188,"s":[12.749,0,0],"to":[2.542,0,0],"ti":[-2.542,0,0]},{"t":48.333984375,"s":[28.003,0,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[1.058,1.058,0]},"t":30.188,"s":[79.017,79.017,100]},{"t":48.333984375,"s":[100.021,100.021,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-5.92],[4.78,-2.77]],"o":[[4.78,2.77],[0,5.92],[0,0]],"v":[[-4,-13.859],[4,0.001],[-4,13.861]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":39,"op":129,"st":23,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"外部音浪","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6.666,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":14.465,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":17.648,"s":[100]},{"t":26.3984375,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.907},"t":6.666,"s":[20.015,0.007,0],"to":[3.859,0,0],"ti":[-3.859,0,0]},{"t":24.166015625,"s":[43.171,0.007,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0.336,0.336,0]},"t":6.666,"s":[79.017,79.017,100]},{"t":24.166015625,"s":[135.021,135.021,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.99,-0.95],[0,-12.45],[11.06,-5.27],[0.95,2],[-1.99,0.95],[0,9.35],[8.28,3.96],[-0.95,1.99]],"o":[[11.04,5.28],[0,12.46],[-1.99,0.95],[-0.95,-1.99],[8.3,-3.95],[0,-9.34],[-2,-0.95],[0.95,-2]],"v":[[-6.236,-28.896],[11.984,-0.006],[-6.266,28.894],[-11.596,27.004],[-9.706,21.674],[3.984,-0.006],[-9.676,-21.676],[-11.566,-27.006]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":68,"st":-2,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"内部音浪","parent":8,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":10.533,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":18.334,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":22.916,"s":[100]},{"t":31.666015625,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.296,"y":1},"t":10.533,"s":[12.749,0,0],"to":[3.209,0,0],"ti":[-3.209,0,0]},{"t":27.291015625,"s":[32.003,0,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0.346,0.346,0]},"t":10.533,"s":[79.017,79.017,100]},{"t":27.291015625,"s":[134.021,134.021,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-5.92],[4.78,-2.77]],"o":[[4.78,2.77],[0,5.92],[0,0]],"v":[[-4,-13.859],[4,0.001],[-4,13.861]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":15,"op":68,"st":-1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":" 主体 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44.002,0],"ix":2},"a":{"a":0,"k":[16,0.002,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":13.334,"s":[88,88,100]},{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":30.834,"s":[88,88,100]},{"t":50,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.69,-0.86],[0,-0.45],[0,0],[1.1,0],[0.36,0.28],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,0]],"o":[[0.29,0.36],[0,0],[0,1.1],[-0.45,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0],[0,0],[0.86,-0.69]],"v":[[15.56,-25.089],[16,-23.839],[16,23.841],[14,25.841],[12.75,25.401],[-4,12.001],[-8,12.001],[-16,4.001],[-16,-3.999],[-8,-11.999],[-4,-11.999],[12.75,-25.399]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-8,"op":315,"st":15,"bm":0},{"ddd":0,"ind":8,"ty":3,"nm":" 主体 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44.002,0],"ix":2},"a":{"a":0,"k":[16,0.002,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[100,100,100]},{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":6.871,"s":[75,75,100]},{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":30.834,"s":[75,75,100]},{"t":50,"s":[100,100,100]}],"ix":6}},"ao":0,"ip":-8,"op":315,"st":15,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":" 音量 hover 时间重映射","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44,0],"ix":2},"a":{"a":0,"k":[44,44,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"tm":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[1]},{"t":300,"s":[5]}],"ix":2},"w":88,"h":88,"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),d=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":60,"w":88,"h":88,"nm":"静音消除hover","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.502,"y":0},"o":{"x":0.167,"y":0},"t":0,"s":[41.172,46.828,0],"to":[0.417,0.417,0],"ti":[0.417,0.5,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.205},"t":8.666,"s":[43.672,49.328,0],"to":[-0.417,-0.5,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":14,"s":[38.672,43.828,0],"to":[-0.417,-0.417,0],"ti":[-0.417,-0.5,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":16.666,"s":[41.172,46.828,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.502,"y":0},"o":{"x":0.167,"y":0},"t":22.666,"s":[41.172,46.828,0],"to":[0.417,0.417,0],"ti":[0.417,0.5,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.205},"t":31.334,"s":[43.672,49.328,0],"to":[-0.417,-0.5,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":36.666,"s":[38.672,43.828,0],"to":[-0.417,-0.417,0],"ti":[-0.417,-0.5,0]},{"t":40,"s":[41.172,46.828,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.5,-0.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-66,"op":183,"st":-83,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path 3","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.222,"y":0},"o":{"x":0.167,"y":0},"t":0,"s":[47.422,41.703,0],"to":[0.667,0.667,0],"ti":[0.417,0.5,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.159},"t":8.666,"s":[51.422,45.703,0],"to":[-0.417,-0.5,0],"ti":[0.667,0.667,0]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":14,"s":[44.922,38.703,0],"to":[-0.667,-0.667,0],"ti":[-0.417,-0.5,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":16.666,"s":[47.422,41.703,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.222,"y":0},"o":{"x":0.167,"y":0},"t":22.666,"s":[47.422,41.703,0],"to":[0.667,0.667,0],"ti":[0.417,0.5,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.159},"t":31.334,"s":[51.422,45.703,0],"to":[-0.417,-0.5,0],"ti":[0.667,0.667,0]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":36.666,"s":[44.922,38.703,0],"to":[-0.667,-0.667,0],"ti":[-0.417,-0.5,0]},{"t":40,"s":[47.422,41.703,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-0.5,-0.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-66,"op":183,"st":-83,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"形状","tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.333,"y":0.876},"o":{"x":0.167,"y":0},"t":0,"s":[44,44,0],"to":[1.167,1.25,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":0.884},"o":{"x":0.275,"y":0.021},"t":7.334,"s":[51,51.5,0],"to":[0,0,0],"ti":[-0.352,-0.352,0]},{"i":{"x":0.833,"y":1},"o":{"x":0.111,"y":0.066},"t":12.666,"s":[38.039,38.539,0],"to":[0.748,0.748,0],"ti":[-0.417,-0.417,0]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":16.666,"s":[44,44,0],"to":[0.133,0.133,0],"ti":[0,0,0]},{"i":{"x":0.333,"y":0.904},"o":{"x":0.167,"y":0},"t":22.666,"s":[44,44,0],"to":[1.667,1.75,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":0.923},"o":{"x":0.275,"y":0.014},"t":30.666,"s":[54,54.5,0],"to":[0,0,0],"ti":[-0.352,-0.352,0]},{"i":{"x":0.833,"y":1},"o":{"x":0.111,"y":0.04},"t":36,"s":[34.289,34.789,0],"to":[0.748,0.748,0],"ti":[-0.417,-0.417,0]},{"t":40,"s":[44,44,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-5.92],[4.78,-2.77]],"o":[[4.78,2.77],[0,5.92],[0,0]],"v":[[8,-13.866],[16,-0.006],[8,13.854]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-1.99,-0.95],[0,-12.45],[11.06,-5.27],[0.95,2],[-1.99,0.95],[0,9.35],[8.28,3.96],[-0.95,1.99]],"o":[[11.04,5.28],[0,12.46],[-1.99,0.95],[-0.95,-1.99],[8.3,-3.95],[0,-9.34],[-2,-0.95],[0.95,-2]],"v":[[13.778,-28.896],[31.998,-0.006],[13.748,28.894],[8.418,27.004],[10.308,21.674],[23.998,-0.006],[10.338,-21.676],[8.448,-27.006]],"c":true},"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[-0.69,-0.86],[0,-0.45],[0,0],[1.1,0],[0.36,0.28],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,0]],"o":[[0.29,0.36],[0,0],[0,1.1],[-0.45,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0],[0,0],[0.86,-0.69]],"v":[[-0.44,-25.096],[0,-23.846],[0,23.834],[-2,25.834],[-3.25,25.394],[-20,11.994],[-24,11.994],[-32,3.994],[-32,-4.006],[-24,-12.006],[-20,-12.006],[-3.25,-25.406]],"c":true},"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":-83,"op":239,"st":-83,"bm":0}],"markers":[]}'),u=JSON.parse('{"v":"5.6.7","fr":60,"ip":83,"op":100,"w":88,"h":88,"nm":"音量切换 （夜店版","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.305},"o":{"x":0.333,"y":0},"t":18,"s":[41.172,46.828,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.265},"t":25,"s":[43.672,49.328,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[41.172,46.828,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0},"o":{"x":0.167,"y":0},"t":83,"s":[41.172,46.828,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.43},"t":91,"s":[43.672,49.328,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99,"s":[41.172,46.828,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"t":97,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path 3","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.305},"o":{"x":0.333,"y":0},"t":18,"s":[47.422,41.703,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.265},"t":25,"s":[49.922,44.203,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[47.422,41.703,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0},"o":{"x":0.167,"y":0},"t":83,"s":[47.422,41.703,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.43},"t":91,"s":[49.922,44.203,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99,"s":[47.422,41.703,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"t":97,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"形状","tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":0.751},"o":{"x":0.667,"y":0},"t":17,"s":[44,44,0],"to":[0.133,0.133,0],"ti":[-0.352,-0.352,0]},{"i":{"x":0.333,"y":0.917},"o":{"x":0.111,"y":0.064},"t":20,"s":[39.789,39.789,0],"to":[0.748,0.748,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.275,"y":0.101},"t":25,"s":[49,49,0],"to":[0,0,0],"ti":[0.833,0.833,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[44,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.333,"y":0.816},"o":{"x":0.167,"y":0},"t":83,"s":[44,44,0],"to":[0.833,0.833,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":0.847},"o":{"x":0.275,"y":0.027},"t":90.199,"s":[49,49,0],"to":[0,0,0],"ti":[-0.352,-0.352,0]},{"i":{"x":0.833,"y":1},"o":{"x":0.111,"y":0.093},"t":95,"s":[39.789,39.789,0],"to":[0.748,0.748,0],"ti":[-0.417,-0.417,0]},{"t":99,"s":[44,44,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-5.92],[4.78,-2.77]],"o":[[4.78,2.77],[0,5.92],[0,0]],"v":[[8,-13.866],[16,-0.006],[8,13.854]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-1.99,-0.95],[0,-12.45],[11.06,-5.27],[0.95,2],[-1.99,0.95],[0,9.35],[8.28,3.96],[-0.95,1.99]],"o":[[11.04,5.28],[0,12.46],[-1.99,0.95],[-0.95,-1.99],[8.3,-3.95],[0,-9.34],[-2,-0.95],[0.95,-2]],"v":[[13.778,-28.896],[31.998,-0.006],[13.748,28.894],[8.418,27.004],[10.308,21.674],[23.998,-0.006],[10.338,-21.676],[8.448,-27.006]],"c":true},"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[-0.69,-0.86],[0,-0.45],[0,0],[1.1,0],[0.36,0.28],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,0]],"o":[[0.29,0.36],[0,0],[0,1.1],[-0.45,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0],[0,0],[0.86,-0.69]],"v":[[-0.44,-25.096],[0,-23.846],[0,23.834],[-2,25.834],[-3.25,25.394],[-20,11.994],[-24,11.994],[-32,3.994],[-32,-4.006],[-24,-12.006],[-20,-12.006],[-3.25,-25.406]],"c":true},"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),p=JSON.parse('{"v":"5.6.7","fr":60,"ip":17,"op":34,"w":88,"h":88,"nm":"音量切换 （夜店版","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.305},"o":{"x":0.333,"y":0},"t":18,"s":[41.172,46.828,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.265},"t":25,"s":[43.672,49.328,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[41.172,46.828,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0},"o":{"x":0.167,"y":0},"t":83,"s":[41.172,46.828,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.43},"t":91,"s":[43.672,49.328,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99,"s":[41.172,46.828,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"t":97,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path 3","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0,"y":0.305},"o":{"x":0.333,"y":0},"t":18,"s":[47.422,41.703,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.265},"t":25,"s":[49.922,44.203,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[47.422,41.703,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.225,"y":0},"o":{"x":0.167,"y":0},"t":83,"s":[47.422,41.703,0],"to":[0.417,0.417,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0.43},"t":91,"s":[49.922,44.203,0],"to":[0,0,0],"ti":[0.417,0.417,0]},{"t":99,"s":[47.422,41.703,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":0.333,"y":0},"t":17,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":23,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.167,"y":0},"t":92,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[36.77,31.11],[31.11,36.77]],"c":true}]},{"t":97,"s":[{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-36.77,-31.11],[-31.11,-36.77],[-31.105,-36.733],[-36.765,-31.073]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Path","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":17,"op":97,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"形状","tt":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":0.751},"o":{"x":0.667,"y":0},"t":17,"s":[44,44,0],"to":[0.133,0.133,0],"ti":[-0.352,-0.352,0]},{"i":{"x":0.333,"y":0.917},"o":{"x":0.111,"y":0.064},"t":20,"s":[39.789,39.789,0],"to":[0.748,0.748,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.275,"y":0.101},"t":25,"s":[49,49,0],"to":[0,0,0],"ti":[0.833,0.833,0]},{"i":{"x":0,"y":0},"o":{"x":0.167,"y":0.167},"t":33,"s":[44,44,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.333,"y":0.816},"o":{"x":0.167,"y":0},"t":83,"s":[44,44,0],"to":[0.833,0.833,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":0.847},"o":{"x":0.275,"y":0.027},"t":90.199,"s":[49,49,0],"to":[0,0,0],"ti":[-0.352,-0.352,0]},{"i":{"x":0.833,"y":1},"o":{"x":0.111,"y":0.093},"t":95,"s":[39.789,39.789,0],"to":[0.748,0.748,0],"ti":[-0.417,-0.417,0]},{"t":99,"s":[44,44,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-5.92],[4.78,-2.77]],"o":[[4.78,2.77],[0,5.92],[0,0]],"v":[[8,-13.866],[16,-0.006],[8,13.854]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-1.99,-0.95],[0,-12.45],[11.06,-5.27],[0.95,2],[-1.99,0.95],[0,9.35],[8.28,3.96],[-0.95,1.99]],"o":[[11.04,5.28],[0,12.46],[-1.99,0.95],[-0.95,-1.99],[8.3,-3.95],[0,-9.34],[-2,-0.95],[0.95,-2]],"v":[[13.778,-28.896],[31.998,-0.006],[13.748,28.894],[8.418,27.004],[10.308,21.674],[23.998,-0.006],[10.338,-21.676],[8.448,-27.006]],"c":true},"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[-0.69,-0.86],[0,-0.45],[0,0],[1.1,0],[0.36,0.28],[0,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,0]],"o":[[0.29,0.36],[0,0],[0,1.1],[-0.45,0],[0,0],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0],[0,0],[0.86,-0.69]],"v":[[-0.44,-25.096],[0,-23.846],[0,23.834],[-2,25.834],[-3.25,25.394],[-20,11.994],[-24,11.994],[-32,3.994],[-32,-4.006],[-24,-12.006],[-20,-12.006],[-3.25,-25.406]],"c":true},"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),g=i(20733),f=i.n(g),m=i(1811),y=i.n(m),b=i(9339),v=i.n(b),E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,C=(t,e,i,n)=>{
for(var r,o=n>1?void 0:n?I(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&E(e,i,o),o};class B extends l.vq{constructor(t){super(t),this.templateNodes=this.volumeTemplate(),this.lastVolume=null,this.showToken=`${this.spx}-show`,this.mutedToken=`${this.spx}-muted`,(0,c.rC)(this)}get realVolume(){return this.settingStore.getRealVolume()}install(){super.install(),this.templateNodes.container.parentElement||(this.configStore.embeddedEnv||this.configStore.isChannel(l.u5.Mini_Site)?(this.templateNodes.volumeIcon.innerHTML=`<span class="${this.cpx}-svg-icon">${y()}</span>`,this.templateNodes.mutedIcon.innerHTML=`<span class="${this.cpx}-svg-icon">${v()}</span>`):this.createHoverAnimation(),this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.addEventListener()),this.dc.volume=(0,c.U5)((()=>this.realVolume),(t=>{this.setVolume(t)}),{fireImmediately:!0})}volumeTemplate(){const t=(0,r.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-volume" role="button" aria-label="音量" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-volume-icon"><span class="${this.cpx}-svg-icon"></span></div>\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-muted-icon"><span class="${this.cpx}-svg-icon"></span></div>\n                <div class="${this.ppx}-ctrl-volume-box">\n                    <div class="${this.ppx}-ctrl-volume-number"></div>\n                    <div class="${this.ppx}-ctrl-volume-progress"></div>\n                </div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-volume-icon`),i=t.querySelector(`.${this.ppx}-ctrl-muted-icon`),o=t.querySelector(`.${this.ppx}-ctrl-volume-number`),a=t.querySelector(`.${this.ppx}-ctrl-volume-progress`),s=(0,A.Z)((t=>{this.track.e("vol",Math.floor(t))}),500);return this.volumeProgress=new n.iR(a,{trackLength:60,vertical:!0,value:0}).on("move",(t=>{this.settingStore.setVolume(t.value,!0)})).on("change",(t=>{this.settingStore.setVolume(t.value,!0),s(100*t.value)})),{container:t,volumeIcon:e,mutedIcon:i,volumeNumber:o,progress:a}}createAnimation(t){t.container.innerHTML="";return f().loadAnimation({name:t.name,container:t.container,renderer:"svg",loop:!1,autoplay:!1,animationData:t.animationData})}createHoverAnimation(){return this.volumeAnimation&&this.mutedAnimation||(this.volumeAnimation=this.createAnimation({name:"volume",animationData:h,container:this.templateNodes.volumeIcon.querySelector(`.${this.cpx}-svg-icon`)}),this.mutedAnimation=this.createAnimation({name:"muted",animationData:d,container:this.templateNodes.mutedIcon.querySelector(`.${this.cpx}-svg-icon`)}),this.volumeAnimation.addEventListener("complete",this.onVolumeCompleteHandler),this.mutedAnimation.addEventListener("complete",this.onMutedCompleteHandler)),this.settingStore.getRealVolume()<=0?this.mutedAnimation:this.volumeAnimation}setVolume(t){null==this.lastVolume&&(this.lastVolume=t),t>1?t=1:t<0&&(t=0),t?((0,o.N)(this.templateNodes.mutedIcon),(0,a.o)(this.templateNodes.volumeIcon)):((0,o.N)(this.templateNodes.volumeIcon),(0,a.o)(this.templateNodes.mutedIcon)),0===this.lastVolume&&t>0&&(this.volumeAnimation=null,this.configStore.embeddedEnv||this.configStore.isChannel(l.u5.Mini_Site)||this.createAnimation({name:"mutedToVolume",animationData:u,container:this.templateNodes.volumeIcon.querySelector(`.${this.cpx}-svg-icon`)}).play()),this.lastVolume>0&&0===t&&(this.mutedAnimation=null,this.configStore.embeddedEnv||this.configStore.isChannel(l.u5.Mini_Site)||this.createAnimation({name:"volumeToMuted",animationData:p,container:this.templateNodes.mutedIcon.querySelector(`.${this.cpx}-svg-icon`)}).play()),this.lastVolume=t,this.volumeProgress.value(t,!0),this.templateNodes.volumeNumber.innerHTML=`${Math.round(100*t)}`}clearTimer(t=!0){this.showTimer&&window.clearTimeout(this.showTimer),this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null,t||(this.track.e("vol_show"),this.templateNodes.container.classList.remove(this.showToken)))}onMouseEnterHandler(){this.clearTimer(),this.showTimer=window.setTimeout((()=>{this.templateNodes.container.classList.add(this.showToken)}),this.configStore.onlyTouchMode?0:300),this.configStore.embeddedEnv||this.configStore.isChannel(l.u5.Mini_Site)||this.createHoverAnimation().play()}onMouseLeaveHandler(){this.hideTimer=window.setTimeout((()=>{this.clearTimer(!1)}),this.configStore.onlyTouchMode?0:200)}onClickHandler(t){this.settingStore.getRealVolume()?this.settingStore.setVolume(0):this.settingStore.setVolume(this.localStore.get().media.nonzeroVol,!0)}onVolumeCompleteHandler(){var t;null==(t=this.volumeAnimation)||t.stop()}onMutedCompleteHandler(){var t;null==(t=this.mutedAnimation)||t.stop()}addEventListener(){this.templateNodes.volumeIcon.addEventListener("click",this.onClickHandler),this.templateNodes.mutedIcon.addEventListener("click",this.onClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.addEventListener("mouseleave",this.onMouseLeaveHandler)}removeEventListener(){this.templateNodes.volumeIcon.removeEventListener("click",this.onClickHandler),this.templateNodes.mutedIcon.removeEventListener("click",this.onClickHandler),this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.templateNodes.container.removeEventListener("mouseleave",this.onMouseLeaveHandler),this.volumeAnimation&&(this.volumeAnimation.removeEventListener("complete",this.onVolumeCompleteHandler),this.mutedAnimation.removeEventListener("complete",this.onMutedCompleteHandler))}onDispose(){window.clearTimeout(this.showTimer),window.clearTimeout(this.hideTimer)}onDisconnect(){this.removeEventListener()}}C([c.Fl],B.prototype,"realVolume",1),C([s.ZP],B.prototype,"onMouseEnterHandler",1),C([s.ZP],B.prototype,"onMouseLeaveHandler",1),C([s.ZP],B.prototype,"onClickHandler",1),C([s.ZP],B.prototype,"onVolumeCompleteHandler",1),C([s.ZP],B.prototype,"onMutedCompleteHandler",1)},40912:function(t,e,i){"use strict";i.d(e,{N:function(){return p}})
;var n=i(5489),r=i(99550),o=i(89262),a=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":81,"w":88,"h":88,"nm":"网页 全屏 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[23.25,-24.75],[31.25,-16.75],[31.25,16.625],[23.25,24.625],[-23.25,24.625],[-31.25,16.625],[-31.25,-16.75],[-23.25,-24.75]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[23.25,-24.75],[31.25,-16.75],[31.25,16.625],[23.25,24.625],[-23.25,24.625],[-31.25,16.625],[-31.25,-16.75],[-23.25,-24.75]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.625,-30.75],[39.625,-22.75],[39.625,22.75],[31.625,30.75],[-32,30.75],[-40,22.75],[-40,-22.75],[-32,-30.75]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.625,-30.75],[39.625,-22.75],[39.625,22.75],[31.625,30.75],[-32,30.75],[-40,22.75],[-40,-22.75],[-32,-30.75]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[23.25,-24.75],[31.25,-16.75],[31.25,16.625],[23.25,24.625],[-23.25,24.625],[-31.25,16.625],[-31.25,-16.75],[-23.25,-24.75]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[23.25,-24.75],[31.25,-16.75],[31.25,16.625],[23.25,24.625],[-23.25,24.625],[-31.25,16.625],[-31.25,-16.75],[-23.25,-24.75]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[26,4],[22,4],[20.01,5.85],[20,6],[20,12],[14,12],[12.01,13.85],[12,14],[12,18],[13.85,19.99],[14,20],[26,20],[27.99,18.15],[28,18],[28,6],[26.15,4.01]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,1.875],[13.125,1.875],[11.135,3.725],[11.125,3.875],[11.125,9.875],[5.125,9.875],[3.135,11.725],[3.125,11.875],[3.125,15.875],[4.975,17.865],[5.125,17.875],[17.125,17.875],[19.115,16.025],[19.125,15.875],[19.125,3.875],[17.275,1.885]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,1.875],[13.125,1.875],[11.135,3.725],[11.125,3.875],[11.125,9.875],[5.125,9.875],[3.135,11.725],[3.125,11.875],[3.125,15.875],[4.975,17.865],[5.125,17.875],[17.125,17.875],[19.115,16.025],[19.125,15.875],[19.125,3.875],[17.275,1.885]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,9],[26.75,9],[24.76,10.85],[24.75,11],[24.75,17],[18.75,17],[16.76,18.85],[16.75,19],[16.75,23],[18.6,24.99],[18.75,25],[30.75,25],[32.74,23.15],[32.75,23],[32.75,11],[30.9,9.01]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,9],[26.75,9],[24.76,10.85],[24.75,11],[24.75,17],[18.75,17],[16.76,18.85],[16.75,19],[16.75,23],[18.6,24.99],[18.75,25],[30.75,25],[32.74,23.15],[32.75,23],[32.75,11],[30.9,9.01]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,1.875],[13.125,1.875],[11.135,3.725],[11.125,3.875],[11.125,9.875],[5.125,9.875],[3.135,11.725],[3.125,11.875],[3.125,15.875],[4.975,17.865],[5.125,17.875],[17.125,17.875],[19.115,16.025],[19.125,15.875],[19.125,3.875],[17.275,1.885]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,1.875],[13.125,1.875],[11.135,3.725],[11.125,3.875],[11.125,9.875],[5.125,9.875],[3.135,11.725],[3.125,11.875],[3.125,15.875],[4.975,17.865],[5.125,17.875],[17.125,17.875],[19.115,16.025],[19.125,15.875],[19.125,3.875],[17.275,1.885]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[26,4],[22,4],[20.01,5.85],[20,6],[20,12],[14,12],[12.01,13.85],[12,14],[12,18],[13.85,19.99],[14,20],[26,20],[27.99,18.15],[28,18],[28,6],[26.15,4.01]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-22,4],[-26,4],[-27.99,5.85],[-28,6],[-28,18],[-26.15,19.99],[-26,20],[-14,20],[-12.01,18.15],[-12,18],[-12,14],[-13.85,12.01],[-14,12],[-20,12],[-20,6],[-21.85,4.01]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-12.938,1.885],[-16.938,1.885],[-18.928,3.735],[-18.938,3.885],[-18.938,15.885],[-17.087,17.875],[-16.938,17.885],[-4.938,17.885],[-2.947,16.035],[-2.938,15.885],[-2.938,11.885],[-4.788,9.895],[-4.938,9.885],[-10.938,9.885],[-10.938,3.885],[-12.788,1.895]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-12.938,1.885],[-16.938,1.885],[-18.928,3.735],[-18.938,3.885],[-18.938,15.885],[-17.087,17.875],[-16.938,17.885],[-4.938,17.885],[-2.947,16.035],[-2.938,15.885],[-2.938,11.885],[-4.788,9.895],[-4.938,9.885],[-10.938,9.885],[-10.938,3.885],[-12.788,1.895]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-26.938,9.02],[-30.938,9.02],[-32.928,10.87],[-32.938,11.02],[-32.938,23.02],[-31.087,25.01],[-30.938,25.02],[-18.938,25.02],[-16.947,23.17],[-16.938,23.02],[-16.938,19.02],[-18.788,17.03],[-18.938,17.02],[-24.938,17.02],[-24.938,11.02],[-26.788,9.03]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-26.938,9.02],[-30.938,9.02],[-32.928,10.87],[-32.938,11.02],[-32.938,23.02],[-31.087,25.01],[-30.938,25.02],[-18.938,25.02],[-16.947,23.17],[-16.938,23.02],[-16.938,19.02],[-18.788,17.03],[-18.938,17.02],[-24.938,17.02],[-24.938,11.02],[-26.788,9.03]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-12.938,1.885],[-16.938,1.885],[-18.928,3.735],[-18.938,3.885],[-18.938,15.885],[-17.087,17.875],[-16.938,17.885],[-4.938,17.885],[-2.947,16.035],[-2.938,15.885],[-2.938,11.885],[-4.788,9.895],[-4.938,9.885],[-10.938,9.885],[-10.938,3.885],[-12.788,1.895]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-12.938,1.885],[-16.938,1.885],[-18.928,3.735],[-18.938,3.885],[-18.938,15.885],[-17.087,17.875],[-16.938,17.885],[-4.938,17.885],[-2.947,16.035],[-2.938,15.885],[-2.938,11.885],[-4.788,9.895],[-4.938,9.885],[-10.938,9.885],[-10.938,3.885],[-12.788,1.895]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-22,4],[-26,4],[-27.99,5.85],[-28,6],[-28,18],[-26.15,19.99],[-26,20],[-14,20],[-12.01,18.15],[-12,18],[-12,14],[-13.85,12.01],[-14,12],[-20,12],[-20,6],[-21.85,4.01]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[26,-20],[14,-20],[12.01,-18.15],[12,-18],[12,-14],[13.85,-12.01],[14,-12],[20,-12],[20,-6],[21.85,-4.01],[22,-4],[26,-4],[27.99,-5.85],[28,-6],[28,-18],[26.15,-19.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,-17.625],[5.125,-17.625],[3.135,-15.775],[3.125,-15.625],[3.125,-11.625],[4.975,-9.635],[5.125,-9.625],[11.125,-9.625],[11.125,-3.625],[12.975,-1.635],[13.125,-1.625],[17.125,-1.625],[19.115,-3.475],[19.125,-3.625],[19.125,-15.625],[17.275,-17.615]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,-17.625],[5.125,-17.625],[3.135,-15.775],[3.125,-15.625],[3.125,-11.625],[4.975,-9.635],[5.125,-9.625],[11.125,-9.625],[11.125,-3.625],[12.975,-1.635],[13.125,-1.625],[17.125,-1.625],[19.115,-3.475],[19.125,-3.625],[19.125,-15.625],[17.275,-17.615]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,-24.75],[18.75,-24.75],[16.76,-22.9],[16.75,-22.75],[16.75,-18.75],[18.6,-16.76],[18.75,-16.75],[24.75,-16.75],[24.75,-10.75],[26.6,-8.76],[26.75,-8.75],[30.75,-8.75],[32.74,-10.6],[32.75,-10.75],[32.75,-22.75],[30.9,-24.74]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,-24.75],[18.75,-24.75],[16.76,-22.9],[16.75,-22.75],[16.75,-18.75],[18.6,-16.76],[18.75,-16.75],[24.75,-16.75],[24.75,-10.75],[26.6,-8.76],[26.75,-8.75],[30.75,-8.75],[32.74,-10.6],[32.75,-10.75],[32.75,-22.75],[30.9,-24.74]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,-17.625],[5.125,-17.625],[3.135,-15.775],[3.125,-15.625],[3.125,-11.625],[4.975,-9.635],[5.125,-9.625],[11.125,-9.625],[11.125,-3.625],[12.975,-1.635],[13.125,-1.625],[17.125,-1.625],[19.115,-3.475],[19.125,-3.625],[19.125,-15.625],[17.275,-17.615]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.125,-17.625],[5.125,-17.625],[3.135,-15.775],[3.125,-15.625],[3.125,-11.625],[4.975,-9.635],[5.125,-9.625],[11.125,-9.625],[11.125,-3.625],[12.975,-1.635],[13.125,-1.625],[17.125,-1.625],[19.115,-3.475],[19.125,-3.625],[19.125,-15.625],[17.275,-17.615]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[26,-20],[14,-20],[12.01,-18.15],[12,-18],[12,-14],[13.85,-12.01],[14,-12],[20,-12],[20,-6],[21.85,-4.01],[22,-4],[26,-4],[27.99,-5.85],[28,-6],[28,-18],[26.15,-19.99]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 4","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-14,-20],[-26,-20],[-27.99,-18.15],[-28,-18],[-28,-6],[-26.15,-4.01],[-26,-4],[-22,-4],[-20.01,-5.85],[-20,-6],[-20,-12],[-14,-12],[-12.01,-13.85],[-12,-14],[-12,-18],[-13.85,-19.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-4.938,-17.615],[-16.938,-17.615],[-18.928,-15.765],[-18.938,-15.615],[-18.938,-3.615],[-17.087,-1.625],[-16.938,-1.615],[-12.938,-1.615],[-10.947,-3.465],[-10.938,-3.615],[-10.938,-9.615],[-4.938,-9.615],[-2.947,-11.465],[-2.938,-11.615],[-2.938,-15.615],[-4.788,-17.605]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-4.938,-17.615],[-16.938,-17.615],[-18.928,-15.765],[-18.938,-15.615],[-18.938,-3.615],[-17.087,-1.625],[-16.938,-1.615],[-12.938,-1.615],[-10.947,-3.465],[-10.938,-3.615],[-10.938,-9.615],[-4.938,-9.615],[-2.947,-11.465],[-2.938,-11.615],[-2.938,-15.615],[-4.788,-17.605]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.938,-24.73],[-30.938,-24.73],[-32.928,-22.88],[-32.938,-22.73],[-32.938,-10.73],[-31.087,-8.74],[-30.938,-8.73],[-26.938,-8.73],[-24.947,-10.58],[-24.938,-10.73],[-24.938,-16.73],[-18.938,-16.73],[-16.947,-18.58],[-16.938,-18.73],[-16.938,-22.73],[-18.788,-24.72]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.938,-24.73],[-30.938,-24.73],[-32.928,-22.88],[-32.938,-22.73],[-32.938,-10.73],[-31.087,-8.74],[-30.938,-8.73],[-26.938,-8.73],[-24.947,-10.58],[-24.938,-10.73],[-24.938,-16.73],[-18.938,-16.73],[-16.947,-18.58],[-16.938,-18.73],[-16.938,-22.73],[-18.788,-24.72]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-4.938,-17.615],[-16.938,-17.615],[-18.928,-15.765],[-18.938,-15.615],[-18.938,-3.615],[-17.087,-1.625],[-16.938,-1.615],[-12.938,-1.615],[-10.947,-3.465],[-10.938,-3.615],[-10.938,-9.615],[-4.938,-9.615],[-2.947,-11.465],[-2.938,-11.615],[-2.938,-15.615],[-4.788,-17.605]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-4.938,-17.615],[-16.938,-17.615],[-18.928,-15.765],[-18.938,-15.615],[-18.938,-3.615],[-17.087,-1.625],[-16.938,-1.615],[-12.938,-1.615],[-10.947,-3.465],[-10.938,-3.615],[-10.938,-9.615],[-4.938,-9.615],[-2.947,-11.465],[-2.938,-11.615],[-2.938,-15.615],[-4.788,-17.605]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-14,-20],[-26,-20],[-27.99,-18.15],[-28,-18],[-28,-6],[-26.15,-4.01],[-26,-4],[-22,-4],[-20.01,-5.85],[-20,-6],[-20,-12],[-14,-12],[-12.01,-13.85],[-12,-14],[-12,-18],[-13.85,-19.99]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 5","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":7,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),s=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":81,"w":88,"h":88,"nm":"网页 退出全屏","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.875,-30.875],[39.875,-22.875],[39.875,23],[31.875,31],[-31.75,31],[-39.75,23],[-39.75,-22.875],[-31.75,-30.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.875,-30.875],[39.875,-22.875],[39.875,23],[31.875,31],[-31.75,31],[-39.75,23],[-39.75,-22.875],[-31.75,-30.875]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[23,-24.125],[31,-16.125],[31,16.375],[23,24.375],[-23,24.375],[-31,16.375],[-31,-16.125],[-23,-24.125]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[23,-24.125],[31,-16.125],[31,16.375],[23,24.375],[-23,24.375],[-31,16.375],[-31,-16.125],[-23,-24.125]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.875,-30.875],[39.875,-22.875],[39.875,23],[31.875,31],[-31.75,31],[-39.75,23],[-39.75,-22.875],[-31.75,-30.875]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.875,-30.875],[39.875,-22.875],[39.875,23],[31.875,31],[-31.75,31],[-39.75,23],[-39.75,-22.875],[-31.75,-30.875]],"c":true}],"e":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[26,4],[14,4],[12.01,5.85],[12,6],[12,18],[13.85,19.99],[14,20],[18,20],[19.99,18.15],[20,18],[20,12],[26,12],[27.99,10.15],[28,10],[28,6],[26.15,4.01]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,9.25],[18.75,9.25],[16.76,11.1],[16.75,11.25],[16.75,23.25],[18.6,25.24],[18.75,25.25],[22.75,25.25],[24.74,23.4],[24.75,23.25],[24.75,17.25],[30.75,17.25],[32.74,15.4],[32.75,15.25],[32.75,11.25],[30.9,9.26]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,9.25],[18.75,9.25],[16.76,11.1],[16.75,11.25],[16.75,23.25],[18.6,25.24],[18.75,25.25],[22.75,25.25],[24.74,23.4],[24.75,23.25],[24.75,17.25],[30.75,17.25],[32.74,15.4],[32.75,15.25],[32.75,11.25],[30.9,9.26]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.25,2.25],[5.25,2.25],[3.26,4.1],[3.25,4.25],[3.25,16.25],[5.1,18.24],[5.25,18.25],[9.25,18.25],[11.24,16.4],[11.25,16.25],[11.25,10.25],[17.25,10.25],[19.24,8.4],[19.25,8.25],[19.25,4.25],[17.4,2.26]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[17.25,2.25],[5.25,2.25],[3.26,4.1],[3.25,4.25],[3.25,16.25],[5.1,18.24],[5.25,18.25],[9.25,18.25],[11.24,16.4],[11.25,16.25],[11.25,10.25],[17.25,10.25],[19.24,8.4],[19.25,8.25],[19.25,4.25],[17.4,2.26]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,9.25],[18.75,9.25],[16.76,11.1],[16.75,11.25],[16.75,23.25],[18.6,25.24],[18.75,25.25],[22.75,25.25],[24.74,23.4],[24.75,23.25],[24.75,17.25],[30.75,17.25],[32.74,15.4],[32.75,15.25],[32.75,11.25],[30.9,9.26]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[30.75,9.25],[18.75,9.25],[16.76,11.1],[16.75,11.25],[16.75,23.25],[18.6,25.24],[18.75,25.25],[22.75,25.25],[24.74,23.4],[24.75,23.25],[24.75,17.25],[30.75,17.25],[32.74,15.4],[32.75,15.25],[32.75,11.25],[30.9,9.26]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[26,4],[14,4],[12.01,5.85],[12,6],[12,18],[13.85,19.99],[14,20],[18,20],[19.99,18.15],[20,18],[20,12],[26,12],[27.99,10.15],[28,10],[28,6],[26.15,4.01]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-14,4],[-26,4],[-27.99,5.85],[-28,6],[-28,10],[-26.15,11.99],[-26,12],[-20,12],[-20,18],[-18.15,19.99],[-18,20],[-14,20],[-12.01,18.15],[-12,18],[-12,6],[-13.85,4.01]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,9.25],[-30.875,9.25],[-32.865,11.1],[-32.875,11.25],[-32.875,15.25],[-31.025,17.24],[-30.875,17.25],[-24.875,17.25],[-24.875,23.25],[-23.025,25.24],[-22.875,25.25],[-18.875,25.25],[-16.885,23.4],[-16.875,23.25],[-16.875,11.25],[-18.725,9.26]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,9.25],[-30.875,9.25],[-32.865,11.1],[-32.875,11.25],[-32.875,15.25],[-31.025,17.24],[-30.875,17.25],[-24.875,17.25],[-24.875,23.25],[-23.025,25.24],[-22.875,25.25],[-18.875,25.25],[-16.885,23.4],[-16.875,23.25],[-16.875,11.25],[-18.725,9.26]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-5.5,2.25],[-17.5,2.25],[-19.49,4.1],[-19.5,4.25],[-19.5,8.25],[-17.65,10.24],[-17.5,10.25],[-11.5,10.25],[-11.5,16.25],[-9.65,18.24],[-9.5,18.25],[-5.5,18.25],[-3.51,16.4],[-3.5,16.25],[-3.5,4.25],[-5.35,2.26]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-5.5,2.25],[-17.5,2.25],[-19.49,4.1],[-19.5,4.25],[-19.5,8.25],[-17.65,10.24],[-17.5,10.25],[-11.5,10.25],[-11.5,16.25],[-9.65,18.24],[-9.5,18.25],[-5.5,18.25],[-3.51,16.4],[-3.5,16.25],[-3.5,4.25],[-5.35,2.26]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,9.25],[-30.875,9.25],[-32.865,11.1],[-32.875,11.25],[-32.875,15.25],[-31.025,17.24],[-30.875,17.25],[-24.875,17.25],[-24.875,23.25],[-23.025,25.24],[-22.875,25.25],[-18.875,25.25],[-16.885,23.4],[-16.875,23.25],[-16.875,11.25],[-18.725,9.26]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,9.25],[-30.875,9.25],[-32.865,11.1],[-32.875,11.25],[-32.875,15.25],[-31.025,17.24],[-30.875,17.25],[-24.875,17.25],[-24.875,23.25],[-23.025,25.24],[-22.875,25.25],[-18.875,25.25],[-16.885,23.4],[-16.875,23.25],[-16.875,11.25],[-18.725,9.26]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-14,4],[-26,4],[-27.99,5.85],[-28,6],[-28,10],[-26.15,11.99],[-26,12],[-20,12],[-20,18],[-18.15,19.99],[-18,20],[-14,20],[-12.01,18.15],[-12,18],[-12,6],[-13.85,4.01]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[18,-20],[14,-20],[12.01,-18.15],[12,-18],[12,-6],[13.85,-4.01],[14,-4],[26,-4],[27.99,-5.85],[28,-6],[28,-10],[26.15,-11.99],[26,-12],[20,-12],[20,-18],[18.15,-19.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[22.75,-25],[18.75,-25],[16.76,-23.15],[16.75,-23],[16.75,-11],[18.6,-9.01],[18.75,-9],[30.75,-9],[32.74,-10.85],[32.75,-11],[32.75,-15],[30.9,-16.99],[30.75,-17],[24.75,-17],[24.75,-23],[22.9,-24.99]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[22.75,-25],[18.75,-25],[16.76,-23.15],[16.75,-23],[16.75,-11],[18.6,-9.01],[18.75,-9],[30.75,-9],[32.74,-10.85],[32.75,-11],[32.75,-15],[30.9,-16.99],[30.75,-17],[24.75,-17],[24.75,-23],[22.9,-24.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[9.25,-17.5],[5.25,-17.5],[3.26,-15.65],[3.25,-15.5],[3.25,-3.5],[5.1,-1.51],[5.25,-1.5],[17.25,-1.5],[19.24,-3.35],[19.25,-3.5],[19.25,-7.5],[17.4,-9.49],[17.25,-9.5],[11.25,-9.5],[11.25,-15.5],[9.4,-17.49]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[9.25,-17.5],[5.25,-17.5],[3.26,-15.65],[3.25,-15.5],[3.25,-3.5],[5.1,-1.51],[5.25,-1.5],[17.25,-1.5],[19.24,-3.35],[19.25,-3.5],[19.25,-7.5],[17.4,-9.49],[17.25,-9.5],[11.25,-9.5],[11.25,-15.5],[9.4,-17.49]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[22.75,-25],[18.75,-25],[16.76,-23.15],[16.75,-23],[16.75,-11],[18.6,-9.01],[18.75,-9],[30.75,-9],[32.74,-10.85],[32.75,-11],[32.75,-15],[30.9,-16.99],[30.75,-17],[24.75,-17],[24.75,-23],[22.9,-24.99]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[22.75,-25],[18.75,-25],[16.76,-23.15],[16.75,-23],[16.75,-11],[18.6,-9.01],[18.75,-9],[30.75,-9],[32.74,-10.85],[32.75,-11],[32.75,-15],[30.9,-16.99],[30.75,-17],[24.75,-17],[24.75,-23],[22.9,-24.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07],[0,0],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[18,-20],[14,-20],[12.01,-18.15],[12,-18],[12,-6],[13.85,-4.01],[14,-4],[26,-4],[27.99,-5.85],[28,-6],[28,-10],[26.15,-11.99],[26,-12],[20,-12],[20,-18],[18.15,-19.99]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 4","mn":"ADBE Vector Shape - Group","hd":false},{"ind":4,"ty":"sh","ix":5,"ks":{"a":1,"k":[{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":0,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-14,-20],[-18,-20],[-19.99,-18.15],[-20,-18],[-20,-12],[-26,-12],[-27.99,-10.15],[-28,-10],[-28,-6],[-26.15,-4.01],[-26,-4],[-14,-4],[-12.01,-5.85],[-12,-6],[-12,-18],[-13.85,-19.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,-25],[-22.875,-25],[-24.865,-23.15],[-24.875,-23],[-24.875,-17],[-30.875,-17],[-32.865,-15.15],[-32.875,-15],[-32.875,-11],[-31.025,-9.01],[-30.875,-9],[-18.875,-9],[-16.885,-10.85],[-16.875,-11],[-16.875,-23],[-18.725,-24.99]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":10,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,-25],[-22.875,-25],[-24.865,-23.15],[-24.875,-23],[-24.875,-17],[-30.875,-17],[-32.865,-15.15],[-32.875,-15],[-32.875,-11],[-31.025,-9.01],[-30.875,-9],[-18.875,-9],[-16.885,-10.85],[-16.875,-11],[-16.875,-23],[-18.725,-24.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-5.5,-17.5],[-9.5,-17.5],[-11.49,-15.65],[-11.5,-15.5],[-11.5,-9.5],[-17.5,-9.5],[-19.49,-7.65],[-19.5,-7.5],[-19.5,-3.5],[-17.65,-1.51],[-17.5,-1.5],[-5.5,-1.5],[-3.51,-3.35],[-3.5,-3.5],[-3.5,-15.5],[-5.35,-17.49]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":20,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-5.5,-17.5],[-9.5,-17.5],[-11.49,-15.65],[-11.5,-15.5],[-11.5,-9.5],[-17.5,-9.5],[-19.49,-7.65],[-19.5,-7.5],[-19.5,-3.5],[-17.65,-1.51],[-17.5,-1.5],[-5.5,-1.5],[-3.51,-3.35],[-3.5,-3.5],[-3.5,-15.5],[-5.35,-17.49]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,-25],[-22.875,-25],[-24.865,-23.15],[-24.875,-23],[-24.875,-17],[-30.875,-17],[-32.865,-15.15],[-32.875,-15],[-32.875,-11],[-31.025,-9.01],[-30.875,-9],[-18.875,-9],[-16.885,-10.85],[-16.875,-11],[-16.875,-23],[-18.725,-24.99]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":1,"y":0},"t":30,"s":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-18.875,-25],[-22.875,-25],[-24.865,-23.15],[-24.875,-23],[-24.875,-17],[-30.875,-17],[-32.865,-15.15],[-32.875,-15],[-32.875,-11],[-31.025,-9.01],[-30.875,-9],[-18.875,-9],[-16.885,-10.85],[-16.875,-11],[-16.875,-23],[-18.725,-24.99]],"c":true}],"e":[{"i":[[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[0,0],[0.07,-1.03],[0,0],[0,0],[-1.03,-0.07],[0,0],[0,0],[-0.07,1.03],[0,0],[0,0],[1.03,0.07]],"o":[[0,0],[-1.05,0],[0,0],[0,0],[0,0],[-1.05,0],[0,0],[0,0],[0,1.05],[0,0],[0,0],[1.05,0],[0,0],[0,0],[0,-1.05],[0,0]],"v":[[-14,-20],[-18,-20],[-19.99,-18.15],[-20,-18],[-20,-12],[-26,-12],[-27.99,-10.15],[-28,-10],[-28,-6],[-26.15,-4.01],[-26,-4],[-14,-4],[-12.01,-5.85],[-12,-6],[-12,-18],[-13.85,-19.99]],"c":true}]},{"t":40}],"ix":2},"nm":"路径 5","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":7,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),l=i(22451),A=i(20733),c=i.n(A),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(t,e,i,n)=>{
for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&h(e,i,o),o};class p extends n.vq{constructor(){super(...arguments),this.templateNodes=this.webscreenTemplate(),this.enteredToken=this.spx+"-entered"}install(){super.install(),this.configStore.controlsList.has("noScreenWeb")||(this.templateNodes.container.parentElement||(this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.createAnimation(),this.addEventListener()),this.dc.webscreen=(0,l.U5)((()=>this.uiStore.state.mainScreen),(t=>{const e=this.uiStore.isFullView?28:19;t===n.dY.Web?(this.updateTooltip(!0,e),this.templateNodes.container.classList.add(this.enteredToken)):(this.updateTooltip(!1,e),this.templateNodes.container.classList.remove(this.enteredToken))}),{fireImmediately:!0}))}webscreenTemplate(){const t=(0,r.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-web" role="button" aria-label="网页全屏" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-web-enter"><span class="${this.cpx}-svg-icon"></span></div>\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-web-leave"><span class="${this.cpx}-svg-icon"></span></div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-web-enter`),i=t.querySelector(`.${this.ppx}-ctrl-web-leave`);return{container:t,enterIcon:e,leaveIcon:i}}createAnimation(){this.webscreenEnterAnimation=c().loadAnimation({name:"webscreenEnter",container:this.templateNodes.enterIcon.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:a}),this.webscreenLeaveAnimation=c().loadAnimation({name:"webscreenLeave",container:this.templateNodes.leaveIcon.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:s})}updateTooltip(t,e){this.tooltipStore.remove("ctrl:webscreen"),this.tooltipStore.create({name:"ctrl:webscreen",title:t?"退出网页全屏":"网页全屏",target:this.templateNodes.container,position:n.DU.TopCenter,gap:e,tip:!0})}onClickHandler(){let t=0;this.uiStore.state.mainScreen===n.dY.Web?(t=0,this.portStore.reqStatue(null)):(t=1,this.portStore.reqStatue(n.dY.Web)),this.track.e("web_fullscreen",t)}onMouseEnterHandler(){this.uiStore.state.mainScreen===n.dY.Web?this.webscreenLeaveAnimation.play():this.webscreenEnterAnimation.play()}onWebscreenEnterCompleteHandler(){this.webscreenEnterAnimation.stop()}onWebscreenLeaveCompleteHandler(){this.webscreenLeaveAnimation.stop()}addEventListener(){this.templateNodes.container.addEventListener("click",this.onClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.webscreenEnterAnimation.addEventListener("complete",this.onWebscreenEnterCompleteHandler),this.webscreenLeaveAnimation.addEventListener("complete",this.onWebscreenLeaveCompleteHandler)}removeEventListener(){this.templateNodes.container.removeEventListener("click",this.onClickHandler),this.webscreenEnterAnimation&&(this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.webscreenEnterAnimation.removeEventListener("complete",this.onWebscreenEnterCompleteHandler),this.webscreenLeaveAnimation.removeEventListener("complete",this.onWebscreenLeaveCompleteHandler))}onDisconnect(){this.removeEventListener()}}u([o.ZP],p.prototype,"onClickHandler",1),u([o.ZP],p.prototype,"onMouseEnterHandler",1),u([o.ZP],p.prototype,"onWebscreenEnterCompleteHandler",1),u([o.ZP],p.prototype,"onWebscreenLeaveCompleteHandler",1)},86971:function(t,e,i){"use strict";i.d(e,{B:function(){return p}})
;var n=i(5489),r=i(99550),o=i(89262),a=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":61,"w":88,"h":88,"nm":"宽屏hover","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":0.571},"o":{"x":0.42,"y":0},"t":0,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.18},"t":10.094,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[20.656,-28],[28.656,-20],[28.656,20],[20.656,28],[-20.188,28],[-28.188,20],[-28.188,-20],[-20.188,-28]],"c":true}]},{"i":{"x":0,"y":0.571},"o":{"x":0.42,"y":0},"t":19.332,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.125,-28],[39.125,-20],[39.125,20],[31.125,28],[-31.125,28],[-39.125,20],[-39.125,-20],[-31.125,-28]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.18},"t":29.906,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[20.656,-28],[28.656,-20],[28.656,20],[20.656,28],[-20.188,28],[-28.188,20],[-28.188,-20],[-20.188,-28]],"c":true}]},{"t":40,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":1,"k":[{"i":{"x":0,"y":0.629},"o":{"x":0.42,"y":0},"t":0,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[-12.442,-12.702],[-15.142,-12.822],[-15.272,-12.702],[-26.582,-1.392],[-26.702,1.308],[-26.582,1.438],[-15.272,12.748],[-12.572,12.868],[-12.442,12.748],[-9.612,9.918],[-9.502,7.218],[-9.612,7.088],[-16.682,0.018],[-9.612,-7.052],[-9.502,-9.752],[-9.612,-9.882]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.156},"t":10.094,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[-7.91,-12.702],[-10.61,-12.822],[-10.74,-12.702],[-22.05,-1.392],[-22.17,1.308],[-22.05,1.438],[-10.74,12.748],[-8.04,12.868],[-7.91,12.748],[-5.08,9.918],[-4.97,7.218],[-5.08,7.088],[-12.15,0.018],[-5.08,-7.052],[-4.97,-9.752],[-5.08,-9.882]],"c":true}]},{"i":{"x":0,"y":0.629},"o":{"x":0.42,"y":0},"t":19.332,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[-21.815,-12.702],[-24.515,-12.822],[-24.645,-12.702],[-35.955,-1.392],[-36.075,1.308],[-35.955,1.438],[-24.645,12.748],[-21.945,12.868],[-21.815,12.748],[-18.985,9.918],[-18.875,7.218],[-18.985,7.088],[-26.055,0.018],[-18.985,-7.052],[-18.875,-9.752],[-18.985,-9.882]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.156},"t":29.906,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[-7.91,-12.702],[-10.61,-12.822],[-10.74,-12.702],[-22.05,-1.392],[-22.17,1.308],[-22.05,1.438],[-10.74,12.748],[-8.04,12.868],[-7.91,12.748],[-5.08,9.918],[-4.97,7.218],[-5.08,7.088],[-12.15,0.018],[-5.08,-7.052],[-4.97,-9.752],[-5.08,-9.882]],"c":true}]},{"t":40,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[-12.442,-12.702],[-15.142,-12.822],[-15.272,-12.702],[-26.582,-1.392],[-26.702,1.308],[-26.582,1.438],[-15.272,12.748],[-12.572,12.868],[-12.442,12.748],[-9.612,9.918],[-9.502,7.218],[-9.612,7.088],[-16.682,0.018],[-9.612,-7.052],[-9.502,-9.752],[-9.612,-9.882]],"c":true}]}],"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":1,"k":[{"i":{"x":0,"y":0.61},"o":{"x":0.42,"y":0},"t":0,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[12.438,-12.702],[9.618,-9.882],[9.618,-7.052],[16.688,0.018],[9.618,7.088],[9.618,9.918],[12.438,12.748],[15.268,12.748],[26.588,1.438],[26.588,-1.392],[15.268,-12.702]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.164},"t":10.094,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[7.751,-12.702],[4.931,-9.882],[4.931,-7.052],[12.001,0.018],[4.931,7.088],[4.931,9.918],[7.751,12.748],[10.581,12.748],[21.901,1.438],[21.901,-1.392],[10.581,-12.702]],"c":true}]},{"i":{"x":0,"y":0.61},"o":{"x":0.42,"y":0},"t":19.332,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[21.5,-12.702],[18.68,-9.882],[18.68,-7.052],[25.75,0.018],[18.68,7.088],[18.68,9.918],[21.5,12.748],[24.33,12.748],[35.65,1.438],[35.65,-1.392],[24.33,-12.702]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.164},"t":29.906,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[7.751,-12.702],[4.931,-9.882],[4.931,-7.052],[12.001,0.018],[4.931,7.088],[4.931,9.918],[7.751,12.748],[10.581,12.748],[21.901,1.438],[21.901,-1.392],[10.581,-12.702]],"c":true}]},{"t":40,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[12.438,-12.702],[9.618,-9.882],[9.618,-7.052],[16.688,0.018],[9.618,7.088],[9.618,9.918],[12.438,12.748],[15.268,12.748],[26.588,1.438],[26.588,-1.392],[15.268,-12.702]],"c":true}]}],"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),s=JSON.parse('{"v":"5.6.7","fr":60,"ip":0,"op":61,"w":88,"h":88,"nm":"宽屏 退出hover ","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[44,44,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0,"y":0.61},"o":{"x":0.42,"y":0},"t":0,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.164},"t":10,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.125,-28],[39.125,-20],[39.125,20],[31.125,28],[-31.125,28],[-39.125,20],[-39.125,-20],[-31.125,-28]],"c":true}]},{"i":{"x":0,"y":0.592},"o":{"x":0.42,"y":0},"t":20,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[20.656,-28],[28.656,-20],[28.656,20],[20.656,28],[-20.188,28],[-28.188,20],[-28.188,-20],[-20.188,-28]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.172},"t":30,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[31.125,-28],[39.125,-20],[39.125,20],[31.125,28],[-31.125,28],[-39.125,20],[-39.125,-20],[-31.125,-28]],"c":true}]},{"t":40,"s":[{"i":[[0,0],[0,-4.42],[0,0],[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0]],"o":[[4.42,0],[0,0],[0,4.42],[0,0],[-4.42,0],[0,0],[0,-4.42],[0,0]],"v":[[28,-28],[36,-20],[36,20],[28,28],[-28,28],[-36,20],[-36,-20],[-28,-28]],"c":true}]}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":1,"k":[{"i":{"x":0,"y":0.63},"o":{"x":0.42,"y":0},"t":0,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[-19.762,-12.702],[-22.582,-9.882],[-22.582,-7.052],[-15.512,0.018],[-22.582,7.088],[-22.582,9.918],[-19.762,12.748],[-16.932,12.748],[-5.612,1.438],[-5.612,-1.392],[-16.932,-12.702]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.16},"t":10,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[-25.34,-12.643],[-28.16,-9.823],[-28.16,-6.993],[-21.09,0.077],[-28.16,7.147],[-28.16,9.977],[-25.34,12.807],[-22.51,12.807],[-11.19,1.497],[-11.19,-1.333],[-22.51,-12.643]],"c":true}]},{"i":{"x":0,"y":0.63},"o":{"x":0.42,"y":0},"t":20,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[-16.387,-12.671],[-19.207,-9.851],[-19.207,-7.021],[-12.137,0.049],[-19.207,7.119],[-19.207,9.949],[-16.387,12.779],[-13.557,12.779],[-2.237,1.469],[-2.237,-1.361],[-13.557,-12.671]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.155},"t":30,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[-25.34,-12.643],[-28.16,-9.823],[-28.16,-6.993],[-21.09,0.077],[-28.16,7.147],[-28.16,9.977],[-25.34,12.807],[-22.51,12.807],[-11.19,1.497],[-11.19,-1.333],[-22.51,-12.643]],"c":true}]},{"t":40,"s":[{"i":[[0.79,-0.79],[0,0],[-0.79,-0.78],[0,0],[0,0],[-0.79,-0.78],[0,0],[-0.78,0.78],[0,0],[0.78,0.78],[0,0]],"o":[[0,0],[-0.79,0.79],[0,0],[0,0],[-0.79,0.79],[0,0],[0.79,0.78],[0,0],[0.78,-0.78],[0,0],[-0.78,-0.79]],"v":[[-19.762,-12.702],[-22.582,-9.882],[-22.582,-7.052],[-15.512,0.018],[-22.582,7.088],[-22.582,9.918],[-19.762,12.748],[-16.932,12.748],[-5.612,1.438],[-5.612,-1.392],[-16.932,-12.702]],"c":true}]}],"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":1,"k":[{"i":{"x":0,"y":0.63},"o":{"x":0.42,"y":0},"t":0,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[19.758,-12.702],[17.058,-12.822],[16.928,-12.702],[5.618,-1.392],[5.498,1.308],[5.618,1.438],[16.928,12.748],[19.628,12.868],[19.758,12.748],[22.588,9.918],[22.698,7.218],[22.588,7.088],[15.518,0.018],[22.588,-7.052],[22.698,-9.752],[22.588,-9.882]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.16},"t":10,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[25.008,-12.673],[22.308,-12.793],[22.178,-12.673],[10.868,-1.363],[10.748,1.337],[10.868,1.467],[22.178,12.777],[24.878,12.897],[25.008,12.777],[27.838,9.947],[27.948,7.247],[27.838,7.117],[20.768,0.047],[27.838,-7.023],[27.948,-9.723],[27.838,-9.853]],"c":true}]},{"i":{"x":0,"y":0.63},"o":{"x":0.42,"y":0},"t":20,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[16.508,-12.653],[13.808,-12.773],[13.678,-12.653],[2.368,-1.343],[2.248,1.357],[2.368,1.487],[13.678,12.797],[16.378,12.917],[16.508,12.797],[19.338,9.967],[19.448,7.267],[19.338,7.137],[12.268,0.067],[19.338,-7.003],[19.448,-9.703],[19.338,-9.833]],"c":true}]},{"i":{"x":0,"y":1},"o":{"x":0.42,"y":0.155},"t":30,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[25.008,-12.673],[22.308,-12.793],[22.178,-12.673],[10.868,-1.363],[10.748,1.337],[10.868,1.467],[22.178,12.777],[24.878,12.897],[25.008,12.777],[27.838,9.947],[27.948,7.247],[27.838,7.117],[20.768,0.047],[27.838,-7.023],[27.948,-9.723],[27.838,-9.853]],"c":true}]},{"t":40,"s":[{"i":[[0,0],[0.78,-0.66],[0,0],[0,0],[-0.66,-0.79],[0,0],[0,0],[-0.79,0.66],[0,0],[0,0],[0.67,0.79],[0,0],[0,0],[0,0],[0.67,0.79],[0,0]],"o":[[-0.74,-0.74],[0,0],[0,0],[-0.74,0.74],[0,0],[0,0],[0.74,0.74],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0],[0,0],[0.74,-0.74],[0,0],[0,0]],"v":[[19.758,-12.702],[17.058,-12.822],[16.928,-12.702],[5.618,-1.392],[5.498,1.308],[5.618,1.438],[16.928,12.748],[19.628,12.868],[19.758,12.748],[22.588,9.918],[22.698,7.218],[22.588,7.088],[15.518,0.018],[22.588,-7.052],[22.698,-9.752],[22.588,-9.882]],"c":true}]}],"ix":2},"nm":"路径 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}'),l=i(22451),A=i(20733),c=i.n(A),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(t,e,i,n)=>{
for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&h(e,i,o),o};class p extends n.vq{constructor(){super(...arguments),this.templateNodes=this.widescreenTemplate(),this.enteredToken=this.spx+"-entered"}install(){super.install(),this.premiereStore.state.status||this.configStore.controlsList.has("noScreenWide")||(this.templateNodes.container.parentElement||(this.nodes.controlBottomRight.appendChild(this.templateNodes.container),this.createAnimation(),this.addEventListener()),this.dc.widescreen=(0,l.U5)((()=>this.uiStore.state.mainScreen),(t=>{const e=this.uiStore.isFullView?28:19;t===n.dY.Wide?(this.updateTooltip(!0,e),this.templateNodes.container.classList.add(this.enteredToken)):(this.updateTooltip(!1,e),this.templateNodes.container.classList.remove(this.enteredToken))}),{fireImmediately:!0}))}widescreenTemplate(){const t=(0,r.t)(`\n            <div class="${this.ppx}-ctrl-btn ${this.ppx}-ctrl-wide" role="button" aria-label="宽屏" tabindex="0">\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-wide-enter"><span class="${this.cpx}-svg-icon"></span></div>\n                <div class="${this.ppx}-ctrl-btn-icon ${this.ppx}-ctrl-wide-leave"><span class="${this.cpx}-svg-icon"></span></div>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-ctrl-wide-enter`),i=t.querySelector(`.${this.ppx}-ctrl-wide-leave`);return{container:t,enterIcon:e,leaveIcon:i}}createAnimation(){this.widescreenEnterAnimation=c().loadAnimation({name:"widescreenEnter",container:this.templateNodes.enterIcon.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:a}),this.widescreenLeaveAnimation=c().loadAnimation({name:"widescreenLeave",container:this.templateNodes.leaveIcon.querySelector(`.${this.cpx}-svg-icon`),renderer:"svg",loop:!1,autoplay:!1,animationData:s})}updateTooltip(t,e){this.tooltipStore.remove("ctrl:widescreen"),this.tooltipStore.create({tip:!0,gap:e,name:"ctrl:widescreen",title:t?"退出宽屏":"宽屏模式",target:this.templateNodes.container,position:n.DU.TopCenter})}onClickHandler(){let t=0;this.uiStore.state.mainScreen===n.dY.Wide?(t=0,this.portStore.reqStatue(null)):(t=1,this.portStore.reqStatue(n.dY.Wide)),this.track.e("widescreen",t)}onMouseEnterHandler(){this.uiStore.state.mainScreen===n.dY.Wide?this.widescreenLeaveAnimation.play():this.widescreenEnterAnimation.play()}onWideEnterCompleteHandler(){this.widescreenEnterAnimation.stop()}onWideLeaveCompleteHandler(){this.widescreenLeaveAnimation.stop()}addEventListener(){this.templateNodes.container.addEventListener("click",this.onClickHandler),this.templateNodes.container.addEventListener("mouseenter",this.onMouseEnterHandler),this.widescreenEnterAnimation.addEventListener("complete",this.onWideEnterCompleteHandler),this.widescreenLeaveAnimation.addEventListener("complete",this.onWideLeaveCompleteHandler)}removeEventListener(){this.templateNodes.container.removeEventListener("click",this.onClickHandler),this.widescreenEnterAnimation&&(this.templateNodes.container.removeEventListener("mouseenter",this.onMouseEnterHandler),this.widescreenEnterAnimation.removeEventListener("complete",this.onWideEnterCompleteHandler),this.widescreenLeaveAnimation.removeEventListener("complete",this.onWideLeaveCompleteHandler))}onDisconnect(){this.removeEventListener()}}u([o.ZP],p.prototype,"onClickHandler",1),u([o.ZP],p.prototype,"onMouseEnterHandler",1),u([o.ZP],p.prototype,"onWideEnterCompleteHandler",1),u([o.ZP],p.prototype,"onWideLeaveCompleteHandler",1)},30451:function(t,e,i){"use strict";i.d(e,{i:function(){return A}});var n=i(22451),r=i(5489),o=i(46330),a=i(23529),s=i(99149),l=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class A extends r.vq{static checkLocalNetworkPermission(){return l(this,null,(function*(){try{if("permissions"in navigator&&"query"in navigator.permissions){return"denied"!==(yield navigator.permissions.query({name:"local-network-access"})).state}}catch(t){console.log("[ErrorSign] Local network permission query not supported")}return!0}))}install(){super.install(),this.initUI(),this.dc.errorCode=(0,n.U5)((()=>this.errorStore.state.code),(t=>l(this,null,(function*(){var e;try{const{errorCode:i,root:n,displayId:s,host:l,localNetworkTip:c,retryBtn:h}=this.element;if(t&&n){const d=this.errorStore.state.playErrorVideo;if(!(yield A.checkLocalNetworkPermission())&&(null==(e=this.errorStore.state.details)?void 0:e.includes("cn-sh-office")))n.classList.remove(`${this.ppx}-error-sign-mini`),(0,o.o)(c),(0,a.N)(i,s,l,h);else if(d){n.classList.add(`${this.ppx}-error-sign-mini`),(0,a.N)(c,h,s),i.textContent=`错误码：${t}`;const e=this.errorStore.state.details||"";l.textContent=e,e?(0,o.o)(l):(0,a.N)(l)}else{n.classList.remove(`${this.ppx}-error-sign-mini`),(0,a.N)(c),(0,o.o)(h),i.textContent=`错误码：${t}`;const e=this.configStore.session||"";s.textContent=e,e?(0,o.o)(s):(0,a.N)(s);const r=this.errorStore.state.details||"";l.textContent=r,r?(0,o.o)(l):(0,a.N)(l)}(0,o.o)(n),this.track.o(r.wM.O_Sign_Error_Code,{code:this.errorStore.state.code,details:this.errorStore.state.details||""})}else(0,a.N)(n)}catch(t){}}))),{fireImmediately:!0})}initUI(){var t;if(null==(t=this.element)?void 0:t.root)return;const e=this.tpl();this.nodes.videoArea.append(e);const i=this.nodes.videoArea.querySelector(`.${this.ppx}-error-sign`),n=i.querySelector(`.${this.ppx}-error-sign-retry-btn`);null==n||n.addEventListener("click",(()=>{this.track.o(r.wM.O_Sign_Error_Retry_Click,{code:this.errorStore.state.code,details:this.errorStore.state.details||"",aid:this.configStore.aid,cid:this.configStore.cid,onlineStatus:navigator.onLine}),window.location.reload()})),this.element={root:i,errorCode:i.querySelector(`.${this.ppx}-error-sign-code`),displayId:i.querySelector(`.${this.ppx}-error-sign-displayid`),host:i.querySelector(`.${this.ppx}-error-sign-host`),retryBtn:n,localNetworkTip:i.querySelector(`.${this.ppx}-error-sign-local-network-tip`)},(0,a.N)(i)}tpl(){const t=this.ppx,e=`\n            <div class="${t}-error-sign">\n                <div class="${t}-error-sign-content">\n                    <div class="${t}-error-sign-message">网络状况异常，请刷新后重试</div>\n                    <div class="${t}-error-sign-details">\n                        <div class="${t}-error-sign-code"></div>\n                        <div class="${t}-error-sign-displayid"></div>\n                        <div class="${t}-error-sign-host"></div>\n                    </div>\n                    <div class="${t}-error-sign-local-network-tip">\n                        <div class="${t}-error-sign-local-network-content">\n                            <div class="${t}-error-sign-local-network-title">您的浏览器还未开启本地网络访问权限，可能会影响视频内容的正常播放。</div>\n                            <div class="${t}-error-sign-local-network-steps">\n                                <p>1. 您可在浏览器通知中允许 bilibili.com 查找并连接本设备的请求；</p>\n                                <p>2. 您可进入浏览器在"设置">"隐私和安全">"网站设置">"查看各网站的权限及存储数据"找到 www.bilibili.com，在"权限"中开启"本地网络访问权限"，开启后刷新页面即可正常播放视频。</p>\n                            </div>\n                        </div>\n                        <div class="${t}-error-sign-local-network-image">\n                            <img src="https://i0.hdslb.com/bfs/activity-plat/static/20251218/38aa8c2cd2ba5ac4bb1c348540c179e9/69SYFkklcz.png" alt="本地网络权限开启示意图" />\n                        </div>\n                    </div>\n                </div>\n                <button class="${t}-error-sign-retry-btn">刷新</button>\n            </div>\n        `;return(0,s.i)(e)}onDispose(){super.onDispose(),(0,a.N)(this.element.root)}}},54878:function(t,e,i){"use strict";i.d(e,{D:function(){return m}});var n=i(5489),r=i(99149),o=i(23529),a=i(46330),s=i(22378),l=i(54888),A=i.n(l),c=i(25360),h=i.n(c),d=i(22451),u=i(20094),p=i(28759),g=i(57370),f=i(68918);class m extends n.vq{install(){super.install();const t=this.nodes.topWrap.querySelector(`.${this.ppx}-top-issue`);this.nodes.topWrap.querySelector(`.${this.ppx}-top-issue-icon`).appendChild((0,
r.i)(`<span class="${this.cpx}-svg-icon">${A()}</span>`)),t.addEventListener("click",(()=>{this.menuStore.hideAllPopupPanel(),this.menuStore.menuStore.setState({showIssue:!0}),this.track.e("player_feedback")})),this.tooltipStore.create({name:"feedback-btn",title:"反馈",target:t,position:n.DU.BottomCenter,tip:!0}),this.dc.show=(0,d.EH)((()=>{var t;this.menuStore.state.showIssue&&!this.uiStore.isTinyView?this.showBack():null==(t=this.bBack)||t.hide()})),this.dc.tinyMode=(0,d.EH)((()=>{this.uiStore.isTinyView?(0,o.N)(t):(0,a.o)(t)})),this.dc.isLoaded=(0,d.EH)((()=>{const t=this.rootStore.isLoaded?"remove":"add";this.nodes.topWrap.classList[t](`${this.ppx}-show`)}))}showBack(){if(!this.bBack){const t=this.configStore.isPcApp?t=>(0,f.x)(t,this.rootPlayer):null;this.bBack=new s.Z({close:h(),container:this.nodes.videoArea,aid:this.configStore.aid||0,cid:this.configStore.cid||0,bvid:this.configStore.bvid||"",version:"HTML5-"+this.portStore.metadata.version+"-"+this.portStore.metadata.revision,track:(t,e)=>{"load-failed"!==this.menuStore.state.showIssueFrom&&this.track.e(t,e)},closeCb:()=>{this.menuStore.setState({showIssue:!1,showIssueFrom:"default"})},submit:t=>{this.rootPlayer.emit(n.tw.Player_Submit_Feedback,new CustomEvent(n.tw.Player_Submit_Feedback,{detail:{tagId:t.tag_id,content:t.content}})),this.log.i("[tag]",JSON.stringify(t)),this.upload(t)},getPlayInfo:()=>{var t,e,i;return{cid:this.configStore.cid,url:null!=(t=this.portStore.getPlayUrl())?t:"",progress:null==(i=(e=this.portStore).getCurrentTime)?void 0:i.call(e)}},openWindow:t})}this.bBack.show()}upload(t){var e;const i=this.menuStore.state.showIssueFrom;let n=""+t.tag_id;"load-failed"===i&&(n=g.x5.FIRST_FRAME_LOADING_FAILED+""),(0,p.Dy)({appkey:"web_player",preload:{r:"upos",profile:"feedback/bup",name:"main.log"},taskType:n,file:this.rootPlayer.getFormattedLogs(),user:{mid:String((null==(e=this.userStore.info)?void 0:e.mid)||""),buvid:u.get("buvid3")}}).then((t=>{this.log.i("[upload_sucess]",JSON.stringify(t))})).catch((t=>{this.log.i("[upload_err]",JSON.stringify(t)),this.track.o("log_upload_err",{err:t})}))}onDispose(){var t;super.onDispose(),null==(t=this.bBack)||t.destroy(),this.bBack=null}}},55508:function(t,e,i){"use strict";i.d(e,{$:function(){return s}});var n=i(5489),r=i(22451),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor;class s extends n.vq{constructor(t){super(t),(0,r.rC)(this)}get maskHidden(){return this.uiStore.kind!==n.HR.Pgc&&(!this.uiStore.isFullView||this.uiStore.isTinyView)}install(){super.install();const t=this.nodes.topWrap.querySelector(`.${this.ppx}-top-mask`);this.dc.maskStatus=(0,r.EH)((()=>{t.hidden=this.maskHidden}))}}((t,e,i,n)=>{for(var r,s=n>1?void 0:n?a(e,i):e,l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n?r(e,i,s):r(s))||s);n&&s&&o(e,i,s)})([r.Fl],s.prototype,"maskHidden",1)},8690:function(t,e,i){"use strict";i.d(e,{G:function(){return m}});var n=i(5489),r=i(22451),o=i(91081),a=i.n(o),s=i(97203),l=i.n(s),A=i(23529),c=i(46330),h=i(99550),d=i(65723),u=i(89262),p=Object.defineProperty,g=Object.getOwnPropertyDescriptor,f=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?g(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&p(e,i,o),o};class m extends n.vq{constructor(){super(...arguments),this.templates=this.createMusicTemplate(),this.marqueeContentW=0,this.exposureTracked=!1,this.inited=!1}install(){super.install(),1===this.configStore.revision&&"LargeEventsPlayer"!==this.configStore.iid&&this.uiStore.kind!==n.HR.Pugv&&(this.dc.music=(0,r.U5)((()=>{var t;return null==(t=this.userStore.info)?void 0:t.bgmInfo}),(t=>{t&&t.music_title?this.init(t):this.remove()}),{fireImmediately:!0}),this.dc.tinyMode=(0,r.U5)((()=>this.uiStore.isTinyView),(t=>{t?(0,A.N)(this.nodes.topLeftMusic,this.nodes.musicWrap):(0,c.o)(this.nodes.topLeftMusic,this.nodes.musicWrap)}),{fireImmediately:!0}),this.dc.ctrlHidden=(0,r.U5)((()=>this.ctrlStore.ctrlHidden),(t=>{this.templates.marqueeContent&&(this.templates.marqueeContent.style.animationPlayState=t?"paused":"running")})))}createMusicTemplate(){const t=(0,h.t)(`\n            <div class="${this.ppx}-music">\n                <span class="${this.ppx}-music-icon"><span class="${this.cpx}-svg-icon">${a()}</span></span>\n                <div class="${this.ppx}-music-marquee">\n                    <div class="${this.ppx}-music-marquee-root"></div>\n                </div>\n                <span class="${this.ppx}-music-arrow"><span class="${this.cpx}-svg-icon">${l()}</span></span>\n            </div>\n        `),e=t.querySelector(`.${this.ppx}-music-marquee`),i=t.querySelector(`.${this.ppx}-music-marquee-root`);return{container:t,marquee:e,marqueeRoot:i}}init(t){if(!this.inited){this.inited=!0;const e=(0,h.t)(`<span class="${this.ppx}-music-marquee-content" style="opacity: 0;"></span>`);e.innerHTML=d.t`${t.music_title}`,document.body.appendChild(e),this.marqueeContentW=e.getBoundingClientRect().width,document.body.removeChild(e),this.templates.marqueeRoot.appendChild(e),e.style.opacity="1",this.templates.marqueeContent=e,this.nodes.topLeftMusic.appendChild(this.templates.container),(0,c.o)(this.nodes.topLeftMusic),this.createMarqueeAnimate(),this.templates.container.addEventListener("click",this.onClickHandler),this.nodes.musicWrap.addEventListener("click",this.onMusicWrapClickHandler),this.rootPlayer.on(n.tw.Player_Statue_Changed,this.onStatueChanged),this.nodes.videoArea.addEventListener("mousemove",this.onMouseMoveTrack)}}remove(){var t;this.inited=!1;const e=null!=(t=window.musicPcDetailPlayer)?t:window.BiliMusic;this.templates.container.parentElement&&this.templates.container.parentElement.removeChild(this.templates.container),e&&"function"==typeof e.closeMusicDetail&&e.closeMusicDetail({from:"PlayerFullScreen"}),this.marqueeContentW=0,this.exposureTracked=!1,(0,A.N)(this.nodes.topLeftMusic),this.cancelMarqueeAnimate(),this.nodes.musicWrap.innerHTML="",this.templates.container.removeEventListener("click",this.onClickHandler),this.nodes.musicWrap.removeEventListener("click",this.onMusicWrapClickHandler),this.nodes.videoArea.removeEventListener("mousemove",this.onMouseMoveTrack),this.rootPlayer.off(n.tw.Player_Statue_Changed,this.onStatueChanged),this.templates=this.createMusicTemplate()}createMarqueeAnimate(){var t,e;const i=null==(e=null==(t=this.userStore.info)?void 0:t.bgmInfo)?void 0:e.music_title,n=this.marqueeContentW,r=this.uiStore.isFullView?240:144,o=this.templates.marqueeRoot.querySelector(`.${this.ppx}-music-marquee-content`);if(n>r){this.templates.marquee.style.width=r+"px",this.templates.marqueeRoot.style.width=n+"px",this.templates.marquee.classList.add("mask"),this.templates.container.setAttribute("title",i);const t=n/50*1e3;o.innerHTML=`${i}&nbsp;${i}&nbsp;`,o.style.animation=`music-marque-animation ${t}ms linear 1s infinite`}else o.innerHTML=d.t`${i}`,this.templates.marquee.classList.remove("mask"),this.templates.container.removeAttribute("title")}resetMarqueeStatus(){this.cancelMarqueeAnimate(),this.templates.marquee.style.width="",this.templates.marqueeRoot.style.width="",this.templates.marqueeRoot.innerHTML="",this.templates.marqueeContent&&this.templates.marqueeRoot.appendChild(this.templates.marqueeContent)}cancelMarqueeAnimate(){this.templates.marqueeRoot.querySelectorAll(`.${this.ppx}-music-marquee-content`).forEach((t=>{t.style.animation=""}))}onClickHandler(){var t,e,i,r,o,a,s;this.track.e("top_music_click",{isFullView:this.uiStore.isFullView,music_id:null==(e=null==(t=this.userStore.info)?void 0:t.bgmInfo)?void 0:e.music_id}),this.trackExtra.p("video.tag.click",n.p0.Click,{content_id:null==(r=null==(i=this.userStore.info)?void 0:i.bgmInfo)?void 0:r.music_id,content_name:null==(a=null==(o=this.userStore.info)?void 0:o.bgmInfo)?void 0:a.music_title,type:"bgm",position_id:this.uiStore.isFullView?2:1});const l=null!=(s=window.musicPcDetailPlayer)?s:window.BiliMusic;this.uiStore.isFullView&&l&&"function"==typeof l.openMusicDetail&&l.openMusicDetail({music_state:0,music_info:this.userStore.info.bgmInfo},{element:this.nodes.musicWrap,aid:this.configStore.aid,cid:this.configStore.cid,from:"PlayerFullScreen"},{onClose:()=>{this.nodes.musicWrap.innerHTML=""},onJump:t=>{
1==+t?this.uiStore.isFullView&&this.portStore.reqStatue(null):2==+t&&this.uiStore.screenKind===n.dY.Full&&this.portStore.reqStatue(null)}}),this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Music,data:{isFullView:this.uiStore.isFullView,isWideView:this.uiStore.state.mainScreen===n.dY.Wide,extraInfo:{element:this.nodes.advDanmaku,aid:this.configStore.aid,cid:this.configStore.cid,from:this.uiStore.isFullView?"PlayerFullScreen":"PlayerNormal"}}}}))}onMusicWrapClickHandler(t){var e;const i=null!=(e=window.musicPcDetailPlayer)?e:window.BiliMusic;t.preventDefault(),i&&"function"==typeof i.closeMusicDetail&&i.closeMusicDetail({from:"PlayerFullScreen"})}onMouseMoveTrack(){var t,e;this.exposureTracked?this.nodes.videoArea.removeEventListener("mousemove",this.onMouseMoveTrack):(this.exposureTracked=!0,this.track.e("top_music_show",{isFullView:this.uiStore.isFullView,music_id:null==(e=null==(t=this.userStore.info)?void 0:t.bgmInfo)?void 0:e.music_id}))}onStatueChanged(){var t;const e=null!=(t=window.musicPcDetailPlayer)?t:window.BiliMusic;!this.uiStore.isFullView&&e&&"function"==typeof e.closeMusicDetail&&e.closeMusicDetail({from:"PlayerFullScreen"}),this.resetMarqueeStatus(),this.createMarqueeAnimate()}onDispose(){super.onDispose(),this.remove()}onDisconnect(){super.onDisconnect(),this.remove()}}f([u.ZP],m.prototype,"onClickHandler",1),f([u.ZP],m.prototype,"onMusicWrapClickHandler",1),f([u.ZP],m.prototype,"onMouseMoveTrack",1),f([u.ZP],m.prototype,"onStatueChanged",1)},23998:function(t,e,i){"use strict";i.d(e,{n:function(){return p}});var n=i(5489),r=i(22451),o=i(23529),a=i(46330),s=i(89262),l=i(42524),A=i.n(l),c=i(51839),h=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&h(e,i,o),o};class p extends n.vq{install(){super.install(),this.configStore.embeddedEnv?(this.nodes.topLeftTitle.insertAdjacentHTML("beforeend",this.embeddedTemplate()),this.templateNodes={icon:this.nodes.topLeftTitle.querySelector(`.${this.ppx}-top-left-logo`),title:this.nodes.topLeftTitle.querySelector(`.${this.ppx}-top-left-title-text`)}):this.templateNodes={title:this.nodes.topLeftTitle},this.dc.titleStatus=(0,r.EH)((()=>{this.configStore.embeddedEnv?this.uiStore.isTinyView?(0,o.N)(this.nodes.topLeftTitle):(0,a.o)(this.nodes.topLeftTitle):this.uiStore.isFullView&&!this.uiStore.isTinyView?(0,a.o)(this.nodes.topLeftTitle):(0,o.N)(this.nodes.topLeftTitle)})),this.dc.title=(0,r.U5)((()=>this.storyStore.state.title),(t=>{t?(this.templateNodes.icon?this.templateNodes.icon.innerHTML=A():this.configStore.embeddedEnv?this.nodes.topLeftTitle.style.fontSize="16px":this.nodes.topLeftTitle.style.fontSize="20px",this.templateNodes.title.innerText=t):this.configStore.embeddedEnv&&(0,o.N)(this.nodes.topLeftTitle)}),{fireImmediately:!0}),this.templateNodes.icon&&this.configStore.embeddedEnv>1&&(this.templateNodes.icon.style.cursor="pointer",this.templateNodes.icon.addEventListener("click",this.redirectToMain)),this.templateNodes.title&&this.configStore.embeddedEnv&&(this.templateNodes.title.addEventListener("click",this.redirectToPlayPage),this.templateNodes.title.addEventListener("mouseover",this.showFullTitle))}showFullTitle(){this.tooltipStore.remove("title:full"),this.tooltipStore.create({tip:!0,gap:10,offsetX:.3,name:"title:full",title:this.storyStore.state.title,target:this.templateNodes.title,position:n.DU.BottomCenter})}redirectToMain(){(0,c.oh)("main",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid),this.portStore.pause()}redirectToPlayPage(){const t=this.portStore.getRedirectTime();(0,c.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),this.portStore.pause()}embeddedTemplate(){const t=this.ppx;let e="";return this.configStore.embeddedEnv!==n.vt.Embedded&&(e+=`<span class="${t}-top-left-logo"></span><span class="${t}-top-left-block"></span>`),e+=`<span class="${t}-top-left-title-text"></span>`,e}onDispose(){super.onDispose(),this.templateNodes.icon&&this.configStore.embeddedEnv>1&&this.templateNodes.icon.removeEventListener("click",this.redirectToMain),this.templateNodes.title&&this.configStore.embeddedEnv&&(this.templateNodes.title.removeEventListener("click",this.redirectToPlayPage),this.templateNodes.icon.removeEventListener("click",this.redirectToMain),this.templateNodes.title.removeEventListener("mouseover",this.showFullTitle))}}u([s.ZP],p.prototype,"showFullTitle",1),u([s.ZP],p.prototype,"redirectToMain",1),u([s.ZP],p.prototype,"redirectToPlayPage",1)},66568:function(t,e,i){"use strict";i.d(e,{q:function(){return v}});var n=class{static assign(t,...e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");const i=Object(t);for(let t=0;t<e.length;t++){const n=e[t];if(null!=n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=n[t])}return i}static colorFromInt(t){return"#"+("00000"+t.toString(16)).slice(-6)}};var r=class{constructor(t,e){this.defaultOptions={id:0,uhash:"",dmid:"0",stime:0,date:0,mode:0,class:0,text:"",width:0,height:0,x:0,y:0,end:0,color:16777215,size:36,family:"黑体",stroked:!0,duration:4.5,sOpacity:1,eOpacity:1,cOpacity:1,changeOpacity:!1,zRotate:0,yRotate:0,offsetX:0,offsetY:0,xDistance:0,yDistance:0,xSpeed:0,ySpeed:0,aTime:500,aDelay:0,startX:0,startY:0,endX:0,endY:0,path:"",linearSpeedUp:0,pathArr:[],pathDistance:0,canvasW:0,canvasH:0,isTest:!1,container:document.getElementsByTagName("body")[0]},this.percent={},this.manager=t,this.options=n.assign(this.defaultOptions,e),this.mode=7,this.init()}init(){const t=this.options,e=t=>t>0&&t<1;if(t.cOpacity=t.sOpacity,t.sOpacity!==t.eOpacity&&(t.changeOpacity=!0,t.spOpacity=(t.sOpacity-t.eOpacity)/t.duration),e(t.startX)&&e(t.startY)&&!t.path&&(this.percent={},this.percent.startX=t.startX,this.percent.startY=t.startY),e(t.endX)&&e(t.endY)&&!t.path&&(this.percent=this.percent?this.percent:{},this.percent.endX=t.endX,this.percent.endY=t.endY),t.startX=e(t.startX)?t.startX*t.canvasW:t.startX,t.startY=e(t.startY)?t.startY*t.canvasH:t.startY,t.endX=e(t.endX)?t.endX*t.canvasW:t.endX,t.endY=e(t.endY)?t.endY*t.canvasH:t.endY,t.path){const e=t.path.substr(1).split("L"),i=e.length;for(let n=0;n<i;n++){let i,r;const o=e[n].split(",");t.pathArr[n-1]?(i=t.pathArr[n-1].x,r=t.pathArr[n-1].y):(i=Number(o[0]),r=Number(o[1]));const a=Math.abs(+o[0]-i),s=Math.abs(+o[1]-r);t.xDistance+=a,t.yDistance+=s,t.pathDistance+=Math.sqrt(a*a+s+s),t.pathArr.push({i:n,x:~~o[0],y:~~o[1],xDistance:a,yDistance:s,pathDistance:Math.sqrt(a*a+s*s),lastDistance:t.pathDistance})}t.startX=~~e[0].split(",")[0],t.startY=~~e[0].split(",")[1],t.endX=~~e[i-1].split(",")[0],t.endY=~~e[i-1].split(",")[1]}else t.xDistance=t.endX-t.startX,t.yDistance=t.endY-t.startY;t.x=t.startX,t.y=t.startY}refresh(t,e){const i=this.options,n=(t-i.stime)/this.manager.config.videoSpeed,r=i.aDelay/this.manager.config.videoSpeed,o=i.aTime/this.manager.config.videoSpeed;if(n<=i.duration/this.manager.config.videoSpeed&&n>=0){this.img&&!e||(this.img=this.getCanvasImg(e));const t=this.manager.containerW,a=this.manager.containerH;i.canvasW=t,i.canvasH=a,(this.percent.startX||this.percent.startY)&&(i.startX=this.percent.startX*t,i.startY=this.percent.startY*a),(this.percent.endX||this.percent.endY)&&(i.endX=this.percent.endX*t,i.endY=this.percent.endY*a),Object.keys(this.percent).length&&(i.startX+i.width>t&&this.percent.startX>.8&&this.percent.startX<1&&(i.startX-=i.width),i.startY+i.height>a&&this.percent.startY>.8&&this.percent.startY<1&&(i.startY-=i.height),i.endX+i.width>t&&this.percent.endX>.8&&this.percent.endX<1&&(i.endX-=i.width),i.endY+i.height>a&&this.percent.endY>.8&&this.percent.endY<1&&(i.endY-=i.height),i.xDistance=i.endX-i.startX,i.yDistance=i.endY-i.startY),this.drawStatus=!0,i.changeOpacity&&(i.cOpacity=i.sOpacity-n*i.spOpacity*this.manager.config.videoSpeed),n>=r&&n<=r+o?this.updatePosition(n-r):n>=r+o?(i.x=i.endX,i.y=i.endY):(i.x=i.startX,i.y=i.startY)}else this.img&&this.img.remove&&this.img.remove(),this.img=null,this.drawStatus=!1,this.options.x=this.options.startX,
this.options.y=this.options.startY}getCanvasImg(t){if(!t&&"div"===this.manager.getType())return this.getDivImg();const e=this.options,i=document.createElement("canvas"),n=i.getContext("2d"),r=e.container.offsetWidth,o=e.container.offsetHeight;let a;if(n.font="bold "+e.size+"px "+e.family+", Arial, Helvetica, sans-serif",e.width=n.measureText(e.text).width,a=this.measureText(e.text,e.size+"px "+e.family+", Arial, Helvetica, sans-serif"),e.height=a.height,e.minW=a.minW,e.minH=a.minH,e.width=e.width>r?r:e.width,e.height=e.height>o?o:e.height,i.width=e.width,i.height=e.height,n.font="bold "+e.size+"px "+e.family+", Arial, Helvetica, sans-serif",n.textBaseline="bottom",n.textAlign="left",e.stroked&&(0!==e.color?n.shadowColor="#000":n.shadowColor="#FFF",n.strokeStyle=n.shadowColor,n.lineWidth=1,n.shadowBlur=3,n.strokeText(e.text,0,i.height)),e.text=e.text.replace(/\n/g,"\r"),n.fillStyle="#"+("000000"+e.color.toString(16)).substr(-6),-1===e.text.indexOf("\r")?n.fillText(e.text,0,i.height):this.wrapText(n,e.text,0,0,0,e.height),e.zRotate){const t=document.createElement("canvas"),n=t.getContext("2d");return this.updateByRotate(),t.width=e.width,t.height=e.height,n.translate(e.offsetX,e.offsetY),n.rotate(e.zRotate/360*2*Math.PI),n.drawImage(i,0,0),this.generateMinContentBox(),t}return i}getDivImg(){const t=this.options,e=document.createElement("div"),i=document.createElement("pre");if(this.innerCell=i,e.appendChild(i),e.style.display="inline-block",e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.width="100%",e.style.height="100%",e.style.perspective=e.style.webkitPerspective="288.1473083496094px",i.style.display="inline-block",i.style.font="bold "+t.size+"px "+t.family+", Arial, Helvetica, sans-serif",i.style.textAlign="left",i.style.lineHeight="1",i.style.color="#"+("000000"+t.color.toString(16)).substr(-6),i.innerHTML=t.text,t.stroked){const e=0!==t.color?"#000":"#fff";i.style.textShadow="1px 0 1px "+e+",0 1px 1px "+e+",0 -1px 1px "+e+",-1px 0 1px "+e}return i.style.transformOrigin=i.style.webkitTransformOrigin="0% 0% 0px",e}createTransform(t,e,i=0,n=0){const r=t=>t*Math.PI/180,o=t=>180-((-t-180)%360+360)%360,a=r(o(i)),s=r(o(n)),l=Math.cos(a),A=Math.cos(s),c=Math.sin(a),h=Math.sin(s);return`matrix3d(${l*A},${l*h},${c},0,${-h},${A},0,0,${-c*A},${-c*h},${l},0,${t},${e},0,1)`}wrapText(t,e,i,n,r,o){const a=e.split("\r"),s=this.options,l=a.length,A=s.container.offsetWidth,c=s.container.offsetHeight;r=r||0,t.canvas.height=o*l,t.font="bold "+s.size+"px "+s.family+", Arial, Helvetica, sans-serif",s.width=t.measureText(s.text).width,s.height=this.measureText(s.text,s.size+"px "+s.family+", Arial, Helvetica, sans-serif").height,s.width=s.width>A?A:s.width,s.height=s.height>c?c:s.height;for(let e=0;e<l;e++){const i=a[e];let n=t.measureText(i).width;n>r&&(n&&(n=A),r=n,t.canvas.width=n,t.font="bold "+s.size+"px "+s.family+", Arial, Helvetica, sans-serif")}t.font="bold "+s.size+"px "+s.family+", Arial, Helvetica, sans-serif",t.textBaseline="bottom",t.textAlign="left",t.fillStyle="#"+("000000"+s.color.toString(16)).substr(-6);for(let e=0;e<l;e++){const r=a[e];n+=o,s.stroked&&(0!==s.color?t.shadowColor="#000":t.shadowColor="#FFF",t.strokeStyle=t.shadowColor,t.lineWidth=1,t.shadowBlur=3,t.strokeText(r,i,n)),t.fillText(r,i,n)}}updateByRotate(){const t=this.options,e=Math.abs(t.zRotate%360),i=2*Math.PI/360,n=t.width,r=t.height;t.width=Math.sqrt(n*n+r*r),t.height=Math.sqrt(n*n+r*r),e<=90?(t.offsetX=r*Math.sin(e*i),t.offsetY=0):e<=180?(t.offsetX=t.width,t.offsetY=r*Math.sin((e-90)*i)):e<=270?(t.offsetX=t.width-r*Math.sin((e-180)*i),t.offsetY=t.height):e<360&&(t.offsetX=0,t.offsetY=t.height+r*Math.sin((e-90)*i))}generateMinContentBox(){const t=0,e=0,i={x:this.options.minW,y:this.options.minH},n=[{x:t,y:e},{x:i.x,y:e},{x:t,y:i.y},{x:i.x,y:i.y}],r={x:[],y:[]},o=(360-this.options.zRotate%360)/180*Math.PI,a=Math.cos(o),s=Math.sin(o);n.forEach((function(i,n,r){const o=(i.x-t)*a-(i.y-e)*s+t,l=(i.x-t)*s+(i.y-e)*a+e;r[n]={x:o,y:l}})),n.forEach((function(t){n.forEach((function(e){r.x.push(Math.abs(t.x-e.x)),r.y.push(Math.abs(t.y-e.y))}))})),this.options.minW=Math.max(...r.x),this.options.minH=Math.max(...r.y)}updatePosition(t){let e,i,n,r,o;const a=this.options;if(a.linearSpeedUp)if(a.path){o=this.easeInQuad(t,0,a.pathDistance,a.aTime);for(let t=0,s=a.pathArr.length;t<s;t++)if(n=a.pathArr[t],r=a.pathArr[t-1]||n,o<=n.lastDistance&&o>=r.lastDistance){const t=n.pathDistance?(o-r.lastDistance)/n.pathDistance:0;e=r.x+(n.x-r.x)*t,i=r.y+(n.y-r.y)*t;break}}else e=this.easeInQuad(t,a.startX,a.xDistance,a.aTime),i=this.easeInQuad(t,a.startY,a.yDistance,a.aTime);else if(a.path){o=this.easeOutQuad(t,0,a.pathDistance,a.aTime);for(let t=0,s=a.pathArr.length;t<s;t++)if(n=a.pathArr[t],r=a.pathArr[t-1]||n,o<=n.lastDistance&&o>=r.lastDistance){const t=n.pathDistance?(o-r.lastDistance)/n.pathDistance:0;e=r.x+(n.x-r.x)*t,i=r.y+(n.y-r.y)*t;break}}else e=this.easeOutQuad(t,a.startX,a.xDistance,a.aTime),i=this.easeOutQuad(t,a.startY,a.yDistance,a.aTime);a.x=e,a.y=i}easeInQuad(t,e,i,n){const r=t/n*this.manager.config.videoSpeed;return e+i*r*r}easeOutQuad(t,e,i,n){const r=t/n*this.manager.config.videoSpeed;return e+i*(r*(2-r))}measureText(t,e){const i=document.createElement("span");i.innerHTML=t,i.style.cssText="font: "+e+"; line-height: 1; white-space: nowrap";const n=document.createElement("pre");n.innerHTML=t,n.style.cssText="font: "+e+"; line-height: 1; white-space: pre; display: inline-block";const r=document.createElement("div");r.style.cssText="height: 0; width: 1; overflow: hidden",r.appendChild(i),r.appendChild(n),this.options.container.appendChild(r);const o=i.offsetWidth,a=i.offsetHeight,s=n.offsetWidth,l=n.offsetHeight;return this.options.container.removeChild(r),{minW:s,minH:l,width:o,height:a}}destroy(){}};var o=class{constructor(t){this.container=t}test(t){const e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.background="transparent",e.style.zIndex=String(10+t.options.id),this.container&&this.container.appendChild(e),this.render(t,e),setTimeout((()=>this.destroy(t,e)),t.options.duration+10)}render(t,e){this["adv_danmaku_test_"+t.options.id]=window.requestAnimationFrame((()=>{this.render(t,e)})),this.drawDanmaku(t,e)}drawDanmaku(t,e){t.refresh(Date.now()),t.drawStatus&&(t.img.style.opacity=t.options.cOpacity.toString(),t.innerCell.style.transform=t.innerCell.style.webkitTransform=t.createTransform(t.options.x,t.options.y,t.options.yRotate,t.options.zRotate),e.appendChild(t.img))}resize(){}destroy(t,e){this.container.removeChild(e),window.cancelAnimationFrame(this["adv_danmaku_test_"+t.options.id])}};var a=class{constructor(t){this.container=t}test(t){const e=document.createElement("canvas"),i=e.getContext("2d");e.width=this.container.offsetWidth,e.height=this.container.offsetHeight,e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.background="transparent",e.style.zIndex=String(10+t.options.id),this.container&&this.container.appendChild(e),this.canvas=e,this.render(t,i),setTimeout((()=>this.destroy(t,e)),t.options.duration+10)}render(t,e){this["adv_danmaku_test_"+t.options.id]=window.requestAnimationFrame((()=>{this.render(t,e)})),this.drawDanmaku(t,e)}drawDanmaku(t,e){e.clearRect(0,0,e.canvas.width,e.canvas.height),t.refresh(Date.now()),t.drawStatus&&e.drawImage(t.img,t.options.x-t.options.offsetX,t.options.y-t.options.offsetY-5)}resize(){this.canvas&&(this.canvas.width=this.container.offsetWidth,this.canvas.height=this.container.offsetHeight)}destroy(t,e){this.container.removeChild(e),window.cancelAnimationFrame(this["adv_danmaku_test_"+t.options.id])}};var s=class{constructor(t){this.dmexposure=0,this.container=t.container,this.config=n.assign({container:document.getElementById("player"),danmakuNumber:-1,videoSpeed:1,visible:!0,type:"div",setType:t=>{},blockJudge:t=>{},getType:()=>this.config.type,getDanmakuNumber:()=>this.config.danmakuNumber},t),this.paused=!0,this.sTime=0,this.getId=this.guid(),this.createStatus=!1,this.dmList=[],this.cdmList=[],this.visableStatus=this.config.visible,this.initialType=this.getType(),this.resize()}count(){
return this.cdmList?this.cdmList.length:0}getType(){return this.config.getType()}addDanmaku(t,e){const i=this.buildTextData(t);this.dmList||(this.dmList=[]),i&&this.dmList.push(i),e&&(i.renderStatus=!0,this.drawDanmaku(i),this.cdmList.push(i))}danmakuType(t){return t&&this.initialType!==t?this.dmList.length&&this.visableStatus&&this.canvas?(this.config.setType(t),this.typeChangeCheck(),"div"===this.getType()?this.canvas.innerHTML="":this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.refreshCdmList(),this.drawDanmaku(),t):null:this.initialType}exportDanmaku(){const t=this.cdmList.length;if(t<1)return null;const e=document.createElement("canvas"),i=e.getContext("2d");e.width=this.container.offsetWidth,e.height=this.container.offsetHeight;for(let e=0;e<t;e++){const t=this.cdmList[e];t.refresh(this.sTime,!0);const n=t.options.x-t.options.offsetX,r=t.options.y-t.options.offsetY-5;t.drawStatus&&i.drawImage(t.img,n,r)}return e}remove(t){let e;this.dmList=this.dmList.filter((e=>e.options.dmid!==t)),this.cdmList=this.cdmList.filter((i=>i.options.dmid!==t||(e=i,!1))),e&&("div"===this.getType()?e.img&&e.img.remove&&e.img.remove():this.refreshCdmList(!0))}play(){this.dmList.length&&(this.createStatus||this.create(),this.sDate=Date.now(),this.paused=!1,this.render())}pause(){this.dmList.length&&(this.paused=!0)}stop(){this.dmList.length&&(this.sTime=0,this.paused=!0)}seek(t){this.createStatus||(this.play(),this.pause()),this.dmList.length&&this.visableStatus&&this.canvas&&(this.sTime=1e3*t,this.sDate=Date.now(),this.renderDanmaku())}resize(){const{offsetWidth:t,offsetHeight:e}=this.container;this.createStatus&&("div"!==this.getType()&&(this.canvas.width=t,this.canvas.height=e),this.drawDanmaku()),this.containerW=t,this.containerH=e,this.testManager&&this.testManager.resize()}visible(t){t!==this.visableStatus&&(t?(this.visableStatus=!0,this.render()):(this.visableStatus=!1,this.clearCurrent()))}clearCurrent(){"div"===this.getType()?this.canvas&&(this.canvas.innerHTML=""):this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.cdmList.forEach((function(t){t.renderStatus=!1,t.img&&t.img.remove&&t.img.remove(),t.img=null})),this.cdmList=[]}searchAreaDanmaku(t){return"div"===this.getType()?this.searchCSSArea(t.clientX||0,t.clientY||0):this.searchCanvasArea(t.offsetX||0,t.offsetY||0)}searchDanmaku(t){return"div"===this.getType()?this.searchCSSArea(t.clientX,t.clientY):this.searchCanvasArea(t.x,t.y)}testDanmaku(t){const e=this.buildTextData(t);e.options.stime=Date.now(),"div"===this.getType()?this.testManager=new o(this.container):this.testManager=new a(this.container),this.testManager.test(e)}option(t,e){if(t&&void 0!==e)if("videospeed"===t){if(1===arguments.length)return this.config.videoSpeed;this.config.videoSpeed=e}else this.config[t]=e}guid(){let t=0;return function(){return t++}}create(){"div"===this.getType()?this.createDiv():this.createCanvas(),this.container&&this.container.appendChild(this.canvas),this.createStatus=!0,this.render()}createDiv(){const t=document.createElement("div");t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%",t.style.height="100%",t.style.background="transparent",t.style.zIndex="10",this.canvas=t}createCanvas(){const t=document.createElement("canvas");t.style.position="absolute",t.style.left="0",t.style.top="0",t.width=this.container.offsetWidth,t.height=this.container.offsetHeight,t.style.background="transparent",t.style.zIndex="10",this.ctx=t.getContext("2d"),this.canvas=t}buildTextData(t){try{let e,i;Array.isArray(t.text)?(e=t.text,i=this.escapeXssChars(e[4])):(e=JSON.parse(this.escapeSpecialChars(t.text)),i=e[4]);const n=e[2].toString().split("-"),o={id:this.getId(),stime:t.stime,mode:t.mode,size:t.size,color:t.color,date:t.date,class:t.class,uhash:t.uhash,dmid:t.dmid,text:i,sOpacity:parseFloat(n[0]),eOpacity:parseFloat(n[1]),duration:1e3*e[3],startX:parseFloat(e[0]),startY:parseFloat(e[1]),endX:void 0===e[7]?parseFloat(e[0]):parseFloat(e[7]),endY:void 0===e[8]?parseFloat(e[1]):parseFloat(e[8]),canvasW:this.container.offsetWidth,canvasH:this.container.offsetHeight,container:this.container};return e.length>=7&&(o.zRotate=e[5],o.yRotate=e[6]),e.length>=11&&(o.aTime=e[9],o.aDelay=e[10]),e.length>=12&&(o.stroked=e[11]),e.length>=13&&(o.family=e[12]),e.length>=14&&(o.linearSpeedUp=e[13]),e.length>=15&&(o.path=e[14]),new r(this,o)}catch(t){return console.warn(t),null}}drawDanmaku(t){t=t||this.cdmList,Array.isArray(t)?t.forEach((t=>{this.drawDanmaku(t)})):(t.refresh(this.sTime),t.drawStatus&&t.img&&("div"===this.getType()?(t.img.style.opacity=t.options.cOpacity.toString(),t.innerCell.style.transform=t.innerCell.style.webkitTransform=t.createTransform(t.options.x,t.options.y,t.options.yRotate,t.options.zRotate),t.blocked||this.config.blockJudge(t.options)?t.img.style.visibility="hidden":t.img.style.visibility="",this.canvas||this.create(),this.canvas.appendChild(t.img)):t.blocked||(this.ctx.globalAlpha=t.options.cOpacity,this.ctx.drawImage(t.img,t.options.x-t.options.offsetX,t.options.y-t.options.offsetY-2))))}render(){if(this.paused)return!1;this.visableStatus&&(window.requestAnimationFrame((()=>{this.render()})),this.renderDanmaku())}renderDanmaku(){this.config.danmakuNumber="function"==typeof this.config.getDanmakuNumber?this.config.getDanmakuNumber():this.config.danmakuNumber,this.updateSTime(),this.typeChangeCheck(),"div"===this.getType()?this.canvas.innerHTML="":this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.refreshCdmList(),this.drawDanmaku()}updateSTime(){const t=Date.now();if(this.sTime+=(t-this.sDate)*this.config.videoSpeed,this.sDate=t,"function"==typeof this.config.timeSyncFunc){const t=this.config.timeSyncFunc();(Math.abs(t-this.sTime)>1e3||isNaN(this.sTime))&&(this.sTime=t)}}refreshCdmList(t){if(this.visableStatus){for(let t=0,e=this.dmList.length;t<e;t++){const e=this.dmList[t];e.options.stime<=this.sTime&&e.options.stime+e.options.duration>=this.sTime&&!e.renderStatus&&!this.config.blockJudge(e.options)&&this.validate()&&(e.renderStatus=!0,e.showed||this.dmexposure++,e.showed=!0,this.cdmList.push(e))}for(let t=this.cdmList.length-1;t>=0;t--){const e=this.cdmList[t];e.options.stime>this.sTime||e.options.stime+e.options.duration/this.config.videoSpeed<=this.sTime+40?(e.renderStatus=!1,e.img&&e.img.remove&&e.img.remove(),e.img=null,this.cdmList.splice(t,1)):this.config.blockJudge(e.options)?e.blocked=!0:delete e.blocked}t&&("div"!==this.getType()&&this.ctx&&this.ctx.clearRect&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.drawDanmaku())}else this.clearCurrent()}validate(){return!(this.cdmList.length>=this.config.danmakuNumber&&-1!==this.config.danmakuNumber)}escapeXssChars(t){return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;")}escapeSpecialChars(t){return t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}typeChangeCheck(){if(this.initialType!==this.getType()){this.initialType=this.getType();for(let t=this.cdmList.length-1;t>=0;t--){const e=this.cdmList[t];e.renderStatus=!1,e.img=null,delete e.blocked}this.cdmList.length=0,this.container.innerHTML="","div"===this.initialType?this.createDiv():this.createCanvas(),this.container&&this.container.appendChild(this.canvas)}}searchCSSArea(t,e){const i=[];for(let n=this.cdmList.length-1;n>=0;n--){const r=this.cdmList[n];if(!r.img||!r.img.children||!r.img.children[0])continue;if(!r.img.children[0].getBoundingClientRect)return i;const o=r.img.children[0].getBoundingClientRect(),a=o.width,s=o.height,l=o.left,A=o.top;t>=l-5&&t<=l+a+5&&e>=A-5&&e-s<=A+5&&i.push(this.repackDanmakuData(r))}return i}searchCanvasArea(t,e){const i=[];for(let n=this.cdmList.length-1;n>=0;n--){const r=this.cdmList[n],o=r.options.minW,a=r.options.minH,s=r.options.x-r.options.offsetX,l=r.options.y-r.options.offsetY;t>=s-5&&t<=s+o+5&&e>=l-5&&e-a<=l+5&&i.push(this.repackDanmakuData(r))}return i}repackDanmakuData(t){return{textData:{uhash:t.options.uhash,text:t.options.text,mode:t.options.mode,dmid:t.options.dmid,stime:t.options.stime,size:t.options.size,date:t.options.date,
color:t.options.color,class:t.options.class}}}clear(){this.dmList=[],this.cdmList=[],"div"===this.getType()?this.canvas&&(this.canvas.innerHTML=""):this.ctx&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)}destroy(){}},l=i(22451),A=i(61068),c=i(5489),h=Object.defineProperty,d=Object.defineProperties,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(t,e,i)=>e in t?h(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,y=(t,e)=>{for(var i in e||(e={}))g.call(e,i)&&m(t,i,e[i]);if(p)for(var i of p(e))f.call(e,i)&&m(t,i,e[i]);return t},b=(t,e)=>d(t,u(e));class v extends c.vq{install(){super.install(),this.advWrap=this.container.querySelector(`.${this.ppx}-adv-dm-wrap`),this.advDanmaku=new s({getType:()=>"div",setType:t=>{},blockJudge:t=>this.blockStore.judge(t),timeSyncFunc:()=>1e3*this.portStore.getCurrentTime(),container:this.advWrap,visible:this.dmSettingStore.state.dmSwitch}),this.dc.addAdv=(0,l.EH)((()=>{const t=this.dmListStore.state.addAdv;if(t){const e=t.stime;this.advDanmaku.addDanmaku(b(y({},t),{stime:t.stime}),Math.ceil(e/1e3)===this.portStore.getCurrentTime())}})),this.dmListStore.allDm.forEach((t=>{7===t.mode&&this.advDanmaku.addDanmaku(b(y({},t),{stime:t.stime}))})),this.dc.addAdvList=(0,l.U5)((()=>{var t;return null==(t=this.dmListStore.state.addAdvList)?void 0:t.slice(0)}),(t=>{(null==t?void 0:t.length)&&(t.forEach((t=>{this.advDanmaku.addDanmaku(t)})),this.dmListStore.state.addAdvList.length=0,this.danmakuStore.isPaused||this.advDanmaku.play())})),this.dc.history=(0,l.EH)((()=>{this.dmListStore.state.history&&this.advDanmaku.clear()})),this.dc.dmPause=(0,l.U5)((()=>this.danmakuStore.isPaused),(t=>{t?this.advDanmaku.pause():this.advDanmaku.play()}),{fireImmediately:!0}),this.dc.testAdvDm=(0,l.EH)((()=>{const t=this.dmAdvStore.state.testAdvDm;t&&this.advDanmaku.testDanmaku(t)})),this.dc.playbackRate=(0,l.EH)((()=>{this.option("videospeed",this.settingStore.state.playbackRate||1)})),this.dc.advSeek=(0,l.U5)((()=>!this.mediaStore.state.seeking),(t=>{t&&this.advDanmaku.seek(this.portStore.getCurrentTime())})),this.dc.advVisible=(0,l.EH)((()=>{this.advDanmaku.visible(this.sendStore.dmVisible)})),this.dc.advFresh=(0,l.U5)((()=>this.dmSettingStore.state.dmFresh),(()=>{this.advDanmaku.refreshCdmList(!0)})),this.dc.advClear=(0,l.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.advDanmaku.clear()})),this.dc.dmMenu=(0,l.U5)((()=>this.menuStore.state.position),(t=>{if(null==t?void 0:t.clientX){let e=this.advDanmaku.searchDanmaku(t);const i=[...this.menuStore.state.dmList];e.length&&(e.forEach((t=>{i.push(t)})),this.menuStore.setState({dmList:i}))}}));const t=(0,A.Z)((()=>{this.advDanmaku.resize()}));return this.dc.advResize=(0,l.U5)((()=>{const t=this.uiStore.state;return{h:t.videoAreaHeight,w:t.videoAreaWidth}}),(({w:e,h:i})=>{i&&e&&t()})),this}get dmexposure(){var t;return(null==(t=this.advDanmaku)?void 0:t.dmexposure)||0}remove(t){this.advDanmaku.remove(t)}option(t,e){this.advDanmaku.option(t,e)}searchAreaDanmaku(t){return this.advDanmaku.searchAreaDanmaku(t)}onDispose(){var t;super.onDispose(),null==(t=this.advDanmaku)||t.clear()}}},86722:function(t,e,i){"use strict";i.d(e,{C:function(){return A}});var n=i(61068),r=i(22451),o=i(5489),a=i(58927),s=Object.getPrototypeOf,l=Reflect.get;class A extends o.vq{install(){return t=this,e=null,i=function*(){var t,e,i;return(t=A.prototype,e=this,i="install",l(s(t),i,e)).call(this),this.basDanmaku=new a.default({container:this.container.querySelector(`.${this.ppx}-bas-dm-wrap`),visible:this.dmSettingStore.state.dmSwitch,fontFamily:this.dmSettingStore.state.fontfamily,timeSyncFunc:()=>1e3*this.portStore.getCurrentTime(),blockJudge:t=>this.blockStore.judge(t),pauseFunc:()=>this.portStore.pause({initiator:"BAS"}),seekFunc:t=>this.portStore.seekAutoplay(t,"BAS")}),this.registerListener(),this},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}registerListener(){this.dc.dmPause=(0,r.U5)((()=>this.danmakuStore.isPaused),(t=>{t?this.basDanmaku.pause():this.basDanmaku.play()}),{fireImmediately:!0}),this.basDanmaku.add({dm:this.dmListStore.basList}),this.dc.initDm=(0,r.U5)((()=>{var t;return null==(t=this.dmListStore.state.addBasList)?void 0:t.slice(0)}),(t=>{(null==t?void 0:t.length)&&(this.basDanmaku.add({dm:t}),this.dmListStore.state.addBasList.length=0)})),this.dc.history=(0,r.EH)((()=>{this.dmListStore.state.history&&this.basDanmaku.clear()})),this.dc.addDm=(0,r.EH)((()=>{const t=this.dmListStore.state.addBas;t&&this.basDanmaku.add({dm:t})})),this.dc.basTest=(0,r.EH)((()=>{this.dmBasStore.state.basTest&&this.basDanmaku.add(this.dmBasStore.state.basTest)})),this.dc.basSeek=(0,r.U5)((()=>!this.mediaStore.state.seeking),(t=>{t&&this.basDanmaku.seek(this.portStore.getCurrentTime(),!0)})),this.dc.basVisible=(0,r.EH)((()=>{this.basDanmaku.visible(this.sendStore.dmVisible)})),this.dc.advFresh=(0,r.U5)((()=>this.dmSettingStore.state.dmFresh),(()=>{this.basDanmaku.refreshCdmList(!0)})),this.dc.basClear=(0,r.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.basDanmaku.clear()}));const t=(0,n.Z)((()=>{this.basDanmaku.resize()}),40);this.dc.basResize=(0,r.U5)((()=>{const t=this.uiStore.state;return{h:t.videoAreaHeight,w:t.videoAreaWidth}}),(({w:e,h:i})=>{i&&e&&t()}))}onDispose(){super.onDispose(),this.basDanmaku&&this.basDanmaku.destroy()}}},75736:function(t,e,i){"use strict";i.d(e,{w:function(){return m}});var n=i(72927),r=i(5489),o=i(22451),a=i(89262),s=Object.defineProperty,l=Object.defineProperties,A=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,p=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,g=(t,e)=>{for(var i in e||(e={}))d.call(e,i)&&p(t,i,e[i]);if(h)for(var i of h(e))u.call(e,i)&&p(t,i,e[i]);return t},f=(t,e)=>l(t,c(e));class m extends r.vq{constructor(){super(...arguments),this.dmMaskWalls=[],this.timer=-1,this.uiMap=new Map}get leftContainer(){if(this._leftContainer)return this._leftContainer;const t=document.createElement("div");return t.classList.add(`${this.ppx}-dm-delivery-left-container`),this.nodes.videoArea.appendChild(t),this._leftContainer=t,this._leftContainer}get rightContainer(){if(this._rightContainer)return this._rightContainer;const t=document.createElement("div");return t.classList.add(`${this.ppx}-dm-delivery-right-container`),this.nodes.videoArea.appendChild(t),this._rightContainer=t,this._rightContainer}install(){super.install(),this.dc.dmMaskWalls=(0,o.U5)((()=>this.danmakuStore.state.maskWalls),(t=>{this.dmMaskWalls=t||[],this.initUIDmMask(),this.bindShow()}),{fireImmediately:!0}),this.dc.aigc=(0,o.U5)((()=>this.userStore.arcAigc),(t=>{t&&(this.initV2(t),this.bindShow())}),{fireImmediately:!0}),this.dc.selfVisible=(0,o.U5)((()=>this.userStore.selfVisible),(t=>{if(t){const e={raw_text:t.player_text,icon:t.prefix_icon};this.initV2(e),this.bindShow()}}),{fireImmediately:!0})}get currentTime(){return this.mediaStore.video.currentTime}initUIDmMask(){this.dmMaskWalls.forEach((t=>{const e=document.createElement("div");e.style.opacity="0",e.classList.contains(`${this.ppx}-dm-delivery-wrap`)||e.classList.add(`${this.ppx}-dm-delivery-wrap`),t.contents.forEach((t=>{t.type===n.kA.DmMaskWallContentTypePic?e.innerHTML+=`\n                        <img src="${t.content}" />\n                    `:t.type===n.kA.DmMaskWallContentTypeText&&(e.innerHTML+=`\n                        <span>${t.content}</span>\n                    `)})),t.bizType===n.RB.DmMaskWallBizTypeMute?this.leftContainer.appendChild(e):t.bizType===n.RB.DmMaskWallBizTypeRecord&&this.rightContainer.appendChild(e),this.uiMap.set(e,f(g({},t),{display:!1}))}))}initV2(t){this.v2Wall={start:0,end:-1,bizType:"v2",contents:[{type:n.kA.DmMaskWallContentTypePic,content:t.icon},{type:n.kA.DmMaskWallContentTypeText,content:t.raw_text}]};const e=document.createElement("div");e.style.opacity="0",
e.classList.contains(`${this.ppx}-dm-delivery-wrap`)||e.classList.add(`${this.ppx}-dm-delivery-wrap`),this.v2Wall.contents.forEach((t=>{t.type===n.kA.DmMaskWallContentTypePic?e.innerHTML+=`\n                    <img src="${t.content}" />\n                `:t.type===n.kA.DmMaskWallContentTypeText&&(e.innerHTML+=`\n                    <span>${t.content}</span>\n                `)})),this.leftContainer.prepend(e),this.uiMap.set(e,f(g({},this.v2Wall),{display:!1}))}bindShow(){-1===this.timer&&(window.clearInterval(this.timer),this.timer=window.setInterval(this.onTimeUpdate,400))}onTimeUpdate(){this.uiMap.forEach(((t,e)=>{if(t.start||(t.start=0),this.currentTime-.3>=t.start&&(this.currentTime<=t.end||-1===t.end)){if(t.display)return;e.style.opacity="1",t.display=!0}else t.display&&(e.style.opacity="0",t.display=!1)}))}destroyUI(){this.uiMap.forEach(((t,e)=>{var i;null==(i=null==e?void 0:e.parentNode)||i.removeChild(e),t.display=!1})),this._leftContainer&&(this.nodes.videoArea.removeChild(this._leftContainer),this._leftContainer=null),this._rightContainer&&(this.nodes.videoArea.removeChild(this._rightContainer),this._rightContainer=null),this.uiMap.clear()}onDispose(){this.destroyUI(),window.clearInterval(this.timer),this.timer=-1}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?A(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&s(e,i,o)})([a.ZP],m.prototype,"onTimeUpdate",1)},62240:function(t,e,i){"use strict";i.d(e,{M:function(){return un}});var n=i(61068),r=i(44127),o=i(99149),a=i(5169),s=i(61072),l=i(5489),A=i(22451),c=i(30905),h=i(61731),d=i.n(h),u=i(29888),p=i.n(u),g=i(46348),f=i.n(g),m=i(76497),y=i.n(m),b=i(44011),v=i.n(b),E=i(65389),I=i.n(E),C=i(25360),B=i.n(C),w=i(87395),x=i.n(w),Q=i(79302),S=i.n(Q),k=i(85753),D=i.n(k),_=i(96564),R=i.n(_),M=i(29740),T=i.n(M),F=i(24137),L=i.n(F),N=i(28892),P=i.n(N),U=i(55801),O=i.n(U),G=i(57012),H=i(71183),V=Object.defineProperty,Y=Object.defineProperties,z=Object.getOwnPropertyDescriptor,W=Object.getOwnPropertyDescriptors,Z=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,J=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),K=t=>{throw TypeError(t)},X=(t,e,i)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$=(t,e)=>{for(var i in e||(e={}))j.call(e,i)&&X(t,i,e[i]);if(Z)for(var i of Z(e))q.call(e,i)&&X(t,i,e[i]);return t},tt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?z(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&V(e,i,o),o},et=(t,e,i)=>e.has(t)||K("Cannot "+i),it=function(t,e){this[0]=t,this[1]=e};function*nt(t=document.activeElement){var e,i,n,r,o;null!=t&&(yield t,"shadowRoot"in t&&t.shadowRoot&&"closed"!==t.shadowRoot.mode&&(yield*(e=nt(t.shadowRoot.activeElement),n=e[J("asyncIterator")],r=!1,o={},null==n?(n=e[J("iterator")](),i=t=>o[t]=e=>n[t](e)):(n=n.call(e),i=t=>o[t]=e=>{if(r){if(r=!1,"throw"===t)throw e;return e}return r=!0,{done:!1,value:new it(new Promise((i=>{var r=n[t](e);r instanceof Object||K("Object expected"),i(r)})),1)}}),o[J("iterator")]=()=>o,i("next"),"throw"in n?i("throw"):o.throw=t=>{throw t},"return"in n&&i("return"),o)))}var rt=new WeakMap;function ot(t){let e=rt.get(t);return e||(e=window.getComputedStyle(t,null),rt.set(t,e)),e}function at(t){const e=t.tagName.toLowerCase(),i=Number(t.getAttribute("tabindex"));if(t.hasAttribute("tabindex")&&(isNaN(i)||i<=-1))return!1;if(t.hasAttribute("disabled"))return!1;if(t.closest("[inert]"))return!1;if("input"===e&&"radio"===t.getAttribute("type")){const e=t.getRootNode(),i=`input[type='radio'][name="${t.getAttribute("name")}"]`,n=e.querySelector(`${i}:checked`);if(n)return n===t;return e.querySelector(i)===t}if(!function(t){if("function"==typeof t.checkVisibility)return t.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const e=ot(t);return"hidden"!==e.visibility&&"none"!==e.display}(t))return!1;if(("audio"===e||"video"===e)&&t.hasAttribute("controls"))return!0;if(t.hasAttribute("tabindex"))return!0;if(t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))return!0;return!!["button","input","select","textarea","a","audio","video","summary","iframe"].includes(e)||function(t){const e=ot(t),{overflowY:i,overflowX:n}=e;return"scroll"===i||"scroll"===n||"auto"===i&&"auto"===n&&(t.scrollHeight>t.clientHeight&&"auto"===i||!(!(t.scrollWidth>t.clientWidth)||"auto"!==n))}(t)}function st(t){const e=new WeakMap,i=[];return function n(r){if(r instanceof Element){if(r.hasAttribute("inert")||r.closest("[inert]"))return;if(e.has(r))return;e.set(r,!0),!i.includes(r)&&at(r)&&i.push(r),r instanceof HTMLSlotElement&&function(t,e){var i;return(null==(i=t.getRootNode({composed:!0}))?void 0:i.host)!==e}(r,t)&&r.assignedElements({flatten:!0}).forEach((t=>{n(t)})),null!==r.shadowRoot&&"open"===r.shadowRoot.mode&&n(r.shadowRoot)}for(const t of r.children)n(t)}(t),i.sort(((t,e)=>{const i=Number(t.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-i}))}var lt=[],At=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.isActive()&&this.checkFocus()},this.handleKeyDown=t=>{var e;if("Tab"!==t.key||this.isExternalActivated)return;if(!this.isActive())return;const i=[...nt()].pop();if(this.previousFocus=i,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;t.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const n=st(this.element);let r=n.findIndex((t=>t===i));this.previousFocus=this.currentFocus;const o="forward"===this.tabDirection?1:-1;for(;;){r+o>=n.length?r=0:r+o<0?r=n.length-1:r+=o,this.previousFocus=this.currentFocus;const i=n[r];if("backward"===this.tabDirection&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(i&&this.possiblyHasTabbableChildren(i))return;t.preventDefault(),this.currentFocus=i,null==(e=this.currentFocus)||e.focus({preventScroll:!1});const a=[...nt()];if(a.includes(this.currentFocus)||!a.includes(this.previousFocus))break}setTimeout((()=>this.checkFocus()))},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t,this.elementsWithTabbableControls=["iframe"]}activate(){lt.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){lt=lt.filter((t=>t!==this.element)),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return lt[lt.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=st(this.element);if(!this.element.matches(":focus-within")){const e=t[0],i=t[t.length-1],n="forward"===this.tabDirection?e:i;"function"==typeof(null==n?void 0:n.focus)&&(this.currentFocus=n,n.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}};var ct=new Set;function ht(t){if(ct.add(t),!document.documentElement.classList.contains("sl-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--sl-scroll-lock-gutter",e),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function dt(t){ct.delete(t),0===ct.size&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}const ut=globalThis,pt=ut.ShadowRoot&&(void 0===ut.ShadyCSS||ut.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),ft=new WeakMap;class mt{constructor(t,e,i){
if(this._$cssResult$=!0,i!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(pt&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=ft.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ft.set(e,t))}return t}toString(){return this.cssText}}const yt=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new mt(i,t,gt)},bt=pt?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new mt("string"==typeof t?t:t+"",void 0,gt))(e)})(t):t;var vt;const{is:Et,defineProperty:It,getOwnPropertyDescriptor:Ct,getOwnPropertyNames:Bt,getOwnPropertySymbols:wt,getPrototypeOf:xt}=Object,Qt=globalThis,St=Qt.trustedTypes,kt=St?St.emptyScript:"",Dt=Qt.reactiveElementPolyfillSupport,_t=(t,e)=>t,Rt={toAttribute(t,e){switch(e){case Boolean:t=t?kt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},Mt=(t,e)=>!Et(t,e),Tt={attribute:!0,type:String,converter:Rt,reflect:!1,useDefault:!1,hasChanged:Mt};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Qt.litPropertyMetadata||(Qt.litPropertyMetadata=new WeakMap);class Ft extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Tt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,e);void 0!==n&&It(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){var n;const{get:r,set:o}=null!=(n=Ct(this.prototype,t))?n:{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const n=null==r?void 0:r.call(this);null==o||o.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Tt}static _$Ei(){if(this.hasOwnProperty(_t("elementProperties")))return;const t=xt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_t("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_t("properties"))){const t=this.properties,e=[...Bt(t),...wt(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(bt(t))}else void 0!==t&&e.push(bt(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(pt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),n=ut.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}})(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==(null==(i=n.converter)?void 0:i.toAttribute)?n.converter:Rt).toAttribute(e,n.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var i,n,r,o;const a=this.constructor,s=a._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=a.getPropertyOptions(s),l="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Rt;this._$Em=s,this[s]=null!=(o=null!=(r=l.fromAttribute(e,t.type))?r:null==(n=this._$Ej)?void 0:n.get(s))?o:null,this._$Em=null}}requestUpdate(t,e,i){var n,r;if(void 0!==t){const o=this.constructor,a=this[t];if(null!=i||(i=o.getPropertyOptions(t)),!((null!=(n=i.hasChanged)?n:Mt)(a,e)||i.useDefault&&i.reflect&&a===(null==(r=this._$Ej)?void 0:r.get(t))&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:n,wrapped:r},o){var a,s,l;i&&!(null!=(a=this._$Ej)?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(s=null!=o?o:e)?s:this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return t=this,e=null,i=function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,i,n)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}}var Lt;Ft.elementStyles=[],Ft.shadowRootOptions={mode:"open"},Ft[_t("elementProperties")]=new Map,Ft[_t("finalized")]=new Map,null==Dt||Dt({ReactiveElement:Ft}),(null!=(vt=Qt.reactiveElementVersions)?vt:Qt.reactiveElementVersions=[]).push("2.1.0");const Nt=globalThis,Pt=Nt.trustedTypes,Ut=Pt?Pt.createPolicy("lit-html",{
createHTML:t=>t}):void 0,Ot="$lit$",Gt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ht="?"+Gt,Vt=`<${Ht}>`,Yt=document,zt=()=>Yt.createComment(""),Wt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Zt=Array.isArray,jt=t=>Zt(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),qt="[ \t\n\f\r]",Jt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Kt=/-->/g,Xt=/>/g,$t=RegExp(`>|${qt}(?:([^\\s"'>=/]+)(${qt}*=${qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),te=/'/g,ee=/"/g,ie=/^(?:script|style|textarea|title)$/i,ne=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),re=ne(1),oe=ne(2),ae=ne(3),se=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),Ae=new WeakMap,ce=Yt.createTreeWalker(Yt,129);function he(t,e){if(!Zt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ut?Ut.createHTML(e):e}const de=(t,e)=>{const i=t.length-1,n=[];let r,o=2===e?"<svg>":3===e?"<math>":"",a=Jt;for(let e=0;e<i;e++){const i=t[e];let s,l,A=-1,c=0;for(;c<i.length&&(a.lastIndex=c,l=a.exec(i),null!==l);)c=a.lastIndex,a===Jt?"!--"===l[1]?a=Kt:void 0!==l[1]?a=Xt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=$t):void 0!==l[3]&&(a=$t):a===$t?">"===l[0]?(a=null!=r?r:Jt,A=-1):void 0===l[1]?A=-2:(A=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?$t:'"'===l[3]?ee:te):a===ee||a===te?a=$t:a===Kt||a===Xt?a=Jt:(a=$t,r=void 0);const h=a===$t&&t[e+1].startsWith("/>")?" ":"";o+=a===Jt?i+Vt:A>=0?(n.push(s),i.slice(0,A)+Ot+i.slice(A)+Gt+h):i+Gt+(-2===A?e:h)}return[he(t,o+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]};class ue{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,s=this.parts,[l,A]=de(t,e);if(this.el=ue.createElement(l,i),ce.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=ce.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(Ot)){const e=A[o++],i=n.getAttribute(t).split(Gt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?ye:"?"===a[1]?be:"@"===a[1]?ve:me}),n.removeAttribute(t)}else t.startsWith(Gt)&&(s.push({type:6,index:r}),n.removeAttribute(t));if(ie.test(n.tagName)){const t=n.textContent.split(Gt),e=t.length-1;if(e>0){n.textContent=Pt?Pt.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],zt()),ce.nextNode(),s.push({type:2,index:++r});n.append(t[e],zt())}}}else if(8===n.nodeType)if(n.data===Ht)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(Gt,t+1));)s.push({type:7,index:r}),t+=Gt.length-1}r++}}static createElement(t,e){const i=Yt.createElement("template");return i.innerHTML=t,i}}function pe(t,e,i=t,n){var r,o,a;if(e===se)return e;let s=void 0!==n?null==(r=i._$Co)?void 0:r[n]:i._$Cl;const l=Wt(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==l&&(null==(o=null==s?void 0:s._$AO)||o.call(s,!1),void 0===l?s=void 0:(s=new l(t),s._$AT(t,i,n)),void 0!==n?(null!=(a=i._$Co)?a:i._$Co=[])[n]=s:i._$Cl=s),void 0!==s&&(e=pe(t,s._$AS(t,e.values),s,n)),e}class ge{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,r=(null!=(e=null==t?void 0:t.creationScope)?e:Yt).importNode(i,!0);ce.currentNode=r;let o=ce.nextNode(),a=0,s=0,l=n[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new fe(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new Ee(o,this,t)),this._$AV.push(e),l=n[++s]}a!==(null==l?void 0:l.index)&&(o=ce.nextNode(),a++)}return ce.currentNode=Yt,r}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class fe{get _$AU(){var t,e;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e:this._$Cv}constructor(t,e,i,n){var r;this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=null==(r=null==n?void 0:n.isConnected)||r}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pe(this,t,e),Wt(t)?t===le||null==t||""===t?(this._$AH!==le&&this._$AR(),this._$AH=le):t!==this._$AH&&t!==se&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):jt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==le&&Wt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Yt.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:n}=t,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=ue.createElement(he(n.h,n.h[0]),this.options)),n);if((null==(e=this._$AH)?void 0:e._$AD)===r)this._$AH.p(i);else{const t=new ge(r,this),e=t.u(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Ae.get(t.strings);return void 0===e&&Ae.set(t.strings,e=new ue(t)),e}k(t){Zt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const r of t)n===e.length?e.push(i=new fe(this.O(zt()),this.O(zt()),this,this.options)):i=e[n],i._$AI(r),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null==(i=this._$AP)||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cv=t,null==(e=this._$AP)||e.call(this,t))}}class me{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,r){this.type=1,this._$AH=le,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=le}_$AI(t,e=this,i,n){const r=this.strings;let o=!1;if(void 0===r)t=pe(this,t,e,0),o=!Wt(t)||t!==this._$AH&&t!==se,o&&(this._$AH=t);else{const n=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pe(this,n[i+a],e,a),s===se&&(s=this._$AH[a]),o||(o=!Wt(s)||s!==this._$AH[a]),s===le?t=le:t!==le&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}o&&!n&&this.j(t)}j(t){t===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ye extends me{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===le?void 0:t}}class be extends me{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==le)}}class ve extends me{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){var i;if((t=null!=(i=pe(this,t,e,0))?i:le)===se)return;const n=this._$AH,r=t===le&&n!==le||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==le&&(n===le||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!=(i=null==(e=this.options)?void 0:e.host)?i:this.element,t):this._$AH.handleEvent(t)}}class Ee{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pe(this,t)}}const Ie={M:Ot,P:Gt,A:Ht,C:1,L:de,R:ge,D:jt,V:pe,I:fe,H:me,N:be,U:ve,B:ye,F:Ee},Ce=Nt.litHtmlPolyfillSupport;null==Ce||Ce(ue,fe),(null!=(Lt=Nt.litHtmlVersions)?Lt:Nt.litHtmlVersions=[]).push("3.3.0");var Be,we;const xe=globalThis;class Qe extends Ft{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=e.firstChild),e}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,r;const o=null!=(n=null==i?void 0:i.renderBefore)?n:e;let a=o._$litPart$;if(void 0===a){const t=null!=(r=null==i?void 0:i.renderBefore)?r:null;o._$litPart$=a=new fe(e.insertBefore(zt(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),
null==(t=this._$Do)||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._$Do)||t.setConnected(!1)}render(){return se}}Qe._$litElement$=!0,Qe.finalized=!0,null==(Be=xe.litElementHydrateSupport)||Be.call(xe,{LitElement:Qe});const Se=xe.litElementPolyfillSupport;null==Se||Se({LitElement:Qe});(null!=(we=xe.litElementVersions)?we:xe.litElementVersions=[]).push("4.2.0");var ke=yt`
  :host {
    --width: 31rem;
    --header-spacing: var(--sl-spacing-large);
    --body-spacing: var(--sl-spacing-large);
    --footer-spacing: var(--sl-spacing-large);

    display: contents;
  }

  .dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: var(--sl-z-index-dialog);
  }

  .dialog__panel {
    display: flex;
    flex-direction: column;
    z-index: 2;
    width: var(--width);
    max-width: calc(100% - var(--sl-spacing-2x-large));
    max-height: calc(100% - var(--sl-spacing-2x-large));
    background-color: var(--sl-panel-background-color);
    border-radius: var(--sl-border-radius-medium);
    box-shadow: var(--sl-shadow-x-large);
  }

  .dialog__panel:focus {
    outline: none;
  }

  /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
  @media screen and (max-width: 420px) {
    .dialog__panel {
      max-height: 80vh;
    }
  }

  .dialog--open .dialog__panel {
    display: flex;
    opacity: 1;
  }

  .dialog__header {
    flex: 0 0 auto;
    display: flex;
  }

  .dialog__title {
    flex: 1 1 auto;
    font: inherit;
    font-size: var(--sl-font-size-large);
    line-height: var(--sl-line-height-dense);
    padding: var(--header-spacing);
    margin: 0;
  }

  .dialog__header-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: var(--sl-spacing-2x-small);
    padding: 0 var(--header-spacing);
  }

  .dialog__header-actions sl-icon-button,
  .dialog__header-actions ::slotted(sl-icon-button) {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: var(--sl-font-size-medium);
  }

  .dialog__body {
    flex: 1 1 auto;
    display: block;
    padding: var(--body-spacing);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dialog__footer {
    flex: 0 0 auto;
    text-align: right;
    padding: var(--footer-spacing);
  }

  .dialog__footer ::slotted(sl-button:not(:first-of-type)) {
    margin-inline-start: var(--sl-spacing-x-small);
  }

  .dialog:not(.dialog--has-footer) .dialog__footer {
    display: none;
  }

  .dialog__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--sl-overlay-background-color);
  }

  @media (forced-colors: active) {
    .dialog__panel {
      border: solid 1px var(--sl-color-neutral-0);
    }
  }
`,De=yt`
  :host {
    display: inline-block;
    color: var(--sl-color-neutral-600);
  }

  .icon-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    border-radius: var(--sl-border-radius-medium);
    font-size: inherit;
    color: inherit;
    padding: var(--sl-spacing-x-small);
    cursor: pointer;
    transition: var(--sl-transition-x-fast) color;
    -webkit-appearance: none;
  }

  .icon-button:hover:not(.icon-button--disabled),
  .icon-button:focus-visible:not(.icon-button--disabled) {
    color: var(--sl-color-primary-600);
  }

  .icon-button:active:not(.icon-button--disabled) {
    color: var(--sl-color-primary-700);
  }

  .icon-button:focus {
    outline: none;
  }

  .icon-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .icon-button:focus-visible {
    outline: var(--sl-focus-ring);
    outline-offset: var(--sl-focus-ring-offset);
  }

  .icon-button__icon {
    pointer-events: none;
  }
`,_e="";function Re(t){_e=t}var Me={name:"default",resolver:t=>function(t=""){if(!_e){const t=[...document.getElementsByTagName("script")],e=t.find((t=>t.hasAttribute("data-shoelace")));if(e)Re(e.getAttribute("data-shoelace"));else{const e=t.find((t=>/shoelace(\.min)?\.js($|\?)/.test(t.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(t.src)));let i="";e&&(i=e.getAttribute("src")),Re(i.split("/").slice(0,-1).join("/"))}}return _e.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}(`assets/icons/${t}.svg`)},Te={caret:'\n    <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n      <polyline points="6 9 12 15 18 9"></polyline>\n    </svg>\n  ',check:'\n    <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n        <g stroke="currentColor">\n          <g transform="translate(3.428571, 3.428571)">\n            <path d="M0,5.71428571 L3.42857143,9.14285714"></path>\n            <path d="M9.14285714,0 L3.42857143,9.14285714"></path>\n          </g>\n        </g>\n      </g>\n    </svg>\n  ',"chevron-down":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n    </svg>\n  ',"chevron-left":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>\n    </svg>\n  ',"chevron-right":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>\n    </svg>\n  ',copy:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">\n      <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>\n    </svg>\n  ',eye:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">\n      <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>\n      <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n    </svg>\n  ',"eye-slash":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">\n      <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>\n      <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>\n      <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>\n    </svg>\n  ',eyedropper:'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">\n      <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>\n    </svg>\n  ',"grip-vertical":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">\n      <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>\n    </svg>\n  ',indeterminate:'\n    <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n        <g stroke="currentColor" stroke-width="2">\n          <g transform="translate(2.285714, 6.857143)">\n            <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>\n          </g>\n        </g>\n      </g>\n    </svg>\n  ',"person-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">\n      <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n    </svg>\n  ',"play-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n      <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>\n    </svg>\n  ',"pause-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n      <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>\n    </svg>\n  ',radio:'\n    <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <g fill="currentColor">\n          <circle cx="8" cy="8" r="3.42857143"></circle>\n        </g>\n      </g>\n    </svg>\n  ',"star-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">\n      <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n    </svg>\n  ',"x-lg":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">\n      <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n    </svg>\n  ',"x-circle-fill":'\n    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">\n      <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>\n    </svg>\n  '},Fe=[Me,{name:"system",resolver:t=>t in Te?`data:image/svg+xml,${encodeURIComponent(Te[t])}`:""}],Le=[];function Ne(t){return Fe.find((e=>e.name===t))}var Pe=yt`
  :host {
    display: inline-block;
    width: 1em;
    height: 1em;
    box-sizing: content-box !important;
  }

  svg {
    display: block;
    height: 100%;
    width: 100%;
  }
`;function Ue(t,e){const i=$({waitUntilFirstUpdate:!1},e);return(e,n)=>{const{update:r}=e,o=Array.isArray(t)?t:[t];e.update=function(t){o.forEach((e=>{const r=e;if(t.has(r)){const e=t.get(r),o=this[r];e!==o&&(i.waitUntilFirstUpdate&&!this.hasUpdated||this[n](e,o))}})),r.call(this,t)}}}var Oe=yt`
  :host {
    box-sizing: border-box;
  }

  :host *,
  :host *::before,
  :host *::after {
    box-sizing: inherit;
  }

  [hidden] {
    display: none !important;
  }
`;const Ge={attribute:!0,type:String,converter:Rt,reflect:!1,hasChanged:Mt},He=(t=Ge,e,i)=>{const{kind:n,metadata:r}=i;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),o.set(i.name,t),"accessor"===n){const{name:n}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(n,r,t)},init(e){return void 0!==e&&this.C(n,void 0,t,e),e}}}if("setter"===n){const{name:n}=i;return function(i){const r=this[n];e.call(this,i),this.requestUpdate(n,r,t)}}throw Error("Unsupported decorator location: "+n)};function Ve(t){return(e,i)=>"object"==typeof i?He(t,e,i):((t,e,i)=>{const n=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),n?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}var Ye=Object.defineProperty,ze=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Je=(t,e,i)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;function Ke(t){return Ve(((t,e)=>ze(t,We(e)))(((t,e)=>{for(var i in e||(e={}))je.call(e,i)&&Je(t,i,e[i]);if(Ze)for(var i of Ze(e))qe.call(e,i)&&Je(t,i,e[i]);return t})({},t),{state:!0,attribute:!1}))}const Xe=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i);function $e(t,e){return(i,n,r)=>{const o=e=>{var i,n;return null!=(n=null==(i=e.renderRoot)?void 0:i.querySelector(t))?n:null};if(e){const{get:t,set:e}="object"==typeof n?i:null!=r?r:(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Xe(i,n,{get(){let i=t.call(this);return void 0===i&&(i=o(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return Xe(i,n,{get(){return o(this)}})}}var ti,ei=class extends Qe{constructor(){var t,e,i;super(),t=this,i=!1,(e=ti).has(t)?K("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([t,e])=>{this.constructor.define(t,e)}))}emit(t,e){const i=new CustomEvent(t,$({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(i),i}static define(t,e=this,i={}){const n=customElements.get(t);if(!n){try{customElements.define(t,e,i)}catch(n){customElements.define(t,class extends e{},i)}return}let r=" (unknown version)",o=r;"version"in e&&e.version&&(r=" v"+e.version),"version"in n&&n.version&&(o=" v"+n.version),r&&o&&r===o||console.warn(`Attempted to register <${t}>${r}, but <${t}>${o} has already been registered.`)}attributeChangedCallback(t,e,i){var n,r,o;et(n=this,r=ti,"read from private field"),(o?o.call(n):r.get(n))||(this.constructor.elementProperties.forEach(((t,e)=>{t.reflect&&null!=this[e]&&this.initialReflectedProperties.set(e,this[e])})),((t,e,i,n)=>{et(t,e,"write to private field"),n?n.call(t,i):e.set(t,i)})(this,ti,!0)),super.attributeChangedCallback(t,e,i)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach(((e,i)=>{t.has(i)&&null==this[i]&&(this[i]=e)}))}};ti=new WeakMap,ei.version="2.20.1",ei.dependencies={},tt([Ve()],ei.prototype,"dir",2),tt([Ve()],ei.prototype,"lang",2);const{I:ii}=Ie;var ni,ri=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),oi=Symbol(),ai=Symbol(),si=new Map,li=class extends ei{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}resolveIcon(t,e){return ri(this,null,(function*(){var i;let n;if(null==e?void 0:e.spriteSheet)return this.svg=re`<svg part="svg">
        <use part="use" href="${t}"></use>
      </svg>`,this.svg;try{if(n=yield fetch(t,{mode:"cors"}),!n.ok)return 410===n.status?oi:ai}catch(t){return ai}try{const t=document.createElement("div");t.innerHTML=yield n.text();const e=t.firstElementChild;if("svg"!==(null==(i=null==e?void 0:e.tagName)?void 0:i.toLowerCase()))return oi;ni||(ni=new DOMParser);const r=ni.parseFromString(e.outerHTML,"text/html").body.querySelector("svg");return r?(r.part.add("svg"),document.adoptNode(r)):oi}catch(t){return oi}}))}connectedCallback(){var t;super.connectedCallback(),t=this,Le.push(t)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var t;super.disconnectedCallback(),t=this,Le=Le.filter((e=>e!==t))}getIconSource(){const t=Ne(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}setIcon(){return ri(this,null,(function*(){var t;const{url:e,fromLibrary:i}=this.getIconSource(),n=i?Ne(this.library):void 0;if(!e)return void(this.svg=null);let r=si.get(e);if(r||(r=this.resolveIcon(e,n),si.set(e,r)),!this.initialRender)return;const o=yield r;var a,s;if(o===ai&&si.delete(e),e===this.getIconSource().url)if(a=o,void 0===s?void 0===(null==a?void 0:a._$litType$):(null==a?void 0:a._$litType$)!==s)switch(o){case ai:case oi:this.svg=null,this.emit("sl-error");break;default:this.svg=o.cloneNode(!0),null==(t=null==n?void 0:n.mutator)||t.call(n,this.svg),this.emit("sl-load")}else if(this.svg=o,n){yield this.updateComplete;const t=this.shadowRoot.querySelector("[part='svg']");"function"==typeof n.mutator&&t&&n.mutator(t)}}))}render(){return this.svg}};li.styles=[Oe,Pe],tt([Ke()],li.prototype,"svg",2),tt([Ve({reflect:!0})],li.prototype,"name",2),tt([Ve()],li.prototype,"src",2),tt([Ve()],li.prototype,"label",2),tt([Ve({reflect:!0})],li.prototype,"library",2),tt([Ue("label")],li.prototype,"handleLabelChange",1),tt([Ue(["name","src","library"])],li.prototype,"setIcon",1);const Ai=1;class ci{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const hi=(di=class extends ci{constructor(t){var e;if(super(t),t.type!==Ai||"class"!==t.name||(null==(e=t.strings)?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null==(i=this.nt)?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const r=t.element.classList;for(const t of this.st)t in e||(r.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null==(n=this.nt)?void 0:n.has(t))||(i?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return se}},(...t)=>({_$litDirective$:di,values:t}));var di;const ui=Symbol.for(""),pi=t=>{if((null==t?void 0:t.r)===ui)return null==t?void 0:t._$litStatic$},gi=(t,...e)=>({_$litStatic$:e.reduce(((e,i,n)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n            take care to ensure page security.`)})(i)+t[n+1]),t[0]),r:ui}),fi=new Map,mi=t=>(e,...i)=>{const n=i.length;let r,o;const a=[],s=[];let l,A=0,c=!1;for(;A<n;){for(l=e[A];A<n&&void 0!==(o=i[A],r=pi(o));)l+=r+e[++A],c=!0;A!==n&&s.push(o),a.push(l),A++}if(A===n&&a.push(e[n]),c){const t=a.join("$$lit$$");void 0===(e=fi.get(t))&&(a.raw=a,fi.set(t,e=a)),i=s}return t(e,...i)},yi=mi(re),bi=(mi(oe),mi(ae),t=>null!=t?t:le);var vi=class extends ei{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?gi`a`:gi`button`;return yi`
      <${e}
        part="base"
        class=${hi({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
        ?disabled=${bi(t?void 0:this.disabled)}
        type=${bi(t?void 0:"button")}
        href=${bi(t?this.href:void 0)}
        target=${bi(t?this.target:void 0)}
        download=${bi(t?this.download:void 0)}
        rel=${bi(t&&this.target?"noreferrer noopener":void 0)}
        role=${bi(t?void 0:"button")}
        aria-disabled=${this.disabled?"true":"false"}
        aria-label="${this.label}"
        tabindex=${this.disabled?"-1":"0"}
        @blur=${this.handleBlur}
        @focus=${this.handleFocus}
        @click=${this.handleClick}
      >
        <sl-icon
          class="icon-button__icon"
          name=${bi(this.name)}
          library=${bi(this.library)}
          src=${bi(this.src)}
          aria-hidden="true"
        ></sl-icon>
      </${e}>
    `}};vi.styles=[Oe,De],vi.dependencies={"sl-icon":li},tt([$e(".icon-button")],vi.prototype,"button",2),tt([Ke()],vi.prototype,"hasFocus",2),tt([Ve()],vi.prototype,"name",2),tt([Ve()],vi.prototype,"library",2),tt([Ve()],vi.prototype,"src",2),tt([Ve()],vi.prototype,"href",2),tt([Ve()],vi.prototype,"target",2),tt([Ve()],vi.prototype,"download",2),tt([Ve()],vi.prototype,"label",2),tt([Ve({type:Boolean,reflect:!0})],vi.prototype,"disabled",2);var Ei=new Map,Ii=new WeakMap;function Ci(t){return null!=t?t:{keyframes:[],options:{duration:0}}}function Bi(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function wi(t,e){Ei.set(t,Ci(e))}function xi(t,e,i){const n=Ii.get(t);if(null==n?void 0:n[e])return Bi(n[e],i.dir);const r=Ei.get(e);return r?Bi(r,i.dir):{keyframes:[],options:{duration:0}}}function Qi(t,e){return new Promise((i=>{t.addEventListener(e,(function n(r){r.target===t&&(t.removeEventListener(e,n),i())}))}))}function Si(t,e,i){return new Promise((n=>{if((null==i?void 0:i.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,((t,e)=>Y(t,W(e)))($({},i),{duration:ki()?0:i.duration}));r.addEventListener("cancel",n,{once:!0}),r.addEventListener("finish",n,{once:!0})}))}function ki(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Di(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel(),requestAnimationFrame(e)})))))}var _i=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=t=>{const e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&""!==t.textContent.trim())return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if("sl-visually-hidden"===e.tagName.toLowerCase())return!1;if(!e.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(t){return null!==this.host.querySelector(`:scope > [slot="${t}"]`)}test(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};const Ri=new Set,Mi=new Map;let Ti,Fi="ltr",Li="en";const Ni="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(Ni){const t=new MutationObserver(Ui);Fi=document.documentElement.dir||"ltr",Li=document.documentElement.lang||navigator.language,t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Pi(...t){t.map((t=>{const e=t.$code.toLowerCase();Mi.has(e)?Mi.set(e,Object.assign(Object.assign({},Mi.get(e)),t)):Mi.set(e,t),Ti||(Ti=t)})),Ui()}function Ui(){Ni&&(Fi=document.documentElement.dir||"ltr",Li=document.documentElement.lang||navigator.language),[...Ri.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}class Oi{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){Ri.add(this.host)}hostDisconnected(){Ri.delete(this.host)}dir(){return`${this.host.dir||Fi}`.toLowerCase()}lang(){return`${this.host.lang||Li}`.toLowerCase()}getTranslationData(t){var e,i;const n=new Intl.Locale(t.replace(/_/g,"-")),r=null==n?void 0:n.language.toLowerCase(),o=null!==(i=null===(e=null==n?void 0:n.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==i?i:"";return{locale:n,language:r,region:o,primary:Mi.get(`${r}-${o}`),secondary:Mi.get(r)}}exists(t,e){var i;const{primary:n,secondary:r}=this.getTranslationData(null!==(i=e.lang)&&void 0!==i?i:this.lang());return e=Object.assign({includeFallback:!1},e),!!(n&&n[t]||r&&r[t]||e.includeFallback&&Ti&&Ti[t])}term(t,...e){const{primary:i,secondary:n}=this.getTranslationData(this.lang());let r;if(i&&i[t])r=i[t];else if(n&&n[t])r=n[t];else{if(!Ti||!Ti[t])return console.error(`No translation found for: ${String(t)}`),String(t);r=Ti[t]}return"function"==typeof r?r(...e):r}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,i){return new Intl.RelativeTimeFormat(this.lang(),i).format(t,e)}}var Gi={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};Pi(Gi);var Hi=Gi,Vi=class extends Oi{};Pi(Hi);var Yi=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),zi=class extends ei{constructor(){super(...arguments),this.hasSlotController=new _i(this,"footer"),this.localize=new Vi(this),this.modal=new At(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),ht(this))}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate(),dt(this),this.removeOpenListeners()}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=xi(this,"dialog.denyClose",{dir:this.localize.dir()});Si(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){var t;"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var t;null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleOpenChange(){return Yi(this,null,(function*(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),ht(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),yield Promise.all([Di(this.dialog),Di(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=xi(this,"dialog.show",{dir:this.localize.dir()}),i=xi(this,"dialog.overlay.show",{dir:this.localize.dir()});yield Promise.all([Si(this.panel,e.keyframes,e.options),Si(this.overlay,i.keyframes,i.options)]),this.emit("sl-after-show")}else{(t=>{var e;const{activeElement:i}=document;i&&t.contains(i)&&(null==(e=document.activeElement)||e.blur())})(this),this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),yield Promise.all([Di(this.dialog),Di(this.overlay)]);const t=xi(this,"dialog.hide",{dir:this.localize.dir()}),e=xi(this,"dialog.overlay.hide",{dir:this.localize.dir()});yield Promise.all([Si(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),Si(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,dt(this);const i=this.originalTrigger;"function"==typeof(null==i?void 0:i.focus)&&setTimeout((()=>i.focus())),this.emit("sl-after-hide")}}))}show(){return Yi(this,null,(function*(){if(!this.open)return this.open=!0,Qi(this,"sl-after-show")}))}hide(){return Yi(this,null,(function*(){if(this.open)return this.open=!1,Qi(this,"sl-after-hide")}))}render(){return re`
      <div
        part="base"
        class=${hi({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
      >
        <div part="overlay" class="dialog__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>

        <div
          part="panel"
          class="dialog__panel"
          role="dialog"
          aria-modal="true"
          aria-hidden=${this.open?"false":"true"}
          aria-label=${bi(this.noHeader?this.label:void 0)}
          aria-labelledby=${bi(this.noHeader?void 0:"title")}
          tabindex="-1"
        >
          ${this.noHeader?"":re`
                <header part="header" class="dialog__header">
                  <h2 part="title" class="dialog__title" id="title">
                    <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(65279)} </slot>
                  </h2>
                  <div part="header-actions" class="dialog__header-actions">
                    <slot name="header-actions"></slot>
                    <sl-icon-button
                      part="close-button"
                      exportparts="base:close-button__base"
                      class="dialog__close"
                      name="x-lg"
                      label=${this.localize.term("close")}
                      library="system"
                      @click="${()=>this.requestClose("close-button")}"
                    ></sl-icon-button>
                  </div>
                </header>
              `}
          ${""}
          <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>

          <footer part="footer" class="dialog__footer">
            <slot name="footer"></slot>
          </footer>
        </div>
      </div>
    `}};zi.styles=[Oe,ke],zi.dependencies={"sl-icon-button":vi},tt([$e(".dialog")],zi.prototype,"dialog",2),tt([$e(".dialog__panel")],zi.prototype,"panel",2),tt([$e(".dialog__overlay")],zi.prototype,"overlay",2),tt([Ve({type:Boolean,reflect:!0})],zi.prototype,"open",2),tt([Ve({reflect:!0})],zi.prototype,"label",2),tt([Ve({attribute:"no-header",type:Boolean,reflect:!0})],zi.prototype,"noHeader",2),tt([Ue("open",{waitUntilFirstUpdate:!0})],zi.prototype,"handleOpenChange",1),wi("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),wi("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),wi("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),wi("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),wi("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});zi.define("sl-dialog");var Wi=i(89262),Zi=i(68918),ji=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,Ji=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Xi=Object.prototype.propertyIsEnumerable,$i=(t,e,i)=>e in t?ji(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,tn=(t,e)=>{for(var i in e||(e={}))Ki.call(e,i)&&$i(t,i,e[i]);if(Ji)for(var i of Ji(e))Xi.call(e,i)&&$i(t,i,e[i]);return t},en=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?qi(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&ji(e,i,o),o};const nn=class{constructor(t){this.dialog=null,this.blacklistDialog=null,this.currentDmid=null,this.onClose=null,this.metaClickHandler=null,this.containerClickHandler=null,this.options=t,this.render()}dialogHideHandler(){var t;this.options.container.style.pointerEvents="",null==(t=this.onClose)||t.call(this)}blacklistDialogHideHandler(){this.options.container.style.pointerEvents=""}render(){const{container:t,actions:e,report:i}=this.options;this.options.container.style.pointerEvents="all",this.containerClickHandler=t=>{const e=t.target;if(!e.closest(`.${this.options.prefix}-dm-up-menu-dialog`)&&!e.closest(`.${this.options.prefix}-dm-up-menu-blacklist-dialog`))return t.stopPropagation(),t.preventDefault(),!1},t.addEventListener("click",this.containerClickHandler,!0);let n="",r="";if(e.forEach(((t,e)=>{const i=nn.ITEM_TEXTS[e]||{title:"",desc:""},o=t.icon?`<span class="${this.options.prefix}-dm-up-menu-icon">${t.icon}</span>`:"",a=this.options.arrowSvg,s=[1,2,3,4].includes(e)?`<span class="${this.options.prefix}-dm-up-menu-arrow">${a}</span>`:"",l=i.desc?`<div class="${this.options.prefix}-dm-up-menu-desc">${i.desc}</div>`:"",A=`\n        <div class="${this.options.prefix}-dm-up-menu-item${i.desc?` ${this.options.prefix}-dm-up-menu-item-has-desc`:""}${i.alone?` ${this.options.prefix}-dm-up-menu-item-alone`:""}" data-action="${e}">\n          ${o}\n          <div class="${this.options.prefix}-dm-up-menu-item-content">\n            <div class="${this.options.prefix}-dm-up-menu-item-title">${i.title}</div>\n            ${l}\n          </div>\n          ${s}\n        </div>\n      `;i.alone?r+=A:n+=A})),t.innerHTML=`\n      <sl-dialog class="${this.options.prefix}-dm-up-menu-dialog" no-close-on-escape no-close-on-overlay-click style="--sl-panel-animation: none;">\n        <div slot="label" class="${this.options.prefix}-dm-up-menu-header">\n          <div class="${this.options.prefix}-dm-up-menu-title">${this.options.title}</div>\n          <div class="${this.options.prefix}-dm-up-menu-meta" style="cursor: pointer;">发送人：${this.options.sender} <span class="${this.options.prefix}-dm-up-menu-meta-arrow"></span></div>\n        </div>\n        <div class="${this.options.prefix}-dm-up-menu-list">\n          <div class="${this.options.prefix}-dm-up-menu-group">\n            ${n}\n          </div>\n          ${r}\n        </div>\n      </sl-dialog>\n    `,this.dialog=t.querySelector(`sl-dialog.${this.options.prefix}-dm-up-menu-dialog`),this.dialog&&this.dialog.addEventListener("sl-hide",this.dialogHideHandler),!this.blacklistDialog){const e=`\n        <sl-dialog class="${this.options.prefix}-dm-up-menu-blacklist-dialog" no-close-on-escape no-close-on-overlay-click style="--sl-panel-animation: none;">\n            <div class="${this.options.prefix}-blacklist-close" slot="suffix"></div>\n            <div class="${this.options.prefix}-blacklist-title">确认拉黑用户</div>\n            <ul class="${this.options.prefix}-blacklist-list">\n                <li>解除对方与我的关注关系</li>\n                <li>禁止对方访问我的空间</li>\n                <li>禁止对方与我互动</li>\n            </ul>\n            <div slot="footer" class="${this.options.prefix}-blacklist-footer">\n                <button class="${this.options.prefix}-blacklist-cancel">取消</button>\n                <button class="${this.options.prefix}-blacklist-confirm">确认</button>\n            </div>\n        </sl-dialog>\n            `;if(t.appendChild((0,o.i)(e)),this.blacklistDialog=t.querySelector(`sl-dialog.${this.options.prefix}-dm-up-menu-blacklist-dialog`),this.blacklistDialog){this.blacklistDialog.addEventListener("sl-hide",this.blacklistDialogHideHandler);const t=this.blacklistDialog.querySelector(`.${this.options.prefix}-blacklist-cancel`),e=this.blacklistDialog.querySelector(`.${this.options.prefix}-blacklist-confirm`),i=this.blacklistDialog.querySelector(`.${this.options.prefix}-blacklist-close`);null==t||t.addEventListener("click",(()=>{var t;null==(t=this.blacklistDialog)||t.hide()})),null==e||e.addEventListener("click",(()=>{var t,e;null==(t=this.options.actions[nn.MENU_ITEM_INDEX.BLACKLIST])||t.onClick(),null==(e=this.blacklistDialog)||e.hide()})),null==i||i.addEventListener("click",(()=>{var t;null==(t=this.blacklistDialog)||t.hide()}))}}t.querySelectorAll(`.${this.options.prefix}-dm-up-menu-item`).forEach(((t,i)=>{var n;const r=t.cloneNode(!0);null==(n=t.parentNode)||n.replaceChild(r,t),r.addEventListener("click",(()=>{var t,n,r;const o=nn.ITEM_TEXTS[i];"加入黑名单"===(null==o?void 0:o.title)?(null==(t=this.dialog)||t.hide(),setTimeout((()=>{var t;this.options.container.style.pointerEvents="all",null==(t=this.blacklistDialog)||t.show()}),300)):(null==(n=e[i])||n.onClick(),null==(r=this.dialog)||r.hide())}))}));const a=t.querySelector(`.${this.options.prefix}-dm-up-menu-meta`);if(a){const t=this.options.arrowSvg||'<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M4 3l4 3-4 3" stroke="rgba(255,255,255,0.6)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';a.innerHTML=`发送人：${this.options.sender} <span class="${this.options.prefix}-dm-up-menu-meta-arrow">${t}</span>`,this.metaClickHandler=()=>{null==i||i(0),(0,Zi.x)(`https://space.bilibili.com/${this.options.mid}`)},a.addEventListener("click",this.metaClickHandler)}}show(){var t;this.options.container.style.pointerEvents="all",null==(t=this.dialog)||t.show()}hide(){var t;null==(t=this.dialog)||t.hide()}destroy(){var t,e,i;const n=null==(t=this.dialog)?void 0:t.querySelector(`.${this.options.prefix}-dm-up-menu-meta`);n&&this.metaClickHandler&&(n.removeEventListener("click",this.metaClickHandler),this.metaClickHandler=null),this.containerClickHandler&&(this.options.container.removeEventListener("click",this.containerClickHandler,!0),this.containerClickHandler=null),this.dialog&&this.dialog.removeEventListener("sl-hide",this.dialogHideHandler),this.blacklistDialog&&this.blacklistDialog.removeEventListener("sl-hide",this.blacklistDialogHideHandler),(null==(e=this.blacklistDialog)?void 0:e.parentNode)&&this.blacklistDialog.parentNode.removeChild(this.blacklistDialog),(null==(i=this.dialog)?void 0:i.parentNode)&&this.dialog.parentNode.removeChild(this.dialog),this.options.container.style.pointerEvents="none",this.dialog=null,this.blacklistDialog=null,this.options=null}update(t){if(this.options=tn(tn({},this.options),t),t.currentDmid&&(this.currentDmid=t.currentDmid),this.dialog){const e=this.dialog.querySelector(`.${this.options.prefix}-dm-up-menu-title`),i=this.dialog.querySelector(`.${this.options.prefix}-dm-up-menu-meta`);e&&t.title&&(e.textContent=t.title),i&&(t.sender?(i.style.display="flex",
i.innerHTML=`发送人：${t.sender} <span class="${this.options.prefix}-dm-up-menu-meta-arrow">${this.options.arrowSvg||'<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M4 3l4 3-4 3" stroke="rgba(255,255,255,0.6)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>'}</span>`,this.metaClickHandler&&i.removeEventListener("click",this.metaClickHandler),this.metaClickHandler=()=>{var t,e;null==(e=(t=this.options).report)||e.call(t,0),window.open(`https://space.bilibili.com/${this.options.mid}`)},i.addEventListener("click",this.metaClickHandler)):i.style.display="none"),t.actions&&this.dialog.querySelectorAll(`.${this.options.prefix}-dm-up-menu-item`).forEach(((e,i)=>{var n;const r=e.cloneNode(!0);null==(n=e.parentNode)||n.replaceChild(r,e),r.addEventListener("click",(()=>{var e,n,r;const o=nn.ITEM_TEXTS[i];"加入黑名单"===(null==o?void 0:o.title)?(null==(e=this.dialog)||e.hide(),setTimeout((()=>{var t;this.options.container.style.pointerEvents="all",null==(t=this.blacklistDialog)||t.show()}),300)):(null==(n=t.actions[i])||n.onClick(),null==(r=this.dialog)||r.hide())}))}))}}updateDmid(t){this.currentDmid=t}setOnClose(t){this.onClose=t}};let rn=nn;rn.ITEM_TEXTS=[{title:"删除",desc:""},{title:"举报",desc:""},{title:"加入黑名单",desc:""},{title:"弹幕互动屏蔽词",desc:"我的稿件不展示特定弹幕"},{title:"更多互动设置",desc:"",alone:!0}],rn.MENU_ITEM_INDEX={DELETE:0,REPORT:1,BLACKLIST:2,AUTO_BLOCK:3,MORE_SETTINGS:4},en([Wi.ZP],rn.prototype,"dialogHideHandler",1),en([Wi.ZP],rn.prototype,"blacklistDialogHideHandler",1);var on=Object.defineProperty,an=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,ln=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,hn=Math.pow,dn=(t,e,i)=>e in t?on(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class un extends l.vq{constructor(){super(...arguments),this.dmLikeInfo={},this.trackInfo={hoverNum:0,clickNum:0,clickAll:0,clickCel:0,clickBack:0},this.mousePosition={x:-1,y:-1}}install(){return super.install(),this.configStore.onlyTouchMode||this.init(),this}init(){const t=this.nodes.dialogWrap;t.appendChild(this.tpl()),this.template={tip:t.querySelector(`.${this.ppx}-dm-tip`),like:t.querySelector(`.${this.ppx}-dm-tip-like`),likeNum:t.querySelector(`.${this.ppx}-dm-tip-like-num`),animate:t.querySelector(`.${this.ppx}-dm-tip-like-animate`),back:t.querySelector(`.${this.ppx}-dm-tip-back`),copy:t.querySelector(`.${this.ppx}-dm-tip-copy`),recall:t.querySelector(`.${this.ppx}-dm-tip-recall`),bgM:t.querySelector(`.${this.ppx}-dm-tip-svgm`),bgL:t.querySelector(`.${this.ppx}-dm-tip-svgl`)},this.events()}events(){const t=(0,n.Z)((()=>{this.resize()}),40);this.resize(),this.dc.isOwner=(0,A.U5)((()=>this.userStore.isUpOwner),(t=>{t?(this.template.back.innerHTML=`${d()}`,this.tooltipStore.remove("upowner:like"),this.tooltipStore.create({tip:!0,gap:20,name:"upowner:like",position:l.DU.BottomCenter,target:this.template.like,title:"UP主点赞后优先展示"})):(this.tooltipStore.remove("upowner:like"),this.template.back.innerHTML=`${p()}`)}),{fireImmediately:!0}),this.dc.resize=(0,A.U5)((()=>({height:this.uiStore.state.videoAreaHeight,width:this.uiStore.state.videoAreaWidth})),(({height:e,width:i})=>{i&&e&&t()}),{fireImmediately:!0}),this.nodes.videoArea.addEventListener("mousemove",(t=>{var e,i;const n=t.pageX-this.playerRect.x,r=t.pageY-this.playerRect.y;if(this.dmMaskStore.dmMaskSvg&&!this.dmMaskStore.isPointFillInMask(n,r,this.playerRect))return;if(this.locked)return;const o=t.target;if(this.nodes.videoPerch.contains(o)||this.template.tip.contains(o)){const n=t.pageX-this.playerRect.x;if(this.mousePosition.x=n,this.mousePosition.y=t.pageY-this.playerRect.y,this.isMoving||(this.isMoving=!0,this.dmhover(performance.now())),this.moveEvents(),null==(i=null==(e=this.stopDm)?void 0:e.dm)?void 0:i.eventRange){const[t,e=0]=this.stopDm.dm.eventRange,{x:i,range:r}=this.stopDm.dm;let o=n-i;t<0&&(o=n-(r-i)),o>=t&&o<=e?this.addMouseEvent():this.rmMouseEvent()}else this.rmMouseEvent()}else this.reportPanel&&this.reportPanel.wrap.contains(o)&&clearTimeout(this.hoverHideTimer),this.moveLeave()})),this.nodes.videoArea.addEventListener("mouseleave",(t=>{this.locked||this.moveLeave()})),this.nodes.videoArea.addEventListener("click",(t=>{var e,i,n,r,o,a,s,A,c,h,d,u,p,g,f,m;if(!this.locked)return this.clickDm?(this.dmLiked(1),this.trackExtra.p("player.dm-like.click",l.p0.Click,{dmid:null==(n=null==(i=null==(e=this.stopDm)?void 0:e.dm)?void 0:i.textData)?void 0:n.dmid,msg:null==(a=null==(o=null==(r=this.stopDm)?void 0:r.dm)?void 0:o.textData)?void 0:a.text,is_highlight_dm:!!(null==(c=null==(A=null==(s=this.stopDm)?void 0:s.dm)?void 0:A.textData)?void 0:c.isHighLike),is_updm:(null==(u=null==(d=null==(h=this.stopDm)?void 0:h.dm)?void 0:d.textData)?void 0:u.mode)===H.yC.UpProfile,weight:null==(f=null==(g=null==(p=this.stopDm)?void 0:p.dm)?void 0:g.textData)?void 0:f.weight,state:(null==(m=this.stopDm)?void 0:m.liked)?2:1,is_folddm:!1}),t.stopPropagation(),void t.preventDefault()):void 0}),!0),this.template.tip.addEventListener("mouseenter",(()=>{this.locked||(this.animateHover&&window.cancelAnimationFrame(this.animateHover),this.enterTip=!0)})),this.template.tip.addEventListener("mouseleave",(()=>{this.locked||this.enterBack||(this.tipLeaveTimer&&clearTimeout(this.tipLeaveTimer),this.tipLeaveTimer=window.setTimeout((()=>{this.leaveTip()}),200))})),this.template.like.addEventListener("click",(()=>{var t,e,i,n,r,o,a,s,A,c,h,d,u,p,g,f;this.trackInfo.clickAll++,this.trackExtra.p("player.dm-like.click",l.p0.Click,{dmid:null==(i=null==(e=null==(t=this.stopDm)?void 0:t.dm)?void 0:e.textData)?void 0:i.dmid,msg:null==(o=null==(r=null==(n=this.stopDm)?void 0:n.dm)?void 0:r.textData)?void 0:o.text,is_highlight_dm:!!(null==(A=null==(s=null==(a=this.stopDm)?void 0:a.dm)?void 0:s.textData)?void 0:A.isHighLike),is_updm:(null==(d=null==(h=null==(c=this.stopDm)?void 0:c.dm)?void 0:h.textData)?void 0:d.mode)===H.yC.UpProfile,weight:null==(g=null==(p=null==(u=this.stopDm)?void 0:u.dm)?void 0:p.textData)?void 0:g.weight,state:(null==(f=this.stopDm)?void 0:f.liked)?2:1,is_folddm:!1}),this.dmLiked()})),this.template.back.addEventListener("click",(()=>{var t,e,i,n,r,o,a,s,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B,w,x,Q,S,k,D,_,R,M,T;this.trackInfo.clickBack++;const F=null==(e=null==(t=this.stopDm)?void 0:t.dm)?void 0:e.textData,L=null==F?void 0:F.dmid;if(this.trackExtra.p("player.dm-report.click",l.p0.Click,{dmid:null==(r=null==(n=null==(i=this.stopDm)?void 0:i.dm)?void 0:n.textData)?void 0:r.dmid,msg:null==(s=null==(a=null==(o=this.stopDm)?void 0:o.dm)?void 0:a.textData)?void 0:s.text,is_highlight_dm:!!(null==(h=null==(c=null==(A=this.stopDm)?void 0:A.dm)?void 0:c.textData)?void 0:h.isHighLike),is_updm:(null==(p=null==(u=null==(d=this.stopDm)?void 0:d.dm)?void 0:u.textData)?void 0:p.mode)===H.yC.UpProfile,weight:null==(m=null==(f=null==(g=this.stopDm)?void 0:g.dm)?void 0:f.textData)?void 0:m.weight,is_folddm:!1}),this.userStore.isUpOwner)return this.enterBack=!0,clearTimeout(this.hoverHideTimer),this.trackStore.polarReport("player.dm-more",l.Rr.click,{dmid:null==(v=null==(b=null==(y=this.stopDm)?void 0:y.dm)?void 0:b.textData)?void 0:v.dmid,msg:null==(C=null==(I=null==(E=this.stopDm)?void 0:E.dm)?void 0:I.textData)?void 0:C.text,is_highlight_dm:!!(null==(x=null==(w=null==(B=this.stopDm)?void 0:B.dm)?void 0:w.textData)?void 0:x.isHighLike),is_updm:(null==(k=null==(S=null==(Q=this.stopDm)?void 0:Q.dm)?void 0:S.textData)?void 0:k.mode)===H.yC.UpProfile,weight:null==(R=null==(_=null==(D=this.stopDm)?void 0:D.dm)?void 0:_.textData)?void 0:R.weight}),this.showUpOwnerMenu(null==(M=this.stopDm)?void 0:M.dm),this.template.tip.classList.add(`${this.ppx}-hide`),this.dmLeave(),void this.leaveTip();if(L){this.userStore.info;if(!this.userStore.isLogin)return void this.userStore.requestQuickLogin();if(this.dmListStore.isMineDanmaku(F))return void this.danmakuStore.tooltipCenter("c_report","不能举报自己弹幕");if(this.track.e("contextmenu_report",{dmid:L}),this.isNotRepeatReport(L))return this.enterBack=!0,clearTimeout(this.hoverHideTimer),void this.reportShow(null==(T=this.stopDm)?void 0:T.dm).show();this.danmakuStore.tooltipCenter("c_report","已举报")}
this.dmLeave()})),this.template.copy.addEventListener("click",(()=>{var t,e,i,n,r,o,a,s,A,c,h,d,u,p,g,f;return this.dmCopy(null==(t=this.stopDm.dm)?void 0:t.textData),this.trackExtra.p("player.dm-copy.click",l.p0.Click,{dmid:null==(n=null==(i=null==(e=this.stopDm)?void 0:e.dm)?void 0:i.textData)?void 0:n.dmid,msg:null==(a=null==(o=null==(r=this.stopDm)?void 0:r.dm)?void 0:o.textData)?void 0:a.text,is_highlight_dm:!!(null==(c=null==(A=null==(s=this.stopDm)?void 0:s.dm)?void 0:A.textData)?void 0:c.isHighLike),is_updm:(null==(u=null==(d=null==(h=this.stopDm)?void 0:h.dm)?void 0:d.textData)?void 0:u.mode)===H.yC.UpProfile,weight:null==(f=null==(g=null==(p=this.stopDm)?void 0:p.dm)?void 0:g.textData)?void 0:f.weight,is_folddm:!1}),this.tracks("contextmenu_copy"),!1})),this.template.recall.addEventListener("click",(()=>{var t,e,i,n,r,o,a,s,A,c,h,d,u,p,g,f,m,y,b;return this.dmListStore.recall(null==(e=null==(t=this.stopDm.dm)?void 0:t.textData)?void 0:e.dmid,null==(n=null==(i=this.stopDm.dm)?void 0:i.textData)?void 0:n.oid).then((t=>{if(t&&(void 0!==t.body.code||t.body.message))0===t.body.code?this.danmakuStore.tooltipCenter("recall","撤回成功"):this.danmakuStore.tooltipCenter("recall",t.body.message);else{const t="撤回失败，服务器出错";this.danmakuStore.tooltipCenter("recall",t)}})),this.tracks("contextmenu_recall"),this.trackExtra.p("player.dm-recall.click",l.p0.Click,{dmid:null==(a=null==(o=null==(r=this.stopDm)?void 0:r.dm)?void 0:o.textData)?void 0:a.dmid,msg:null==(c=null==(A=null==(s=this.stopDm)?void 0:s.dm)?void 0:A.textData)?void 0:c.text,is_highlight_dm:!!(null==(u=null==(d=null==(h=this.stopDm)?void 0:h.dm)?void 0:d.textData)?void 0:u.isHighLike),is_updm:(null==(f=null==(g=null==(p=this.stopDm)?void 0:p.dm)?void 0:g.textData)?void 0:f.mode)===H.yC.UpProfile,weight:null==(b=null==(y=null==(m=this.stopDm)?void 0:m.dm)?void 0:y.textData)?void 0:b.weight,is_folddm:!1}),!1})),this.rootPlayer.on(l.tw.Player_Sand_Animation_Running,(t=>{this.locked=t.detail.isRunning})),this.rootPlayer.on(l.p2.PLAYER_UNLOAD,(t=>{var e;const i=(e=this.metricStore.quitInfo).dmInfo||(e.dmInfo={});for(const t in this.trackInfo)this.trackInfo[t]&&(i[t]=this.trackInfo[t])}))}tracks(t){var e,i;const n=null==(i=null==(e=this.stopDm)?void 0:e.dm)?void 0:i.textData;n&&this.track.e(t,{dmid:n.dmid,msg:n.text,is_highlight_dm:!!n.isHighLike,weight:n.weight,hover:1})}dmCopy(t){let e="";e=c.T.copy(t.rawMode>6?"<? 高级弹幕 />":t.text,{container:this.container})?"已复制":"复制失败",this.tooltipStore.create({target:this.container,name:"copy",title:e,duration:1e3,position:l.DU.CenterCenter})}dmLiked(t=0){var e;if(!this.stopDm||void 0===this.stopDm.liked)return;if(!this.userStore.isLogin)return this.userStore.requestQuickLogin(),!1;const{dmid:i,modeInfo:n}=(null==(e=this.stopDm.dm)?void 0:e.textData)||{};let{cid:r}=n||{};const o=this.stopDm.liked;let a=this.stopDm.num;this.likeStatus(!o),o&&this.trackInfo.clickCel++,r=r||this.configStore.cid,i&&(a=o?--a:++a,this.trackInfo.clickNum++,this.danmakuStore.dmLike(i,o?2:1,r),this.dmLikeInfo[i]=Promise.resolve({liked:!o,num:a}),this.stopDm.dm.likeNum(!o),this.track.e(o?"dm_unlike":"dm_like",{dmid:i,quick:t})),this.likedTimer=window.setTimeout((()=>{this.dmLeave()}),500)}likeStatus(t){this.template.like.innerHTML=t?f():y()}addMouseEvent(){this.clickDm=!0,this.nodes.videoArea.classList.add(`${this.ppx}-mouse-event`)}rmMouseEvent(){this.clickDm=!1,this.nodes.videoArea.classList.remove(`${this.ppx}-mouse-event`)}moveEvents(){clearTimeout(this.hoverTimer),clearTimeout(this.hoverHideTimer),this.noCursor=!1,this.hoverTimer=window.setTimeout((()=>{this.noCursor=!0}),500),this.hoverHideTimer=window.setTimeout((()=>{this.dmLeave()}),2e3)}moveLeave(){this.mousePosition.x=-1,this.mousePosition.y=-1}dmhover(t){var e,i,n,o,a,s,A,c,h,d,u,p,g,f,m,y,b;if(this.enterTip||this.enterBack||!this.isMoving)return;this.animateHover=window.requestAnimationFrame((t=>{this.dmhover(t)}));const{x:E,y:C}=this.mousePosition;if(E<22||E>this.playerRect.width-22||C<0||C>this.playerRect.height-22||!t)return void this.dmLeave();if(!this.stopDm&&this.noCursor)return;const B=this.menuStore.getDmByPosition({clientX:0,clientY:0,x:E,y:C}),w=null==(e=this.stopDm)?void 0:e.dm;let x;for(let t=0;t<B.length;t++){const{likes:e,dmid:i,isHighLike:n,mode:r,modeInfo:o}=B[t].textData||{};if(e&&!n||r===H.yC.Guest||r===H.yC.Yanwen||r===H.yC.HarryPotter||r===H.yC.LiveToVod||!B[t].mouseEnter||(null==o?void 0:o.isUpSlogan))B.splice(t,1),t--;else if(this.blockStore.tempBlockList.includes(i))B.splice(t,1),t--;else if(w===B[t]&&this.stopDm.hover){x=B[t];break}}if(B.sort(((t,e)=>t.index2hover?t.index2hover-e.index2hover:t.showTime-e.showTime)),x=x||B[B.length-1],!(null==x?void 0:x.textData))return void this.dmLeave();const{dmid:Q}=(null==(i=this.stopDm)?void 0:i.dm.textData)||{};let S;if(this.patchAdvStore.hasValidAdv){const t=null==(s=null==(a=null==(o=null==(n=this.stopDm)?void 0:n.dm)?void 0:o.textData)?void 0:a.modeInfo)?void 0:s.cid,e=this.dmListStore.isMineDanmaku(null==(A=this.stopDm)?void 0:A.dm.textData),i=this.patchAdvStore.isPatchAdv(t);S=!e&&i,null==(c=this.template.like)||c.classList[S?"add":"remove"](`${this.ppx}-dm-hover-disappear`),null==(h=this.template.likeNum)||h.classList[S?"add":"remove"](`${this.ppx}-dm-hover-disappear`),null==(d=this.template.back)||d.classList[S?"add":"remove"](`${this.ppx}-dm-hover-disappear`),null==(u=this.template.bgM)||u.classList[S?"add":"remove"](`${this.ppx}-dm-hover-width`),S?(null==(p=this.template.tip)||p.classList.add(`${this.ppx}-dm-tip-patch`),this.template.bgM.innerHTML=`${v()}`):(null==(g=this.template.tip)||g.classList.remove(`${this.ppx}-dm-tip-patch`),this.template.bgM.innerHTML=`${I()}`)}if(Q&&Q===(null==(f=x.textData)?void 0:f.dmid)){if(t-this.stopDm.time>150&&!this.stopDm.hover){this.danmakuStore.isPaused||x.mouseEnter(),this.trackInfo.hoverNum++;let t=(x.y+x.height||x.bottom)-4,e=this.mousePosition.x,i=`${this.ppx}-dm-tip`;t>this.playerRect.height-150?(t=x.y-54,S?i+=` ${this.ppx}-showT`:e<.1*this.playerRect.width?i+=` ${this.ppx}-showLT`:e>.9*this.playerRect.width?i+=` ${this.ppx}-showRT`:i+=` ${this.ppx}-showT`):S?i+=` ${this.ppx}-showB`:e<.1*this.playerRect.width?i+=` ${this.ppx}-showL`:e>.9*this.playerRect.width?i+=` ${this.ppx}-showR`:i+=` ${this.ppx}-showB`,e<82&&(e=82),S?e>this.playerRect.width-52&&(e=this.playerRect.width-52):e>this.playerRect.width-82&&(e=this.playerRect.width-82),this.template.tip.className=i,this.template.tip.style.cssText=`top:${t}px;left:${e}px`,this.stopDm.hover=!0,this.trackExtra.p("player.dm-menu.show",l.p0.Appear,{dmid:null==(m=x.textData)?void 0:m.dmid,is_updm:(null==(y=x.textData)?void 0:y.mode)===H.yC.UpProfile,is_highlight_dm:null==(b=x.textData)?void 0:b.isHighLike,is_folddm:0}),this.likeStatus(!1),this.getDmLikeInfo(x.textData.dmid).then((t=>{var e;(null==(e=this.stopDm)?void 0:e.hover)&&(this.stopDm.liked=t.liked,this.stopDm.num=t.num,t.liked&&this.likeStatus(t.liked),this.likeStatus(t.liked),this.likeNum(),this.masterState())})).catch(r.Z)}}else this.dmLeave(),this.template.like.classList.remove(`${this.ppx}-animate`),this.template.like.classList.remove(`${this.ppx}-liked`),this.stopDm={time:t,dm:x},this.danmakuStore.setState({noStopDm:!1})}masterState(){var t,e;const i=this.dmListStore.isMineDanmaku(null==(e=null==(t=this.stopDm)?void 0:t.dm)?void 0:e.textData);this.template.tip.classList[i?"add":"remove"](`${this.ppx}-master`)}likeNum(t=0){this.stopDm.num+=t,this.template.likeNum.textContent=this.formatNum(this.stopDm.num),this.updateDmLikeInfo()}formatNum(t){let e=String(t);t>1e4&&(e=(t/1e4).toFixed(1)+"万");const i=t>hn(10,5);return this.template.tip.classList[i?"add":"remove"](`${this.ppx}-many-like`),t?e:""}updateDmLikeInfo(){var t;const{dmid:e}=(null==(t=this.stopDm.dm)?void 0:t.textData)||{};e&&(this.dmLikeInfo[e]=Promise.resolve({num:this.stopDm.num,liked:this.stopDm.liked}))}leaveTip(){this.enterTip=!1,this.enterBack=!1,this.dmhover(performance.now())}dmLeave(){var t,e,i;this.isMoving=!1,this.rmMouseEvent(),(null==(t=this.stopDm)?void 0:t.hover)&&(null==(i=null==(e=this.stopDm)?void 0:e.dm)||i.mouseLeave(),this.template.tip.classList.add(`${this.ppx}-hide`)),this.stopDm=null,
this.danmakuStore.state.noStopDm||this.danmakuStore.setState({noStopDm:!0})}getDmLikeInfo(t){return this.dmLikeInfo[t]||(this.dmLikeInfo[t]=this.danmakuStore.dmLikeStats(t),this.dmLikeInfo[t]=new Promise(((e,i)=>{this.danmakuStore.dmLikeStats(t).then((({body:t})=>{t?e(t):i(t)})).catch((t=>{i(t)}))}))),this.dmLikeInfo[t]}get hitDmReportABTest(){var t;return"V1"===(null==(t=window.webAbTest)?void 0:t.danmaku_report_version)}reportShow(t){const e=null==t?void 0:t.textData,i=null==t?void 0:t.element;let n;const r=null==e?void 0:e.effect;return n=20016===(null==r?void 0:r.id)&&(null==r?void 0:r.cid)&&(null==r?void 0:r.cid)!==this.configStore.cid?null==r?void 0:r.cid:this.configStore.cid,this.hitDmReportABTest?this.reportPanel=new s.P(this.nodes.dmReportWrap,{ppx:this.ppx,domEle:i,aid:this.configStore.aid,cid:this.configStore.cid,scene:"web_player",dmcontent:e.text,dmid:e.dmid,from_spmid:this.configStore.spmId,submit:t=>{var n,r,o,a,l,A;this.track.e("dm_report_contextmenu",{dmid:e.dmid,code:null==(n=t.response)?void 0:n.code,msg:null==(r=t.response)?void 0:r.message}),(t.res||36204===(null==(o=t.response)?void 0:o.code))&&s.P.reported.push(e.dmid),t.block_action.block_user,t.block_action.block_dm&&this.danmakuStore.dmReportBlock(`^(${e.text})+$`,e.dmid,e.uhash),(t.res||36204===(null==(a=t.response)?void 0:a.code))&&this.fadeOut(i,(()=>{(null==t?void 0:t.dmid)&&!this.blockStore.tempBlockList.includes(t.dmid)&&this.blockStore.tempBlockList.push(t.dmid)})),t.res||36204===(null==(l=t.response)?void 0:l.code)?this.toastStore.create({text:"举报已受理",duration:3e3}):this.toastStore.create({text:(null==(A=t.response)?void 0:A.message)||"举报失败",duration:3e3}),this.reportPanel=null},hide:t=>{t||(this.leaveTip(),this.dmLeave()),this.reportPanel=null}}):(this.reportPanel||(this.reportPanel=new a.y(this.nodes.videoArea,G.ZP,{theme:"black",ppx:this.ppx,close:B(),domEle:i,submit:(t,i)=>this.danmakuStore.dmReport(t,e.multiView||t.originCid).then((({body:e})=>{var n;return 0!==e.code&&36204!==e.code||(this.fadeOut(this.reportPanel.domEle,(()=>{this.dmLeave(),this.leaveTip();const e=this.userStore.isUpOwner?"举报已受理, 弹幕已删除":"举报已受理";this.toastStore.create({text:e,duration:3e3}),(null==t?void 0:t.dmid)&&!this.blockStore.tempBlockList.includes(t.dmid)&&this.blockStore.tempBlockList.push(t.dmid)})),this.danmakuStore.dmReportBlock(null==(n=e.data)?void 0:n.block,null==t?void 0:t.dmid,i)),e.code})).catch((t=>(this.toastStore.create({text:(null==t?void 0:t.message)||"举报失败"}),null))),hide:t=>{t||(this.leaveTip(),this.dmLeave())},checkbox:t=>{this.localStore.set({dmSend:{dmChecked:t}})}})),this.reportPanel.update(e,this.localStore.get().dmSend.dmChecked,n,i)),this.reportPanel}isNotRepeatReport(t){const e=s.P.reported||[];return!(e&&e instanceof Array)||!(e.indexOf(t)>-1)}resize(){this.playerRect=this.nodes.videoArea.getBoundingClientRect(),this.playerRect.y=this.playerRect.top+document.documentElement.scrollTop,this.playerRect.x=this.playerRect.left+document.documentElement.scrollLeft}tpl(){const t=this.userStore.isUpOwner,e=`<div class="${this.ppx}-dm-tip">\n        <div class="${this.ppx}-dm-tip-svgm">${I()}</div>\n        <div class="${this.ppx}-dm-tip-svgl">${x()}</div>\n        <div class="${this.ppx}-dm-tip-like">${y()}</div>\n        <div class="${this.ppx}-dm-tip-like-num"></div>\n        <div class="${this.ppx}-dm-tip-copy">${S()}</div>\n        <div class="${this.ppx}-dm-tip-recall">${D()}</div>\n        <div class="${this.ppx}-dm-tip-back">${t?d():p()}</div>\n        </div>`;return(0,o.i)(e)}onDispose(){super.onDispose(),this.locked=!1,this.dmLeave(),clearTimeout(this.likedTimer),clearTimeout(this.hoverTimer),clearTimeout(this.hoverHideTimer),this.fadeTimer&&(clearTimeout(this.fadeTimer),this.fadeTimer=null)}onDisconnect(){super.onDisconnect(),this.animateHover&&window.cancelAnimationFrame(this.animateHover),this.animateHover=null}showUpOwnerMenu(t){return e=this,i=null,n=function*(){const e=t.textData,i=t.element;if(e){let n="",r=0;try{const t=yield this.danmakuStore.upDmSender(e.dmid),{body:i}=t;0===i.code&&(n=i.data.nickname,r=i.data.mid)}catch(t){}const o=null==e?void 0:e.text,a=null==e?void 0:e.dmid,s=t=>{this.trackStore.polarReport("player.dm-more-pop",l.Rr.click,{button:t,msg:o,weight:null==e?void 0:e.weight,is_updm:(null==e?void 0:e.mode)===H.yC.UpProfile,is_highlight_dm:null==e?void 0:e.isHighLike,is_folddm:0})},A=(t,e)=>({icon:t,onClick:()=>e(i)}),c=[A(R(),(t=>{var e;s(1);const i=(null==(e=this.dmUpMenu)?void 0:e.currentDmid)||a;i&&this.danmakuStore.upDmDelete(i).then((e=>{0===e.body.code?this.toastStore.create({text:"弹幕删除成功",duration:2e3}):this.toastStore.create({text:"弹幕删除失败",duration:2e3}),this.fadeOut(t,(()=>{this.dmLeave(),this.leaveTip(),this.blockStore.tempBlockList.includes(i)||this.blockStore.tempBlockList.push(i)}))})).catch((t=>{this.toastStore.create({text:"弹幕删除失败",duration:2e3})}))})),A(p(),(i=>{var n;s(2);const r=(null==(n=this.dmUpMenu)?void 0:n.currentDmid)||a;if(r){if(this.userStore.info,!this.userStore.isLogin)return void this.userStore.requestQuickLogin();if(this.dmListStore.isMineDanmaku(e))return void this.toastStore.create({text:"不能举报自己弹幕",duration:3e3});if(this.track.e("contextmenu_report",{dmid:r}),this.isNotRepeatReport(r))return this.enterBack=!0,clearTimeout(this.hoverHideTimer),void this.reportShow(t).show();this.toastStore.create({text:"举报已受理, 弹幕已删除",duration:3e3})}this.dmLeave(),this.leaveTip()})),A(T(),(t=>{var e;s(3);const i=(null==(e=this.dmUpMenu)?void 0:e.currentDmid)||a;i&&(this.danmakuStore.dmForbid(i).then((e=>{0===e.body.code||22120===e.body.code?(this.toastStore.create({text:"拉黑成功，TA的弹幕和评论已被隐藏",duration:2e3}),this.fadeOut(t,(()=>{this.dmLeave(),this.leaveTip(),this.blockStore.tempBlockList.includes(i)||this.blockStore.tempBlockList.push(i)}))):this.toastStore.create({text:"拉黑成功，TA的弹幕和评论已被隐藏",duration:2e3})})).catch((t=>{this.toastStore.create({text:"拉黑失败",duration:2e3})})),this.dmLeave(),this.leaveTip())}))];this.uiStore.kind!==l.HR.Pugv&&(c.push({icon:L(),onClick:()=>{s(4),this.rootPlayer.emit(l.tw.Player_Virtual_Action,new CustomEvent(l.tw.Player_Virtual_Action,{detail:{kind:l.s.Interactive_Panel,data:{tab:l.cy.dm}}})),this.dmLeave(),this.leaveTip()}}),c.push({icon:P(),onClick:()=>{s(5),this.rootPlayer.emit(l.tw.Player_Virtual_Action,new CustomEvent(l.tw.Player_Virtual_Action,{detail:{kind:l.s.Interactive_Panel,data:{tab:l.cy.more}}})),this.dmLeave(),this.leaveTip()}})),this.dmUpMenu||(this.dmUpMenu=new rn({container:this.nodes.newDialogueArea,title:o,sender:n,mid:r,arrowSvg:O(),actions:c,currentDmid:a,report:s,prefix:this.ppx}),this.dmUpMenu.setOnClose((()=>{this.dmLeave(),this.leaveTip()}))),yield this.dmUpMenu.update({title:o,sender:n,mid:r,currentDmid:a,actions:c.map((t=>((t,e)=>an(t,sn(e)))(((t,e)=>{for(var i in e||(e={}))An.call(e,i)&&dn(t,i,e[i]);if(ln)for(var i of ln(e))cn.call(e,i)&&dn(t,i,e[i]);return t})({},t),{onClick:()=>{this.dmUpMenu.updateDmid(a),t.onClick()}})))}),this.dmUpMenu.show()}},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}fadeOut(t,e){this.fadeTimer&&(window.clearTimeout(this.fadeTimer),this.fadeTimer=null),t.style.transition="all 0.3s ease-out",t.style.opacity="0",t.style.transform="scale(0.8)",this.fadeTimer=window.setTimeout((()=>{t.style.display="none",null==e||e()}),300)}}},11039:function(t,e,i){"use strict";i.d(e,{K:function(){return Qs}});var n={};i.r(n),i.d(n,{glVertext:function(){return Ho},vertex:function(){return Oo},vertexCount:function(){return Go}});var r=i(71183),o={223:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail {\n  position: absolute;\n  top: var(--top);\n  left: 0;\n  width: 100%;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  white-space: normal;\n  opacity: 1;\n  z-index: 3;\n  border: none;\n  -webkit-box-sizing: content-box;\n          box-sizing: content-box;\n  height: var(--height);\n  line-height: 1.125;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail .bili-danmaku-x-blackhole-animate {\n  font-size: var(--size);\n  width: 4em;\n  height: 4em;\n  position: absolute;\n  left: calc(100% - var(--wrap-width) - 2em);\n  top: -1.5em;\n  opacity: 0;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail .bili-danmaku-x-blackhole-text-wrap {\n  width: var(--wrap-width);\n  overflow: hidden;\n  position: absolute;\n  right: 0;\n  height: 100%;\n  top: 0;\n  z-index: 2;\n  -webkit-mask-image: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(3%, #000000), to(#000000));\n  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 3%, #000000 100%);\n          mask-image: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(3%, #000000), to(#000000));\n          mask-image: linear-gradient(to right, transparent 0%, #000000 3%, #000000 100%);\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail .bili-danmaku-x-blackhole-text-wrap .bili-danmaku-x-blackhole-roll {\n  position: absolute;\n  top: 0;\n  left: calc(100% + var(--precise-distance));\n  padding: 0 10px;\n  white-space: pre;\n  text-shadow: 1px 0 1px var(--shadowColor), 0 1px 1px var(--shadowColor), 0 -1px 1px var(--shadowColor), -1px 0 1px var(--shadowColor);\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-perspective: 500px;\n          perspective: 500px;\n  will-change: transform opacity;\n  pointer-events: none;\n  line-height: 1.125;\n  font-weight: bold;\n  font-weight: var(--fontWeight, bold);\n  font-family: var(--fontFamily);\n  font-size: 25px;\n  font-size: var(--fontSize, 25px);\n  color: #ffffff;\n  color: var(--color, #ffffff);\n  text-shadow: var(--textShadow);\n  opacity: 1;\n  opacity: var(--opacity, 1);\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail .bili-danmaku-x-blackhole-text-wrap .bili-danmaku-x-blackhole-roll .bili-danmaku-x-blackhole-text {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail .bili-danmaku-x-blackhole-text-wrap .bili-danmaku-x-blackhole-roll .bili-danmaku-x-dm-back-tail-image {\n  display: inline-block;\n  overflow: hidden;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail.bili-danmaku-x-blackhole-rail-cloned .bili-danmaku-x-blackhole-animate {\n  left: auto;\n  left: initial;\n  right: calc(100% - var(--wrap-width) - 2em);\n  -webkit-transform: rotateY(180deg);\n          transform: rotateY(180deg);\n  opacity: 0;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail.bili-danmaku-x-blackhole-rail-cloned .bili-danmaku-x-blackhole-text-wrap {\n  height: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-blackhole-rail.bili-danmaku-x-blackhole-rail-cloned .bili-danmaku-x-blackhole-text-wrap .bili-danmaku-x-blackhole-roll {\n  left: var(--offset);\n}\n.bili-danmaku-x-show .bili-danmaku-x-blackhole-roll {\n  -webkit-animation: blackhole-roll linear var(--duration) forwards;\n          animation: blackhole-roll linear var(--duration) forwards;\n}\n.bili-danmaku-x-show .bili-danmaku-x-blackhole-animate {\n  -webkit-animation: blackhole-animate var(--blackhole-dur) steps(47) backwards;\n          animation: blackhole-animate var(--blackhole-dur) steps(47) backwards;\n  -webkit-animation-delay: var(--blackhole-delay);\n          animation-delay: var(--blackhole-delay);\n}\n.bili-danmaku-x-paused .bili-danmaku-x-blackhole-roll {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-blackhole-paused .bili-danmaku-x-blackhole-animate {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n@-webkit-keyframes blackhole-animate {\n  0% {\n    background-position: 0 0%;\n  }\n  100% {\n    background-position: 0 -4700%;\n  }\n}\n@keyframes blackhole-animate {\n  0% {\n    background-position: 0 0%;\n  }\n  100% {\n    background-position: 0 -4700%;\n  }\n}\n@-webkit-keyframes blackhole-roll {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n@keyframes blackhole-roll {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o
;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var i=a[t]={id:t,exports:{}};return o[t](i,i.exports,s),i.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};(()=>{s.d(l,{A:()=>C});const t=(e={BinaryArray:()=>r.no,DPX:()=>r.C5,RollRender:()=>r.pB,SpaceManager:()=>r.TV,getHexColor:()=>r.Xv},i={},s.d(i,e),i);var e,i,n=s(957),o=s.n(n),a=s(629),A=s.n(a),c=s(866),h=s.n(c),d=s(511),u=s.n(d),p=s(897),g=s.n(p),f=s(223),m={attributes:{"data-injector":"danmaku-x"}};m.setAttributes=u(),m.insert=h().bind(null,"head"),m.domAPI=A(),m.insertStyleElement=g(),o()(f.A,m),f.A&&f.A.locals&&f.A.locals;var y,b=(y=function(t,e){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return b(i,e),Object.defineProperty(i.prototype,"blackHoleList",{get:function(){return this.manager.collisionPool.getBlackHoleList()},enumerable:!1,configurable:!0}),i.prototype.collisionCheck=function(e,i){var n=e.config,r=n.setting,o=r.offsetTop,a=r.videoOffsetTop,s=r.videoOffsetHeight,l=r.area,A=r.offsetBottom,c=r.preventShade,h=s?s+a:e.verticalDistance,d=h-(A||0),u=e.textData,p=u.pool,g=u.border,f=u.isHighLike,m=1===p||g||f,y=e.verticalDistance*l/100,b=n.setting.density||1,v=(c?.85:1)*h;for(v=Math.min(v,d);i<3;){var E=(o||0)+(a||0),I=e.height,C=E+I,B=this.list[i];if(!B)return this.list[i]=new t.BinaryArray,B=this.list[i],this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i};for(var w=0;w<B.length;w++){var x=B[w];if(C>v)break;if(!(x.bottom<=E)){if(x.y>C)return this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i};if(x.y<=C&&x.bottom>=E){var Q=Math.floor(e.duration*(1-b)/2)+.1;if(e.x>x.x+x.width&&e.middle>x.endTime+Q){if(C<=x.bottom){if(this.hasDm(w+1,E,C,B))continue;return this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i}}continue}}if(C=(E=x.bottom+1)+I,y&&!m&&C>y)return e.duration=-1,{x:0,y:0,index:-1}}}for(var S=0===y?v:y;C<=S&&!this.blackHoleCheck(E,e);)C=++E+I;if(C<=S)return this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i};if(y&&!m)return e.duration=-1,{x:0,y:0,index:-1};i++}return{x:0,y:0,index:-1}},i.prototype.cloneBlackHoleCollisionCheck=function(e,i){var n=e.config,r=n.setting,o=r.offsetTop,a=r.videoOffsetTop,s=r.videoOffsetHeight,l=r.area,A=r.offsetBottom,c=r.preventShade,h=s?s+a:e.verticalDistance,d=h-(A||0),u=e.textData,p=u.pool,g=u.border,f=u.isHighLike,m=1===p||g||f,y=e.verticalDistance*l/100,b=n.setting.density||1,v=(c?.85:1)*h;for(v=Math.min(v,d);i<3;){var E=(o||0)+(a||0),I=e.height,C=E+I,B=this.list[i];if(!B)return this.list[i]=new t.BinaryArray,B=this.list[i],this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i};for(var w=0;w<B.length;w++){var x=B[w];if(C>v)break;if(!(x.bottom<=E)){if(x.y>C&&this.blackHoleCheck(E,e))return this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i};if(x.y<=C&&x.bottom>=E){var Q=Math.floor(e.duration*(1-b)/2)+1;if(e.x>x.x+x.width&&e.middle>x.endTime+Q||e.x+1.5*e.width<x.x&&x.middle>e.endTime+Q){if(!(C<=x.bottom))continue;if(this.hasDm(w+1,E,C,B))continue;if(this.blackHoleCheck(E,e))return this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i}}}if(C=(E=x.bottom+1)+I,y&&!m&&C>y)return{x:0,y:0,index:-1}}}for(var S=0===y?v:y;C<=S&&!this.blackHoleCheck(E,e);)C=++E+I;if(C<=S&&this.blackHoleCheck(E,e))return this.setBlackHole(e,B,E,i),{x:e.x,y:E,index:i};if(y&&!m)return e.duration=-1,{x:0,y:0,index:-1};i++}return{x:0,y:0,index:-1}},i.prototype.blackHoleCheck=function(t,e){if(e.isMaster)return!0;var i=this.countWordLength(e.text);if(i<6||i>20)return!1;var n=this.manager.containerSize,r=n.height;return n.width,!(t<.05*r)&&!(t>.95*r)&&(0===this.blackHoleList.length||!(this.blackHoleList.length>6)&&this.blackHoleList.every((function(i){return i.bottom+.05*r<=t||t+e.height+.05*r<=i.y})))},i.prototype.setBlackHole=function(t,e,i,n){t.y=i,t.index=n,t.bottom=t.y+t.height,e.binsert(t,this.sortFn),this.blackHoleCheck(i,t)?(this.blackHoleList.push(t),t.isCloned?this.getOriginBlackHoleByDmId(t.textData.dmid).forEach((function(t){t.isBlackHole=!0,t.blackHoleRender()})):t.cloneBlackHole()):t.isCloned&&(t.duration=-1,e.bremove(t))},i.prototype.add=function(t){var e=t.config;return t.height>=t.verticalDistance*(e.setting.preventShade?.85:1)?{x:0,y:0,index:-1}:t.isCloned?this.cloneBlackHoleCollisionCheck(t,0):this.collisionCheck(t,0)},i.prototype.remove=function(t){t.index>=0&&this.list[t.index].bremove(t);var e=this.blackHoleList.indexOf(t);e>=0&&this.blackHoleList.splice(e,1)},i.prototype.removeBlackHole=function(t){var e=this.blackHoleList.indexOf(t);e>=0&&this.blackHoleList.splice(e,1)},i.prototype.countWordLength=function(t){for(var e=0,i=0;i<t.length;i++)e+=t.charCodeAt(i)>255?2:1;return e/2},i.prototype.getOriginBlackHoleByDmId=function(t){var e;return(null===(e=this.blackHoleList)||void 0===e?void 0:e.filter((function(e){return e.textData.dmid===t})))||[]},i.prototype.hasDm=function(t,e,i,n){for(var r,o=t;o<n.length;o++)if(!((r=n[o]).bottom<e)){if(r.nowY>i)break;return!0}return!1},i}(t.SpaceManager),E=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),I=function(){return I=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},I.apply(this,arguments)};const C=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return E(i,e),Object.defineProperty(i.prototype,"isCloned",{get:function(){var t,e;return(null===(e=null===(t=this.textData)||void 0===t?void 0:t.modeInfo)||void 0===e?void 0:e.isCloned)||!1},set:function(t){this.textData&&this.textData.modeInfo&&(this.textData.modeInfo.isCloned=t)},enumerable:!1,configurable:!0}),i.prototype.getSpaceManager=function(){return v},i.prototype.render=function(t,i){e.prototype.render.call(this,t,i),this.textData.border?this.isMaster=!0:this.isMaster=!1,this.isCloned&&(this.blackHolePos=this.textData.modeInfo.blackHolePos)},i.prototype.blackHoleRender=function(e){var i=this.textData,n=i.border,r=i.borderColor,o=i.colorful,a=i.color,s=this.config.setting,l=s.opacity,A=s.bold,c=s.fontFamily,h=s.fontBorder,d=(0,t.getHexColor)(this.outlineColor(a)),u="".concat(t.DPX,"-dm ").concat(t.DPX,"-blackhole-rail");this.isCloned&&(u+=" ".concat(t.DPX,"-blackhole-rail-cloned"));var p="";n&&(this.width+=4,this.height+=4),
p+="\n            --opacity: ".concat(Math.max(l,.1)+"",";\n            --fontSize: ").concat(this.fontSize,"px;\n            --fontFamily: ").concat(c,", Arial, Helvetica, sans-serif;\n            --fontWeight: ").concat(A?"bold":"normal",";\n        "),o||(p+="--textShadow: ".concat(this.getShadow(d,h),";")),p+="--color: ".concat((0,t.getHexColor)(a),";"),this.element.style.cssText=p,this.element.className=u,this.element.innerHTML='\n            <img class = "'.concat(t.DPX,'-blackhole-animate" src = "" />\n            <div class = "').concat(t.DPX,'-blackhole-text-wrap">\n                <div class="').concat(t.DPX,'-blackhole-roll">\n                    <div class=').concat(t.DPX,"-blackhole-text>").concat(this.text,"</div>\n                </div>\n            </div>\n        "),this.blackHoleAnimate=this.element.querySelector("img"),n&&(this.element.querySelector(".".concat(t.DPX,"-blackhole-text")).style.border="1px solid ".concat((0,t.getHexColor)(r)))},i.prototype.cloneBlackHole=function(){if(!this.isCloned){var t=JSON.parse(JSON.stringify(this.textData));t.border=!!this.isMaster,t.modeInfo=I(I({},t.modeInfo),{isCloned:!0,blackHolePos:this.blackHolePos}),this.manager.cloneBlackHole(t)}},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this);var t=this.manager.renderTime;this.isCloned?this.cloneBlackHolePos=.55*Math.random()+.25:this.blackHolePos=.7*Math.random()+.2;var i=this.manager.containerSize.width;if(this.isCloned){var n=(this.cloneBlackHolePos-this.blackHolePos)*i;this.horizontalDistance-=n,this.horizontalDistance+=100,this.duration=(this.horizontalDistance+this.width)/this.speed,this.endTime=this.manager.renderTime+this.duration,this.middle=this.manager.renderTime+this.horizontalDistance/this.speed}var r=this.isCloned?this.cloneBlackHolePos:this.blackHolePos;this.blackHoleAppearTime=t+(this.horizontalDistance-i*(1-r))/this.speed-.5,this.blackHoleDur=this.width/this.speed+1.5,this.blackHoleDisappearTime=this.blackHoleAppearTime+this.blackHoleDur},i.prototype.afterCollisionCheck=function(){if(this.isBlackHole){var t=this.height||this.fontSize,e=-this.horizontalDistance-this.width,i=this.manager.containerSize.width,n=this.isCloned?i*(1-this.cloneBlackHolePos):i*this.blackHolePos;this.isCloned&&(n-=100);var r="\n                --top: ".concat(this.y,"px;\n                --wrap-width: ").concat(n,"px;\n                --duration: ").concat(this.duration,"s;\n                --translateX: ").concat(e,"px;\n                --height: ").concat(t+4,"px;\n                --offset: ").concat(this.horizontalDistance,"px;\n                --precise-distance: ").concat(this.horizontalDistance-i,"px;\n            ");this.element.style.cssText+=r}else{var o=this.horizontalDistance;r="\n                --offset:".concat(o,"px;\n                --translateX:").concat(-this.horizontalDistance-this.width-10,"px;\n                --duration:").concat(this.duration,"s;\n                --top:").concat(this.y,"px;\n            "),this.element.style.cssText+=r}},i.prototype.animate=function(){var t=this.manager.renderTime;if(this.isBlackHole&&!(t<=this.blackHoleAppearTime)){var e=this.resource.list,i=t-this.blackHoleAppearTime,n=Math.ceil(e.length*i/this.blackHoleDur)-1;n>=e.length?(this.blackHoleAnimate.src=e[e.length-1],this.blackHoleAnimate.style.opacity=""):(this.blackHoleAnimate.style.opacity="1",this.blackHoleAnimate.src=e[n]||"")}},i.prototype.shouldDestroy=function(){var t=this.manager.renderTime;return t>this.blackHoleDisappearTime&&this.spaceManager.removeBlackHole(this),this.endTime<t},i}(t.RollRender)})();var A=l.A,c={41:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-boom {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-boom {\n  position: absolute;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  width: 58px;\n  font-size: 0;\n  text-shadow: 1px 0 5px #ff55f5;\n  text-align: center;\n  white-space: nowrap;\n  will-change: transform opacity;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  opacity: 0;\n  top: var(--top);\n  left: var(--left);\n  z-index: 1;\n  z-index: var(--zIndex, 1);\n  color: #fff;\n  color: var(--color, #fff);\n  -webkit-transform: scale(var(--scale));\n          transform: scale(var(--scale));\n  text-shadow: var(--textShadow);\n  -webkit-animation: rollBoom var(--cubic) var(--duration) forwards;\n          animation: rollBoom var(--cubic) var(--duration) forwards;\n  -webkit-animation-play-state: paused;\n          animation-play-state: paused;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework {\n  font-weight: 200;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-fire {\n  -webkit-transform: translateX(-50%) translateY(-40%) scale(2);\n          transform: translateX(-50%) translateY(-40%) scale(2);\n  width: 300%;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-center {\n  margin-top: -15px;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-text {\n  font-family: SimHei, KaiTi, STFangsong, Helvetica Neue, Sans-Serif;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-bg {\n  top: 15px;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework.bili-danmaku-x-scale .bili-danmaku-x-boom-body {\n  -webkit-animation: fireScale 0.15s linear forwards;\n          animation: fireScale 0.15s linear forwards;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework.bili-danmaku-x-boom-scale2 .bili-danmaku-x-boom-fire {\n  -webkit-transform: translateX(-50%) translateY(-40%) scale(2);\n          transform: translateX(-50%) translateY(-40%) scale(2);\n}\n.bili-danmaku-x-boom.bili-danmaku-x-paused {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-show {\n  opacity: var(--opacity);\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-middle .bili-danmaku-x-boom-fire {\n  opacity: 1;\n}\n.bili-danmaku-x-boom-head {\n  top: 0;\n  z-index: 2;\n  width: 100%;\n}\n.bili-danmaku-x-boom-center {\n  position: relative;\n}\n.bili-danmaku-x-boom-tail {\n  width: 100%;\n}\n.bili-danmaku-x-boom-text {\n  position: relative;\n  z-index: 2;\n  font-size: 22px;\n  display: inline-table;\n  -webkit-writing-mode: vertical-rl;\n      -ms-writing-mode: tb-rl;\n          writing-mode: vertical-rl;\n  font-family: SimHei, 'Microsoft JhengHei', Arial, Helvetica, sans-serif;\n}\n.bili-danmaku-x-boom-bg {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.bili-danmaku-x-boom-bg > img {\n  width: 100%;\n  height: 100%;\n}\n@-webkit-keyframes rollBoom {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@keyframes rollBoom {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@-webkit-keyframes fireScale {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1;\n  }\n  100% {\n    -webkit-transform: scale(1.2);\n            transform: scale(1.2);\n    opacity: 0;\n  }\n}\n@keyframes fireScale {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1;\n  }\n  100% {\n    -webkit-transform: scale(1.2);\n            transform: scale(1.2);\n    opacity: 0;\n  }\n}\n",""])
;const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},h={};function d(t){var e=h[t];if(void 0!==e)return e.exports;var i=h[t]={id:t,exports:{}};return c[t](i,i.exports,d),i.exports}d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var i in e)d.o(e,i)&&!d.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var u={};(()=>{d.d(u,{A:()=>I});const t=(e={DPX:()=>r.C5,FireworkRender:()=>r.hd},i={},d.d(i,e),i);var e,i;const n=(t=>{var e={};return d.d(e,t),e})({random:()=>r.MX});var o=d(957),a=d.n(o),s=d(629),l=d.n(s),A=d(866),c=d.n(A),h=d(511),p=d.n(h),g=d(897),f=d.n(g),m=d(41),y={attributes:{"data-injector":"danmaku-x"}};y.setAttributes=p(),y.insert=c().bind(null,"head"),y.domAPI=l(),y.insertStyleElement=f(),a()(m.A,y),m.A&&m.A.locals&&m.A.locals;var b,v=(b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),E=function(e){function i(t){var i=e.call(this,t,"firework_2022")||this;return i.fireTime=1.5,i.isBoom=!1,i}return v(i,e),i.prototype.render=function(e){var i=this.textData.border,r=this.modeInfo,o=r.font_color,a=r.font_stroke_color,s="".concat(t.DPX,"-boom ").concat(t.DPX,"-boom-firework ").concat(t.DPX,"-boom-scale2");e&&(s+=" ".concat(t.DPX,"-show"));var l=i?5:(0,n.random)(0,9),A=.9,c=1,h=3;l<1.6?(this.randomVal=(0,n.random)(.6,.8),A=.6,c=.8,h=2):l>7.4?(c=.65,A=.5,h=1,this.randomVal=(0,n.random)(.6,.7)):this.randomVal=(0,n.random)(.7,.98);var d="impact_".concat(Math.floor((0,n.random)(0,3)));this.fireList=this.resource[d];var u="\n            --cubic:cubic-bezier(0,0.15,0,1);\n            --scale:".concat(A,";\n            --opacity:").concat(c,";\n            --zIndex:").concat(h,";\n        ");o&&(u+="--color:".concat(o,";")),a&&(u+="--textShadow:1px 0 5px ".concat(a,";")),this.element.style.cssText=u,this.element.className=s;var p=this.resource,g=p.head,f=p.body,m=p.tail;this.element.innerHTML='\n            <img class="'.concat(t.DPX,'-boom-fire" />\n            <div class="').concat(t.DPX,'-boom-body">\n                <img class="').concat(t.DPX,'-boom-head" src="').concat(g,'">\n                <div class="').concat(t.DPX,'-boom-center">\n                    <div class="').concat(t.DPX,'-boom-text">').concat(this.text,'</div>\n                    <div class="').concat(t.DPX,'-boom-bg">\n                    <img class="').concat(t.DPX,'-boom-bg-img" src="').concat(f,'">\n                </div>\n            </div>\n            <img class="').concat(t.DPX,'-boom-tail" src="').concat(m,'"></div>\n        '),this.fireDom=this.element.querySelector(".".concat(t.DPX,"-boom-fire"))},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this),this.duration=3/this.randomVal,this.endTime=this.showTime+this.duration,this.middle=this.endTime-2},i.prototype.afterCollisionCheck=function(){var t=this.duration,e="\n            --translateY:".concat(-this.verticalDistance,"px;\n            --duration:").concat(t,"s;\n            --left:").concat(this.x,"px;\n            --top:").concat(this.verticalDistance,"px;\n        ");this.element.style.cssText+=e},i.prototype.animate=function(){var e=this.manager.renderTime;if(!(this.middle>=e)&&(this.isBoom||this.element.classList.add("".concat(t.DPX,"-scale")),this.isBoom=!0,this.fireList&&0!=this.fireList.length&&Array.isArray(this.fireList))){var i=e-this.middle,n=Math.ceil(this.fireList.length*i/this.fireTime)-1;this.fireList[n]?(this.fireDom.setAttribute("src",this.fireList[n]),this.element.classList.add("".concat(t.DPX,"-middle"))):this.element.classList.remove("".concat(t.DPX,"-middle"))}},i}(t.FireworkRender);const I=E})();var p=u.A,g={102:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-firework {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-paused .bili-danmaku-x-firework .bili-danmaku-x-firework-wrap,\n.bili-danmaku-x-paused .bili-danmaku-x-firework .bili-danmaku-x-firework-body {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-firework {\n  position: absolute;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  width: 70px;\n  width: var(--width, 70px);\n  font-size: 0;\n  text-shadow: 1px 0 5px #ff55f5;\n  text-align: center;\n  white-space: nowrap;\n  will-change: transform opacity;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  opacity: 0;\n  top: var(--top);\n  left: var(--left);\n  color: #fff;\n  color: var(--color, #fff);\n  z-index: 2;\n  z-index: var(--zIndex, 2);\n  -webkit-transform: scale(var(--scale));\n          transform: scale(var(--scale));\n  text-shadow: var(--textShadow);\n  -webkit-animation: rollBoom3 var(--cubic) var(--duration) forwards;\n          animation: rollBoom3 var(--cubic) var(--duration) forwards;\n  -webkit-animation-play-state: paused;\n          animation-play-state: paused;\n  font-weight: 200;\n}\n.bili-danmaku-x-firework img[src=''],\n.bili-danmaku-x-firework img:not([src]) {\n  opacity: 0 !important;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-paused .bili-danmaku-x-firework-body {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-show {\n  opacity: var(--opacity);\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-show .bili-danmaku-x-firework-shot {\n  opacity: 1;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-opacity .bili-danmaku-x-firework-head,\n.bili-danmaku-x-firework.bili-danmaku-x-opacity .bili-danmaku-x-firework-text,\n.bili-danmaku-x-firework.bili-danmaku-x-opacity .bili-danmaku-x-firework-center,\n.bili-danmaku-x-firework.bili-danmaku-x-opacity .bili-danmaku-x-firework-tail {\n  -webkit-transition: opacity 0.8s;\n  transition: opacity 0.8s;\n  opacity: 0;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-show-fire .bili-danmaku-x-firework-fire {\n  opacity: 1;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-show-body .bili-danmaku-x-firework-wrap {\n  -webkit-animation: bodyScale 1.5s forwards;\n          animation: bodyScale 1.5s forwards;\n  -webkit-animation: bodyScale var(--fireTime, 1.5s) forwards;\n          animation: bodyScale var(--fireTime, 1.5s) forwards;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-show-body .bili-danmaku-x-firework-shot {\n  opacity: 0;\n}\n.bili-danmaku-x-firework.bili-danmaku-x-body-hide .bili-danmaku-x-firework-body {\n  -webkit-animation: bodyHide 1.5s forwards;\n          animation: bodyHide 1.5s forwards;\n  -webkit-animation: bodyHide var(--fireTime, 1.5s) forwards;\n          animation: bodyHide var(--fireTime, 1.5s) forwards;\n}\n.bili-danmaku-x-firework-fire {\n  opacity: 0;\n  position: absolute;\n  left: 50%;\n  top: 0;\n  z-index: 3;\n  z-index: var(--fireIndex, 3);\n  -webkit-transform: translateX(-50%) translateY(-42%);\n          transform: translateX(-50%) translateY(-42%);\n  width: 220%;\n  width: var(--fireWidth, 220%);\n}\n.bili-danmaku-x-firework-shot {\n  opacity: 0;\n  position: absolute;\n  left: 50%;\n  top: 0;\n  width: 500%;\n  -webkit-transform: translateX(-50%) translateY(-70%);\n          transform: translateX(-50%) translateY(-70%);\n  z-index: 2;\n}\n.bili-danmaku-x-firework-wrap {\n  position: relative;\n  z-index: 4;\n  overflow: hidden;\n  max-height: 0;\n}\n.bili-danmaku-x-firework-body {\n  opacity: 1;\n}\n.bili-danmaku-x-firework-body-business {\n  width: 100%;\n  margin-top: 40px;\n  margin-top: var(--bodyTop, 40px);\n}\n.bili-danmaku-x-firework-head {\n  top: 0;\n  z-index: 2;\n  width: 100%;\n}\n.bili-danmaku-x-firework-center {\n  position: relative;\n}\n.bili-danmaku-x-firework-tail {\n  width: 100%;\n}\n.bili-danmaku-x-firework-text {\n  position: relative;\n  z-index: 2;\n  font-size: 23px;\n  font-size: var(--fontSize, 23px);\n  display: inline-table;\n  -webkit-writing-mode: vertical-rl;\n      -ms-writing-mode: tb-rl;\n          writing-mode: vertical-rl;\n  font-family: SimHei, KaiTi, STFangsong, Helvetica Neue, Sans-Serif;\n}\n.bili-danmaku-x-firework-bg {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.bili-danmaku-x-firework-bg > img {\n  width: 100%;\n  height: 100%;\n}\n@-webkit-keyframes rollBoom3 {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@keyframes rollBoom3 {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@-webkit-keyframes bodyHide {\n  0% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n@keyframes bodyHide {\n  0% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n@-webkit-keyframes bodyScale {\n  0% {\n    max-height: 0;\n  }\n  100% {\n    max-height: 1000px;\n  }\n}\n@keyframes bodyScale {\n  0% {\n    max-height: 0;\n  }\n  100% {\n    max-height: 1000px;\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style")
;return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},f={};function m(t){var e=f[t];if(void 0!==e)return e.exports;var i=f[t]={id:t,exports:{}};return g[t](i,i.exports,m),i.exports}m.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return m.d(e,{a:e}),e},m.d=(t,e)=>{for(var i in e)m.o(e,i)&&!m.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},m.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var y={};(()=>{m.d(y,{A:()=>B});const t=(e={DPX:()=>r.C5,FireworkRender:()=>r.hd,FireworkSpaceManager:()=>r.YW,random:()=>r.MX},i={},m.d(i,e),i);var e,i;const n=(t=>{var e={};return m.d(e,t),e})({formatText:()=>r.RZ,random:()=>r.MX});var o,a=(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),s=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return a(i,e),i.prototype.initPos=function(e){var i=e.textData.border,n=.5*(e.horizontalDistance-e.width),r=i?(0,t.random)(.3,.6):(0,t.random)(0,1),o=e.horizontalDistance*r;return o=Math.min(o,e.horizontalDistance-e.width),{initX:o=r>.45?Math.max(o,n+30):Math.min(o,n-30-e.width),baseDirection:r>.5?-1:1}},i.prototype.add=function(t){if(t.modeInfo.adhoc_type)return{x:.5*(t.horizontalDistance-t.width),y:t.verticalDistance,index:0};var e=this.initPos(t),i=e.initX,n=e.baseDirection;if(t.textData.border)return{x:i,y:t.verticalDistance,index:0};for(var r=t.width,o=t.horizontalDistance,a=this.list[0],s=[-1,1],l=0;l<2;l++)for(var A=s[l]*n*t.width,c=i;c>=0&&c<=o-r;){var h=!0,d=void 0;if(!a)return{x:c,y:t.verticalDistance,index:0};for(var u=0,p=a;u<p.length;u++){var g=p[u];if(c+t.width>g.x&&c<g.x+g.width&&g.middle+1>t.showTime){h=!1,d=g;break}}if(h)return{x:c,y:t.verticalDistance,index:0};c=d.x+A,A>0&&(c+=d.width)}return{x:0,y:0,index:-1}},i}(t.FireworkSpaceManager),l=m(957),A=m.n(l),c=m(629),h=m.n(c),d=m(866),u=m.n(d),p=m(511),g=m.n(p),f=m(897),b=m.n(f),v=m(102),E={attributes:{"data-injector":"danmaku-x"}};E.setAttributes=g(),E.insert=u().bind(null,"head"),E.domAPI=h(),E.insertStyleElement=b(),A()(v.A,E),v.A&&v.A.locals&&v.A.locals;var I=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),C=function(e){function i(t){var i=e.call(this,t,"firework")||this;return i.fireTime=2.5,i.expandTime=2.5,i.rNum=0,i}return I(i,e),i.prototype.getSpaceManager=function(){return s},i.prototype.render=function(e){var i=this.textData.border,r=this.modeInfo,o=r.font_color,a=r.font_stroke_color,s=r.adhoc_type,l=r.ad_index;this.isBusiness=1===s;var A="".concat(t.DPX,"-firework");if(e&&(A+=" ".concat(t.DPX,"-show")),this.isBusiness){var c=l||0;this.fireworkResource=this.resource.adResources[c]}else this.fireworkResource=i?this.resource.userResources[0]:this.resource.userResources[Math.floor((0,n.random)(1,this.resource.userResources.length))];var h=(0,n.random)(0,9),d=3,u=(0,n.random)(.5,.95),p=1;(s||i)&&(h=5,u=.85),h<3?(p=.8,d=2,this.randomVal=(0,n.random)(.6,.8)):h>6?(p=.65,d=1,this.randomVal=(0,n.random)(.6,.7)):this.randomVal=(0,n.random)(.7,.98),(s||i)&&(d=4),this.fontSize=23;var g="\n            --cubic: cubic-bezier(0,0.15,0,1);\n            --scale: ".concat(u,";\n            --opacity: ").concat(p,";\n            --zIndex: ").concat(d,";\n            --fontSize: ").concat(this.fontSize,"px;\n            --width: ").concat(4.05*this.fontSize,"px;\n            --fireIndex: ").concat(5,";\n            --bodyTop: ").concat(1.5*this.fontSize,"px;\n        ");if(this.isBusiness&&(g+="--fireWidth: 286%;"),o&&(g+="--color:".concat(o,";")),a&&(g+="--textShadow:1px 0 5px ".concat(a,";")),this.element.style.cssText=g,this.element.className=A,this.isBusiness){var f=this.fireworkResource.body;this.element.innerHTML='\n                <img class="'.concat(t.DPX,'-firework-fire" src="">\n                <img class="').concat(t.DPX,'-firework-shot" src="">\n                <div class="').concat(t.DPX,'-firework-wrap">\n                    <img class="').concat(t.DPX,'-firework-body-business" src="').concat(f||"",'">\n                </div>\n            ')}else{var m=this.hasEmoji||this.textData.prefix?this.text:(0,n.formatText)(this.text,34),y=this.fireworkResource,b=y.head,v=(f=y.body,y.tail);this.element.innerHTML='\n                <img class="'.concat(t.DPX,'-firework-fire" src="">\n                <img class="').concat(t.DPX,'-firework-shot" src="">\n                <div class="').concat(t.DPX,'-firework-wrap">\n                    <img class="').concat(t.DPX,'-firework-head" src="').concat(b,'">\n                    <div class="').concat(t.DPX,'-firework-center">\n                        <div class="').concat(t.DPX,'-firework-text">').concat(m,'</div>\n                        <div class="').concat(t.DPX,'-firework-bg">\n                            <img class="').concat(t.DPX,'-firework-bg-img" src="').concat(f,'">\n                        </div>\n                    </div>\n                    <img class="').concat(t.DPX,'-firework-tail" src="').concat(v,'"\n                </div>\n            ')}this.fireDom=this.element.querySelector(".".concat(t.DPX,"-firework-fire")),this.shotDom=this.element.querySelector(".".concat(t.DPX,"-firework-shot"));var E=this.element.querySelector(".".concat(t.DPX,"-firework-text"));this.textData.prefix&&this.textData.prefix instanceof HTMLElement&&(this.textData.prefix.style.height="".concat(1.2*this.fontSize,"px"),this.textData.prefix.style.width="auto",E.insertBefore(this.textData.prefix,E.firstChild)),this.textData.suffix&&this.textData.suffix instanceof HTMLElement&&(this.textData.suffix.style.height="".concat(1.2*this.fontSize,"px"),this.textData.suffix.style.width="auto",E.appendChild(this.textData.suffix))},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this),this.duration=1/this.randomVal,this.middle=this.showTime+this.duration,this.isBusiness&&(this.fireTime=2.5,this.expandTime=1.5),this.endTime=this.middle+this.fireTime},i.prototype.afterCollisionCheck=function(){var t="\n            --translateY:".concat(-this.verticalDistance,"px;\n            --duration:").concat(this.duration,"s;\n            --fireTime:").concat(this.expandTime,"s;\n            --left:").concat(this.x,"px;\n            --top:").concat(this.verticalDistance,"px;\n        ");this.element.style.cssText+=t},i.prototype.animate=function(){var t=this.manager.renderTime;this.shot(t),this.boom(t)},i.prototype.shot=function(t){if(!(t-this.middle>0)){var e=(this.fireworkResource||{}).shot;this.rNum++
;var i=Math.floor(this.rNum%20/10)%e.length;this.shotDom.setAttribute("src",e[i])}},i.prototype.boom=function(e){var i=e-this.middle;if(!(i<0)){i>(this.isBusiness?2:1)&&this.element.classList.add("".concat(t.DPX,"-body-hide"));var n=this.fireworkResource.fire;if(n&&n.length>0&&Array.isArray(n)){var r=Math.ceil(n.length*i/this.fireTime)-1;r=Math.max(r,0),this.element.classList.add("".concat(t.DPX,"-show-fire")),this.element.classList.add("".concat(t.DPX,"-show-body")),this.fireDom.setAttribute("src",n[r]||"")}}},i}(t.FireworkRender);const B=C})();var b=y.A,v={672:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-boom {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-boom {\n  position: absolute;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  width: 58px;\n  font-size: 0;\n  text-shadow: 1px 0 5px #ff55f5;\n  text-align: center;\n  white-space: nowrap;\n  will-change: transform opacity;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  opacity: 0;\n  top: var(--top);\n  left: var(--left);\n  z-index: 1;\n  z-index: var(--zIndex, 1);\n  color: #fff;\n  color: var(--color, #fff);\n  -webkit-transform: scale(var(--scale));\n          transform: scale(var(--scale));\n  text-shadow: var(--textShadow);\n  -webkit-animation: rollBoom var(--cubic) var(--duration) forwards;\n          animation: rollBoom var(--cubic) var(--duration) forwards;\n  -webkit-animation-play-state: paused;\n          animation-play-state: paused;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework {\n  font-weight: 200;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-fire {\n  -webkit-transform: translateX(-50%) translateY(-40%) scale(2);\n          transform: translateX(-50%) translateY(-40%) scale(2);\n  width: 300%;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-center {\n  margin-top: -15px;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-text {\n  font-family: SimHei, KaiTi, STFangsong, Helvetica Neue, Sans-Serif;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-bg {\n  top: 15px;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework.bili-danmaku-x-scale .bili-danmaku-x-boom-body {\n  -webkit-animation: fireScale 0.15s linear forwards;\n          animation: fireScale 0.15s linear forwards;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework.bili-danmaku-x-boom-scale2 .bili-danmaku-x-boom-fire {\n  -webkit-transform: translateX(-50%) translateY(-40%) scale(2);\n          transform: translateX(-50%) translateY(-40%) scale(2);\n}\n.bili-danmaku-x-boom.bili-danmaku-x-paused {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-show {\n  opacity: var(--opacity);\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-head,\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-text,\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-center,\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-tail {\n  -webkit-transition: opacity 0.8s;\n  transition: opacity 0.8s;\n  opacity: 0;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-middle .bili-danmaku-x-boom-fire {\n  opacity: 1;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-show-fire .bili-danmaku-x-boom-fire2 {\n  opacity: 1;\n}\n.bili-danmaku-x-boom-fire {\n  opacity: 0;\n  position: absolute;\n  left: 50%;\n  top: 0;\n  width: 120%;\n  -webkit-transform: translateX(-50%) translateY(-70%);\n          transform: translateX(-50%) translateY(-70%);\n  z-index: 3;\n}\n.bili-danmaku-x-boom-fire2 {\n  opacity: 0;\n  position: absolute;\n  left: 50%;\n  top: 0;\n  width: 120%;\n  -webkit-transform: translateX(-50%) translateY(-20%);\n          transform: translateX(-50%) translateY(-20%);\n  z-index: 3;\n}\n.bili-danmaku-x-boom-head {\n  top: 0;\n  z-index: 2;\n  width: 100%;\n}\n.bili-danmaku-x-boom-center {\n  position: relative;\n}\n.bili-danmaku-x-boom-tail {\n  width: 100%;\n}\n.bili-danmaku-x-boom-text {\n  position: relative;\n  z-index: 2;\n  font-size: 22px;\n  display: inline-table;\n  -webkit-writing-mode: vertical-rl;\n      -ms-writing-mode: tb-rl;\n          writing-mode: vertical-rl;\n  font-family: SimHei, 'Microsoft JhengHei', Arial, Helvetica, sans-serif;\n}\n.bili-danmaku-x-boom-bg {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.bili-danmaku-x-boom-bg > img {\n  width: 100%;\n  height: 100%;\n}\n@-webkit-keyframes rollBoom {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@keyframes rollBoom {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@-webkit-keyframes fireScale {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1;\n  }\n  100% {\n    -webkit-transform: scale(1.2);\n            transform: scale(1.2);\n    opacity: 0;\n  }\n}\n@keyframes fireScale {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1;\n  }\n  100% {\n    -webkit-transform: scale(1.2);\n            transform: scale(1.2);\n    opacity: 0;\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t)
;if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},E={};function I(t){var e=E[t];if(void 0!==e)return e.exports;var i=E[t]={id:t,exports:{}};return v[t](i,i.exports,I),i.exports}I.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return I.d(e,{a:e}),e},I.d=(t,e)=>{for(var i in e)I.o(e,i)&&!I.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},I.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var C={};(()=>{I.d(C,{A:()=>v});const t=(e={DPX:()=>r.C5,FireworkRender:()=>r.hd},i={},I.d(i,e),i);var e,i;const n=(t=>{var e={};return I.d(e,t),e})({random:()=>r.MX});var o=I(957),a=I.n(o),s=I(629),l=I.n(s),A=I(866),c=I.n(A),h=I(511),d=I.n(h),u=I(897),p=I.n(u),g=I(672),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(e){function i(t){var i=e.call(this,t)||this;return i.fireTime=1.5,i}return y(i,e),i.prototype.render=function(e){var i=this.textData.border,r=this.modeInfo,o=r.font_color,a=r.font_stroke_color,s="".concat(t.DPX,"-boom");e&&(s+=" ".concat(t.DPX,"-show"));var l=i?5:(0,n.random)(0,9),A=.9,c=1,h=3;l<1.6?(this.randomVal=(0,n.random)(.6,.8),A=.6,c=.8,h=2):l>7.4?(c=.65,A=.5,h=1,this.randomVal=(0,n.random)(.6,.7)):this.randomVal=(0,n.random)(.7,.98);var d="\n            --cubic:cubic-bezier(0,0.15,0,1);\n            --scale:".concat(A,";\n            --opacity:").concat(c,";\n            --zIndex:").concat(h,";\n        ");o&&(d+="--color:".concat(o,";")),a&&(d+="--textShadow:1px 0 5px ".concat(a,";")),this.element.className=s,this.element.style.cssText=d;var u=this.resource,p=u.head,g=u.body,f=u.tail;this.element.innerHTML='\n            <img class="'.concat(t.DPX,'-boom-fire" />\n            <div class="').concat(t.DPX,'-boom-body">\n                <img class="').concat(t.DPX,'-boom-head" src="').concat(p,'">\n                <div class="').concat(t.DPX,'-boom-center">\n                    <div class="').concat(t.DPX,'-boom-text">').concat(this.text,'</div>\n                    <div class="').concat(t.DPX,'-boom-bg">\n                    <img class="').concat(t.DPX,'-boom-bg-img" src="').concat(g,'">\n                </div>\n            </div>\n            <img class="').concat(t.DPX,'-boom-tail" src="').concat(f,'"></div>\n        '),this.fireDom=this.element.querySelector(".".concat(t.DPX,"-boom-fire"))},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this),this.duration=3/this.randomVal,this.endTime=this.showTime+this.duration,this.middle=this.endTime-2},i.prototype.afterCollisionCheck=function(){var t=this.duration,e="\n            --translateY:".concat(-this.verticalDistance,"px;\n            --duration:").concat(t,"s;\n            --left:").concat(this.x,"px;\n            --top:").concat(this.verticalDistance,"px;\n        ");this.element.style.cssText+=e},i.prototype.animate=function(){var e=this.manager.renderTime;if(!(this.middle>=e)){var i=this.resource.list;if(i&&0!==i.length&&Array.isArray(i)){var n=e-this.middle,r=Math.ceil(i.length*n/this.fireTime)-1;r>i.length-1&&this.element.classList.add("".concat(t.DPX,"-opacity")),i[r]?(this.fireDom.setAttribute("src",i[r]),this.element.classList.add("".concat(t.DPX,"-middle"))):this.element.classList.remove("".concat(t.DPX,"-middle"))}}},i}(t.FireworkRender);const v=b})();var B=C.A,w={384:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-boom {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-boom {\n  position: absolute;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  width: calc(58px * 1);\n  width: calc(58px * var(--zoom, 1));\n  font-size: 0;\n  text-shadow: 1px 0 5px #ff55f5;\n  text-align: center;\n  white-space: nowrap;\n  will-change: transform opacity;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  opacity: 0;\n  top: var(--top);\n  left: var(--left);\n  z-index: 1;\n  z-index: var(--zIndex, 1);\n  color: #fff;\n  color: var(--color, #fff);\n  -webkit-transform: scale(var(--scale));\n          transform: scale(var(--scale));\n  text-shadow: var(--textShadow);\n  -webkit-animation: rollBoom var(--cubic) var(--duration) forwards;\n          animation: rollBoom var(--cubic) var(--duration) forwards;\n  -webkit-animation-play-state: paused;\n          animation-play-state: paused;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework {\n  font-weight: 200;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-fire {\n  -webkit-transform: translateX(-50%) translateY(-40%) scale(2);\n          transform: translateX(-50%) translateY(-40%) scale(2);\n  width: 300%;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-center {\n  margin-top: -15px;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-text {\n  font-family: var(--fontFamily);\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework .bili-danmaku-x-boom-bg {\n  top: 15px;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework.bili-danmaku-x-scale .bili-danmaku-x-boom-body {\n  -webkit-animation: fireScale 0.15s linear forwards;\n          animation: fireScale 0.15s linear forwards;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-boom-firework.bili-danmaku-x-boom-scale2 .bili-danmaku-x-boom-fire {\n  -webkit-transform: translateX(-50%) translateY(-40%) scale(2);\n          transform: translateX(-50%) translateY(-40%) scale(2);\n}\n.bili-danmaku-x-boom.bili-danmaku-x-paused {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-show {\n  opacity: var(--opacity);\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-head,\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-text,\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-center,\n.bili-danmaku-x-boom.bili-danmaku-x-opacity .bili-danmaku-x-boom-tail {\n  -webkit-transition: opacity 0.8s;\n  transition: opacity 0.8s;\n  opacity: 0;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-middle .bili-danmaku-x-boom-fire {\n  opacity: 1;\n}\n.bili-danmaku-x-boom.bili-danmaku-x-show-fire .bili-danmaku-x-boom-fire2 {\n  opacity: 1;\n}\n.bili-danmaku-x-boom-fire {\n  opacity: 0;\n  position: absolute;\n  left: 50%;\n  top: 0;\n  width: 120%;\n  -webkit-transform: translateX(-50%) translateY(-70%);\n          transform: translateX(-50%) translateY(-70%);\n  z-index: 3;\n}\n.bili-danmaku-x-boom-fire2 {\n  opacity: 0;\n  position: absolute;\n  left: 50%;\n  top: 0;\n  width: 120%;\n  -webkit-transform: translateX(-50%) translateY(-20%);\n          transform: translateX(-50%) translateY(-20%);\n  z-index: 3;\n}\n.bili-danmaku-x-boom-head {\n  top: 0;\n  z-index: 2;\n  width: 100%;\n}\n.bili-danmaku-x-boom-center {\n  position: relative;\n}\n.bili-danmaku-x-boom-tail {\n  width: 100%;\n}\n.bili-danmaku-x-boom-text {\n  position: relative;\n  z-index: 2;\n  font-size: 22px;\n  font-size: var(--fontSize, 22px);\n  display: inline-table;\n  -webkit-writing-mode: vertical-rl;\n      -ms-writing-mode: tb-rl;\n          writing-mode: vertical-rl;\n  font-family: SimHei, 'Microsoft JhengHei', Arial, Helvetica, sans-serif;\n}\n.bili-danmaku-x-boom-bg {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.bili-danmaku-x-boom-bg > img {\n  width: 100%;\n  height: 100%;\n}\n@-webkit-keyframes rollBoom {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@keyframes rollBoom {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateY(0) translateZ(0);\n            transform: scale(var(--scale)) translateY(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n            transform: scale(var(--scale)) translateY(var(--translateY)) translateZ(0);\n  }\n}\n@-webkit-keyframes fireScale {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1;\n  }\n  100% {\n    -webkit-transform: scale(1.2);\n            transform: scale(1.2);\n    opacity: 0;\n  }\n}\n@keyframes fireScale {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n    opacity: 1;\n  }\n  100% {\n    -webkit-transform: scale(1.2);\n            transform: scale(1.2);\n    opacity: 0;\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer
;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},x={};function Q(t){var e=x[t];if(void 0!==e)return e.exports;var i=x[t]={id:t,exports:{}};return w[t](i,i.exports,Q),i.exports}Q.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Q.d(e,{a:e}),e},Q.d=(t,e)=>{for(var i in e)Q.o(e,i)&&!Q.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Q.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var S={};(()=>{Q.d(S,{A:()=>v});const t=(e={DPX:()=>r.C5,FireworkRender:()=>r.hd},i={},Q.d(i,e),i);var e,i;const n=(t=>{var e={};return Q.d(e,t),e})({random:()=>r.MX});var o=Q(957),a=Q.n(o),s=Q(629),l=Q.n(s),A=Q(866),c=Q.n(A),h=Q(511),d=Q.n(h),u=Q(897),p=Q.n(u),g=Q(384),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(e){function i(t){var i=e.call(this,t,"boom")||this;return i.fireTime=1.5,i.isBoom=!1,i}return y(i,e),i.prototype.render=function(e){var i=this.textData.border,r=this.modeInfo||{},o=r.font_color,a=r.font_stroke_color,s=r.opacityMin,l=r.fontFamily,A=r.font_size,c="".concat(t.DPX,"-boom ").concat(t.DPX,"-boom-firework");e&&(c+=" ".concat(t.DPX,"-show"));var h=i?5:(0,n.random)(0,9),d=.9,u=1,p=3;h<1.6?(this.randomVal=(0,n.random)(.6,.8),d=.6,u=.8,p=2):h>7.4?(u=s||.65,d=.5,p=1,this.randomVal=(0,n.random)(.6,.7)):this.randomVal=(0,n.random)(.7,.98);var g="impact_".concat(Math.floor((0,n.random)(0,3)));this.fireList=this.resource[g];var f="\n            --cubic:cubic-bezier(0,0.15,0,1);\n            --scale:".concat(d,";\n            --opacity:").concat(u,";\n            --zIndex:").concat(p,";\n        ");f+=l?"--fontFamily:".concat(l,", SimHei, KaiTi, STFangsong, Helvetica Neue, Sans-Serif;"):"--fontFamily: SimHei, KaiTi, STFangsong, Helvetica Neue, Sans-Serif;",A&&(f+="--fontSize:".concat(A,";")),o&&(f+="--color:".concat(o,";")),a&&(f+="--textShadow:1px 0 5px ".concat(a,";")),this.element.style.cssText=f,this.element.className=c;var m=this.resource,y=m.head,b=m.body,v=m.tail;this.element.innerHTML='\n            <img class="'.concat(t.DPX,'-boom-fire" />\n            <img class="').concat(t.DPX,'-boom-fire2" />\n            <div class="').concat(t.DPX,'-boom-body">\n                <img class="').concat(t.DPX,'-boom-head" src="').concat(y,'">\n                <div class="').concat(t.DPX,'-boom-center">\n                    <div class="').concat(t.DPX,'-boom-text">').concat(this.text,'</div>\n                    <div class="').concat(t.DPX,'-boom-bg">\n                    <img class="').concat(t.DPX,'-boom-bg-img" src="').concat(b,'">\n                </div>\n            </div>\n            <img class="').concat(t.DPX,'-boom-tail" src="').concat(v,'"></div>\n        '),this.fireDom=this.element.querySelector(".".concat(t.DPX,"-boom-fire")),this.fire2Dom=this.element.querySelector(".".concat(t.DPX,"-boom-fire2"))},i.prototype.beforeCollisionCheck=function(){var t=this.modeInfo.timeRatio||1;e.prototype.beforeCollisionCheck.call(this),this.duration=3/this.randomVal*t,this.endTime=this.showTime+this.duration,this.middle=this.endTime-2},i.prototype.afterCollisionCheck=function(){var t=this.duration-1.5,e=this.element.offsetHeight||0,i=(this.manager.containerSize.height,Math.max(0,this.verticalDistance-e)),n=Math.random()*i*.3,r=this.modeInfo.zoom||1,o="\n            --zoom: ".concat(r,";\n            --translateY:").concat(-this.verticalDistance,"px;\n            --duration:").concat(t,"s;\n            --left:").concat(this.x,"px;\n            --top:").concat(this.verticalDistance+n,"px;\n        ");this.element.style.cssText+=o},i.prototype.animate=function(){var t=this.manager.renderTime;this.middle<t&&this.renderFirework(t),this.renderFirework2(t)},i.prototype.renderFirework=function(e){if(this.isBoom||this.element.classList.add("".concat(t.DPX,"-scale")),this.isBoom=!0,this.fireList&&0!==this.fireList.length&&Array.isArray(this.fireList)){var i=e-this.middle,n=Math.ceil(this.fireList.length*i/this.fireTime)-1;this.fireList[n]?(this.fireDom.setAttribute("src",this.fireList[n]),this.element.classList.add("".concat(t.DPX,"-middle"))):this.element.classList.remove("".concat(t.DPX,"-middle"))}},i.prototype.renderFirework2=function(e){var i=this.resource.cracker;if(i&&0!==i.length&&Array.isArray(i)){var n=e-this.middle+.4,r=Math.ceil(i.length*n/.6)-1;i[r=Math.max(r,0)]?(this.element.classList.add("".concat(t.DPX,"-show-fire")),this.fire2Dom.setAttribute("src",i[r])):this.element.classList.remove("".concat(t.DPX,"-show-fire"))}},i}(t.FireworkRender);const v=b})();var k=S.A,D={171:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-pk {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-pk {\n  position: absolute;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  font-size: 16px;\n  height: 40px;\n  color: #fff;\n  color: var(--color, #fff);\n  top: var(--top);\n  font-family: var(--fontFamily);\n  text-shadow: 0 1px #777, 1px 0 #777, -1px 0 #777, 0 -1px #777;\n  text-align: center;\n  white-space: nowrap;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  z-index: 2;\n  opacity: 0;\n  visibility: hidden;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-middle .bili-danmaku-x-pk-fire {\n  opacity: 1;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-paused {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-paused .bili-danmaku-x-pk-item {\n  opacity: 0;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-roll {\n  left: var(--offset);\n  -webkit-animation: pk2left linear var(--duration) forwards;\n          animation: pk2left linear var(--duration) forwards;\n  -webkit-animation-play-state: paused;\n          animation-play-state: paused;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-roll .bili-danmaku-x-pk-fire {\n  left: 0px;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-reverse {\n  right: var(--offset);\n  -webkit-animation: pk2right linear var(--duration) forwards;\n          animation: pk2right linear var(--duration) forwards;\n  -webkit-animation-play-state: paused;\n          animation-play-state: paused;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-reverse .bili-danmaku-x-pk-item,\n.bili-danmaku-x-pk.bili-danmaku-x-pk-reverse .bili-danmaku-x-pk-center {\n  -webkit-transform: scaleX(-1);\n          transform: scaleX(-1);\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-reverse .bili-danmaku-x-pk-item .bili-danmaku-x-pk-bg,\n.bili-danmaku-x-pk.bili-danmaku-x-pk-reverse .bili-danmaku-x-pk-center .bili-danmaku-x-pk-bg {\n  -webkit-transform: scaleX(1);\n          transform: scaleX(1);\n}\n.bili-danmaku-x-pk.bili-danmaku-x-pk-reverse .bili-danmaku-x-pk-fire {\n  right: -81px;\n}\n.bili-danmaku-x-pk.bili-danmaku-x-show {\n  opacity: 1;\n  opacity: var(--opacity, 1);\n  visibility: visible;\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n}\n.bili-danmaku-x-pk-fire {\n  opacity: 0;\n  position: absolute;\n  top: 30px;\n  -webkit-transform: translateX(-50%) translateY(-50%);\n          transform: translateX(-50%) translateY(-50%);\n  z-index: 3;\n  width: 80px !important;\n  height: 80px !important;\n}\n.bili-danmaku-x-pk-item {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  opacity: 1;\n  -webkit-transition: opacity 1s;\n  transition: opacity 1s;\n}\n.bili-danmaku-x-pk-item > img {\n  height: 100%;\n}\n.bili-danmaku-x-pk-item .bili-danmaku-x-pk-head {\n  -webkit-transform: scaleX(-1) translateX(-0.5px);\n          transform: scaleX(-1) translateX(-0.5px);\n}\n.bili-danmaku-x-pk-item .bili-danmaku-x-pk-center {\n  position: relative;\n  height: 100%;\n}\n.bili-danmaku-x-pk-item .bili-danmaku-x-pk-text {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  line-height: 40px;\n  z-index: 10;\n}\n.bili-danmaku-x-pk-item .bili-danmaku-x-pk-bg {\n  position: absolute;\n  top: 0;\n  left: 0;\n  bottom: 0;\n  right: 0;\n  z-index: -1;\n  -webkit-transform: scaleX(-1);\n          transform: scaleX(-1);\n}\n.bili-danmaku-x-pk-item .bili-danmaku-x-pk-bg > img {\n  height: 100%;\n  width: 100%;\n}\n.bili-danmaku-x-pk-item .bili-danmaku-x-pk-tail {\n  width: auto;\n  -webkit-transform: scaleX(-1) translateX(0.5px);\n          transform: scaleX(-1) translateX(0.5px);\n}\n@-webkit-keyframes pk2left {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n@keyframes pk2left {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n@-webkit-keyframes pk2right {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n            transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n  }\n}\n@keyframes pk2right {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n            transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0}
;t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},_={};function R(t){var e=_[t];if(void 0!==e)return e.exports;var i=_[t]={id:t,exports:{}};return D[t](i,i.exports,R),i.exports}R.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return R.d(e,{a:e}),e},R.d=(t,e)=>{for(var i in e)R.o(e,i)&&!R.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},R.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var M={};(()=>{R.d(M,{A:()=>E});const t=(e={BinaryArray:()=>r.no,DPX:()=>r.C5,Render:()=>r.Hr,SpaceManager:()=>r.TV,getBaseDmDuration:()=>r.oA,random:()=>r.MX},i={},R.d(i,e),i);var e,i,n,o=(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortFn=function(t,e){return t.x>e.x?1:t.x<e.x?-1:t.x===e.x?t.endTime<e.endTime?-1:t.endTime>e.endTime?1:0:void 0},t}return o(i,e),i.prototype.initPos=function(e){var i=e.textData,n=e.verticalDistance,r=e.height,o=i.border?(0,t.random)(.3,.6):(0,t.random)(0,1),a=n*o;return{initY:a=Math.min(a,n-r),baseDirection:o>.5?-1:1}},i.prototype.getPK=function(t,e){var i,n=this.list[0],r=t.textData.modeInfo.direction;if(n){for(var o=0;o<n.length;o++){var a=n[o];if(void 0!==(null===(i=null==a?void 0:a.modeInfo)||void 0===i?void 0:i.direction)&&!a.hasChosen&&r!==a.modeInfo.direction){var s=a.middle-e+t.precise;if(!(s<0)){a.isPk=!0;var l=s*a.speed/(t.speed+a.speed)-t.precise;return a.middle=e+l,a.endTime=a.middle+.5,t.middle=e+l,t.endTime=t.middle+.5,t.hasChosen=a.hasChosen=!0,a}}}return null}},i.prototype.add=function(e){var i=this.getPK(e,this.manager.renderTime);if(i)return{x:e.horizontalDistance,y:i.y,index:0};if(e.textData.border){var n=this.initPos(e).initY;return this.list[0].binsert(e,this.sortFn),{x:0,y:n,index:0}}for(var r=this.list[0],o=this.initPos(e),a=(n=o.initY,o.baseDirection),s=e.verticalDistance,l=e.height,A=[-1,1],c=0;c<2;c++)for(var h=a*e.height*A[c],d=n;d>=0&&d<=s-l;){var u=!0,p=void 0;if(!r)return(r=this.list[0]=new t.BinaryArray).binsert(e,this.sortFn),{x:e.horizontalDistance,y:d,index:0};for(var g in r){var f=r[g];f&&d+e.height>f.y&&d<f.y+f.height&&f.endTime>e.showTime&&(u=!1,p=f)}if(u)return r.binsert(e,this.sortFn),{x:e.horizontalDistance,y:d,index:0};d=p.y+h,h>0&&(d+=p.height)}return{x:0,y:0,index:-1}},i.prototype.insert=function(t){},i}(t.SpaceManager),s=R(957),l=R.n(s),A=R(629),c=R.n(A),h=R(866),d=R.n(h),u=R(511),p=R.n(u),g=R(897),f=R.n(g),m=R(171),y={attributes:{"data-injector":"danmaku-x"}};y.setAttributes=p(),y.insert=d().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=f(),l()(m.A,y),m.A&&m.A.locals&&m.A.locals;var b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),v=function(e){function i(t){var i=e.call(this,t,"pk")||this;return i.fireTime=.5,i.hasChosen=!1,i.isPk=!1,i}return b(i,e),i.prototype.render=function(e){var i=this.modeInfo,n=i.direction,r=i.font_color,o=this.config.setting,a=o.opacity,s=o.fontFamily,l="".concat(t.DPX,"-pk");e&&(l+=" ".concat(t.DPX,"-show")),l+=" ".concat(t.DPX,1===n?"-pk-reverse":"-pk-roll");var A="\n            --opacity:".concat(Math.max(a,.1)+"",";\n            --fontFamily: ").concat(s,", Arial, Helvetica, sans-serif;\n        ");r&&(A+="--color:".concat(r,";")),this.element.style.cssText=A,this.element.className=l;var c=this.resource,h=c.head,d=c.body,u=c.tail;this.element.innerHTML='\n            <img class="'.concat(t.DPX,'-pk-fire" />\n            <div class="').concat(t.DPX,'-pk-item">                \n                <img class="').concat(t.DPX,'-pk-head" src="').concat(h,'">\n                <div class="').concat(t.DPX,'-pk-center">\n                    <div class="').concat(t.DPX,'-pk-text">').concat(this.text,'</div>\n                    <div class="').concat(t.DPX,'-pk-bg">\n                        <img class="').concat(t.DPX,'-pk-bg-img" src="').concat(d,'">\n                    </div>\n                </div>\n                <img class="').concat(t.DPX,'-pk-tail" src="').concat(u,'">\n            </div>\n        '),this.fireDom=this.element.querySelector(".".concat(t.DPX,"-pk-fire"))},i.prototype.getSize=function(){var t=this.element.getBoundingClientRect();return{width:t.width,height:t.height}},i.prototype.getSpaceManager=function(){return a},i.prototype.getSpeed=function(){var e=this.config.setting,i=e.duration,n=e.speedPlus,r=e.speedSync,o=e.videoSpeed,a=(0,t.getBaseDmDuration)({dmWidth:this.width,containerWidth:this.manager.containerSize.width,defaultDuration:i||4.5}),s=r?o:1;return(this.manager.containerSize.width+this.width)/a*n*s},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this),this.speed=this.getSpeed(),this.duration=this.horizontalDistance/this.speed,this.middle=this.showTime+this.duration,this.endTime=this.middle+.5},i.prototype.afterCollisionCheck=function(){var t="\n            --offset:".concat(this.horizontalDistance,"px;\n            --top:").concat(this.y,"px;\n            --translateX:").concat(-this.horizontalDistance,"px;\n            --duration:").concat(this.duration,"s;\n        ");this.element.style.cssText+=t},i.prototype.animate=function(){var e=this.manager.renderTime;if(!(this.middle>=e||(this.element.classList.add("".concat(t.DPX,"-pk-paused")),this.isPk))){var i=this.resource.list;if(i&&0!==i.length&&Array.isArray(i)){var n=e-this.middle,r=Math.ceil(i.length*n/this.fireTime)-1;i[r]?(this.fireDom.setAttribute("src",i[r]),this.element.classList.add("".concat(t.DPX,"-middle"))):this.element.classList.remove("".concat(t.DPX,"-middle"))}}},i}(t.Render);const E=v})();var T=M.A,F={44:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-dm-animation {\n  position: absolute;\n  left: var(--sandL);\n  bottom: var(--sandB);\n  -webkit-transform-origin: left;\n          transform-origin: left;\n  -webkit-transform: scale(var(--size));\n          transform: scale(var(--size));\n  will-change: transform opacity;\n}\n.bili-danmaku-x-dm-animation > img + img {\n  margin-left: -77px;\n}\n.bili-danmaku-x-dm-animation img {\n  -webkit-transform: scale(2);\n          transform: scale(2);\n}\n.bili-danmaku-x-dm-animation-text {\n  display: inline-block;\n  font-family: sandFont;\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){
for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},L={};function N(t){var e=L[t];if(void 0!==e)return e.exports;var i=L[t]={id:t,exports:{}};return F[t](i,i.exports,N),i.exports}N.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return N.d(e,{a:e}),e},N.d=(t,e)=>{for(var i in e)N.o(e,i)&&!N.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},N.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var P={};(()=>{N.d(P,{A:()=>b});const t=(e={DPX:()=>r.C5},i={},N.d(i,e),i);var e,i;const n=(t=>{var e={};return N.d(e,t),e})({random:()=>r.MX});var o=N(957),a=N.n(o),s=N(629),l=N.n(s),A=N(866),c=N.n(A),h=N(511),d=N.n(h),u=N(897),p=N.n(u),g=N(44),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function b(e){return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return y(i,e),i.prototype.render=function(i){e.prototype.render.call(this,i);var n=this.config.setting.fontBorder,r=this.modeInfo,o=r.font_color,a=r.font_stroke_color;this.animationNode={imgs:[],impacts:[]};var s="";s+="\n                --size: ".concat(this.config.setting.fontSize,";\n                --sandL:").concat(-40*this.config.setting.fontSize,"px;\n                --sandB:").concat(8*(this.config.setting.fontSize-1)-44,"px;\n            "),o&&(s+="--color: ".concat(o,";")),a&&(s+="--textShadow: ".concat(this.getShadow(a,n),";")),this.element.style.cssText+=s,this.element.innerHTML='\n                <span class="'.concat(t.DPX,'-dm-animation-text">').concat(this.text,'</span>\n                <div class="').concat(t.DPX,'-dm-animation"></div>\n            '),this.sandDom=this.element.querySelector(".".concat(t.DPX,"-dm-animation-text"))},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this);for(var i=this.width/this.config.setting.fontSize,r="",o=0;o<i/15;o++)this.animationNode.impacts.push(this.resource["impact_".concat(Math.floor((0,n.random)(0,3)))]),r+="<img />";var a=this.element.querySelector(".".concat(t.DPX,"-dm-animation"));a.innerHTML=r,this.animationNode.imgs=a.querySelectorAll("img")},i.prototype.animate=function(){var t=(this.manager.renderTime-this.showTime)/(this.middle-this.showTime);if(!(t<.25||t>.75)){var e=this.animationNode,i=e.imgs,n=e.impacts;if(i&&(null==n?void 0:n.length)){var r=4*t-1;r>1&&(r=2-r),n.forEach((function(t,e){var n;if(null==t?void 0:t.length){var o=Math.floor((null==t?void 0:t.length)*r);t[o]&&(null===(n=i[e])||void 0===n||n.setAttribute("src",t[o]))}})),this.sandDom&&(this.sandDom.style.opacity=(1-r)*this.config.setting.opacity+"")}}},i}(e)}})();var U=P.A,O={199:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-springdm {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-springdm {\n  position: absolute;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  text-shadow: 1px 0 5px #ff55f5;\n  text-align: center;\n  white-space: nowrap;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  top: var(--top);\n  left: var(--offset);\n  font-size: var(--fontsize);\n  color: var(--color, #fff);\n  text-shadow: var(--textShadow);\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  z-index: var(--zIndex);\n  -webkit-animation: springRoll linear var(--duration) forwards;\n          animation: springRoll linear var(--duration) forwards;\n  opacity: 1;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-springdm.bili-danmaku-x-show {\n  opacity: 1;\n  opacity: var(--opacity, 1);\n}\n.bili-danmaku-x-springdm-body {\n  position: relative;\n  z-index: 2;\n  padding: 1.3em 1.5em 1em 5.2em;\n  line-height: 1;\n  display: inline-table;\n}\n.bili-danmaku-x-springdm-fire {\n  opacity: 1;\n  position: absolute;\n  left: 0;\n  top: 50%;\n  height: 200%;\n  -webkit-transform: translateX(-10%) translateY(-50%);\n          transform: translateX(-10%) translateY(-50%);\n  z-index: 3;\n}\n.bili-danmaku-x-springdm-bg {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  z-index: 0;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  font-size: 0;\n}\n.bili-danmaku-x-springdm-head {\n  height: 100%;\n  -webkit-box-flex: 0;\n      -ms-flex: none;\n          flex: none;\n}\n.bili-danmaku-x-springdm-center {\n  -webkit-box-flex: 1;\n      -ms-flex: auto;\n          flex: auto;\n  height: 100%;\n}\n.bili-danmaku-x-springdm-tail {\n  -webkit-box-flex: 0;\n      -ms-flex: none;\n          flex: none;\n  height: 100%;\n}\n.bili-danmaku-x-springdm-text {\n  position: relative;\n  z-index: 2;\n  -webkit-transform-origin: left;\n          transform-origin: left;\n  font-family: SimHei, 'Microsoft JhengHei', Arial, Helvetica, sans-serif;\n}\n@-webkit-keyframes springRoll {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateX(0) translateZ(0);\n            transform: scale(var(--scale)) translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateX(var(--translateX)) translateZ(0);\n            transform: scale(var(--scale)) translateX(var(--translateX)) translateZ(0);\n  }\n}\n@keyframes springRoll {\n  0% {\n    -webkit-transform: scale(var(--scale)) translateX(0) translateZ(0);\n            transform: scale(var(--scale)) translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: scale(var(--scale)) translateX(var(--translateX)) translateZ(0);\n            transform: scale(var(--scale)) translateX(var(--translateX)) translateZ(0);\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},G={};function H(t){var e=G[t];if(void 0!==e)return e.exports;var i=G[t]={id:t,exports:{}};return O[t](i,i.exports,H),i.exports}H.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return H.d(e,{a:e}),e},H.d=(t,e)=>{for(var i in e)H.o(e,i)&&!H.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},H.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var V={};(()=>{H.d(V,{A:()=>v});const t=(e={DPX:()=>r.C5,RandomSpaceManager:()=>r.c9,Render:()=>r.Hr},i={},H.d(i,e),i);var e,i;const n=(t=>{var e={};return H.d(e,t),e})({getBaseDmDuration:()=>r.oA,random:()=>r.MX});var o=H(957),a=H.n(o),s=H(629),l=H.n(s),A=H(866),c=H.n(A),h=H(511),d=H.n(h),u=H(897),p=H.n(u),g=H(199),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(e){function i(t){var i=e.call(this,t,"springdm")||this;return i.horizontalDistance=i.manager.containerSize.rWidth+1,i.verticalDistance=i.manager.containerSize.rHeight+1,i}return y(i,e),i.prototype.getSize=function(){var t=this.element.getBoundingClientRect();return{width:t.width,height:t.height}},i.prototype.getSpaceManager=function(){return t.RandomSpaceManager},i.prototype.getSpeed=function(){var t=this.config.setting,e=t.duration,i=t.speedPlus,r=t.speedSync,o=t.videoSpeed,a=(0,n.getBaseDmDuration)({
dmWidth:this.width,containerWidth:this.manager.containerSize.width,defaultDuration:e||4.5}),s=r?o:1;return this.speed=(this.manager.containerSize.width+this.width)/a*i*s,this.speed},i.prototype.render=function(e){var i=this.textData.border,r=this.modeInfo,o=r.font_color,a=r.font_stroke_color,s="".concat(t.DPX,"-springdm");e&&(s+=" ".concat(t.DPX,"-show"));var l=i?5:(0,n.random)(0,9),A=3,c=1;this.scale=1,l<3?(c=.8,this.scale=.6,A=2):l>6&&(c=.65,this.scale=.45,A=1);var h="\n            --fontsize: 22px;\n            --scale:".concat(this.scale,";\n            --opacity:").concat(c,";\n            --zIndex:").concat(A,";\n        ");o&&(h+="\n                --color:".concat(o,";\n            ")),a&&(h+="\n                --textShadow:text-shadow:1px 0 5px ".concat(a,";\n            "));try{this.fireList=i?this.resource.masterLists[Math.floor((0,n.random)(0,this.resource.masterLists.length))]:this.resource.lists[Math.floor((0,n.random)(0,this.resource.lists.length))]}catch(t){this.fireList=null}this.element.style.cssText=h,this.element.className=s;var d=i&&this.resource.master_head||this.resource.head,u=i&&this.resource.master_body||this.resource.body,p=i&&this.resource.master_tail||this.resource.tail;this.element.innerHTML='\n            <img class="'.concat(t.DPX,'-springdm-fire" />\n            <div class="').concat(t.DPX,'-springdm-body">\n                <div class="').concat(t.DPX,'-springdm-text">').concat(this.text,'</div>\n                <div class="').concat(t.DPX,'-springdm-bg">\n                    <img class="').concat(t.DPX,'-springdm-head" src="').concat(d,'">\n                    <img class="').concat(t.DPX,'-springdm-center" src="').concat(u,'">\n                    <img class="').concat(t.DPX,'-springdm-tail" src="').concat(p,'">\n                </div>\n            </div>\n        '),this.fireDom=this.element.querySelector(".".concat(t.DPX,"-springdm-fire"))},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this);var t=this.config.setting,i=t.videoSpeed,n=t.speedSync,r=this.element.getBoundingClientRect(),o=r.width,a=r.height,s=n?i:1,l=this.precise/s;this.width+=o,this.height=a,this.speed=this.getSpeed()*this.scale,this.horizontalDistance=this.horizontalDistance-l*this.speed+100/this.scale,this.duration=(this.horizontalDistance+this.width)/this.speed,this.endTime=this.showTime+this.duration,this.middle=this.showTime+this.horizontalDistance/this.speed},i.prototype.afterCollisionCheck=function(){var t="\n            --offset:".concat(this.horizontalDistance,"px;\n            --translateX:").concat((-this.horizontalDistance-this.width)/this.scale,"px;\n            --duration:").concat(this.duration,"s;\n            --top:").concat(this.y,"px;\n        ");this.element.style.cssText+=t},i.prototype.animate=function(){var t=this.manager.renderTime;if(this.fireList&&0!==this.fireList.length&&Array.isArray(this.fireList)){var e=(t-this.showTime)%1.5,i=Math.ceil(this.fireList.length*e/1.5)-1;i=Math.max(0,i),this.fireDom.setAttribute("src",this.fireList[i]||"")}},i}(t.Render);const v=b})();var Y=V.A,z={348:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-dm-front-image,\n.bili-danmaku-x-dm-back-image {\n  display: inline-block;\n  overflow: hidden;\n}\n.bili-danmaku-x-dm-text-wrap {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-dm-back-tail-image {\n  display: inline-block;\n  width: 30px;\n  width: var(--tailImage-width, 30px);\n  height: 30px;\n  height: var(--tailImage-height, 30px);\n  overflow: hidden;\n  background-image: var(--tailImage-url);\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},W={};function Z(t){var e=W[t];if(void 0!==e)return e.exports;var i=W[t]={id:t,exports:{}};return z[t](i,i.exports,Z),i.exports}Z.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Z.d(e,{a:e}),e},Z.d=(t,e)=>{for(var i in e)Z.o(e,i)&&!Z.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Z.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var j={};(()=>{Z.d(j,{A:()=>y});const t=(e={DPX:()=>r.C5},i={},Z.d(i,e),i);var e,i,n=Z(957),o=Z.n(n),a=Z(629),s=Z.n(a),l=Z(866),A=Z.n(l),c=Z(511),h=Z.n(c),d=Z(897),u=Z.n(d),p=Z(348),g={attributes:{"data-injector":"danmaku-x"}};g.setAttributes=h(),g.insert=A().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u(),o()(p.A,g),p.A&&p.A.locals&&p.A.locals;var f,m=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function y(e){return function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.middle=0,t}return m(i,e),i.prototype.render=function(i){var n,r;this.clearAnimationNode(),e.prototype.render.call(this,i);var o=this.resource||{},a=o.frontData,s=o.backData,l=o.taobaoData,A=this.element.innerHTML,c=(null===(n=null==a?void 0:a.lists)||void 0===n?void 0:n.length)>0,h=(null===(r=null==s?void 0:s.lists)||void 0===r?void 0:r.length)>0,d=c?a.lists.length:h?s.lists.length:1,u=Math.floor(1e3*Math.random())%d;this.animationNode={frontImages:[],backImages:[],imgs:[],indexs:[0,0]},c&&(this.animationNode.frontImages=a.lists[u]),h&&(this.animationNode.backImages=s.lists[u]);var p=1.2*this.fontSize,g=0,f=l?p*(null==l?void 0:l.width)/(null==l?void 0:l.height):0,m=0;if(c){var y=Array.isArray(a.width)?a.width[u]:a.width,b=Array.isArray(a.height)?a.height[u]:a.height;m=y&&b?p*y/b:0}var v=0;if(h){var E=Array.isArray(s.width)?s.width[u]:s.width,I=Array.isArray(s.height)?s.height[u]:s.height;v=E&&I?p*E/I:0}var C=c?'<img class="'.concat(t.DPX,"-dm-yanwen-image ").concat(t.DPX,'-dm-front-image" style="width:').concat(m,"px;height:").concat(p,'px;"/>'):"",B=h?'<img class="'.concat(t.DPX,"-dm-yanwen-image ").concat(t.DPX,'-dm-back-image" style="width:').concat(v,"px;height:").concat(p,'px;"/>'):"";this.element.innerHTML="\n                ".concat(C,'\n                <div class="').concat(t.DPX,'-dm-text-wrap">').concat(A,"</div>\n                ").concat(B,"\n            "),g+=f+m+v,this.yanwenWidth=g,this.yanwenHeight=p,this.element.style.cssText+="--tailImage-height:".concat(p,"px;--tailImage-width:").concat(f,"px;"),this.animationNode.imgs=Array.from(this.element.querySelectorAll(".".concat(t.DPX,"-dm-yanwen-image")))},i.prototype.getSize=function(){var t=e.prototype.getSize.call(this),i=t.width,n=t.height;return{width:i+this.yanwenWidth,height:n}},i.prototype.animate=function(){if(this.animationNode){var t=performance.now()/1e3;if(!(t-this.lastFrameTime<1/12)){this.lastFrameTime=t;var e=this.animationNode.indexs,i=e[0],n=e[1],r=this.animationNode,o=r.frontImages,a=r.backImages,s=r.imgs,l=0;o.length>0&&(s[l].src=o[i]||"",this.animationNode.indexs[0]=(i+1)%o.length,l++),a.length>0&&(s[l].src=a[n]||"",this.animationNode.indexs[1]=(n+1)%a.length)}}},i.prototype.clearAnimationNode=function(){this.animationNode&&(Array.isArray(this.animationNode.imgs)&&(this.animationNode.imgs.forEach((function(t){t&&(t.src="")})),this.animationNode.imgs.length=0),this.animationNode=null),this.element&&(this.element.innerHTML="")},i.prototype.destroy=function(){this.clearAnimationNode(),e.prototype.destroy.call(this)},i}(e)}})();var q=j.A,J={922:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-image-wrap {\n  width: 100%;\n  height: 100%;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},K={};function X(t){var e=K[t];if(void 0!==e)return e.exports;var i=K[t]={id:t,exports:{}};return J[t](i,i.exports,X),i.exports}X.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return X.d(e,{a:e}),e},X.d=(t,e)=>{for(var i in e)X.o(e,i)&&!X.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},X.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var $={};(()=>{X.d($,{A:()=>y});const t=(e={DPX:()=>r.C5},i={},X.d(i,e),i);var e,i,n=X(957),o=X.n(n),a=X(629),s=X.n(a),l=X(866),A=X.n(l),c=X(511),h=X.n(c),d=X(897),u=X.n(d),p=X(922),g={attributes:{"data-injector":"danmaku-x"}};g.setAttributes=h(),g.insert=A().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u(),o()(p.A,g),p.A&&p.A.locals&&p.A.locals;var f,m=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});const y=function(e){return function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.imageIndex=0,t}return m(i,e),i.prototype.render=function(){e.prototype.render.call(this),this.element.innerHTML='\n                <div class="'.concat(t.DPX,'-image-wrap">\n                    <img class="').concat(t.DPX,'-image" />\n                </div>\n            '),
this.element.style.setProperty("border","none"),this.imageDom=this.element.querySelector(".".concat(t.DPX,"-image"))},i.prototype.getSize=function(){var t=1.4*this.fontSize;return{width:t*this.resource.width/this.resource.height,height:t}},i.prototype.firstFrame=function(){this.imageDom.style.width="".concat(this.width,"px"),this.imageDom.style.height="".concat(this.height,"px")},i.prototype.animate=function(){this.imageIndex>=this.resource.list.length&&(this.imageIndex=0),""!==this.resource.list[this.imageIndex]&&(this.imageDom.src=this.resource.list[this.imageIndex]),this.imageIndex++},i}(e)}})();var tt=$.A,et={d:(t,e)=>{for(var i in e)et.o(e,i)&&!et.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},it={};et.d(it,{A:()=>lt});const nt=(rt={ESpecialMode:()=>r.yC},ot={},et.d(ot,rt),ot);var rt,ot,at,st=(at=function(t,e){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},at(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});const lt=function(t){return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isInMarsTime=!1,e}return st(e,t),e.prototype.init=function(e,i){var n=e.manager.modeMap[nt.ESpecialMode.Mars].transform,r=e.textData.text,o=null;"function"==typeof n&&(e.textData.text=n(r)||r),e.textData.text!==r&&(o=e.textData.emoticons,e.textData.emoticons=null,this.isInMarsTime=!0),t.prototype.init.call(this,e,i),e.textData.text=r,e.textData.emoticons=o||e.textData.emoticons},e.prototype.afterRender=function(){this.isInMarsTime&&(this.modeInfo.font_color&&this.element.style.setProperty("--color",this.modeInfo.font_color),this.modeInfo.font_stroke_color&&this.element.style.setProperty("--textShadow","1px 0 5px ".concat(this.modeInfo.font_stroke_color)))},e}(t)};var At=it.A,ct={706:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-bullet-container {\n  -webkit-animation-play-state: paused!important;\n          animation-play-state: paused!important;\n}\n.bili-danmaku-x-paused .bili-danmaku-x-role-container {\n  -webkit-animation-play-state: paused!important;\n          animation-play-state: paused!important;\n}\n.bili-danmaku-x-paused .bili-danmaku-x-text {\n  -webkit-animation-play-state: paused!important;\n          animation-play-state: paused!important;\n}\n.bili-danmaku-x-bullet-left-to-right.bili-danmaku-x-bullet-container.bili-danmaku-x-show {\n  right: 0;\n  right: var(--offset, 0);\n  -webkit-animation: bullet-move-left-to-right linear var(--duration) forwards;\n          animation: bullet-move-left-to-right linear var(--duration) forwards;\n}\n.bili-danmaku-x-bullet-right-to-left.bili-danmaku-x-bullet-container.bili-danmaku-x-show {\n  left: 0;\n  left: var(--offset, 0);\n  -webkit-animation: bullet-move-right-to-left linear var(--duration) forwards;\n          animation: bullet-move-right-to-left linear var(--duration) forwards;\n}\n.bili-danmaku-x-bullet-left-to-right.bili-danmaku-x-role-container.bili-danmaku-x-show {\n  left: 0;\n  left: var(--offset, 0);\n  -webkit-animation: role-move-right-to-left linear var(--duration) forwards;\n          animation: role-move-right-to-left linear var(--duration) forwards;\n}\n.bili-danmaku-x-bullet-right-to-left.bili-danmaku-x-role-container.bili-danmaku-x-show {\n  right: 0;\n  right: var(--offset, 0);\n  -webkit-animation: role-move-left-to-right linear var(--duration) forwards;\n          animation: role-move-left-to-right linear var(--duration) forwards;\n  -webkit-transform: scaleX(-1);\n          transform: scaleX(-1);\n}\n.bili-danmaku-x-bullet-container {\n  position: absolute;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  font-size: 25px;\n  height: 25px;\n  color: #fff;\n  color: var(--color, #fff);\n  font-family: var(--fontFamily);\n  text-align: center;\n  white-space: nowrap;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  z-index: 4;\n  opacity: 0;\n  visibility: hidden;\n  top: 0;\n  top: var(--top, 0);\n}\n.bili-danmaku-x-bullet-container .bili-danmaku-x-text {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-bullet-container .bili-danmaku-x-bullet-image-container {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n}\n.bili-danmaku-x-bullet-container.bili-danmaku-x-show {\n  opacity: 1;\n  opacity: var(--opacity, 1);\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n  visibility: visible;\n}\n.bili-danmaku-x-bullet-container.bili-danmaku-x-bullet-stop {\n  -webkit-animation-play-state: paused!important;\n          animation-play-state: paused!important;\n}\n.bili-danmaku-x-bullet-container.bili-danmaku-x-bullet-stop .bili-danmaku-x-text {\n  -webkit-animation: opacity-zero linear 0.5s forwards;\n          animation: opacity-zero linear 0.5s forwards;\n}\n.bili-danmaku-x-role-container {\n  position: absolute;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  z-index: 2;\n  opacity: 0;\n  visibility: hidden;\n  top: 0;\n  top: var(--top, 0);\n}\n.bili-danmaku-x-role-container.bili-danmaku-x-show {\n  opacity: 1;\n  opacity: var(--opacity, 1);\n  -webkit-animation-play-state: running;\n          animation-play-state: running;\n  visibility: visible;\n}\n.bili-danmaku-x-role-container.bili-danmaku-x-roll-stop {\n  -webkit-animation-play-state: paused!important;\n          animation-play-state: paused!important;\n}\n@-webkit-keyframes bullet-move-left-to-right {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0);\n            transform: translateZ(0) translateX(0);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(var(--translateX));\n            transform: translateZ(0) translateX(var(--translateX));\n  }\n}\n@keyframes bullet-move-left-to-right {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0);\n            transform: translateZ(0) translateX(0);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(var(--translateX));\n            transform: translateZ(0) translateX(var(--translateX));\n  }\n}\n@-webkit-keyframes bullet-move-right-to-left {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0);\n            transform: translateZ(0) translateX(0);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(calc(var(--translateX) * -1));\n            transform: translateZ(0) translateX(calc(var(--translateX) * -1));\n  }\n}\n@keyframes bullet-move-right-to-left {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0);\n            transform: translateZ(0) translateX(0);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(calc(var(--translateX) * -1));\n            transform: translateZ(0) translateX(calc(var(--translateX) * -1));\n  }\n}\n@-webkit-keyframes role-move-right-to-left {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0);\n            transform: translateZ(0) translateX(0);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(calc(-1 * var(--translateX)));\n            transform: translateZ(0) translateX(calc(-1 * var(--translateX)));\n  }\n}\n@keyframes role-move-right-to-left {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0);\n            transform: translateZ(0) translateX(0);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(calc(-1 * var(--translateX)));\n            transform: translateZ(0) translateX(calc(-1 * var(--translateX)));\n  }\n}\n@-webkit-keyframes role-move-left-to-right {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0) scaleX(-1);\n            transform: translateZ(0) translateX(0) scaleX(-1);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(var(--translateX)) scaleX(-1);\n            transform: translateZ(0) translateX(var(--translateX)) scaleX(-1);\n  }\n}\n@keyframes role-move-left-to-right {\n  0% {\n    -webkit-transform: translateZ(0) translateX(0) scaleX(-1);\n            transform: translateZ(0) translateX(0) scaleX(-1);\n  }\n  100% {\n    -webkit-transform: translateZ(0) translateX(var(--translateX)) scaleX(-1);\n            transform: translateZ(0) translateX(var(--translateX)) scaleX(-1);\n  }\n}\n@-webkit-keyframes opacity-zero {\n  0% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n@keyframes opacity-zero {\n  0% {\n    opacity: 1;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n",""]);const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){
for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},ht={};function dt(t){var e=ht[t];if(void 0!==e)return e.exports;var i=ht[t]={id:t,exports:{}};return ct[t](i,i.exports,dt),i.exports}dt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return dt.d(e,{a:e}),e},dt.d=(t,e)=>{for(var i in e)dt.o(e,i)&&!dt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},dt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ut={};(()=>{dt.d(ut,{V:()=>y,A:()=>E});const t=(t=>{var e={};return dt.d(e,t),e})({DPX:()=>r.C5,ESpecialMode:()=>r.yC,EventType:()=>r.tw,Render:()=>r.Hr,SpaceManager:()=>r.TV,getHexColor:()=>r.Xv,random:()=>r.MX});var e,i=50,n=(e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return n(r,e),r.prototype.add=function(e){var n;if(e.shooterType===y.bullet){this.list.bullet||(this.list.bullet=[]);var r=this.list.bullet,o=[-1,1],a=Math.floor(this.manager.containerSize.height/i),s=Math.floor((0,t.random)(0,a));if(e.textData.border)return(g=r[s])&&0!==g.length||(g=r[s]=[]),g.push(e),{x:0,y:s*i,index:0};for(var l=0;l<2;l++)for(var A=o[l];s>=0&&s<=a;){var c=!1;if((g=r[s])&&0!==g.length){var h=g[g.length-1];h.x-h.width-80>0&&h.endTime+1<e.middle&&(c=!0)}else g=r[s]=[],c=!0;if(c)return g.push(e),{x:0,y:s*i,index:0};s+=A}}else if(e.shooterType===y.object){this.list.role||(this.list.role=[]);var d=this.list.role,u=(o=[-1,1],this.manager.modeMap[t.ESpecialMode.Shooter].roleConfig.heightRatio);for(a=Math.floor(this.manager.containerSize.height/i)-(u-1),s=Math.floor((0,t.random)(0,a)),l=0;l<2;l++)for(A=o[l];s>=0&&s<a;){for(var p=0;p<u;p++)d[n=s+p]||(d[n]=[]);var g,f=(g=d[s])[g.length-1];if(!f||f.x-f.width-10>0){for(var m=0;m<u;m++)d[s+m].push(e);return{x:0,y:s*i,index:0}}s+=A}return{x:0,y:0,index:-1}}return{x:0,y:0,index:-1}},r.prototype.remove=function(t){if(t.shooterType===y.bullet){var e=this.list.bullet;for(var i in e)-1!==(o=(r=e[i]).indexOf(t))&&r.splice(o,1)}else{var n=this.list.role;for(var i in n){var r,o;-1!==(o=(r=n[i]).indexOf(t))&&r.splice(o,1)}}},r.prototype.insert=function(t){},r}(t.SpaceManager),a=dt(957),s=dt.n(a),l=dt(629),A=dt.n(l),c=dt(866),h=dt.n(c),d=dt(511),u=dt.n(d),p=dt(897),g=dt.n(p),f=dt(706),m={attributes:{"data-injector":"danmaku-x"}};m.setAttributes=u(),m.insert=h().bind(null,"head"),m.domAPI=A(),m.insertStyleElement=g(),s()(f.A,m),f.A&&f.A.locals&&f.A.locals;var y,b=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();!function(t){t[t.bullet=0]="bullet",t[t.object=1]="object"}(y||(y={}));var v=function(e){function n(i){var n,r,o=e.call(this,i,"shooter")||this;return o.hitNumber=(null===(r=null===(n=o.manager.modeMap[t.ESpecialMode.Shooter])||void 0===n?void 0:n.roleConfig)||void 0===r?void 0:r.hitNumber)||3,o.bulletBoomTime=.5,o.roleDeadTime=1.5,o.isHitRole=!1,o.isDeading=!1,o.walkIndex=0,o.isChecked=!1,o}return b(n,e),n.start=function(){var e=n.manager,i=-1;e.danmaku.on(t.EventType.Danmaku_Play,(function(){n.startGenerateRole(),r()})),e.danmaku.on(t.EventType.Danmaku_Pause,(function(){n.pauseGenerateRole(),window.cancelAnimationFrame(i)}));var r=function(){var e,o;window.cancelAnimationFrame(i);var a=n.manager.collisionPool.getPool(t.ESpecialMode.Shooter),s=a.role,l=a.bullet;if(s&&l&&s.length>0&&l.length>0)for(var A=Math.min(s.length,l.length),c=0;c<A;c++){var h=s[c]||[],d=l[c]||[],u=null!==(e=h[0])&&void 0!==e?e:null,p=null!==(o=d[0])&&void 0!==o?o:null;if(p&&u&&!p.isChecked&&!u.isChecked&&p.x+u.x-u.width/2>=p.originDistance-p.precise*p.speed-u.precise*u.speed){var g=n.manager.renderTime;p.middle=g-.1,p.endTime=p.middle+.5,u.hitNumber--,p.isChecked=!0,0===u.hitNumber&&(u.isChecked=!0,u.spaceManager.remove(u))}}i=window.requestAnimationFrame(r)};r(),n.startGenerateRole()},n.startGenerateRole=function(){var e,i,r,o,a;-1===n.timer&&(null===(a=null===(o=null===(r=null===(i=null===(e=n.manager)||void 0===e?void 0:e.modeMap)||void 0===i?void 0:i[t.ESpecialMode.Shooter])||void 0===r?void 0:r.roleConfig)||void 0===o?void 0:o.shouldGenerateRole)||void 0===a?void 0:a.call(o))&&(n.manager.add({rawMode:t.ESpecialMode.Shooter,mode:t.ESpecialMode.Shooter,text:"僵尸弹幕",dmid:"".concat(Math.random()).concat(Date.now()),shooterType:y.object,isLose:!0}),n.timer=window.setTimeout((function(){n.timer=-1,n.startGenerateRole()}),n.interval))},n.pauseGenerateRole=function(){window.clearTimeout(n.timer),n.timer=-1},n.prototype.getSpaceManager=function(){return o},Object.defineProperty(n.prototype,"x",{get:function(){return(this.manager.renderTime-this.showTime)*this.speed},set:function(t){this._x=t},enumerable:!1,configurable:!0}),n.prototype.init=function(i,r){return function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){return function(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]
},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(o){return this.shooterType=i.textData.shooterType||y.bullet,e.prototype.init.call(this,i,r),n.manager=this.manager,n.interval=this.manager.modeMap[t.ESpecialMode.Shooter].roleConfig.generateRoleInterval||1e3,n.isFirstInit&&(n.isFirstInit=!1,n.start()),[2]}))}))},n.prototype.render=function(){var e=this.modeInfo,n=e.font_color,r=e.font_stroke_color,o=this.textData,a=o.borderColor,s=o.border,l=this.config.setting,A=(l.opacity,l.fontFamily);this.fontSize=25,this.precise=0,this.showTime=this.manager.renderTime,this.element.className="".concat(t.DPX,"-shooter");var c="\n            --opacity: 1;\n            --fontFamily: ".concat(A,", Arial, Helvetica, sans-serif;\n        ");n&&(c+="--color:".concat(n,";")),r&&(c+="--textShadow:1px 0 5px ".concat(r,";")),s&&this.shooterType===y.bullet&&(c+="border: 1px solid ".concat((0,t.getHexColor)(a),";")),this.element.style.cssText+=c,this.shooterType===y.object&&(this.element.style.border="none");var h=this.manager.modeMap[t.ESpecialMode.Shooter].direction||1;if(1===h?this.element.classList.add("".concat(t.DPX,"-bullet-left-to-right")):this.element.classList.add("".concat(t.DPX,"-bullet-right-to-left")),this.shooterType===y.bullet)this.element.classList.add("".concat(t.DPX,"-bullet-container")),this.element.innerHTML=1===h?'\n                <div class="'.concat(t.DPX,'-text">').concat(this.text,'</div>\n                <div class="').concat(t.DPX,'-bullet-image-container" style="width: 25px; height: 25px">\n                    <img class="').concat(t.DPX,'-bullet" src="').concat(this.resource.bullet,'" style="width: 25px; height: 25px" />\n                </div>\n            '):'\n                <div class="'.concat(t.DPX,'-bullet-image-container" style="width: 25px; height: 25px">\n                    <img class="').concat(t.DPX,'-bullet" src="').concat(this.resource.bullet,'" style="width: 25px; height: 25px" />\n                </div>\n                <div class="').concat(t.DPX,'-text">').concat(this.text,"</div>\n                "),this.textData.prefix&&this.textData.prefix instanceof HTMLElement&&(this.textData.prefix.style.height="".concat(1.2*this.fontSize,"px"),this.textData.prefix.style.width="auto",1===h?this.element.insertBefore(this.textData.prefix,this.element.firstChild):this.element.insertBefore(this.textData.prefix,this.element.querySelector(".".concat(t.DPX,"-text")))),this.textData.suffix&&this.textData.suffix instanceof HTMLElement&&(this.textData.suffix.style.height="".concat(1.2*this.fontSize,"px"),this.textData.suffix.style.width="auto",this.element.appendChild(this.textData.suffix));else{this.element.classList.add("".concat(t.DPX,"-role-container"));var d=this.manager.modeMap[t.ESpecialMode.Shooter].roleConfig,u=(d.height,d.width,d.heightRatio*i);this.element.innerHTML='\n                <img class="'.concat(t.DPX,'-role" src="" style="height: ').concat(u,'px;" />\n            ')}},n.prototype.getSize=function(){if(this.shooterType===y.object){var e=this.manager.modeMap[t.ESpecialMode.Shooter].roleConfig,n=e.height,r=e.width,o=e.heightRatio*i;return{width:o*r/n,height:o}}var a=this.element.getBoundingClientRect();return{width:r=a.width,height:n=a.height}},n.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this),this.showTime=this.manager.renderTime;var i=this.shooterType===y.bullet?this.manager.modeMap[t.ESpecialMode.Shooter].bulletConfig.duration:this.manager.modeMap[t.ESpecialMode.Shooter].roleConfig.duration;this.speed=1920/i*.6,this.horizontalDistance=Math.ceil(this.horizontalDistance-this.precise*this.speed),this.duration=(this.horizontalDistance+this.width)/this.speed,this.originDistance=this.manager.containerSize.width,this.middle=this.showTime+this.horizontalDistance/this.speed,this.endTime=this.showTime+this.duration},n.prototype.collisionCheck=function(){e.prototype.collisionCheck.call(this),0===this.duration&&(this.duration=-1)},n.prototype.afterCollisionCheck=function(){Math.abs(this.horizontalDistance-this.manager.containerSize.width)>10?this.endTime=this.manager.renderTime:this.element.style.cssText+="\n            --duration: ".concat(this.duration,"s;\n            --offset:").concat(this.horizontalDistance,"px;\n            --top:").concat(this.y,"px;\n            --translateX:").concat(this.horizontalDistance+this.width,"px;\n            --left:").concat(this.width-this.precise*this.speed,"px;\n        ")},n.prototype.firstShow=function(){Math.abs(this.horizontalDistance-this.manager.containerSize.width)>10?this.endTime=this.manager.renderTime:e.prototype.firstShow.call(this)},n.prototype.animate=function(){var e,i=this.manager.renderTime;if(this.shooterType===y.object)if(this.hitNumber>0){var n=null!==(e=this.resource.walkList)&&void 0!==e?e:[];this.element.querySelector(".".concat(t.DPX,"-role")).src=n[this.walkIndex%n.length],this.walkIndex++}else 0===this.hitNumber&&(this.isDeading||(this.isDeading=!0,this.element.classList.add("".concat(t.DPX,"-role-stop")),this.middle=this.manager.renderTime,this.endTime=this.manager.renderTime+this.roleDeadTime),this.animateRoleDead());else i>=this.middle&&this.isChecked&&(this.isHitRole||(this.element.classList.add("".concat(t.DPX,"-bullet-stop")),this.isHitRole=!0),this.animateBulletBoom())},n.prototype.animateBulletBoom=function(){var e,i,n=this.manager.renderTime-this.middle;if(!(n<0)){var r=Math.ceil(n/this.bulletBoomTime*this.resource.bulletBoom.length)-1;r=Math.max(r,0);var o=this.element.querySelector(".".concat(t.DPX,"-bullet"));o.style.width="auto",o.style.height="auto",o.style.transform="scale(25 / ".concat(this.manager.modeMap[t.ESpecialMode.Shooter].bulletConfig.bulletSize.height,")"),o.src=(null===(i=null===(e=this.resource)||void 0===e?void 0:e.bulletBoom)||void 0===i?void 0:i[r])||""}},n.prototype.animateRoleDead=function(){var e,i=this.manager.renderTime-this.middle;if(!(i<0)){var n=null!==(e=this.resource.deadList)&&void 0!==e?e:[],r=Math.ceil(i/this.roleDeadTime*n.length)-1;r=Math.max(r,0),this.element.querySelector(".".concat(t.DPX,"-role")).src=n[r]}},n.prototype.resize=function(t,e){},n.isFirstInit=!0,n.timer=-1,n.interval=1e3,n}(t.Render);const E=v})();var pt=ut.A,gt={486:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(732),r=i.n(n),o=i(109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-live-to-vod {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: end;\n      -ms-flex-align: end;\n          align-items: flex-end;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  height: 34px;\n  padding: 0px 12px 0px 6px;\n  background-color: #18191C;\n  border-radius: 17px;\n  overflow: visible;\n  font-size: 24px;\n  pointer-events: none;\n}\n.bili-danmaku-x-live-to-vod-icon {\n  width: 44px;\n  height: 44px;\n  margin-right: 3px;\n}\n.bili-danmaku-x-live-to-vod-text-wrap {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  height: 100%;\n}\n",""])
;const s=a},109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},732:t=>{t.exports=function(t){return t[1]}},957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},48:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},427:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},57:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},381:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},684:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},786:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},159:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},395:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'}},ft={};function mt(t){var e=ft[t];if(void 0!==e)return e.exports;var i=ft[t]={id:t,exports:{}};return gt[t](i,i.exports,mt),i.exports}mt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return mt.d(e,{a:e}),e},mt.d=(t,e)=>{for(var i in e)mt.o(e,i)&&!mt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},mt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var yt={};(()=>{mt.d(yt,{A:()=>f});const t=(t=>{var e={};return mt.d(e,t),e})({DPX:()=>r.C5});var e=mt(957),i=mt.n(e),n=mt(629),o=mt.n(n),a=mt(866),s=mt.n(a),l=mt(511),A=mt.n(l),c=mt(897),h=mt.n(c),d=mt(486),u={attributes:{"data-injector":"danmaku-x"}};u.setAttributes=A(),u.insert=s().bind(null,"head"),u.domAPI=o(),u.insertStyleElement=h(),i()(d.A,u),d.A&&d.A.locals&&d.A.locals,mt(634),mt(427),mt(426),mt(57),mt(684),mt(496),mt(381),mt(173),mt(159),mt(610),mt(653),mt(739),mt(779),mt(48),mt(395),mt(536),mt(786),mt(461);var p,g=(p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});const f=function(e){return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return g(i,e),i.prototype.render=function(){e.prototype.render.call(this),
this.element.innerHTML='\n                <div class="'.concat(t.DPX,'-live-to-vod">\n                    <img class="').concat(t.DPX,'-live-to-vod-icon" src="').concat("data:image/png;base64, ",'"/>\n                    <div class="').concat(t.DPX,'-live-to-vod-text-wrap">\n                        <span class="').concat(t.DPX,'-live-to-vod-text">').concat(this.text,"</span>\n                    </div>\n                </div>\n            "),this.element.style.zIndex="1000"},i.prototype.collisionCheck=function(){this.y=2*this.height},i.prototype.getSize=function(){var t=this.element.getBoundingClientRect();return{width:t.width,height:t.height}},i}(e)}})();var bt,vt,Et=yt.A,It={7175:(t,e,i)=>{t.exports=(t=>{var e={};return i.d(e,t),e})({BinaryArray:()=>r.no,DPX:()=>r.C5,ESpecialMode:()=>r.yC,EventType:()=>r.tw,FireworkRender:()=>r.hd,FireworkSpaceManager:()=>r.YW,RandomSpaceManager:()=>r.c9,Render:()=>r.Hr,RollRender:()=>r.pB,SpaceManager:()=>r.TV,getBaseDmDuration:()=>r.oA,getHexColor:()=>r.Xv,random:()=>r.MX})},313:(t,e,i)=>{var n,o;t.exports=(n={formatText:()=>r.RZ,getBaseDmDuration:()=>r.oA,random:()=>r.MX},o={},i.d(o,n),o)}},Ct={};function Bt(t){var e=Ct[t];if(void 0!==e)return e.exports;var i=Ct[t]={id:t,exports:{}};return It[t](i,i.exports,Bt),i.exports}Bt.m=It,Bt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Bt.d(e,{a:e}),e},Bt.d=(t,e)=>{for(var i in e)Bt.o(e,i)&&!Bt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Bt.f={},Bt.e=t=>Promise.all(Object.keys(Bt.f).reduce(((e,i)=>(Bt.f[i](t,e),e)),[])),Bt.u=t=>"./widgets/"+({13:"shooter",76:"spring",158:"firework2022",301:"liveToVod",564:"pk",618:"blackhole",648:"mars",693:"harrypotter",917:"yanwen",955:"fireworkBillion",967:"firework2023"}[t]||t)+"."+{13:"1730ad47",76:"e72e5582",158:"1edf9580",301:"24cf063f",564:"f10019a2",618:"e4fb2e34",648:"631a2417",693:"9959d389",761:"80edaa51",917:"65ddfea4",955:"2913011d",967:"d975d248"}[t]+".js",Bt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),bt={},vt="@bilibili-player/danmaku-x-special:",Bt.l=(t,e,i,n)=>{if(bt[t])bt[t].push(e);else{var r,o;if(void 0!==i)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var l=a[s];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==vt+i){r=l;break}}r||(o=!0,(r=document.createElement("script")).type="module",r.charset="utf-8",r.timeout=120,Bt.nc&&r.setAttribute("nonce",Bt.nc),r.setAttribute("data-webpack",vt+i),r.src=t),bt[t]=[e];var A=(e,i)=>{r.onerror=r.onload=null,clearTimeout(c);var n=bt[t];if(delete bt[t],r.parentNode&&r.parentNode.removeChild(r),n&&n.forEach((t=>t(i))),e)return e(i)},c=setTimeout(A.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=A.bind(null,r.onerror),r.onload=A.bind(null,r.onload),o&&document.head.appendChild(r)}},Bt.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},Bt.p="//s1.hdslb.com/bfs/static/danmaku/",(()=>{var t={792:0};Bt.f.j=(e,i)=>{var n=Bt.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise(((i,r)=>n=t[e]=[i,r]));i.push(n[2]=r);var o=Bt.p+Bt.u(e),a=new Error;Bt.l(o,(i=>{if(Bt.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){
var r=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,r,[o,a,s]=i,l=0;if(o.some((e=>0!==t[e]))){for(n in a)Bt.o(a,n)&&(Bt.m[n]=a[n]);s&&s(Bt)}for(e&&e(i);l<o.length;l++)r=o[l],Bt.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunk_bilibili_player_danmaku_x_special=self.webpackChunk_bilibili_player_danmaku_x_special||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var wt={};(()=>{function t(){return{loadBlackHole:function(){return Promise.all([Bt.e(761),Bt.e(618)]).then(Bt.bind(Bt,9788))},loadFirework2022:function(){return Promise.all([Bt.e(761),Bt.e(158)]).then(Bt.bind(Bt,2543))},loadFirework2023:function(){return Promise.all([Bt.e(761),Bt.e(967)]).then(Bt.bind(Bt,8997))},loadFireworkBillion:function(){return Promise.all([Bt.e(761),Bt.e(955)]).then(Bt.bind(Bt,2818))},loadFireworkBoom:function(){return Promise.all([Bt.e(761),Bt.e(955)]).then(Bt.bind(Bt,9664))},loadSpring:function(){return Promise.all([Bt.e(761),Bt.e(76)]).then(Bt.bind(Bt,7073))},loadPK:function(){return Promise.all([Bt.e(761),Bt.e(564)]).then(Bt.bind(Bt,2074))},loadSand:function(){return Promise.all([Bt.e(761),Bt.e(564)]).then(Bt.bind(Bt,9652))},loadYanwen:function(){return Promise.all([Bt.e(761),Bt.e(917)]).then(Bt.bind(Bt,4440))},loadHarryPotter:function(){return Promise.all([Bt.e(761),Bt.e(693)]).then(Bt.bind(Bt,2632))},loadMars:function(){return Bt.e(648).then(Bt.bind(Bt,5278))},loadShooter:function(){return Promise.all([Bt.e(761),Bt.e(13)]).then(Bt.bind(Bt,7870))},loadLiveToVod:function(){return Promise.all([Bt.e(761),Bt.e(301)]).then(Bt.bind(Bt,390))}}}Bt.d(wt,{l:()=>t})})();var xt={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},7915:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-clock {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  font-size: 12px;\n  width: 290px;\n  height: 50px;\n  color: #fff;\n  background-color: rgba(33, 33, 33, 0.8);\n  border-radius: 8px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-clock.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-clock.bili-danmaku-x-complete .bili-danmaku-x-clock-title,\n.bili-danmaku-x-clock.bili-danmaku-x-complete .bili-danmaku-x-clock-desc {\n  left: 48px;\n}\n.bili-danmaku-x-clock.bili-danmaku-x-complete .bili-danmaku-x-clock-complete-img {\n  display: block;\n}\n.bili-danmaku-x-clock-complete-img {\n  display: none;\n  position: absolute;\n  left: 2px;\n  bottom: 0;\n  width: 40px;\n  height: 60px;\n}\n.bili-danmaku-x-clock-title,\n.bili-danmaku-x-clock-desc {\n  position: absolute;\n  font-size: 14px;\n  top: 6px;\n  left: 8px;\n  width: 200px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n.bili-danmaku-x-clock-desc {\n  opacity: 0.7;\n  top: 28px;\n  font-size: 12px;\n}\n.bili-danmaku-x-clock-btn {\n  position: absolute;\n  top: 13px;\n  right: 15px;\n  width: 60px;\n  height: 24px;\n  border-radius: 4px;\n  background: #00a1d6;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  cursor: pointer;\n}\n.bili-danmaku-x-clock-btn-icon-tick,\n.bili-danmaku-x-clock-btn-icon-tick-done {\n  display: none;\n  margin-right: 3px;\n  width: 12px;\n  height: 12px;\n}\n.bili-danmaku-x-clock-btn:hover {\n  background: #00b5e5;\n}\n.bili-danmaku-x-clock-btn-state-tick .bili-danmaku-x-clock-btn-icon-tick {\n  display: block;\n}\n.bili-danmaku-x-clock-btn-state-tick-done {\n  background: rgba(255, 255, 255, 0.2);\n  pointer-events: none;\n}\n.bili-danmaku-x-clock-btn-state-tick-done .bili-danmaku-x-clock-btn-icon-tick-done {\n  display: block;\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)
},remove:function(t){n(i,e,!0,t)}}}},4634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'}},Qt={};function St(t){var e=Qt[t];if(void 0!==e)return e.exports;var i=Qt[t]={id:t,exports:{}};return xt[t](i,i.exports,St),i.exports}St.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return St.d(e,{a:e}),e},St.d=(t,e)=>{for(var i in e)St.o(e,i)&&!St.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},St.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var kt={};(()=>{St.d(kt,{A:()=>I}),St(4634),St(2427),St(426),St(9057),St(5684),St(1496),St(7381),St(4173),St(7159),St(610);var t=St(6653),e=St.n(t),i=St(739),n=St.n(i);St(3779),St(1048),St(4395),St(536),St(6786),St(9461);const o=(t=>{var e={};return St.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC,DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub,formatNumber:()=>r.uf});var a=St(5179),s=St(3957),l=St.n(s),A=St(5629),c=St.n(A),h=St(8866),d=St.n(h),u=St(511),p=St.n(u),g=St(3897),f=St.n(g),m=St(7915),y={attributes:{"data-injector":"danmaku-x"}};y.setAttributes=p(),y.insert=d().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=f(),l()(m.A,y),m.A&&m.A.locals&&m.A.locals;var b,v=(b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),E=function(t){function i(e){return t.call(this,e,"clock")||this}return v(i,t),i.prototype.getSize=function(){return{width:290,height:50}},i.prototype.getSpaceManager=function(){return o.CommandSpaceManager},i.prototype.render=function(t){if(this.modeInfo.userChecked||!this.modeInfo.endClock||this.config.setting.canBindMove){var i="".concat(o.DPX,"-").concat(this.id)+(t?" ".concat(o.DPX,"-show"):"");this.config.setting.canBindMove&&(i+=" ".concat(o.DPX,"-editor")),this.manager.track.s("player.dm-clock.show",{dmid:this.textData.dmid,type:this.modeInfo.type,is_join:this.modeInfo.userChecked?1:0,button_status:this.btnState,card_type:this.modeInfo.endClock?2:1,
source_id:this.modeInfo.seriesId,checkin_type:this.modeInfo.type}),this.element.innerHTML='\n            <img class="'.concat(o.DPX,'-clock-complete-img"></img>\n            <div class="').concat(o.DPX,'-clock-title"></div>\n            <div class="').concat(o.DPX,'-clock-desc">\n                <span class="').concat(o.DPX,'-clock-desc-left"></span> · <span class="').concat(o.DPX,'-clock-desc-right"></span>\n            </div>\n            <div class="').concat(o.DPX,'-clock-btn">\n                <div class="').concat(o.DPX,'-clock-btn-icon-tick">').concat(n(),'</div>\n                <div class="').concat(o.DPX,'-clock-btn-icon-tick-done">').concat(e(),'</div>\n                <div class="').concat(o.DPX,'-clock-btn-text">打卡</div>\n            </div>\n        '),this.element.className=i,this.template={title:this.element.querySelector(".".concat(o.DPX,"-clock-title")),descLeft:this.element.querySelector(".".concat(o.DPX,"-clock-desc-left")),descRight:this.element.querySelector(".".concat(o.DPX,"-clock-desc-right")),btn:this.element.querySelector(".".concat(o.DPX,"-clock-btn")),btnTxt:this.element.querySelector(".".concat(o.DPX,"-clock-btn-text")),completeIcon:this.element.querySelector(".".concat(o.DPX,"-clock-complete-img"))},this.cmdClick=this.cmdClick.bind(this),this.updateDom()}else this.duration=-1},i.prototype.bindEvents=function(){var t,e;null===(e=null===(t=this.template)||void 0===t?void 0:t.btn)||void 0===e||e.addEventListener("click",this.cmdClick)},i.prototype.cmdClick=function(t){var e=this;t.stopPropagation();var i=this.textData,n=i.dmid,r=i.mode,a=this.modeInfo,s=a.userCompleted,l=a.total,A=a.checkInId,c=a.seriesId,h=a.endClock,d=a.jumpUrl,u=a.type;this.manager.track.e("dm-clockIn-click",{endClock:h,dmid:n}),h?window.open(d):this.manager.emit(o.EventType.ClockIn_Danmaku_Click,{params:{dmid:n,userCompleted:s,total:l,checkInId:A,seriesId:c,endClock:h,jumpUrl:d,type:u},cb:function(t){var i=t||{},n=i.code,o=i.data;if(0===n&&o&&e.textData){var a=o.user_over_number,s=o.user_completed,l=o.user_checkin_date;e.manager.dataBase.updateMode({mode:r,userOverNumber:a||0,userCompleted:s,userCheckInDate:l,firstComplete:!0,userChecked:!0}),e.updateDom(),e.renderCloseBtn(),e.manager.track.c("player.dm-clock.click",{dmid:e.textData.dmid,type:e.modeInfo.type,is_join:e.modeInfo.userChecked?1:0,button_status:e.btnState,card_type:e.modeInfo.endClock?2:1,source_id:e.modeInfo.seriesId,checkin_type:e.modeInfo.type})}}})},i.prototype.updateDom=function(){var t;if(null===(t=this.template)||void 0===t?void 0:t.btn){var e=this.modeInfo,i=e.type,n=e.total,r=e.userCompleted,a=e.endClock,s=e.userOverNumber,l=e.joinPeople,A=e.firstComplete,c=e.userChecked,h=this.textData,d=this.template,u=d.btn,p=d.title,g=d.completeIcon,f=d.descLeft,m=d.descRight,y=d.btnTxt;u.className="".concat(o.DPX,"-clock-btn");var b=i?"期":"天",v=n&&r===n;if(p.textContent=h.text,a)p.textContent=i?"已完成本期打卡":"已完成第1天打卡",v&&(p.textContent="恭喜你完成".concat(i?"全系列":n+"天","打卡"),g.src="https://s1.hdslb.com/bfs/static/player/img/clock_in.png",this.element.classList.add("".concat(o.DPX,"-complete"))),f.textContent=this.getUserCheckData(),m.textContent="超越了".concat(this.showCount(s)),y.textContent=v?"去分享":"查看记录",this.btnState=v?4:3;else if(r){v?(p.textContent=h.text+" 已完成",f.textContent="".concat(this.getUserCheckData(),"完成")):f.textContent="完成度 ".concat(r,"/").concat(n).concat(b),m.textContent="超越了".concat(this.showCount(s));var E="";v&&!A?(E="重新打卡",this.btnState=5):(E=c?"已打卡":"打卡",this.btnState=c?2:1,u.classList.add("".concat(o.DPX,"-clock-btn-state-tick").concat(c?"-done":""))),this.modeInfo.firstComplete=!1,y.textContent=E}else f.textContent="打卡目标 ".concat(n).concat(b),m.textContent=this.showCount(l)+"参与",y.textContent="打卡",this.btnState=1,u.classList.add("".concat(o.DPX,"-clock-btn-state-tick"))}},i.prototype.getUserCheckData=function(){if(this.modeInfo.userCheckInDate)return this.modeInfo.userCheckInDate;var t=new Date;return"".concat(t.getFullYear(),"-").concat(t.getMonth()+1,"-").concat(t.getDate())},i.prototype.showCount=function(t){var e=t/1e4;return((e=e>=1?(0,o.formatNumber)(e):t)||0)+"人"},i.prototype.removeEventListener=function(){var t,e;null===(e=null===(t=this.template)||void 0===t?void 0:t.btn)||void 0===e||e.removeEventListener("click",this.cmdClick)},i.prototype.destroy=function(){return this.shrinkState===o.ShrinkState.HIDE&&this.setShrinkState(o.ShrinkState.ON),this.removeEventListener(),t.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([a.Ay],i.prototype,"cmdClick",null),i}(o.CommandRender);const I=E})();var Dt=kt.A,_t={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.oI=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},8663:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-cmtime {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  border-radius: 10px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  z-index: 1;\n  font-weight: 400;\n  border: 6px solid rgba(0, 0, 0, 0.8);\n  background-color: #00aeec;\n  width: 90px;\n  height: 42px;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  cursor: pointer;\n  visibility: hidden;\n  opacity: 0;\n  -webkit-transform: all 0.5s ease;\n          transform: all 0.5s ease;\n  pointer-events: auto;\n}\n.bili-danmaku-x-cmtime.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-cmtime-innerBox {\n  border-radius: 6px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  height: 100%;\n  width: 100%;\n}\n.bili-danmaku-x-cmtime-innerBox .bili-danmaku-x-cmtime-icon {\n  width: 18px;\n  height: 18px;\n}\n.bili-danmaku-x-cmtime-innerBox .bili-danmaku-x-cmtime-text {\n  font-size: 14px;\n  color: #fff;\n  line-height: 20px;\n  margin-left: 3px;\n}\n.bili-danmaku-x-cmtime-clicked .bili-danmaku-x-cmtime-icon {\n  display: none;\n}\n.bili-danmaku-x-cmtime-clicked .bili-danmaku-x-cmtime-text {\n  margin-left: 0;\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){
for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},4634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'}},Rt={};function Mt(t){var e=Rt[t];if(void 0!==e)return e.exports;var i=Rt[t]={id:t,exports:{}};return _t[t](i,i.exports,Mt),i.exports}Mt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Mt.d(e,{a:e}),e},Mt.d=(t,e)=>{for(var i in e)Mt.o(e,i)&&!Mt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Mt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt={};(()=>{Mt.d(Tt,{A:()=>v});const t=(t=>{var e={};return Mt.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC,DPX:()=>r.C5,ECommonMode:()=>r.H1,ESpecialMode:()=>r.yC,EventType:()=>r.tw});Mt(4634),Mt(2427),Mt(426),Mt(9057),Mt(5684),Mt(1496),Mt(7381),Mt(4173),Mt(7159),Mt(610),Mt(6653),Mt(739),Mt(3779),Mt(1048),Mt(4395),Mt(536),Mt(6786);var e=Mt(9461),i=Mt.n(e),n=Mt(5179),o=Mt(3957),a=Mt.n(o),s=Mt(5629),l=Mt.n(s),A=Mt(8866),c=Mt.n(A),h=Mt(511),d=Mt.n(h),u=Mt(3897),p=Mt.n(u),g=Mt(8663),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(e){function r(t){return e.call(this,t,"cmtime")||this}return y(r,e),r.prototype.getSpaceManager=function(){return t.CommandSpaceManager},r.prototype.getSize=function(){return{width:90,height:42}},r.prototype.render=function(e){var n="".concat(t.DPX,"-").concat(this.id)+(e?" ".concat(t.DPX,"-show"):"");this.config.setting.canBindMove&&(n+=" ".concat(t.DPX,"-editor")),this.manager.track.s("player.dm-cm-usersupport.show",{dmid:this.textData.dmid,support_state:this.modeInfo.ifSupported?1:0}),this.element.className=n,this.element.innerHTML='<div class="'.concat(t.DPX,'-cmtime-innerBox">\n            <i class="').concat(t.DPX,'-cmtime-icon">').concat(i(),'</i>\n            <span class="').concat(t.DPX,'-cmtime-text">心动</span>\n        </div>')},r.prototype.afterRender=function(){var e=this.element.querySelector(".".concat(t.DPX,"-cmtime-icon")),i=this.element.querySelector(".".concat(t.DPX,"-cmtime-text"));this.template={icon:e,text:i},this.modeInfo.ifSupported&&(this.element.classList.add("".concat(t.DPX,"-cmtime-clicked")),this.template.text.innerText="已心动"),this.renderSloganDm()},r.prototype.bindEvents=function(){this.element.addEventListener("click",this.support)},r.prototype.renderSloganDm=function(){var e=this.textData,i=e.modeInfo,n=e.dmid,r=null==i?void 0:i.upSlogan,o=i.upSloganIcon;this.upSlogan={attr:2,rawMode:t.ECommonMode.Roll,mode:t.ESpecialMode.PrefixImage,size:25,color:16777215,pool:0,border:!0,weight:-10,date:Date.parse(String(new Date))/1e3,text:r||"",dmid:"".concat(n).concat(Date.now()).concat(Math.random()),isLose:!0,resource:{url:o,width:30,height:30},modeInfo:{isUpSlogan:!0}},this.manager.add(this.upSlogan,!1)},r.prototype.support=function(e){var i=this,n=this.textData,r=n.modeInfo,o=n.dmid;e.stopPropagation(),this.modeInfo.ifSupported||(this.manager.track.e("dm-cmtime-click",{dmid:o}),this.manager.emit(t.EventType.Cmtime_Danmaku_Support,{params:{dmid:o,msg:r.dmKeyWord||""},cb:function(e){!0===e&&(i.element.classList.add("".concat(t.DPX,"-cmtime-clicked")),i.template.text.innerText="已心动",i.modeInfo.ifSupported=!0,i.manager.track.s("player.dm-cm-usersupport.click",{dmid:i.textData.dmid}))}}))},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.element.removeEventListener("click",this.support)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([n.oI],r.prototype,"support",null),r}(t.CommandRender);const v=b})();var Ft=Tt.A,Lt={6732:(t,e,i)=>{var n=i(5409),r=i(4399);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var i=0;i<e.length;i++){
var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s,l,A=i(5349).codes,c=A.ERR_AMBIGUOUS_ARGUMENT,h=A.ERR_INVALID_ARG_TYPE,d=A.ERR_INVALID_ARG_VALUE,u=A.ERR_INVALID_RETURN_VALUE,p=A.ERR_MISSING_ARGS,g=i(6342),f=i(1344).inspect,m=i(1344).types,y=m.isPromise,b=m.isRegExp,v=i(3921)(),E=i(2197)(),I=i(1187)("RegExp.prototype.test");function C(){var t=i(1235);s=t.isDeepEqual,l=t.isDeepStrictEqual}var B=!1,w=t.exports=k,x={};function Q(t){if(t.message instanceof Error)throw t.message;throw new g(t)}function S(t,e,i,n){if(!i){var r=!1;if(0===e)r=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new g({actual:i,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=r,o}}function k(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];S.apply(void 0,[k,e.length].concat(e))}w.fail=function t(e,i,o,a,s){var l,A=arguments.length;if(0===A?l="Failed":1===A?(o=e,e=void 0):(!1===B&&(B=!0,(n.emitWarning?n.emitWarning:r.warn.bind(r))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===A&&(a="!=")),o instanceof Error)throw o;var c={actual:e,expected:i,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==o&&(c.message=o);var h=new g(c);throw l&&(h.message=l,h.generatedMessage=!0),h},w.AssertionError=g,w.ok=k,w.equal=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");e!=i&&Q({actual:e,expected:i,message:n,operator:"==",stackStartFn:t})},w.notEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");e==i&&Q({actual:e,expected:i,message:n,operator:"!=",stackStartFn:t})},w.deepEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),s(e,i)||Q({actual:e,expected:i,message:n,operator:"deepEqual",stackStartFn:t})},w.notDeepEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),s(e,i)&&Q({actual:e,expected:i,message:n,operator:"notDeepEqual",stackStartFn:t})},w.deepStrictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),l(e,i)||Q({actual:e,expected:i,message:n,operator:"deepStrictEqual",stackStartFn:t})},w.notDeepStrictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),l(e,i)&&Q({actual:e,expected:i,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},w.strictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");E(e,i)||Q({actual:e,expected:i,message:n,operator:"strictEqual",stackStartFn:t})},w.notStrictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");E(e,i)&&Q({actual:e,expected:i,message:n,operator:"notStrictEqual",stackStartFn:t})};var D,_,R,M=(D=function t(e,i,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&b(e[t])&&I(e[t],n[t])?r[t]=n[t]:r[t]=e[t])}))},_&&a(D.prototype,_),R&&a(D,R),Object.defineProperty(D,"prototype",{writable:!1}),D);function T(t,e,i,n){if("function"!=typeof e){if(b(e))return I(e,t);if(2===arguments.length)throw new h("expected",["Function","RegExp"],e);if("object"!==o(t)||null===t){var r=new g({actual:t,expected:e,message:i,operator:"deepStrictEqual",stackStartFn:n});throw r.operator=n.name,r}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",e,"may not be an empty object");return void 0===s&&C(),a.forEach((function(r){"string"==typeof t[r]&&b(e[r])&&I(e[r],t[r])||function(t,e,i,n,r,o){if(!(i in t)||!l(t[i],e[i])){if(!n){var a=new M(t,r),s=new M(e,r,t),A=new g({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw A.actual=t,A.expected=e,A.operator=o.name,A}Q({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}(t,e,r,i,a,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function F(t){if("function"!=typeof t)throw new h("fn","Function",t);try{t()}catch(t){return t}return x}function L(t){return y(t)||null!==t&&"object"===o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function N(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!L(e=t()))throw new u("instance of Promise","promiseFn",e)}else{if(!L(t))throw new h("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return x})).catch((function(t){return t}))}))}function P(t,e,i,n){if("string"==typeof i){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],i);if("object"===o(e)&&null!==e){if(e.message===i)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===i)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=i,i=void 0}else if(null!=i&&"object"!==o(i)&&"function"!=typeof i)throw new h("error",["Object","Error","Function","RegExp"],i);if(e===x){var r="";i&&i.name&&(r+=" (".concat(i.name,")")),r+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";Q({actual:void 0,expected:i,operator:t.name,message:"Missing expected ".concat(a).concat(r),stackStartFn:t})}if(i&&!T(e,i,n,t))throw e}function U(t,e,i,n){if(e!==x){if("string"==typeof i&&(n=i,i=void 0),!i||T(e,i)){var r=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";Q({actual:e,expected:i,operator:t.name,message:"Got unwanted ".concat(o).concat(r,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function O(t,e,i,n,r){if(!b(e))throw new h("regexp","RegExp",e);var a="match"===r;if("string"!=typeof t||I(e,t)!==a){if(i instanceof Error)throw i;var s=!i;i=i||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(o(t)," (").concat(f(t),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(f(e),". Input:\n\n").concat(f(t),"\n"));var l=new g({actual:t,expected:e,message:i,operator:r,stackStartFn:n});throw l.generatedMessage=s,l}}function G(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];S.apply(void 0,[G,e.length].concat(e))}w.throws=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];P.apply(void 0,[t,F(e)].concat(n))},w.rejects=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return N(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},w.doesNotThrow=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];U.apply(void 0,[t,F(e)].concat(n))},w.doesNotReject=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return N(e).then((function(e){return U.apply(void 0,[t,e].concat(n))}))},w.ifError=function t(e){if(null!=e){var i="ifError got unwanted exception: ";"object"===o(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?i+=e.constructor.name:i+=e.message:i+=f(e);var n=new g({actual:e,expected:null,operator:"ifError",message:i,stackStartFn:t}),r=e.stack;if("string"==typeof r){var a=r.split("\n");a.shift();for(var s=n.stack.split("\n"),l=0;l<a.length;l++){var A=s.indexOf(a[l]);if(-1!==A){s=s.slice(0,A);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},w.match=function t(e,i,n){O(e,i,n,t,"match")},w.doesNotMatch=function t(e,i,n){O(e,i,n,t,"doesNotMatch")},w.strict=v(G,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.strict},6342:(t,e,i)=>{var n=i(5409)
;function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return(e=l(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t){if("object"!==f(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}function A(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,g(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)},h(t)}function d(t,e,i){return(d=u()?Reflect.construct.bind():function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&p(r,i.prototype),r}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=i(1344).inspect,y=i(5349).codes.ERR_INVALID_ARG_TYPE;function b(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}var v="",E="",I="",C="",B={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(t){var e=Object.keys(t),i=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){i[e]=t[e]})),Object.defineProperty(i,"message",{value:t.message}),i}function x(t){return m(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var Q=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(d,t);var i,r,a,l,h=(i=d,r=u(),function(){var t,e=g(i);if(r){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return A(this,t)});function d(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),"object"!==f(t)||null===t)throw new y("options","Object",t);var i=t.message,r=t.operator,o=t.stackStartFn,a=t.actual,s=t.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)e=h.call(this,String(i));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="[34m",E="[32m",C="[39m",I="[31m"):(v="",E="",C="",I="")),"object"===f(a)&&null!==a&&"object"===f(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=w(a),s=w(s)),"deepStrictEqual"===r||"strictEqual"===r)e=h.call(this,function(t,e,i){var r="",o="",a=0,s="",l=!1,A=x(t),c=A.split("\n"),h=x(e).split("\n"),d=0,u="";if("strictEqual"===i&&"object"===f(t)&&"object"===f(e)&&null!==t&&null!==e&&(i="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var p=c[0].length+h[0].length;if(p<=10){if(!("object"===f(t)&&null!==t||"object"===f(e)&&null!==e||0===t&&0===e))return"".concat(B[i],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==i&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][d]===h[0][d];)d++;d>2&&(u="\n  ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var i=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,i-t.length)}(" ",d),"^"),d=0)}}for(var g=c[c.length-1],m=h[h.length-1];g===m&&(d++<2?s="\n  ".concat(g).concat(s):r=g,c.pop(),h.pop(),0!==c.length&&0!==h.length);)g=c[c.length-1],m=h[h.length-1];var y=Math.max(c.length,h.length);if(0===y){var w=A.split("\n");if(w.length>30)for(w[26]="".concat(v,"...").concat(C);w.length>27;)w.pop();return"".concat(B.notIdentical,"\n\n").concat(w.join("\n"),"\n")}d>3&&(s="\n".concat(v,"...").concat(C).concat(s),l=!0),""!==r&&(s="\n  ".concat(r).concat(s),r="");var Q=0,S=B[i]+"\n".concat(E,"+ actual").concat(C," ").concat(I,"- expected").concat(C),k=" ".concat(v,"...").concat(C," Lines skipped");for(d=0;d<y;d++){var D=d-a;if(c.length<d+1)D>1&&d>2&&(D>4?(o+="\n".concat(v,"...").concat(C),l=!0):D>3&&(o+="\n  ".concat(h[d-2]),Q++),o+="\n  ".concat(h[d-1]),Q++),a=d,r+="\n".concat(I,"-").concat(C," ").concat(h[d]),Q++;else if(h.length<d+1)D>1&&d>2&&(D>4?(o+="\n".concat(v,"...").concat(C),l=!0):D>3&&(o+="\n  ".concat(c[d-2]),Q++),o+="\n  ".concat(c[d-1]),Q++),a=d,o+="\n".concat(E,"+").concat(C," ").concat(c[d]),Q++;else{var _=h[d],R=c[d],M=R!==_&&(!b(R,",")||R.slice(0,-1)!==_);M&&b(_,",")&&_.slice(0,-1)===R&&(M=!1,R+=","),M?(D>1&&d>2&&(D>4?(o+="\n".concat(v,"...").concat(C),l=!0):D>3&&(o+="\n  ".concat(c[d-2]),Q++),o+="\n  ".concat(c[d-1]),Q++),a=d,o+="\n".concat(E,"+").concat(C," ").concat(R),r+="\n".concat(I,"-").concat(C," ").concat(_),Q+=2):(o+=r,r="",1!==D&&0!==d||(o+="\n  ".concat(R),Q++))}if(Q>20&&d<y-2)return"".concat(S).concat(k,"\n").concat(o,"\n").concat(v,"...").concat(C).concat(r,"\n")+"".concat(v,"...").concat(C)}return"".concat(S).concat(l?k:"","\n").concat(o).concat(r).concat(s).concat(u)}(a,s,r));else if("notDeepStrictEqual"===r||"notStrictEqual"===r){var u=B[r],p=x(a).split("\n");if("notStrictEqual"===r&&"object"===f(a)&&null!==a&&(u=B.notStrictEqualObject),p.length>30)for(p[26]="".concat(v,"...").concat(C);p.length>27;)p.pop();e=1===p.length?h.call(this,"".concat(u," ").concat(p[0])):h.call(this,"".concat(u,"\n\n").concat(p.join("\n"),"\n"))}else{var g=x(a),m="",Q=B[r];"notDeepEqual"===r||"notEqual"===r?(g="".concat(B[r],"\n\n").concat(g)).length>1024&&(g="".concat(g.slice(0,1021),"...")):(m="".concat(x(s)),g.length>512&&(g="".concat(g.slice(0,509),"...")),
m.length>512&&(m="".concat(m.slice(0,509),"...")),"deepEqual"===r||"equal"===r?g="".concat(Q,"\n\n").concat(g,"\n\nshould equal\n\n"):m=" ".concat(r," ").concat(m)),e=h.call(this,"".concat(g).concat(m))}return Error.stackTraceLimit=l,e.generatedMessage=!i,Object.defineProperty(c(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=s,e.operator=r,Error.captureStackTrace&&Error.captureStackTrace(c(e),o),e.stack,e.name="AssertionError",A(e)}return a=d,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return m(this,o(o({},e),{},{customInspect:!1,depth:0}))}}])&&s(a.prototype,l),Object.defineProperty(a,"prototype",{writable:!1}),d}(h(Error),m.custom);t.exports=Q},5349:(t,e,i)=>{function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a,s,l={};function A(t,e,i){i||(i=Error);var a=function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}(l,i);var a,s=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,r=o(t);if(e){var a=o(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}(l);function l(i,n,r){var o,a,A,c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(o=s.call(this,(a=i,A=n,c=r,"string"==typeof e?e:e(a,A,c)))).code=t,o}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(i);l[t]=a}function c(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",(function(t,e,r){var o,s,l,A,h,d;if(void 0===a&&(a=i(6732)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,4)===s)?(o="must not be",e=e.replace(/^not /,"")):o="must be",A=t,h=" argument",(void 0===d||d>A.length)&&(d=A.length),A.substring(d-9,d)===h)l="The ".concat(t," ").concat(o," ").concat(c(e,"type"));else{var u=function(t,e,i){return"number"!=typeof i&&(i=0),!(i+1>t.length)&&-1!==t.indexOf(".",i)}(t)?"property":"argument";l='The "'.concat(t,'" ').concat(u," ").concat(o," ").concat(c(e,"type"))}return l+". Received type ".concat(n(r))}),TypeError),A("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=i(1344));var r=s.inspect(e);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(r)}),TypeError,RangeError),A("ERR_INVALID_RETURN_VALUE",(function(t,e,i){var r;return r=i&&i.constructor&&i.constructor.name?"instance of ".concat(i.constructor.name):"type ".concat(n(i)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(r,".")}),TypeError),A("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=i(6732)),a(e.length>0,"At least one arg needs to be specified");var r="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:r+="".concat(e[0]," argument");break;case 2:r+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:r+=e.slice(0,o-1).join(", "),r+=", and ".concat(e[o-1]," arguments")}return"".concat(r," must be specified")}),TypeError),t.exports.codes=l},1235:(t,e,i)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,A=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){A=!0,r=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(A)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},l=function(t){var e=[];return t.forEach((function(t,i){return e.push([i,t])})),e},A=Object.is?Object.is:i(9068),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:i(4954);function d(t){return t.call.bind(t)}var u=d(Object.prototype.hasOwnProperty),p=d(Object.prototype.propertyIsEnumerable),g=d(Object.prototype.toString),f=i(1344).types,m=f.isAnyArrayBuffer,y=f.isArrayBufferView,b=f.isDate,v=f.isMap,E=f.isRegExp,I=f.isSet,C=f.isNativeError,B=f.isBoxedPrimitive,w=f.isNumberObject,x=f.isStringObject,Q=f.isBooleanObject,S=f.isBigIntObject,k=f.isSymbolObject,D=f.isFloat32Array,_=f.isFloat64Array;function R(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var i=t.charCodeAt(e);if(i<48||i>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function M(t){return Object.keys(t).filter(R).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function T(t,e){if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0}function F(t,e,i,n){if(t===e)return 0!==t||!i||A(t,e);if(i){if("object"!==o(t))return"number"==typeof t&&h(t)&&h(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var r,s,l,c,d,u,p=g(t);if(p!==g(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var f=M(t),R=M(e);return f.length===R.length&&N(t,e,i,n,1,f)}if("[object Object]"===p&&(!v(t)&&v(e)||!I(t)&&I(e)))return!1;if(b(t)){if(!b(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(E(t)){if(!E(e)||(l=t,c=e,!(a?l.source===c.source&&l.flags===c.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(c))))return!1}else if(C(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1
}else{if(y(t)){if(i||!D(t)&&!_(t)){if(u=e,(d=t).byteLength!==u.byteLength||0!==T(new Uint8Array(d.buffer,d.byteOffset,d.byteLength),new Uint8Array(u.buffer,u.byteOffset,u.byteLength)))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var i=0;i<t.byteLength;i++)if(t[i]!==e[i])return!1;return!0}(t,e))return!1;var F=M(t),L=M(e);return F.length===L.length&&N(t,e,i,n,0,F)}if(I(t))return!(!I(e)||t.size!==e.size)&&N(t,e,i,n,2);if(v(t))return!(!v(e)||t.size!==e.size)&&N(t,e,i,n,3);if(m(t)){if(s=e,(r=t).byteLength!==s.byteLength||0!==T(new Uint8Array(r),new Uint8Array(s)))return!1}else if(B(t)&&!function(t,e){return w(t)?w(e)&&A(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):x(t)?x(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):Q(t)?Q(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):S(t)?S(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):k(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return N(t,e,i,n,0)}function L(t,e){return e.filter((function(e){return p(t,e)}))}function N(t,e,i,r,a,A){if(5===arguments.length){A=Object.keys(t);var h=Object.keys(e);if(A.length!==h.length)return!1}for(var d=0;d<A.length;d++)if(!u(e,A[d]))return!1;if(i&&5===arguments.length){var g=c(t);if(0!==g.length){var f=0;for(d=0;d<g.length;d++){var m=g[d];if(p(t,m)){if(!p(e,m))return!1;A.push(m),f++}else if(p(e,m))return!1}var y=c(e);if(g.length!==y.length&&L(e,y).length!==f)return!1}else{var b=c(e);if(0!==b.length&&0!==L(e,b).length)return!1}}if(0===A.length&&(0===a||1===a&&0===t.length||0===t.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(t);if(void 0!==v){var E=r.val2.get(e);if(void 0!==E)return v===E}r.position++}r.val1.set(t,r.position),r.val2.set(e,r.position);var I=function(t,e,i,r,a,A){var c=0;if(2===A){if(!function(t,e,i,n){for(var r=null,a=s(t),l=0;l<a.length;l++){var A=a[l];if("object"===o(A)&&null!==A)null===r&&(r=new Set),r.add(A);else if(!e.has(A)){if(i)return!1;if(!O(t,e,A))return!1;null===r&&(r=new Set),r.add(A)}}if(null!==r){for(var c=s(e),h=0;h<c.length;h++){var d=c[h];if("object"===o(d)&&null!==d){if(!P(r,d,i,n))return!1}else if(!i&&!t.has(d)&&!P(r,d,i,n))return!1}return 0===r.size}return!0}(t,e,i,a))return!1}else if(3===A){if(!function(t,e,i,r){for(var a=null,s=l(t),A=0;A<s.length;A++){var c=n(s[A],2),h=c[0],d=c[1];if("object"===o(h)&&null!==h)null===a&&(a=new Set),a.add(h);else{var u=e.get(h);if(void 0===u&&!e.has(h)||!F(d,u,i,r)){if(i)return!1;if(!G(t,e,h,d,r))return!1;null===a&&(a=new Set),a.add(h)}}}if(null!==a){for(var p=l(e),g=0;g<p.length;g++){var f=n(p[g],2),m=f[0],y=f[1];if("object"===o(m)&&null!==m){if(!H(a,t,m,y,i,r))return!1}else if(!(i||t.has(m)&&F(t.get(m),y,!1,r)||H(a,t,m,y,!1,r)))return!1}return 0===a.size}return!0}(t,e,i,a))return!1}else if(1===A)for(;c<t.length;c++){if(!u(t,c)){if(u(e,c))return!1;for(var h=Object.keys(t);c<h.length;c++){var d=h[c];if(!u(e,d)||!F(t[d],e[d],i,a))return!1}return h.length===Object.keys(e).length}if(!u(e,c)||!F(t[c],e[c],i,a))return!1}for(c=0;c<r.length;c++){var p=r[c];if(!F(t[p],e[p],i,a))return!1}return!0}(t,e,i,A,r,a);return r.val1.delete(t),r.val2.delete(e),I}function P(t,e,i,n){for(var r=s(t),o=0;o<r.length;o++){var a=r[o];if(F(e,a,i,n))return t.delete(a),!0}return!1}function U(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(h(t))return!1}return!0}function O(t,e,i){var n=U(i);return null!=n?n:e.has(n)&&!t.has(n)}function G(t,e,i,n,r){var o=U(i);if(null!=o)return o;var a=e.get(o);return!(void 0===a&&!e.has(o)||!F(n,a,!1,r))&&!t.has(o)&&F(n,a,!1,r)}function H(t,e,i,n,r,o){for(var a=s(t),l=0;l<a.length;l++){var A=a[l];if(F(i,A,r,o)&&F(n,e.get(A),r,o))return t.delete(A),!0}return!1}t.exports={isDeepEqual:function(t,e){return F(t,e,!1)},isDeepStrictEqual:function(t,e){return F(t,e,!0)}}},5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},3602:(t,e,i)=>{var n=i(9524),r=i(9764),o=i(4294),a=i(573);t.exports=a||n.call(o,r)},1091:(t,e,i)=>{var n=i(9524),r=i(9764),o=i(3602);t.exports=function(){return o(n,r,arguments)}},9764:t=>{t.exports=Function.prototype.apply},4294:t=>{t.exports=Function.prototype.call},88:(t,e,i)=>{var n=i(9524),r=i(1102),o=i(4294),a=i(3602);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new r("a function is required");return a(n,o,t)}},573:t=>{t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},1187:(t,e,i)=>{var n=i(3711),r=i(7695),o=r(n("String.prototype.indexOf"));t.exports=function(t,e){var i=n(t,!!e);return"function"==typeof i&&o(t,".prototype.")>-1?r(i):i}},7695:(t,e,i)=>{var n=i(7755),r=i(9886),o=i(88),a=i(1091);t.exports=function(t){var e=o(arguments),i=t.length-(arguments.length-1);return n(e,1+(i>0?i:0),!0)},r?r(t.exports,"apply",{value:a}):t.exports.apply=a},7412:(t,e,i)=>{var n=i(3711),r=i(88),o=r([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var i=n(t,!!e);return"function"==typeof i&&o(t,".prototype.")>-1?r([i]):i}},4399:(t,e,i)=>{var n=i(1344),r=i(6732);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a=void 0!==i.g&&i.g.console?i.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var A=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){l[t]=o()},"time"],[function(t){var e=l[t];if(!e)throw new Error("No such label: "+t);delete l[t];var i=o()-e;a.log(t+": "+i+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);r.ok(!1,n.format.apply(null,e))}},"assert"]],c=0;c<A.length;c++){var h=A[c],d=h[0],u=h[1];a[u]||(a[u]=d)}t.exports=a},1543:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-creator .bili-danmaku-x-guide-follow:hover {\n  background: #00a1d6;\n}\n.bili-danmaku-x-guide {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  background: rgba(33, 33, 33, 0.6);\n  border-radius: 8px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  font-size: 12px;\n  cursor: default;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  opacity: 0;\n  visibility: hidden;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  cursor: pointer;\n  pointer-events: auto;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-guide-follow {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  width: 66px;\n  height: 24px;\n  border-radius: 4px;\n  background: #00a1d6;\n  line-height: 1;\n}\n.bili-danmaku-x-guide-follow:before {\n  content: '';\n  position: absolute;\n  background: rgba(33, 33, 33, 0.6);\n  z-index: -1;\n  border-radius: 8px;\n  left: -6px;\n  top: -6px;\n  right: -6px;\n  bottom: -6px;\n}\n.bili-danmaku-x-guide-follow > span {\n  pointer-events: none;\n}\n.bili-danmaku-x-guide-follow-img {\n  width: 20px;\n  height: 20px;\n  overflow: hidden;\n  border-radius: 50%;\n  margin-right: 4px;\n}\n.bili-danmaku-x-guide-follow-img > img {\n  width: 100%;\n  height: 100%;\n}\n.bili-danmaku-x-guide-follow svg {\n  fill: #fff;\n  height: 12px;\n  width: 12px;\n  margin-right: 2px;\n}\n.bili-danmaku-x-guide-follow:hover {\n  background: #00b5e5;\n}\n.bili-danmaku-x-guide-follow .bili-danmaku-x-guide-follow-0 {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-guide-follow .bili-danmaku-x-guide-follow-1 {\n  display: none;\n}\n.bili-danmaku-x-guide-follow .bili-danmaku-x-guide-follow-1 .bili-danmaku-x-svg-icon {\n  fill: #fff;\n  width: 11px;\n  height: 11px;\n}\n.bili-danmaku-x-guide-follow.bili-danmaku-x-hasimg {\n  border: 1px solid transparent;\n  width: 75px !important;\n  padding: 2px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n.bili-danmaku-x-guide-follow.bili-danmaku-x-hasimg .bili-danmaku-x-guide-follow-1 {\n  margin-left: 6px;\n  width: 40px;\n  height: 10px;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow {\n  background: rgba(0, 0, 0, 0.2);\n  color: rgba(255, 255, 255, 0.6);\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow .bili-danmaku-x-guide-follow-0 {\n  display: none;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow .bili-danmaku-x-guide-follow-1 {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow.bili-danmaku-x-guide-canCancel {\n  background: rgba(0, 0, 0, 0.4) !important;\n  color: #fefefe;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow svg {\n  height: 12px;\n  width: 12px;\n  margin-right: 4px;\n}\n.bili-danmaku-x-guide-electric {\n  padding: 0 6px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  height: 24px;\n  min-width: 68px;\n  border-radius: 4px;\n  font-size: 12px;\n  line-height: 24px;\n  background: #00a1d6;\n  color: #fff;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n.bili-danmaku-x-guide-electric:hover {\n  background: #00b5e5;\n}\n.bili-danmaku-x-guide-electric:before {\n  content: '';\n  position: absolute;\n  background: rgba(33, 33, 33, 0.6);\n  z-index: -1;\n  border-radius: 8px;\n  left: -6px;\n  top: -6px;\n  right: -6px;\n  bottom: -6px;\n}\n.bili-danmaku-x-guide-electric-text {\n  height: 24px;\n  font-size: 12px;\n  line-height: 24px;\n  color: #fff;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n.bili-danmaku-x-guide-electric-icon {\n  height: 16px;\n  width: 16px;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  border-radius: 8px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-follow {\n  width: 66px;\n  height: 24px;\n  margin: 0 6px;\n  padding: 0;\n  font-size: 12px;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-follow:before {\n  content: none;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-follow-img {\n  width: 16px;\n  height: 16px;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-three,\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-animate,\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-three-animate {\n  background-color: transparent;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-electric {\n  margin: 0 10px;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-electric::before {\n  content: none;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-electric-guide {\n  padding-left: 10px;\n  min-width: 84px;\n  height: 38px;\n  font-size: 14px;\n  line-height: 38px;\n  color: #fff;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all .bili-danmaku-x-guide-electric-text {\n  white-space: nowrap;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-all.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow {\n  background: rgba(255, 255, 255, 0.2) !important;\n  color: #fefefe;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-follow-to-electric .bili-danmaku-x-guide-electric {\n  display: none;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-follow-to-electric.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-electric {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-follow-to-electric.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow {\n  display: none;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-no-three .bili-danmaku-x-guide-electric,\n.bili-danmaku-x-guide.bili-danmaku-x-no-three .bili-danmaku-x-guide-three,\n.bili-danmaku-x-guide.bili-danmaku-x-no-three .bili-danmaku-x-guide-animate,\n.bili-danmaku-x-guide.bili-danmaku-x-no-three .bili-danmaku-x-guide-cyc {\n  display: none;\n}\n.bili-danmaku-x-guide .bili-danmaku-x-guide-cyc > span {\n  width: 80px;\n  height: 80px;\n  top: -22px;\n}\n.bili-danmaku-x-guide .bili-danmaku-x-guide-cyc > span.bili-danmaku-x-guide-cyc-like {\n  left: -15px;\n}\n.bili-danmaku-x-guide .bili-danmaku-x-guide-cyc > span.bili-danmaku-x-guide-cyc-coin {\n  left: 31px;\n}\n.bili-danmaku-x-guide .bili-danmaku-x-guide-cyc > span.bili-danmaku-x-guide-cyc-collect {\n  left: 76px;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-hide .bili-danmaku-x-guide-three {\n  opacity: 0;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-hide .bili-danmaku-x-guide-animate,\n.bili-danmaku-x-guide.bili-danmaku-x-guide-hide .bili-danmaku-x-guide-cyc {\n  opacity: 1;\n}\n.bili-danmaku-x-guide.bili-danmaku-x-guide-gray.bili-danmaku-x-guide-followed .bili-danmaku-x-guide-follow {\n  opacity: 0.6;\n}\n.bili-danmaku-x-guide-three,\n.bili-danmaku-x-guide-animate,\n.bili-danmaku-x-guide-cyc {\n  width: 142px;\n  padding: 0 3px;\n  font-size: 0;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  border-radius: 8px;\n}\n.bili-danmaku-x-guide-three {\n  opacity: 1;\n}\n.bili-danmaku-x-guide-three > span {\n  display: inline-block;\n  padding: 8px 12.5px;\n  width: 20px;\n  height: 20px;\n}\n.bili-danmaku-x-guide-three > span svg {\n  fill: #fff;\n}\n.bili-danmaku-x-guide-three > span.bili-danmaku-x-active svg {\n  fill: #00a1d6;\n  overflow: visible;\n}\n.bili-danmaku-x-guide-three > span.bili-danmaku-x-active.bili-danmaku-x-guide-three-coin,\n.bili-danmaku-x-guide-three > span.bili-danmaku-x-active.bili-danmaku-x-guide-three-collect {\n  pointer-events: none;\n}\n.bili-danmaku-x-guide-three > span:hover {\n  opacity: 0.8;\n}\n.bili-danmaku-x-guide-three svg {\n  pointer-events: none;\n}\n.bili-danmaku-x-guide-animate {\n  width: 100%;\n  height: 100%;\n  border: 1px solid transparent;\n  background: rgba(33, 33, 33, 0.6);\n}\n.bili-danmaku-x-guide-animate,\n.bili-danmaku-x-guide-cyc {\n  position: absolute;\n  top: 0;\n  left: 0;\n  pointer-events: none;\n  opacity: 0;\n}\n.bili-danmaku-x-guide-animate > span,\n.bili-danmaku-x-guide-cyc > span {\n  position: absolute;\n  display: inline-block;\n  width: 100px;\n  height: 100px;\n  padding: 0;\n  top: -33px;\n}\n.bili-danmaku-x-guide-animate > span.bili-danmaku-x-animate-like {\n  left: -24px;\n}\n.bili-danmaku-x-guide-animate > span.bili-danmaku-x-animate-coin {\n  left: 20px;\n}\n.bili-danmaku-x-guide-animate > span.bili-danmaku-x-animate-collect {\n  left: 66px;\n}\n.bili-danmaku-x-guide-animate > span.bili-danmaku-x-animate-bg {\n  position: absolute;\n  top: -10px;\n  left: -14px;\n  width: 172px;\n  height: 62px;\n  padding: 0;\n  pointer-events: none;\n}\n.bili-danmaku-x-guide-init-three > span {\n  opacity: 0.7;\n}\n.bili-danmaku-x-guide.video-mirror .bili-danmaku-x-guide-inner {\n  -webkit-transform: rotateY(180deg);\n          transform: rotateY(180deg);\n}\n",""])
;const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},22:(t,e,i)=>{var n=i(9886),r=i(3429),o=i(1102),a=i(5667);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(n)n(t,e,{configurable:null===A&&h?h.configurable:!A,enumerable:null===s&&h?h.enumerable:!s,value:i,writable:null===l&&h?h.writable:!l});else{if(!c&&(s||l||A))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=i}}},4938:(t,e,i)=>{var n=i(5187),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=i(22),l=i(491)(),A=function(t,e,i,n){if(e in t)if(!0===n){if(t[e]===i)return}else if("function"!=typeof(r=n)||"[object Function]"!==o.call(r)||!n())return;var r;l?s(t,e,i,!0):s(t,e,i)},c=function(t,e){var i=arguments.length>2?arguments[2]:{},o=n(e);r&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)A(t,o[s],e[o[s]],i[o[s]])};c.supportsDescriptors=!!l,t.exports=c},7678:(t,e,i)=>{var n,r=i(88),o=i(5667);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof l&&function(t){return l(null==t?t:s(t))}},9886:t=>{var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},8004:t=>{t.exports=EvalError},1488:t=>{t.exports=Error},6469:t=>{t.exports=RangeError},2557:t=>{t.exports=ReferenceError},3429:t=>{t.exports=SyntaxError},1102:t=>{t.exports=TypeError},5966:t=>{t.exports=URIError},6365:t=>{t.exports=Object},4086:(t,e,i)=>{var n=i(2956),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){if(!n(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=i),"[object Array]"===r.call(t)?function(t,e,i){for(var n=0,r=t.length;n<r;n++)o.call(t,n)&&(null==i?e(t[n],n,t):e.call(i,t[n],n,t))}(t,e,a):"string"==typeof t?function(t,e,i){for(var n=0,r=t.length;n<r;n++)null==i?e(t.charAt(n),n,t):e.call(i,t.charAt(n),n,t)}(t,e,a):function(t,e,i){for(var n in t)o.call(t,n)&&(null==i?e(t[n],n,t):e.call(i,t[n],n,t))}(t,e,a)}},9992:t=>{var e=Object.prototype.toString,i=Math.max,n=function(t,e){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var r=0;r<e.length;r+=1)i[r+t.length]=e[r];return i};t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,a=function(t){for(var e=[],i=1,n=0;i<t.length;i+=1,n+=1)e[n]=t[i];return e}(arguments),s=i(0,r.length-a.length),l=[],A=0;A<s;A++)l[A]="$"+A;if(o=Function("binder","return function ("+function(t){for(var e="",i=0;i<t.length;i+=1)e+=t[i],i+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=r.apply(this,n(a,arguments));return Object(e)===e?e:this}return r.apply(t,n(a,arguments))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},9524:(t,e,i)=>{var n=i(9992);t.exports=Function.prototype.bind||n},3711:(t,e,i)=>{var n,r=i(6365),o=i(1488),a=i(8004),s=i(6469),l=i(2557),A=i(3429),c=i(1102),h=i(5966),d=i(1009),u=i(1219),p=i(2659),g=i(7905),f=i(6219),m=Function,y=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},b=i(5667),v=i(9886),E=function(){throw new c},I=b?function(){try{return E}catch(t){try{return b(arguments,"callee").get}catch(t){return E}}}():E,C=i(1514)(),B=i(7678),w="function"==typeof Reflect&&Reflect.getPrototypeOf||r.getPrototypeOf||B,x=i(9764),Q=i(4294),S={},k="undefined"!=typeof Uint8Array&&w?w(Uint8Array):n,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&w?w([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&w?w(w([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&w?w((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&w?w((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&w?w(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":A,"%ThrowTypeError%":I,"%TypedArray%":k,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,
"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":x,"%Object.defineProperty%":v,"%Math.abs%":d,"%Math.floor%":u,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":f};if(w)try{null.error}catch(t){var _=w(w(t));D["%Error.prototype%"]=_}var R=function t(e){var i;if("%AsyncFunction%"===e)i=y("async function () {}");else if("%GeneratorFunction%"===e)i=y("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=y("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&w&&(i=w(r.prototype))}return D[e]=i,i},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=i(9524),F=i(5630),L=T.call(Q,Array.prototype.concat),N=T.call(x,Array.prototype.splice),P=T.call(Q,String.prototype.replace),U=T.call(Q,String.prototype.slice),O=T.call(Q,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(t,e){var i,n=t;if(F(M,n)&&(n="%"+(i=M[n])[0]+"%"),F(D,n)){var r=D[n];if(r===S&&(r=R(n)),void 0===r&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:r}}throw new A("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,t))throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(t){var e=U(t,0,1),i=U(t,-1);if("%"===e&&"%"!==i)throw new A("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new A("invalid intrinsic syntax, expected opening `%`");var n=[];return P(t,G,(function(t,e,i,r){n[n.length]=i?P(r,H,"$1"):e||t})),n}(t),n=i.length>0?i[0]:"",r=V("%"+n+"%",e),o=r.name,a=r.value,s=!1,l=r.alias;l&&(n=l[0],N(i,L([0,1],l)));for(var h=1,d=!0;h<i.length;h+=1){var u=i[h],p=U(u,0,1),g=U(u,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new A("property names with quotes must have matching quotes");if("constructor"!==u&&d||(s=!0),F(D,o="%"+(n+="."+u)+"%"))a=D[o];else if(null!=a){if(!(u in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(b&&h+1>=i.length){var f=b(a,u);a=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[u]}else d=F(a,u),a=a[u];d&&!s&&(D[o]=a)}}return a}},1333:t=>{t.exports=Object.getOwnPropertyDescriptor},5667:(t,e,i)=>{var n=i(1333);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},491:(t,e,i)=>{var n=i(9886),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},1514:(t,e,i)=>{var n="undefined"!=typeof Symbol&&Symbol,r=i(9712);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},9712:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7185:(t,e,i)=>{var n=i(9712);t.exports=function(){return n()&&!!Symbol.toStringTag}},5630:(t,e,i)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=i(9524);t.exports=o.call(n,r)},1193:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},6531:(t,e,i)=>{var n=i(7185)(),r=i(7412)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===r(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==r(t)&&"callee"in t&&"[object Function]"===r(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},2956:t=>{var e,i,n=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw i}}),i={},r((function(){throw 42}),null,e)}catch(t){t!==i&&(r=null)}else r=null;var o=/^\s*class\b/,a=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,A="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t)
;return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=r?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{r(t,null,e)}catch(t){if(t!==i)return!1}return!a(t)&&s(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(A)return s(t);if(a(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3034:(t,e,i)=>{var n,r=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=i(7185)(),l=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(o.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===r.call(t);if(!l)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&l(e)}return l(t)===n}},4770:t=>{t.exports=function(t){return t!=t}},4954:(t,e,i)=>{var n=i(7695),r=i(4938),o=i(4770),a=i(2219),s=i(4445),l=n(a(),Number);r(l,{getPolyfill:a,implementation:o,shim:s}),t.exports=l},2219:(t,e,i)=>{var n=i(4770);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},4445:(t,e,i)=>{var n=i(4938),r=i(2219);t.exports=function(){var t=r();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},6:(t,e,i)=>{var n=i(9033);t.exports=function(t){return!!n(t)}},2067:function(t,e,i){var n=i(4399);"undefined"!=typeof navigator&&(t.exports=function(){var t="",r=!1,o=-999999,a=function(){return t};function s(t){return document.createElement(t)}function l(t,e){var i,n,r=t.length;for(i=0;i<r;i+=1)for(var o in n=t[i].prototype)Object.prototype.hasOwnProperty.call(n,o)&&(e.prototype[o]=n[o])}var A=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),c=function(){function t(t,e){var i,n=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<e;n+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function h(t){return Array.apply(null,{length:t})}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u=!0,p=null,g="",f=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),m=Math.pow,y=Math.sqrt,b=Math.floor,v=(Math.max,Math.min),E={};(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)E[e[t]]=Math[e[t]]})(),E.random=Math.random,E.abs=function(t){if("object"===d(t)&&t.length){var e,i=h(t.length),n=t.length;for(e=0;e<n;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var I=150,C=Math.PI/180,B=.5519;function w(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function x(t,e){this.type=t,this.direction=e<0?-1:1}function Q(t,e,i,n){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=n<0?-1:1}function S(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function k(t,e){this.type=t,this.target=e}function D(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function _(t){this.type="configError",this.nativeError=t}var R,M=(R=0,function(){return g+"__lottie_element_"+(R+=1)});function T(t,e,i){var n,r,o,a,s,l,A,c;switch(l=i*(1-e),A=i*(1-(s=6*t-(a=Math.floor(6*t)))*e),c=i*(1-(1-s)*e),a%6){case 0:n=i,r=c,o=l;break;case 1:n=A,r=i,o=l;break;case 2:n=l,r=i,o=c;break;case 3:n=l,r=A,o=i;break;case 4:n=c,r=l,o=i;break;case 5:n=i,r=l,o=A}return[n,r,o]}function F(t,e,i){var n,r=Math.max(t,e,i),o=Math.min(t,e,i),a=r-o,s=0===r?0:a/r,l=r/255;switch(r){case o:n=0;break;case t:n=e-i+a*(e<i?6:0),n/=6*a;break;case e:n=i-t+2*a,n/=6*a;break;case i:n=t-e+4*a,n/=6*a}return[n,s,l]}function L(t,e){var i=F(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),T(i[0],i[1],i[2])}function N(t,e){var i=F(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),T(i[0],i[1],i[2])}function P(t,e){var i=F(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),T(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var U=function(){return p},O=function(t){I=t},G=function(){return I};function H(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Y=function(){var t,e,i=1,n=[],o={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){o.onmessage({data:t})}};function s(e){if(window.Worker&&window.Blob&&r){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,o}function l(){e||((e=s((function(t){if(a.dataManager||(a.dataManager=function(){function t(r,o){var a,s,l,A,c,h,d,u=r.length;for(s=0;s<u;s+=1)if("ks"in(a=r[s])&&!a.completed){if(a.completed=!0,a.hasMask){var p=a.masksProperties;for(A=p.length,l=0;l<A;l+=1)if(p[l].pt.k.i)n(p[l].pt.k);else for(h=p[l].pt.k.length,c=0;c<h;c+=1)p[l].pt.k[c].s&&n(p[l].pt.k[c].s[0]),p[l].pt.k[c].e&&n(p[l].pt.k[c].e[0])}0===a.ty?(a.layers=e(a.refId,o),t(a.layers,o)):4===a.ty?i(a.shapes):5===a.ty&&(0===(d=a).t.a.length&&d.t.p)}}function e(t,e){var i=function(t,e){for(var i=0,n=e.length;i<n;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,r,o;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(o=t[e].ks.k.length,r=0;r<o;r+=1)t[e].ks.k[r].s&&n(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&n(t[e].ks.k[r].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function n(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var o,a=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),s=(o=[4,7,99],function(t){if(t.chars&&!r(o,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var a=t.chars[e]
;a.data&&a.data.shapes&&(i(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),A=function(){var t=[4,1,9];function e(t){var i,n,r,o=t.length;for(i=0;i<o;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,n=0;n<r;n+=1)t[i].c.k[n].s&&(t[i].c.k[n].s[0]/=255,t[i].c.k[n].s[1]/=255,t[i].c.k[n].s[2]/=255,t[i].c.k[n].s[3]/=255),t[i].c.k[n].e&&(t[i].c.k[n].e[0]/=255,t[i].c.k[n].e[1]/=255,t[i].c.k[n].e[2]/=255,t[i].c.k[n].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,n,r;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n<r;n+=1)t[i].ks.k[n].s&&(t[i].ks.k[n].s[0].c=t[i].closed),t[i].ks.k[n].e&&(t[i].ks.k[n].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,n,r,o,a,s,l=t.length;for(n=0;n<l;n+=1){if((i=t[n]).hasMask){var A=i.masksProperties;for(o=A.length,r=0;r<o;r+=1)if(A[r].pt.k.i)A[r].pt.k.c=A[r].cl;else for(s=A[r].pt.k.length,a=0;a<s;a+=1)A[r].pt.k[a].s&&(A[r].pt.k[a].s[0].c=A[r].cl),A[r].pt.k[a].e&&(A[r].pt.k[a].e[0].c=A[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),h={completeData:function(i){i.__complete||(A(i),a(i),s(i),l(i),c(i),t(i.layers,i.assets),function(i,n){if(i){var r=0,o=i.length;for(r=0;r<o;r+=1)1===i[r].t&&(i[r].data.layers=e(i[r].data.refId,n),t(i[r].data.layers,n))}}(i.chars,i.assets),i.__complete=!0)}};return h.checkColors=A,h.checkChars=s,h.checkPathProperties=l,h.checkShapes=c,h.completeLayers=t,h}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===V(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,n,r){var o,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)o=t(a),n(o);else try{o=t(a),n(o)}catch(t){r&&r(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,i=e.id,r=n[i];n[i]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function A(t,e){var r="processId_"+(i+=1);return n[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,n){l();var r=A(i,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,n){l();var r=A(i,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,n){l();var r=A(i,n);e.postMessage({type:"complete",animation:t,id:r})}}}(),z=function(){var t=function(){var t=s("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,i){var n="";if(t.e)n=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),n=e+r}else n=i,n+=t.u?t.u:"",n+=t.p;return n}function r(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function o(t){var e={assetData:t},i=n(t,this.assetsPath,this.path);return Y.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var n=t.length;for(i=0;i<n;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=n(e,this.assetsPath,this.path),r=s("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),r.src=i;var o={img:r,assetData:e};return o},createImageData:function(e){var i=n(e,this.assetsPath,this.path),r=H("image");f?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var o={img:r,assetData:e};return o},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function W(){}W.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],n=0;n<i.length;n+=1)i[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Z=function(){function t(t){for(var e,i=t.split("\r\n"),n={},r=0,o=0;o<i.length;o+=1)2===(e=i[o].split(":")).length&&(n[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return n}return function(e){for(var i=[],n=0;n<e.length;n+=1){var r=e[n],o={time:r.tm,duration:r.dr};try{o.payload=JSON.parse(e[n].cm)}catch(i){try{
o.payload=t(e[n].cm)}catch(t){o.payload={name:e[n].cm}}}i.push(o)}return i}}(),j=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),q={};function J(t){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var K=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=M(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=u,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=j(),this.imagePreloader=new z,this.audioController=A(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new w("drawnFrame",0,0,0),this.expressionsPlugin=U()};l([W],K),K.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=function(t){return q[t]}(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Y.loadAnimation(t.path,this.configAnimation,this.onSetupError))},K.prototype.onSetupError=function(){this.trigger("data_failed")},K.prototype.setupAnimation=function(t){Y.completeAnimation(t,this.configAnimation)},K.prototype.setData=function(t,e){e&&"object"!==J(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:function(){if(q.canvas)return"canvas";for(var t in q)if(q[t])return t;return""}()||"canvas";var r=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;i.autoplay="false"!==o,i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},K.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,o=t.layers,a=o.length;for(i=0;i<a;i+=1)for(e=0;e<r;){if(n[e].id===o[i].id){n[e]=o[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,Y.completeAnimation(this.animationData,this.onSegmentComplete)},K.prototype.onSegmentComplete=function(t){this.animationData=t;var e=U();e&&e.initExpressions(this),this.loadNextSegment()},K.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Y.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},K.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},K.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},K.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},K.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Z(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},K.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},K.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=U();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},K.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,n)},K.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},K.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,
this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},K.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},K.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},K.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},K.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},K.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},K.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},K.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},K.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(n,e,i);this.play()}},K.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},K.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},K.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},K.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===J(t[0])){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},K.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},K.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},K.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},K.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},K.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},K.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},K.prototype.setLoop=function(t){this.loop=t},K.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},K.prototype.getVolume=function(){return this.audioController.getVolume()},K.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},K.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},K.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},K.prototype.getPath=function(){return this.path},K.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},K.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},K.prototype.hide=function(){this.renderer.hide()},K.prototype.show=function(){this.renderer.show()},K.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},K.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},K.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new w(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new Q(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new x(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new S(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new k(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new w(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new Q(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new x(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new S(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new k(t,this))},K.prototype.triggerRenderFrameError=function(t){var e=new D(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},K.prototype.triggerConfigError=function(t){var e=new _(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var X=function(){var t={},e=[],i=0,n=0,r=0,o=!0,a=!1;function l(t){for(var i=0,r=t.target;i<n;)e[i].animation===r&&(e.splice(i,1),i-=1,n-=1,r.isPaused||h()),i+=1}function A(t,i){if(!t)return null;for(var r=0;r<n;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var o=new K;return d(o,t),o.setData(t,i),o}function c(){r+=1,g()}function h(){r-=1}function d(t,i){t.addEventListener("destroy",l),t.addEventListener("_active",c),t.addEventListener("_idle",h),e.push({elem:i,animation:t}),n+=1}function u(t){var s,l=t-i;for(s=0;s<n;s+=1)e[s].animation.advanceTime(l);i=t,r&&!a?window.requestAnimationFrame(u):o=!0}function p(t){i=t,window.requestAnimationFrame(u)}function g(){!a&&r&&o&&(window.requestAnimationFrame(p),o=!1)}return t.registerAnimation=A,t.loadAnimation=function(t){var e=new K;return d(e,null),e.setParams(t),e},
t.setSpeed=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setSpeed(t,i)},t.setDirection=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=r.length;for(n=0;n<o;n+=1)i&&r[n].setAttribute("data-bm-type",i),A(r[n],t);if(e&&0===o){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var l=s("div");l.style.width="100%",l.style.height="100%",l.setAttribute("data-bm-type",i),a.appendChild(l),A(l,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,r){var o;for(o=0;o<n;o+=1)e[o].animation.goToAndStop(t,i,r)},t.destroy=function(t){var i;for(i=n-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,g()},t.setVolume=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,n=[];for(t=0;t<i;t+=1)n.push(e[t].animation);return n},t}(),$=function(){var t={getBezierEasing:function(t,i,n,r,o){var a=o||("bez_"+t+"_"+i+"_"+n+"_"+r).replace(/\./g,"p");if(e[a])return e[a];var s=new c([t,i,n,r]);return e[a]=s,s}},e={};var i=11,n=1/(i-1),r="function"==typeof Float32Array;function o(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function s(t){return 3*t}function l(t,e,i){return((o(e,i)*t+a(e,i))*t+s(e))*t}function A(t,e,i){return 3*o(e,i)*t*t+2*a(e,i)*t+s(e)}function c(t){this._p=t,this._mSampleValues=r?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&n===r?t:0===t?0:1===t?1:l(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],r=0;r<i;++r)this._mSampleValues[r]=l(r*n,t,e)},_getTForX:function(t){for(var e=this._p[0],r=this._p[2],o=this._mSampleValues,a=0,s=1,c=i-1;s!==c&&o[s]<=t;++s)a+=n;var h=a+(t-o[--s])/(o[s+1]-o[s])*n,d=A(h,e,r);return d>=.001?function(t,e,i,n){for(var r=0;r<4;++r){var o=A(e,i,n);if(0===o)return e;e-=(l(e,i,n)-t)/o}return e}(t,h,e,r):0===d?h:function(t,e,i,n,r){var o,a,s=0;do{(o=l(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,a,a+n,e,r)}},t}(),tt={double:function(t){return t.concat(h(t.length))}},et=function(t,e,i){var n=0,r=t,o=h(r);return{newElement:function(){return n?o[n-=1]:e()},release:function(t){n===r&&(o=tt.double(o),r*=2),i&&i(t),o[n]=t,n+=1}}},it=et(8,(function(){return{addedLength:0,percents:c("float32",G()),lengths:c("float32",G())}})),nt=et(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)it.release(t.lengths[e]);t.lengths.length=0}));var rt=function(){var t=Math;function e(t,e,i,n,r,o){var a=t*n+e*r+i*o-r*n-o*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,n){var r,o,a,s,l,A,c=G(),h=0,d=[],u=[],p=it.newElement();for(a=i.length,r=0;r<c;r+=1){for(l=r/(c-1),A=0,o=0;o<a;o+=1)s=m(1-l,3)*t[o]+3*m(1-l,2)*l*i[o]+3*(1-l)*m(l,2)*n[o]+m(l,3)*e[o],d[o]=s,null!==u[o]&&(A+=m(d[o]-u[o],2)),u[o]=d[o];A&&(h+=A=y(A)),p.percents[r]=l,p.lengths[r]=h}return p.addedLength=h,p};function n(t){this.segmentLength=0,this.points=new Array(t)}function r(t,e){this.partialLength=t,this.point=e}var o,a=(o={},function(t,i,a,s){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!o[l]){var A,c,d,u,p,g,f,b=G(),v=0,E=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+s[0],i[1]+s[1])&&(b=2);var I=new n(b);for(d=a.length,A=0;A<b;A+=1){for(f=h(d),p=A/(b-1),g=0,c=0;c<d;c+=1)u=m(1-p,3)*t[c]+3*m(1-p,2)*p*(t[c]+a[c])+3*(1-p)*m(p,2)*(i[c]+s[c])+m(p,3)*i[c],f[c]=u,null!==E&&(g+=m(f[c]-E[c],2));v+=g=y(g),I.points[A]=new r(g,f),E=f}I.segmentLength=v,o[l]=I}return o[l]});function s(t,e){var i=e.percents,n=e.lengths,r=i.length,o=b((r-1)*t),a=t*e.addedLength,s=0;if(o===r-1||0===o||a===n[o])return i[o];for(var l=n[o]>a?-1:1,A=!0;A;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),A=!1):o+=l,o<0||o>=r-1){if(o===r-1)return i[o];A=!1}return i[o]+(i[o+1]-i[o])*s}var l=c("float32",8);return{getSegmentsLength:function(t){var e,n=nt.newElement(),r=t.c,o=t.v,a=t.o,s=t.i,l=t._length,A=n.lengths,c=0;for(e=0;e<l-1;e+=1)A[e]=i(o[e],o[e+1],a[e],s[e+1]),c+=A[e].addedLength;return r&&l&&(A[e]=i(o[e],o[0],a[e],s[0]),c+=A[e].addedLength),n.totalLength=c,n},getNewSegment:function(e,i,n,r,o,a,A){o<0?o=0:o>1&&(o=1);var c,h=s(o,A),d=s(a=a>1?1:a,A),u=e.length,p=1-h,g=1-d,f=p*p*p,m=h*p*p*3,y=h*h*p*3,b=h*h*h,v=p*p*g,E=h*p*g+p*h*g+p*p*d,I=h*h*g+p*h*d+h*p*d,C=h*h*d,B=p*g*g,w=h*g*g+p*d*g+p*g*d,x=h*d*g+p*d*d+h*g*d,Q=h*d*d,S=g*g*g,k=d*g*g+g*d*g+g*g*d,D=d*d*g+g*d*d+d*g*d,_=d*d*d;for(c=0;c<u;c+=1)l[4*c]=t.round(1e3*(f*e[c]+m*n[c]+y*r[c]+b*i[c]))/1e3,l[4*c+1]=t.round(1e3*(v*e[c]+E*n[c]+I*r[c]+C*i[c]))/1e3,l[4*c+2]=t.round(1e3*(B*e[c]+w*n[c]+x*r[c]+Q*i[c]))/1e3,l[4*c+3]=t.round(1e3*(S*e[c]+k*n[c]+D*r[c]+_*i[c]))/1e3;return l},getPointInSegment:function(e,i,n,r,o,a){var l=s(o,a),A=1-l;return[t.round(1e3*(A*A*A*e[0]+(l*A*A+A*l*A+A*A*l)*n[0]+(l*l*A+A*l*l+l*A*l)*r[0]+l*l*l*i[0]))/1e3,t.round(1e3*(A*A*A*e[1]+(l*A*A+A*l*A+A*A*l)*n[1]+(l*l*A+A*l*l+l*A*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,n,r,o,a,s,l,A,c){if(0===r&&0===s&&0===c)return e(i,n,o,a,l,A);var h,d=t.sqrt(t.pow(o-i,2)+t.pow(a-n,2)+t.pow(s-r,2)),u=t.sqrt(t.pow(l-i,2)+t.pow(A-n,2)+t.pow(c-r,2)),p=t.sqrt(t.pow(l-o,2)+t.pow(A-a,2)+t.pow(c-s,2));return(h=d>u?d>p?d-u-p:p-u-d:p>u?p-u-d:u-d-p)>-1e-4&&h<1e-4}}}(),ot=o,at=Math.abs;function st(t,e){var i,n=this.offsetTime;"multidimensional"===this.propType&&(i=c("float32",this.pv.length));for(var r,o,a,s,l,A,h,d,u,p=e.lastIndex,g=p,f=this.keyframes.length-1,m=!0;m;){if(r=this.keyframes[g],o=this.keyframes[g+1],g===f-1&&t>=o.t-n){r.h&&(r=o),p=0;break}if(o.t-n>t){p=g;break}g<f-1?g+=1:(p=0,m=!1)}a=this.keyframesMetadata[g]||{};var y,b=o.t-n,v=r.t-n;if(r.to){a.bezierData||(a.bezierData=rt.buildBezierData(r.s,o.s||r.e,r.to,r.ti));var E=a.bezierData;if(t>=b||t<v){var I=t>=b?E.points.length-1:0;for(l=E.points[I].point.length,s=0;s<l;s+=1)i[s]=E.points[I].point[s]}else{a.__fnct?u=a.__fnct:(u=$.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,a.__fnct=u),A=u((t-v)/(b-v));var B,w=E.segmentLength*A,x=e.lastFrame<t&&e._lastKeyframeIndex===g?e._lastAddedLength:0;for(d=e.lastFrame<t&&e._lastKeyframeIndex===g?e._lastPoint:0,m=!0,h=E.points.length;m;){if(x+=E.points[d].partialLength,0===w||0===A||d===E.points.length-1){for(l=E.points[d].point.length,s=0;s<l;s+=1)i[s]=E.points[d].point[s];break}if(w>=x&&w<x+E.points[d+1].partialLength){for(B=(w-x)/E.points[d+1].partialLength,l=E.points[d].point.length,s=0;s<l;s+=1)i[s]=E.points[d].point[s]+(E.points[d+1].point[s]-E.points[d].point[s])*B;break}d<h-1?d+=1:m=!1}e._lastPoint=d,e._lastAddedLength=x-E.points[d].partialLength,e._lastKeyframeIndex=g}}else{var Q,S,k,D,_;if(f=r.s.length,y=o.s||r.e,this.sh&&1!==r.h)t>=b?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=v?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):function(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=Math.atan2(2*n*o-2*i*r,1-2*n*n-2*r*r),s=Math.asin(2*i*n+2*r*o),l=Math.atan2(2*i*o-2*n*r,1-2*i*i-2*r*r);t[0]=a/C,t[1]=s/C,t[2]=l/C}(i,function(t,e,i){var n,r,o,a,s,l=[],A=t[0],c=t[1],h=t[2],d=t[3],u=e[0],p=e[1],g=e[2],f=e[3];return(r=A*u+c*p+h*g+d*f)<0&&(r=-r,u=-u,p=-p,g=-g,f=-f),1-r>1e-6?(n=Math.acos(r),o=Math.sin(n),a=Math.sin((1-i)*n)/o,s=Math.sin(i*n)/o):(a=1-i,s=i),l[0]=a*A+s*u,l[1]=a*c+s*p,
l[2]=a*h+s*g,l[3]=a*d+s*f,l}(lt(r.s),lt(y),(t-v)/(b-v)));else for(g=0;g<f;g+=1)1!==r.h&&(t>=b?A=1:t<v?A=0:(r.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[g]?u=a.__fnct[g]:(Q=void 0===r.o.x[g]?r.o.x[0]:r.o.x[g],S=void 0===r.o.y[g]?r.o.y[0]:r.o.y[g],k=void 0===r.i.x[g]?r.i.x[0]:r.i.x[g],D=void 0===r.i.y[g]?r.i.y[0]:r.i.y[g],u=$.getBezierEasing(Q,S,k,D).get,a.__fnct[g]=u)):a.__fnct?u=a.__fnct:(Q=r.o.x,S=r.o.y,k=r.i.x,D=r.i.y,u=$.getBezierEasing(Q,S,k,D).get,r.keyframeMetadata=u),A=u((t-v)/(b-v)))),y=o.s||r.e,_=1===r.h?r.s[g]:r.s[g]+(y[g]-r.s[g])*A,"multidimensional"===this.propType?i[g]=_:i=_}return e.lastIndex=p,i}function lt(t){var e=t[0]*C,i=t[1]*C,n=t[2]*C,r=Math.cos(e/2),o=Math.cos(i/2),a=Math.cos(n/2),s=Math.sin(e/2),l=Math.sin(i/2),A=Math.sin(n/2);return[s*l*a+r*o*A,s*o*a+r*l*A,r*l*a-s*o*A,r*o*a-s*l*A]}function At(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==ot&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function ct(t){var e;if("unidimensional"===this.propType)e=t*this.mult,at(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)e=t[i]*this.mult,at(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function ht(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function dt(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ut(t,e,i,n){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=ht,this.setVValue=ct,this.addEffect=dt}function pt(t,e,i,n){var r;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=e.k.length;for(this.v=c("float32",o),this.pv=c("float32",o),this.vel=c("float32",o),r=0;r<o;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=ht,this.setVValue=ct,this.addEffect=dt}function gt(t,e,i,n){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:ot,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=ot,this.pv=ot,this._isFirstFrame=!0,this.getValue=ht,this.setVValue=ct,this.interpolateValue=st,this.effectsSequence=[At.bind(this)],this.addEffect=dt}function ft(t,e,i,n){var r;this.propType="multidimensional";var o,a,s,l,A=e.k.length;for(r=0;r<A-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(o=e.k[r].s,a=e.k[r+1].s,s=e.k[r].to,l=e.k[r].ti,(2===o.length&&(o[0]!==a[0]||o[1]!==a[1])&&rt.pointOnLine2D(o[0],o[1],a[0],a[1],o[0]+s[0],o[1]+s[1])&&rt.pointOnLine2D(o[0],o[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===o.length&&(o[0]!==a[0]||o[1]!==a[1]||o[2]!==a[2])&&rt.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],o[0]+s[0],o[1]+s[1],o[2]+s[2])&&rt.pointOnLine3D(o[0],o[1],o[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(e.k[r].to=null,e.k[r].ti=null),o[0]===a[0]&&o[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===o.length||o[2]===a[2]&&0===s[2]&&0===l[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[At.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=ht,this.setVValue=ct,this.interpolateValue=st,this.frameId=-1;var h=e.k[0].s.length;for(this.v=c("float32",h),this.pv=c("float32",h),r=0;r<h;r+=1)this.v[r]=ot,this.pv[r]=ot;this._caching={lastFrame:ot,lastIndex:0,value:c("float32",h)},this.addEffect=dt}var mt={getProp:function(t,e,i,n,r){var o;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])o=new pt(t,e,n,r);else switch(i){case 0:o=new gt(t,e,n,r);break;case 1:o=new ft(t,e,n,r)}else o=new ut(t,e,n,r);return o.effectsSequence.length&&r.addDynamicProperty(o),o}};function yt(){}yt.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var bt=et(8,(function(){return c("float32",2)}));function vt(){this.c=!1,this._length=0,this._maxLength=8,this.v=h(this._maxLength),this.o=h(this._maxLength),this.i=h(this._maxLength)}vt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=bt.newElement(),this.o[i]=bt.newElement(),this.i[i]=bt.newElement(),i+=1},vt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},vt.prototype.doubleArrayLength=function(){this.v=this.v.concat(h(this._maxLength)),this.i=this.i.concat(h(this._maxLength)),this.o=this.o.concat(h(this._maxLength)),this._maxLength*=2},vt.prototype.setXYAt=function(t,e,i,n,r){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[n]||o[n]&&!r)&&(o[n]=bt.newElement()),o[n][0]=t,o[n][1]=e},vt.prototype.setTripleAt=function(t,e,i,n,r,o,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(i,n,"o",a,s),this.setXYAt(r,o,"i",a,s)},vt.prototype.reverse=function(){var t=new vt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var o,a=this._length-1,s=this._length;for(o=r;o<s;o+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],i[a][0],i[a][1],o,!1),a-=1;return t},vt.prototype.length=function(){return this._length};var Et,It=((Et=et(4,(function(){return new vt}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)bt.release(t.v[e]),bt.release(t.i[e]),bt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}))).clone=function(t){var e,i=Et.newElement(),n=void 0===t._length?t.v.length:t._length;for(i.setLength(n),i.c=t.c,e=0;e<n;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},Et);function Ct(){this._length=0,this._maxLength=4,this.shapes=h(this._maxLength)}Ct.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(h(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},Ct.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)It.release(this.shapes[t]);this._length=0};var Bt=function(){var t={newShapeCollection:function(){return e?n[e-=1]:new Ct},release:function(t){var r,o=t._length;for(r=0;r<o;r+=1)It.release(t.shapes[r]);t._length=0,e===i&&(n=tt.double(n),i*=2),n[e]=t,e+=1}},e=0,i=4,n=h(i);return t}(),wt=function(){var t=-999999;function e(t,e,i){var n,r,o,a,s,l,A,c,h,d=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)n=u[0].s[0],o=!0,d=0;else if(t>=u[u.length-1].t-this.offsetTime)n=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],o=!0;else{for(var p,g,f,m=d,y=u.length-1,b=!0;b&&(p=u[m],!((g=u[m+1]).t-this.offsetTime>t));)m<y-1?m+=1:b=!1;if(f=this.keyframesMetadata[m]||{},d=m,!(o=1===p.h)){
if(t>=g.t-this.offsetTime)c=1;else if(t<p.t-this.offsetTime)c=0;else{var v;f.__fnct?v=f.__fnct:(v=$.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,f.__fnct=v),c=v((t-(p.t-this.offsetTime))/(g.t-this.offsetTime-(p.t-this.offsetTime)))}r=g.s?g.s[0]:p.e[0]}n=p.s[0]}for(l=e._length,A=n.i[0].length,i.lastIndex=d,a=0;a<l;a+=1)for(s=0;s<A;s+=1)h=o?n.i[a][s]:n.i[a][s]+(r.i[a][s]-n.i[a][s])*c,e.i[a][s]=h,h=o?n.o[a][s]:n.o[a][s]+(r.o[a][s]-n.o[a][s])*c,e.o[a][s]=h,h=o?n.v[a][s]:n.v[a][s]+(r.v[a][s]-n.v[a][s])*c,e.v[a][s]=h}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>n&&e>n)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function r(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,n=t._length;for(i=0;i<n;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=It.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=It.clone(r),this.pv=It.clone(this.v),this.localShapeCollection=Bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function A(e,r,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=It.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=It.clone(this.v),this.localShapeCollection=Bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=o,a.prototype.setVValue=r,a.prototype.addEffect=s,A.prototype.getValue=o,A.prototype.interpolateShape=e,A.prototype.setVValue=r,A.prototype.addEffect=s;var c=function(){var t=B;function e(t,e){this.v=It.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Bt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=mt.getProp(t,e.p,1,0,this),this.s=mt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-r,a.v[1][0]=o?e+n:e-n,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+r,a.v[3][0]=o?e-n:e+n,a.v[3][1]=i,a.i[0][0]=o?e-n*t:e+n*t,a.i[0][1]=i-r,a.i[1][0]=o?e+n:e-n,a.i[1][1]=i-r*t,a.i[2][0]=o?e+n*t:e-n*t,a.i[2][1]=i+r,a.i[3][0]=o?e-n:e+n,a.i[3][1]=i+r*t,a.o[0][0]=o?e+n*t:e-n*t,a.o[0][1]=i-r,a.o[1][0]=o?e+n:e-n,a.o[1][1]=i+r*t,a.o[2][0]=o?e-n*t:e+n*t,a.o[2][1]=i+r,a.o[3][0]=o?e-n:e+n,a.o[3][1]=i-r*t}},l([yt],e),e}(),h=function(){function t(t,e){this.v=It.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=mt.getProp(t,e.ir,0,0,this),this.is=mt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=mt.getProp(t,e.pt,0,0,this),this.p=mt.getProp(t,e.p,1,0,this),this.r=mt.getProp(t,e.r,0,C,this),this.or=mt.getProp(t,e.or,0,0,this),this.os=mt.getProp(t,e.os,0,.01,this),this.localShapeCollection=Bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,n,r=2*Math.floor(this.pt.v),o=2*Math.PI/r,a=!0,s=this.or.v,l=this.ir.v,A=this.os.v,c=this.is.v,h=2*Math.PI*s/(2*r),d=2*Math.PI*l/(2*r),u=-Math.PI/2;u+=this.r.v;var p=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=a?A:c,n=a?h:d;var g=(e=a?s:l)*Math.cos(u),f=e*Math.sin(u),m=0===g&&0===f?0:f/Math.sqrt(g*g+f*f),y=0===g&&0===f?0:-g/Math.sqrt(g*g+f*f);g+=+this.p.v[0],f+=+this.p.v[1],this.v.setTripleAt(g,f,g-m*n*i*p,f-y*n*i*p,g+m*n*i*p,f+y*n*i*p,t,!0),a=!a,u+=o*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,n=this.or.v,r=this.os.v,o=2*Math.PI*n/(4*e),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=n*Math.cos(a),A=n*Math.sin(a),c=0===l&&0===A?0:A/Math.sqrt(l*l+A*A),h=0===l&&0===A?0:-l/Math.sqrt(l*l+A*A);l+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(l,A,l-c*o*r*s,A-h*o*r*s,l+c*o*r*s,A+h*o*r*s,t,!0),a+=i*s}this.paths.length=0,this.paths[0]=this.v}},l([yt],t),t}(),d=function(){function t(t,e){this.v=It.newElement(),this.v.c=!0,this.localShapeCollection=Bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=mt.getProp(t,e.p,1,0,this),this.s=mt.getProp(t,e.s,1,0,this),this.r=mt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,r=v(i,n,this.r.v),o=r*(1-B);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+r,t+i,e-n+o,0,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-o,t+i,e+n-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+n,t+i-r,e+n,t+i-o,e+n,2,!0),this.v.setTripleAt(t-i+r,e+n,t-i+o,e+n,t-i+r,e+n,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-r,t-i,e+n-o,4,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+o,t-i,e-n+r,5,!0),this.v.setTripleAt(t-i+r,e-n,t-i+r,e-n,t-i+o,e-n,6,!0),this.v.setTripleAt(t+i-r,e-n,t+i-o,e-n,t+i-r,e-n,7,!0)):(this.v.setTripleAt(t-i,e+n,t-i+o,e+n,t-i,e+n,2),this.v.setTripleAt(t-i,e-n,t-i,e-n+o,t-i,e-n,3))):(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+o,t+i,e-n+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-n,t+i-r,e-n,t+i-o,e-n,1,!0),this.v.setTripleAt(t-i+r,e-n,t-i+o,e-n,t-i+r,e-n,2,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+r,t-i,e-n+o,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-o,t-i,e+n-r,4,!0),this.v.setTripleAt(t-i+r,e+n,t-i+r,e+n,t-i+o,e+n,5,!0),this.v.setTripleAt(t+i-r,e+n,t+i-o,e+n,t+i-r,e+n,6,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-r,t+i,e+n-o,7,!0)):(this.v.setTripleAt(t-i,e-n,t-i+o,e-n,t-i,e-n,1,!0),this.v.setTripleAt(t-i,e+n,t-i,e+n-o,t-i,e+n,2,!0),this.v.setTripleAt(t+i,e+n,t+i-o,e+n,t+i,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},l([yt],t),t}();var u={getShapeProp:function(t,e,i){var n
;return 3===i||4===i?n=(3===i?e.pt:e.ks).k.length?new A(t,e,i):new a(t,e,i):5===i?n=new d(t,e):6===i?n=new c(t,e):7===i&&(n=new h(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return A}};return u}(),xt=function(){var t=Math.cos,e=Math.sin,i=Math.tan,n=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1)}function s(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1)}function l(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function A(t,e){return this._t(1,e,t,1,0,0)}function h(t,e){return this.shear(i(t),i(e))}function d(n,r){var o=t(r),a=e(r);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function p(t,e,i,n,r,o,a,s,l,A,c,h,d,u,p,g){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=r,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=A,this.props[10]=c,this.props[11]=h,this.props[12]=d,this.props[13]=u,this.props[14]=p,this.props[15]=g,this}function g(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function f(t,e,i,n,r,o,a,s,l,A,c,h,d,u,p,g){var f=this.props;if(1===t&&0===e&&0===i&&0===n&&0===r&&1===o&&0===a&&0===s&&0===l&&0===A&&1===c&&0===h)return f[12]=f[12]*t+f[15]*d,f[13]=f[13]*o+f[15]*u,f[14]=f[14]*c+f[15]*p,f[15]*=g,this._identityCalculated=!1,this;var m=f[0],y=f[1],b=f[2],v=f[3],E=f[4],I=f[5],C=f[6],B=f[7],w=f[8],x=f[9],Q=f[10],S=f[11],k=f[12],D=f[13],_=f[14],R=f[15];return f[0]=m*t+y*r+b*l+v*d,f[1]=m*e+y*o+b*A+v*u,f[2]=m*i+y*a+b*c+v*p,f[3]=m*n+y*s+b*h+v*g,f[4]=E*t+I*r+C*l+B*d,f[5]=E*e+I*o+C*A+B*u,f[6]=E*i+I*a+C*c+B*p,f[7]=E*n+I*s+C*h+B*g,f[8]=w*t+x*r+Q*l+S*d,f[9]=w*e+x*o+Q*A+S*u,f[10]=w*i+x*a+Q*c+S*p,f[11]=w*n+x*s+Q*h+S*g,f[12]=k*t+D*r+_*l+R*d,f[13]=k*e+D*o+_*A+R*u,f[14]=k*i+D*a+_*c+R*p,f[15]=k*n+D*s+_*h+R*g,this._identityCalculated=!1,this}function m(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function E(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function I(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function C(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function B(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function w(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function x(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,n=-this.props[4]/t,r=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new xt;return s.props[0]=e,s.props[1]=i,s.props[4]=n,s.props[5]=r,s.props[12]=o,s.props[13]=a,s}function Q(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function S(t){var e,i=t.length,n=[];for(e=0;e<i;e+=1)n[e]=Q(t[e]);return n}function k(t,e,i){var n=c("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=i[0],n[5]=i[1];else{var r=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],A=this.props[13];n[0]=t[0]*r+t[1]*a+l,n[1]=t[0]*o+t[1]*s+A,n[2]=e[0]*r+e[1]*a+l,n[3]=e[0]*o+e[1]*s+A,n[4]=i[0]*r+i[1]*a+l,n[5]=i[0]*o+i[1]*s+A}return n}function D(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function _(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function R(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=n(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function M(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function T(){var t=this.props;return"matrix("+M(t[0])+","+M(t[1])+","+M(t[4])+","+M(t[5])+","+M(t[12])+","+M(t[13])+")"}return function(){this.reset=r,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=h,this.skewFromAxis=d,this.shear=A,this.scale=u,this.setTransform=p,this.translate=g,this.transform=f,this.multiply=m,this.applyToPoint=I,this.applyToX=C,this.applyToY=B,this.applyToZ=w,this.applyToPointArray=D,this.applyToTriplePoints=k,this.applyToPointStringified=_,this.toCSS=R,this.to2dCSS=T,this.clone=v,this.cloneFromProps=E,this.equals=b,this.inversePoints=S,this.inversePoint=Q,this.getInverseMatrix=x,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=c("float32",16),this.reset()}}();function Qt(t){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var St={},kt="__[STANDALONE]__";function Dt(){X.searchAnimations()}St.play=X.play,St.pause=X.pause,St.setLocationHref=function(e){!function(e){t=e}(e)},St.togglePause=X.togglePause,St.setSpeed=X.setSpeed,St.setDirection=X.setDirection,St.stop=X.stop,St.searchAnimations=Dt,St.registerAnimation=X.registerAnimation,St.loadAnimation=function(t){return X.loadAnimation(t)},St.setSubframeRendering=function(t){!function(t){u=!!t}(t)},St.resize=X.resize,St.goToAndStop=X.goToAndStop,St.destroy=X.destroy,St.setQuality=function(t){if("string"==typeof t)switch(t){case"high":O(200);break;default:case"medium":O(50);break;case"low":O(10)}else!isNaN(t)&&t>1&&O(t);G()},St.inBrowser=function(){return"undefined"!=typeof navigator},St.installPlugin=function(t,e){"expressions"===t&&function(t){p=t}(e)},St.freeze=X.freeze,St.unfreeze=X.unfreeze,St.setVolume=X.setVolume,St.mute=X.mute,St.unmute=X.unmute,St.getRegisteredAnimations=X.getRegisteredAnimations,St.useWebWorker=function(t){r=!!t},St.setIDPrefix=function(t){!function(t){g=t}(t)},St.__getFactory=function(t){switch(t){case"propertyFactory":return mt;case"shapePropertyFactory":return wt;case"matrix":return xt;default:return null}},St.version="5.12.2";var _t="";if(kt){var Rt=document.getElementsByTagName("script"),Mt=Rt[Rt.length-1]||{src:""};_t=Mt.src?Mt.src.replace(/^[^\?]+\??/,""):"",function(t){for(var e=_t.split("&"),i=0;i<e.length;i+=1){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}("renderer")}var Tt=setInterval((function(){"complete"===document.readyState&&(clearInterval(Tt),Dt())}),100);try{"object"!==Qt(e)&&i.amdO}catch(Ft){}var Ft,Lt,Nt=(Lt={},(Ft={}).registerModifier=function(t,e){Lt[t]||(Lt[t]=e)},Ft.getModifier=function(t,e,i){return new Lt[t](e,i)},Ft);function Pt(){}function Ut(){}function Ot(){}Pt.prototype.initModifierProperties=function(){},
Pt.prototype.addShapeToModifier=function(){},Pt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:Bt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Pt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=o,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Pt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},l([yt],Pt),l([Pt],Ut),Ut.prototype.initModifierProperties=function(t,e){this.s=mt.getProp(t,e.s,0,.01,this),this.e=mt.getProp(t,e.e,0,.01,this),this.o=mt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Ut.prototype.addShapeToModifier=function(t){t.pathsData=[]},Ut.prototype.calculateShapeEdges=function(t,e,i,n,r){var o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var a,s,l=[],A=o.length;for(a=0;a<A;a+=1){var c,h;(s=o[a]).e*r<n||s.s*r>n+i||(c=s.s*r<=n?0:(s.s*r-n)/i,h=s.e*r>=n+i?1:(s.e*r-n)/i,l.push([c,h]))}return l.length||l.push([0,0]),l},Ut.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)nt.release(t[e]);return t.length=0,t},Ut.prototype.processShapes=function(t){var e,i,n,r;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(i=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var s,l,A,c,h,d=this.shapes.length,u=0;if(i===e)for(r=0;r<d;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<d;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var p,g,f=[];for(r=0;r<d;r+=1)if((p=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(n=p.shape.paths)._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(A=this.releasePathsData(p.pathsData),s=0;s<l;s+=1)c=rt.getSegmentsLength(n.shapes[s]),A.push(c),h+=c.totalLength;p.totalShapeLength=h,p.pathsData=A}u+=h,p.shape._mdf=!0}else p.shape.paths=p.localShapeCollection;var m,y=e,b=i,v=0;for(r=d-1;r>=0;r-=1)if((p=this.shapes[r]).shape._mdf){for((g=p.localShapeCollection).releaseShapes(),2===this.m&&d>1?(m=this.calculateShapeEdges(e,i,p.totalShapeLength,v,u),v+=p.totalShapeLength):m=[[y,b]],l=m.length,s=0;s<l;s+=1){y=m[s][0],b=m[s][1],f.length=0,b<=1?f.push({s:p.totalShapeLength*y,e:p.totalShapeLength*b}):y>=1?f.push({s:p.totalShapeLength*(y-1),e:p.totalShapeLength*(b-1)}):(f.push({s:p.totalShapeLength*y,e:p.totalShapeLength}),f.push({s:0,e:p.totalShapeLength*(b-1)}));var E=this.addShapes(p,f[0]);if(f[0].s!==f[0].e){if(f.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var I=E.pop();this.addPaths(E,g),E=this.addShapes(p,f[1],I)}else this.addPaths(E,g),E=this.addShapes(p,f[1]);this.addPaths(E,g)}}p.shape.paths=g}}},Ut.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},Ut.prototype.addSegment=function(t,e,i,n,r,o,a){r.setXYAt(e[0],e[1],"o",o),r.setXYAt(i[0],i[1],"i",o+1),a&&r.setXYAt(t[0],t[1],"v",o),r.setXYAt(n[0],n[1],"v",o+1)},Ut.prototype.addSegmentFromArray=function(t,e,i,n){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),n&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},Ut.prototype.addShapes=function(t,e,i){var n,r,o,a,s,l,A,c,h=t.pathsData,d=t.shape.paths.shapes,u=t.shape.paths._length,p=0,g=[],f=!0;for(i?(s=i._length,c=i._length):(i=It.newElement(),s=0,c=0),g.push(i),n=0;n<u;n+=1){for(l=h[n].lengths,i.c=d[n].c,o=d[n].c?l.length:l.length+1,r=1;r<o;r+=1)if(p+(a=l[r-1]).addedLength<e.s)p+=a.addedLength,i.c=!1;else{if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,s,f),f=!1):(A=rt.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-p)/a.addedLength,(e.e-p)/a.addedLength,l[r-1]),this.addSegmentFromArray(A,i,s,f),f=!1,i.c=!1),p+=a.addedLength,s+=1}if(d[n].c&&l.length){if(a=l[r-1],p<=e.e){var m=l[r-1].addedLength;e.s<=p&&e.e>=p+m?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,s,f),f=!1):(A=rt.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-p)/m,(e.e-p)/m,l[r-1]),this.addSegmentFromArray(A,i,s,f),f=!1,i.c=!1)}else i.c=!1;p+=a.addedLength,s+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>e.e)break;n<u-1&&(i=It.newElement(),f=!0,g.push(i),s=0)}return g},l([Pt],Ot),Ot.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=mt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ot.prototype.processPath=function(t,e){var i=e/100,n=[0,0],r=t._length,o=0;for(o=0;o<r;o+=1)n[0]+=t.v[o][0],n[1]+=t.v[o][1];n[0]/=r,n[1]/=r;var a,s,l,A,c,h,d=It.newElement();for(d.c=t.c,o=0;o<r;o+=1)a=t.v[o][0]+(n[0]-t.v[o][0])*i,s=t.v[o][1]+(n[1]-t.v[o][1])*i,l=t.o[o][0]+(n[0]-t.o[o][0])*-i,A=t.o[o][1]+(n[1]-t.o[o][1])*-i,c=t.i[o][0]+(n[0]-t.i[o][0])*-i,h=t.i[o][1]+(n[1]-t.i[o][1])*-i,d.setTripleAt(a,s,l,A,c,h,o);return d},Ot.prototype.processShapes=function(t){var e,i,n,r,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<s;i+=1){if(a=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Gt=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new xt,this.pre=new xt,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=mt.getProp(t,e.p.x,0,0,this),this.py=mt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=mt.getProp(t,e.p.z,0,0,this))):this.p=mt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=mt.getProp(t,e.rx,0,C,this),this.ry=mt.getProp(t,e.ry,0,C,this),this.rz=mt.getProp(t,e.rz,0,C,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n<r;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=mt.getProp(t,e.or,1,C,this),this.or.sh=!0}else this.r=mt.getProp(t,e.r||{k:0},0,C,this);e.sk&&(this.sk=mt.getProp(t,e.sk,0,C,this),this.sa=mt.getProp(t,e.sa,0,C,this)),this.a=mt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=mt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=mt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),
this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,r;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],r=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=o.getValueAtTime(o.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(n=[o.pv,a.pv],r[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else n=r=t;this.v.rotate(-Math.atan2(n[1]-r[1],n[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},l([yt],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=yt.prototype.addDynamicProperty,{getTransformProperty:function(t,i,n){return new e(t,i,n)}}}();function Ht(){}function Vt(){}function Yt(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function zt(t){return Math.abs(t)<=1e-5}function Wt(t,e,i){return t*(1-i)+e*i}function Zt(t,e,i){return[Wt(t[0],e[0],i),Wt(t[1],e[1],i)]}function jt(t,e,i,n){return[3*e-t-3*i+n,3*t-6*e+3*i,-3*t+3*e,t]}function qt(t){return new Jt(t,t,t,t,!1)}function Jt(t,e,i,n,r){r&&oe(t,e)&&(e=Zt(t,n,1/3)),r&&oe(i,n)&&(i=Zt(t,n,2/3));var o=jt(t[0],e[0],i[0],n[0]),a=jt(t[1],e[1],i[1],n[1]);this.a=[o[0],a[0]],this.b=[o[1],a[1]],this.c=[o[2],a[2]],this.d=[o[3],a[3]],this.points=[t,e,i,n]}function Kt(t,e){var i=t.points[0][e],n=t.points[t.points.length-1][e];if(i>n){var r=n;n=i,i=r}for(var o=function(t,e,i){if(0===t)return[];var n=e*e-4*t*i;if(n<0)return[];var r=-e/(2*t);if(0===n)return[r];var o=Math.sqrt(n)/(2*t);return[r-o,r+o]}(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<o.length;a+=1)if(o[a]>0&&o[a]<1){var s=t.point(o[a])[e];s<i?i=s:s>n&&(n=s)}return{min:i,max:n}}function Xt(t,e,i){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function $t(t){var e=t.bez.split(.5);return[Xt(e[0],t.t1,t.t),Xt(e[1],t.t,t.t2)]}function te(t,e,i,n,r,o){if(function(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}(t,e))if(i>=o||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)r.push([t.t,e.t]);else{var a=$t(t),s=$t(e);te(a[0],s[0],i+1,n,r,o),te(a[0],s[1],i+1,n,r,o),te(a[1],s[0],i+1,n,r,o),te(a[1],s[1],i+1,n,r,o)}}function ee(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ie(t,e,i,n){var r=[t[0],t[1],1],o=[e[0],e[1],1],a=[i[0],i[1],1],s=[n[0],n[1],1],l=ee(ee(r,o),ee(a,s));return zt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function ne(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function re(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function oe(t,e){return Yt(t[0],e[0])&&Yt(t[1],e[1])}function ae(){}function se(t,e,i,n,r,o,a){var s=i-Math.PI/2,l=i+Math.PI/2,A=e[0]+Math.cos(i)*n*r,c=e[1]-Math.sin(i)*n*r;t.setTripleAt(A,c,A+Math.cos(s)*o,c-Math.sin(s)*o,A+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function le(t,e){var i=0===e?t.length()-1:e-1,n=(e+1)%t.length(),r=function(t,e){var i=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]]}(t.v[i],t.v[n]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function Ae(t,e,i,n,r,o,a){var s=le(e,i),l=e.v[i%e._length],A=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],h=2===o?Math.sqrt(Math.pow(l[0]-A[0],2)+Math.pow(l[1]-A[1],2)):0,d=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;se(t,e.v[i%e._length],s,a,n,d/(2*(r+1)),h/(2*(r+1)))}function ce(t,e,i,n,r,o){for(var a=0;a<n;a+=1){var s=(a+1)/(n+1),l=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,A=e.normalAngle(s);se(t,e.point(s),A,o,i,l/(2*(n+1)),l/(2*(n+1))),o=-o}return o}function he(t,e,i){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[ne(t,n,i),ne(e,n,i)]}function de(t,e){var i,n,r,o,a,s,l;i=(l=he(t.points[0],t.points[1],e))[0],n=l[1],r=(l=he(t.points[1],t.points[2],e))[0],o=l[1],a=(l=he(t.points[2],t.points[3],e))[0],s=l[1];var A=ie(i,n,r,o);null===A&&(A=n);var c=ie(a,s,r,o);return null===c&&(c=a),new Jt(i,A,c,s)}function ue(t,e,i,n,r){var o=e.points[3],a=i.points[0];if(3===n)return o;if(oe(o,a))return o;if(2===n){var s=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,A=ie(o,ne(o,s+Math.PI/2,100),a,ne(a,s+Math.PI/2,100)),c=A?re(A,o):re(o,a)/2,h=ne(o,s,2*c*B);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=ne(a,l,2*c*B),t.setTripleAt(a[0],a[1],a[0],a[1],h[0],h[1],t.length()),a}var d=ie(oe(o,e.points[2])?e.points[0]:e.points[2],o,a,oe(a,i.points[1])?i.points[3]:i.points[1]);return d&&re(d,o)<r?(t.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],t.length()),d):o}function pe(t,e){var i=t.intersections(e);return i.length&&Yt(i[0][0],1)&&i.shift(),i.length?i[0]:null}function ge(t,e){var i=t.slice(),n=e.slice(),r=pe(t[t.length-1],e[0]);return r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],n[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=pe(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,n]}function fe(t,e){var i,n,r,o,a=t.inflectionPoints();if(0===a.length)return[de(t,e)];if(1===a.length||Yt(a[1],1))return i=(r=t.split(a[0]))[0],n=r[1],[de(i,e),de(n,e)];i=(r=t.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return o=(r=r[1].split(s))[0],n=r[1],[de(i,e),de(o,e),de(n,e)]}function me(){}function ye(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",r=e.length,o=0;o<r;o+=1)switch(e[o].toLowerCase()){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:n,weight:t.fWeight||i}}l([Pt],Ht),Ht.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=mt.getProp(t,e.c,0,null,this),
this.o=mt.getProp(t,e.o,0,null,this),this.tr=Gt.getTransformProperty(t,e.tr,this),this.so=mt.getProp(t,e.tr.so,0,.01,this),this.eo=mt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new xt,this.rMatrix=new xt,this.sMatrix=new xt,this.tMatrix=new xt,this.matrix=new xt},Ht.prototype.applyTransforms=function(t,e,i,n,r,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-r),l=n.s.v[1]+(1-n.s.v[1])*(1-r);t.translate(n.p.v[0]*a*r,n.p.v[1]*a*r,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*r),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(o?1/s:s,o?1/l:l),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},Ht.prototype.init=function(t,e,i,n){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Ht.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},Ht.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},Ht.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},Ht.prototype.processShapes=function(t){var e,i,n,r,o,a=!1;if(this._mdf||t){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var A={it:this.cloneElements(this._elements),ty:"gr"};A.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,A),this._groups.splice(0,0,A),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(o=0,n=0;n<=this._groups.length-1;n+=1){if(s=o<l,this._groups[n]._render=s,this.changeGroupRender(this._groups[n].it,s),!s){var c=this.elemsData[n].it,h=c[c.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}o+=1}this._currentCopies=l;var d=this.o.v,u=d%1,p=d>0?Math.floor(d):Math.ceil(d),g=this.pMatrix.props,f=this.rMatrix.props,m=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,v=0;if(d>0){for(;v<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),v+=u)}else if(d<0){for(;v>p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),v-=u)}for(n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==v){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];v+=1,o-=1,n+=r}}else for(o=this._currentCopies,n=0,r=1;o;)i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,n+=r;return a},Ht.prototype.addShape=function(){},l([Pt],Vt),Vt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=mt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Vt.prototype.processPath=function(t,e){var i,n=It.newElement();n.c=t.c;var r,o,a,s,l,A,c,h,d,u,p,g,f=t._length,m=0;for(i=0;i<f;i+=1)r=t.v[i],a=t.o[i],o=t.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===o[0]&&r[1]===o[1]?0!==i&&i!==f-1||t.c?(s=0===i?t.v[f-1]:t.v[i-1],A=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=p=r[0]+(s[0]-r[0])*A,h=g=r[1]-(r[1]-s[1])*A,d=c-(c-r[0])*B,u=h-(h-r[1])*B,n.setTripleAt(c,h,d,u,p,g,m),m+=1,s=i===f-1?t.v[0]:t.v[i+1],A=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=d=r[0]+(s[0]-r[0])*A,h=u=r[1]+(s[1]-r[1])*A,p=c-(c-r[0])*B,g=h-(h-r[1])*B,n.setTripleAt(c,h,d,u,p,g,m),m+=1):(n.setTripleAt(r[0],r[1],a[0],a[1],o[0],o[1],m),m+=1):(n.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],m),m+=1);return n},Vt.prototype.processShapes=function(t){var e,i,n,r,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<s;i+=1){if(a=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Jt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Jt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Jt.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Jt.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Jt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(zt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var n=Math.sqrt(i);return zt(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter((function(t){return t>0&&t<1}))},Jt.prototype.split=function(t){if(t<=0)return[qt(this.points[0]),this];if(t>=1)return[this,qt(this.points[this.points.length-1])];var e=Zt(this.points[0],this.points[1],t),i=Zt(this.points[1],this.points[2],t),n=Zt(this.points[2],this.points[3],t),r=Zt(e,i,t),o=Zt(i,n,t),a=Zt(r,o,t);return[new Jt(this.points[0],e,r,a,!0),new Jt(a,o,n,this.points[3],!0)]},Jt.prototype.bounds=function(){return{x:Kt(this,0),y:Kt(this,1)}},Jt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Jt.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var n=[];return te(Xt(this,0,1),Xt(t,0,1),0,e,n,i),n},Jt.shapeSegment=function(t,e){var i=(e+1)%t.length();return new Jt(t.v[e],t.o[e],t.i[i],t.v[i],!0)},Jt.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new Jt(t.v[i],t.i[i],t.o[e],t.v[e],!0)},l([Pt],ae),ae.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=mt.getProp(t,e.s,0,null,this),this.frequency=mt.getProp(t,e.r,0,null,this),this.pointsType=mt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ae.prototype.processPath=function(t,e,i,n){var r=t._length,o=It.newElement();if(o.c=t.c,t.c||(r-=1),0===r)return o;var a=-1,s=Jt.shapeSegment(t,0);Ae(o,t,0,e,i,n,a);for(var l=0;l<r;l+=1)a=ce(o,s,e,i,n,-a),s=l!==r-1||t.c?Jt.shapeSegment(t,(l+1)%r):null,Ae(o,t,l+1,e,i,n,a);return o},ae.prototype.processShapes=function(t){var e,i,n,r,o,a,s=this.shapes.length,l=this.amplitude.v,A=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<s;i+=1){if(a=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),
o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l,A,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},l([Pt],me),me.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=mt.getProp(t,e.a,0,null,this),this.miterLimit=mt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},me.prototype.processPath=function(t,e,i,n){var r=It.newElement();r.c=t.c;var o,a,s,l=t.length();t.c||(l-=1);var A=[];for(o=0;o<l;o+=1)s=Jt.shapeSegment(t,o),A.push(fe(s,e));if(!t.c)for(o=l-1;o>=0;o-=1)s=Jt.shapeSegmentInverted(t,o),A.push(fe(s,e));A=function(t){for(var e,i=1;i<t.length;i+=1)e=ge(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=ge(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}(A);var c=null,h=null;for(o=0;o<A.length;o+=1){var d=A[o];for(h&&(c=ue(r,h,d[0],i,n)),h=d[d.length-1],a=0;a<d.length;a+=1)s=d[a],c&&oe(s.points[0],c)?r.setXYAt(s.points[1][0],s.points[1][1],"o",r.length()-1):r.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],r.length()),r.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],r.length()),c=s.points[3]}return A.length&&ue(r,h,A[0][0],i,n),r},me.prototype.processShapes=function(t){var e,i,n,r,o,a,s=this.shapes.length,l=this.amount.v,A=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<s;i+=1){if(a=(o=this.shapes[i]).localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l,c,A));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var be=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function o(t,e){var i=s("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var n=s("span");n.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(n),document.body.appendChild(i);var r=n.offsetWidth;return n.style.fontFamily=function(t){var e,i=t.split(","),n=i.length,r=[];for(e=0;e<n;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}(t)+", "+e,{node:n,w:r,parent:i}}function a(t,e){var i,n=document.body&&e?"svg":"canvas",r=ye(t);if("svg"===n){var o=H("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",r.style),o.setAttribute("font-weight",r.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),i=o}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=r.style+" "+r.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===n?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function l(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var n=t.charCodeAt(1);n>=56320&&n<=57343&&(e=1024*(i-55296)+n-56320+65536)}return e}function A(t){var e=l(t);return e>=127462&&e<=127487}var c=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};c.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==r.indexOf(i)},c.isZeroWidthJoiner=function(t){return 8205===t},c.isFlagEmoji=function(t){return A(t.substr(0,2))&&A(t.substr(2,2))},c.isRegionalCode=A,c.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},c.isRegionalFlag=function(t,e){var n=l(t.substr(e,2));if(n!==i)return!1;var r=0;for(e+=2;r<5;){if((n=l(t.substr(e,2)))<917601||n>917626)return!1;r+=1,e+=2}return 917631===l(t.substr(e,2))},c.isVariationSelector=function(t){return 65039===t},c.BLACK_FLAG_CODE_POINT=i;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,n,r=t.length,o=this.chars.length;for(e=0;e<r;e+=1){for(i=0,n=!1;i<o;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(n=!0),i+=1;n||(this.chars.push(t[e]),o+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=a(t),t.cache={}})),void(this.fonts=t.list);var i,n=t.list,r=n.length,l=r;for(i=0;i<r;i+=1){var A,c,h=!0;if(n[i].loaded=!1,n[i].monoCase=o(n[i].fFamily,"monospace"),n[i].sansCase=o(n[i].fFamily,"sans-serif"),n[i].fPath){if("p"===n[i].fOrigin||3===n[i].origin){if((A=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[i].fFamily+'"], style[f-origin="3"][f-family="'+n[i].fFamily+'"]')).length>0&&(h=!1),h){var d=s("style");d.setAttribute("f-forigin",n[i].fOrigin),d.setAttribute("f-origin",n[i].origin),d.setAttribute("f-family",n[i].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(d)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(A=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<A.length;c+=1)-1!==A[c].href.indexOf(n[i].fPath)&&(h=!1);if(h){var u=s("link");u.setAttribute("f-forigin",n[i].fOrigin),u.setAttribute("f-origin",n[i].origin),u.type="text/css",u.rel="stylesheet",u.href=n[i].fPath,document.body.appendChild(u)}}else if("t"===n[i].fOrigin||2===n[i].origin){for(A=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<A.length;c+=1)n[i].fPath===A[c].src&&(h=!1);if(h){var p=s("link");p.setAttribute("f-forigin",n[i].fOrigin),p.setAttribute("f-origin",n[i].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[i].fPath),e.appendChild(p)}}}else n[i].loaded=!0,l-=1;n[i].helper=a(n[i],e),n[i].cache={},this.fonts.push(n[i])}0===l?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,r){for(var o=0,a=this.chars.length;o<a;){if(this.chars[o].ch===e&&this.chars[o].style===i&&this.chars[o].fFamily===r)return this.chars[o];o+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&n&&n.warn&&!this._warned&&(this._warned=!0,n.warn("Missing character from exported characters list: ",e,i,r)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var n=this.getFontByName(e),r=t;if(!n.cache[r]){var o=n.helper;if(" "===t){var a=o.measureText("|"+t+"|"),s=o.measureText("||");n.cache[r]=(a-s)/100}else n.cache[r]=o.measureText(t)/100}return n.cache[r]*i},checkLoadedFonts:function(){var t,e,i,n=this.fonts.length,r=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(r-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return c.prototype=h,c}();function ve(t){this.animationData=t}function Ee(){}ve.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},Ee.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,
this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ie,Ce=(Ie={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Ie[t]||""});function Be(t,e,i){this.p=mt.getProp(e,t.v,0,0,i)}function we(t,e,i){this.p=mt.getProp(e,t.v,0,0,i)}function xe(t,e,i){this.p=mt.getProp(e,t.v,1,0,i)}function Qe(t,e,i){this.p=mt.getProp(e,t.v,1,0,i)}function Se(t,e,i){this.p=mt.getProp(e,t.v,0,0,i)}function ke(t,e,i){this.p=mt.getProp(e,t.v,0,0,i)}function De(t,e,i){this.p=mt.getProp(e,t.v,0,0,i)}function _e(){this.p={}}function Re(t,e){var i,n=t.ef||[];this.effectElements=[];var r,o=n.length;for(i=0;i<o;i+=1)r=new Me(n[i],e),this.effectElements.push(r)}function Me(t,e){this.init(t,e)}function Te(){}function Fe(){}function Le(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function Ne(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?mt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=mt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Pe(){}l([yt],Me),Me.prototype.getValue=Me.prototype.iterateDynamicProperties,Me.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,r=this.data.ef.length,o=this.data.ef;for(i=0;i<r;i+=1){switch(n=null,o[i].ty){case 0:n=new Be(o[i],e,this);break;case 1:n=new we(o[i],e,this);break;case 2:n=new xe(o[i],e,this);break;case 3:n=new Qe(o[i],e,this);break;case 4:case 7:n=new De(o[i],e,this);break;case 10:n=new Se(o[i],e,this);break;case 11:n=new ke(o[i],e,this);break;case 5:n=new Re(o[i],e,this);break;default:n=new _e(o[i],e,this)}n&&this.effectElements.push(n)}},Te.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=null;if(t){var e=t("layer"),i=t("effects"),n=t("shape"),r=t("text"),o=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=o(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=Ce(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=M(),this.data.sr||(this.data.sr=1),this.effectsManager=new Re(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Fe.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Le.prototype.prepareFrame=function(){},l([Ee,Te,Fe],Le),Le.prototype.getBaseElement=function(){return null},Le.prototype.renderFrame=function(){},Le.prototype.destroy=function(){},Le.prototype.initExpressions=function(){var t=null;if(t){var e=t("footage");this.layerInterface=e(this)}},Le.prototype.getFootageData=function(){return this.footageData},Ne.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},l([Ee,Te,Fe],Ne),Ne.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Ne.prototype.show=function(){},Ne.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Ne.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Ne.prototype.resume=function(){this._canPlay=!0},Ne.prototype.setRate=function(t){this.audio.rate(t)},Ne.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Ne.prototype.getBaseElement=function(){return null},Ne.prototype.destroy=function(){},Ne.prototype.sourceRectAtTime=function(){},Ne.prototype.initExpressions=function(){},Pe.prototype.checkLayers=function(t){var e,i,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Pe.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Pe.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Pe.prototype.createAudio=function(t){return new Ne(t,this.globalData,this)},Pe.prototype.createFootage=function(t){return new Le(t,this.globalData,this)},Pe.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Pe.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,n=t.length,r=this.layers.length;for(e=0;e<n;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},Pe.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Pe.prototype.initItems=function(){
this.globalData.progressiveLoad||this.buildAllItems()},Pe.prototype.buildElementParenting=function(t,e,i){for(var n=this.elements,r=this.layers,o=0,a=r.length;o<a;)r[o].ind==e&&(n[o]&&!0!==n[o]?(i.push(n[o]),n[o].setAsParent(),void 0!==r[o].parent?this.buildElementParenting(t,r[o].parent,i):t.setHierarchy(i)):(this.buildItem(o),this.addPendingElement(t))),o+=1},Pe.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Pe.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},Pe.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Pe.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var n,r=this.elements.length;for(n=0;n<r;n+=1)if(this.elements[n].data.nm===i){e=this.elements[n];break}}return 0===t.length?e:e.getElementByPath(t)},Pe.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new be,this.globalData.slotManager=function(t){return new ve(t)}(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var Ue="transformEFfect";function Oe(){}function Ge(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,r,o=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=h(s),this.solidPath="";var l,A,c,d,u,p,g=this.masksProperties,f=0,m=[],y=M(),b="clipPath",v="clip-path";for(n=0;n<s;n+=1)if(("a"!==g[n].mode&&"n"!==g[n].mode||g[n].inv||100!==g[n].o.k||g[n].o.x)&&(b="mask",v="mask"),"s"!==g[n].mode&&"i"!==g[n].mode||0!==f?c=null:((c=H("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),r=H("path"),"n"===g[n].mode)this.viewData[n]={op:mt.getProp(this.element,g[n].o,0,.01,this.element),prop:wt.getShapeProp(this.element,g[n],3),elem:r,lastPath:""},o.appendChild(r);else{var E;if(f+=1,r.setAttribute("fill","s"===g[n].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==g[n].x.k?(b="mask",v="mask",p=mt.getProp(this.element,g[n].x,0,null,this.element),E=M(),(d=H("filter")).setAttribute("id",E),(u=H("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),d.appendChild(u),o.appendChild(d),r.setAttribute("stroke","s"===g[n].mode?"#000000":"#ffffff")):(u=null,p=null),this.storedData[n]={elem:r,x:p,expan:u,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},"i"===g[n].mode){A=m.length;var I=H("g");for(l=0;l<A;l+=1)I.appendChild(m[l]);var C=H("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",y+"_"+f),C.appendChild(r),o.appendChild(C),I.setAttribute("mask","url("+a()+"#"+y+"_"+f+")"),m.length=0,m.push(I)}else m.push(r);g[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:r,lastPath:"",op:mt.getProp(this.element,g[n].o,0,.01,this.element),prop:wt.getShapeProp(this.element,g[n],3),invRect:c},this.viewData[n].prop.k||this.drawPath(g[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=H(b),s=m.length,n=0;n<s;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+a()+"#"+y+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}Oe.prototype={initTransform:function(){var t=new xt;this.finalTransform={mProp:this.data.ks?Gt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<n;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var n=this.localTransforms[t].matrix;i.multiply(n)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(Ue);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new xt;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,n=!0,r=this.comp;n;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):n=!1;var o,a=e.length;for(i=0;i<a;i+=1)o=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new xt},Ge.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ge.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+a()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ge.prototype.getMaskelement=function(){return this.maskElement},Ge.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ge.prototype.drawPath=function(t,e,i){var n,r,o=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,n=1;n<r;n+=1)o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1]
;if(e.c&&r>1&&(o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==o){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+o:o),i.elem.setAttribute("d",a)),i.lastPath=o}},Ge.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var He,Ve=function(){var t={};return t.createFilter=function(t,e){var i=H("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var t=H("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t},t}(),Ye=(He={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(He.maskType=!1),/firefox/i.test(navigator.userAgent)&&(He.svgLumaHidden=!1),He),ze={},We="filter_result_";function Ze(t){var e,i,n="SourceGraphic",r=t.data.ef?t.data.ef.length:0,o=M(),s=Ve.createFilter(o,!0),l=0;for(this.filters=[],e=0;e<r;e+=1){i=null;var A=t.data.ef[e].ty;ze[A]&&(i=new(0,ze[A].effect)(s,t.effectsManager.effectElements[e],t,We+l,n),n=We+l,ze[A].countsAsEffect&&(l+=1)),i&&this.filters.push(i)}l&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+a()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function je(){}function qe(){}function Je(){}function Ke(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Xe(t,e){this.elem=t,this.pos=e}function $e(){}Ze.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},Ze.prototype.getEffects=function(t){var e,i=this.filters.length,n=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n},je.prototype={initRendererElement:function(){this.layerElement=H("g")},createContainerElements:function(){this.matteElement=H("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=H("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=H("clipPath"),n=H("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=M();if(i.setAttribute("id",r),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var o=H("g");o.setAttribute("clip-path","url("+a()+"#"+r+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+a()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ge(this.data,this,this.globalData),this.renderableEffectsManager=new Ze(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,n,r,o=this.layerId+"_"+t;if(1===t||3===t){var s=H("mask");s.setAttribute("id",o),s.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=H("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(n),this.globalData.defs.appendChild(s),Ye.maskType||1!==t||(s.setAttribute("mask-type","luminance"),e=M(),i=Ve.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(Ve.createAlphaToLuminanceFilter()),(r=H("g")).appendChild(n),s.appendChild(r),r.setAttribute("filter","url("+a()+"#"+e+")"))}else if(2===t){var l=H("mask");l.setAttribute("id",o),l.setAttribute("mask-type","alpha");var A=H("g");l.appendChild(A),e=M(),i=Ve.createFilter(e);var c=H("feComponentTransfer");c.setAttribute("in","SourceGraphic"),i.appendChild(c);var h=H("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),c.appendChild(h),this.globalData.defs.appendChild(i);var d=H("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),A.setAttribute("filter","url("+a()+"#"+e+")"),A.appendChild(d),(n=H("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),A.appendChild(n),Ye.maskType||(l.setAttribute("mask-type","luminance"),i.appendChild(Ve.createAlphaToLuminanceFilter()),r=H("g"),A.appendChild(d),r.appendChild(this.layerElement),A.appendChild(r)),this.globalData.defs.appendChild(l)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+a()+"#"+t+")")}},qe.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},l([Ee,function(t){function e(){}return e.prototype=t,e}({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Je),l([Te,Oe,je,qe,Fe,Je],Ke),Ke.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=H("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},Ke.prototype.sourceRectAtTime=function(){return this.sourceRect},$e.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){
if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,n=e.length;i<n;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,n=i.length;n;)if(i[n-=1].elem===t)return void(i[n].pos=e);i.push(new Xe(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var ti={1:"butt",2:"round",3:"square"},ei={1:"miter",2:"round",3:"bevel"};function ii(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var n=0,r=t.length;n<r;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function ni(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=H("path"),this.msElem=null}function ri(t,e,i,n){var r;this.elem=t,this.frameId=-1,this.dataProps=h(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=c("float32",e.length?e.length-1:0),this.dashoffset=c("float32",1),this.initDynamicPropertyContainer(n);var o,a=e.length||0;for(r=0;r<a;r+=1)o=mt.getProp(t,e[r].v,0,0,this),this.k=o.k||this.k,this.dataProps[r]={n:e[r].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function oi(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=mt.getProp(t,e.o,0,.01,this),this.w=mt.getProp(t,e.w,0,null,this),this.d=new ri(t,e.d||{},"svg",this),this.c=mt.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=mt.getProp(t,e.o,0,.01,this),this.c=mt.getProp(t,e.c,1,255,this),this.style=i}function si(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function li(t,e,i){this.data=e,this.c=c("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=c("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=mt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function Ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function ci(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=mt.getProp(t,e.w,0,null,this),this.d=new ri(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function hi(){this.it=[],this.prevViewData=[],this.gr=H("g")}function di(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ii.prototype.setAsAnimated=function(){this._isAnimated=!0},ni.prototype.reset=function(){this.d="",this._mdf=!1},ri.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},l([yt],ri),l([yt],oi),l([yt],ai),l([yt],si),li.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2;i<n;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},li.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},li.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,n,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,n=Math.round(this.prop.v[e]*i),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},l([yt],li),Ai.prototype.initGradientData=function(t,e,i){this.o=mt.getProp(t,e.o,0,.01,this),this.s=mt.getProp(t,e.s,1,null,this),this.e=mt.getProp(t,e.e,1,null,this),this.h=mt.getProp(t,e.h||{k:0},0,.01,this),this.a=mt.getProp(t,e.a||{k:0},0,C,this),this.g=new li(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},Ai.prototype.setGradientData=function(t,e){var i=M(),n=H(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var r,o,s,l=[];for(s=4*e.g.p,o=0;o<s;o+=4)r=H("stop"),n.appendChild(r),l.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+a()+"#"+i+")"),this.gf=n,this.cst=l},Ai.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,r,o=H("mask"),s=H("path");o.appendChild(s);var l=M(),A=M();o.setAttribute("id",A);var c=H(1===t.t?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var h=this.stops;for(n=4*t.g.p;n<r;n+=2)(i=H("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(i),h.push(i);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+a()+"#"+l+")"),"gs"===t.ty&&(s.setAttribute("stroke-linecap",ti[t.lc||2]),s.setAttribute("stroke-linejoin",ei[t.lj||2]),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),this.of=c,this.ms=o,this.ost=h,this.maskId=A,e.msElem=s}},l([yt],Ai),l([Ai,yt],ci);var ui=function(t,e,i,n){if(0===e)return"";var r,o=t.o,a=t.i,s=t.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(r=1;r<e;r+=1)l+=" C"+n.applyToPointStringified(o[r-1][0],o[r-1][1])+" "+n.applyToPointStringified(a[r][0],a[r][1])+" "+n.applyToPointStringified(s[r][0],s[r][1]);return i&&e&&(l+=" C"+n.applyToPointStringified(o[r-1][0],o[r-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},pi=function(){var t=new xt,e=new xt;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function r(i,n,r){var o,a,s,l,A,c,h,d,u,p,g=n.styles.length,f=n.lvl;for(c=0;c<g;c+=1){if(l=n.sh._mdf||r,n.styles[c].lvl<f){for(d=e.reset(),u=f-n.styles[c].lvl,p=n.transformers.length-1;!l&&u>0;)l=n.transformers[p].mProps._mdf||l,u-=1,p-=1;if(l)for(u=f-n.styles[c].lvl,p=n.transformers.length-1;u>0;)d.multiply(n.transformers[p].mProps.v),u-=1,p-=1}else d=t;if(a=(h=n.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(A=h.shapes[o])&&A._length&&(s+=ui(A,A._length,A.c,d));n.caches[c]=s}else s=n.caches[c];n.styles[c].d+=!0===i.hd?"":s,n.styles[c]._mdf=l||n.styles[c]._mdf}}function o(t,e,i){var n=e.style;(e.c._mdf||i)&&n.pElem.setAttribute("fill","rgb("+b(e.c.v[0])+","+b(e.c.v[1])+","+b(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){s(t,e,i),l(t,e,i)}function s(t,e,i){var n,r,o,a,s,l=e.gf,A=e.g._hasOpacity,c=e.s.v,h=e.e.v;if(e.o._mdf||i){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",p="x1"===u?"y1":"cy";l.setAttribute(u,c[0]),l.setAttribute(p,c[1]),A&&!e.g._collapsable&&(e.of.setAttribute(u,c[0]),e.of.setAttribute(p,c[1]))}if(e.g._cmdf||i){n=e.cst;var g=e.g.c;for(o=n.length,r=0;r<o;r+=1)(a=n[r]).setAttribute("offset",g[4*r]+"%"),a.setAttribute("stop-color","rgb("+g[4*r+1]+","+g[4*r+2]+","+g[4*r+3]+")")}if(A&&(e.g._omdf||i)){
var f=e.g.o;for(o=(n=e.g._collapsable?e.cst:e.ost).length,r=0;r<o;r+=1)a=n[r],e.g._collapsable||a.setAttribute("offset",f[2*r]+"%"),a.setAttribute("stop-opacity",f[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),A&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",s),A&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||i){s||(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var m=Math.atan2(h[1]-c[1],h[0]-c[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,v=Math.cos(m+e.a.v)*b+c[0],E=Math.sin(m+e.a.v)*b+c[1];l.setAttribute("fx",v),l.setAttribute("fy",E),A&&!e.g._collapsable&&(e.of.setAttribute("fx",v),e.of.setAttribute("fy",E))}}function l(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+b(e.c.v[0])+","+b(e.c.v[1])+","+b(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return r;case"tr":return i;case"no":return n;default:return null}}}}();function gi(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function fi(t,e,i,n,r,o){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=r,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}function mi(t,e){this._frameId=o,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}l([Te,Oe,je,$e,qe,Fe,Je],gi),gi.prototype.initSecondaryElement=function(){},gi.prototype.identityMatrix=new xt,gi.prototype.buildExpressionInterface=function(){},gi.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},gi.prototype.filterUniqueShapes=function(){var t,e,i,n,r=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(i=0;i<o;i+=1){for(n=this.stylesList[i],s=!1,a.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),s=e._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},gi.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},gi.prototype.createStyleElement=function(t,e){var i,n=new ni(t,e),r=n.pElem;return"st"===t.ty?i=new oi(this,t,n):"fl"===t.ty?i=new ai(this,t,n):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?Ai:ci)(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+a()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new si(this,t,n)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",ti[t.lc||2]),r.setAttribute("stroke-linejoin",ei[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=Ce(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},gi.prototype.createGroupElement=function(t){var e=new hi;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=Ce(t.bm)),e},gi.prototype.createTransformElement=function(t,e){var i=Gt.getTransformProperty(this,t,this),n=new di(i,i.o,e);return this.addToAnimatedContents(t,n),n},gi.prototype.createShapeElement=function(t,e,i){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var r=new ii(e,i,wt.getShapeProp(this,t,n,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},gi.prototype.addToAnimatedContents=function(t,e){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:pi.createRenderFunction(t),element:e,data:t})},gi.prototype.setElementStyles=function(t){var e,i=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},gi.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},gi.prototype.searchShapes=function(t,e,i,n,r,o,a){var s,l,A,c,h,d,u=[].concat(o),p=t.length-1,g=[],f=[];for(s=p;s>=0;s-=1){if((d=this.searchProcessedElement(t[s]))?e[s]=i[d-1]:t[s]._render=a,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)d?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],r),t[s]._render&&e[s].style.pElem.parentNode!==n&&n.appendChild(e[s].style.pElem),g.push(e[s].style);else if("gr"===t[s].ty){if(d)for(A=e[s].it.length,l=0;l<A;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,r+1,u,a),t[s]._render&&e[s].gr.parentNode!==n&&n.appendChild(e[s].gr)}else"tr"===t[s].ty?(d||(e[s]=this.createTransformElement(t[s],n)),c=e[s].transform,u.push(c)):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?(d||(e[s]=this.createShapeElement(t[s],u,r)),this.setElementStyles(e[s])):"tm"===t[s].ty||"rd"===t[s].ty||"ms"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(d?(h=e[s]).closed=!1:((h=Nt.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"===t[s].ty&&(d?(h=e[s]).closed=!0:(h=Nt.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),a=!1),f.push(h));this.addProcessedElement(t[s],s+1)}for(p=g.length,s=0;s<p;s+=1)g[s].closed=!0;for(p=f.length,s=0;s<p;s+=1)f[s].closed=!0},gi.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},gi.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},gi.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},fi.prototype.update=function(t,e,i,n,r,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,
a=!0),a},mi.prototype.defaultBoxWidth=[0,0],mi.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},mi.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},mi.prototype.searchProperty=function(){return this.searchKeyframes()},mi.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},mi.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},mi.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(n=0;n<r;n+=1)o=i!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},mi.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},mi.prototype.buildFinalText=function(t){for(var e,i,n=[],r=0,o=t.length,a=!1,s=!1,l="";r<o;)a=s,s=!1,e=t.charCodeAt(r),l=t.charAt(r),be.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?be.isRegionalFlag(t,r)?l=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(be.isModifier(e,i)?(l=t.substr(r,2),a=!0):l=be.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),be.isVariationSelector(e)&&(a=!0)):be.isZeroWidthJoiner(e)&&(a=!0,s=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),r+=l.length;return n},mi.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,o,a,s,l=this.elem.globalData.fontManager,A=this.data,c=[],h=0,d=A.m.g,u=0,p=0,g=0,f=[],m=0,y=0,b=l.getFontByName(t.f),v=0,E=ye(b);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var I,C=t.tr/1e3*t.finalSize;if(t.sz)for(var B,w,x=!0,Q=t.sz[0],S=t.sz[1];x;){B=0,m=0,i=(w=this.buildFinalText(t.t)).length,C=t.tr/1e3*t.finalSize;var k=-1;for(e=0;e<i;e+=1)I=w[e].charCodeAt(0),n=!1," "===w[e]?k=e:13!==I&&3!==I||(m=0,n=!0,B+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(w[e],b.fStyle,b.fFamily),v=n?0:s.w*t.finalSize/100):v=l.measureText(w[e],t.f,t.finalSize),m+v>Q&&" "!==w[e]?(-1===k?i+=1:e=k,B+=t.finalLineHeight||1.2*t.finalSize,w.splice(e,k===e?1:0,"\r"),k=-1,m=0):(m+=v,m+=C);B+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&S<B?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=w,i=t.finalText.length,x=!1)}m=-C,v=0;var D,_=0;for(e=0;e<i;e+=1)if(n=!1,13===(I=(D=t.finalText[e]).charCodeAt(0))||3===I?(_=0,f.push(m),y=m>y?m:y,m=-2*C,r="",n=!0,g+=1):r=D,l.chars?(s=l.getCharData(D,b.fStyle,l.getFontByName(t.f).fFamily),v=n?0:s.w*t.finalSize/100):v=l.measureText(r,t.f,t.finalSize)," "===D?_+=v+C:(m+=v+C+_,_=0),c.push({l:v,an:v,add:u,n:n,anIndexes:[],val:r,line:g,animatorJustifyOffset:0}),2==d){if(u+=v,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(u-=v);p<=e;)c[p].an=u,c[p].ind=h,c[p].extra=v,p+=1;h+=1,u=0}}else if(3==d){if(u+=v,""===r||e===i-1){for(""===r&&(u-=v);p<=e;)c[p].an=u,c[p].ind=h,c[p].extra=v,p+=1;u=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(t.l=c,y=m>y?m:y,f.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=f;var R,M,T,F,L=A.a;a=L.length;var N=[];for(o=0;o<a;o+=1){for((R=L[o]).a.sc&&(t.strokeColorAnim=!0),R.a.sw&&(t.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(t.fillColorAnim=!0),F=0,T=R.s.b,e=0;e<i;e+=1)(M=c[e]).anIndexes[o]=F,(1==T&&""!==M.val||2==T&&""!==M.val&&" "!==M.val||3==T&&(M.n||" "==M.val||e==i-1)||4==T&&(M.n||e==i-1))&&(1===R.s.rn&&N.push(F),F+=1);A.a[o].s.totalChars=F;var P,U=-1;if(1===R.s.rn)for(e=0;e<i;e+=1)U!=(M=c[e]).anIndexes[o]&&(U=M.anIndexes[o],P=N.splice(Math.floor(Math.random()*N.length),1)[0]),M.anIndexes[o]=P}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},mi.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},mi.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},mi.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},mi.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var yi=function(){var t=Math.max,e=Math.min,i=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=mt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?mt.getProp(t,e.e,0,0,this):{v:100},this.o=mt.getProp(t,e.o||{k:0},0,0,this),this.xe=mt.getProp(t,e.xe||{k:0},0,0,this),this.ne=mt.getProp(t,e.ne||{k:0},0,0,this),this.sm=mt.getProp(t,e.sm||{k:100},0,0,this),this.a=mt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,o=0,a=1,s=1;this.ne.v>0?r=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=$.getBezierEasing(r,o,a,s).get,A=0,c=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)A=l(A=h===c?n>=h?1:0:t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(3===d)A=l(A=h===c?n>=h?0:1:1-t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(4===d)h===c?A=0:(A=t(0,e(.5/(h-c)+(n-c)/(h-c),1)))<.5?A*=2:A=1-2*(A-.5),A=l(A);else if(5===d){if(h===c)A=0;else{var u=h-c,p=-u/2+(n=e(t(0,n+.5-c),h-c)),g=u/2;A=Math.sqrt(1-p*p/(g*g))}A=l(A)}else 6===d?(h===c?A=0:(n=e(t(0,n+.5-c),h-c),A=(1+Math.cos(Math.PI+2*Math.PI*n/(h-c)))/2),A=l(A)):(n>=i(c)&&(A=t(0,e(n-c<0?e(h,1)-(c-n):h-n,1))),A=l(A));if(100!==this.sm.v){var f=.01*this.sm.v;0===f&&(f=1e-8);var m=.5-.5*f;A<m?A=0:(A=(A-m)/f)>1&&(A=1)}return A*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var o=n;n=r,r=o}this.finalS=n,this.finalE=r}},l([yt],n),{getTextSelectorProp:function(t,e,i){return new n(t,e,i)}}}();function bi(t,e,i){var n={propType:!1},r=mt.getProp,o=e.a;this.a={r:o.r?r(t,o.r,0,C,i):n,rx:o.rx?r(t,o.rx,0,C,i):n,ry:o.ry?r(t,o.ry,0,C,i):n,sk:o.sk?r(t,o.sk,0,C,i):n,sa:o.sa?r(t,o.sa,0,C,i):n,s:o.s?r(t,o.s,1,.01,i):n,a:o.a?r(t,o.a,1,0,i):n,o:o.o?r(t,o.o,0,.01,i):n,p:o.p?r(t,o.p,1,0,i):n,sw:o.sw?r(t,o.sw,0,0,i):n,sc:o.sc?r(t,o.sc,1,0,i):n,fc:o.fc?r(t,o.fc,1,0,i):n,fh:o.fh?r(t,o.fh,0,0,i):n,fs:o.fs?r(t,o.fs,0,.01,i):n,fb:o.fb?r(t,o.fb,0,.01,i):n,t:o.t?r(t,o.t,0,0,i):n},this.s=yi.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function vi(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=h(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function Ei(){}vi.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,n=mt.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new bi(this._elem,e,this)
;this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},vi.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E=this._moreOptions.alignment.v,I=this._animatorsData,C=this._textData,B=this.mHelper,w=this._renderType,x=this.renderedLetters.length,Q=t.l;if(this._hasMaskedPath){if(v=this._pathData.m,!this._pathData.n||this._pathData._mdf){var S,k=v.v;for(this._pathData.r.v&&(k=k.reverse()),a={tLength:0,segments:[]},o=k._length-1,m=0,r=0;r<o;r+=1)S=rt.buildBezierData(k.v[r],k.v[r+1],[k.o[r][0]-k.v[r][0],k.o[r][1]-k.v[r][1]],[k.i[r+1][0]-k.v[r+1][0],k.i[r+1][1]-k.v[r+1][1]]),a.tLength+=S.segmentLength,a.segments.push(S),m+=S.segmentLength;r=o,v.v.c&&(S=rt.buildBezierData(k.v[r],k.v[0],[k.o[r][0]-k.v[r][0],k.o[r][1]-k.v[r][1]],[k.i[0][0]-k.v[0][0],k.i[0][1]-k.v[0][1]]),a.tLength+=S.segmentLength,a.segments.push(S),m+=S.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,d=0,h=1,A=0,c=!0,g=a.segments,s<0&&v.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),h=(p=g[d=g.length-1].points).length-1;s<0;)s+=p[h].partialLength,(h-=1)<0&&(h=(p=g[d-=1].points).length-1);u=(p=g[d].points)[h-1],f=(l=p[h]).partialLength}o=Q.length,i=0,n=0;var D,_,R,M,T,F=1.2*t.finalSize*.714,U=!0;R=I.length;var O,G,H,V,Y,z,W,Z,j,q,J,K,X=-1,$=s,tt=d,et=h,it=-1,nt="",ot=this.defaultPropsArray;if(2===t.j||1===t.j){var at=0,st=0,lt=2===t.j?-.5:-1,At=0,ct=!0;for(r=0;r<o;r+=1)if(Q[r].n){for(at&&(at+=st);At<r;)Q[At].animatorJustifyOffset=at,At+=1;at=0,ct=!0}else{for(_=0;_<R;_+=1)(D=I[_].a).t.propType&&(ct&&2===t.j&&(st+=D.t.v*lt),(T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars)).length?at+=D.t.v*T[0]*lt:at+=D.t.v*T*lt);ct=!1}for(at&&(at+=st);At<r;)Q[At].animatorJustifyOffset=at,At+=1}for(r=0;r<o;r+=1){if(B.reset(),V=1,Q[r].n)i=0,n+=t.yOffset,n+=U?1:0,s=$,U=!1,this._hasMaskedPath&&(h=et,u=(p=g[d=tt].points)[h-1],f=(l=p[h]).partialLength,A=0),nt="",J="",j="",K="",ot=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==Q[r].line){switch(t.j){case 1:s+=m-t.lineWidths[Q[r].line];break;case 2:s+=(m-t.lineWidths[Q[r].line])/2}it=Q[r].line}X!==Q[r].ind&&(Q[X]&&(s+=Q[X].extra),s+=Q[r].an/2,X=Q[r].ind),s+=E[0]*Q[r].an*.005;var ht=0;for(_=0;_<R;_+=1)(D=I[_].a).p.propType&&((T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars)).length?ht+=D.p.v[0]*T[0]:ht+=D.p.v[0]*T),D.a.propType&&((T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars)).length?ht+=D.a.v[0]*T[0]:ht+=D.a.v[0]*T);for(c=!0,this._pathData.a.v&&(s=.5*Q[0].an+(m-this._pathData.f.v-.5*Q[0].an-.5*Q[Q.length-1].an)*X/(o-1),s+=this._pathData.f.v);c;)A+f>=s+ht||!p?(y=(s+ht-A)/l.partialLength,G=u.point[0]+(l.point[0]-u.point[0])*y,H=u.point[1]+(l.point[1]-u.point[1])*y,B.translate(-E[0]*Q[r].an*.005,-E[1]*F*.01),c=!1):p&&(A+=l.partialLength,(h+=1)>=p.length&&(h=0,g[d+=1]?p=g[d].points:v.v.c?(h=0,p=g[d=0].points):(A-=l.partialLength,p=null)),p&&(u=l,f=(l=p[h]).partialLength));O=Q[r].an/2-Q[r].add,B.translate(-O,0,0)}else O=Q[r].an/2-Q[r].add,B.translate(-O,0,0),B.translate(-E[0]*Q[r].an*.005,-E[1]*F*.01,0);for(_=0;_<R;_+=1)(D=I[_].a).t.propType&&(T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?T.length?s+=D.t.v*T[0]:s+=D.t.v*T:T.length?i+=D.t.v*T[0]:i+=D.t.v*T));for(t.strokeWidthAnim&&(z=t.sw||0),t.strokeColorAnim&&(Y=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(W=[t.fc[0],t.fc[1],t.fc[2]]),_=0;_<R;_+=1)(D=I[_].a).a.propType&&((T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars)).length?B.translate(-D.a.v[0]*T[0],-D.a.v[1]*T[1],D.a.v[2]*T[2]):B.translate(-D.a.v[0]*T,-D.a.v[1]*T,D.a.v[2]*T));for(_=0;_<R;_+=1)(D=I[_].a).s.propType&&((T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars)).length?B.scale(1+(D.s.v[0]-1)*T[0],1+(D.s.v[1]-1)*T[1],1):B.scale(1+(D.s.v[0]-1)*T,1+(D.s.v[1]-1)*T,1));for(_=0;_<R;_+=1){if(D=I[_].a,T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars),D.sk.propType&&(T.length?B.skewFromAxis(-D.sk.v*T[0],D.sa.v*T[1]):B.skewFromAxis(-D.sk.v*T,D.sa.v*T)),D.r.propType&&(T.length?B.rotateZ(-D.r.v*T[2]):B.rotateZ(-D.r.v*T)),D.ry.propType&&(T.length?B.rotateY(D.ry.v*T[1]):B.rotateY(D.ry.v*T)),D.rx.propType&&(T.length?B.rotateX(D.rx.v*T[0]):B.rotateX(D.rx.v*T)),D.o.propType&&(T.length?V+=(D.o.v*T[0]-V)*T[0]:V+=(D.o.v*T-V)*T),t.strokeWidthAnim&&D.sw.propType&&(T.length?z+=D.sw.v*T[0]:z+=D.sw.v*T),t.strokeColorAnim&&D.sc.propType)for(Z=0;Z<3;Z+=1)T.length?Y[Z]+=(D.sc.v[Z]-Y[Z])*T[0]:Y[Z]+=(D.sc.v[Z]-Y[Z])*T;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(Z=0;Z<3;Z+=1)T.length?W[Z]+=(D.fc.v[Z]-W[Z])*T[0]:W[Z]+=(D.fc.v[Z]-W[Z])*T;D.fh.propType&&(W=T.length?P(W,D.fh.v*T[0]):P(W,D.fh.v*T)),D.fs.propType&&(W=T.length?L(W,D.fs.v*T[0]):L(W,D.fs.v*T)),D.fb.propType&&(W=T.length?N(W,D.fb.v*T[0]):N(W,D.fb.v*T))}}for(_=0;_<R;_+=1)(D=I[_].a).p.propType&&(T=I[_].s.getMult(Q[r].anIndexes[_],C.a[_].s.totalChars),this._hasMaskedPath?T.length?B.translate(0,D.p.v[1]*T[0],-D.p.v[2]*T[1]):B.translate(0,D.p.v[1]*T,-D.p.v[2]*T):T.length?B.translate(D.p.v[0]*T[0],D.p.v[1]*T[1],-D.p.v[2]*T[2]):B.translate(D.p.v[0]*T,D.p.v[1]*T,-D.p.v[2]*T));if(t.strokeWidthAnim&&(j=z<0?0:z),t.strokeColorAnim&&(q="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),t.fillColorAnim&&t.fc&&(J="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),this._hasMaskedPath){if(B.translate(0,-t.ls),B.translate(0,E[1]*F*.01+n,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var dt=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(dt+=180),B.rotate(-dt*Math.PI/180)}B.translate(G,H,0),s-=E[0]*Q[r].an*.005,Q[r+1]&&X!==Q[r+1].ind&&(s+=Q[r].an/2,s+=.001*t.tr*t.finalSize)}else{switch(B.translate(i,n,0),t.ps&&B.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:B.translate(Q[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[Q[r].line]),0,0);break;case 2:B.translate(Q[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[Q[r].line])/2,0,0)}B.translate(0,-t.ls),B.translate(O,0,0),B.translate(E[0]*Q[r].an*.005,E[1]*F*.01,0),i+=Q[r].l+.001*t.tr*t.finalSize}"html"===w?nt=B.toCSS():"svg"===w?nt=B.to2dCSS():ot=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],K=V}x<=r?(M=new fi(K,j,q,J,nt,ot),this.renderedLetters.push(M),x+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[r],this.lettersChangedFlag=M.update(K,j,q,J,nt,ot)||this.lettersChangedFlag)}}},vi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},vi.prototype.mHelper=new xt,vi.prototype.defaultPropsArray=[],l([yt],vi),Ei.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new mi(this,t.t,this.dynamicProperties),this.textAnimator=new vi(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},Ei.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},Ei.prototype.createPathShape=function(t,e){var i,n,r=e.length,o="";for(i=0;i<r;i+=1)"sh"===e[i].ty&&(n=e[i].ks.k,o+=ui(n,n.i.length,!0,t));return o},Ei.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},Ei.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},
Ei.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},Ei.prototype.applyTextPropertiesToMatrix=function(t,e,i,n,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(n,r,0)},Ei.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},Ei.prototype.emptyProp=new fi,Ei.prototype.destroy=function(){},Ei.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var Ii={shapes:[]};function Ci(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function Bi(t,e,i){this.initElement(t,e,i)}function wi(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function xi(){}function Qi(){}function Si(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?h(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?mt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function ki(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=H("svg");var i="";if(e&&e.title){var n=H("title"),r=M();n.setAttribute("id",r),n.textContent=e.title,this.svgElement.appendChild(n),i+=r}if(e&&e.description){var o=H("desc"),a=M();o.setAttribute("id",a),o.textContent=e.description,this.svgElement.appendChild(o),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var s=H("defs");this.svgElement.appendChild(s);var l=H("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return l([Te,Oe,je,qe,Fe,Je,Ei],Ci),Ci.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=H("text"))},Ci.prototype.buildTextContents=function(t){for(var e=0,i=t.length,n=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(r),r=""):r+=t[e],e+=1;return n.push(r),n},Ci.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},Ci.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=h(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var r=i.fWeight,o=i.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var a,s=i.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var A=this.mHelper,c=this.data.singleShape,d=0,u=0,p=!0,g=.001*i.tr*i.finalSize;if(!c||l||i.sz){var f,m=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(a=m>t?this.textSpans[t].span:H(l?"g":"text"),m<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=H("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(A.reset(),c&&(s[t].n&&(d=-g,u+=i.yOffset,u+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(i,A,s[t].line,d,u),d+=s[t].l||0,d+=g),l){var b;if(1===(f=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)b=new Si(f.data,this.globalData,this);else{var v=Ii;f.data&&f.data.shapes&&(v=this.buildShapeData(f.data,i.finalSize)),b=new gi(v,this.globalData,this)}if(this.textSpans[t].glyph){var E=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(E.layerElement),E.destroy()}this.textSpans[t].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[t].childSpan.appendChild(b.layerElement),1===f.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+A.props[12]+","+A.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var I=this.textContainer,C="start";switch(i.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}I.setAttribute("text-anchor",C),I.setAttribute("letter-spacing",g);var B=this.buildTextContents(i.finalText);for(e=B.length,u=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||H("tspan")).textContent=B[t],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",I.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(I)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Ci.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},Ci.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},Ci.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,n,r,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=o[t],n=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&n.setAttribute("transform",i.m),i._mdf.o&&n.setAttribute("opacity",i.o),i._mdf.sw&&n.setAttribute("stroke-width",i.sw),i._mdf.sc&&n.setAttribute("stroke",i.sc),i._mdf.fc&&n.setAttribute("fill",i.fc))}},l([Ke],Bi),Bi.prototype.createContent=function(){var t=H("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},wi.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},wi.prototype.renderFrame=function(){},wi.prototype.getBaseElement=function(){return null},wi.prototype.destroy=function(){},wi.prototype.sourceRectAtTime=function(){},wi.prototype.hide=function(){},l([Te,Oe,qe,Fe],wi),l([Pe],xi),xi.prototype.createNull=function(t){return new wi(t,this.globalData,this)},xi.prototype.createShape=function(t){
return new gi(t,this.globalData,this)},xi.prototype.createText=function(t){return new Ci(t,this.globalData,this)},xi.prototype.createImage=function(t){return new Ke(t,this.globalData,this)},xi.prototype.createSolid=function(t){return new Bi(t,this.globalData,this)},xi.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=H("clipPath"),n=H("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var r=M();i.setAttribute("id",r),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+a()+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=h(t.layers.length)},xi.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},xi.prototype.updateContainerSize=function(){},xi.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},xi.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,U()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var r=e[n].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(n),this.addPendingElement(i)}}},xi.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[n].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},xi.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},xi.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var n,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(i,n):this.layerElement.appendChild(i)}},xi.prototype.hide=function(){this.layerElement.style.display="none"},xi.prototype.show=function(){this.layerElement.style.display="block"},l([Te,Oe,qe,Fe,Je],Qi),Qi.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Qi.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Qi.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Qi.prototype.setElements=function(t){this.elements=t},Qi.prototype.getElements=function(){return this.elements},Qi.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Qi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},l([xi,Qi,je],Si),Si.prototype.createComp=function(t){return new Si(t,this.globalData,this)},l([xi],ki),ki.prototype.createComp=function(t){return new Si(t,this.globalData,this)},function(t,e){q[t]=e}("svg",ki),Nt.registerModifier("tm",Ut),Nt.registerModifier("pb",Ot),Nt.registerModifier("rp",Ht),Nt.registerModifier("rd",Vt),Nt.registerModifier("zz",ae),Nt.registerModifier("op",me),St}())},1009:t=>{t.exports=Math.abs},1219:t=>{t.exports=Math.floor},2659:t=>{t.exports=Math.max},7905:t=>{t.exports=Math.min},6219:t=>{t.exports=Math.pow},656:t=>{var e=function(t){return t!=t};t.exports=function(t,i){return 0===t&&0===i?1/t==1/i:t===i||!(!e(t)||!e(i))}},9068:(t,e,i)=>{var n=i(4938),r=i(7695),o=i(656),a=i(2197),s=i(9235),l=r(a(),Object);n(l,{getPolyfill:a,implementation:o,shim:s}),t.exports=l},2197:(t,e,i)=>{var n=i(656);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9235:(t,e,i)=>{var n=i(2197),r=i(4938);t.exports=function(){var t=n();return r(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5717:(t,e,i)=>{var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=i(4635),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),A=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,i="[object Function]"===o.call(t),n=a(t),s=e&&"[object String]"===o.call(t),d=[];if(!e&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var p=A&&i;if(s&&t.length>0&&!r.call(t,0))for(var g=0;g<t.length;++g)d.push(String(g));if(n&&t.length>0)for(var f=0;f<t.length;++f)d.push(String(f));else for(var m in t)p&&"prototype"===m||!r.call(t,m)||d.push(String(m))
;if(l)for(var y=function(t){if("undefined"==typeof window||!u)return h(t);try{return h(t)}catch(t){return!1}}(t),b=0;b<c.length;++b)y&&"constructor"===c[b]||!r.call(t,c[b])||d.push(c[b]);return d}}t.exports=n},5187:(t,e,i)=>{var n=Array.prototype.slice,r=i(4635),o=Object.keys,a=o?function(t){return o(t)}:i(5717),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return r(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},4635:t=>{var e=Object.prototype.toString;t.exports=function(t){var i=e.call(t),n="[object Arguments]"===i;return n||(n="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1924:(t,e,i)=>{var n=i(5187),r=i(9712)(),o=i(7412),a=i(6365),s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),A=r?a.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var i=a(t);if(1===arguments.length)return i;for(var o=1;o<arguments.length;++o){var c=a(arguments[o]),h=n(c),d=r&&(a.getOwnPropertySymbols||A);if(d)for(var u=d(c),p=0;p<u.length;++p){var g=u[p];l(c,g)&&s(h,g)}for(var f=0;f<h.length;++f){var m=h[f];if(l(c,m)){var y=c[m];i[m]=y}}}return i}},3921:(t,e,i)=>{var n=i(1924);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),i={},n=0;n<e.length;++n)i[e[n]]=e[n];var r=Object.assign({},i),o="";for(var a in r)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9773:t=>{t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5409:t=>{var e,i,n=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var s,l=[],A=!1,c=-1;function h(){A&&s&&(A=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!A){var t=a(h);A=!0;for(var e=l.length;e;){for(s=l,l=[];++c<e;)s&&s[c].run();c=-1,e=l.length}s=null,A=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function u(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new u(t,e)),1!==l.length||A||a(d)},u.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},7755:(t,e,i)=>{var n=i(3711),r=i(22),o=i(491)(),a=i(5667),s=i(1102),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new s("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,A=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(A=!1)}return(n||A||!i)&&(o?r(t,"length",e,!0,!0):r(t,"length",e)),t}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},4634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:t=>{
t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'},6640:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},515:(t,e,i)=>{var n=i(6531),r=i(3034),o=i(9033),a=i(6);function s(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,A="undefined"!=typeof Symbol,c=s(Object.prototype.toString),h=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),u=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(A)var g=s(Symbol.prototype.valueOf);function f(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===c(t)}function y(t){return"[object Set]"===c(t)}function b(t){return"[object WeakMap]"===c(t)}function v(t){return"[object WeakSet]"===c(t)}function E(t){return"[object ArrayBuffer]"===c(t)}function I(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function C(t){return"[object DataView]"===c(t)}function B(t){return"undefined"!=typeof DataView&&(C.working?C(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=r,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||B(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(y.working?y(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=I,C.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&C(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=B;var w="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(t){return"[object SharedArrayBuffer]"===c(t)}function Q(t){return void 0!==w&&(void 0===x.working&&(x.working=x(new w)),x.working?x(t):t instanceof w)}function S(t){return f(t,h)}function k(t){return f(t,d)}function D(t){return f(t,u)}function _(t){return l&&f(t,p)}function R(t){return A&&f(t,g)}e.isSharedArrayBuffer=Q,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},
e.isNumberObject=S,e.isStringObject=k,e.isBooleanObject=D,e.isBigIntObject=_,e.isSymbolObject=R,e.isBoxedPrimitive=function(t){return S(t)||k(t)||D(t)||_(t)||R(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(I(t)||Q(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},1344:(t,e,i)=>{var n=i(5409),r=i(4399),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++)i[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return i},a=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(c(arguments[i]));return e.join(" ")}i=1;for(var n=arguments,r=n.length,o=String(t).replace(a,(function(t){if("%%"===t)return"%";if(i>=r)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return t}})),s=n[i];i<r;s=n[++i])y(s)||!C(s)?o+=" "+s:o+=" "+c(s);return o},e.deprecate=function(t,i){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,i).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?r.trace(i):r.error(i),o=!0}return t.apply(this,arguments)}};var s={},l=/^$/;if(n.env.NODE_DEBUG){var A=n.env.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+A+"$","i")}function c(t,i){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(i)?n.showHidden=i:i&&e._extend(n,i),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=h),u(n,t,n.depth)}function h(t,e){var i=c.styles[e];return i?"["+c.colors[i][0]+"m"+t+"["+c.colors[i][1]+"m":t}function d(t,e){return t}function u(t,i,n){if(t.customInspect&&i&&x(i.inspect)&&i.inspect!==e.inspect&&(!i.constructor||i.constructor.prototype!==i)){var r=i.inspect(n,t);return v(r)||(r=u(t,r,n)),r}var o=function(t,e){if(E(e))return t.stylize("undefined","undefined");if(v(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return b(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,i);if(o)return o;var a,s=Object.keys(i),l=(a={},s.forEach((function(t,e){a[t]=!0})),a);if(t.showHidden&&(s=Object.getOwnPropertyNames(i)),w(i)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(i);if(0===s.length){if(x(i)){var A=i.name?": "+i.name:"";return t.stylize("[Function"+A+"]","special")}if(I(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(B(i))return t.stylize(Date.prototype.toString.call(i),"date");if(w(i))return p(i)}var c,h="",d=!1,C=["{","}"];return f(i)&&(d=!0,C=["[","]"]),x(i)&&(h=" [Function"+(i.name?": "+i.name:"")+"]"),I(i)&&(h=" "+RegExp.prototype.toString.call(i)),B(i)&&(h=" "+Date.prototype.toUTCString.call(i)),w(i)&&(h=" "+p(i)),0!==s.length||d&&0!=i.length?n<0?I(i)?t.stylize(RegExp.prototype.toString.call(i),"regexp"):t.stylize("[Object]","special"):(t.seen.push(i),c=d?function(t,e,i,n,r){for(var o=[],a=0,s=e.length;a<s;++a)D(e,String(a))?o.push(g(t,e,i,n,String(a),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(g(t,e,i,n,r,!0))})),o}(t,i,n,l,s):s.map((function(e){return g(t,i,n,l,e,d)})),t.seen.pop(),function(t,e,i){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?i[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+i[1]:i[0]+e+" "+t.join(", ")+" "+i[1]}(c,h,C)):C[0]+h+C[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,i,n,r,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),D(n,r)||(a="["+r+"]"),s||(t.seen.indexOf(l.value)<0?(s=y(i)?u(t,l.value,null):u(t,l.value,i-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return"  "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return"   "+t})).join("\n")):s=t.stylize("[Circular]","special")),E(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function f(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function b(t){return"number"==typeof t}function v(t){return"string"==typeof t}function E(t){return void 0===t}function I(t){return C(t)&&"[object RegExp]"===Q(t)}function C(t){return"object"==typeof t&&null!==t}function B(t){return C(t)&&"[object Date]"===Q(t)}function w(t){return C(t)&&("[object Error]"===Q(t)||t instanceof Error)}function x(t){return"function"==typeof t}function Q(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(l.test(t)){var i=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);r.error("%s %d: %s",t,i,n)}}else s[t]=function(){};return s[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=i(515),e.isArray=f,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=E,e.isRegExp=I,e.types.isRegExp=I,e.isObject=C,e.isDate=B,e.types.isDate=B,e.isError=w,e.types.isNativeError=w,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=i(6640);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,i;r.log("%s - %s",(i=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],i].join(" ")),e.format.apply(e,arguments))},e.inherits=i(1193),e._extend=function(t,e){if(!e||!C(e))return t;for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t};var _="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var i=new Error("Promise was rejected with a falsy value");i.reason=t,t=i}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(_&&t[_]){var e;if("function"!=typeof(e=t[_]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,_,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,i,n=new Promise((function(t,n){e=t,i=n})),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push((function(t,n){t?i(t):e(n)}));try{t.apply(this,r)}catch(t){i(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),_&&Object.defineProperty(e,_,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,o(t))},e.promisify.custom=_,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return r.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(R.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),
Object.defineProperties(e,o(t)),e}},9033:(t,e,i)=>{var n=i(4086),r=i(4379),o=i(7695),a=i(7412),s=i(5667),l=a("Object.prototype.toString"),A=i(7185)(),c="undefined"==typeof globalThis?i.g:globalThis,h=r(),d=a("String.prototype.slice"),u=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(t,e){for(var i=0;i<t.length;i+=1)if(t[i]===e)return i;return-1},g={__proto__:null};n(h,A&&s&&u?function(t){var e=new c[t];if(Symbol.toStringTag in e){var i=u(e),n=s(i,Symbol.toStringTag);if(!n){var r=u(i);n=s(r,Symbol.toStringTag)}g["$"+t]=o(n.get)}}:function(t){var e=new c[t],i=e.slice||e.set;i&&(g["$"+t]=o(i))}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!A){var e=d(l(t),8,-1);return p(h,e)>-1?e:"Object"===e&&(i=t,r=!1,n(g,(function(t,e){if(!r)try{t(i),r=d(e,1)}catch(t){}})),r)}var i,r;return s?function(t){var e=!1;return n(g,(function(i,n){if(!e)try{"$"+i(t)===n&&(e=d(n,1))}catch(t){}})),e}(t):null}},4379:(t,e,i)=>{var n=i(9773),r="undefined"==typeof globalThis?i.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof r[n[e]]&&(t[t.length]=n[e]);return t}}},Nt={};function Pt(t){var e=Nt[t];if(void 0!==e)return e.exports;var i=Nt[t]={id:t,exports:{}};return Lt[t].call(i.exports,i,i.exports,Pt),i.exports}Pt.amdO={},Pt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Pt.d(e,{a:e}),e},Pt.d=(t,e)=>{for(var i in e)Pt.o(e,i)&&!Pt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Pt.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),Pt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Pt.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var Ut={};(()=>{Pt.d(Ut,{A:()=>O});var t={};Pt.r(t),Pt.d(t,{threeCoin:()=>e,threeCoined:()=>i,threeCollect:()=>n,threeCollected:()=>o,threeCyc:()=>a,threeLike:()=>s,threeLikeed:()=>l,voteBg:()=>A})
;const e=JSON.parse('{"v":"5.7.1","fr":30,"ip":0,"op":90,"w":200,"h":200,"nm":"web_投币","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"nm":"烟花_蓝","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[125,125,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":44,"op":74,"st":44,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"投币","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[4]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58,"s":[-10]},{"t":61,"s":[0]}],"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":45,"s":[41.625,41.625,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":46,"s":[42,42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":49,"s":[32.5,32.5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":57,"s":[52.5,52.5,100]},{"t":62,"s":[41.625,41.625,100]}],"ix":6,"x":"var $bm_rt;\\nvar amp, freq, decay, n, t, v;\\ntry {\\n    amp = $bm_div(effect(\'\\\\u7f29\\\\u653e - Overshoot\')(\'ADBE Slider Control-0001\'), 2.5), freq = $bm_div(effect(\'\\\\u7f29\\\\u653e - Bounce\')(\'ADBE Slider Control-0001\'), 20), decay = $bm_div(effect(\'\\\\u7f29\\\\u653e - Friction\')(\'ADBE Slider Control-0001\'), 20), n = 0, 0 < numKeys && (n = nearestKey(time).index, key(n).time > time && n--), t = 0 === n ? 0 : $bm_sub(time, key(n).time), $bm_rt = 0 < n ? (v = velocityAtTime($bm_sub(key(n).time, $bm_div(thisComp.frameDuration, 10))), $bm_sum(value, $bm_div($bm_mul($bm_mul($bm_div(v, 100), amp), Math.sin($bm_mul($bm_mul($bm_mul(freq, t), 2), Math.PI))), Math.exp($bm_mul(decay, t))))) : value;\\n} catch (e$$4) {\\n    $bm_rt = value = value;\\n}"}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.65,0],[0,5.52],[-5.52,0],[0,-5.52],[1.88,-1.87]],"o":[[-5.52,0],[0,-5.52],[5.52,0],[0,2.65],[-1.87,1.88]],"v":[[0,10],[-10,0],[0,-10],[10,0],[7.07,7.07]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0.4],[0.4,0],[0,0],[0,-0.39],[-0.39,0],[0,0],[0,0],[0.01,-2.4],[0,0],[-0.39,0],[0,0.4],[0,0],[-1.61,0.11],[0,0],[-0.22,-0.13],[-0.22,0.13],[0,0.26],[0,0],[0,-1.61],[0,0],[-0.4,0],[0,0.39],[0,0],[2.4,0.12],[0,0],[0,0]],"o":[[0,0],[0.4,0],[0,-0.39],[0,0],[-0.39,0],[0,0.4],[0,0],[0,0],[-2.39,0.12],[0,0],[0,0.4],[0.4,0],[0,0],[0,-1.61],[0,0],[0,0.26],[0.22,0.13],[0.22,-0.13],[0,0],[1.61,0.12],[0,0],[0,0.39],[0.39,0],[0,0],[-0.01,-2.4],[0,0],[0,0],[0,0]],"v":[[0.71,-4.284],[3.09,-4.284],[3.81,-5.004],[3.09,-5.714],[-3.1,-5.714],[-3.81,-5.004],[-3.1,-4.284],[-0.72,-4.284],[-0.72,-3.064],[-5,1.426],[-5,2.376],[-4.29,3.096],[-3.57,2.376],[-3.57,1.426],[-0.71,-1.634],[-0.71,5.026],[-0.36,5.646],[0.36,5.646],[0.71,5.026],[0.71,-1.634],[3.57,1.426],[3.57,2.386],[4.29,3.096],[5,2.386],[5,1.426],[0.71,-3.064],[0.71,-3.064],[0.71,-4.284]],"c":true},"ix":2},"nm":"路径 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"组 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"mm","mm":1,"nm":"合并路径 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":44,"s":[1,1,1,1]},{"t":50,"s":[0,0.631372570992,0.839215695858,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[600,600],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Shape","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1800,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"圆 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.8,"s":[60]},{"t":13.2,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[-9.464,8.555,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.24,0.24],"y":[1,1]},"o":{"x":[0.18,0.18],"y":[0,0]},"t":1.2,"s":[0,0]},{"i":{"x":[0.28,0.28],"y":[1,1]},"o":{"x":[0.17,0.17],"y":[0,0]},"t":7.2,"s":[0,0]},{"t":12,"s":[120,120]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.26],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":1.2,"s":[60]},{"i":{"x":[0.22],"y":[1]},"o":{"x":[0.167],"y":[0.083]},"t":7.2,"s":[60]},{"t":12,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-9.464,8.555],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":0,"nm":"烟花预合成 大_蓝","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":0,"nm":"烟花预合成 小_蓝","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"烟花大 16","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7.2,"s":[100]},{"t":14.4,"s":[100]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":16.8,"s":[10,10]},{"t":19.2,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-10.633,0],"ti":[10.633,0]},{"t":14.4,"s":[0,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"nm":"矩形路径 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[92,92],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"矩形 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"预合成 小","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.4,"s":[60]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16.8,"s":[60]},{"t":30,"s":[40]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":18,"s":[10,10]},{"t":21.6,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-20.133,0],"ti":[20.133,0]},{"t":15.6,"s":[-57,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"nm":"矩形路径 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[60,60],"ix":3},"r":{"a":0,"k":22.5,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"矩形 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":1.2,"op":28.8,"st":1.2,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"投币_蓝","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":14,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":32.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":39.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":43,"s":[10]},{"t":46.5,"s":[0]}],"ix":10},"p":{"a":0,"k":[100,100.167,0],"ix":2},"a":{"a":0,"k":[100,100,0],"ix":1},"s":{"a":0,"k":[82,82,100],"ix":6}},"ao":0,"w":200,"h":200,"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'),i=JSON.parse('{"v":"5.7.1","fr":30,"ip":0,"op":90,"w":200,"h":200,"ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[125,125,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":44,"op":74,"st":44,"bm":0},{"ddd":0,"ind":4,"ty":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[4]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58,"s":[-10]},{"t":61,"s":[0]}],"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":45,"s":[41.625,41.625,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":46,"s":[42,42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":49,"s":[32.5,32.5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":57,"s":[52.5,52.5,100]},{"t":62,"s":[41.625,41.625,100]}],"ix":6,"x":"var $bm_rt;\\nvar amp, freq, decay, n, t, v;\\ntry {\\n    amp = $bm_div(effect(\'\\\\u7f29\\\\u653e - Overshoot\')(\'ADBE Slider Control-0001\'), 2.5), freq = $bm_div(effect(\'\\\\u7f29\\\\u653e - Bounce\')(\'ADBE Slider Control-0001\'), 20), decay = $bm_div(effect(\'\\\\u7f29\\\\u653e - Friction\')(\'ADBE Slider Control-0001\'), 20), n = 0, 0 < numKeys && (n = nearestKey(time).index, key(n).time > time && n--), t = 0 === n ? 0 : $bm_sub(time, key(n).time), $bm_rt = 0 < n ? (v = velocityAtTime($bm_sub(key(n).time, $bm_div(thisComp.frameDuration, 10))), $bm_sum(value, $bm_div($bm_mul($bm_mul($bm_div(v, 100), amp), Math.sin($bm_mul($bm_mul($bm_mul(freq, t), 2), Math.PI))), Math.exp($bm_mul(decay, t))))) : value;\\n} catch (e$$4) {\\n    $bm_rt = value = value;\\n}"}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.65,0],[0,5.52],[-5.52,0],[0,-5.52],[1.88,-1.87]],"o":[[-5.52,0],[0,-5.52],[5.52,0],[0,2.65],[-1.87,1.88]],"v":[[0,10],[-10,0],[0,-10],[10,0],[7.07,7.07]],"c":true},"ix":2},"hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0.4],[0.4,0],[0,0],[0,-0.39],[-0.39,0],[0,0],[0,0],[0.01,-2.4],[0,0],[-0.39,0],[0,0.4],[0,0],[-1.61,0.11],[0,0],[-0.22,-0.13],[-0.22,0.13],[0,0.26],[0,0],[0,-1.61],[0,0],[-0.4,0],[0,0.39],[0,0],[2.4,0.12],[0,0],[0,0]],"o":[[0,0],[0.4,0],[0,-0.39],[0,0],[-0.39,0],[0,0.4],[0,0],[0,0],[-2.39,0.12],[0,0],[0,0.4],[0.4,0],[0,0],[0,-1.61],[0,0],[0,0.26],[0.22,0.13],[0.22,-0.13],[0,0],[1.61,0.12],[0,0],[0,0.39],[0.39,0],[0,0],[-0.01,-2.4],[0,0],[0,0],[0,0]],"v":[[0.71,-4.284],[3.09,-4.284],[3.81,-5.004],[3.09,-5.714],[-3.1,-5.714],[-3.81,-5.004],[-3.1,-4.284],[-0.72,-4.284],[-0.72,-3.064],[-5,1.426],[-5,2.376],[-4.29,3.096],[-3.57,2.376],[-3.57,1.426],[-0.71,-1.634],[-0.71,5.026],[-0.36,5.646],[0.36,5.646],[0.71,5.026],[0.71,-1.634],[3.57,1.426],[3.57,2.386],[4.29,3.096],[5,2.386],[5,1.426],[0.71,-3.064],[0.71,-3.064],[0.71,-4.284]],"c":true},"ix":2},"hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[600,600],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":1800,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.8,"s":[60]},{"t":13.2,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[-9.464,8.555,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.24,0.24],"y":[1,1]},"o":{"x":[0.18,0.18],"y":[0,0]},"t":1.2,"s":[0,0]},{"i":{"x":[0.28,0.28],"y":[1,1]},"o":{"x":[0.17,0.17],"y":[0,0]},"t":7.2,"s":[0,0]},{"t":12,"s":[120,120]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.26],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":1.2,"s":[60]},{"i":{"x":[0.22],"y":[1]},"o":{"x":[0.167],"y":[0.083]},"t":7.2,"s":[60]},{"t":12,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[-9.464,8.555],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7.2,"s":[100]},{"t":14.4,"s":[100]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":16.8,"s":[10,10]},{"t":19.2,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-10.633,0],"ti":[10.633,0]},{"t":14.4,"s":[0,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[92,92],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.4,"s":[60]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16.8,"s":[60]},{"t":30,"s":[40]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":18,"s":[10,10]},{"t":21.6,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-20.133,0],"ti":[20.133,0]},{"t":15.6,"s":[-57,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[60,60],"ix":3},"r":{"a":0,"k":22.5,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":1.2,"op":28.8,"st":1.2,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":14,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":32.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":39.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":43,"s":[10]},{"t":46.5,"s":[0]}],"ix":10},"p":{"a":0,"k":[100,100.167,0],"ix":2},"a":{"a":0,"k":[100,100,0],"ix":1},"s":{"a":0,"k":[82,82,100],"ix":6}},"ao":0,"w":200,"h":200,"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'),n=JSON.parse('{"v":"5.7.1","fr":30,"ip":0,"op":90,"w":200,"h":200,"ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[125,125,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":46,"op":76,"st":46,"bm":0},{"ddd":0,"ind":4,"ty":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[4]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58,"s":[-10]},{"t":61,"s":[0]}],"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":46,"s":[42,42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":49,"s":[32.5,32.5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":57,"s":[52.5,52.5,100]},{"t":62,"s":[42,42,100]}],"ix":6,"x":"var $bm_rt;\\nvar amp, freq, decay, n, t, v;\\ntry {\\n    amp = $bm_div(effect(\'\\\\u7f29\\\\u653e - Overshoot\')(\'ADBE Slider Control-0001\'), 2.5), freq = $bm_div(effect(\'\\\\u7f29\\\\u653e - Bounce\')(\'ADBE Slider Control-0001\'), 20), decay = $bm_div(effect(\'\\\\u7f29\\\\u653e - Friction\')(\'ADBE Slider Control-0001\'), 20), n = 0, 0 < numKeys && (n = nearestKey(time).index, key(n).time > time && n--), t = 0 === n ? 0 : $bm_sub(time, key(n).time), $bm_rt = 0 < n ? (v = velocityAtTime($bm_sub(key(n).time, $bm_div(thisComp.frameDuration, 10))), $bm_sum(value, $bm_div($bm_mul($bm_mul($bm_div(v, 100), amp), Math.sin($bm_mul($bm_mul($bm_mul(freq, t), 2), Math.PI))), Math.exp($bm_mul(decay, t))))) : value;\\n} catch (e$$4) {\\n    $bm_rt = value = value;\\n}"}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0.35,0.83],[0,0],[0.55,-1.12],[0,0],[0.9,-0.14],[0,0],[-0.83,-0.83],[0,0],[0.14,-0.9],[0,0],[-1.04,0.56],[0,0],[-0.83,-0.49],[0,0],[0.14,1.18],[0,0],[-0.62,0.63],[0,0],[1.12,0.14]],"o":[[0,0],[-0.9,-0.14],[0,0],[-0.48,-1.12],[0,0],[-0.42,0.83],[0,0],[-1.12,0.14],[0,0],[0.62,0.63],[0,0],[-0.21,1.18],[0,0],[0.83,-0.49],[0,0],[1.04,0.56],[0,0],[-0.14,-0.9],[0,0],[0.83,-0.83],[0,0]],"v":[[8.56,-3.399],[4.94,-3.949],[2.85,-5.549],[1.25,-8.889],[-1.32,-8.889],[-2.85,-5.549],[-4.94,-3.949],[-8.56,-3.399],[-9.33,-1.029],[-6.61,1.751],[-5.85,4.191],[-6.47,8.091],[-4.39,9.551],[-1.32,7.881],[1.39,7.881],[4.46,9.551],[6.54,8.091],[5.85,4.191],[6.61,1.751],[9.33,-1.029],[8.56,-3.399]],"c":false},"ix":2},"hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[1,1,1,1]},{"t":49,"s":[0,0.631372570992,0.839215695858,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[600,600],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":1800,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.8,"s":[60]},{"t":13.2,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[-9.464,8.555,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.24,0.24],"y":[1,1]},"o":{"x":[0.18,0.18],"y":[0,0]},"t":1.2,"s":[0,0]},{"i":{"x":[0.28,0.28],"y":[1,1]},"o":{"x":[0.17,0.17],"y":[0,0]},"t":7.2,"s":[0,0]},{"t":12,"s":[120,120]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.26],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":1.2,"s":[60]},{"i":{"x":[0.22],"y":[1]},"o":{"x":[0.167],"y":[0.083]},"t":7.2,"s":[60]},{"t":12,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[-9.464,8.555],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7.2,"s":[100]},{"t":14.4,"s":[100]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":16.8,"s":[10,10]},{"t":19.2,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-10.633,0],"ti":[10.633,0]},{"t":14.4,"s":[0,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[92,92],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.4,"s":[60]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16.8,"s":[60]},{"t":30,"s":[40]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":18,"s":[10,10]},{"t":21.6,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-20.133,0],"ti":[20.133,0]},{"t":15.6,"s":[-57,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[60,60],"ix":3},"r":{"a":0,"k":22.5,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":1.2,"op":28.8,"st":1.2,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.001,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":14,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18.001,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.001,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25.501,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":32.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":40,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":43.001,"s":[10]},{"t":46.5,"s":[0]}],"ix":10},"p":{"a":0,"k":[99,99.667,0],"ix":2},"a":{"a":0,"k":[100,100,0],"ix":1},"s":{"a":0,"k":[82,82,100],"ix":6}},"ao":0,"w":200,"h":200,"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'),o=JSON.parse('{"v":"5.7.1","fr":30,"ip":0,"op":90,"w":200,"h":200,"ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[125,125,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":46,"op":76,"st":46,"bm":0},{"ddd":0,"ind":4,"ty":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[4]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58,"s":[-10]},{"t":61,"s":[0]}],"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":46,"s":[42,42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":49,"s":[32.5,32.5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":57,"s":[52.5,52.5,100]},{"t":62,"s":[42,42,100]}],"ix":6,"x":"var $bm_rt;\\nvar amp, freq, decay, n, t, v;\\ntry {\\n    amp = $bm_div(effect(\'\\\\u7f29\\\\u653e - Overshoot\')(\'ADBE Slider Control-0001\'), 2.5), freq = $bm_div(effect(\'\\\\u7f29\\\\u653e - Bounce\')(\'ADBE Slider Control-0001\'), 20), decay = $bm_div(effect(\'\\\\u7f29\\\\u653e - Friction\')(\'ADBE Slider Control-0001\'), 20), n = 0, 0 < numKeys && (n = nearestKey(time).index, key(n).time > time && n--), t = 0 === n ? 0 : $bm_sub(time, key(n).time), $bm_rt = 0 < n ? (v = velocityAtTime($bm_sub(key(n).time, $bm_div(thisComp.frameDuration, 10))), $bm_sum(value, $bm_div($bm_mul($bm_mul($bm_div(v, 100), amp), Math.sin($bm_mul($bm_mul($bm_mul(freq, t), 2), Math.PI))), Math.exp($bm_mul(decay, t))))) : value;\\n} catch (e$$4) {\\n    $bm_rt = value = value;\\n}"}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0.35,0.83],[0,0],[0.55,-1.12],[0,0],[0.9,-0.14],[0,0],[-0.83,-0.83],[0,0],[0.14,-0.9],[0,0],[-1.04,0.56],[0,0],[-0.83,-0.49],[0,0],[0.14,1.18],[0,0],[-0.62,0.63],[0,0],[1.12,0.14]],"o":[[0,0],[-0.9,-0.14],[0,0],[-0.48,-1.12],[0,0],[-0.42,0.83],[0,0],[-1.12,0.14],[0,0],[0.62,0.63],[0,0],[-0.21,1.18],[0,0],[0.83,-0.49],[0,0],[1.04,0.56],[0,0],[-0.14,-0.9],[0,0],[0.83,-0.83],[0,0]],"v":[[8.56,-3.399],[4.94,-3.949],[2.85,-5.549],[1.25,-8.889],[-1.32,-8.889],[-2.85,-5.549],[-4.94,-3.949],[-8.56,-3.399],[-9.33,-1.029],[-6.61,1.751],[-5.85,4.191],[-6.47,8.091],[-4.39,9.551],[-1.32,7.881],[1.39,7.881],[4.46,9.551],[6.54,8.091],[5.85,4.191],[6.61,1.751],[9.33,-1.029],[8.56,-3.399]],"c":false},"ix":2},"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[600,600],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":1800,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.8,"s":[60]},{"t":13.2,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[-9.464,8.555,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.24,0.24],"y":[1,1]},"o":{"x":[0.18,0.18],"y":[0,0]},"t":1.2,"s":[0,0]},{"i":{"x":[0.28,0.28],"y":[1,1]},"o":{"x":[0.17,0.17],"y":[0,0]},"t":7.2,"s":[0,0]},{"t":12,"s":[120,120]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.26],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":1.2,"s":[60]},{"i":{"x":[0.22],"y":[1]},"o":{"x":[0.167],"y":[0.083]},"t":7.2,"s":[60]},{"t":12,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[-9.464,8.555],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7.2,"s":[100]},{"t":14.4,"s":[100]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":16.8,"s":[10,10]},{"t":19.2,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-10.633,0],"ti":[10.633,0]},{"t":14.4,"s":[0,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[92,92],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.4,"s":[60]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16.8,"s":[60]},{"t":30,"s":[40]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":18,"s":[10,10]},{"t":21.6,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-20.133,0],"ti":[20.133,0]},{"t":15.6,"s":[-57,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[60,60],"ix":3},"r":{"a":0,"k":22.5,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":1.2,"op":28.8,"st":1.2,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.001,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":14,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18.001,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22.001,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25.501,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":32.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":40,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":43.001,"s":[10]},{"t":46.5,"s":[0]}],"ix":10},"p":{"a":0,"k":[99,99.667,0],"ix":2},"a":{"a":0,"k":[100,100,0],"ix":1},"s":{"a":0,"k":[82,82,100],"ix":6}},"ao":0,"w":200,"h":200,"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'),a=JSON.parse('{"v":"5.7.1","fr":60,"ip":0,"op":98,"w":200,"h":200,"ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":92,"s":[100]},{"t":94,"s":[0]}],"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[100,98.608,0],"ix":2},"a":{"a":0,"k":[-148.821,16.197,0],"ix":1},"s":{"a":0,"k":[90.5,90.5,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-21.815],[21.815,0],[0,0],[0,21.815],[-21.815,0],[0,0]],"o":[[0,21.815],[0,0],[-21.815,0],[0,-21.815],[0,0],[21.815,0]],"v":[[-54.479,0.257],[-93.979,39.757],[-94,39.5],[-133.5,0],[-94,-39.5],[-93.979,-39.243]],"c":true},"ix":2},"hd":false},{"ty":"st","c":{"a":0,"k":[0.137254908681,0.678431391716,0.898039221764,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":3,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[-54.831,14.53],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[0]},{"t":92,"s":[100]}],"ix":1},"e":{"a":0,"k":0,"ix":2},"o":{"a":0,"k":-267,"ix":3},"m":1,"ix":2,"hd":false}],"ip":0,"op":98,"st":30,"bm":0}],"markers":[]}'),s=JSON.parse('{"v":"5.7.1","fr":30,"ip":0,"op":90,"w":200,"h":200,"ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[1]},{"t":50,"s":[98]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[125,125,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":42,"op":72,"st":42,"bm":0},{"ddd":0,"ind":6,"ty":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[4]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58,"s":[-10]},{"t":61,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":46,"s":[100,100,0],"to":[0.083,-0.208,0],"ti":[0.021,0.562,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":53,"s":[100.5,98.75,0],"to":[-0.021,-0.562,0],"ti":[0.083,-0.208,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":58,"s":[99.875,96.625,0],"to":[-0.083,0.208,0],"ti":[-0.021,-0.562,0]},{"t":62,"s":[100,100,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":46,"s":[125,125,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":49,"s":[112.5,112.5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":57,"s":[175,175,100]},{"t":62,"s":[125,125,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,1.37],[0,0],[-1.37,0]],"o":[[0,0],[0,0],[-1.37,0],[0,0],[0,-1.38],[0,0]],"v":[[-6,-2.925],[-6,9.995],[-7.51,9.995],[-10,7.515],[-10,-0.435],[-7.51,-2.925]],"c":true},"ix":2},"hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-1.09,-0.53],[0,-1.76],[0.26,-1.12],[0,0],[0,-1.39],[0.05,-0.19],[0,0],[2.07,0],[0,0],[0,0],[0,0],[-0.27,3.01]],"o":[[1.09,0.52],[0,1.06],[0,0],[1.38,0],[0,0.2],[0,0],[-0.5,2.01],[0,0],[0,0],[0,0],[1.95,-0.76],[0.11,-1.21]],"v":[[1.31,-9.79],[3.11,-6.18],[2.72,-2.92],[7.5,-2.92],[10,-0.42],[9.93,0.17],[8.35,6.58],[3.98,10],[-4.5,10],[-4.5,-2.96],[-4.37,-3],[-1.04,-8.61]],"c":true},"ix":2},"hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":45,"s":[1,1,1,1]},{"t":50,"s":[0,0.631372570992,0.839215695858,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[200,200],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":4,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":1800,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.8,"s":[60]},{"t":13.2,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[-9.464,8.555,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.24,0.24],"y":[1,1]},"o":{"x":[0.18,0.18],"y":[0,0]},"t":1.2,"s":[0,0]},{"i":{"x":[0.28,0.28],"y":[1,1]},"o":{"x":[0.17,0.17],"y":[0,0]},"t":7.2,"s":[0,0]},{"t":12,"s":[120,120]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.26],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":1.2,"s":[60]},{"i":{"x":[0.22],"y":[1]},"o":{"x":[0.167],"y":[0.083]},"t":7.2,"s":[60]},{"t":12,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[-9.464,8.555],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7.2,"s":[100]},{"t":14.4,"s":[100]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":16.8,"s":[10,10]},{"t":19.2,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-10.633,0],"ti":[10.633,0]},{"t":14.4,"s":[0,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[92,92],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.4,"s":[60]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16.8,"s":[60]},{"t":30,"s":[40]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":18,"s":[10,10]},{"t":21.6,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-20.133,0],"ti":[20.133,0]},{"t":15.6,"s":[-57,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[60,60],"ix":3},"r":{"a":0,"k":22.5,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":1.2,"op":28.8,"st":1.2,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":14,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":32.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":39.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":43,"s":[10]},{"t":46.5,"s":[0]}],"ix":10},"p":{"a":0,"k":[99.75,100.167,0],"ix":2},"a":{"a":0,"k":[100,100,0],"ix":1},"s":{"a":0,"k":[82,82,100],"ix":6}},"ao":0,"w":200,"h":200,"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'),l=JSON.parse('{"v":"5.7.1","fr":30,"ip":0,"op":90,"w":200,"h":200,"ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[1]},{"t":50,"s":[98]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,100,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[125,125,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":42,"op":72,"st":42,"bm":0},{"ddd":0,"ind":6,"ty":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":46,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":49,"s":[4]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":58,"s":[-10]},{"t":61,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":46,"s":[100,100,0],"to":[0.083,-0.208,0],"ti":[0.021,0.562,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":53,"s":[100.5,98.75,0],"to":[-0.021,-0.562,0],"ti":[0.083,-0.208,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":58,"s":[99.875,96.625,0],"to":[-0.083,0.208,0],"ti":[-0.021,-0.562,0]},{"t":62,"s":[100,100,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":46,"s":[125,125,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":49,"s":[112.5,112.5,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":57,"s":[175,175,100]},{"t":62,"s":[125,125,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,1.37],[0,0],[-1.37,0]],"o":[[0,0],[0,0],[-1.37,0],[0,0],[0,-1.38],[0,0]],"v":[[-6,-2.925],[-6,9.995],[-7.51,9.995],[-10,7.515],[-10,-0.435],[-7.51,-2.925]],"c":true},"ix":2},"hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-1.09,-0.53],[0,-1.76],[0.26,-1.12],[0,0],[0,-1.39],[0.05,-0.19],[0,0],[2.07,0],[0,0],[0,0],[0,0],[-0.27,3.01]],"o":[[1.09,0.52],[0,1.06],[0,0],[1.38,0],[0,0.2],[0,0],[-0.5,2.01],[0,0],[0,0],[0,0],[1.95,-0.76],[0.11,-1.21]],"v":[[1.31,-9.79],[3.11,-6.18],[2.72,-2.92],[7.5,-2.92],[10,-0.42],[9.93,0.17],[8.35,6.58],[3.98,10],[-4.5,10],[-4.5,-2.96],[-4.37,-3],[-1.04,-8.61]],"c":true},"ix":2},"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[200,200],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":4,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":1800,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10.8,"s":[60]},{"t":13.2,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[-9.464,8.555,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.24,0.24],"y":[1,1]},"o":{"x":[0.18,0.18],"y":[0,0]},"t":1.2,"s":[0,0]},{"i":{"x":[0.28,0.28],"y":[1,1]},"o":{"x":[0.17,0.17],"y":[0,0]},"t":7.2,"s":[0,0]},{"t":12,"s":[120,120]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.26],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":1.2,"s":[60]},{"i":{"x":[0.22],"y":[1]},"o":{"x":[0.167],"y":[0.083]},"t":7.2,"s":[60]},{"t":12,"s":[0]}],"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[-9.464,8.555],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":9,"ty":0,"refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":10,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":315,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":11,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":12,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":225,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":13,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":180,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":14,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":135,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":15,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":16,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":45,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0},{"ddd":0,"ind":17,"ty":0,"refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[80,80,0],"ix":2},"a":{"a":0,"k":[80,80,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":160,"h":160,"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":4.8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7.2,"s":[100]},{"t":14.4,"s":[100]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":16.8,"s":[10,10]},{"t":19.2,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-10.633,0],"ti":[10.633,0]},{"t":14.4,"s":[0,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[92,92],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":0,"op":30,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8.4,"s":[60]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16.8,"s":[60]},{"t":30,"s":[40]}],"ix":11},"r":{"a":0,"k":-45,"ix":10},"p":{"a":0,"k":[52.021,52.021,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":1,"k":[{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":4.8,"s":[10,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":9.6,"s":[20,10]},{"i":{"x":[0.833,0.833],"y":[0.833,0.833]},"o":{"x":[0.167,0.167],"y":[0.167,0.167]},"t":18,"s":[10,10]},{"t":21.6,"s":[0,0]}],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.25,"y":1},"o":{"x":0.27,"y":0},"t":4.8,"s":[63.8,0],"to":[-20.133,0],"ti":[20.133,0]},{"t":15.6,"s":[-57,0]}],"ix":3},"r":{"a":0,"k":153,"ix":4},"hd":false},{"ty":"st","c":{"a":0,"k":[0.98431372549,0.447058823529,0.6,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.502,39.565],"ix":2},"a":{"a":0,"k":[68.349,-0.004],"ix":1},"s":{"a":0,"k":[60,60],"ix":3},"r":{"a":0,"k":22.5,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":3,"cix":2,"bm":0,"ix":1,"hd":false}],"ip":1.2,"op":28.8,"st":1.2,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":6,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":14,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":18,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":22,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":29,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":32.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":36,"s":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":39.5,"s":[-10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":43,"s":[10]},{"t":46.5,"s":[0]}],"ix":10},"p":{"a":0,"k":[99.75,100.167,0],"ix":2},"a":{"a":0,"k":[100,100,0],"ix":1},"s":{"a":0,"k":[82,82,100],"ix":6}},"ao":0,"w":200,"h":200,"ip":0,"op":90,"st":0,"bm":0}],"markers":[]}'),A=JSON.parse('{"v":"5.7.3","fr":60,"ip":0,"op":60,"w":100,"h":100,"ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[50.807,50.012,0],"ix":2},"a":{"a":0,"k":[245.807,94.25,0],"ix":1},"s":{"a":0,"k":[85.947,85.947,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[1.023,-0.313],[-12.589,-13.103],[-7,7.363],[14.375,4.75]],"o":[[0,0],[-23.257,7.111],[6.126,6.376],[7.692,-8.091],[-11.277,-3.726]],"v":[[247.5,68.875],[244.507,68.139],[226.5,110.25],[257.625,107.875],[253.625,75.25]],"c":false},"ix":2},"hd":false},{"ty":"st","c":{"a":0,"k":[0,0.631372570992,0.839215695858,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"hd":false},{"ty":"tr","p":{"a":0,"k":[0.499,2.737],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5}}],"np":2,"cix":2,"bm":0,"ix":1,"hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":5,"s":[0]},{"t":19,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"hd":false}],"ip":0,"op":760,"st":-140,"bm":0}],"markers":[]}')
;var c=Pt(4634),h=Pt.n(c),d=(Pt(2427),Pt(426)),u=Pt.n(d),p=Pt(9057),g=Pt.n(p),f=(Pt(5684),Pt(1496)),m=Pt.n(f);Pt(7381),Pt(4173),Pt(7159),Pt(610),Pt(6653),Pt(739),Pt(3779),Pt(1048),Pt(4395),Pt(536),Pt(6786),Pt(9461);const y=(t=>{var e={};return Pt.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC,DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub});var b=Pt(2067),v=Pt.n(b),E=Pt(5179),I=Pt(3957),C=Pt.n(I),B=Pt(5629),w=Pt.n(B),x=Pt(8866),Q=Pt.n(x),S=Pt(511),k=Pt.n(S),D=Pt(3897),_=Pt.n(D),R=Pt(1543),M={attributes:{"data-injector":"danmaku-x"}};M.setAttributes=k(),M.insert=Q().bind(null,"head"),M.domAPI=w(),M.insertStyleElement=_(),C()(R.A,M),R.A&&R.A.locals&&R.A.locals;var T,F=(T=function(t,e){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}T(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),L=function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},N=function(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},P={0:!0,2:!0,6:!0,7:!0},U=function(e){function i(t){var i=e.call(this,t,"guide")||this;return i.canCancelFollow={},i.threeAnimate={},i}return F(i,e),i.prototype.getSize=function(){return{width:this.width,height:this.height}},i.prototype.getSpaceManager=function(){return y.CommandSpaceManager},i.prototype.render=function(t){var e,i=this.modeInfo.type,n=this.modeInfo,r=n.face,o=n.electricGuide,a=n.followToElectric,s=n.electricIcon,l=n.electricStatus,A=n.electricMap,c=n.isFollow,d=null===(e=null==A?void 0:A[l])||void 0===e?void 0:e.title,p="",f="".concat(y.DPX,"-guide-follow");this.manager.track.s("player.dm-follow-customize-up.show",{dmid:this.textData.dmid,upmid:this.modeInfo.mid,follow_status:c?1:0,is_group:2===i||4===i,danmaku_type:6===i?2:7===i?3:1}),3!==i&&4!==i||this.manager.track.s("player.dm-charge-customize-up.show",{dmid:this.textData.dmid,upmid:this.modeInfo.mid,follow_status:c?1:0,is_group:4===i}),r&&(p='<span class="'.concat(y.DPX,'-guide-follow-img"><img src="').concat(r,'"></span>'),f+=" ".concat(y.DPX,"-hasimg"));var b='\n            <div class="'.concat(f,'" data-action="follow">\n                ').concat(p,'\n                <span class="').concat(y.DPX,'-guide-follow-0">').concat(h(),'<span>关注</span></span>\n                <span class="').concat(y.DPX,'-guide-follow-1">\n                    <span class="').concat(y.DPX,'-guide-follow-1-normal">已关注</span>\n                </span>\n            </div>\n        '),v='\n            <div class="'.concat(y.DPX,'-guide-electric" data-action="electric">\n                <img data-action="electric" class="').concat(y.DPX,'-guide-electric-icon" src="').concat(s,'">  \n                <span data-action="electric" class="').concat(y.DPX,'-guide-electric-text">').concat(d||"为TA充电","</span>\n            </div>\n        "),E=o?'\n                <div class="'.concat(y.DPX,'-guide-electric-guide">\n                    ').concat(o,"\n                </div>\n            "):"",I='\n            <div class="'.concat(y.DPX,'-guide-three">\n                <span class="').concat(y.DPX,'-guide-three-like" data-action="like">').concat(m(),'</span>\n                <span class="').concat(y.DPX,'-guide-three-coin" data-action="coin">').concat(u(),'</span>\n                <span class="').concat(y.DPX,'-guide-three-collect" data-action="collect">').concat(g(),'</span>\n            </div>\n            <div class="').concat(y.DPX,'-guide-animate">\n                <span class="').concat(y.DPX,'-animate-like"></span>\n                <span class="').concat(y.DPX,'-animate-coin"></span>\n                <span class="').concat(y.DPX,'-animate-collect"></span>\n            </div>  \n        '),C='\n            <div class="'.concat(y.DPX,'-guide-cyc">\n                <span class="').concat(y.DPX,'-guide-cyc-like"></span>\n                <span class="').concat(y.DPX,'-guide-cyc-coin"></span>\n                <span class="').concat(y.DPX,'-guide-cyc-collect"></span>\n            </div>\n        '),B="",w="";switch(i){case 1:B=I+C,this.width=140;break;case 2:B=I+b,a&&(B+=v,w+=" ".concat(y.DPX,"-follow-to-electric")),B+=C,w+=" ".concat(y.DPX,"-guide-all"),this.width=220;break;case 3:o?(B=E+v,w+=" ".concat(y.DPX,"-guide-all"),this.width=178):(B=v,this.width=80);break;case 4:B=I+v+C,w+=" ".concat(y.DPX,"-guide-all"),this.width=230;break;default:B=b,a&&(B+=v,w+=" ".concat(y.DPX,"-follow-to-electric")),this.width=r?87:80}this.height=36,w+=" ".concat(y.DPX,"-").concat(this.id)+(t||this.showed?" ".concat(y.DPX,"-show"):""),this.config.setting.canBindMove&&(w+=" ".concat(y.DPX,"-editor")),this.element.innerHTML=B,this.element.className=w,this.update(),this.modeInfo.isFollow&&this.updateFollow(!0)},i.prototype.afterRender=function(t){var e=this;this.getBtnState("showBtn");var i=this.modeInfo,n=i.type,r=i.isFollow;this.config.setting.canBindMove||this.getBtnState("getTriple").then((function(t){var i=t.hasTriple;if(e.modeInfo||e.destroy(),!i)switch(n){case 1:case 3:case 4:return e.duration=-1;case 2:e.modeInfo.type=0}})),(P[n]&&!r||7===n)&&this.getBtnState("getMidFollowed").then((function(t){e.modeInfo&&(t||7===n)&&(e.modeInfo.isFollow=t)})),this.modeInfo.isFollow&&this.updateFollow(!0)},i.prototype.cmdClick=function(t){return L(this,void 0,void 0,(function(){var e,i,n,r,o,a,s;return N(this,(function(l){switch(l.label){case 0:if(e=this.modeInfo.type,this.hitting)return[2];if(this.threeTimer&&clearTimeout(this.threeTimer),i=t.target,!(n=i.dataset.action))return[2];if(r=this.modeInfo,o=r.mid,a=r.isFollow,"follow"===n){if(a&&!this.canCancelFollow[o])return[2];this.manager.track.c("player.dm-follow-customize-up.click",{dmid:this.textData.dmid,upmid:this.modeInfo.mid,follow_status:a?1:0,is_group:2===e||4===e,danmaku_type:6===e?2:7===e?3:1}),this.canCancelFollow[o]=!0}return"electric"===n&&this.manager.track.c("player.dm-charge-customize-up.click",{dmid:this.textData.dmid,upmid:this.modeInfo.mid,follow_status:a?1:0,is_group:4===e}),this.manager.track.e("dm-follow-click",{type:e,action:n}),[4,this.eventOut(n)];case 1:return s=l.sent(),this.modeInfo?(s&&("follow"===n?(this.modeInfo.isFollow=!a,this.updateFollow(!a)):this.update()),[2]):[2]}}))}))},i.prototype.updateFollow=function(t){return L(this,void 0,void 0,(function(){var e,i;return N(this,(function(n){return(e=this.element.querySelector(".".concat(y.DPX,"-guide-follow")))?(this.modeInfo.isFollow=t,i=this.modeInfo.mid,this.canCancelFollow||(this.canCancelFollow={}),this.canCancelFollow[i]&&e.classList.add("".concat(y.DPX,"-guide-canCancel")),
t?this.element.classList.add("".concat(y.DPX,"-guide-followed")):this.element.classList.remove("".concat(y.DPX,"-guide-followed")),[2]):[2]}))}))},i.prototype.bindEvents=function(){var t=this,e=function(e){t.hitTimer&&t.threeHitCel()};this.element.onmousedown=function(i){return L(t,void 0,void 0,(function(){var t,n,r,o,a=this;return N(this,(function(s){switch(s.label){case 0:return i.stopPropagation(),this.hitting=!1,"like"!==i.target.dataset.action?[2]:[4,this.getBtnState()];case 1:return t=s.sent(),n=t.isCoin,r=t.isCollect,o=t.isLike,n&&r&&o||(this.threeTimer=window.setTimeout((function(){a.hitting=!0,document.addEventListener("mouseup",e),a.threeHit(),a.element.classList.add("".concat(y.DPX,"-guide-hide"))}),150),document.addEventListener("mouseup",e)),[2]}}))}))},this.element.addEventListener("click",this.cmdClick)},i.prototype.eventOut=function(t){return L(this,void 0,void 0,(function(){var e=this;return N(this,(function(i){return[2,new Promise((function(i,n){if(e.userAct=!0,!e.isIo){var r=e.textData.dmid,o=e.modeInfo,a=o.type,s=o.mid,l=o.isFollow;e.isIo=!0,e.manager.emit(y.EventType.Follow_Danmaku_Events,{action:t,params:{mid:s,dmid:r,type:a,isFollow:l,ctime:e.manager.renderTime},cb:function(t){e.isIo=!1,i(t)}})}}))]}))}))},i.prototype.threeHit=function(){return L(this,void 0,void 0,(function(){var t,e,i,n,r=this;return N(this,(function(o){switch(o.label){case 0:return this.hitTimer=window.setTimeout((function(){r.eventOut("three_hit"),r.manager.track.e("dm-follow-three-hit",{type:r.modeInfo.type}),r.hitTimer=0}),1500),this.template||(this.template={threeLike:this.element.querySelector(".".concat(y.DPX,"-animate-like")),threeCoin:this.element.querySelector(".".concat(y.DPX,"-animate-coin")),threeCollect:this.element.querySelector(".".concat(y.DPX,"-animate-collect")),likeCyc:this.element.querySelector(".".concat(y.DPX,"-guide-cyc-like")),coinCyc:this.element.querySelector(".".concat(y.DPX,"-guide-cyc-coin")),collectCyc:this.element.querySelector(".".concat(y.DPX,"-guide-cyc-collect"))}),[4,this.getBtnState()];case 1:switch(t=o.sent(),e=t.isCoin,i=t.isCollect,n=t.isLike,this.loadAnimate("threeLike",n),this.loadAnimate("threeCoin",e),this.loadAnimate("threeCollect",i,!0),this.modeInfo.type){case 1:case 2:this.loadAnimate("likeCyc"),this.loadAnimate("coinCyc"),this.loadAnimate("collectCyc")}return[2]}}))}))},i.prototype.threeHitCel=function(){var t;if(this.secondLater(),this.threeTimer&&clearTimeout(this.threeTimer),this.hitTimer&&clearTimeout(this.hitTimer),this.threeAnimate)for(var e in this.threeAnimate)null===(t=this.threeAnimate[e])||void 0===t||t.goToAndStop(0,!0)},i.prototype.secondLater=function(){var t=this;this.element.classList.remove("".concat(y.DPX,"-guide-hide")),this.mouseUpTimer&&clearTimeout(this.mouseUpTimer),this.mouseUpTimer=window.setTimeout((function(){t.mouseUpTimer=0}),1e3)},i.prototype.loadAnimate=function(e,i,n){var r=this,o=e;return i&&(o+="ed"),this.threeAnimate[o]||(i&&this.threeAnimate[e]&&(this.threeAnimate[e].destroy(),this.threeAnimate[e]=null,this.template[e].innerHTML=""),!i&&this.threeAnimate[e+"ed"]&&(this.threeAnimate[e+"ed"].destroy(),this.threeAnimate[e+"ed"]=null,this.template[e].innerHTML=""),this.threeAnimate[o]=v().loadAnimation({container:this.template[e],renderer:"svg",name:o,loop:!1,autoplay:!1,animationData:t[o]||a}),n&&this.threeAnimate[o].addEventListener("complete",(function(){r.secondLater()}))),setTimeout((function(){r.threeAnimate[o].goToAndPlay(0,!0)}),0),this.threeAnimate[o]},i.prototype.getBtnState=function(t){var e=this;return void 0===t&&(t="getBtnState"),new Promise((function(i,n){var r=e.textData.dmid,o=e.modeInfo,a=o.type,s=o.mid,l=o.isFollow;e.manager.emit(y.EventType.Follow_Danmaku_Events,{action:t,params:{mid:s,dmid:r,type:a,isFollow:l,ctime:e.manager.renderTime},cb:function(t){i(t)}})}))},i.prototype.update=function(){return L(this,void 0,void 0,(function(){var t,e,i,n,r,o,a,s,l,A;return N(this,(function(c){switch(c.label){case 0:return[4,this.getBtnState()];case 1:if(t=c.sent(),e=t.isCoin,i=t.isCollect,n=t.isLike,r=t.isFollow,!this.modeInfo)return[2];if(0!==(o=this.modeInfo.type)&&2!==o&&6!==o||this.updateFollow(r),!this.userAct)switch(a=n||e||i,o){case 0:this.toogleGray(this.modeInfo.isFollow);break;case 1:case 2:this.toogleGray(a)}return 1!==o&&2!==o&&4!==o||(s=this.element.querySelector(".".concat(y.DPX,"-guide-three-like")),l=this.element.querySelector(".".concat(y.DPX,"-guide-three-coin")),A=this.element.querySelector(".".concat(y.DPX,"-guide-three-collect")),n?null==s||s.classList.add("".concat(y.DPX,"-active")):null==s||s.classList.remove("".concat(y.DPX,"-active")),e?null==l||l.classList.add("".concat(y.DPX,"-active")):null==l||l.classList.remove("".concat(y.DPX,"-active")),i?null==A||A.classList.add("".concat(y.DPX,"-active")):null==A||A.classList.remove("".concat(y.DPX,"-active"))),[2]}}))}))},i.prototype.toogleGray=function(t){t?this.element.classList.add("".concat(y.DPX,"-guide-gray")):this.element.classList.remove("".concat(y.DPX,"-guide-gray"))},i.prototype.removeEventListener=function(){this.element.removeEventListener("click",this.cmdClick)},i.prototype.destroy=function(){return this.shrinkState===y.ShrinkState.HIDE&&this.setShrinkState(y.ShrinkState.ON),this.removeEventListener(),e.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([E.Ay],i.prototype,"cmdClick",null),i}(y.CommandRender);const O=U})();var Ot=Ut.A,Gt={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},2971:(t,e,i)=>{i.d(e,{A:()=>d});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o),s=i(3832),l=i.n(s),A=new URL(i(4167),i.b),c=a()(r()),h=l()(A)
;c.push([t.id,`.bili-danmaku-x-goodsLike {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  font-size: 14px;\n  color: #fff;\n  background-color: rgba(24, 25, 28, 0.8);\n  border-radius: 8px;\n  padding: 6px 6px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  z-index: 1;\n  -webkit-transition: opacity 0.35s;\n  transition: opacity 0.35s;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  cursor: default;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n  -ms-flex-line-pack: center;\n      align-content: center;\n}\n.bili-danmaku-x-goodsLike.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-goodsLike.bili-danmaku-x-editor {\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-goodsLike.bili-danmaku-x-editor-btn:hover {\n  background: #00a1d6;\n}\n.bili-danmaku-x-goodsLike-left {\n  border-radius: 2px;\n  height: 49px;\n  width: 49px;\n  margin-right: 6px;\n  background: #fff url(${h}) no-repeat;\n  background-position: center;\n  background-size: 40%;\n}\n.bili-danmaku-x-goodsLike-left img {\n  height: 100%;\n  width: 100%;\n  border-radius: 2px;\n}\n.bili-danmaku-x-goodsLike-right {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n}\n.bili-danmaku-x-goodsLike-button {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  padding: 3px 0px;\n  gap: 1px;\n  width: 78px;\n  height: 30px;\n  background: #00aeec;\n  border-radius: 6px;\n  -webkit-box-flex: 0;\n      -ms-flex: none;\n          flex: none;\n  -webkit-box-ordinal-group: 1;\n      -ms-flex-order: 0;\n          order: 0;\n  -ms-flex-positive: 0;\n      flex-grow: 0;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n.bili-danmaku-x-goodsLike-button span {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -ms-flex-line-pack: center;\n      align-content: center;\n}\n.bili-danmaku-x-goodsLike-button img {\n  vertical-align: middle;\n  height: 16px;\n  width: 16px;\n  margin-right: 3px;\n}\n.bili-danmaku-x-goodsLike-button .bili-danmaku-x-goodsLike-checkmark-icon {\n  width: 16px;\n  height: 16px;\n}\n.bili-danmaku-x-goodsLike-button-already {\n  background: #68696a;\n}\n.bili-danmaku-x-goodsLike-text {\n  font-family: 'PingFang SC';\n  font-style: normal;\n  font-weight: 400;\n  font-size: 12px;\n  line-height: 17px;\n  text-align: center;\n  color: #ffffff;\n  mix-blend-mode: normal;\n  opacity: 0.7;\n  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.69452);\n  margin-top: 2px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n`,""]);const d=c},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},3832:t=>{t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},4634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{
t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'},4167:t=>{t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABHCAMAAAB4UkqjAAAAh1BMVEUAAADd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d0UCIZXAAAALHRSTlMAoJDx4OYL/DcGF+6+JNi4ycSIT2k6LPeWfRzTVPXPszEQrV0hpo12cEZAZFpRNIQAAAJVSURBVFjD7dbZcpswGIbhHwwSi81q8Ib33fnu//oatRIpmliDhQ/aaZ+TKInnjVgkhb4RJMhP9Fzo8PiD+vEA+JPnqS0+1dRHBJhibAzh2HNeekxP9Z8XBSMZM6SmRBYx65QeM6XsY3rKPqanLGMWqeDmOh0b/Io9+YHi3gKtdExgLznSlyjFMGnUphIMlcgY22C4DSPBxTu4IrXDe+yI6IDWbPSqGVoHoohDyip6XZVB4hFN1TgPyUaYQ5rSWQ0nZGcC6UyJukKypa4yIXX3HLLlqCdHX++HLRfS/9bbWvvHLSLNR3N6tRXdFwdxejekiYF4fDnWYa/WqSm2PqRCSy0hrbP5RxAaW8141N17tVbZ+S1fFYbWFF2+1lqg62BoBdAsqWOLroWhxTh+M8vmWuuaxp1WaWjRSn43yl35sHTLUjxiaWlqnYE4LZoJme3v13MibqepFZRL6otV5V+/Hv+xVvi+FsvZG1qh/LQ7uFXnF/HlwcEfYlDktW2r5EARUiXWc1xRWAC8tGwxsdJ9dcRnYrddMdtrjDZyAy3kXrSJ7O89u8zEZAIKxBRnFzbonWD3ZkfCrrmzP+6979nicjAnW3NZ4OS1R6GtVBa8drTek539up3NAgMvcv51WNZQitCiFBZQaqIMSrx1XrWNoWTy/w1r+hk+xjuMSVjGGC6WZ3S1xlDriqTKxzB+Ra3I4bDHne62drqmied57QR9z0D94dHnOEmvJ/pWAMm4ovL2TTcJ5cRyMlHrbkdG5c/5r82fYqt+K/iR89m2JrP9PEZyI80PsPxVT0P3FAEAAAAASUVORK5CYII="}},Ht={};function Vt(t){var e=Ht[t];if(void 0!==e)return e.exports;var i=Ht[t]={id:t,exports:{}};return Gt[t](i,i.exports,Vt),i.exports}Vt.m=Gt,Vt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Vt.d(e,{a:e}),e},Vt.d=(t,e)=>{for(var i in e)Vt.o(e,i)&&!Vt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Vt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Vt.b=document.baseURI||self.location.href;var Yt={};(()=>{Vt.d(Yt,{A:()=>v}),Vt(4634),Vt(2427),Vt(426),Vt(9057),Vt(5684),Vt(1496),Vt(7381),Vt(4173),Vt(7159),Vt(610),Vt(6653),Vt(739),Vt(3779);var t=Vt(1048),e=Vt.n(t);Vt(4395),Vt(536),Vt(6786),Vt(9461);const i=(t=>{var e={};return Vt.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC,DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub});var n=Vt(5179),o=Vt(3957),a=Vt.n(o),s=Vt(5629),l=Vt.n(s),A=Vt(8866),c=Vt.n(A),h=Vt(511),d=Vt.n(h),u=Vt(3897),p=Vt.n(u),g=Vt(2971),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)
}),b=function(t){function r(e){return t.call(this,e,"goodsLike")||this}return y(r,t),r.prototype.getSize=function(){return{width:145,height:61}},r.prototype.getSpaceManager=function(){return i.CommandSpaceManager},r.prototype.render=function(t){var n="".concat(i.DPX,"-").concat(this.id)+(t?" ".concat(i.DPX,"-show"):"");this.config.setting.canBindMove&&(n+=" ".concat(i.DPX,"-editor")),this.manager.track.s("player.dm-mall-recommend.show",{dmid:this.textData.dmid,item_id:this.modeInfo.itemIdStr,mall_recommend_state:this.modeInfo.userSub?1:0}),this.element.className=n;var r,o=this.modeInfo,a=o.itemImage,s=o.userSub,l=o.desc,A=o.buttonSelected,c=o.buttonUnSelected,h=o.buttonIcon,d="",u="";a&&(d='\n                <div class = "'.concat(i.DPX,'-goodsLike-left">\n                    <img class="').concat(i.DPX,'-goodsLike-img" src= "').concat(a,'" onError="this.style.display = \'none\';" >\n                </div>\n            ')),r=s?'\n                <div class="'.concat(i.DPX,"-goodsLike-button ").concat(i.DPX,'-goodsLike-button-already">\n                    <div class="').concat(i.DPX,'-goodsLike-checkmark-icon">').concat(e(),"</div>\n                    <span>").concat(A,"</span>\n                </div>\n            "):'\n                <div class="'.concat(i.DPX,'-goodsLike-button">\n                    <img src="').concat(h,'" onError="this.style.display = \'none\';"/>\n                    <span>').concat(c,"</span>\n                </div>\n            "),l&&(u='\n                <div class ="'.concat(i.DPX,'-goodsLike-text">\n                    <span> ').concat(l," </span>\n                </div>\n            ")),this.element.innerHTML="\n            ".concat(d,'\n            <div class = "').concat(i.DPX,'-goodsLike-right">\n                ').concat(r,"\n                ").concat(u,"\n            </div>\n        ")},r.prototype.afterRender=function(t){var e=this.element.querySelector(".".concat(i.DPX,"-goodsLike-button"));this.template={button:e}},r.prototype.bindEvents=function(){this.template.button.addEventListener("click",this.like)},r.prototype.like=function(t){var e=this;t.stopPropagation();var n=this.textData.dmid;this.manager.track.e("dm-goodsLike-click",{dmid:n,keyword:this.modeInfo.keyword,itemIdStr:this.modeInfo.itemIdStr,action:this.modeInfo.userSub?2:1}),this.manager.emit(i.EventType.GoodsLike_Danmaku_Click,{params:{dmid:n,keyword:this.modeInfo.keyword,itemIdStr:this.modeInfo.itemIdStr,action:this.modeInfo.userSub?2:1},cb:function(t){t&&(e.modeInfo.userSub=!e.modeInfo.userSub,e.destroy(),e.init(e.options,"goodsLike"),e.manager.track.c("player.dm-mall-recommend.click",{dmid:n,item_id:e.modeInfo.itemIdStr,mall_recommend_state:e.modeInfo.userSub?1:0}))}})},r.prototype.removeEventListener=function(){var t;null===(t=this.template)||void 0===t||t.button.removeEventListener("click",this.like)},r.prototype.destroy=function(){return this.shrinkState===i.ShrinkState.HIDE&&this.setShrinkState(i.ShrinkState.ON),this.removeEventListener(),t.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([n.Ay],r.prototype,"like",null),r}(i.CommandRender);const v=b})();var zt=Yt.A,Wt={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},7014:(t,e,i)=>{i.d(e,{A:()=>f});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o),s=i(3832),l=i.n(s),A=new URL(i(1790),i.b),c=new URL(i(1084),i.b),h=new URL(i(4647),i.b),d=a()(r()),u=l()(A),p=l()(c),g=l()(h);d.push([t.id,`.bili-danmaku-x-creator .bili-danmaku-x-link-icon {\n  background: #fff url(${u}) no-repeat;\n  background-position: center;\n  background-size: 40px;\n}\n.bili-danmaku-x-link {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  width: 290px;\n  height: 50px;\n  font-size: 12px;\n  color: #fff;\n  background-color: rgba(33, 33, 33, 0.8);\n  border-radius: 10px 8px 8px 10px;\n  pointer-events: auto;\n  cursor: pointer;\n  -webkit-transition: opacity 0.35s;\n  transition: opacity 0.35s;\n  z-index: 1;\n  opacity: 0;\n  visibility: hidden;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-link-play {\n  width: 12px;\n  height: 16px;\n  margin-left: 18.5px;\n}\n.bili-danmaku-x-link.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-link-left {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  height: 100%;\n}\n.bili-danmaku-x-link-right {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  height: 100%;\n}\n.bili-danmaku-x-link-center {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n}\n.bili-danmaku-x-link-icon {\n  width: 90px;\n  height: 50px;\n  position: relative;\n  border-radius: 8px 0 0 8px;\n  overflow: hidden;\n  background: url(${u}) no-repeat;\n  background-position: center;\n  background-size: 40px;\n}\n.bili-danmaku-x-link-icon .bili-danmaku-x-link-pic {\n  width: 100%;\n  border: none;\n}\n.bili-danmaku-x-link-icon .bili-danmaku-x-link-time {\n  position: absolute;\n  right: 4px;\n  bottom: 4px;\n  border-radius: 1px;\n  padding: 2px;\n  background: rgba(0, 0, 0, 0.5);\n}\n.bili-danmaku-x-link-icon .bili-danmaku-x-link-time-show {\n  visibility: visible;\n}\n.bili-danmaku-x-link-msg {\n  margin-left: 8px;\n  width: 134px;\n  line-height: 17px;\n  max-height: 34px;\n  white-space: normal;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  pointer-events: none;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n  word-break: break-all;\n}\n.bili-danmaku-x-link-line {\n  width: 1px;\n  height: 36px;\n  margin: 0 0 0 8px;\n  background: rgba(255, 255, 255, 0.5);\n}\n.bili-danmaku-x-link-watchlater {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  margin-left: 5px;\n  margin-bottom: 5px;\n}\n.bili-danmaku-x-link-watchlater i {\n  width: 26px;\n  height: 26px;\n  background-size: auto 100%;\n  background-image: url(${p});\n}\n.bili-danmaku-x-link-watchlater span {\n  color: #fff;\n  font-size: 10px;\n  font-weight: 400;\n}\n.bili-danmaku-x-link-watchlater-active i {\n  background-image: url(${g});\n}\n`,""]);const f=d},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),
n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},3832:t=>{t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},4634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'},4647:t=>{t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAwklEQVR42u3WsQrDIBCA4bymUwYnV984s4OLo+HKBQKBJKWRUvT6f+CQLT/GeNMEAAAAAEDHvPeSUpKcs4QQxFScBtVaZaeRZuOU7qTZOH3Wz9VsnInzRxxxxP1xXIxRSinb+sYLdLdzGrZb11U02NRnqVPEUWtkt2fOOXd6saeR3f9Q5nlujhzmb9kSOdxV8CRy2Hvuk8jhL/F3kWYmlLtIU+PXVaS52fIu0szgfBVpKu448SzLsi0NngAAAAAA+KEX4/gK2yfzXZoAAAAASUVORK5CYII="},1084:t=>{t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAACy0lEQVR42u1avatBYRy+k9HkH7BbrSab2WSTRRkNJoPZZDEZDAalGJRJSZlIGaQMFiUGWSghv9ujXv2Oe3C+D+e+z3SvvB/P+X08z/sePz8SEhISEhIStiAUClE8HqdsNkvFYpHK5TLl83lKJpMUjUbJ5/PRVxHChkGoXq/TarWidzgcDtTr9W4PIBAIfDbZdDpNy+WSjAJkEWG/3/9ZRJFq0+lUddPH45FmsxkNBgNqNpu3yHa7XZpMJrTdblXH7Ha7Wxp/BDmk1ul0+kOq3W5TKpV6W2N4OJVKRTWdO52OuzVaq9UUGzqfz7coBYNBMlK7hULhT1QRfSPzWU4OtRcOh01vBPWHFOZYLBbO1mUul1NsYDgcWt4BS6USXa/X+xqoYUfIxWKxWypycnbVCVKWA7VqO8H5fK5IS7u1q9Fo3Ne7XC6WlMHLjskbiq2LseaDRiMAU2DbQuv1+r4Q9Exr08hkMhSJRMhMWXBAWiwnmEgk7gvs93vNqYkaBdAwICFGUxpNRgAaKz6H1mJe09mESQTwt9ZxqBsO6BwiqmUs9E88EPhbPocgJzAajcwR5AKMaGod98x3IiI4aTwbh5SGN0XkobkoEWSOAMjx/3lUdQPh5+mpRxZemWtYOhyh1ObjDU2IPU/TzWaj8K6m3A6vP5hqPWO1nCIgPY+NA6TH47Hie/C8SHnufRFhPRn11rn0+33LCQqNq1arpOZouLF4hCXij0UEILx2EBTAmVLtxKF2zkQ2WeKi3CYo9LTVail6wasm9TUpqtYP8D1LXZQbTcZRuCETjsNpoXccRq0aP7TqtWqOwqjZFmJt1mzDuiGdbbu6MHtcMtP1QA71Km7aPHfg5Xeutt/NuH1lYbuceP7SyfPXhv/i4vcZSU9d3fPO6tmXL3yTnn19xuHZF6CPteTZV9hq4D9CQOv/+h8hSEhISEhISEg4il+X++U11OQu2gAAAABJRU5ErkJggg=="},1790:t=>{t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABHCAMAAAB4UkqjAAAAh1BMVEUAAADd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d0UCIZXAAAALHRSTlMAoJDx4OYL/DcGF+6+JNi4ycSIT2k6LPeWfRzTVPXPszEQrV0hpo12cEZAZFpRNIQAAAJVSURBVFjD7dbZcpswGIbhHwwSi81q8Ib33fnu//oatRIpmliDhQ/aaZ+TKInnjVgkhb4RJMhP9Fzo8PiD+vEA+JPnqS0+1dRHBJhibAzh2HNeekxP9Z8XBSMZM6SmRBYx65QeM6XsY3rKPqanLGMWqeDmOh0b/Io9+YHi3gKtdExgLznSlyjFMGnUphIMlcgY22C4DSPBxTu4IrXDe+yI6IDWbPSqGVoHoohDyip6XZVB4hFN1TgPyUaYQ5rSWQ0nZGcC6UyJukKypa4yIXX3HLLlqCdHX++HLRfS/9bbWvvHLSLNR3N6tRXdFwdxejekiYF4fDnWYa/WqSm2PqRCSy0hrbP5RxAaW8141N17tVbZ+S1fFYbWFF2+1lqg62BoBdAsqWOLroWhxTh+M8vmWuuaxp1WaWjRSn43yl35sHTLUjxiaWlqnYE4LZoJme3v13MibqepFZRL6otV5V+/Hv+xVvi+FsvZG1qh/LQ7uFXnF/HlwcEfYlDktW2r5EARUiXWc1xRWAC8tGwxsdJ9dcRnYrddMdtrjDZyAy3kXrSJ7O89u8zEZAIKxBRnFzbonWD3ZkfCrrmzP+6979nicjAnW3NZ4OS1R6GtVBa8drTek539up3NAgMvcv51WNZQitCiFBZQaqIMSrx1XrWNoWTy/w1r+hk+xjuMSVjGGC6WZ3S1xlDriqTKxzB+Ra3I4bDHne62drqmied57QR9z0D94dHnOEmvJ/pWAMm4ovL2TTcJ5cRyMlHrbkdG5c/5r82fYqt+K/iR89m2JrP9PEZyI80PsPxVT0P3FAEAAAAASUVORK5CYII="}},Zt={};function jt(t){var e=Zt[t];if(void 0!==e)return e.exports;var i=Zt[t]={id:t,exports:{}};return Wt[t](i,i.exports,jt),i.exports}jt.m=Wt,jt.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return jt.d(e,{a:e}),e},jt.d=(t,e)=>{for(var i in e)jt.o(e,i)&&!jt.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},jt.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),jt.b=document.baseURI||self.location.href;var qt={};(()=>{jt.d(qt,{A:()=>E}),jt(4634),jt(2427),jt(426),jt(9057),jt(5684),jt(1496),jt(7381);var t=jt(4173),e=jt.n(t);jt(7159),jt(610),jt(6653),jt(739),jt(3779),jt(1048),jt(4395),jt(536),jt(6786),jt(9461);const i=(t=>{var e={};return jt.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC,DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub,formatSeconds:()=>r.ZC});var n=jt(5179),o=jt(3957),a=jt.n(o),s=jt(5629),l=jt.n(s),A=jt(8866),c=jt.n(A),h=jt(511),d=jt.n(h),u=jt(3897),p=jt.n(u),g=jt(7014),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a)
;return o>3&&a&&Object.defineProperty(e,i,a),a},v=function(t){function r(e){return t.call(this,e,"link")||this}return y(r,t),r.prototype.getSize=function(){return{width:290,height:50}},r.prototype.getSpaceManager=function(){return i.CommandSpaceManager},r.prototype.render=function(t){this.element.className="".concat(i.DPX,"-").concat(this.id)+(t?" ".concat(i.DPX,"-show"):"");var e=this.modeInfo,n=e.arcDuration,r=e.arcPic,o=(e.arcType,e.aid,"");r&&(o+='<img class="'.concat(i.DPX,'-link-pic" src="').concat(r,'" onerror="this.style.display=\'none\'"/>')),n&&(o+='<span class="'.concat(i.DPX,'-link-time">').concat((0,i.formatSeconds)(n),"</span>")),this.element.innerHTML='\n            <div class="'.concat(i.DPX,'-link-left">\n                <div class="').concat(i.DPX,'-link-icon">').concat(o,'</div>\n                <div class="').concat(i.DPX,'-link-msg">').concat(this.text,'</div>\n            </div>\n            <div class="').concat(i.DPX,"-link-middle ").concat(i.DPX,'-link-line"></div>\n            <div class="').concat(i.DPX,'-link-right">\n                <div class="').concat(i.DPX,'-link-watchlater">\n                    <i></i>\n                    <span>稍后再看</span>\n                </div>\n            </div>\n        '),this.manager.track.s("player.dm-link.show",{dmid:this.textData.dmid,dm_title:this.textData.text,av_type:this.modeInfo.arcType,scene_type:this.modeInfo.arcType})},r.prototype.afterRender=function(){var t=this.modeInfo,n=t.arcType,o=t.aid;this.leftArea=this.element.querySelector(".".concat(i.DPX,"-link-left")),this.rightArea=this.element.querySelector(".".concat(i.DPX,"-link-right")),2===n?this.rightArea.innerHTML='\n                <div class="'.concat(i.DPX,'-link-play">').concat(e(),"</div>\n            "):(this.watchLaterDom=this.element.querySelector(".".concat(i.DPX,"-link-watchlater")),r.isAddWatchLaterMap[o]&&this.watchLaterDom.classList.add("".concat(i.DPX,"-link-watchlater-active")))},r.prototype.bindEvents=function(){var t=this.modeInfo.arcType;this.leftArea&&this.leftArea.addEventListener("click",this.cmdClick),this.rightArea&&(2===t?this.rightArea.addEventListener("click",this.cmdClick):this.rightArea.addEventListener("click",this.watchLater))},r.prototype.removeEventListener=function(){var t,e;this.leftArea&&this.leftArea.removeEventListener("click",this.cmdClick),null===(t=this.rightArea)||void 0===t||t.removeEventListener("click",this.watchLater),null===(e=this.rightArea)||void 0===e||e.removeEventListener("click",this.cmdClick)},r.prototype.cmdClick=function(t){t.stopPropagation();var e=this.modeInfo,n=e.aid,r=e.arcType,o=e.bvid,a=e.epid;this.manager.track.c("player.dm-link.click",{dmid:this.textData.dmid,dm_title:this.textData.text,av_type:this.modeInfo.arcType,scene_type:this.modeInfo.arcType}),this.manager.track.e("dm-link-jump-click",{dmid:this.textData.dmid,dm_title:this.textData.text,av_type:this.modeInfo.arcType,scene_type:this.modeInfo.arcType}),this.manager.emit(i.EventType.Link_Danmaku_Click,{params:{aid:n,arcType:r,bvid:o,epid:a,text:this.text,isAddWatchLater:null}});var s="//www.bilibili.com/";a?s+=(2===r?"cheese/play/":"bangumi/play/")+a:o?s+="video/"+o:n&&(s+="video/av"+n),window.open(s)},r.prototype.watchLater=function(t){var e=this;t.stopPropagation();var n=this.modeInfo,o=n.aid,a=n.arcType,s=n.bvid,l=n.epid;this.manager.track.e("dm-link-watchlater-click",{dmid:this.textData.dmid,dm_title:this.textData.text,av_type:this.modeInfo.arcType,scene_type:this.modeInfo.arcType}),this.manager.track.c("player.dm-link.click",{dmid:this.textData.dmid,dm_title:this.textData.text,av_type:this.modeInfo.arcType,scene_type:this.modeInfo.arcType}),this.manager.emit(i.EventType.Link_Danmaku_Click,{params:{aid:o,arcType:a,bvid:s,epid:l,text:this.text,isAddWatchLater:r.isAddWatchLaterMap[o]||!1},cb:function(t){t&&(r.isAddWatchLaterMap[o]=!r.isAddWatchLaterMap[o],r.isAddWatchLaterMap[o]?e.watchLaterDom.classList.add("".concat(i.DPX,"-link-watchlater-active")):e.watchLaterDom.classList.remove("".concat(i.DPX,"-link-watchlater-active")))}})},r.prototype.destroy=function(){return this.shrinkState===i.ShrinkState.HIDE&&this.setShrinkState(i.ShrinkState.ON),this.removeEventListener(),t.prototype.destroy.call(this)},r.isAddWatchLaterMap={},b([n.Ay],r.prototype,"cmdClick",null),b([n.Ay],r.prototype,"watchLater",null),r}(i.CommandRender);const E=v})();var Jt=qt.A,Kt={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},62:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-reserve {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  font-size: 14px;\n  color: #fff;\n  background-color: rgba(33, 33, 33, 0.8);\n  border-radius: 8px;\n  padding: 6px 8px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  width: 290px;\n  height: 50px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  z-index: 1;\n  -webkit-transition: opacity 0.35s;\n  transition: opacity 0.35s;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  cursor: default;\n}\n.bili-danmaku-x-reserve.bili-danmaku-x-editor {\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-reserve.bili-danmaku-x-editor-btn:hover {\n  background: #00a1d6;\n}\n.bili-danmaku-x-reserve.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-reserve-msg {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  padding-right: 4.5em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  line-height: 1;\n}\n.bili-danmaku-x-reserve-title {\n  text-overflow: ellipsis;\n  overflow: hidden;\n  pointer-events: none;\n  white-space: nowrap;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  font-size: 14px;\n  height: 20px;\n  line-height: 20px;\n}\n.bili-danmaku-x-reserve-num {\n  font-size: 12px;\n  line-height: 17px;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  color: rgba(255, 255, 255, 0.7);\n}\n.bili-danmaku-x-reserve-num-left {\n  display: none;\n  margin-right: 10px;\n  position: relative;\n}\n.bili-danmaku-x-reserve-num-left::after {\n  content: '.';\n  position: absolute;\n  top: 0;\n  line-height: 1em;\n  right: -9px;\n}\n.bili-danmaku-x-reserve-num-left svg {\n  width: 14px;\n  height: 14px;\n  vertical-align: bottom;\n}\n.bili-danmaku-x-reserve-num-left .bili-danmaku-x-img {\n  width: 14px;\n  vertical-align: text-top;\n  margin-right: 4px;\n}\n.bili-danmaku-x-reserve-num-left.bili-danmaku-x-show {\n  display: inline-block;\n}\n.bili-danmaku-x-reserve-num-left.bili-danmaku-x-show::after {\n  content: '.';\n  position: absolute;\n  top: 0;\n  line-height: 1em;\n  right: -9px;\n}\n.bili-danmaku-x-reserve-num-right {\n  position: relative;\n}\n.bili-danmaku-x-reserve-btn {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  position: absolute;\n  top: 50%;\n  -webkit-transform: translate(0, -50%);\n          transform: translate(0, -50%);\n  right: 0.76em;\n  min-width: 60px;\n  padding: 0 5px;\n  height: 24px;\n  font-size: 12px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  background: #00a1d6;\n  border-radius: 4px;\n  line-height: 2;\n  cursor: pointer;\n}\n.bili-danmaku-x-reserve-btn:hover {\n  background: #00b5e5;\n}\n.bili-danmaku-x-reserve-btn .bili-danmaku-x-reserve-icon {\n  display: none;\n  width: 16px;\n  height: 16px;\n  font-size: 0;\n}\n.bili-danmaku-x-reserve-btn .bili-danmaku-x-reserve-icon-tick {\n  display: none;\n  margin-right: 4px;\n  width: 10px;\n  height: 8px;\n  font-size: 0;\n}\n.bili-danmaku-x-reserve-btn.bili-danmaku-x-unreserved .bili-danmaku-x-reserve-icon {\n  display: block;\n}\n.bili-danmaku-x-reserve-btn.bili-danmaku-x-reserved {\n  background: rgba(255, 255, 255, 0.2);\n}\n.bili-danmaku-x-reserve-btn.bili-danmaku-x-reserved:hover {\n  background: rgba(255, 255, 255, 0.3);\n}\n.bili-danmaku-x-reserve-btn.bili-danmaku-x-reserved .bili-danmaku-x-reserve-icon {\n  display: none;\n}\n.bili-danmaku-x-reserve-btn.bili-danmaku-x-reserved .bili-danmaku-x-reserve-icon-tick {\n  display: block;\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},4634:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:t=>{
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:t=>{t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:t=>{t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'}},Xt={};function $t(t){var e=Xt[t];if(void 0!==e)return e.exports;var i=Xt[t]={id:t,exports:{}};return Kt[t](i,i.exports,$t),i.exports}$t.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return $t.d(e,{a:e}),e},$t.d=(t,e)=>{for(var i in e)$t.o(e,i)&&!$t.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},$t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var te={};(()=>{$t.d(te,{A:()=>w});const t=(t=>{var e={};return $t.d(e,t),e})({DPX:()=>r.C5,EventType:()=>r.tw}),e=(t=>{var e={};return $t.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC});$t(4634),$t(2427),$t(426),$t(9057),$t(5684),$t(1496),$t(7381),$t(4173);var i=$t(7159),n=$t.n(i),o=($t(610),$t(6653)),a=$t.n(o);$t(739),$t(3779),$t(1048),$t(4395),$t(536),$t(6786),$t(9461);const s=(t=>{var e={};return $t.d(e,t),e})({htmlEncode:()=>r.Ak});var l=$t(5179),A=$t(3957),c=$t.n(A),h=$t(5629),d=$t.n(h),u=$t(8866),p=$t.n(u),g=$t(511),f=$t.n(g),m=$t(3897),y=$t.n(m),b=$t(62),v={attributes:{"data-injector":"danmaku-x"}};v.setAttributes=f(),v.insert=p().bind(null,"head"),v.domAPI=d(),v.insertStyleElement=y(),c()(b.A,v),b.A&&b.A.locals&&b.A.locals;var E,I=(E=function(t,e){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},E(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),C=function(){return C=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},C.apply(this,arguments)},B=function(i){function r(t){return i.call(this,t,"reserve")||this}return I(r,i),r.prototype.getSize=function(){return{width:290,height:50}},r.prototype.getSpaceManager=function(){return e.CommandSpaceManager},r.prototype.render=function(e){var i="".concat(t.DPX,"-").concat(this.id)+(e?" ".concat(t.DPX,"-show"):"");this.config.setting.canBindMove&&(i+=" ".concat(t.DPX,"-editor")),
this.manager.track.s("player.dm-order.show",{dmid:this.textData.dmid,biz_type:this.modeInfo.reserveType,reserve_id:this.modeInfo.reserveId,dm_status:this.modeInfo.state}),this.element.className=i;var r=this.modeInfo,o=r.reserveType,l=r.liveState,A=r.popularityStr,c=r.popularity,h=r.liveTimeFormat,d=r.liveTime,u=r.count,p=r.arcTimeFormat,g=r.premiereView,f=r.premiereState,m=r.premiereCount,y=r.desc,b=r.state,v=r.arcTime,E=r.userState,I=r.liveLottery,C="",B="",w="",x="";if(2===o)if(1===l)x="<img class=".concat(t.DPX,'-img src="//s1.hdslb.com/bfs/static/player/img/playing.gif">'),C="直播中",B=A||this.formatNum(c)+"人气";else{var Q="开播";2===l&&(Q="直播"),C=h?h+Q:(d?this.format(new Date(d)):"")+Q,B=this.formatNum(u)+"人预约"}else if(4===o){C=(p||"")+"首映";var S="人预约",k=u;switch(f){case 2:S="人在线",C="首映中",k=m;break;case 3:S="观看",C="",k=g}B=this.formatNum(k)+S}else if(y)C=y,B=this.formatNum(u)+"人预约";else{var D=v;C=p?"预计".concat(p,"发布"):D?"预计".concat(this.format(new Date(D)),"发布"):"",B=this.formatNum(u)+"人预约"}var _="".concat(t.DPX,"-reserve-btn");2===o&&l||b?(w="去观看",2===o&&2===l&&(w="看回放")):E?(_+=" ".concat(t.DPX,"-reserved"),w="已预约"):(_+=" ".concat(t.DPX,"-unreserved"),w="预约"+(I?"有奖":"")),this.element.innerHTML='\n                <div class="'.concat(t.DPX,'-reserve-msg">\n                    <div class="').concat(t.DPX,'-reserve-title">').concat(this.text,'</div>\n                    <div class="').concat(t.DPX,'-reserve-num">\n                        <span class="').concat(t.DPX,"-reserve-num-left ").concat(C?"".concat(t.DPX,"-show"):"",'">').concat(x+(0,s.htmlEncode)(C),'</span>\n                        <span class="').concat(t.DPX,'-reserve-num-right">').concat((0,s.htmlEncode)(B),'</span>\n                    </div>\n                </div>\n                <div class="').concat(_,'" data-action="reserve">\n                    <div class="').concat(t.DPX,'-reserve-icon">').concat(n(),'</div>\n                    <div class="').concat(t.DPX,'-reserve-icon-tick">').concat(a(),'</div>\n                    <div class="').concat(t.DPX,'-reserve-btn-text">').concat(w,"</div>\n                </div>")},r.prototype.afterRender=function(){this.template={leftDom:this.element.querySelector(".".concat(t.DPX,"-reserve-num-left")),rightDom:this.element.querySelector(".".concat(t.DPX,"-reserve-num-right")),btnDom:this.element.querySelector(".".concat(t.DPX,"-reserve-btn-text")),btn:this.element.querySelector(".".concat(t.DPX,"-reserve-btn"))}},r.prototype.bindEvents=function(){var t;null===(t=this.template)||void 0===t||t.btn.addEventListener("click",this.cmdClick)},r.prototype.cmdClick=function(e){var i=this;e.stopPropagation();var n=this.textData.dmid,r=this.modeInfo,o=r.userState,a=r.count;this.manager.emit(t.EventType.Reserve_Danmaku_Click,{params:C({dmid:n},this.modeInfo),cb:function(t){t&&i.textData&&(o=!o,i.modeInfo.userState=o,i.modeInfo.count=o?a+1:a-1,i.destroy(),i.init(i.options,"reserve"),i.manager.track.c("player.dm-order.click",{dmid:n,biz_type:i.modeInfo.reserveType,reserve_id:i.modeInfo.reserveId,dm_status:i.modeInfo.state,click_result:o?2:1}),i.manager.track.e("dm-reserve-click",{dmid:n,reserve_type:i.modeInfo.reserveType,reserve_id:i.modeInfo.reserveId,dm_status:i.modeInfo.state,click_result:o?2:1}))}})},r.prototype.formatNum=function(t){var e=String(t);return t>1e4&&(e=(t/1e4).toFixed(1)+"万"),e},r.prototype.format=function(t){var e="MM-dd hh:mm",i=t.getTime(),n=t.getFullYear(),r=new Date,o=t.getDate(),a=r.getDate();n!==r.getFullYear()&&(e="YYYY-".concat(e));var s="";o===a?(e="hh:mm",s="今天"):new Date(i-864e5).getDate()===a&&(e="hh:mm",s="明天");var l={"Y+":n,"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes()};for(var A in l)new RegExp("("+A+")").test(e)&&(e=e.replace(RegExp.$1,("00"+l[A]).slice(-String(RegExp.$1).length)));return s+e},r.prototype.removeEventListener=function(){var t;null===(t=this.template)||void 0===t||t.btnDom.removeEventListener("click",this.cmdClick)},r.prototype.destroy=function(){this.removeEventListener(),i.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([l.Ay],r.prototype,"cmdClick",null),r}(e.CommandRender);const w=B})();var ee=te.A,ie={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},3347:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-rewardfans {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  font-size: 14px;\n  color: #fff;\n  background-color: rgba(33, 33, 33, 0.8);\n  border-radius: 8px;\n  padding: 6px 8px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  width: 290px;\n  height: 50px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  z-index: 1;\n  -webkit-transition: opacity 0.35s;\n  transition: opacity 0.35s;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-rewardfans.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-rewardfans-icon {\n  -webkit-box-flex: 0;\n      -ms-flex: none;\n          flex: none;\n  width: 32px;\n  height: 32px;\n  margin-right: 6px;\n  border-radius: 6px;\n  overflow: hidden;\n}\n.bili-danmaku-x-rewardfans-icon > img {\n  width: 100%;\n  height: 100%;\n}\n.bili-danmaku-x-rewardfans-msg {\n  width: 50%;\n  -webkit-box-flex: 1;\n      -ms-flex: auto;\n          flex: auto;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-box-direction: normal;\n      -ms-flex-direction: column;\n          flex-direction: column;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  line-height: 1;\n}\n.bili-danmaku-x-rewardfans-title {\n  text-overflow: ellipsis;\n  overflow: hidden;\n  pointer-events: none;\n  white-space: nowrap;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  font-size: 14px;\n  height: 20px;\n  line-height: 20px;\n}\n.bili-danmaku-x-rewardfans-sub {\n  font-size: 12px;\n  line-height: 17px;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  white-space: nowrap;\n  color: rgba(255, 255, 255, 0.7);\n}\n.bili-danmaku-x-rewardfans-btn {\n  -webkit-box-flex: 0;\n      -ms-flex: none;\n          flex: none;\n  padding: 6px;\n  font-size: 12px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  background: #00a1d6;\n  border-radius: 4px;\n  line-height: 1;\n  cursor: pointer;\n  margin-left: 6px;\n}\n.bili-danmaku-x-rewardfans-btn:hover {\n  background: #00b5e5;\n}\n.bili-danmaku-x-rewardfans-btn.bili-danmaku-x-clicked {\n  background: rgba(255, 255, 255, 0.2);\n}\n.bili-danmaku-x-rewardfans-btn.bili-danmaku-x-clicked:hover {\n  background: rgba(255, 255, 255, 0.3);\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),
n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},ne={};function re(t){var e=ne[t];if(void 0!==e)return e.exports;var i=ne[t]={id:t,exports:{}};return ie[t](i,i.exports,re),i.exports}re.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return re.d(e,{a:e}),e},re.d=(t,e)=>{for(var i in e)re.o(e,i)&&!re.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},re.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var oe={};(()=>{re.d(oe,{A:()=>E});const t=(t=>{var e={};return re.d(e,t),e})({DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub}),e=(t=>{var e={};return re.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC}),i=(t=>{var e={};return re.d(e,t),e})({htmlEncode:()=>r.Ak});var n=re(5179),o=re(3957),a=re.n(o),s=re(5629),l=re.n(s),A=re(8866),c=re.n(A),h=re(511),d=re.n(h),u=re(3897),p=re.n(u),g=re(3347),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},m(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(){return b=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},b.apply(this,arguments)},v=function(r){function o(t){var e=r.call(this,t,"rewardfans")||this;return e.noShrink=!0,e}return y(o,r),o.prototype.getSize=function(){return{width:290,height:50}},o.prototype.getSpaceManager=function(){return e.CommandSpaceManager},o.prototype.render=function(e){var n="".concat(t.DPX,"-").concat(this.id)+(e?" ".concat(t.DPX,"-show"):"");this.manager.track.s("player.dm-reward-fans.show",{dmid:this.textData.dmid,dm_status:this.modeInfo.userState?1:0}),this.element.className=n;var r=this.modeInfo,o=r.subTitle,a=r.prefixIcon,s=r.userState;this.element.innerHTML='\n            <div class="'.concat(t.DPX,'-rewardfans-icon">\n                <img src="').concat(a,'">\n            </div>\n            <div class="').concat(t.DPX,'-rewardfans-msg">\n                <div class="').concat(t.DPX,'-rewardfans-title">').concat(this.text,'</div>\n                <div class="').concat(t.DPX,'-rewardfans-sub">').concat((0,i.htmlEncode)(o),'</div>\n            </div>\n            <div class="').concat(t.DPX,"-rewardfans-btn ").concat(s?"".concat(t.DPX,"-clicked"):"",'">\n                ').concat(s?"已参与":"一键参与","\n            </div>\n        ")},o.prototype.afterRender=function(e){this.btnDom=this.element.querySelector(".".concat(t.DPX,"-rewardfans-btn"))},o.prototype.bindEvents=function(){var t;null===(t=this.btnDom)||void 0===t||t.addEventListener("click",this.cmdClick)},o.prototype.removeEventListener=function(){var t;null===(t=this.btnDom)||void 0===t||t.removeEventListener("click",this.cmdClick)},o.prototype.cmdClick=function(e){var i=this;e.stopPropagation();var n=this.textData,r=(n.mode,n.dmid);this.manager.emit(t.EventType.Rewardfans_Danmaku_Click,{params:b({dmid:r},this.modeInfo),cb:function(e){e&&i.textData&&(i.modeInfo.userState=!0,i.btnDom.classList.add("".concat(t.DPX,"-clicked")),i.btnDom.textContent="已参与",i.manager.track.c("player.dm-reward-fans.click",{dmid:r,action:i.modeInfo.userState?1:2}),i.manager.track.e("dm-rewardfans-click",{dmid:r,action:i.modeInfo.userState?1:2}))}})},o.prototype.destroy=function(){this.shrinkState===t.ShrinkState.HIDE&&this.setShrinkState(t.ShrinkState.ON),this.removeEventListener(),r.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([n.Ay],o.prototype,"cmdClick",null),o}(e.CommandRender);const E=v})();var ae=oe.A,se={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},1276:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-score {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  font-size: 12px;\n  width: 206px;\n  height: 62px;\n  background-color: rgba(33, 33, 33, 0.8);\n  border-radius: 8px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  cursor: pointer;\n  color: #fff;\n  z-index: 1;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-score.bili-danmaku-x-show {\n  opacity: 1;\n  visibility: visible;\n}\n.bili-danmaku-x-score:hover {\n  z-index: 2;\n}\n.bili-danmaku-x-score-title {\n  margin: 10px 0 4px 10px;\n  height: 12px;\n}\n.bili-danmaku-x-score.bili-danmaku-x-no-event .bili-danmaku-x-score-area {\n  pointer-events: none;\n}\n.bili-danmaku-x-score-area {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.bili-danmaku-x-score-area-item span {\n  position: absolute;\n  width: 33px;\n  height: 33px;\n  line-height: 33px;\n  text-align: center;\n  font-size: 20px;\n  background: rgba(0, 0, 0, 0.6);\n  margin-left: 5px;\n  bottom: 68px;\n  border-radius: 2px;\n  display: none;\n  -webkit-transition: 0.1s;\n  transition: 0.1s;\n  pointer-events: none;\n}\n.bili-danmaku-x-score-area-item span:before {\n  content: '';\n  position: absolute;\n  top: 100%;\n  left: 14px;\n  border: 3px solid;\n  border-color: rgba(0, 0, 0, 0.6) transparent transparent;\n}\n.bili-danmaku-x-score-area-item img {\n  width: 18px;\n  height: 18px;\n  margin: 7px 11.5px;\n  -webkit-transition: 0.2s;\n  transition: 0.2s;\n  pointer-events: none;\n}\n.bili-danmaku-x-score-area-item:hover img {\n  -webkit-transform: scale(1.3);\n          transform: scale(1.3);\n}\n.bili-danmaku-x-score-area-item:hover span {\n  display: block;\n}\n.bili-danmaku-x-score-result {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  position: absolute;\n  pointer-events: none;\n  opacity: 0;\n  top: 34px;\n  right: 10px;\n  line-height: 20px;\n  color: rgba(255, 255, 255, 0.7);\n  -webkit-transition-property: margin, opacity;\n  transition-property: margin, opacity;\n  -webkit-transition-duration: 0.17s;\n          transition-duration: 0.17s;\n  -webkit-transition-delay: 0.6s;\n          transition-delay: 0.6s;\n}\n.bili-danmaku-x-score-result span {\n  font-size: 20px;\n  margin-left: 5px;\n  -webkit-transition-property: margin, opactiy, -webkit-animation;\n  transition-property: margin, opactiy, -webkit-animation;\n  transition-property: margin, opactiy, animation;\n  transition-property: margin, opactiy, animation, -webkit-animation;\n  -webkit-transition-duration: 0.17s;\n          transition-duration: 0.17s;\n  -webkit-transition-delay: 0.6s;\n          transition-delay: 0.6s;\n}\n.bili-danmaku-x-score-count {\n  position: absolute;\n  top: 10px;\n  right: 10px;\n  opacity: 0.7;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area {\n  pointer-events: none;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result img {\n  -webkit-transform: scale(0.7);\n          transform: scale(0.7);\n  -webkit-transition: 0.1s;\n  transition: 0.1s;\n  -webkit-transition-delay: 0.2s;\n          transition-delay: 0.2s;\n  -webkit-transform-origin: left bottom;\n          transform-origin: left bottom;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .off {\n  opacity: 0.5;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result img + span {\n  display: block;\n  opacity: 0;\n  margin-top: -8px;\n  -webkit-transition: 0.1s;\n  transition: 0.1s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area-item {\n  -webkit-transition: -webkit-transform 0.1s;\n  transition: -webkit-transform 0.1s;\n  transition: transform 0.1s;\n  transition: transform 0.1s, -webkit-transform 0.1s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area-item:nth-child(1) {\n  -webkit-transform: translateX(0);\n          transform: translateX(0);\n  -webkit-transition-delay: 0.2s;\n          transition-delay: 0.2s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area-item:nth-child(2) {\n  -webkit-transform: translateX(-20px);\n          transform: translateX(-20px);\n  -webkit-transition-delay: 0.3s;\n          transition-delay: 0.3s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area-item:nth-child(3) {\n  -webkit-transform: translateX(-40px);\n          transform: translateX(-40px);\n  -webkit-transition-delay: 0.4s;\n          transition-delay: 0.4s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area-item:nth-child(4) {\n  -webkit-transform: translateX(-60px);\n          transform: translateX(-60px);\n  -webkit-transition-delay: 0.5s;\n          transition-delay: 0.5s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-area-item:nth-child(5) {\n  -webkit-transform: translateX(-80px);\n          transform: translateX(-80px);\n  -webkit-transition-delay: 0.6s;\n          transition-delay: 0.6s;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-result {\n  opacity: 1;\n}\n.bili-danmaku-x-score.bili-danmaku-x-has-result .bili-danmaku-x-score-result span {\n  -webkit-animation: jump-score 0.17s forwards;\n          animation: jump-score 0.17s forwards;\n  -webkit-animation-delay: 0.6s;\n          animation-delay: 0.6s;\n}\n@-webkit-keyframes jump-score {\n  0% {\n    margin-top: 13px;\n  }\n  41% {\n    margin-top: 0;\n  }\n  61.5% {\n    margin-top: -3px;\n  }\n  100% {\n    margin-top: 0;\n  }\n}\n@keyframes jump-score {\n  0% {\n    margin-top: 13px;\n  }\n  41% {\n    margin-top: 0;\n  }\n  61.5% {\n    margin-top: -3px;\n  }\n  100% {\n    margin-top: 0;\n  }\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t)
;if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},le={};function Ae(t){var e=le[t];if(void 0!==e)return e.exports;var i=le[t]={id:t,exports:{}};return se[t](i,i.exports,Ae),i.exports}Ae.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Ae.d(e,{a:e}),e},Ae.d=(t,e)=>{for(var i in e)Ae.o(e,i)&&!Ae.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Ae.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ce={};(()=>{Ae.d(ce,{A:()=>I});const t=(t=>{var e={};return Ae.d(e,t),e})({DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub}),e=(t=>{var e={};return Ae.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC});var i=Ae(5179),n=Ae(3957),o=Ae.n(n),a=Ae(5629),s=Ae.n(a),l=Ae(8866),A=Ae.n(l),c=Ae(511),h=Ae.n(c),d=Ae(3897),u=Ae.n(d),p=Ae(1276),g={attributes:{"data-injector":"danmaku-x"}};g.setAttributes=h(),g.insert=A().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u(),o()(p.A,g),p.A&&p.A.locals&&p.A.locals;var f,m=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},b=function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},v=function(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},E=function(n){function r(t){return n.call(this,t,"score")||this}return m(r,n),r.prototype.getSize=function(){return{width:206,height:62}},r.prototype.getSpaceManager=function(){return e.CommandSpaceManager},r.prototype.render=function(e){var i=this.modeInfo,n=i.midScore,r=i.skinSelected,o=i.skinUnselected,a=i.avgScore,s=i.count,l=i.skinFontColor,A="".concat(t.DPX,"-").concat(this.id);e&&(A+=" ".concat(t.DPX,"-show")),(this.config.setting.canBindMove||n)&&(A+=" ".concat(t.DPX,"-no-event")),!this.config.setting.canBindMove&&n&&(A+=" ".concat(t.DPX,"-has-result")),this.manager.track.s("player.dm-score.show",{dmid:this.textData.dmid,vote_status:this.modeInfo.midScore?1:2}),this.element.className=A;for(var c="",h=0;h<5;h++)c+="\n                <div class=".concat(t.DPX,"-score-area-item data-val=").concat(h+1,">\n                    <img src=").concat(n/2>=h+1?r:o," />\n                    <span>").concat(h+1,"</span>\n                </div>\n            ");this.element.innerHTML='\n            <div class="'.concat(t.DPX,'-score-title">').concat(this.text,'</div>\n            <div class="').concat(t.DPX,'-score-area" style="color:').concat(l,'">').concat(c,'</div>\n            <div class="').concat(t.DPX,'-score-result">平均 <span style="color:').concat(l,'">').concat(this.parseNumber(a),'</span></div>\n            <div class="').concat(t.DPX,'-score-count">').concat(this.showCount(s||0),"</div>\n        ")},r.prototype.afterRender=function(){this.areaDom=this.element.querySelector(".".concat(t.DPX,"-score-area")),this.resultDom=this.element.querySelector(".".concat(t.DPX,"-score-result")),this.countDom=this.element.querySelector(".".concat(t.DPX,"-score-count"))},r.prototype.bindEvents=function(){this.element.addEventListener("click",this.cmdClick),this.modeInfo.midScore||(this.element.addEventListener("mouseover",this.cmdMouseOver),this.element.addEventListener("mouseleave",this.cmdMouseLeave))},r.prototype.update=function(){return b(this,void 0,void 0,(function(){var t;return v(this,(function(e){switch(e.label){case 0:return this.areaDom?[4,this.getBtnState()]:[2];case 1:return t=e.sent().score,this.modeInfo?(t&&this.showResult(t),[2]):[2]}}))}))},r.prototype.getBtnState=function(){return b(this,arguments,void 0,(function(e){var i=this;return void 0===e&&(e="getState"),v(this,(function(n){return[2,new Promise((function(n,r){var o=i.textData.mode;i.manager.emit(t.EventType.Score_Danmaku_Events,{mode:o,action:e,cb:function(t){n(t)}})}))]}))}))},r.prototype.parseNumber=function(t,e){return void 0===e&&(e=1),Number(t).toFixed(e)},r.prototype.showCount=function(t){var e=t/1e4;return(e=e>=1?this.parseNumber(e)+"万":t)+"人参与"},r.prototype.showResult=function(e){var i=this.modeInfo,n=i.avgScore,r=i.count;this.modeInfo.midScore=2*e;var o=(n*r+this.modeInfo.midScore)/(r+1);this.modeInfo.avgScore=o,this.resultDom.querySelector("span").innerText=this.parseNumber(o),this.modeInfo.count=r+1,this.countDom.innerHTML=this.showCount(r+1),this.element.classList.add("".concat(t.DPX,"-has-result")),this.changeImgSrc(e)},r.prototype.removeEventListener=function(){this.element.removeEventListener("click",this.cmdClick),this.element.removeEventListener("mouseover",this.cmdMouseLeave),this.element.removeEventListener("mouseleave",this.cmdMouseLeave)},r.prototype.cmdClick=function(e){var i=this;e.stopPropagation();var n=+e.target.dataset.val;if(n){var r=this.textData.duration,o=this.modeInfo.gradeId;this.manager.emit(t.EventType.Score_Danmaku_Events,{action:"click",params:{score:n,gradeId:o,stime:this.showTime,duration:r},cb:function(t){t&&i.textData&&(i.endTime=i.manager.renderTime+4,i.textData.duration=i.endTime-i.showTime,i.showResult(n),
i.manager.track.c("player.dm-score.click",{dmid:i.textData.dmid}),i.manager.track.e("dm-score-click",{dmid:i.textData.dmid,score:n}))}})}},r.prototype.cmdMouseOver=function(t){if(!this.modeInfo.midScore){var e=t.target.name||t.target.dataset.val;isNaN(e)||this.changeImgSrc(e)}},r.prototype.cmdMouseLeave=function(t){this.modeInfo.midScore||this.changeImgSrc(this.modeInfo.midScore/2||0)},r.prototype.changeImgSrc=function(t){t=Number(t);for(var e=this.areaDom.querySelectorAll("img"),i=0;i<e.length;i++){var n=e[i];t>=i+1?(n.src=this.modeInfo.skinSelected,n.className="on"):(n.src=this.modeInfo.skinUnselected,n.className="off")}},r.prototype.destroy=function(){this.shrinkState===t.ShrinkState.HIDE&&this.setShrinkState(t.ShrinkState.ON),this.textData.duration=this.modeInfo.duration,this.removeEventListener(),n.prototype.destroy.call(this)},y([i.Ay],r.prototype,"cmdClick",null),y([i.Ay],r.prototype,"cmdMouseOver",null),y([i.Ay],r.prototype,"cmdMouseLeave",null),r}(e.CommandRender);const I=E})();var he=ce.A,de={5063:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-scoreSum {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  font-size: 12px;\n  width: 203px;\n  color: #fff;\n  background-color: rgba(33, 33, 33, 0.8);\n  border-radius: 8px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-scoreSum.bili-danmaku-x-show {\n  opacity: 1;\n  visibility: visible;\n}\n.bili-danmaku-x-scoreSum-title {\n  margin: 14px 0 0 14px;\n  height: 14px;\n}\n.bili-danmaku-x-scoreSum-count {\n  position: absolute;\n  top: 14px;\n  right: 14px;\n  opacity: 0.7;\n}\n.bili-danmaku-x-scoreSum-area {\n  pointer-events: none;\n  font-size: 14px;\n  width: 100%;\n  padding: 8px 14px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n}\n.bili-danmaku-x-scoreSum-item {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  margin-bottom: 3px;\n  height: 24px;\n  line-height: 24px;\n  opacity: 0;\n  -webkit-transform: translateY(-10px);\n          transform: translateY(-10px);\n  -webkit-transition: all 130ms;\n  transition: all 130ms;\n}\n.bili-danmaku-x-scoreSum-item-name {\n  width: 150px;\n}\n.bili-danmaku-x-scoreSum-item-count {\n  position: absolute;\n  right: 0;\n  top: 0;\n  color: #ffb027;\n  -webkit-transition: opacity 130ms;\n  transition: opacity 130ms;\n}\n.bili-danmaku-x-scoreSum-item-count.bili-danmaku-x-show {\n  opacity: 1;\n}\n.bili-danmaku-x-scoreSum-item.bili-danmaku-x-show {\n  opacity: 1;\n  -webkit-transform: translateY(0);\n          transform: translateY(0);\n}\n.bili-danmaku-x-scoreSum-item.bili-danmaku-x-hide {\n  display: none;\n}\n.bili-danmaku-x-scoreSum-item1 {\n  opacity: 0;\n}\n.bili-danmaku-x-scoreSum-item1 .bili-danmaku-x-scoreSum-area-item-name {\n  opacity: 0;\n  -webkit-transform: translateY(10px);\n          transform: translateY(10px);\n}\n.bili-danmaku-x-scoreSum-item1 .bili-danmaku-x-scoreSum-area-item-count {\n  opacity: 0;\n}\n.bili-danmaku-x-scoreSum-item1 .bili-danmaku-x-scoreSum-area-item-count-show {\n  opacity: 1;\n}\n.bili-danmaku-x-scoreSum-sliders {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  position: absolute;\n  bottom: 10px;\n  left: 50%;\n  -webkit-transform: translateX(-50%);\n          transform: translateX(-50%);\n}\n.bili-danmaku-x-scoreSum-sliders-item {\n  width: 4px;\n  height: 4px;\n  background: #fff;\n  border-radius: 2px;\n  margin: 2px;\n  -webkit-transition: opacity 130ms;\n  transition: opacity 130ms;\n  opacity: 0.3;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-scoreSum-sliders-item-on {\n  opacity: 1;\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},ue={};function pe(t){var e=ue[t];if(void 0!==e)return e.exports;var i=ue[t]={id:t,exports:{}};return de[t](i,i.exports,pe),i.exports}pe.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return pe.d(e,{a:e}),e},pe.d=(t,e)=>{for(var i in e)pe.o(e,i)&&!pe.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},pe.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ge={};(()=>{pe.d(ge,{A:()=>b});const t=(t=>{var e={};return pe.d(e,t),e})({DPX:()=>r.C5,EInteractMode:()=>r.VP,ShrinkState:()=>r.Ub}),e=(t=>{var e={};return pe.d(e,t),e})({htmlEncode:()=>r.Ak
}),i=(t=>{var e={};return pe.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC});var n=pe(3957),o=pe.n(n),a=pe(5629),s=pe.n(a),l=pe(8866),A=pe.n(l),c=pe(511),h=pe.n(c),d=pe(3897),u=pe.n(d),p=pe(5063),g={attributes:{"data-injector":"danmaku-x"}};g.setAttributes=h(),g.insert=A().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u(),o()(p.A,g),p.A&&p.A.locals&&p.A.locals;var f,m=(f=function(t,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},f(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=function(n){function r(t){var e=n.call(this,t,"scoreSum")||this;return e.timer={},e}return m(r,n),r.prototype.getSize=function(){return{width:this.width,height:this.height}},r.prototype.getSpaceManager=function(){return i.CommandSpaceManager},r.prototype.render=function(i){var n=this.modeInfo.summaryList;if(null==n?void 0:n.length){this.element.className="".concat(t.DPX,"-").concat(this.id)+(i?" ".concat(t.DPX,"-show"):"");var r=this.manager.dataBase.getModes(t.EInteractMode.Score);r.length&&n.forEach((function(t){r.some((function(e){var i=e||{},n=i.modeInfo;if(i.dmid===t.dmid_str&&n)return t.avg_score=n.avgScore,t.count=n.count,!0}))})),this.config.setting.canBindMove||n.sort((function(t,e){return e.avg_score-t.avg_score}));var o="",a=0,s="".concat(t.DPX,"-scoreSum-item");n.forEach((function(i){i>4&&(s+=" ".concat(t.DPX,"-scoreSum-item1")),o+='\n                <div class="'.concat(s,'">\n                    <div class=').concat(t.DPX,"-scoreSum-item-name>").concat((0,e.htmlEncode)(i.content),"</div>\n                    <div class=").concat(t.DPX,"-scoreSum-item-count>").concat(i.avg_score||0,"</div>\n                </div>\n            "),a+=isNaN(i.count)?0:i.count}));var l=(a/1e4>=1?this.parseNumber(a/1e4)+"万":a)+"人参与",A=16+27*Math.min(5,n.length),c="";n.length>5&&(A+=10,c='\n                <div class="'.concat(t.DPX,'-scoreSum-sliders">\n                    <div class="').concat(t.DPX,'-scoreSum-sliders-item"></div>\n                    <div class="').concat(t.DPX,'-scoreSum-sliders-item"></div>\n                </div>\n            ')),this.element.innerHTML='\n            <div class="'.concat(t.DPX,'-scoreSum-title">').concat(this.text,'</div>\n            <div class="').concat(t.DPX,'-scoreSum-count">').concat(l,'</div>\n            <div class="').concat(t.DPX,'-scoreSum-area" style="height:').concat(A,'px">').concat(o,"</div>\n            ").concat(c,"\n        "),this.area=this.element.querySelector(".".concat(t.DPX,"-scoreSum-area")),this.manager.track.s("player.dm-score-summary.show",{dmid:this.textData.dmid,include_dmid:n.map((function(t){return t.dmid_str})).join(",")}),this.height=28+A,this.width=206}else this.duration=-1},r.prototype.bindEvents=function(){},r.prototype.firstShow=function(){this.showed||(this.element.classList.add("".concat(t.DPX,"-show")),this.showAreaAnimate(),n.prototype.firstShow.call(this))},r.prototype.showAreaAnimate=function(){var e=this;if(!this.shrinkBtn){clearTimeout(this.page2Animate);for(var i=this.area.querySelectorAll(".".concat(t.DPX,"-scoreSum-item")),n=Math.min(5,i.length),r=function(n){var r=i[n];o.timer["item-".concat(n)]=window.setTimeout((function(){r.classList.add("".concat(t.DPX,"-show"));var i=r.querySelector(".".concat(t.DPX,"-scoreSum-item-count"));e.renderNum(i,Number(i.innerHTML),performance.now())}),100*n)},o=this,a=0;a<n;a++)r(a);i.length>5&&(this.sliderPos(1),this.page2Animate=window.setTimeout((function(){e.showAreaPage2Animate()}),3e3))}},r.prototype.showAreaPage2Animate=function(){for(var e=this,i=this.area.querySelectorAll(".".concat(t.DPX,"-scoreSum-item")),n=0;n<5;n++)i[n].classList.add("".concat(t.DPX,"-hide"));this.timer.showTimer=window.setTimeout((function(){for(var n=function(n){var r=i[n];e.timer["area-".concat(n)]=window.setTimeout((function(){r.classList.add("".concat(t.DPX,"-show"));var i=r.querySelector(".".concat(t.DPX,"-scoreSum-item-count"));e.renderNum(i,Number(i.innerHTML),performance.now())}),100*n)},r=5;r<i.length;r++)n(r);e.sliderPos(2)}),135)},r.prototype.renderNum=function(t,e,i){var n=this;requestAnimationFrame((function(r){var o,a=Math.round(e*(r-i)/1e3);o=(a=Math.min(a,e))>=1e8?(a/1e8).toFixed(1)+"亿":a>=1e4?(a/1e4).toFixed(1)+"万":a.toFixed(1),t.textContent=o,a<e&&n.renderNum(t,e,i)}))},r.prototype.parseNumber=function(t,e){return void 0===e&&(e=1),Number(t).toFixed(e)},r.prototype.sliderPos=function(e){var i=this.element.querySelectorAll(".".concat(t.DPX,"-scoreSum-sliders-item"));(null==i?void 0:i.length)&&(i.forEach((function(e){return e.classList.remove("".concat(t.DPX,"-scoreSum-sliders-item-on"))})),i[e-1].classList.add("".concat(t.DPX,"-scoreSum-sliders-item-on")))},r.prototype.destroy=function(){for(var e in this.shrinkState===t.ShrinkState.HIDE&&this.setShrinkState(t.ShrinkState.ON),this.timer)clearTimeout(this.timer[e]);n.prototype.destroy.call(this)},r}(i.CommandRender);const b=y})();var fe=ge.A,me={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},364:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-superRating {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  font-size: 14px;\n  color: #fff;\n  background-color: rgba(24, 25, 28, 0.8);\n  border-radius: 10px;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: auto;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  -webkit-transition: opacity 0.35s;\n  transition: opacity 0.35s;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  cursor: default;\n}\n.bili-danmaku-x-superRating.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-superRating.bili-danmaku-x-editor {\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-superRating.bili-danmaku-x-editor-btn:hover {\n  background: #00a1d6;\n}\n.bili-danmaku-x-superRating .bili-danmaku-x-superRating-container {\n  padding: 10px 10px;\n}\n.bili-danmaku-x-superRating-top {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: start;\n      -ms-flex-pack: start;\n          justify-content: flex-start;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-superRating-top-left {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  margin-left: 2px;\n  border-radius: 2px;\n  width: 26px;\n  height: 26px;\n  background-color: #ffffff;\n  margin-right: 6px;\n}\n.bili-danmaku-x-superRating-top-left img {\n  width: 22px;\n  height: 22px;\n}\n.bili-danmaku-x-superRating-title {\n  font-size: 16px;\n  line-height: 16px;\n}\n.bili-danmaku-x-superRating-desc {\n  margin-top: 4px;\n  font-size: 13px;\n  line-height: 13px;\n  color: #c4c4c4;\n}\n.bili-danmaku-x-superRating-content {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: justify;\n      -ms-flex-pack: justify;\n          justify-content: space-between;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  font-size: 13px;\n  line-height: 18px;\n  margin-top: 1px;\n}\n.bili-danmaku-x-superRating-role {\n  color: #c4c4c4;\n  line-height: 18px;\n  margin-right: 8px;\n}\n.bili-danmaku-x-superRating-name {\n  width: 90px;\n  -webkit-box-flex: 1;\n      -ms-flex: 1;\n          flex: 1;\n  color: #ffffff;\n  margin-right: 8px;\n  white-space: nowrap;\n  /* 禁止换行 */\n  overflow: hidden;\n  /* 溢出部分隐藏 */\n  text-overflow: ellipsis;\n  /* 使用省略号表示溢出内容 */\n}\n.bili-danmaku-x-superRating-rate {\n  font-size: 16px;\n  line-height: 22px;\n  color: #ffb027;\n}\n.bili-danmaku-x-superRating-bottom {\n  background-color: #00aeec;\n  padding: 8px 22px;\n  text-align: center;\n  border-radius: 4px;\n  margin-top: 6px;\n  cursor: pointer;\n}\n.bili-danmaku-x-superRating-button {\n  font-size: 14px;\n  color: #ffffff;\n  text-align: center;\n  cursor: pointer;\n  line-height: 14px;\n}\n.bili-danmaku-x-one {\n  margin-top: 5px;\n  opacity: 0;\n}\n.bili-danmaku-x-two {\n  opacity: 0;\n}\n.bili-danmaku-x-three {\n  opacity: 0;\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},ye={};function be(t){var e=ye[t];if(void 0!==e)return e.exports;var i=ye[t]={id:t,exports:{}};return me[t](i,i.exports,be),i.exports}be.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return be.d(e,{a:e}),e},be.d=(t,e)=>{for(var i in e)be.o(e,i)&&!be.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},be.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ve={};(()=>{be.d(ve,{A:()=>b});const t=(t=>{var e={};return be.d(e,t),e})({DPX:()=>r.C5,ShrinkState:()=>r.Ub}),e=(t=>{var e={};return be.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC});var i=be(5179),n=be(3957),o=be.n(n),a=be(5629),s=be.n(a),l=be(8866),A=be.n(l),c=be(511),h=be.n(c),d=be(3897),u=be.n(d),p=be(364),g={attributes:{"data-injector":"danmaku-x"}};g.setAttributes=h(),g.insert=A().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u(),o()(p.A,g),p.A&&p.A.locals&&p.A.locals;var f,m=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){
if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),y=function(n){function r(t){return n.call(this,t,"superRating")||this}return m(r,n),r.prototype.getSize=function(){return{width:290,height:50}},r.prototype.getSpaceManager=function(){return e.CommandSpaceManager},r.prototype.render=function(e){var i="".concat(t.DPX,"-").concat(this.id)+(e?" ".concat(t.DPX,"-show"):"");this.config.setting.canBindMove&&(i+=" ".concat(t.DPX,"-editor")),this.manager.track.s("player.dm-scoreseries.show",{dmid:this.textData.dmid}),this.element.className=i;var n=this.modeInfo,r=n.teams,o=n.boSlogan,a=n.boUrl;this.boUrl=a,this.teamOne=r[0],this.teamOne.user_count=this.showCount(this.teamOne.user_count),this.teamTwo=r[1],this.teamTwo.user_count=this.showCount(this.teamTwo.user_count);var s='\n        <div class = "'.concat(t.DPX,'-superRating-container">\n\n            <div class= "').concat(t.DPX,'-superRating-top">\n               \n                <div class= "').concat(t.DPX,'-superRating-top-left">\n                   <img src="').concat(this.teamOne.logo,'"/>\n                </div>\n                <div class= "').concat(t.DPX,'-superRating-top-right">\n                    <div class="').concat(t.DPX,'-superRating-title"> \n                        ').concat(this.teamOne.name,'\n                    </div>\n                    <div class ="').concat(t.DPX,'-superRating-desc">\n                        ').concat(this.showCount(this.teamOne.user_count),'\n                    </div>\n                </div>\n            </div>\n\n            <div class= "').concat(t.DPX,'-superRating-center">\n            \n                <div class= "').concat(t.DPX,"-superRating-content ").concat(t.DPX,'-one">\n                    <div class="').concat(t.DPX,'-superRating-role"></div>\n                    <div class="').concat(t.DPX,'-superRating-name"></div>\n                    <div class="').concat(t.DPX,'-superRating-rate"></div>\n                </div>\n\n                <div class= "').concat(t.DPX,"-superRating-content ").concat(t.DPX,'-two">\n                    <div class="').concat(t.DPX,'-superRating-role"></div>\n                    <div class="').concat(t.DPX,'-superRating-name"></div>\n                    <div class="').concat(t.DPX,'-superRating-rate"></div>\n                </div>\n\n                <div class= "').concat(t.DPX,"-superRating-content ").concat(t.DPX,'-three">\n                    <div class="').concat(t.DPX,'-superRating-role"></div>\n                    <div class="').concat(t.DPX,'-superRating-name"></div>\n                    <div class="').concat(t.DPX,'-superRating-rate"></div>\n                </div>\n            </div>\n\n            <div class = "').concat(t.DPX,'-superRating-bottom"> \n                <div class = "').concat(t.DPX,'-superRating-button">').concat(o,"</div> \n            </div>\n        </div>\n        ");this.element.innerHTML=s},r.prototype.afterRender=function(){this.template={one:this.element.querySelector(".".concat(t.DPX,"-superRating-container .").concat(t.DPX,"-one")),two:this.element.querySelector(".".concat(t.DPX,"-superRating-container .").concat(t.DPX,"-two")),three:this.element.querySelector(".".concat(t.DPX,"-superRating-container .").concat(t.DPX,"-three")),title:this.element.querySelector(".".concat(t.DPX,"-superRating-title")),img:this.element.querySelector(".".concat(t.DPX,"-superRating-top-left img")),count:this.element.querySelector(".".concat(t.DPX,"-superRating-desc")),top:this.element.querySelector(".".concat(t.DPX,"-superRating-top")),bottom:this.element.querySelector(".".concat(t.DPX,"-superRating-bottom"))}},r.prototype.bindEvents=function(){this.template.bottom&&this.template.bottom.addEventListener("click",this.handleClick)},r.prototype.animate=function(){var t,e,i,r=this.manager.renderTime;if(this.updateContent(r-this.showTime<5.2),!(r&&(null===(t=this.template)||void 0===t?void 0:t.one)&&(null===(e=this.template)||void 0===e?void 0:e.two)&&(null===(i=this.template)||void 0===i?void 0:i.three)))return n.prototype.animate.call(this);var o=r-this.showTime;return o<0?n.prototype.animate.call(this):o<1?(this.setOpacity(0,0,0,1),n.prototype.animate.call(this)):o-1<.3?(this.setOpacity((o-1)/.3,0,0,1),n.prototype.animate.call(this)):o-1<.6?(this.setOpacity(1,(o-1.3)/.3,0,1),n.prototype.animate.call(this)):o-1<.9?(this.setOpacity(1,1,(o-1.6)/.3,1),n.prototype.animate.call(this)):o<4.9?(this.setOpacity(1,1,1,1),n.prototype.animate.call(this)):o-4.9<.3?(this.setOpacity(1-(o-4.9)/.3,1-(o-4.9)/.3,1-(o-4.9)/.3,1-(o-4.9)/.3),n.prototype.animate.call(this)):o-5.2<.3?(this.setOpacity(0,0,0,(o-5.2)/.3),n.prototype.animate.call(this)):o-5.5<.3?(this.setOpacity((o-5.5)/.3,0,0,1),n.prototype.animate.call(this)):o-5.5<.6?(this.setOpacity(1,(o-5.5-.3)/.3,0,1),n.prototype.animate.call(this)):o-5.5<.9?(this.setOpacity(1,1,(o-5.5-.6)/.3,1),n.prototype.animate.call(this)):o>6.4?(this.setOpacity(1,1,1,1),n.prototype.animate.call(this)):n.prototype.animate.call(this)},r.prototype.setOpacity=function(t,e,i,n){var r=this.template,o=r.one,a=r.two,s=r.three,l=r.top;o.style.opacity=t+"",a.style.opacity=e+"",s.style.opacity=i+"",l.style.opacity=n+""},r.prototype.updateContent=function(e){this.template&&(this.template.title.innerHTML=e?this.teamOne.name:this.teamTwo.name,this.template.img.src=e?this.teamOne.logo:this.teamTwo.logo,this.template.count.innerHTML=String(e?this.teamOne.user_count:this.teamTwo.user_count),this.template.one.querySelector(".".concat(t.DPX,"-superRating-role")).innerHTML=e?this.teamOne.players[0].position:this.teamTwo.players[0].position,this.template.one.querySelector(".".concat(t.DPX,"-superRating-name")).innerHTML=e?this.teamOne.players[0].nickname:this.teamTwo.players[0].nickname,this.template.one.querySelector(".".concat(t.DPX,"-superRating-rate")).innerHTML=e?this.convertNumber(this.teamOne.players[0].avg_grade):this.convertNumber(this.teamTwo.players[0].avg_grade),this.template.two.querySelector(".".concat(t.DPX,"-superRating-role")).innerHTML=e?this.teamOne.players[1].position:this.teamTwo.players[1].position,this.template.two.querySelector(".".concat(t.DPX,"-superRating-name")).innerHTML=e?this.teamOne.players[1].nickname:this.teamTwo.players[1].nickname,this.template.two.querySelector(".".concat(t.DPX,"-superRating-rate")).innerHTML=e?this.convertNumber(this.teamOne.players[1].avg_grade):this.convertNumber(this.teamTwo.players[1].avg_grade),this.template.three.querySelector(".".concat(t.DPX,"-superRating-role")).innerHTML=e?this.teamOne.players[2].position:this.teamTwo.players[2].position,this.template.three.querySelector(".".concat(t.DPX,"-superRating-name")).innerHTML=e?this.teamOne.players[2].nickname:this.teamTwo.players[2].nickname,this.template.three.querySelector(".".concat(t.DPX,"-superRating-rate")).innerHTML=e?this.convertNumber(this.teamOne.players[2].avg_grade):this.convertNumber(this.teamTwo.players[2].avg_grade))},r.prototype.handleClick=function(t){this.manager.track.c("player.dm-scoreseries.click",{dmid:this.textData.dmid}),this.manager.track.e("dm-superRating-click",{dmid:this.textData.dmid,url:this.boUrl}),window.open(this.boUrl)},r.prototype.convertNumber=function(t){return parseFloat(t).toFixed(1)},r.prototype.parseNumber=function(t,e){return void 0===e&&(e=1),Number(t).toFixed(e)},r.prototype.showCount=function(t){if("string"==typeof t)return t;var e=t/1e4;return(e=e>=1?this.parseNumber(e)+"万":t)+"人参与打分"},r.prototype.destroy=function(){var e;return this.shrinkState===t.ShrinkState.HIDE&&this.setShrinkState(t.ShrinkState.ON),(null===(e=this.template)||void 0===e?void 0:e.button)&&this.template.button.removeEventListener("click",this.handleClick),n.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)
}([i.Ay],r.prototype,"handleClick",null),r}(e.CommandRender);const b=y})();var Ee=ve.A,Ie={5179:(t,e)=>{var i,n;(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.Ay=function(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}},2978:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-vote {\n  position: absolute;\n  left: 50%;\n  left: var(--left, 50%);\n  top: 50%;\n  top: var(--top, 50%);\n  width: 177px;\n  background: rgba(24,25,28,0.8);\n  padding: 12px 10px 4px 10px;\n  border-radius: 8px;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  font-size: 12px;\n  cursor: default;\n  -webkit-transform: translate(-50%, -50%) scale(1);\n          transform: translate(-50%, -50%) scale(1);\n  -webkit-transform: translate(-50%, -50%) scale(var(--scale, 1));\n          transform: translate(-50%, -50%) scale(var(--scale, 1));\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  opacity: 0;\n  visibility: hidden;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  pointer-events: auto;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-editor {\n  cursor: pointer;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-show {\n  visibility: visible;\n  opacity: 1;\n}\n.bili-danmaku-x-vote-question {\n  line-height: 14px;\n  height: 14px;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  white-space: nowrap;\n}\n.bili-danmaku-x-vote-an {\n  position: relative;\n  color: #fff;\n  cursor: pointer;\n}\n.bili-danmaku-x-vote-an > div {\n  pointer-events: none;\n}\n.bili-danmaku-x-vote-an-bg {\n  position: absolute;\n  width: 100%;\n  height: 26px;\n  border-radius: 4px;\n  left: 0;\n  bottom: 0;\n  background: rgba(255, 255, 255, 0.2);\n}\n.bili-danmaku-x-vote-an-bg-buffer {\n  position: absolute;\n  left: 0;\n  top: 0;\n  height: 26px;\n  width: 26px;\n  border-radius: 4px 0 0 4px;\n  -webkit-transition: width 1s;\n  transition: width 1s;\n}\n.bili-danmaku-x-vote-an-text {\n  position: relative;\n  width: 100%;\n  height: 26px;\n  line-height: 26px;\n  margin: 6px 0;\n  padding-right: 20px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.bili-danmaku-x-vote-an-text-index {\n  -webkit-box-flex: 0;\n      -ms-flex: none;\n          flex: none;\n  width: 10px;\n  text-align: center;\n  border-radius: 4px;\n}\n.bili-danmaku-x-vote-an-text-doc {\n  width: 100px;\n  text-overflow: ellipsis;\n  overflow: hidden;\n  white-space: nowrap;\n}\n.bili-danmaku-x-vote-an-num {\n  position: absolute;\n  top: 0;\n  right: 0;\n  line-height: 26px;\n  margin-right: 6px;\n  font-size: 12px;\n  color: rgba(255, 255, 255, 0.7);\n}\n.bili-danmaku-x-vote-an-num-1,\n.bili-danmaku-x-vote-an-num-2 {\n  position: absolute;\n  top: 0;\n  right: 0;\n  height: 40px;\n  opacity: 0;\n}\n.bili-danmaku-x-vote-an-num-1 {\n  position: absolute;\n  top: 0;\n  right: 0;\n}\n.bili-danmaku-x-vote-an-num-2 {\n  position: absolute;\n  top: 15px;\n  right: 0;\n  opacity: 0;\n}\n.bili-danmaku-x-vote-an.bili-danmaku-x-select .bili-danmaku-x-vote-lottie {\n  display: block;\n}\n.bili-danmaku-x-vote-an.bili-danmaku-x-select .bili-danmaku-x-vote-an-bg-buffer {\n  background: rgba(0, 161, 214, 0.6) !important;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-show-num .bili-danmaku-x-vote-an-num-1 {\n  opacity: 1;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-selected .bili-danmaku-x-vote-an {\n  -webkit-animation: voteFont 0.35s forwards;\n          animation: voteFont 0.35s forwards;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-selected .bili-danmaku-x-vote-an-bg {\n  -webkit-animation: voteBg 0.35s forwards;\n          animation: voteBg 0.35s forwards;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-selected .bili-danmaku-x-vote-an-bg-buffer {\n  background: rgba(255, 255, 255, 0.2);\n}\n.bili-danmaku-x-vote.bili-danmaku-x-end .bili-danmaku-x-vote-an-num-1 {\n  -webkit-animation: num1 170ms forwards;\n          animation: num1 170ms forwards;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-end .bili-danmaku-x-vote-an-num-2 {\n  -webkit-animation: num2 170ms forwards;\n          animation: num2 170ms forwards;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-voted .bili-danmaku-x-vote-an {\n  color: #fff;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-voted .bili-danmaku-x-vote-an-bg {\n  background: rgba(0, 0, 0, 0.4);\n}\n.bili-danmaku-x-vote.bili-danmaku-x-voted .bili-danmaku-x-vote-an-bg-buffer {\n  background: rgba(255, 255, 255, 0.2);\n}\n.bili-danmaku-x-vote.bili-danmaku-x-voted .bili-danmaku-x-vote-an-num-1 {\n  opacity: 0;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-voted .bili-danmaku-x-vote-an-num-2 {\n  opacity: 1;\n  top: 0px;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-init-selected .bili-danmaku-x-vote-an {\n  color: #fff;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-init-selected .bili-danmaku-x-vote-an-bg {\n  width: 100%;\n  height: 4px;\n  left: 8px;\n  border-radius: 2px;\n  background: rgba(255, 255, 255, 0.2);\n}\n.bili-danmaku-x-vote.bili-danmaku-x-init-selected .bili-danmaku-x-vote-an-num-1 {\n  opacity: 0;\n}\n.bili-danmaku-x-vote.bili-danmaku-x-init-selected .bili-danmaku-x-vote-an-num-2 {\n  top: 0px;\n  opacity: 1;\n}\n.bili-danmaku-x-vote-lottie {\n  position: absolute;\n  top: -6px;\n  left: -5px;\n  width: 37px;\n  height: 37px;\n  display: none;\n  z-index: 2;\n}\n@-webkit-keyframes voteFont {\n  0% {\n    color: #000;\n  }\n  65% {\n    color: #000;\n  }\n  100% {\n    color: #fff;\n  }\n}\n@keyframes voteFont {\n  0% {\n    color: #000;\n  }\n  65% {\n    color: #000;\n  }\n  100% {\n    color: #fff;\n  }\n}\n@-webkit-keyframes voteBg {\n  100% {\n    background: rgba(0, 0, 0, 0.4);\n  }\n}\n@keyframes voteBg {\n  100% {\n    background: rgba(0, 0, 0, 0.4);\n  }\n}\n@-webkit-keyframes num1 {\n  41% {\n    top: -15px;\n    opacity: 0;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n@keyframes num1 {\n  41% {\n    top: -15px;\n    opacity: 0;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n@-webkit-keyframes num2 {\n  41% {\n    top: 0px;\n    opacity: 1;\n  }\n  61.5% {\n    top: -5px;\n    opacity: 1;\n  }\n  100% {\n    top: 0px;\n    opacity: 1;\n  }\n}\n@keyframes num2 {\n  41% {\n    top: 0px;\n    opacity: 1;\n  }\n  61.5% {\n    top: -5px;\n    opacity: 1;\n  }\n  100% {\n    top: 0px;\n    opacity: 1;\n  }\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){
if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},Ce={};function Be(t){var e=Ce[t];if(void 0!==e)return e.exports;var i=Ce[t]={id:t,exports:{}};return Ie[t](i,i.exports,Be),i.exports}Be.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Be.d(e,{a:e}),e},Be.d=(t,e)=>{for(var i in e)Be.o(e,i)&&!Be.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Be.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var we={};(()=>{Be.d(we,{A:()=>v});const t=(t=>{var e={};return Be.d(e,t),e})({DPX:()=>r.C5,EventType:()=>r.tw,ShrinkState:()=>r.Ub}),e=(t=>{var e={};return Be.d(e,t),e})({CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC}),i=(t=>{var e={};return Be.d(e,t),e})({htmlEncode:()=>r.Ak});var n=Be(5179),o=Be(3957),a=Be.n(o),s=Be(5629),l=Be.n(s),A=Be(8866),c=Be.n(A),h=Be(511),d=Be.n(h),u=Be(3897),p=Be.n(u),g=Be(2978),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m,y=(m=function(t,e){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},m(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),b=function(r){function o(t){return r.call(this,t,"vote")||this}return y(o,r),o.prototype.getSize=function(){return{width:177,height:36+32*this.modeInfo.options.length}},o.prototype.getSpaceManager=function(){return e.CommandSpaceManager},o.prototype.update=function(){return function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var e,i;return function(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(n){switch(n.label){case 0:return[4,this.getBtnState("getVoteId")];case 1:return e=n.sent().voteId,this.modeInfo?(i=this.element.querySelector(".".concat(t.DPX,"-vote-flag-").concat(e)),this.vote(i,+e),[2]):[2]}}))}))},o.prototype.getBtnState=function(e){var i=this;return void 0===e&&(e="getVoteId"),new Promise((function(n,r){var o=i.textData.mode;i.manager.emit(t.EventType.Vote_Danmaku_Events,{mode:o,action:e,cb:function(t){n(t)}})}))},o.prototype.render=function(e){var n=this.modeInfo||{},r=n.myVote,o=n.options;this.voteTimer={};var a="".concat(t.DPX,"-").concat(this.id)+(e?" ".concat(t.DPX,"-show"):"");r&&(a+=" ".concat(t.DPX,"-voted"),this.parseVote()),this.config.setting.canBindMove&&(a+=" ".concat(t.DPX,"-editor")),this.manager.track.s("player.dm-vote.show",{dmid:this.textData.dmid,score_status:r?1:0}),this.element.className=a;var s="";o.forEach((function(e){var n=e.desc,o=e.has_self_def,a=e.idx,l=e.cnt,A=e.percent,c=(0,i.htmlEncode)(n),h=o?1:0,d=a===r?"".concat(t.DPX,"-select"):"",u="width:".concat(A,"%;border-radius:").concat(100===A?"4px":"4px 0 0 4px",";");s+='\n                <div class="'.concat(t.DPX,"-vote-an ").concat(t.DPX,"-vote-flag-").concat(a," ").concat(d,'" data-text="').concat(c,'" data-idx="').concat(a,'" data-action="vote" data-self="').concat(h,'">\n                    <div class="').concat(t.DPX,'-vote-lottie"></div>\n                    <div class="').concat(t.DPX,'-vote-an-bg">\n                        <div class="').concat(t.DPX,'-vote-an-bg-buffer" style="').concat(u,'"></div>\n                    </div>\n                    <div class="').concat(t.DPX,'-vote-an-text">\n                        <div class="').concat(t.DPX,'-vote-an-text-index"></div>\n                        <div class="').concat(t.DPX,'-vote-an-text-doc">').concat(c,'</div>\n                    </div>\n                    <div class="').concat(t.DPX,'-vote-an-num">\n                        <span class="').concat(t.DPX,'-vote-an-num-1">').concat(l,'</span>\n                        <span class="').concat(t.DPX,'-vote-an-num-2">').concat(A,"%</span>\n                    </div>\n                </div>\n            ")})),this.element.innerHTML='\n            <div class="'.concat(t.DPX,'-vote-question">').concat(this.text,"</div>\n            <div>\n                ").concat(s,"\n            </div>\n        ")},o.prototype.bindEvents=function(){this.element.addEventListener("click",this.cmdClick)},o.prototype.cmdClick=function(e){var i=this,n=this.textData||{},r=n.mode,o=n.dmid;if(!this.modeInfo.myVote&&!this.isVoting&&r){this.isVoting=!0;var a=this.modeInfo,s=a.voteId,l=a.voteType,A=e.target,c=Number(A.dataset.idx),h=+A.dataset.self,d=A.dataset.text;this.manager.emit(t.EventType.Vote_Danmaku_Events,{params:{voteId:s,voteType:l,dmid:o,idx:c,text:d,selfDef:h,ctime:this.options.manager.renderTime},action:"click",cb:function(t){i.isVoting=!1,t&&c&&i.textData&&(i.endTime=i.options.manager.renderTime+4,i.textData.duration=i.endTime-i.showTime,i.manager.track.c("player.dm-vote.click",{dmid:i.textData.dmid,option:i.modeInfo.options}),i.manager.track.e("dm-vote-click",{
dmid:i.textData.dmid,option:i.modeInfo.options}),i.vote(A,c))}})}},o.prototype.vote=function(t,e){if(!this.modeInfo.myVote&&t){var i=this.modeInfo.options;(null==i?void 0:i.length)&&(i.forEach((function(t){t.idx===e&&(t.cnt+=1)})),this.modeInfo.myVote=Number(e),this.triggerVote(t))}},o.prototype.triggerVote=function(e){e&&(e.classList.add("".concat(t.DPX,"-select")),this.element.classList.add("".concat(t.DPX,"-selected")),this.element.classList.add("".concat(t.DPX,"-show-num")),this.numRun())},o.prototype.numRun=function(){var e=this;this.parseVote();var i=this.modeInfo.options;(null==i?void 0:i.length)&&i.forEach((function(i){var n=e.element.querySelector(".".concat(t.DPX,"-vote-flag-").concat(i.idx)),r=n.querySelector(".".concat(t.DPX,"-vote-an-num-1"));n.querySelector(".".concat(t.DPX,"-vote-an-num-2")).textContent=i.percent+"%",n.querySelector(".".concat(t.DPX,"-vote-an-bg-buffer")).style.cssText="width:".concat(i.percent,"%;border-radius:").concat(100===i.percent?"4px":"4px 0 0 4px",";"),e.renderNum(r,i.cnt,performance.now())}))},o.prototype.renderNum=function(e,i,n){var r=this;this.voteTimer.animate=requestAnimationFrame((function(o){var a=Math.round(i*(o-n)/1e3);a=Math.min(a,i),e.textContent=String(a),a<i?r.renderNum(e,i,n):r.voteTimer.end=window.setTimeout((function(){r.element.classList.add("".concat(t.DPX,"-end"))}),1500)}))},o.prototype.parseVote=function(){var t=this.modeInfo.options;if(null==t?void 0:t.length){var e=0,i=0,n=0;t.forEach((function(t){var i=+t.cnt;(!i||i<0)&&(t.cnt=0),e+=t.cnt})),t.forEach((function(r,o){i=o===t.length-1?Math.max(100-n,0):Math.floor(r.cnt/e*100),r.percent=i,n+=i}))}},o.prototype.clearTimeout=function(){if(Object.keys(this.voteTimer).length>0)for(var t in this.voteTimer)"animate"===t?cancelAnimationFrame(this.voteTimer[t]):clearTimeout(this.voteTimer[t]),delete this.voteTimer[t]},o.prototype.destroy=function(){return this.shrinkState===t.ShrinkState.HIDE&&this.setShrinkState(t.ShrinkState.ON),this.textData.duration=this.modeInfo.duration,this.element.removeEventListener("click",this.cmdClick),this.clearTimeout(),r.prototype.destroy.call(this)},function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)}([n.Ay],o.prototype,"cmdClick",null),o}(e.CommandRender);const v=b})();var xe=we.A,Qe={5320:(t,e,i)=>{i.d(e,{A:()=>s});var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-boom {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-combo {\n  display: none;\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  pointer-events: none;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  z-index: 4;\n}\n.bili-danmaku-x-combo.bili-danmaku-x-show {\n  display: block;\n}\n.bili-danmaku-x-combo.bili-danmaku-x-show-text .bili-danmaku-x-combo-wrap {\n  opacity: 1;\n}\n.bili-danmaku-x-combo.bili-danmaku-x-first {\n  -webkit-transform: scale(0.6);\n          transform: scale(0.6);\n}\n.bili-danmaku-x-combo.bili-danmaku-x-sec {\n  -webkit-transform: scale(0.8);\n          transform: scale(0.8);\n}\n.bili-danmaku-x-combo.bili-danmaku-x-four {\n  -webkit-transform: scale(1.2);\n          transform: scale(1.2);\n}\n.bili-danmaku-x-combo.bili-danmaku-x-million {\n  top: 30%;\n}\n.bili-danmaku-x-combo.bili-danmaku-x-million .bili-danmaku-x-combo-wrap {\n  width: 222px;\n  margin-top: 33px;\n}\n.bili-danmaku-x-combo-bg {\n  position: absolute;\n}\n.bili-danmaku-x-combo-bg-img {\n  width: 240px;\n}\n.bili-danmaku-x-combo-wrap {\n  position: absolute;\n  opacity: 0;\n  -webkit-transition: opacity 250ms;\n  transition: opacity 250ms;\n  margin-top: 27px;\n  width: 208px;\n  text-align: right;\n  font-weight: bolder;\n  font-style: italic;\n  color: #fed1a9;\n  font-size: 19px;\n  line-height: 32px;\n  -webkit-transform-origin: right center;\n          transform-origin: right center;\n}\n.bili-danmaku-x-combo-wrap.bili-danmaku-x-animate {\n  -webkit-animation: comboNum 460ms forwards;\n          animation: comboNum 460ms forwards;\n}\n.bili-danmaku-x-combo-text {\n  height: 32px;\n  color: #fed1a9;\n  color: var(--color, #fed1a9);\n}\n.bili-danmaku-x-combo-num {\n  position: relative;\n  font-size: 0;\n  margin-right: 4px;\n  white-space: nowrap;\n}\n.bili-danmaku-x-combo-num-text {\n  position: absolute;\n  display: none;\n  top: 0;\n  left: 0;\n  right: 20px;\n  bottom: 0;\n  font-size: 19px;\n  line-height: 30px;\n  font-weight: bolder;\n  font-style: italic;\n}\n.bili-danmaku-x-combo-num-text.bili-danmaku-x-show {\n  display: block;\n}\n.bili-danmaku-x-combo-num > img {\n  width: 25px;\n}\n.bili-danmaku-x-combo-num > img.bili-danmaku-x-hide {\n  display: none;\n}\n.bili-danmaku-x-combo-fire {\n  position: absolute;\n  top: 0;\n  left: 0;\n}\n@-webkit-keyframes comboNum {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  28% {\n    -webkit-transform: scale(0.86);\n            transform: scale(0.86);\n  }\n  56% {\n    -webkit-transform: scale(1.26);\n            transform: scale(1.26);\n  }\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n}\n@keyframes comboNum {\n  0% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  28% {\n    -webkit-transform: scale(0.86);\n            transform: scale(0.86);\n  }\n  56% {\n    -webkit-transform: scale(1.26);\n            transform: scale(1.26);\n  }\n  100% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n}\n",""]);const s=a},2109:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},5732:t=>{t.exports=function(t){return t[1]}},3957:t=>{var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:t=>{var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:t=>{
t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:t=>{t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:t=>{var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}}},Se={};function ke(t){var e=Se[t];if(void 0!==e)return e.exports;var i=Se[t]={id:t,exports:{}};return Qe[t](i,i.exports,ke),i.exports}ke.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return ke.d(e,{a:e}),e},ke.d=(t,e)=>{for(var i in e)ke.o(e,i)&&!ke.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},ke.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var De={};(()=>{ke.d(De,{A:()=>b});const t=(t=>{var e={};return ke.d(e,t),e})({BinaryArray:()=>r.no,DPX:()=>r.C5,Render:()=>r.Hr,SpaceManager:()=>r.TV,formatText:()=>r.RZ});var e,i=(e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}),n=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return i(n,e),Object.defineProperty(n.prototype,"hasCombo",{get:function(){return!!this.list[0]&&this.list[0].length>0},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return this.hasCombo?e.duration=-1:(this.list[0]||(this.list[0]=new t.BinaryArray),this.list[0].binsert(e,this.sortFn)),{x:0,y:0,index:0}},n.prototype.remove=function(t){var e=this.list[0];e&&e.bremove(t)},n}(t.SpaceManager),o=ke(3957),a=ke.n(o),s=ke(5629),l=ke.n(s),A=ke(8866),c=ke.n(A),h=ke(511),d=ke.n(h),u=ke(3897),p=ke.n(u),g=ke(5320),f={attributes:{"data-injector":"danmaku-x"}};f.setAttributes=d(),f.insert=c().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p(),a()(g.A,f),g.A&&g.A.locals&&g.A.locals;var m=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),y=function(e){function i(t){var i=e.call(this,t,"combo")||this;return i.rNum=0,i.bginTime=.33,i.showText=.165,i.bgoutTime=1.67,i.textWrap=.46,i.fire=2,i.loopTime=2,i}return m(i,e),i.prototype.getSize=function(){return{width:0,height:0}},i.prototype.getSpaceManager=function(){return n},i.prototype.render=function(e){var i=this.modeInfo.type,n=(this.textData.resource||{}).template,r=null==n?void 0:n.textColor,o="".concat(t.DPX,"-combo"),a="";e&&(o+=" ".concat(t.DPX,"-show")),i&&100===i&&(o+=" ".concat(t.DPX,"-show-text ").concat(t.DPX,"-million")),r&&(a+="--color:".concat(r)),this.manager.track.s("player.dm-combo.show",{combo_contents:this.text,dmid:this.textData.dmid}),this.element.className=o,this.element.style.cssText=a;var s=(0,t.formatText)(this.text);this.element.innerHTML='\n            <div class="'.concat(t.DPX,'-combo-bg">\n                <img class="').concat(t.DPX,'-combo-bg-img" src="">\n            </div>\n            <div class="').concat(t.DPX,'-combo-wrap">\n                <div class="').concat(t.DPX,'-combo-text">').concat(s,'</div>\n                <div class="').concat(t.DPX,'-combo-num">\n                    <div class="').concat(t.DPX,'-combo-num-text"></div>\n                    <img class="').concat(t.DPX,'-combo-num-x" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img1" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img2" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img3" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img4" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img5" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img6" src="">\n                    <img class="').concat(t.DPX,'-combo-num-img7" src="">\n                </div>\n            </div>\n            <div class="').concat(t.DPX,'-combo-fire">\n                <img class="').concat(t.DPX,'-combo-fire-img" src="">\n            </div>\n        ')},i.prototype.afterRender=function(){this.templete={wrap:this.element.querySelector(".".concat(t.DPX,"-combo-wrap")),num:this.element.querySelector(".".concat(t.DPX,"-combo-num")),numX:this.element.querySelector(".".concat(t.DPX,"-combo-num-x")),textHide:this.element.querySelector(".".concat(t.DPX,"-combo-num-text")),bg:this.element.querySelector(".".concat(t.DPX,"-combo-bg-img")),text:this.element.querySelector(".".concat(t.DPX,"-combo-text")),fire:this.element.querySelector(".".concat(t.DPX,"-combo-fire-img"))},this.templeteNum=[this.element.querySelector(".".concat(t.DPX,"-combo-num-img7")),this.element.querySelector(".".concat(t.DPX,"-combo-num-img6")),this.element.querySelector(".".concat(t.DPX,"-combo-num-img5")),this.element.querySelector(".".concat(t.DPX,"-combo-num-img4")),this.element.querySelector(".".concat(t.DPX,"-combo-num-img3")),this.element.querySelector(".".concat(t.DPX,"-combo-num-img2")),this.element.querySelector(".".concat(t.DPX,"-combo-num-img1"))]},i.prototype.beforeCollisionCheck=function(){e.prototype.beforeCollisionCheck.call(this);var t=this.textData.duration,i=this.manager.renderTime;this.precise=i-this.textData.stime,this.showTime=i-this.precise,this.duration=t,this.endTime=this.showTime+this.duration},i.prototype.animate=function(e){e?this.rNum=5:this.rNum++;var i=this.textData.duration,n=this.modeInfo,r=n.type,o=n.count,a=n.step,s=this.resource,l=s.bgin,A=s.bgout,c=s.bgloop,h=s.numbers,d=s.anim1,u=s.anim2,p=s.anim3;(null==h?void 0:h[10])&&this.templete.numX.setAttribute("src",h[10]||"");var g=this.manager.renderTime-this.showTime;if(!(g<0||this.rNum%5!=0&&g<8.28)){if(100===r)return this.templete.bg.setAttribute("src",l[0]||""),void this.renderNum(g,i);if(g>=this.showText&&this.element.classList.add("".concat(t.DPX,"-show-text")),g<this.bginTime){if(l&&l.length&&Array.isArray(l)){var f=Math.ceil(l.length*g/this.bginTime)-1;l[f]&&this.templete.bg.setAttribute("src",l[f])}this.renderNum(0,this.bginTime)}else{g-=this.bginTime;var m=i-this.bgoutTime-this.bginTime;this.renderNum(g,m);var y=a[0]/o*m,b=a[1]/o*m,v=a[2]/o*m,E="";if(g>=y&&g<y+this.fire){if(this.textAnimate(g,y),d){var I=g-y;E=d[Math.ceil(d.length*I/this.fire)-1]}}else g>=b&&g<b+this.fire?(this.textAnimate(g,b),u&&(I=g-b,E=u[Math.ceil(u.length*I/this.fire)-1])):g>=v&&g<v+this.fire&&(this.textAnimate(g,v),p)&&(I=g-v,E=p[Math.ceil(p.length*I/this.fire)-1]);if(E&&this.templete.fire.setAttribute("src",E),g<=m){if(c){var C=g%this.loopTime,B=Math.ceil(c.length*C/this.loopTime)-1;c[B]&&this.templete.bg.setAttribute("src",c[B])}}else if((g-=m)<=this.bgoutTime){if(A){var w=Math.ceil(A.length*g/this.bgoutTime)-1;A[w]&&this.templete.bg.setAttribute("src",A[w])}g>1.17&&this.element.classList.remove("".concat(t.DPX,"-show-text"))}}}},i.prototype.renderNum=function(e,i){var n=this.modeInfo.count,r=this.resource.numbers,o=Math.ceil(n*e/i);o=Math.min(o,n),
o=Math.max(o,0);var a=String(o).split("").reverse();if(r){for(var s=0;s<7;s++)a[s]?(this.templeteNum[s].setAttribute("src",r[a[s]]),this.templeteNum[s].classList.remove("".concat(t.DPX,"-hide"))):this.templeteNum[s].classList.add("".concat(t.DPX,"-hide"));this.templete.textHide.classList.remove("".concat(t.DPX,"-show"))}},i.prototype.textAnimate=function(e,i){e<i+this.textWrap?this.templete.wrap.classList.add("".concat(t.DPX,"-animate")):this.templete.wrap.classList.remove("".concat(t.DPX,"-animate"))},i.prototype.update=function(t){this.modeInfo.count++},i.prototype.resize=function(e,i){var n=this.manager.containerSize.width,r="",o="".concat(t.DPX,"-first"),a="".concat(t.DPX,"-sec"),s="".concat(t.DPX,"-four");switch(!0){case n<638:r=o;break;case n<854:r=a;break;case n<1070:r="";break;default:r=s}this.element&&(this.element.classList.remove(o,a,s),r&&this.element.classList.add(r))},i}(t.Render);const b=y})();var _e,Re,Me=De.A,Te={7175:(t,e,i)=>{t.exports=(t=>{var e={};return i.d(e,t),e})({BinaryArray:()=>r.no,CommandRender:()=>r._F,CommandSpaceManager:()=>r.uC,DPX:()=>r.C5,ECommonMode:()=>r.H1,ESpecialMode:()=>r.yC,EventType:()=>r.tw,Render:()=>r.Hr,ShrinkState:()=>r.Ub,SpaceManager:()=>r.TV,formatNumber:()=>r.uf,formatSeconds:()=>r.ZC,formatText:()=>r.RZ})},8833:(t,e,i)=>{var n,o;t.exports=(n={DPX:()=>r.C5,EInteractMode:()=>r.VP,EventType:()=>r.tw,ShrinkState:()=>r.Ub},o={},i.d(o,n),o)},313:(t,e,i)=>{var n,o;t.exports=(n={htmlEncode:()=>r.Ak},o={},i.d(o,n),o)}},Fe={};function Le(t){var e=Fe[t];if(void 0!==e)return e.exports;var i=Fe[t]={id:t,exports:{}};return Te[t].call(i.exports,i,i.exports,Le),i.exports}Le.m=Te,Le.amdO={},Le.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return Le.d(e,{a:e}),e},Le.d=(t,e)=>{for(var i in e)Le.o(e,i)&&!Le.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},Le.f={},Le.e=t=>Promise.all(Object.keys(Le.f).reduce(((e,i)=>(Le.f[i](t,e),e)),[])),Le.u=t=>"./widgets/"+({122:"clockIn",159:"score",496:"follow",521:"reserve",536:"scoreSum",558:"goodsLike",655:"vote",680:"rewardfans",692:"cmtime",723:"superRating",827:"combo"}[t]||t)+"."+{67:"eab3d74b",122:"d14b71a0",159:"897e67d2",179:"5aa51869",226:"03128c2f",496:"ab5046ed",521:"e50f3dd0",536:"9890ba5a",558:"e1640df3",655:"089daac5",680:"eddf572a",691:"9a7387ec",692:"e20e2415",723:"79d78ba4",761:"e6138d6b",827:"56cfeba0"}[t]+".js",Le.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),Le.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),_e={},Re="@bilibili-player/danmaku-x-interact:",Le.l=(t,e,i,n)=>{if(_e[t])_e[t].push(e);else{var r,o;if(void 0!==i)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var l=a[s];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==Re+i){r=l;break}}r||(o=!0,(r=document.createElement("script")).type="module",r.charset="utf-8",r.timeout=120,Le.nc&&r.setAttribute("nonce",Le.nc),r.setAttribute("data-webpack",Re+i),r.src=t),_e[t]=[e];var A=(e,i)=>{r.onerror=r.onload=null,clearTimeout(c);var n=_e[t];if(delete _e[t],r.parentNode&&r.parentNode.removeChild(r),n&&n.forEach((t=>t(i))),e)return e(i)},c=setTimeout(A.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=A.bind(null,r.onerror),r.onload=A.bind(null,r.onload),o&&document.head.appendChild(r)}},Le.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},Le.p="//s1.hdslb.com/bfs/static/danmaku/",(()=>{Le.b=document.baseURI||self.location.href;var t={792:0};Le.f.j=(e,i)=>{var n=Le.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var r=new Promise(((i,r)=>n=t[e]=[i,r]));i.push(n[2]=r);var o=Le.p+Le.u(e),a=new Error;Le.l(o,(i=>{if(Le.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,r,[o,a,s]=i,l=0;if(o.some((e=>0!==t[e]))){for(n in a)Le.o(a,n)&&(Le.m[n]=a[n]);s&&s(Le)}for(e&&e(i);l<o.length;l++)r=o[l],Le.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunk_bilibili_player_danmaku_x_interact=self.webpackChunk_bilibili_player_danmaku_x_interact||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var Ne={};(()=>{function t(){return{loadClockIn:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(691),Le.e(122)]).then(Le.bind(Le,7059))},loadCmtime:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(691),Le.e(692)]).then(Le.bind(Le,2705))},loadCombo:function(){return Promise.all([Le.e(761),Le.e(827)]).then(Le.bind(Le,5193))},loadFollow:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(67),Le.e(691),Le.e(496)]).then(Le.bind(Le,8013))},loadGoodsLike:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(691),Le.e(558)]).then(Le.bind(Le,1743))},loadLink:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(691),Le.e(226)]).then(Le.bind(Le,8226))},loadReserve:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(691),Le.e(521)]).then(Le.bind(Le,6484))},loadRewardfans:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(680)]).then(Le.bind(Le,4869))},loadScore:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(159)]).then(Le.bind(Le,9502))},loadScoreSum:function(){return Promise.all([Le.e(761),Le.e(536)]).then(Le.bind(Le,2037))},loadSuperRating:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(723)]).then(Le.bind(Le,1146))},loadVote:function(){return Promise.all([Le.e(761),Le.e(179),Le.e(655)]).then(Le.bind(Le,4710))}}}Le.d(Ne,{G:()=>t})})()
;var Pe={},Ue="啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽劲荆兢觉决诀绝均菌钧军君峻俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890",Oe="啊阿埃挨哎唉哀皚癌藹矮艾礙愛隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翺襖傲奧懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙壩霸罷爸白柏百擺佰敗拜稗斑班搬扳般頒板版扮拌伴瓣半辦絆邦幫梆榜膀綁棒磅蚌鎊傍謗苞胞包褒剝薄雹保堡飽寶抱報暴豹鮑爆杯碑悲卑北輩背貝鋇倍狽備憊焙被奔苯本笨崩繃甭泵蹦迸逼鼻比鄙筆彼碧蓖蔽畢斃毖幣庇痹閉敝弊必辟壁臂避陛鞭邊編貶扁便變卞辨辯辮遍標彪膘表鼈憋別癟彬斌瀕濱賓擯兵冰柄丙秉餅炳病並玻菠播撥缽波博勃搏鉑箔伯帛舶脖膊渤泊駁捕蔔哺補埠不布步簿部怖擦猜裁材才財睬踩采彩菜蔡餐參蠶殘慚慘燦蒼艙倉滄藏操糙槽曹草廁策側冊測層蹭插叉茬茶查碴搽察岔差詫拆柴豺攙摻蟬饞讒纏鏟産闡顫昌猖場嘗常長償腸廠敞暢唱倡超抄鈔朝嘲潮巢吵炒車扯撤掣徹澈郴臣辰塵晨忱沈陳趁襯撐稱城橙成呈乘程懲澄誠承逞騁秤吃癡持匙池遲弛馳恥齒侈尺赤翅斥熾充沖蟲崇寵抽酬疇躊稠愁籌仇綢瞅醜臭初出櫥廚躇鋤雛滁除楚礎儲矗搐觸處揣川穿椽傳船喘串瘡窗幢床闖創吹炊捶錘垂春椿醇唇淳純蠢戳綽疵茨磁雌辭慈瓷詞此刺賜次聰蔥囪匆從叢湊粗醋簇促躥篡竄摧崔催脆瘁粹淬翠村存寸磋撮搓措挫錯搭達答瘩打大呆歹傣戴帶殆代貸袋待逮怠耽擔丹單鄲撣膽旦氮但憚淡誕彈蛋當擋黨蕩檔刀搗蹈倒島禱導到稻悼道盜德得的蹬燈登等瞪凳鄧堤低滴迪敵笛狄滌翟嫡抵底地蒂第帝弟遞締顛掂滇碘點典靛墊電佃甸店惦奠澱殿碉叼雕凋刁掉吊釣調跌爹碟蝶叠諜疊丁盯叮釘頂鼎錠定訂丟東冬董懂動棟侗恫凍洞兜抖鬥陡豆逗痘都督毒犢獨讀堵睹賭杜鍍肚度渡妒端短鍛段斷緞堆兌隊對墩噸蹲敦頓囤鈍盾遁掇哆多奪垛躲朵跺舵剁惰墮蛾峨鵝俄額訛娥惡厄扼遏鄂餓恩而兒耳爾餌洱二貳發罰筏伐乏閥法琺藩帆番翻樊礬釩繁凡煩反返範販犯飯泛坊芳方肪房防妨仿訪紡放菲非啡飛肥匪誹吠肺廢沸費芬酚吩氛分紛墳焚汾粉奮份忿憤糞豐封楓蜂峰鋒風瘋烽逢馮縫諷奉鳳佛否夫敷膚孵扶拂輻幅氟符伏俘服浮涪福袱弗甫撫輔俯釜斧脯腑府腐赴副覆賦複傅付阜父腹負富訃附婦縛咐噶嘎該改概鈣蓋溉幹甘杆柑竿肝趕感稈敢贛岡剛鋼缸肛綱崗港杠篙臯高膏羔糕搞鎬稿告哥歌擱戈鴿胳疙割革葛格蛤閣隔鉻個各給根跟耕更庚羹埂耿梗工攻功恭龔供躬公宮弓鞏汞拱貢共鈎勾溝苟狗垢構購夠辜菇咕箍估沽孤姑鼓古蠱骨谷股故顧固雇刮瓜剮寡挂褂乖拐怪棺關官冠觀管館罐慣灌貫光廣逛瑰規圭矽歸龜閨軌鬼詭癸桂櫃跪貴劊輥滾棍鍋郭國果裹過哈骸孩海氦亥害駭酣憨邯韓含涵寒函喊罕翰撼捍旱憾悍焊汗漢夯杭航壕嚎豪毫郝好耗號浩呵喝荷菏核禾和何合盒貉閡河涸赫褐鶴賀嘿黑痕很狠恨哼亨橫衡恒轟哄烘虹鴻洪宏弘紅喉侯猴吼厚候後呼乎忽瑚壺葫胡蝴狐糊湖弧虎唬護互滬戶花嘩華猾滑畫劃化話槐徊懷淮壞歡環桓還緩換患喚瘓豢煥渙宦幻荒慌黃磺蝗簧皇凰惶煌晃幌恍謊灰揮輝徽恢蛔回毀悔慧卉惠晦賄穢會燴彙諱誨繪葷昏婚魂渾混豁活夥火獲或惑霍貨禍擊圾基機畸稽積箕肌饑迹激譏雞姬績緝吉極棘輯籍集及急疾汲即嫉級擠幾脊己薊技冀季伎祭劑悸濟寄寂計記既忌際繼紀嘉枷夾佳家加莢頰賈甲鉀假稼價架駕嫁殲監堅尖箋間煎兼肩艱奸緘繭檢柬堿鹼揀撿簡儉剪減薦檻鑒踐賤見鍵箭件健艦劍餞漸濺澗建僵姜將漿江疆蔣槳獎講匠醬降蕉椒礁焦膠交郊澆驕嬌嚼攪鉸矯僥腳狡角餃繳絞剿教酵轎較叫窖揭接皆稭街階截劫節莖睛晶鯨京驚精粳經井警景頸靜境敬鏡徑痙靖竟競淨炯窘揪究糾玖韭久灸九酒廄救舊臼舅咎就疚鞠拘狙疽居駒菊局咀矩舉沮聚拒據巨具距踞鋸俱句懼炬劇捐鵑娟倦眷卷絹撅攫抉掘倔爵桔傑捷睫竭潔結解姐戒藉芥界借介疥誡屆巾筋斤金今津襟緊錦僅謹進靳晉禁近燼浸盡勁荊兢覺決訣絕均菌鈞軍君峻俊竣浚郡駿喀咖卡咯開揩楷凱慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕顆科殼咳可渴克刻客課肯啃墾懇坑吭空恐孔控摳口扣寇枯哭窟苦酷庫褲誇垮挎跨胯塊筷儈快寬款匡筐狂框礦眶曠況虧盔巋窺葵奎魁傀饋愧潰坤昆捆困括擴廓闊垃拉喇蠟臘辣啦萊來賴藍婪欄攔籃闌蘭瀾讕攬覽懶纜爛濫琅榔狼廊郎朗浪撈勞牢老佬姥酪烙澇勒樂雷鐳蕾磊累儡壘擂肋類淚棱楞冷厘梨犁黎籬狸離漓理李裏鯉禮莉荔吏栗麗厲勵礫曆利傈例俐痢立粒瀝隸力璃哩倆聯蓮連鐮廉憐漣簾斂臉鏈戀煉練糧涼梁粱良兩輛量晾亮諒撩聊僚療燎寥遼潦了撂鐐廖料列裂烈劣獵琳林磷霖臨鄰鱗淋凜賃吝拎玲菱零齡鈴伶羚淩靈陵嶺領另令溜琉榴硫餾留劉瘤流柳六龍聾嚨籠窿隆壟攏隴樓婁摟簍漏陋蘆盧顱廬爐擄鹵虜魯麓碌露路賂鹿潞祿錄陸戮驢呂鋁侶旅履屢縷慮氯律率濾綠巒攣孿灤卵亂掠略掄輪倫侖淪綸論蘿螺羅邏鑼籮騾裸落洛駱絡媽麻瑪碼螞馬罵嘛嗎埋買麥賣邁脈瞞饅蠻滿蔓曼慢漫謾芒茫盲氓忙莽貓茅錨毛矛鉚卯茂冒帽貌貿麽玫枚梅酶黴煤沒眉媒鎂每美昧寐妹媚門悶們萌蒙檬盟錳猛夢孟眯醚靡糜迷謎彌米秘覓泌蜜密冪棉眠綿冕免勉娩緬面苗描瞄藐秒渺廟妙蔑滅民抿皿敏憫閩明螟鳴銘名命謬摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌謀牟某拇牡畝姆母墓暮幕募慕木目睦牧穆拿哪呐鈉那娜納氖乃奶耐奈南男難囊撓腦惱鬧淖呢餒內嫩能妮霓倪泥尼擬妳匿膩逆溺蔫拈年碾攆撚念娘釀鳥尿捏聶孽齧鑷鎳涅您檸獰凝甯擰濘牛扭鈕紐膿濃農弄奴努怒女暖虐瘧挪懦糯諾哦歐鷗毆藕嘔偶漚啪趴爬帕怕琶拍排牌徘湃派攀潘盤磐盼畔判叛乓龐旁耪胖抛咆刨炮袍跑泡呸胚培裴賠陪配佩沛噴盆砰抨烹澎彭蓬棚硼篷膨朋鵬捧碰坯砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬篇偏片騙飄漂瓢票撇瞥拼頻貧品聘乒坪蘋萍平憑瓶評屏坡潑頗婆破魄迫粕剖撲鋪仆莆葡菩蒲埔樸圃普浦譜曝瀑期欺棲戚妻七淒漆柒沏其棋奇歧畦崎臍齊旗祈祁騎起豈乞企啓契砌器氣迄棄汽泣訖掐洽牽扡釺鉛千遷簽仟謙乾黔錢鉗前潛遣淺譴塹嵌欠歉槍嗆腔羌牆薔強搶橇鍬敲悄橋瞧喬僑巧鞘撬翹峭俏竅切茄且怯竊欽侵親秦琴勤芹擒禽寢沁青輕氫傾卿清擎晴氰情頃請慶瓊窮秋丘邱球求囚酋泅趨區蛆曲軀屈驅渠取娶齲趣去圈顴權醛泉全痊拳犬券勸缺炔瘸卻鵲榷確雀裙群然燃冉染瓤壤攘嚷讓饒擾繞惹熱壬仁人忍韌任認刃妊紉扔仍日戎茸蓉榮融熔溶容絨冗揉柔肉茹蠕儒孺如辱乳汝入褥軟阮蕊瑞銳閏潤若弱撒灑薩腮鰓塞賽三三傘散桑嗓喪搔騷掃嫂瑟色澀森僧莎砂殺刹沙紗傻啥煞篩曬珊苫杉山刪煽衫閃陝擅贍膳善汕扇繕墒傷商賞晌上尚裳梢捎稍燒芍勺韶少哨邵紹奢賒蛇舌舍赦攝射懾涉社設砷申呻伸身深娠紳神沈審嬸甚腎慎滲聲生甥牲升繩省盛剩勝聖師失獅施濕詩屍虱十石拾時什食蝕實識史矢使屎駛始式示士世柿事拭誓逝勢是嗜噬適仕侍釋飾氏市恃室視試收手首守壽授售受瘦獸蔬樞梳殊抒輸叔舒淑疏書贖孰熟薯暑曙署蜀黍鼠屬術述樹束戍豎墅庶數漱恕刷耍摔衰甩帥栓拴霜雙爽誰水睡稅吮瞬順舜說碩朔爍斯撕嘶思私司絲死肆寺嗣四伺似飼巳松聳慫頌送宋訟誦搜艘擻嗽蘇酥俗素速粟僳塑溯宿訴肅酸蒜算雖隋隨綏髓碎歲穗遂隧祟孫損筍蓑梭唆縮瑣索鎖所塌他它她塔獺撻蹋踏胎苔擡台泰酞太態汰坍攤貪癱灘壇檀痰潭譚談坦毯袒碳探歎炭湯塘搪堂棠膛唐糖倘躺淌趟燙掏濤滔縧萄桃逃淘陶討套特藤騰疼謄梯剔踢銻提題蹄啼體替嚏惕涕剃屜天添填田甜恬舔腆挑條迢眺跳貼鐵帖廳聽烴汀廷停亭庭挺艇通桐酮瞳同銅彤童桶捅筒統痛偷投頭透凸禿突圖徒途塗屠土吐兔湍團推頹腿蛻褪退吞屯臀拖托脫鴕陀馱駝橢妥拓唾挖哇蛙窪娃瓦襪歪外豌彎灣玩頑丸烷完碗挽晚皖惋宛婉萬腕汪王亡枉網往旺望忘妄威巍微危韋違桅圍唯惟爲濰維葦萎委偉僞尾緯未蔚味畏胃喂魏位渭謂尉慰衛瘟溫蚊文聞紋吻穩紊問嗡翁甕撾蝸渦窩我斡臥握沃巫嗚鎢烏汙誣屋無蕪梧吾吳毋武五捂午舞伍侮塢戊霧晤物勿務悟誤昔熙析西硒矽晰嘻吸錫犧稀息希悉膝夕惜熄烯溪汐犀檄襲席習媳喜銑洗系隙戲細瞎蝦匣霞轄暇峽俠狹下廈夏嚇掀鍁先仙鮮纖鹹賢銜舷閑涎弦嫌顯險現獻縣腺餡羨憲陷限線相廂鑲香箱襄湘鄉翔祥詳想響享項巷橡像向象蕭硝霄削哮囂銷消宵淆曉小孝校肖嘯笑效楔些歇蠍鞋協挾攜邪斜脅諧寫械卸蟹懈泄瀉謝屑薪芯鋅欣辛新忻心信釁星腥猩惺興刑型形邢行醒幸杏性姓兄凶胸匈洶雄熊休修羞朽嗅鏽秀袖繡墟戌需虛噓須徐許蓄酗敘旭序畜恤絮婿緒續軒喧宣懸旋玄選癬眩絢靴薛學穴雪血勳熏循旬詢尋馴巡殉汛訓訊遜迅壓押鴉鴨呀丫芽牙蚜崖衙涯雅啞亞訝焉咽閹煙淹鹽嚴研蜒岩延言顏閻炎沿奄掩眼衍演豔堰燕厭硯雁唁彥焰宴諺驗殃央鴦秧楊揚佯瘍羊洋陽氧仰癢養樣漾邀腰妖瑤搖堯遙窯謠姚咬舀藥要耀椰噎耶爺野冶也頁掖業葉曳腋夜液壹壹醫揖銥依伊衣頤夷遺移儀胰疑沂宜姨彜椅蟻倚已乙矣以藝抑易邑屹億役臆逸肄疫亦裔意毅憶義益溢詣議誼譯異翼翌繹茵蔭因殷音陰姻吟銀淫寅飲尹引隱印英櫻嬰鷹應纓瑩螢營熒蠅迎贏盈影穎硬映喲擁傭臃癰庸雍踴蛹詠泳湧永恿勇用幽優悠憂尤由郵鈾猶油遊酉有友右佑釉誘又幼迂淤于盂榆虞愚輿余俞逾魚愉渝漁隅予娛雨與嶼禹宇語羽玉域芋郁籲遇喻峪禦愈欲獄育譽浴寓裕預豫馭鴛淵冤元垣袁原援轅園員圓猿源緣遠苑願怨院曰約越躍鑰嶽粵月悅閱耘雲鄖勻隕允運蘊醞暈韻孕匝砸雜栽哉災宰載再在咱攢暫贊贓髒葬遭糟鑿藻棗早澡蚤躁噪造皂竈燥責擇則澤賊怎增憎曾贈紮喳渣劄軋鍘閘眨柵榨咋乍炸詐摘齋宅窄債寨瞻氈詹粘沾盞斬輾嶄展蘸棧占戰站湛綻樟章彰漳張掌漲杖丈帳賬仗脹瘴障招昭找沼趙照罩兆肇召遮折哲蟄轍者鍺蔗這浙珍斟真甄砧臻貞針偵枕疹診震振鎮陣蒸掙睜征猙爭怔整拯正政幀症鄭證芝枝支吱蜘知肢脂汁之織職直植殖執值侄址指止趾只旨紙志摯擲至致置幟峙制智秩稚質炙痔滯治窒中盅忠鍾衷終種腫重仲衆舟周州洲謅粥軸肘帚咒皺宙晝驟珠株蛛朱豬諸誅逐竹燭煮拄矚囑主著柱助蛀貯鑄築住注祝駐抓爪拽專磚轉撰賺篆樁莊裝妝撞壯狀椎錐追贅墜綴諄准捉拙卓桌琢茁酌啄著灼濁茲咨資姿滋淄孜紫仔籽滓子自漬字鬃棕蹤宗綜總縱鄒走奏揍租足卒族祖詛阻組鑽纂嘴醉最罪尊遵昨左佐柞做作坐座ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890",Ge="娿婀埃挨餀呃哀皑癌蔼婑銰碍嬡隘鞍氨鮟唵洝暗岸胺案肮昻盎凹獓熬翱仸謸奧襖奧妑捌朳朳妑笆仈疤妑菝柭靶妑耙坝覇罢妑皛柏咟擺佰敗湃稗癍癍搬扳瘢頒闆蝂汾絆柈瓣柈刅绊綁幇梆徬嫎垹蜯嫎蚌镑徬谤苞菢笣褒剝薄雹湺堡怉寶砲蕔懪豹鲍嚗柸碑蕜萆苝輩揹赑钡俻狈備惫焙被渀苯夲苯镚绷甭泵嘣逬腷嬶仳啚毣彼碧蓖幣滭斃毖币庇痹閉獙弊怭澼壁臂鐴陛鞭笾揙貶碥楩變卞辧辮辮猵摽滮鏢錶鳖憋莂癟彬斌濒璸濱摈娦栤窉眪秉饼炳疒並箥菠譒妭钵菠博勃搏铂箔伯帛舶脖膊渤泊訤峬卜誧卟埠芣鈽荹簿蔀怖攃猜裁財財財棌棌采埰婇蔡爘傪蛬殘慙參灿芲舱仺獊蔵懆鐰槽蓸愺厠憡側冊恻層竲揷紁茬嗏楂楂搽镲岔槎诧拆枈豺搀傪蝉镵谗瀍铲浐闡顫誯猖畼甞瑺萇偿肠廠敞畅晿倡趫莏鈔謿謿謿漅訬炒車扯徹掣沏瞮郴烥宸尘曟忱冗陳趁衬撐稱峸橙荿珵塖珵懲僜諴承浧骋秤阣痴歭匙肔呎肔肔恥歯侈呎哧趐斥炽茺沖蟲漴寵菗絒帱帱婤僽薵仇皗瞅忸溴初炪廚廚躇鋤雛蒢篨椘绌储矗搐触處遄巛瑏椽伝船遄賗疮囱幢床闖創欥炊腄腄箠舂椿錞脣錞蒓蠢戥焯疵垐濨雌辭濨瓷詞泚剌賜佽聪茐囱茐苁苁凑粗齰簇娖蹿篡窜凗慛慛脆瘁濢濢濢籿洊籿磋撮髊措挫措溚垯荅瘩咑汏槑歹傣瀻帶殆笩贷袋待曃怠耽泹冄啴郸掸狚狚氮泹惮惔诞弹疍當澢黨蕩澢叨搗稲箌島祷导菿稲悼檤盜徳嘚哋簦燈憕等簦凳郰諟彽嘀廸敵廸狄涤翟嫡抵疧哋渧苐渧弚递缔颠掂滇碘點敟靛垫電佃甸扂惦奠淀殿淍汈鵰蜩刁鋽铞銱蜩瓞嗲渫渫迭媟疉玎饤汀町嵿鼎锭萣忊丟崬笗蓳慬憅崬侗恫岽狪兠鬦乧跿荳浢哣嘟督毐渎獨渎陼睹帾荰镀肚喥喥妒鍴短葮葮斷葮碓兌隊怼墩沌壿敦頓囤沌盾遁掇哆哆奪垛躱朶跺舵剁媠憜睋睋鹅皒额讹皒悪苊扼遏鄂皒慁洏ル洱尒聶洱②贰潑藅筏浌疺阀琺珐藩汎畨飜樊矾钒瀿汎煩反返笵贩氾粄疺汸淓汸肪房汸妨汸汸汸倣婔悱啡飛萉厞诽吠腓廢沸曊棼酚玢氛汾妢墳焚汾帉奮妢忿濆粪仹崶猦蜂峯峯颩瘋烽漨溤漨讽唪鳯仏娝玞敷膚孵荴拂辐諨氟苻茯俘棴捊涪湢袱弗甫抚辅椨釜釡脯腑椨腐赴諨覆賦復傅苻阜父腹萯冨讣胕妇缚咐噶嗄姟妀漑鈣葢漑迀苷杆柑芉肝迀憾秆噉赣罓碙鋼矼釭罁罓港釭禞皋滈膏餻溔鎬鎬鎬哠滒戨擱戈鸽胳疙剨愅噶咯蛤阁隔铬個茖给艮茛畊浭菮羹埂耿梗笁糼糼塨龚栱匑厷営弖巩汞珙貢珙溝芶芶苟豞垢媾媾夠辜菇咕箍诂钴箛菇鼔咕蛊嗗唂骰诂顧凅雇剮呱剮寡啩啩乖枴怪菅関菅蒄觀涫菅潅遦潅遦洸広迋瑰規圭硅歸亀閨匦媿詭癸蓕匱蛫貴刽辊蔉輥煱漷國淉裹過铪骸陔嗨氦亥嗐骇酣憨邯韓浛凾寒凾諴癷翰撼捍猂憾悍猂汙漢夯忼航壕嚎濠毫郝恏秏呺滘哬曷嗬菏劾秝啝哬匼盉貉阂菏涸赫褐鹤哿潶嫼痕佷哏悢涥悙橫蘅恆轟晎烘渱鴻葓宖宖葒糇糇糇犼厚糇後苸苸唿瑚壺煳箶箶狐煳煳弧唬唬戶沍戶戶埖蕐澕磆磆畵劃囮話槐佪懷准壞歡寰桓還緩換漶喚痪豢焕涣宦抝巟巟曂磺蝗簧瑝瑝瑝瑝愰縨恍巟洃媈媈幑恢蛔冋毇珻慧卉惠珻贿秽浍烩匯讳诲浍荤涽殙魂渾婫豁萿钬焱镬戓惑靃貨禍击圾樭僟畸稽積箕肌饥迹噭讥鶏姬绩缉咭极棘辑籍潗彶喼疾汲旣嫉级哜凢脊己蓟技冀悸伎祭剂悸哜寄寂計汜旣忌漈继汜嘉枷夾佳傢咖荚颊贾曱钾徦糘價泇駕糘姧盬堅尖笺簡煎凲肩艰奷缄茧撿柬碱硷拣撿彅倹彅諴薦槛鉴践濺見楗箭件揵舰劍饯渐溅涧踺壃葁將槳茳彊蔣桨奨講匠醬夅蕉椒礁潐烄茭郊浇嬌嬌嚼搅铰矫侥腳烄角饺儌烄剿嘋酵轿珓嘂窖揭帹湝秸街阶截劫兯莖聙瞐鯨倞驚棈粳經丼檠憬頸靜璄擏傹徑痉靖獍競凈泂僒啾究糾玖韭玖灸勼氿厩慦舊臼舅咎僦咎鞠佝狙疽劇驹匊挶咀怇舉沮藂岠琚姖倶岠踞涺倶呴惧岠涺涓鵑涓惓眷捲涓瘚攫決崛崛嚼桔傑啑睫竭洁結解姐悈藉芥鎅徣夰疥诫屆凧荕釿唫妗珒噤緊婂僅殣琎靳晉噤菦烬锓浕勁荊兢覺吷吷蕝汮箘呁軍焄浚浚浚浚郡浚喀咖鉲咯閞揩揩剀慨刋堪勘坎歃看嫝嵻嵻摃忼囥忼栲洘栲靠坷岢柯錁溘錁萪涜嗑妸渇尅尅愙錁肻肻恳垦妔妔涳恐芤啌摳囗釦簆喖哭崫楛酷厙褲洿垮挎跨胯赽筷侩赽寬窾匡筺誑框纩洭纩況扝盔岿窺葵喹魁傀潰隗潰堒崐涃涃葀拡霩闊柆菈喇臘臘辣菈莱唻攋藍漤孄拦藍阑蘭瀾谰灠灠攋灠灡嚂哴蓈哴蓢蓢蓢烺崂崂窂荖佬粩絡絡崂嘞泺檑檑檑藞蔂儡垒檑叻類汨棱楞唥厘悡犁黎篱狸蓠漓理李里鲤礼莉荔吏栗婯疠励砾呖悡傈唎俐痢竝粒沥隶劦璃哩唡聅嗹涟镰廉憐涟帘潋臉嗹戀煉煉悢涼樑粱悢倆唡糧涼煷涼嫽窷獠療獠寥辽潦孒撂镣漻料烮煭烮挘獵啉啉潾霖臨鄰潾啉凛賃悋柃玪夌蕶齡玪伶玪夌靈夌玪領叧泠媹琉媹硫馏畱嚠媹蓅栁陸瀧聾茏茏窿湰泷泷茏溇溇嵝溇屚陋廬盧颅廬爐掳卤虏噜麓碌蕗蕗赂蔍潞禄淥陸戮馿焒焒佀膂履屢缕慮氯侓卛慮淥欒孌孿滦卵亂稤畧囵囵囵仑囵纶囵囉螺囉羅囉儸骡裸落詻詻絡媽嫲犸犸犸骉罵嫲嬤埋荬麥賣邁霡慲獌蠻慲嫚嫚嫚嫚谩笀汒吂氓杧漭貓罞锚毝罞铆茆茂萺萺邈貿庅坆枚烸酶苺湈莈葿媒镁烸羙昧寐妺媚閄悶們萠懞檬擝锰掹夢掹侎醚靡糜洣洣弥洣秘觅泌滵滵幂婂眠婂冕凂勉娩缅媔媌媌媌邈仯緲庿仯篾搣姄抿皿勄悯閩眀螟嘄佲洺掵繆嗼摹嚤嗼嗼嚤嚤嚤沬沬嗼嚜默沬嗼寞帞湈哞湈拇牡畝姆毋募暮募募慕朩朩睦牧穆嗱哪妠妠哪哪妠氖釢艿恧柰遖莮難灢撓悩悩閙淖迡浽禸嫰能妮霓淣狔胒抳沵嫟膩屰溺蔫秥姩碾撵捻淰娘酿茑杘涅嗫糵啮嗫镍涅您柠狞凝苧拧泞犇沑妞狃哝哝哝挵伮怓伮囡煖疟疟挪穤穤喏呃瓯瓯瓯耦嘔耦沤啪汃瓟啪啪琶啪棑簰棑湃哌襻瀋盤磐昐溿叛判乓厐臱耪眫拋垉铇垉垉垉垉怌胚掊裴婄婄蓜姵沛濆湓泙抨烹澎憉莑堋硼篷膨萠鵬唪湴坯砒噼纰怶噼琵毗啤裨疲怶苉痞僻庇譬萹媥爿騙彯慓瓢嘌潎潎拚頻貧闆娉乒岼泙泙岼憑甁评屛岥秡櫇嘙岥魄廹粕剖圤舗圤莆匍箁蒲逋圤圃普浦鐠曝鑤剘剘栖嘁悽⑦凄漆柒沏娸諆渏忮畦崎脐斉旗祈祁騏起豈阣佱晵契砌噐氣迄棄汽淇讫拤洽撁扦钎鉛芉迁簽仟嗛墘黔錢钳湔濳遣淺谴堑嵌芡嗛熗濸腔羌嫱嫱強熗橇锹毃佾喬趭喬喬巧鞘毳趬峭佾竅苆苆苴愜苆钦埐儭蓁噖懄芹檎噙寑沁圊輕氢傾卿凊擎啨氰凊頃埥庆琼窮偢坵邱浗浗囚媨泅趋岖蛆浀軀屈駆渠掫婜龋趣厾圜颧權醛葲洤痊拳吠券勧蒛炔瘸卻鹊榷確雀峮羣嘫嘫姌媣瓤壤攘孃讓隢擾隢惹慹壬芢亾涊韧姙認刄妊纫扔仍ㄖ戎茸嫆荣瀜嫆嫆嫆絨冗渘渘禸筎蠕濡孺洳媷乳肗叺褥軟朊惢瑞銳潤潤婼弜潵灑蕯腮鳃噻噻彡叁傘潵鎟鎟喪搔騒掃溲瑟脃澀潹僧莏唦摋閷乷纱傻倽繺篩曬姍苫杉屾剼煽釤閁陝擅赡膳僐訕傓缮墒傷啇賞晌仩尙裳哨哨哨燒芍汋韶仯哨卲袑奢赊虵舙舎赦摂射慑渉涻蔎砷妽呻訷裑堔娠訷鉮瀋谉嬸卙腎慎椮殸泩甥狌圱繩渻墭乗夝聖溮妷浉湤濕詩迉虱拾坧湁溡什喰蚀實識史矢使屍馶始鉽沶仕迣枾倳拭誓迣勢湜嗜噬适仕侍释飾氏巿恃厔視鉽荍掱渞垨壽涭售辤痩獣蔬枢梳姝杼瀭埱忬蔋疏書赎孰孰薯濐曙署蜀黍癙屬朮沭樹娕戍竪墅庶薮漱恕唰耍摔缞甩帥拴拴灀叒摤誰渁腄挩吮橓順橓説碩朔爍凘凘凘偲俬呞噝屍肆峙嗣④伺姒饲巳菘聳怂頌鎹浨讼誦溲艘擞嗽蘇酥俗嫊趚粟僳愬溯蹜訴歗酸祘匴虽陏隨浽髓誶嵗穗嬘隧祟孫損笋蓑逡逡縮鎖鎍鎻葰禢彵咜咜嗒獭挞蹋沓胎苔孡珆溙酞忲忲呔坍摊貪瘫滩墵檀痰憛谭談钽毯袒湠探嘆湠饧溏搪漟橖膛瑭溏倘躺淌趟烫匋濤瑫绦匋洮洮匋匋討套特駦駦庝誊珶剔踢锑諟趧渧渧軆櫕嚏惕珶珶屟兲婖瑱甶甛恬婖睓狣條迢眺朓萜鉄萜廰厛烃汀侹渟渟侹侹艇嗵秱酮瞳哃恫浵僮硧硧茼統痌偸投頭透凸禿湥圖徙蒤凃廜汢汢兎湍團蓷颓蹆蜕蹆蹆昋屯臀柂仛脫袉拕駞袉椭鋖沰唾挖哇蛙哇哇咓襪歪迯豌塆塆琓顽汍烷唍涴梚脕皖惋宛啘萭腕忹迋匄忹蛧暀忹朢莣妄媙蘶嶶佹韦違桅圍惟惟潙潍惟苇崣逶偉沩屗纬沬墛菋嵔媦嵔蘶莅渭媦墛墛衞瘟溫螡妏聞鈫沕穏紊問滃暡瓮挝窩煱窉莪斡臥楃沃莁嗚钨烏汚莁偓嘸蕪梧圄呉毋娬伍圄吘橆⑤侮坞戊霚晤粅匢務圄誤厝凞唽覀硒矽晰嘻扱唶犠浠息唏悉膝汐厝熄烯渓汐犀檄袭席習媳禧铣冼係隙戱細磍虾匣葭轄叚浹浹浹芐厦嗄圷锨锨姺佡鮮汘咸賢銜舷娴涎妶溓显険哯獻縣腺陥羨宪陥限線楿厢镶萫葙襄湘芗翔祥詳想姠啍頙巷潒潒姠潒簘硝霄萷涍嚣销消宵淆哓尒涍校肖啸笑效楔些歇蝎嚡拹挾携峫斜脅喈冩悈啣蟹澥绁瀉塮屑蕲芯锌俽厗噺忻杺信衅暒睲睲瑆興鉶侀形郉垳瑆圉莕悻狌兇兇洶匈汹雄熋咻俢饈朽溴琇莠袖绣歔戌濡歔歔湏俆汻蓄酗溆旮垿畜恤絮胥緒續蓒媗媗悬嫙玆選癣妶絢靴薛敩泬膤洫勛熏揗洵咰浔紃廵咰卂訓卂遜卂壓呷鴉鴨吖吖厊厊蚜崖衙涯蕥啞亞冴漹咽阉煙殗鹽嚴妍蜒啱娫訁顔閻烾沿奄殗眼衍湮滟堰嬿厭砚雁唁彦熖匽谚験殃姎鴦秧昜婸佯疡咩樣陽氧卬癢養樣羕撽崾岆愮愮尧滛窰愮烑吆舀葯婹耀倻噎倻爺嘢冶竾頁掖鄴旪曳腋液液①壹悘揖铱畩吚扆颐夷遗簃儀胰寲沂宜侇彝掎蚁掎巳乁矣姒兿抑昜邑屹億役臆逸肄疫洂裔嬑藙忆義谥溢诣议谊譯異翼翌绎筃荫洇殷堷隂絪荶檭婬夤飮吚吲陻茚渶璎璎鹰應缨瑩萤營荧蝇迊赢盁影颕哽眏喲砽砽臃痈滽澭踊蛹怺怺悀怺恿湧鼡豳沋滺沋尤甴邮铀沋怞遊酉洧伖祐祐釉诱叒孧扜菸纡盂榆虞愚舆悇揄揄渔揄揄渔隅予娯雨玙屿禹荢娪羽砡域芋喐吁喁喻峪御匬慾獄唷謍浴寓裕預豫驭鴛棩寃沅垣媴厡瑗辕圎園園猿羱緣逺夗蒝葾阮曰箹樾跞钥捳粵仴哾閱秐囩郧枃殒狁運藴酝暈韻夃匝咂卆酨酨災宰酨侢茬洎瓒暫瓒賍賍髒蹧蹧凿藻栆皁璪蚤璪璪慥唣灶璪嫧萚荝澤賊怎熷璔嶒熷紥喳碴札轧铡閘喳栅搾咋咋怍怍擿斋宅搾債寨瞻毡詹秥跕盏斬辗崭蹍蘸棧颭戰跕偡綻樟嶂彰漳張礃涨粀扙賬账扙胀瘴障妱昭找沼趙燳罩狣肇佋嗻菥悊蛰辙鍺锗蔗適淅沴斟嫃甄砧臻浈針浈忱疹沴震桭鎮俥篜諍諍姃狰踭姃整拯囸炡帧症鄭姃芷汥伎汥倁倁汥脂汥と枳轵矗淔殖秇惪侄歮栺圵趾呮旨衹梽挚掷臸臸置帜峙淛潪秩雉質炙痔滞菭窒狆盅筗妕衷蔠種妕偅仲衆洀淍詶詶诌粥轴肘帚咒皺宙昼骤咮株咮咮蕏渚诛豩艸烛煑拄瞩瞩炷著炷莇蛀贮铸茿炷炷柷驻抓爪跩抟磚啭撰賺篆桩圧裝妝獞匨匨椎锥搥赘墜綴谆痽浞炪婥棹琢茁酌啄着灼浊兹恣粢恣稵淄孜橴仔籽滓ふ洎渍牸鬃琮琮崈琮縂枞邹趉楱楱蒩娖卒蔟袓蒩蒩蒩鑽纂觜酔朂嶵澊噂葃咗佐柞莋莋唑蓙ＡвсＤЁ℉ＧＨＩＪκＬＭЙＯＰＱＲＳＴ∪∨Ｗ×ＹＺāｂｃｄéｆɡｈīｊｋｌｍńōｐｑｒ$τūｖωｘｙｚ①②③④⑤⑥⑦⑧⑨O"
;Pe.A=function(t){for(var e="",i=0;i<t.length;i++)-1!=Ue.indexOf(t.charAt(i))?e+=Ge.charAt(Ue.indexOf(t.charAt(i))):-1!=Oe.indexOf(t.charAt(i))?e+=Ge.charAt(Oe.indexOf(t.charAt(i))):e+=t.charAt(i);return e};var He=Pe.A,Ve=i(22451),Ye=i(61068),ze=i(92452);class We extends ze.eV{constructor(){super(...arguments),this.tag="HttpDmExposure",this.url="//api.bilibili.com/x/v2/dm/exposure"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}parse(t){const e=t.data||{};return{code:t.code,message:t.message,dmid:e.idStr,extra:e.extra}}}var Ze=i(5489),je=Object.defineProperty,qe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Xe=(t,e,i)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,$e=(t,e)=>{for(var i in e||(e={}))Je.call(e,i)&&Xe(t,i,e[i]);if(qe)for(var i of qe(e))Ke.call(e,i)&&Xe(t,i,e[i]);return t},ti=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));let ei=Float32Array;function ii(t,e,i){const n=new ei(3);return t&&(n[0]=t),e&&(n[1]=e),i&&(n[2]=i),n}function ni(t,e,i){return(i=i||new ei(3))[0]=t[0]+e[0],i[1]=t[1]+e[1],i[2]=t[2]+e[2],i}function ri(t,e,i){return(i=i||new ei(3))[0]=t[0]*e[0],i[1]=t[1]*e[1],i[2]=t[2]*e[2],i}let oi=Float32Array;function ai(t){return(t=t||new oi(16))[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function si(t,e){e=e||new oi(16);const i=t[0],n=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],A=t[7],c=t[8],h=t[9],d=t[10],u=t[11],p=t[12],g=t[13],f=t[14],m=t[15],y=d*m,b=f*u,v=l*m,E=f*A,I=l*u,C=d*A,B=r*m,w=f*o,x=r*u,Q=d*o,S=r*A,k=l*o,D=c*g,_=p*h,R=a*g,M=p*s,T=a*h,F=c*s,L=i*g,N=p*n,P=i*h,U=c*n,O=i*s,G=a*n,H=y*s+E*h+I*g-(b*s+v*h+C*g),V=b*n+B*h+Q*g-(y*n+w*h+x*g),Y=v*n+w*s+S*g-(E*n+B*s+k*g),z=C*n+x*s+k*h-(I*n+Q*s+S*h),W=1/(i*H+a*V+c*Y+p*z);return e[0]=W*H,e[1]=W*V,e[2]=W*Y,e[3]=W*z,e[4]=W*(b*a+v*c+C*p-(y*a+E*c+I*p)),e[5]=W*(y*i+w*c+x*p-(b*i+B*c+Q*p)),e[6]=W*(E*i+B*a+k*p-(v*i+w*a+S*p)),e[7]=W*(I*i+Q*a+S*c-(C*i+x*a+k*c)),e[8]=W*(D*A+M*u+T*m-(_*A+R*u+F*m)),e[9]=W*(_*o+L*u+U*m-(D*o+N*u+P*m)),e[10]=W*(R*o+N*A+O*m-(M*o+L*A+G*m)),e[11]=W*(F*o+P*A+G*u-(T*o+U*A+O*u)),e[12]=W*(R*d+F*f+_*l-(T*f+D*l+M*d)),e[13]=W*(P*f+D*r+N*d-(L*d+U*f+_*r)),e[14]=W*(L*l+G*f+M*r-(O*f+R*r+N*l)),e[15]=W*(O*d+T*r+U*l-(P*l+G*d+F*r)),e}function li(t,e,i){i=i||ii();const n=e[0],r=e[1],o=e[2],a=n*t[3]+r*t[7]+o*t[11]+t[15];return i[0]=(n*t[0]+r*t[4]+o*t[8]+t[12])/a,i[1]=(n*t[1]+r*t[5]+o*t[9]+t[13])/a,i[2]=(n*t[2]+r*t[6]+o*t[10]+t[14])/a,i}function Ai(t,e,i){i=i||ii();const n=e[0],r=e[1],o=e[2];return i[0]=n*t[0]+r*t[4]+o*t[8],i[1]=n*t[1]+r*t[5]+o*t[9],i[2]=n*t[2]+r*t[6]+o*t[10],i}const ci=5120,hi=5121,di=5122,ui=5123,pi=5124,gi=5125,fi=5126,mi={};{const t=mi;t[5120]=Int8Array,t[5121]=Uint8Array,t[5122]=Int16Array,t[5123]=Uint16Array,t[5124]=Int32Array,t[5125]=Uint32Array,t[5126]=Float32Array,t[32819]=Uint16Array,t[32820]=Uint16Array,t[33635]=Uint16Array,t[5131]=Uint16Array,t[33640]=Uint32Array,t[35899]=Uint32Array,t[35902]=Uint32Array,t[36269]=Uint32Array,t[34042]=Uint32Array}function yi(t){if(t instanceof Int8Array)return ci;if(t instanceof Uint8Array)return hi;if(t instanceof Uint8ClampedArray)return hi;if(t instanceof Int16Array)return di;if(t instanceof Uint16Array)return ui;if(t instanceof Int32Array)return pi;if(t instanceof Uint32Array)return gi;if(t instanceof Float32Array)return fi;throw new Error("unsupported typed array type")}function bi(t){if(t===Int8Array)return ci;if(t===Uint8Array)return hi;if(t===Uint8ClampedArray)return hi;if(t===Int16Array)return di;if(t===Uint16Array)return ui;if(t===Int32Array)return pi;if(t===Uint32Array)return gi;if(t===Float32Array)return fi;throw new Error("unsupported typed array type")}function vi(t){const e=mi[t];if(!e)throw new Error("unknown gl type");return e}const Ei="undefined"!=typeof SharedArrayBuffer?function(t){return t&&t.buffer&&(t.buffer instanceof ArrayBuffer||t.buffer instanceof SharedArrayBuffer)}:function(t){return t&&t.buffer&&t.buffer instanceof ArrayBuffer};function Ii(...t){console.error(...t)}const Ci=new Map;function Bi(t,e){if(!t||"object"!=typeof t)return!1;let i=Ci.get(e);i||(i=new WeakMap,Ci.set(e,i));let n=i.get(t);if(void 0===n){const r=Object.prototype.toString.call(t);n=r.substring(8,r.length-1)===e,i.set(t,n)}return n}function wi(t,e){return"undefined"!=typeof WebGLTexture&&Bi(e,"WebGLTexture")}const xi=34962,Qi={attribPrefix:""};function Si(t,e,i,n,r){t.bindBuffer(e,i),t.bufferData(e,n,r||35044)}function ki(t,e,i,n){if(function(t,e){return"undefined"!=typeof WebGLBuffer&&Bi(e,"WebGLBuffer")}(0,e))return e;i=i||xi;const r=t.createBuffer();return Si(t,i,r,e,n),r}function Di(t){return"indices"===t}function _i(t){return t.length?t:t.data}const Ri=/coord|texture/i,Mi=/color|colour/i;function Ti(t,e,i){return t.numComponents||t.size||function(t,e){let i;if(i=Ri.test(t)?2:Mi.test(t)?4:3,e%i>0)throw new Error(`Can not guess numComponents for attribute '${t}'. Tried ${i} but ${e} values is not evenly divisible by ${i}. You should specify it.`);return i}(e,i||_i(t).length)}function Fi(t,e){if(Ei(t))return t;if(Ei(t.data))return t.data;Array.isArray(t)&&(t={data:t});let i=t.type?Li(t.type):void 0;return i||(i=Di(e)?Uint16Array:Float32Array),new i(t.data)}function Li(t){return"number"==typeof t?vi(t):t||Float32Array}function Ni(t,e){return{buffer:e.buffer,numValues:24,type:(i=e.type,"number"==typeof i?i:i?bi(i):5126),arrayType:Li(e.type)};var i}function Pi(t,e){const i=e.data||e,n=Li(e.type),r=i*n.BYTES_PER_ELEMENT,o=t.createBuffer();return t.bindBuffer(xi,o),t.bufferData(xi,r,e.drawType||35044),{buffer:o,numValues:i,type:bi(n),arrayType:n}}function Ui(t,e,i){const n=Fi(e,i);return{arrayType:n.constructor,buffer:ki(t,n,void 0,e.drawType),type:yi(n),numValues:0}}function Oi(t,e){const i={};return Object.keys(e).forEach((function(n){if(!Di(n)){const o=e[n],a=o.attrib||o.name||o.attribName||Qi.attribPrefix+n;if(o.value){if(!Array.isArray(o.value)&&!Ei(o.value))throw new Error("array.value is not array or typedarray");i[a]={value:o.value}}else{let e;e=o.buffer&&o.buffer instanceof WebGLBuffer?Ni:"number"==typeof o||"number"==typeof o.data?Pi:Ui;const{buffer:s,type:l,numValues:A,arrayType:c}=e(t,o,n),h=void 0!==o.normalize?o.normalize:(r=c)===Int8Array||r===Uint8Array,d=Ti(o,n,A);i[a]={buffer:s,numComponents:d,type:l,normalize:h,stride:o.stride||0,offset:o.offset||0,divisor:void 0===o.divisor?void 0:o.divisor,drawType:o.drawType}}}var r})),t.bindBuffer(xi,null),i}const Gi=["position","positions","a_position"];function Hi(t,e,i){const n=Oi(t,e),r=Object.assign({},i||{});r.attribs=Object.assign({},i?i.attribs:{},n);const o=e.indices;if(o){const e=Fi(o,"indices");r.indices=ki(t,e,34963),r.numElements=e.length,r.elementType=yi(e)}else r.numElements||(r.numElements=function(t,e){let i,n;for(n=0;n<Gi.length&&(i=Gi[n],!(i in e))&&(i=Qi.attribPrefix+i,!(i in e));++n);n===Gi.length&&(i=Object.keys(e)[0]);const r=e[i];if(!r.buffer)return 1;t.bindBuffer(xi,r.buffer);const o=t.getBufferParameter(xi,34660);var a;t.bindBuffer(xi,null);const s=o/(5120===(a=r.type)||5121===a?1:5122===a||5123===a?2:5124===a||5125===a||5126===a?4:0),l=r.numComponents||r.size,A=s/l;if(A%1!=0)throw new Error(`numComponents ${l} not correct for length ${length}`);return A}(t,r.attribs));return r}function Vi(t,e,i){const n="indices"===i?34963:xi;return ki(t,Fi(e,i),n)}function Yi(t,e){const i={};return Object.keys(e).forEach((function(n){i[n]=Vi(t,e[n],n)})),e.indices?(i.numElements=e.indices.length,i.elementType=yi(Fi(e.indices))):i.numElements=function(t){let e,i;for(i=0;i<Gi.length&&(e=Gi[i],!(e in t));++i);i===Gi.length&&(e=Object.keys(t)[0]);const n=t[e],r=_i(n).length;if(void 0===r)return 1;const o=Ti(n,e),a=r/o
;if(r%o>0)throw new Error(`numComponents ${o} not correct for length ${r}`);return a}(e),i}function zi(t,e){let i=0;return t.push=function(){for(let e=0;e<arguments.length;++e){const n=arguments[e];if(n instanceof Array||Ei(n))for(let e=0;e<n.length;++e)t[i++]=n[e];else t[i++]=n}},t.reset=function(t){i=t||0},t.numComponents=e,Object.defineProperty(t,"numElements",{get:function(){return this.length/this.numComponents|0}}),t}function Wi(t,e,i){return zi(new(i||Float32Array)(t*e),t)}function Zi(t,e,i){const n=t.length,r=new Float32Array(3);for(let o=0;o<n;o+=3)i(e,[t[o],t[o+1],t[o+2]],r),t[o]=r[0],t[o+1]=r[1],t[o+2]=r[2]}function ji(t,e,i){i=i||ii();const n=e[0],r=e[1],o=e[2];return i[0]=n*t[0]+r*t[1]+o*t[2],i[1]=n*t[4]+r*t[5]+o*t[6],i[2]=n*t[8]+r*t[9]+o*t[10],i}function qi(t,e){return Zi(t,e,Ai),t}function Ji(t,e){return Zi(t,si(e),ji),t}function Ki(t,e){return Zi(t,e,li),t}function Xi(t,e){return Object.keys(t).forEach((function(i){const n=t[i];i.indexOf("pos")>=0?Ki(n,e):i.indexOf("tan")>=0||i.indexOf("binorm")>=0?qi(n,e):i.indexOf("norm")>=0&&Ji(n,e)})),t}function $i(t,e,i){return t=t||2,{position:{numComponents:2,data:[(e=e||0)+-1*(t*=.5),(i=i||0)+-1*t,e+1*t,i+-1*t,e+-1*t,i+1*t,e+1*t,i+1*t]},normal:[0,0,1,0,0,1,0,0,1,0,0,1],texcoord:[0,0,1,0,0,1,1,1],indices:[0,1,2,2,1,3]}}function tn(t,e,i,n,r){t=t||1,e=e||1,i=i||1,n=n||1,r=r||ai();const o=(i+1)*(n+1),a=Wi(3,o),s=Wi(3,o),l=Wi(2,o);for(let r=0;r<=n;r++)for(let o=0;o<=i;o++){const A=o/i,c=r/n;a.push(t*A-.5*t,0,e*c-.5*e),s.push(0,1,0),l.push(A,c)}const A=i+1,c=Wi(3,i*n*2,Uint16Array);for(let t=0;t<n;t++)for(let e=0;e<i;e++)c.push((t+0)*A+e,(t+1)*A+e,(t+0)*A+e+1),c.push((t+1)*A+e,(t+1)*A+e+1,(t+0)*A+e+1);return Xi({position:a,normal:s,texcoord:l,indices:c},r)}function en(t,e,i,n,r,o,a){if(e<=0||i<=0)throw new Error("subdivisionAxis and subdivisionHeight must be > 0");n=n||0,o=o||0;const s=(r=r||Math.PI)-n,l=(a=a||2*Math.PI)-o,A=(e+1)*(i+1),c=Wi(3,A),h=Wi(3,A),d=Wi(2,A);for(let r=0;r<=i;r++)for(let a=0;a<=e;a++){const A=a/e,u=r/i,p=l*A+o,g=s*u+n,f=Math.sin(p),m=Math.cos(p),y=Math.sin(g),b=m*y,v=Math.cos(g),E=f*y;c.push(t*b,t*v,t*E),h.push(b,v,E),d.push(1-A,u)}const u=e+1,p=Wi(3,e*i*2,Uint16Array);for(let t=0;t<e;t++)for(let e=0;e<i;e++)p.push((e+0)*u+t,(e+0)*u+t+1,(e+1)*u+t),p.push((e+1)*u+t,(e+0)*u+t+1,(e+1)*u+t+1);return{position:c,normal:h,texcoord:d,indices:p}}const nn=[[3,7,5,1],[6,2,0,4],[6,7,3,2],[0,1,5,4],[7,6,4,5],[2,3,1,0]];function rn(t){const e=(t=t||1)/2,i=[[-e,-e,-e],[+e,-e,-e],[-e,+e,-e],[+e,+e,-e],[-e,-e,+e],[+e,-e,+e],[-e,+e,+e],[+e,+e,+e]],n=[[1,0,0],[-1,0,0],[0,1,0],[0,-1,0],[0,0,1],[0,0,-1]],r=[[1,0],[0,0],[0,1],[1,1]],o=Wi(3,24),a=Wi(3,24),s=Wi(2,24),l=Wi(3,12,Uint16Array);for(let t=0;t<6;++t){const e=nn[t];for(let l=0;l<4;++l){const A=i[e[l]],c=n[t],h=r[l];o.push(A),a.push(c),s.push(h)}const A=4*t;l.push(A+0,A+1,A+2),l.push(A+0,A+2,A+3)}return{position:o,normal:a,texcoord:s,indices:l}}function on(t,e,i,n,r,o,a){if(n<3)throw new Error("radialSubdivisions must be 3 or greater");if(r<1)throw new Error("verticalSubdivisions must be 1 or greater");const s=void 0===o||o,l=void 0===a||a,A=(s?2:0)+(l?2:0),c=(n+1)*(r+1+A),h=Wi(3,c),d=Wi(3,c),u=Wi(2,c),p=Wi(3,n*(r+A/2)*2,Uint16Array),g=n+1,f=Math.atan2(t-e,i),m=Math.cos(f),y=Math.sin(f),b=r+(l?2:0);for(let o=s?-2:0;o<=b;++o){let a,s=o/r,l=i*s;o<0?(l=0,s=1,a=t):o>r?(l=i,s=1,a=e):a=t+o/r*(e-t),-2!==o&&o!==r+2||(a=0,s=0),l-=i/2;for(let t=0;t<g;++t){const e=Math.sin(t*Math.PI*2/n),i=Math.cos(t*Math.PI*2/n);h.push(e*a,l,i*a),o<0?d.push(0,-1,0):o>r?d.push(0,1,0):0===a?d.push(0,0,0):d.push(e*m,y,i*m),u.push(t/n,1-s)}}for(let t=0;t<r+A;++t)if(!(1===t&&s||t===r+A-2&&l))for(let e=0;e<n;++e)p.push(g*(t+0)+0+e,g*(t+0)+1+e,g*(t+1)+1+e),p.push(g*(t+0)+0+e,g*(t+1)+1+e,g*(t+1)+0+e);return{position:h,normal:d,texcoord:u,indices:p}}function an(t,e){e=e||[];const i=[];for(let n=0;n<t.length;n+=4){const r=t[n],o=t.slice(n+1,n+4);o.push.apply(o,e);for(let t=0;t<r;++t)i.push.apply(i,o)}return i}function sn(){const t=[0,0,0,0,150,0,30,0,0,0,150,0,30,150,0,30,0,0,30,0,0,30,30,0,100,0,0,30,30,0,100,30,0,100,0,0,30,60,0,30,90,0,67,60,0,30,90,0,67,90,0,67,60,0,0,0,30,30,0,30,0,150,30,0,150,30,30,0,30,30,150,30,30,0,30,100,0,30,30,30,30,30,30,30,100,0,30,100,30,30,30,60,30,67,60,30,30,90,30,30,90,30,67,60,30,67,90,30,0,0,0,100,0,0,100,0,30,0,0,0,100,0,30,0,0,30,100,0,0,100,30,0,100,30,30,100,0,0,100,30,30,100,0,30,30,30,0,30,30,30,100,30,30,30,30,0,100,30,30,100,30,0,30,30,0,30,60,30,30,30,30,30,30,0,30,60,0,30,60,30,30,60,0,67,60,30,30,60,30,30,60,0,67,60,0,67,60,30,67,60,0,67,90,30,67,60,30,67,60,0,67,90,0,67,90,30,30,90,0,30,90,30,67,90,30,30,90,0,67,90,30,67,90,0,30,90,0,30,150,30,30,90,30,30,90,0,30,150,0,30,150,30,0,150,0,0,150,30,30,150,30,0,150,0,30,150,30,30,150,0,0,0,0,0,0,30,0,150,30,0,0,0,0,150,30,0,150,0],e=an([18,0,0,1,18,0,0,-1,6,0,1,0,6,1,0,0,6,0,-1,0,6,1,0,0,6,0,1,0,6,1,0,0,6,0,-1,0,6,1,0,0,6,0,-1,0,6,-1,0,0]),i=an([18,200,70,120,18,80,70,200,6,70,200,210,6,200,200,70,6,210,100,70,6,210,160,70,6,70,180,210,6,100,70,210,6,76,210,100,6,140,210,80,6,90,130,110,6,160,160,220],[255]),n=t.length/3,r={position:Wi(3,n),texcoord:Wi(2,n),normal:Wi(3,n),color:Wi(4,n,Uint8Array),indices:Wi(3,n/3,Uint16Array)};r.position.push(t),r.texcoord.push([.22,.19,.22,.79,.34,.19,.22,.79,.34,.79,.34,.19,.34,.19,.34,.31,.62,.19,.34,.31,.62,.31,.62,.19,.34,.43,.34,.55,.49,.43,.34,.55,.49,.55,.49,.43,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,1,1,1,0,0,1,1,1,0]),r.normal.push(e),r.color.push(i);for(let t=0;t<n;++t)r.indices.push(t);return r}function ln(t,e,i,n,r,o,a){if(r<=0)throw new Error("subdivisionDown must be > 0");const s=(a=a||1)-(o=o||0),l=2*(r+1)*4,A=Wi(3,l),c=Wi(3,l),h=Wi(2,l);function d(t,e,i){return t+(e-t)*i}function u(e,i,a,l,u,p){for(let g=0;g<=r;g++){const f=i/1,m=g/r,y=2*(f-.5),b=(o+m*s)*Math.PI,v=Math.sin(b),E=Math.cos(b),I=d(t,e,v),C=y*n,B=E*t,w=v*I;A.push(C,B,w);const x=ni(ri([0,v,E],a),l);c.push(x),h.push(f*u+p,m)}}for(let t=0;t<2;t++){const n=2*(t/1-.5);u(e,t,[1,1,1],[0,0,0],1,0),u(e,t,[0,0,0],[n,0,0],0,0),u(i,t,[1,1,1],[0,0,0],1,0),u(i,t,[0,0,0],[n,0,0],0,1)}const p=Wi(3,2*r*4,Uint16Array);function g(t,e){for(let i=0;i<r;++i)p.push(t+i+0,t+i+1,e+i+0),p.push(t+i+1,e+i+1,e+i+0)}const f=r+1;return g(0*f,4*f),g(5*f,7*f),g(6*f,2*f),g(3*f,1*f),{position:A,normal:c,texcoord:h,indices:p}}function An(t,e,i,n,r,o){return on(t,t,e,i,n,r,o)}function cn(t,e,i,n,r,o){if(i<3)throw new Error("radialSubdivisions must be 3 or greater");if(n<3)throw new Error("verticalSubdivisions must be 3 or greater");r=r||0;const a=(o=o||2*Math.PI)-r,s=i+1,l=n+1,A=s*l,c=Wi(3,A),h=Wi(3,A),d=Wi(2,A),u=Wi(3,i*n*2,Uint16Array);for(let o=0;o<l;++o){const l=o/n,A=l*Math.PI*2,u=Math.sin(A),p=t+u*e,g=Math.cos(A),f=g*e;for(let t=0;t<s;++t){const e=t/i,n=r+e*a,o=Math.sin(n),s=Math.cos(n),A=o*p,m=s*p,y=o*u,b=s*u;c.push(A,f,m),h.push(y,g,b),d.push(e,1-l)}}for(let t=0;t<n;++t)for(let e=0;e<i;++e){const i=1+e,n=1+t;u.push(s*t+e,s*n+e,s*t+i),u.push(s*n+e,s*n+i,s*t+i)}return{position:c,normal:h,texcoord:d,indices:u}}function hn(t,e,i,n,r){if(e<3)throw new Error("divisions must be at least 3");r=r||1,n=n||0;const o=(e+1)*((i=i||1)+1),a=Wi(3,o),s=Wi(3,o),l=Wi(2,o),A=Wi(3,i*e*2,Uint16Array);let c=0;const h=t-n,d=e+1;for(let t=0;t<=i;++t){const o=n+h*Math.pow(t/i,r);for(let n=0;n<=e;++n){const r=2*Math.PI*n/e,h=o*Math.cos(r),u=o*Math.sin(r);if(a.push(h,0,u),s.push(0,1,0),l.push(1-n/e,t/i),t>0&&n!==e){const t=c+(n+1),e=c+n,i=c+n-d,r=c+(n+1)-d;A.push(t,e,i),A.push(t,i,r)}}c+=e+1}return{position:a,normal:s,texcoord:l,indices:A}}function dn(t){return function(e){return Yi(e,t.apply(this,Array.prototype.slice.call(arguments,1)))}}function un(t){return function(e){return Hi(e,t.apply(null,Array.prototype.slice.call(arguments,1)))}}un(sn),dn(sn),un(rn),dn(rn),un(tn),dn(tn),un(en),dn(en),un(on),dn(on),un($i),dn($i),un(ln),dn(ln),un(An),dn(An),un(cn),dn(cn),un(hn),dn(hn);function pn(t){return!!t.texStorage2D}const gn=function(){const t={},e={}
;return function(i,n){return function(i){const n=i.constructor.name;if(!t[n]){for(const t in i)if("number"==typeof i[t]){const n=e[i[t]];e[i[t]]=n?`${n} | ${t}`:t}t[n]=!0}}(i),e[n]||("number"==typeof n?`0x${n.toString(16)}`:n)}}();const fn={textureColor:new Uint8Array([128,192,255,255]),textureOptions:{},crossOrigin:void 0},mn=Ei,yn=function(){let t;return function(){return t=t||("undefined"!=typeof document&&document.createElement?document.createElement("canvas").getContext("2d"):null),t}}(),bn=6406,vn=6407,En=6408,In=6409,Cn=6410,Bn=6402,wn=34041,xn=33071,Qn=3553,Sn=34067,kn=32879,Dn=35866,_n=34069,Rn=10241,Mn=10240,Tn=10242,Fn=10243,Ln=3317,Nn=5120,Pn=5121,Un=5122,On=5123,Gn=5124,Hn=5125,Vn=5126,Yn=5131,zn=36193,Wn=33640,Zn=33319,jn=33320,qn=6403,Jn=36244,Kn=36248,Xn=36249,$n={};{const t=$n;t[6406]={numColorComponents:1},t[6409]={numColorComponents:1},t[6410]={numColorComponents:2},t[vn]={numColorComponents:3},t[6408]={numColorComponents:4},t[qn]={numColorComponents:1},t[36244]={numColorComponents:1},t[Zn]={numColorComponents:2},t[33320]={numColorComponents:2},t[vn]={numColorComponents:3},t[36248]={numColorComponents:3},t[6408]={numColorComponents:4},t[36249]={numColorComponents:4},t[6402]={numColorComponents:1},t[34041]={numColorComponents:2}}let tr;function er(t){if(!tr){const t={};t[6406]={textureFormat:bn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[Pn,Yn,zn,Vn]},t[6409]={textureFormat:In,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1,2,2,4],type:[Pn,Yn,zn,Vn]},t[6410]={textureFormat:Cn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2,4,4,8],type:[Pn,Yn,zn,Vn]},t[vn]={textureFormat:vn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,6,6,12,2],type:[Pn,Yn,zn,Vn,33635]},t[6408]={textureFormat:En,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,8,8,16,2,2],type:[Pn,Yn,zn,Vn,32819,32820]},t[6402]={textureFormat:Bn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[Hn,On]},t[33321]={textureFormat:qn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[1],type:[Pn]},t[36756]={textureFormat:qn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[1],type:[Nn]},t[33325]={textureFormat:qn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4,2],type:[Vn,Yn]},t[33326]={textureFormat:qn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[4],type:[Vn]},t[33330]={textureFormat:Jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[Pn]},t[33329]={textureFormat:Jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[1],type:[Nn]},t[33332]={textureFormat:Jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[On]},t[33331]={textureFormat:Jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Un]},t[33334]={textureFormat:Jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Hn]},t[33333]={textureFormat:Jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Gn]},t[33323]={textureFormat:Zn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[2],type:[Pn]},t[36757]={textureFormat:Zn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[2],type:[Nn]},t[33327]={textureFormat:Zn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[8,4],type:[Vn,Yn]},t[33328]={textureFormat:Zn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[8],type:[Vn]},t[33336]={textureFormat:jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Pn]},t[33335]={textureFormat:jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2],type:[Nn]},t[33338]={textureFormat:jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[On]},t[33337]={textureFormat:jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Un]},t[33340]={textureFormat:jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Hn]},t[33339]={textureFormat:jn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Gn]},t[32849]={textureFormat:vn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3],type:[Pn]},t[35905]={textureFormat:vn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[Pn]},t[36194]={textureFormat:vn,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[3,2],type:[Pn,33635]},t[36758]={textureFormat:vn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[3],type:[Nn]},t[35898]={textureFormat:vn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Vn,Yn,35899]},t[35901]={textureFormat:vn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6,4],type:[Vn,Yn,35902]},t[34843]={textureFormat:vn,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[12,6],type:[Vn,Yn]},t[34837]={textureFormat:vn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Vn]},t[36221]={textureFormat:Kn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[Pn]},t[36239]={textureFormat:Kn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[3],type:[Nn]},t[36215]={textureFormat:Kn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[On]},t[36233]={textureFormat:Kn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[6],type:[Un]},t[36209]={textureFormat:Kn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Hn]},t[36227]={textureFormat:Kn,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[12],type:[Gn]},t[32856]={textureFormat:En,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Pn]},t[35907]={textureFormat:En,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Pn]},t[36759]={textureFormat:En,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[4],type:[Nn]},t[32855]={textureFormat:En,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2,4],type:[Pn,32820,Wn]},t[32854]={textureFormat:En,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4,2],type:[Pn,32819]},t[32857]={textureFormat:En,colorRenderable:!0,textureFilterable:!0,bytesPerElement:[4],type:[Wn]},t[34842]={textureFormat:En,colorRenderable:!1,textureFilterable:!0,bytesPerElement:[16,8],type:[Vn,Yn]},t[34836]={textureFormat:En,colorRenderable:!1,textureFilterable:!1,bytesPerElement:[16],type:[Vn]},t[36220]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Pn]},t[36238]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Nn]},t[36975]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Wn]},t[36214]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[On]},t[36232]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[8],type:[Un]},t[36226]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[Gn]},t[36208]={textureFormat:Xn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[16],type:[Hn]},t[33189]={textureFormat:Bn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[2,4],type:[On,Hn]},t[33190]={textureFormat:Bn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Hn]},t[36012]={textureFormat:Bn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[Vn]},t[35056]={textureFormat:wn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[34042]},t[36013]={textureFormat:wn,colorRenderable:!0,textureFilterable:!1,bytesPerElement:[4],type:[36269]},Object.keys(t).forEach((function(e){const i=t[e];i.bytesPerElementMap={},i.bytesPerElement.forEach((function(t,e){const n=i.type[e];i.bytesPerElementMap[n]=t}))})),tr=t}return tr[t]}function ir(t,e){const i=er(t);if(!i)throw"unknown internal format";const n=i.bytesPerElementMap[e];if(void 0===n)throw"unknown internal format";return n}function nr(t){const e=er(t);if(!e)throw"unknown internal format";return{format:e.textureFormat,type:e.type[0]}}function rr(t){return!(t&t-1)}function or(t,e,i,n){if(!pn(t))return rr(e)&&rr(i);const r=er(n);if(!r)throw"unknown internal format";return r.colorRenderable&&r.textureFilterable}function ar(t){const e=er(t);if(!e)throw"unknown internal format";return e.textureFilterable}function sr(t,e,i){return mn(e)?yi(e):i||Pn}function lr(t,e,i,n,r){
if(r%1!=0)throw"can't guess dimensions";if(i||n){if(n){if(!i&&(i=r/n)%1)throw"can't guess dimensions"}else if((n=r/i)%1)throw"can't guess dimensions"}else{const t=Math.sqrt(r/(e===Sn?6:1));t%1==0?(i=t,n=t):(i=r,n=1)}return{width:i,height:n}}function Ar(t,e){void 0!==e.colorspaceConversion&&t.pixelStorei(37443,e.colorspaceConversion),void 0!==e.premultiplyAlpha&&t.pixelStorei(37441,e.premultiplyAlpha),void 0!==e.flipY&&t.pixelStorei(37440,e.flipY)}function cr(t){t.pixelStorei(Ln,4),pn(t)&&(t.pixelStorei(3314,0),t.pixelStorei(32878,0),t.pixelStorei(3316,0),t.pixelStorei(3315,0),t.pixelStorei(32877,0))}function hr(t,e,i,n){n.minMag&&(i.call(t,e,Rn,n.minMag),i.call(t,e,Mn,n.minMag)),n.min&&i.call(t,e,Rn,n.min),n.mag&&i.call(t,e,Mn,n.mag),n.wrap&&(i.call(t,e,Tn,n.wrap),i.call(t,e,Fn,n.wrap),(e===kn||function(t,e){return"undefined"!=typeof WebGLSampler&&Bi(e,"WebGLSampler")}(0,e))&&i.call(t,e,32882,n.wrap)),n.wrapR&&i.call(t,e,32882,n.wrapR),n.wrapS&&i.call(t,e,Tn,n.wrapS),n.wrapT&&i.call(t,e,Fn,n.wrapT),void 0!==n.minLod&&i.call(t,e,33082,n.minLod),void 0!==n.maxLod&&i.call(t,e,33083,n.maxLod),void 0!==n.baseLevel&&i.call(t,e,33084,n.baseLevel),void 0!==n.maxLevel&&i.call(t,e,33085,n.maxLevel),void 0!==n.compareFunc&&i.call(t,e,34893,n.compareFunc),void 0!==n.compareMode&&i.call(t,e,34892,n.compareMode)}function dr(t,e,i){const n=i.target||Qn;t.bindTexture(n,e),hr(t,n,t.texParameteri,i)}function ur(t,e,i,n,r,o){i=i||fn.textureOptions,o=o||En;const a=i.target||Qn;if(n=n||i.width,r=r||i.height,t.bindTexture(a,e),or(t,n,r,o))t.generateMipmap(a);else{const e=ar(o)?9729:9728;t.texParameteri(a,Rn,e),t.texParameteri(a,Mn,e),t.texParameteri(a,Tn,xn),t.texParameteri(a,Fn,xn)}}function pr(t){return!0===t.auto||void 0===t.auto&&void 0===t.level}function gr(t,e){return(e=e||{}).cubeFaceOrder||[_n,34070,34071,34072,34073,34074]}function fr(t,e){const i=gr(0,e).map((function(t,e){return{face:t,ndx:e}}));return i.sort((function(t,e){return t.face-e.face})),i}function mr(t,e,i,n){const r=(n=n||fn.textureOptions).target||Qn,o=n.level||0;let a=i.width,s=i.height;const l=n.internalFormat||n.format||En,A=nr(l),c=n.format||A.format,h=n.type||A.type;if(Ar(t,n),t.bindTexture(r,e),r===Sn){const A=i.width,d=i.height;let u,p;if(A/6===d)u=d,p=[0,0,1,0,2,0,3,0,4,0,5,0];else if(d/6===A)u=A,p=[0,0,0,1,0,2,0,3,0,4,0,5];else if(A/3==d/2)u=A/3,p=[0,0,1,0,2,0,0,1,1,1,2,1];else{if(A/2!=d/3)throw"can't figure out cube map from element: "+(i.src?i.src:i.nodeName);u=A/2,p=[0,0,1,0,0,1,1,1,0,2,1,2]}const g=yn();g?(g.canvas.width=u,g.canvas.height=u,a=u,s=u,fr(0,n).forEach((function(e){const n=p[2*e.ndx+0]*u,r=p[2*e.ndx+1]*u;g.drawImage(i,n,r,u,u,0,0,u,u),t.texImage2D(e.face,o,l,c,h,g.canvas)})),g.canvas.width=1,g.canvas.height=1):"undefined"!=typeof createImageBitmap&&(a=u,s=u,fr(0,n).forEach((function(A){const d=p[2*A.ndx+0]*u,g=p[2*A.ndx+1]*u;t.texImage2D(A.face,o,l,u,u,0,c,h,null),createImageBitmap(i,d,g,u,u,{premultiplyAlpha:"none",colorSpaceConversion:"none"}).then((function(i){Ar(t,n),t.bindTexture(r,e),t.texImage2D(A.face,o,l,c,h,i),pr(n)&&ur(t,e,n,a,s,l)}))})))}else if(r===kn||r===Dn){const e=Math.min(i.width,i.height),n=Math.max(i.width,i.height),a=n/e;if(a%1!=0)throw"can not compute 3D dimensions of element";const s=i.width===n?1:0,A=i.height===n?1:0;t.pixelStorei(Ln,1),t.pixelStorei(3314,i.width),t.pixelStorei(32878,0),t.pixelStorei(32877,0),t.texImage3D(r,o,l,e,e,e,0,c,h,null);for(let n=0;n<a;++n){const a=n*e*s,l=n*e*A;t.pixelStorei(3316,a),t.pixelStorei(3315,l),t.texSubImage3D(r,o,0,0,n,e,e,1,c,h,i)}cr(t)}else t.texImage2D(r,o,l,c,h,i);pr(n)&&ur(t,e,n,a,s,l),dr(t,e,n)}function yr(){}function br(t,e){return void 0!==e||function(t){if("undefined"!=typeof document){const e=document.createElement("a");return e.href=t,e.hostname===location.hostname&&e.port===location.port&&e.protocol===location.protocol}{const e=new URL(location.href).origin;return new URL(t,location.href).origin===e}}(t)?e:"anonymous"}function vr(t){return"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap||"undefined"!=typeof ImageData&&t instanceof ImageData||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement}function Er(t,e,i){return vr(t)?(setTimeout((function(){i(null,t)})),t):function(t,e,i){let n;if(i=i||yr,e=void 0!==e?e:fn.crossOrigin,e=br(t,e),"undefined"!=typeof Image){n=new Image,void 0!==e&&(n.crossOrigin=e);const r=function(){n.removeEventListener("error",o),n.removeEventListener("load",a),n=null},o=function(){const e="couldn't load image: "+t;Ii(e),i(e,n),r()},a=function(){i(null,n),r()};return n.addEventListener("error",o),n.addEventListener("load",a),n.src=t,n}if("undefined"!=typeof ImageBitmap){let r,o;const a=function(){i(r,o)},s={};e&&(s.mode="cors"),fetch(t,s).then((function(t){if(!t.ok)throw t;return t.blob()})).then((function(t){return createImageBitmap(t,{premultiplyAlpha:"none",colorSpaceConversion:"none"})})).then((function(t){o=t,setTimeout(a)})).catch((function(t){r=t,setTimeout(a)})),n=null}return n}(t,e,i)}function Ir(t,e,i){const n=(i=i||fn.textureOptions).target||Qn;if(t.bindTexture(n,e),!1===i.color)return;const r=function(t){return t=t||fn.textureColor,mn(t)?t:new Uint8Array([255*t[0],255*t[1],255*t[2],255*t[3]])}(i.color);if(n===Sn)for(let e=0;e<6;++e)t.texImage2D(_n+e,0,En,1,1,0,En,Pn,r);else n===kn||n===Dn?t.texImage3D(n,0,En,1,1,1,0,En,Pn,r):t.texImage2D(n,0,En,1,1,0,En,Pn,r)}function Cr(t,e,i,n){n=n||yr,i=i||fn.textureOptions,Ir(t,e,i);return Er((i=Object.assign({},i)).src,i.crossOrigin,(function(r,o){r?n(r,e,o):(mr(t,e,o,i),n(null,e,o))}))}function Br(t,e,i,n){n=n||yr;const r=i.src;if(6!==r.length)throw"there must be 6 urls for a cubemap";const o=i.level||0,a=i.internalFormat||i.format||En,s=nr(a),l=i.format||s.format,A=i.type||Pn,c=i.target||Qn;if(c!==Sn)throw"target must be TEXTURE_CUBE_MAP";Ir(t,e,i),i=Object.assign({},i);let h=6;const d=[],u=gr(0,i);let p;p=r.map((function(r,s){return Er(r,i.crossOrigin,(g=u[s],function(r,s){--h,r?d.push(r):s.width!==s.height?d.push("cubemap face img is not a square: "+s.src):(Ar(t,i),t.bindTexture(c,e),5===h?gr().forEach((function(e){t.texImage2D(e,o,a,l,A,s)})):t.texImage2D(g,o,a,l,A,s),pr(i)&&t.generateMipmap(c)),0===h&&n(d.length?d:void 0,e,p)}));var g}))}function wr(t,e,i,n){n=n||yr;const r=i.src,o=i.internalFormat||i.format||En,a=nr(o),s=i.format||a.format,l=i.type||Pn,A=i.target||Dn;if(A!==kn&&A!==Dn)throw"target must be TEXTURE_3D or TEXTURE_2D_ARRAY";Ir(t,e,i),i=Object.assign({},i);let c=r.length;const h=[];let d;const u=i.level||0;let p=i.width,g=i.height;const f=r.length;let m=!0;d=r.map((function(r,a){return Er(r,i.crossOrigin,(y=a,function(r,a){if(--c,r)h.push(r);else{if(Ar(t,i),t.bindTexture(A,e),m){m=!1,p=i.width||a.width,g=i.height||a.height,t.texImage3D(A,u,o,p,g,f,0,s,l,null);for(let e=0;e<f;++e)t.texSubImage3D(A,u,0,0,e,p,g,1,s,l,a)}else{let e,i=a;a.width===p&&a.height===g||(e=yn(),i=e.canvas,e.canvas.width=p,e.canvas.height=g,e.drawImage(a,0,0,p,g)),t.texSubImage3D(A,u,0,0,y,p,g,1,s,l,i),e&&i===e.canvas&&(e.canvas.width=0,e.canvas.height=0)}pr(i)&&t.generateMipmap(A)}0===c&&n(h.length?h:void 0,e,d)}));var y}))}function xr(t,e,i,n){const r=(n=n||fn.textureOptions).target||Qn;t.bindTexture(r,e);let o=n.width,a=n.height,s=n.depth;const l=n.level||0,A=n.internalFormat||n.format||En,c=nr(A),h=n.format||c.format,d=n.type||sr(0,i,c.type);if(mn(i))i instanceof Uint8ClampedArray&&(i=new Uint8Array(i.buffer));else{const t=vi(d);i=new t(i)}const u=ir(A,d),p=i.byteLength/u;if(p%1)throw"length wrong size for format: "+gn(t,h);let g;if(r===kn||r===Dn)if(o||a||s)!o||a&&s?!a||o&&s?(g=lr(0,r,o,a,p/s),o=g.width,a=g.height):(g=lr(0,r,o,s,p/a),o=g.width,s=g.height):(g=lr(0,r,a,s,p/o),a=g.width,s=g.height);else{const t=Math.cbrt(p);if(t%1!=0)throw"can't guess cube size of array of numElements: "+p;o=t,a=t,s=t}else g=lr(0,r,o,a,p),o=g.width,a=g.height;if(cr(t),t.pixelStorei(Ln,n.unpackAlignment||1),Ar(t,n),r===Sn){const e=p/6*(u/i.BYTES_PER_ELEMENT);fr(0,n).forEach((n=>{const r=e*n.ndx,s=i.subarray(r,r+e);t.texImage2D(n.face,l,A,o,a,0,h,d,s)}))}else r===kn||r===Dn?t.texImage3D(r,l,A,o,a,s,0,h,d,i):t.texImage2D(r,l,A,o,a,0,h,d,i);return{width:o,height:a,depth:s,type:d}}function Qr(t,e,i){const n=i.target||Qn
;t.bindTexture(n,e);const r=i.level||0,o=i.internalFormat||i.format||En,a=nr(o),s=i.format||a.format,l=i.type||a.type;if(Ar(t,i),n===Sn)for(let e=0;e<6;++e)t.texImage2D(_n+e,r,o,i.width,i.height,0,s,l,null);else n===kn||n===Dn?t.texImage3D(n,r,o,i.width,i.height,i.depth,0,s,l,null):t.texImage2D(n,r,o,i.width,i.height,0,s,l,null)}function Sr(t,e,i){i=i||yr,e=e||fn.textureOptions;const n=t.createTexture(),r=e.target||Qn;let o=e.width||1,a=e.height||1;const s=e.internalFormat||En;t.bindTexture(r,n),r===Sn&&(t.texParameteri(r,Tn,xn),t.texParameteri(r,Fn,xn));let l=e.src;if(l)if("function"==typeof l&&(l=l(t,e)),"string"==typeof l)Cr(t,n,e,i);else if(mn(l)||Array.isArray(l)&&("number"==typeof l[0]||Array.isArray(l[0])||mn(l[0]))){const i=xr(t,n,l,e);o=i.width,a=i.height}else Array.isArray(l)&&("string"==typeof l[0]||vr(l[0]))?r===Sn?Br(t,n,e,i):wr(t,n,e,i):(mr(t,n,l,e),o=l.width,a=l.height);else Qr(t,n,e);return pr(e)&&ur(t,n,e,o,a,s),dr(t,n,e),n}function kr(t,e,i){i=i||yr;let n=0;const r=[],o={},a={};function s(){0===n&&setTimeout((function(){i(r.length?r:void 0,o,a)}),0)}return Object.keys(e).forEach((function(i){const l=e[i];let A;var c;("string"==typeof(c=l.src)||Array.isArray(c)&&"string"==typeof c[0])&&(A=function(t,e,o){a[i]=o,--n,t&&r.push(t),s()},++n),o[i]=Sr(t,l,A)})),s(),o}const Dr=Ii;function _r(t){return"undefined"!=typeof document&&document.getElementById?document.getElementById(t):null}const Rr=33984,Mr=34962,Tr=5126,Fr=5124,Lr=5125,Nr=3553,Pr=34067,Ur=32879,Or=35866,Gr={};function Hr(t,e){return Gr[e].bindPoint}function Vr(t,e){return function(i){t.uniform1i(e,i)}}function Yr(t,e){return function(i){t.uniform1iv(e,i)}}function zr(t,e){return function(i){t.uniform2iv(e,i)}}function Wr(t,e){return function(i){t.uniform3iv(e,i)}}function Zr(t,e){return function(i){t.uniform4iv(e,i)}}function jr(t,e,i,n){const r=Hr(0,e);return pn(t)?function(e){let o,a;!e||wi(0,e)?(o=e,a=null):(o=e.texture,a=e.sampler),t.uniform1i(n,i),t.activeTexture(Rr+i),t.bindTexture(r,o),t.bindSampler(i,a)}:function(e){t.uniform1i(n,i),t.activeTexture(Rr+i),t.bindTexture(r,e)}}function qr(t,e,i,n,r){const o=Hr(0,e),a=new Int32Array(r);for(let t=0;t<r;++t)a[t]=i+t;return pn(t)?function(e){t.uniform1iv(n,a),e.forEach((function(e,n){let r,s;t.activeTexture(Rr+a[n]),!e||wi(0,e)?(r=e,s=null):(r=e.texture,s=e.sampler),t.bindSampler(i,s),t.bindTexture(o,r)}))}:function(e){t.uniform1iv(n,a),e.forEach((function(e,i){t.activeTexture(Rr+a[i]),t.bindTexture(o,e)}))}}function Jr(t,e){return function(i){if(i.value)switch(t.disableVertexAttribArray(e),i.value.length){case 4:t.vertexAttrib4fv(e,i.value);break;case 3:t.vertexAttrib3fv(e,i.value);break;case 2:t.vertexAttrib2fv(e,i.value);break;case 1:t.vertexAttrib1fv(e,i.value);break;default:throw new Error("the length of a float constant value must be between 1 and 4!")}else t.bindBuffer(Mr,i.buffer),t.enableVertexAttribArray(e),t.vertexAttribPointer(e,i.numComponents||i.size,i.type||Tr,i.normalize||!1,i.stride||0,i.offset||0),t.vertexAttribDivisor&&t.vertexAttribDivisor(e,i.divisor||0)}}function Kr(t,e){return function(i){if(i.value){if(t.disableVertexAttribArray(e),4!==i.value.length)throw new Error("The length of an integer constant value must be 4!");t.vertexAttrib4iv(e,i.value)}else t.bindBuffer(Mr,i.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,i.numComponents||i.size,i.type||Fr,i.stride||0,i.offset||0),t.vertexAttribDivisor&&t.vertexAttribDivisor(e,i.divisor||0)}}function Xr(t,e){return function(i){if(i.value){if(t.disableVertexAttribArray(e),4!==i.value.length)throw new Error("The length of an unsigned integer constant value must be 4!");t.vertexAttrib4uiv(e,i.value)}else t.bindBuffer(Mr,i.buffer),t.enableVertexAttribArray(e),t.vertexAttribIPointer(e,i.numComponents||i.size,i.type||Lr,i.stride||0,i.offset||0),t.vertexAttribDivisor&&t.vertexAttribDivisor(e,i.divisor||0)}}function $r(t,e,i){const n=i.size,r=i.count;return function(i){t.bindBuffer(Mr,i.buffer);const o=i.size||i.numComponents||n,a=o/r,s=i.type||Tr,l=Gr[s].size*o,A=i.normalize||!1,c=i.offset||0,h=l/r;for(let n=0;n<r;++n)t.enableVertexAttribArray(e+n),t.vertexAttribPointer(e+n,a,s,A,l,c+h*n),t.vertexAttribDivisor&&t.vertexAttribDivisor(e+n,i.divisor||0)}}Gr[5126]={Type:Float32Array,size:4,setter:function(t,e){return function(i){t.uniform1f(e,i)}},arraySetter:function(t,e){return function(i){t.uniform1fv(e,i)}}},Gr[35664]={Type:Float32Array,size:8,setter:function(t,e){return function(i){t.uniform2fv(e,i)}},cols:2},Gr[35665]={Type:Float32Array,size:12,setter:function(t,e){return function(i){t.uniform3fv(e,i)}},cols:3},Gr[35666]={Type:Float32Array,size:16,setter:function(t,e){return function(i){t.uniform4fv(e,i)}},cols:4},Gr[Fr]={Type:Int32Array,size:4,setter:Vr,arraySetter:Yr},Gr[35667]={Type:Int32Array,size:8,setter:zr,cols:2},Gr[35668]={Type:Int32Array,size:12,setter:Wr,cols:3},Gr[35669]={Type:Int32Array,size:16,setter:Zr,cols:4},Gr[5125]={Type:Uint32Array,size:4,setter:function(t,e){return function(i){t.uniform1ui(e,i)}},arraySetter:function(t,e){return function(i){t.uniform1uiv(e,i)}}},Gr[36294]={Type:Uint32Array,size:8,setter:function(t,e){return function(i){t.uniform2uiv(e,i)}},cols:2},Gr[36295]={Type:Uint32Array,size:12,setter:function(t,e){return function(i){t.uniform3uiv(e,i)}},cols:3},Gr[36296]={Type:Uint32Array,size:16,setter:function(t,e){return function(i){t.uniform4uiv(e,i)}},cols:4},Gr[35670]={Type:Uint32Array,size:4,setter:Vr,arraySetter:Yr},Gr[35671]={Type:Uint32Array,size:8,setter:zr,cols:2},Gr[35672]={Type:Uint32Array,size:12,setter:Wr,cols:3},Gr[35673]={Type:Uint32Array,size:16,setter:Zr,cols:4},Gr[35674]={Type:Float32Array,size:32,setter:function(t,e){return function(i){t.uniformMatrix2fv(e,!1,i)}},rows:2,cols:2},Gr[35675]={Type:Float32Array,size:48,setter:function(t,e){return function(i){t.uniformMatrix3fv(e,!1,i)}},rows:3,cols:3},Gr[35676]={Type:Float32Array,size:64,setter:function(t,e){return function(i){t.uniformMatrix4fv(e,!1,i)}},rows:4,cols:4},Gr[35685]={Type:Float32Array,size:32,setter:function(t,e){return function(i){t.uniformMatrix2x3fv(e,!1,i)}},rows:2,cols:3},Gr[35686]={Type:Float32Array,size:32,setter:function(t,e){return function(i){t.uniformMatrix2x4fv(e,!1,i)}},rows:2,cols:4},Gr[35687]={Type:Float32Array,size:48,setter:function(t,e){return function(i){t.uniformMatrix3x2fv(e,!1,i)}},rows:3,cols:2},Gr[35688]={Type:Float32Array,size:48,setter:function(t,e){return function(i){t.uniformMatrix3x4fv(e,!1,i)}},rows:3,cols:4},Gr[35689]={Type:Float32Array,size:64,setter:function(t,e){return function(i){t.uniformMatrix4x2fv(e,!1,i)}},rows:4,cols:2},Gr[35690]={Type:Float32Array,size:64,setter:function(t,e){return function(i){t.uniformMatrix4x3fv(e,!1,i)}},rows:4,cols:3},Gr[35678]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Nr},Gr[35680]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Pr},Gr[35679]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Ur},Gr[35682]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Nr},Gr[36289]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Or},Gr[36292]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Or},Gr[36293]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Pr},Gr[36298]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Nr},Gr[36299]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Ur},Gr[36300]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Pr},Gr[36303]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Or},Gr[36306]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Nr},Gr[36307]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Ur},Gr[36308]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Pr},Gr[36311]={Type:null,size:0,setter:jr,arraySetter:qr,bindPoint:Or};const to={};to[5126]={size:4,setter:Jr},to[35664]={size:8,setter:Jr},to[35665]={size:12,setter:Jr},to[35666]={size:16,setter:Jr},to[Fr]={size:4,setter:Kr},to[35667]={size:8,setter:Kr},to[35668]={size:12,setter:Kr},to[35669]={size:16,setter:Kr},to[5125]={size:4,setter:Xr},to[36294]={size:8,setter:Xr},to[36295]={size:12,setter:Xr},to[36296]={size:16,setter:Xr},to[35670]={size:4,setter:Kr},to[35671]={size:8,setter:Kr},to[35672]={size:12,setter:Kr},to[35673]={size:16,
setter:Kr},to[35674]={size:4,setter:$r,count:2},to[35675]={size:9,setter:$r,count:3},to[35676]={size:16,setter:$r,count:4};const eo=/ERROR:\s*\d+:(\d+)/gi;const io=/^[ \t]*\n/;function no(t){let e=0;return io.test(t)&&(e=1,t=t.replace(io,"")),{lineOffset:e,shaderSource:t}}function ro(t,e){return t.errorCallback(e),t.callback&&setTimeout((()=>{t.callback(`${e}\n${t.errors.join("\n")}`)})),null}function oo(t,e,i,n){n=n||Dr;if(!t.getShaderParameter(i,35713)){const r=t.getShaderInfoLog(i),{lineOffset:o,shaderSource:a}=no(t.getShaderSource(i)),s=`${function(t,e="",i=0){const n=[...e.matchAll(eo)],r=new Map(n.map(((t,i)=>{const r=parseInt(t[1]),o=n[i+1],a=o?o.index:e.length;return[r-1,e.substring(t.index,a)]})));return t.split("\n").map(((t,e)=>{const n=r.get(e);return`${e+1+i}: ${t}${n?`\n\n^^^ ${n}`:""}`})).join("\n")}(a,r,o)}\nError compiling ${gn(t,e)}: ${r}`;return n(s),s}return""}function ao(t,e,i){let n,r,o;if("function"==typeof e&&(i=e,e=void 0),"function"==typeof t)i=t,t=void 0;else if(t&&!Array.isArray(t)){const e=t;i=e.errorCallback,t=e.attribLocations,n=e.transformFeedbackVaryings,r=e.transformFeedbackMode,o=e.callback}const a=i||Dr,s=[],l={errorCallback(t,...e){s.push(t),a(t,...e)},transformFeedbackVaryings:n,transformFeedbackMode:r,callback:o,errors:s};{let i={};Array.isArray(t)?t.forEach((function(t,n){i[t]=e?e[n]:n})):i=t||{},l.attribLocations=i}return l}const so=["VERTEX_SHADER","FRAGMENT_SHADER"];const lo=(t=0)=>new Promise((e=>setTimeout(e,t)));function Ao(t,e,i){const n=t.createProgram(),{attribLocations:r,transformFeedbackVaryings:o,transformFeedbackMode:a}=ao(i);for(let i=0;i<e.length;++i){let r=e[i];if("string"==typeof r){const e=_r(r),o=e?e.text:r;let a=t[so[i]];e&&e.type&&(a=((s=e.type).indexOf("frag")>=0?35632:s.indexOf("vert")>=0?35633:void 0)||a),r=t.createShader(a),t.shaderSource(r,no(o).shaderSource),t.compileShader(r),t.attachShader(n,r)}}var s;Object.entries(r).forEach((([e,i])=>t.bindAttribLocation(n,i,e)));{let e=o;e&&(e.attribs&&(e=e.attribs),Array.isArray(e)||(e=Object.keys(e)),t.transformFeedbackVaryings(n,e,a||35981))}return t.linkProgram(n),n}function co(t,e,i,n,r){const o=ao(i,n,r),a=new Set(e),s=Ao(t,e,o);function l(t,e){const i=po(t,e,o.errorCallback);return i&&function(t,e,i){const n=t.getAttachedShaders(e);for(const e of n)i.has(e)&&t.deleteShader(e);t.deleteProgram(e)}(t,e,a),i}if(!o.callback)return l(t,s)?void 0:s;uo(t,s).then((()=>{const e=l(t,s);o.callback(e,e?void 0:s)}))}function ho(t){return function(e,i,...n){return new Promise(((r,o)=>{const a=ao(...n);a.callback=(t,e)=>{t?o(t):r(e)},t(e,i,a)}))}}ho(co),ho(Do);function uo(t,e){return ti(this,null,(function*(){const i=t.getExtension("KHR_parallel_shader_compile"),n=i?(t,e)=>t.getProgramParameter(e,i.COMPLETION_STATUS_KHR):()=>!0;let r=0;do{yield lo(r),r=1e3/60}while(!n(t,e))}))}function po(t,e,i){i=i||Dr;if(!t.getProgramParameter(e,35714)){const n=t.getProgramInfoLog(e);i(`Error in program linking: ${n}`);return`${n}\n${t.getAttachedShaders(e).map((e=>oo(t,t.getShaderParameter(e,t.SHADER_TYPE),e,i))).filter((t=>t)).join("\n")}`}}function go(t,e,i,n,r){return co(t,e,i,n,r)}function fo(t){const e=t.name;return e.startsWith("gl_")||e.startsWith("webgl_")}const mo=/(\.|\[|]|\w+)/g,yo=t=>t>="0"&&t<="9";function bo(t,e,i,n){const r=t.split(mo).filter((t=>""!==t));let o=0,a="";for(;;){const t=r[o++];a+=t;const s=yo(t[0]),l=s?parseInt(t):t;s&&(a+=r[o++]);if(o===r.length){i[l]=e;break}{const t=r[o++],e="["===t,s=i[l]||(e?[]:{});i[l]=s,i=s,n[a]=n[a]||function(t){return function(e){Co(t,e)}}(s),a+=t}}}function vo(t,e){let i=0;function n(e,n,r){const o=n.name.endsWith("[0]"),a=n.type,s=Gr[a];if(!s)throw new Error(`unknown type: 0x${a.toString(16)}`);let l;if(s.bindPoint){const e=i;i+=n.size,l=o?s.arraySetter(t,a,e,r,n.size):s.setter(t,a,e,r,n.size)}else l=s.arraySetter&&o?s.arraySetter(t,r):s.setter(t,r);return l.location=r,l}const r={},o={},a=t.getProgramParameter(e,35718);for(let i=0;i<a;++i){const a=t.getActiveUniform(e,i);if(fo(a))continue;let s=a.name;s.endsWith("[0]")&&(s=s.substr(0,s.length-3));const l=t.getUniformLocation(e,a.name);if(l){const t=n(0,a,l);r[s]=t,bo(s,t,o,r)}}return r}function Eo(t,e){const i={},n=t.getProgramParameter(e,35971);for(let r=0;r<n;++r){const n=t.getTransformFeedbackVarying(e,r);i[n.name]={index:r,type:n.type,size:n.size}}return i}function Io(t,e){const i=t.getProgramParameter(e,35718),n=[],r=[];for(let o=0;o<i;++o){r.push(o),n.push({});const i=t.getActiveUniform(e,o);n[o].name=i.name}[["UNIFORM_TYPE","type"],["UNIFORM_SIZE","size"],["UNIFORM_BLOCK_INDEX","blockNdx"],["UNIFORM_OFFSET","offset"]].forEach((function(i){const o=i[0],a=i[1];t.getActiveUniforms(e,r,t[o]).forEach((function(t,e){n[e][a]=t}))}));const o={},a=t.getProgramParameter(e,35382);for(let i=0;i<a;++i){const n=t.getActiveUniformBlockName(e,i),r={index:t.getUniformBlockIndex(e,n),usedByVertexShader:t.getActiveUniformBlockParameter(e,i,35396),usedByFragmentShader:t.getActiveUniformBlockParameter(e,i,35398),size:t.getActiveUniformBlockParameter(e,i,35392),uniformIndices:t.getActiveUniformBlockParameter(e,i,35395)};r.used=r.usedByVertexShader||r.usedByFragmentShader,o[n]=r}return{blockSpecs:o,uniformData:n}}function Co(t,e){for(const i in e){const n=t[i];"function"==typeof n?n(e[i]):Co(t[i],e[i])}}function Bo(t,...e){const i=t.uniformSetters||t,n=e.length;for(let t=0;t<n;++t){const n=e[t];if(Array.isArray(n)){const t=n.length;for(let e=0;e<t;++e)Bo(i,n[e])}else for(const t in n){const e=i[t];e&&e(n[t])}}}function wo(t,e){const i={},n=t.getProgramParameter(e,35721);for(let r=0;r<n;++r){const n=t.getActiveAttrib(e,r);if(fo(n))continue;const o=t.getAttribLocation(e,n.name),a=to[n.type],s=a.setter(t,o,a);s.location=o,i[n.name]=s}return i}function xo(t,e){for(const i in e){const n=t[i];n&&n(e[i])}}function Qo(t,e,i){i.vertexArrayObject?t.bindVertexArray(i.vertexArrayObject):(xo(e.attribSetters||e,i.attribs),i.indices&&t.bindBuffer(34963,i.indices))}function So(t,e){const i={program:e,uniformSetters:vo(t,e),attribSetters:wo(t,e)};return pn(t)&&(i.uniformBlockSpec=Io(t,e),i.transformFeedbackInfo=Eo(t,e)),i}const ko=/\s|{|}|;/;function Do(t,e,i,n,r){const o=ao(i,n,r),a=[];if(e=e.map((function(t){if(!ko.test(t)){const e=_r(t);if(e)t=e.text;else{const e=`no element with id: ${t}`;o.errorCallback(e),a.push(e)}}return t})),a.length)return ro(o,"");const s=o.callback;s&&(o.callback=(e,i)=>{s(e,e?void 0:So(t,i))});const l=go(t,e,o);return l?So(t,l):null}function _o(t,e,i,n,r){for(const[o,a]of Object.entries(e)){const s=$e({},r),l=i[o];Array.isArray(l)||Object.assign(s,l);const A=po(t,a,s.errorCallback);if(A){for(const i of Object.values(e)){const e=t.getAttachedShaders(i);t.deleteProgram(i);for(const i of e)n.has(i)||t.deleteShader(i)}return A}}}function Ro(t,e,i={}){const n=new Set,r=Object.fromEntries(Object.entries(e).map((([e,r])=>{const o=$e({},i),a=Array.isArray(r)?r:r.shaders;return Array.isArray(r)||Object.assign(o,r),a.forEach(n.add,n),[e,Ao(t,a,o)]})));if(i.callback)return void function(t,e){return ti(this,null,(function*(){for(const i of Object.values(e))yield uo(t,i)}))}(t,r).then((()=>{const o=_o(t,r,e,n,i);i.callback(o,o?void 0:r)}));return _o(t,r,e,n,i)?void 0:r}function Mo(t,e,i){function n(t,e){return Object.fromEntries(Object.entries(e).map((([e,i])=>[e,So(t,i)])))}const r=(i=ao(i)).callback;r&&(i.callback=(e,i)=>{r(e,e?void 0:n(t,i))});const o=Ro(t,e,i);if(!r&&o)return n(t,o)}ho(Ro),ho(Mo);function To(t,e,i,n,r,o){i=void 0===i?4:i;const a=e.indices,s=e.elementType,l=void 0===n?e.numElements:n;r=void 0===r?0:r,s||a?void 0!==o?t.drawElementsInstanced(i,l,void 0===s?5123:e.elementType,r,o):t.drawElements(i,l,void 0===s?5123:e.elementType,r):void 0!==o?t.drawArraysInstanced(i,r,l,o):t.drawArrays(i,r,l)}const Fo=36096,Lo=33306,No={};No[34041]=Lo,No[6401]=36128,No[36168]=36128,No[6402]=Fo,No[33189]=Fo,No[33190]=Fo,No[36012]=Fo,No[35056]=Lo,No[36013]=Lo;const Po={};Po[32854]=!0,Po[32855]=!0,Po[36194]=!0,Po[34041]=!0,Po[33189]=!0,Po[6401]=!0,Po[36168]=!0;function Uo(t,e){e=e||1,e=Math.max(0,e);const i=t.clientWidth*e|0,n=t.clientHeight*e|0;return(t.width!==i||t.height!==n)&&(t.width=i,t.height=n,!0)}
const Oo=new Float32Array([-1,1,0,0,0,1,1,0,1,0,-1,-1,0,0,1,1,-1,0,1,1]),Go=4,Ho=new Float32Array([-1,-1,0,0,0,1,-1,0,1,0,-1,1,0,0,1,1,1,0,1,1]);function Vo(t){const{vertex:e,vertexCount:i}=n,r=ki(t,function(){const t=[-1,-1,0,1,-1,0,-1,1,0,1,1,0],e=[0,0,1,0,0,1,1,1],i=[255,0,0,255,0,255,0,255,0,0,255,255,255,255,255,255],n=new ArrayBuffer(96),r=new Float32Array(n),o=new Uint8Array(n);let a=0,s=20,l=0,A=0,c=0;for(let n=0;n<4;++n)r[a++]=t[l++],r[a++]=t[l++],r[a++]=t[l++],r[a++]=e[A++],r[a++]=e[A++],a+=1,o[s++]=i[c++],o[s++]=i[c++],o[s++]=i[c++],o[s++]=i[c++],s+=20;return n}()),o=ki(t,new Uint16Array([0,1,2,2,1,3]),t.ELEMENT_ARRAY_BUFFER),a=6*i;return{bufferInfo:{numElements:6,indices:o,elementType:t.UNSIGNED_SHORT,attribs:{a_position:{buffer:r,numComponents:3,type:t.FLOAT,stride:a,offset:0},a_texcoord:{buffer:r,numComponents:2,type:t.FLOAT,stride:a,offset:12},a_color:{buffer:r,numComponents:4,type:t.UNSIGNED_BYTE,stride:a,offset:20,normalize:!0}}},vertexBuffer:r,indexBuffer:o}}const Yo={time:0,center:[.5,.5,0],aspect_ratio:1,world_unit:4,time_scale:1,time_offset:.4,color_alpha:.8},zo={velocity:.33,freq:10,ampt:.1,ampt_noise_velocity:[.2,.1],ampt_noise_strength:.1,phase_noise_velocity:[.1,.1],phase_noise_strength:1.1,offset_noise_velocity:[.1,.1],offset_noise_strength:-.25,radius_range:.65*Yo.world_unit,radius_order:2,time_scale:4,time_range:1,time_order:5},Wo={gravitation:.1,radius_range:.5*Yo.world_unit,radius_order:1,time_range:1,time_order:3},Zo={velocity:-60/180*Math.PI,radius_range:.8*Yo.world_unit,radius_order:2,time_range:10,time_order:5},jo={strength:3.2,velocity:[.1,.1],time_scale:1,radius_range:.1*Yo.world_unit,radius_order:1,time_range:4,time_order:5};var qo=Object.defineProperty,Jo=Object.defineProperties,Ko=Object.getOwnPropertyDescriptors,Xo=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,ea=(t,e,i)=>e in t?qo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ia=(t,e)=>{for(var i in e||(e={}))$o.call(e,i)&&ea(t,i,e[i]);if(Xo)for(var i of Xo(e))ta.call(e,i)&&ea(t,i,e[i]);return t},na=(t,e)=>Jo(t,Ko(e)),ra=(t=>(t.Running="running",t.Paused="paused",t.Stopped="stopped",t))(ra||{});var oa=class{constructor(t,e){this.dm=t,this.gpuCanvas=e,this.runState="stopped",this.uniforms=null,this.gl=null,this.noiseTexture=null,this.aniTexture=null,this.aniProgramInfo=null,this.bufferInfo=null,this.devicePR=2,this.updateMetrics()}createOffCanvas(){return this.offscreenCanvas||(this.offscreenCanvas=this.dm.dmDelicateShot(this.offscreenCanvas,this.metrics.width,this.metrics.height,{needDraw:!1})),this.offscreenCanvas}initWebGL(){const{gl:t,programInfo:e}=function(t){const e=t.getContext("webgl2",{antialias:!0});if(!e)throw new Error("WebGL not supported");return{gl:e,
programInfo:Do(e,["#version 300 es\nprecision highp float;\n\nin vec4 a_position;\nin vec2 a_texcoord;\nin vec4 a_color;\nout vec2 v_texcoord;\nout vec4 v_color;\nvoid main() {\n    v_texcoord = a_texcoord;\n    v_color = a_color;\n    gl_Position = a_position;\n}","#version 300 es\n#ifdef GL_ES\nprecision highp float;\n#endif\n\nstruct SandEffect {\n  float time;\n  vec3 center;\n  float aspect_ratio;\n  float world_unit;\n  float time_scale;\n  float time_offset;\n  float color_alpha;\n};\n\nstruct SandRadial {\n  float velocity;\n  float freq;\n  float ampt;\n\n  vec2 ampt_noise_velocity;\n  float ampt_noise_strength;\n  vec2 phase_noise_velocity;\n  float phase_noise_strength;\n  vec2 offset_noise_velocity;\n  float offset_noise_strength;\n\n  float radius_range;\n  float radius_order;\n\n  float time_scale;\n  float time_range;\n  float time_order;\n};\n\nstruct SandGravity {\n  float gravitation;\n  float radius_range;\n  float radius_order;\n  float time_range;\n  float time_order;\n};\n\nstruct SandAngle {\n  float velocity;\n  float radius_range;\n  float radius_order;\n  float time_range;\n  float time_order;\n};\n\nstruct SandPixel {\n  float strength;\n  vec2 velocity;\n  float time_scale;\n  float radius_range;\n  float radius_order;\n  float time_range;\n  float time_order;\n};\n\nin vec2 v_texcoord;\nin vec4 v_color;\nout vec4 FragColor;\n\nuniform sampler2D u_texture;\nuniform sampler2D u_noise;\nuniform sampler2D u_noise1;\nuniform sampler2D u_noise2;\nuniform SandEffect u_efft;\nuniform SandRadial u_radial;\nuniform SandRadial u_angle;\nuniform SandGravity u_gravity;\nuniform SandPixel u_pixel;\n\nvec3 transformToRetangle(vec3 pos)\n{\n  float world_unit = u_efft.world_unit;\n  return pos * vec3(world_unit, world_unit / u_efft.aspect_ratio, world_unit);\n}\n\nvec3 transfromToScreen(vec3 pos)\n{\n  float world_unit = u_efft.world_unit;\n  return pos / vec3(world_unit, world_unit / u_efft.aspect_ratio, world_unit);\n}\n\n// Rodrigues 旋转公式\nvec3 rotate_around_axis(vec3 p, vec3 axis, float angle)\n{\n  float costheta = cos(angle);\n  float sintheta = sin(angle);\n  vec3 r;\n\n  r.x = ((costheta + (1.0 - costheta) * axis.x * axis.x) * p.x) +\n        (((1.0 - costheta) * axis.x * axis.y - axis.z * sintheta) * p.y) +\n        (((1.0 - costheta) * axis.x * axis.z + axis.y * sintheta) * p.z);\n\n  r.y = (((1.0 - costheta) * axis.x * axis.y + axis.z * sintheta) * p.x) +\n        ((costheta + (1.0 - costheta) * axis.y * axis.y) * p.y) +\n        (((1.0 - costheta) * axis.y * axis.z - axis.x * sintheta) * p.z);\n  \n  r.z = p.z;\n\n  return r;\n}\n\nfloat uniformNoise(float noise, float strength)\n{\n  return (noise * 2.0 - 1.0) * strength;\n}\n\nfloat saturate(float x)\n{\n  // min(max(x, minVal), maxVal)\n  return clamp(x, 0.0, 1.0);\n}\n\nvoid node_vector_rotate_axis_angle(vec3 vector_in, vec3 center, vec3 axis, float angle, vec3 rotation, float invert, out vec3 vec)\n{\n  vec = (length(axis) != 0.0) ? rotate_around_axis(vector_in - center, normalize(axis), angle * invert) + center : vector_in;\n}\n\nfloat bezier(float t) {\n    return t * t * (3.0 - 2.0 * t);\n}\n\n// 围绕任意点旋转函数\nvec3 rotate_around_point(vec3 p, vec3 point, vec3 axis, float angle, float strength)\n{\n    // Step 1: 平移点 `p` 使得旋转中心 `point` 移到原点\n    vec3 translated_p = (p - point);\n\n    // Step 2: 使用之前的旋转函数围绕新原点（旧坐标系中的 `point`）进行旋转\n    vec3 rotated_p = rotate_around_axis(translated_p, axis, angle);\n\n    //Step 3: 将旋转后的点平移回去\n    vec3 final_p = rotated_p + point;\n\n    return final_p;\n}\n\nvoid main() {\n    float time = max(u_efft.time - u_efft.time_offset, 0.0) * u_efft.time_scale;\n    float time2 = pow(time, 2.0);\n\n    vec2 uv = v_texcoord;\n    vec3 pos = transformToRetangle(vec3(uv, 0.0));\n    vec3 center = transformToRetangle(u_efft.center);\n\n    // vec3 diff = vec3(uv, 0) - u_efft.center;\n    vec3 diff = pos - center;\n    float radius = length(diff.xy);\n    vec3 direction = normalize(diff);\n\n    // 计算初始半径影响值，使用 smoothstep 函数平滑过渡\n    float initialRadiusAffect = smoothstep(0.0, 1.0, (-1.0 / 10.0) * radius + 1.0) * time2 * 0.5;\n\n    // 使用 atan 函数计算角度（corner），并根据时间和速度进行调整\n    float corner = atan(direction.x, direction.y) + time * u_radial.velocity;\n\n    // 计算噪声纹理的 UV 坐标偏移，基于不同的噪声速度和时间\n    vec2 amplitudeUV = uv + u_radial.ampt_noise_velocity * time;\n    vec2 phaseUV = uv + u_radial.phase_noise_velocity * time;\n    vec2 offsetUV = uv + u_radial.offset_noise_velocity * time;\n\n    // 从噪声纹理中采样颜色数据\n    vec4 amplitudeColor = texture(u_noise, amplitudeUV);\n    vec4 phaseColor = texture(u_noise, phaseUV);\n    vec4 offsetColor = texture(u_noise, offsetUV);\n\n    // 生成基于噪声的径向扰动\n    float radialDistAmptNoise = uniformNoise(amplitudeColor.r, u_radial.ampt_noise_strength);\n    float radialDistPhaseNoise = uniformNoise(phaseColor.g, u_radial.phase_noise_strength);\n    float radialDistOffsetNoise = uniformNoise(offsetColor.b, u_radial.offset_noise_strength);\n\n    float radialDist = (u_radial.ampt + radialDistAmptNoise) * clamp(sin(corner * u_radial.freq + radialDistPhaseNoise), 0.7, 1.0);\n    radialDist += radialDistOffsetNoise;\n    radialDist *= u_efft.world_unit;\n    radialDist *= clamp(time * u_radial.time_scale, 0.0, 1.0);\n\n    // 基于半径和时间进一步调整扰动效果\n    {\n        // 计算与半径相关的影响因子\n        float radiusAffect = 1.0 - saturate(radius / u_radial.radius_range);\n        radiusAffect = pow(radiusAffect, u_radial.radius_order);\n        radialDist *= radiusAffect;\n\n        // 计算与时间相关的影响因子\n        float timeAffect = saturate(time / u_radial.time_range);\n        timeAffect = pow(timeAffect, u_radial.time_order - 1.0) * (u_radial.time_order - (u_radial.time_order - 1.0) * timeAffect);\n        radialDist *= timeAffect;\n    }\n\n    // angle\n    float angle = u_angle.velocity;\n        {\n            float radius_affect = 1.0 - saturate(radius / u_angle.radius_range); // 距离如果超过这个range，就不生效\n            radius_affect = pow(radius_affect, u_angle.radius_order);\n            float time_affect = saturate(time / u_angle.time_range);\n            time_affect = pow(time_affect, u_angle.time_order - 1.0) * (u_angle.time_order - (u_angle.time_order - 1.0) * time_affect);\n            // 使用 S 型函数进行变换\n            //float sFactor = sin(radius / 2.0); // 半周期的sin函数，用于模拟 S 型变换\n            angle *= radius_affect * time_affect;\n        }\n    vec3 rotated_p = rotate_around_point(pos, center ,vec3(0.0, 0.0, 1.0), angle, 1.0);\n    vec2 result_uv = transfromToScreen(rotated_p).xy;\n\n    // 计算随时间变化的缩放因子\n    float time_affect = saturate(time / u_gravity.time_range);\n    time_affect = pow(time_affect, u_gravity.time_order - 1.0) * (u_gravity.time_order - (u_gravity.time_order - 1.0) * time_affect);\n    float timeFactor = clamp(time_affect, 0.0, 1.0);\n\n    // float distanceFactor = saturate(1.0 - atan(radius / pow(u_gravity.radius_range, u_gravity.radius_order)));\n    float ratio = radius / u_gravity.radius_range;\n    float min = (0.9 - ratio) * u_gravity.gravitation;\n    float distanceFactor = saturate(exp(-pow(ratio, u_gravity.radius_order)) + min) ;\n    \n    // 结合时间和距离的综合影响因子\n    float combinedFactor = pow(timeFactor * distanceFactor, 3.0); // 可以通过调整指数改变影响程度\n    \n    // 计算新的纹理坐标，使像素点逐渐靠近吸引中心\n    result_uv = result_uv + direction.xy * radialDist + direction.xy * combinedFactor;\n \n    float pixel_noise = uniformNoise(texture(u_noise, vec2(uv + u_pixel.velocity)).a, u_pixel.strength);\n    pixel_noise *= clamp(time * u_pixel.time_scale, 0.0, 1.0);\n    {\n        float radius_affect = 1.0 - saturate(radius / u_pixel.radius_range);\n        radius_affect = pow(radius_affect, u_pixel.radius_order);\n        pixel_noise *= radius_affect;\n\n        float time_affect = saturate(time / u_pixel.time_range);\n        time_affect = pow(time_affect, u_pixel.time_order - 1.0) * (u_pixel.time_order - (u_pixel.time_order - 1.0) * time_affect);\n        pixel_noise *= time_affect;\n    }\n\n    result_uv += pixel_noise;\n     if (any(bvec2(floor(result_uv)))) {\n        FragColor = vec4(0.0);\n    } \n    else {\n      vec4 color = texture(u_texture, result_uv);\n      float a = clamp(max(u_efft.time_offset + 1.0 - u_efft.time, 0.0), u_efft.color_alpha, 1.0);\n      FragColor = color * a;\n    }\n    // FragColor = texture(u_texture, uv);\n}"])
}}(this.gpuCanvas);return this.gl=t,this.aniProgramInfo=e,{gl:t,programInfo:e}}getAppropriateCfg(t,e,i,n){const{world_unit:r,time_offset:o}=Yo;let a=Wo.radius_range,s=zo.radius_range,l=jo.radius_range,A=Zo.velocity;let c=n||3;const h=Math.min(.2,(i-o)/Math.max(30,10*(c-.5)));if(Math.abs(t-.5)<.1)a=(.25+h)*r,s=.4*r,l+=h*r;else if(t>.5){let t=.5;a=(t+h)*r,s=t*r,l+=h*r}else a=(.8-t)*r,s=.5*r,l+=h*r;return{gravityRange:a,noiseRange:s,pixelRadiusRange:l,angleVelocity:A}}setUniforms(t){Bo(this.aniProgramInfo,t)}updateMetrics(){this.metrics={width:this.dm.uiStore.state.containerWidth,height:this.dm.uiStore.state.containerHeight},Uo(this.gpuCanvas,this.devicePR),this.gl&&(this.gl.viewport(0,0,this.gl.canvas.width,this.gl.canvas.height),this.setUniforms({u_efft:na(ia({},Yo),{aspect_ratio:this.gpuCanvas.width/this.gpuCanvas.height})})),this.offscreenCanvas=this.dm.dmDelicateShot(this.offscreenCanvas,this.metrics.width,this.metrics.height,{needDraw:!1})}drawTexture(t){if(t&&t.time)try{const e=this.bufferInfo,i=this.offscreenCanvas,n=this.aniProgramInfo,r=this.gl,{width:o,height:a}=this.metrics,s=this.aniTexture,l=1,A=Math.max(0,t.time-Yo.time_offset)/l;this.dm.dmDelicateShot(i,o,a,{center:null==t?void 0:t.center[0],centerOffset:.15,reflowProgress:A>1?1:A});const c=t.duration||1,{gravityRange:h,noiseRange:d,pixelRadiusRange:u,angleVelocity:p}=this.getAppropriateCfg(t.center[0],t.center[1],t.time,c);Bo(n,{u_efft:ia({},t),u_gravity:na(ia({},Wo),{radius_range:h}),u_radial:na(ia({},zo),{radius_range:d}),pixelUnis:na(ia({},jo),{radius_range:u}),angleUnis:na(ia({},Zo),{velocity:p})}),r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,s),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,i),To(r,e)}catch(t){console.error(t)}}run(t){if("running"===this.runState)throw new Error("Animation is already running");if("paused"===this.runState)return;const{gl:e,programInfo:i}=this.initWebGL(),{bufferInfo:n}=Vo(e);this.bufferInfo=n;const r=this.createOffCanvas();Uo(e.canvas,this.devicePR),e.viewport(0,0,e.canvas.width,e.canvas.height),e.useProgram(i.program);const o=this.aniTexture=Sr(e,{src:r,flipY:1,target:e.TEXTURE_2D,minMag:e.LINEAR,wrapT:e.CLAMP_TO_EDGE,wrapS:e.CLAMP_TO_EDGE}),a=kr(e,{rgba_noise:{
src:"data:image/png;base64, "
}});this.uniforms={u_texture:o,u_noise:a.rgba_noise,u_efft:na(ia({},Yo),{aspect_ratio:this.gpuCanvas.width/this.gpuCanvas.height,time:(null==t?void 0:t.time)||Yo.time,center:(null==t?void 0:t.center)||Yo.center}),u_radial:zo,u_angle:Zo,u_gravity:Wo,u_pixel:jo},Qo(e,i,n),Bo(i,this.uniforms),this.drawTexture({time:(null==t?void 0:t.time)||Yo.time,center:(null==t?void 0:t.center)||Yo.center,duration:null==t?void 0:t.duration}),this.runState="running"}pause(){this.runState="paused"}resume(){this.runState="running"}stop(){this.runState="stopped",this.clearGL()}clearGL(){this.gl&&(this.gl.deleteProgram(this.aniProgramInfo.program),this.gl.deleteTexture(this.noiseTexture),this.gl.deleteTexture(this.aniTexture)),this.aniProgramInfo=null,this.noiseTexture=null,this.aniTexture=null,this.offscreenCanvas=null,this.uniforms=null,this.gl=null}getRunState(){return this.runState}dispose(){this.stop()}},aa=i(89262),sa=Object.defineProperty,la=Object.getOwnPropertyDescriptor;class Aa extends Ze.vq{constructor(t,e){super(t),this.frameTime=1e3/60,this.dm=e}install(){super.install(),this.rootPlayer.on(Ze.p2.MEDIA_TIMEUPDATE,(()=>{this.danmakuStore.state.sandDuneProps.length>0&&(this.coord=this.calculateCoordination(this.portStore.getCurrentTime()),this.coord?this.start():this.stop())})),this.rootPlayer.on(Ze.p2.MEDIA_PAUSE,(()=>{this.pause()})),this.rootPlayer.on(Ze.p2.MEDIA_PLAY,(()=>{this.resume()})),this.rootPlayer.on(Ze.p2.MEDIA_SEEKING,(()=>{this.pause()})),this.rootPlayer.on(Ze.p2.MEDIA_SEEKED,(()=>{this.sandAni&&(this.startAniTimeOffset=this.coord.timeOffset,this.resume())}))}pause(){if(this.sandAni){this.sandAni.getRunState()===ra.Running&&(this.cancelRaf(),this.startAniTimeOffset=this.coord.timeOffset,this.sandAni.pause())}}resume(){this.sandAni&&this.sandAni.getRunState()===ra.Paused&&(this.sandAni.resume(),this.drawFrame())}cancelRaf(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null)}removeGpuCanvas(){this.gpuCanvas&&(this.gpuCanvas.remove(),this.gpuCanvas=null),this.dm.setRollContainerVisibility(!0)}stop(){this.sandAni&&(this.rootPlayer.off(Ze.tw.Player_Container_Resize,this.onResize),this.cancelRaf(),this.sandAni.dispose(),this.sandAni=null,this.gpuCanvas&&this.removeGpuCanvas(),this.rootPlayer.emit(Ze.tw.Player_Sand_Animation_Running,new CustomEvent(Ze.tw.Player_Sand_Animation_Running,{detail:{isRunning:!1}}))),this.dm.setRollContainerVisibility(!0)}onResize(){this.sandAni.updateMetrics()}start(){if(this.sandAni)return;this.rootPlayer.emit(Ze.tw.Player_Sand_Animation_Running,new CustomEvent(Ze.tw.Player_Sand_Animation_Running,{detail:{isRunning:!0}})),this.rootPlayer.on(Ze.tw.Player_Container_Resize,this.onResize),this.dm.setRollContainerVisibility(!1),this.sandAni||(this.sandAni=new oa(this.dm,this.createGpuCanvas()));const t=this.sandAni.getRunState(),{x:e,y:i,timeOffset:n,duration:r}=this.coord;t===ra.Stopped&&(this.startAniTimeOffset=n,this.sandAni.run({center:[e,i,0],time:n,duration:r})),this.drawFrame()}drawFrame(){let t=0;this.lastUpdateAniTime=0;let e=!0;const i=()=>{const n=performance.now();this.lastUpdateAniTime||(this.lastUpdateAniTime=n,t=n);const r=n-t;if(r<this.frameTime&&r>0&&!e)return void(this.rafId=requestAnimationFrame(i));const{x:o,y:a,duration:s}=this.coord,l=this.startAniTimeOffset+(n-this.lastUpdateAniTime)/1e3;this.sandAni.drawTexture({time:l,center:[o,a,0],duration:s}),this.rafId=requestAnimationFrame(i),t=n,e=!1};i()}calculateCoordination(t){try{const e=this.danmakuStore.state.sandDuneProps;let i;for(let n=0;n<e.length;n++)if(t>=e[n].showTime&&t<e[n].end){i=e[n];break}if(!i)return null;const n=(t,e,i)=>t+(e-t)*i,r=(e,n,r)=>{const o=this.uiStore.state.videoNodeHeight,a=this.uiStore.state.videoAreaHeight;return{x:e/100,y:((a-o)/2+n/100*o)/a,timeOffset:t-r,duration:i.end-i.showTime}},o=i.pointFile;let a,s,l,A;for(let e=0;e<o.length-1;e++)if(o[e].timeoffset<=t&&o[e+1].timeoffset>=t){a=o[e],s=o[e+1];break}if(a&&s){const e=(t-a.timeoffset)/(s.timeoffset-a.timeoffset);l=n(a.x,s.x,e),A=n(a.y,s.y,e)}else t<o[0].timeoffset?(l=o[0].x,A=o[0].y):t>o[o.length-1].timeoffset&&(l=o[o.length-1].x,A=o[o.length-1].y);return r(l,A,i.showTime)}catch(t){return null}}createGpuCanvas(){if(!this.gpuCanvas){this.gpuCanvas=document.createElement("canvas"),this.gpuCanvas.classList.add(`${this.ppx}-dm-sand-gpu-canvas`);this.gpuCanvas.id="gpuCanvas"}return this.nodes.videoArea.appendChild(this.gpuCanvas),this.gpuCanvas}onDispose(){this.stop()}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?la(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&sa(e,i,o)})([aa.ZP],Aa.prototype,"onResize",1);var ca=i(51102),ha=i(99550),da=i(46330),ua=i(23529),pa=Object.defineProperty,ga=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,ma=Object.getOwnPropertySymbols,ya=Object.prototype.hasOwnProperty,ba=Object.prototype.propertyIsEnumerable,va=(t,e,i)=>e in t?pa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Ea=(t,e)=>{for(var i in e||(e={}))ya.call(e,i)&&va(t,i,e[i]);if(ma)for(var i of ma(e))ba.call(e,i)&&va(t,i,e[i]);return t},Ia=(t,e)=>ga(t,fa(e));class Ca{constructor(t){this.dmParserRoot=t,this.dmParserRoot=t}cmdLogParseError(t,e,i){this.dmParserRoot.logParseError(t,e,i)}parseLink(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.Link,mode:r.ZP.Mode.Link,duration:e.duration/1e3||5,modeInfo:{type:13,aid:e.aid,arcDuration:e.arc_duration,arcPic:e.arc_pic+"@180w_100h_1c.jpg",arcType:e.arc_type,bvid:e.bvid,epid:e.epid,posX:e.posX_2||Math.round(e.posX/667*100),posY:e.posY_2||Math.round(e.posY/375*100),shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon,shrinkState:+e.show_status||r.Ub.OFF}})}catch(e){return this.cmdLogParseError("视频链接",e,t),null}}parseFollow(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.Follow,mode:r.ZP.Mode.Follow,modeInfo:{type:e.type||0,mid:e.mid||null,posX:e.posX_2||Math.round(e.posX/667*100),posY:e.posY_2||Math.round(e.posY/375*100),face:e.face,shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon,followToElectric:e.upower_open,electricGuide:e.upower_guide,electricStatus:e.upower_state,electricIcon:e.upower_icon_web,electricMap:e.upower_button_map}})}catch(e){return this.cmdLogParseError("关注",e,t),null}}parseVote(t){try{const e=JSON.parse(t.extra)||{},i=e.duration/1e3||10;return Ia(Ea({},t),{rawMode:r.ZP.Mode.Vote,mode:r.ZP.Mode.Vote,duration:i,text:e.question,modeInfo:{duration:i,type:9,voteId:e.vote_id,options:e.options,myVote:e.my_vote,mid:e.mid,posX:e.posX_2||Math.round(e.posX/667*100),posY:e.posY_2||Math.round(e.posY/375*100),shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon,shrinkState:+e.show_status||r.Ub.OFF,voteType:e.vote_type||0}})}catch(e){return this.cmdLogParseError("投票",e,t),null}}parseReserve(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.Reserve,mode:r.ZP.Mode.Reserve,modeInfo:{duration:t.duration,reserveId:e.reserve_id,jump:e.jump_url,posY:e.posY_2||Math.round(e.posY/375*100),posX:e.posX_2||Math.round(e.posX/667*100),count:e.reserve_count||0,userState:e.user_state,state:e.reserve_state,mid:e.mid||0,arcTime:1e3*e.stime||0,arcTimeFormat:e.stime_format||"",reserveType:e.reserve_type,liveTime:1e3*e.live_stime||0,liveTimeFormat:e.live_stime_format||"",popularity:e.live_popularity_count||0,popularityStr:e.live_popularity_str||"",liveState:e.live_state||0,liveLottery:e.live_lottery,desc:e.desc,premiereState:e.premiere_state||0,premiereCount:e.premiere_online_count||0,premiereView:e.premiere_view||0,shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon}})}catch(e){return this.cmdLogParseError("视频预约",e,t),null}}parseGoodsLike(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.GoodsLike,mode:r.ZP.Mode.GoodsLike,modeInfo:{posX:e.posX_2||Math.round(e.posX/667*100),posY:e.posY_2||Math.round(e.posY/375*100),duration:e.duration,keyword:e.keyword,icon:e.icon,itemIdStr:e.item_id_str,itemImage:e.item_image,userSub:e.user_sub,desc:e.desc,buttonSelected:e.button_selected,buttonUnSelected:e.button_unselected,buttonIcon:e.button_icon}})}catch(e){return this.cmdLogParseError("种草",e,t),null}}parseCmtime(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.Cmtime,
mode:r.ZP.Mode.Cmtime,modeInfo:{posX:e.posX_2||Math.round(e.posX/667*100),posY:e.posY_2||Math.round(e.posY/375*100),duration:e.duration,upSlogan:e.up_slogan,upSloganIcon:e.slogan_icon,dmKeyWord:e.dm_key_word}})}catch(e){return this.cmdLogParseError("广告",e,t),null}}parseSuperRating(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.SuperRating,mode:r.ZP.Mode.SuperRating,modeInfo:{posX:e.posX_2||Math.round(e.posX/667*100),posY:e.posY_2||Math.round(e.posY/375*100),duration:12,keyword:e.keyword,teams:e.teams,boUrl:e.bo_url,boSlogan:e.bo_slogan,shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon,shrinkState:+e.show_status||r.Ub.OFF}})}catch(e){return this.cmdLogParseError("超级打分",e,t),null}}parseRewardfans(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.Rewardfans,mode:r.ZP.Mode.Rewardfans,text:e.main_title,modeInfo:{duration:t.duration,posY:e.posY_2||Math.round(e.posY/375*100),posX:e.posX_2||Math.round(e.posX/667*100),subTitle:e.sub_title||"",jumpUrl:e.jump_url||"",dmKeyWord:e.dm_key_word||"",prefixIcon:e.prefix_icon||"",followMid:e.follow_mid||0,activityId:e.activity_id||0,userState:!!e.participated||!1}})}catch(e){return this.cmdLogParseError("宠粉",e,t),null}}parseScore(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.Score,mode:r.ZP.Mode.Score,text:e.msg,modeInfo:{duration:t.duration,posY:e.posY_2||Math.round(e.posY/375*100),posX:e.posX_2||Math.round(e.posX/667*100),skin:e.skin||"",skinUnselected:e.skin_unselected,skinSelected:e.skin_selected,skinFontColor:e.skin_font_color,gradeId:e.grade_id||0,midScore:e.mid_score,count:e.count||0,avgScore:e.avg_score||0,shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon,shrinkState:+e.show_status||r.Ub.OFF}})}catch(e){return this.cmdLogParseError("评分",e,t),null}}parseScoreSum(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.ScoreSum,mode:r.ZP.Mode.ScoreSum,text:e.msg,modeInfo:{posY:e.posY_2||Math.round(e.posY/375*100),posX:e.posX_2||Math.round(e.posX/667*100),summaryList:e.grades,shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon}})}catch(e){return this.cmdLogParseError("评分总结",e,t),null}}parseClockIn(t){try{const e=JSON.parse(t.extra)||{};return Ia(Ea({},t),{rawMode:r.ZP.Mode.ClockIn,mode:r.ZP.Mode.ClockIn,text:e.msg,modeInfo:{type:e.type,posY:e.posY_2||Math.round(e.posY/375*100),posX:e.posX_2||Math.round(e.posX/667*100),seriesId:e.checkin_series_id,checkInId:e.checkin_id,total:e.total,userOverNumber:e.user_over_number,userCompleted:e.user_completed,joinPeople:e.join_people,jumpUrl:e.jump_url,userChecked:e.user_checked,userCheckInDate:e.user_checkin_date,shrinkTitle:e.shrink_title,shrinkIcon:e.shrink_icon}})}catch(e){return this.cmdLogParseError("打卡",e,t),null}}parseCombo(t){return e=this,i=null,n=function*(){try{const e=JSON.parse(t.extra)||{},i=+e.activityType;let n=t.stime,o=e.duration/1e3||10;100===i&&(n=0);const a=Ia(Ea({},t),{stime:n,duration:o,rawMode:r.ZP.Mode.Combo,mode:r.ZP.Mode.Combo,modeInfo:{type:i,count:e.comboCount||1,step:[Number(e.animationCountOne)||50,Number(e.animationCountTwo)||500,Number(e.animationCountThree)||2e3]}}),s=yield r.ZP.Utils.unzip(e.resource),l={};return s.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if(["bgin","bgout","bgloop","anim1","anim2","anim3"].includes(n)){const e=Number(r);isNaN(e)||(l[n]=l[n]||[],l[n][e]=t.content)}else"number"===n&&(l.numbers=l.numbers||{},l.numbers[r]=t.content)})),a.resUrl=e.resource,a.resource=l,a}catch(e){return this.cmdLogParseError("Combo",e,t),null}},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var Ba=Object.defineProperty,wa=Object.defineProperties,xa=Object.getOwnPropertyDescriptors,Qa=Object.getOwnPropertySymbols,Sa=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable,Da=(t,e,i)=>e in t?Ba(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_a=(t,e)=>{for(var i in e||(e={}))Sa.call(e,i)&&Da(t,i,e[i]);if(Qa)for(var i of Qa(e))ka.call(e,i)&&Da(t,i,e[i]);return t},Ra=(t,e)=>wa(t,xa(e)),Ma=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Ta{constructor(t){this.dmIndex=t,this.cachePromise={},this.isRegisterFontFamily=!1,this.blackHoleUrl=null,this.errorCount={},this.cmdParser=new Ca(this)}clearErrorCount(){this.errorCount={}}logParseError(t,e,i){if(this.errorCount[t]||(this.errorCount[t]=0),this.errorCount[t]>=3)return;this.errorCount[t]++;const n={type:t,error:(null==e?void 0:e.message)||String(e),dmid:i.dmid,animation:i.animation,action:i.action,stime:i.stime,errorCount:this.errorCount[t]};this.dmIndex.getLogs().i(`[DmParser] ${t}弹幕资源解析失败 (${this.errorCount[t]}/3)`,n)}logParseCmdError(t,e,i){if(this.errorCount[t]||(this.errorCount[t]=0),this.errorCount[t]>=3)return;this.errorCount[t]++;const n={type:t,error:(null==e?void 0:e.message)||String(e),command:i.command,extra:i.extra,stime:i.stime,errorCount:this.errorCount[t]};this.dmIndex.getLogs().i(`[CmdParser] ${t}弹幕资源解析失败 (${this.errorCount[t]}/3)`,n)}setModeStack(t){var e,i,n,o;let a=[{rawMode:r.H1.Roll,mode:r.H1.Roll},{rawMode:t.rawMode,mode:t.mode}];this.dmIndex.blockStore.dmMap.set(t.dmid,{modeStack:a,index:a.length-1,blockColor:!1,blockSpecial:!1,blockTopBottom:!1,preventShade:!1,color:t.color,colorful:t.colorful,font_color:null==(e=t.modeInfo)?void 0:e.font_color,font_stroke_color:null==(i=t.modeInfo)?void 0:i.font_stroke_color,color_type:null==(n=t.modeInfo)?void 0:n.color_type,color_url:(null==(o=null==t?void 0:t.resource)?void 0:o.url)||""})}normalizeUrl(t){return`//${t.replace(/^http(s?):\/\//,"")}`}getPicSize(t){return this.cachePromise[t]||(this.cachePromise[t]=new Promise(((e,i)=>{const n=new Image;n.src=t,n.onload=()=>{e({width:n.width,height:n.height})}}))),this.cachePromise[t]}parseAction(t){const e={resource:{}},[i,n]=t.split("?"),r=i.split(":");return e[r[0]]=r[1],n&&n.split("&").forEach((t=>{const[i,n]=t.split("=");e.resource[i]=n})),e}parsePicture(t){return Ma(this,null,(function*(){try{const e=JSON.parse(t.animation)||{},i=_a({},t),n=this.normalizeUrl(e.resource),{height:o,width:a}=yield this.getPicSize(n);return i.rawMode=t.mode||1,i.mode=r.ZP.Mode.Picture,i.resource={url:n,width:a,height:o,borderRadius:e.borderRadius||10,scale:e.scale||1},this.setModeStack(i),i}catch(e){this.logParseError("图片完全替换",e,t)}}))}parsePrefixImage(t){return Ma(this,null,(function*(){try{const e=JSON.parse(t.animation)||{},i=_a({},t),n=this.normalizeUrl(e.resource),{height:o,width:a}=yield this.getPicSize(n);return i.rawMode=t.mode||1,i.mode=r.ZP.Mode.PrefixImage,i.resource={url:n,width:a,height:o},this.setModeStack(i),i}catch(e){this.logParseError("前缀图片",e,t)}}))}parseSuffixImage(t){return Ma(this,null,(function*(){try{const e=JSON.parse(t.animation)||{},i=_a({},t),n=this.normalizeUrl(e.resource),{height:o,width:a}=yield this.getPicSize(n);return i.rawMode=t.mode||1,i.mode=r.ZP.Mode.SuffixImage,i.resource={url:n,width:a,height:o},this.setModeStack(i),i}catch(e){this.logParseError("后缀图片",e,t)}}))}parseUpProfile(t){const e=_a({},t);return e.rawMode=t.mode||1,e.mode=r.ZP.Mode.UpProfile,this.setModeStack(e),e}parseColorful(t){try{const e=JSON.parse(t.animation)||{},i=_a({},t);return i.rawMode=t.mode||1,i.mode=r.ZP.Mode.Colorful,i.modeInfo=e,i.resource={url:this.normalizeUrl(e.resource)},this.setModeStack(i),i}catch(e){this.logParseError("染色",e,t)}}parseFireworkBillion(t){return Ma(this,null,(function*(){var e,i;try{const n=_a({},t);n.rawMode=n.mode=r.ZP.Mode.FireworkBillion;const o=this.parseAction(t.action)||{},a=o.resource&&o.resource.zip0,s=yield r.ZP.Utils.unzip(a),l={};return s.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop();if(["head","body","tail"].includes(i.split(".")[0]))l[i.split(".")[0]]=t.content;else{if("impact"===e.pop()){l.list=l.list||[];const e=Number(i.split(".")[0]);if(isNaN(e))return;l.list[e]=t.content}}})),n.resUrl=a,n.resource=l,n.modeInfo={
font_color:null==(e=o.resource)?void 0:e.font_color,font_stroke_color:null==(i=o.resource)?void 0:i.font_stroke_color},this.setModeStack(n),n}catch(e){this.logParseError("2022百亿烟花",e,t)}}))}parseFirework2022(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.rawMode=e.mode=r.ZP.Mode.Firework2022;const i=JSON.parse(t.animation),n=i.resource,o=yield r.ZP.Utils.unzip(n),a={};return o.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if(["head","body","tail","master_body","master_tail","master_head"].includes(r))a[r]=t.content;else{const e=Number(r);if(isNaN(e))return;a[n]=a[n]||[],a[n][e]=t.content}})),e.resUrl=n,e.resource=a,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("2022跨晚烟花",e,t)}}))}parseFireworkBoom(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.rawMode=e.mode=r.ZP.Mode.FireworkBoom;const i=JSON.parse(t.animation)||{},n=i.resource,o=yield r.ZP.Utils.unzip(n),a={};return o.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if(["head","body","tail","master_body","master_tail","master_head"].includes(r))a[r]=t.content;else{const e=Number(r);if(isNaN(e))return;a[n]=a[n]||[],a[n][e]=t.content}})),e.resUrl=n,e.resource=a,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("2022拜年祭",e,t)}}))}parseSpring(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.rawMode=e.mode=r.ZP.Mode.Spring;const i=JSON.parse(t.animation)||{},n=i.resource,o=yield r.ZP.Utils.unzip(n),a={};o.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if(["head","body","tail","master_body","master_tail","master_head"].includes(r))a[r]=t.content;else{const e=Number(r);if(isNaN(e))return;a[n]=a[n]||[],a[n][e]=t.content}}));for(let t in a)if(/^impact_(\d+)$/.test(t)){a.lists=a.lists||[];const e=Array.isArray(a[t])?a[t].filter(Boolean):a[t];a.lists.push(e)}else if(/^master_impact_(\d+)$/.test(t)){a.masterLists=a.masterLists||[];const e=Array.isArray(a[t])?a[t].filter(Boolean):a[t];a.masterLists.push(e)}return e.resUrl=n,e.resource=a,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("2022春节锦鲤",e,t)}}))}parseSand(t){return Ma(this,null,(function*(){try{const e=JSON.parse(t.animation)||{},i=_a({},t);i.rawMode=t.mode||1,i.mode=r.ZP.Mode.Sand;const n=e.resource,o=yield r.ZP.Utils.unzip(n),a={};if(o.forEach((t=>{if(t)if("font"===t.type)a.font=t.content;else if("image"===t.type){const e=t.name.split("/"),i=e.pop(),n=Number(i.split(".")[0]),r=e.pop();a[r]=a[r]||[],a[r][n]=t.content}})),!this.isRegisterFontFamily&&a.font)try{new window.FontFace("sandFont",a.font,{display:"swap"}).load().then((t=>{window.document.fonts.add(t)})),this.isRegisterFontFamily=!0}catch(e){this.logParseError("流沙",`字体注册失败: ${e.message}`,t)}return i.resUrl=n,i.resource=a,i.modeInfo=_a({},e),this.setModeStack(i),i}catch(e){this.logParseError("流沙",e,t)}}))}parsePK(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.rawMode=e.mode=r.ZP.Mode.PK;const i=JSON.parse(t.animation)||{},n=i.resource,o=yield r.ZP.Utils.unzip(n),a={};return o.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if("impact"===n){if(!isNaN(Number(r))){const e=Number(r);a.list=a.list||[],a.list[e]=t.content}}else["body","head","tail"].includes(r)&&(a[r]=t.content)})),e.resUrl=n,e.resource=a,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("PK",e,t)}}))}parseBlackHole(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.mode=e.rawMode=r.ZP.Mode.BlackHole;const i=JSON.parse(t.animation)||{};i.resource&&!this.blackHoleUrl&&(this.blackHoleUrl=i.resource);const n=i.resource||this.blackHoleUrl,o={};return(yield r.ZP.Utils.unzip(n)).forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=(e.pop(),i.split(".")[0]);if(!isNaN(Number(n))){const e=Number(n);o.list=o.list||[],o.list[e]=t.content}})),e.resUrl=n,e.resource=o,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("黑洞",e,t)}}))}parseYanwen(t){return Ma(this,null,(function*(){try{const e=JSON.parse(t.animation)||{},i=_a({},t);i.rawMode=t.mode||1,i.mode=r.ZP.Mode.Yanwen;const n=e.resource,o=yield r.ZP.Utils.unzip(n),a={};o.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=Number(i.split(".")[0]),r=e.pop();a[r]||(a[r]={imgs:[]}),a[r].imgs[n]=t.content}));const s=Object.keys(a).sort(),l=[],A=[];s.forEach((t=>{t.endsWith("-1")?l.push(a[t].imgs):t.endsWith("-2")&&A.push(a[t].imgs)}));const c=[],h=[],d=[],u=[];for(const t of l)if(t&&t[0]){const e=yield this.getPicSize(t[0]);c.push(e.width),h.push(e.height)}for(const t of A)if(t&&t[0]){const e=yield this.getPicSize(t[0]);d.push(e.width),u.push(e.height)}return i.resource={frontData:{lists:l,width:c,height:h},backData:{lists:A,width:c,height:h}},i.resUrl=n,i.modeInfo=_a({},e),this.setModeStack(i),i}catch(e){this.logParseError("颜文字",e,t)}}))}parseFirework2023(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.rawMode=e.mode=r.ZP.Mode.Firework2023;const i=JSON.parse(t.animation)||{},n=i.resource,o=yield r.ZP.Utils.unzip(n),a={adResources:[],userResources:[]};return o.forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if(/^ad_(\d+)$/.test(n)){const e=Number(/^ad_(\d+)$/.exec(n)[1]);a.adResources[e]=a.adResources[e]||{},isNaN(Number(r))&&"body"===r?a.adResources[e][r]=t.content:(a.adResources[e].shot=a.adResources[e].shot||[],a.adResources[e].shot[Number(r)]=t.content)}else if(/^ad_fire_(\d+)$/.test(n)){const e=Number(/^ad_fire_(\d+)$/.exec(n)[1]);a.adResources[e]=a.adResources[e]||{},isNaN(Number(r))||(a.adResources[e].fire=a.adResources[e].fire||[],a.adResources[e].fire[Number(r)]=t.content)}else if(/^body$/.test(n))if(isNaN(Number(r))){if(/^body_(\d+)$/.test(r)){const e=Number(/^body_(\d+)$/.exec(r)[1]);a.userResources[e]=a.userResources[e]||{},a.userResources[e].body=t.content}else if(/^head_(\d+)$/.test(r)){const e=Number(/^head_(\d+)$/.exec(r)[1]);a.userResources[e]=a.userResources[e]||{},a.userResources[e].head=t.content}else if(/^tail_(\d)+$/.test(r)){const e=Number(/^tail_(\d+)$/.exec(r)[1]);a.userResources[e]=a.userResources[e]||{},a.userResources[e].tail=t.content}}else{const e=Math.floor(Number(r)/2);a.userResources[e]=a.userResources[e]||{},a.userResources[e].shot=a.userResources[e].shot||[],a.userResources[e].shot[Number(r)%2]=t.content}else if(/^fire_(\d+)$/.test(n)){const e=Number(/^fire_(\d+)$/.exec(n)[1]);a.userResources[e]=a.userResources[e]||{},a.userResources[e].fire=a.userResources[e].fire||[],isNaN(Number(r))||(a.userResources[e].fire[Number(r)]=t.content)}})),e.resUrl=n,e.resource=a,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("2023跨晚烟花",e,t)}}))}parseHarryPotter(t){return Ma(this,null,(function*(){try{const e=_a({},t);e.rawMode=t.mode,e.mode=r.ZP.Mode.HarryPotter;const i=JSON.parse(t.animation)||{},n=i.resource,o=i.index||1,a={};if((yield r.ZP.Utils.unzip(n)).forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=e.pop(),o=i.split(".")[0];isNaN(Number(n))||(a[r]||(a[r]=[]),a[r][Number(n)]||(a[r][Number(n)]=[]),a[r][Number(n)][Number(o)]=t.content)})),e.resource={},t.border&&a.main&&Array.isArray(a.main[o])?e.resource.list=a.main[o]:a.objective&&Array.isArray(a.objective[o])&&(e.resource.list=a.objective[o]),e.resource.list&&e.resource.list[1]){const t=yield this.getPicSize(e.resource.list[1]);e.resource.width=t.width,e.resource.height=t.height}return e.resUrl=n,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("哈利波特序列帧",e,t)}}))}parseLiveToVod(t){try{const e=_a({},t);JSON.parse(t.animation);return e.rawMode=t.mode||1,e.mode=r.ZP.Mode.LiveToVod,this.setModeStack(e),e}catch(e){this.logParseError("直播转点播",e,t)}}parseMars(t){try{const e=_a({},t),i=JSON.parse(t.animation)||{};return e.rawMode=t.mode||1,e.mode=r.ZP.Mode.Mars,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("火星文",e,t)}}parseShooter(t){try{const e=_a({},t),i=JSON.parse(t.animation)||{};return e.rawMode=e.mode=r.ZP.Mode.Shooter,e.modeInfo=_a({},i),this.setModeStack(e),e}catch(e){this.logParseError("打僵尸",e,t)}}parseCommon(t){
const e=_a({},t);return e.rawMode=e.mode=t.mode||1,this.setModeStack(e),e}parseBidirection(t){const e=_a({},t);return e.rawMode=t.mode||1,e.rawMode!==r.ZP.Mode.Top&&e.rawMode!==r.ZP.Mode.Bottom&&(e.mode=r.ZP.Mode.Bidirection),this.setModeStack(e),e}parseDmList(t){return Ma(this,null,(function*(){var e,i;const n=[];for(let r of t){r.stime&&!isNaN(r.stime)||(r.stime=0);let t=this.parseCommon(r);if(r.animation){const e=JSON.parse(r.animation);switch(e.id){case 20004:t=yield this.parsePicture(r);break;case 20005:t=yield this.parsePrefixImage(r);break;case 20006:t=yield this.parseSuffixImage(r);break;case 20008:t=yield this.parseFirework2022(r);break;case 20009:t=yield this.parsePK(r);break;case 20010:t=yield this.parseFireworkBoom(r);break;case 20011:t=yield this.parseSand(r);break;case 20014:t=yield this.parseSpring(r);break;case 20017:t=this.parseColorful(r);break;case 20022:t=yield this.parseFirework2023(r);break;case 20025:t=yield this.parseBlackHole(r);break;case 20028:t=yield this.parseYanwen(r);break;case 20029:t=yield this.parseHarryPotter(r);break;case 20032:t=this.parseShooter(r);break;case 20033:t=this.parseMars(r);break;case 50001:t=this.parseUpProfile(r);break;case 100001:t=this.parseLiveToVod(r);break;default:this.dmIndex.getLogs().i(`[DmParser] 未知的弹幕动画类型: ${e.id}`,{animationId:e.id,dmid:r.dmid,animation:r.animation})}}else if(r.action){const e=this.parseAction(r.action);if(1===Number(e.animation))t=yield this.parseFireworkBillion(r);else this.dmIndex.getLogs().i(`[DmParser] 未知的弹幕动作类型: ${e.animation}`,{actionAnimation:e.animation,dmid:r.dmid,action:r.action}),t=this.parseCommon(r)}t||(t=this.parseCommon(r)),t.modeInfo||(t.modeInfo={}),t.modeInfo.cid=r.oid;const o=this.dmIndex.dmListStore.state.bidirectionSrc,a=r.stime/1e3;o[0]&&a>=(null==(e=o[0])?void 0:e.start)&&a<=(null==(i=o[0])?void 0:i.end)&&(t=this.parseBidirection(r)),n.push(t)}return n}))}parseCmdList(t){return Ma(this,null,(function*(){const e=[];for(let i of t){let t;const n=JSON.parse(i.extra)||{},r=Ra(_a({},i),{stime:i.stime/1e3||0,duration:n.duration/1e3||5});switch(r.command){case"#LINK#":t=this.cmdParser.parseLink(r);break;case"#ATTENTION#":const i=this.dmIndex.dmCmdStore.upMid||void 0;i&&(r.extra=JSON.stringify(Ra(_a({},JSON.parse(r.extra)),{mid:i})),t=this.cmdParser.parseFollow(r));break;case"#ACTORFOLLOW#":case"#MANAGERFOLLOW#":r.extra=JSON.stringify(Ra(_a({},JSON.parse(r.extra)),{type:"#ACTORFOLLOW#"===r.command?6:7})),t=this.cmdParser.parseFollow(r);break;case"#VOTE#":t=this.cmdParser.parseVote(r);break;case"#RESERVE#":t=this.cmdParser.parseReserve(r);break;case"#GRADE#":t=this.cmdParser.parseScore(r);break;case"#GRADESUMMARY#":t=this.cmdParser.parseScoreSum(r);break;case"#CHECKIN#":t=this.cmdParser.parseClockIn(r),t&&e.push(Ra(_a({},t),{stime:n.end_progress/1e3||0,modeInfo:Ra(_a({},t.modeInfo),{posX:n.end_posX_2||Math.round(n.end_posX/667*100),posY:n.end_posY_2||Math.round(n.end_posY/375*100),endClock:!0})}));break;case"#REWARDFANS#":t=this.cmdParser.parseRewardfans(r);break;case"#GOODSLIKE#":t=this.cmdParser.parseGoodsLike(r);break;case"#CMTIME#":t=this.cmdParser.parseCmtime(r);break;case"#S13GRADE#":t=this.cmdParser.parseSuperRating(r);break;case"#ACTIVITYCOMBO#":t=yield this.cmdParser.parseCombo(r)}t&&e.push(t)}return e}))}}let Fa=null;function La(t,e){return i=this,n=null,o=function*(){var i;let{params:n,cb:o}=t;const a=parseInt(1e3*e.portStore.getCurrentTime()+"",10),s=(t,i)=>{e.tooltipStore.create({name:"cmtime",title:i||"网络错误",position:Ze.DU.CenterCenter,target:e.nodes.container,duration:1e3}),t&&e.track.e(t.key,t.val)};if(!e.userStore.isLogin)return e.portStore.pause(),e.userStore.requestQuickLogin();Fa=e.dmCmdStore.cmtime({aid:e.rootStore.configStore.aid,cid:e.rootStore.configStore.cid,mid:e.rootStore.userStore.info.mid,progress:a,cmd_id_str:n.dmid,msg:n.msg});try{const t=yield Fa;Fa=null;const a=t.body;if(0===(null==a?void 0:a.code)){const t=1e3*e.portStore.getCurrentTime(),{dm:s}=a.data,l={dmid:String(s.dmid),mode:r.ZP.Mode.Roll,size:25,color:16777215,pool:0,border:!0,weight:10,date:Date.parse(String(new Date))/1e3,stime:t+100,text:n.msg||"",uhash:null==(i=e.userStore.info)?void 0:i.hashId};return n.dmid&&e.dmListStore.addDm(l),void(o&&o(!0))}s(null,(null==a?void 0:a.message)||"请求失败")}catch(t){Fa=null,s(null,(null==t?void 0:t.message)||"请求失败")}},new Promise(((t,e)=>{var r=t=>{try{s(o.next(t))}catch(t){e(t)}},a=t=>{try{s(o.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,a);s((o=o.apply(i,n)).next())}));var i,n,o}var Na=i(80457),Pa=i(89715);function Ua(t,e){return i=this,n=null,r=function*(){var i,n,r,o,a,s,l,A;const{params:c,cb:h}=t,{aid:d,bvid:u,text:p,isAddWatchLater:g}=c;if(null===g)return e.track.e("dm_link",{target_avid:d,dm_title:p,avid:e.configStore.aid,type:0}),e.portStore.pause(),void(h&&h(!1));if(!e.userStore.isLogin)return e.userStore.requestQuickLogin(),void(h&&h(!1));let f=1;if(g){const t=yield new Pa.G(e.rootPlayer).r({jsonp:"jsonp",aid:d,bvids:u||""});let i=(null==(a=t.body)?void 0:a.message)||"移除失败，请重试";return 0===(null==(s=null==t?void 0:t.body)?void 0:s.code)&&(i="已从稍后再看列表中移除"),e.toastStore.create({text:i,fixed:!0,duration:3e3}),f=(null==(l=t.body)?void 0:l.message)&&0===(null==(A=null==t?void 0:t.body)?void 0:A.code)?3:4,e.track.e("dm_link",{target_avid:d,dm_title:p,avid:e.configStore.aid,type:f}),3===f?void(h&&h(!0)):void(h&&h(!1))}{if(e.configStore.isChannel(Ze.u5.Manager))return void(h&&h(!1));const t=yield new Na.c(e.rootPlayer).r({jsonp:"jsonp",aid:d,bvid:u||""});let a=(null==(i=t.body)?void 0:i.message)||"添加失败，请重试";return 0===(null==(n=null==t?void 0:t.body)?void 0:n.code)&&(a="已加入稍后再看"),e.toastStore.create({text:a,fixed:!0,duration:3e3}),f=(null==(r=t.body)?void 0:r.message)&&0===(null==(o=null==t?void 0:t.body)?void 0:o.code)?1:2,e.track.e("dm_link",{target_avid:d,dm_title:p,avid:e.configStore.aid,type:f}),1===f?void(h&&h(!0)):void(h&&h(!1))}},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}let Oa=null;function Ga(t,e){return i=this,n=null,o=function*(){var i;const{params:n,action:o,cb:a}=t,{gradeId:s,score:l,duration:A,stime:c}=n||{};if("getState"===o)return void a({score:e.dmCmdStore.state.scoreGrade});const h=(t,i)=>{e.tooltipStore.create({name:"checkin",title:i||"网络错误",position:Ze.DU.CenterCenter,target:e.nodes.container,duration:1e3}),t&&e.track.e(t.key,t.val)};switch(o){case"click":if(!e.userStore.isLogin)return e.portStore.pause(),e.userStore.requestQuickLogin();let t=1e3*Math.max(Math.round(e.portStore.getCurrentTime()),1);const n=c+A;t=Math.floor(Math.min(t,1e3*n-100)),Oa=e.dmCmdStore.score({aid:e.configStore.aid,cid:e.configStore.cid,progress:t,grade_id:s,grade_score:2*l,polaris_app_id:100,polaris_platform:5,spmid:e.configStore.spmId,from_spmid:e.configStore.spmIdFrom,statistics:e.configStore.statisticsReport});try{const t=yield Oa;Oa=null;const n=t.body;if(0===(null==n?void 0:n.code)){e.portStore.getCurrentTime();const{dmidStr:t}=n.data||{},o={dmid:t,text:String(l),mode:r.ZP.Mode.Roll,size:25,color:16777215,pool:0,border:!0,uhash:null==(i=e.userStore.info)?void 0:i.hashId,date:Date.parse(String(new Date))/1e3};return t&&e.danmaku.add(o),void a(!0)}h(null,(null==n?void 0:n.message)||"请求失败")}catch(t){Oa=null,h(null,(null==t?void 0:t.message)||"请求失败")}break;case"isPaused":return e.portStore.isPaused()}},new Promise(((t,e)=>{var r=t=>{try{s(o.next(t))}catch(t){e(t)}},a=t=>{try{s(o.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,a);s((o=o.apply(i,n)).next())}));var i,n,o}var Ha=i(60802),Va=i(13874),Ya=Object.defineProperty,za=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,Za=Object.prototype.propertyIsEnumerable,ja=(t,e,i)=>e in t?Ya(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;const qa={1:20007,2:20008,3:20009,4:200010,5:200011};function Ja(t,e){let{dmidStr:i,animation:n,action:r}=t||{};if(!n){const t=(0,Ha.$)(r),e=(0,Va.g)(t.animation),i=qa[e.url];i&&(n=JSON.stringify({id:i,mime:"zip",resource:e.zip0}))}const o=((t,e)=>{
for(var i in e||(e={}))Wa.call(e,i)&&ja(t,i,e[i]);if(za)for(var i of za(e))Za.call(e,i)&&ja(t,i,e[i]);return t})({dmid:i,mode:1,size:25,color:16777215,pool:0,border:!0,weight:-10,date:Date.parse(String(new Date))/1e3,animation:n},e);return o}function Ka(t,e){return i=this,n=null,r=function*(){var i,n,r,o;const{params:a,action:s,cb:l}=t;if("getVoteId"===s)return void(l&&l({voteId:e.dmCmdStore.state.voteId}));if(!e.userStore.isLogin)return e.portStore.pause(),void e.userStore.requestQuickLogin();const{voteId:A,dmid:c,selfDef:h,idx:d,ctime:u,text:p,voteType:g}=a||{},f=e.dmCmdStore.vote(A,g,d,u,h,c);try{const{body:t}=yield f;if(0!==t.code)return e.danmakuStore.tooltipCenter("vote","投票失败，请重新选择"),void(l&&l(!1));if(1==+h){const t=e.nodes.container.querySelector(".bpx-player-dm-input"),i=t.getAttribute("placeholder");return e.uiStore.isFullView&&e.ctrlStore.isCtrlHidden()&&e.ctrlStore.focus(3e3),t.focus(),e.ctrlStore.blur(),t.setAttribute("placeholder","其他，请补充"),setTimeout((()=>{t.setAttribute("placeholder",i)}),1e4),void(l&&l(!0))}const a=1e3*e.portStore.getCurrentTime(),s=Ja(null==(i=t.data)?void 0:i.dm,{text:p,stime:a+100,uhash:null==(n=e.userStore.info)?void 0:n.hashId});c&&e.danmaku.add(s);const A=null==(o=null==(r=t.data)?void 0:r.dm)?void 0:o.animation;if(A){const t=(0,Ha.j)(A);20019===t.id&&e.dmCmdStore.setState({businessConfig:{jumpUrl:t.jump_url,animationAttr:t.animation_attr,resource:t.resource,loopNum:t.loop_num,advancedBlocked:t.advanced_block}})}}catch(t){e.danmakuStore.tooltipCenter("vote","投票失败，请重新选择")}e.track.e("web_vote",{dmid:c,vote:d}),l&&l(!0)},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}let Xa=null;function $a(t,e){return i=this,n=null,r=function*(){const{params:i,cb:n}=t,{dmid:r,reserveId:o,reserveType:a,liveState:s,jump:l,mid:A,state:c,userState:h,liveLottery:d}=i,u=t=>{e.track.e("reserve_click",{dmid:r,biz_type:a,reserve_id:o,state:c,liveState:s,click_result:t})},p=(t,i)=>{e.tooltipStore.create({name:"reserve",title:i||"网络错误",position:Ze.DU.CenterCenter,target:e.nodes.container,duration:1e3}),t&&e.track.e(t.key,t.val)};if((2===a||3===a)&&s||c)return l&&(e.portStore.pause(),window.open(l)),u(2===a||3===a?1===s?5:6:4),void(n&&n(!0));const g=e.userStore.info;if(e.userStore.isLogin)if(+A!==(null==g?void 0:g.mid)){Xa=e.dmCmdStore.reserve({sid:o,mid:g.mid,from:"player"},h);try{const t=yield Xa;Xa=null;const e=t.body;0===(null==e?void 0:e.code)?(h?(u(2),p(null,"已取消预约")):(u(1),p(null,d?"已预约，抽奖信息见私信":"预约成功，"+(2===a||3===a?"会在开始时提醒您":"UP主更新会通知您"))),n&&n(!0)):(u(3),p(null,(null==e?void 0:e.message)||"请求失败"))}catch(t){Xa=null,u(3),p(null,(null==t?void 0:t.message)||"请求失败")}}else p(null,"不能对自己进行此操作");else e.userStore.requestQuickLogin()},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}var ts=i(68918);let es=null;function is(t,e){return i=this,n=null,o=function*(){var i;const{params:n,cb:o}=t,{dmid:a,userCompleted:s,total:l,checkInId:A,seriesId:c,endClock:h,jumpUrl:d,type:u}=n,p=(t,i)=>{e.tooltipStore.create({name:"checkin",title:i||"网络错误",position:Ze.DU.CenterCenter,target:e.nodes.container,duration:1e3}),t&&e.track.e(t.key,t.val)};if(!e.userStore.isLogin)return e.portStore.pause(),void e.userStore.requestQuickLogin();if(h&&d)return e.portStore.pause(),(0,ts.x)(d,e.rootPlayer),void e.track.e("dm_clock_in_click",{dmid:a});const g=parseInt(1e3*e.portStore.getCurrentTime()+"",10);es=e.dmCmdStore.checkin({aid:e.configStore.aid,cid:e.configStore.cid,progress:g,reset:s===l?1:0,checkin_id:A,checkin_series_id:c||0,polaris_app_id:100,polaris_platform:5,spmid:e.configStore.spmId,from_spmid:e.configStore.spmIdFrom,statistics:e.configStore.statisticsReport});try{const t=yield es;es=null;const{code:n,data:a,message:s}=t.body||{};if(0===n){const n=1e3*e.portStore.getCurrentTime(),{dmid_str:s,user_completed:l}=a||{},A={dmid:s,text:`第${l}天`,stime:n+100,mode:r.ZP.Mode.Roll,size:25,color:16777215,pool:0,border:!0,uhash:null==(i=e.userStore.info)?void 0:i.hashId,date:Date.parse(String(new Date))/1e3};return s&&e.danmaku.add(A),p(null,u?"已完成本期打卡":`已完成${l}次打卡`),setTimeout((()=>{e.danmakuStore.setState({updateDm:e.danmakuStore.state.updateDm+1})}),1),void(o&&o(t.body))}p(null,s||"请求失败")}catch(t){es=null,p(null,(null==t?void 0:t.message)||"请求失败")}},new Promise(((t,e)=>{var r=t=>{try{s(o.next(t))}catch(t){e(t)}},a=t=>{try{s(o.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,a);s((o=o.apply(i,n)).next())}));var i,n,o}let ns=null;function rs(t,e){return i=this,n=null,o=function*(){var i;const{params:n,cb:o}=t,{dmid:a,action:s,itemIdStr:l,keyword:A}=n,c=(t,i)=>{e.track.e("dm_goods_like_click",{dmid:a,result:t,action:i})},h=(t,i)=>{e.tooltipStore.create({name:"goodslike",title:i||"网络错误",position:Ze.DU.CenterCenter,target:e.nodes.container,duration:1e3}),t&&e.track.e(t.key,t.val)};if(!e.userStore.isLogin)return e.portStore.pause(),e.userStore.requestQuickLogin();const d=e.userStore.info,u=parseInt(1e3*e.portStore.getCurrentTime()+"",10);ns=e.dmCmdStore.goodsLike({aid:d.aid,cid:d.cid,mid:d.mid,cmd_id_str:a,item_id_str:l,msg:A,action:s,progress:u});try{const t=yield ns;ns=null;const n=t.body;let l=null==n?void 0:n.msg;if(0===(null==n?void 0:n.code)){if(c(l,s),1===s){const t=1e3*e.portStore.getCurrentTime(),o={mode:r.H1.Roll,dmid:n.data.dmidStr,text:A||"",size:25,color:16777215,pool:0,border:!0,weight:10,date:Date.parse(String(new Date))/1e3,stime:t+100,uhash:null==(i=e.userStore.info)?void 0:i.hashId};a&&e.dmListStore.addDm(o)}return void(o&&o(!0))}return c(l,s),void h(null,(null==n?void 0:n.message)||"请求失败")}catch(t){return ns=null,c((null==t?void 0:t.message)||"",s),void h(null,(null==t?void 0:t.message)||"请求失败")}},new Promise(((t,e)=>{var r=t=>{try{s(o.next(t))}catch(t){e(t)}},a=t=>{try{s(o.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,a);s((o=o.apply(i,n)).next())}));var i,n,o}function os(t,e){return i=this,n=null,r=function*(){const{params:i,action:n,cb:r}=t,{followMid:o,jumpUrl:a,userState:s,dmKeyWord:l,dmid:A,activityId:c}=i;if("showBtn"===n)return e.track.o("rewardfans_show",{dmid:A,activityId:c,userState:s});e.track.e("rewardfans_click",{dmid:A,activityId:c,userState:s});const h=e.userStore.info;if(!e.userStore.isLogin)return e.userStore.requestQuickLogin();if(a&&window.open(a),s)r&&r(!0);else if(l&&e.sendStore.setState({outSendMsg:{msg:l,force:!0}}),(null==h?void 0:h.mid)!==o&&o){try{yield e.upStore.upFollow(o,!1)}catch(t){}r&&r(!0)}else r&&r(!0)},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}var as=i(55537),ss=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));function ls(t,e){return ss(this,null,(function*(){var i;const{params:n,action:r,cb:o}=t,{type:a,mid:s,dmid:l}=n||{},{cid:A}=e.configStore;if("showBtn"===r)return hs(e,"show",Ze.p0.Appear,{cid:A,dmid:l,upmid:s,is_group:2===a||4===a?1:0});if("getTriple"!==r)if("getMidFollowed"!==r)if("getBtnState"!==r){if(!e.userStore.isLogin)return e.portStore.pause(),void e.userStore.requestQuickLogin();switch(null==(i=e.track)||i.e(`web_${r}`),r){case"follow":const t=yield function(t,e){return ss(this,null,(function*(){var i,n,r;let{mid:o,isFollow:a}=t;if((null==(i=e.userStore.info)?void 0:i.mid)===o)return e.danmakuStore.tooltipCenter("follow","不能关注自己"),!1;if(e.configStore.isChannel(Ze.u5.Embedded)||o!==e.dmCmdStore.upMid){const t=yield e.upStore.upFollow(o,a);return 0===(null==(n=null==t?void 0:t.body)?void 0:n.code)||(e.danmakuStore.tooltipCenter("follow",(null==(r=null==t?void 0:t.body)?void 0:r.message)||"关注失败"),!1)}return e.track.e("player.follow.click",{mid:o,follow:a?1:0,cid:e.configStore.cid}),
e.rootPlayer.emit(Ze.tw.Player_Virtual_Action,new CustomEvent(Ze.tw.Player_Virtual_Action,{detail:{kind:Ze.s.Follow,data:{fid:o,act:a?as.dd.Cancel_Attention:as.dd.Add_Attention,re_src:as.gC.Player_Popup_Follow,fail:t=>{e.danmakuStore.tooltipCenter("follow",(null==t?void 0:t.message)||"关注失败")}}}})),!0}))}(n,e);return void(o&&o(t));case"three_hit":const i=cs(e,Ze.s.Triple);return void(o&&o(i));case"like":const r=cs(e,Ze.s.Like);return void(o&&o(r));case"coin":const c=As(Ze.s.Coin,e);return void(o&&o(c));case"collect":const h=As(Ze.s.Collect,e);return void(o&&o(h));case"electric":hs(e,"click",Ze.p0.Click,{cid:A,dmid:l,upmid:s,is_group:2===a||4===a?1:0});const d=As(Ze.s.Electric,e);return void(o&&o(d))}}else o&&o(function(t,e){let{mid:i,isFollow:n}=t;const{follow:r,staffs:o}=e.upStore.state,{collectStatus:a,coinStatus:s,likeStatus:l,electricBtnIcon:A,electricBtnText:c}=e.storyStore.state;(null==o?void 0:o.length)?o.some((t=>{if(t.mid===i)return n=t.follow,!0})):e.dmCmdStore.upMid===i&&(n=r);return{isCollect:a,isCoin:s,isLike:l,isFollow:n,electricBtnIcon:A,electricBtnText:c}}(n,e));else{const t=yield function(t,e,i){return ss(this,null,(function*(){const{body:t}=yield i.upStore.getRelation(e);return Boolean(t.mid)}))}(0,s,e);o&&o(t)}else o&&o({hasTriple:e.storyStore.hasTriple})}))}function As(t,e){return e.uiStore.isFullView&&e.statueStore.requestStatue(null),cs(e,t)}function cs(t,e,i){return t.rootPlayer.emit(Ze.tw.Player_Virtual_Action,new CustomEvent(Ze.tw.Player_Virtual_Action,{detail:{kind:e,data:i}})),!0}function hs(t,e,i,n){t.rootPlayer.emit(Ze.tw.Player_Virtual_Action,new CustomEvent(Ze.tw.Player_Virtual_Action,{detail:{kind:Ze.s.Report_Observer,data:{type:i,options:{spm_id:"player.player.charge-customize-up.0."+e,msg:n?JSON.stringify(n):null}}}}))}const ds={[r.VP.Link]:2,[r.VP.Follow]:5,[r.VP.Vote]:9,[r.VP.Reserve]:10,[r.VP.Score]:11,[r.VP.ScoreSum]:12,[r.VP.ClockIn]:14,[r.VP.Rewardfans]:17,[r.VP.GoodsLike]:18,[r.VP.Cmtime]:20,[r.VP.SuperRating]:21};function us(t,e){const{params:i,action:n}=t||{},{state:r,mode:o,dmid:a,data:s}=i||{};if("update"!==n){if("shrink"===n){const{aid:t,cid:i}=e.configStore;e.dmCmdStore.shrink({pid:t,oid:i,type:1,show_status:+Boolean(r),dmid_str:a,cmd_dm_type:ds[o]})}}else!function(t,e){const{modeInfo:i,dmid:n,duration:r,stime:o}=e,{key:a,posX:s,posY:l,realTo:A}=i,c={manual:!0,key:a,pos_y:l,pos_x:s,idStr:n,from:o,to:A||o+r};t.rootPlayer.emit(Ze.tw.Player_Virtual_Action,new CustomEvent(Ze.tw.Player_Virtual_Action,{detail:{kind:Ze.s.Creator_Attention_Pos_Update,data:c}}))}(e,s)}var ps=i(35668);const gs={};function fs(t){return gs[t]||(gs[t]=new Promise(((e,i)=>{const n=new Image;n.src=t,n.onload=()=>{e({width:n.width,height:n.height})}}))),gs[t]}var ms=Object.defineProperty,ys=Object.defineProperties,bs=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Is=Object.prototype.propertyIsEnumerable,Cs=(t,e,i)=>e in t?ms(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Bs=(t,e)=>{for(var i in e||(e={}))Es.call(e,i)&&Cs(t,i,e[i]);if(vs)for(var i of vs(e))Is.call(e,i)&&Cs(t,i,e[i]);return t},ws=(t,e)=>ys(t,bs(e)),xs=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class Qs extends Ze.vq{constructor(t){super(t),this.noSEsDanmaku=!1,this.isGoToMars=!1,this.marsNodeTimer=-1,this.setting2Dm={fontfamily:"fontFamily",bold:"bold",preventshade:"preventShade",speedplus:"speedPlus",fontsize:"fontSize",fullscreensync:"fullScreenSync",dmarea:"area",fontborder:"fontBorder",speedsync:"speedSync",opacity:"opacity"},this.debounceTimer=null,this.timeoutTimer=null,this.isWebGL2Compatible=ca.X.isWebGL2Compatible(),this.uiStore.kind===Ze.HR.Pgc&&this.isWebGL2Compatible&&(this.sand=new Aa(t,this))}install(){super.install(),this.uiStore.kind===Ze.HR.Pgc&&this.isWebGL2Compatible&&(this.sand.install(),this.sand.attachEvents()),this.rootPlayer.hasFeature("noSEsDanmaku")&&(this.noSEsDanmaku=!0);const t=this.configStore.fromDid,e=this.configStore.replyDid;this.initDanmaku(),this.configStore.cid&&t&&this.hasDmid(t,e),this.dc.liveToVod=(0,Ve.U5)((()=>this.danmakuStore.state.liveToVod),(t=>{t&&(t.stime=1e3*this.portStore.getCurrentTime()+2e3,this.dmListStore.appendDm([t]))}),{fireImmediately:!0}),this.dc.dmInit=(0,Ve.U5)((()=>this.rootStore.isCommitted),(t=>{t&&this.initDanmaku()})),this.dc.timeUpdate=(0,Ve.U5)((()=>this.mediaStore.state.currentTime),(t=>{this.danmakuStore.state.isViewLoaded&&!this.danmakuStore.state.state&&(this.patchAdvStore.hasValidAdv?this.getDmFromTime(this.portStore.getCurrentTime()):this.getDmFromTime(t))})),this.dc.videDuration=(0,Ve.EH)((()=>{this.patchAdvStore.hasValidAdv?this.duration=this.patchAdvStore.getTotalDuration():this.duration=this.mediaStore.state.duration})),this.dc.ashAnimation=(0,Ve.U5)((()=>this.danmakuStore.state.ashAnimation),(t=>{if(t)switch(this.danmaku.pause(),t){case 1:this.nodes.rowDanmaku.classList.add("ash-animation");break;case 2:this.nodes.rowDanmaku.classList.add("ash-hide")}else this.nodes.rowDanmaku.classList.contains("ash-animation")&&(this.danmaku.clear(),this.nodes.rowDanmaku.classList.remove("ash-animation")),this.nodes.rowDanmaku.classList.contains("ash-hide")&&(this.danmaku.clear(),this.nodes.rowDanmaku.classList.remove("ash-hide")),!this.danmakuStore.isPaused&&this.danmaku.play()})),this.dc.addDmList=(0,Ve.U5)((()=>this.dmListStore.state.addDmList),(t=>{(null==t?void 0:t.length)&&this.danmakuParser.parseDmList([...t]).then((t=>{this.danmaku.addList(t),this.dmListStore.state.addDmList.length=0}))}),{fireImmediately:!0}),this.dc.addDm=(0,Ve.U5)((()=>this.dmListStore.state.addDm),(t=>{t&&this.danmakuParser.parseDmList([t]).then((t=>{this.danmaku.add(ws(Bs({},t[0]),{isRealTime:!1}))}))}),{fireImmediately:!0}),this.dc.fireworkSrc=(0,Ve.U5)((()=>this.dmListStore.state.fireworkSrc),(t=>{t.length>0&&this.danmaku.addList(t)}),{fireImmediately:!0}),this.dc.updateCmdList=(0,Ve.U5)((()=>this.dmCmdStore.state.updateCmdList),(t=>{t&&(this.danmaku.updateCmd(JSON.stringify(t)),this.dmCmdStore.state.updateCmdList.length=0)}),{fireImmediately:!0}),this.dc.addCmd=(0,Ve.U5)((()=>this.danmakuStore.state.addCmd),(t=>{t&&(this.danmaku.add(t,!0),this.danmakuStore.setState({addCmd:null}))}),{fireImmediately:!0}),this.dc.cmdDm=(0,Ve.U5)((()=>({list:this.danmakuStore.state.cmdDm,isMetadataLoaded:this.mediaStore.state.isMetadataLoaded})),(({list:t,isMetadataLoaded:e})=>{if(!(null==t?void 0:t.length)||!e)return;let i=!1;t=t.filter((t=>("#ATTENTION#"===t.command&&(i=!0),"#ENCOURAGE#"!==t.command))),i&&!this.dmCmdStore.upMid?this.httpStore.fetchViewInfo(!0).then((({body:e})=>{var i;this.dmCmdStore.upMid=null==(i=e.owner)?void 0:i.mid,this.danmakuParser.parseCmdList(t).then((t=>{this.danmaku.addCmdList(t,!0)}))})):this.danmakuParser.parseCmdList(t).then((t=>{this.danmaku.addCmdList(t,!0)}))}),{fireImmediately:!0}),this.dc.follow=(0,Ve.U5)((()=>{const{collectStatus:t,coinStatus:e,likeStatus:i,electricBtnIcon:n,electricBtnText:r}=this.storyStore.state,{follow:o,staffs:a}=this.upStore.state,{voteId:s,scoreGrade:l}=this.dmCmdStore.state,{updateDm:A}=this.danmakuStore.state;return{voteId:s,staffs:a,follow:o,updateDm:A,scoreGrade:l,likeStatus:i,coinStatus:e,collectStatus:t,electricBtnIcon:n,electricBtnText:r}}),(()=>{this.danmaku.updateState()}),{fireImmediately:!0}),this.dc.delDm=(0,Ve.EH)((()=>{const t=this.dmListStore.state.delDmid;(null==t?void 0:t.length)&&t.forEach((t=>{this.danmaku.remove(t)}))})),this.dc.dmVisible=(0,Ve.U5)((()=>this.sendStore.dmVisible||this.dmCmdStore.creator),(t=>{this.danmaku.setSetting("visible",t)}),{fireImmediately:!0}),this.dc.dmFresh=(0,Ve.U5)((()=>this.dmSettingStore.state.dmFresh),(t=>{this.danmaku.fresh()})),this.dc.dmClear=(0,Ve.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{this.danmaku.clear()})),this.dc.dmCurrentSet=(0,Ve.U5)((()=>this.dmSettingStore.state.currentSet),(t=>{t&&Object.keys(t).forEach((e=>{if("dmdensity"===e){const i=t[e];if(this.dmSettingStore.state.dmarea>0&&this.dmSettingStore.state.dmarea<100)return
;i===ps.d.most?this.danmaku.setSetting("area",0):i!==ps.d.normal&&i!==ps.d.more||this.danmaku.setSetting("area",100)}else if("dmarea"===e){const i=t[e];100===i&&this.dmSettingStore.state.dmdensity===ps.d.most?this.danmaku.setSetting("area",0):this.danmaku.setSetting("area",i)}else{const i=this.setting2Dm[e],n="opacity"===e;if(i)if("fontSize"===i){const r=this.calculateFontSize(t[e]);this.danmaku.setSetting(i,r,n)}else this.danmaku.setSetting(i,t[e],n)}}))}),{fireImmediately:!0}),this.dc.danmakuSeek=(0,Ve.U5)((()=>this.danmakuStore.state.isFirstLoadSegment),(t=>{var e,i;if(t){if(null==(i=null==(e=this.danmakuStore)?void 0:e.state)?void 0:i.fragClose)return void this.danmaku.clear();this.danmaku.seek(this.portStore.getCurrentTime(),!0)}}),{fireImmediately:!0});const i=(0,Ye.Z)((()=>{const{videoAreaWidth:t,videoAreaHeight:e}=this.uiStore.state,{insideW:i,insideH:n}=this.dmCmdStore.state;this.danmaku.resize({width:t,vWidth:i,height:e,vHeight:n},this.cKind,this.danmakuStore.isPaused),this.cKind=!1}),40);return this.dc.dmResize=(0,Ve.U5)((()=>{const t=this.uiStore.state,{insideW:e,insideH:i}=this.dmCmdStore.state;return{h:t.videoAreaHeight,w:t.videoAreaWidth,insideW:e,insideH:i}}),(({w:t,h:e})=>{e&&t&&i()}),{fireImmediately:!0}),this.dc.miniScreen=(0,Ve.U5)((()=>this.uiStore.isTinyView),(t=>{this.cKind=!0,this.danmaku.setScene("isMini",t)}),{fireImmediately:!0}),this.dc.playbackRate=(0,Ve.U5)((()=>this.settingStore.state.playbackRate),(t=>{this.danmaku.setSetting("videoSpeed",t||1)}),{fireImmediately:!0}),this.dc.reportDmid=(0,Ve.U5)((()=>this.danmakuStore.state.reportDmid),(t=>{this.danmaku.setReportDmid(t)})),this.dc.dmPause=(0,Ve.U5)((()=>this.danmakuStore.isPaused),(t=>{if(t){if(this.danmaku.pause(),this.danmakuStore.state.ashAnimation){this.nodes.rowDanmaku.classList.contains("ash-animation")&&this.nodes.rowDanmaku.classList.add("ash-animation-paused");const t=document.querySelector("#fractal").parentElement;null==t||t.pauseAnimations()}}else if(this.danmakuStore.state.ashAnimation){this.nodes.rowDanmaku.classList.contains("ash-animation")&&this.nodes.rowDanmaku.classList.remove("ash-animation-paused");const t=document.querySelector("#fractal").parentElement;null==t||t.unpauseAnimations()}else this.danmaku.play()}),{fireImmediately:!0}),this.rootPlayer.on(Ze.p2.MEDIA_SEEKING,(()=>{this.danmaku.pause()})),this.rootPlayer.on(Ze.p2.MEDIA_SEEKED,(()=>{var t,e;this.danmakuStore.isPaused?this.danmaku.pause():this.danmaku.play(),(null==(e=null==(t=this.danmakuStore)?void 0:t.state)?void 0:e.fragClose)?this.danmaku.clear():this.danmaku.seek(this.portStore.getCurrentTime(),!0)})),this.dc.dmMenu=(0,Ve.U5)((()=>this.menuStore.state.position),(t=>{if(t){const e=this.danmaku.searchAreaDanmaku(t.x,t.y),i=[...this.menuStore.state.dmList];e.length&&(e.forEach((t=>{i.push(t)})),this.menuStore.setState({dmList:i}))}})),this.dc.isFirstEnterShooterTime=(0,Ve.U5)((()=>this.danmakuStore.isFirstEnterShooterTime),(t=>{t&&pt.startGenerateRole()})),this.dc.shouldShowMarsNode=(0,Ve.U5)((()=>this.danmakuStore.shouldShowMarsNode),(t=>{t?this.startMarsNodeAnimate():this.pauseMarsNodeAnimate()}),{fireImmediately:!0}),this.dc.marsResource=(0,Ve.U5)((()=>this.danmakuStore.state.marsResource),(t=>xs(this,null,(function*(){if(!t)return;this.marsResource={start:0,end:0,earthList:[],marsList:[],defaultState:2},this.marsResource.start=t.start,this.marsResource.end=t.end,this.marsResource.defaultState=t.defaultState||2,this.isGoToMars=1===this.marsResource.defaultState;const e=`//${t.url.replace(/^http(s?):\/\//,"")}`;if((yield r.ZP.Utils.unzip(e)).forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if("earth"===n){if(this.marsResource.earthList=this.marsResource.earthList||[],isNaN(Number(r)))return;this.marsResource.earthList[Number(r)]=t.content}else if("mars"===n){if(this.marsResource.marsList=this.marsResource.marsList||[],isNaN(Number(r)))return;this.marsResource.marsList[Number(r)]=t.content}})),this.marsNode)return;const i=`\n                    <div class="${this.ppx}-mars-container">\n                        <img src="${this.marsResource.marsList[0]}" class="${this.ppx}-mars-pic"/>\n                    </div>\n                `;this.nodes.videoArea.appendChild((0,ha.t)(i)),this.marsNode=this.nodes.videoArea.querySelector(`.${this.ppx}-mars-container`),this.marsNode.onclick=()=>{this.isGoToMars=!this.isGoToMars,this.startMarsNodeAnimate()},this.danmakuStore.shouldShowMarsNode?this.startMarsNodeAnimate():this.pauseMarsNodeAnimate()}))),{fireImmediately:!0}),this.dc.metaResourceList=(0,Ve.U5)((()=>this.dmListStore.state.metaResource),(t=>xs(this,null,(function*(){var e;if(!(null==t?void 0:t.length))return;const i={},n={},o={};let a=1;for(let e of t)if(20032===e.id){i.heightRatio=e.role_height_ratio,i.duration=e.role_time_second,i.hitNumber=e.role_hit_max,i.generateRoleInterval=1e3*e.role_interval_time,n.duration=e.dm_time_second,a=e.direction||1;(yield r.ZP.Utils.unzip(e.resource)).forEach((t=>{if(!t)return;const e=t.name.split("/"),i=e.pop(),n=e.pop(),r=i.split(".")[0];if("normal"===n){if(o.walkList=o.walkList||[],isNaN(Number(r)))return;o.walkList[Number(r)]=t.content}else if("defeat"===n){if(o.deadList=o.deadList||[],isNaN(Number(r)))return;o.deadList[Number(r)]=t.content}else if("shooter"===n)o.bullet=t.content;else if("bomb"===n){if(o.bulletBoom||(o.bulletBoom=[]),isNaN(Number(r)))return;o.bulletBoom[Number(r)]=t.content}}));const{width:t,height:s}=yield fs(o.walkList[0]),l=yield fs(o.bullet),A=yield fs(o.bulletBoom[0]);n.bulletSize=l,n.bulletBoomSize=A,i.width=t,i.height=s,i.shouldGenerateRole=()=>{const t=this.portStore.getCurrentTime();return t>=e.start&&t<=e.end}}null==(e=this.danmaku)||e.setModes([{mode:r.ZP.Mode.Shooter,model:pt,roleConfig:i,bulletConfig:n,resource:o,direction:a}])}))),{fireImmediately:!0}),this}startMarsNodeAnimate(){var t;window.cancelAnimationFrame(this.marsNodeTimer);let e=0;if(!this.marsResource)return;const i=this.isGoToMars?this.marsResource.earthList:null!=(t=this.marsResource.marsList)?t:[];this.marsNode&&(0,da.o)(this.marsNode);const n=()=>{this.marsNode&&(this.marsNode.querySelector(`.${this.ppx}-mars-pic`).src=i[Math.floor(e++/4)%i.length],this.marsNodeTimer=window.requestAnimationFrame(n))};n()}pauseMarsNodeAnimate(){window.cancelAnimationFrame(this.marsNodeTimer),this.marsNodeTimer=-1,this.marsNode&&(0,ua.N)(this.marsNode)}bindEvents(){if(!this.danmaku)return;const{EventType:t}=r.ZP;this.configStore.isChannel(Ze.u5.Creator)?this.danmaku.on(t.Interact_Danmaku_Position_Changed,(t=>{us(t,this)})):this.danmaku.on(t.Cmtime_Danmaku_Support,(t=>{La(t,this)})).on(t.Link_Danmaku_Click,(t=>{Ua(t,this)})).on(t.Score_Danmaku_Events,(t=>{Ga(t,this)})).on(t.Vote_Danmaku_Events,(t=>{Ka(t,this)})).on(t.Reserve_Danmaku_Click,(t=>{$a(t,this)})).on(t.ClockIn_Danmaku_Click,(t=>{is(t,this)})).on(t.GoodsLike_Danmaku_Click,(t=>{rs(t,this)})).on(t.Rewardfans_Danmaku_Click,(t=>{os(t,this)})).on(t.Follow_Danmaku_Events,(t=>{ls(t,this)})).on(t.Interact_Danmaku_ShrinkState_Changed,(t=>{us(t,this);const{params:e,action:i}=t||{},{state:n,mode:r,dmid:o,data:a}=e||{};this.trackExtra.p("player.dm-order-close.click",Ze.p0.Click,{dmid:o,danmaku_type:ds[r],status:1})})).on(t.Danmaku_Track_Report,(t=>{const{eventId:e,eventParam:i,type:n}=t;let o=null;if(n===r.w9.SHOW?o=Ze.p0.Appear:n===r.w9.CLICK?o=Ze.p0.Click:n===r.w9.OP?this.track.o(e,JSON.parse(i)):n===r.w9.EVENT&&this.track.e(e,JSON.parse(i)),o)switch(e){case"player.dm-link.show":case"player.dm-link.click":this.trackExtra.p(e,o,ws(Bs({},JSON.parse(i)),{avid:this.configStore.aid}));break;case"player.dm-follow-customize-up.show":case"player.dm-follow-customize-up.click":case"player.dm-charge-customize-up.click":case"player.dm-charge-customize-up.show":this.trackExtra.p(e,o,ws(Bs({},JSON.parse(i)),{cid:this.configStore.cid}));break;case"player.dm-actor-image.show":this.trackExtra.p(e,o,{mid:this.userStore.info.mid||""});break;default:this.trackExtra.p(e,o,JSON.parse(i))}})).on(t.Danmaku_Log,(t=>{var e;(null==(e=null==t?void 0:t.params)?void 0:e.message)&&this.log.i("log",t.params.message)}))}initDanmaku(){
const t=this.dmSettingStore.state,e=this.uiStore.isTinyView,i=this.blockStore.dmMap,n=this.blockStore.DmBlockMap,o=this.calculateFontSize(t.fontsize);this.configStore.isChannel(Ze.u5.Creator)?this.danmaku=new r.ZP({id:"titan",container:this.nodes.rowDanmaku,dom:{insideWrap:this.nodes.cmdInside},setting:{visible:t.dmSwitch||this.dmCmdStore.creator,opacity:t.opacity,fontFamily:t.fontfamily,bold:t.bold,preventShade:t.preventshade,speedPlus:t.speedplus,speedSync:t.speedsync,fontBorder:+t.fontborder,fontSize:t.fontsize,fullScreenSync:t.fullscreensync,area:t.dmarea,videoSpeed:this.settingStore.state.playbackRate||1,isRecyclingDom:!0,isRecyclingModel:!1,canBindMove:!0,forbidEvents:!0,forbidShrinkState:!0,noDanmakuXTypes:["common","special"]},fn:{timelineSync:()=>this.portStore.getCurrentTime(),filter:t=>{const e=this.blockStore.isBlockDanmaku(t);if(e){this.blockStore.dmBlockCount++;const e=t.mode,i=this.blockStore.blockCountByType;i&&(e>=3e3?i.cmd=(i.cmd||0)+1:e>=2e3?i.special=(i.special||0)+1:i.common=(i.common||0)+1)}else this.blockStore.filterPassCount++;return e}},modes:[{mode:r.ZP.Mode.ClockIn,model:Dt},{mode:r.ZP.Mode.Cmtime,model:Ft},{mode:r.ZP.Mode.Follow,model:Ot},{mode:r.ZP.Mode.GoodsLike,model:zt},{mode:r.ZP.Mode.Link,model:Jt},{mode:r.ZP.Mode.Reserve,model:ee},{mode:r.ZP.Mode.Rewardfans,model:ae},{mode:r.ZP.Mode.Score,model:he},{mode:r.ZP.Mode.ScoreSum,model:fe},{mode:r.ZP.Mode.SuperRating,model:Ee},{mode:r.ZP.Mode.Vote,model:xe}]}):this.danmaku=new r.ZP({id:"titan",container:this.nodes.rowDanmaku,dom:{insideWrap:this.nodes.cmdInside},setting:{visible:t.dmSwitch||this.dmCmdStore.creator,opacity:t.opacity,fontFamily:t.fontfamily,bold:t.bold,preventShade:t.preventshade,speedPlus:t.speedplus,speedSync:t.speedsync,fontBorder:+t.fontborder,fontSize:o,fullScreenSync:t.fullscreensync,area:t.dmarea,videoSpeed:this.settingStore.state.playbackRate||1,isRecyclingDom:!0,isRecyclingModel:!1},fn:{timelineSync:()=>this.portStore.getCurrentTime(),filter:t=>{const e=this.blockStore.isBlockDanmaku(t);if(e){this.blockStore.dmBlockCount++;const e=t.mode,i=this.blockStore.blockCountByType;i&&(e>=3e3?i.cmd=(i.cmd||0)+1:e>=2e3?i.special=(i.special||0)+1:i.common=(i.common||0)+1)}else this.blockStore.filterPassCount++;return e}},scene:{isMini:e,isMobile:!1},modes:[{mode:r.ZP.Mode.Yanwen,model:q},{mode:r.ZP.Mode.Sand,model:U},{mode:r.ZP.Mode.PK,model:T},{mode:r.ZP.Mode.BlackHole,model:A},{mode:r.ZP.Mode.FireworkBillion,model:B},{mode:r.ZP.Mode.Firework2022,model:p},{mode:r.ZP.Mode.FireworkBoom,model:k},{mode:r.ZP.Mode.Spring,model:Y},{mode:r.ZP.Mode.Firework2023,model:b},{mode:r.ZP.Mode.HarryPotter,model:tt},{mode:r.ZP.Mode.Mars,model:At,transform:t=>this.isGoToMars?He(t):t},{mode:r.ZP.Mode.ClockIn,model:Dt},{mode:r.ZP.Mode.Cmtime,model:Ft},{mode:r.ZP.Mode.Follow,model:Ot},{mode:r.ZP.Mode.GoodsLike,model:zt},{mode:r.ZP.Mode.Link,model:Jt},{mode:r.ZP.Mode.Reserve,model:ee},{mode:r.ZP.Mode.Rewardfans,model:ae},{mode:r.ZP.Mode.Score,model:he},{mode:r.ZP.Mode.ScoreSum,model:fe},{mode:r.ZP.Mode.SuperRating,model:Ee},{mode:r.ZP.Mode.Vote,model:xe},{mode:r.ZP.Mode.Combo,model:Me},{mode:r.ZP.Mode.LiveToVod,model:Et}],hooks:{beforeRender:(t,e)=>{null==e||e.forEach((t=>{const e=i.get(t.dmid);if(!e)return;const{modeStack:o=[],blockTopBottom:a,blockSpecial:s,blockColor:l}=e,{typeTopBottom:A,typeSpecial:c,typeColor:h,preventshade:d}=this.dmSettingStore.state,u=!A,p=!c,g=!h,f=d;o&&0!==o.length&&(n.blockSpecial.includes(o[o.length-1].mode)&&s!==p&&(e.blockSpecial=p,p?(t.rawMode=o[e.index-1].rawMode,t.mode=o[e.index-1].mode,e.index--):(t.rawMode=o[e.index+1].rawMode,t.mode=o[e.index+1].mode,e.index++)),n.preventShade.includes(o[o.length-1].mode)&&f!==e.preventShade&&(e.preventShade=f,f&&e.index>0?(t.rawMode=o[e.index-1].rawMode,t.mode=o[e.index-1].mode,e.index--):!f&&e.index<o.length-1&&(t.rawMode=o[e.index+1].rawMode,t.mode=o[e.index+1].mode,e.index++)),n.blockTopBottom.includes(o[o.length-1].mode)&&a!==u&&(e.blockTopBottom=u,u&&e.index>0?(t.rawMode=o[e.index-1].rawMode,t.mode=o[e.index-1].mode,e.index--):!u&&e.index<o.length-1&&(t.rawMode=o[e.index+1].rawMode,t.mode=o[e.index+1].mode,e.index++)),l!==g&&(e.blockColor=g,g?(t.color=16777215,t.colorfulImg&&(e.colorfulImg=t.colorfulImg,t.colorfulImg=""),t.mode===r.yC.Colorful&&(t.modeInfo&&(t.modeInfo.color_type=1,t.modeInfo.font_color="#FFFFFF",t.modeInfo.font_stroke_color=void 0),t.resource&&(t.resource.url=""))):(t.color=e.color,t.colorfulImg=e.colorfulImg,t.mode===r.yC.Colorful&&(t.modeInfo&&(t.modeInfo.color_type=e.color_type,t.modeInfo.font_color=e.font_color,t.modeInfo.font_stroke_color=e.font_stroke_color),t.resource&&(t.resource.url=e.color_url||void 0)))))}))}}}),this.danmakuParser=new Ta(this),this.bindEvents(),this.dmToggle(),this.danmakuStore.danmakuX=this.danmaku}dmDelicateShot(t,e,i,n){return this.danmaku.sandShot(t,e,i,n)}setRollContainerVisibility(t){return this.danmaku.setRollContainerVisibility(t)}dmToggle(){const{paused:t,buffering:e}=this.mediaStore.state;t||e?this.danmaku.pause():this.danmaku.play()}getDmFromTime(t){if(!this.duration)return;t<0&&(t=0);const e=this.danmakuStore.pageSize;if(t-this.duration>-1||!e)return;const i=this.mpdStore.dmStartOffset;let n=Math.floor((t+i)/e)+1;1===n&&t+i>=e/3&&(n=1.5),this.danmakuStore.allSegment[n]?(t%e>e-5||t<e/3&&t%(e/3)>e/3-5)&&this.getDmFromTime(t+10):this.danmakuStore.loadDmPb(n)}hasDmid(t,e){this.danmakuStore.fetchDmid(t).then((({body:i})=>{var n;if(!i.dmid)return;this.danmaku.remove(t);const o=Bs({rawMode:r.H1.Roll,mode:r.H1.Roll,size:25,color:16777215,date:0,pool:0,uhash:null==(n=this.userStore.info)?void 0:n.hashId,dmid:"",text:"",weight:10},i);e&&(o.likes=null),this.dp.dmid=(0,Ve.gx)((()=>this.rootStore.isLoaded),(()=>{this.addDm(o)}))})).catch((t=>{this.danmakuStore.tooltipCenter("dmid",(null==t?void 0:t.message)||"获取弹幕信息失败")}))}addDm(t){return xs(this,null,(function*(){const e=this.portStore.getCurrentTime();Math.abs(t.stime-e)>1?(yield this.portStore.seekAutoplay(t.stime-.2),yield this.waitForSeekedEvent()):yield this.portStore.play(),t.stime*=1e3,this.dmListStore.allDm.push(t),this.danmaku.add(ws(Bs({},t),{stime:t.stime+1200,isRealTime:!1}))}))}calculateFontSize(t){var e,i,n;if(this.configStore.isChannel(Ze.u5.Gamecenter)||this.configStore.isChannel(Ze.u5.Mini_Site)){const t=null!=(n=null==(i=null==(e=this.uiStore)?void 0:e.state)?void 0:i.videoAreaHeight)?n:0;if(t>0)return Math.max(.5,t/400)}return t}waitForSeekedEvent(){this.cancelWaitingSeekedPromise();const t=new Promise((t=>{this.waitSeekHandler=()=>{this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout((()=>{this.rootPlayer.off(Ze.p2.MEDIA_SEEKED,this.waitSeekHandler),this.debounceTimer=null,t()}),200)},this.rootPlayer.on(Ze.p2.MEDIA_SEEKED,this.waitSeekHandler)})),e=new Promise((t=>{this.timeoutTimer=window.setTimeout((()=>{this.timeoutTimer=null,t()}),1e3)}));return Promise.race([t,e]).finally((()=>{this.cancelWaitingSeekedPromise()}))}cancelWaitingSeekedPromise(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null),this.timeoutTimer&&(clearTimeout(this.timeoutTimer),this.timeoutTimer=null),this.waitSeekHandler&&(this.rootPlayer.off(Ze.p2.MEDIA_SEEKED,this.waitSeekHandler),this.waitSeekHandler=null)}getScreenshot(){const t=this.container.querySelector(`.${this.ppx}-row-dm-wrap`),e=t.offsetWidth,i=t.offsetHeight,n=document.createElement("canvas");n.style.width=e+"px",n.style.height=i+"px",n.setAttribute("width",2*e+"px"),n.setAttribute("height",2*i+"px");const r=n.getContext("2d");r.fillStyle="#00",r.fillRect(0,0,n.width,n.height);const o=this.mediaStore.video,a=this.screenshot({dom:o}),s=new Image;s.src=a;let l=o.offsetWidth,A=o.offsetHeight;const c=o.videoWidth,h=o.videoHeight;let d=e-l,u=i-A;return h/c>A/l?(d+=l-A*c/h,l=A*c/h):(u+=A-l*h/c,A=l*h/c),new Promise(((t,o)=>{s.onload=()=>{r.drawImage(s,d,u,2*l,2*A);const o=this.danmaku.shot(n,e,i);t(o.toDataURL())}}))}screenshot(t){const e=Bs({width:t.dom.videoWidth,height:t.dom.videoHeight},t),i=document.createElement("canvas"),n=i.getContext("2d");i.setAttribute("width",e.width+"px"),i.setAttribute("height",e.height+"px");let r=e.dom
;return this.wmpStore.isUseWasmPlayer(e.dom)&&(r=e.dom.getRenderCanvas()),n.drawImage(r,0,0,e.width,e.height),i.toDataURL()}getLogs(){return this.log}dmStatReport(){return xs(this,null,(function*(){try{const t=this.danmakuStore.dmTrack.dmnum,e=this.danmaku.getDanmakuStatReport(),i={statistics:this.configStore.statisticsReport,oid:this.configStore.cid,pid:this.configStore.aid,platform:"web",sessionId:this.configStore.session,mobi_app:"web",appkey:"web",count:(null==e?void 0:e.dmExposureNum)||0,interactive_dm_count:null==e?void 0:e.interactiveDmCount,dm_from_stats:JSON.stringify(Object.fromEntries((null==e?void 0:e.dmFromMap)||new Map)),pull_count:t,type:1,extra:this.configStore.dmReportExtra},n=new We(this.rootPlayer);yield n.r(i),this.danmakuStore.dmTrack=this.danmakuStore.defaultTrack}catch(t){}}))}onDispose(){var t;super.onDispose(),this.cancelWaitingSeekedPromise(),this.dmStatReport(),this.danmakuParser&&this.danmakuParser.clearErrorCount(),null==(t=this.danmaku)||t.dispose(),this.duration=0,this.isGoToMars=!1,this.pauseMarsNodeAnimate()}onDisconnect(){var t;super.onDisconnect(),this.cancelWaitingSeekedPromise(),this.pauseMarsNodeAnimate(),null==(t=this.danmaku)||t.dispose(),this.sand=null}}},95643:function(t,e,i){"use strict";i.d(e,{D:function(){return Bi}});var n=i(5489);function r(){return"function"==typeof window.TextDecoder?new window.TextDecoder:{decode:t=>decodeURIComponent(escape(String.fromCharCode.apply(String,new Uint8Array(t))))}}var o=i(61068);function a(t){let e=t.length;for(;--e>=0;)t[e]=0}const s=256,l=286,A=30,c=15,h=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),d=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),u=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),p=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=new Array(576);a(g);const f=new Array(60);a(f);const m=new Array(512);a(m);const y=new Array(256);a(y);const b=new Array(29);a(b);const v=new Array(A);function E(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}let I,C,B;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}a(v);const x=t=>t<256?m[t]:m[256+(t>>>7)],Q=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},S=(t,e,i)=>{t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,Q(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)},k=(t,e,i)=>{S(t,i[2*e],i[2*e+1])},D=(t,e)=>{let i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1},_=(t,e,i)=>{const n=new Array(16);let r,o,a=0;for(r=1;r<=c;r++)a=a+i[r-1]<<1,n[r]=a;for(o=0;o<=e;o++){let e=t[2*o+1];0!==e&&(t[2*o]=D(n[e]++,e))}},R=t=>{let e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<A;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},M=t=>{t.bi_valid>8?Q(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},T=(t,e,i,n)=>{const r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]},F=(t,e,i)=>{const n=t.heap[i];let r=i<<1;for(;r<=t.heap_len&&(r<t.heap_len&&T(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!T(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n},L=(t,e,i)=>{let n,r,o,a,l=0;if(0!==t.sym_next)do{n=255&t.pending_buf[t.sym_buf+l++],n+=(255&t.pending_buf[t.sym_buf+l++])<<8,r=t.pending_buf[t.sym_buf+l++],0===n?k(t,r,e):(o=y[r],k(t,o+s+1,e),a=h[o],0!==a&&(r-=b[o],S(t,r,a)),n--,o=x(n),k(t,o,i),a=d[o],0!==a&&(n-=v[o],S(t,n,a)))}while(l<t.sym_next);k(t,256,e)},N=(t,e)=>{const i=e.dyn_tree,n=e.stat_desc.static_tree,r=e.stat_desc.has_stree,o=e.stat_desc.elems;let a,s,l,A=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<o;a++)0!==i[2*a]?(t.heap[++t.heap_len]=A=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=A<2?++A:0,i[2*l]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=n[2*l+1]);for(e.max_code=A,a=t.heap_len>>1;a>=1;a--)F(t,i,a);l=o;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],F(t,i,1),s=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=s,i[2*l]=i[2*a]+i[2*s],t.depth[l]=(t.depth[a]>=t.depth[s]?t.depth[a]:t.depth[s])+1,i[2*a+1]=i[2*s+1]=l,t.heap[1]=l++,F(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const i=e.dyn_tree,n=e.max_code,r=e.stat_desc.static_tree,o=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,l=e.stat_desc.max_length;let A,h,d,u,p,g,f=0;for(u=0;u<=c;u++)t.bl_count[u]=0;for(i[2*t.heap[t.heap_max]+1]=0,A=t.heap_max+1;A<573;A++)h=t.heap[A],u=i[2*i[2*h+1]+1]+1,u>l&&(u=l,f++),i[2*h+1]=u,h>n||(t.bl_count[u]++,p=0,h>=s&&(p=a[h-s]),g=i[2*h],t.opt_len+=g*(u+p),o&&(t.static_len+=g*(r[2*h+1]+p)));if(0!==f){do{for(u=l-1;0===t.bl_count[u];)u--;t.bl_count[u]--,t.bl_count[u+1]+=2,t.bl_count[l]--,f-=2}while(f>0);for(u=l;0!==u;u--)for(h=t.bl_count[u];0!==h;)d=t.heap[--A],d>n||(i[2*d+1]!==u&&(t.opt_len+=(u-i[2*d+1])*i[2*d],i[2*d+1]=u),h--)}})(t,e),_(i,A,t.bl_count)},P=(t,e,i)=>{let n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=a,a=e[2*(n+1)+1],++s<l&&r===a||(s<A?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=r,0===a?(l=138,A=3):r===a?(l=6,A=3):(l=7,A=4))},U=(t,e,i)=>{let n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),n=0;n<=i;n++)if(r=a,a=e[2*(n+1)+1],!(++s<l&&r===a)){if(s<A)do{k(t,r,t.bl_tree)}while(0!=--s);else 0!==r?(r!==o&&(k(t,r,t.bl_tree),s--),k(t,16,t.bl_tree),S(t,s-3,2)):s<=10?(k(t,17,t.bl_tree),S(t,s-3,3)):(k(t,18,t.bl_tree),S(t,s-11,7));s=0,o=r,0===a?(l=138,A=3):r===a?(l=6,A=3):(l=7,A=4)}};let O=!1;const G=(t,e,i,n)=>{S(t,0+(n?1:0),3),M(t),Q(t,i),Q(t,~i),i&&t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i};var H=(t,e,i,n)=>{let r,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<s;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),N(t,t.l_desc),N(t,t.d_desc),a=(t=>{let e;for(P(t,t.dyn_ltree,t.l_desc.max_code),P(t,t.dyn_dtree,t.d_desc.max_code),N(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*p[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),r=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=r&&(r=o)):r=o=i+5,i+4<=r&&-1!==e?G(t,e,i,n):4===t.strategy||o===r?(S(t,2+(n?1:0),3),L(t,g,f)):(S(t,4+(n?1:0),3),((t,e,i,n)=>{let r;for(S(t,e-257,5),S(t,i-1,5),S(t,n-4,4),r=0;r<n;r++)S(t,t.bl_tree[2*p[r]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,i-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),L(t,t.dyn_ltree,t.dyn_dtree)),R(t),n&&M(t)},V={_tr_init:t=>{O||((()=>{let t,e,i,n,r;const o=new Array(16);for(i=0,n=0;n<28;n++)for(b[n]=i,t=0;t<1<<h[n];t++)y[i++]=n;for(y[i-1]=n,r=0,n=0;n<16;n++)for(v[n]=r,t=0;t<1<<d[n];t++)m[r++]=n;for(r>>=7;n<A;n++)for(v[n]=r<<7,t=0;t<1<<d[n]-7;t++)m[256+r++]=n;for(e=0;e<=c;e++)o[e]=0;for(t=0;t<=143;)g[2*t+1]=8,t++,o[8]++;for(;t<=255;)g[2*t+1]=9,t++,o[9]++;for(;t<=279;)g[2*t+1]=7,t++,o[7]++;for(;t<=287;)g[2*t+1]=8,t++,o[8]++;for(_(g,287,o),t=0;t<A;t++)f[2*t+1]=5,f[2*t]=D(t,5);I=new E(g,h,257,l,c),C=new E(f,d,0,A,c),B=new E(new Array(0),u,0,19,7)})(),O=!0),t.l_desc=new w(t.dyn_ltree,I),t.d_desc=new w(t.dyn_dtree,C),t.bl_desc=new w(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,R(t)},_tr_stored_block:G,_tr_flush_block:H,_tr_tally:(t,e,i)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(y[i]+s+1)]++,t.dyn_dtree[2*x(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{S(t,2,3),k(t,256,g),(t=>{16===t.bi_valid?(Q(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var Y=(t,e,i,n)=>{let r=65535&t,o=t>>>16&65535,a=0;for(;0!==i;){a=i>2e3?2e3:i,i-=a;do{r=r+e[n++]|0,o=o+r|0}while(--a);r%=65521,o%=65521}return r|o<<16};const z=new Uint32Array((()=>{let t,e=[];for(var i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e})());var W=(t,e,i,n)=>{const r=z,o=n+i;t^=-1
;for(let i=n;i<o;i++)t=t>>>8^r[255&(t^e[i])];return~t},Z={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},j={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:q,_tr_stored_block:J,_tr_flush_block:K,_tr_tally:X,_tr_align:$}=V,{Z_NO_FLUSH:tt,Z_PARTIAL_FLUSH:et,Z_FULL_FLUSH:it,Z_FINISH:nt,Z_BLOCK:rt,Z_OK:ot,Z_STREAM_END:at,Z_STREAM_ERROR:st,Z_DATA_ERROR:lt,Z_BUF_ERROR:At,Z_DEFAULT_COMPRESSION:ct,Z_FILTERED:ht,Z_HUFFMAN_ONLY:dt,Z_RLE:ut,Z_FIXED:pt,Z_DEFAULT_STRATEGY:gt,Z_UNKNOWN:ft,Z_DEFLATED:mt}=j,yt=258,bt=262,vt=42,Et=113,It=666,Ct=(t,e)=>(t.msg=Z[e],e),Bt=t=>2*t-(t>4?9:0),wt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},xt=t=>{let e,i,n,r=t.w_size;e=t.hash_size,n=e;do{i=t.head[--n],t.head[n]=i>=r?i-r:0}while(--e);e=r,n=e;do{i=t.prev[--n],t.prev[n]=i>=r?i-r:0}while(--e)};let Qt=(t,e,i)=>(e<<t.hash_shift^i)&t.hash_mask;const St=t=>{const e=t.state;let i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))},kt=(t,e)=>{K(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,St(t.strm)},Dt=(t,e)=>{t.pending_buf[t.pending++]=e},_t=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Rt=(t,e,i,n)=>{let r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),i),1===t.state.wrap?t.adler=Y(t.adler,e,r,i):2===t.state.wrap&&(t.adler=W(t.adler,e,r,i)),t.next_in+=r,t.total_in+=r,r)},Mt=(t,e)=>{let i,n,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match;const l=t.strstart>t.w_size-bt?t.strstart-(t.w_size-bt):0,A=t.window,c=t.w_mask,h=t.prev,d=t.strstart+yt;let u=A[o+a-1],p=A[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(i=e,A[i+a]===p&&A[i+a-1]===u&&A[i]===A[o]&&A[++i]===A[o+1]){o+=2,i++;do{}while(A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&o<d);if(n=yt-(d-o),o=d-yt,n>a){if(t.match_start=e,a=n,n>=s)break;u=A[o+a-1],p=A[o+a]}}}while((e=h[e&c])>l&&0!=--r);return a<=t.lookahead?a:t.lookahead},Tt=t=>{const e=t.w_size;let i,n,r;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-bt)&&(t.window.set(t.window.subarray(e,e+e-n),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),xt(t),n+=e),0===t.strm.avail_in)break;if(i=Rt(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=i,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=Qt(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=Qt(t,t.ins_h,t.window[r+3-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<bt&&0!==t.strm.avail_in)},Ft=(t,e)=>{let i,n,r,o=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,a=0,s=t.strm.avail_in;do{if(i=65535,r=t.bi_valid+42>>3,t.strm.avail_out<r)break;if(r=t.strm.avail_out-r,n=t.strstart-t.block_start,i>n+t.strm.avail_in&&(i=n+t.strm.avail_in),i>r&&(i=r),i<o&&(0===i&&e!==nt||e===tt||i!==n+t.strm.avail_in))break;a=e===nt&&i===n+t.strm.avail_in?1:0,J(t,0,0,a),t.pending_buf[t.pending-4]=i,t.pending_buf[t.pending-3]=i>>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,St(t.strm),n&&(n>i&&(n=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,i-=n),i&&(Rt(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(0===a);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),a?4:e!==tt&&e!==nt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(r=t.window_size-t.strstart,t.strm.avail_in>r&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(Rt(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water<t.strstart&&(t.high_water=t.strstart),r=t.bi_valid+42>>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,o=r>t.w_size?t.w_size:r,n=t.strstart-t.block_start,(n>=o||(n||e===nt)&&e!==tt&&0===t.strm.avail_in&&n<=r)&&(i=n>r?r:n,a=e===nt&&0===t.strm.avail_in&&i===n?1:0,J(t,t.block_start,i,a),t.block_start+=i,St(t.strm)),a?3:1)},Lt=(t,e)=>{let i,n;for(;;){if(t.lookahead<bt){if(Tt(t),t.lookahead<bt&&e===tt)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=Qt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-bt&&(t.match_length=Mt(t,i)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=Qt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Qt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(kt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===nt?(kt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(kt(t,!1),0===t.strm.avail_out)?1:2},Nt=(t,e)=>{let i,n,r;for(;;){if(t.lookahead<bt){if(Tt(t),t.lookahead<bt&&e===tt)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=Qt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-bt&&(t.match_length=Mt(t,i),t.match_length<=5&&(t.strategy===ht||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=Qt(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(kt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(n=X(t,0,t.window[t.strstart-1]),n&&kt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===nt?(kt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(kt(t,!1),0===t.strm.avail_out)?1:2};function Pt(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}
const Ut=[new Pt(0,0,0,0,Ft),new Pt(4,4,8,4,Lt),new Pt(4,5,16,8,Lt),new Pt(4,6,32,32,Lt),new Pt(4,4,16,16,Nt),new Pt(8,16,32,32,Nt),new Pt(8,16,128,128,Nt),new Pt(8,32,128,256,Nt),new Pt(32,128,258,1024,Nt),new Pt(32,258,258,4096,Nt)];function Ot(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=mt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),wt(this.dyn_ltree),wt(this.dyn_dtree),wt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),wt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),wt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Gt=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==vt&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==Et&&e.status!==It?1:0},Ht=t=>{if(Gt(t))return Ct(t,st);t.total_in=t.total_out=0,t.data_type=ft;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?vt:Et,t.adler=2===e.wrap?0:1,e.last_flush=-2,q(e),ot},Vt=t=>{const e=Ht(t);return e===ot&&(t=>{t.window_size=2*t.w_size,wt(t.head),t.max_lazy_match=Ut[t.level].max_lazy,t.good_match=Ut[t.level].good_length,t.nice_match=Ut[t.level].nice_length,t.max_chain_length=Ut[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0})(t.state),e},Yt=(t,e,i,n,r,o)=>{if(!t)return st;let a=1;if(e===ct&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),r<1||r>9||i!==mt||n<8||n>15||e<0||e>9||o<0||o>pt||8===n&&1!==a)return Ct(t,st);8===n&&(n=9);const s=new Ot;return t.state=s,s.strm=t,s.status=vt,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=o,s.method=i,Vt(t)};var zt={deflateInit:(t,e)=>Yt(t,e,mt,15,8,gt),deflateInit2:Yt,deflateReset:Vt,deflateResetKeep:Ht,deflateSetHeader:(t,e)=>Gt(t)||2!==t.state.wrap?st:(t.state.gzhead=e,ot),deflate:(t,e)=>{if(Gt(t)||e>rt||e<0)return t?Ct(t,st):st;const i=t.state;if(!t.output||0!==t.avail_in&&!t.input||i.status===It&&e!==nt)return Ct(t,0===t.avail_out?At:st);const n=i.last_flush;if(i.last_flush=e,0!==i.pending){if(St(t),0===t.avail_out)return i.last_flush=-1,ot}else if(0===t.avail_in&&Bt(e)<=Bt(n)&&e!==nt)return Ct(t,At);if(i.status===It&&0!==t.avail_in)return Ct(t,At);if(i.status===vt&&0===i.wrap&&(i.status=Et),i.status===vt){let e=mt+(i.w_bits-8<<4)<<8,n=-1;if(n=i.strategy>=dt||i.level<2?0:i.level<6?1:6===i.level?2:3,e|=n<<6,0!==i.strstart&&(e|=32),e+=31-e%31,_t(i,e),0!==i.strstart&&(_t(i,t.adler>>>16),_t(i,65535&t.adler)),t.adler=1,i.status=Et,St(t),0!==i.pending)return i.last_flush=-1,ot}if(57===i.status)if(t.adler=0,Dt(i,31),Dt(i,139),Dt(i,8),i.gzhead)Dt(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Dt(i,255&i.gzhead.time),Dt(i,i.gzhead.time>>8&255),Dt(i,i.gzhead.time>>16&255),Dt(i,i.gzhead.time>>24&255),Dt(i,9===i.level?2:i.strategy>=dt||i.level<2?4:0),Dt(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Dt(i,255&i.gzhead.extra.length),Dt(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=W(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69;else if(Dt(i,0),Dt(i,0),Dt(i,0),Dt(i,0),Dt(i,0),Dt(i,9===i.level?2:i.strategy>=dt||i.level<2?4:0),Dt(i,3),i.status=Et,St(t),0!==i.pending)return i.last_flush=-1,ot;if(69===i.status){if(i.gzhead.extra){let e=i.pending,n=(65535&i.gzhead.extra.length)-i.gzindex;for(;i.pending+n>i.pending_buf_size;){let r=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+r),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>e&&(t.adler=W(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex+=r,St(t),0!==i.pending)return i.last_flush=-1,ot;e=0,n-=r}let r=new Uint8Array(i.gzhead.extra);i.pending_buf.set(r.subarray(i.gzindex,i.gzindex+n),i.pending),i.pending+=n,i.gzhead.hcrc&&i.pending>e&&(t.adler=W(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex=0}i.status=73}if(73===i.status){if(i.gzhead.name){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=W(t.adler,i.pending_buf,i.pending-n,n)),St(t),0!==i.pending)return i.last_flush=-1,ot;n=0}e=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Dt(i,e)}while(0!==e);i.gzhead.hcrc&&i.pending>n&&(t.adler=W(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=91}if(91===i.status){if(i.gzhead.comment){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=W(t.adler,i.pending_buf,i.pending-n,n)),St(t),0!==i.pending)return i.last_flush=-1,ot;n=0}e=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Dt(i,e)}while(0!==e);i.gzhead.hcrc&&i.pending>n&&(t.adler=W(t.adler,i.pending_buf,i.pending-n,n))}i.status=103}if(103===i.status){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(St(t),0!==i.pending))return i.last_flush=-1,ot;Dt(i,255&t.adler),Dt(i,t.adler>>8&255),t.adler=0}if(i.status=Et,St(t),0!==i.pending)return i.last_flush=-1,ot}if(0!==t.avail_in||0!==i.lookahead||e!==tt&&i.status!==It){let n=0===i.level?Ft(i,e):i.strategy===dt?((t,e)=>{let i;for(;;){if(0===t.lookahead&&(Tt(t),0===t.lookahead)){if(e===tt)return 1;break}if(t.match_length=0,i=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(kt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===nt?(kt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(kt(t,!1),0===t.strm.avail_out)?1:2})(i,e):i.strategy===ut?((t,e)=>{let i,n,r,o;const a=t.window;for(;;){if(t.lookahead<=yt){if(Tt(t),t.lookahead<=yt&&e===tt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=t.strstart-1,n=a[r],n===a[++r]&&n===a[++r]&&n===a[++r])){o=t.strstart+yt;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<o);t.match_length=yt-(o-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(kt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===nt?(kt(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(kt(t,!1),0===t.strm.avail_out)?1:2})(i,e):Ut[i.level].func(i,e);if(3!==n&&4!==n||(i.status=It),1===n||3===n)return 0===t.avail_out&&(i.last_flush=-1),ot;if(2===n&&(e===et?$(i):e!==rt&&(J(i,0,0,!1),e===it&&(wt(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),St(t),0===t.avail_out))return i.last_flush=-1,ot}return e!==nt?ot:i.wrap<=0?at:(2===i.wrap?(Dt(i,255&t.adler),Dt(i,t.adler>>8&255),Dt(i,t.adler>>16&255),Dt(i,t.adler>>24&255),Dt(i,255&t.total_in),Dt(i,t.total_in>>8&255),Dt(i,t.total_in>>16&255),Dt(i,t.total_in>>24&255)):(_t(i,t.adler>>>16),_t(i,65535&t.adler)),St(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?ot:at)},deflateEnd:t=>{if(Gt(t))return st;const e=t.state.status;return t.state=null,e===Et?Ct(t,lt):ot},
deflateSetDictionary:(t,e)=>{let i=e.length;if(Gt(t))return st;const n=t.state,r=n.wrap;if(2===r||1===r&&n.status!==vt||n.lookahead)return st;if(1===r&&(t.adler=Y(t.adler,e,i,0)),n.wrap=0,i>=n.w_size){0===r&&(wt(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(i-n.w_size,i),0),e=t,i=n.w_size}const o=t.avail_in,a=t.next_in,s=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,Tt(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do{n.ins_h=Qt(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++}while(--e);n.strstart=t,n.lookahead=2,Tt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=s,t.avail_in=o,n.wrap=r,ot},deflateInfo:"pako deflate (from Nodeca project)"};const Wt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Zt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(const e in i)Wt(i,e)&&(t[e]=i[e])}}return t},jt=t=>{let e=0;for(let i=0,n=t.length;i<n;i++)e+=t[i].length;const i=new Uint8Array(e);for(let e=0,n=0,r=t.length;e<r;e++){let r=t[e];i.set(r,n),n+=r.length}return i};let qt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){qt=!1}const Jt=new Uint8Array(256);for(let t=0;t<256;t++)Jt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Jt[254]=Jt[254]=1;var Kt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,i,n,r,o,a=t.length,s=0;for(r=0;r<a;r++)i=t.charCodeAt(r),55296==(64512&i)&&r+1<a&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(i=65536+(i-55296<<10)+(n-56320),r++)),s+=i<128?1:i<2048?2:i<65536?3:4;for(e=new Uint8Array(s),o=0,r=0;o<s;r++)i=t.charCodeAt(r),55296==(64512&i)&&r+1<a&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(i=65536+(i-55296<<10)+(n-56320),r++)),i<128?e[o++]=i:i<2048?(e[o++]=192|i>>>6,e[o++]=128|63&i):i<65536?(e[o++]=224|i>>>12,e[o++]=128|i>>>6&63,e[o++]=128|63&i):(e[o++]=240|i>>>18,e[o++]=128|i>>>12&63,e[o++]=128|i>>>6&63,e[o++]=128|63&i);return e},Xt=(t,e)=>{const i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let n,r;const o=new Array(2*i);for(r=0,n=0;n<i;){let e=t[n++];if(e<128){o[r++]=e;continue}let a=Jt[e];if(a>4)o[r++]=65533,n+=a-1;else{for(e&=2===a?31:3===a?15:7;a>1&&n<i;)e=e<<6|63&t[n++],a--;a>1?o[r++]=65533:e<65536?o[r++]=e:(e-=65536,o[r++]=55296|e>>10&1023,o[r++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&qt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let n=0;n<e;n++)i+=String.fromCharCode(t[n]);return i})(o,r)},$t=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+Jt[t[i]]>e?i:e};var te=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const ee=Object.prototype.toString,{Z_NO_FLUSH:ie,Z_SYNC_FLUSH:ne,Z_FULL_FLUSH:re,Z_FINISH:oe,Z_OK:ae,Z_STREAM_END:se,Z_DEFAULT_COMPRESSION:le,Z_DEFAULT_STRATEGY:Ae,Z_DEFLATED:ce}=j;function he(t){this.options=Zt({level:le,method:ce,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ae},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new te,this.strm.avail_out=0;let i=zt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==ae)throw new Error(Z[i]);if(e.header&&zt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Kt(e.dictionary):"[object ArrayBuffer]"===ee.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,i=zt.deflateSetDictionary(this.strm,t),i!==ae)throw new Error(Z[i]);this._dict_set=!0}}function de(t,e){const i=new he(e);if(i.push(t,!0),i.err)throw i.msg||Z[i.err];return i.result}he.prototype.push=function(t,e){const i=this.strm,n=this.options.chunkSize;let r,o;if(this.ended)return!1;for(o=e===~~e?e:!0===e?oe:ie,"string"==typeof t?i.input=Kt(t):"[object ArrayBuffer]"===ee.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(n),i.next_out=0,i.avail_out=n),(o===ne||o===re)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if(r=zt.deflate(i,o),r===se)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),r=zt.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===ae;if(0!==i.avail_out){if(o>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},he.prototype.onData=function(t){this.chunks.push(t)},he.prototype.onEnd=function(t){t===ae&&(this.result=jt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ue={Deflate:he,deflate:de,deflateRaw:function(t,e){return(e=e||{}).raw=!0,de(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,de(t,e)},constants:j};const pe=16209;var ge=function(t,e){let i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B,w;const x=t.state;i=t.next_in,B=t.input,n=i+(t.avail_in-5),r=t.next_out,w=t.output,o=r-(e-t.avail_out),a=r+(t.avail_out-257),s=x.dmax,l=x.wsize,A=x.whave,c=x.wnext,h=x.window,d=x.hold,u=x.bits,p=x.lencode,g=x.distcode,f=(1<<x.lenbits)-1,m=(1<<x.distbits)-1;t:do{u<15&&(d+=B[i++]<<u,u+=8,d+=B[i++]<<u,u+=8),y=p[d&f];e:for(;;){if(b=y>>>24,d>>>=b,u-=b,b=y>>>16&255,0===b)w[r++]=65535&y;else{if(!(16&b)){if(64&b){if(32&b){x.mode=16191;break t}t.msg="invalid literal/length code",x.mode=pe;break t}y=p[(65535&y)+(d&(1<<b)-1)];continue e}for(v=65535&y,b&=15,b&&(u<b&&(d+=B[i++]<<u,u+=8),v+=d&(1<<b)-1,d>>>=b,u-=b),u<15&&(d+=B[i++]<<u,u+=8,d+=B[i++]<<u,u+=8),y=g[d&m];;){if(b=y>>>24,d>>>=b,u-=b,b=y>>>16&255,16&b){if(E=65535&y,b&=15,u<b&&(d+=B[i++]<<u,u+=8,u<b&&(d+=B[i++]<<u,u+=8)),E+=d&(1<<b)-1,E>s){t.msg="invalid distance too far back",x.mode=pe;break t}if(d>>>=b,u-=b,b=r-o,E>b){if(b=E-b,b>A&&x.sane){t.msg="invalid distance too far back",x.mode=pe;break t}if(I=0,C=h,0===c){if(I+=l-b,b<v){v-=b;do{w[r++]=h[I++]}while(--b);I=r-E,C=w}}else if(c<b){if(I+=l+c-b,b-=c,b<v){v-=b;do{w[r++]=h[I++]}while(--b);if(I=0,c<v){b=c,v-=b;do{w[r++]=h[I++]}while(--b);I=r-E,C=w}}}else if(I+=c-b,b<v){v-=b;do{w[r++]=h[I++]}while(--b);I=r-E,C=w}for(;v>2;)w[r++]=C[I++],w[r++]=C[I++],w[r++]=C[I++],v-=3;v&&(w[r++]=C[I++],v>1&&(w[r++]=C[I++]))}else{I=r-E;do{w[r++]=w[I++],w[r++]=w[I++],w[r++]=w[I++],v-=3}while(v>2);v&&(w[r++]=w[I++],v>1&&(w[r++]=w[I++]))}break}if(64&b){t.msg="invalid distance code",x.mode=pe;break t}y=g[(65535&y)+(d&(1<<b)-1)]}}break}}while(i<n&&r<a);v=u>>3,i-=v,u-=v<<3,d&=(1<<u)-1,t.next_in=i,t.next_out=r,t.avail_in=i<n?n-i+5:5-(i-n),t.avail_out=r<a?a-r+257:257-(r-a),x.hold=d,x.bits=u};const fe=15,me=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ye=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),be=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ve=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var Ee=(t,e,i,n,r,o,a,s)=>{const l=s.bits;let A,c,h,d,u,p,g=0,f=0,m=0,y=0,b=0,v=0,E=0,I=0,C=0,B=0,w=null;const x=new Uint16Array(16),Q=new Uint16Array(16);let S,k,D,_=null;for(g=0;g<=fe;g++)x[g]=0;for(f=0;f<n;f++)x[e[i+f]]++;for(b=l,y=fe;y>=1&&0===x[y];y--);if(b>y&&(b=y),0===y)return r[o++]=20971520,r[o++]=20971520,s.bits=1,0;for(m=1;m<y&&0===x[m];m++);for(b<m&&(b=m),I=1,g=1;g<=fe;g++)if(I<<=1,I-=x[g],I<0)return-1;if(I>0&&(0===t||1!==y))return-1;for(Q[1]=0,g=1;g<fe;g++)Q[g+1]=Q[g]+x[g];for(f=0;f<n;f++)0!==e[i+f]&&(a[Q[e[i+f]]++]=f);if(0===t?(w=_=a,p=20):1===t?(w=me,_=ye,p=257):(w=be,_=ve,p=0),B=0,f=0,g=m,u=o,v=b,E=0,h=-1,C=1<<b,d=C-1,
1===t&&C>852||2===t&&C>592)return 1;for(;;){S=g-E,a[f]+1<p?(k=0,D=a[f]):a[f]>=p?(k=_[a[f]-p],D=w[a[f]-p]):(k=96,D=0),A=1<<g-E,c=1<<v,m=c;do{c-=A,r[u+(B>>E)+c]=S<<24|k<<16|D}while(0!==c);for(A=1<<g-1;B&A;)A>>=1;if(0!==A?(B&=A-1,B+=A):B=0,f++,0==--x[g]){if(g===y)break;g=e[i+a[f]]}if(g>b&&(B&d)!==h){for(0===E&&(E=b),u+=m,v=g-E,I=1<<v;v+E<y&&(I-=x[v+E],!(I<=0));)v++,I<<=1;if(C+=1<<v,1===t&&C>852||2===t&&C>592)return 1;h=B&d,r[h]=b<<24|v<<16|u-o}}return 0!==B&&(r[u+B]=g-E<<24|64<<16),s.bits=b,0};const{Z_FINISH:Ie,Z_BLOCK:Ce,Z_TREES:Be,Z_OK:we,Z_STREAM_END:xe,Z_NEED_DICT:Qe,Z_STREAM_ERROR:Se,Z_DATA_ERROR:ke,Z_MEM_ERROR:De,Z_BUF_ERROR:_e,Z_DEFLATED:Re}=j,Me=16180,Te=16190,Fe=16191,Le=16192,Ne=16194,Pe=16199,Ue=16200,Oe=16206,Ge=16209,He=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Ve(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ye=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Me||e.mode>16211?1:0},ze=t=>{if(Ye(t))return Se;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Me,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,we},We=t=>{if(Ye(t))return Se;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ze(t)},Ze=(t,e)=>{let i;if(Ye(t))return Se;const n=t.state;return e<0?(i=0,e=-e):(i=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Se:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,We(t))},je=(t,e)=>{if(!t)return Se;const i=new Ve;t.state=i,i.strm=t,i.window=null,i.mode=Me;const n=Ze(t,e);return n!==we&&(t.state=null),n};let qe,Je,Ke=!0;const Xe=t=>{if(Ke){qe=new Int32Array(512),Je=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ee(1,t.lens,0,288,qe,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ee(2,t.lens,0,32,Je,0,t.work,{bits:5}),Ke=!1}t.lencode=qe,t.lenbits=9,t.distcode=Je,t.distbits=5},$e=(t,e,i,n)=>{let r;const o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),n>=o.wsize?(o.window.set(e.subarray(i-o.wsize,i),0),o.wnext=0,o.whave=o.wsize):(r=o.wsize-o.wnext,r>n&&(r=n),o.window.set(e.subarray(i-n,i-n+r),o.wnext),(n-=r)?(o.window.set(e.subarray(i-n,i),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0};var ti={inflateReset:We,inflateReset2:Ze,inflateResetKeep:ze,inflateInit:t=>je(t,15),inflateInit2:je,inflate:(t,e)=>{let i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B=0;const w=new Uint8Array(4);let x,Q;const S=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ye(t)||!t.output||!t.input&&0!==t.avail_in)return Se;i=t.state,i.mode===Fe&&(i.mode=Le),a=t.next_out,r=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,A=i.hold,c=i.bits,h=s,d=l,C=we;t:for(;;)switch(i.mode){case Me:if(0===i.wrap){i.mode=Le;break}for(;c<16;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(2&i.wrap&&35615===A){0===i.wbits&&(i.wbits=15),i.check=0,w[0]=255&A,w[1]=A>>>8&255,i.check=W(i.check,w,2,0),A=0,c=0,i.mode=16181;break}if(i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&A)<<8)+(A>>8))%31){t.msg="incorrect header check",i.mode=Ge;break}if((15&A)!==Re){t.msg="unknown compression method",i.mode=Ge;break}if(A>>>=4,c-=4,I=8+(15&A),0===i.wbits&&(i.wbits=I),I>15||I>i.wbits){t.msg="invalid window size",i.mode=Ge;break}i.dmax=1<<i.wbits,i.flags=0,t.adler=i.check=1,i.mode=512&A?16189:Fe,A=0,c=0;break;case 16181:for(;c<16;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(i.flags=A,(255&i.flags)!==Re){t.msg="unknown compression method",i.mode=Ge;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=Ge;break}i.head&&(i.head.text=A>>8&1),512&i.flags&&4&i.wrap&&(w[0]=255&A,w[1]=A>>>8&255,i.check=W(i.check,w,2,0)),A=0,c=0,i.mode=16182;case 16182:for(;c<32;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}i.head&&(i.head.time=A),512&i.flags&&4&i.wrap&&(w[0]=255&A,w[1]=A>>>8&255,w[2]=A>>>16&255,w[3]=A>>>24&255,i.check=W(i.check,w,4,0)),A=0,c=0,i.mode=16183;case 16183:for(;c<16;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}i.head&&(i.head.xflags=255&A,i.head.os=A>>8),512&i.flags&&4&i.wrap&&(w[0]=255&A,w[1]=A>>>8&255,i.check=W(i.check,w,2,0)),A=0,c=0,i.mode=16184;case 16184:if(1024&i.flags){for(;c<16;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}i.length=A,i.head&&(i.head.extra_len=A),512&i.flags&&4&i.wrap&&(w[0]=255&A,w[1]=A>>>8&255,i.check=W(i.check,w,2,0)),A=0,c=0}else i.head&&(i.head.extra=null);i.mode=16185;case 16185:if(1024&i.flags&&(u=i.length,u>s&&(u=s),u&&(i.head&&(I=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(n.subarray(o,o+u),I)),512&i.flags&&4&i.wrap&&(i.check=W(i.check,n,u,o)),s-=u,o+=u,i.length-=u),i.length))break t;i.length=0,i.mode=16186;case 16186:if(2048&i.flags){if(0===s)break t;u=0;do{I=n[o+u++],i.head&&I&&i.length<65536&&(i.head.name+=String.fromCharCode(I))}while(I&&u<s);if(512&i.flags&&4&i.wrap&&(i.check=W(i.check,n,u,o)),s-=u,o+=u,I)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=16187;case 16187:if(4096&i.flags){if(0===s)break t;u=0;do{I=n[o+u++],i.head&&I&&i.length<65536&&(i.head.comment+=String.fromCharCode(I))}while(I&&u<s);if(512&i.flags&&4&i.wrap&&(i.check=W(i.check,n,u,o)),s-=u,o+=u,I)break t}else i.head&&(i.head.comment=null);i.mode=16188;case 16188:if(512&i.flags){for(;c<16;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(4&i.wrap&&A!==(65535&i.check)){t.msg="header crc mismatch",i.mode=Ge;break}A=0,c=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=Fe;break;case 16189:for(;c<32;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}t.adler=i.check=He(A),A=0,c=0,i.mode=Te;case Te:if(0===i.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,i.hold=A,i.bits=c,Qe;t.adler=i.check=1,i.mode=Fe;case Fe:if(e===Ce||e===Be)break t;case Le:if(i.last){A>>>=7&c,c-=7&c,i.mode=Oe;break}for(;c<3;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}switch(i.last=1&A,A>>>=1,c-=1,3&A){case 0:i.mode=16193;break;case 1:if(Xe(i),i.mode=Pe,e===Be){A>>>=2,c-=2;break t}break;case 2:i.mode=16196;break;case 3:t.msg="invalid block type",i.mode=Ge}A>>>=2,c-=2;break;case 16193:for(A>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if((65535&A)!=(A>>>16^65535)){t.msg="invalid stored block lengths",i.mode=Ge;break}if(i.length=65535&A,A=0,c=0,i.mode=Ne,e===Be)break t;case Ne:i.mode=16195;case 16195:if(u=i.length,u){if(u>s&&(u=s),u>l&&(u=l),0===u)break t;r.set(n.subarray(o,o+u),a),s-=u,o+=u,l-=u,a+=u,i.length-=u;break}i.mode=Fe;break;case 16196:for(;c<14;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(i.nlen=257+(31&A),A>>>=5,c-=5,i.ndist=1+(31&A),A>>>=5,c-=5,i.ncode=4+(15&A),A>>>=4,c-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=Ge;break}i.have=0,i.mode=16197;case 16197:for(;i.have<i.ncode;){for(;c<3;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}i.lens[S[i.have++]]=7&A,A>>>=3,c-=3}for(;i.have<19;)i.lens[S[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,x={bits:i.lenbits},C=Ee(0,i.lens,0,19,i.lencode,0,i.work,x),i.lenbits=x.bits,C){t.msg="invalid code lengths set",i.mode=Ge;break}i.have=0,i.mode=16198;case 16198:for(;i.have<i.nlen+i.ndist;){for(;B=i.lencode[A&(1<<i.lenbits)-1],f=B>>>24,m=B>>>16&255,y=65535&B,!(f<=c);){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(y<16)A>>>=f,c-=f,i.lens[i.have++]=y;else{if(16===y){for(Q=f+2;c<Q;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(A>>>=f,c-=f,0===i.have){t.msg="invalid bit length repeat",i.mode=Ge;break}I=i.lens[i.have-1],u=3+(3&A),A>>>=2,c-=2}else if(17===y){for(Q=f+3;c<Q;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}A>>>=f,c-=f,I=0,
u=3+(7&A),A>>>=3,c-=3}else{for(Q=f+7;c<Q;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}A>>>=f,c-=f,I=0,u=11+(127&A),A>>>=7,c-=7}if(i.have+u>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=Ge;break}for(;u--;)i.lens[i.have++]=I}}if(i.mode===Ge)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=Ge;break}if(i.lenbits=9,x={bits:i.lenbits},C=Ee(1,i.lens,0,i.nlen,i.lencode,0,i.work,x),i.lenbits=x.bits,C){t.msg="invalid literal/lengths set",i.mode=Ge;break}if(i.distbits=6,i.distcode=i.distdyn,x={bits:i.distbits},C=Ee(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,x),i.distbits=x.bits,C){t.msg="invalid distances set",i.mode=Ge;break}if(i.mode=Pe,e===Be)break t;case Pe:i.mode=Ue;case Ue:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,i.hold=A,i.bits=c,ge(t,d),a=t.next_out,r=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,A=i.hold,c=i.bits,i.mode===Fe&&(i.back=-1);break}for(i.back=0;B=i.lencode[A&(1<<i.lenbits)-1],f=B>>>24,m=B>>>16&255,y=65535&B,!(f<=c);){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(m&&!(240&m)){for(b=f,v=m,E=y;B=i.lencode[E+((A&(1<<b+v)-1)>>b)],f=B>>>24,m=B>>>16&255,y=65535&B,!(b+f<=c);){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}A>>>=b,c-=b,i.back+=b}if(A>>>=f,c-=f,i.back+=f,i.length=y,0===m){i.mode=16205;break}if(32&m){i.back=-1,i.mode=Fe;break}if(64&m){t.msg="invalid literal/length code",i.mode=Ge;break}i.extra=15&m,i.mode=16201;case 16201:if(i.extra){for(Q=i.extra;c<Q;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}i.length+=A&(1<<i.extra)-1,A>>>=i.extra,c-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=16202;case 16202:for(;B=i.distcode[A&(1<<i.distbits)-1],f=B>>>24,m=B>>>16&255,y=65535&B,!(f<=c);){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(!(240&m)){for(b=f,v=m,E=y;B=i.distcode[E+((A&(1<<b+v)-1)>>b)],f=B>>>24,m=B>>>16&255,y=65535&B,!(b+f<=c);){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}A>>>=b,c-=b,i.back+=b}if(A>>>=f,c-=f,i.back+=f,64&m){t.msg="invalid distance code",i.mode=Ge;break}i.offset=y,i.extra=15&m,i.mode=16203;case 16203:if(i.extra){for(Q=i.extra;c<Q;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}i.offset+=A&(1<<i.extra)-1,A>>>=i.extra,c-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=Ge;break}i.mode=16204;case 16204:if(0===l)break t;if(u=d-l,i.offset>u){if(u=i.offset-u,u>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=Ge;break}u>i.wnext?(u-=i.wnext,p=i.wsize-u):p=i.wnext-u,u>i.length&&(u=i.length),g=i.window}else g=r,p=a-i.offset,u=i.length;u>l&&(u=l),l-=u,i.length-=u;do{r[a++]=g[p++]}while(--u);0===i.length&&(i.mode=Ue);break;case 16205:if(0===l)break t;r[a++]=i.length,l--,i.mode=Ue;break;case Oe:if(i.wrap){for(;c<32;){if(0===s)break t;s--,A|=n[o++]<<c,c+=8}if(d-=l,t.total_out+=d,i.total+=d,4&i.wrap&&d&&(t.adler=i.check=i.flags?W(i.check,r,d,a-d):Y(i.check,r,d,a-d)),d=l,4&i.wrap&&(i.flags?A:He(A))!==i.check){t.msg="incorrect data check",i.mode=Ge;break}A=0,c=0}i.mode=16207;case 16207:if(i.wrap&&i.flags){for(;c<32;){if(0===s)break t;s--,A+=n[o++]<<c,c+=8}if(4&i.wrap&&A!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=Ge;break}A=0,c=0}i.mode=16208;case 16208:C=xe;break t;case Ge:C=ke;break t;case 16210:return De;default:return Se}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,i.hold=A,i.bits=c,(i.wsize||d!==t.avail_out&&i.mode<Ge&&(i.mode<Oe||e!==Ie))&&$e(t,t.output,t.next_out,d-t.avail_out),h-=t.avail_in,d-=t.avail_out,t.total_in+=h,t.total_out+=d,i.total+=d,4&i.wrap&&d&&(t.adler=i.check=i.flags?W(i.check,r,d,t.next_out-d):Y(i.check,r,d,t.next_out-d)),t.data_type=i.bits+(i.last?64:0)+(i.mode===Fe?128:0)+(i.mode===Pe||i.mode===Ne?256:0),(0===h&&0===d||e===Ie)&&C===we&&(C=_e),C},inflateEnd:t=>{if(Ye(t))return Se;let e=t.state;return e.window&&(e.window=null),t.state=null,we},inflateGetHeader:(t,e)=>{if(Ye(t))return Se;const i=t.state;return 2&i.wrap?(i.head=e,e.done=!1,we):Se},inflateSetDictionary:(t,e)=>{const i=e.length;let n,r,o;return Ye(t)?Se:(n=t.state,0!==n.wrap&&n.mode!==Te?Se:n.mode===Te&&(r=1,r=Y(r,e,i,0),r!==n.check)?ke:(o=$e(t,e,i,i),o?(n.mode=16210,De):(n.havedict=1,we)))},inflateInfo:"pako inflate (from Nodeca project)"};var ei=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const ii=Object.prototype.toString,{Z_NO_FLUSH:ni,Z_FINISH:ri,Z_OK:oi,Z_STREAM_END:ai,Z_NEED_DICT:si,Z_STREAM_ERROR:li,Z_DATA_ERROR:Ai,Z_MEM_ERROR:ci}=j;function hi(t){this.options=Zt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new te,this.strm.avail_out=0;let i=ti.inflateInit2(this.strm,e.windowBits);if(i!==oi)throw new Error(Z[i]);if(this.header=new ei,ti.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Kt(e.dictionary):"[object ArrayBuffer]"===ii.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=ti.inflateSetDictionary(this.strm,e.dictionary),i!==oi)))throw new Error(Z[i])}function di(t,e){const i=new hi(e);if(i.push(t),i.err)throw i.msg||Z[i.err];return i.result}hi.prototype.push=function(t,e){const i=this.strm,n=this.options.chunkSize,r=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=e===~~e?e:!0===e?ri:ni,"[object ArrayBuffer]"===ii.call(t)?i.input=new Uint8Array(t):i.input=t,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(n),i.next_out=0,i.avail_out=n),o=ti.inflate(i,a),o===si&&r&&(o=ti.inflateSetDictionary(i,r),o===oi?o=ti.inflate(i,a):o===Ai&&(o=si));i.avail_in>0&&o===ai&&i.state.wrap>0&&0!==t[i.next_in];)ti.inflateReset(i),o=ti.inflate(i,a);switch(o){case li:case Ai:case si:case ci:return this.onEnd(o),this.ended=!0,!1}if(s=i.avail_out,i.next_out&&(0===i.avail_out||o===ai))if("string"===this.options.to){let t=$t(i.output,i.next_out),e=i.next_out-t,r=Xt(i.output,t);i.next_out=e,i.avail_out=n-e,e&&i.output.set(i.output.subarray(t,t+e),0),this.onData(r)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(o!==oi||0!==s){if(o===ai)return o=ti.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===i.avail_in)break}}return!0},hi.prototype.onData=function(t){this.chunks.push(t)},hi.prototype.onEnd=function(t){t===oi&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=jt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ui={Inflate:hi,inflate:di,inflateRaw:function(t,e){return(e=e||{}).raw=!0,di(t,e)},ungzip:di,constants:j};const{Deflate:pi,deflate:gi,deflateRaw:fi,gzip:mi}=ue,{Inflate:yi,inflate:bi,inflateRaw:vi,ungzip:Ei}=ui;var Ii={Deflate:pi,deflate:gi,deflateRaw:fi,gzip:mi,Inflate:yi,inflate:bi,inflateRaw:vi,ungzip:Ei,constants:j},Ci=i(22451);class Bi extends n.vq{constructor(){super(...arguments),this.padding=0,this.direction="bottom",this.perPart=22,this.ratioError=0,this.interactiveSvg=null}install(){return super.install(),this.maskWrap=this.container.querySelector(`.${this.ppx}-dm-mask-wrap`),this.rootPlayer.on(n.p2.PLAYER_UNLOAD,(()=>{var t;const e=this.dmMaskStore.maskTrack;((t=this.metricStore.quitInfo).dmInfo||(t.dmInfo={})).dmMask=e})),this.dc.dmMask=(0,Ci.EH)((()=>{const{maskUrl:t}=this.dmMaskStore.state,{dmask:e}=this.dmSettingStore.state,i=this.sendStore.dmVisible,{state:r}=this.danmakuStore.state,o=this.portStore.getScreenKind()===n.dY.Pip;e&&t&&i&&!r&&!o?(this.disable=!1,this.showMask()):(this.disable=!0,this.cancelAnimation(),this.cMask="",this.setMaskImage(),this.dropFrameExtra.removeListener("maskDrop")),this.dmMaskStore.setState({disable:this.disable})})),this}showMask(){this.inited?this.play():(this.inited=!0,this.maskList={list:[],dataList:[]},this.blackSide={top:48,left:7},this.autoFps={slow:0,fast:0},this.loadingTime={start:0,end:0},this.fps=24,this.playerSize={},this.startTime=0,this.paused=!0,this.isGettingheader=!0,this.bufferOffset=0,this.headerLength=16,
this.getHeader(this.bufferOffset,this.headerLength),this.track.e("mask_load_start"),this.globalEvents())}setFPS(t){const e=Number(t);e<=0?this.fps=1:e>this.maxfps?this.fps=this.maxfps:this.fps=e}play(){this.paused=!1,this.maskStart=0,this.lockStart=0,this.setAnimation(),this.dropFrameExtra.addListener("maskDrop",(()=>{this.toastStore.create({text:"丢帧严重，已自动关闭防挡弹幕",duration:2e3}),this.dmSettingStore.setState({dmask:!1,dmaskForce:!0})}))}globalEvents(){this.dc.maskMaxfps=(0,Ci.EH)((()=>{this.maxfps=this.dmMaskStore.state.maxfps})),this.dc.maskMirror=(0,Ci.EH)((()=>{this.isMirror=this.settingStore.state.mirror}));const t=(0,o.Z)((()=>{this.resize()}),40);this.dc.maskResize=(0,Ci.EH)((()=>{const e=this.uiStore.state;this.playerSize.clientH=e.videoAreaHeight,this.playerSize.clientW=e.videoAreaWidth,this.hasBlackside=this.uiStore.hasBlackGap;const i=this.settingStore.state.aspectRatio;this.videoSize={"4:3":.75,"16:9":.5625}[i],t()})),this.dc.maskScreenMode=(0,Ci.EH)((()=>{this.setFPS(this.dmMaskStore.state.fps)})),this.dc.maskPause=(0,Ci.EH)((()=>{this.mediaStore.state.paused?this.paused=!0:this.play()}))}setInfo(){if(!this.maskStart)return;const t=Date.now(),e=1e3/(t-this.maskStart);e<.7*this.fps?(this.autoFps.slow?t-this.autoFps.slow>1e3&&(this.setFPS(--this.fps),this.autoFps.slow=0):this.autoFps.slow=t,this.autoFps.fast=0):(this.autoFps.slow=0,this.autoFps.fast?t-this.autoFps.fast>1e3&&(this.setFPS(++this.fps),this.autoFps.fast=0):this.autoFps.fast=t),this.lockSended||(e<10?this.lockStart?t-this.lockStart>3e3&&(this.lockSended=!0,this.track.e("mask_locked")):this.lockStart=t:this.lockStart=0)}setRatio(){this.ratioError||(this.ratioError=1,this.track.e("mask_ratio_error"))}setAnimation(){this.paused||this.disable||this.isGettingheader||(this.cancelAnimation(),this.animate=window.requestAnimationFrame((t=>{t-this.startTime>1e3/this.fps&&(this.startTime=t,this.render()),this.setAnimation()})))}cancelAnimation(){this.animate&&window.cancelAnimationFrame(this.animate)}render(){this.setInfo(),this.maskStart=Date.now();const t=1e3*this.portStore.getCurrentTime()||0;let e=[];this.maskList.dataList.forEach((i=>{i.start<=t&&t<i.end&&(e=i.data)}));const i=e?e.length:0;if(i<=0)return this.cMask="",this.setMaskImage(),void((0===this.loadingTime.end||t<this.loadingTime.start&&t>=this.loadingTime.end)&&this.loadMask(t));let n;const r=Math.floor(1e3/this.fps);for(let o=0;o<i;o++){const i=e[o];if(t+r<=i.time&&i.time<t+3*r){n=i;break}}n&&this.maskTime!==n.time&&(this.maskTime=n.time,this.cMask=n.data,this.setMaskImage())}setMaskImage(){let t="";if(this.cMask){const e=this.parseBase64(this.cMask);if(t=`linear-gradient(to ${this.direction},\n                rgba(0,0,0,1),\n                rgba(0,0,0,1) ${this.padding}%,\n                rgba(0,0,0,0) ${this.padding}%),\n                linear-gradient(to ${this.direction},\n                rgba(0,0,0,0) ${100-this.padding}%,\n                rgba(0,0,0,1) ${100-this.padding}%,\n                rgba(0,0,0,1)),url(${e})`,this.hasBlackside){let e="bottom";"bottom"===this.direction&&(e="right"),t=`linear-gradient(to ${e},\n                    rgba(0,0,0,1),\n                    rgba(0,0,0,1) ${this.playerSize.padding}%,\n                    rgba(0,0,0,0) ${this.playerSize.padding}%),\n                    linear-gradient(to ${e},\n                    rgba(0,0,0,0) ${100-this.playerSize.padding}%,\n                    rgba(0,0,0,1) ${100-this.playerSize.padding}%,\n                    rgba(0,0,0,1)), ${t}`}}this.maskWrap&&(this.maskWrap.style.cssText=`-webkit-mask-image: ${t}`),this.updateInteractiveSvg()}resize(){let t=this.mediaStore.aspectRatio;if(this.maskSize&&this.maskSize.height&&this.maskSize.width){const e=this.maskSize.height/this.maskSize.width;Math.abs(t-e)>.05&&(this.setRatio(),t=e)}const e=this.playerSize.clientW,i=this.playerSize.clientH;let n,r;this.hasBlackside?(n=e-2*this.blackSide.left,r=i-2*this.blackSide.top):(n=e,r=i),t<=r/n?this.toBottom(n,r,t):this.toRight(n,r,t),this.paused&&this.setMaskImage()}toBottom(t,e,i){if(this.playerSize.videoW=t,this.playerSize.videoH=t*i,this.direction="bottom",this.videoSize)if(i>e/t)this.playerSize.videoH=this.playerSize.videoW*this.videoSize,this.playerSize.scale=this.playerSize.videoW*i/this.playerSize.videoH+",1";else{const n=this.playerSize.videoH;if(this.playerSize.videoH=this.playerSize.videoW*this.videoSize,this.playerSize.videoH>e)return void this.toRight(t,e,i);let r=this.playerSize.videoH/n;this.playerSize.scale=r>1?`1,${r}`:1/r+",1"}else this.playerSize.scale="1,1.001";this.padding=100*(1-this.playerSize.videoH/this.playerSize.clientH)/2,this.playerSize.padding=100*this.blackSide.left/this.playerSize.clientW}toRight(t,e,i){if(this.playerSize.videoW=e/i,this.playerSize.videoH=e,this.direction="right",this.videoSize){const n=this.playerSize.videoW;if(this.playerSize.videoW=this.playerSize.videoH/this.videoSize,this.playerSize.videoW>t)return void this.toBottom(t,e,i);let r=this.playerSize.videoW/n;this.playerSize.scale=r>1?`${r},1`:"1,"+1/r}else this.playerSize.scale="1.001,1";this.padding=100*(1-this.playerSize.videoW/this.playerSize.clientW)/2,this.playerSize.padding=100*this.blackSide.top/this.playerSize.clientH}getHeader(t,e){this.dmMaskStore.getBufferRange(t,e).then((t=>{this.bufferOffset=e;const i=new DataView(t.data);this.decoder||(this.decoder=r()),this.header={tag:this.decoder.decode(t.data.slice(0,4)),version:i.getInt32(4),codeId:i.getInt8(8),reserved:i.getInt32(8),entryNum:i.getInt32(12)};const n=16*this.header.entryNum;"MASK"===this.header.tag&&2===this.header.codeId&&this.getTopList(e,e+n)})).catch((t=>{this.track.e("dm_mask_err",t)}))}getTopList(t,e){this.dmMaskStore.getBufferRange(t,e).then((t=>{this.isGettingheader=!1,this.bufferOffset=e;const i=new DataView(t.data);let n=0;for(let t=0;t<this.header.entryNum;t++)if(0===i.getInt32(n)&&0===i.getInt32(n+8)){const t=i.getInt32(n+4),e=i.getInt32(n+12);n+=16,this.maskList.list.push({time:t,offset:e})}let r=this.maskList.list.length;const o=1e3*this.portStore.getDuration();o>this.maskList.list[r-1].time&&(this.maskList.list.push({time:o,offset:-1}),r++),this.perPart=r>this.perPart?this.perPart:r,this.loadMask(1e3),this.animate||this.setAnimation()})).catch((t=>{this.track.e("dm_mask_err",t)}))}loadMask(t){let e,i;for(let n=0,r=this.maskList.list.length;n<r;){const o=this.maskList.list[n];let a=this.maskList.list[n+this.perPart];if(i=n+this.perPart,a||(i=r-1,a=this.maskList.list[i]),o.time<=t&&t<a.time){e=n;break}n+=this.perPart}if(void 0===e)return;const n=this.maskList.list[e],r=this.maskList.list[i],o=n.offset,a=r.offset;this.loadingTime={start:n.time,end:r.time},this.dmMaskStore.getBufferRange(o,a).then((t=>{this.bufferOffset=a;let n=this.maskList.list[e].offset;for(let r=e;r<i;r++){let i;const o=this.maskList.list[r+1].offset;i=-1===o?t.data.slice(this.maskList.list[r].offset-n):t.data.slice(this.maskList.list[r].offset-n,o-n);const a=Ii.inflate(new Uint8Array(i)).buffer,s=0===e&&0===r?0:this.maskList.list[r].time;this.parse(s,this.maskList.list[r+1].time,a)}this.loadingTime={start:0,end:0},this.parseBase64(this.maskList.dataList[0].data[0].data)})).catch((t=>{this.track.e("dm_mask_err",t)}))}parse(t,e,i){const n=[];let o,a;this.decoder||(this.decoder=r());const s=new DataView(i);for(let t=0,e=s.byteLength;t<e;)o=s.getInt32(t),a=s.getInt32(t+8),n.push({time:a,data:this.decoder.decode(i.slice(t+12,t+12+o))}),t=t+12+o;this.maskList.dataList.push({start:t,end:e,data:n})}parseBase64(t){let e="data:image/svg+xml;base64,",i=window.atob(t.replace(e,""));if(this.maskSize){let t=this.isMirror?"rotateY(180deg) ":"";return t+=this.playerSize.scale?`scale(${this.playerSize.scale})`:"",t=t?`style="transform:${t};" `:"",t+=`height="${this.playerSize.videoH}px"`,i=i.replace(this.maskSize.replaceWidth,`width="${this.playerSize.videoW}px"`),i=i.replace(this.maskSize.replaceHeight,t),e+window.btoa(i)}{const t=i.match(/width="(\S*)"/),e=i.match(/height="(\S*)"/);t&&e&&(this.maskSize={replaceWidth:t[0],replaceHeight:e[0],width:parseInt(t[1],10),height:parseInt(e[1],10)},this.resize())}return t}generateSvgFromMask(){var t;if(!this.cMask)return null;try{
const e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(null==(t=this.cMask)?void 0:t.startsWith("data:image/svg+xml;base64,")){const t=this.cMask.replace(/^data:image\/svg\+xml;base64,/,""),i=atob(t),n=(new DOMParser).parseFromString(i,"image/svg+xml"),r=n.querySelector("svg");if(r){["viewBox","width","height","preserveAspectRatio"].forEach((t=>{const i=r.getAttribute(t);i&&e.setAttribute(t,i)}));const t=n.querySelector("g");if(t){const i=t.getAttribute("transform");if(i){const n=document.createElementNS("http://www.w3.org/2000/svg","g");n.setAttribute("transform",i),e.appendChild(n);t.querySelectorAll("path").forEach((t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",t.getAttribute("d")||""),e.setAttribute("fill",t.getAttribute("fill")||"#000"),n.appendChild(e)}))}}}return e}return null}catch(t){return null}}updateInteractiveSvg(){try{this.dmMaskStore.dmMaskSvg=null;const t=this.generateSvgFromMask();t&&(t.style.position="absolute",t.style.visibility="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.setAttribute("aria-hidden","true"),this.dmMaskStore.dmMaskSvg=t)}catch(t){this.dmMaskStore.dmMaskSvgInfo=null}}onDispose(){super.onDispose(),this.cancelAnimation(),this.inited=!1,this.maskSize=null,this.interactiveSvg=null}}},42353:function(t,e,i){"use strict";i.d(e,{b:function(){return y}});var n=i(57012),r=i(22451),o=i(99149),a=i(99550),s=i(27097),l=i(5489),A=i(51839),c=i(92853),h=i.n(c),d=i(59229),u=i.n(d),p=i(96253),g=i.n(p),f=i(96827),m=i.n(f);class y extends l.vq{constructor(){super(...arguments),this.inited=!1,this.littleFont="",this.vipPromise=null}install(){super.install(),this.danmakubtn=this.container.querySelector(`.${this.ppx}-video-btn-dm`),this.componentName="mode-selection",this.globalEvents(),this.dc.updm=(0,r.U5)((()=>this.dmModeStore.state.checkBoxValue),(t=>{var e;null==(e=this.upDm)||e.value(t),this.trackExtra.p("player.dm-send-up-checkbox.click ",l.p0.Click,{upcheckbox:t?1:0})}),{fireImmediately:!0})}show(){if(!this.inited){this.inited=!0,this.danmakubtn.appendChild(this.renderFragment()),this.wrap=this.danmakubtn.querySelector(`.${this.cssPrefix("container")}`),this.panel=this.danmakubtn.querySelector(`.${this.cssPrefix("panel")}`),this.loginBtn=this.danmakubtn.querySelector(".login-btn");new n.zx(this.loginBtn,{type:"blue",text:"请先登录"}).on("click",(()=>{this.userStore.requestQuickLogin()})),this.dc.fontSize=(0,r.U5)((()=>this.dmModeStore.state.fontsize),(t=>{this.trackExtra.p("player.dm-send-size.click",l.p0.Click,{size:18===t?"small":"standard"})})),this.dc.dmMode=(0,r.U5)((()=>this.dmModeStore.state.mode),(t=>{this.trackExtra.p("player.dm-send-mode.click",l.p0.Click,{mode:1===t?2:4===t?3:1})})),this.dc.sendSetting=(0,r.U5)((()=>{const{dmRights:t,mid:e,level:i,err:n}=this.sendStore.state;return{dmRights:t,level:i,err:n,login:e||n,checkBox:this.danmakuStore.state.checkBox}}),(({dmRights:t,login:e,level:i,checkBox:n})=>{const{checkBoxValue:r}=this.dmModeStore.state;t?this.initializeRows(Boolean(e),t.pool,t.fontsize,t.mode,i):this.initializeRows(),this.update(n,r)}),{fireImmediately:!0}),this.dc.vipOrderPromotion=(0,r.U5)((()=>{const{level:t}=this.sendStore.state;return{colorfulPanel:this.dmModeStore.state.colorfulPanel,level:t}}),(({colorfulPanel:t,level:e})=>{if((null==t?void 0:t.length)>0&&e>1){const e=this.cssPrefix("row");this.panel.appendChild((0,o.i)(`<div class="${e} color vip-color">\n                                    <div class="row-title">大会员专属颜色</div>\n                                    <div class="row-selection vip-danmaku-color">\n                                        <ul class="vip-color-picker-options"></ul>\n                                    </div>\n                                </div>`));const i=this.panel.querySelector(".vip-color-picker-options");t.forEach((t=>{const e=`<li style = "background-image:url(${t.icon_web})"></li>`,n=(0,a.t)(e);n.setAttribute("data-colorful",t.type+""),i.append(n),n.addEventListener("click",(t=>{var e;if(null==(e=this.dmModeStore.state.colorfulPrivilegeDetails)?void 0:e.vipOrderPromotion)this.userStore.requestSuperColorGuide({appId:181,appSubId:"webdmqy",subtitle:"大会员专属弹幕颜色",sourceFrom:"vip.membership-purchase.open-pop-up.0.click"});else{this.dmModeStore.setState({colorful:Number(n.dataset.colorful)}),this.dmModeStore.setState({color:(0,s.Z)("#FFFFFF")}),this.danmakuColorPicker.value("#",!1);const t=this.danmakuColorPicker.elements.options.querySelector(".buicolor-picker-option-active");t&&t.classList.remove("buicolor-picker-option-active"),this.danmakuColorPicker.elements.display.style.background="rgb(255, 255, 255)",Array.from(n.parentElement.children).forEach((t=>{t.classList.remove("active")})),n.classList.add("active"),this.track.e("danmuku_color")}}))}))}}),{fireImmediately:!0}),this.bindEvents()}}globalEvents(){this.danmakubtn.addEventListener("mouseenter",(()=>{this.clearPanelTimer(!0),this.trackExtra.p("player.dm-send-set.show",l.p0.Appear),this.panelShowTimer=window.setTimeout((()=>{this.open(),this.uiStore.kind!==l.HR.Ugc&&this.uiStore.kind!==l.HR.Pgc||this.getVipColor()}),this.configStore.onlyTouchMode?0:300)})),this.danmakubtn.addEventListener("mouseleave",(()=>{this.panelHideTimer=window.setTimeout((()=>{this.clearPanelTimer()}),this.configStore.onlyTouchMode?0:200)}))}clearPanelTimer(t){this.panelShowTimer&&clearTimeout(this.panelShowTimer),this.panelHideTimer&&(clearTimeout(this.panelHideTimer),this.panelHideTimer=null,t||(this.track.e("danmuku_choose"),this.panelShowTimerDelay&&clearTimeout(this.panelShowTimerDelay),this.close()))}selectionRowTemplate(t){var e;let i="",n="",r="",a="";return(null==(e=null==t?void 0:t.selection)?void 0:e.length)&&(t.selection.forEach((e=>{e.hidden||(r="",e.selected&&(r="active "),e.mask&&(r+="disabled",a=`<div class="selection-span-mask selection-mask-tooltip" data-text="${e.tipText}"></div>`),e.icon&&(a+=`<span class="selection-icon" name="${t.type}_selector">${e.icon}</span>`),a+=`<span class="selection-name" name="${t.type}_selector">${e.name}</span>`,n+=`<div class="selection-span js-action ${r}" data-type="${t.type}" data-value="${e.data}" name="${t.type}_selector">\n                        ${a}\n                    </div>\n                    `),a=""})),i=`<div class="${this.cssPrefix("row")} ${t.type}">\n                <div class="row-title">${t.title}</div>\n                <div class="row-selection ${this.littleFont}">${n}</div>\n            </div>`),(0,o.i)(i)}appendSelectionRow(t,e){e instanceof Array?e.forEach((e=>{this.appendSelectionRow(t,e)})):t.appendChild(this.selectionRowTemplate(e))}updateObj(t,e){var i;Array.isArray(t)&&t.length?null==(i=e.selection)||i.forEach((function(e,i){e.hidden=!t[i],-1===t[i]?(e.mask=!0,e.tipText="等级Lv2解锁此功能"):-2===t[i]?(e.mask=!0,e.tipText="等级Lv3解锁此功能"):(e.mask=!1,e.tipText="")})):e.selection=[]}resetSelectionConfig(){this.MS_TYPE_OBJ={type:"pool",title:"类型",selection:[{name:"普通弹幕",data:0,hidden:!0,selected:!0},{name:"字幕弹幕",data:1,hidden:!0}]},this.MS_SIZE_OBJ={type:"fontsize",title:"字号",selection:[{name:"极小",data:12,hidden:!0},{name:"超小",data:16,hidden:!0},{name:"小",data:18,hidden:!0},{name:"标准",data:25,hidden:!0,selected:!0},{name:"大",data:36,hidden:!0},{name:"超大",data:45,hidden:!0},{name:"极大",data:64,hidden:!0}]},this.MS_MODE_OBJ={type:"mode",title:"模式",selection:[{name:"滚动",icon:h(),data:1,hidden:!0,selected:!0},{name:"顶部",icon:u(),data:5,hidden:!0},{name:"底部",icon:g(),data:4,hidden:!0},{name:"逆向",icon:m(),data:6,hidden:!0}]}}initializeRows(t,e,i,r,a){if(this.resetSelectionConfig(),t){i.reduce(((t,e)=>(t[e]?t[e]++:t[e]=1,t)),{})[1]>4&&(this.littleFont="little-font"),this.updateObj(e,this.MS_TYPE_OBJ),this.updateObj(i,this.MS_SIZE_OBJ),this.updateObj(r,this.MS_MODE_OBJ),this.enable()}else this.updateObj(A.Rs.SEND_POOL_NORMAL,this.MS_TYPE_OBJ),this.updateObj(A.Rs.SEND_FONT_SIZE_NORMAL,this.MS_SIZE_OBJ),this.updateObj(A.Rs.SEND_MODE_NORMAL,this.MS_MODE_OBJ);this.panel.innerHTML="",Array.isArray(e)&&e.some((t=>t>0))&&(this.wrap.classList.add(this.cssPrefix("isVip")),this.isVip=!0),this.appendSelectionRow(this.panel,[this.MS_TYPE_OBJ,this.MS_SIZE_OBJ,this.MS_MODE_OBJ]);const c=this.cssPrefix("row")
;a>1&&(this.panel.appendChild((0,o.i)(`<div class="${c} color"><div class="row-title">颜色</div><div class="row-selection danmaku-color"></div></div>`)),this.danmakuColorPicker=new n.zH(this.panel.querySelector(".danmaku-color"),{width:176,countPerLine:7,dark:!0}),this.danmakuColorPicker.on("change",(t=>{this.dmModeStore.setState({color:(0,s.Z)(t.value),colorful:0});const e=this.panel.querySelector(".vip-color-picker-options");Array.from(e.children).forEach((t=>{t.classList.remove("active")})),this.track.e("danmuku_color"),this.trackExtra.p("player.dm-send-color.click",l.p0.Click,{color:(0,s.Z)(t.value)})})));const h=this.danmakubtn.querySelectorAll(".selection-mask-tooltip");if(null==h?void 0:h.length){let t="";h.forEach(((e,i)=>{t=e.dataset.text,this.tooltipStore.create({name:t+`${i}`,title:t,tip:!0,target:e})}))}}bindEvents(){this.panel.addEventListener("click",(t=>{var e;const i=t.target;if(!i.classList.contains("js-action"))return;const n={};let r,o;i.classList.contains("active")||i.classList.contains("disabled")||(null==(e=i.parentNode.querySelector(".selection-span.active"))||e.classList.remove("active"),i.classList.add("active"),r=i.dataset.type,o=parseInt(i.dataset.value,10),n[r]=o,this.dmModeStore.setState(n),this.upDm&&"pool"===r&&(this.upDm.value(!1),this.upDm.disabled=!!o))}))}getVipColor(){this.vipPromise||(this.vipPromise=this.dmModeStore.vipSwitch(),this.vipPromise.then((t=>{this.dmModeStore.setState(t.body)})))}update(t,e){if(t&&this.inited){const t=this.cssPrefix("row"),i=document.createElement("div");i.className=`${t} updm`;const r=document.createElement("span");r.className=`${t}-up`,i.appendChild(r),this.wrap.classList.add(this.cssPrefix("isadmin")),this.isVip?this.panel.insertBefore(i,this.panel.querySelector(".mode")):this.panel.appendChild(i),this.upDm=new n.XZ(this.panel.querySelector(`.${t}-up`),{name:"带up主身份标识发送",dark:!0,value:e}),this.upDm.on("change",(t=>{t.value?this.wrap.classList.add(this.cssPrefix("hasUp")):this.wrap.classList.remove(this.cssPrefix("hasUp")),t.manual&&(this.dmModeStore.setState({checkBoxValue:t.value}),this.localStore.set({dmSend:{upDm:t.value}}),this.track.e("danmaku_upcheckbox",{upcheckbox:t.value?1:0}))}))}}open(){this.inited||this.show(),this.panelShowTimerDelay=window.setTimeout((()=>{var t;this.panelShowTimerDelay=null,this.wrap.classList.add("active"),(null==(t=this.upDm)?void 0:t.value())?this.wrap.classList.add(this.cssPrefix("hasUp")):this.wrap.classList.remove(this.cssPrefix("hasUp"))}),0)}close(){this.inited||this.show(),this.wrap.classList.remove("active")}enable(){this.inited||this.show(),this.wrap.classList.remove("disabled")}cssPrefix(t){return this.ppx+"-"+this.componentName+"-"+t}renderFragment(){const t=`<div class="${this.cssPrefix("container disabled")}">\n            <div class="${this.cssPrefix("panel")}"></div>\n            <div class="${this.cssPrefix("mask")}">\n                <div class="${this.cssPrefix("mask-warning login-btn")}"></div>\n            </div>\n            </div>\n        </div`;return(0,o.i)(t)}onDispose(){super.onDispose(),this.vipPromise=null}}},1624:function(t,e,i){"use strict";i.d(e,{s:function(){return v}});var n=i(22451),r=i(97956),o=i.n(r),a=i(22121),s=i.n(a),l=i(89262),A=i(99550),c=i(2821);let h=null;function d(t,e){return i=this,n=null,r=function*(){let{params:i}=t;const n=e.kernelStore.baseAgent,r=n?n.getPlayUrl():"",o={current_qn:e.qualityStore.realQ,current_scene:e.uiStore.isFullView?4:5,current_playUrl:r,session_id:e.configStore.session},{id:a,type:s,cancel:l,score:A,title:d}=i;h=e.dmCmdStore.qoeFeedback({id:a,type:s,cancel:l,business_type:"archive",oid:e.configStore.cid,business_data:JSON.stringify(o),scene:3,option_score:A,option_title:d,Buvid3:c.JU.buvid(),user_agent:navigator.userAgent||""});try{yield h}catch(t){h=null}},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}var u=i(5489),p=i(57012),g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,m=Math.pow,y=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?f(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&g(e,i,o),o};const b=class extends u.vq{constructor(){super(...arguments),this.template={},this.element=document.createElement("div"),this.qoeShowed=!1}get currentTime(){return this.portStore.getCurrentTime()}parseQoe(t){var e;try{const i=(null==(e=null==t?void 0:t.layer_mask)?void 0:e.close_count_down_second)||0;let n,r,o,a,s;n=1===t.layer_mask.appear_mode?t.layer_mask.appear_index:t.layer_mask.appear_index*this.portStore.getDuration()/100,this.uiStore.state.videoAreaHeight<this.uiStore.state.videoAreaWidth?(a=20,s=65):(a=10,s=60),o=Array.isArray(t.layer_mask.appear_play_qn)&&0===t.layer_mask.appear_play_qn.length?[16,32,64,80,112,116,120,125,126,127]:t.layer_mask.appear_play_qn,Array.isArray(t.layer_mask.appear_play_scene)&&0===t.layer_mask.appear_play_scene.length?t.layer_mask.appear_play_scene=[1,2,3,4,5]:r=t.layer_mask.appear_play_scene,this.startTime=n,this.endTime=this.startTime+i;return{dmid:"111",command:"#QoeFeedBack#",text:"qoe",stime:n,duration:i,mode:1,modeInfo:{duration:i,posX_2:a,posY_2:s,form:t.form,title:t.title,feedbackTitle:t.feedback_title,type:t.type,appearPlayScene:r,appearPlayQn:o,id:t.id}}}catch(t){return void console.error("error",t)}}insertQoe(t,e){try{if(e.sort(((t,e)=>t.stime-e.stime)),0===e.length)return;const i=e[0],n=e[e.length-1];if(t.stime+2*t.duration<=i.stime)return;if(t.stime>=n.stime+n.duration+.5)return;for(let i=0;i<e.length-1&&!(i+1>=e.length);i++){let n=e[i],r=e[i+1];if(t.stime>=n.stime+n.duration&&t.stime+2*t.duration<=r.stime)return;t.stime<n.stime&&(t.stime=n.duration+n.stime+.5)}t.stime=n.stime+n.duration+.5}catch(t){console.error(t)}}install(){super.install(),this.dc.qoe=(0,n.U5)((()=>this.danmakuStore.state.qoe),(t=>{if(t)try{this.textData=this.parseQoe(JSON.parse(t.info)),this.insertQoe(this.textData,this.danmakuStore.state.cmdDm||[]),this.init()}catch(t){}}),{fireImmediately:!0})}init(){const{appearPlayQn:t,appearPlayScene:e}=this.textData.modeInfo;t.includes(this.qualityStore.realQ)&&e.includes(this.uiStore.isFullView?4:5)&&(this.dc.timeUpdate=(0,n.U5)((()=>this.mediaStore.state.currentTime),(t=>{this.textData&&(t>=this.startTime&&t<=this.endTime?(this.tpl(),this.setCloseBtnPercent(this.currentTime)):this.qoeShowed&&this.free())}),{fireImmediately:!0}),this.dc.resize=(0,n.U5)((()=>{const t=this.uiStore.state,{insideW:e,insideH:i}=this.dmCmdStore.state;return{h:t.videoAreaHeight,w:t.videoAreaWidth,insideW:e,insideH:i}}),(({w:t,h:e})=>{e&&t&&this.resize()}),{fireImmediately:!0}))}tpl(){if(this.qoeShowed)return;const{title:t}=this.textData.modeInfo;this.qoeShowed=!0;let e=`<div class = "${this.ppx}-qoeFeedback-container">\n                <div class = "${this.ppx}-qoeFeedback-wrap">\n                    <div class = "${this.ppx}-qoeFeedback-title"> \n                        <span class = "${this.ppx}-qoeFeedback-title-icon">${o()}</span>\n                        <span class = "${this.ppx}-qoeFeedback-title-text">${t}</span>\n                    </div>\n                </div>\n            </div>`;this.element.innerHTML=e,this.element.className+=` ${this.ppx}-qoeFeedback`,this.renderCloseBtn(),this.resize(),this.template={container:this.element.querySelector(`.${this.ppx}-qoeFeedback-container`),wrap:this.element.querySelector(`.${this.ppx}-qoeFeedback-wrap`),title:this.element.querySelector(`.${this.ppx}-qoeFeedback-title`)},this.template.title.addEventListener("click",this.updateContent),this.nodes.cmdDanmaku.append(this.element)}resize(){const{scaleS:t}=this.getScale();this.element.style.setProperty("--left",`${this.textData.modeInfo.posX_2}%`),this.element.style.setProperty("--top",`${this.textData.modeInfo.posY_2}%`),this.element.style.setProperty("--scale",`${t||1}`)}renderCloseBtn(){this.closeBtn=new p.PZ({wrap:this.element,icon:s(),click:()=>{this.free(),this.cancelReport()}}),this.setCloseBtnPercent(this.currentTime)}setCloseBtnPercent(t){var e;if(!this.closeBtn)return;const{duration:i}=this.textData,n=Math.floor((t-this.startTime)/i*100)
;null==(e=this.closeBtn)||e.value(n)}updateContent(t){if(t.stopPropagation(),this.titleClicked)return;this.titleClicked=!0;const{form:e}=this.textData.modeInfo;2===e.type?this.scoreTpl():3===e.type&&this.voteTpl()}scoreTpl(){this.template.wrap.innerHTML="";const{form:t,title:e}=this.textData.modeInfo,i=`\n            <div class = "${this.ppx}-qoeFeedback-score-container">\n                <div class = "${this.ppx}-qoeFeedback-title"> \n                    <span class = "${this.ppx}-qoeFeedback-title-icon">${o()}</span>\n                    <span class = "${this.ppx}-qoeFeedback-title-text">${e}</span>\n                </div>\n                <div class="${this.ppx}-qoeFeedback-score-star-wrap"> \n                </div>\n            </div>\n        `;this.template.wrap.innerHTML=i,this.element.classList.add(`${this.ppx}-qoeFeedback-score`),this.template.scoreStar=this.element.querySelector(`.${this.ppx}-qoeFeedback-score-star`),this.template.scoreWrap=this.element.querySelector(`.${this.ppx}-qoeFeedback-score-star-wrap`),this.template.scoreContainer=this.element.querySelector(`.${this.ppx}-qoeFeedback-score-container`),t.options.forEach((t=>{const e=`<div class="${this.ppx}-qoeFeedback-score-star" >\n                <img data-score= ${t.score} src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAOVBMVEUAAAD///////////////////////////////////////////////////////////////////////8KOjVvAAAAEnRSTlMAIN/vv0AwcJ9gkBCggFDPr0/CfSgtAAABQklEQVRIx+1UW47DIAwsj+AYFtLm/oddFxBGMhT6u1p/NMKe8ZgB+vizEeBp8Qu80jeFDtuEnzvHuS1A4Aj0o/YFqLndllCl98ESawFLH5bYEDjoyxJbAiyxKbAlERzCabJAk9DPmFwYYOG0+i7BXZ2pGWM9KnEXauiD80efdx2h5EnfY4EzBby9apUnS7SC9GF/7gCajnsh+bfhNvYKRq1v/Is9opX+yHBvRL82pOEkTtZZkTNjPLsqGRLPEwvGAi8YozzjBww/PACJb9f5klnLRzwgWJm92omJgHJD5EgwIXhZkm3W06a2MxHkXxg+cjM50K6SvMeuj1qYhOXfG9ukr5lJPhNte8YovBD+VbiJUFTIhTizCd4tKzzQZmOmWNQzhUC7q/DqD2lSzN8v5upZq0wxOH3p/vRKpKJ6/MeX8QuFgBZBZjjlhgAAAABJRU5ErkJggg==">\n            </div>`,i=(0,A.t)(e);this.template.scoreWrap.appendChild(i)})),this.template.scoreWrap.addEventListener("click",this.score),this.startTime=this.currentTime-1,this.endTime=Math.floor(this.textData.modeInfo.duration)+this.startTime}voteTpl(){this.template.wrap.innerHTML="";const{title:t,form:e}=this.textData.modeInfo,i=`\n            <div class = "${this.ppx}-qoeFeedback-vote-container">\n                <div class = "${this.ppx}-qoeFeedback-title"> \n                    <span class = "${this.ppx}-qoeFeedback-title-icon">${o()}</span>\n                    <span class = "${this.ppx}-qoeFeedback-title-text">${t}</span>\n                </div>\n\n                <div class="${this.ppx}-qoeFeedback-vote-wrap"> \n                </div>\n            </div>\n           \n        `;this.template.wrap.innerHTML=i,this.element.classList.add(`${this.ppx}-qoeFeedback-vote`),this.template.voteWrap=this.element.querySelector(`.${this.ppx}-qoeFeedback-vote-wrap`),this.template.voteContainer=this.element.querySelector(`.${this.ppx}-qoeFeedback-vote-container`),e.options.forEach((t=>{const e=`<div class="${this.ppx}-qoeFeedback-vote-item" data-title=${t.title}>\n                <span class ="${this.ppx}-qoeFeedback-vote-item-text">\n                    ${t.title}\n                </span>\n            <div>`,i=(0,A.t)(e);this.template.voteWrap.appendChild(i)})),this.template.voteWrap.addEventListener("click",this.vote),this.startTime=this.currentTime-1,this.endTime=Math.floor(this.textData.modeInfo.duration)+this.startTime}vote(t){if(t.stopPropagation(),this.hasVotedOrScored)return;this.hasVotedOrScored=!0;const{feedbackTitle:e,form:i}=this.textData.modeInfo,n=t.target.title||t.target.dataset.title;if(n){this.template.voteWrap.querySelectorAll(`.${this.ppx}-qoeFeedback-vote-item`).forEach((t=>{t.dataset.title!==n?t.style.backgroundColor="rgb(58, 59, 64)":t.style.backgroundColor="#00AEEC99",t.style.color="white"})),this.template.voteContainer.querySelector(`.${this.ppx}-qoeFeedback-title-text`).innerHTML=e,this.report(0,!1,n)}}score(t){if(t.stopPropagation(),this.hasVotedOrScored)return;this.hasVotedOrScored=!0;const{feedbackTitle:e}=this.textData.modeInfo,i=t.target.score||t.target.dataset.score;if(i){const t=this.template.scoreWrap.getElementsByTagName("img");Array.from(t).forEach((t=>{t.dataset.score<=i&&(t.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFUAAABVCAYAAAA49ahaAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQkSURBVHgB7ZzPUdtAFMa/pySEG6QCxCEhk0tIB1ABuAKcCiAVYDowFQQqcKggLgFuwTmgDuIjZAZtdteWQ4Jt/XtrvbX3N+OxsWRZ/ObzStq3KyAQCAQCgUAgUBOCB6hevAms7+qXsX4kwP01tZIhhCJaqpUZrR1D0Yn+c/O/xV2ohzOJcsVKVb33MUh9xyids0i02E/SxEYQS9rBfKGwy+n1VwhDZFLHKb0r/gHap9aPPoQgNKk2pcUhdQpBiEtq6ZROPignrQKTWjKlGYLSKiqplVM62YCMtApLasWUZghJq5ik1k7pZEPNp1VQUmumNENAWkUklS2lkw3Stk5rgoYQklSmlGZQ2mhaG08qe0onG24urQKSypzSjAbT2mhSnaV08gXNpLXhpDpKaUZDaW1Mqrp6dwqiIziF2vZ7FszCfv7jkojpvd/TP/kj+7ww1AUUrvRzQq2f13AMu1TbTiLdRURbUErXlciIzOpLUkjsQ6U3iKI7pHQDPA65hFeS+o+4NN0GRVuQJ64iSoulYR3hpaTa9ml6EW4VSHSzdUEHg7O8FQtJte0hrekiHO1i5dFJVr/35xUbCx7917pBaIb2kFNszE2qbj/3xqXiwFPmdDEWSKo6RGAKjzO95EslfERgClE8cwlyUWLHLDUKYWPWonypCjcIPMecx86gQFKjPgJTeNGdtSRXqj3CKZwj8BdFZ/O6FAtfUelTq4txR8hqo+hSC23PW6XcZeqqiy0g1FCqP9VuUEcfq8joJ98usmrVXqqOtJF2ThkJ7RRdvXJ/6sqILSnUUKuTeunFVhBqqN3zv7RiKwo1sJRTlk5sDaEGthrV0oitKdTAWvjzXiyDUIOLaqqfYpmEGpzU/VVvp6u3fAxv0AW9w8FnMOFohAp14RMqYr1KdDZCRX3bUfAEOrxl9SB4GuXiGA1J4sOJVNV761k5+1UMRly1qTH8gjUErqTuwS88kOpdWXt2ubnS1uAE5dcANuYQOLiiMoPZXv+Cb6iHN1x3uHCQ1HVPB7LxnQE4kKp8HR3Itt8u2tQYfiJYqrcD2vjOAFwk1c+fP2MYWKWOr6F9nQ8Qc/UBMCfV1yN/Bs/+M0t1deQ3k8tUy8w1NcPC9etLOIFn/1+Clxi89Edljtv+k/cS874t25i5raxTMdMYDHAnlas97duJCoe3MycrmKGM1Bq0bXrN+hwQbYABZqlUdxpirsxn32jk6vVtszBKcXUUsYwaZy5RV73uNxO+oi8cd+nRzUJ7XM2NURam+wM46FApVUlNtIAOHQzYDzyl5Sqc67b7BAy46qXqYf7U86FOxTlXnX3+/hSS27dNCBPuqqnT/xkrE7jvLvpGsuNBHkfP9wfm7IK1pO78Jgqq90Gf+6XmrCBp8l5RELo/gUAgEAgEAoFAwGP+AEstpVqVdEasAAAAAElFTkSuQmCC")})),this.template.scoreContainer.querySelector(`.${this.ppx}-qoeFeedback-title-text`).innerHTML=e,this.report(i,!1,"")}}cancelReport(){this.report(0,!0,"")}report(t,e,i){const{form:n,id:r}=this.textData.modeInfo,{mode:o}=this.textData;d({mode:o,params:{id:r,scene:3,type:n.type,business_type:"archive",cancel:e,score:t,title:i}},this)}removeEventListeners(){var t,e,i,n;(null==(t=this.template)?void 0:t.title)&&(null==(e=this.template)||e.title.removeEventListener("click",this.updateContent)),(null==(i=this.template)?void 0:i.scoreWrap)&&this.template.scoreWrap.removeEventListener("click",this.score),(null==(n=this.template)?void 0:n.voteWrap)&&this.template.voteWrap.removeEventListener("click",this.vote)}getScale(){let{insideW:t,insideH:e}=this.dmCmdStore.state,i=1;const n=t*t+e*e;if(t>=e)switch(!0){case n<m(800,2):case n<m(1600,2):i=1;break;case n<m(2e3,2):i=1.25;break;default:i=1.5}else switch(!0){case n<m(500,2):case n<m(800,2):case n<m(1200,2):i=1;break;default:i=1.25}return{scaleS:i,scaleP:t/b.NORMAL_WIDTH}}free(){this.element.innerHTML="",this.element.className="",this.element.style.cssText="",this.nodes.cmdDanmaku.contains(this.element)&&this.nodes.cmdDanmaku.removeChild(this.element)}onDispose(){super.onDispose(),this.qoeShowed=!1,this.titleClicked=!1,this.hasVotedOrScored=!1,this.free(),this.removeEventListeners()}onDisconnect(){super.onDisconnect(),this.qoeShowed=!1,this.free(),this.removeEventListeners()}};let v=b;v.NORMAL_WIDTH=667,y([l.ZP],v.prototype,"updateContent",1),y([l.ZP],v.prototype,"vote",1),y([l.ZP],v.prototype,"score",1),y([l.ZP],v.prototype,"cancelReport",1)},21064:function(t,e,i){"use strict";i.d(e,{J:function(){return H}});var n=i(22451),r=i(99149),o=i(46330),a=i(23529),s=i(57012),l=i(5489),A=i(92853),c=i.n(A),h=i(14561),d=i.n(h),u=i(59229),p=i.n(u),g=i(63385),f=i.n(g),m=i(28016),y=i.n(m),b=i(180),v=i.n(b),E=i(25638),I=i.n(E),C=i(71118),B=i.n(C),w=i(38341),x=i.n(w),Q=i(97203),S=i.n(Q),k=i(23849),D=i.n(k),_=i(34637),R=i.n(_),M=i(88602),T=i.n(M),F=i(97654),L=i.n(F),N=Object.defineProperty,P=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,G=(t,e,i)=>e in t?N(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class H extends l.vq{constructor(){super(...arguments),this.currentSet={},
this.dmDensitySpans=[],this.dmDensityMap={normal:1,more:2,most:3,1:"normal",2:"more",3:"most"},this.panelHeightWithoutBlockOptions=325,this.panelHeightWithBlockOptions=366,this.settingDmPanelHeight=2===this.configStore.revision?this.panelHeightWithoutBlockOptions:this.panelHeightWithBlockOptions,this.blockType=[["typeScroll","滚动",c(),d()],["typeTopBottom","固定",p(),f()],["typeColor","彩色",y(),v()],["typeSpecial","高级",I(),B()]],this.blockTrack={typeScroll:"ctlbar_danmuku_scroll_",typeTopBottom:"ctlbar_danmuku_top_bottom_",typeColor:"ctlbar_danmuku_color_",typeSpecial:"ctlbar_danmuku_special_"}}install(){return super.install(),this.settingWrap=this.container.querySelector(`.${this.ppx}-dm-setting`),this.settingWrap.appendChild(this.renderFragment()),this.template={wrap:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-wrap`),box:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-box`),left:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left`),blockWrap:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-block-content`),typeScroll:this.settingWrap.querySelector(`.${this.ppx}-block-typeScroll`),typeTopBottom:this.settingWrap.querySelector(`.${this.ppx}-block-typeTopBottom`),typeColor:this.settingWrap.querySelector(`.${this.ppx}-block-typeColor`),typeSpecial:this.settingWrap.querySelector(`.${this.ppx}-block-typeSpecial`),typeSpecialMore:this.settingWrap.querySelector(`.${this.ppx}-block-advanced-more`),screensync:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-fs`),preventshade:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-ps`),dmMask:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-mask`),blockAdd:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-block-add`),blockSync:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-block-sync`),dmDensity:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-dmDensity`),opacity:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-opacity`),area:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-area`),speedplus:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-speedplus`),fontsize:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-fontsize`),leftMore:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-left-more`),right:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right`),rightMore:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-more`),speedsync:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-speedsync-box`),fontfamily:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-font-content-fontfamily`),bold:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-font-bold-box`),fontborder:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-fontborder-content`),reset:this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-reset`)},this.template.typeScrollSvg=this.template.typeScroll.querySelector(`.${this.ppx}-block-filter-image`),this.template.typeTopBottomSvg=this.template.typeTopBottom.querySelector(`.${this.ppx}-block-filter-image`),this.template.typeColorSvg=this.template.typeColor.querySelector(`.${this.ppx}-block-filter-image`),this.template.typeSpecialSvg=this.template.typeSpecial.querySelector(`.${this.ppx}-block-filter-image`),this.dmDensitySpans=this.template.dmDensity.querySelectorAll(`.${this.ppx}-dm-setting-density`),this.initUI(),this.globalEvents(),this.dc.dmArea=(0,n.U5)((()=>this.dmSettingStore.state.dmarea),(t=>{this.updateDmPanel(t),100===t||0===t?(this.template.dmDensity.style.display="",this.template.area.classList.add("dm-density-active")):(this.template.dmDensity.style.display="none",this.template.area.classList.remove("dm-density-active"))}),{fireImmediately:!0}),this.dc.dmSetting=(0,n.U5)((()=>this.danmakuStore.state.isViewLoaded),(t=>{t&&(this.resetUi(),this.initSenior(this.dmSettingStore.state.seniorModeSwitch))}),{fireImmediately:!0}),this}renderFragment(){const t=this.ppx;let e="",i="";const n=this.dmSettingStore.state;this.blockType.forEach((t=>{n[t[0]]&&(i=`${this.ppx}-active`),e+=`\n                <div class="${this.ppx}-block-filter-type ${this.ppx}-block-${t[0]} ${i}" data-type="${t[0]}">\n                    <span class="${this.ppx}-block-filter-image">${n[t[0]]?t[2]:t[3]}</span>\n                    <span class="${this.ppx}-block-filter-label">${t[1]}${"typeSpecial"===t[0]?`<span class="${this.ppx}-block-advanced-more">${x()}</span>`:""}</span>\n                </div>\n            `,i=""}));let o="";[["area","显示区域"],["dmDensity","弹幕密度"],["opacity","不透明度"],["fontsize","弹幕字号"],["speedplus","弹幕速度"]].forEach((e=>{"dmDensity"===e[0]?o+=`\n                    <div class="${t}-dm-setting-left-${e[0]}">\n                        <div class="${t}-dm-setting-left-${e[0]}-left-area">\n                            弹幕密度\n                        </div>\n                        <div class="${t}-dm-setting-left-${e[0]}-right-area">\n                            <span class="${t}-dm-setting-density" data-density="normal">正常</span>\n                            <span class="${t}-dm-setting-density" data-density="more">较多</span>\n                            <span class="${t}-dm-setting-density" data-density="most">重叠</span>\n                        </div>\n                    </div>\n                `:o+=`\n                <div class="${t}-dm-setting-left-${e[0]}">\n                    <div class="${t}-dm-setting-left-${e[0]}-title">${e[1]}</div>\n                    <div class="${t}-dm-setting-left-${e[0]}-content">\n                        <div class="${t}-dm-setting-ui-${e[0]}"></div>\n                    </div>\n                </div>`}))
;const a=`<div class="${t}-dm-setting-wrap" style="display: none">\n        <div class="${t}-dm-setting-box">\n            <div class="${t}-dm-setting-left">\n                <div class="${t}-dm-setting-left-block">\n                    <div class="${t}-dm-setting-left-block-title">按类型过滤</div>\n                    <div class="${t}-dm-setting-left-block-content">${e}</div>\n                </div>\n                <div class="${t}-dm-setting-left-radio">\n                    <span class="${t}-dm-setting-left-fs"></span>\n                    <span class="${t}-dm-setting-left-ps" data-text="视频底部15%部分为空白保留区"></span>\n                    <span class="${t}-dm-setting-left-mask"></span>\n                </div>\n\n                <div class="${t}-dm-setting-left-preventshade">\n                    <span class="${t}-dm-setting-left-preventshade-box" data-tooltip="2" data-text="视频底部15%部分为空白保留区" data-position="top-left" data-change-mode="1"></span>\n                </div>\n                <div class="${t}-dm-setting-left-danmaku-mask" style="display: none">\n                    <span class="${t}-dm-setting-left-danmaku-mask-box"></span>\n                </div>\n                ${2===this.configStore.revision?"":this.configStore.isPcApp?`<div class="${t}-dm-setting-left-block-word">\n                                 <div class="${t}-dm-setting-left-block-sync">同步屏蔽列表</div>\n                            </div>`:`<div class="${t}-dm-setting-left-block-word">\n                            <div class="${t}-dm-setting-left-block-add">弹幕观看屏蔽词</div>\n                             <div class="${t}-dm-setting-left-block-sync">同步屏蔽列表</div>\n                        </div>`}\n                ${o}\n                <div class="${t}-dm-setting-left-more"><span class="${t}-dm-setting-left-more-text">高级设置</span><span class="${t}-dm-setting-left-more-senior-text">全新【硬核会员弹幕模式】</span><span class="${this.cpx}-svg-icon">${S()}</span>\n        </div>\n            </div>\n            <div class="${t}-dm-setting-right">\n                <div class="${t}-dm-setting-right-more">\n                    <span class="${this.cpx}-svg-icon">${D()}</span>\n                    <span class="${t}-dm-setting-right-more-text">更多弹幕设置</span>\n                </div>\n                <div class="${t}-dm-setting-right-separator"></div>\n                <div class="${t}-dm-setting-right-speedsync">\n                    <span class="${t}-dm-setting-right-speedsync-box"></span>\n                </div>\n                <div class="${t}-dm-setting-right-font">\n                    <div class="${t}-dm-setting-right-font-title">弹幕字体</div>\n                    <div class="${t}-dm-setting-right-font-content">\n                        <div class="${t}-dm-setting-right-font-content-fontfamily"></div>\n                    </div>\n                    <div class="${t}-dm-setting-right-font-bold">\n                        <span class="${t}-dm-setting-right-font-bold-box"></span>\n                    </div>\n                </div>\n                <div class="${t}-dm-setting-right-fontborder">\n                    <div class="${t}-dm-setting-right-fontborder-title">描边类型</div>\n                    <div class="${t}-dm-setting-right-fontborder-content"></div>\n                </div>\n                <div class="${t}-dm-setting-right-separator"></div>\n                <div class="${t}-dm-setting-right-reset">恢复默认设置</div>\n            </div>\n        </div>\n        </div>`;return(0,r.i)(a)}globalEvents(){const t=this.configStore.onlyTouchMode;this.currentSet={},this.settingWrap.addEventListener("mouseenter",(()=>{this.dmSettingStore.state.dmSwitch&&1!==this.danmakuStore.state.state&&(this.clearPanelTimer(!0),this.panelShowTimer=window.setTimeout((()=>{(0,o.o)(this.template.wrap),this.trackExtra.p("player.danmuku-set.show",l.p0.Appear),this.template.wrap.classList.add(`${this.ppx}-dm-setting-expand-interaction-area`)}),t?0:300))})),this.settingWrap.addEventListener("mouseleave",(()=>{this.panelHideTimer=window.setTimeout((()=>{this.clearPanelTimer(),this.template.wrap.classList.remove(`${this.ppx}-dm-setting-expand-interaction-area`)}),t?0:200)})),this.template.leftMore.addEventListener("click",(()=>{this.panel.value(1),this.track.e("danmaku_more")})),this.template.leftMore.addEventListener("mouseenter",(()=>{this.changeSeniorTipState(!1)})),this.template.rightMore.addEventListener("click",(()=>{this.panel.value(0),this.track.e("danmaku_more_back")})),this.template.blockWrap.addEventListener("click",(t=>{const e=t.target.dataset.type,i=this.blockType.filter((t=>t[0]===e))[0];if(e&&i){const t=this.dmSettingStore.state,n=e+"Svg",r=!t[e];r?(this.template[e].classList.remove(`${this.ppx}-active`),this.template[n].innerHTML=i[2]):(this.template[e].classList.add(`${this.ppx}-active`),this.template[n].innerHTML=i[3]),this.currentSet[e]=r,this.dmSettingStore.setLocal({[e]:r}),this.dmSettingStore.refresh(),this.dmListStore.refresh(),this.trackExtra.p("player.dmset_blocktype.click",l.p0.Click,{state:r?2:1,type:"typeTopBottom"===e?1:"typeColor"===e?2:"typeScroll"===e?4:3}),this.track.e(this.blockTrack[e]+(r?"on":"close"))}})),this.template.dmDensity.addEventListener("click",(t=>{var e;const i=null==(e=t.target.dataset)?void 0:e.density;i&&this.dmDensitySpans.forEach((e=>{e===t.target?e.classList.add("active"):e.classList.remove("active")})),this.dmSettingStore.setLocal({dmdensity:this.dmDensityMap[i]}),this.trackExtra.p("player.dmset-density.click",l.p0.Click,{danmuku_density:this.dmDensityMap[i]}),this.currentSet.dmdensity=this.dmDensityMap[i]})),this.tooltipStore.create({tip:!0,title:"特殊颜色、运动形式的弹幕",name:"special-more",target:this.template.typeSpecialMore,position:l.DU.BottomCenter})}wrapHided(){this.panel&&this.panel.value(0),this.leaveTrack(),(0,a.N)(this.template.wrap)}clearPanelTimer(t){this.panelShowTimer&&clearTimeout(this.panelShowTimer),this.panelHideTimer&&(clearTimeout(this.panelHideTimer),this.panelHideTimer=null,t||(this.track.e("danmaku_setting"),this.wrapHided()))}initUI(){this.initDmPanel(),this.dmScreensync(),this.dmPreventshade(),this.dmMask(),this.blockEvent(),this.dmOpacity(),this.dmArea(),this.dmSpeedplus(),this.dmFontsize(),this.dmSpeedsync(),this.dmFontfamily(),this.dmBold(),this.dmFontborder(),this.dmReset(),this.dmSettingAllTrack()}resetUi(){var t,e;this.dmSettingStore.state.dmaskForce&&this.dmSettingStore.setState({dmask:!0,dmaskForce:!1});const i=this.dmSettingStore.state;let n="",r="";this.currentSet=((t,e)=>{for(var i in e||(e={}))U.call(e,i)&&G(t,i,e[i]);if(P)for(var i of P(e))O.call(e,i)&&G(t,i,e[i]);return t})({},i),this.blockType.forEach(((t,e)=>{n=t[0],r=n+"Svg",i[n]?(this.template[n].classList.remove(`${this.ppx}-active`),this.template[r].innerHTML=this.blockType[e][2]):(this.template[n].classList.add(`${this.ppx}-active`),this.template[r].innerHTML=this.blockType[e][3])}));const o=this.dmDensityMap[i.dmdensity];this.template.dmDensity.querySelector(`.${this.ppx}-dm-setting-density[data-density="${o}"]`).classList.add("active"),this.preventshade.value(i.preventshade),null==(t=this.dmask)||t.value(i.dmask),this.opacity.value(i.opacity),this.speedplus.value(i.speedplus),this.fontsize.value(i.fontsize),this.dmarea.value(i.dmarea),this.screensync.value(i.fullscreensync),this.speedsync.value(i.speedsync),this.fontfamily.value(i.fontfamily),this.bold.value(i.bold),this.fontborder.value(i.fontborder),null==(e=this.seniorBtn)||e.value(2===i.seniorModeSwitch),this.updateDmPanel(i.dmarea)}initDmPanel(){this.panel||(this.optionsPanel={dark:!0,value:0,body:[{element:this.template.left,width:320,height:this.settingDmPanelHeight},{element:this.template.right,width:266,height:250}]},0===this.dmSettingStore.state.dmarea||100===this.dmSettingStore.state.dmarea?this.optionsPanel.body[0].height=this.settingDmPanelHeight:this.optionsPanel.body[0].height-=44,this.panel=new s.s_(this.template.box,this.optionsPanel))}updateDmPanel(t){var e,i;const n=this.dmSettingStore.state.seniorModeSwitch;if(100===t||0===t)null==(e=this.panel)||e.optionsUpdate({body:[{element:this.template.left,width:320,height:this.settingDmPanelHeight},{element:this.template.right,width:266,height:0===n||1===n?250:306}]});else{
const t=this.settingDmPanelHeight;this.template.dmDensity.style.display="none",null==(i=this.panel)||i.optionsUpdate({body:[{element:this.template.left,width:320,height:t-28-16},{element:this.template.right,width:266,height:0===n||1===n?250:306}]})}}initSenior(t){var e;const i=this.ppx,n=2===t;if(t&&!this.template.senior){const t=`<div class="${i}-dm-setting-right-senior">\n                            <div class="${i}-dm-setting-right-senior-bg"></div>\n                            <div class="${i}-dm-setting-right-senior-title">\n                                <span class="${i}-dm-setting-right-senior-title-text">硬核会员弹幕模式</span>\n                                <span class="${this.cpx}-svg-icon">${R()}</span>\n                            </div>\n                            <div class="${i}-dm-setting-right-senior-btn"></div>\n                        </div>`;this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-speedsync`).insertAdjacentHTML("beforebegin",t),this.template.senior=this.settingWrap.querySelector(`.${this.ppx}-dm-setting-right-senior`),this.setSeniorState(n),this.seniorBtn=new s.rs(this.container.querySelector(`.${this.ppx}-dm-setting-right-senior-btn`),{value:n,content:"",name:""}).on("change",(t=>{const e=t.value;this.currentSet.seniorModeSwitch=e?2:3,this.setSeniorState(t.value),t.manual&&this.track.e("danmuku_senior_mode",{val:+e})})),this.changeSeniorTipState()}this.optionsPanel.body[1].height=t?306:250,this.optionsUpdate(),null==(e=this.template.senior)||e.classList[t?"remove":"add"](`${i}-dm-setting-right-senior-disable`)}changeSeniorTipState(t=!0){this.template.senior&&(t?t=this.localStore.get().media.seniorTip:this.localStore.set({media:{seniorTip:!1}}),this.template.leftMore.classList[t?"add":"remove"](`${this.ppx}-dm-setting-left-more-senior-tip`))}setSeniorState(t){const e=this.ppx;this.settingWrap.querySelector(`.${e}-dm-setting-right-senior-bg`).innerHTML=`<span class="${this.cpx}-svg-icon">${t?T():L()}</span>`,this.dmSettingStore.setState({seniorMode:t})}leaveTrack(){var t;Object.keys(this.currentSet).length&&(null==(t=this.dmSettingStore.dmSetting(this.currentSet))||t.catch((()=>{this.track.e("danmuku_set_error",{type:1,value:this.currentSet})}))),this.dmSettingAllTrack(),this.currentSet={}}dmScreensync(){this.screensync=new s.XZ(this.template.screensync,{name:"弹幕随屏幕缩放",dark:!0,value:this.dmSettingStore.state.fullscreensync}),this.screensync.on("change",(t=>{this.currentSet.fullscreensync=t.value,t.manual&&(this.dmSettingStore.setLocal({fullscreensync:t.value}),this.track.e("sync_resize_cb"),this.trackExtra.p("player.dmset_zoom_withscreen.click",l.p0.Click,{switch:this.currentSet.fullscreensync?1:0}))}))}dmPreventshade(){this.preventshade=new s.XZ(this.template.preventshade,{name:"防挡字幕",dark:!0,value:this.dmSettingStore.state.preventshade}),this.preventshade.on("change",(t=>{this.dmSettingStore.setLocal({preventshade:t.value}),this.currentSet.preventshade=t.value,this.dmSettingStore.refresh(),t.manual&&(this.track.e("ctlbar_danmuku_prevent"),this.trackExtra.p("player.dmset_subtitle_block.click",l.p0.Click,{switch:this.currentSet.preventshade?1:0}))})),this.tooltipStore.create({tip:!0,name:"preventshade",title:"视频底部15%部分为空白保留区",target:this.template.preventshade,position:l.DU.TopCenter})}dmMask(){this.dc.dmMaskNew=(0,n.U5)((()=>this.dmMaskStore.state.maskUrl),(t=>{(0,o.o)(this.template.dmMask),this.dmask=new s.XZ(this.template.dmMask,{name:"智能防挡弹幕",value:this.dmSettingStore.state.dmask,dark:!0}),this.dmask.on("change",(t=>{var e;this.currentSet.dmask=t.value,t.manual&&(null==(e=this.track)||e.e("ctlbar_danmuku_dmask"),this.dmSettingStore.setLocal({dmask:t.value}),this.dmSettingStore.setState({dmaskForce:!1}))}))}),{fireImmediately:!0}),this.dc.dmMask=(0,n.EH)((()=>{var t;const e=this.dmSettingStore.state.dmask;null==(t=this.dmask)||t.value(e)}))}dmOpacity(){this.opacity=new s.Ex(this.template.opacity,{value:this.dmSettingStore.state.opacity,valWidth:60,show2val(t){return Math.round(100*(t-.1)/.9)/100},val2show(t){return Math.round(100*(.9*t+.1))/100}}),this.opacity.on("change",(t=>{const e=this.dmSettingStore.state.opacity;this.currentSet.opacity=t.value,t.manual&&(this.track.e("ctlbar_danmuku_opacity"),this.trackExtra.p("player.dmset_alpha.click",l.p0.Click,{alpha:[e,this.currentSet.opacity]}),this.dmSettingStore.setLocal({opacity:t.value}))}))}dmArea(){this.dmarea=new s.Ex(this.template.area,{value:this.dmSettingStore.state.dmarea,valWidth:60,unfilled:!0,steps:[{text:"10%",value:0},{text:"25%",value:.25},{text:"50%",value:.5},{text:"75%",value:.75},{text:"100%",value:1}],show2val(t){let e=t/100;return 0===t&&(e=1),e},val2show(t){let e=100*t;return 0===e&&(e=10),e}}),this.dmarea.on("change",(t=>{const e=this.dmSettingStore.state.dmarea;this.currentSet.dmarea=t.value,this.dmSettingStore.setLocal({dmarea:t.value}),this.track.e("danmaku_final_visiblearea",String(t.value)),t.manual&&this.trackExtra.p("player.dmset_visible_area.click",l.p0.Click,{area:[e/100,t.value/100]})}))}dmSpeedplus(){const t=[.4,.7,1,1.3,1.6];this.speedplus=new s.Ex(this.template.speedplus,{value:this.dmSettingStore.state.speedplus,valWidth:60,unfilled:!0,steps:[{text:"极慢",value:0},{text:"较慢",value:.25,hide:!0},{text:"适中",value:.5},{text:"较快",value:.75,hide:!0},{text:"极快",value:1}],show2val(t){return Math.round(100*(t-.4)/1.2)/100},val2show(t){return Math.round(100*(1.2*t+.4))/100}}),this.speedplus.on("change",(e=>{const i=this.dmSettingStore.state.speedplus;this.currentSet.speedplus=e.value,e.manual&&(this.dmSettingStore.setLocal({speedplus:e.value}),this.trackExtra.p("player.dmset_speed.click",l.p0.Click,{speed:[t.indexOf(i)+1,t.indexOf(e.value)+1]}))}))}dmFontsize(){this.fontsize=new s.Ex(this.template.fontsize,{value:this.dmSettingStore.state.fontsize,valWidth:60,show2val(t){return Math.round(100*(t-.5)/1.2)/100},val2show(t){return Math.round(100*(1.2*t+.5))/100}}),this.fontsize.on("change",(t=>{const e=this.dmSettingStore.state.fontsize;this.currentSet.fontsize=t.value,t.manual&&(this.dmSettingStore.setLocal({fontsize:t.value}),this.trackExtra.p("player.dmset_font_size.click",l.p0.Click,{size:[e,t.value]}))}))}dmSpeedsync(){this.speedsync=new s.XZ(this.template.speedsync,{name:"弹幕速度同步播放倍数",dark:!0,value:this.dmSettingStore.state.speedsync}),this.speedsync.on("change",(t=>{this.currentSet.speedsync=t.value,t.manual&&(this.dmSettingStore.setLocal({speedsync:t.value}),this.track.e("sync_resize_videospeed",t.value?"1":"0"),this.trackExtra.p("player.dmset_speed_sync.click",l.p0.Click,{switch:t.value?1:0}))}))}dmFontfamily(){this.fontfamily=new s.Ph(this.template.fontfamily,{dark:!0,value:this.dmSettingStore.state.fontfamily,maxHeight:100,items:[{name:"黑体",value:"SimHei, 'Microsoft JhengHei'"},{name:"宋体",value:"SimSun"},{name:"新宋体",value:"NSimSun"},{name:"仿宋",value:"FangSong"},{name:"微软雅黑",value:"'Microsoft YaHei'"},{name:"微软雅黑 Light",value:"'Microsoft Yahei UI Light'"},{name:"Noto Sans DemiLight",value:"'Noto Sans CJK SC DemiLight'"},{name:"Noto Sans Regular",value:"'Noto Sans CJK SC Regular'"}]}),this.fontfamily.on("change",(t=>{this.trackExtra.p("player.dmset_font.click",l.p0.Click,{font_name:t.value}),this.currentSet.fontfamily=t.value,this.dmSettingStore.setLocal({fontfamily:t.value})}))}dmBold(){this.bold=new s.XZ(this.template.bold,{name:"粗体",dark:!0,value:this.dmSettingStore.state.bold}),this.bold.on("change",(t=>{t.manual&&(this.track.e("danmaku_bold",t.value?"1":"0"),this.currentSet.bold=t.value,this.dmSettingStore.setLocal({bold:t.value}),this.trackExtra.p("player.dmset_bold.click",l.p0.Click,{switch:t.value?1:0}))}))}dmFontborder(){this.fontborder=new s.Y8(this.template.fontborder,{dark:!0,style:"button",value:+this.dmSettingStore.state.fontborder,labels:[{name:"重墨",value:0},{name:"描边",value:1},{name:"45°投影",value:2}]}),this.fontborder.on("change",(t=>{this.currentSet.fontborder=t.value,t.manual&&(this.track.e("danmaku_fontborder",t.value),this.trackExtra.p("player.dmset_stroke.click",l.p0.Click,{stroke_type:t.value}),this.dmSettingStore.setLocal({fontborder:+t.value}))}))}blockEvent(){var t,e;null==(t=this.template.blockAdd)||t.addEventListener("click",(()=>{
this.portStore.getScreenKind()!==l.dY.Normal&&this.portStore.reqStatue(l.dY.Normal),this.trackExtra.p("player.dmset_fliter_add.click",l.p0.Click),this.track.e("danmaku_final_forbidden"),this.auxStore.setState({showBlock:this.auxStore.state.showBlock+1})})),null==(e=this.template.blockSync)||e.addEventListener("click",(()=>{this.blockStore.state.isSyncBlocked?this.tooltipStore.create({name:"block_sync",title:"弹幕屏蔽列表已同步",duration:1e3}):this.blockStore.dmSync().then((t=>{let e="";if(t)if(0===t.body.code&&t.body.list){e=`已成功同步${t.body.list.length}条弹幕屏蔽词`}else e=t.body.message||"同步失败";else e="网络异常，同步失败";this.tooltipStore.create({name:"block_sync",title:e,duration:1e3})})),this.trackExtra.p("player.dmset_fliter_sync.click",l.p0.Click),this.track.e("danmaku_final_synchronism")}))}dmReset(){this.reset=new s.zx(this.template.reset,{type:"transparent"}),this.reset.on("click",(()=>{const t=(0,l.oF)().dmSetting,e=this.dmSettingStore.state;let i={};for(const n in t)t[n]!==e[n]&&("seniorModeSwitch"===n?0===e[n]||1===e[n]?i[n]=0:i[n]=3:i[n]=t[n]);this.dmSettingStore.setLocal(i),this.resetUi(),this.trackExtra.p("player.dmset_reset.click",l.p0.Click),this.track.e("danmaku_refresh")}))}dmSettingAllTrack(){const t=this.dmSettingStore.state,e=[t.typeTopBottom,t.typeColor,t.typeSpecial].map(((t,e)=>t?null:e+1)).filter((t=>null!==t));this.trackExtra.p("player.dmset.click",l.p0.Click,{dm_switch:t.dmSwitch?1:0,anti_block_subtitle:this.dmMaskStore.state.maskUrl?1:0,type_block:e,alpha:t.opacity,size:t.fontsize,area:t.dmarea/100,danmaku_density:100===t.dmarea?t.dmdensity:0,speed:t.speedplus,bold:t.bold?1:0,danmaku_stroke:t.fontborder,default_dm_switch:t.dmSwitch?1:0,zoom_with_screen:t.fullscreensync?1:0,dm_speed_sync:t.speedsync?1:0,font:t.fontfamily})}optionsHeightUpdate(t){this.optionsPanel.body[0].height=t,this.optionsUpdate()}optionsUpdate(){this.panel.optionsUpdate(this.optionsPanel)}}},67102:function(t,e,i){"use strict";i.d(e,{K:function(){return s}});var n=i(55537),r=i(22451),o=i(5489),a=i(68918);class s extends o.vq{constructor(){super(...arguments),this.list=[]}get cTime(){return this.portStore.getCurrentTime()}install(){return super.install(),this.dc.list=(0,r.U5)((()=>this.dmSkipStore.skips),(t=>{this.list=t,this.inited&&this.hide(),(null==t?void 0:t.length)&&(this.init(),this.timeUpdate())}),{fireImmediately:!0}),this}init(){this.inited||(this.inited=!0,this.showClass=`${this.ppx}-show`,this.activeClass=`${this.ppx}-active`,this.tpl(),this.dc.timeUpdate=(0,r.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.timeUpdate()})),this.dc.update=(0,r.U5)((()=>this.upStore.state.follow),(t=>{var e;(null==(e=this.list)?void 0:e.length)&&this.list.some((e=>{if(e.seasonId===this.configStore.seasonId)return this.updataButton(e,t),!0}))}),{fireImmediately:!0}))}timeUpdate(){var t,e,i;if(!(null==(t=this.list)?void 0:t.length))return;const n=this.cTime;this.patchAdvStore.hasValidAdv&&!this.hasPatchOffset&&(this.hasPatchOffset=!0,this.list.forEach((t=>{t.from+=this.patchAdvStore.prePatchDurationInSecAndInt(),t.to+=this.patchAdvStore.prePatchDurationInSecAndInt()})));for(let t=0;t<this.list.length;t++){const r=this.list[t];if((r.showSelected||!r.status)&&(r.from<=n&&r.to>=n)){if(this.cPanel===r)return;return this.cPanel=r,1===this.cPanel.cardType?(this.element.stardcardLeft.textContent=r.title,r.status?this.element.stardcardRight.textContent=r.buttonSelectedTitle:this.element.stardcardRight.textContent=r.buttonTitle,this.buttonActive(r.status),this.element.stardcard.classList.add(this.showClass),null==(e=this.element.card)||e.classList.remove(this.showClass)):(this.element.img.src=r.icon,this.element.label.textContent=r.label,this.element.content.textContent=r.content,this.element.btn.textContent=r.button,this.element.card.classList.add(this.showClass),null==(i=this.element.stardcard)||i.classList.remove(this.showClass)),void this.showTrack(this.cPanel)}}this.hide()}showTrack(t){this.track.e("skip_card_show",{order_id:t.id,button_status:t.status?1:0,label:t.label,btn:t.button,type:t.cardType})}buttonActive(t){t?this.element.stardcardRight.classList.add(this.activeClass):this.element.stardcardRight.classList.remove(this.activeClass)}hide(){var t,e;this.cPanel=null,null==(t=this.element.card)||t.classList.remove(this.showClass),null==(e=this.element.stardcard)||e.classList.remove(this.showClass)}updataButton(t,e){var i;(null==(i=this.list)?void 0:i.length)&&(this.list.forEach((i=>{switch(i.bizType){case 1:i.seasonId===t.seasonId&&(i.status=e);break;case 2:i.activityId===t.activityId&&(i.status=t.status)}})),t.status?this.element.stardcardRight.textContent=t.buttonSelectedTitle:this.element.stardcardRight.textContent=t.buttonTitle,this.buttonActive(t.status),!t.showSelected&&t.status&&setTimeout((()=>{this.hide()}),500))}tpl(){const t=this.ppx,e=`<div class="${t}-skipcard">\n        <div class="${t}-skipcard-left"><img class="${t}-skipcard-left-img"></div>\n        <div class="${t}-skipcard-center">\n            <div class="${t}-skipcard-center-label"></div>\n            <div class="${t}-skipcard-center-content"></div>\n        </div>\n        <div class="${t}-skipcard-right"></div>\n        </div>\n        <div class="${t}-stardcard">\n        <div class="${t}-stardcard-left"></div>\n        <div class="${t}-stardcard-right"></div>\n        </div>`,i=this.nodes.cmdDanmaku;i.insertAdjacentHTML("beforeend",e),this.element={card:i.querySelector(`.${t}-skipcard`),img:i.querySelector(`.${t}-skipcard-left-img`),label:i.querySelector(`.${t}-skipcard-center-label`),content:i.querySelector(`.${t}-skipcard-center-content`),btn:i.querySelector(`.${t}-skipcard-right`),stardcard:i.querySelector(`.${t}-stardcard`),stardcardLeft:i.querySelector(`.${t}-stardcard-left`),stardcardRight:i.querySelector(`.${t}-stardcard-right`)},this.element.btn.addEventListener("click",(()=>{this.skipClick(this.cPanel)})),this.element.stardcardRight.addEventListener("click",(()=>{this.skipClick(this.cPanel)}))}skipClick(t){const e={order_id:t.id,order_result:1,label:t.label,btn:t.button,type:t.cardType};if(1===t.cardType){if(!this.userStore.isLogin)return this.userStore.requestQuickLogin();let i;i=this.configStore.seasonId?{id:t.id,oid_type:1,oid:this.configStore.episodeId,action:t.status?1:0}:{id:t.id,oid_type:2,oid:this.configStore.cid,pid:this.configStore.aid,action:t.status?1:0},this.dmSkipStore.jumpCard(i).then((({body:i})=>{var r;if(0===i.code)switch(t.status=!t.status,this.track.e("skip_card_click",e),t.bizType){case 1:console.debug("emit follow player virtual action"),this.rootPlayer.emit(o.tw.Player_Virtual_Action,new CustomEvent(o.tw.Player_Virtual_Action,{detail:{kind:o.s.Follow,data:{fid:null==(r=this.userStore.info)?void 0:r.mid,act:t.status?n.dd.Add_Attention:n.dd.Cancel_Attention,re_src:n.gC.Player_Popup_Follow}}}));break;case 2:this.updataButton(t,t.status)}else e.order_result=0,this.track.e("skip_card_click",e),this.ioError(i.message)})).catch((t=>{this.ioError(null==t?void 0:t.message),e.order_result=0,this.track.e("skip_card_click",e)}))}else this.portStore.pause(),(0,a.x)(t.link,this.rootPlayer),this.track.e("skip_card_click",e)}ioError(t){this.danmakuStore.tooltipCenter("skip",t||"网络错误")}onDispose(){super.onDispose(),this.hasPatchOffset=!1}onDisconnect(){super.onDisconnect(),this.inited=!1}}},52419:function(t,e,i){"use strict";i.d(e,{x:function(){return K}});var n=i(22451),r=i(57012),o=i(28483),a=i(23529),s=i(46330),l=i(60802),A=i(13874),c=i(99149),h=i(70417),d=i(97203),u=i.n(d),p=i(25360),g=i.n(p),f=i(86494),m=i.n(f),y=i(47500),b=i.n(y),v=i(68224),E=i.n(v),I=i(50934),C=i.n(I),B=i(5489),w=i(51839),x=i(62022),Q=i(44127),S=i(68748);class k{constructor(t,e){this.container=t,this.url=e,this.cardFold={},this.duration=5e3,this.len=0,this.start=0,this.cardFold[e]=this.load(e)}show(t){const e=t||this.url;e&&!this.cardFold[e]&&(this.cardFold[e]=this.load(e)),this.cardFold[e].then((t=>{var e;this.img||(this.img=document.createElement("img"),this.container.appendChild(this.img)),this.start=performance.now(),this.len=null==(e=t.self_egg_within_limits)?void 0:e.length,this.len&&this.draw(t.self_egg_within_limits,this.start)})).catch((t=>{this.cardFold[e]=null}))}draw(t,e){
this.start||(this.start=e);const i=(e-this.start)/this.duration;if(i>1)return void this.clear();const n=Math.floor(this.len*i),r=t[n];r&&(this.img.src=r),this.animateTimer=window.requestAnimationFrame((e=>{this.draw(t,e)}))}load(t){return(0,S.qo)(t).then((t=>(0,S.Ri)(t)))}clear(){this.img=null,this.container.innerHTML="",this.animateTimer&&window.cancelAnimationFrame(this.animateTimer)}}var D=i(92651);function _(t,e){return Math.random()*(e-t)+t}const R=new class{constructor(){this.perm=(()=>{let t=[];for(let e=0;e<256;e++)t.push(Math.floor(256*Math.random()));return t.concat(t)})()}grad(t,e){const i=15&t,n=1+(7&i);return 8&i?-n*e:n*e}getValue(t){const e=Math.floor(t),i=e+1,n=t-e,r=n-1;let o=1-n*n;o*=o;let a=1-r*r;a*=a;return.395*(o*o*this.grad(this.perm[255&e],n)+a*a*this.grad(this.perm[255&i],r))}};class M{constructor(t,e,i,n){this.posX=_(0,t),this.posY=_(0,e),this.speed=_(1,2),this.scale=_(n[0],n[1]),this.rotate=_(-180,180),this.off=_(0,1e3),this.img=new Image,this.img.src=i}update(){this.speed+=.0035,this.posY+=this.speed,this.posX+=R.getValue(this.off),this.off+=.01}render(){const t=`scale(${this.scale})`,e=`rotate(${this.rotate}deg)`;this.img.style.cssText=(0,D.g)("transform",`translateX(${this.posX}px) translateY(${this.posY}px) translateZ(0px) ${t} ${e};`)}}class T{constructor(t){this.snowList=[],this.container=t.container,this.w=this.container.offsetWidth,this.h=this.container.offsetHeight;const e=Math.min(600,this.h);this.h+=e,this.container.style.cssText=`margin-top:-${e}px;padding-top:${e}px;`;for(let i=0;i<Math.floor(this.w*e/1e4);i++){const i=Math.floor(Math.random()*t.img.length),n=new M(this.w,e,t.img[i],t.scale);this.container.appendChild(n.img),this.snowList.push(n)}}draw(){for(let t=0;t<this.snowList.length;t++){const e=this.snowList[t];e.update(),e.posY>this.h?(this.container.removeChild(e.img),this.snowList.splice(t,1),t--):e.render()}this.snowList.length&&!this.paused&&window.requestAnimationFrame((()=>{this.draw()}))}pause(){this.paused=!0}play(){this.paused=!1,this.draw()}clear(){this.snowList.length=0,this.container.innerHTML=""}}var F=i(92115),L=i(89262),N=function(t){"undefined"!=typeof window&&window.__BILI_X_ENGINE_SCRIPT_CACHE__&&void 0!==window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]&&delete window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]},P=function(t,e){if("undefined"==typeof window)return Promise.reject(new Error("window is not defined"));var i,n=t=t.replace(/^https?:\/\//,"//"),r=(i=n,"undefined"==typeof window?null:window.__BILI_X_ENGINE_SCRIPT_CACHE__&&window.__BILI_X_ENGINE_SCRIPT_CACHE__[i]||null);if(null!=r&&r.promise)return r.promise;var o=new Promise((function(i,n){var r=document.createElement("script");r.src=t,null!=e&&e.behavior&&r.setAttribute(e.behavior,""),r.onload=function(){var r=window;if(null!=e&&e.lib)return r[e.lib]?i(r[e.lib]):n(new Error('Failed to access library "'+e.lib+'" from '+t));i(null)},r.onerror=function(){n(new Error("Failed to load "+t)),document.head.removeChild(r)},document.head.appendChild(r)}));return function(t,e){"undefined"!=typeof window&&(window.__BILI_X_ENGINE_SCRIPT_CACHE__||(window.__BILI_X_ENGINE_SCRIPT_CACHE__={}),window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]=e)}(n,{promise:o,lib:null==e?void 0:e.lib}),o.then((function(){!1===(null==e?void 0:e.cache)&&N(n)})).catch((function(){!1===(null==e?void 0:e.cache)&&N(n)})),o};var U=function(t){try{return window.__biliUserFp__?Promise.resolve(window.__biliUserFp__):(window.__USER_FP_CONFIG__=t,Promise.resolve(P("//s1.hdslb.com/bfs/seed/jinkela/short/user-fingerprint/bili-user-fingerprint.min.js",{lib:"__biliUserFp__"})))}catch(t){return Promise.reject(t)}},O=Object.defineProperty,G=Object.defineProperties,H=Object.getOwnPropertyDescriptor,V=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,Z=(t,e,i)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,j=(t,e)=>{for(var i in e||(e={}))z.call(e,i)&&Z(t,i,e[i]);if(Y)for(var i of Y(e))W.call(e,i)&&Z(t,i,e[i]);return t},q=(t,e)=>G(t,V(e)),J=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?H(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&O(e,i,o),o};class K extends B.vq{constructor(){super(...arguments),this.loadPromise={},this.sendBtnText="发送",this.count=0,this.onlineNumDebounceTimer=0}get hideUgcDmNumber(){var t,e;const i=null!=(e=null==(t=this.kvStore.state.dashConfig)?void 0:t.ugc_dm_number_hide)?e:1;return this.uiStore.kind===B.HR.Ugc&&!!i}baseInfo(){const t="//www.bilibili.com/";this.STATUS_TIPS={},this.STATUS_TIPS[w.Rs.SEND_STATUS_LOGOUT]='请先<a href="javascript:void(0);" data-action="login">登录</a>或<a href="//passport.bilibili.com/login?register_page=1" target="_blank" data-action="login">注册</a>',this.STATUS_TIPS[w.Rs.SEND_STATUS_LEVEL_LOW]=`请先答题<a href="${t}v/newbie/entry?re_src=16" data-action="startAnswer" target="_blank">转正></a>`,this.STATUS_TIPS[w.Rs.SEND_STATUS_LIMITED]="已被禁言，无法发弹幕",this.STATUS_TIPS[w.Rs.SEND_STATUS_NORMAL]="发个友善的弹幕见证当下",this.STATUS_TIPS[w.Rs.SEND_STATUS_TYPING]=`<a href="${t}blackboard/help.html#/?qid=359&pid=357" target="_blank"><span>弹幕礼仪 </span><span class="${this.cpx}-svg-icon">${u()}</span></a>`,this.STATUS_TIPS[w.Rs.SEND_STATUS_BEYOND_WORDS]="",this.STATUS_TIPS[w.Rs.SEND_STATUS_SENT]="发个友善的弹幕见证当下",this.STATUS_TIPS[w.Rs.SEND_STATUS_CLOSED]="本视频弹幕功能已关闭",this.STATUS_TIPS[w.Rs.SEND_STATUS_MANUALLY_CLOSED]="已关闭弹幕",this.STATUS_TIPS[w.Rs.SEND_STATUS_CANNOT_BUY]="课程调整中，暂不支持发送弹幕",this.STATUS_TIPS[w.Rs.SEND_STATUS_BLOCKING]="该账号处于封禁中",this.STATUS_TIPS[w.Rs.SEND_STATUS_BLOCKED]=`帐号封禁中，<a href="${t}blackroom/releaseexame.html" target="_blank">答题解禁</a>`,this.STATUS_TIPS[w.Rs.SEND_STATUS_UPDATE]="弹幕系统升级中",this.STATUS_TIPS[w.Rs.SEND_ANSWER_STATUS_IN]=`离转正还差一点点<a href="${t}v/newbie/entry?re_src=16"  data-action="inAnswer" target="_blank">继续答题</a>`,this.STATUS_TIPS[w.Rs.SEND_STATUS_UP_DM]="发个弹幕和观众互动吧",this.STATUS_TIPS[w.Rs.SEND_STATUS_ELECTRIC_TRIAL_WATCH]="充电后即可发送弹幕",this.SEND_ERROR_OBJ={0:"系统错误，发送失败。","-1":"选择的弹幕模式错误。","-2":"用户被禁止。","-3":"系统禁止。","-4":"投稿不存在。","-5":"UP主禁止。","-6":"权限有误。","-7":"视频未审核/未发布。","-8":"禁止游客弹幕。","-9":"禁止滚动弹幕、顶端弹幕、底端弹幕超过100字符。","-101":"您的登录已经失效，请重新登录。","-102":"您需要激活账号后才可以发送弹幕。","-108":"您暂时失去了发送弹幕的权利，请与管理员联系。","-400":"登录信息验证失败，请刷新后重试。","-403":"您不能发送包含换行符的弹幕。","-404":"您不能向一个不存在的弹幕池发送弹幕。","-634":"禁止发送空白弹幕。","-635":"禁止向未审核的视频发送弹幕。","-636":"您发送弹幕的频率过快。","-637":"弹幕包含被禁止的内容。","-638":"您已经被禁言，不能发送弹幕。","-639":"您的权限不足，不能发送这种样式的弹幕。","-640":"您的节操低于60，不能发送弹幕。","-641":"您的弹幕长度大于100。","-651":"您的等级不足，不能发送彩色弹幕。","-653":"您的等级不足，不能发送高级弹幕。","-654":"您的等级不足，不能发送底端弹幕。","-655":"您的等级不足，不能发送顶端弹幕。","-656":"您的会员等级为Lv0，弹幕长度不能超过20字符。"},this.status=null,this.danmakuIsUpdate=!1,this.SEND_DISABLED=!1,this.MAX_CHARS=0,this.COOL_DOWN=1e5}install(){super.install(),this.baseInfo(),this.sendBar=this.nodes.sendingBar,(0,o.h)(this.sendBar,this.renderFragment());const t=this.ppx;this.template={danmakubtn:this.sendBar.querySelector(`.${t}-video-btn-dm`),modeTrigger:this.sendBar.querySelector(`.${t}-iconfont-danmakutype`),inputbar:this.sendBar.querySelector(`.${t}-video-inputbar`),wrapBar:this.sendBar.querySelector(`.${t}-video-inputbar-wrap`),wrap:this.sendBar.querySelector(`.${t}-dm-wrap`),info:this.sendBar.querySelector(`.${t}-video-info`),online:this.sendBar.querySelector(`.${t}-video-info-online`),dm:this.sendBar.querySelector(`.${t}-video-info-dm`),danmakuRoot:this.sendBar.querySelector(`.${t}-dm-root`),danmakuSwitch:this.sendBar.querySelector(`.${t}-dm-switch`),danmakuSetting:this.sendBar.querySelector(`.${t}-dm-setting`),sendbtn:this.sendBar.querySelector(`.${t}-dm-btn-send`),input:this.sendBar.querySelector(`.${t}-dm-input`),hint:this.sendBar.querySelector(`.${t}-dm-hint`),emojiWrap:this.sendBar.querySelector(`.${t}-video-preview-emoji-wrap`),emojiImg:this.sendBar.querySelector(`.${t}-video-preview-emoji`)},this.sendbtn=new r.zx(this.template.sendbtn,{type:"blue",disabled:!0}),this.template.wrap.addEventListener("click",(t=>{switch(t.target.dataset.action){case"login":this.userStore.requestQuickLogin();break;case"startAnswer":this.track.e("answer_begin",{from:"player"});break;case"inAnswer":this.track.e("answer_goon",{from:"player"})}})),
this.sendbtn.on("click",(()=>{var t,e,i,n,r,o,a,s,l,A,c,h,d,u,p;let g=String(this.template.input.value).trim();const f=null==(e=null==(t=this.postPanelCard)?void 0:t.textInput)?void 0:e.textInputLimit;if(!g&&(null==(n=null==(i=this.postPanelCard)?void 0:i.textInput)?void 0:n.placeholderPost)&&this.postHolderMsg&&(g=this.postHolderMsg),g.length>f&&((null==(o=null==(r=this.postPanelCard)?void 0:r.checkBox)?void 0:o.defaultValue)||!(null==(a=this.postPanelCard)?void 0:a.checkBox)))this.tooltipStore.create({name:"outOfLimit",title:"超过字数限制哦！",target:this.container,position:B.DU.CenterCenter});else{if((null==(l=null==(s=this.postPanelCard)?void 0:s.label)?void 0:l.content)&&g&&(this.sendedInSug=!0),(null==(A=this.template)?void 0:A.carousel)&&(null==(c=this.template.carousel.classList)?void 0:c.contains("carousel-show"))){const t=this.template.carousel.querySelector(".item-show");t&&(g=t.innerText),this.template.carousel.classList.remove("carousel-show")}this.send(g),this.track.e("send_danmaku",{upcheckbox:this.dmModeStore.upDm,checkbox:(null==(h=this.postPanelCard)?void 0:h.checkBox)?null==(u=null==(d=this.postPanelCard)?void 0:d.checkBox)?void 0:u.defaultValue:"",encourage_type:(null==(p=this.postPanelCard)?void 0:p.bizType)||"",in_encourage_duration:this.postPanelCard?1:0})}})),this.dc.sendResize=(0,n.EH)((()=>{this.resize()})),this.initDmSwitch(),this.tooltipStore.create({name:"danmaku_switch",title:"弹幕已关闭",target:this.template.danmakuSwitch,position:B.DU.TopCenter,tip:!0}),this.configStore.embeddedEnv&&this.initEmbeddedStyle(),this.configStore.isChannel(B.u5.Mini_Site)&&this.initCornerStyle(),this.configStore.isChannel(B.u5.PC_APP)&&this.initPCAppLogic(),this.dc.dmSwitch=(0,n.U5)((()=>this.sendStore.dmVisible),(t=>{this.danmakuToggle(t,Boolean(this.danmakuStore.state.state)),this.trackExtra.p("player.danmuku_switch.click",B.p0.Click,{switch:t?1:0}),this.danmakuSwitch.value(t)}),{fireImmediately:!0}),this.dc.dmEnable=(0,n.U5)((()=>({fragClose:this.danmakuStore.state.fragClose,state:this.danmakuStore.state.state,forceOn:this.sendStore.state.forceOn})),(({fragClose:t,state:e,forceOn:i})=>{var n;e||t?(this.danmakuSwitch.disabled=!0,this.postPanelCard&&7===(null==(n=this.postPanelCard)?void 0:n.bizType)&&(this.danmakuSwitch.disabled=!1,this.setDisable(this.template.danmakuSetting)),this.danmakuToggle(!1,!0)):(i?(this.danmakuSwitch.disabled=!0,this.danmakuToggle(i,!1)):(this.danmakuToggle(this.sendStore.dmVisible,!1),this.danmakuSwitch.disabled=!1),this.removeDisable(this.template.danmakuSetting))}),{fireImmediately:!0}),this.danmakuSwitch.on("change",(t=>{t.manual&&(this.template.input.value="",this.focusOnInput.call(this),this.dmSettingStore.setState({dmSwitch:t.value,dmSwitchOut:t.value}),this.track.e(t.value?"ctlbar_danmuku_on":"ctlbar_danmuku_close"))})),this.dc.onlineCount=(0,n.EH)((()=>{const{allNum:t,showAll:e}=this.sendStore.state;let i=this.template.online.querySelector(`.${this.ppx}-video-info-online-num`);i?(window.clearTimeout(this.onlineNumDebounceTimer),this.onlineNumDebounceTimer=window.setTimeout((()=>{i.textContent=t}),1e3)):this.template.online.innerHTML=`<span class="${this.ppx}-video-info-online-num">${t}</span>人正在看`,this.template.info.classList[e?"remove":"add"](`${this.ppx}-hide-online`)}));const e=(0,x.Z)((t=>{if(!this.template.dm)return;let e=this.template.dm.querySelector(`.${this.ppx}-video-info-dm-num`);e?e.textContent=t:this.template.dm.innerHTML=`已装填 <span class="${this.ppx}-video-info-dm-num">${t}</span> 条弹幕`}),1e3,{trailing:!0});return this.dc.danmakuCountToggle=(0,n.U5)((()=>this.hideUgcDmNumber),(t=>{const e=this.ppx;if(t){if(this.template.dm){const t=this.template.info.querySelector(`.${e}-video-info-divide`);t&&t.remove(),this.template.dm.remove(),this.template.dm=null,this.template.info.classList.add(`${e}-video-info-ugc`),this.template.info.style.width="auto"}}else if(!this.template.dm){const t=document.createElement("div");t.className=`${e}-video-info-divide`,t.textContent="，";const i=document.createElement("div");i.className=`${e}-video-info-dm`,this.template.info.appendChild(t),this.template.info.appendChild(i),this.template.dm=i,this.template.info.classList.remove(`${e}-video-info-ugc`),this.resize()}})),this.dc.danmakuCount=(0,n.U5)((()=>this.hideUgcDmNumber?null:this.dmListStore.realCount),(t=>{null!==t&&e(t)}),{fireImmediately:!0}),this.dc.send=(0,n.EH)((()=>{const t=this.sendStore.state.dmRights;if(t){const e=t.input;Array.isArray(e)&&e.length&&(this.MAX_CHARS=e[0],this.COOL_DOWN=e[1])}})),this.dc.upHead=(0,n.EH)((()=>{this.danmakuStore.state.checkBox&&this.upImg()})),this.dc.hideDmNum=(0,n.EH)((()=>{const t=!(this.hideUgcDmNumber||!this.dmListStore.state.history&&1!==this.danmakuStore.state.state);this.hideDm(t)})),this.dc.sendText=(0,n.U5)((()=>this.danmakuStore.state.state),(t=>{const e=this.danmakuStore.state.text,i=this.danmakuStore.state.textSide;switch(t){case 1:e&&(this.STATUS_TIPS[w.Rs.SEND_STATUS_CLOSED]=e),i||this.danmakuStore.setState({textSide:this.STATUS_TIPS[w.Rs.SEND_STATUS_CLOSED]}),this.setDisable(this.template.danmakuSwitch),this.setDisable(this.template.danmakuSetting);break;case 2:e&&(this.STATUS_TIPS[w.Rs.SEND_STATUS_UPDATE]=e),i||this.danmakuStore.setState({textSide:this.STATUS_TIPS[w.Rs.SEND_STATUS_UPDATE]})}}),{fireImmediately:!0}),this.isFirst=!0,this.dc.sendStatus=(0,n.U5)((()=>this.sendStore.status),(t=>{switch(t){case w.Rs.SEND_STATUS_LEVEL_LOW:case w.Rs.SEND_ANSWER_STATUS_IN:case w.Rs.SEND_STATUS_CANNOT_BUY:case w.Rs.SEND_STATUS_LIMITED:case w.Rs.SEND_STATUS_BLOCKING:case w.Rs.SEND_STATUS_BLOCKED:this.isFirst=!0}this.setStatus(t,this.isFirst),this.isFirst=!1}),{fireImmediately:!0}),this.dc.timeUpdate=(0,n.U5)((()=>this.mediaStore.state.currentTime),(()=>{this.updateEmojiDmState()})),this.dc.dmSwitcher=(0,n.U5)((()=>({dmSwitch:this.dmSettingStore.state.dmSwitch,dmStatus:this.danmakuStore.state.state,sendStatus:this.sendStore.status})),(({dmSwitch:t,dmStatus:e,sendStatus:i})=>{var n,r,o,a;const s=null==(n=this.postPanelCard)?void 0:n.label;!this.postPanelCard||7!==(null==(r=this.postPanelCard)?void 0:r.bizType)&&5!==(null==(o=this.postPanelCard)?void 0:o.bizType)&&!(null==(a=null==s?void 0:s.content)?void 0:a.length)?0===e&&(t?(this.removeDisable(this.template.danmakuSetting),this.setStatus(i,null,!0)):(this.setDisable(this.template.danmakuSetting),this.setStatus(i,!0,!0))):t?this.removeDisable(this.template.danmakuSetting):this.setDisable(this.template.danmakuSetting)}),{fireImmediately:!0}),this.dc.dmPause=(0,n.EH)((()=>{this.dmToggle()})),this.dc.dmClear=(0,n.U5)((()=>this.dmSettingStore.state.dmClear),(()=>{var t;null==(t=this.snow)||t.clear()})),this.dc.resize=(0,n.U5)((()=>({height:this.uiStore.state.containerHeight,width:this.uiStore.state.containerWidth})),(({height:t,width:e})=>{var i;e&&t&&(null==(i=this.snow)||i.clear())}),{fireImmediately:!0}),this.dc.dmClear=(0,n.U5)((()=>this.sendStore.state.postPanelCard),(t=>{this.updateCStatus(t)}),{fireImmediately:!0}),this.dc.dmVisible=(0,n.EH)((()=>{var t;this.sendStore.dmVisible||null==(t=this.snow)||t.clear()})),this.dc.dmsend=(0,n.U5)((()=>this.sendStore.state.outSendMsg),(t=>{const{msg:e,fromPremiere:i,force:n}=t||{};this.send(e,i,n)})),this.dc.electricTrialWatch=(0,n.U5)((()=>this.userStore.isCharingTrialWatch),(t=>{t?this.setStatus(w.Rs.SEND_STATUS_ELECTRIC_TRIAL_WATCH,!0):this.userStore.isLogin||this.setStatus(w.Rs.SEND_STATUS_LOGOUT,!0)}),{fireImmediately:!0}),this.rootPlayer.on(B.p2.PLAYER_BEFORE_SEEKING,(()=>{var t;null==(t=this.snow)||t.clear()})),this.initFingerPointCollect(),this.bindEvents(),this}onVideoBtnClick(){this.container.classList.add(`${this.ppx}-mini-bar-show`),this.template.input.focus()}onDmCloseBtnClick(){this.resetInput()}removePcAppLogic(){this.template.inputbarClose&&this.template.inputbarClose.removeEventListener("click",this.onDmCloseBtnClick),this.template.inputbarClick&&this.template.inputbarClick.removeEventListener("click",this.onVideoBtnClick),this.template.inputbarClose=null,this.template.inputbarClick=null}initPCAppLogic(){this.template.inputbarClose=this.sendBar.querySelector(`.${this.ppx}-dm-btn-close`),
this.template.inputbarClick=this.sendBar.querySelector(`.${this.ppx}-video-btn-click`),this.template.inputbarClose&&this.template.inputbarClose.addEventListener("click",this.onDmCloseBtnClick),this.template.inputbarClick&&this.template.inputbarClick.addEventListener("click",this.onVideoBtnClick),this.dc.resize=(0,n.U5)((()=>this.uiStore.state.videoAreaWidth),(t=>{this.wrapWidth=t,this.resetInput(!0)}),{fireImmediately:!0}),F.T.addEvents((t=>{if(t)return!!this.template.inputbar.contains(t.target)||void this.resetInput();this.resetInput()}))}resetInput(t){let e="add";this.wrapWidth>800&&(e="remove",this.container.classList.remove(`${this.ppx}-mini-bar-show`)),this.template.danmakuRoot.classList[e](`${this.ppx}-mini-bar`),t||this.container.classList.remove(`${this.ppx}-mini-bar-show`)}initDmSwitch(){const t=this.configStore.revision,e=this.configStore.embeddedEnv,i=this.configStore.isChannel(B.u5.PC_APP),n=this.configStore.isChannel(B.u5.Mini_Site);let o=r.rs;([1,2].includes(t)||e||i||n)&&(o=r.ne);const a=this.configStore.isChannel(B.u5.PC_APP);this.danmakuSwitch=new o(this.template.danmakuSwitch,{isPc:a,useMobileStyle:n,value:!0})}initFingerPointCollect(){U({activityEvents:["mousemove","click"],logStackMaxLength:50,samplingTime:100})}updateCStatus(t){t||(this.postHolderMsg="");let e=!0;switch(this.status){case w.Rs.SEND_STATUS_NORMAL:case w.Rs.SEND_STATUS_TYPING:case w.Rs.SEND_STATUS_BEYOND_WORDS:case w.Rs.SEND_STATUS_SENT:case w.Rs.SEND_STATUS_UP_DM:case w.Rs.SEND_STATUS_DYNAMIC_PANEL:e=!1}e||this.postPanelCard===t||(this.postPanelCard=t,this.unsetCoolDown(),this.sendbtn.setText(this.sendBtnText),this.danmakuStore.setState({fragClose:null}),t?(this.status===w.Rs.SEND_STATUS_SENT||this.status===w.Rs.SEND_STATUS_TYPING?this.lastStatus=w.Rs.SEND_STATUS_NORMAL:this.status!==w.Rs.SEND_STATUS_DYNAMIC_PANEL&&(this.lastStatus=this.status),this.setStatus(w.Rs.SEND_STATUS_DYNAMIC_PANEL)):(this.lastStatus&&(this.template.input.value="",this.setStatus(this.lastStatus),this.upImg(),this.resize()),this.lastStatus=null))}dmToggle(){var t,e;const{paused:i,buffering:n}=this.mediaStore.state;i||n?null==(t=this.snow)||t.pause():null==(e=this.snow)||e.play()}hideDm(t){var e;null==(e=this.template)||e.info.classList[t?"add":"remove"](`${this.ppx}-hide-dm`)}bindEvents(){const t=this;try{this.window=window.parent&&window.parent.document?window.parent:window}catch(t){this.window=window}this.template.input.addEventListener("input",(()=>{!this.SEND_DISABLED&&this.focusOnInput.call(this)})),this.template.input.addEventListener("keydown",(t=>{13===t.keyCode?this.template.input.value?this.SEND_DISABLED||this.template.sendbtn.click():this.template.input.blur():27===t.keyCode&&this.template.input.blur(),t.stopPropagation()})),this.template.input.addEventListener("keyup",(function(){return t.updateEmojiDmState(!0,!0),!1})),this.template.input.addEventListener("focus",(()=>{var t;this.sendStore.setState({focus:!0}),this.track.e("input_focus",{encourage_type:(null==(t=this.postPanelCard)?void 0:t.bizType)||"",in_encourage_duration:this.postPanelCard?1:0}),this.trackExtra.p("player.textarea-danmaku.click",B.p0.Click)})),this.template.input.addEventListener("blur",(()=>{this.sendStore.setState({focus:!1})})),this.template.hint.querySelector('a[target="_blank"]').addEventListener("click",(()=>{this.track.e("danmaku_etiquette")})),this.template.emojiImg.addEventListener("click",(()=>{this.SEND_DISABLED||(this.sendByEmoji=!0,this.status=w.Rs.SEND_STATUS_TYPING,this.send(String(this.template.input.value).trim()))}))}updateEmojiDmState(t=!0,e=!1){const i=this.template.input.value;let n=!1;if(i&&t){const t=this.getEmojiSrc(i);t&&(n=!0,this.template.emojiImg.src=t,e&&this.track.e("dm_preview_show",{content:i}))}this.template.emojiWrap.classList[n?"add":"remove"](`${this.ppx}-video-preview-emoji-wrap-show`)}getEmojiSrc(t){var e,i;const n=this.danmakuStore.state.expressions;if(!n)return null;const r=Math.ceil(1e3*this.portStore.getCurrentTime());for(let o=0;o<n.length;o++){if(!(null==(i=null==(e=n[o])?void 0:e.data)?void 0:i.length))continue;const a=n[o].data;for(let e=0;e<a.length;e++){const i=a[e];if(i.keyword.indexOf(t)>=0){const t=i.period;for(let e=0;e<t.length;e++){const[n=0,o=0]=[t[e].start,t[e].end];if(-1===o||r>=n&&r<=o)return i.url}}}}return null}setStatus(t,e,i){const n=this.template;if(this.status===t&&w.Rs.SEND_STATUS_DYNAMIC_PANEL!==t&&!i)return this.status===w.Rs.SEND_STATUS_BEYOND_WORDS&&(n.hint.innerHTML=`<span class="beyond-words">${this.textLength} / ${this.MAX_CHARS}</span>`),this.checkPanelCheckBox(),this.checkSug(),void this.checkBubble();const r=this.STATUS_TIPS;this.danmakuIsUpdate&&(t=w.Rs.SEND_STATUS_UPDATE),this.userStore.isCharingTrialWatch&&(t=w.Rs.SEND_STATUS_ELECTRIC_TRIAL_WATCH),this.preStatus=this.status,this.status=t,n.inputbar.classList.remove("unlogin");const o=n.input;if(!this.dmSettingStore.state.dmSwitch&&this.status!==w.Rs.SEND_STATUS_DYNAMIC_PANEL&&this.sendStore.status!==w.Rs.USER_LOGOUT)return this.sendbtn.disabled=!0,(0,a.N)(n.danmakubtn),(0,a.N)(o),(0,s.o)(n.wrap),n.wrap.innerHTML=r[w.Rs.SEND_STATUS_MANUALLY_CLOSED],this.setMiniDesc(!0),this.resize(),this.updateEmojiDmState(),this.dmSettingStore.state.dmSwitch?this.removeDisable(this.template.danmakuSetting):this.setDisable(this.template.danmakuSetting),void(0,s.o)(n.hint);if(e||t===w.Rs.SEND_STATUS_UP_DM)switch(this.sendbtn.disabled=!0,(0,a.N)(n.danmakubtn),(0,a.N)(o),(0,s.o)(n.wrap),n.wrap.innerHTML=r[t],(0,s.o)(n.hint),t){case w.Rs.SEND_STATUS_LOGOUT:this.removeDisable(n.inputbar),this.template.inputbar.classList.add("unlogin"),this.sendbtn.disabled=!0;break;case w.Rs.SEND_STATUS_CANNOT_BUY:case w.Rs.SEND_STATUS_LIMITED:this.setDisable(n.inputbar);break;case w.Rs.SEND_STATUS_LEVEL_LOW:case w.Rs.SEND_ANSWER_STATUS_IN:this.setDisable(n.inputbar),(0,a.N)(n.hint);break;case w.Rs.SEND_STATUS_NORMAL:case w.Rs.SEND_STATUS_UP_DM:this.SEND_DISABLED=!1,o.value="",n.hint.innerHTML=r[w.Rs.SEND_STATUS_TYPING],(0,s.o)(o),(0,s.o)(n.danmakubtn),(0,s.o)(n.hint),(0,a.N)(n.wrap),this.removeDisable(n.inputbar),this.sendbtn.disabled=!1,this.template.inputbar.classList.add("focus");break;case w.Rs.SEND_STATUS_ELECTRIC_TRIAL_WATCH:n.wrap.innerHTML=r[t],this.sendbtn.disabled=!0,this.setDisable(n.inputbar);break;case w.Rs.SEND_STATUS_BLOCKING:case w.Rs.SEND_STATUS_BLOCKED:this.setDisable(n.inputbar);break;case w.Rs.SEND_STATUS_UPDATE:case w.Rs.SEND_STATUS_CLOSED:this.hideDm(!0);break;case w.Rs.SEND_STATUS_DYNAMIC_PANEL:this.postPanelStyle()}else switch(this.removeDisable(n.inputbar),t){case w.Rs.SEND_STATUS_NORMAL:case w.Rs.SEND_STATUS_UP_DM:this.SEND_DISABLED=!1,(0,a.N)(n.wrap),(0,s.o)(o),(0,s.o)(n.danmakubtn),n.hint.innerHTML=r[w.Rs.SEND_STATUS_TYPING],this.sendbtn.disabled=!1,this.focusOnInput(),this.template.inputbar.classList.add("focus");break;case w.Rs.SEND_STATUS_TYPING:(0,a.N)(n.wrap),n.hint.innerHTML=r[t],(0,s.o)(n.danmakubtn),this.sendbtn.disabled=!1;break;case w.Rs.SEND_STATUS_BEYOND_WORDS:(0,a.N)(n.wrap),n.hint.innerHTML=`<span class="beyond-words">${this.textLength} / ${this.MAX_CHARS}</span>`,setTimeout((()=>{this.sendbtn.disabled=!0}));break;case w.Rs.SEND_STATUS_SENDING:o.value="",o.blur(),this.sendbtn.disabled=!0,this.SEND_DISABLED=!0;break;case w.Rs.SEND_STATUS_SENT:o.value="",o.blur(),this.sendbtn.disabled=!0,this.SEND_DISABLED=!0,this.setCoolDown(this.COOL_DOWN);break;case w.Rs.SEND_STATUS_UPDATE:case w.Rs.SEND_STATUS_CLOSED:(0,s.o)(n.wrap),n.wrap.innerHTML=r[t],(0,a.N)(n.danmakubtn),(0,a.N)(o),this.hideDm(!0),this.sendbtn.disabled=!0;break;case w.Rs.SEND_STATUS_ELECTRIC_TRIAL_WATCH:n.wrap.innerHTML=r[t],this.sendbtn.disabled=!0,this.setDisable(n.inputbar);break;case w.Rs.SEND_STATUS_DYNAMIC_PANEL:this.postPanelStyle()}this.resize(),this.updateEmojiDmState(),this.checkPanelCheckBox(),this.checkSug(),this.checkBubble(),this.setMiniDesc(this.SEND_DISABLED)}setMiniDesc(t){const e=t?"已关闭弹幕":"点击发送弹幕";this.template.inputbarClick&&(this.template.inputbarClick.innerHTML=e,this.template.inputbarClick.dataset.disabled=t+"")}checkPanelCheckBox(){var t;if(!([1,2].indexOf(this.danmakuStore.state.state)>-1||this.configStore.embeddedEnv>1))if(null==(t=this.postPanelCard)?void 0:t.checkBox){
if(!this.template.checkBox){const{text:t,defaultValue:e}=this.postPanelCard.checkBox,i=document.createElement("div");i.className=`${this.ppx}-video-inputbar-checkBox`,this.template.inputbar.appendChild(i),this.template.checkBox=i,this.postPanelCheckbox=new r.XZ(i,{name:t,value:e}),this.postPanelCheckbox.on("change",(t=>{t.manual&&(this.postPanelCard.checkBox.defaultValue=t.value)}))}this.postPanelCheckbox.value(this.postPanelCard.checkBox.defaultValue),this.template.inputbar.classList.remove(`${this.ppx}-checkBox-hide`)}else this.template.inputbar.classList.add(`${this.ppx}-checkBox-hide`)}checkSug(){var t,e,i,n,r,o;if([1,2].indexOf(this.danmakuStore.state.state)>-1)return;if(this.configStore.embeddedEnv)return;const a=null==(t=this.postPanelCard)?void 0:t.label;if(null==(e=null==a?void 0:a.content)?void 0:e.length){if(!this.template.sugWrap){const t=this.sugTpl();this.template.input.insertAdjacentHTML("beforebegin",t),this.template.sugList=this.sendBar.querySelector(`.${this.ppx}-postpanel-sug-list`),this.template.sugTitle=this.sendBar.querySelector(`.${this.ppx}-postpanel-sug-title`),this.template.sugWrap=this.sendBar.querySelector(`.${this.ppx}-postpanel-sug`),this.template.carousel=this.sendBar.querySelector(`.${this.ppx}-postpanel-carousel`),this.configStore.isChannel(B.u5.PC_APP)&&(this.template.sugWrap.classList.add(`${this.ppx}-postpanel-sug-pc-app`),this.template.sugList.classList.add(`${this.ppx}-postpanel-sug-list-pc-app`)),this.template.wrapBar.addEventListener("click",(()=>{var t,e;const i=null==(t=this.postPanelCard)?void 0:t.label;(null==(e=null==i?void 0:i.content)?void 0:e.length)&&this.template.sugWrap&&(this.template.inputbar.classList.add(`${this.ppx}-sug`),this.template.sugWrap.classList.add("sugShow"))})),this.template.sugList.addEventListener("click",(t=>{var e;const i=t.target;i.classList.contains(`${this.ppx}-postpanel-sug-item`)&&(this.template.input.value=i.innerText,this.template.carousel&&(null==(e=this.template.carousel)?void 0:e.classList.contains("carousel-show"))&&this.template.carousel.classList.remove("carousel-show"))})),this.template.carousel.addEventListener("click",(()=>{const t=this.template.carousel.querySelector(".item-show");t&&(this.template.input.value=t.innerText,this.template.carousel.classList.remove("carousel-show"))})),this.windowClick=t=>{var e;return!!this.template.wrapBar.contains(t.target)||(2===t.button||void((null==(e=this.template.sugWrap)?void 0:e.classList.contains("sugShow"))&&(this.template.inputbar.classList.remove(`${this.ppx}-sug`),this.template.sugWrap.classList.remove("sugShow"))))},this.window.addEventListener("click",this.windowClick,!0)}const{sugList:t,carousel:e,sugTitle:r,input:o,danmakubtn:s,sugWrap:l,inputbar:A}=this.template;let c="",h="";for(let t=0;t<a.content.length;t++){const e=this.configStore.isChannel(B.u5.PC_APP)?` ${this.ppx}-postpanel-sug-item-pc-app`:"";c+=`<li class="${this.ppx}-postpanel-sug-item${e}">${a.content[t]}</li>`,h+=`<div class="${this.ppx}-postpanel-carousel-item">${a.content[t]}</div>`}if(t.innerHTML=c,e.innerHTML=h,r.innerHTML=null==a?void 0:a.title,e.style.cssText=`left:${s.offsetWidth}px;`,o.value&&(A.classList.add(`${this.ppx}-sug`),l.classList.add("sugShow")),!o.value){const t=()=>{var t,i;if(o.value||this.sendedInSug)return;!e.classList.contains("carousel-show")&&"false"===e.dataset.showed&&(null==(t=null==a?void 0:a.content)?void 0:t.length)>0&&(e.classList.add("carousel-show"),e.dataset.showed="true");const n=null==(i=this.template.carousel)?void 0:i.querySelectorAll(`.${this.ppx}-postpanel-carousel-item`);if(!n.length)return;const r=this.count%n.length;n.forEach(((t,e)=>{e!==r?t.classList.remove("item-show"):t.classList.add("item-show")})),this.count=r,this.count++};"true"===(null==(n=null==(i=this.template)?void 0:i.bubble)?void 0:n.dataset.showed)&&t(),this.carouselTimer&&clearInterval(this.carouselTimer),this.carouselTimer=window.setInterval(t,5e3)}}else(null==(r=this.template.sugWrap)?void 0:r.classList.contains("sugShow"))&&this.template.sugWrap.classList.remove("sugShow"),(null==(o=this.template.carousel)?void 0:o.classList.contains("carousel-show"))&&this.template.carousel.classList.remove("carousel-show"),this.carouselTimer&&clearInterval(this.carouselTimer),this.carouselTimer=null,this.count=0,this.sendedInSug=!1,this.template.carousel&&(this.template.carousel.dataset.showed="false")}checkBubble(){var t,e;if([1,2].indexOf(this.danmakuStore.state.state)>-1)return;const i=null==(t=this.postPanelCard)?void 0:t.bubble;if(null==i?void 0:i.text){if(!this.template.bubble){const t=this.bubbleTpl();this.template.wrapBar.insertAdjacentHTML("beforeend",t),this.template.bubble=this.sendBar.querySelector(`.${this.ppx}-postpanel-popup`),this.template.bubbleContent=this.sendBar.querySelector(`.${this.ppx}-postpanel-popup-content`)}this.template.bubbleContent.innerHTML=i.text,this.template.bubble.dataset.once=""+i.exposureOnce,this.template.bubble.classList.contains("popup")||"false"!==this.template.bubble.dataset.showed||(this.template.bubble.classList.add("popup"),this.template.bubble.dataset.showed="true",window.setTimeout((()=>{var t;(null==(t=this.template.bubble)?void 0:t.classList.contains("popup"))&&this.template.bubble.classList.remove("popup"),"true"!==this.template.bubble.dataset.once&&(this.template.bubble.dataset.showed="false")}),5e3))}else(null==(e=this.template.bubble)?void 0:e.classList.contains("popup"))&&this.template.bubble.classList.remove("popup")}postPanelStyle(){var t;const{textInput:e,label:i,postStatus:n,clickButton:r,start:o,end:l}=this.postPanelCard,{wrap:A,danmakubtn:c,input:h}=this.template;if(1===n)return this.patchAdvStore.hasValidAdv&&this.portStore.getCurrentTime()>=o&&this.portStore.getCurrentTime()<=l||(A.textContent=null==r?void 0:r.portraitText[0]),(0,s.o)(A),(0,a.N)(c),(0,a.N)(h),this.upImg(!0),this.danmakuStore.setState({fragClose:!0}),void(this.sendbtn.disabled=!0);if(this.sendbtn.disabled=!1,(0,a.N)(A),(0,s.o)(c),(0,s.o)(h),this.postHolderMsg=this.STATUS_TIPS[w.Rs.SEND_STATUS_NORMAL],null==(t=null==e?void 0:e.landscapePlaceholder)?void 0:t.length){const t=Math.floor((null==e?void 0:e.landscapePlaceholder.length)*Math.random());this.postHolderMsg=null==e?void 0:e.landscapePlaceholder[t]}h.setAttribute("placeholder",this.postHolderMsg)}send(t,e,i){var n,r;if((t=t.replace(/^#delete#/i,""))&&this.configStore.cid&&(i||e||this.status===w.Rs.SEND_STATUS_TYPING||this.postPanelCard)){const i=new Date,o=this.patchAdvStore.hasValidAdv?1e3*this.mediaStore.video.currentTime:1e3*this.portStore.getCurrentTime();let{color:a,fontsize:s,mode:c,pool:h,colorful:d}=this.dmModeStore.state,u=(null==(r=null==(n=this.postPanelCard)?void 0:n.checkBox)?void 0:r.defaultValue)?1:0;this.dmModeStore.upCheckbox&&!h&&(u=4,a=16777215,s=25,h=0);const p={color:a,fontsize:s,pool:h,mode:c,type:1,oid:this.configStore.cid,msg:t,aid:this.configStore.aid,progress:Math.ceil(o),rnd:this.configStore.pid,plat:1,checkbox_type:u,colorful:d,gaiasource:"main_web"},g=this.userStore.info,f={mode:c,color:a,colorful:d,pool:h,size:s,stime:o+100,dmid:"",text:t,border:!0,uhash:null==g?void 0:g.hashId,date:Date.parse(String(i))/1e3,weight:10,colorfulImg:"",isMine:!0};if(this.mpdStore.state.suspectDuration>0)return this.dmListStore.addDm(f),this.sendStore.setState({status:w.Rs.SEND_STATUS_SENT}),!0;if(/^#(actor)#/i.test(t))return void this.postCMD(t,j({command:""},f));const m=i=>{var n,r,o,a,s,c;let h,{code:d,dmid:u,action:p,animation:g,message:m,dm_content:y}=i.body||{},b=null==(r=null==(n=i.response.data)?void 0:n.data)?void 0:r.colorful_src;if(this.trackExtra.p("player.dm-send-result.click",B.p0.Click,{dmid:u,danmaku_type:(null==(o=(0,l.j)(g))?void 0:o.id)||f.mode,code:d}),b&&(h=this.danmakuStore.updateColorfulProtocol(b.src)),y&&(f.text=y),this.sendByEmoji&&i&&(this.sendByEmoji=!1,this.track.e("dm_preview_click",{content:t,dmid:(null==(a=i.body)?void 0:a.dmid)||"",success:+!i.body.code})),36711!==d){if(0===d&&u){const t=(0,l.$)(p);t.vote&&this.dmCmdStore.setState({voteId:Number(t.vote)}),t.grade&&this.dmCmdStore.setState({scoreGrade:Number(t.grade)}),t.upEgg&&this.dmCmdStore.setState({upEgg:(0,A.g)(t.upEgg)}),t.selfActEgg&&this.showEgg(t.selfActEgg),
f.dmid=u,f.animation=g,f.stime=1e3*this.portStore.getCurrentTime();let e=!0;if(g){const t=(0,l.j)(g);switch(t.id){case 20016:1===t.direction&&(this.dmListStore.setState({addReverseList:[q(j({},f),{stime:f.stime/1e3||0,effect:t})]}),e=!1);break;case 20017:const i=this.dmListStore.state.metaResource.filter((t=>20017===t.id))[0];1===JSON.parse(g).color_type||(f.animation=JSON.stringify(q(j({},JSON.parse(g)),{resource:`https://${i.color_picture.resource}`})));break;case 20019:this.dmCmdStore.setState({businessConfig:{jumpUrl:t.jump_url,animationAttr:t.animation_attr,resource:t.resource,loopNum:t.loop_num,advancedBlocked:t.advanced_block}})}}"cloud"===p?(f.encourageType="cloud",this.dmCmdStore.setState({wordCloudSelfItem:f})):(f.colorfulImg=h,e&&this.dmListStore.addDm(f)),null==(s=this.track)||s.e("send_danmaku_success",{upcheckbox:this.dmModeStore.upDm,dmid:f.dmid}),this.sendStore.setState({status:w.Rs.SEND_STATUS_SENT}),this.trackExtra.p("player.danmuku_send.click",B.p0.Click,{danmaku_type:(null==(c=(0,l.j)(g))?void 0:c.id)||f.mode,msg:f.text,size:f.size,color:f.color,state:this.mediaStore.state.paused?0:1})}else-8===d?this.userStore.requestQuickLogin():61001===d||61002===d?(this.uiStore.isFullView&&this.portStore.reqStatue(null),this.rootPlayer.emit(B.tw.Player_Virtual_Action,new CustomEvent(B.tw.Player_Virtual_Action,{detail:{kind:B.s.Realname_Certified,data:{code:d,message:t}}}))):(t=m||"发送失败，未知错误",i&&(t||this.SEND_ERROR_OBJ[d]&&(t=this.SEND_ERROR_OBJ[d])),e||this.ioFail(t));this.updateEmojiDmState(!1)}else this.danmakuStore.setState({textSide:this.STATUS_TIPS[w.Rs.SEND_STATUS_UPDATE],state:2})};if(e){const t={scene:2,post_type:1,text:JSON.stringify(p),polaris_app_id:100,polaris_platform:5,spmid:this.configStore.spmId,from_spmid:this.configStore.spmIdFrom,statistics:this.configStore.statisticsReport};this.sendStore.firstShowSend(t).then((t=>{m(t)})).catch((t=>{this.ioFail((null==t?void 0:t.message)||"发送失败，无法连接服务器")}))}else this.sendStore.send(p).then((t=>{m(t)})).catch((t=>{this.ioFail((null==t?void 0:t.message)||"发送失败，无法连接服务器")}))}else this.status===w.Rs.SEND_STATUS_NORMAL&&this.template.input.focus()}postCMD(t,e){return i=this,n=null,r=function*(){var i;const n=/^#up#/i.test(t),r=/^#actor#/i.test(t),o={msg:t.replace(/^#(up|actor)#/gi,"")};e.text=o.msg;const a={type:4,aid:this.configStore.aid,cid:this.configStore.cid,progress:Math.ceil(e.stime),plat:1,data:JSON.stringify(o)};n?a.type=1:r&&(a.type=3);const s=yield this.sendStore.cmdSend(a);try{const{code:t,message:o,dmid:a,extra:l}=s.body;if(0!==t)return this.ioFail(o||"发送失败");e.stime=-1e3,e.dmid=a,e.extra=l;const A=JSON.parse(l);if(n)e.command="#UP#",this.track.e("send_image_danmaku");else if(r){e.command="#ACTOR#";const{body:t}=yield this.httpStore.fetchViewInfo(!0);e.extra=JSON.stringify({user:{officialType:A.user.officialType,face:null==(i=t.owner)?void 0:i.face}}),this.track.e("send_actor_danmaku")}this.danmakuStore.setState({addCmd:e})}catch(t){this.ioFail("发送失败")}this.sendStore.setState({status:w.Rs.SEND_STATUS_SENT})},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}ioFail(t){"__GaiaRiskHit__"===t&&(t="收到神秘力量干扰,请稍后再试!"),this.tooltipStore.create({name:"send",title:t,target:this.container,position:B.DU.CenterCenter})}showSnow(t,e){var i;let n=this.nodes.cmdDanmaku.querySelector(`.${this.ppx}-snow-drop`);n||(n=document.createElement("div"),n.className=`${this.ppx}-snow-drop`,this.nodes.cmdDanmaku.append(n)),null==(i=this.snow)||i.clear(),this.snow=new T({container:n,img:t,scale:e});const{paused:r,buffering:o}=this.mediaStore.state;r||o?this.snow.pause():this.snow.play()}showEgg(t){var e;const i=(0,A.g)(t);if(i.url){if(2==+i.template_type){let t=this.nodes.cmdDanmaku.querySelector(`.${this.ppx}-self-egg`);return t||(t=document.createElement("div"),t.className=`${this.ppx}-self-egg`,this.nodes.cmdDanmaku.append(t)),this.selfEgg||(this.selfEgg=new k(t,i.url)),null==(e=this.selfEgg)||e.clear(),void this.selfEgg.show(i.url)}1!=+i.template_type?3==+i.template_type&&this.loadDm(i.url).then((t=>{(null==t?void 0:t.animate)&&this.showSnow(t.animate,[1,3])})).catch((()=>{})):this.showSnow({length:1,0:"//"+i.url},[.8,1.5])}}loadDm(t){return this.loadPromise[t]=this.loadPromise[t]||(0,S.qo)(t).then((t=>(0,S.Ri)(t))),this.loadPromise[t]}focusOnInput(){if(!this.status)return!0;const t=this.template.input.value;this.textLength=t.length;let e=w.Rs.SEND_STATUS_NORMAL;this.textLength>this.MAX_CHARS?(e=w.Rs.SEND_STATUS_BEYOND_WORDS,this.status===e&&(this.template.hint.innerHTML=`<span class="beyond-words">${this.textLength} / ${this.MAX_CHARS}</span>`)):0===this.textLength?this.dmModeStore.upCheckbox&&(e=w.Rs.SEND_STATUS_UP_DM,this.template.hint.innerHTML=this.STATUS_TIPS[w.Rs.SEND_STATUS_TYPING]):e=w.Rs.SEND_STATUS_TYPING,this.sendStore.setState({status:e})}danmakuToggle(t,e){this.danmakuStatus=e?"弹幕已关闭":t?"关闭弹幕 (d)":"开启弹幕 (d)",this.tooltipStore.update("danmaku_switch",{title:this.danmakuStatus})}setCoolDown(t){this.sendbtn.setText(` ${t/1e3} 秒`),t>0?this.coolDownTimer=window.setTimeout((()=>{this.setCoolDown(t-1e3)}),1e3):(delete this.coolDownTimer,this.sendbtn.setText(this.sendBtnText),this.sendStore.setState({status:w.Rs.SEND_STATUS_NORMAL}))}unsetCoolDown(){var t;this.coolDownTimer&&(clearTimeout(this.coolDownTimer),1===(null==(t=this.postPanelCard)?void 0:t.postStatus)?delete this.coolDownTimer:this.setCoolDown(0))}resize(){const t=this.uiStore.state.containerWidth;let e="",i=200;this.status===w.Rs.SEND_STATUS_UP_DM?t<638?e="发个弹幕互动吧":(e=this.STATUS_TIPS[w.Rs.SEND_STATUS_UP_DM],i=.34*(t-44)):t<638?e="发个弹幕见证当下":(e=this.STATUS_TIPS[w.Rs.SEND_STATUS_NORMAL],i=.34*(t-44));if(i=t-Math.min(t-i,838),1!==this.configStore.revision?this.template.info.style.width=this.hideUgcDmNumber?"auto":i+"px":this.hideUgcDmNumber&&(this.template.info.style.width="auto"),this.postPanelCard){const{carousel:t,danmakubtn:e}=this.template;t&&(t.style.cssText=`left:${e.offsetWidth}px;`)}else this.template.input.setAttribute("placeholder",e)}removeDisable(t){return t.classList.remove("disabled"),t}setDisable(t){return t.classList.add("disabled"),t}upImg(t){var e;if(this.template.emojiWrap.classList[this.dmModeStore.upCheckbox?"add":"remove"](`${this.ppx}-up-emoji`),this.dmModeStore.upCheckbox){if(!t)return this.userHead?((0,s.o)(this.userHead),void this.sendStore.setState({status:w.Rs.SEND_STATUS_UP_DM})):void this.httpStore.fetchViewInfo(!0).then((({body:t})=>{var e;const i=null==(e=t.owner)?void 0:e.face;this.userHead=document.createElement("div"),this.userHead.className=`${this.ppx}-up-head`;const n=new Image;if(n.className=`${this.ppx}-up-head-img`,n.src=i,this.userHead.appendChild(n),this.template.wrapBar.insertBefore(this.userHead,this.template.wrap),this.sendStore.setState({status:w.Rs.SEND_STATUS_UP_DM}),this.danmakuStore.state.fragClose){this.status=w.Rs.SEND_STATUS_DYNAMIC_PANEL,(0,a.N)(this.userHead);const{portraitPlaceholder:t}=this.postPanelCard.textInput,{wrap:e,danmakubtn:i,input:n}=this.template;(0,s.o)(e),this.patchAdvStore.hasValidAdv&&this.patchAdvStore.mainInfo.cid!==this.configStore.cid||(e.textContent=t[0]),(0,a.N)(i),(0,a.N)(n),this.sendbtn.disabled=!0}})).catch(Q.Z);(0,a.N)(this.userHead)}else this.userHead&&((0,a.N)(this.userHead),this.preStatus===w.Rs.SEND_STATUS_DYNAMIC_PANEL&&1===(null==(e=this.postPanelCard)?void 0:e.postStatus)?this.sendStore.setState({status:this.lastStatus}):this.sendStore.setState({status:this.preStatus}))}sugTpl(){const t=this.ppx;return`<div class="${t}-postpanel-sug">\n                  <div class="${t}-postpanel-sug-title"></div>\n                  <ul class="${t}-postpanel-sug-list"></ul>\n                </div>\n                <div class="${t}-postpanel-carousel" data-showed="false">\n                </div>`}bubbleTpl(){const t=this.ppx;return`<div class="${t}-postpanel-popup" data-once="false" data-showed="false">\n                  <div class="${t}-postpanel-popup-content"></div>\n                </div>`}initCornerStyle(){
this.nodes.controlBottomRight&&this.template.danmakuSwitch&&this.nodes.controlBottomRight.appendChild(this.template.danmakuSwitch)}initEmbeddedStyle(){const t=this.configStore.embeddedEnv===B.vt.Embedded,e=this.embeddedTpl();this.template.inputbar.insertAdjacentHTML("beforeend",e),this.template.close=this.template.inputbar.querySelector(`.${this.ppx}-inputbar-close`),this.template.mask=this.template.inputbar.querySelector(`.${this.ppx}-inputbar-mask`),this.template.mask.innerHTML=t?"点我发弹幕！":"一起去哔哩哔哩发送弹幕吧！",t||(0,a.N)(this.template.danmakuSetting),this.dc.EmbedViewMode=(0,n.U5)((()=>this.uiStore.embedView),(e=>{e<=B.pp.Small?(this.nodes.controlBottomCenter.classList.add(`${this.ppx}-control-bottom-center-small`),(0,a.N)(this.template.inputbar),(0,a.N)(this.template.danmakuSetting),e!==B.pp.Tiny||this.configStore.businessShowDmSwitch||(0,a.N)(this.template.danmakuSwitch)):(this.nodes.controlBottomCenter.classList.remove(`${this.ppx}-control-bottom-center-small`),(0,s.o)(this.template.inputbar),t&&(0,s.o)(this.template.danmakuSetting),(0,s.o)(this.template.danmakuSwitch))}),{fireImmediately:!0}),this.dp.inputbar=(0,n.U5)((()=>this.danmakuStore.state.isHideInput),(t=>{this.template.inputbar.classList[t?"add":"remove"](`${this.spx}-inputbar-hide`)}),{fireImmediately:!0}),this.template.mask.addEventListener("click",(()=>{if(t)this.danmakuStore.setState({isHideInput:!1});else{const t=this.portStore.getRedirectTime();(0,w.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid,t),this.portStore.pause()}})),this.template.close.addEventListener("click",(()=>{this.danmakuStore.setState({isHideInput:!0})}))}embeddedTpl(){const t=this.ppx;return`\n            <div class="${t}-inputbar-close">${g()}</div>\n            <div class="${t}-inputbar-mask"></div>\n        `}getDMSettingIcon(){let t="";const e=this.configStore.revision,i=this.configStore.isChannel(B.u5.PC_APP);return t=this.configStore.embeddedEnv?m():[1,2].includes(e)||i?b():E(),t}renderFragment(){const t=this.ppx,e=this.configStore.isChannel(B.u5.PC_APP),i=this.hideUgcDmNumber;let n=this.getDMSettingIcon();const r=`\n        <div class="${t}-video-info ${i?`${t}-video-info-ugc`:""}">\n            <div class="${t}-video-info-online">-人正在看</div>\n            ${i?"":`<div class="${t}-video-info-divide">，</div>\n            <div class="${t}-video-info-dm">已装填-条弹幕</div>`}\n        </div>\n        <div class="${t}-dm-root">\n            <div class="${t}-dm-switch" aria-label="弹幕显示隐藏"></div>\n            <div class="${t}-dm-setting"><span class="${this.cpx}-svg-icon">${n}</span></div>\n            <div class="${t}-video-inputbar disabled">\n                <div class="${t}-video-inputbar-wrap" data-v-risk="fingerprint">\n                    <div class="${t}-video-preview-emoji-wrap">\n                        <img class="${t}-video-preview-emoji" />\n                    </div>\n                    <div class="${t}-video-btn-dm">\n                        <span class="${t}-iconfont ${t}-iconfont-danmakutype">\n                            <span class="${this.cpx}-svg-icon">${C()}</span>\n                        </span>\n                    </div>\n                    ${e?`<div class="${t}-video-btn-click">点击发送弹幕</div>`:""}\n                    <div class="${t}-dm-wrap"></div>\n                    <input class="${t}-dm-input" placeholder="你可以在这里输入弹幕吐槽哦~" autocomplete="off"/>\n                    <div class="${t}-dm-hint">\n                        <a href="//www.bilibili.com/blackboard/help.html#/?qid=359&pid=357" target="_blank">\n                            <span>弹幕礼仪 </span>\n                            <span class="${this.cpx}-svg-icon">${u()}\n                            </span>\n                        </a>\n                    </div>\n                </div>\n                <div class="${t}-dm-btn-send" data-v-risk="fingerprint">发送</div>\n            </div>\n            ${e?`<div class="${t}-dm-btn-close">${g()}</div>`:""}\n        </div>`;return(0,c.i)(r)}hideInputBar(){this.template.wrapBar.style.display="none",this.template.input.style.display="none",this.template.sendbtn.style.display="none",this.template.danmakuSetting.style.display="none"}onDispose(){super.onDispose(),this.unsetCoolDown(),this.windowClick&&this.window.removeEventListener("click",this.windowClick,!0),this.template.bubble&&((0,h.b)(this.template.bubble),this.template.bubble=null),this.template.carousel&&((0,h.b)(this.template.carousel),this.template.carousel=null),this.template.sugWrap&&((0,h.b)(this.template.sugWrap),this.template.sugWrap=null),this.template.close&&((0,h.b)(this.template.close),this.template.close=null),this.template.mask&&((0,h.b)(this.template.mask),this.template.mask=null),this.carouselTimer&&(clearInterval(this.carouselTimer),this.carouselTimer=null),this.count=0,this.sendedInSug=!1,this.template.input.value="",window.clearTimeout(this.onlineNumDebounceTimer),this.onlineNumDebounceTimer=null}onDisconnect(){this.removePcAppLogic()}}J([L.ZP],K.prototype,"onVideoBtnClick",1),J([L.ZP],K.prototype,"onDmCloseBtnClick",1)},64242:function(t,e,i){"use strict";i.d(e,{y:function(){return lt}});var n=i(50282),r=i.n(n),o=i(75572),a=i.n(o),s=i(64423),l=i.n(s),A=i(52182),c=i.n(A),h=i(73632),d=i.n(h),u=i(52046),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals;var g=class{static query(t){return document.querySelector(t)}static getDryLevel(t){return 1<t||t<0?0:t<=.5?1:1-2*(t-.5)}static getWetLevel(t){return 1<t||t<0?0:.5<=t?1:1-2*(.5-t)}static getArrayBufferFromBase64String(t){const e=window.atob(t),i=new Uint8Array(e.length);return i.forEach(((t,n)=>{i[n]=e.charCodeAt(n)})),i.buffer}static gain2db(t){return Math.log(t)/Math.LN10*20}static db2gain(t){return Math.pow(10,t/20)}},f={default:{items:[{name:"eq",preset:"default"}]},bassBooster:{items:[{name:"eq",preset:"bassBooster"}]},piano:{items:[{name:"eq",preset:"piano"},{name:"reverb",preset:"room"}]},pop:{items:[{name:"eq",preset:"pop"}]},rnb:{items:[{name:"eq",preset:"rnb"}]},spokenWord:{items:[{name:"eq",preset:"spokenWord"}]},concertHall:{items:[{name:"reverb",preset:"hall"}]},bathroom:{items:[{name:"reverb",preset:"bathroom"}]},a3d:{items:[{name:"a3d"}]},phone:{items:[{name:"phone"}]}};class m{constructor(t,e){this.audioCtx=t,this.audioSource=e}get source(){return this.audioCtx.createGain()}connect(t){}disconnect(){}}const y={10:{custom:[0,0,0,0,0,0,0,0,0,0],default:[0,0,0,0,0,0,0,0,0,0],bassBooster:[5,4,3,2,1,0,0,0,0,0],bassReducer:[-5,-4,-3,-2,-1,0,0,0,0,0],classical:[4.5,4,3,2,-1,-1,0,2,3,4],dance:[4,7,5,0,2,3,5,4,3,0],deep:[5,3,2,1,3,2,1,-2,-4,-5],electronic:[4.5,3.5,1,0,-2,2,.5,1,4,5],hiphop:[5,4,1,3,-1,-1,1,-1,2,3],jazz:[4,3,1,2,-2,-2,0,1,3,4],latin:[4.5,3,0,0,-1.5,-1.5,-1.5,0,3,4.5],loudness:[6,4,0,0,-2,0,-1,-5,5,1],lounge:[-3,-1.5,-.5,1.5,4,2,0,-1.5,2,1],piano:[3,2,0,2.5,3,1,3.5,4,3,3.5],pop:[-2,-1,0,2,4,4,2,0,-1,-2],rnb:[3,7,6,2,-3,-2,2,3,3,4],rock:[5,4,3,2,-1,-1,1,3,4,5],smallSpeakers:[5,4,3,2,1,0,-1,-2,-3,-4],spokenWord:[-4,-1,0,1,4,5,5,4,2,0],trebleBooster:[0,0,0,0,0,1,2,3,4,5],trebleReducer:[0,0,0,0,0,-1,-2,-3,-4,-5],vocalBooster:[-2,-3,-3,1,4,4,3,1,0,-2],guitar:[-5,-3,-2,2,-.5,0,0,2,6,0]},5:{custom:[0,0,0,0,0],default:[0,0,0,0,0],bassBooster:[3,0,0,0,0],bassReducer:[-3,0,0,0,0],classical:[2.5,-1,.5,2.5,4],dance:[3.6,3,4.75,3.5,0],deep:[2.8,2,.25,-3,-5],electronic:[1.4,2,.625,2.5,5],hiphop:[2.4,-1,.5,.5,3],jazz:[1.6,-2,.25,2,4],latin:[1.2,-1.5,-1.125,1.5,4.5],loudness:[1.6,0,-2,0,1],lounge:[.1,2,-.375,.25,1],piano:[2.1,1,3.625,3.5,3.5],pop:[.6,4,1.5,-.5,-2],rnb:[3,-2,2.25,3,4],rock:[2.6,-1,1.5,3.5,5],smallSpeakers:[3,0,-1.25,-2.5,-4],spokenWord:[0,5,4.75,3,0],trebleBooster:[0,1,2.25,3.5,5],trebleReducer:[0,-1,-2.25,-3.5,-5],vocalBooster:[-.6,4,2.5,.5,-2],guitar:[-1.7,0,.5,4,0]},3:{custom:[0,0,0],default:[0,0,0],bassBooster:[2,0,0],bassReducer:[-2,0,0],classical:[2,0,3],dance:[0,5,3],deep:[1,1,-4],electronic:[0,.5,4],hiphop:[3,1,2],jazz:[2,0,3],latin:[0,-1.5,3],loudness:[0,-1,5],lounge:[1.5,0,2],piano:[2.5,3.5,3],pop:[2,2,-1],rnb:[2,2,3],rock:[2,1,4],smallSpeakers:[2,-1,-3],spokenWord:[1,5,2],
trebleBooster:[0,2,4],trebleReducer:[0,-2,-4],vocalBooster:[1,3,0],guitar:[2,0,6]}},b={10:[32,64,125,250,500,1e3,2e3,4e3,8e3,16e3],5:[400,1e3,2500,6e3,16e3],3:[250,2e3,8e3]},v={default:{threshold:-24,knee:30,ratio:12,attack:.003,release:.25}},E={default:{mix:0,decay:.3,fadeIn:.01,reverse:!1,ir:"moorer",highCut:7e3,lowCut:0,gain:1},hall:{mix:.5,decay:1.8,fadeIn:30,reverse:!1,ir:"moorer",highCut:7e3,lowCut:0,gain:1},room:{mix:.5,decay:1.4,fadeIn:10,reverse:!1,ir:"simple",highCut:7e3,lowCut:80,gain:1},live:{mix:.3,decay:3,fadeIn:17,reverse:!1,ir:"simple",highCut:7e3,lowCut:0,gain:1},bathroom:{mix:.9,decay:.6,fadeIn:.3,reverse:!1,ir:"moorer",highCut:7e3,lowCut:0,gain:2}},I={a3d:"3D环绕",bassBooster:"超重低音",bathroom:"浴室",concertHall:"音乐厅",phone:"听筒",piano:"钢琴",pop:"流行时尚",rnb:"蓝调",spokenWord:"清澈人声"},C={custom:"自定义",default:"默认",classical:"古典",dance:"舞蹈",deep:"低沉",electronic:"电音",guitar:"吉他",hiphop:"嘻哈",jazz:"爵士",latin:"拉丁",piano:"钢琴",pop:"流行",rnb:"蓝调",rock:"摇滚",spokenWord:"说唱",bassBooster:"重低音",bassReducer:"弱低音",trebleBooster:"重高音",trebleReducer:"弱高音",vocalBooster:"人声强化",smallSpeakers:"弱人声",loudness:"响度模式",lounge:"休息室模式"};var B=Object.defineProperty,w=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable,S=(t,e,i)=>e in t?B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,k=(t,e)=>{for(var i in e||(e={}))x.call(e,i)&&S(t,i,e[i]);if(w)for(var i of w(e))Q.call(e,i)&&S(t,i,e[i]);return t};class D extends m{constructor(t,e){super(t,e),this.presetName="default",this.data=v[this.presetName],this.init()}get source(){return this.comp}connect(t){this.comp.connect(t)}disconnect(){this.comp.disconnect()}init(){this.comp=this.audioCtx.createDynamicsCompressor(),this.selectPreset(this.presetName)}selectPreset(t){const e=v[t];e&&(this.presetName=t,this.setData(e))}setData(t){Object.keys(t).length&&(this.data=k(k({},this.data),t),this.comp&&(this.comp.threshold.setValueAtTime(this.data.threshold,this.audioCtx.currentTime+.1),this.comp.knee.setValueAtTime(this.data.knee,this.audioCtx.currentTime+.1),this.comp.ratio.setValueAtTime(this.data.ratio,this.audioCtx.currentTime+.1),this.comp.attack.setValueAtTime(this.data.attack,this.audioCtx.currentTime+.1),this.comp.release.setValueAtTime(this.data.release,this.audioCtx.currentTime+.1)))}}class _ extends m{constructor(t,e){super(t,e),this.init()}get source(){return this.panner}connect(t){this.panner.connect(t),this.start()}disconnect(){this.panner.disconnect(),this.stop()}start(){if(!this.timer){let t=0;this.timer=window.setInterval((()=>{this.set3d(1.5*Math.cos(t),0,1.5*Math.sin(t)),t+=.5}),1e3)}}stop(){clearInterval(this.timer),this.timer=0}set3d(t,e,i=300){this.panner.positionX?(this.panner.positionX.value=t,this.panner.positionY.value=e,this.panner.positionZ.value=i):this.panner.setPosition(t,e,i)}init(){this.panner=this.audioCtx.createPanner(),this.panner.panningModel="HRTF",this.panner.distanceModel="inverse",this.panner.refDistance=1,this.panner.coneInnerAngle=360,this.panner.coneOuterAngle=0,this.panner.coneOuterGain=0}}class R extends m{constructor(t,e){super(t,e),this.lowPass=t.createBiquadFilter(),this.lowPass.type="lowpass",this.lowPass.frequency.value=2e3,this.lowPass2=t.createBiquadFilter(),this.lowPass2.type="lowpass",this.lowPass2.frequency.value=2e3,this.highPass=t.createBiquadFilter(),this.highPass.type="highpass",this.highPass.frequency.value=500,this.highPass2=t.createBiquadFilter(),this.highPass2.type="highpass",this.highPass2.frequency.value=500,this.init()}get source(){return this.lowPass}connect(t){this.highPass2.connect(t)}disconnect(){this.highPass2.disconnect()}init(){this.lowPass.connect(this.lowPass2),this.lowPass2.connect(this.highPass),this.highPass.connect(this.highPass2)}}class M extends m{constructor(t,e){super(t,e),this.eq=[],this.beforeInit(),this.init()}get source(){return this.input}connect(t){this.output.connect(t)}disconnect(){this.output.disconnect()}beforeInit(){this.type="10",this.presetName="default",this.preset=y[this.type],this.eqSetting=b[this.type],this.data=[...this.preset[this.presetName]]}init(){this.input=this.audioCtx.createGain(),this.output=this.audioCtx.createGain(),this.resetEQ(this.eqSetting),this.setData(this.data)}selectType(t){if(t&&t!==this.type&&y[t]){this.preset=y[t];const e=this.preset[this.presetName];return this.resetEQ(b[t]),this.type=t,this.data=e.slice(0),this.setData(this.data),!0}return!1}selectPreset(t){const e=this.preset[t];e&&(this.presetName=t,this.setData(e,!1))}getPresetsList(){return Object.keys(this.preset).slice(0)}reload(){"10"===this.type&&"default"===this.presetName||(this.beforeInit(),this.resetEQ(this.eqSetting),this.setData(this.data))}customEffect(t,e="10"){this.data=t,this.selectType(e)||this.setData(this.data)}resetEQ(t){if(this.audioCtx&&this.input&&this.output){this.eqSetting=t;const e=this.audioCtx;this.eq.forEach((t=>{t.disconnect()}));for(let i=0;i<t.length;i++){let n;this.eq[i]?n=this.eq[i]:(n=e.createBiquadFilter(),this.eq.push(n)),n.frequency.setValueAtTime(t[i],e.currentTime),n.Q.value=.7,n.type="peaking"}this.eq[0].type="lowshelf",this.eq[t.length-1].type="highshelf";for(let e=1;e<t.length;e++)this.eq[e-1].connect(this.eq[e]);this.input.connect(this.eq[0]),this.eq[t.length-1].connect(this.output)}}setData(t,e=!0){if(Array.isArray(t)&&t.length&&this.audioCtx)for(let e=0;e<this.eqSetting.length;e++)this.data[e]=t[e],this.eq[e]&&this.eq[e].gain.setTargetAtTime(t[e]?t[e]:0,this.audioCtx.currentTime,.015)}}var T=Object.defineProperty,F=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,P=(t,e,i)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,U=(t,e)=>{for(var i in e||(e={}))L.call(e,i)&&P(t,i,e[i]);if(F)for(var i of F(e))N.call(e,i)&&P(t,i,e[i]);return t};class O extends m{constructor(t,e){super(t,e),this.lpFreqStart=15e3,this.lpFreqEnd=1e3,this.presetName="default",this.data=U({},E.default),this.inputNode=t.createGain(),this.convolverNode=t.createConvolver(),this.outputNode=t.createGain(),this.wetGainNode=t.createGain(),this.dryGainNode=t.createGain(),this.highCutNode=t.createBiquadFilter(),this.lowCutNode=t.createBiquadFilter(),this.highCutNode.type="lowpass",this.lowCutNode.type="highpass",this.init()}get source(){return this.inputNode}connect(t){this.outputNode.connect(t)}disconnect(){this.outputNode.disconnect()}selectPreset(t){const e=E[t];e&&(this.presetName=t,this.setData(e))}setData(t){if(0<Object.keys(t).length){for(const e in t)"mix"===e?this.mix=t[e]:"gain"===e&&(this.gain=t[e]);this.data=U(U({},this.data),t),this.updateImpulse()}}init(){this.inputNode.connect(this.highCutNode),this.highCutNode.connect(this.lowCutNode),this.lowCutNode.connect(this.convolverNode),this.convolverNode.connect(this.wetGainNode),this.wetGainNode.connect(this.outputNode),this.inputNode.connect(this.dryGainNode),this.dryGainNode.connect(this.outputNode),this.mix=this.data.mix}applyGradualLowpass(t,e,i){if(this.convolverNode)if(0!==e){const n=[];for(let e=0;e<t.numberOfChannels;e++)n[e]=t.getChannelData(e);const r=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(t.numberOfChannels,n[0].length,t.sampleRate),o=r.createBufferSource();o.buffer=t;const a=r.createBiquadFilter(),s=Math.min(e,t.sampleRate/2),l=Math.min(i,t.sampleRate/2);a.type="lowpass",a.Q.value=1e-4,a.frequency.setValueAtTime(s,0),a.frequency.linearRampToValueAtTime(l,this.data.decay),o.connect(a),a.connect(r.destination),o.start(),r.oncomplete=t=>{this.convolverNode&&(this.convolverNode.buffer=t.renderedBuffer)},r.startRendering()}else this.convolverNode.buffer=t}updateImpulse(){this.audioCtx&&("moorer"===this.data.ir?this.ir=((t,e)=>{const i=t.sampleRate,n=1.5*e.decay,r=Math.round(e.decay*i),o=Math.round(n*i),a=Math.round((e.fadeIn||0)*i),s=Math.pow(.001,1/r),l=t.createBuffer(2,o,i),A=l.getChannelData(0),c=l.getChannelData(1);let h;for(let t=0;t<o;t++)h=e.reverse?o-t:t,A[t]=(2*Math.random()-1)*Math.pow(s,h),c[t]=(2*Math.random()-1)*Math.pow(s,h);for(let t=0;t<a;t++)A[h=e.reverse?a-t:t]*=h/a,c[h]*=h/a;return l})(this.audioCtx,this.data):this.ir=((t,e)=>{
const i=t.sampleRate*e.decay,n=t.createBuffer(2,i,t.sampleRate),r=n.getChannelData(0),o=n.getChannelData(1);let a;for(let t=0;t<i;t++)a=e.reverse?i-t:t,r[t]=(2*Math.random()-1)*Math.pow(1-a/i,e.fadeIn),o[t]=(2*Math.random()-1)*Math.pow(1-a/i,e.fadeIn);return n})(this.audioCtx,this.data),this.applyGradualLowpass(this.ir,this.lpFreqStart||0,this.lpFreqEnd||0))}get mix(){return this.data.mix}set mix(t){this.data.mix=t,this.dryGainNode&&this.wetGainNode&&(this.dryGainNode.gain.value=g.getDryLevel(this.mix),this.wetGainNode.gain.value=g.getWetLevel(this.mix))}get decay(){return this.data.decay}set decay(t){this.data.decay=t,this.updateImpulse()}get fadeIn(){return this.data.fadeIn}set fadeIn(t){this.data.fadeIn=t,this.updateImpulse()}get reverse(){return this.data.reverse}set reverse(t){this.data.reverse=t,this.updateImpulse()}get highCut(){return this.data.highCut}set highCut(t){this.data.highCut=t,this.audioCtx&&this.highCutNode&&this.highCutNode.frequency.setValueAtTime(this.data.highCut,this.audioCtx.currentTime)}get lowCut(){return this.data.lowCut}set lowCut(t){this.data.lowCut=t,this.audioCtx&&this.lowCutNode&&this.lowCutNode.frequency.setValueAtTime(this.data.lowCut,this.audioCtx.currentTime)}get gain(){return this.data.gain}set gain(t){this.data.gain=t,this.audioCtx&&this.outputNode&&this.outputNode.gain.setValueAtTime(this.data.gain,this.audioCtx.currentTime)}}class G{constructor(t){this.effectsObj={},this.mediaElement=t.mediaElement,this.controller=t.controller,this.init(),this.connectAll()}clear(){this.disconnect(),this.connectAll()}play(){var t;"suspended"===(null==(t=this.audioCtx)?void 0:t.state)&&this.audioCtx.resume(),this.setEffect(this.currentEffect,!0)}pause(){}update(t){t&&t!==this.mediaElement&&(this.destroy(),this.mediaElement=t,this.init(),this.play())}setEffect(t,e=!1){var i;if(this.noCtx())return;if(this.currentEffect===t&&(!e||"default"===t))return;this.currentEffect=t,this.disconnect();const n=null==(i=f[t])?void 0:i.items;n&&n.forEach((t=>{this.effectsObj[t.name].active=!0,t.preset&&this.effectsObj[t.name].node.selectPreset(t.preset)})),this.effectsObj.compressor.active=!0,this.connectAll()}customEffect(t,e){this.setEffect("default"),this.effectsObj.eq.node.customEffect(t,e)}setEffectType(t){this.effectsObj.eq.node.selectType(t),this.setEffect("default",!0)}setGain(t){this.noCtx()||this.gain.gain.setTargetAtTime(g.db2gain(t),this.audioCtx.currentTime,.015)}reload(){this.effectsObj.eq.node.reload()}setConnectToEffect(t){this.source.connectingEffect=t}init(){this.controller&&this.noCtx()&&(this.audioCtx=this.controller.getAudioContext(this.mediaElement),this.destination=this.controller.getDestination(),this.source=this.controller.getSource(),this.gain=this.controller.getGain(),this.effectsObj={eq:{active:!1,node:new M(this.audioCtx,this.source)},reverb:{active:!1,node:new O(this.audioCtx,this.source)},a3d:{active:!1,node:new _(this.audioCtx,this.source)},phone:{active:!1,node:new R(this.audioCtx,this.source)},compressor:{active:!1,node:new D(this.audioCtx,this.source)}},this.effectsList=Object.keys(this.effectsObj),this.disconnect())}disconnect(){try{let t;this.source.disconnect(),this.effectsList.forEach((e=>{t=this.effectsObj[e],(null==t?void 0:t.active)&&t.node.source&&(t.node.disconnect(),t.active=!1)})),this.setConnectToEffect(!1),this.gain.disconnect()}catch(t){}}connectAll(){var t,e;let i,n=this.source;this.effectsList.forEach((t=>{i=this.effectsObj[t],(null==i?void 0:i.active)&&i.node.source&&(n.connect(i.node.source),n=i.node)})),this.setConnectToEffect(!0),n.connect(this.gain),this.gain.connect(this.destination),null==(e=(t=this.controller).onAudioGraphRebuilt)||e.call(t)}noCtx(){return!this.audioCtx||"closed"===this.audioCtx.state}destroy(){this.disconnect(),this.audioCtx&&"closed"!==this.audioCtx.state&&this.audioCtx.close()}}var H=i(57012),V=Object.defineProperty,Y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,Z=(t,e,i)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,j=(t,e)=>{for(var i in e||(e={}))z.call(e,i)&&Z(t,i,e[i]);if(Y)for(var i of Y(e))W.call(e,i)&&Z(t,i,e[i]);return t};class q{constructor(t){this.settingList=[],this.baseValue=.5,this.baseRange=24,this.customLen=10,this.defaultType="10",this.defaultValue="default",this.audioEffect=t,this.config=t.config,this.effect=j({left:this.defaultValue,right:this.defaultValue,rightType:this.defaultType,gain:0},t.config.data),this.config.data.rightValue||(this.effect.rightValue=y[this.defaultType].default.slice(0)),this.container=this.config.container,this.prefix=this.config.prefix,this.init(),this.globalEvents()}init(){const t=this.prefix;this.container.insertAdjacentHTML("beforeend",this.tpl()),this.element={panel:g.query(`.${t}-panel`),move:g.query(`.${t}-panel-move`),panelLeft:g.query(`.${t}-panel-left`),panelRight:g.query(`.${t}-panel-right`),close:g.query(`.${t}-panel-close`),preset:g.query(`.${t}-panel-left-preset`),reset:g.query(`.${t}-panel-left-btn`)},"custom"===this.effect.right&&(y[this.effect.rightType].custom=this.effect.rightValue),this.tplUI(),this.effect.custom?this.panelMove(1):this.panelMove(0)}resetEffectValue(t=this.defaultValue){this.effect.right=t,y[this.effect.rightType][t]&&(this.effect.rightValue=y[this.effect.rightType][t].slice(0))}globalEvents(){this.element.close.addEventListener("click",(()=>{this.hide()})),this.element.panel.addEventListener("click",(t=>{var e;const i=null==(e=t.target)?void 0:e.dataset.val;switch(i){case"right":this.panelMove(1);break;case"left":this.panelMove(0);break;case"rightReset":this.rightReset(),this.setLocal();break;case"default":this.gain.value(this.eq2ui(0)),this.setEffectPreset(i,!1,t.target),this.setLocal();break;default:i&&this.setEffectPreset(i,!1,t.target)}i&&this.config.track(i)}))}reload(t){this.config=j(j({},this.config),t),this.container=this.config.container,this.prefix=this.config.prefix,this.init(),this.globalEvents()}show(){this.element.panel.style.display="block"}hide(){var t,e;this.element.panel.style.display="none",this.effect.custom=this.element.move.classList.contains(`${this.prefix}-right`),this.setLocal(),null==(e=(t=this.config).show)||e.call(t,!1)}rightReset(){this.freSet.value(this.defaultType),this.eqSet.value(this.defaultValue),this.changeEq(this.defaultValue)}setLocal(){var t,e;null==(e=(t=this.config).localDate)||e.call(t,this.effect)}setEffectPreset(t=this.defaultValue,e=!1,i){var n,r;if(this.effect.left=t,this.audioEffect.setEffectPreset(t,e),i){const t=this.prefix;null==(n=g.query(`.${t}-panel\n                .${t}-panel-preset-btn.${t}-active`))||n.classList.remove(`${t}-active`),null==(r=i.classList)||r.add(`${t}-active`)}}customValue(){this.audioEffect.customEffect(this.effect.rightValue.slice(0),this.effect.rightType)}updateEffectValue(){b[this.effect.rightType].forEach(((t,e)=>{this.settingList[e].value(this.eq2ui(this.effect.rightValue[e]),!0)}))}panelMove(t){t?(this.customValue(),this.element.move.classList.add(`${this.prefix}-right`)):(this.audioEffect.reload(),this.setEffectPreset(this.effect.left,!0),this.effect.gain&&this.audioEffect.setGain(this.effect.gain),this.element.move.classList.remove(`${this.prefix}-right`))}tplUI(){const t=this.prefix;let e=[];for(const t in C)C.hasOwnProperty(t)&&e.push({value:t,name:C[t]});this.eqSet=new H.Ph(g.query(`.${t}-panel-right-header-eq-select`),{items:e,maxHeight:150,dark:!0,value:this.effect.right}),this.eqSet.on("change",(t=>{(t.manual||"custom"===t.value)&&(t.manual&&this.changeEq(t.value),this.config.track(t.value+"_r"))}));let i,n=[];for(const t in b)b.hasOwnProperty(t)&&n.push({name:`${t}段`,value:t});this.freSet=new H.Ph(g.query(`.${t}-panel-right-header-fre-select`),{items:n,dark:!0,value:this.effect.rightType}),this.freSet.on("change",(t=>{this.changeType(t.value,this.defaultValue),t.manual&&this.config.track(t.value+"_r")})),b[this.customLen].forEach(((e,n)=>{i=new H.iR(g.query(`.${t}-panel-right-body-eq-item${n} .${t}-panel-right-body-eq-slider`),{dark:!0,value:this.eq2ui(this.effect.rightValue[n]),trackLength:140,vertical:!0,showTooltip:!0,formatTooltip:t=>this.ui2eq(t).toFixed(1)+""}),i.on("move",(t=>{
this.effect.rightValue[n]=this.ui2eq(t.value),"custom"!==this.effect.right&&(this.effect.right="custom",this.eqSet.value(this.effect.right),y[this.effect.rightType].custom=this.effect.rightValue),this.customValue()})),this.settingList.push(i)})),this.gain=new H.iR(g.query(`.${t}-panel-left-gain .${t}-panel-left-gain-center`),{dark:!0,value:this.eq2ui(this.effect.gain),trackLength:220,showTooltip:!0,formatTooltip:t=>this.ui2eq(t).toFixed(1)+""}),this.gain.on("move",(t=>{this.effect.gain=this.ui2eq(t.value),this.audioEffect.setGain(this.effect.gain)})),this.gain.on("change",(t=>{t.manual&&(this.setLocal(),this.config.track(this.ui2eq(t.value).toFixed(1),"audio_effect_gain"))}))}changeEq(t){this.resetEffectValue(t),this.customValue(),this.updateEffectValue()}changeType(t=this.defaultType,e=this.defaultValue){this.effect.rightType=t;const i=this.prefix,n=g.query(`.${i}-panel-right-body`).classList;n.remove(`${i}-panel-3`,`${i}-panel-5`),this.elementFreList=this.elementFreList||this.getFreList(),"10"===t?this.elementFreList.forEach(((e,i)=>{e.textContent=this.parseNum(b[t][i])})):(n.add(`${i}-panel-${t}`),b[t].forEach(((t,e)=>{this.elementFreList[e].textContent=this.parseNum(t)}))),this.resetEffectValue(),this.updateEffectValue(),this.eqSet.value(e),this.audioEffect.setEffectType(t)}eq2ui(t){return t/this.baseRange+this.baseValue}ui2eq(t){return(t-this.baseValue)*this.baseRange}parseNum(t){return t<1e3?t+"":t/1e3+"k"}getFreList(){const t=[];for(let e=0;e<5;e++)t.push(document.querySelector(`.${this.prefix}-panel-right-body-eq-item${e} .${this.prefix}-panel-right-body-eq-key`));return t}tpl(){const t=this.prefix;let e="",i="",n="";for(const i in I)i===this.effect.left&&(n=`${t}-active`),e+=`<span class="${t}-panel-preset-btn ${n}" data-val="${i}">${I[i]}</span>`,n="";return b[this.customLen].forEach(((e,n)=>{i+=`<div class="${t}-panel-right-body-eq-item${n}">\n                        <div class="${t}-panel-right-body-eq-slider"></div>\n                        <div class="${t}-panel-right-body-eq-key">${this.parseNum(e)}</div>\n                    </div>`})),`<div class="${t}-panel">\n                    <div class="${t}-panel-close">${this.config.closeSvg}</div>\n                    <div class="${t}-panel-move">\n                        <div class="${t}-panel-left">\n                            <div class="${t}-panel-left-header">音效调节</div>\n                            <div class="${t}-panel-left-preset">${e}</div>\n                            <div class="${t}-panel-left-gain">\n                                    <div class="${t}-panel-left-gain-title">音量增强</div>\n                                    <div class="${t}-panel-left-gain-left">-12dp</div>\n                                    <div class="${t}-panel-left-gain-center">0dp</div>\n                                    <div class="${t}-panel-left-gain-left">+12dp</div>\n                                </div>\n                            <div class="${t}-panel-left-reset">\n                                <span class="${t}-panel-preset-btn" data-val="default">重置</span>\n                                <span class="${t}-panel-left-show-more" data-val="right">自定义</span>\n                            </div>\n                        </div>\n                        <div class="${t}-panel-right">\n                            <div class="${t}-panel-right-return"  data-val="left">预设</div>\n                            <div class="${t}-panel-right-header">\n                                <div class="${t}-panel-right-header-eq">\n                                    <span>均衡器：</span>\n                                    <span class="${t}-panel-right-header-eq-select"></span>\n                                </div>\n                                <div class="${t}-panel-right-header-fre">\n                                    <span>分段：</span>\n                                    <span class="${t}-panel-right-header-fre-select"></span>\n                                </div>\n                            </div>\n                            <div class="${t}-panel-right-body ${t}-panel-${this.effect.rightType}">\n                                <div class="${t}-panel-right-body-eq">\n                                    <div class="${t}-panel-right-body-eq-item">\n                                        <span>+12</span>\n                                        <span>0</span>\n                                        <span>-12</span>\n                                    </div>\n                                    ${i}\n                                </div>\n                            </div>\n                            <div class="${t}-panel-right-reset">\n                                <span class="${t}-panel-preset-btn" data-val="rightReset">重置</span>\n                            </div>\n                        </div>\n                    </div>\n                </div>`}exportEffect(){return this.effect}}var J=Object.defineProperty,K=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,tt=(t,e,i)=>e in t?J(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,et=(t,e)=>{for(var i in e||(e={}))X.call(e,i)&&tt(t,i,e[i]);if(K)for(var i of K(e))$.call(e,i)&&tt(t,i,e[i]);return t};class it{constructor(t){this.config=et({mediaElement:document.createElement("video"),data:null,paused:!0,closeSvg:"",prefix:"bl-audio",controller:{},localDate:t=>{},track:(t,e)=>{},show:t=>{}},t),this.config.data=et({},t.data),this.audio=new G(this.config),this.effectSelector=new q(this)}showPanel(){this.effectSelector.show()}hidePanel(){this.effectSelector.hide()}play(){this.config.paused&&(this.config.paused=!1,this.audio.play())}pause(){this.config.paused||(this.config.paused=!0,this.audio.pause())}clear(){this.audio.clear()}setGain(t){this.audio.setGain(t)}setEffectPreset(t,e=!1){this.audio.setEffect(t,e)}customEffect(t,e="10"){this.audio.customEffect(t,e)}setEffectType(t){this.audio.setEffectType(t)}update(t){this.audio.update(t)}reload(){this.audio.reload()}destroy(){this.audio.destroy()}}var nt=i(22451),rt=i(5489),ot=i(25360),at=i.n(ot),st=i(36005);class lt extends rt.vq{install(){super.install(),(0,st.b)()&&(this.attach(this.mediaStore.video),this.rootPlayer.on(rt.p2.PLAYER_BEFORE_MEDIA_REPLACE,(t=>this.attach(t))))}attach(t){t&&(this.destroy(),this.wmpStore.isBwpElement(t)||this.create(t))}create(t){this.dc.show&&this.dc.show(),this.dc.show=(0,nt.EH)((()=>{this.menuStore.state.showEffect&&!this.uiStore.isTinyView?this.show(t):this.hide()}));const e=this.localStore.get().audioEffect;e&&(e.custom&&"default"===e.right||(e.custom||"default"!==e.left||0!==e.gain)&&(this.report(e),this.initEffect(t,e)))}report(t){const e=t.custom?"custom":"default"!==t.left?"preset":"gain",i=0!==t.gain,n="custom"===e?t.right:"preset"===e?t.left:"none";this.track.e("audio_effect_effective",{effectType:e,enffectValue:n,adjustGain:i})}show(t){if(!this.audioEffect){const e=this.localStore.get().audioEffect;this.initEffect(t,e)}this.audioEffect.showPanel()}hide(){var t;null==(t=this.audioEffect)||t.hidePanel()}initEffect(t,e){if(!t)return;const i=this.freeStore.audioAtom;this.audioEffect=new it({data:e,closeSvg:at(),container:this.nodes.videoArea,mediaElement:t,paused:t.paused,controller:i,localDate:t=>{this.localStore.set({audioEffect:t})},track:(t,e="audio_effect")=>{this.track.e(e,t)},show:t=>{this.menuStore.setState({showEffect:t})}}),this.dc.pause&&this.dc.pause(),this.dc.pause=(0,nt.EH)((()=>{this.mediaStore.state.paused?this.audioEffect.pause():this.audioEffect.play()}))}onDispose(){super.onDispose()}destroy(){this.dc.show&&this.dc.show(),this.dc.pause&&this.dc.pause(),this.audioEffect&&(this.audioEffect.destroy(),this.audioEffect=null)}}},94663:function(t,e,i){"use strict";i.d(e,{q:function(){return p}});var n=i(5489),r=i(22451),o=i(80388),a=i(26929),s=Object.defineProperty,l=Object.defineProperties,A=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,u=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class p extends n.vq{constructor(){super(...arguments),
this.tag="BPNCLoad",this.zoneIdTag="np",this.disabledNCByISP=!1}install(){super.install(),this.dc.init=(0,r.U5)((()=>this.userStore.info&&this.mediaStore.state.duration),(t=>{window[this.getBPNCName()]||this.disabledNCByISP||t&&this.initBPNC(this.userStore.info)}),{fireImmediately:!0})}parseZoneId(t){return{continent:t>>27&7,country:t>>18,province:t>>6&4095,isp:63&t}}shouldDisableNCByZoneId(t){var e;if(!this.mpdStore||!this.mpdStore.body||!t)return!1;const{body:{mediaDataSource:{url:i}}}=this.mpdStore;if(!i||"string"==typeof i)return!1;const{video:n}=i;if(!n||!Array.isArray(n))return!1;const r=n.find((t=>t.baseUrl&&-1!==t.baseUrl.indexOf(`${this.zoneIdTag}=`)));if(!r)return!1;const o=+(0,a.eY)(this.zoneIdTag,r.baseUrl);if(!o)return!1;const{province:s,isp:l}=this.parseZoneId(o),{full:{provinceArea:A,isp:c}={},partial:h}=t;if((A||[]).includes(s)||(c||[]).includes(l))return this.disabledNCByISP=!0,null==(e=this.track)||e.o("isp_disable_nc",{zoneId:o,province:s,isp:l}),!0;if(h&&Array.isArray(h)){let t=!1;return h.forEach((e=>{var i;if(e&&e.provinceArea===s&&(e.isp||[]).includes(l))return this.disabledNCByISP=!0,null==(i=this.track)||i.o("isp_disable_nc",{zoneId:o,province:s,isp:l}),!!(t=!0)})),t}return!1}initBPNC(t){var e;if(t.interaction)return;if(!(null==(e=t.fawkes)?void 0:e.config_version))return;const i=new o.Z(String(t.fawkes.config_version),(this.getBPNCEnv(),"prod"),"bpcfgzip"),r=this.configStore.channelKind===n.u5.PC_APP,a=r?"pc_app_enable":"enable";let s,p;r?(0===this.uiStore.kind&&(s="nano_pc_app_version",p="nano_pc_player_gray_test_percentage"),1===this.uiStore.kind&&(s="pc_pgc_version",p="pc_pgc_grey_test_percentage")):(0===this.uiStore.kind&&(s="nano_player_verison",p="nano_player_gray_test_percentage"),1===this.uiStore.kind&&(s="web_pgc_version",p="web_pgc_grey_test_percentage"));try{let e;try{e=JSON.parse(this.getLocalSettings("bp_nc_loader_config")||null),"[object Object]"!==Object.prototype.toString.call(e)&&(e=null)}catch(t){e=null}e?(this.bpNcExtra.setState(((t,e)=>l(t,A(e)))(((t,e)=>{for(var i in e||(e={}))h.call(e,i)&&u(t,i,e[i]);if(c)for(var i of c(e))d.call(e,i)&&u(t,i,e[i]);return t})({},e),{source:"localStorage"})),e.enabled&&("string"==typeof e.version?this.loadBPNC(e.version,i):i.getConfig(`nc_policy.${s}`).then((t=>{this.rootPlayer.emit(n.p2.PLAYER_FAWKES_CONFIG_LOADED),this.loadBPNC(t,i)})).catch((()=>{})))):i.getConfig(`nc_policy.${a}`).then((e=>{if(this.rootPlayer.emit(n.p2.PLAYER_FAWKES_CONFIG_LOADED),"1"===e){const e=i.getConfig("nc_policy.aid_black_list"),n=i.getConfig("nc_policy.cid_black_list"),o=i.getConfig("nc_policy.uid_black_list"),a=i.getConfig(`nc_policy.${p}`),l=i.getConfig(`nc_policy.${s}`),A=i.getConfig("nc_policy.ab_config"),c=i.getConfig("nc_policy.ab_pc_app_config"),h=i.getConfig("player_policy.special_isp_disable_pcdn_full"),d=i.getConfig("player_policy.special_isp_disable_pcdn_partial");Promise.allSettled([e,n,o,a,l,A,c,h,d]).then((e=>{var n,o,a,s;let l=!0;try{const t=e[7]&&e[7].value||null,i=e[8]&&e[8].value||null;if(this.shouldDisableNCByZoneId({full:t&&JSON.parse(t)||{},partial:i&&JSON.parse(i)||[]}))return}catch(t){console.error("check isp failed",t)}const A=e[0].value,c=e[1].value,h=e[2].value,d=e[3].value;let u=e[4].value,p=null;try{p=r?JSON.parse(e[6].value):JSON.parse(e[5].value)}catch(t){console.log(t)}let g="";r?(null==(n=window.webAbTest)?void 0:n.nc_pc_app_test)&&(g=(null==(o=window.webAbTest)?void 0:o.nc_pc_app_test)+""):(null==(a=window.webAbTest)?void 0:a.nc_test)&&(g=(null==(s=window.webAbTest)?void 0:s.nc_test)+""),p&&g&&p[g]&&(u=""+p[g]);const f=""+t.mid,m=""+this.configStore.aid,y=""+this.configStore.cid;let b=[],v=[],E=[];try{b=JSON.parse(h)}catch(t){}try{v=JSON.parse(A)}catch(t){}try{E=JSON.parse(c)}catch(t){}(b.indexOf(f)>=0||v.indexOf(m)>=0||E.indexOf(y)>=0)&&(l=!1);Math.random()>d&&(l=!1),this.bpNcExtra.setState({enabled:l,version:u,source:"configZip"}),l&&this.loadBPNC(u,i)})).catch((()=>{}))}})).catch((t=>{}))}catch(t){}}loadBPNC(t,e){if(window.BPP2PSDK)return void this.createBPNC(e);const i=`//s1.hdslb.com/bfs/static/nc/nc-loader-${t}.min.js`;this.loadScript({url:i,success:()=>{this.createBPNC(e)}},window)}createBPNC(t){var e;const i=this.getBPNCName();let r=window[i];(null==(e=window.BPP2PSDK)?void 0:e.isSupport())&&!r&&t.getConfig().then((t=>{const e={aid:this.configStore.aid,cid:this.configStore.cid,bvid:this.configStore.bvid,duration:this.mediaStore.state.duration,isPCApp:this.configStore.channelKind===n.u5.PC_APP,fawkesConfig:t,fid:this.trackStore.getFid()};r=window[i]=new window.BPP2PSDK(e),r.on(window.BPP2PSDK.BPP2PEvent.TRACK,(t=>{var e;let i=!1;1002===(null==t?void 0:t.type)&&(i=!0),null==(e=this.track)||e.o("bp_nc_sdk",t,{sendBeacon:i})})),this.bpNcExtra.setState({sdkState:r.state})})).catch((t=>{}))}destroyBPNC(){const t=this.getBPNCName(),e=window[t];e&&(e.quit(),e.destroy(),window[t]=void 0)}getBPNCEnv(){let t="prod";const e=window.location.hostname;if(!e)return t;const i=e.slice(0,4);return"pre-"===i?t="pre":"uat-"===i&&(t="uat"),t}getBPNCName(){let t="bpNC";return this.rootPlayer.iid&&(t+="_"+this.rootPlayer.iid),t}getLocalSettings(t){try{return localStorage[t]&&"getItem"!==t?localStorage[t]||null:localStorage.getItem(t)||null}catch(t){return null}}getURLValue(t){const e=new RegExp(`(^|&)${t}=([^&]*)(&|$)`,"i"),i=window.location.search.substr(1).match(e);if(null!=i)try{return decodeURIComponent(i[2])}catch(t){return null}return null}loadScript(t,e){const i=e||window,n=i.document.createElement("script");return n.onload=function(){t.success&&t.success()},n.onerror=()=>{t.error&&t.error()},n.src=t.url,i.document.head.appendChild(n),n}onDispose(){super.onDispose(),this.destroyBPNC()}}},80283:function(t,e,i){"use strict";i.d(e,{Q:function(){return P}});var n=i(55391),r=i.n(n);const o={B_INITED:"b_inited",B_OPEN:"b_open",B_CLOSE:"b_close",B_MSG:"b_msg",B_ROOM:"b_room",B_AUTH:"b_audth",B_SUB:"b_sub",B_UN_SUB:"b_un_sub",B_HEARTBEAT:"b_heartbeat",B_ERROR:"b_error"},a="/bilibili.broadcast.v1",s=".Broadcast",l={AUTH:`${a+s}/Auth`,HEARTBEAT:`${a+s}/Heartbeat`,SUBSCRIBE:`${a+s}/Subscribe`,UNSUBSCRIBE:`${a+s}/Unsubscribe`,MSG_ACK:`${a+s}/MessageAck`,ENTER:`${a}.BroadcastRoom/Enter`,ROOMREQ:`${a}.RoomReq`,ROOMRES:`${a}.RoomResp`,AUTHREQ:`${a}.AuthReq`,TARGETPATH:`${a}.TargetPath`,HEARTBEATRES:`${a}.HeartbeatResp`,MSG_ACK_REQ:`${a}.MessageAckReq`},A="join",c="leave"
;var h=JSON.parse('{"nested":{"bilibili":{"nested":{"broadcast":{"nested":{"v1":{"nested":{"AuthReq":{"fields":{"guid":{"type":"string","id":1},"connId":{"type":"string","id":2},"lastMsgId":{"type":"int64","id":3}}},"AuthResp":{"fields":{}},"HeartbeatReq":{"fields":{}},"HeartbeatResp":{"fields":{}},"TargetPath":{"fields":{"targetPaths":{"rule":"repeated","type":"string","id":1}}},"MessageAckReq":{"fields":{"ackId":{"type":"int64","id":1},"ackOrigin":{"type":"string","id":2},"targetPath":{"type":"string","id":3},"msgType":{"type":"int64","id":4}}},"Subscribe":{"fields":{"type":{"type":"string","id":1},"targetPaths":{"rule":"repeated","type":"string","id":2}}},"Status":{"fields":{"code":{"type":"int32","id":1},"message":{"type":"string","id":2},"details":{"rule":"repeated","type":"google.protobuf.Any","id":3}}},"FrameOption":{"fields":{"messageId":{"type":"int64","id":1},"sequence":{"type":"int64","id":2},"isAck":{"type":"bool","id":3},"status":{"type":"Status","id":4},"ackOrigin":{"type":"string","id":5},"timestamp":{"type":"int64","id":6},"msgType":{"type":"int64","id":7}}},"BroadcastFrame":{"fields":{"options":{"type":"FrameOption","id":1},"targetPath":{"type":"string","id":2},"body":{"type":"google.protobuf.Any","id":3}}},"RoomJoinEvent":{"fields":{}},"RoomLeaveEvent":{"fields":{}},"RoomOnlineEvent":{"fields":{"online":{"type":"int32","id":1},"allOnline":{"type":"int32","id":2}}},"RoomMessageEvent":{"fields":{"targetPath":{"type":"string","id":1},"body":{"type":"google.protobuf.Any","id":2}}},"RoomErrorEvent":{"fields":{"status":{"type":"Status","id":1}}},"RoomReq":{"oneofs":{"event":{"oneof":["join","leave","online","msg"]}},"fields":{"id":{"type":"string","id":1},"join":{"type":"RoomJoinEvent","id":2},"leave":{"type":"RoomLeaveEvent","id":3},"online":{"type":"RoomOnlineEvent","id":4},"msg":{"type":"RoomMessageEvent","id":5}}},"RoomResp":{"oneofs":{"event":{"oneof":["join","leave","online","msg","err"]}},"fields":{"id":{"type":"string","id":1},"join":{"type":"RoomJoinEvent","id":2},"leave":{"type":"RoomLeaveEvent","id":3},"online":{"type":"RoomOnlineEvent","id":4},"msg":{"type":"RoomMessageEvent","id":5},"err":{"type":"RoomErrorEvent","id":6}}}}}}}}},"google":{"nested":{"protobuf":{"nested":{"Any":{"fields":{"type_url":{"type":"string","id":1},"value":{"type":"bytes","id":2}}}}}}}}}');const d=t=>[Date.now(),"bsocket","","bsocket_enter","","",0,0,0,0,"",0,0,0,0,0,0,0,"",JSON.stringify(t),"",""],u=t=>new Promise(((e,i)=>{let n=new XMLHttpRequest;n.open("GET",t,!0),n.onload=()=>{e(n.response)},n.onerror=t=>{i(t)},n.send()}));let p;const g=new Uint8Array(16);function f(){if(!p&&(p="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(g)}const m=[];for(let t=0;t<256;++t)m.push((t+256).toString(16).slice(1));function y(t,e=0){return(m[t[e+0]]+m[t[e+1]]+m[t[e+2]]+m[t[e+3]]+"-"+m[t[e+4]]+m[t[e+5]]+"-"+m[t[e+6]]+m[t[e+7]]+"-"+m[t[e+8]]+m[t[e+9]]+"-"+m[t[e+10]]+m[t[e+11]]+m[t[e+12]]+m[t[e+13]]+m[t[e+14]]+m[t[e+15]]).toLowerCase()}let b,v,E=0,I=0;var C=function(t,e,i){let n=e&&i||0;const r=e||new Array(16);let o=(t=t||{}).node||b,a=void 0!==t.clockseq?t.clockseq:v;if(null==o||null==a){const e=t.random||(t.rng||f)();null==o&&(o=b=[1|e[0],e[1],e[2],e[3],e[4],e[5]]),null==a&&(a=v=16383&(e[6]<<8|e[7]))}let s=void 0!==t.msecs?t.msecs:Date.now(),l=void 0!==t.nsecs?t.nsecs:I+1;const A=s-E+(l-I)/1e4;if(A<0&&void 0===t.clockseq&&(a=a+1&16383),(A<0||s>E)&&void 0===t.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");E=s,I=l,v=a,s+=122192928e5;const c=(1e4*(268435455&s)+l)%4294967296;r[n++]=c>>>24&255,r[n++]=c>>>16&255,r[n++]=c>>>8&255,r[n++]=255&c;const h=s/4294967296*1e4&268435455;r[n++]=h>>>8&255,r[n++]=255&h,r[n++]=h>>>24&15|16,r[n++]=h>>>16&255,r[n++]=a>>>8|128,r[n++]=255&a;for(let t=0;t<6;++t)r[n+t]=o[t];return e||y(r)};class B{constructor(t){this.bsocket=t,this.outType={},this.retryCount=0,this.seq=1,this.beatCount=0,this.subscribed={},this.roomed={},this.authed=!1,this.msgFlag={},this.config=t.config,this.guid=C(),this.init()}init(){const t=this.config.room;if(this.protobuf=this.config.protobuf,t)for(let e=0;e<t.length;e++)this.roomed[t[e].id]=t[e];const e=this.protobuf.Root.fromJSON(h);this.authType=e.lookupType("AuthReq"),this.msgType=e.lookupType("BroadcastFrame"),this.targetPathType=e.lookupType("TargetPath"),this.beatReqType=e.lookupType("HeartbeatReq"),this.ackReqType=e.lookupType("MessageAckReq"),this.anyType=e.lookupType("google.protobuf.Any"),this.roomRequest=e.lookupType("RoomReq"),this.roomResp=e.lookupType("RoomResp"),this.roomEvents={join:e.lookupType("RoomJoinEvent"),leave:e.lookupType("RoomLeaveEvent"),online:e.lookupType("RoomOnlineEvent")},this.initSocket(),this.config.hasTrack&&(t=>{const e=d(t);u(`//data.bilibili.com/log/web?001111${+new Date}${e.join("|")}`)})({platform:this.config.platform,type:this.config.type,url:this.config.url})}addLog(t,e=""){R.LOG.length>1e3&&R.LOG.shift(),R.LOG.push({[t]:e})}send(t,e=this.msgType){var i;if(this.disposed)return;this.addLog("send",JSON.stringify(t));const n=this.toBuffer(t,e);if(n){switch(this.readyState()){case 0:console.warn("is CONNECTING");break;case 1:null==(i=this.ws)||i.send(n);break;default:this.retry()}}else console.warn("格式不对")}initSocket(){try{this.config.protocols?this.ws=new WebSocket(this.config.url,this.config.protocols):this.ws=new WebSocket(this.config.url),this.ws.binaryType="arraybuffer",this.ws.onopen=this.onopen.bind(this),this.ws.onmessage=this.ommessage.bind(this),this.ws.onclose=this.onclose.bind(this),this.ws.onerror=this.onerror.bind(this),this.bsocket.emit(o.B_INITED,this.inited),this.inited=!0,this.disposed=!1,this.addLog("init",this.config.url)}catch(t){this.addLog("initErr",JSON.stringify(t)),console.warn(t),this.onerror(t)}}onopen(t){this.addLog("open",JSON.stringify(t)),this.retryCount=0,this.bsocket.emit(o.B_OPEN,t),this.auth()}onclose(){this.bsocket.emit(o.B_CLOSE),this.addLog("close","")}onerror(t){this.bsocket.emit(o.B_ERROR,t),this.addLog("err",JSON.stringify(t))}onAuthed(t){var e;this.bsocket.emit(o.B_AUTH,t),this.authed=!0,(null==(e=this.config.subscribe)?void 0:e.length)&&(this.subscribe(this.config.subscribe),this.config.subscribe.length=0);const i=Object.keys(this.subscribed);i.length&&this.subscribeBase(i);for(const t in this.roomed)this.roomBase(this.roomed[t])}ommessage(t){var e,i;const n=this.toMsg(t.data,this.msgType);if(this.beatCount=0,this.retryTimer&&clearTimeout(this.retryTimer),this.heartBeat(),this.addLog("msg",JSON.stringify(n)),n){if((null==(e=n.options)?void 0:e.isAck)&&this.send({options:{sequence:++this.seq},targetPath:l.MSG_ACK,body:this.encodeAny(this.ackReqType.create({ackId:n.options.messageId,ackOrigin:n.options.ackOrigin,targetPath:n.targetPath,msgType:n.options.msgType}),this.ackReqType,l.MSG_ACK_REQ)}),null==n?void 0:n.targetPath)switch(n.targetPath){case l.AUTH:this.onAuthed(n);break;case l.SUBSCRIBE:this.onSubscribed(n);break;case l.UNSUBSCRIBE:this.onUnSubscribed(n);break;case l.HEARTBEAT:this.bsocket.emit(o.B_HEARTBEAT,n);break;case l.ENTER:this.onRoomMsg(n);break;default:this.onOtherMsg(n)}delete this.msgFlag[null==(i=n.options)?void 0:i.sequence]}}onUnSubscribed(t){var e;const i=this.msgFlag[null==(e=t.options)?void 0:e.sequence];if(this.bsocket.emit(o.B_UN_SUB,t,i),i)for(let t=0;t<i.length;t++)delete this.subscribed[i[t]]}onSubscribed(t){var e;const i=this.msgFlag[null==(e=t.options)?void 0:e.sequence];if(this.bsocket.emit(o.B_SUB,t,i),i)for(let t=0;t<i.length;t++)this.subscribed[i[t]]=i[t]}onOtherMsg(t){const{body:e,targetPath:i}=t||{};if((null==e?void 0:e.value)&&i){if(this.outType[i]){const t=this.toMsg(e.value,this.outType[i]);return void this.bsocket.emit(o.B_MSG,{data:t})}console.warn("err: targetPath mismatch >",i)}this.bsocket.emit(o.B_MSG,t)}onRoomMsg(t){var e,i,n;if(null==(e=t.body)?void 0:e.value){const e=this.toMsg(t.body.value,this.roomResp);if(null==(i=e.msg)?void 0:i.targetPath){if(this.outType[e.msg.targetPath]){const t=this.toMsg(e.msg.body.value,this.outType[e.msg.targetPath])
;return void this.bsocket.emit(o.B_MSG,{data:t,id:e.id})}console.warn("err: targetPath mismatch >",e.msg.targetPath)}const r=this.msgFlag[null==(n=t.options)?void 0:n.sequence];if(r){switch(r.event){case A:this.roomed[r.id]=r;break;case c:delete this.roomed[r.id]}return void this.bsocket.emit(o.B_ROOM,e)}}this.bsocket.emit(o.B_MSG,t)}auth(){this.send({options:{sequence:++this.seq},targetPath:l.AUTH,body:this.encodeAny(this.authType.create({guid:this.guid}),this.authType,l.AUTHREQ)})}outsend(t,e,i){this.addLog("outSend",JSON.stringify(t)),this.outType[e]?this.send({options:{sequence:++this.seq},targetPath:e,body:this.encodeAny(this.outType[e].create(t),this.outType[e],i)}):console.warn("no type: "+e)}readyState(){var t;return null==(t=this.ws)?void 0:t.readyState}dispose(){this.disposed=!0,this.addLog("event","dispose"),this.retryTimer&&clearTimeout(this.retryTimer),this.beatTimer&&clearTimeout(this.beatTimer),this.close()}close(){var t;this.addLog("event","close"),null==(t=this.ws)||t.close()}unSubscribe(t){this.addLog("unsubscribe",JSON.stringify(t));let e=[];if(null==t?void 0:t.length){let i,n;for(i=0;i<t.length;i++)n=t[i],this.subscribed[n]&&(e.push(n),delete this.subscribed[n])}else e=Object.keys(this.subscribed);this.subscribeBase(e,!1)}subscribe(t){if(this.addLog("subscribe",JSON.stringify(t)),Array.isArray(t))try{const e=[];let i,n,r,o;for(i=0;i<t.length;i++)n=t[i],n.json&&(r=this.protobuf.Root.fromJSON(JSON.parse(n.json)),o=this.getTargetPaths(r,n),o&&e.push.apply(e,o));e.length&&this.subscribeBase(e)}catch(t){console.warn(t)}else console.warn("not array subscribe")}getTargetPaths(t,e){if(!Array.isArray(e.path))return console.warn("not array path"),null;let i,n;const r=[];for(let o=0;o<e.path.length;o++)i=e.path[o],i.targetPath&&i.typeUrl&&(n=i.targetPath,n&&!this.subscribed[n]&&(this.outType[n]=t.lookupType(i.typeUrl),r.push(n)));return r}subscribeBase(t,e=!0){if(!t||!t.length)return;let i=++this.seq;this.msgFlag[i]=t,this.send({options:{sequence:i},targetPath:e?l.SUBSCRIBE:l.UNSUBSCRIBE,body:this.encodeAny(this.targetPathType.create({targetPaths:t}),this.targetPathType,l.TARGETPATH)})}room(t){this.addLog("roomIn",JSON.stringify(t));const e=null==t?void 0:t.id;if(e)switch(t.event){case A:if(this.roomed[e])return void console.warn("is in room: "+e);break;case c:if(!this.roomed[e])return void console.warn("is not in room: "+e)}this.authed?this.roomBase(t):this.roomed[t.id]=t}roomBase(t){if(t.id&&this.roomEvents[t.event]){const e={id:t.id};e[t.event]=this.roomEvents[t.event].create({});const i=++this.seq;this.msgFlag[i]=t,this.send({options:{sequence:i},targetPath:l.ENTER,body:this.encodeAny(this.roomRequest.create(e),this.roomRequest,l.ROOMREQ)})}else console.warn("no event: "+t.event)}retry(){this.dispose(),this.initSocket();const t=Math.min(this.config.retryTime+this.retryCount*this.config.retryStep,this.config.maxTime);this.retryCount++,this.retryTimer=setTimeout((()=>{this.addLog("retry",String(this.retryCount)),this.retry()}),t)}heartBeat(){if(this.beatCount>3)return this.retry(),!0;this.beatTimer&&clearTimeout(this.beatTimer),this.beatTimer=setTimeout((()=>{this.addLog("heartBeat",String(this.beatCount)),this.beatCount++,this.send({options:{sequence:++this.seq},targetPath:l.HEARTBEAT,body:this.encodeAny(this.beatReqType.create({}),this.beatReqType,l.HEARTBEATRES)}),this.heartBeat()}),this.config.heartTime)}toMsg(t,e){let i;try{const n=e.decode(new Uint8Array(t));i=e.toObject(n)}catch(t){this.onerror(t)}return i}toBuffer(t,e){if(e.verify(t))return"";let i=e.create(t);return e.encode(i).finish()}encodeAny(t,e,i){return i=`type.googleapis.com${i}`,this.anyType.create({type_url:i,value:e.encode(t).finish()})}}var w=i(464),x=i.n(w),Q=Object.defineProperty,S=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,_=(t,e,i)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class R extends(x()){constructor(t){super(),this.config=((t,e)=>{for(var i in e||(e={}))k.call(e,i)&&_(t,i,e[i]);if(S)for(var i of S(e))D.call(e,i)&&_(t,i,e[i]);return t})({url:"",type:"",protobuf:null,protocols:"proto",platform:"web",retry:!0,retryCount:3,heartTime:2e4,retryTime:2e4,retryStep:5e3,maxTime:3e4,hasTrack:!0,subscribe:[],room:[]},t),t.subscribe&&(this.config.subscribe=[...t.subscribe]),this.ws=new B(this)}subscribe(t){this.ws.subscribe(t)}unSubscribe(t){this.ws.unSubscribe(t)}room(t){return this.ws.room(t)}dispose(){this.ws.dispose()}close(){this.ws.close()}send(t,e,i){return this.ws.outsend(t,e,i)}readyState(){return this.ws.readyState()}}R.LOG=[],R.EVENTS=o;var M=JSON.parse('{"nested":{"bilibili":{"nested":{"broadcast":{"nested":{"message":{"nested":{"main":{"nested":{"DanmakuElem":{"fields":{"id":{"type":"int64","id":1},"stime":{"type":"int32","id":2},"mode":{"type":"int32","id":3},"size":{"type":"int32","id":4},"color":{"type":"uint32","id":5},"uhash":{"type":"string","id":6},"text":{"type":"string","id":7},"ctime":{"type":"int64","id":8},"action":{"type":"string","id":9},"pool":{"type":"int32","id":10},"dmid":{"type":"string","id":11}}},"DanmukuEvent":{"fields":{"elems":{"rule":"repeated","type":"DanmakuElem","id":1}}}}}}}}}}}}}'),T=i(92452);class F extends T.eV{constructor(){super(...arguments),this.tag="HttpBroadcast",this.url="//api.bilibili.com/x/web-interface/broadcast/servers"}r(){return t=this,e=null,i=function*(){return this.request({url:this.url,params:{platform:"web"}}).then((t=>({body:this.parse(t.data),response:t})))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}parse(t){const e=t.data||{},i=e.backoff||{};return{domain:e.domain,tcpPort:e.tcp_port,wsPort:e.ws_port,wssPort:e.wss_port,wssPortV2:e.wss_port_v2,heartbeat:e.heartbeat,heartbeatMax:e.heartbeat_max,nodes:e.nodes,backoff:{maxDelay:i.max_delay,baseDelay:i.base_delay,factor:i.factor,jitter:i.jitter}}}}var L=i(5489),N=i(22451);class P extends L.vq{constructor(){super(...arguments),this.realdmPath="bilibili.broadcast.message.main.DanmukuEvent"}install(){super.install(),this.dc.dmPause=(0,N.U5)((()=>this.rootStore.isPrepared),(t=>{if(t){new F(this.rootPlayer).r().then((t=>{this.sendBroadcast(t)})).catch((t=>{this.track.o("bsocket_url_err",null==t?void 0:t.message)}))}}),{fireImmediately:!0})}sendBroadcast(t){let e=t.body;const i=`${"https:"===window.location.protocol?"wss":"ws"}://${e.domain}:${e.wssPortV2||7826}/sub?platform=web`,{aid:n,cid:o,seasonId:a,episodeId:s}=this.configStore;this.socketKey=`video://${n}/${o}`,this.uiStore.kind===L.HR.Pgc&&(this.socketKey+=`?sid=${a}&epid=${s}`);const l=[{json:JSON.stringify(M),path:[{typeUrl:this.realdmPath,targetPath:this.realdmPath}]}],A=[];this.mediaStore.state.firstPlay&&(A.push({id:this.socketKey,event:"join"}),this.first=!0),this.bsocket=new R({url:i,protobuf:r(),subscribe:l,room:A,hasTrack:!1}),this.bsocket.on(R.EVENTS.B_MSG,(t=>{this.socketKey.indexOf(t.id)>=0&&this.addDanmaku(t.data.elems)})),this.bsocket.on(R.EVENTS.B_ROOM,(t=>{if(t.id===this.socketKey)t.join&&this.track.e("room_join")})),this.getOnline(),this.bsocket.on(R.EVENTS.B_CLOSE,(t=>{clearTimeout(this.getOnlineTimer)})),this.bsocket.on(R.EVENTS.B_ERROR,(t=>{this.track.o("bsocket_err",t)})),this.dp.play=(0,N.EH)((()=>{this.mediaStore.state.firstPlay&&this.join()}))}join(){!this.first&&this.bsocket&&(this.first=!0,this.bsocket.room({id:this.socketKey,event:"join"}))}getOnline(){let t,{aid:e,cid:i,bvid:n}=this.configStore;t=this.patchAdvStore.hasValidAdv?{aid:this.patchAdvStore.mainInfo.aid,cid:this.patchAdvStore.mainInfo.cid,bvid:"",ts:Math.ceil(+new Date/30/1e3)}:{aid:e,cid:i,bvid:n,ts:Math.ceil(+new Date/30/1e3)},this.sendStore.onlineNum(t).then((({body:t})=>{var e,i;this.sendStore.setState({webNum:t.count,allNum:t.total,showAll:t.showSwitch.total,showWeb:t.showSwitch.count}),((null==(e=t.showSwitch)?void 0:e.total)||(null==(i=t.showSwitch)?void 0:i.count))&&(this.getOnlineTimer=window.setTimeout((()=>{this.getOnline()}),3e4)),this.rootPlayer.emit(L.tw.Player_Virtual_Action,new CustomEvent(L.tw.Player_Virtual_Action,{detail:{kind:L.s.Premiere,
data:{type:"online",total:+t.total||0}}}))}))}addDanmaku(t){var e;try{if(Array.isArray(t)){const i=t[0],n=this.premiereStore.state.status,r={stime:i.stime||0,mode:i.mode||1,size:i.size||25,color:i.color||16777215,date:i.ctime||0,pool:i.pool||0,uhash:i.uhash||"",dmid:i.dmid||"",text:i.text,isMine:!!((null==i?void 0:i.attr)>>18&1)},o=null==(e=this.userStore.info)?void 0:e.hashId;if(r.isMine)return;if(o===r.uhash)return;n&&(r.weight=9,r.stime=-1),this.dmListStore.addDm(r)}}catch(t){this.log.w(t)}}onDispose(){var t;super.onDispose(),null==(t=this.bsocket)||t.dispose(),this.first=!1}}},18337:function(t,e,i){"use strict";i.d(e,{c:function(){return h}});var n=i(57012),r=i(23529),o=i(46330),a=i(99149),s=i(22451),l=i(5489),A=i(25360),c=i.n(A);class h extends l.vq{constructor(){super(...arguments),this.uiList={}}install(){super.install(),this.dc.show=(0,s.EH)((()=>{var t;this.menuStore.state.showColor&&!this.uiStore.isTinyView?this.show():(0,r.N)(null==(t=this.element)?void 0:t.panel)}))}show(){this.inited||this.initUi(),(0,o.o)(this.element.panel)}initUi(){this.inited=!0;const t=this.ppx,e=this.nodes.videoArea;e.appendChild(this.renderFragment()),this.element={panel:e.querySelector(`.${t}-color-panel`),close:e.querySelector(`.${t}-color-panel-close`),saturateWrap:e.querySelector(`.${t}-color-panel-saturate`),brightnessWrap:e.querySelector(`.${t}-color-panel-brightness`),contrastWrap:e.querySelector(`.${t}-color-panel-contrast`),reset:e.querySelector(`.${t}-color-panel-btn`)},this.element.saturate=this.element.saturateWrap.querySelector(`.${t}-color-panel-value`),this.element.brightness=this.element.brightnessWrap.querySelector(`.${t}-color-panel-value`),this.element.contrast=this.element.contrastWrap.querySelector(`.${t}-color-panel-value`);const{saturate:i,brightness:r,contrast:o}=this.menuStore.state;this.uiList.saturate=new n.iR(this.element.saturateWrap.querySelector(`.${t}-color-panel-slider`),{dark:!0,value:i/255}),this.uiList.saturate.on("move",(t=>{this.menuStore.setState({changeColor:"saturate",saturate:255*t.value})})),this.uiList.brightness=new n.iR(this.element.brightnessWrap.querySelector(`.${t}-color-panel-slider`),{dark:!0,value:r/255}),this.uiList.brightness.on("move",(t=>{this.menuStore.setState({changeColor:"brightness",brightness:255*t.value})})),this.uiList.contrast=new n.iR(this.element.contrastWrap.querySelector(`.${t}-color-panel-slider`),{dark:!0,value:o/255}),this.uiList.contrast.on("move",(t=>{this.menuStore.setState({changeColor:"contrast",contrast:255*t.value})}));new n.zx(this.element.reset,{type:"black",text:"重置"}).on("click",(()=>{this.resetValue()})),this.element.close.addEventListener("click",(()=>{this.menuStore.setState({showColor:!1})})),this.dc.change=(0,s.U5)((()=>{const{saturate:t,brightness:e,contrast:i,changeColor:n}=this.menuStore.state;return{saturate:t,brightness:e,contrast:i,changeColor:n}}),(({saturate:t,brightness:e,contrast:i,changeColor:n})=>{n&&(this.nodes.videoWrap.style.cssText=`-webkit-filter:saturate(${t/100}) brightness(${e/100}) contrast(${i/100})`,this.element[n].textContent=String(Math.round(this.menuStore.state[n])),this.dropFrameExtra.addListener("colorPanel",(()=>{this.toastStore.create({text:"丢帧严重，已自动关闭色彩调整",duration:2e3}),this.resetValue()})))}))}resetValue(){this.dropFrameExtra.removeListener("colorPanel"),this.uiList.saturate.value(100/255,!0),this.uiList.brightness.value(100/255,!0),this.uiList.contrast.value(100/255,!0),this.element.saturate.textContent="100",this.element.brightness.textContent="100",this.element.contrast.textContent="100",this.menuStore.setState({changeColor:null,brightness:100,saturate:100,contrast:100}),this.nodes.videoWrap.style.cssText=""}renderFragment(){const t=this.ppx,e=`<div class="${t}-color-panel">\n                    <div class="${t}-color-panel-title">色彩调整<span class="${t}-color-panel-close"><span class="${this.cpx}-svg-icon">${c()}</span></span></div>\n                    <div class="${t}-color-panel-saturate ${t}-color-wrap">\n                        <div class="${t}-color-panel-name">饱和度</div>\n                        <div class="${t}-color-panel-slider"></div>\n                        <div class="${t}-color-panel-value">100</div>\n                    </div>\n                    <div class="${t}-color-panel-brightness ${t}-color-wrap">\n                        <div class="${t}-color-panel-name">亮度</div>\n                        <div class="${t}-color-panel-slider"></div>\n                        <div class="${t}-color-panel-value">100</div>\n                    </div>\n                    <div class="${t}-color-panel-contrast ${t}-color-wrap">\n                        <div class="${t}-color-panel-name">对比度</div>\n                        <div class="${t}-color-panel-slider"></div>\n                        <div class="${t}-color-panel-value">100</div>\n                    </div>\n                    <div class="${t}-color-panel-reset">\n                        <span class="${t}-color-panel-btn"></span>\n                    </div>\n                </div>`;return(0,a.i)(e)}onDispose(){super.onDispose(),this.inited&&this.resetValue()}}},99718:function(t,e,i){"use strict";i.d(e,{S:function(){return u}});var n=i(5489),r=i(22451),o=i(89262),a=i(28759),s=i(20094),l=i(91167),A=i.n(l),c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?h(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&c(e,i,o),o};class u extends n.vq{constructor(){super(...arguments),this.configVersion=0,this.fawkesConfigPrefix="bpcfgzip",this.env=(this.getEnv(),"prod")}install(){super.install(),this.dc.init=(0,r.U5)((()=>this.userStore.info&&this.mediaStore.state.duration),(t=>{this.getConfigVersion()}),{fireImmediately:!0}),this.rootPlayer.once(n.p2.PLAYER_FAWKES_CONFIG_LOADED,this.onPlayerFawkesConfigLoaded),this.rootPlayer.once(n.p2.PLAYER_UNLOAD,this.onPlayerUnload)}getConfigVersion(){var t,e;this.configVersion||this.userStore.info&&this.userStore.info.fawkes&&(null==(t=this.userStore.info.fawkes)?void 0:t.config_version)&&(this.configVersion=(null==(e=this.userStore.info.fawkes)?void 0:e.config_version)||0)}saveDashFawkesConfig(){var t;try{if(this.getConfigVersion(),!this.configVersion)return;const e=localStorage.getItem(this.getDashFawkesConfigKey());let i=null;const n=JSON.parse(null==localStorage?void 0:localStorage.getItem(this.getConfigKey())),r=this.getDashFawkesConfig(n);if(e&&(i=null==(t=JSON.parse(e))?void 0:t.version),null!==i&&i===this.configVersion)return;(null==localStorage?void 0:localStorage.setItem)&&(null==localStorage||localStorage.setItem(this.getDashFawkesConfigKey(),JSON.stringify(r)))}catch(t){}}getEnv(){let t="prod";const e=window.location.hostname;if(!e)return t;const i=e.slice(0,4);return"pre-"===i?t="pre":"uat-"===i&&(t="uat"),t}onPlayerFawkesConfigLoaded(){this.saveDashFawkesConfig()}getConfigKey(){return`${this.fawkesConfigPrefix}_${this.env}_${this.configVersion}`}getDashFawkesConfigKey(){return"bilibili_player_dash_fawkes_config"}getDashFawkesConfig(t){return Object.assign(t,{version:this.configVersion})}upload(){var t;try{if(!this.rootPlayer)return;const e="308";(0,a.Dy)({appkey:"web_player",preload:{r:"upos",profile:"feedback/bup",name:"main.log"},taskType:e,file:this.rootPlayer.getFormattedLogs(),user:{mid:String((null==(t=this.userStore.info)?void 0:t.mid)||""),buvid:s.get("buvid3")}}).then((t=>{this.log.i("[upload_passively_success]",JSON.stringify(t))})).catch((t=>{this.log.i("[upload_passively_err]",JSON.stringify(t)),this.track.o("log_upload_err",{err:t})}))}catch(t){}}shouldUploadErrorLog(){try{if(!this.kernelStore)return!1;const t="error_upload_log",e="error_upload_white_list",i="dash_config";if("function"!=typeof A().getFawkesConfigValue)return;const n=+A().getFawkesConfigValue(i,t)||0,r=A().getFawkesConfigValue(i,e),o=r&&JSON.parse(r)||[],a=s.get("DedeUserID"),l=""===a?0:Number(a),c=Math.random();return!!o.includes(l)||this.errorStore.occurredFatalErr()&&c<n}catch(t){return!1}}onPlayerUnload(){this.shouldUploadErrorLog()&&this.upload()}onDispose(){super.onDispose(),this.rootPlayer.off(n.p2.PLAYER_FAWKES_CONFIG_LOADED,this.onPlayerFawkesConfigLoaded),
this.rootPlayer.off(n.p2.PLAYER_UNLOAD,this.onPlayerUnload)}}d([o.ZP],u.prototype,"onPlayerFawkesConfigLoaded",1),d([o.ZP],u.prototype,"onPlayerUnload",1)},31036:function(t,e,i){"use strict";i.d(e,{L:function(){return s}});var n=i(5489),r=i(22451),o=i(68063),a=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class s extends n.vq{constructor(){super(...arguments),this.tag="LOLMask",this.kvSDK=new o.Z(5),this.enabled=!1,this.maskVersion="1.0.5",this.bvidList=[],this.mediaOwnerList=[]}install(){super.install(),this.dc.init=(0,r.U5)((()=>this.userStore.info&&!!this.mediaStore.state.duration&&this.dmSettingStore.state.dmask&&this.dmSettingStore.state.dmSwitch&&this.upStore.state.mid>0),(t=>{this.lolMask?t?(this.handlePaintLoLMask(),this.lolMask.getSupportInfo().then((t=>{this.track.o("dm_lol_mask_repaint",{bvid:this.configStore.bvid,mid:this.userStore.mid,maskVersion:this.maskVersion,supportInfo:t})}))):(this.handlePaintLoLMask(),this.lolMask.getSupportInfo().then((t=>{this.track.o("dm_lol_mask_cancel",{bvid:this.configStore.bvid,mid:this.userStore.mid,maskVersion:this.maskVersion,supportInfo:t})}))):t&&this.initMask()}),{fireImmediately:!0}),this.dc.init=(0,r.U5)((()=>this.settingStore.state.mirror),(t=>{var e;null==(e=this.lolMask)||e.setMirrorStatus(t)})),this.dc.init=(0,r.U5)((()=>this.uiStore.state.sideScreen===n.dY.Pip),(t=>{this.handlePaintLoLMask()}))}handlePaintLoLMask(){var t;this.lolMask&&this.enabled&&this.dmSettingStore.state.dmask&&this.dmSettingStore.state.dmSwitch&&this.uiStore.state.sideScreen!==n.dY.Pip?this.lolMask.paint():null==(t=this.lolMask)||t.cancelPaint()}loadConfig(){const t=this.kvSDK.getConfig("basic");this.enabled=JSON.parse(t.enabled||JSON.stringify(this.enabled)),this.bvidList=JSON.parse(t.bvid_list||JSON.stringify(this.bvidList)),this.mediaOwnerList=JSON.parse(t.media_owner_list||JSON.stringify(this.mediaOwnerList)),this.maskVersion=t.lol_mask_version||this.maskVersion}initMask(){return a(this,null,(function*(){try{if(this.userStore.info.interaction)return;this.loadConfig(),this.track.o("dm_lol_mask_prepare",{bvid:this.configStore.bvid,mid:this.userStore.mid,maskVersion:this.maskVersion,enabled:this.enabled});const t=+this.upStore.state.mid,e=this.configStore.bvid;if(!this.enabled||!this.bvidList.includes(e)&&!this.mediaOwnerList.includes(t))return;window[this.tag]||(yield this.loadScript()),this.lolMask||(this.lolMask=window.lolMask=new window[this.tag]({video:this.mediaStore.video,dmEle:this.nodes.rowDanmaku})),this.handlePaintLoLMask(),this.track.o("dm_lol_mask_init",{bvid:this.configStore.bvid,mid:this.userStore.mid,maskVersion:this.maskVersion,supportInfo:yield this.lolMask.getSupportInfo()})}catch(t){}}))}loadScript(){return a(this,null,(function*(){return new Promise(((t,e)=>{const i=window.document.createElement("script");i.onload=()=>{t()},i.onerror=t=>{e(t)},i.src=`https://s1.hdslb.com/bfs/static/player/dm-mask-lol.umd.${this.maskVersion}.js `,window.document.head.appendChild(i)}))}))}onDispose(){super.onDispose(),this.lolMask&&(this.lolMask.destroy(),this.lolMask=null,window.lolMask=null),this.bvidList=[],this.mediaOwnerList=[]}}},10490:function(t,e,i){"use strict";i.d(e,{s:function(){return Dt}});var n=i(5489),r=i(78333),o=i(62615),a=i(23529),s=i(18417),l=i(46330),A=i(99550),c=i(31168),h=i(70811);var d=i(65723),u=i(53731),p=i(22451),g=i(32468),f=i.n(g),m=i(30203),y=i.n(m),b=i(45786),v=i.n(b),E=i(93),I=i.n(E),C=i(703),B=i.n(C),w=i(80155),x=i.n(w),Q=i(97203),S=i.n(Q),k=i(80563),D=i.n(k),_=i(42524),R=i.n(_),M=i(44006),T=i.n(M),F=i(70612),L=i.n(F),N=i(87115),P=i.n(N),U=i(15706),O=i.n(U),G=i(63199),H=i.n(G),V=i(74642),Y=i.n(V),z=i(98546),W=i.n(z),Z=i(82227),j=i.n(Z),q=i(58110),J=i.n(q),K=i(3225),X=i.n(K),$=i(92452);class tt extends $.eV{constructor(){super(...arguments),this.tag="HttpUgcPremiere",this.url="//api.bilibili.com/x/web-interface/view/premiere_info"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>{var e;if(t&&t.data&&t.data.data)return{participant:t.data.data.participant,interaction:t.data.data.interaction};Promise.reject({code:t.data.code,message:null==(e=t.data)?void 0:e.message})}))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var et=i(67644),it=i(55537),nt=i(89715),rt=i(80457);class ot extends $.eV{constructor(){super(...arguments),this.tag="HttpInteractionMark",this.url="//api.bilibili.com/x/stein/mark"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}
var at=i(57012),st=i(89262),lt=i(20733),At=i.n(lt),ct=i(62022),ht=i(44127),dt=i(57277),ut=i(65945),pt=i(40712),gt=JSON.parse('{"v":"5.7.4","fr":60,"ip":0,"op":301,"w":312,"h":312,"nm":"播放倒计时/正常播放键","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"椭圆形备份 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[156,156,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[84,84],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆形备份 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[1]},{"t":300,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"修剪路径 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":913,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"椭圆形备份","sr":1,"ks":{"o":{"a":0,"k":40,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[156,156,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[84,84],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆形备份","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":913,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"shape","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[160.163,155.855,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[20.59,0.002],[-16.66,23.062],[-16.66,-23.058]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"圆角 1","r":{"a":0,"k":4.364,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"shape","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":913,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"椭圆形","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[156,156,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[78,78],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"椭圆路径 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,0.301960796118],"ix":4},"o":{"a":0,"k":30,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆形","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":913,"st":0,"bm":0}],"markers":[]}'),ft=i(54),mt=i.n(ft),yt=i(51839),bt=i(23173),vt=Object.defineProperty,Et=Object.defineProperties,It=Object.getOwnPropertyDescriptor,Ct=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Qt=(t,e,i)=>e in t?vt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,St=(t,e)=>{for(var i in e||(e={}))wt.call(e,i)&&Qt(t,i,e[i]);if(Bt)for(var i of Bt(e))xt.call(e,i)&&Qt(t,i,e[i]);return t},kt=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?It(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&vt(e,i,o),o};class Dt extends n.vq{constructor(t){super(t),this.inited=!1,this.embedInit=!1,this.activeToken=this.spx+"-active",this.plusToken=this.spx+"-plus",this.countdownTimer=0,this.countdownRelated=null,this.grade=0,this.scale=1,this.removeTooltips={},this.markOpen=!1,this.bpFocusout=!1,(0,p.rC)(this)}get starMapping(){return[`<span class="${this.cpx}-svg-icon">${f()}</span>一星`,`<span class="${this.cpx}-svg-icon">${y()}</span>二星`,`<span class="${this.cpx}-svg-icon">${v()}</span>三星`,`<span class="${this.cpx}-svg-icon">${I()}</span>四星`,`<span class="${this.cpx}-svg-icon">${B()}</span>五星`]}get cancelAutoplay(){return this.isCancelAutoPlay()}install(){super.install(),this.configStore.embeddedEnv!==n.vt.Nomal||this.configStore.isChannel(n.u5.Mini_Site)?(this.configStore.embeddedEnv===n.vt.Other&&(this.nodes.videoArea.style.cursor="pointer"),this.dc.ended=(0,p.U5)((()=>this.mediaStore.state.ended),(t=>{t&&(this.endingStore.open(),this.embededShow())}),{fireImmediately:!0})):this.rootPlayer.on(n.tw.Player_Show_EndPanel,(()=>{this.show()}))}setMarkStatus(t){this.markOpen=t}setBpFocusout(t){this.bpFocusout=t}show(){return t=this,e=null,i=function*(){if(!this.inited){this.inited=!0,this.templateNodes=this.endingTemplate(),this.interactionMark(),this.addPageReaction(),this.addEventsListener(),this.nodes.endingPanel.appendChild(this.templateNodes.container),this.dp.cancel=(0,p.U5)((()=>this.cancelAutoplay),(t=>{t&&this.countdownHandler(!0)}),{fireImmediately:!0});const t=(0,ct.Z)((()=>{this.resize()}),100);this.dp.resize=(0,p.U5)((()=>this.uiStore.state.videoAreaWidth),(e=>{e&&t()})),this.resize()}this.track.e("end_recommend_show"),this.scrollHandler(),this.countdownHandler(this.isCancelAutoPlay()),this.interactionSwiper()},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}embededShow(){this.embedInit||(this.embededTemplateNodes=this.embededEndingTemplate(),this.addEmbededEventListener(),this.dc.stat=(0,p.U5)((()=>this.storyStore.state.stat),(t=>{t?(this.embededTemplateNodes.topButtons.querySelector(`.${this.ppx}-top-buttons-like .${this.ppx}-top-button-text`).innerHTML=(0,o.u)(t.like),this.embededTemplateNodes.topButtons.querySelector(`.${this.ppx}-top-buttons-share .${this.ppx}-top-button-text`).innerHTML=(0,o.u)(t.share)):(0,a.N)(this.embededTemplateNodes.topButtons)}),{fireImmediately:!0}),this.dp.render=(0,p.U5)((()=>({width:this.uiStore.state.videoAreaWidth,related:this.storyStore.state.related})),(({width:t,related:e})=>{let i;t>n.vd.Big?(i=10,this.embededTemplateNodes.relationContext.classList.add("fix-context"),this.embededTemplateNodes.endingWrapBox.style.width="1060px"):t>=n.vd.Normal&&t<=1100?(i=Math.floor((t-n.vd.Normal)/200)+4,this.embededTemplateNodes.relationContext.classList.remove("fix-context"),this.embededTemplateNodes.endingWrapBox.style.width=t-40+"px"):(i=0,this.embededTemplateNodes.relationContext.classList.remove("fix-context")),this.embededRelationInfoFill(e,i)}),{fireImmediately:!0}),this.dp.title=(0,p.U5)((()=>this.storyStore.state.title),(t=>{t||(0,a.N)(this.embededTemplateNodes.topLeftTitle)}),{fireImmediately:!0}),this.dp.face=(0,p.U5)((()=>this.upStore.state.face),(t=>{
const e=this.embededTemplateNodes.follow.querySelector(`.${this.ppx}-follow-face`),i=this.embededTemplateNodes.follow.querySelector(`.${this.ppx}-follow-name`);t?(e.src=(0,s.Q)(this.upStore.state.face,96),i.innerHTML=this.upStore.state.name):(0,a.N)(this.embededTemplateNodes.follow)}),{fireImmediately:!0}),this.dc.follow=(0,p.U5)((()=>this.upStore.state.follow),(t=>{const e=this.embededTemplateNodes.follow,i=e.querySelector(`.${this.ppx}-follow-name`),n=e.querySelector(`.${this.ppx}-follow-text`);n.innerHTML=t?"已关注":`${x()}<span>关注</span>`,i.innerHTML=this.upStore.state.name}),{fireImmediately:!0}),this.dp.hide=(0,p.U5)((()=>this.uiStore.embedView),(t=>{t<n.pp.Normal||this.configStore.isChannel(n.u5.Mini_Site)?((0,a.N)(this.embededTemplateNodes.endingWrapBox),(0,l.o)(this.embededTemplateNodes.miniReplay),this.configStore.embeddedEnv>n.vt.Embedded&&(0,l.o)(this.embededTemplateNodes.miniEnter)):((0,l.o)(this.embededTemplateNodes.endingWrapBox),(0,a.N)(this.embededTemplateNodes.miniReplay),this.configStore.embeddedEnv>n.vt.Embedded&&(0,a.N)(this.embededTemplateNodes.miniEnter))}),{fireImmediately:!0}))}isCancelAutoPlay(){return!this.endingStore.state.opened||(!this.storyStore.state.relatedAutoplay||!(!this.sendStore.state.focus&&!this.bpFocusout))}embededEndingTemplate(){this.nodes.endingPanel.innerHTML="";const t=this.ppx;let e="";this.configStore.embeddedEnv>n.vt.Embedded&&(e=`<div class ="${this.ppx}-ending-enter-button">进入哔哩哔哩观看 ${S()}</div>`);const i=`\n        <div class="${this.ppx}-embeded-ending-wrap">\n          \n            ${e}\n            <div class="${this.ppx}-replay" data-action="replay">\n                <span class="${t}-replay-icon" data-action="replay">${D()}</span>\n                <span class="${t}-replay-text" data-action="replay">重播</span>\n            </div>\n\n            <div class ="${t}-embeded-ending-wrap-box">\n                <div class="${t}-embeded-ending-top-wrap">\n                    <div class="${t}-embeded-ending-top-left">\n                        <div class="${t}-top-left-title">\n                        <span class="${t}-top-left-logo">${R()}</span><span class =${t}-top-left-block></span><span class="${t}-top-left-title-text"></span>\n                        </div>\n                        <div class="${t}-top-left-follow">\n                            <div class="${this.ppx}-follow">\n                                <img class="${this.ppx}-follow-face" />\n                                <span class="${this.ppx}-follow-name"></span>\n                                <span class="${this.ppx}-follow-text"> ${T()}<span>关注</span></span>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="${t}-top-buttons">\n                        <div class="${t}-top-button ${t}-top-buttons-replay" data-action="replay">\n                            <span class="${t}-top-button-icon" data-action="replay">${D()}</span>\n                            <span class="${t}-top-button-text" data-action="replay">重播</span>\n                        </div>\n                        <div class="${t}-top-button ${t}-top-buttons-like" data-actoin="like">\n                            <span class="${t}-top-button-icon">${L()}</span>\n                            <span class="${t}-top-button-text">-</span>\n                        </div>\n                        <div class="${t}-top-button ${t}-top-buttons-share" data-action="share">\n                            <span class="${t}-top-button-icon">${P()}</span>\n                            <span class="${t}-top-button-text">-</span>\n                        </div>\n                    </div>\n                </div>\n                <div class="${t}-embeded-ending-relation-wrap"> \n                    <div class="${t}-embeded-ending-relation-context"></div>\n                </div>\n\n                <div class="${t}-embeded-ending-button-group"></div> \n            </div>\n        </div>`,r=(0,A.t)(i),o=r.querySelector(`.${t}-embeded-ending-wrap-box`),a=r.querySelector(`.${t}-follow`),s=r.querySelector(`.${t}-top-buttons`),l=r.querySelector(`.${t}-top-left-title`),c=r.querySelector(`.${t}-top-left-title-text`),h=r.querySelector(`.${t}-embeded-ending-relation-wrap`),d=r.querySelector(`.${t}-embeded-ending-relation-context`),u=r.querySelector(`.${t}-embeded-ending-button-group`),p=r.querySelector(`.${this.ppx}-replay`);let g;return c.innerText=this.storyStore.state.title,this.embededBottomButtonGroupFill(u),this.nodes.endingPanel.appendChild(r),this.configStore.embeddedEnv>n.vt.Embedded&&(g=r.querySelector(`.${this.ppx}-ending-enter-button`)),{container:r,endingWrapBox:o,topLeftTitle:l,follow:a,topButtons:s,relationWrap:h,bottomButtonGroup:u,relationContext:d,miniReplay:p,miniEnter:g}}endingTemplate(){var t;const{mid:e,name:i,face:n}=this.upStore.state,o=`\n            <div class="${this.ppx}-ending-functions">\n                <div class="${this.ppx}-ending-functions-avatar" data-action="upinfo">\n                    <a href="//space.bilibili.com/${e||""}" target="_blank">\n                        <img src="${n?(0,r.Xv)(n.replace("http://","//"),{w:48,h:48,c:!0,s:!0,style:"web-avatar",dpr:2}):""}" />\n                    </a>\n                </div>\n                <div class="${this.ppx}-ending-functions-upinfo" data-action="upinfo">\n                    <div class="${this.ppx}-ending-functions-name">\n                        <a href="//space.bilibili.com/${e||""}" target="_blank">${i||""}</a>\n                    </div>\n                    <div class="${this.ppx}-ending-functions-buttons">\n                        <div class="${this.ppx}-ending-functions-electric"></div>\n                        <div class="${this.ppx}-ending-functions-follow" data-action="follow"></div>\n                    </div>\n                </div>\n                <div class="${this.ppx}-ending-functions-common">\n                    <div class="${this.ppx}-ending-functions-btn" data-action="restart"><span class="${this.cpx}-svg-icon">${D()}</span>重播</div>\n                    <div class="${this.ppx}-ending-functions-pagecallback">\n                        <div class="${this.ppx}-ending-functions-btn" data-action="grade"></div>\n                        <div class="${this.ppx}-ending-functions-btn" data-action="like"></div>\n                        <div class="${this.ppx}-ending-functions-btn" data-action="coin"></div>\n                        <div class="${this.ppx}-ending-functions-btn" data-action="collect"></div>\n                        <div class="${this.ppx}-ending-functions-btn" data-action="share"><span class="${this.cpx}-svg-icon">${O()}</span>分享</div>\n                    </div>\n                </div>\n            </div>\n        `;let a="";if(this.premiereStore.state.status){const e=null==(t=this.userStore.info)?void 0:t.isOwner;a=`\n                <div class="${this.ppx}-ending ${this.ppx}-ending-premiere">\n                    <div class="${this.ppx}-ending-premiere-video-title">${this.storyStore.state.title}</div>\n                    <div class="${this.ppx}-ending-content ${this.ppx}-ending-premiere-content${e?"-upview":""}">\n                        <div class="${this.ppx}-ending-premiere-title">首映播放结束</div>\n                        <div class="${this.ppx}-ending-premiere-info">你可以点击浏览其他精彩内容哦</div>\n                        ${e?"":o}\n                        <div class="${this.ppx}-ending-related"></div>\n                    </div>\n                </div>\n            `}else a=`\n                <div class="${this.ppx}-ending">\n                    <div class="${this.ppx}-ending-content">\n                        ${o}\n                        <div class="${this.ppx}-ending-interaction-swiper"></div>\n                        <div class="${this.ppx}-ending-interaction-hiddenvars"></div>\n                        <div class="${this.ppx}-ending-related"></div>\n                    </div>\n                </div>\n            `;const s=(0,
A.t)(a),l=s.querySelector(`.${this.ppx}-ending-content`),c=s.querySelector(`.${this.ppx}-ending-functions`),h=s.querySelector(`.${this.ppx}-ending-functions-follow`),d=s.querySelector(`.${this.ppx}-ending-functions-electric`),u=s.querySelector(`.${this.ppx}-ending-functions-btn[data-action="grade"]`),p=s.querySelector(`.${this.ppx}-ending-functions-btn[data-action="like"]`),g=s.querySelector(`.${this.ppx}-ending-functions-btn[data-action="coin"]`),f=s.querySelector(`.${this.ppx}-ending-functions-btn[data-action="collect"]`),m=s.querySelector(`.${this.ppx}-ending-functions-pagecallback`),y=s.querySelector(`.${this.ppx}-ending-interaction-swiper`),b=s.querySelector(`.${this.ppx}-ending-interaction-hiddenvars`),v=s.querySelector(`.${this.ppx}-ending-related`),E=s.querySelector(`.${this.ppx}-ending-premiere-info`);return this.updatePremiereInfo(E),{container:s,content:l,functions:c,follow:h,electric:d,grade:u,like:p,coin:g,collect:f,pagecallback:m,swiper:y,hiddenVars:b,related:v}}embededFollowInfoFill(t,e){const i=t.querySelector(`.${this.ppx}-follow-name`),n=t.querySelector(`.${this.ppx}-follow-face`),r=t.querySelector(`.${this.ppx}-follow-text`);e?(t.style.visibility="none",r.innerHTML="已关注"):r.innerHTML=`${x()}<span>关注</span>`,n.src=(0,s.Q)(this.upStore.state.face,96),i.innerHTML=this.upStore.state.name}embededBottomButtonGroupFill(t){const e=this.ppx;let i=`<div class= "${e}-downlowd">${H()}下载哔哩哔哩客户端</div>`;this.configStore.embeddedEnv===n.vt.Embedded?i+=`<div class="${e}-enter">进入详情页观看 ${S()}</div>`:i+=`<div class="${e}-enter">进入哔哩哔哩观看 ${S()}</div>`,t.innerHTML=i}embededRelationInfoFill(t,e){const i=this.embededTemplateNodes.relationContext;if(i.innerHTML="",!Array.isArray(t)||!t.length)return;const r=this.ppx;t.slice(0,e).forEach((t=>{const e=(0,A.t)(`\n            <div class="${r}-relation-context-item">\n                <div class="${r}-relation-context-poster">\n                    <img src=${t.pic} class="${r}-relation-context-poster-img">\n                    <div class="${r}-relation-context-poster-duration">${(0,c.Z)(t.duration)}</div>\n                </div>\n                <div class="${r}-relation-context-title">${t.title}</div>\n            </div>\n            `);let o;switch(this.configStore.embeddedEnv){case n.vt.Embedded:o=yt.ZZ.Embed;break;case n.vt.White:case n.vt.Other:o=yt.ZZ.Embed_White_Other}e.addEventListener("click",(()=>{let e=`https://www.bilibili.com/video/${t.bvid?t.bvid:`av${t.aid}`}?spm_id_from=${o}`;window.open(e)})),i.appendChild(e)}))}updatePremiereInfo(t){var e;(null==(e=this.userStore.info)?void 0:e.isOwner)&&new tt(this.rootPlayer).r({aid:this.configStore.aid,bvid:this.configStore.bvid}).then((e=>{e&&t&&(t.innerHTML=`期间共 ${e.participant||0} 人参与，发生 ${e.interaction||0} 次互动`)}))}addEventsListener(){var t;null==(t=this.templateNodes.functions)||t.addEventListener("click",this.functionsHandler),this.templateNodes.container.addEventListener("click",this.containerClickHandler),this.rootStore.window.addEventListener("scroll",this.scrollHandler)}addEmbededEventListener(){const t=this.ppx;this.embededTemplateNodes.container.querySelector(`.${t}-top-left-title-text`).addEventListener("click",this.onEmbededTitleHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-left-title-text`).addEventListener("mouseover",this.showEmbedFullTitle),this.embededTemplateNodes.miniReplay.addEventListener("click",this.onEmbededReplayHandler),this.configStore.embeddedEnv>n.vt.Embedded&&this.embededTemplateNodes.container.querySelector(`.${this.ppx}-ending-enter-button`).addEventListener("click",this.onEmbededEnterHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-left-logo`).addEventListener("click",this.onEmbededLogoHandler),this.embededTemplateNodes.container.querySelector(`.${t}-follow`).addEventListener("click",this.onEmbededFollowHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-buttons-replay`).addEventListener("click",this.onEmbededReplayHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-buttons-like`).addEventListener("click",this.onEmbededLikeHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-buttons-share`).addEventListener("click",this.onEmbededShareHandler),this.embededTemplateNodes.container.querySelector(`.${t}-downlowd`).addEventListener("click",this.onEmbededDownloadHandler),this.embededTemplateNodes.container.querySelector(`.${t}-enter`).addEventListener("click",this.onEmbededEnterHandler)}removeEventsListener(){var t;this.templateNodes&&(null==(t=this.templateNodes.functions)||t.removeEventListener("click",this.functionsHandler),this.templateNodes.container.removeEventListener("click",this.containerClickHandler))}removeEmbededEventListener(){const t=this.ppx;this.embededTemplateNodes&&(this.embededTemplateNodes.container.querySelector(`.${t}-top-left-title-text`).removeEventListener("click",this.onEmbededTitleHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-left-title-text`).removeEventListener("mouseover",this.showEmbedFullTitle),this.embededTemplateNodes.container.querySelector(`.${t}-top-left-logo`).removeEventListener("click",this.onEmbededLogoHandler),this.embededTemplateNodes.container.querySelector(`.${t}-follow`).removeEventListener("click",this.onEmbededFollowHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-buttons-replay`).removeEventListener("click",this.onEmbededReplayHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-buttons-like`).removeEventListener("click",this.onEmbededLikeHandler),this.embededTemplateNodes.container.querySelector(`.${t}-top-buttons-share`).removeEventListener("click",this.onEmbededShareHandler),this.embededTemplateNodes.container.querySelector(`.${t}-downlowd`).removeEventListener("click",this.onEmbededDownloadHandler),this.embededTemplateNodes.container.querySelector(`.${t}-enter`).removeEventListener("click",this.onEmbededEnterHandler),this.embededTemplateNodes.miniReplay.addEventListener("click",this.onEmbededReplayHandler),this.configStore.embeddedEnv>n.vt.Embedded&&this.embededTemplateNodes.container.querySelector(`.${this.ppx}-ending-enter-button`).addEventListener("click",this.onEmbededEnterHandler))}showEmbedFullTitle(){this.tooltipStore.remove("title:full"),this.tooltipStore.create({tip:!0,gap:10,offsetX:.3,name:"title:full",title:this.storyStore.state.title,target:this.embededTemplateNodes.container.querySelector(`.${this.ppx}-top-left-title-text`),position:n.DU.BottomCenter})}onEmbededTitleHandler(){(0,yt.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid),this.portStore.pause()}onEmbededFollowHandler(){let t;switch(this.configStore.embeddedEnv){case n.vt.Embedded:t=yt.ZZ.Embed;break;case n.vt.White:case n.vt.Other:t=yt.ZZ.Embed_White_Other}window.open(`${this.rootPlayer.window.location.protocol}//space.bilibili.com/${this.upStore.state.mid}`)}onEmbededLogoHandler(){(0,yt.oh)("main",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid),this.portStore.pause()}onEmbededReplayHandler(){this.restartHandler()}onEmbededLikeHandler(){(0,yt.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid),this.portStore.pause()}onEmbededShareHandler(t){new et.E(this.rootPlayer).r({oid:this.configStore.aid}).then((e=>{e[this.configStore.aid]?this.tooltipStore.create({title:"该内容不能转发分享",target:t.target,name:"ending:share",position:n.DU.TopCenter}):this.shareStore.open()})).catch((e=>{this.tooltipStore.create({title:(null==e?void 0:e.message)||"request share forbid fail",target:t.target,name:"ending:share"}),this.log.e("[EndingPanel]","ShareBtn",e&&e.message||"request share forbid fail")})),this.track.e("end_share")}onEmbededDownloadHandler(){(0,yt.oh)("download","",this.configStore.embeddedEnv,this.configStore.bvid),this.portStore.pause()}onEmbededEnterHandler(){(0,yt.oh)("play",this.shareStore.embededUrl,this.configStore.embeddedEnv,this.configStore.bvid),this.portStore.pause()}functionsHandler(t){var e;t.stopPropagation();const i=null==(e=t.target)?void 0:e.dataset.action
;switch("electric"===i&&[n.mU.ElectricPlus,n.mU.HighElectric].includes(this.storyStore.state.electricStatus)&&(this.trackExtra.p("charge-button-video-end.click",n.p0.Click,{up_id:this.upStore.state.mid,up_name:this.upStore.state.name}),this.track.e("charge_button_video_end_click")),i){case"follow":case"electric":case"like":case"coin":case"collect":if(!this.userStore.isLogin)return void this.userStore.requestQuickLogin()}switch(i){case"restart":this.restartHandler();break;case"share":new et.E(this.rootPlayer).r({oid:this.configStore.aid}).then((e=>{e[this.configStore.aid]?this.tooltipStore.create({title:"该内容不能转发分享",target:t.target,name:"ending:share",position:n.DU.TopCenter}):this.shareStore.open()})).catch((e=>{this.tooltipStore.create({title:(null==e?void 0:e.message)||"request share forbid fail",target:t.target,name:"ending:share"}),this.log.e("[EndingPanel]","ShareBtn",e&&e.message||"request share forbid fail")})),this.track.e("end_share");break;case"upinfo":this.track.e("end_up");break;case"follow":this.followHandler();break;case"electric":this.electricHandler();break;case"like":this.likeHandler();break;case"coin":this.coinHandler();break;case"collect":this.collectHandler()}}containerClickHandler(){this.premiereStore.isEnd||(this.track.e("end_panel_click"),this.portStore.isPaused()&&this.portStore.play({initiator:n.hH.ManualAction}).catch(ht.Z))}scrollHandler(){const t=mt()(window).scrollTop(),e=mt()(this.rootPlayer.majorNode).offset(),i=mt()(this.rootPlayer.majorNode).height();e&&t>e.top+i/2?this.setBpFocusout(!0):this.setBpFocusout(!1)}restartHandler(){this.premiereStore.isEnd?window.location.reload():this.userStore.isInteraction&&this.interactStore.interactionConfig.isLastPart?(this.interactStore.restart(),this.track.e("end_interaction_replay")):(this.portStore.seekAutoplay(0,"EndingReplay"),this.track.e("end_replay"))}followHandler(){const{mid:t,follow:e}=this.upStore.state;t&&!e&&(this.track.e("end_btn_follow"),this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Follow,data:{fid:t,act:it.dd.Add_Attention,re_src:it.gC.Player_Ending_Follow,fail:t=>{this.tooltipStore.create({title:t||"添加关注失败",target:this.templateNodes.follow,name:"ending:follow"})}}}})))}electricHandler(){this.storyStore.state.electricStatus!==n.mU.Electric&&this.storyStore.state.electricStatus!==n.mU.ElectricPlus&&this.storyStore.state.electricStatus!==n.mU.HighElectric||(this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Electric,data:{from:"player_details_end_recommend",electricBusinessType:n.jy.Prompt}}})),this.track.e("end_btn_battery"))}likeHandler(){this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Like}})),this.track.e("end_like")}coinHandler(){this.uiStore.isFullView?this.statueStore.requestStatue(null).then((()=>{this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Coin,data:{isNeedPanel:!0}}}))})):this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Coin,data:{isNeedPanel:!0}}})),this.track.e("end_coin")}collectHandler(){this.uiStore.isFullView?this.statueStore.requestStatue(null).then((()=>{this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Collect,data:{isNeedPanel:!0,isCollect:!this.storyStore.state.collectStatus}}}))})):this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Collect,data:{isNeedPanel:!0,isCollect:!this.storyStore.state.collectStatus}}})),this.track.e("end_fav")}addPageReaction(){this.dp.follow=(0,p.U5)((()=>this.upStore.state.follow),(t=>{if(this.templateNodes.follow)if(t)this.templateNodes.follow.innerHTML="已关注",this.templateNodes.follow.classList.add(`${this.spx}-disabled`),this.templateNodes.electric.classList.remove(`${this.spx}-little`);else{const t=this.upStore.state.fans?(0,o.u)(this.upStore.state.fans):"";this.templateNodes.follow.innerHTML=`<span class="${this.cpx}-svg-icon">${x()}</span> 关注 ${t}`,this.templateNodes.follow.classList.remove(`${this.spx}-disabled`),this.templateNodes.electric.classList.add(`${this.spx}-little`)}}),{fireImmediately:!0}),this.dp.collect=(0,p.U5)((()=>this.storyStore.state.collectDisable),(t=>{this.templateNodes.collect&&(this.templateNodes.collect.innerHTML=t?"":`<span class="${this.cpx}-svg-icon">${Y()}</span>收藏`)}),{fireImmediately:!0}),this.dp.coin=(0,p.U5)((()=>this.storyStore.state.coinDisable),(t=>{this.templateNodes.coin&&(this.templateNodes.coin.innerHTML=t?"":`<span class="${this.cpx}-svg-icon">${W()}</span>投币`)}),{fireImmediately:!0}),this.dp.like=(0,p.U5)((()=>this.storyStore.state.likeDisable),(t=>{var e;this.templateNodes.like&&(t?this.templateNodes.like.innerHTML="":this.storyStore.state.likeIcon?(e=this.storyStore.state.likeIcon,e=e.replace(/^https?:\/\//,"//"),h.Z.get(e,{responseType:"text"}).then((({data:t})=>t.replace(/fill=".*"/g,'fill="currentColor"')))).then((t=>{this.templateNodes.like.innerHTML=`<span class="${this.cpx}-svg-icon">${t}</span>好评`})).catch((()=>{this.templateNodes.like.innerHTML=`<span class="${this.cpx}-svg-icon">${j()}</span>好评`})):this.templateNodes.like.innerHTML=`<span class="${this.cpx}-svg-icon">${j()}</span>好评`)}),{fireImmediately:!0}),this.dp.likeStatus=(0,p.U5)((()=>this.storyStore.state.likeStatus),(t=>{this.templateNodes.like&&(t?this.templateNodes.like.classList.add(this.activeToken):this.templateNodes.like.classList.remove(this.activeToken))}),{fireImmediately:!0}),this.dp.coinStatus=(0,p.U5)((()=>this.storyStore.state.coinStatus),(t=>{this.templateNodes.coin&&(t?this.templateNodes.coin.classList.add(this.activeToken):this.templateNodes.coin.classList.remove(this.activeToken))}),{fireImmediately:!0}),this.dp.collectStatus=(0,p.U5)((()=>this.storyStore.state.collectStatus),(t=>{this.templateNodes.collect&&(t?this.templateNodes.collect.classList.add(this.activeToken):this.templateNodes.collect.classList.remove(this.activeToken))}),{fireImmediately:!0}),this.dp.electric=(0,p.U5)((()=>this.storyStore.state.electricStatus),(t=>{if(this.templateNodes.functions)if(t===n.mU.Electric||t===n.mU.ElectricPlus||t===n.mU.HighElectric)if(t===n.mU.ElectricPlus||t===n.mU.HighElectric){this.templateNodes.functions.classList.add(`${this.ppx}-ending-functions-customize`);const{electricBtnIcon:t,electricBtnText:e}=this.storyStore.state;this.templateNodes.electric.innerHTML=`\n                        <div \n                            class="${this.ppx}-ending-functions-electric-inner" data-action="electric">\n                            ${t?`<img class="${this.ppx}-ending-functions-electric-icon" src="${t}">`:""}\n                            <span class="${this.ppx}-ending-functions-electric-text">${e}</span>\n                        </div>`,this.trackExtra.p("charge-button-video-end.show",n.p0.Appear,{up_id:this.upStore.state.mid,up_name:this.upStore.state.name}),this.track.e("charge_button_video_end_show")}else this.templateNodes.electric.innerHTML=`<div class="${this.ppx}-ending-functions-electric-inner" data-action="electric"><span class="more-word">为TA</span>充电</div>`;else this.templateNodes.electric.innerHTML=""}),{fireImmediately:!0}),this.dp.related=(0,p.U5)((()=>this.storyStore.state.related),(t=>{Array.isArray(t)&&t.length?this.renderRelatedList(t):this.templateNodes.related.innerHTML=""}),{fireImmediately:!0})}renderRelatedList(t){t=t.slice(0,8);for(let e=0;e<t.length;e++){const i=t[e],o=(0,A.t)(`<a class="${this.ppx}-ending-related-item">\n                    <div class="${this.ppx}-ending-related-item-img" style="background-image: url(${i.pic?(0,r.Xv)(i.pic.replace("http://","//"),{w:168,h:95,style:"web-video-rcmd-cover",dpr:2
}):""})"></div>\n                    <div class="${this.ppx}-ending-related-item-cover">\n                        <div class="${this.ppx}-ending-related-item-title">${d.t`${i.title}`}</div>\n                        <div class="${this.ppx}-ending-related-item-watchlater"><i></i></div>\n                    </div>\n                </a>`),a=o.querySelector(`.${this.ppx}-ending-related-item-watchlater`),s=o.querySelector(`.${this.ppx}-ending-related-item-cover`);this.watchlaterHandler(a,{aid:i.aid,bvid:i.bvid,index:e}),0===e&&(this.countdownRelated=t[0],this.appendRelatedAutoplay(s)),o.addEventListener("click",(t=>{if(this.trackStore.polarReport("end-page-recommend.video",n.Rr.click,St({},i.reportParams)),!a.contains(t.target)){if(this.premiereStore.isEnd)this.rootPlayer.window.location.href=`//www.bilibili.com/video/${i.bvid||`av${i.aid}`}`;else{if(i.redirect_url)return void this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Redirect,data:{aid:i.aid,cid:i.cid,bvid:i.bvid,redirect_url:i.redirect_url}}}));this.episodeStore.reload({aid:i.aid,cid:i.cid,bvid:i.bvid,p:1,stats:{spmId:this.configStore.spmId,spmIdFrom:bt.Q.stringify({type:this.storyStore.state.type,action:bt.A.Player_End_Recommend})}},null,{initiator:bt.A.Player_End_Recommend})}this.track.e("recommend_video",e+1)}})),this.trackStore.polarReport("end-page-recommend.video",n.Rr.show,St({},i.reportParams)),this.templateNodes.related.appendChild(o)}}watchlaterHandler(t,e){t.addEventListener("click",(i=>{if(i.stopPropagation(),this.userStore.isLogin)if(t.classList.contains(this.activeToken)){const i={jsonp:"jsonp",bvids:e.bvid,aid:e.aid};this.track.e("recommend_panel_add_watchlater",{action:"del"}),new nt.G(this.rootPlayer).r(i).then((i=>{var n,r;let o=(null==(n=i.body)?void 0:n.message)||"移除失败，请重试";0===(null==(r=null==i?void 0:i.body)?void 0:r.code)&&(t.classList.remove(this.activeToken),o="已从稍后再看列表中移除"),this.updateTooltip({target:t,title:o,name:`watchlater${e.index}`})})).catch((()=>{this.updateTooltip({target:t,title:"移除失败，请重试",name:`watchlater${e.index}`})}))}else{if(this.configStore.isChannel(n.u5.Manager))return;const i={jsonp:"jsonp",bvid:e.bvid,aid:e.aid};this.track.e("recommend_panel_add_watchlater",{action:"add"}),new rt.c(this.rootPlayer).r(i).then((i=>{var n,r;let o=(null==(n=i.body)?void 0:n.message)||"添加失败，请重试";0===(null==(r=null==i?void 0:i.body)?void 0:r.code)&&(t.classList.add(this.activeToken),o="已加稍后再看"),this.updateTooltip({target:t,title:o,name:`watchlater${e.index}`})})).catch((()=>{this.updateTooltip({target:t,title:"添加失败，请重试",name:`watchlater${e.index}`})}))}else this.userStore.requestQuickLogin()})),t.addEventListener("mouseenter",(i=>{i.stopPropagation(),this.updateTooltip({target:t,title:t.classList.contains(this.activeToken)?"移除":"稍后再看",name:`watchlater${e.index}`,duration:0})})),t.addEventListener("mouseleave",(t=>{t.stopPropagation(),this.tooltipStore.remove(`watchlater${e.index}`),delete this.removeTooltips[`watchlater${e.index}`]}))}updateTooltip(t){var e;this.tooltipStore.remove(t.name),this.tooltipStore.create({target:t.target,title:t.title,name:t.name,position:n.DU.TopCenter,duration:null!=(e=t.duration)?e:2500}),this.removeTooltips[t.name]=()=>{this.tooltipStore.remove(t.name)}}appendRelatedAutoplay(t){this.templateNodes.cancel=(0,A.t)(`<div class="${this.ppx}-ending-related-item-cancel">取消连播</div>`),this.templateNodes.cancel.addEventListener("click",(t=>{t.stopPropagation(),this.countdownHandler(!0),this.track.e("auto_play_cancel_B")})),this.templateNodes.countdown=(0,A.t)(`<div class="${this.ppx}-ending-related-item-countdown"></div>`),this.countdownAnimation=At().loadAnimation({container:this.templateNodes.countdown,renderer:"svg",loop:!1,autoplay:!1,animationData:gt}),(0,a.N)(this.templateNodes.cancel,this.templateNodes.countdown),t.appendChild(this.templateNodes.cancel),t.appendChild(this.templateNodes.countdown)}countdownHandler(t){this.countdownRelated&&this.templateNodes.cancel&&(t?(this.countdownAnimation.stop(),window.clearTimeout(this.countdownTimer),(0,a.N)(this.templateNodes.cancel,this.templateNodes.countdown),this.templateNodes.cancel.parentElement.style.backgroundColor=""):((0,l.o)(this.templateNodes.cancel,this.templateNodes.countdown),this.templateNodes.cancel.parentElement.style.backgroundColor="rgba(0, 0, 0, 0.62)",this.countdownAnimation.play(),this.countdownTimer=window.setTimeout((()=>{this.trackStore.polarReport("recommend.autoplay",n.Rr.click,((t,e)=>Et(t,Ct(e)))(St({},this.countdownRelated.reportParams),{current_avid:this.configStore.aid})),this.episodeStore.reload({aid:this.countdownRelated.aid,cid:this.countdownRelated.cid,bvid:this.countdownRelated.bvid,p:1,stats:{spmId:this.configStore.spmId,spmIdFrom:bt.Q.stringify({type:this.storyStore.state.type,action:bt.A.Handoff_Auto},!0)}},null,{initiator:bt.A.Player_End_Recommend_AutoPlay})}),5e3)))}interactionMark(){if(!this.templateNodes.functions)return;if(!this.interactStore.isComplete())return void(this.templateNodes.grade.innerHTML="");this.templateNodes.grade.innerHTML=`<span class="${this.cpx}-svg-icon">${J()}</span>评分`,this.templateNodes.mark=(0,A.t)(`\n            <div class="${this.ppx}-ending-interaction-mark" style="display: none";>\n                <div class="${this.ppx}-ending-interaction-grade">\n                    <div class="${this.ppx}-ending-interaction-grade-item"><span class="${this.cpx}-svg-icon">${J()}</span></div>\n                    <div class="${this.ppx}-ending-interaction-grade-item"><span class="${this.cpx}-svg-icon">${J()}</span></div>\n                    <div class="${this.ppx}-ending-interaction-grade-item"><span class="${this.cpx}-svg-icon">${J()}</span></div>\n                    <div class="${this.ppx}-ending-interaction-grade-item"><span class="${this.cpx}-svg-icon">${J()}</span></div>\n                    <div class="${this.ppx}-ending-interaction-grade-item"><span class="${this.cpx}-svg-icon">${J()}</span></div>\n                </div>\n                <div class="${this.ppx}-ending-interaction-tip"></div>\n            </div>\n        `);const t=this.templateNodes.mark.querySelectorAll(`.${this.ppx}-ending-interaction-grade-item`),e=this.templateNodes.mark.querySelector(`.${this.ppx}-ending-interaction-tip`),i=e=>{[...t].slice(0,e).forEach((t=>{t.innerHTML=`<span class="${this.cpx}-svg-icon">${B()}</span>`}));[...t].slice(e).forEach((t=>{t.innerHTML=`<span class="${this.cpx}-svg-icon">${J()}</span>`}))};this.templateNodes.mark.addEventListener("mouseleave",(t=>{t.stopPropagation(),i(this.grade)}));for(let n=0;n<t.length;n++)t[n].addEventListener("mouseenter",(t=>{i(n+1)})),t[n].addEventListener("click",(i=>{if(i.stopPropagation(),!this.userStore.isLogin)return void this.userStore.requestQuickLogin();const r={mark:n+1};this.configStore.bvid?r.bvid=this.configStore.bvid:r.aid=this.configStore.aid,this.track.e("end_interaction_mark",n+1),new ot(this.rootPlayer).r(r).then((i=>{var r;if(0===(null==(r=i.body)?void 0:r.code)){this.grade=n+1,e.innerHTML="感谢评分，你可以随时修改";const i=[...t].slice(0,n+1),r=this;i.forEach((t=>{t.classList.add("animate"),t.addEventListener("animationend",(function e(){r.setMarkStatus(!1),t.classList.remove("animate"),t.removeEventListener("animationend",e)}))}))}}))}));this.templateNodes.pagecallback.insertAdjacentElement("beforebegin",this.templateNodes.mark),this.userStore.isLogin?(this.grade=this.userStore.info.interaction.mark,e.innerHTML=this.grade?"感谢评分，你可以随时修改":"请为这个互动视频打分",this.templateNodes.grade.innerHTML=this.grade?this.starMapping[this.grade-1]:`<span class="${this.cpx}-svg-icon">${J()}</span>评分`,0===this.grade?this.setMarkStatus(!0):this.setMarkStatus(!1)):(this.setMarkStatus(!0),e.innerHTML="请为这个互动视频打分"),this.templateNodes.grade.addEventListener("click",(t=>{t.stopPropagation(),this.setMarkStatus(!0)})),this.dp.markOpen=(0,p.U5)((()=>this.markOpen),(t=>{this.templateNodes.grade.innerHTML=this.grade?this.starMapping[this.grade-1]:`<span class="${this.cpx}-svg-icon">${J()}</span>评分`,i(this.grade),t?((0,a.N)(this.templateNodes.pagecallback),(0,l.o)(this.templateNodes.mark),(0,ut.jt)({from:{opacity:0},to:{opacity:1},duration:300,ease:(0,ut._s)(.02,.01,.47,1),
onUpdate:t=>{(0,pt.ZP)(this.templateNodes.mark).set(t)}})):((0,a.N)(this.templateNodes.mark),(0,l.o)(this.templateNodes.pagecallback),(0,ut.jt)({from:{opacity:0},to:{opacity:1},duration:300,ease:(0,ut._s)(.02,.01,.47,1),onUpdate:t=>{(0,pt.ZP)(this.templateNodes.pagecallback).set(t)}}))}),{fireImmediately:!0})}interactionSwiper(){var t;if(!this.interactStore.isComplete())return;const e=this.interactStore.timeline();e?this.swiper&&(0,dt.Z)(e,this.swiper.options.list)||(e.forEach((t=>{t.cover=(0,s.Q)(t.cover,300)})),this.templateNodes.related.style.height="150px",this.swiper=new at.tq(this.templateNodes.swiper,{list:e,value:this.interactStore.state.currentEdgeId,clickFn:t=>{this.track.e("end_interaction_swiper",t+1),this.interactStore.jump(t)}}),this.swiper.resize(this.scale)):(this.templateNodes.swiper.innerHTML="",null==(t=this.swiper)||t.destroy(),this.templateNodes.related.style.height=""),this.templateNodes.hiddenVars.innerHTML="";const i=this.interactStore.showHiddenVars;if(!i||!i.length)return;const n=100/i.length+"%";let r="";i.forEach((t=>{r+=`\n                <li class="${this.ppx}-ending-interaction-hiddenvars-item" style="max-width: ${n};">\n                    <span class="${this.ppx}-ending-interaction-hiddenvars-item-name">${(0,u.A)(t.name)}</span>\n                    <span class="${this.ppx}-ending-interaction-hiddenvars-item-value">${t.value}</span>\n                </li>\n            `})),r&&(this.templateNodes.hiddenVars.innerHTML=`<ul class="${this.ppx}-ending-interaction-hiddenvars-content"><span class="${this.cpx}-svg-icon">${X()}</span> ${r}</ul>`)}resize(){var t;let e="normal-screen";const i=this.uiStore.state.videoAreaWidth,n=this.uiStore.state.videoAreaHeight;this.premiereStore.isEnd?i<1160||n<800?this.templateNodes.content.classList.remove(this.plusToken):this.templateNodes.content.classList.add(this.plusToken):(i>=1160?this.templateNodes.content.classList.add(this.plusToken):this.templateNodes.content.classList.remove(this.plusToken),i<638?e="little-screen":i<854&&(e="second-screen")),this.templateNodes.content.setAttribute("screen-mode",e);const r=this.templateNodes.content.clientWidth,o=this.templateNodes.content.clientHeight;let a=1;o>.98*n&&(a=.98*n/o),r>.94*i&&(a=a>.85*i/r?.85*i/r:a),this.scale=a,this.templateNodes.content.style.transform=`scale(${a})`,null==(t=this.swiper)||t.resize(a)}onDispose(){var t,e;if(super.onDispose(),this.configStore.embeddedEnv===n.vt.Nomal){for(const t in this.removeTooltips)this.removeTooltips[t]();this.removeTooltips={},this.templateNodes&&(this.grade=0,this.swiper=null,this.inited=!1,this.setMarkStatus(!1),this.setBpFocusout(!1),this.removeEventsListener(),(null==(t=this.templateNodes.container)?void 0:t.parentElement)&&this.templateNodes.container.parentElement.removeChild(this.templateNodes.container))}else this.removeEmbededEventListener(),(null==(e=this.embededTemplateNodes.container)?void 0:e.parentElement)&&this.embededTemplateNodes.container.parentElement.removeChild(this.embededTemplateNodes.container)}}kt([p.LO],Dt.prototype,"markOpen",2),kt([p.LO],Dt.prototype,"bpFocusout",2),kt([p.Fl],Dt.prototype,"cancelAutoplay",1),kt([p.aD],Dt.prototype,"setMarkStatus",1),kt([p.aD],Dt.prototype,"setBpFocusout",1),kt([st.ZP],Dt.prototype,"showEmbedFullTitle",1),kt([st.ZP],Dt.prototype,"onEmbededTitleHandler",1),kt([st.ZP],Dt.prototype,"onEmbededFollowHandler",1),kt([st.ZP],Dt.prototype,"onEmbededLogoHandler",1),kt([st.ZP],Dt.prototype,"onEmbededReplayHandler",1),kt([st.ZP],Dt.prototype,"onEmbededLikeHandler",1),kt([st.ZP],Dt.prototype,"onEmbededShareHandler",1),kt([st.ZP],Dt.prototype,"onEmbededDownloadHandler",1),kt([st.ZP],Dt.prototype,"onEmbededEnterHandler",1),kt([st.ZP],Dt.prototype,"functionsHandler",1),kt([st.ZP],Dt.prototype,"containerClickHandler",1),kt([st.ZP],Dt.prototype,"scrollHandler",1)},49273:function(t,e,i){"use strict";i.d(e,{I:function(){return c}});var n=i(5489),r=i(22451),o=i(23173),a=i(39524),s=i(40636),l=Object.defineProperty,A=Object.getOwnPropertyDescriptor;class c extends n.vq{constructor(t){super(t),this.tag="Episode",this.autoToastId=null,(0,r.rC)(this)}get autoToastDisplay(){return this.isAutoToastDisplay()}install(){super.install(),this.dc.eplist=(0,r.U5)((()=>this.rootStore.isLoaded&&this.storyStore.eplist),(t=>{Array.isArray(t)&&this.setEpisodeInfo()}),{fireImmediately:!0}),this.dc.ugcMultiEpisode=(0,r.U5)((()=>this.rootStore.isLoaded&&this.storyStore.ugcMultiEpisode),(t=>{Array.isArray(t)&&this.setEpisodeInfo()}),{fireImmediately:!0}),this.dc.autoToastDisplay=(0,r.U5)((()=>this.autoToastDisplay),(t=>{t||this.removeAutoHandoff()})),this.rootPlayer.on(n.tw.Player_Ended,(()=>this.onHandoffAction()),1),this.rootPlayer.on(n.tw.Player_Handoff_Signal,(t=>{return e=this,i=null,r=function*(){const e=this.getOffsetEpisode(t.detail.offset,t.detail.absolute);if(e){if(null==e?void 0:e.redirect_url)return void this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Redirect,data:e}}));if(!this.configStore.isPcApp)return this.episodeStore.reload(Object.assign({},t.detail.config,e))}else this.log.w("Target episode could not be found")},new Promise(((t,n)=>{var o=t=>{try{s(r.next(t))}catch(t){n(t)}},a=t=>{try{s(r.throw(t))}catch(t){n(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,i)).next())}));var e,i,r})),this.rootPlayer.on(n.tw.Player_TimeUpdate,(()=>{if(this.isAutoToastDisplay()){const t=this.portStore.getCurrentTime(),e=this.portStore.getDuration()-t;e<5&&e-5>-.5?!this.autoToastId&&this.createAutoHandoff():e>5&&this.removeAutoHandoff()}}))}isAutoToastDisplay(){const{handoff:t,loop:e}=this.settingStore.state,i=this.interactStore.isComplete();return!(null!=i&&!i)&&(!e&&t===n.ty.Auto)}setEpisodeInfo(){const t=this.getOffsetEpisode(0),e=this.getOffsetEpisode(-1),i=this.getOffsetEpisode(1);if(t){if(!this.userStore.isInteraction){let e="";e=t.hasPrev||t.hasNext?t.title:this.storyStore.state.title,this.ctrlStore.setState({majorTitle:e})}this.episodeStore.setState({hasPrev:!!e,hasNext:!!i}),this.log.i(`hasPrev:${t.hasPrev},hasNext:${t.hasNext}`)}}onHandoffAction(){if(this.mpdStore.state.isPreviewStream)return this.onAbortHandler();if(this.configStore.isChannel(n.u5.Playlist))return;if(!this.userStore.isInteraction||this.interactStore.interactionConfig.isLastPart)if(this.episodeStore.state.hasNext)switch(this.settingStore.state.handoff){case n.ty.Auto:if(this.configStore.outSideReload&&!this.mpdStore.state.isPreviewStream&&!this.userStore.isInteraction){this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Prev_Next_Pgc_Direct,data:{prevOrNext:n.YY.next}}}));break}if(this.episodeStore.state.hasNext){this.track.e("reload_from",{source:s.X.Auto});const t=this.getOffsetEpisode(1);if(t.redirect_url)return void this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Redirect,data:t}}))}case n.ty.Delay:if(this.configStore.outSideReload&&this.userStore.isInteraction)break;this.startHandoff();break;case n.ty.Abort:this.onAbortHandler(!0);break;default:this.log.e("[handoff]","handoff value is not valid")}else this.onAbortHandler(this.settingStore.state.handoff===n.ty.Abort),this.configStore.isChannel(n.u5.PC_APP)&&this.settingStore.state.handoff===n.ty.Auto&&this.episodeStore.next(null,null,!0)}onAbortHandler(t){!this.configStore.outSideReload||t||this.mpdStore.state.isPreviewStream||this.userStore.isInteraction?this.userStore.isCharingTrialWatch||this.endingStore.open():this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Prev_Next_Pgc_Direct,data:{prevOrNext:n.YY.next}}})),this.removeAutoHandoff()}getOffsetEpisode(t,e){const i=this.storyStore.eplist,n=this.storyStore.state.ugcMultiFlattenEpisodeList;return Array.isArray(n)&&n.length>1?this.findOffsetEpisode(n,t,e):this.findOffsetEpisode(i,t,e)}findOffsetEpisode(t,e=0,i=!1){const n=this.configStore.cid,r=this.configStore.episodeId,o={index:-1,found:!1};if(Array.isArray(t)){if(i){const i=t[e-1];return i||null}for(let e=0;e<t.length;e++){const i=t[e];if(r){if(r===i.episodeId){
o.index=e,o.found=!0;break}}else if(n&&n===i.cid){o.index=e,o.found=!0;break}}if(o.found){const i=t[o.index+e];return i||null}return this.log.w("No match to current episode"),null}return this.log.w("Episode list does not exist or is not of array type"),null}startHandoff(){queueMicrotask((()=>{this.episodeStore.next({stats:{spmId:this.configStore.spmId,spmIdFrom:o.Q.stringify({type:this.storyStore.state.type,action:o.A.Handoff_Auto})}}).catch((t=>{this.log.w("[handoff]",t&&t.message)}))}))}createAutoHandoff(){this.removeAutoHandoff();const t=this.getOffsetEpisode(1);if(t&&t.title&&!this.configStore.outSideReload&&this.createToast(t),this.configStore.fromLocalCache&&!t){const{handoff:t,loop:e}=this.settingStore.state;let i=t===n.ty.Auto;e&&(i=!0),(0,a.$)(this.rootPlayer,{type:"nextP",cid:this.configStore.cid,auto:i}).then((t=>{this.createToast(null==t?void 0:t.data)}))}}createToast(t){t&&t.title&&(this.autoToastId=this.toastStore.create({text:`即将播放${t.title}`,priority:50,manualMode:!0,duration:1e4}))}removeAutoHandoff(){this.autoToastId&&(this.toastStore.remove(this.autoToastId),this.autoToastId=null)}onDispose(){super.onDispose(),this.removeAutoHandoff()}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?A(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&l(e,i,o)})([r.Fl],c.prototype,"autoToastDisplay",1)},2528:function(t,e,i){"use strict";i.d(e,{U:function(){return et}});var n=i(5489),r=i(22451),o=i(60736),a=i(23529),s=i(46330);function l(t){const e=document.querySelectorAll("link[preloadImage]");for(let i=0;i<e.length;i++)if(e[i].getAttribute("href")===t)return;const i=document.createElement("link");i.rel="prefetch",i.href=t,i.setAttribute("preloadImage","true"),document.head.appendChild(i)}var A=i(99550),c=i(53731),h=i(18417),d=i(41330);function u(t){"#"===t[0]&&(t=t.slice(1)),3===t.length&&(t=[...t].map((t=>t+t)).join(""));const e=8===t.length,i=parseInt(t,16),n=`${i>>>(e?24:16)},${(i&(e?16711680:65280))>>>(e?16:8)},${(i&(e?65280:255))>>>(e?8:0)}`;if(e){return`rgba(${n},${255&i})`}return`rgb(${n})`}function p(t,e){return new Promise(((i,n)=>{const r=document.createElement("img");r.onload=()=>i(r),r.onerror=n,r.src=t.toDataURL(e||"image/png")}))}var g=i(80563),f=i.n(g),m=i(97203),y=i.n(m),b=i(88390),v=i.n(b),E=i(30116),I=i.n(E),C=i(69575),B=i.n(C),w=i(42643),x=i.n(w),Q=i(22996),S=i.n(Q),k=i(4826),D=i.n(k),_=i(3225),R=i.n(_),M=i(54),T=i.n(M),F=i(12325),L=i.n(F),N=i(65945),P=i(61068),U=i(44127),O=i(89262),G=Object.defineProperty,H=Object.defineProperties,V=Object.getOwnPropertyDescriptor,Y=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,j=(t,e,i)=>e in t?G(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,q=(t,e)=>{for(var i in e||(e={}))W.call(e,i)&&j(t,i,e[i]);if(z)for(var i of z(e))Z.call(e,i)&&j(t,i,e[i]);return t},J=(t,e)=>H(t,Y(e)),K=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?V(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&G(e,i,o),o},X=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const $=667,tt={from:{scale:1},to:{scale:.93},duration:300,ease:N.mZ};class et extends n.vq{constructor(t){super(t),this.templateNodes=this.interactionTemplate(),this.countdownTimer=0,this.specialChoiceID=null,this.questionShow=!1,this.specialStatus=0,(0,r.rC)(this)}get showStoryList(){return this.interactStore.state.storyList&&!this.interactStore.state.noBacktracking?this.interactStore.state.storyList:null}get defalutChoice(){if(!this.cQuestion)return null;const t=this.cQuestion.choices.find((t=>1===t.isDefault));return t||null}showQuestion(t){this.questionShow=t}setSpecialStatus(t){this.specialStatus=t}install(){this.dc.needReload=(0,r.U5)((()=>this.interactStore.state.needReload),(t=>{if(t){const{msg:t,graph_version:e}=this.userStore.info.interaction,i=this.toastStore.create({text:t,timerClock:new o.eF(((t,e)=>{e>=t&&this.toastStore.remove(i)}),3e3,500),onRemoved:()=>{this.interactStore.setState({graphVersion:e})},onHoverChanged:t=>{t?this.toastStore.suspendClock(i):this.toastStore.resumeClock(i)}})}})),this.dc.fetchStatus=(0,r.U5)((()=>this.interactStore.state.fetchStatus),(t=>{null!==t&&t&&(this.interactStore.state.noBacktracking||this.historyWatchToast(),this.loginToast())}),{fireImmediately:!0}),this.dc.mangerInteractionSeek=(0,r.U5)((()=>{var t,e;return null==(e=null==(t=this.interactStore.questions)?void 0:t.inEnd)?void 0:e.startTime}),(t=>{t&&-1===this.configStore.t&&this.uiStore.kind===n.HR.Manager&&this.portStore.seek(t/1e3)}),{fireImmediately:!0}),this.dc.interactionDialog=(0,r.gx)((()=>this.interactStore.renderInteractionTPL&&this.rootStore.isLoaded),(()=>{this.localStore.get().interaction.showedDialog||(this.portStore.pause(),this.uiStore.isFullView&&this.portStore.reqStatue(null),this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Interaction_Guide}})),this.localStore.set({interaction:{showedDialog:!0}}))})),this.dc.renderInteractionTPL=(0,r.EH)((()=>{this.interactStore.renderInteractionTPL&&(this.templateNodes.container.parentElement||this.nodes.videoArea.appendChild(this.templateNodes.container))})),this.dc.renderStoryList=(0,r.U5)((()=>this.showStoryList),(t=>{t?this.renderStoryList():((0,a.N)(this.templateNodes.storyWrap),this.templateNodes.storyWrap.innerHTML="")}),{fireImmediately:!0}),this.dc.showStoryList=(0,r.U5)((()=>this.questionShow),(t=>{t?(0,a.N)(this.templateNodes.storyWrap):(0,s.o)(this.templateNodes.storyWrap)}),{fireImmediately:!0}),this.dc.currentTime=(0,r.U5)((()=>this.mediaStore.state.currentTime),(t=>{t?this.interactStore.state.special?this.specialInPlay(1e3*t):this.questionsInPlay(1e3*t):(this.showQuestion(!1),this.setSpecialStatus(0))})),this.dc.ended=(0,r.U5)((()=>this.mediaStore.state.ended),(t=>{this.interactStore.state.special?this.interactStore.callNextEdge({cid:+this.csQuestion.choices[this.specialChoiceID].cid,edgeId:+this.csQuestion.choices[this.specialChoiceID].id,type:n.iG.Special}):this.questionInEnd(t)})),this.dc.questionShow=(0,r.U5)((()=>this.questionShow),(t=>{t?(this.renderQuestion(this.cQuestion),(0,s.o)(this.templateNodes.questionWrap,this.templateNodes.replayWrap),this.interactStore.setState({ctrl:n.AQ.Hide}),T()(this.templateNodes.container.querySelector(`.${this.ppx}-interaction-rookie-guide`)).remove(),this.cQuestion.countdown?this.renderCountDown(this.cQuestion):(0,a.N)(this.templateNodes.countdownWrap)):((0,a.N)(this.templateNodes.questionWrap,this.templateNodes.replayWrap),this.templateNodes.questionStage.hide(),this.interactStore.setState({ctrl:n.AQ.Auto}))}),{fireImmediately:!0}),this.dc.rookieGuide=(0,r.gx)((()=>!(!this.interactStore.state.rookieGuide||this.interactStore.state.noTutorial)),(()=>{this.localStore.get().interaction.rookieGuide&&(this.renderRookieGuide(),this.localStore.set({interaction:{rookieGuide:!1}}))})),this.dc.renderHiddenVars=(0,r.U5)((()=>this.interactStore.showHiddenVars),(t=>{if(t){this.renderHiddenVars(),this.templateNodes.storyWrap.style.bottom="100px";const t=this.templateNodes.container.querySelector(`.${this.ppx}-interaction-rookie-guide`);t&&(t.style.bottom="145px")}else(0,a.N)(this.templateNodes.hiddenVarWrap),this.templateNodes.hiddenVarWrap.innerHTML="",this.templateNodes.storyWrap.style.bottom=""}),{fireImmediately:!0}),this.dc.showHiddenVars=(0,r.U5)((()=>this.questionShow),(t=>{t?(0,a.N)(this.templateNodes.hiddenVarWrap):(0,s.o)(this.templateNodes.hiddenVarWrap)}),{fireImmediately:!0}),this.dc.majorHidden=(0,r.U5)((()=>this.ctrlStore.ctrlHidden),(t=>{t?(0,a.N)(this.templateNodes.storyWrap,this.templateNodes.hiddenVarWrap):(0,s.o)(this.templateNodes.storyWrap,this.templateNodes.hiddenVarWrap)}));const t=(0,P.Z)((()=>{this.resize()}),40);this.dc.resize=(0,r.U5)((()=>({videoNodeWitdh:this.uiStore.state.videoNodeWidth,videoNodeHeight:this.uiStore.state.videoNodeHeight,blackside:this.uiStore.hasBlackGap})),(({videoNodeWitdh:e,videoNodeHeight:i})=>{e&&i&&t()}),{fireImmediately:!0}),this.dc.specialStatus=(0,
r.U5)((()=>this.specialStatus),(t=>{var e,i;switch(t){case 1:(0,s.o)(this.templateNodes.specialWrap,this.templateNodes.replayWrap),this.specialStartHandler(this.csQuestion),this.interactStore.setState({ctrl:n.AQ.Hide}),T()(this.templateNodes.container.querySelector(`.${this.ppx}-interaction-rookie-guide`)).remove();break;case 2:(0,a.N)(this.templateNodes.replayWrap),this.specialEndHandler(this.csQuestion.choices),this.interactStore.setState({ctrl:n.AQ.Hide}),T()(this.templateNodes.container.querySelector(`.${this.ppx}-interaction-rookie-guide`)).remove();break;default:this.templateNodes.specialWrap.innerHTML="",null==(e=this.specialIndicator)||e.destroy(),null==(i=this.specialFadeoutFrame)||i.destroy(),(0,a.N)(this.templateNodes.specialWrap,this.templateNodes.replayWrap),this.interactStore.setState({ctrl:n.AQ.Auto})}}),{fireImmediately:!0}),this.dc.preloadImage=(0,r.U5)((()=>this.interactStore.state.special),(t=>{if(t){const t=this.interactStore.state.questions;for(let e=0;e<t.length;e++){const i=t[e].choices;for(let t=0;t<i.length;t++)i[t].selected&&i[t].selected.source_pic&&(i[t].selected.source_pic=i[t].selected.source_pic.replace(/^(http:)?\/\//,"https://"),l(i[t].selected.source_pic)),i[t].submited&&i[t].submited.source_pic&&(i[t].submited.source_pic=i[t].submited.source_pic.replace(/^(http:)?\/\//,"https://"),l(i[t].submited.source_pic))}}}),{fireImmediately:!0})}historyWatchToast(){var t;const e=null==(t=this.userStore.info.interaction)?void 0:t.history_node;e&&e.cid!==this.configStore.cid&&null===this.interactStore.state.currentEdgeId&&this.toastStore.create({text:"您有最近观看进度",duration:8e3,manualMode:!0,confirmText:"点击跳转",onConfirmClicked:()=>{this.track.e("slidejumpiv"),this.interactStore.callNextEdge({cid:+e.cid,edgeId:+e.node_id,type:n.iG.HistoryWatch},{portal:1})}})}loginToast(){const t=this.userStore.info.interaction;if(t&&!t.need_reload&&t.msg){const e=this.interactStore.state.unLoginToastId;e&&this.toastStore.remove(e),this.toastStore.create({text:t.msg,duration:5e3,manualMode:!0,confirmText:"点击登录",onConfirmClicked:()=>{this.userStore.requestQuickLogin()}})}}questionInEnd(t){const e=this.interactStore.questions.inEnd;e&&(t?(this.cQuestion=e,e.autoSkip?(this.choiceHandler(this.defalutChoice),this.showQuestion(!1),this.interactStore.callNextEdge({cid:+this.defalutChoice.cid,edgeId:+this.defalutChoice.id,type:n.iG.Question},{portal:0})):this.showQuestion(!0)):this.showQuestion(!1))}questionsInPlay(t){const e=this.interactStore.questions.inPlay;if(e.length&&(this.cQuestion&&(this.cQuestion.end<t||this.cQuestion.start>t)&&(this.portStore.pause(),this.showQuestion(!1),this.cQuestion=null),!this.cQuestion))for(let i=0;i<e.length;i++){const n=e[i];if(n.countdown)return void(t>=n.start&&(this.cQuestion=n,this.showQuestion(!0)));if(t>n.start&&t<=n.end)return this.cQuestion=n,void this.showQuestion(!0)}}specialInPlay(t){const e=this.interactStore.state.questions;if(null==e?void 0:e.length)for(let i=0;i<e.length;i++){const n=e[i],r=n.fadeOutTime-n.startTime;if(this.csQuestion)(n.startTime>t||n.startTime+r<t)&&this.setSpecialStatus(2);else{if(n.startTime<t&&n.startTime+r>t)return this.setSpecialStatus(1),void(this.csQuestion=n);(n.startTime>t||n.startTime+r<t)&&(this.setSpecialStatus(0),this.csQuestion=null)}}}interactionTemplate(){const t=`\n            <div class="${this.ppx}-interaction-wrap">\n                <div class="${this.ppx}-interaction-story">\n                </div>\n                <div class="${this.ppx}-interaction-question">\n                </div>\n                <div class="${this.ppx}-interaction-special"></div>\n                <div class="${this.ppx}-interaction-hidden"></div>\n                <div class="${this.ppx}-interaction-countdown"></div>\n                <div class="${this.ppx}-interaction-replay"><span class="${this.ppx}-interaction-replay-icon"><span class="${this.cpx}-svg-icon">${f()}</span></span>重播</div>\n            </div>\n        `,e=(0,A.t)(t),i=e.querySelector(`.${this.ppx}-interaction-story`),n=e.querySelector(`.${this.ppx}-interaction-question`),r=e.querySelector(`.${this.ppx}-interaction-special`),o=new(L().Stage)({container:n,width:this.uiStore.state.videoNodeWidth,height:this.uiStore.state.videoNodeHeight}),a=e.querySelector(`.${this.ppx}-interaction-hidden`),s=e.querySelector(`.${this.ppx}-interaction-countdown`),l=e.querySelector(`.${this.ppx}-interaction-replay`);return l.addEventListener("click",this.onClickHandler),{container:e,storyWrap:i,questionWrap:n,questionStage:o,hiddenVarWrap:a,countdownWrap:s,replayWrap:l,specialWrap:r}}onClickHandler(){this.portStore.seekAutoplay(0,"InteractionReplay"),clearTimeout(this.countdownTimer),this.templateNodes.countdownWrap.innerHTML="",this.setSpecialStatus(0),this.csQuestion=null}renderStoryList(){this.templateNodes.storyWrap.innerHTML=`\n            <div class="${this.ppx}-interaction-oval-wrap">\n                <div class="${this.ppx}-interaction-oval"></div>\n            </div>\n            <div class="${this.ppx}-interaction-hover-wrap"></div>\n        `;const t=this.showStoryList.length,e=50*t,i=this.templateNodes.storyWrap.querySelector(`.${this.ppx}-interaction-oval`),r=this.templateNodes.storyWrap.querySelector(`.${this.ppx}-interaction-hover-wrap`);i.style.width=e+"px";const o=(0,A.t)(`<span class="${this.ppx}-interaction-arrow ${this.ppx}-interaction-arrow-left"><span class="${this.cpx}-svg-icon">${y()}</span></span>`),l=(0,A.t)(`<span class="${this.ppx}-interaction-arrow ${this.ppx}-interaction-arrow-right"><span class="${this.cpx}-svg-icon">${y()}</span></span>`);t>8&&(o.addEventListener("click",(()=>{const t=parseInt(i.style.marginLeft,10)||0;t<-400?i.style.marginLeft=t+400+"px":(i.style.marginLeft="0px",(0,a.N)(o)),(0,s.o)(l)})),l.addEventListener("click",(()=>{const t=parseInt(i.style.marginLeft,10)||0,n=e-Math.abs(t);n-400>400?i.style.marginLeft=t-400+"px":(i.style.marginLeft=t-n+400+"px",(0,a.N)(l)),(0,s.o)(o)})),(0,a.N)(o),(0,s.o)(l),this.templateNodes.storyWrap.prepend(o),this.templateNodes.storyWrap.appendChild(l));for(let e=0;e<t;e++){const d=this.showStoryList[e],u=(0,A.t)(`<div class="${this.ppx}-interaction-oval-item check"></div>`),p=(0,A.t)(`<div class="${this.ppx}-interaction-hover-item">\n                    <div class="${this.ppx}-interaction-background"></div>\n                    <div class="${this.ppx}-interaction-text">${(0,c.A)(d.title)}</div>\n                    <div class="${this.ppx}-interaction-label"><div class="${this.ppx}-interaction-label-one"></div><div class="${this.ppx}-interaction-label-two"></div></div>\n                    <div class="${this.ppx}-interaction-cover"><img src="${(0,h.Q)(d.cover,200)}" /></div>\n                </div>`),g=p.querySelector(`.${this.ppx}-interaction-label`);if(this.userStore.info.mid?1===d.isCurrent:+d.edgeId===this.interactStore.state.currentEdgeId){if(e>7){(0,s.o)(o);const n=(e+1)/8;n%1==0?(i.style.marginLeft=400*-Math.floor(n-1)+"px",e+1===t&&(0,a.N)(l)):e+1-8*Math.floor(t/8)>=0?(i.style.marginLeft=400*-Math.floor(n)+(400-(e+1)%8*50)+"px",e+1===t&&(0,a.N)(l)):i.style.marginLeft=400*-Math.floor(n)+"px"}u.innerHTML=`<div class="${this.ppx}-interaction-oval-round"><div class="small normal"><span class="${this.cpx}-svg-icon">${v()}</span></div><div class="small hover"><span class="${this.cpx}-svg-icon">${I()}</span></div></div>`}else u.innerHTML=`<div class="${this.ppx}-interaction-oval-round"><div class="small normal"><span class="${this.cpx}-svg-icon">${B()}</span></div><div class="small hover"><span class="${this.cpx}-svg-icon">${x()}</span></div></div>`,u.addEventListener("click",(()=>{this.track.e("worldline_trackingoptions_click",{from_id:this.interactStore.state.currentEdgeId,to_id:d.edgeId,list:e+1}),this.interactStore.callNextEdge({cid:+d.cid,edgeId:+d.edgeId,startPos:d.startPos,type:n.iG.StoryList},{portal:1,targetId:e,hiddenVars:null,choiceSet:""})}));const f=u.querySelector("div.normal"),m=u.querySelector("div.hover");u.addEventListener("mouseenter",(()=>{const t=T()(u).position(),e=T()(p).width();p.style.top=t.top+"px",p.style.left=t.left+"px",g.style.left=e/2-5+"px",(0,a.N)(f),p.style.display="block",m.style.display="block"})),
u.addEventListener("mouseleave",(()=>{(0,a.N)(p,m),(0,s.o)(f)})),i.appendChild(u),r.appendChild(p)}!this.ctrlStore.isCtrlHidden()&&(0,s.o)(this.templateNodes.storyWrap)}renderQuestion(t){var e;this.resize(),this.defalutChoiceButton=null,null==(e=this.templateNodes.questionLayer)||e.destroy(),this.templateNodes.questionLayer=new(L().Layer);const{type:i,choices:r,title:o}=t;4===i&&t.canPause&&this.portStore.pause();for(let t=0;t<r.length;t++){const e=r[t].condition;e&&!Number((0,n.BI)(this.interactStore.hiddenMap,`\`${e}\``))&&(r.splice(t,1),t--)}switch(i){case 1:this.createChoiceTypeOne(r);break;case 2:this.createChoiceTypeTwo(r);break;case 4:this.createChoiceTypeFour(r,o);break;default:this.log.e("illegal interaction question type")}}createChoiceTypeOne(t){return X(this,null,(function*(){const e=this.interactStore.state.skin,i=new(L().Group)({opacity:0,y:this.stageHeight/this.scale+100});let r=!1;const o={};for(let e=0;e<t.length;e++)o[e]=this.rootPlayer.addDispose(new d.B);for(let a=0;a<t.length;a++){const s=o[a],l=yield it.create(this.rootPlayer.isDisposeErr,s,t[a],1,e,t.length).catch(U.Z);if(!l)continue;JSON.stringify(this.defalutChoice)===JSON.stringify(t[a])&&(this.defalutChoiceButton=l),t.length<4?(l.y(0),1===t.length&&l.x(332),2===t.length&&(0===a?l.x(171):l.x(496)),3===t.length&&(0===a?l.x(116):1===a?l.x(330):l.x(542))):(0===a||2===a?l.x(171):l.x(496),0===a||1===a?l.y(-60):l.y(0)),r=!0,i.add(l),this.templateNodes.questionLayer.add(i),this.templateNodes.questionStage.add(this.templateNodes.questionLayer),this.templateNodes.questionLayer.batchDraw(),this.templateNodes.questionStage.show();const A=new(L().Tween)({node:l,scaleX:1.03,scaleY:1.03,easing:L().Easings.Linear,duration:.3});l.on("mouseover",(()=>{this.templateNodes.questionWrap.style.cursor="pointer",A.play()})),l.on("mouseout",(()=>{this.templateNodes.questionWrap.style.cursor="default",A.reverse()})),l.on("click touchstart",(()=>{this.interactStore.setInteractionConfig({portal:0}),this.track.e("worldline_options_click",{from_id:this.interactStore.state.currentEdgeId,to_id:t[a].id,type:1,list:a+1}),this.templateNodes.questionWrap.style.cursor="default",(0,N.jt)(J(q({},tt),{onUpdate:t=>{l.scaleX(t.scale),l.scaleY(t.scale),this.templateNodes.questionLayer.batchDraw()},onComplete:()=>{this.choiceHandler(t[a]),this.interactStore.callNextEdge({cid:+t[a].cid,edgeId:+t[a].id,type:n.iG.Question}).then((()=>{null===this.localStore.get().interaction.rookieGuide&&(this.localStore.set({interaction:{rookieGuide:!0}}),this.interactStore.setState({rookieGuide:!0}))})).catch(U.Z)}}))}))}r&&new(L().Tween)({node:i,y:this.stageHeight/this.scale-42,opacity:1,easing:L().Easings.Linear,duration:.3}).play()}))}createChoiceTypeTwo(t){return X(this,null,(function*(){const e=this.interactStore.state.skin,i=this.interactStore.state.dimension,r={};for(let e=0;e<t.length;e++)r[e]=this.rootPlayer.addDispose(new d.B);for(let o=0;o<t.length;o++){const a=this.rootPlayer.addDispose(r[o]),s=yield it.create(this.rootPlayer.isDisposeErr,a,t[o],2,e,t.length,i.width).catch(U.Z);if(!s)continue;JSON.stringify(this.defalutChoice)===JSON.stringify(t[o])&&(this.defalutChoiceButton=s);const l=(i.height-t[o].y)/(i.width/$)*(i.width/i.height)/(this.stageWidth/this.stageHeight);s.opacity(0),s.x(t[o].x/i.width*$),s.y(l),this.templateNodes.questionLayer.add(s),this.templateNodes.questionStage.add(this.templateNodes.questionLayer),this.templateNodes.questionLayer.batchDraw(),this.templateNodes.questionStage.show();const A=new(L().Tween)({node:s,scaleX:1.03,scaleY:1.03,easing:L().Easings.Linear,duration:.2});s.on("mouseover",(()=>{this.templateNodes.questionWrap.style.cursor="pointer",A.play()})),s.on("mouseout",(()=>{this.templateNodes.questionWrap.style.cursor="default",A.reverse()})),s.on("click touchstart",(()=>{this.interactStore.setInteractionConfig({portal:0}),this.track.e("worldline_options_click",{from_id:this.interactStore.state.currentEdgeId,to_id:t[o].id,type:2,list:o+1}),this.templateNodes.questionWrap.style.cursor="default",(0,N.jt)(J(q({},tt),{onUpdate:t=>{s.scaleX(t.scale),s.scaleY(t.scale),this.templateNodes.questionLayer.batchDraw()},onComplete:()=>{this.choiceHandler(t[o]),this.interactStore.callNextEdge({cid:+t[o].cid,edgeId:+t[o].id,type:n.iG.Question}).then((()=>{null===this.localStore.get().interaction.rookieGuide&&(this.localStore.set({interaction:{rookieGuide:!0}}),this.interactStore.setState({rookieGuide:!0}))}))}}))})),(0,N.jt)({from:{scale:0,opacity:0},to:{scale:1,opacity:1},duration:200,ease:N.GE,onUpdate:t=>{s.scaleX(t.scale),s.scaleY(t.scale),s.opacity(t.opacity),this.templateNodes.questionLayer.batchDraw()}})}}))}createChoiceTypeFour(t,e){return X(this,null,(function*(){const i=new(L().Group)({opacity:0,y:this.stageHeight/this.scale+100}),r=this.interactStore.state.skin,o=this.stageHeight/this.scale/2,a=this.stageWidth/this.scale;if(this.templateNodes.questionLayer.add(new(L().Rect)({x:0,y:o,width:a,height:o,fillLinearGradientStartPoint:{x:0,y:0},fillLinearGradientEndPoint:{x:0,y:o},fillLinearGradientColorStops:[0,"rgba(0,0,0,0.0)",1,"#000000"]})),e){const i=new(L().Text)({id:"text",text:(0,n.BI)(this.interactStore.hiddenMap,e),fontSize:0===t.length?36:16,wrap:"char",ellipsis:!0,fontFamily:"-apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, 'PingFang SC','Hiragino Sans GB', 'Microsoft YaHei', sans-serif",fill:u(r.textColor),y:0===t.length?2*o-88:2*o-108,height:52,width:a,align:"center",verticalAlign:"middle",shadowColor:u(r.shadowColor),shadowBlur:r.shadowRadius,shadowOffsetX:r.shadowOffsetX||0,shadowOffsetY:-(r.shadowOffsetY||0)});this.templateNodes.questionLayer.add(i),this.templateNodes.questionLayer.batchDraw()}const s={};for(let e=0;e<t.length;e++)s[e]=this.rootPlayer.addDispose(new d.B);for(let e=0;e<t.length;e++){const n=this.rootPlayer.addDispose(s[e]),o=yield it.create(this.rootPlayer.isDisposeErr,n,t[e],4,r,t.length);if(!o)continue;JSON.stringify(this.defalutChoice)===JSON.stringify(t[e])&&(this.defalutChoiceButton=o),t.length<4?(o.y(0),1===t.length&&o.x(332),2===t.length&&(0===e?o.x(171):o.x(496)),3===t.length&&(0===e?o.x(116):1===e?o.x(330):o.x(542))):0===e?o.x(92):1===e?o.x(256):2===e?o.x(420):3===e&&o.x(584),i.add(o),this.templateNodes.questionLayer.add(i),this.templateNodes.questionStage.add(this.templateNodes.questionLayer),this.templateNodes.questionLayer.batchDraw(),this.templateNodes.questionStage.show(),new(L().Tween)({node:i,y:this.stageHeight/this.scale-42,opacity:1,easing:L().Easings.Linear,duration:.3}).play();const a=new(L().Tween)({node:o,scaleX:1.03,scaleY:1.03,easing:L().Easings.Linear,duration:.2});o.on("mouseover",(()=>{this.templateNodes.questionWrap.style.cursor="pointer",a.play()})),o.on("mouseout",(()=>{this.templateNodes.questionWrap.style.cursor="default",a.reverse()})),o.on("click touchstart",(()=>{clearTimeout(this.countdownTimer),this.templateNodes.countdownWrap.innerHTML="",this.interactStore.setInteractionConfig({portal:0}),this.track.e("worldline_options_click",{from_id:this.interactStore.state.currentEdgeId,to_id:t[e].id,type:4,list:e+1}),this.templateNodes.questionWrap.style.cursor="default",(0,N.jt)(J(q({},tt),{onUpdate:t=>{o.scaleX(t.scale),o.scaleY(t.scale),this.templateNodes.questionLayer.batchDraw()},onComplete:()=>{this.choiceHandler(t[e],!0,!0),this.portStore.play()}}))}))}}))}specialStartHandler(t){const e=document.createElement("div");e.style.position="absolute",e.style.display="none",e.style.zIndex="1";const i=t.choices,n=i[0].selected;this.specialIndicator=new nt({element:e,repeat:!0,colums:n.colums,fps:n.fps,item_count:n.item_count,item_height:n.item_height,item_width:n.item_width,source_pic:n.source_pic,scale:n.position.width/n.item_width}),this.templateNodes.specialInner=document.createElement("div"),this.templateNodes.specialInner.style.width=this.interactStore.state.dimension.width+"px",this.templateNodes.specialWrap.appendChild(this.templateNodes.specialInner),this.templateNodes.specialInner.appendChild(e);for(let t=0;t<i.length;t++){const n=document.createElement("div");n.style.position="absolute",n.style.left=i[t].x+"px",n.style.bottom=i[t].y+"px",n.style.width=i[t].width+"px",n.style.height=i[t].height+"px",
n.style.cursor="pointer",n.style.background="transparent",this.templateNodes.specialInner.appendChild(n),T()(n).on("click touchstart",(()=>{const r=this.templateNodes.specialInner.querySelector("[iv-selected]");r&&r.removeAttribute("iv-selected"),r!==n?(this.specialIndicator.start(),this.specialChoiceID=t,n.setAttribute("iv-selected","true"),e.style.left=i[t].selected.position.x-i[t].selected.position.width/2+"px",e.style.bottom=i[t].selected.position.y-i[t].selected.position.height/2+"px",e.style.display="block"):(this.specialIndicator.stop(),this.specialChoiceID=null,e.style.display="none")}))}this.resize()}specialEndHandler(t){if((0,a.N)(this.templateNodes.replayWrap),null!=this.specialChoiceID){this.templateNodes.specialInner.innerHTML="";const e=this.specialChoiceID,i=document.createElement("div");i.style.position="absolute",i.style.left=t[e].submited.position.x-t[e].submited.position.width/2+"px",i.style.bottom=t[e].submited.position.y-t[e].submited.position.height/2+"px",i.style.zIndex="1";const n=t[e].submited;this.specialFadeoutFrame=new nt({element:i,repeat:!1,colums:n.colums,fps:n.fps,item_count:n.item_count,item_height:n.item_height,item_width:n.item_width,source_pic:n.source_pic,scale:n.position.width/n.item_width,endCallback:()=>{this.templateNodes.specialWrap.innerHTML="",this.specialChoiceHandler(t)}}),this.specialIndicator.destroy(),this.templateNodes.specialInner.appendChild(i),this.specialFadeoutFrame.start()}else this.specialChoiceHandler(t)}specialChoiceHandler(t){if(null==this.specialChoiceID&&t){this.specialChoiceID=0;for(let e=0;e<t.length;e++)if(t[e].isDefault){const i=t[e].condition;(i&&Boolean(Number((0,n.BI)(this.interactStore.hiddenMap,`\`${i}\``)))||!i)&&(this.specialChoiceID=e)}}this.choiceHandler(t[this.specialChoiceID])}renderCountDown(t){this.interactStore.setInteractionConfig({portal:0}),this.templateNodes.countdownWrap.innerHTML=`<div class="${this.ppx}-interaction-countdown-bar"></div>`;const e=this.templateNodes.countdownWrap.querySelector(`.${this.ppx}-interaction-countdown-bar`),{progressColor:i,progressShadowColor:r}=this.interactStore.state.skin;e.style.background=u(i),e.style.boxShadow=u(r),e.style.animationDuration=t.duration/1e3+"s",(0,s.o)(this.templateNodes.countdownWrap),this.countdownTimer=window.setTimeout((()=>{(0,N.jt)({from:{scale:1},to:{scale:.93},duration:300,ease:N.mZ,onUpdate:t=>{this.defalutChoiceButton&&(this.defalutChoiceButton.scaleX(t.scale),this.defalutChoiceButton.scaleY(t.scale),this.templateNodes.questionStage.batchDraw())},onComplete:()=>{this.templateNodes.countdownWrap.innerHTML="",this.templateNodes.questionStage.hide(),4===t.type?(this.choiceHandler(this.defalutChoice,!0,!0),this.portStore.play()):(this.choiceHandler(this.defalutChoice),this.interactStore.callNextEdge({cid:+this.defalutChoice.cid,edgeId:+this.defalutChoice.id,type:n.iG.Question}).then((()=>{null===this.localStore.get().interaction.rookieGuide&&(this.localStore.set({interaction:{rookieGuide:!0}}),this.interactStore.setState({rookieGuide:!0}))})))}})}),t.duration)}renderRookieGuide(){let t=0;const e=`\n            <div class="${this.ppx}-interaction-rookie-guide">\n                <div class="${this.ppx}-interaction-rookie-guide-text">\n                    <p>这里会记录你做过的选择，可随时点击返回</p>\n                    <p>\n                        <span class="${this.ppx}-interaction-rookie-guide-icon"><span class="${this.cpx}-svg-icon">${S()}</span></span>\n                        <span>已经历过的剧情</span>\n                    </p>\n                    <p>\n                        <span class="${this.ppx}-interaction-rookie-guide-icon"><span class="${this.cpx}-svg-icon">${D()}</span></span>\n                        <span>当前所在的剧情</span>\n                    </p>\n                </div>\n                <div class="${this.ppx}-interaction-rookie-guide-button">我知道了</div>\n                <div class="${this.ppx}-interaction-rookie-guide-arrow"></div>\n            </div>\n        `,i=(0,A.t)(e);this.interactStore.showHiddenVars&&(i.style.bottom="145px");const n=i.querySelector(`.${this.ppx}-interaction-rookie-guide-button`),r=()=>{n.removeEventListener("click",r),t&&window.clearTimeout(t),T()(i).remove(),this.interactStore.setState({rookieGuide:!1}),this.track.e("interaction_rookie_close")};this.templateNodes.container.appendChild(i),n&&n.addEventListener("click",r),t=window.setTimeout((()=>{r()}),5e3)}renderHiddenVars(){const t=this.interactStore.showHiddenVars;let e=`<div class="${this.ppx}-interaction-hidden-star"><span class="${this.ppx}-interaction-hidden-svg"><span class="${this.cpx}-svg-icon">${R()}</span></span></div>`;for(let i=0;i<t.length;i++){const n=t[i];e+=`<div class="${this.ppx}-interaction-hidden-item">\n                <div class="${this.ppx}-interaction-hidden-name">${n.name}</div>\n                <div class="${this.ppx}-interaction-hidden-value">${n.value}</div>\n            </div>`,this.templateNodes.hiddenVarWrap.innerHTML=e}!this.ctrlStore.isCtrlHidden()&&(0,s.o)(this.templateNodes.hiddenVarWrap)}resize(){const{questionStage:t,specialWrap:e,specialInner:i}=this.templateNodes,{videoNodeWidth:n,videoNodeHeight:r}=this.uiStore.state,o=this.mediaStore.video,a=o.videoWidth/o.videoHeight,s=n/r,l=this.uiStore.hasBlackGap;let A={width:o.videoWidth||n,height:o.videoHeight||r,left:l?7:0,bottom:l?48:0};if(a)if(s>=a){const t=Math.round(r*a);A={width:t,height:r,left:(n-t)/2+(l?7:0),bottom:l?48:0}}else{const t=Math.round(n/a);A={width:n,height:t,left:l?7:0,bottom:(r-t)/2+(l?48:0)}}if(this.stageWidth=A.width,this.stageHeight=A.height,this.scale=A.width/$,t.setAttrs({width:A.width,height:A.height,scale:{x:this.scale,y:this.scale}}),t.draw(),i){T()(e).css({width:A.width,height:A.height,left:A.left,bottom:A.bottom});const t=parseInt(i.style.width,10)||i.clientWidth,n=e.clientHeight*t/e.clientWidth+"px",r=`scale(${e.clientWidth/t})`;T()(i).css({height:n,transform:r,"transform-origin":"top left"})}}choiceHandler(t,e=!1,i=!1){if(t){if((0,n.BI)(this.interactStore.hiddenMap,`\`${t.nativeAction}\``),e){const e=this.interactStore.interactionConfig.choiceSet,i=e?`${e},${t.id}`:`${t.id}`;this.interactStore.setInteractionConfig({choiceSet:i})}if(i&&t.platformAction&&t.platformAction){const e=Number(t.platformAction.replace(/[^0-9]/gi,""));console.debug(e),this.portStore.seek(e,{initiator:"InteractionChoice:Seek"})}}}removeEvents(){this.templateNodes.replayWrap.removeEventListener("click",this.onClickHandler)}onDispose(){var t;super.onDispose(),this.showQuestion(!1),this.setSpecialStatus(0),this.cQuestion=null,this.csQuestion=null,this.specialChoiceID=null,this.defalutChoiceButton=null,clearTimeout(this.countdownTimer),this.templateNodes.storyWrap.innerHTML="",this.templateNodes.hiddenVarWrap.innerHTML="",this.templateNodes.countdownWrap.innerHTML="",null==(t=this.templateNodes.questionLayer)||t.destroy()}onDisconnect(){this.removeEvents()}}K([r.LO],et.prototype,"questionShow",2),K([r.LO],et.prototype,"specialStatus",2),K([r.Fl],et.prototype,"showStoryList",1),K([r.aD],et.prototype,"showQuestion",1),K([r.aD],et.prototype,"setSpecialStatus",1),K([O.ZP],et.prototype,"onClickHandler",1);class it{static create(t,e,i,n,r,o,a){return X(this,null,(function*(){const s=3===o?202:309,l=new(L().Group),A=new(L().Group),c=new(L().Group),h=new(L().Group),g=new(L().Group),f=new(L().Text)({id:"text",text:i.option,fontSize:14,wrap:2===n?"none":"char",ellipsis:!0,fontFamily:"-apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, 'PingFang SC','Hiragino Sans GB', 'Microsoft YaHei', sans-serif",fill:u(r.textColor),height:2===n?44:52,align:"center",verticalAlign:"middle",shadowColor:u(r.shadowColor),shadowBlur:r.shadowRadius,shadowOffsetX:r.shadowOffsetX||0,shadowOffsetY:-r.shadowOffsetY||0,padding:12});1===n||4===n?(4===n&&4===o?(l.width(144),f.width(144),l.offsetX(72)):(l.width(s),f.width(s),l.offsetX(3===o?101:155)),l.height(44),l.offsetY(22)):2===n&&f.width()<80&&f.width(80);const m=yield function(t,e=new d.B){const i=document.createElement("img");return i.onload=()=>e.resolve(i),i.onerror=i=>e.reject(i||new Error(`Could not load image at ${t}`)),i.crossOrigin="anonymous",i.src=t,e.promise}(r.image,e).catch((e=>{if(t(e))throw e
;l.add(f)}));if(!m)return l;if(1===n||4===n){const t=yield p(it.tbg()),e=yield p(it.backgroundCanvas(m,4===n&&4===o?144:s)),i=new(L().Image)({x:1,y:0,image:t,fillPatternImage:e,fillPatternOffset:{x:0,y:5},fillPatternScale:{x:.25,y:.25},width:4===n&&4===o?144:s,height:52});l.add(i),l.add(f)}else if(2===n){const t=yield p(it.tbg()),e=yield p(it.pointBackgroundCanvas(m,f.width())),n=yield p(it.pointRound(m)),r=yield p(it.pointLine(m)),o=new(L().Image)({x:-3,y:-2,image:t,fillPatternImage:e,fillPatternOffset:{x:5,y:2},fillPatternScale:{x:.33,y:.33},fillPatternRepeat:"repeat-x",width:f.width()+6,height:48}),s=new(L().Image)({x:0,y:0,image:t,fillPatternImage:n,fillPatternScale:{x:.24,y:.24},fillPatternRepeat:"repeat-x",width:21,height:21,offsetX:11,offsetY:11}),d=new(L().Image)({x:0,y:0,image:t,fillPatternImage:r,fillPatternScale:{x:.24,y:.24},fillPatternRepeat:"repeat",width:21,height:23,offsetX:11});h.add(o),h.add(f),A.add(d),A.add(h),g.add(s);const u=i.textAlign,y=i.x/a*$;if(1===u||3===u){3===u&&(d.rotation(180),d.offsetX(f.width()/2+10),d.offsetY(1),c.offsetX(f.width()/2),c.offsetY(-17)),1===u&&(d.offsetX(-(f.width()/2-10)),d.offsetY(2-f.height()),c.offsetX(f.width()/2),c.offsetY(17+f.height()));const t=f.width()/2;y-t<0?(c.offsetX(f.width()/2+(y-t)-10),3===u?d.offsetX(f.width()/2+(y-t)):d.offsetX(-f.width()/2-(y-t)+20)):t+y>$?(c.offsetX(y+t-$+f.width()/2+10),3===u?d.offsetX(y+t-$+f.width()/2+20):d.offsetX(-f.width()/2-(y+t-$))):c.offsetX(f.width()/2)}else 2===u?(d.offsetX(-12),d.rotation(90),c.offsetY(f.height()/2),c.offsetX(-17)):(d.offsetX(32),d.rotation(-90),d.offsetY(-f.width()),c.offsetY(f.height()/2),c.offsetX(17+f.width()));c.add(A),l.add(c),l.add(g)}return l}))}static tbg(){const t=document.createElement("canvas");return t.width=1,t.height=1,t}static backgroundCanvas(t,e){const i=document.createElement("canvas");return i.width=4*e,i.height=220,i.getContext("2d").drawImage(t,0,0,309,215,0,0,309,215),i.getContext("2d").drawImage(t,309,0,1,215,309,0,4*e-618,215),i.getContext("2d").drawImage(t,310,0,309,215,4*e-309,0,309,215),i}static pointBackgroundCanvas(t,e){const i=document.createElement("canvas");return i.width=3*e+35,i.height=220,i.getContext("2d").drawImage(t,0,220,120,215,0,0,120,215),i.getContext("2d").drawImage(t,121,220,1,215,120,0,i.width-240,215),i.getContext("2d").drawImage(t,122,220,120,215,i.width-120,0,120,215),i}static pointRound(t){const e=document.createElement("canvas");return e.width=88,e.height=88,e.getContext("2d").drawImage(t,250,225,88,88,0,0,88,88),e}static pointLine(t){const e=document.createElement("canvas");return e.width=84,e.height=98,e.getContext("2d").drawImage(t,349,215,88,118,0,0,88,118),e}}class nt{constructor(t){this.config=t,t.element.style.backgroundColor="transparent",t.element.style.backgroundImage=`url(${t.source_pic})`,t.element.style.backgroundPositionX="0px",t.element.style.backgroundPositionY="0px",t.element.style.backgroundRepeat="repeat",t.element.style.width=`${t.item_width}px`,t.element.style.height=`${t.item_height}px`,t.scale&&(t.element.style.transform=`scale(${t.scale})`,t.element.style.transformOrigin="bottom left"),this.index=0}start(t){this.timer&&clearTimeout(this.timer),void 0===typeof t||isNaN(t)||(this.index=t);const e=this.index%this.config.colums*this.config.item_width,i=Math.floor(this.index/this.config.colums)*this.config.item_height;this.config.element.style.backgroundPositionX=-e+"px",this.config.element.style.backgroundPositionY=-i+"px",this.index++,this.index%=this.config.item_count,0!==this.index||this.config.repeat?this.timer=window.setTimeout((()=>{this.start(this.index)}),1e3/this.config.fps):("function"==typeof this.config.endCallback&&this.config.endCallback(),this.destroy())}stop(){this.timer&&clearTimeout(this.timer)}destroy(){this.timer&&clearTimeout(this.timer),this.config.element.setAttribute("style",""),this.config.element.parentElement&&this.config.element.parentElement.removeChild(this.config.element)}}},55963:function(t,e,i){"use strict";i.d(e,{u:function(){return h}});var n=i(23529),r=i(46330),o=i(99550),a=i(22451),s=i(5489),l=i(48760),A=i(25360),c=i.n(A);class h extends s.vq{constructor(){super(...arguments),this.detail=[]}static get detail(){return[{name:"Space",desc:"播放/暂停"},{name:"→",desc:"单次快进5s，长按倍速播放"},{name:"←",desc:"快退5s"},{name:"↑",desc:"音量增加10%"},{name:"↓",desc:"音量降低10%"},{name:"Esc",desc:"退出全屏"},{name:"媒体键 play/pause",desc:"播放/暂停"},{name:"F",desc:"全屏/退出全屏"},{name:"[",desc:"多P 上一个"},{name:"]",desc:"多P 下一个"},{name:"Enter",desc:"发弹幕"},{name:"D",desc:"开启/关闭弹幕"},{name:"M",desc:"开启/关闭静音"},{name:"Shift + 1",desc:"一倍速（正常倍速）"},{name:"Shift + 2",desc:"二倍速"}]}install(){super.install(),this.dc.show=(0,a.EH)((()=>{this.menuStore.state.showKeyBoard&&!this.uiStore.isTinyView?this.show():(0,n.N)(this.area)}))}show(){this.inited||this.initUi(),(0,r.o)(this.area)}initUi(){this.inited=!0,this.getDetailList();const t=this.nodes.videoArea;t.appendChild(this.hotkeyPanel()),this.area=t.querySelector(`.${this.ppx}-hotkey-panel`),t.querySelector(`.${this.ppx}-hotkey-panel-close`).addEventListener("click",(()=>{this.menuStore.setState({showKeyBoard:!1})})),this.detail.length>12&&new l.Z(this.area.querySelector(`.${this.ppx}-hotkey-panel-area`),{preventDefault:!1})}getDetailList(){if(this.detail=h.detail,this.uiStore.state.kind!==s.HR.Ugc)return;this.detail=[{name:"Q",desc:"单次点赞/取消点赞，长按一键三连"},{name:"W",desc:"投币"},{name:"E",desc:"收藏"},{name:"R",desc:"长按一键三连"},{name:"G",desc:"关注up主"}].concat(this.detail)}hotkeyPanel(){let t="";this.detail.forEach((e=>{t+=`\n                <div class="${this.ppx}-hotkey-panel-content-item">\n                    <span class="${this.ppx}-hotkey-panel-content-name">${e.name}</span>\n                    <span class="${this.ppx}-hotkey-panel-content-desc">${e.desc}</span>\n                </div>`}));return(0,o.t)(`\n            <div class="${this.ppx}-hotkey-panel">\n                <div class="${this.ppx}-hotkey-panel-title">快捷键说明<span class="${this.ppx}-hotkey-panel-close"><span class="${this.cpx}-svg-icon">${c()}</span></span></div>\n                <div class="${this.ppx}-hotkey-panel-area">\n                    <div class="${this.ppx}-hotkey-panel-content">${t}</div>\n                </div>\n            </div>\n        `)}}},56820:function(t,e,i){"use strict";i.d(e,{G:function(){return st}});var n=i(5489),r=i(1641);const o=Symbol.for("Dexie"),a=globalThis[o]||(globalThis[o]=r);if(r.semVer!==a.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${r.semVer} and ${a.semVer}`);const{liveQuery:s,mergeRanges:l,rangesOverlap:A,RangeSet:c,cmp:h,Entity:d,PropModSymbol:u,PropModification:p,replacePrefix:g,add:f,remove:m}=a;var y=a;function b(){b=function(){return e};var t,e={},i=Object.prototype,n=i.hasOwnProperty,r=Object.defineProperty||function(t,e,i){t[e]=i.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function A(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{A({},"")}catch(t){A=function(t,e,i){return t[e]=i}}function c(t,e,i,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),s=new _(n||[]);return r(a,"_invoke",{value:Q(t,i,s)}),a}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",u="suspendedYield",p="executing",g="completed",f={};function m(){}function y(){}function v(){}var E={};A(E,a,(function(){return this}));var I=Object.getPrototypeOf,C=I&&I(I(M([])));C&&C!==i&&n.call(C,a)&&(E=C);var B=v.prototype=m.prototype=Object.create(E);function w(t){["next","throw","return"].forEach((function(e){A(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(r,o,a,s){var l=h(t[r],t,o);if("throw"!==l.type){var A=l.arg,c=A.value;return c&&"object"==R(c)&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(c).then((function(t){A.value=t,a(A)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}
return o=o?o.then(r,r):r()}})}function Q(e,i,n){var r=d;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var l=S(s,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var A=h(e,i,n);if("normal"===A.type){if(r=n.done?g:u,A.arg===f)continue;return{value:A.arg,done:n.done}}"throw"===A.type&&(r=g,n.method="throw",n.arg=A.arg)}}}function S(e,i){var n=i.method,r=e.iterator[n];if(r===t)return i.delegate=null,"throw"===n&&e.iterator.return&&(i.method="return",i.arg=t,S(e,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=h(r,e.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,f;var a=o.arg;return a?a.done?(i[e.resultName]=a.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,f):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function M(e){if(e||""===e){var i=e[a];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function i(){for(;++r<e.length;)if(n.call(e,r))return i.value=e[r],i.done=!1,i;return i.value=t,i.done=!0,i};return o.next=o}}throw new TypeError(R(e)+" is not iterable")}return y.prototype=v,r(B,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:y,configurable:!0}),y.displayName=A(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,A(t,l,"GeneratorFunction")),t.prototype=Object.create(B),t},e.awrap=function(t){return{__await:t}},w(x.prototype),A(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,i,n,r,o){void 0===o&&(o=Promise);var a=new x(c(t,i,n,r),o);return e.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(B),A(B,l,"Generator"),A(B,a,(function(){return this})),A(B,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),i=[];for(var n in e)i.push(n);return i.reverse(),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=M,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function r(n,r){return s.type="throw",s.arg=e,i.next=n,r&&(i.method="next",i.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),A=n.call(a,"finallyLoc");if(l&&A){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!A)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),D(i),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;D(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,i,n){return this.delegate={iterator:M(e),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=t),f}},e}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,A=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){A=!0,r=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(A)throw r}}return s}}(t,e)||C(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=C(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function I(t){return function(t){if(Array.isArray(t))return B(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return B(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?B(t,e):void 0}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,T(n.key),n)}}function Q(t,e,i){return e&&x(t.prototype,e),i&&x(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function S(t,e,i){return e=D(e),function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,i||[],D(t).constructor):e.apply(t,i))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t,e){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){
return t.__proto__=e,t})(t,e)}function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e,i){return(e=T(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function T(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:String(e)}var F="log",L="meta",N=M(M({},F,"timestamp, displayID, hasReported"),L,"timestamp, [lines+size], size, displayID"),P=Object.defineProperty,U=function(t,e,i){return function(t,e,i){e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i}(t,"symbol"!==R(e)?e+"":e,i),i},O=function(t){function e(){var t;return w(this,e),t=S(this,e,["PLAYER__LOG"]),U(t,"haveInitialized",!1),U(t,"logTable"),U(t,"metaTable"),t.initDB(),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_(t,e)}(e,t),Q(e,[{key:"initDB",value:function(){if(!this.haveInitialized&&(this.haveInitialized=!0,!this.isOpen())){try{this.version(2).stores(N).upgrade((function(t){return t.table(F).toCollection().modify((function(t){return t.hasReported=0}))}))}catch(t){t instanceof Error&&"Cannot add version when database is open"===t.message&&(this.close(),this.version(2).stores(N).upgrade((function(t){return t.table(F).toCollection().modify((function(t){return t.hasReported=0}))})))}Object.defineProperties(this,{logTable:{value:this[F],enumerable:!1,writable:!1},metaTable:{value:this[L],enumerable:!1,writable:!1}})}}}])}(y);function G(t){return Number.isInteger(t)&&t>0}function H(t){return"string"==typeof t&&""!==t.trim()}var V=function(t,e,i){return new Promise((function(n,r){var o=function(t){try{s(i.next(t))}catch(t){r(t)}},a=function(t){try{s(i.throw(t))}catch(t){r(t)}},s=function(t){return t.done?n(t.value):Promise.resolve(t.value).then(o,a)};s((i=i.apply(t,e)).next())}))},Y=function(t){if("object"===R(t)){var e=t.hour,i=void 0===e?0:e,n=t.day,r=36e5;return i*r+864e5*(void 0===n?0:n)+""}return"number"==typeof t?t+"":t};function z(t){if("all"===t)return!0;if(G(t))return!0;if("object"===R(t)&&null!==t){var e=t.hour,i=t.day;return G(e)||G(i)}return!1}W=function(t){return V(this,null,b().mark((function e(){var i,n,r=this;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(z(t)){e.next=2;break}throw new Error('Invalid "condition" input');case 2:return i=new O,n=function(t){return t.map((function(t){return t.content})).join("\r\n")||""},e.abrupt("return",i.transaction("rw",["log"],(function(){return V(r,null,b().mark((function e(){var r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,E,I,C;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("all"!==t){e.next=8;break}return r=i.logTable.where({hasReported:0}),e.next=4,Promise.all([r.toArray().then(n),r.modify({hasReported:1})]);case 4:return o=e.sent,a=v(o,1),s=a[0],e.abrupt("return",s);case 8:if("number"!=typeof t){e.next=16;break}return l=i.logTable.orderBy("timestamp").reverse().filter((function(t){return 0===t.hasReported})).limit(t),e.next=12,Promise.all([l.toArray().then(n),l.modify({hasReported:1})]);case 12:return A=e.sent,c=v(A,1),h=c[0],e.abrupt("return",h);case 16:return d=36e5,u=Date.now(),p=t.hour,g=void 0===p?0:p,f=t.day,m=u-g*d-864e5*(void 0===f?0:f),y=i.logTable.where("timestamp").aboveOrEqual(m).filter((function(t){return 0===t.hasReported})),e.next=24,Promise.all([y.toArray().then(n),y.modify({hasReported:1})]);case 24:return E=e.sent,I=v(E,1),C=I[0],e.abrupt("return",C);case 28:case"end":return e.stop()}}),e)})))})));case 5:case"end":return e.stop()}}),e)})))},Z=new Map,j=function(){var t=Y.apply(void 0,arguments);if(Z.has(t))return Z.get(t);var e=W.apply(void 0,arguments);return Z.set(t,e),e},j.clearCache=function(){return Z.clear()};var W,Z,j,q=Object.defineProperty,J=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,$=function(t,e,i){return e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},tt=function(t,e){for(var i in e||(e={}))K.call(e,i)&&$(t,i,e[i]);if(J){var n,r=E(J(e));try{for(r.s();!(n=r.n()).done;){i=n.value;X.call(e,i)&&$(t,i,e[i])}}catch(t){r.e(t)}finally{r.f()}}return t},et=function(){return Q((function t(){var e,i;w(this,t),i=[],$(this,"symbol"!==R(e="plugins")?e+"":e,i)}),[{key:"addPlugin",value:function(){var t;return(t=this.plugins).push.apply(t,arguments),this}},{key:"inject",value:function(t){return e=this,i=arguments,n=function(t){var e=this,i=t.hook,n=t.params,r=t.hookContext;return b().mark((function t(){var o,a,s,l,A,c;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=E(e.plugins),t.prev=1,o.s();case 3:if((a=o.n()).done){t.next=12;break}return s=a.value,l="function"==typeof s?s():s,A=l.name,c=l[i],t.next=10,null==c?void 0:c.apply(tt({name:A},r),n);case 10:t.next=3;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(1),o.e(t.t0);case 17:return t.prev=17,o.f(),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,14,17,20]])}))()},new Promise((function(t,r){var o=function(t){try{s(n.next(t))}catch(t){r(t)}},a=function(t){try{s(n.throw(t))}catch(t){r(t)}},s=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,a)};s((n=n.apply(e,i)).next())}));var e,i,n}}])}(),it=Object.defineProperty,nt=function(t,e,i){return function(t,e,i){e in t?it(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i}(t,"symbol"!==R(e)?e+"":e,i),i},rt=function(t,e,i){return new Promise((function(n,r){var o=function(t){try{s(i.next(t))}catch(t){r(t)}},a=function(t){try{s(i.throw(t))}catch(t){r(t)}},s=function(t){return t.done?n(t.value):Promise.resolve(t.value).then(o,a)};s((i=i.apply(t,e)).next())}))},ot=function(){return Q((function t(e){w(this,t),nt(this,"maxLines",Number.MAX_SAFE_INTEGER),nt(this,"maxSize",3e6),nt(this,"db",new O),nt(this,"pluginSystem",new et),(null==e?void 0:e.maxSize)&&(this.maxSize=e.maxSize)}),[{key:"getTotalSize",value:function(){return rt(this,null,b().mark((function t(){var e;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.db.metaTable.orderBy("size").keys();case 2:return e=t.sent,t.abrupt("return",e.reduce((function(t,e){return t+e}),0));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"safeBulkGetBoth",value:function(t){return rt(this,null,b().mark((function e(){var i,n;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.db.metaTable.bulkGet(t);case 2:if(i=e.sent,!(n=i.reduce((function(t,e,i){return e?t:[].concat(I(t),[i])}),[])).length){e.next=8;break}return e.next=7,this.db.logTable.bulkDelete(t.filter((function(t,e){return n.includes(e)})));case 7:return e.abrupt("return",{timestamps:t.filter((function(t,e){return!n.includes(e)})),metaItems:i.filter(Boolean)});case 8:return e.abrupt("return",{timestamps:t,metaItems:i});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"deleteRedundantLogs",value:function(t,e){return rt(this,null,b().mark((function i(){var n,r,o,a,s,l,A,c,h,d,u=this;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=function(){return u.db.logTable.orderBy("timestamp")},i.t0=this,i.next=4,n().filter((function(t){return 1===t.hasReported})).primaryKeys();case 4:return i.t1=i.sent,i.next=7,i.t0.safeBulkGetBoth.call(i.t0,i.t1);case 7:r=i.sent,o=r.timestamps,a=r.metaItems,s=0,l=!1;case 11:if(!(s<a.length)){i.next=19;break}if(!((t-=a[s].size)<=e)){i.next=16;break}return l=!0,i.abrupt("break",19);case 16:s++,i.next=11;break;case 19:if(!(A=o.slice(0,s+1)).length){i.next=23;break}return i.next=23,Promise.all([this.db.logTable.bulkDelete(A),this.db.metaTable.bulkDelete(A)]);case 23:if(!l){i.next=25;break}
return i.abrupt("return");case 25:return i.t2=this,i.next=28,n().filter((function(t){return 0===t.hasReported})).primaryKeys();case 28:return i.t3=i.sent,i.next=31,i.t2.safeBulkGetBoth.call(i.t2,i.t3);case 31:c=i.sent,h=c.timestamps,d=c.metaItems,s=0;case 35:if(!(s<d.length)){i.next=42;break}if(!((t-=d[s].size)<=e)){i.next=39;break}return i.abrupt("break",42);case 39:s++,i.next=35;break;case 42:return A=h.slice(0,s+1),i.next=45,Promise.all([this.db.logTable.bulkDelete(A),this.db.metaTable.bulkDelete(A)]);case 45:case"end":return i.stop()}}),i,this)})))}},{key:"deleteOldestLog",value:function(){return rt(this,null,b().mark((function t(){var e,i=this;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.db.transaction("r",["log"],(function(){return rt(i,null,b().mark((function t(){var e,i,n=this;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=function(){return n.db.logTable.orderBy("timestamp")},t.next=3,e().filter((function(t){return 1===t.hasReported})).first();case 3:if(i=t.sent,t.t0=i,t.t0){t.next=9;break}return t.next=8,e().first();case 8:t.t0=t.sent;case 9:return t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),t)})))}));case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this.db.transaction("rw",["log","meta"],(function(){return rt(i,null,b().mark((function t(){return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.db.logTable.delete(e.timestamp);case 2:return t.next=4,this.db.metaTable.delete(e.timestamp);case 4:case"end":return t.stop()}}),t,this)})))}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"saveLogsValidator",value:function(t,e,i){if(!H(t))throw new Error('Invalid "displayID" input');if(!G(e))throw new Error('Invalid "lines" input');if(!H(i))throw new Error('Invalid "content" input')}},{key:"saveLogs",value:function(t,e,i){return rt(this,null,b().mark((function n(){var r,o,a,s=this;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.saveLogsValidator(t,e,i),(r=i.length)>this.maxSize&&(o=this.sliceLogToMaxSize(i),a=v(o,2),e=a[0],i=a[1]),n.next=5,this.db.transaction("rw",["log","meta"],(function(){return rt(s,null,b().mark((function n(){var o,a;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getTotalSize();case 2:if(!((o=n.sent)+r>this.maxSize)){n.next=6;break}return n.next=6,this.deleteRedundantLogs(o,this.maxSize-r);case 6:return a=Date.now(),n.next=9,Promise.all([this.db.metaTable.add({timestamp:a,lines:e,size:r,displayID:t}),this.db.logTable.add({timestamp:a,content:i,displayID:t,hasReported:0})]);case 9:case"end":return n.stop()}}),n,this)})))}));case 5:case"end":return n.stop()}}),n,this)})))}},{key:"sliceLogToMaxSize",value:function(t){var e,i=t.slice(t.length-this.maxSize);return[((null==(e=i.trim().match(/\r\n?|\n/g))?void 0:e.length)||0)+1,i]}},{key:"sliceLogToMaxLines",value:function(t){t=t.trim();var e=Array.from(t.matchAll(/\r\n?|\n/g)).at(-this.maxLines);if(!e)throw new Error("passed in maxLines is incorrect");return[this.maxLines,t.slice(e.index+e[0].length)]}},{key:"addPlugin",value:function(){var t;return(t=this.pluginSystem).addPlugin.apply(t,arguments),this}}])}();Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty;var at=i(22451);class st extends n.vq{constructor(){super(...arguments),this.logSaver=new ot({maxSize:3145728})}install(){super.install(),this.addReactions(),this.addEventListener()}addReactions(){this.dc.init=(0,at.U5)((()=>this.errorStore.state.occurredFatalError),(t=>{t&&this.saveLogsToLocal()}),{fireImmediately:!0})}addEventListener(){this.rootPlayer.on(n.p2.PLAYER_UNLOAD,(()=>{this.saveLogsToLocal()}))}saveLogsToLocal(){if(!this.logSaver)return;const t=this.configStore.session,{totalCnt:e,logs:i}=this.getFormattedLogsForSaveLocal({playerLimit:2e4,kernelLimit:2e4,maxKernelLogInstance:5});this.logSaver.saveLogs(t,e,i).catch((t=>{}))}getFormattedLogsForSaveLocal({playerLimit:t,kernelLimit:e,maxKernelLogInstance:i}){const n=this.rootStore,r=this.rootPlayer.getRuntimeMetadata(),o=Object.keys(r).map((t=>`${t}: ${r[t]}`));let a,s=o.length;if(n&&n.kernelStore){const{count:t,log:e}=n.kernelStore.getHistoryLogs(i,!0);a=e,s+=t}return{totalCnt:s,logs:this.log.getFilteredLog({limit:t,header:o.join("\n"),footer:a})}}onDisconnect(){this.logSaver=null}}},96411:function(t,e,i){"use strict";i.d(e,{T:function(){return d}});var n=i(5489),r=i(44127),o=i(22451);const a=class{static registerAction(t){if(a.navSession)try{a.navSession.setActionHandler(t.name,t.handler)}catch(e){console.warn(`The media session action "${t.name}" is not supported yet.`)}}static setMetadata(t){if(a.navSession)if(t)if(a.navSession.metadata)for(const e in t)a.navSession.metadata[e]=t[e];else a.navSession.metadata=new MediaMetadata(t);else a.navSession.metadata=null}static setActionHandler(t){a.navSession&&(Array.isArray(t)?t.forEach((t=>{a.registerAction(t)})):a.registerAction(t))}};let s=a;s.navSession=navigator.mediaSession;var l=i(18417),A=i(23173),c=Object.getPrototypeOf,h=Reflect.get;class d extends n.vq{install(){return t=this,e=null,i=function*(){var t,e,i;s.navSession&&((t=d.prototype,e=this,i="install",h(c(t),i,e)).call(this),this.init(),this.dc.title=(0,o.U5)((()=>this.ctrlStore.title),(t=>{t&&s.setMetadata({title:t})}),{fireImmediately:!0}),this.dc.hasPrev=(0,o.U5)((()=>this.episodeStore.state.hasPrev),(t=>{t?s.setActionHandler({name:"previoustrack",handler:()=>{this.track.e("mediasession_previoustrack"),this.episodeStore.prev({stats:{spmId:this.configStore.spmId,spmIdFrom:A.Q.stringify({type:this.storyStore.state.type,action:A.A.Media_Session_Previoustrack})}}).catch(r.Z)}}):s.setActionHandler({name:"previoustrack",handler:null})}),{fireImmediately:!0}),this.dc.hasNext=(0,o.U5)((()=>this.episodeStore.state.hasNext),(t=>{t?s.setActionHandler({name:"nexttrack",handler:()=>{this.track.e("mediasession_nexttrack"),this.episodeStore.next({stats:{spmId:this.configStore.spmId,spmIdFrom:A.Q.stringify({type:this.storyStore.state.type,action:A.A.Media_Session_Nexttrack})}}).catch(r.Z)}}):s.setActionHandler({name:"nexttrack",handler:null})}),{fireImmediately:!0}),this.dc.pic=(0,o.U5)((()=>this.storyStore.state.cover),(t=>{t&&s.setMetadata({artwork:[{sizes:"320x180",src:(0,l.Q)(t,320)}]})}),{fireImmediately:!0}))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}init(){s.setActionHandler([{name:"seekbackward",handler:()=>{this.track.e("mediasession_seekbackward"),this.portStore.seekAutoplay(this.portStore.getCurrentTime()-5,"MediaSession")}},{name:"seekforward",handler:()=>{this.track.e("mediasession_seekforward"),this.portStore.seekAutoplay(this.portStore.getCurrentTime()+5,"MediaSession")}}])}onDisconnect(){super.onDisconnect(),s.setMetadata(null)}}},12410:function(t,e,i){"use strict";i.d(e,{v:function(){return h}});var n=i(65723),r=i(51102),o=i(36005),a=i(26929),s=i(5489),l=i(10379),A=i(30905),c=i(68918);class h extends s.vq{install(){super.install(),this.contextmenu=new l.V(this.nodes.contextArea,this.nodes.videoPerch,{ppx:this.ppx,theme:"black",onChange:(t,e)=>{var i;const n=this.container.getBoundingClientRect(),r=(null==(i=this.dmMaskStore.dmMaskSvgInfo)?void 0:i.hasActiveMask)&&!this.dmMaskStore.isPointFillInMask(t-n.x,e-n.y,n)?[]:this.menuStore.getDmByPosition({clientX:t,clientY:e,x:t-n.left,y:e-n.top}),o=this.menuList(r);return this.contextmenu.showFromOut(o,t,e),this.track.e("contextmenu_show"),null}})}menuList(t){var e,i;const a=this.ppx;let s="";for(let n=0;n<t.length;n++)this.blockStore.tempBlockList.includes(null==(i=null==(e=t[n])?void 0:e.textData)?void 0:i.dmid)&&(t.splice(n,1),n--);return t.length?(t.forEach(((t,e)=>{const{textData:i}=t,{mode:r,dmid:o,modeInfo:l,text:A,extra:c}=i,h=this.dmListStore.isMineDanmaku(i);let d="";if(!(null==c?void 0:c.isUpSlogan)&&!(null==i?void 0:i.hideInAuxList)){if(h&&o){if(this.dmListStore.canProtect(i)){
d+=this.dmListStore.dmidApplied[o]?`<span class="${a}-disabled">已申请</span>`:`<span data-action="apply" data-index="${e}">申请</span>`}d+=`<span data-action="recall" data-index="${e}">撤回</span>`}else o&&(d+=`<span data-action="block" data-index="${e}">屏蔽</span>`);s+=`<li class="${a}-dm">\n                    <div class="${a}-dm-text" data-action="scroll" data-index="${e}">${n.t`${A}`}</div>\n                    <div class="${a}-dm-btn">${d}</div>\n                </li>`}})),{id:"dm",html:s,click:e=>{const i=Number(e.dataset.index);t[i]?this.dmContextmenu(e,t[i].textData):this.track.e("dm_menu_none",i)}}):(this.configStore.localUrl||(s+='<li data-action="copyLink">复制视频地址（精准空降）</li>'),r.X.trident.alike||(s+='<li data-action="color">视频色彩调整</li>'),(0,o.b)()&&!this.wmpStore.isUseWasmPlayer(this.mediaStore.video)&&(s+='<li data-action="audio">视频音效调节</li>'),this.configStore.embeddedEnv||(s+='<li data-action="keyboard">快捷键说明</li>'),s+=`<li data-action="version">\n                更新历史 ${this.portStore.metadata.version}-${this.portStore.metadata.revision}\n            </li>`,s+='<li data-action="info">视频统计信息</li>',{id:"keyboard",html:s,click:t=>{this.playerContextmenu(t)}})}dmContextmenu(t,e){switch(t.dataset.action){case"copy":this.track.e("contextmenu_copy"),this.menuCopy(e,t);break;case"del":this.track.e("delete_image_danmaku"),this.dmDel(e);break;case"block":this.track.e("contextmenu_prevent",{dmid:e.dmid}),this.blockStore.add(e.uhash,2);break;case"apply":this.track.e("danmaku_protect_apply_contextmenu"),this.protect(e);break;case"recall":this.track.e("contextmenu_recall"),this.dmListStore.recall(e.dmid).then((({body:t})=>{0!==t.code&&this.showTooltip(t.message||"撤回失败，服务器出错")})).catch((t=>{this.showTooltip((null==t?void 0:t.message)||"撤回失败，服务器出错")}));break;case"scroll":const i=e.effect;if(20016===(null==i?void 0:i.id)&&(null==i?void 0:i.cid)&&this.configStore.cid!==(null==i?void 0:i.cid))return;this.track.e("contextmenu_search",e.dmid),this.dmSearch(e)}}menuCopy(t,e){A.T.copy(t.mode>6?"<? 高级弹幕 />":t.text,{container:this.container})?this.tooltipStore.create({target:e,name:"copy",title:"已复制",duration:1e3}):this.tooltipStore.create({target:e,name:"copy",title:"复制失败",duration:1e3})}dmDel(t){this.sendStore.cmdDel(t.dmid).then((({body:e})=>{0===e.code?this.dmListStore.setState({delDmid:[t.dmid]}):this.showTooltip(e.message||"删除失败")})).catch((t=>{this.showTooltip((null==t?void 0:t.message)||"删除失败")}))}protect(t){this.dmListStore.protect(t.dmid).then((({body:t})=>{this.showTooltip(t.message||"申请已提交，请耐心等待UP主审核！")})).catch((t=>{this.showTooltip(t.message||"申请失败，请重新申请")}))}dmSearch(t){this.dmListStore.setState({searchId:t.dmid})}playerContextmenu(t){const e=t.dataset.action;switch(this.menuStore.hideAllPopupPanel(),e){case"copyLink":this.copyLink(),this.track.e("copyLink_contextmenu");break;case"color":this.menuStore.setState({showColor:!0}),this.track.e("videoeffects_contextmenu");break;case"audio":this.menuStore.setState({showEffect:!0}),this.track.e("audioeffects_contextmenu");break;case"info":this.menuStore.setState({showVideoInfo:!0}),this.track.e("videomessage_contextmenu");break;case"keyboard":this.menuStore.setState({showKeyBoard:!0}),this.track.e("shortcut_intro");break;case"version":(0,c.x)("//www.bilibili.com/blackboard/webplayer_history.html#html5",this.rootPlayer),this.track.e("edition_contextmenu")}}copyLink(){let t=this.portStore.getCurrentTime().toFixed(1),{aid:e,bvid:i,p:n}=this.configStore;this.patchAdvStore.hasValidAdv&&(e=this.patchAdvStore.state.mainInfo.aid,i="",t=this.configStore.aid===e?this.mediaStore.video.currentTime.toFixed(1):"0");let r=`https://www.bilibili.com/video/${i||`av${e}`}`;const o=(0,a.Kz)(r,{key:"t",value:t},{key:"p",value:n>1?n:void 0});A.T.copy(o,{container:this.container})?this.tooltipStore.create({name:"copyLink",title:"已复制到剪贴板",duration:1e3}):this.tooltipStore.create({name:"copyLink-error",title:"复制失败",duration:1e3})}showTooltip(t){this.danmakuStore.tooltipCenter("menu_err",t)}onDispose(){var t;super.onDispose(),null==(t=this.contextmenu)||t.hide()}onDisconnect(){var t;super.onDisconnect(),null==(t=this.contextmenu)||t.dispose()}}},26063:function(t,e,i){"use strict";i.d(e,{J:function(){return g}});var n=i(5489),r=i(22451),o=i(46330),a=i(23529),s=i(99550),l=i(25360),A=i.n(l),c=i(89262),h=i(44127),d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?u(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&d(e,i,o),o};class g extends n.vq{constructor(){super(...arguments),this.mousedownX=0,this.mousedownY=0,this.startX=0,this.startY=0,this.triggerStateChange=!0,this.isDragging=!1}install(){super.install(),this.templateNodes=this.miniTemplate(this.ppx),this.dc.miniScreen=(0,r.EH)((()=>{this.uiStore.screenKind===n.dY.Mini?(this.templateNodes.container.parentElement||(this.nodes.videoArea.appendChild(this.templateNodes.container),this.addEvents()),(0,o.o)(this.templateNodes.container)):((0,a.N)(this.templateNodes.container),this.onDragEndHandler())})),this.dc.isTinyView=(0,r.U5)((()=>this.uiStore.isTinyView),(t=>{this.nodes.endingWrap.hidden=t}),{fireImmediately:!0}),this.dc.buffer=(0,r.EH)((()=>{this.templateNodes.buffer.style.transform=`scaleX(${this.progressStore.bufferRatio})`})),this.dc.tempo=(0,r.EH)((()=>{this.templateNodes.tempo.style.transform=`scaleX(${this.progressStore.currentRatio})`}))}miniTemplate(t){const e=`\n            <div class="${t}-mini-warp">\n                <div class="${t}-mini-close">${A()}</div>\n                <div class="${t}-mini-state">\n                    <div class="${t}-mini-state-play"></div>\n                    <div class="${t}-mini-state-pause"></div>\n                </div>\n                <div class="${t}-mini-progress">\n                    <div class="${t}-mini-progress-buffer"></div>\n                    <div class="${t}-mini-progress-tempo"></div>\n                </div>\n            </div>\n        `,i=(0,s.t)(e);return{container:i,close:i.querySelector(`.${t}-mini-close`),state:i.querySelector(`.${t}-mini-state`),buffer:i.querySelector(`.${t}-mini-progress-buffer`),tempo:i.querySelector(`.${t}-mini-progress-tempo`)}}addEvents(){this.templateNodes.close.addEventListener("click",this.onCloseClickHandler),this.templateNodes.state.addEventListener("click",this.onStateClickHandler),this.templateNodes.container.addEventListener("mousedown",this.onMousedownHandler)}onCloseClickHandler(t){t.stopPropagation(),this.portStore.reqStatue(null),this.track.e("mini_close")}onStateClickHandler(t){if(t.stopPropagation(),!this.triggerStateChange)return;let e;this.portStore.isPaused()?(e=1,this.portStore.play({initiator:n.hH.ManualAction}).catch(h.Z)):(e=0,this.portStore.pause({initiator:n.hH.ManualAction})),this.track.e("mini_play_state",e)}onMousedownHandler(t){t.preventDefault(),this.mousedownX=t.clientX,this.mousedownY=t.clientY,this.startX=t.clientX,this.startY=t.clientY,this.rootStore.window.addEventListener("mousemove",this.onMousemoveHandler),this.rootStore.window.addEventListener("mouseup",this.onMouseupHandler),this.isDragging=!0}onMousemoveHandler(t){const e=t.clientX-this.mousedownX,i=t.clientY-this.mousedownY;this.mousedownX=t.clientX,this.mousedownY=t.clientY;const n=this.uiStore.state.miniScreenRight-e,r=this.uiStore.state.miniScreenBottom-i;this.nodes.container.style.right=n+"px",this.nodes.container.style.bottom=r+"px",this.uiStore.setState({miniScreenRight:n,miniScreenBottom:r})}onMouseupHandler(t){this.startX!==t.clientX||this.startY!==t.clientY?this.triggerStateChange=!1:this.triggerStateChange=!0,this.onDragEndHandler()}removeEvents(){this.templateNodes.close.removeEventListener("click",this.onCloseClickHandler),this.templateNodes.state.removeEventListener("click",this.onStateClickHandler),this.templateNodes.container.removeEventListener("mousedown",this.onMousedownHandler)}onDragEndHandler(){this.isDragging&&(this.rootStore.window.removeEventListener("mousemove",this.onMousemoveHandler),this.rootStore.window.removeEventListener("mouseup",this.onMouseupHandler),this.isDragging=!1)}onDisconnect(){this.removeEvents()}}p([c.ZP],g.prototype,"onCloseClickHandler",1),
p([c.ZP],g.prototype,"onStateClickHandler",1),p([c.ZP],g.prototype,"onMousedownHandler",1),p([c.ZP],g.prototype,"onMousemoveHandler",1),p([c.ZP],g.prototype,"onMouseupHandler",1),p([c.ZP],g.prototype,"onDragEndHandler",1)},43199:function(t,e,i){"use strict";i.d(e,{I:function(){return g}});var n=i(5489),r=i(22451),o=i(54769),a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,d=(t,e,i)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,u=(t,e)=>{for(var i in e||(e={}))c.call(e,i)&&d(t,i,e[i]);if(A)for(var i of A(e))h.call(e,i)&&d(t,i,e[i]);return t},p=(t,e)=>s(t,l(e));class g extends n.vq{constructor(){super(...arguments),this.tag="NcTrack",this.timerCDNInfo=null,this.timerWaitDashPlayerInit=null}install(){super.install(),this.dc.pxStart=(0,r.U5)((()=>this.trackStore.state.pxStart),(t=>{t&&this.trackCDNBandwidthInfo()}),{fireImmediately:!0}),this.rootPlayer.on(n.p2.PLAYER_UNLOAD,(()=>{var t,e,i,r;if(this.kernelStore.dashKernel){const a=this.kernelStore.dashKernel.getCDNInfo(!0);a&&!Object.keys(a).every((t=>0===a[t]))&&this.track.o("cdn_bandwidth_info",p(u({},a),{video_dye_id:(null==(t=this.mpdStore.body)?void 0:t.videoDyeId)||""}));const s=this.kernelStore.dashKernel.getCDNInfoDetail(!0);s&&Object.keys(s).length>0&&this.track.o("cdn_bandwidth_info_detail",s);const l=this.kernelStore.dashKernel.getNCInfo&&this.kernelStore.dashKernel.getNCInfo(!0);l&&Object.keys(l).length>0&&this.track&&this.track.o("nc_response_info",l);const A=this.kernelStore.dashKernel.getRequestedInfoDetail&&this.kernelStore.dashKernel.getRequestedInfoDetail(!0);if(A){const t=200;if(this.track&&A.video&&A.video.list.length){const e=A.video.list,i=Math.ceil(e.length/t);for(let n=0;n<i;n++)Math.random()<=.01&&this.track.o("dash_requested_network_info",e.splice(0,t))}if(this.track&&A.audio&&A.audio.list.length){const e=A.audio.list,i=Math.ceil(e.length/t);for(let t=0;t<i;t++);}}const c=(null==(e=null==this?void 0:this.rootPlayer)?void 0:e.iid)?"bpNC_"+this.rootPlayer.iid:"bpNC",h=((null==(i=window[c])?void 0:i.getSdkStats)&&(null==(r=window[c])||r.getSdkStats()),this.kernelStore.dashKernel.getPerformanceInfo()),d=this.kernelStore.dashKernel.getVideoInfo();let g=p(u({},h),{gpu:o.g.renderer});if(d&&d.mediaInfo){const{mediaInfo:{fps:t,height:e,width:i,videoDataRate:n,audioDataRate:r,videoCodecID:o}}=d;g=p(u({},g),{height:e,width:i,vDataRate:n,aDataRate:r,videoFps:t,vCodecId:o})}this.track&&this.track.o(n.wM.O_Playback_Performance,g)}}))}trackCDNBandwidthInfo(){const t=this;this.timerWaitDashPlayerInit=window.setInterval((()=>{this.kernelStore.dashKernel&&(clearInterval(t.timerCDNInfo),t.timerCDNInfo=window.setInterval((()=>{var t,e,i,n;if(!(this&&this.kernelStore&&this.kernelStore.dashKernel))return;const r=this.kernelStore.dashKernel.getCDNInfo(!0);r&&!Object.keys(r).every((t=>0===r[t]))&&this.track.o("cdn_bandwidth_info",p(u({},r),{video_dye_id:(null==(t=this.mpdStore.body)?void 0:t.videoDyeId)||""}));const o=this.kernelStore.dashKernel.getNCInfo&&this.kernelStore.dashKernel.getNCInfo(!0);o&&Object.keys(o).length>0&&this.track&&this.track.o("nc_response_info",o);const a=(null==(e=null==this?void 0:this.rootPlayer)?void 0:e.iid)?"bpNC_"+this.rootPlayer.iid:"bpNC",s=((null==(i=window[a])?void 0:i.getSdkStats)&&(null==(n=window[a])||n.getSdkStats()),this.kernelStore.dashKernel.getCDNInfoDetail(!0));s&&Object.keys(s).length>0&&this.track.o("cdn_bandwidth_info_detail",s);this.kernelStore.dashKernel.getRequestedInfoDetail&&this.kernelStore.dashKernel.getRequestedInfoDetail(!0)}),3e5),clearInterval(this.timerWaitDashPlayerInit))}),1e3)}onDispose(){super.onDispose(),clearInterval(this.timerCDNInfo),clearInterval(this.timerWaitDashPlayerInit)}}},83554:function(t,e,i){"use strict";i.d(e,{H:function(){return f}});var n=i(5489),r=i(22451),o=i(46330),a=i(23529),s=i(99550),l=i(89262),A=i(47739),c=i.n(A),h=i(62022),d=i(51839),u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?p(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&u(e,i,o),o};class f extends n.vq{constructor(){super(...arguments),this.controlStatus={up:!1,down:!1,left:!1,right:!1,startTime:0,speedOfYaw:0,speedOfPitch:0},this.onMouseDown={x:0,y:0,pitch:0,yaw:0},this.textureUpdateTimer=0,this.controlAnimationTimer=0,this.control=this.controlTemplate(),this.activeToken=this.spx+"-active",this.keyEffected=!1}install(){super.install(),this.dc.render=(0,r.U5)((()=>!this.panoramaStore.state.disabled&&this.uiStore.state.isLoaded),(t=>{return e=this,i=null,n=function*(){if(t){const t=yield(0,d.rS)();this.renderer=new t.PanoramaRenderer(this.rootStore.nodes.videoPerch),this.panoramaStore.setState({attitude:this.renderer.attitude,fov:this.renderer.fov});try{this.renderer.attachTexture(this.mediaStore.video),this.control.parentElement||(this.rootStore.nodes.topLeftPanoram.appendChild(this.control),this.panoramaStore.setState({control:this.control})),this.dp.updateTexture=(0,r.U5)((()=>!(this.mediaStore.state.paused||this.mediaStore.state.buffering)&&this.panoramaStore.state.opened),(t=>{t?this.updateTexture():window.cancelAnimationFrame(this.textureUpdateTimer)}),{fireImmediately:!0}),this.dp.status=(0,r.U5)((()=>this.panoramaStore.state.opened),(t=>{t?(this.renderer.render(),this.mediaStore.video.style.opacity="0",this.mediaStore.video.style.visibility="hidden",(0,o.o)(this.nodes.topLeftPanoram,this.control,this.renderer.renderDom),this.renderStartTime=this.lagStartTime=0,this.lagTrackReported=!1):(this.mediaStore.video.style.opacity="",this.mediaStore.video.style.visibility="",(0,a.N)(this.nodes.topLeftPanoram,this.control,this.renderer.renderDom),this.panoramaStore.setState({isActive:!1}))}),{fireImmediately:!0}),this.dp.isActive=(0,r.U5)((()=>this.panoramaStore.state.isActive),(t=>{t?this.control.classList.add(this.activeToken):this.control.classList.remove(this.activeToken)}));const t=(0,h.Z)((()=>this.track.e("panoramic_mousewheel")),1e3,{leading:!1});this.dp.fov=(0,r.U5)((()=>this.panoramaStore.state.fov),(e=>{isNaN(e)||(this.renderer.fov=this.panoramaStore.state.fov,t())})),this.dp.resize=(0,r.U5)((()=>this.uiStore.state.videoNodeWidth),(t=>{t&&this.renderer.resize({w:this.uiStore.state.videoNodeWidth,h:this.uiStore.state.videoNodeHeight})}),{fireImmediately:!0}),this.dp.contextLost=(0,r.gx)((()=>this.panoramaStore.state.contextLost),(()=>{this.toastStore.create({text:"渲染崩溃> <，请启动浏览器硬件加速模式后进行重试",manualMode:!1,timeStamp:5e3}),this.track.e("webglcontextlost"),this.renderDispose(!0)})),this.addEventsListener()}catch(t){}}else this.renderDispose()},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}),{fireImmediately:!0})}renderDispose(t=!1){var e,i;this.keyEffected=!1,this.mediaStore.video.style.opacity="",this.mediaStore.video.style.visibility="",this.renderer&&this.renderer.dispose(),(null==(i=null==(e=this.renderer)?void 0:e.renderDom)?void 0:i.parentElement)&&this.renderer.renderDom.parentElement.removeChild(this.renderer.renderDom),this.control.parentElement&&this.control.parentElement.removeChild(this.control),this.removeEventsListener(),t&&(this.dp.quality&&this.dp.quality(),this.dp.updateTexture&&this.dp.updateTexture(),this.dp.status&&this.dp.status(),this.dp.isActive&&this.dp.isActive(),this.dp.fov&&this.dp.fov(),this.dp.resize&&this.dp.resize())}updateTexture(){this.panoramaStore.state.opened&&!this.mediaStore.state.paused&&(this.renderStartTime&&!this.lagTrackReported&&this.detectLag(),this.renderStartTime=Date.now(),this.renderer.render(),this.textureUpdateTimer=window.requestAnimationFrame((()=>{this.updateTexture()})))}detectLag(){const t=Date.now();1e3/(t-this.renderStartTime)<10?this.lagStartTime?t-this.lagStartTime>1e3&&(this.lagTrackReported=!0,this.track.e("panoramic_lag")):this.lagStartTime=t:this.lagStartTime=0}controlTemplate(){
const t=`\n            <div class="${this.ppx}-panorama">\n                <span class="${this.ppx}-panorama-up"><span class="${this.cpx}-svg-icon">${c()}</span></span>\n                <span class="${this.ppx}-panorama-right"><span class="${this.cpx}-svg-icon">${c()}</span></span>\n                <span class="${this.ppx}-panorama-down"><span class="${this.cpx}-svg-icon">${c()}</span></span>\n                <span class="${this.ppx}-panorama-left"><span class="${this.cpx}-svg-icon">${c()}</span></span>\n            </div>\n        `;return(0,s.t)(t)}rotateWithInSingle(t,e){let i=!1;this.controlStatus[t]!==e&&(i=!0),this.controlStatus[t]=e,i&&e&&(this.controlStatus.startTime=performance.now(),this.controlAnimate())}addEventsListener(){this.control.addEventListener("mousedown",this.onControlMouseDownHandler),this.renderer.renderDom.addEventListener("mousedown",this.onRenderDomMouseDownHandler),this.renderer.renderDom.addEventListener("mousewheel",this.onMouseWheelHandler),this.renderer.renderDom.addEventListener("DOMMouseScroll",this.onMouseWheelHandler),this.rootStore.window.addEventListener("keydown",this.onKeyDownHandler),this.renderer.renderDom.addEventListener("webglcontextlost",this.onWebglcontextlostHandler),this.rootPlayer.on(n.p2.MEDIA_SEEKED,this.onMediaSeekedHandler),this.rootPlayer.on(n.p2.PLAYER_MEDIA_CHANGED,this.onMediaChangedHandler)}removeEventsListener(){var t;(null==(t=this.renderer)?void 0:t.renderDom)&&(this.renderer.renderDom.removeEventListener("mousedown",this.onRenderDomMouseDownHandler),this.renderer.renderDom.removeEventListener("webglcontextlost",this.onWebglcontextlostHandler),this.renderer.renderDom.removeEventListener("mousewheel",this.onMouseWheelHandler),this.renderer.renderDom.removeEventListener("DOMMouseScroll",this.onMouseWheelHandler)),this.control.removeEventListener("mousedown",this.onControlMouseDownHandler),this.rootStore.window.removeEventListener("keydown",this.onKeyDownHandler),window.cancelAnimationFrame(this.textureUpdateTimer),this.rootPlayer.off(n.p2.MEDIA_SEEKED,this.onMediaSeekedHandler),this.rootPlayer.off(n.p2.PLAYER_MEDIA_CHANGED,this.onMediaChangedHandler)}onControlMouseDownHandler(t){if(!this.panoramaStore.state.opened)return;if(0!==t.button)return;t.stopPropagation(),window.cancelAnimationFrame(this.controlAnimationTimer),this.controlStatus.speedOfPitch=this.controlStatus.speedOfYaw=0;const e=t.target;let i;e.closest(`.${this.ppx}-panorama-up`)?i="up":e.closest(`.${this.ppx}-panorama-right`)?i="right":e.closest(`.${this.ppx}-panorama-down`)?i="down":e.closest(`.${this.ppx}-panorama-left`)&&(i="left"),i&&this.rotateWithInSingle(i,!0);const n=this;this.rootStore.window.addEventListener("mouseup",(function t(){i?(n.rotateWithInSingle(i,!1),n.track.e("panoramic_rotate",i)):(n.renderer.reset(),n.panoramaStore.setState({attitude:n.renderer.attitude,fov:n.renderer.fov}),n.track.e("panoramic_reset")),n.rootStore.window.removeEventListener("mouseup",t)}))}onRenderDomMouseDownHandler(t){this.panoramaStore.state.opened&&0===t.button&&(t.stopPropagation(),t.preventDefault(),window.cancelAnimationFrame(this.controlAnimationTimer),this.controlStatus.speedOfPitch=this.controlStatus.speedOfYaw=0,this.onMouseDown={x:t.clientX,y:t.clientY,pitch:this.panoramaStore.attitude.pitch,yaw:this.panoramaStore.attitude.yaw},this.isUserInteraction=!0,this.latestInteraction=performance.now(),this.rootStore.window.addEventListener("mousemove",this.onMouseMoveHandler),this.rootStore.window.addEventListener("mouseup",this.onMouseUpHandler),document.addEventListener("mouseleave",this.onMouseUpHandler))}onMouseWheelHandler(t){const e=t.target,i=this.ctrlStore.state.containerHover;if(t&&i&&this.panoramaStore.state.isActive){if(e&&(this.nodes.topWrap.contains(e)||this.nodes.controlWrap.contains(e)))return;t.preventDefault();const i=t.wheelDelta,n=t.detail&&-t.detail,r=i||n,o=this.panoramaStore.state.fov+.05*r;o>=40&&o<=100&&this.panoramaStore.setState({fov:o})}}onMouseMoveHandler(t){if(!this.isUserInteraction)return;t.preventDefault(),this.latestInteraction=performance.now();const e=(Math.atan(this.onMouseDown.x/this.uiStore.state.videoAreaWidth)-Math.atan(t.clientX/this.uiStore.state.videoAreaWidth))*(180/Math.PI)*(this.renderer.fov/90)*3+this.onMouseDown.pitch;this.controlStatus.speedOfPitch=(e-this.panoramaStore.attitude.pitch)%360*.45;let i=(Math.atan(t.clientY/this.uiStore.state.videoAreaHeight)-Math.atan(this.onMouseDown.y/this.uiStore.state.videoAreaHeight))*(180/Math.PI)*(this.renderer.fov/90)+this.onMouseDown.yaw;i=Math.max(-90,Math.min(90,i)),this.controlStatus.speedOfYaw=(i-this.panoramaStore.attitude.yaw)%360*.2,this.panoramaStore.setState({attitude:{pitch:e,yaw:i}}),this.renderer.attitude=this.panoramaStore.attitude}onMouseUpHandler(t){this.isUserInteraction&&((Math.abs(t.clientX-this.onMouseDown.x)>=20||Math.abs(t.clientY-this.onMouseDown.y)>=20)&&(this.panoramaStore.setState({gesture:!0}),this.track.e("panoramic_mousemove"),performance.now()-this.latestInteraction>15?this.controlStatus.speedOfPitch=this.controlStatus.speedOfYaw=0:this.controlAnimate()),this.isUserInteraction=!1),this.rootStore.window.removeEventListener("mousemove",this.onMouseMoveHandler),this.rootStore.window.removeEventListener("mouseup",this.onMouseUpHandler),document.removeEventListener("mouseleave",this.onMouseUpHandler)}onKeyDownHandler(t){if(!t||!t.keyCode)return;if(t.metaKey||t.altKey)return;if(t.ctrlKey||t.shiftKey)return;if(this.mediaStore.video.controls)return;if(this.rootPlayer.disabled.shortcut)return;if(this.portStore.hasEditableFocus())return;if(!this.panoramaStore.state.opened)return;if(this.keyEffected)return;let e;if(window.cancelAnimationFrame(this.controlAnimationTimer),this.controlStatus.speedOfPitch=this.controlStatus.speedOfYaw=0,this.panoramaStore.state.isActive)switch(t.keyCode){case 37:case 100:t.preventDefault(),e="left";break;case 39:case 102:t.preventDefault(),e="right";break;case 38:case 104:t.preventDefault(),e="up";break;case 40:case 98:t.preventDefault(),e="down"}if(this.panoramaStore.shortcutPrior)switch(t.keyCode){case 65:t.preventDefault(),e="left";break;case 68:t.preventDefault(),e="right";break;case 87:t.preventDefault(),e="up";break;case 83:t.preventDefault(),e="down"}e&&!this.keyEffected&&(this.keyEffected=!0,this.rotateWithInSingle(e,!0));const i=this;this.rootStore.window.addEventListener("keyup",(function n(){e&&(i.rotateWithInSingle(e,!1),i.track.e("panoramic_keyboard",t.key),i.keyEffected=!1),i.rootStore.window.removeEventListener("keyup",n)}))}onWebglcontextlostHandler(){this.panoramaStore.setState({contextLost:!0,isActive:!1})}onMediaSeekedHandler(){var t;null==(t=this.renderer)||t.render()}onMediaChangedHandler(){var t;null==(t=this.renderer)||t.attachTexture(this.mediaStore.video)}controlAnimate(){this.renderer.attitude=this.panoramaStore.attitude;const t=Object.assign({},this.renderer.attitude),e=this.panoramaStore.attitude,i=this.controlStatus;if(i.up||i.left||i.down||i.right||Math.abs(i.speedOfPitch)>.01||Math.abs(i.speedOfYaw)>.01){const n=performance.now();i.startTime||(i.startTime=n);const r=Math.min((n-i.startTime)/5,15);i.startTime=n,i.up&&(e.yaw+=(.8*i.speedOfYaw+.2)*r),i.down&&(e.yaw+=(.8*i.speedOfYaw-.2)*r),i.left&&(e.pitch+=(.8*i.speedOfPitch-.2)*r),i.right&&(e.pitch+=(.8*i.speedOfPitch+.2)*r),r>0&&(i.up||i.down||(e.yaw+=i.speedOfYaw*r*.85),i.left||i.right||(e.pitch+=i.speedOfPitch*r*.85),i.speedOfYaw=Math.min(5,Math.max(.8*i.speedOfYaw+(e.yaw-t.yaw)/r*.2,-5)),i.speedOfPitch=Math.min(5,Math.max(.8*i.speedOfPitch+(e.pitch-t.pitch)/r*.2,-5))),i.left&&i.right&&(i.speedOfPitch=0),i.up&&i.down&&(i.speedOfYaw=0),e.yaw=Math.max(-90,Math.min(90,e.yaw)),this.controlAnimationTimer=window.requestAnimationFrame((()=>{this.controlAnimate()}))}else window.cancelAnimationFrame(this.controlAnimationTimer)}}g([l.ZP],f.prototype,"onControlMouseDownHandler",1),g([l.ZP],f.prototype,"onRenderDomMouseDownHandler",1),g([l.ZP],f.prototype,"onMouseWheelHandler",1),g([l.ZP],f.prototype,"onMouseMoveHandler",1),g([l.ZP],f.prototype,"onMouseUpHandler",1),g([l.ZP],f.prototype,"onKeyDownHandler",1),g([l.ZP],f.prototype,"onWebglcontextlostHandler",1),g([l.ZP],f.prototype,"onMediaSeekedHandler",1),
g([l.ZP],f.prototype,"onMediaChangedHandler",1)},12326:function(t,e,i){"use strict";i.d(e,{X:function(){return l},j:function(){return s}});var n=i(5489),r=i(22451),o=i(80388),a=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const s="pcdnLoader2";class l extends n.vq{constructor(){super(...arguments),this.tag="PCDNLoaderLoad"}install(){super.install(),this.dc.init=(0,r.U5)((()=>{var t;return(null==(t=this.userStore.info)?void 0:t.fawkes)&&this.mediaStore.state.duration}),(t=>{window[s]||t&&this.initPCDNLoader(this.userStore.info).catch(A)}),{fireImmediately:!0})}initPCDNLoader(t){return a(this,null,(function*(){var e;if(t.interaction)return;if(!(null==(e=t.fawkes)?void 0:e.config_version))return;const i=new o.Z(String(t.fawkes.config_version),"prod","pcdnzip"),r=this.configStore.channelKind===n.u5.PC_APP,a=r?"pc_app_loader_version":"web_loader_version",s=r?"pc_app_loader_grey_test_percentage":"web_loader_grey_test_percentage",l=[this.getLocalLimitation.bind(this,i,a),this.getVideoLimitation.bind(this,i),this.getMidLimitation.bind(this,i,null==t?void 0:t.mid),this.getGreyTestLimitation.bind(this,i,s),this.endLimitation.bind(this,i,a)];for(const t of l){const{banned:e,version:n}=yield t().catch((()=>({banned:!1,version:null})));if(!0===e)return;if(!1===e&&n)return void this.loadPCDNLoader(n,i)}}))}getVideoLimitation(t){return a(this,null,(function*(){const e=JSON.parse(yield t.getConfig("reward_pcdn_loader_policy.aid_bl")),i=JSON.parse(yield t.getConfig("reward_pcdn_loader_policy.cid_bl"));return(null==e?void 0:e.includes(this.configStore.aid))||(null==i?void 0:i.includes(this.configStore.cid))?{banned:!0}:{banned:!1}}))}getLocalLimitation(t,e){return a(this,null,(function*(){const i=JSON.parse(localStorage.getItem("pcdn_loader_config"));if("[object Object]"===Object.prototype.toString.call(i)){if(0===i.loaderEnabled||!1===i.loaderEnabled)return{banned:!0};if(1===i.loaderEnabled||!0===i.loaderEnabled){if("string"==typeof i.loaderVersion&&""!==i.loaderVersion)return{banned:!1,version:i.loaderVersion};const{version:n}=yield this.endLimitation(t,e);return{banned:!1,version:n}}}return{banned:!1}}))}getMidLimitation(t,e){return a(this,null,(function*(){const i=JSON.parse(yield t.getConfig("reward_pcdn_loader_policy.mid_bl"));return(null==i?void 0:i.includes(yield this.sha256(e)))?{banned:!0}:{banned:!1}}))}getGreyTestLimitation(t,e){return a(this,null,(function*(){const i=JSON.parse(yield t.getConfig(`reward_pcdn_loader_policy.${e}`));return"number"!=typeof i||i<0?{banned:!1}:Math.random()>=i?{banned:!0}:{banned:!1}}))}endLimitation(t,e){return a(this,null,(function*(){return{banned:!1,version:yield t.getConfig(`reward_pcdn_loader_policy.${e}`)}}))}loadPCDNLoader(t,e){if(window.PCDNLoader)return void this.createPCDNLoader(e);const i=`//s1.hdslb.com/bfs/static/pcdn-loader/reward-pcdn-loader-${t}.min.js`;this.loadScript({url:i,success:()=>{this.createPCDNLoader(e)}},window)}sha256(t){return a(this,null,(function*(){const e=(new TextEncoder).encode(t),i=yield crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(i)).map((t=>t.toString(16).padStart(2,"0"))).join("")}))}createPCDNLoader(t){window[s]||t.getConfig().then((t=>{const e={aid:this.configStore.aid,cid:this.configStore.cid,bvid:this.configStore.bvid,isPCAPP:this.configStore.channelKind===n.u5.PC_APP,fawkesConfig:t};window[s]=new window.PCDNLoader(e)})).catch(A)}loadScript(t,e){const i=e||window,n=i.document.createElement("script");return n.onload=t.success||A,n.onerror=t.error||A,n.src=t.url,i.document.head.appendChild(n),n}onDispose(){super.onDispose()}}function A(){}},54734:function(t,e,i){"use strict";i.d(e,{L:function(){return h}});var n=i(23529),r=i(46330),o=i(99149),a=i(22451),s=i(5489),l=i(89262),A=Object.defineProperty,c=Object.getOwnPropertyDescriptor;class h extends s.vq{constructor(){super(...arguments),this.displaying=!1,this.timer=-1}install(){super.install(),this.dc.recordInfo=(0,a.U5)((()=>this.mpdStore.body&&this.mpdStore.body.recordInfo&&this.mpdStore.cidSettled),(()=>{this.mpdStore.body&&this.mpdStore.body.recordInfo&&this.mpdStore.cidSettled&&this.bindShow()}),{fireImmediately:!0})}bindShow(){this.shouldShow()&&this.show(),window.clearInterval(this.timer),this.timer=window.setInterval(this.onTimeUpdate,100)}onTimeUpdate(){this.shouldShow()?this.show():this.hide()}shouldShow(){return this.patchAdvStore.hasValidAdv?this.mpdStore.body.recordInfo&&this.mediaStore.video.currentTime>=.1&&this.configStore.cid===this.patchAdvStore.state.mainInfo.cid&&this.mediaStore.video.currentTime<=5:this.mpdStore.body.recordInfo&&this.portStore.getCurrentTime()<=5}hide(){this.displaying&&this.element&&this.element.node&&((0,n.N)(this.element.node),this.displaying=!1)}show(){this.displaying||(this.init||this.initUI(),this.displaying=!0,(0,r.o)(this.element.node))}initUI(){this.init=!0;const t=this.ppx,e=this.nodes.videoArea;e.appendChild(this.renderFragment()),this.element={node:e.querySelector(`.${t}-record-item-wrap`)}}renderFragment(){const t=this.ppx,{record:e,recordIcon:i}=this.mpdStore.body.recordInfo,n=`\n        <div class="${t}-record-item-wrap">\n        ${i?`\n            <div class="${t}-record-item-icon-wrap">\n                <img class="${t}-record-item-icon" src="${i}" />\n                <div class="${t}-record-item-text">\n                    ${e}\n                </div>\n            </div>\n            `:` \n            <div class="${t}-record-item-pure">\n                ${e}\n             </div>\n            `}\n        </div>`;return(0,o.i)(n)}destroyUI(){this.element&&this.element.node&&(this.element.node.parentNode.removeChild(this.element.node),this.element=null),this.init=!1}onDispose(){this.destroyUI(),this.displaying=!1,window.clearInterval(this.timer),this.timer=-1}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?c(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&A(e,i,o)})([l.ZP],h.prototype,"onTimeUpdate",1)},49929:function(t,e,i){"use strict";i.d(e,{a:function(){return Q}});var n=i(5489),r=i(99550),o=i(25360),a=i.n(o),s=i(54800),l=i.n(s),A=i(98611),c=i.n(A),h=i(86346),d=i.n(h),u=i(23596),p=i.n(u),g=i(92452);class f extends g.eV{constructor(){super(...arguments),this.tag="HttpShare",this.url="//api.bilibili.com/x/web-interface/share/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,method:"POST",data:t,withCredentials:!0})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var m=i(30905);var y=function(t){const e=function(){const t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))}();function i(e,i,n,r){const o={},a=Object.assign({},t(n,i));a.addData(e),a.make(),r=r||0;const s=a.getModuleCount(),l=a.getModuleCount()+2*r;return o.text=e,o.level=i,o.version=n,o.moduleCount=l,o.isDark=function(t,e){return e-=r,!((t-=r)<0||t>=s||e<0||e>=s)&&a.isDark(t,e)},o.addBlank=function(t,e,i,n){const r=o.isDark,a=1/l;o.isDark=function(o,s){const l=s*a,A=o*a,c=l+a,h=A+a;return r(o,s)&&(t>c||l>i||e>h||A>n)}},o}function n(t,e,n,r,o){n=Math.max(1,n||1),r=Math.min(40,r||40);for(let a=n;a<=r;a+=1)try{return i(t,e,a,o)}catch(t){}}function r(t,e,i){i.background&&i.background.tagName&&"IMG"===i.background.tagName?e.drawImage(i.background,0,0,i.size,i.size):i.background&&(e.fillStyle=i.background,e.fillRect(i.left,i.top,i.size,i.size));const n=i.mode;1===n||2===n?function(t,e,i){const n=i.size,r=`bold ${i.mSize*n}px ${i.fontname}`,o=document.createElement("canvas").getContext("2d");o.font=r;const a=o.measureText(i.label).width,s=i.mSize,l=a/n,A=(1-l)*i.mPosX,c=(1-s)*i.mPosY,h=A+l,d=c+s,u=.01;1===i.mod?t.addBlank(0,c-u,n,d+u):t.addBlank(A-u,c-u,h+u,d+u),e.fillStyle=i.fontcolor,e.font=r,e.fillText(i.label,A*n,c*n+.75*i.mSize*n)}(t,e,i):3!==n&&4!==n||function(t,e,i){const n=i.size,r=i.image.naturalWidth||1,o=i.image.naturalHeight||1,a=i.mSize,s=a*r/o,l=(1-s)*i.mPosX,A=(1-a)*i.mPosY,c=l+s,h=A+a,d=.01
;3===i.mode?t.addBlank(0,A-d,n,h+d):t.addBlank(l-d,A-d,c+d,h+d),e.drawImage(i.image,l*n,A*n,s*n,a*n)}(t,e,i)}function o(t,e,i,n,r,o,a,s){t.isDark(a,s)&&e.rect(n,r,o,o)}function a(t,e,i,n,r,o,a,s){const l=t.isDark,A=n+o,c=r+o,h=i.radius*o,d=a-1,u=a+1,p=s-1,g=s+1,f=l(a,s),m=l(d,p),y=l(d,s),b=l(d,g),v=l(a,g),E=l(u,g),I=l(u,s),C=l(u,p),B=l(a,p);var w,x,Q,S,k,D,_,R,M,T;f?(w=e,x=n,Q=r,S=A,k=c,D=h,R=!y&&!v,M=!I&&!v,T=!I&&!B,(_=!y&&!B)?w.moveTo(x+D,Q):w.moveTo(x,Q),R?(w.lineTo(S-D,Q),w.arcTo(S,Q,S,k,D)):w.lineTo(S,Q),M?(w.lineTo(S,k-D),w.arcTo(S,k,x,k,D)):w.lineTo(S,k),T?(w.lineTo(x+D,k),w.arcTo(x,k,x,Q,D)):w.lineTo(x,k),_?(w.lineTo(x,Q+D),w.arcTo(x,Q,S,Q,D)):w.lineTo(x,Q)):function(t,e,i,n,r,o,a,s,l,A){a&&(t.moveTo(e+o,i),t.lineTo(e,i),t.lineTo(e,i+o),t.arcTo(e,i,e+o,i,o)),s&&(t.moveTo(n-o,i),t.lineTo(n,i),t.lineTo(n,i+o),t.arcTo(n,i,n-o,i,o)),l&&(t.moveTo(n-o,r),t.lineTo(n,r),t.lineTo(n,r-o),t.arcTo(n,r,n-o,r,o)),A&&(t.moveTo(e+o,r),t.lineTo(e,r),t.lineTo(e,r-o),t.arcTo(e,r,e+o,r,o))}(e,n,r,A,c,h,y&&B&&m,y&&v&&b,I&&v&&E,I&&B&&C)}function s(t,e){const i=n(e.text,e.ecLevel,e.minVersion,e.maxVersion,e.quiet);if(!i)return null;t.dataset.qrcode=i;const s=t.getContext("2d");return r(i,s,e),function(t,e,i){const n=t.moduleCount,r=i.size/n;let s,l,A=o;for(i.radius>0&&i.radius<=.5&&(A=a),e.beginPath(),s=0;s<n;s+=1)for(l=0;l<n;l+=1)A(t,e,i,i.left+l*r,i.top+s*r,r,s,l);if(i.fill.tagName&&"IMG"===i.fill.tagName){e.strokeStyle="rgba(0,0,0,0.5)",e.lineWidth=2,e.stroke();const t=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",e.fill(),e.globalCompositeOperation=t,e.clip(),e.drawImage(i.fill,0,0,i.size,i.size),e.restore()}else e.fillStyle=i.fill,e.fill()}(i,s,e),t}function l(t){const e=document.createElement("canvas");return e.setAttribute("width",t.size),e.setAttribute("height",t.size),s(e,t)}function A(t){return e&&"canvas"===t.render?l(t):e&&"image"===t.render?function(t){return document.createElement("img").setAttribute("src",l(t).toDataURL("image/png"))}(t):function(t){const e=n(t.text,t.ecLevel,t.minVersion,t.maxVersion,t.quiet);if(!e)return null;const i=t.size,r=t.background,o=Math.floor,a=e.moduleCount,s=o(i/a),l=o(.5*(i-s*a)),A=document.createElement("div");let c,h;const d={position:"relative",left:0,top:0,padding:0,margin:0,width:i,height:i},u={position:"absolute",padding:0,margin:0,width:s,height:s,"background-color":t.fill};for(Object.keys(d).every((t=>(A.style[t]=d[t],A.style[t]))),A.dataset.qrcode=e,r&&(A.style["background-color"]=r),c=0;c<a;c+=1)for(h=0;h<a;h+=1)if(e.isDark(c,h)){const t=Object.assign({},u,{left:l+h*s,top:l+c*s}),e=document.createElement("div");Object.keys(t).every((i=>(e.style[i]=t[i],A.style[i]))),A.appendChild(e)}return A}(t)}const c={render:"canvas",minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};return function(t,e){const i=Object.assign({},c,"object"==typeof e?e:{text:e});if("length"in t)for(let e=0;e<t.length;e++)"canvas"===t[e].nodeName.toLowerCase()?s(t[e],i):t[e].appendChild(A(i));else{"canvas"===t.nodeName.toLowerCase()?s(t,i):t.appendChild(A(i))}}}(function(){const t=function(){const t=function(t,e){const i=t,n=o[e];let r=null,a=0,s=null;const l=[],A={},c=function(t,e){a=4*i+17,r=function(t){const e=new Array(t);for(let i=0;i<t;i+=1){e[i]=new Array(t);for(let n=0;n<t;n+=1)e[i][n]=null}return e}(a),h(0,0),h(a-7,0),h(0,a-7),u(),d(),v(t,e),i>=7&&g(t),null==s&&(s=I(i,n,l)),E(s,e)},h=function(t,e){for(let i=-1;i<=7;i+=1)if(!(t+i<=-1||a<=t+i))for(let n=-1;n<=7;n+=1)e+n<=-1||a<=e+n||(r[t+i][e+n]=0<=i&&i<=6&&(0===n||6===n)||0<=n&&n<=6&&(0===i||6===i)||2<=i&&i<=4&&2<=n&&n<=4)},d=function(){for(let t=8;t<a-8;t+=1)null==r[t][6]&&(r[t][6]=t%2==0);for(let t=8;t<a-8;t+=1)null==r[6][t]&&(r[6][t]=t%2==0)},u=function(){const t=p.getPatternPosition(i);for(let e=0;e<t.length;e+=1)for(let i=0;i<t.length;i+=1){const n=t[e],o=t[i];if(null==r[n][o])for(let t=-2;t<=2;t+=1)for(let e=-2;e<=2;e+=1)r[n+t][o+e]=-2===t||2===t||-2===e||2===e||0===t&&0===e}},g=function(t){const e=p.getBCHTypeNumber(i);for(let i=0;i<18;i+=1){const n=!t&&1==(e>>i&1);r[Math.floor(i/3)][i%3+a-8-3]=n}for(let i=0;i<18;i+=1){const n=!t&&1==(e>>i&1);r[i%3+a-8-3][Math.floor(i/3)]=n}},v=function(t,e){const i=n<<3|e,o=p.getBCHTypeInfo(i);for(let e=0;e<15;e+=1){const i=!t&&1==(o>>e&1);e<6?r[e][8]=i:e<8?r[e+1][8]=i:r[a-15+e][8]=i}for(let e=0;e<15;e+=1){const i=!t&&1==(o>>e&1);e<8?r[8][a-e-1]=i:e<9?r[8][15-e-1+1]=i:r[8][15-e-1]=i}r[a-8][8]=!t},E=function(t,e){let i=-1,n=a-1,o=7,s=0;const l=p.getMaskFunction(e);for(let e=a-1;e>0;e-=2)for(6===e&&(e-=1);;){for(let i=0;i<2;i+=1)if(null==r[n][e-i]){let a=!1;s<t.length&&(a=1==(t[s]>>>o&1));l(n,e-i)&&(a=!a),r[n][e-i]=a,o-=1,-1===o&&(s+=1,o=7)}if(n+=i,n<0||a<=n){n-=i,i=-i;break}}},I=function(t,e,i){const n=m.getRSBlocks(t,e),r=y();for(let e=0;e<i.length;e+=1){const n=i[e];r.put(n.getMode(),4),r.put(n.getLength(),p.getLengthInBits(n.getMode(),t)),n.write(r)}let o=0;for(let t=0;t<n.length;t+=1)o+=n[t].dataCount;if(r.getLengthInBits()>8*o)throw new Error(`code length overflow. (${r.getLengthInBits()}>${8*o})`);for(r.getLengthInBits()+4<=8*o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*o||(r.put(236,8),r.getLengthInBits()>=8*o));)r.put(17,8);return function(t,e){let i=0,n=0,r=0;const o=new Array(e.length),a=new Array(e.length);for(let s=0;s<e.length;s+=1){const l=e[s].dataCount,A=e[s].totalCount-l;n=Math.max(n,l),r=Math.max(r,A),o[s]=new Array(l);for(let e=0;e<o[s].length;e+=1)o[s][e]=255&t.getBuffer()[e+i];i+=l;const c=p.getErrorCorrectPolynomial(A),h=f(o[s],c.getLength()-1).mod(c);a[s]=new Array(c.getLength()-1);for(let t=0;t<a[s].length;t+=1){const e=t+h.getLength()-a[s].length;a[s][t]=e>=0?h.getAt(e):0}}let s=0;for(let t=0;t<e.length;t+=1)s+=e[t].totalCount;const l=new Array(s);let A=0;for(let t=0;t<n;t+=1)for(let i=0;i<e.length;i+=1)t<o[i].length&&(l[A]=o[i][t],A+=1);for(let t=0;t<r;t+=1)for(let i=0;i<e.length;i+=1)t<a[i].length&&(l[A]=a[i][t],A+=1);return l}(r,n)};return A.addData=function(t){const e=b(t);l.push(e),s=null},A.isDark=function(t,e){if(t<0||a<=t||e<0||a<=e)throw new Error(`${t},${e}`);return r[t][e]},A.getModuleCount=function(){return a},A.make=function(){c(!1,function(){let t=0,e=0;for(let i=0;i<8;i+=1){c(!0,i);const n=p.getLostPoint(A);(0===i||t>n)&&(t=n,e=i)}return e}())},A.createTableTag=function(t,e){t=t||2;let i="";i+='<table style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=` padding: 0px; margin: ${e=void 0===e?4*t:e}px;`,i+='">',i+="<tbody>";for(let e=0;e<A.getModuleCount();e+=1){i+="<tr>";for(let n=0;n<A.getModuleCount();n+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=` width: ${t}px;`,i+=` height: ${t}px;`,i+=" background-color: ",i+=A.isDark(e,n)?"#000000":"#ffffff",i+=";",i+='"/>';i+="</tr>"}return i+="</tbody>",i+="</table>",i},A.createImgTag=function(t,e){t=t||2,e=void 0===e?4*t:e;const i=A.getModuleCount()*t+2*e,n=e,r=i-e;return C(i,i,((e,i)=>{if(n<=e&&e<r&&n<=i&&i<r){const r=Math.floor((e-n)/t),o=Math.floor((i-n)/t);return A.isDark(o,r)?0:1}return 1}))},{addData:A.addData,isDark:A.isDark,getModuleCount:A.getModuleCount,make:A.make,createTableTag:A.createTableTag,createImgTag:A.createImgTag}};t.stringToBytes=function(t){const e=[];for(let i=0;i<t.length;i+=1){const n=t.charCodeAt(i);e.push(255&n)}return e},t.createStringToBytes=function(t,e){const i=function(){const i=E(t),n=function(){const t=i.read();if(-1===t)throw new Error;return t};let r=0;const o={};for(;;){const t=i.read();if(-1===t)break;const e=n(),a=n()<<8|n();o[String.fromCharCode(t<<8|e)]=a,r+=1}if(r!==e)throw new Error(`${r}!=${e}`);return o}(),n="?".charCodeAt(0);return function(t){const e=[];for(let r=0;r<t.length;r+=1){const o=t.charCodeAt(r);if(o<128)e.push(o);else{const o=i[t.charAt(r)];"number"==typeof o?(255&o)===o?e.push(o):(e.push(o>>>8),e.push(255&o)):e.push(n)}}return e}};const e=1,i=2,n=4,r=8,o={L:1,M:0,Q:3,H:2},a=0,s=1,l=2,A=3,c=4,h=5,d=6,u=7,p=function(){
const t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],o=1335,p=7973,m={},y=function(t){let e=0;for(;0!==t;)e+=1,t>>>=1;return e};return m.getBCHTypeInfo=function(t){let e=t<<10;for(;y(e)-y(o)>=0;)e^=o<<y(e)-y(o);return 21522^(t<<10|e)},m.getBCHTypeNumber=function(t){let e=t<<12;for(;y(e)-y(p)>=0;)e^=p<<y(e)-y(p);return t<<12|e},m.getPatternPosition=function(e){return t[e-1]},m.getMaskFunction=function(t){switch(t){case a:return function(t,e){return(t+e)%2==0};case s:return function(t){return t%2==0};case l:return function(t,e){return e%3==0};case A:return function(t,e){return(t+e)%3==0};case c:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case h:return function(t,e){return t*e%2+t*e%3==0};case d:return function(t,e){return(t*e%2+t*e%3)%2==0};case u:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw new Error(`bad maskPattern:${t}`)}},m.getErrorCorrectPolynomial=function(t){let e=f([1],0);for(let i=0;i<t;i+=1)e=e.multiply(f([1,g.gexp(i)],0));return e},m.getLengthInBits=function(t,o){if(1<=o&&o<10)switch(t){case e:return 10;case i:return 9;case n:case r:return 8;default:throw new Error(`mode: ${t}`)}else if(o<27)switch(t){case e:return 12;case i:return 11;case n:return 16;case r:return 10;default:throw new Error(`mode: ${t}`)}else{if(!(o<41))throw new Error(`type: ${o}`);switch(t){case e:return 14;case i:return 13;case n:return 16;case r:return 12;default:throw new Error(`mode: ${t}`)}}},m.getLostPoint=function(t){const e=t.getModuleCount();let i=0;for(let n=0;n<e;n+=1)for(let r=0;r<e;r+=1){let o=0;const a=t.isDark(n,r);for(let i=-1;i<=1;i+=1)if(!(n+i<0||e<=n+i))for(let s=-1;s<=1;s+=1)r+s<0||e<=r+s||0===i&&0===s||a===t.isDark(n+i,r+s)&&(o+=1);o>5&&(i+=3+o-5)}for(let n=0;n<e-1;n+=1)for(let r=0;r<e-1;r+=1){let e=0;t.isDark(n,r)&&(e+=1),t.isDark(n+1,r)&&(e+=1),t.isDark(n,r+1)&&(e+=1),t.isDark(n+1,r+1)&&(e+=1),0!==e&&4!==e||(i+=3)}for(let n=0;n<e;n+=1)for(let r=0;r<e-6;r+=1)t.isDark(n,r)&&!t.isDark(n,r+1)&&t.isDark(n,r+2)&&t.isDark(n,r+3)&&t.isDark(n,r+4)&&!t.isDark(n,r+5)&&t.isDark(n,r+6)&&(i+=40);for(let n=0;n<e;n+=1)for(let r=0;r<e-6;r+=1)t.isDark(r,n)&&!t.isDark(r+1,n)&&t.isDark(r+2,n)&&t.isDark(r+3,n)&&t.isDark(r+4,n)&&!t.isDark(r+5,n)&&t.isDark(r+6,n)&&(i+=40);let n=0;for(let i=0;i<e;i+=1)for(let r=0;r<e;r+=1)t.isDark(r,i)&&(n+=1);return i+=10*(Math.abs(100*n/e/e-50)/5),i},{getBCHTypeInfo:m.getBCHTypeInfo,getBCHTypeNumber:m.getBCHTypeNumber,getPatternPosition:m.getPatternPosition,getMaskFunction:m.getMaskFunction,getErrorCorrectPolynomial:m.getErrorCorrectPolynomial,getLengthInBits:m.getLengthInBits,getLostPoint:m.getLostPoint}}(),g=function(){const t=new Array(256),e=new Array(256);for(let e=0;e<8;e+=1)t[e]=1<<e;for(let e=8;e<256;e+=1)t[e]=t[e-4]^t[e-5]^t[e-6]^t[e-8];for(let i=0;i<255;i+=1)e[t[i]]=i;const i={glog:function(t){if(t<1)throw new Error(`glog(${t})`);return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}};return{glog:i.glog,gexp:i.gexp}}();function f(t,e){if(void 0===t.length)throw new Error(`${t.length}/${e}`);const i=function(){let i=0;for(;i<t.length&&0===t[i];)i+=1;const n=new Array(t.length-i+e);for(let e=0;e<t.length-i;e+=1)n[e]=t[e+i];return n}(),n={getAt:function(t){return i[t]},getLength:function(){return i.length},multiply:function(t){const e=new Array(n.getLength()+t.getLength()-1);for(let i=0;i<n.getLength();i+=1)for(let r=0;r<t.getLength();r+=1)e[i+r]^=g.gexp(g.glog(n.getAt(i))+g.glog(t.getAt(r)));return f(e,0)},mod:function(t){if(n.getLength()-t.getLength()<0)return n;const e=g.glog(n.getAt(0))-g.glog(t.getAt(0)),i=new Array(n.getLength());for(let t=0;t<n.getLength();t+=1)i[t]=n.getAt(t);for(let n=0;n<t.getLength();n+=1)i[n]^=g.gexp(g.glog(t.getAt(n))+e);return f(i,0).mod(t)}};return{getAt:n.getAt,getLength:n.getLength,multiply:n.multiply,mod:n.mod}}const m=function(){const t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){const i={};return i.totalCount=t,i.dataCount=e,{totalCount:i.totalCount,dataCount:i.dataCount}},i={};return i.getRSBlocks=function(i,n){const r=function(e,i){switch(i){case o.L:return t[4*(e-1)+0];case o.M:return t[4*(e-1)+1];case o.Q:return t[4*(e-1)+2];case o.H:return t[4*(e-1)+3];default:return}}(i,n);if(void 0===r)throw new Error(`bad rs block @ typeNumber: ${i} /errorCorrectLevel: ${n}`);const a=r.length/3,s=[];for(let t=0;t<a;t+=1){const i=r[3*t+0],n=r[3*t+1],o=r[3*t+2];for(let t=0;t<i;t+=1)s.push(e(n,o))}return s},{getRSBlocks:i.getRSBlocks}}(),y=function(){const t=[];let e=0;const i={getBuffer:function(){return t},getAt:function(e){const i=Math.floor(e/8);return 1==(t[i]>>>7-e%8&1)},put:function(t,e){for(let n=0;n<e;n+=1)i.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return e},putBit:function(i){const n=Math.floor(e/8);t.length<=n&&t.push(0),i&&(t[n]|=128>>>e%8),e+=1}};return{
getBuffer:i.getBuffer,getAt:i.getAt,put:i.put,getLengthInBits:i.getLengthInBits,putBit:i.putBit}},b=function(e){const i=n,r=t.stringToBytes(e),o={getMode:function(){return i},getLength:function(){return r.length},write:function(t){for(let e=0;e<r.length;e+=1)t.put(r[e],8)}};return{getMode:o.getMode,getLength:o.getLength,write:o.write}},v=function(){const t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,i,n){i=i||0,n=n||t.length;for(let r=0;r<n;r+=1)e.writeByte(t[r+i])},writeString:function(t){for(let i=0;i<t.length;i+=1)e.writeByte(t.charCodeAt(i))},toByteArray:function(){return t},toString:function(){let e="";e+="[";for(let i=0;i<t.length;i+=1)i>0&&(e+=","),e+=t[i];return e+="]",e}};return{writeByte:e.writeByte,writeShort:e.writeShort,writeBytes:e.writeBytes,writeString:e.writeString,toByteArray:e.toByteArray,toString:e.toString}},E=function(t){const e=t,i={};let n=0,r=0,o=0;i.read=function(){for(;r<8;){if(o>=e.length){if(0===r)return-1;throw new Error(`unexpected end of file./'${r}`)}const t=e.charAt(o);if(o+=1,"="===t)return r=0,-1;t.match(/^\s$/)||(n=n<<6|a(t.charCodeAt(0)),r+=6)}const t=n>>>r-8&255;return r-=8,t};const a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43===t)return 62;if(47===t)return 63;throw new Error(`c: ${t}`)};return{read:i.read}},I=function(t,e){const i=t,n=e,r=new Array(t*e),o={setPixel:function(t,e,n){r[e*i+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(i),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(i),t.writeShort(n),t.writeByte(0);const e=a(2);t.writeByte(2);let r=0;for(;e.length-r>255;)t.writeByte(255),t.writeBytes(e,r,255),r+=255;t.writeByte(e.length-r),t.writeBytes(e,r,e.length-r),t.writeByte(0),t.writeString(";")}},a=function(t){const e=1<<t,i=1+(1<<t);let n=t+1;const o=s();for(let t=0;t<e;t+=1)o.add(String.fromCharCode(t));o.add(String.fromCharCode(e)),o.add(String.fromCharCode(i));const a=v(),l=function(t){const e=t;let i=0,n=0;const r={write:function(t,r){if(t>>>r!=0)throw new Error("length over");for(;i+r>=8;)e.writeByte(255&(t<<i|n)),r-=8-i,t>>>=8-i,n=0,i=0;n|=t<<i,i+=r},flush:function(){i>0&&e.writeByte(n)}};return{write:r.write,flush:r.flush}}(a);l.write(e,n);let A=0,c=String.fromCharCode(r[A]);for(A+=1;A<r.length;){const t=String.fromCharCode(r[A]);A+=1,o.contains(c+t)?c+=t:(l.write(o.indexOf(c),n),o.size()<4095&&(o.size()===1<<n&&(n+=1),o.add(c+t)),c=t)}return l.write(o.indexOf(c),n),l.write(i,n),l.flush(),a.toByteArray()},s=function(){const t={};let e=0;const i={add:function(n){if(i.contains(n))throw new Error(`dup key: ${n}`);t[n]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return{add:i.add,size:i.size,indexOf:i.indexOf,contains:i.contains}};return{setPixel:o.setPixel,write:o.write}},C=function(t,e,i,n){const r=I(t,e),o=v(),a=function(){let t=0,e=0,i=0,n="";const r={},o=function(t){n+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62===t)return 43;if(63===t)return 47}throw new Error(`n: ${t}`)};return r.writeByte=function(n){for(t=t<<8|255&n,e+=8,i+=1;e>=6;)o(t>>>e-6),e-=6},r.flush=function(){if(e>0&&(o(t<<6-e),t=0,e=0),i%3!=0){const t=3-i%3;for(let e=0;e<t;e+=1)n+="="}},r.toString=function(){return n},{writeByte:r.writeByte,flush:r.flush,toString:r.toString}}(),s=o.toByteArray();for(let n=0;n<e;n+=1)for(let e=0;e<t;e+=1)r.setPixel(e,n,i(e,n));r.write(o);for(let t=0;t<s.length;t+=1)a.writeByte(s[t]);a.flush();let l="";return l+="<img",l+=' src="',l+="data:image/gif;base64,",l+=a,l+='"',l+=' width="',l+=t,l+='"',l+=' height="',l+=e,l+='"',n&&(l+=' alt="',l+=n,l+='"'),l+="/>",l};return t}();return t.stringToBytes=function(t){return function(t){const e=[];for(let i=0;i<t.length;i++){let n=t.charCodeAt(i);n<128?e.push(n):n<2048?e.push(192|n>>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(i+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}(t)},t}());var b=class{constructor(t,e){this.qrcode=y,this.el=t,this.options=e,this.init()}init(){this.el&&this.qrcode(this.el,this.options)}_setOptions(t){this.options=t}setOptions(t){this._setOptions(t)}_setEl(t){this.el=t}setEl(t){this._setEl(t)}},v=i(22451),E=i(89262),I=i(57012),C=Object.defineProperty,B=Object.getOwnPropertyDescriptor,w=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?B(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&C(e,i,o),o};const x={weibo:"http://service.weibo.com/share/share.php",tieba:"http://tieba.baidu.com/f/commit/share/openShareApi",qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey",qq:"http://connect.qq.com/widget/shareqq/index.html"};class Q extends n.vq{constructor(t){super(t),(0,v.rC)(this)}install(){super.install(),this.dc.display=(0,v.U5)((()=>this.shareStore.state.opened),(t=>{t&&(this.templateNodes||(this.templateNodes=this.shareTemplate()),this.templateNodes.container.parentElement||(this.nodes.sharePanel.appendChild(this.templateNodes.container),this.addEvents()),this.configStore.embeddedEnv!==n.vt.Nomal&&this.pause(),this.track.e("end_share_show"))})),this.dc.url=(0,v.U5)((()=>this.shareStore.url),(t=>{if(this.templateNodes){const e=t+n.i0.link;this.templateNodes.htmlInput.setAttribute("value",e),this.templateNodes.htmlCopy.setAttribute("value",e),this.templateNodes.qrcode.innerHTML="",this.updateQRCode(this.templateNodes.qrcode,t+n.i0.qrcode)}})),this.dc.iframe=(0,v.U5)((()=>this.iframe),(t=>{this.templateNodes&&(this.templateNodes.iframeInput.setAttribute("value",t),this.templateNodes.iframeCopy.setAttribute("value",t))}))}pause(){this.premiereStore.isEnd||(this.portStore.pause({initiator:n.hH.ManualAction}),this.track.e("pause_button"))}get window(){return this.rootPlayer.window}get weibo(){return{url:this.shareStore.url+n.i0.weibo,type:"3",count:"1",appkey:"2841902482",title:this.shareStore.weiboTag+this.shareStore.title,language:"zh_cn",rnd:Date.now(),pic:this.shareStore.pic}}get tieba(){return{url:this.shareStore.url+n.i0.tieba,title:this.shareStore.title,to:"tieba",type:"text",sign:"on",comment:this.shareStore.description,pic:this.shareStore.pic.replace(/^https:/,"http:")}}get qzone(){return{url:this.shareStore.url+n.i0.qzone,showcount:1,title:this.shareStore.title,desc:this.shareStore.description,site:"哔哩哔哩",style:"203",width:98,height:22,pics:this.shareStore.pic}}get qq(){return{url:this.shareStore.url+n.i0.qq,title:this.shareStore.title,summary:this.shareStore.description,style:"201",width:32,height:32,pics:this.shareStore.pic}}get iframe(){return`<iframe src='${this.shareStore.iframeSrc}' scrolling='no' border='0' frameborder='no' framespacing='0' allowfullscreen='true'></iframe>`}shareTemplate(){
const t=this.ppx,e=`\n            <div class="${t}-video-share-box">\n                <div class="${t}-video-share-header">\n                    <span class="${t}-video-share-close"><span class="${this.cpx}-svg-icon">${a()}</span></span>\n                </div>\n                <div class="${t}-video-share-content">\n                    <div class="${t}-video-share-left">\n                        <div class="${t}-video-share-source">\n                            <div class="${t}-video-share-btn weibo"><span class="${this.cpx}-svg-icon">${l()}</span></div>\n                            <div class="${t}-video-share-btn tieba"><span class="${this.cpx}-svg-icon">${c()}</span></div>\n                            <div class="${t}-video-share-btn qzone"><span class="${this.cpx}-svg-icon">${d()}</span></div>\n                            <div class="${t}-video-share-btn qq"><span class="${this.cpx}-svg-icon">${p()}</span></div>\n                        </div>\n                        <div class="${t}-video-share-link">\n                            <p class="${t}-video-share-link-label">视频地址</p>\n                            <div class="${t}-video-share-link-content">\n                                <input class="${t}-video-share-link-input html" value="${this.shareStore.url+n.i0.link}" readonly/>\n                                <div class="${t}-video-share-link-copy html" value="${this.shareStore.url+n.i0.link}">复制</div>\n                            </div>\n                        </div>\n                        <div class="${t}-video-share-link">\n                            <p class="${t}-video-share-link-label">嵌入代码</p>\n                            <div class="${t}-video-share-link-content">\n                                <input class="${t}-video-share-link-input iframe" value="${this.iframe}" readonly/>\n                                <div class="${t}-video-share-link-copy iframe" value="${this.iframe}">复制</div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="${t}-video-share-right">\n                        <div class="${t}-video-share-qrcode">\n                            <span>分享到微信</span>\n                            <span class="${t}-video-share-qrcode-img"></span>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        `,i=(0,r.t)(e);i.querySelectorAll(`.${t}-video-share-link-copy`).forEach((t=>{new I.zx(t,{type:"blue"})}));const o=i.querySelector(`.${t}-video-share-qrcode-img`);return this.updateQRCode(o,this.shareStore.url+n.i0.qrcode),{container:i,close:i.querySelector(`.${t}-video-share-close`),source:i.querySelector(`.${t}-video-share-source`),htmlInput:i.querySelector(`.${t}-video-share-link-input.html`),htmlCopy:i.querySelector(`.${t}-video-share-link-copy.html`),iframeInput:i.querySelector(`.${t}-video-share-link-input.iframe`),iframeCopy:i.querySelector(`.${t}-video-share-link-copy.iframe`),qrcode:o}}updateQRCode(t,e){new b(t,{size:150,background:"#ffffff",fill:"#000000",text:e})}addEvents(){this.templateNodes.close.addEventListener("click",this.closeClickHandler),this.templateNodes.source.addEventListener("click",this.sourceClickHandler),this.templateNodes.htmlCopy.addEventListener("click",this.copyHandler),this.templateNodes.iframeCopy.addEventListener("click",this.copyHandler)}removeEvents(){var t,e,i,n;null==(t=this.templateNodes)||t.close.removeEventListener("click",this.closeClickHandler),null==(e=this.templateNodes)||e.source.removeEventListener("click",this.sourceClickHandler),null==(i=this.templateNodes)||i.htmlCopy.removeEventListener("click",this.copyHandler),null==(n=this.templateNodes)||n.iframeCopy.removeEventListener("click",this.copyHandler)}closeClickHandler(t){t.stopPropagation(),this.track.e("end_share_close"),this.shareStore.close(),this.configStore.embeddedEnv===n.vt.Nomal&&this.endingStore.open()}sourceClickHandler(t){let e;const i=t.target;i.closest(".weibo")?e="weibo":i.closest(".tieba")?e="tieba":i.closest(".qzone")?e="qzone":i.closest(".qq")&&(e="qq"),e&&(this.track.e(`end_share_${e}`),new f(this.rootPlayer).r({bvid:this.configStore.bvid,aid:this.configStore.aid}),this.openShareWindow(x[e],this[e]))}copyHandler(t){t.stopPropagation();const e=t.target,i=e.getAttribute("value");m.T.copy(i,{container:this.container})?(this.track.e(e.classList.contains("html")?"end_share_html":"end_share_link"),this.tooltipStore.create({name:"share_copy_success",target:e,title:"已成功复制到剪贴板",position:n.DU.TopCenter,duration:1e3})):this.tooltipStore.create({name:"share_copy_error",target:e,title:"复制失败",position:n.DU.TopCenter,duration:1e3})}openShareWindow(t,e){const i=[];for(const t in e)e.hasOwnProperty(t)&&i.push(t+"="+encodeURIComponent(e[t]||""));const n=t+"?"+i.join("&");return window.open(n,"","width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no"),!1}onDisconnect(){this.removeEvents()}}w([v.Fl],Q.prototype,"iframe",1),w([E.ZP],Q.prototype,"closeClickHandler",1),w([E.ZP],Q.prototype,"sourceClickHandler",1),w([E.ZP],Q.prototype,"copyHandler",1)},44699:function(t,e,i){"use strict";i.d(e,{z:function(){return x}})
;var n=i(5489),r=i(54),o=i.n(r),a=i(89262),s=i(14753),l=i.n(s),A=i(54347),c=i.n(A),h=i(20733),d=i.n(h),u=i(44127),p=i(99550),g=i(46330),f=i(23529),m=JSON.parse('{"v":"5.7.4","fr":60,"ip":20,"op":79,"w":111,"h":66,"nm":" 快进","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"路径","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[15],"e":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":30,"s":[80],"e":[15]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[15],"e":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":90,"s":[80],"e":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":120,"s":[10],"e":[80]},{"t":150}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[16.5,32.5,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.56,-0.33],[0.22,0],[0,0],[0,0.65],[-0.1,0.18],[0,0],[-0.75,-0.44],[-0.13,-0.23]],"o":[[0.33,0.56],[-0.18,0.11],[0,0],[-0.65,0],[0,-0.21],[0,0],[0.44,-0.74],[0.23,0.13],[0,0]],"v":[[6.138,3.546],[5.718,5.156],[5.118,5.326],[-5.122,5.326],[-6.302,4.146],[-6.142,3.546],[-1.352,-4.554],[0.798,-5.104],[1.348,-4.554]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-270,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":420,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"路径","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[15],"e":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":40,"s":[80],"e":[15]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":70,"s":[15],"e":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":100,"s":[80],"e":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":130,"s":[10],"e":[80]},{"t":160}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,32.5,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.56,-0.33],[0.22,0],[0,0],[0,0.65],[-0.1,0.18],[0,0],[-0.75,-0.44],[-0.13,-0.23]],"o":[[0.33,0.56],[-0.18,0.11],[0,0],[-0.65,0],[0,-0.21],[0,0],[0.44,-0.74],[0.23,0.13],[0,0]],"v":[[6.138,3.546],[5.718,5.156],[5.118,5.326],[-5.122,5.326],[-6.302,4.146],[-6.142,3.546],[-1.352,-4.554],[0.798,-5.104],[1.348,-4.554]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-270,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":420,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"路径","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":20,"s":[15],"e":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":50,"s":[80],"e":[15]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[15],"e":[80]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":110,"s":[80],"e":[10]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":140,"s":[10],"e":[80]},{"t":170}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[94.5,32.5,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.56,-0.33],[0.22,0],[0,0],[0,0.65],[-0.1,0.18],[0,0],[-0.75,-0.44],[-0.13,-0.23]],"o":[[0.33,0.56],[-0.18,0.11],[0,0],[-0.65,0],[0,-0.21],[0,0],[0.44,-0.74],[0.23,0.13],[0,0]],"v":[[6.138,3.546],[5.718,5.156],[5.118,5.326],[-5.122,5.326],[-6.302,4.146],[-6.142,3.546],[-1.352,-4.554],[0.798,-5.104],[1.348,-4.554]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-270,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"路径","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":420,"st":0,"bm":0}],"markers":[{"tm":20,"cm":"1","dr":0},{"tm":79,"cm":"2","dr":0}]}'),y=i(22451),b=i(23173),v=i(55537),E=Object.defineProperty,I=Object.getOwnPropertyDescriptor,C=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?I(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&E(e,i,o),o},B=(t=>(t.KeyF="KeyF",t.KeyD="KeyD",t.KeyM="KeyM",t.KeyQ="KeyQ",t.KeyW="KeyW",t.KeyE="KeyE",t.KeyR="KeyR",t.Enter="Enter",t.Space="Space",t.Escape="Escape",t.ArrowUp="ArrowUp",t.ArrowDown="ArrowDown",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.BracketLeft="BracketLeft",t.BracketRight="BracketRight",t.Shift1="Shift1",t.Shift2="Shift2",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Tab="Tab",t.KeyG="KeyG",t))(B||{});const w={49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",70:"KeyF",68:"KeyD",77:"KeyM",81:"KeyQ",87:"KeyW",69:"KeyE",82:"KeyR",13:"Enter",32:"Space",27:"Escape",38:"ArrowUp",104:"ArrowUp",40:"ArrowDown",98:"ArrowDown",37:"ArrowLeft",100:"ArrowLeft",39:"ArrowRight",102:"ArrowRight",219:"BracketLeft",221:"BracketRight",Shift1:"Shift1",Shift2:"Shift2",9:"Tab",71:"KeyG"};class x extends n.vq{install(){super.install(),this.dc.mainScreen=(0,y.U5)((()=>this.uiStore.state.mainScreen),(t=>{switch(t){case n.dY.Wide:case n.dY.Web:this.screenChangeHandler()}}),{fireImmediately:!0}),this.dc.sideScreen=(0,y.U5)((()=>this.uiStore.state.sideScreen),(t=>{null===t&&this.lastSideScreen===n.dY.Full&&this.resetKeyDownConfig(...this.keydownMap.keys()),this.lastSideScreen&&this.lastSideScreen===t||(this.lastSideScreen=t)}),{fireImmediately:!0}),this.initKeydownMap(),this.addEvents()}screenChangeHandler(){window.exitHandlers||(window.exitHandlers=[]),window.exitHandlers.push((()=>({exited:this.uiStore.state.mainScreen===n.dY.Normal||this.uiStore.state.mainScreen===n.dY.Mini,handler:()=>{this.portStore.reqStatue(null)}})))}initKeydownMap(){this.keydownMap=new Map([["KeyF",{status:!1}],["KeyD",{status:!1}],["KeyM",{status:!1}],["KeyW",{status:!1}],["KeyE",{status:!1}],["Enter",{status:!1}],["Space",{status:!1}],["Escape",{status:!1}],["ArrowUp",{status:!1}],["ArrowDown",{status:!1}],["ArrowLeft",{status:!1}],["BracketLeft",{status:!1}],["BracketRight",{status:!1}],["Shift1",{status:!1}],["Shift2",{status:!1}],["Digit1",{status:!1}],["Digit2",{status:!1}],["Digit3",{status:!1}],["Digit4",{status:!1}],["KeyQ",{status:!1,singleHandler:()=>{this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Like,data:{success:t=>{t&&this.shortcutTooltip("shortcut",t.isLike?"点赞成功":"取消点赞")},fail:t=>{this.shortcutTooltip("shortcut",t.message||"点赞失败")}}}})),this.track.e("shortcut_like")},upHandler:()=>{this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Triple,data:{action:n.wY.Cancel}}}))}}],["KeyR",{status:!1,upHandler:()=>{this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Triple,data:{action:n.wY.Cancel}}}))}}],["ArrowRight",{status:!1,singleHandler:()=>{
this.portStore.seekAutoplay(this.portStore.getCurrentTime()+5,"Shortcut"),this.track.e("slidekey",this.mediaStore.state.currentTime)},upHandler:()=>{this.setThreePlayrateHint(!1)}}],["Tab",{status:!1}],["KeyG",{status:!1,singleHandler:()=>{this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Follow,data:{fid:this.upStore.state.mid,act:v.dd.Add_Attention,re_src:v.gC.Player_Top_Follow,success:t=>{this.shortcutTooltip("shortcut","关注成功")},fail:t=>{this.shortcutTooltip("shortcut",t.message||"已关注up主")}}}}))}}]])}addEvents(){document.addEventListener("mousewheel",this.wheelHandler),document.addEventListener("DOMMouseScroll",this.wheelHandler),this.rootStore.window.addEventListener("keydown",this.shortcutHandler),this.rootStore.window.addEventListener("keyup",this.onKeyUpHandler),this.rootStore.window.addEventListener("blur",this.onKeyUpHandler),this.rootStore.window.addEventListener("contextmenu",this.onKeyUpHandler,!0),this.rootPlayer.on(n.p2.PLAYER_TOUCH_GESTURE,(t=>this.onTouchHandler(t)))}removeEvents(){document.removeEventListener("mousewheel",this.wheelHandler),document.removeEventListener("DOMMouseScroll",this.wheelHandler),this.rootStore.window.removeEventListener("keydown",this.shortcutHandler),this.rootStore.window.removeEventListener("keyup",this.onKeyUpHandler),this.rootStore.window.removeEventListener("blur",this.onKeyUpHandler),this.rootStore.window.removeEventListener("contextmenu",this.onKeyUpHandler,!0)}shortcutHandler(t){t&&t.keyCode&&(this.mediaStore.video.controls||this.rootPlayer.disabled.shortcut||this.portStore.hasEditableFocus()||(this.shortcutKeysCombineShift(t),t.shiftKey||t.metaKey||t.altKey||t.ctrlKey||(this.portStore.hasFocus()&&this.shortcutKeysInFocus(t),this.shortcutKeysGlobal(t))))}shortcutKeysCombineShift(t){if(!this.premiereStore.state.status)if(t.shiftKey)switch(t.keyCode){case 49:case 97:this.keydownMap.get("Shift1").status||(this.settingStore.setPlaybackRate(1),this.shortcutTooltip("shortcut","1.0x播放"),this.track.e("shortcut_speed_1"),this.keydownMap.get("Shift1").status=!0);break;case 50:case 98:this.keydownMap.get("Shift2").status||(this.settingStore.setPlaybackRate(2),this.shortcutTooltip("shortcut","2.0x播放"),this.track.e("shortcut_speed_2"),this.keydownMap.get("Shift2").status=!0)}else;}shortcutKeysInFocus(t){switch(t.keyCode){case 38:case 104:t.preventDefault(),this.panoramaStore.state.isActive||(this.tuneVolume(.1,!0),this.track.e("keyboard_vol",this.settingStore.state.volume));break;case 40:case 98:t.preventDefault(),this.panoramaStore.state.isActive||(this.tuneVolume(-.1,!0),this.track.e("keyboard_vol",this.settingStore.state.volume));break;case 13:{t.preventDefault();const e=this.nodes.container.querySelector(".bpx-player-dm-input");e&&(document.activeElement===e?this.blurInput(e):this.focusInput(e),this.track.e("shortcut_enter"));break}}}shortcutKeysGlobal(t){const e=w[t.keyCode];switch(t.keyCode){case 27:if(t.preventDefault(),Array.isArray(window.exitHandlers)&&window.exitHandlers.length)for(let t=0;t<window.exitHandlers.length;t++){const t=window.exitHandlers.pop()();if(!t.exited)return void t.handler()}break;case 37:case 100:if(t.preventDefault(),this.premiereStore.state.status)return;this.panoramaStore.state.isActive||(this.portStore.seekAutoplay(this.portStore.getCurrentTime()-5,"Shortcut"),this.track.e("slidekey",this.mediaStore.state.currentTime));break;case 39:case 102:if(t.preventDefault(),this.premiereStore.state.status)return;if(this.panoramaStore.state.isActive)return;if(!this.keydownMap.get(B[e]).status){const t=this.keydownMap.get(B[e]);t.status=!0,t.timer=window.setTimeout((()=>{t.done=!0,this.portStore.isPaused()&&this.portStore.play({initiator:n.hH.ManualAction}).catch(u.Z),this.setThreePlayrateHint(!0)}),300)}break;case 32:if(t.preventDefault(),!this.keydownMap.get(B[e]).status){let t=0;this.portStore.isPaused()?(this.mediaStore.video.ended&&this.patchAdvStore.hasValidAdv&&!this.kernelStore.state.srcSwitching?this.portStore.seekAutoplay(0,n.hH.ManualAction):this.portStore.play({initiator:n.hH.ManualAction}).catch(u.Z),t=1):(t=0,this.portStore.pause({initiator:n.hH.ManualAction})),this.track.e("shortcut_space",t),this.trackExtra.p("player.play_pause.click",n.p0.Click,{action:2,switch:t}),this.keydownMap.get(B[e]).status=!0}break;case 70:this.portStore.getManifest().screenKind===n.dY.Full?this.portStore.reqStatue(null):this.portStore.reqStatue(n.dY.Full),this.track.e("shortcut_f");break;case 219:if(t.preventDefault(),!this.keydownMap.get(B[e]).status){if(this.configStore.outSideReload){this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Prev_Next_Pgc_Direct,data:{prevOrNext:n.YY.prev}}}));break}this.episodeStore.prev({stats:{spmId:this.configStore.spmId,spmIdFrom:b.Q.stringify({type:this.storyStore.state.type,action:b.A.Un_Named})}}).catch(u.Z),this.track.e("shortcut_previous"),this.keydownMap.get(B[e]).status=!0}break;case 221:if(t.preventDefault(),!this.keydownMap.get(B[e]).status){if(this.configStore.outSideReload){this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Prev_Next_Pgc_Direct,data:{prevOrNext:n.YY.next}}}));break}this.episodeStore.next({stats:{spmId:this.configStore.spmId,spmIdFrom:b.Q.stringify({type:this.storyStore.state.type,action:b.A.Un_Named})}}).catch(u.Z),this.track.e("shortcut_next"),this.keydownMap.get(B[e]).status=!0}break;case 68:if(this.panoramaStore.shortcutPrior)return;if(this.danmakuStore.state.state)return;this.keydownMap.get(B[e]).status||(this.keydownMap.get(B[e]).status=!0,this.sendStore.dmVisible?(this.shortcutTooltip("shortcut","关闭弹幕"),this.track.e("shortcut_dmswitch",0),this.dmSettingStore.setState({dmSwitch:!1,dmSwitchOut:!1})):(this.shortcutTooltip("shortcut","开启弹幕"),this.track.e("shortcut_dmswitch",1),this.dmSettingStore.setState({dmSwitch:!0,dmSwitchOut:!0})));break;case 77:this.keydownMap.get(B[e]).status||(this.settingStore.getRealVolume()?(this.settingStore.setVolume(0),this.shortcutTooltip("shortcut","静音"),this.track.e("shortcut_muted",1)):(this.shortcutTooltip("shortcut","关闭静音"),this.track.e("shortcut_muted",0),this.settingStore.setVolume(this.localStore.get().media.nonzeroVol,!0)),this.keydownMap.get(B[e]).status=!0);break;case 81:if(!this.keydownMap.get(B[e]).status){const t=this.keydownMap.get(B[e]);if(t.status=!0,this.storyStore.state.likeDisable)return;if(this.uiStore.isFullView&&!this.configStore.isPcApp)return void("function"==typeof t.singleHandler&&t.singleHandler());t.timer=window.setTimeout((()=>{t.done=!0,this.storyStore.tripleStatus||(this.track.e("shortcut_triple","Q"),this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Triple,data:{action:n.wY.Start}}})))}),300)}break;case 87:if(this.panoramaStore.shortcutPrior)return;if(!this.keydownMap.get(B[e]).status){if(this.keydownMap.get(B[e]).status=!0,this.uiStore.isFullView&&!this.configStore.isPcApp)return;if(this.storyStore.state.coinDisable)return;this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Coin,data:{isNeedPanel:!0}}})),this.track.e("shortcut_coin")}break;case 69:if(!this.keydownMap.get(B[e]).status){if(this.keydownMap.get(B[e]).status=!0,this.uiStore.isFullView&&!this.configStore.isPcApp)return;if(this.storyStore.state.collectDisable)return;this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Collect,data:{isNeedPanel:!0,isCollect:!0}}})),this.track.e("shortcut_collect")}break;case 82:if(!this.keydownMap.get(B[e]).status){const t=this.keydownMap.get(B[e]);if(t.status=!0,this.storyStore.tripleStatus)return;if(this.uiStore.isFullView&&!this.configStore.isPcApp)return;t.timer=window.setTimeout((()=>{t.done=!0,this.track.e("shortcut_triple","R"),this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Triple,data:{action:n.wY.Start}}}))}),300)}break;case 49:if(!this.keydownMap.get(B[e]).status){this.keydownMap.get(B[e]).status=!0,this.dmCmdStore.setState({shortcutTime:Date.now(),
shortcutVoteId:1})}break;case 50:if(!this.keydownMap.get(B[e]).status){this.keydownMap.get(B[e]).status=!0,this.dmCmdStore.setState({shortcutTime:Date.now(),shortcutVoteId:2})}break;case 51:if(!this.keydownMap.get(B[e]).status){this.keydownMap.get(B[e]).status=!0,this.dmCmdStore.setState({shortcutTime:Date.now(),shortcutVoteId:3})}break;case 52:if(!this.keydownMap.get(B[e]).status){this.keydownMap.get(B[e]).status=!0,this.dmCmdStore.setState({shortcutTime:Date.now(),shortcutVoteId:4})}break;case 71:if(!this.keydownMap.get(B[e]).status){const t=this.keydownMap.get(B[e]);return t.status=!0,void("function"==typeof t.singleHandler&&t.singleHandler())}}}onKeyUpHandler(t){this.resetKeyDownConfig("Shift1","Shift2"),(null==t?void 0:t.keyCode)?this.resetKeyDownConfig(B[w[t.keyCode]]):this.resetKeyDownConfig(...this.keydownMap.keys())}resetKeyDownConfig(...t){t.forEach((t=>{if(t){const e=this.keydownMap.get(t);(null==e?void 0:e.status)&&(e.timer&&(e.done?("function"==typeof e.upHandler&&e.upHandler(),e.done=!1):(window.clearTimeout(e.timer),"function"==typeof e.singleHandler&&e.singleHandler()),e.timer=0),e.status=!1)}}))}shortcutTooltip(t,e){this.tooltipStore.remove(t),this.tooltipStore.create({name:t,title:e,target:this.nodes.videoArea,position:n.DU.CenterCenter})}blurInput(t){t.blur()}focusInput(t){this.uiStore.isFullView&&this.ctrlStore.isCtrlHidden()&&this.ctrlStore.focus(3e3),t.focus(),this.ctrlStore.blur()}tuneVolume(t,e){t&&(this.settingStore.setVolume(this.settingStore.getVolume()+t,!0),e&&this.setVolumeHint())}setVolumeHint(){const t=Math.round(100*this.settingStore.getVolume());clearTimeout(this.volHintTimer),this.volHint||(this.volHint=o()(`\n                <div class="${this.ppx}-volume-hint">\n                    <span class="${this.ppx}-volume-hint-icon"></span>\n                    <span class="${this.ppx}-volume-hint-text"></span>\n                </div>`),this.volumeIcon=o()(l()),this.volumeOffIcon=o()(c()),this.volHintIcon=this.volHint.find(`.${this.ppx}-volume-hint-icon`),this.volHintText=this.volHint.find(`.${this.ppx}-volume-hint-text`),this.volHintIcon.append(this.volumeIcon,this.volumeOffIcon),this.volHint.appendTo(o()(this.nodes.videoArea))),0===t?(this.volHintText.html("静音"),this.volumeIcon.hide(),this.volumeOffIcon.show()):(this.volHintText.html(`${t}%`),this.volumeIcon.show(),this.volumeOffIcon.hide()),this.volHint.stop().css("opacity",1).show(),this.volHintTimer=window.setTimeout((()=>{this.volHint.animate({opacity:0},300,(()=>{this.volHint.hide()}))}),1e3)}wheelHandler(t){const e=t.target,i=this.ctrlStore.state.containerHover;if(t&&i&&(this.uiStore.isFullView||this.configStore.isPcApp)){if(e&&(this.nodes.topWrap.contains(e)||this.nodes.controlWrap.contains(e)))return;if(this.panoramaStore.state.isActive)return;const i=t.wheelDelta,n=t.detail&&-t.detail,r=i||n,o=r>0?.03:-.03,a=0===t.deltaMode?r/8e3:o;this.tuneVolume(a,!0)}}setThreePlayrateHint(t){var e;t?(this.threePlayrateHint||(this.threePlayrateHint=(0,p.t)(`<div class="${this.ppx}-three-playrate-hint"><span class="${this.ppx}-three-playrate-hint-icon"></span>倍速播放中</div>`),this.threePlayrateAniamtion=d().loadAnimation({container:this.threePlayrateHint.querySelector(`.${this.ppx}-three-playrate-hint-icon`),renderer:"svg",loop:!0,autoplay:!1,animationData:m}),this.nodes.videoArea.appendChild(this.threePlayrateHint)),(0,g.o)(this.threePlayrateHint),this.threePlayrateAniamtion.play(),this.lastPlaybackrate=this.settingStore.state.playbackRate,this.settingStore.setPlaybackRate(3),this.track.e("shortcut_threespeed")):this.threePlayrateHint&&((0,f.N)(this.threePlayrateHint),null==(e=this.threePlayrateAniamtion)||e.stop(),this.settingStore.setPlaybackRate(this.lastPlaybackrate))}onTouchHandler(t){if(!t)return;const{kind:e,data:i}=t;switch(e){case n.iX.PanStart:this.panStartVolume=this.settingStore.getVolume();break;case n.iX.Paning:if(!i)return;const{direction:t,deltaY:e}=i;if("vertical"!==t)return;const r=this.panStartVolume-e/this.uiStore.state.videoAreaHeight-this.settingStore.getVolume();this.tuneVolume(r,!0),this.track.e("hammer_gesture",{kind:"pan",func:"volumeAdjust"})}}onDisconnect(){super.onDisconnect(),this.removeEvents()}}C([a.ZP],x.prototype,"shortcutHandler",1),C([a.ZP],x.prototype,"onKeyUpHandler",1),C([a.ZP],x.prototype,"wheelHandler",1),C([a.ZP],x.prototype,"onTouchHandler",1)},9848:function(t,e,i){"use strict";i.d(e,{G:function(){return Fe}});var n=i(5489);!function(){try{var t=document.createElement("style")
;t.appendChild(document.createTextNode(".BILI-SUBTITLEX-ASS-box{overflow:hidden;pointer-events:none;position:absolute}.BILI-SUBTITLEX-ASS-dialogue{box-sizing:border-box!important;position:absolute;z-index:0}.BILI-SUBTITLEX-ASS-dialogue [data-stroke]{text-shadow:var(--ass-text-stroke);position:relative}@supports not (text-shadow: 1px 1px 1px black){.BILI-SUBTITLEX-ASS-dialogue [data-stroke]{-webkit-text-stroke:var(--ass-webkit-text-stroke, none)}}.BILI-SUBTITLEX-ASS-fix-font-size{font-size:0px;line-height:normal;width:0;height:0;position:absolute;visibility:hidden;overflow:hidden}.BILI-SUBTITLEX-ASS-fix-font-size span{position:absolute}.BILI-SUBTITLEX-ASS-fix-objectBoundingBox{width:100%;height:100%;position:absolute;top:0;left:0}.BILI-SUBTITLEX-ASS-scroll-area{position:absolute;width:100%;overflow:hidden}.bili-subtitle-x-subtitle-panel{top:0;left:0;width:100%;height:100%;font-size:28px;position:absolute;pointer-events:none;box-sizing:border-box;z-index:16}.bili-subtitle-x-subtitle-panel-position{left:5%;width:90%;max-height:83%;position:absolute}.bili-subtitle-x-subtitle-panel-position[data-textalign=left]{text-align:left}.bili-subtitle-x-subtitle-panel-position[data-textalign=right]{text-align:right}.bili-subtitle-x-subtitle-panel-position[data-textalign=center]{text-align:center}.bili-subtitle-x-subtitle-panel-position[data-position=draged]{left:auto}.bili-subtitle-x-subtitle-panel-position[data-position=top]{top:5%}.bili-subtitle-x-subtitle-panel-position[data-position=bottom]{bottom:14px}.bili-subtitle-x-subtitle-panel-text{position:relative;white-space:normal;cursor:default;pointer-events:auto;padding:2px 12px 2px 8px;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:4px;line-height:1.5;font-family:none;word-wrap:break-word;user-select:none;margin-right:-4px}.bili-subtitle-x-subtitle-panel-text-mouse-move-cursor{cursor:move}.bili-subtitle-x-subtitle-panel-icon{display:inline-block;margin-left:-8px;opacity:.9}.bili-subtitle-x-subtitle-panel-icon>.bili-subtitle-x-common-svg-icon{display:inline-flex;font-size:inherit;width:8px;height:8px;fill:#fff;margin-left:2px;vertical-align:text-top}.bili-subtitle-x-subtitle-panel-minor-group .bpx-player-subtitle-panel-text{opacity:.8}.bili-subtitle-x-subtitle-panel-major-group{margin-bottom:4px;position:relative}.bili-subtitle-x-subtitle-mask-backdrop{position:absolute;height:auto;width:fit-content;pointer-events:auto;box-sizing:border-box;display:flex;justify-content:center;align-items:center;border-radius:4px;padding-right:4px;left:0;right:0;margin-left:auto;margin-right:auto}.bili-subtitle-x-subtitle-mask-backdrop>div{width:fit-content;max-width:100%;box-sizing:border-box}.bili-subtitle-x-subtitle-mask-backdrop .bili-subtitle-x-subtitle-panel-icon{display:inline-block;margin-left:-10px;opacity:.9}.bili-subtitle-x-subtitle-panel-minor-group{position:relative}.bili-subtitle-x-subtitle-panel-minor-group[data-adjusted=true]{position:absolute;width:100%;left:0;text-align:center}.bili-subtitle-x-ai-badge{position:absolute;top:0}.bili-subtitle-x-subtitle-rawmeat-wrap{position:absolute;left:0;right:0;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;pointer-events:none}.bili-subtitle-x-subtitle-rawmeat-text{position:relative;white-space:normal;cursor:default;pointer-events:auto;padding:2px 8px;-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#fff;text-shadow:var(--rawmeat-text-stroke, none);background:none!important;border-radius:0;font-family:Source Han Sans SC Medium,Source Han Sans Medium,sans-serif;font-weight:500;word-wrap:break-word;user-select:none;text-align:center}@supports not (text-shadow: 1px 1px 1px black){.bili-subtitle-x-subtitle-rawmeat-text{-webkit-text-stroke:var(--rawmeat-webkit-text-stroke, none)}}.bili-subtitle-x-subtitle-panel-major-group:has(.bili-subtitle-x-subtitle-rawmeat-text){margin-bottom:2px}.bili-subtitle-x-subtitle-rawmeat-major,.bili-subtitle-x-subtitle-rawmeat-minor{display:flex;flex-direction:column;align-items:center;width:100%}.bili-subtitle-x-subtitle-rawmeat-text+.bili-subtitle-x-subtitle-panel-icon{display:inline-block;margin-left:-8px;opacity:.9}")),document.head.appendChild(t)}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();var r=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,c=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),h=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,d=(t,e)=>{for(var i in e||(e={}))l.call(e,i)&&h(t,i,e[i]);if(s)for(var i of s(e))A.call(e,i)&&h(t,i,e[i]);return t},u=(t,e,i)=>{if(!e.has(t))throw TypeError("Cannot "+i)},p=(t,e,i)=>(u(t,e,"read from private field"),i?i.call(t):e.get(t)),g=(t,e,i)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,i)},f=(t,e,i,n)=>(u(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i),m=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),y=function(t,e){this[0]=t,this[1]=e},b=(t,e,i)=>{var n=(t,e,r,o)=>{try{var a=i[t](e),s=(e=a.value)instanceof y,l=a.done;Promise.resolve(s?e[0]:e).then((i=>s?n("return"===t?t:"next",e[1]?{done:i.done,value:i.value}:i,r,o):r({value:i,done:l}))).catch((t=>n("throw",t,r,o)))}catch(t){o(t)}},r=t=>o[t]=e=>new Promise(((i,r)=>n(t,e,i,r))),o={};return i=i.apply(t,e),o[c("asyncIterator")]=()=>o,r("next"),r("throw"),r("return"),o},v=(t=>(t.BASE="BASE",t.ASS="ASS",t.AI="AI",t.SRT="SRT",t.BILI="BILI",t))(v||{}),E=(t=>(t[t.ASS_PARSE_ERR=2001]="ASS_PARSE_ERR",t[t.ASS_INIT_ERR=2002]="ASS_INIT_ERR",t[t.BILI_PARSE_ERR=3001]="BILI_PARSE_ERR",t[t.BILI_INIT_ERR=3002]="BILI_INIT_ERR",t))(E||{}),I=(t=>(t.INITIALIZED="INITIALIZED",t.DESTROY="DESTROY",t.HIDE="HIDE",t.SHOW="SHOW",t.RESIZE="RESIZE",t.RESAMPLE="RESAMPLE",t.READY="READY",t.ERROR="ERROR",t.PLAYING="PLAYING",t.PAUSED="PAUSED",t.OPTION_UPDATE="OPTION_UPDATE",t.MOUSEEVENT="MOUSEEVENT",t))(I||{}),C=(t=>(t.VIDEO_WIDTH="video_width",t.VIDEO_HEIGHT="video_height",t.SCRIPT_HEIGHT="script_height",t.SCRIPT_WIDTH="script_width",t))(C||{}),B=(t=>(t.FONTHEIGHT="fontHeight",t.DISPLAYHEIGHT="displayHeight",t))(B||{}),w=(t=>(t.TopLeft="top-left",t.TopCenter="top-center",t.TopRight="top-right",t.BottomLeft="bottom-left",t.BottomCenter="bottom-center",t.BottomRight="bottom-right",t))(w||{}),x=(t=>(t.None="0",t.Heavyink="1",t.Stroke="2",t.Projection="3",t))(x||{}),Q=(t=>(t[t.Major=0]="Major",t[t.Minor=1]="Minor",t))(Q||{}),S=(t=>(t[t.Mask=0]="Mask",t[t.Uncover=1]="Uncover",t))(S||{});const k=class{constructor(t){this.rooter=t,this.source=null,this.rooter=t,this.registerEventListeners(),this.id=function(t=5){let e="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<t;n++)e+=i.charAt(Math.floor(62*Math.random()));return e}()}registerEventListeners(){this.rooter.on(I.HIDE,(()=>this.onHide())),this.rooter.on(I.SHOW,(()=>this.onShow())),this.rooter.on(I.RESIZE,(()=>this.onResize())),this.rooter.on(I.DESTROY,(()=>this.onDispose())),this.rooter.on(I.RESAMPLE,(t=>this.onResample(t))),this.rooter.on(I.OPTION_UPDATE,(t=>this.onOptionUpdate(t)))}render(){}acceptData(t){return m(this,null,(function*(){this.source=yield this.parseData(t),this.render()}))}parseData(t){return m(this,null,(function*(){return null}))}onHide(){this.hide=!0}onShow(){this.hide=!1}onResample(t){}onOptionUpdate(t){}onResize(){}onDispose(){this.hide=!1,this.rooter.off(I.HIDE,(()=>this.onHide())),this.rooter.off(I.SHOW,(()=>this.onShow())),this.rooter.off(I.RESIZE,(()=>this.onResize())),this.rooter.off(I.DESTROY,(()=>this.onDispose())),this.rooter.off(I.RESAMPLE,(t=>this.onResample(t))),this.rooter.off(I.OPTION_UPDATE,(t=>this.onOptionUpdate(t))),this.log.i(`${this.id} disposed`)}};k.tag=v.BASE;let D=k;function _(t){const e=t.toLowerCase().trim().split(/\s*;\s*/);return"banner"===e[0]?{name:e[0],delay:1*e[1]||0,leftToRight:1*e[2]||0,fadeAwayWidth:1*e[3]||0
}:/^scroll\s/.test(e[0])?{name:e[0],y1:Math.min(1*e[1],1*e[2]),y2:Math.max(1*e[1],1*e[2]),delay:1*e[3]||0,fadeAwayHeight:1*e[4]||0}:""!==t?{name:t}:null}function R(t){return t?t.toLowerCase().replace(/([+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/g," $1 ").replace(/([mnlbspc])/g," $1 ").trim().replace(/\s+/g," ").split(/\s(?=[mnlbspc])/).map((t=>t.split(" ").filter(((t,e)=>!(e&&Number.isNaN(1*t)))))):[]}const M=["b","i","u","s","fsp","k","K","kf","ko","kt","fe","q","p","pbo","a","an","fscx","fscy","fax","fay","frx","fry","frz","fr","be","blur","bord","xbord","ybord","shad","xshad","yshad"].map((t=>({name:t,regex:new RegExp(`^${t}-?\\d`)})));function T(t){const e={};for(let i=0;i<M.length;i++){const{name:n,regex:r}=M[i];if(r.test(t))return e[n]=1*t.slice(n.length),e}if(/^fn/.test(t))e.fn=t.slice(2);else if(/^r/.test(t))e.r=t.slice(1);else if(/^fs[\d+-]/.test(t))e.fs=t.slice(2);else if(/^\d?c&?H?[0-9a-fA-F]+|^\d?c$/.test(t)){const[,i,n]=t.match(/^(\d?)c&?H?(\w*)/);e[`c${i||1}`]=n&&`000000${n}`.slice(-6)}else if(/^\da&?H?[0-9a-fA-F]+/.test(t)){const[,i,n]=t.match(/^(\d)a&?H?([0-9a-f]+)/i);e[`a${i}`]=`00${n}`.slice(-2)}else if(/^alpha&?H?[0-9a-fA-F]+/.test(t))[,e.alpha]=t.match(/^alpha&?H?([0-9a-f]+)/i),e.alpha=`00${e.alpha}`.slice(-2);else if(/^(?:pos|org|move|fad|fade)\([^)]+/.test(t)){const[,i,n]=t.match(/^(\w+)\((.*?)\)?$/);e[i]=n.trim().split(/\s*,\s*/).map(Number)}else if(/^i?clip\([^)]+/.test(t)){const i=t.match(/^i?clip\((.*?)\)?$/)[1].trim().split(/\s*,\s*/);e.clip={inverse:/iclip/.test(t),scale:1,drawing:null,dots:null},1===i.length&&(e.clip.drawing=R(i[0])),2===i.length&&(e.clip.scale=1*i[0],e.clip.drawing=R(i[1])),4===i.length&&(e.clip.dots=i.map(Number))}else if(/^t\(/.test(t)){const i=t.match(/^t\((.*?)\)?$/)[1].trim().replace(/\\.*/,(t=>t.replace(/,/g,"\n"))).split(/\s*,\s*/);if(!i[0])return e;e.t={t1:0,t2:0,accel:1,tags:i[i.length-1].replace(/\n/g,",").split("\\").slice(1).map(T)},2===i.length&&(e.t.accel=1*i[0]),3===i.length&&(e.t.t1=1*i[0],e.t.t2=1*i[1]),4===i.length&&(e.t.t1=1*i[0],e.t.t2=1*i[1],e.t.accel=1*i[2])}return e}function F(t){const e=[];let i=0,n="";const r=t.split("\\").slice(1).concat("").join("\\");for(let t=0;t<r.length;t++){const o=r[t];"("===o&&i++,")"===o&&i--,i<0&&(i=0),i||"\\"!==o?n+=o:(n&&e.push(n),n="")}return e.map(T)}function L(t){const e=t.split(/{([^{}]*?)}/),i=[];e[0].length&&i.push({tags:[],text:e[0],drawing:[]});for(let t=1;t<e.length;t+=2){const n=F(e[t]),r=n.reduce(((t,e)=>void 0===e.p?t:!!e.p),!1);i.push({tags:n,text:r?"":e[t+1],drawing:r?R(e[t+1]):[]})}return{raw:t,combined:i.map((t=>t.text)).join(""),parsed:i}}function N(t){const e=t.split(":");return 3600*e[0]+60*e[1]+1*e[2]}function P(t,e){let i=t.split(",");if(i.length>e.length){const t=i.slice(e.length-1).join();i=i.slice(0,e.length-1),i.push(t)}const n={};for(let t=0;t<i.length;t++){const r=e[t],o=i[t].trim();switch(r){case"Layer":case"MarginL":case"MarginR":case"MarginV":n[r]=1*o;break;case"Start":case"End":n[r]=N(o);break;case"Effect":n[r]=_(o);break;case"Text":n[r]=L(o);break;default:n[r]=o}}return n}const U=Object.assign||function(t,...e){for(let i=0;i<e.length;i++){if(!e[i])continue;const n=Object.keys(e[i]);for(let r=0;r<n.length;r++)t[n[r]]=e[i][n[r]]}return t},O=["Name","Fontname","Fontsize","PrimaryColour","SecondaryColour","OutlineColour","BackColour","Bold","Italic","Underline","StrikeOut","ScaleX","ScaleY","Spacing","Angle","BorderStyle","Outline","Shadow","Alignment","MarginL","MarginR","MarginV","Encoding"],G=["Layer","Start","End","Style","Name","MarginL","MarginR","MarginV","Effect","Text"];function H(t){const e=O.concat(G);return t.match(/Format\s*:\s*(.*)/i)[1].split(/\s*,\s*/).map((t=>e.find((e=>e.toLowerCase()===t.toLowerCase()))||t))}function V(t,e){const i=t.match(/Style\s*:\s*(.*)/i)[1].split(/\s*,\s*/);return U({},...e.map(((t,e)=>({[t]:i[e]}))))}function Y(t){const e={type:null,prev:null,next:null,points:[]};/[mnlbs]/.test(t[0])&&(e.type=t[0].toUpperCase().replace("N","L").replace("B","C"));for(let i=t.length-!(1&t.length),n=1;n<i;n+=2)e.points.push({x:1*t[n],y:1*t[n+1]});return e}function z(t){return!(!t.points.length||!t.type||/C|S/.test(t.type)&&t.points.length<3)}function W(t){return t.map((({type:t,points:e})=>t+e.map((({x:t,y:e})=>`${t},${e}`)).join(","))).join("")}function Z(t){const e=[];let i=0;for(;i<t.length;){const n=t[i],r=Y(n);if(z(r)){if("S"===r.type){const{x:t,y:n}=(e[i-1]||{points:[{x:0,y:0}]}).points.slice(-1)[0];r.points.unshift({x:t,y:n})}i&&(r.prev=e[i-1].type,e[i-1].next=r.type),e.push(r),i++}else{if(i&&"S"===e[i-1].type){const t={p:r.points,c:e[i-1].points.slice(0,3)};e[i-1].points=e[i-1].points.concat((t[n[0]]||[]).map((({x:t,y:e})=>({x:t,y:e}))))}t.splice(i,1)}}const n=[].concat(...e.map((({type:t,points:e,prev:i,next:n})=>"S"===t?function(t,e,i){const n=[],r=[0,.6666666666666666,.3333333333333333,0],o=[0,1/3,2/3,0],a=[0,1/6,2/3,1/6],s=(t,e)=>t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3];let l=[t[t.length-1].x,t[0].x,t[1].x,t[2].x],A=[t[t.length-1].y,t[0].y,t[1].y,t[2].y];n.push({type:"M"===e?"M":"L",points:[{x:s(a,l),y:s(a,A)}]});for(let e=3;e<t.length;e++)l=[t[e-3].x,t[e-2].x,t[e-1].x,t[e].x],A=[t[e-3].y,t[e-2].y,t[e-1].y,t[e].y],n.push({type:"C",points:[{x:s(r,l),y:s(r,A)},{x:s(o,l),y:s(o,A)},{x:s(a,l),y:s(a,A)}]});if("L"===i||"C"===i){const e=t[t.length-1];n.push({type:"L",points:[{x:e.x,y:e.y}]})}return n}(e,i,n):{type:t,points:e})));return U({instructions:n,d:W(n)},function(t){let e=1/0,i=1/0,n=-1/0,r=-1/0;return[].concat(...t.map((({points:t})=>t))).forEach((({x:t,y:o})=>{e=Math.min(e,t),i=Math.min(i,o),n=Math.max(n,t),r=Math.max(r,o)})),{minX:e,minY:i,width:n-e,height:r-i}}(e))}const j=["fs","clip","c1","c2","c3","c4","a1","a2","a3","a4","alpha","fscx","fscy","fax","fay","frx","fry","frz","fr","be","blur","bord","xbord","ybord","shad","xshad","yshad"];function q(t,e,i={}){let n=t[e];if(void 0===n)return null;if("pos"===e||"org"===e)return 2===n.length?{[e]:{x:n[0],y:n[1]}}:null;if("move"===e){const[t,e,i,r,o=0,a=0]=n;return 4===n.length||6===n.length?{move:{x1:t,y1:e,x2:i,y2:r,t1:o,t2:a}}:null}if("fad"===e||"fade"===e){if(2===n.length){const[t,e]=n;return{fade:{type:"fad",t1:t,t2:e}}}if(7===n.length){const[t,e,i,r,o,a,s]=n;return{fade:{type:"fade",a1:t,a2:e,a3:i,t1:r,t2:o,t3:a,t4:s}}}return null}if("clip"===e){const{inverse:t,scale:e,drawing:i,dots:r}=n;if(i)return{clip:{inverse:t,scale:e,drawing:Z(i),dots:r}};if(r){const[n,o,a,s]=r;return{clip:{inverse:t,scale:e,drawing:i,dots:{x1:n,y1:o,x2:a,y2:s}}}}return null}if(/^[xy]?(bord|shad)$/.test(e)&&(n=Math.max(n,0)),"bord"===e)return{xbord:n,ybord:n};if("shad"===e)return{xshad:n,yshad:n};if(/^c\d$/.test(e))return{[e]:n||i[e]};if("alpha"===e)return{a1:n,a2:n,a3:n,a4:n};if("fr"===e)return{frz:n};if("fs"===e)return{fs:/^\+|-/.test(n)?(1*n>-10?1+n/10:1)*i.fs:1*n};if("K"===e)return{kf:n};if("t"===e){const{t1:t,accel:e,tags:r}=n,o=n.t2||1e3*(i.end-i.start),a={};return r.forEach((t=>{const e=Object.keys(t)[0];~j.indexOf(e)&&("clip"!==e||t[e].dots)&&U(a,q(t,e,i))})),{t:{t1:t,t2:o,accel:e,tag:a}}}return{[e]:n}}const J=[null,1,2,3,null,7,8,9,null,4,5,6],K=["r","a","an","pos","org","move","fade","fad","clip"];function X(t){return JSON.parse(JSON.stringify(U({},t,{k:void 0,kf:void 0,ko:void 0,kt:void 0})))}function $({styles:t,style:e,parsed:i,start:n,end:r}){let o,a,s,l,A,c;const h=[];let d={style:e,fragments:[]},u={};for(let p=0;p<i.length;p++){const{tags:g,text:f,drawing:m}=i[p];let y;for(let t=0;t<g.length;t++){const e=g[t];y=void 0===e.r?y:e.r}const b={tag:void 0===y?X(u):{},text:f,drawing:m.length?Z(m):null};for(let i=0;i<g.length;i++){const h=g[i];o=o||J[h.a||0]||h.an,a=a||q(h,"pos"),s=s||q(h,"org"),l=l||q(h,"move"),A=A||q(h,"fade")||q(h,"fad"),c=q(h,"clip")||c;const d=Object.keys(h)[0];if(d&&!~K.indexOf(d)){const i=t[e].tag,{c1:o,c2:a,c3:s,c4:l}=i,A=q(h,d,{start:n,end:r,c1:o,c2:a,c3:s,c4:l,fs:u.fs||i.fs});"t"===d?(b.tag.t=b.tag.t||[],b.tag.t.push(A.t)):U(b.tag,A)}}if(u=b.tag,void 0!==y&&(h.push(d),d={style:t[y]?y:e,fragments:[]}),b.text||b.drawing){const t=d.fragments[d.fragments.length-1]||{};t.text&&b.text&&!Object.keys(b.tag).length?t.text+=b.text:d.fragments.push(b)}}return h.push(d),U({alignment:o,slices:h},a,s,l,A,c)}
function tt({styles:t,dialogues:e}){let i=1/0;const n=[];for(let r=0;r<e.length;r++){const o=e[r];if(o.Start>=o.End)continue;t[o.Style]||(o.Style="Default");const a=t[o.Style].style,s=$({styles:t,style:o.Style,parsed:o.Text.parsed,start:o.Start,end:o.End}),l=s.alignment||a.Alignment;i=Math.min(i,o.Layer),n.push(U({layer:o.Layer,start:o.Start,end:o.End,style:o.Style,name:o.Name,margin:{left:o.MarginL||a.MarginL,right:o.MarginR||a.MarginR,vertical:o.MarginV||a.MarginV},effect:o.Effect},s,{alignment:l}))}for(let t=0;t<n.length;t++)n[t].layer-=i;return n.sort(((t,e)=>t.start-e.start||t.end-e.end))}const et={Name:"Default",Fontname:"Arial",Fontsize:"20",PrimaryColour:"&H00FFFFFF&",SecondaryColour:"&H000000FF&",OutlineColour:"&H00000000&",BackColour:"&H00000000&",Bold:"0",Italic:"0",Underline:"0",StrikeOut:"0",ScaleX:"100",ScaleY:"100",Spacing:"0",Angle:"0",BorderStyle:"1",Outline:"2",Shadow:"2",Alignment:"2",MarginL:"10",MarginR:"10",MarginV:"10",Encoding:"1"};function it(t){if(/^(&|H|&H)[0-9a-f]{6,}/i.test(t)){const[,e,i]=t.match(/&?H?([0-9a-f]{2})?([0-9a-f]{6})/i);return[e||"00",i]}const e=parseInt(t,10);if(!Number.isNaN(e)){if(e<-2147483648)return["00","000000"];const t=-2147483648<=e&&e<=2147483647?`00000000${(e<0?e+4294967296:e).toString(16)}`.slice(-8):String(e).slice(0,8);return[t.slice(0,2),t.slice(2)]}return["00","000000"]}function nt(t,e={}){const i=function(t){const e={info:{},styles:{format:[],style:[]},events:{format:[],comment:[],dialogue:[]}},i=t.split(/\r?\n/);let n=0;for(let t=0;t<i.length;t++){const r=i[t].trim();if(!/^;/.test(r)&&(/^\[Script Info\]/i.test(r)?n=1:/^\[V4\+? Styles\]/i.test(r)?n=2:/^\[Events\]/i.test(r)?n=3:/^\[.*\]/.test(r)&&(n=0),0!==n)){if(1===n&&/:/.test(r)){const[,t,i]=r.match(/(.*?)\s*:\s*(.*)/);e.info[t]=i}if(2===n&&(/^Format\s*:/i.test(r)&&(e.styles.format=H(r)),/^Style\s*:/i.test(r)&&e.styles.style.push(V(r,e.styles.format))),3===n&&(/^Format\s*:/i.test(r)&&(e.events.format=H(r)),/^(?:Comment|Dialogue)\s*:/i.test(r))){const[,t,i]=r.match(/^(\w+?)\s*:\s*(.*)/i);e.events[t.toLowerCase()].push(P(i,e.events.format))}}}return e}(t),n=function({info:t,style:e,defaultStyle:i}){const n={},r=[U({},i,{Name:"Default"})].concat(e);for(let e=0;e<r.length;e++){const i=U({},et,r[e]);/^(\*+)Default$/.test(i.Name)&&(i.Name="Default"),Object.keys(i).forEach((t=>{"Name"!==t&&"Fontname"!==t&&!/Colour/.test(t)&&(i[t]*=1)}));const[o,a]=it(i.PrimaryColour),[s,l]=it(i.SecondaryColour),[A,c]=it(i.OutlineColour),[h,d]=it(i.BackColour),u={fn:i.Fontname,fs:i.Fontsize,c1:a,a1:o,c2:l,a2:s,c3:c,a3:A,c4:d,a4:h,b:Math.abs(i.Bold),i:Math.abs(i.Italic),u:Math.abs(i.Underline),s:Math.abs(i.StrikeOut),fscx:i.ScaleX,fscy:i.ScaleY,fsp:i.Spacing,frz:i.Angle,xbord:i.Outline,ybord:i.Outline,xshad:i.Shadow,yshad:i.Shadow,fe:i.Encoding,q:/^[0-3]$/.test(t.WrapStyle)?1*t.WrapStyle:2};n[i.Name]={style:i,tag:u}}return n}({info:i.info,style:i.styles.style,defaultStyle:e.defaultStyle||{}});return{info:i.info,width:1*i.info.PlayResX||null,height:1*i.info.PlayResY||null,collisions:i.info.Collisions||"Normal",styles:n,dialogues:tt({styles:n,dialogues:i.events.dialogue})}}function rt(t){const e=t.match(/(\w\w)(\w\w)(\w\w)(\w\w)/),i=function(t){return 1-`0x${t}`/255}(e[1]),n=+`0x${e[2]}`,r=+`0x${e[3]}`;return`rgba(${+`0x${e[4]}`},${r},${n},${i})`}function ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=Math.trunc(16*Math.random());return("x"===t?e:3&e|8).toString(16)}))}function at(t,e=[]){const i=document.createElementNS("http://www.w3.org/2000/svg",t);for(let t=0;t<e.length;t+=1){const n=e[t];i.setAttributeNS("xlink:href"===n[0]?"http://www.w3.org/1999/xlink":null,n[0],n[1])}return i}const st=["fscx","fscy","frx","fry","frz","fax","fay"];function lt(t,e,i){const n=t.animate(e,i);return n.pause(),n}function At(t,e){(t.animations||[]).forEach((t=>{t[e]()}))}const ct=document.createElement("div");ct.className="BILI-SUBTITLEX-ASS-fix-font-size";const ht=document.createElement("span");ht.textContent="1",ct.append(ht);let dt=Object.create(null);function ut(t,e,i,n){const r=`${t}-${e}`;if(!dt[r]){const o=`font-size:${e}px;font-family:"${t}",Arial;`;ht.style.cssText=o,dt[r]="displayHeight"===i?e*e/ht.clientHeight*n:e*n}return dt[r]}function pt(){dt=Object.create(null)}function gt(t){return t&&"object"==typeof t?["perspective(314px)",`rotateY(${t.fry||0}deg)`,`rotateX(${t.frx||0}deg)`,`rotateZ(${-t.frz||0}deg)`,`scale(${t.p?1:(t.fscx||100)/100},${t.p?1:(t.fscy||100)/100})`,`skew(${t.fax||0}rad,${t.fay||0}rad)`].join(" "):"translate(0px, 0px)"}function ft({effect:t,duration:e}){const{name:i,delay:n,leftToRight:r}=t;if("banner"===i)return[0,`calc(var(--ass-scale) * ${e/(n||1)*(r?1:-1)}px)`].map(((t,e)=>({offset:Math.max(0,Math.min(e,1)),transform:`translateX(${t})`})));if(i.startsWith("scroll")){return[{offset:0,transform:"translateY(-100%)"},{offset:1,transform:`translateY(calc(var(--ass-scale) * ${e/(n||1)*(/up/.test(i)?-1:1)}px))`}]}return[{offset:0,transform:"translate(0px, 0px)"},{offset:1,transform:"translate(0px, 0px)"}]}function mt({move:t,duration:e,dialogue:i}){const n=function(t){const e=document.querySelector(".BILI-SUBTITLEX-ASS-box");return parseFloat(getComputedStyle(e).getPropertyValue(t).trim())}("--ass-scale"),{x1:r,y1:o,x2:a,y2:s,t1:l,t2:A}=t,c=[l,null!=A?A:e],h=i.pos||{x:0,y:0};return[[r,o],[a,s]].map((([t,e])=>[t-h.x,e-h.y])).map((([t,i],r)=>{const o=n*t,a=n*i;return{offset:Math.max(0,Math.min(c[r]/e,1)),transform:`translate(${o}px, ${a}px)`,scaledX:o,scaledY:a}}))}function yt(t,e){if("fad"===t.type){const{t1:i,t2:n}=t,r=[];return i&&r.push([0,0]),i<e?(n<=e&&r.push([Math.min(i/e,1),1]),i+n<e&&r.push([Math.min((e-n)/e,1),1]),n>e?r.push([0,Math.max(0,(n-e)/n)]):i+n>e&&r.push([Math.min((i+.5)/e,1),Math.max(0,1-(i+n-e)/n)]),n&&r.push([1,0])):r.push([1,Math.min(1,e/i)]),r.map((([t,e])=>({offset:Math.max(0,Math.min(t,1)),opacity:Math.max(0,Math.min(e,1))})))}const{a1:i,a2:n,a3:r,t1:o,t2:a,t3:s,t4:l}=t,A=[i,n,r].map((t=>Math.max(0,Math.min(1-t/255,1))));return[0,o,a,s,l,e].map((t=>Math.max(0,Math.min(t/e,1)))).map(((t,e)=>({offset:t,opacity:A[e>>1]}))).filter((({offset:t})=>t<=1))}function bt(t,e,i,n){const{start:r,end:o,effect:a,move:s,fade:l,slices:A}=t,c=1e3*(o-r),h=[...a&&!s?ft({effect:a,duration:c}):[],...s?mt({move:s,duration:c,dialogue:t}):[],...l?yt(l,c):[]].sort(((t,e)=>t.offset-e.offset));let u=null;(t=>{for(let e=0;e<t.length;e++)if(t[e].transform){u=t[e].transform;break}null===u&&(u="translate(0px, 0px)");for(let e=0;e<t.length;e++)t[e].transform?u=t[e].transform:t[e].transform=u})(h),h.length>0&&Object.assign(t,{keyframes:h}),A.forEach((t=>{const r=e[t.style].tag;t.fragments.forEach((t=>{if(!t.tag.t||0===t.tag.t.length)return;const e=d(d({},r),t.tag),o=function(t){return t.reduceRight(((t,e)=>{let i=!1;return t.map((t=>(i=e.t1===t.t1&&e.t2===t.t2&&e.accel===t.accel,d(d({},t),i?{tag:d(d({},t.tag),e.tag)}:{})))).concat(i?[]:e)}),[])}(t.tag.t).sort(((t,e)=>t.t2-e.t2||t.t1-e.t1));o[0].t1>0&&o.unshift({t1:0,t2:o[0].t1,tag:e}),o.reduce(((t,e)=>{const i=d(d({},t),e.tag);return i.t=null,Object.assign(e.tag,i),i}),{});const a=Math.max(c,...o.map((({t2:t})=>t))),s=o.map((({t2:r,tag:o})=>{const s=void 0!==o.a1&&o.a1===o.a2&&o.a2===o.a3&&o.a3===o.a4;return d(d(d(d(d({offset:Math.max(0,Math.min(r/a,1))},o.fs&&{"font-size":`calc(calc(var(--ass-scale) * ${ut(o.fn,o.fs,i,n)}px)`}),o.fsp&&{"letter-spacing":`calc(calc(var(--ass-scale) * ${o.fsp}px)`}),(o.c1||o.a1&&!s)&&{color:rt((o.a1||e.a1)+(o.c1||e.c1))}),s&&{opacity:Math.max(0,Math.min(1-Number.parseInt(o.a1,16)/255,1))}),function({fromTag:t,tag:e,fragment:i}){const n=d(d({},t),e);return i.drawing&&(Object.assign(n,{p:0,fscx:(e.fscx||t.fscx)/t.fscx*100,fscy:(e.fscy||t.fscy)/t.fscy*100}),Object.assign(t,{fscx:100,fscy:100})),{transform:gt(n)||"translate(0px, 0px)"}}({fromTag:e,tag:o,fragment:t}))})).sort(((t,e)=>t.offset-e.offset));s.length>0&&Object.assign(t,{keyframes:s,duration:a})}))}))}function vt(t,e){if(!t.clip)return{};const i=document.createElement("div");e.box.insertBefore(i,t.$div),i.append(t.$div),i.className="BILI-SUBTITLEX-ASS-fix-objectBoundingBox";const{cssText:n,$clipPath:r}=function(t,e){const i=e.scriptRes.width,n=e.scriptRes.height;let r=""
;if(null!==t.dots){let{x1:e,y1:o,x2:a,y2:s}=t.dots;e/=i,o/=n,a/=i,s/=n,r=`M${e},${o}L${e},${s},${a},${s},${a},${o}Z`}null!==t.drawing&&(r=t.drawing.instructions.map((({type:t,points:e})=>t+e.map((({x:t,y:e})=>`${t/i},${e/n}`)).join(","))).join(""));const o=1/(1<<t.scale-1);t.inverse&&(r+=`M0,0L0,${o},${o},${o},${o},0,0,0Z`);const a=`ASS-${ot()}`,s=at("clipPath",[["id",a],["clipPathUnits","objectBoundingBox"]]);return s.append(at("path",[["d",r],["transform",`scale(${o})`],["clip-rule","evenodd"]])),e.defs.append(s),{$clipPath:s,cssText:`clip-path:url(#${a});`}}(t.clip,e);return e.defs.append(r),i.style.cssText=n,{$div:i,$clipPath:r}}function Et([t,e]){return[[0,0],[0,1],[1,0],[1,1]].filter((([i,n])=>(i||t)&&(n||e))).map((([i,n])=>[(i||-1)*t,(n||-1)*e]))}function It(t,e,i){const n=Math.ceil(t.xbord*e),r=Math.ceil(t.ybord*e),o=Math.ceil(t.xshad*e),a=Math.ceil(t.yshad*e),s=t.blur||t.be||0,l=function(t,e){if(t===e)return[];const i=Math.min(t,e),n=Math.max(t,e);return Array.from({length:Math.ceil(n)-1},((t,e)=>e+1)).concat(n).map((t=>[(n-t)/n*i,t])).map((([i,n])=>t>e?[n,i]:[i,n])).flatMap(Et)}(n,r),A=rt(`${t.a3}${t.c3}`),c=rt(`${t.a4}${t.c4}`);let h="";if(n){const t=0===n?1:n;h+=`1px 0px ${t}px ${A}, -1px 0px ${t}px ${A}`}if(r){h&&(h+=",");const t=0===r?1:r;h+=`0px 1px ${t}px ${A}, 0px -1px ${t}px ${A}`}if(o||a){let t="";const e=l.length||[[0,0]],i=n||1,A=r||1,d=Math.max(o,a)+s,u=0===d?1:d;t=e.map((([t,e])=>`${i+t}px  ${A+e}px ${u}px ${c}`)).join(","),h&&(h+=","),h+=`${t}`}var d;!(!(d=h)||"string"!=typeof d)&&/(\d+px\s+){2,3}(rgba?\([^)]+\)|#[0-9a-fA-F]{3,8}|[a-zA-Z]+)/.test(d)||(i.log.i("Invalid text-shadow format, using fallback:",h),h="1px 0px 1px rgba(0, 0, 0, 1), -1px 0px 1px rgba(0, 0, 0, 1), 0px 2px 1px rgba(0, 0, 0, 1), 0px -2px 1px rgba(0, 0, 0, 1), 2px 2px 2px rgba(0,0,0,1)"),i.log.i("----- text shadow start ----"),i.log.i("videoTime: ",i.video.currentTime),i.log.i("bx: ",n),i.log.i("by: ",r),i.log.i("finalTextShadow: ",h),i.log.i("----- text shadow end ----");let u="";return(n||r)&&(u=`${Math.max(1,Math.floor(Math.min(n||0,r||0)/2))/2}px ${A}`,i.log.i("webkit-text-stroke: ",u)),[{key:"text-stroke",value:h},{key:"webkit-text-stroke",value:u}].map((t=>Object.assign(t,{key:`--ass-${t.key}`})))}function Ct(t,e,i){if(!t.drawing.d)return null;const{scale:n,info:r}=i,o=d(d({},e),t.tag),{minX:a,minY:s,width:l,height:A}=t.drawing,c=n/(1<<o.p-1),h=(o.fscx?o.fscx/100:1)*c,u=(o.fscy?o.fscy/100:1)*c,p=o.blur||o.be||0,g=o.xbord+(o.xshad<0?-o.xshad:0)+p,f=o.ybord+(o.yshad<0?-o.yshad:0)+p,m=l*h+2*o.xbord+Math.abs(o.xshad)+2*p,y=A*u+2*o.ybord+Math.abs(o.yshad)+2*p,b=at("svg",[["width",m],["height",y],["viewBox",`${-g} ${-f} ${m} ${y}`]]),v=/yes/i.test(r.ScaledBorderAndShadow)?n:1,E=`ASS-${ot()}`,I=at("defs");I.append(function(t,e,i){const n=t.xbord||t.ybord,r=t.xshad||t.yshad,o="FF"!==t.a1,a=t.blur||t.be||0,s=at("filter",[["id",e]]);s.append(at("feGaussianBlur",[["stdDeviation",n?0:a],["in","SourceGraphic"],["result","sg_b"]])),s.append(at("feFlood",[["flood-color",rt(t.a1+t.c1)],["result","c1"]])),s.append(at("feComposite",[["operator","in"],["in","c1"],["in2","sg_b"],["result","main"]])),n&&(s.append(at("feMorphology",[["radius",`${t.xbord*i} ${t.ybord*i}`],["operator","dilate"],["in","SourceGraphic"],["result","dil"]])),s.append(at("feGaussianBlur",[["stdDeviation",a],["in","dil"],["result","dil_b"]])),s.append(at("feComposite",[["operator","out"],["in","dil_b"],["in2","SourceGraphic"],["result","dil_b_o"]])),s.append(at("feFlood",[["flood-color",rt(t.a3+t.c3)],["result","c3"]])),s.append(at("feComposite",[["operator","in"],["in","c3"],["in2","dil_b_o"],["result","border"]]))),r&&(n||o)&&(s.append(at("feOffset",[["dx",t.xshad*i],["dy",t.yshad*i],["in",n?"dil":"SourceGraphic"],["result","off"]])),s.append(at("feGaussianBlur",[["stdDeviation",a],["in","off"],["result","off_b"]])),o||(s.append(at("feOffset",[["dx",t.xshad*i],["dy",t.yshad*i],["in","SourceGraphic"],["result","sg_off"]])),s.append(at("feComposite",[["operator","out"],["in","off_b"],["in2","sg_off"],["result","off_b_o"]]))),s.append(at("feFlood",[["flood-color",rt(t.a4+t.c4)],["result","c4"]])),s.append(at("feComposite",[["operator","in"],["in","c4"],["in2",o?"off_b":"off_b_o"],["result","shadow"]])));const l=at("feMerge",[]);return r&&(n||o)&&l.append(at("feMergeNode",[["in","shadow"]])),n&&l.append(at("feMergeNode",[["in","border"]])),l.append(at("feMergeNode",[["in","main"]])),s.append(l),s}(o,E,v)),b.append(I);const C=`ASS-${ot()}`,B=at("symbol",[["id",C],["viewBox",`${a} ${s} ${l} ${A}`]]);return B.append(at("path",[["d",t.drawing.d]])),b.append(B),b.append(at("use",[["width",l*h],["height",A*u],["xlink:href",`#${C}`],["filter",`url(#${E})`]])),b.style.cssText=`position:absolute;left:${a*h-g}px;top:${s*u-f}px;`,{$svg:b,cssText:`position:relative;width:${l*h}px;height:${A*u}px;`}}function Bt(t,e){const{video:i,styles:n,info:r,fontSizeType:s,fontWeightType:l,fontScaleCoef:A}=e,c=document.createElement("div");c.className="BILI-SUBTITLEX-ASS-dialogue";const h=document.createDocumentFragment(),{slices:u,start:p,end:g}=t,f={duration:1e3*(g-p),delay:1e3*Math.min(0,p-(i.currentTime-e.delay)),fill:"forwards"},m=[];return u.forEach((t=>{var i;const c=n[t.style].tag,u=n[t.style].style.BorderStyle,p=(null==(i=null==t?void 0:t.fragments)?void 0:i.length)||0;t.fragments.forEach(((t,i)=>{const{text:n,drawing:g}=t,y=d(d({},c),t.tag);let b="display:inline-block;";const v=i===p-1,E=[];if(!g){b+=`line-height:normal;font-family:"${y.fn}",Arial;`,b+=`font-size:calc(var(--ass-scale) * ${ut(y.fn,y.fs,s,A)}px);`,b+=`color:${rt(y.a1+y.c1)};`;const t=/yes/i.test(r.ScaledBorderAndShadow)?e.scale:1;if(1===u&&E.push(...It(y,t,e)),3===u){const e=rt(y.a3+y.c3),i=y.xbord*t,n=y.ybord*t,r=rt(y.a4+y.c4),o=y.xshad*t,a=y.yshad*t;b+=`${i||n?`background-color:${e};`:""}border:0 solid ${e};border-width:${i}px ${n}px;margin:${-i}px ${-n}px;box-shadow:${o}px ${a}px ${r};`}b+=y.b?`font-weight:${1===y.b?l:y.b};`:"",b+=y.i?"font-style:italic;":"",b+=y.u||y.s?`text-decoration:${y.u?"underline":""} ${y.s?"line-through":""};`:"",b+=y.fsp?`letter-spacing:calc(var(--ass-scale) * ${y.fsp}px);`:"",(0===y.q||3===y.q)&&(b+="text-wrap:balance;"),1===y.q&&(b+="word-break:break-all;white-space:normal;"),2===y.q&&(b+="word-break:normal;white-space:nowrap;"),!v&&-1!==n.indexOf(" ")&&(b+="white-space:pre-wrap;")}if(st.some((t=>/^fsc[xy]$/.test(t)?100!==y[t]:!!y[t]))&&(b+=`transform:${gt(y)};`,g||(b+="transform-style:preserve-3d;word-break:normal;white-space:nowrap;")),g&&y.pbo){const t=-y.pbo*(y.fscy||100)/100;b+=`vertical-align:calc(var(--ass-scale) * ${t}px);`}const I=/"fr[x-z]":[^0]/.test(JSON.stringify(y));(function(t,e){return t.replace(/\\h/g," ").replace(/\\N/g,"\n").replace(/\\n/g,2===e?"\n":" ")})(n,y.q).split("\n").forEach(((i,n)=>{const r=document.createElement("span");if(I&&(r.dataset.hasRotate=""),g){const i=Ct(t,c,e);if(!i)return;r.style.cssText=i.cssText,r.append(i.$svg)}else{n&&h.append(document.createElement("br")),i||(i="__blank",r.style.visibility="hidden"),r.textContent=i,e.log.i(" before set data-stroke: ",y.xbord,y.ybord,y.xshad,y.yshad);const t=void 0!==y.xbord||void 0!==y.ybord||void 0!==y.xshad||void 0!==y.yshad;r.dataset.stroke=t?"true":"false",t&&e.log.i(" set data-stroke fail ",y.xbord,y.ybord,y.xshad,y.yshad)}if(r.style.cssText+=b,E.forEach((({key:t,value:e})=>{r.style.setProperty(t,e)})),t.keyframes){const e=lt(r,t.keyframes,((t,e)=>o(t,a(e)))(d({},f),{duration:t.duration}));m.push(e)}h.append(r)}))}))})),t.keyframes&&m.push(lt(c,t.keyframes,f)),c.append(h),{$div:c,animations:m}}function wt(t,e){const{video:i,space:n,scale:r}=e,{layer:o,margin:a,width:s,height:l,alignment:A,end:c}=t,h=e.width-Math.trunc(r*(a.left+a.right)),d=e.height,u=Math.trunc(r*a.vertical),p=100*i.currentTime;n[o]=n[o]||{left:{width:new Uint16Array(d+1),end:new Uint32Array(d+1)},center:{width:new Uint16Array(d+1),end:new Uint32Array(d+1)},right:{width:new Uint16Array(d+1),end:new Uint32Array(d+1)}};const g=n[o],f=["right","left","center"][A%3];let m=0,y=0;const b=t=>(m=(t=>{const e=g.left.width[t],i=g.center.width[t],n=g.right.width[t],r=g.left.end[t],o=g.center.end[t],a=g.right.end[t]
;return"left"===f&&(r>p&&e||o>p&&i&&2*s+i>h||a>p&&n&&s+n>h)||"center"===f&&(r>p&&e&&2*e+s>h||o>p&&i||a>p&&n&&2*n+s>h)||"right"===f&&(r>p&&e&&e+s>h||o>p&&i&&2*s+i>h||a>p&&n)})(t)?0:m+1,m>=l&&(y=t,!0));if(A<=3){y=d-u-1;for(let t=y;t>u&&!b(t);t-=1);}else if(A>=7){y=u+1;for(let t=y;t<d-u&&!b(t);t+=1);}else{y=d-l>>1;for(let t=y;t<d-u&&!b(t);t+=1);}A>3&&(y-=l-1);for(let t=y;t<y+l;t+=1)g[f].width[t]=s,g[f].end[t]=100*c;return y}function xt(t,e){var i,n;const{$div:r,animations:o}=Bt(t,e);Object.assign(t,{$div:r,animations:o}),e.box.append(r),r.style.cssText+=function(t){const{layer:e,align:i,effect:n,pos:r,margin:o}=t;let a="";return e&&(a+=`z-index:${e};`),a+=`text-align:${["left","center","right"][i.h]};`,n||(a+=`max-width:calc(100% - var(--ass-scale) * ${o.left+o.right}px);`,r||(0!==i.h&&(a+=`padding-right:calc(var(--ass-scale) * ${o.right}px);`),2!==i.h&&(a+=`padding-left:calc(var(--ass-scale) * ${o.left}px);`))),a}(t);const{width:a}=r.getBoundingClientRect();Object.assign(t,{width:a});const{height:s}=r.getBoundingClientRect();Object.assign(t,{height:s});const{x:l,y:A}=function(t,e){const{scale:i}=e,{effect:n,move:r,align:o,width:a,height:s,margin:l,slices:A}=t;let c=0,h=0;if(n&&"banner"===n.name)c=n.lefttoright?-a:e.width,h=[e.height-s-l.vertical,(e.height-s)/2,l.vertical][o.v];else if(t.pos||r){const e=t.pos||{x:0,y:0},n=i*e.x,r=i*e.y;c=[n,n-Math.ceil(a/2),n-a][o.h],h=[r-s,r-Math.ceil(s/2),r][o.v]}else c=[0,(e.width-a)/2,e.width-a-i*l.right][o.h],h=A.some((t=>t.fragments.some((({animationName:t})=>t))))?[e.height-s-l.vertical,(e.height-s)/2,l.vertical][o.v]:wt(t,e);return{x:c,y:h}}(t,e);return Object.assign(t,{x:l,y:A}),r.style.cssText+=`width:${a+1}px;height:${s}px;left:${l}px;top:${A}px;`,function(t,e){const{align:i,width:n,height:r,x:o,y:a,$div:s}=t,l={};t.org?(l.x=t.org.x*e,l.y=t.org.y*e):(l.x=[o,o+n/2,o+n][i.h],l.y=[a+r,a+r/2,a][i.v]);for(let t=s.childNodes.length-1;t>=0;t-=1){const e=s.childNodes[t];if(""===e.dataset.hasRotate){const t=l.x-o-e.offsetLeft,i=l.y-a-e.offsetTop;e.style.cssText+=`transform-origin:${t}px ${i}px;`}else""!==e.dataset.hasScale&&(e.style.cssText+="transform-origin:left center;")}}(t,e.scale),Object.assign(t,vt(t,e)),null!=(n=null==(i=t.effect)?void 0:i.name)&&n.startsWith("scroll")&&Object.assign(t,function(t,e){const i=document.createElement("div");i.className="BILI-SUBTITLEX-ASS-scroll-area",e.box.insertBefore(i,t.$div),i.append(t.$div);const{height:n}=e.scriptRes,{name:r,y1:o,y2:a}=t.effect,s=Math.min(o,a)/n*100,l=(n-Math.max(o,a))/n*100;i.style.cssText+=`top:${s}%;bottom:${l}%;`;const A=/up/.test(r);return t.$div.style.cssText+=A?"top:100%;":"top:0%;",{$div:i}}(t,e)),t}function Qt(t){const{box:e,defs:i}=t;for(;e.lastChild;)e.lastChild.remove();for(;i.lastChild;)i.lastChild.remove();t.actives=[],t.space=[]}function St(t,e,i){const{log:n,styles:r}=t,o=r[e.style].tag;let a=e.start,s=e.end,l=e.x,A=e.y,c=e.slices.flatMap((t=>t.fragments)).map((t=>t.text)).join(" "),h=e.animations.length>0,d=e.slices[0].fragments[0].tag.fs||o.fs;n.d(`dialogue rendered: start: ${a}, end: ${s}, left: ${l}, top: ${A},origin-fs: ${d},\n\nvideoTime: ${i}, delay: ${t.delay}, ani: ${h},align: h${e.align.h}, v${e.align.v}, margin: l${e.margin.left}, r${e.margin.right}, v${e.margin.vertical}, style: ${e.style}, width: ${e.width}, height: ${e.height},\n\n${e.pos?`pos: ${JSON.stringify(e.pos)},`:""}the text is:${c}`)}function kt(t){var e;const{video:i,dialogues:n,actives:r,log:o}=t,a=i.currentTime-t.delay;for(let t=r.length-1;t>=0;t-=1){const i=r[t],{end:n}=i;n<a&&(i.$div.remove(),null==(e=i.$clipPath)||e.remove(),r.splice(t,1))}for(;t.index<n.length&&a>=n[t.index].start;){if(a<n[t.index].end){const e=xt(n[t.index],t);St(t,e,i.currentTime),i.paused||At(e,"play"),r.push(e)}t.index+=1}}function Dt(t){return function(){Qt(t);const{video:e,dialogues:i}=t,n=e.currentTime-t.delay;t.index=(()=>{let t=0;const e=i.length-1;for(;t+1<e&&n>i[e+t>>1].end;)t=e+t>>1;if(!t)return 0;for(let r=t;r<e;r+=1)if(i[r].end>n&&n>=i[r].start||r&&i[r-1].end<n&&n<i[r].start)return r;return e})(),kt(t)}}var _t,Rt,Mt,Tt,Ft,Lt;const Nt=class t{constructor(e,i,{container:n=i.parentNode,resampling:r,fontSizeType:o,fontScaleCoef:a,fontWeightType:s}={},l,A){g(this,_t,{video:null,box:document.createElement("div"),svg:at("svg"),defs:at("defs"),observer:null,scale:1,width:0,height:0,scriptRes:{},resampledRes:{},index:0,info:{},styles:{},dialogues:[],actives:[],space:[],requestId:0,delay:0,log:null,fontSizeType:"fontHeight",fontWeightType:"bold",fontScaleCoef:1,hidden:!1}),g(this,Rt,void 0),g(this,Mt,void 0),g(this,Tt,void 0),g(this,Ft,void 0),g(this,Lt,"video_width"),p(this,_t).video=i,p(this,_t).log=l,p(this,_t).fontSizeType=o,p(this,_t).emitter=A,p(this,_t).fontScaleCoef=a||1,p(this,_t).fontWeightType=s||"bold";let c=null;try{c=nt(e)}catch(t){throw new Error(`ASS Compile Error: ${t.message}`)}const{info:h,width:d,height:u,styles:m,dialogues:y}=c;this.parseDialogueText(y),p(this,_t).log.i(`ass script has been compiled RESX: ${h.PlayResX} RESY:${h.PlayResY} width:${d} height:${u}`),p(this,_t).info=h,p(this,_t).scriptRes={width:d||i.videoWidth||i.clientWidth,height:u||i.videoHeight||i.clientHeight},p(this,_t).styles=m,p(this,_t).id=t.id++,p(this,_t).dialogues=y.map((t=>Object.assign(t,{align:{h:(t.alignment+2)%3,v:Math.trunc((t.alignment-1)/3)}}))),n.append(ct);const{svg:b,defs:v,box:E}=p(this,_t);return b.append(v),n.append(b),E.className="BILI-SUBTITLEX-ASS-box",n.append(E),function(t){const e=t.getRootNode()||document,i=e===document?document.head:e;let n=i.querySelector("#ASS-global-style");n||(n=document.createElement("style"),n.type="text/css",n.id="ASS-global-style",n.append(document.createTextNode("__GLOBAL_CSS__")),i.append(n))}(n),p(this,_t).log.i("global style has been injected"),this.init(i),f(this,Ft,function(t,e){return function(){const{video:i,box:n,svg:r,log:o,hidden:a}=e,{ch:s,cw:l,vh:A,vw:c}=function(t){let e=t.clientWidth,i=t.clientHeight;const n=t.videoWidth||e;return{ch:i,cw:e,vh:t.videoHeight||i,vw:n}}(i);if([s,l,A,c].findIndex((t=>!t))>=0)return void o.i("metrics is not ready, delay to resize");const h=t=>Math.round(t),d=e.scriptRes.width,u=e.scriptRes.height;let p=d,g=u;const f=Math.min(l/c,s/A);"video_width"===t.resampling&&(g=h(d/c*A)),"video_height"===t.resampling&&(p=h(u/A*c)),"script_width"===t.resampling&&(e.scale=f*(c/p)),"script_height"===t.resampling&&(e.scale=f*(A/g)),e.scale=Math.min(l/p,s/g);const m=h(e.scale*p),y=h(e.scale*g);e.width=m,e.height=y,e.resampledRes={width:p,height:g};let b=`width:${m}px;height:${y}px;top:${(s-y)/2}px;left:${(l-m)/2}px;position:absolute;pointer-events:none;`;a&&(b+="visibility:hidden;"),n.style.cssText=b,n.style.setProperty("--ass-scale",e.scale),r.style.cssText=b,r.setAttributeNS(null,"viewBox",`0 0 ${d} ${u}`);const{dialogues:v,styles:E,fontSizeType:I,fontScaleCoef:C}=e;v.forEach((t=>{bt(t,E,I,C)})),o.i(`resize info: scale: ${e.scale}, width: ${e.width.toFixed(2)}, height: ${e.height.toFixed(2)}, rw-rh:${p}-${g}`),Dt(e)()}}(this,p(this,_t))),this.resampling=r,p(this,_t).log.i("ready to render"),this}parseDialogueText(t){if(t&&t.length>1){let e=t[0].start,i=t[0].end,n=[],r=!0;const o=t=>{let e=0;for(let i=t.length-2;i>=0&&"\\N"===t.substring(i,i+2);i-=2)e++;return e},a=t=>t.replace(/(\\N)+$/,"");t.forEach(((s,l)=>{var A,c;if(s.start===e&&s.end===i){const t=null==(A=null==s?void 0:s.slices[0])?void 0:A.fragments[0],e=(null==t?void 0:t.text)||"",i=o(e);n.push({fragment:t,count:i})}else{n.forEach(((t,e)=>{t.count!==e&&(r=!1)})),r&&n.length>1&&n.forEach((t=>{t.fragment.text=a(t.fragment.text)})),r=!0,e=s.start,i=s.end,n=[];const t=null==(c=null==s?void 0:s.slices[0])?void 0:c.fragments[0],l=(null==t?void 0:t.text)||"",A=o(l);n.push({fragment:t,count:A})}l===t.length-1&&(n.forEach(((t,e)=>{t.count!==e&&(r=!1)})),r&&n.length>0&&n.forEach((t=>{t.fragment.text=a(t.fragment.text)})))}))}}init(t){var e;f(this,Rt,(e=p(this,_t),function(){const t=()=>{kt(e),e.requestId=requestAnimationFrame(t)};cancelAnimationFrame(e.requestId),e.requestId=requestAnimationFrame(t),e.actives.forEach((t=>{At(t,"play")})),e.log.i("play"),e.emitter.emit("PLAYING",{type:"ASS"})})),f(this,Mt,function(t){return function(){
cancelAnimationFrame(t.requestId),t.requestId=0,t.actives.forEach((t=>{At(t,"pause")})),t.log.i("pasued"),t.emitter.emit("PAUSED",{type:"ASS"})}}(p(this,_t))),f(this,Tt,Dt(p(this,_t))),t.addEventListener("playing",p(this,Rt)),t.addEventListener("pause",p(this,Mt)),t.addEventListener("waiting",p(this,Mt)),t.addEventListener("seeking",p(this,Tt))}start(){p(this,Ft).call(this);const{video:t}=p(this,_t),e=new ResizeObserver(p(this,Ft));e.observe(t),p(this,_t).observer=e,t.paused?p(this,Mt).call(this):p(this,Rt).call(this)}destroy(){const{video:t,box:e,svg:i,observer:n,log:r}=p(this,_t);return p(this,Mt).call(this),Qt(p(this,_t)),t.removeEventListener("playing",p(this,Rt)),t.removeEventListener("pause",p(this,Mt)),t.removeEventListener("waiting",p(this,Mt)),t.removeEventListener("seeking",p(this,Tt)),ct.remove(),i.remove(),e.remove(),n&&n.unobserve(p(this,_t).video),p(this,_t).styles={},p(this,_t).dialogues=[],r.i("kernel has been destroyed"),p(this,_t).log=null,p(this,_t).emitter=null,pt(),this}clearFontSizeCache(){pt()}show(){return p(this,_t).log.i(" has showed"),console.trace("1111"),p(this,_t).box.style.visibility="visible",p(this,_t).hidden=!1,this}hide(){return p(this,_t).log.i(" has been hidden"),p(this,_t).hidden=!0,p(this,_t).box.style.visibility="hidden",this}get resampling(){return p(this,Lt)}set resampling(t){t!==p(this,Lt)&&/^(video|script)_(width|height)$/.test(t)&&(f(this,Lt,t),p(this,_t).log.i(`ass resampling by ${t}`),p(this,Ft).call(this))}get delay(){return p(this,_t).delay}set delay(t){"number"==typeof t&&(p(this,_t).delay=t,p(this,_t).log.i(`ass delay has been set by ${t}`),p(this,Tt).call(this))}};var Pt;_t=new WeakMap,Rt=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,Ft=new WeakMap,Lt=new WeakMap,h(Nt,"symbol"!=typeof(Pt="id")?Pt+"":Pt,1);let Ut=Nt;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Ot(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Gt,Ht={};function Vt(t,e,i){if(!i||typeof i.value!==Gt.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:Gt.boolTrue,get:function(){var t=i.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:Gt.boolTrue,writable:Gt.boolTrue}),t}}}Object.defineProperty(Ht,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(Gt||(Gt={}));var Yt,zt=Ht.bind=Vt,Wt=Ht.default=Vt,Zt=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,qt=(t,e,i,n)=>{for(var r,o=jt(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,i,o)||o);return o&&Zt(e,i,o),o};const Jt=(Yt=class extends D{constructor(t){super(t),this.rooter=t,this.assIns=null,this.currentFetchController=null,this.currentTimeoutIds=new Set,this.currentRequestId=null;const e=t.log;this.log=e.getLogger(Yt.tag),this.log.i(`init - id: ${this.id}`)}render(){if(!this.source||"string"!=typeof this.source)return void this.log.w(`[ass plugin]: 数据源无效，跳过渲染 - source: ${this.source}`);const{container:t,video:e}=this.rooter.getInitCfg(),{fontSizeType:i,resampleType:n,fontScaleCoef:r,fontWeightType:o}=this.options;this.assIns&&(this.log.i("[ass plugin]: 销毁之前的 ASS 实例"),this.assIns.destroy(),this.assIns=null);try{this.log.i(`[ass plugin]: 开始创建 ASS 实例 - 数据长度: ${this.source.length}`),this.assIns=new Ut(this.source,e,{container:t,resampling:n,fontSizeType:i,fontScaleCoef:r,fontWeightType:o},this.log,this.rooter.eventEmitter),this.log.i("[ass plugin]: ASS 实例创建成功，发送 READY 事件"),this.rooter.eventEmitter.emit(I.READY,{type:v.ASS}),this.assIns.start()}catch(t){this.log.e(`[ass plugin]: ASS 实例创建失败 - ${t.message}`),this.rooter.eventEmitter.emit(I.ERROR,{code:E.ASS_INIT_ERR,msg:t.message})}}parseData(t){return m(this,null,(function*(){const{url:e,source:i,options:n}=t;if(this.parseOptions(n),this.currentFetchController&&(this.log.i(`[ass plugin]: 取消之前的请求 [ID: ${this.currentRequestId}]`),this.cancelCurrentFetch()),i&&"string"==typeof i)return this.log.i(`[ass plugin]: 使用直接提供的字幕内容，长度: ${i.length} 字符`),i;if(e&&"string"==typeof e){const t=`req_${++Yt.requestCounter}_${Date.now()}`;this.currentRequestId=t,this.log.i(`[ass plugin]: 开始从 URL 加载字幕文件 [ID: ${t}] - URL: ${e}`);const i=(e,n=0)=>m(this,null,(function*(){const{fetchTimeout:r}=this.options;this.currentFetchController=new AbortController;const o=this.currentFetchController,a=n>0?` (重试 ${n}/1)`:"";this.log.i(`[ass plugin]: 创建请求控制器 [ID: ${t}]${a}`),this.log.i(`[ass plugin]: 开始网络请求 [ID: ${t}]${a} - 超时时间: ${r}ms`);let s=!1;const l=setTimeout((()=>{o===this.currentFetchController&&!s&&(s=!0,this.log.w(`[ass plugin]: 请求超时，中止请求 [ID: ${t}]${a} - ${r}ms`),o.abort())}),Math.max(r,50));this.currentTimeoutIds.add(l);try{const r=Date.now();this.log.i(`[ass plugin]: 发起 fetch 请求 [ID: ${t}]${a}`);const A=yield fetch(e,{signal:o.signal}),c=Date.now()-r;if(s)return this.log.w(`[ass plugin]: 请求已超时但仍收到响应 [ID: ${t}]${a} - 耗时: ${c}ms`),null;if(clearTimeout(l),this.currentTimeoutIds.delete(l),this.log.i(`[ass plugin]: 网络请求完成 [ID: ${t}]${a} - 耗时: ${c}ms, 状态: ${A.status}`),o!==this.currentFetchController)return this.log.w(`[ass plugin]: 请求已被新请求替换，忽略响应 [ID: ${t}]${a}`),null;if(!A.ok){const r=`HTTP ${A.status}: ${A.statusText}`;if(this.log.w(`[ass plugin]: HTTP 错误 [ID: ${t}]${a} - ${r}`),A.status>=400&&A.status<500){const i=`字幕文件加载失败 - URL: ${e}, ${r}`;return this.log.e(`[ass plugin]: 客户端错误，不进行重试 [ID: ${t}] - ${i}`),null}if(!(A.status>=500&&n<1)){const i=`字幕文件加载失败 - URL: ${e}, ${r}`;return this.log.e(`[ass plugin]: 达到最大重试次数或其他错误 [ID: ${t}] - ${i}`),null}{const r=1e3*(n+1);this.log.w(`[ass plugin]: 服务器错误，准备重试 [ID: ${t}] - ${r}ms 后重试... (${n+1}/1)`);try{return yield this.createCancelableDelay(r,t),o!==this.currentFetchController?(this.log.w(`[ass plugin]: 延迟期间请求被取消 [ID: ${t}]`),null):i(e,n+1)}catch(e){return this.log.w(`[ass plugin]: 重试延迟被取消 [ID: ${t}] - ${e.message}`),null}}}this.log.i(`[ass plugin]: 开始读取响应内容 [ID: ${t}]${a}`);try{const e=Date.now(),i=yield A.text(),n=Date.now()-e;return o!==this.currentFetchController?(this.log.w(`[ass plugin]: 读取内容期间请求被取消 [ID: ${t}]${a}`),null):(this.log.i(`[ass plugin]: 字幕文件加载成功 [ID: ${t}]${a} - 内容长度: ${i.length} 字符, 读取耗时: ${n}ms`),i)}catch(e){throw this.log.e(`[ass plugin]: 读取响应内容失败 [ID: ${t}]${a} - ${e.message}`),e}}catch(A){if(s||(clearTimeout(l),this.currentTimeoutIds.delete(l)),this.log.e(`[ass plugin]: 网络请求发生异常 [ID: ${t}]${a} - 错误: ${A.name}: ${A.message}`),o!==this.currentFetchController)return this.log.w(`[ass plugin]: 请求期间控制器被替换，忽略错误 [ID: ${t}]${a}`),null;const c="AbortError"===A.name||s&&A.message.includes("aborted")||A.message.includes("The operation was aborted"),h="TypeError"===A.name||A.message.includes("fetch")||A.message.includes("network")||A.message.includes("Failed to fetch");if((c||h)&&n<1){const r=c?"请求超时":"网络错误",a=1e3*(n+1);this.log.i(`[ass plugin]: ${r}，准备重试 [ID: ${t}] - ${a}ms 后重试... (${n+1}/1)`);try{return yield this.createCancelableDelay(a,t),o!==this.currentFetchController?(this.log.w(`[ass plugin]: 延迟期间请求被取消 [ID: ${t}]`),null):i(e,n+1)}catch(e){return this.log.i(`[ass plugin]: 重试延迟被取消 [ID: ${t}] - ${e.message}`),null}}const d=`字幕文件加载失败 - URL: ${e}, 错误类型: ${c?`请求超时（${r}ms）`:h?"网络错误":"未知错误"}, 错误信息: ${A.message}`;return this.log.e(`[ass plugin]: 请求最终失败 [ID: ${t}] - ${d}`),null}}));try{const n=yield i(e);return n?(this.log.i(`[ass plugin]: 请求流程完成 [ID: ${t}] - 成功`),n):(this.log.w(`[ass plugin]: 请求流程完成 [ID: ${t}] - 失败或被取消`),null)}finally{this.log.i(`[ass plugin]: 清理请求资源 [ID: ${t}]`),this.currentFetchController=null,this.currentRequestId=null}}}))}acceptData(t){return m(this,null,(function*(){this.log.i(`[ass plugin]: 开始接收数据 - URL: ${t.url||"N/A"}, source: ${t.source?"已提供":"未提供"}`),this.assIns&&(this.log.i("[ass plugin]: 销毁之前的 ASS 实例"),this.assIns.destroy(),this.assIns=null);try{this.source=yield this.parseData(t),this.source?(this.log.i("[ass plugin]: 数据解析成功，开始渲染"),this.render()):(this.log.w("[ass plugin]: 数据解析失败，跳过渲染"),t.url&&this.rooter.eventEmitter.emit(I.ERROR,{code:E.ASS_INIT_ERR,msg:`字幕文件加载失败 - URL: ${t.url}`}))}catch(t){this.log.e(`[ass plugin]: 数据接收过程发生错误 - ${t.message}`),this.rooter.eventEmitter.emit(I.ERROR,{code:E.ASS_INIT_ERR,
msg:`字幕数据处理失败: ${t.message}`})}}))}cancelCurrentFetch(){this.currentFetchController&&(this.log.i(`[ass plugin]: 主动取消请求 [ID: ${this.currentRequestId}]`),this.currentFetchController.abort(),this.currentFetchController=null),this.currentTimeoutIds.size>0&&(this.log.i(`[ass plugin]: 清除 ${this.currentTimeoutIds.size} 个定时器`),this.currentTimeoutIds.forEach((t=>{clearTimeout(t)})),this.currentTimeoutIds.clear()),this.currentRequestId=null}createCancelableDelay(t,e){const i=e||this.currentRequestId||"unknown";return new Promise(((e,n)=>{const r=setTimeout((()=>{this.currentTimeoutIds.delete(r),e()}),t);this.currentTimeoutIds.add(r);const o=this.currentFetchController;if(o){const a=()=>{this.currentFetchController!==o&&(clearTimeout(r),this.currentTimeoutIds.delete(r),this.log.w(`[ass plugin]: 延迟等待被新请求取消 [ID: ${i}] - ${t}ms`),n(new Error("Delay cancelled by new request")))},s=setInterval((()=>{this.currentFetchController!==o&&(clearInterval(s),a())}),100),l=e;e=()=>{clearInterval(s),l()};const A=n;n=t=>{clearInterval(s),A(t)}}}))}parseOptions(t){const e={fontSizeType:B.FONTHEIGHT,fetchTimeout:5e3};t?(this.options=Object.assign(e,t),this.log.i(`[ass plugin]: 解析配置选项 - fetchTimeout: ${this.options.fetchTimeout}ms, fontSizeType: ${this.options.fontSizeType}`)):(this.options=e,this.log.i(`[ass plugin]: 使用默认配置选项 - fetchTimeout: ${e.fetchTimeout}ms`))}onHide(){super.onHide(),this.assIns&&this.hide&&this.assIns.hide()}onResample(t){super.onResample(t),this.assIns&&(this.assIns.resampling=t)}onShow(){super.onShow(),this.assIns&&!this.hide&&this.assIns.show()}onResize(){super.onResize()}clearFontSizeCache(){this.assIns&&this.assIns.clearFontSizeCache()}onDispose(){if(this.log.i(`[ass plugin]: 开始销毁组件 [当前请求ID: ${this.currentRequestId}]`),super.onDispose(),this.cancelCurrentFetch(),this.assIns&&(this.log.i("[ass plugin]: 销毁 ASS 实例"),this.assIns.destroy(),this.assIns=null),this.log){const t=this.log;this.log=null,t.i("[ass plugin]: 组件销毁完成"),t.clear()}}},Yt.tag=v.ASS,Yt.requestCounter=0,Yt);qt([zt],Jt.prototype,"render"),qt([zt],Jt.prototype,"parseData"),qt([zt],Jt.prototype,"parseOptions"),qt([zt],Jt.prototype,"onHide"),qt([zt],Jt.prototype,"onResample"),qt([zt],Jt.prototype,"onShow"),qt([zt],Jt.prototype,"onResize"),qt([zt],Jt.prototype,"onDispose");function Kt(t){const e=(new DOMParser).parseFromString(t.trim(),"text/html");return document.adoptNode(e.body.firstChild)}class Xt{constructor(t,e){this.tag="SubtitleStore",this.bilingual=!1,this.hover=!1,this.enable=!1,this.lan="",this.fade=!1,this.color="",this.scale=!1,this.shadow=null,this.opacity=null,this.fontSize=null,this.position=w.BottomCenter,this.draggable=!1,this.bottom=0,this.subtitlePosition=null,this.useDiffFontSize=null,this.renderData={[Q.Major]:null,[Q.Minor]:null},this.updateState(t),this.rooter=e}setSource(t){this.setRenderData(Q.Major,this.parse(t[Q.Major])),this.setRenderData(Q.Minor,this.parse(t[Q.Minor]))}updateState(t){t&&Object.entries(t).forEach((([t,e])=>{this[t]=e}))}parse(t){if(!Array.isArray(t))return t&&this.emitError("Invalid data format: expected an array"),[];try{return t.map((t=>{if("number"!=typeof t.to||"number"!=typeof t.from||"string"!=typeof t.content)throw new Error("Invalid subtitle item format");return d({},t)}))}catch(t){return this.emitError(t.message),[]}}emitError(t){this.rooter.eventEmitter.emit(I.ERROR,{code:E.BILI_PARSE_ERR,msg:t})}setRenderData(t,e){this.renderData[t]=e}clear(){this.setRenderData(Q.Major,[]),this.setRenderData(Q.Minor,[]),this.bilingual=!1,this.hover=!1,this.enable=!1,this.lan="",this.fade=!1,this.color="",this.scale=!1,this.fontSize=0,this.shadow=null,this.position=null,this.draggable=!1,this.opacity=0,this.subtitlePosition=null,this.extra=null,this.useDiffFontSize=0}}class $t{constructor(t,e){this.msPrev=performance.now(),this.running=!1,this.msPerFrame=1e3/t.fps,e&&(this.callback=e)}start(t){if(t&&(this.callback=t),!this.callback)throw new Error("No callback provided for the throttled RAF.");this.running||(this.rafID=window.requestAnimationFrame(this.loop.bind(this)))}loop(t){this.rafID=window.requestAnimationFrame(this.loop.bind(this));const e=t-this.msPrev;if(e<this.msPerFrame)return;const i=e%this.msPerFrame;this.msPrev=t-i,this.callback(t)}stop(){this.rafID&&(window.cancelAnimationFrame(this.rafID),this.rafID=void 0)}nextFrame2(){return b(this,null,(function*(){let t=performance.now(),e=0;for(;;){let i=yield new y(new Promise(requestAnimationFrame));i-t<this.msPerFrame-e||(e=Math.min(this.msPerFrame,e+i-t-this.msPerFrame),t=i,yield i)}}))}static nextFrame(t){return b(this,arguments,(function*({fps:t}){const e=1e3/t;let i=performance.now();for(;;){let t=yield new y(new Promise(requestAnimationFrame));const n=t-i;if(n<e)continue;i=t-n%e,yield t}}))}}function te(t,...e){let i="";for(let n=0;n<e.length;n++)i+=t[n],i+=e[n].replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;");return i+=t[t.length-1],i}function ee(t){return"#"+("00000"+t.toString(16)).slice(-6)}const ie='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="none"><g fill="#fff" opacity=".3"><path d="m3.564 1.838 1.759 4.397a.22.22 0 0 1-.205.302h-.474a.22.22 0 0 1-.204-.138l-.472-1.181H2.169l-.472 1.18a.22.22 0 0 1-.204.139H1.02a.22.22 0 0 1-.204-.302l1.759-4.397a.22.22 0 0 1 .204-.138h.581a.22.22 0 0 1 .204.138m-.495 1.13-.548 1.37h1.095l-.547-1.37"/><rect width=".923" height="4.749" x="6.077" y="1.7" rx=".273"/></g></svg>',ne='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="none"><path fill="#fff" d="M3.5 1.089a.1.1 0 0 0-.1.1v.488c.175.462.658.847 1.022 1.169-.436.182-.952.34-1.552.469a.1.1 0 0 0-.067.148l.21.369a.1.1 0 0 0 .109.048c.739-.165 1.366-.37 1.888-.628.487.277 1.106.463 1.849.558a.1.1 0 0 0 .104-.062l.154-.387a.101.101 0 0 0-.082-.138c-.546-.066-1.013-.18-1.402-.342.476-.35.805-.763.987-1.24V1.19a.1.1 0 0 0-.1-.1H3.5m.653.588H5.92c-.196.329-.497.616-.91.868-.329-.238-.69-.525-.857-.868M3.5 4.274a.1.1 0 0 0-.1.1v.402a.1.1 0 0 0 .1.1h1.167v.658H3.199a.1.1 0 0 0-.1.1v.43a.1.1 0 0 0 .1.1h1.468v1.062a.1.1 0 0 0 .1.1h.458a.1.1 0 0 0 .1-.1V6.164h1.601a.1.1 0 0 0 .1-.1v-.43a.1.1 0 0 0-.1-.1H5.325v-.658h1.258a.1.1 0 0 0 .1-.1v-.402a.1.1 0 0 0-.1-.1H5.325V3.8a.1.1 0 0 0-.1-.1h-.458a.1.1 0 0 0-.1.1v.474H3.5M1.67.963a.1.1 0 0 0-.136.003l-.32.315a.1.1 0 0 0 .003.145c.377.343.722.646 1.013.908a.1.1 0 0 0 .138-.004l.312-.317a.1.1 0 0 0-.006-.147c-.306-.264-.638-.574-1.003-.903M.77 2.93a.1.1 0 0 0-.1.1v.437a.1.1 0 0 0 .1.1h.852V6.66c0 .17.201.263.332.153.28-.236.525-.439.838-.716a.1.1 0 0 0 .034-.075v-.535a.098.098 0 0 0-.162-.075c-.132.116-.258.231-.405.354V3.03a.1.1 0 0 0-.1-.1H.77" opacity=".3"/></svg>';class re{constructor(t){this.ctx=t}draw(t,e){const{fade:i,opacity:n,draggable:r}=this.ctx.store,o=te`${t.content}`.replace(/\n/g,"<br>"),a=r?`${this.ctx.ppx}-subtitle-panel-text-mouse-move-cursor`:"";t.ele=Kt(`\n            <div style="${i?"display: none;":""}"><span class="${this.ctx.ppx}-subtitle-panel-text ${a}" role="caption" aria-live="polite" data-type="${e}" style="background: rgba(24, 25, 28, ${n}); font-family:  '-apple-system' };">${o}</span><div class="${this.ctx.ppx}-subtitle-panel-icon">${t.type?`<span class="${this.ctx.cpx}-svg-icon">\n                        ${null!=t&&t.ai_type?ne:ie}\n                    </span>`:""}</div></div>\n        `),this.ctx.templateNodes.group[null!=e?e:Q.Major].appendChild(t.ele)}afterDraw(t,e){}updateFontSize(t){const e=this.ctx.calculateFontSize();this.ctx.templateNodes.group[Q.Major].style.fontSize=(null!=t?t:28)*e+"px",this.ctx.templateNodes.group[Q.Minor].style.fontSize=20*e+"px",this.handleFontSizeChange(e)}handleFontSizeChange(t){if(this.ctx.currentFontsize){if(this.ctx.currentFontsize!==t){if(this.ctx.currentFontsize=t,!this.ctx.dragged||this.ctx.templateNodes.panel.getBoundingClientRect().width<350)return;this.ctx.resetPosition()}}else this.ctx.currentFontsize=t}updateColor(){this.ctx.templateNodes.panel.style.color=ee(+this.ctx.store.color)}updateTextShadow(){this.ctx.templateNodes.panel.style.textShadow=this.ctx.shadowMap[+this.ctx.store.shadow]}updateOpacity(){var t,e;const i=this.ctx.store.opacity
;if(this.ctx.showingGroup[Q.Major]){const e=null==(t=this.ctx.showingGroup[Q.Major].ele)?void 0:t.querySelector("span");e&&(e.style.background=`rgba(24, 25, 28, ${i})`)}if(this.ctx.showingGroup[Q.Minor]){const t=null==(e=this.ctx.showingGroup[Q.Minor].ele)?void 0:e.querySelector("span");t&&(t.style.background=`rgba(24, 25, 28, ${i})`)}}resize(){this.ctx.dragged&&this.ctx.resetPosition()}setBottom(t){this.ctx.store.bottom=t,this.ctx.templateNodes.position.style.bottom=t+"px"}clear(t){this.ctx.templateNodes.group[null!=t?t:Q.Major].innerHTML=""}setPositionAttributes(t){return!1}isDraggable(){return!0}updateMoveRule(t){return t}}class oe extends re{constructor(t,e){super(t),this.config=e}handleFontSizeChange(t){this.ctx.currentFontsize?this.config.skipResetOnFontChange||this.ctx.currentFontsize!==t&&(this.ctx.currentFontsize=t,this.ctx.resetPosition()):this.ctx.currentFontsize=t}resize(){this.ctx.dragged&&this.ctx.resetPosition(),this.ctx.setBottomPosition(this.config.getBottom())}setBottom(t){}setPositionAttributes(t){return!!this.config.forceCenter&&(this.ctx.templateNodes.position.removeAttribute("data-position"),this.ctx.templateNodes.position.removeAttribute("data-textalign"),this.ctx.templateNodes.position.setAttribute("data-textalign","center"),this.ctx.rooter.log.i("Position setting ignored: subtitle is in fixed state"),!0)}isDraggable(){return this.config.allowDrag}}class ae extends re{constructor(t){super(t)}draw(t,e){const{fade:i,draggable:n}=this.ctx.store,r=te`${t.content}`.replace(/\n/g,"<br>"),o=n?`${this.ctx.ppx}-subtitle-panel-text-mouse-move-cursor`:"";if(e===Q.Major){this.ctx.templateNodes.position.removeAttribute("data-position");const n=Kt(`<div class="${this.ctx.ppx}-subtitle-mask-backdrop"  style="${i?"display: none;":""}"><div><span class="${this.ctx.ppx}-subtitle-panel-text ${o}" role="caption" aria-live="polite" data-type="${e}" style="font-family:'-apple-system' };">${r}</span><div class="${this.ctx.ppx}-subtitle-panel-icon">${t.type?`<span class="${this.ctx.cpx}-svg-icon">\n                            ${null!=t&&t.ai_type?ne:ie}\n                        </span>`:""}</div></div></div>`);this.ctx.templateNodes.wrap.appendChild(n),t.ele=n,this.applyBackdropStyle(n)}else super.draw(t,e)}afterDraw(t,e){(e===Q.Major&&this.ctx.showingGroup[Q.Minor]||e===Q.Minor)&&this.adjustMinorSubtitlePosition()}updateFontSize(t){var e;const i=this.ctx.calculateFontSize();if(this.ctx.templateNodes.group[Q.Major].style.fontSize=(null!=t?t:28)*i+"px",this.ctx.templateNodes.group[Q.Minor].style.fontSize=20*i+"px",null!=(e=this.ctx.showingGroup[Q.Major])&&e.ele){const t=this.ctx.showingGroup[Q.Major].ele;t&&t.classList.contains(`${this.ctx.ppx}-subtitle-mask-backdrop`)&&(t.style.fontSize=28*i+"px")}this.handleFontSizeChange(i)}updateOpacity(){var t;const e=this.ctx.store.opacity;if(this.ctx.showingGroup[Q.Major]){const t=this.ctx.showingGroup[Q.Major].ele;t&&t.classList.contains(`${this.ctx.ppx}-subtitle-mask-backdrop`)&&(t.style.background=`rgba(24, 25, 28, ${e})`)}if(this.ctx.showingGroup[Q.Minor]){const i=null==(t=this.ctx.showingGroup[Q.Minor].ele)?void 0:t.querySelector("span");i&&(i.style.background=`rgba(24, 25, 28, ${e})`)}}resize(){var t;if(this.ctx.dragged&&this.ctx.resetPosition(),this.ctx.rooter.log.i("Subtitle position reset due to resize in subtitlePosition mode"),null!=(t=this.ctx.showingGroup[Q.Major])&&t.ele){const t=this.ctx.showingGroup[Q.Major].ele;t&&t.classList.contains(`${this.ctx.ppx}-subtitle-mask-backdrop`)&&this.applyBackdropStyle(t)}this.ctx.showingGroup[Q.Minor]&&this.adjustMinorSubtitlePosition()}setBottom(t){}clear(t){(t===Q.Major||null==t)&&this.ctx.templateNodes.wrap.querySelectorAll(`.${this.ctx.ppx}-subtitle-mask-backdrop`).forEach((t=>t.remove())),this.ctx.templateNodes.group[null!=t?t:Q.Major].innerHTML="",t===Q.Minor&&this.resetMinorSubtitlePosition()}setPositionAttributes(t){return this.ctx.rooter.log.i("Position setting ignored: subtitle is in subtitlePosition state"),!0}isDraggable(){return!0}updateMoveRule(t){var e,i,n,r;const o=this.ctx.templateNodes.panel.getBoundingClientRect(),a=this.ctx.templateNodes.wrap.getBoundingClientRect(),s=null==(i=null==(e=this.ctx.showingGroup[Q.Major])?void 0:e.ele)?void 0:i.getBoundingClientRect(),l=null==(r=null==(n=this.ctx.showingGroup[Q.Minor])?void 0:n.ele)?void 0:r.getBoundingClientRect(),A=[null==s?void 0:s.top,null==l?void 0:l.top].filter((t=>null!=t)),c=[null==s?void 0:s.bottom,null==l?void 0:l.bottom].filter((t=>null!=t));if(A.length){const t=Math.round(.05*o.height-(Math.min(...A)-a.top)),e=Math.round(.95*o.height-(Math.max(...c)-a.top));return this.ctx.cachedMaskBounding={topBounding:t,bottomBounding:e},{topBounding:t,bottomBounding:e}}return this.ctx.cachedMaskBounding.topBounding?{topBounding:this.ctx.cachedMaskBounding.topBounding,bottomBounding:this.ctx.cachedMaskBounding.bottomBounding}:t}isSubtitleNearBottom(){return this.ctx.store.subtitlePosition.y_min<=.1}calculateBackdropStyle(){const t=this.ctx.templateNodes.panel.getBoundingClientRect(),e=this.ctx.templateNodes.wrap.getBoundingClientRect(),i=this.ctx.video.videoWidth,n=this.ctx.video.videoHeight,r=t.width||this.ctx.video.clientWidth,o=t.height||this.ctx.video.clientHeight,{x_min:a,y_min:s,x_max:l,y_max:A}=this.ctx.store.subtitlePosition;if(![a,s,l,A].every((t=>t>=0&&t<=1))||a>=l||s>=A)return null;const c=this.isSubtitleNearBottom(),h=A-s,d=Math.round(h*(n*r/i)),u=e.top-t.top,p=Math.max(0,(o-n*r/i)/2);let g;if(c){const i=s,n=o-(e.bottom-t.top);g=Math.round(o*i-n+p)}else{const t=1-A;g=Math.round(o*t-u+p)}const f={minHeight:d+"px",maxContentWidth:.9*r+"px"};return c?f.bottom=g+"px":f.top=g+"px",this.ctx.rooter.log.i(`Calculated backdrop style: ${JSON.stringify(f)}, based on subtitlePosition: ${JSON.stringify(this.ctx.store.subtitlePosition)}`),f}applyBackdropStyle(t){const e=this.calculateBackdropStyle();if(!e)return;const{opacity:i}=this.ctx.store,n=28*this.ctx.calculateFontSize();t.style.minHeight=e.minHeight,this.ctx.dragged?void 0!==this.ctx.backdropDragOffset.bottom?(t.style.bottom=this.ctx.backdropDragOffset.bottom,t.style.top=""):void 0!==this.ctx.backdropDragOffset.top&&(t.style.top=this.ctx.backdropDragOffset.top,t.style.bottom=""):void 0!==e.bottom?(t.style.bottom=e.bottom,t.style.top="",this.ctx.backdropDragOffset={bottom:e.bottom}):void 0!==e.top&&(t.style.top=e.top,t.style.bottom="",this.ctx.backdropDragOffset={top:e.top}),t.style.fontSize=n+"px",t.style.background=`rgba(24, 25, 28, ${i})`;const r=t.querySelector("div");r&&e.maxContentWidth&&(r.style.maxWidth=e.maxContentWidth);const o=t.querySelector(`.${this.ctx.ppx}-subtitle-panel-text`);o&&e.maxContentWidth&&(o.style.maxWidth=e.maxContentWidth)}adjustMinorSubtitlePosition(){const t=this.ctx.templateNodes.group[Q.Minor];if(!this.ctx.showingGroup[Q.Major])return void((this.ctx.lastMinorPosition.top||this.ctx.lastMinorPosition.bottom)&&this.applySavedMinorPosition(t));const e=this.ctx.showingGroup[Q.Major].ele;if(!e)return void((this.ctx.lastMinorPosition.top||this.ctx.lastMinorPosition.bottom)&&this.applySavedMinorPosition(t));const i=e.getBoundingClientRect(),n=this.ctx.templateNodes.wrap.getBoundingClientRect(),r=this.isSubtitleNearBottom();if(t.setAttribute("data-adjusted","true"),r){const e=i.top-n.top,r=n.height-e+8+"px";t.style.bottom=r,t.style.top="",this.ctx.lastMinorPosition={bottom:r}}else{const e=i.bottom-n.top+8+"px";t.style.top=e,t.style.bottom="",this.ctx.lastMinorPosition={top:e}}}resetMinorSubtitlePosition(){const t=this.ctx.templateNodes.group[Q.Minor];t.removeAttribute("data-adjusted"),t.style.top="",t.style.bottom="",this.ctx.lastMinorPosition={}}applySavedMinorPosition(t){t.setAttribute("data-adjusted","true"),this.ctx.lastMinorPosition.bottom?(t.style.bottom=this.ctx.lastMinorPosition.bottom,t.style.top=""):this.ctx.lastMinorPosition.top&&(t.style.top=this.ctx.lastMinorPosition.top,t.style.bottom="")}}const se={horizontal:{single:{bottomPercent:.04,majorFontSize:32,majorLineHeight:1.2},dual:{bottomPercent:.023,majorFontSize:32,minorFontSize:22,majorLineHeight:1.2,minorLineHeight:1.2}},vertical:{single:{bottomPercent:.125,majorFontSize:28,majorLineHeight:41/28},dual:{bottomPercent:.14,majorFontSize:28,
minorFontSize:18,majorLineHeight:41/28,minorLineHeight:26/18,minSafePercent:.02}},maxWidthPercent:.92,textColor:"#FFFFFF",majorStrokeWidth:3,minorStrokeWidth:2.4,strokeColor:"#000000",fontFamily:"'Source Han Sans SC Medium', 'Source Han Sans Medium', sans-serif"};class le{constructor(t){this.ctx=t,this.externalFontScale=1}draw(t,e){const{fade:i,draggable:n}=this.ctx.store,r=te`${t.content}`.replace(/\n/g,"<br>"),o=n?`${this.ctx.ppx}-subtitle-panel-text-mouse-move-cursor`:"";t.ele=Kt(`\n            <div style="${i?"display: none;":""}"><span class="${this.ctx.ppx}-subtitle-rawmeat-text ${o}" role="caption" aria-live="polite" data-type="${e}">${r}</span><div class="${this.ctx.ppx}-subtitle-panel-icon">${t.type?`<span class="${this.ctx.cpx}-svg-icon">\n                        ${null!=t&&t.ai_type?ne:ie}\n                    </span>`:""}</div></div>\n        `),this.ctx.templateNodes.group[null!=e?e:Q.Major].appendChild(t.ele)}afterDraw(t,e){this.applyLayout()}updateFontSize(t){const{fontSize:e}=this.ctx.store;e&&(this.externalFontScale=e),this.applyLayout()}updateColor(){const t=ee(+this.ctx.store.color);this.applyTextColor(t)}updateTextShadow(){this.ctx.templateNodes.panel.style.textShadow="none"}updateOpacity(){}resize(){this.applyLayout()}setBottom(t){}clear(t){this.ctx.templateNodes.group[null!=t?t:Q.Major].innerHTML=""}setPositionAttributes(t){return!0}isDraggable(){return!1}updateMoveRule(t){return t}applyLayout(){var t;const e=this.getConfig(),{actualVideoWidth:i,actualVideoHeight:n,letterboxTop:r,letterboxLeft:o}=this.getVideoRenderArea(),a=this.isVerticalVideo(),s=(null==(t=this.ctx.store.renderData[Q.Minor])?void 0:t.length)>0&&null!=this.ctx.showingGroup[Q.Minor];this.ctx.templateNodes.position.style.top="",this.ctx.templateNodes.position.style.left=o+"px",this.ctx.templateNodes.position.style.width=i+"px",this.ctx.templateNodes.position.removeAttribute("data-position"),this.ctx.templateNodes.position.setAttribute("data-textalign","center"),this.ctx.templateNodes.group[Q.Major].style.fontSize="0",this.ctx.templateNodes.group[Q.Minor].style.fontSize="0";const l=i*se.maxWidthPercent;this.ctx.templateNodes.wrap.style.maxWidth=l+"px",this.ctx.templateNodes.wrap.style.margin="0 auto";const A=this.ctx.templateNodes.panel.getBoundingClientRect().width,c=this.ctx.store.scale?A/1139:1;if(this.applyFontStyle(e,c*this.externalFontScale),a&&s)this.applyVerticalDualLayout(e,n,r);else{const t=r+n*e.bottomPercent;this.ctx.templateNodes.position.style.bottom=t+"px"}this.applyTextColor(ee(+this.ctx.store.color)),this.ctx.rooter.log.i(`Raw meat layout applied: maxWidth=${l}px, isVertical=${a}, hasDual=${s}, config=${JSON.stringify(e)}`)}applyFontStyle(t,e){const i=this.ctx.templateNodes.group[Q.Major],n=this.ctx.templateNodes.group[Q.Minor],r=null==i?void 0:i.querySelector(`.${this.ctx.ppx}-subtitle-rawmeat-text`);if(r&&(r.style.fontSize=t.majorFontSize*e+"px",r.style.lineHeight=t.majorLineHeight.toString(),this.applyStroke(r,se.majorStrokeWidth),r.style.fontFamily=se.fontFamily),"minorFontSize"in t){const i=null==n?void 0:n.querySelector(`.${this.ctx.ppx}-subtitle-rawmeat-text`);i&&(i.style.fontSize=t.minorFontSize*e+"px",i.style.lineHeight=t.minorLineHeight.toString(),this.applyStroke(i,se.minorStrokeWidth),i.style.fontFamily=se.fontFamily)}}buildStrokeShadow(t,e){const i=t/2,n=i/Math.SQRT2;return[[i,0],[-i,0],[0,i],[0,-i],[n,n],[-n,n],[n,-n],[-n,-n]].map((([t,i])=>`${e} ${t}px ${i}px 0`)).join(", ")}applyStroke(t,e){const i=se.strokeColor;t.style.setProperty("--rawmeat-text-stroke",this.buildStrokeShadow(e,i)),t.style.setProperty("--rawmeat-webkit-text-stroke",`${e}px ${i}`)}applyTextColor(t){var e;const i=[Q.Major,Q.Minor];for(const n of i){const i=null==(e=this.ctx.templateNodes.group[n])?void 0:e.querySelector(`.${this.ctx.ppx}-subtitle-rawmeat-text`);i&&(i.style.color=t)}}applyVerticalDualLayout(t,e,i){const n=this.ctx.templateNodes.group[Q.Minor],r=(null==n?void 0:n.getBoundingClientRect().height)||0;let o=i+e*t.bottomPercent-r-4;const a=i+e*("minSafePercent"in t?t.minSafePercent:.02);o<a&&(o=a),this.ctx.templateNodes.position.style.bottom=o+"px"}getConfig(){var t;const e=this.isVerticalVideo(),i=(null==(t=this.ctx.store.renderData[Q.Minor])?void 0:t.length)>0;return se[e?"vertical":"horizontal"][i?"dual":"single"]}getVideoRenderArea(){const t=this.ctx.templateNodes.panel.getBoundingClientRect(),e=this.ctx.video.videoWidth,i=this.ctx.video.videoHeight,n=t.width||this.ctx.video.clientWidth,r=t.height||this.ctx.video.clientHeight,o=e/i;let a,s,l=0,A=0;return n/r>o?(s=r,a=o*r,A=(n-a)/2):(a=n,s=n/o,l=(r-s)/2),{actualVideoWidth:a,actualVideoHeight:s,letterboxTop:l,letterboxLeft:A,displayWidth:n,displayHeight:r}}isVerticalVideo(){return this.ctx.video.videoWidth<this.ctx.video.videoHeight}}var Ae=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,he=(t,e,i,n)=>{for(var r,o=ce(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,i,o)||o);return o&&Ae(e,i,o),o};class de{constructor(t,e,i,n){this.ppx="bili-subtitle-x",this.cpx="bili-subtitle-x-common",this.dragged=!1,this.isTestSubtitleAlive=!1,this.isRendering=!1,this.currentSubtitle=null,this.previousSubtitle=null,this.nextSubtitle=null,this.currentMinorSubtitle=null,this.previousMinorSubtitle=null,this.nextMinorSubtitle=null,this.aiSubtitleCountTrack={},this.fixed=!1,this.templateNodes=this.subtitleTemplate(),this.showingGroup=[null,null],this.testSubtitleItem={to:1/0,from:1/0,content:"字幕样式测试"},this.moveRule={leftBounding:0,rightBounding:0,topBounding:0,bottomBounding:0,width:0,height:0},this.dragStart={x:0,y:0},this.dragEnd={x:0,y:0},this.drag={x:0,y:0},this.backdropDragOffset={},this.lastMinorPosition={},this.cachedMaskBounding={},this.issueCache=[],this.video=t,this.rooter=n,this.store=new Xt(i,this.rooter),this.container=e,this.strategy=this.resolveStrategy(),this.templateNodes.panel.parentElement||(this.container.appendChild(this.templateNodes.panel),this.startRendering(),this.templateNodes.wrap.addEventListener("mousedown",this.onMousedownHandler))}get shadowMap(){return["none","rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) -1px 0px 1px","rgb(0, 0, 0) 0px 0px 1px, rgb(0, 0, 0) 0px 0px 1px, rgb(0, 0, 0) 0px 0px 1px","rgb(0, 0, 0) 1px 1px 2px, rgb(0, 0, 0) 0px 0px 1px"]}buildContext(){const t=this;return{ppx:this.ppx,cpx:this.cpx,video:this.video,store:this.store,rooter:this.rooter,templateNodes:this.templateNodes,showingGroup:this.showingGroup,shadowMap:this.shadowMap,get dragged(){return t.dragged},get fixed(){return t.fixed},get fixedPosition(){return t.fixedPosition},get backdropDragOffset(){return t.backdropDragOffset},set backdropDragOffset(e){t.backdropDragOffset=e},get lastMinorPosition(){return t.lastMinorPosition},set lastMinorPosition(e){t.lastMinorPosition=e},get cachedMaskBounding(){return t.cachedMaskBounding},set cachedMaskBounding(e){t.cachedMaskBounding=e},get currentFontsize(){return t.currentFontsize},set currentFontsize(e){t.currentFontsize=e},calculateFontSize:()=>this.calculateFontSize(),setBottomPosition:t=>this.setBottomPosition(t),resetPosition:t=>this.resetPosition(t)}}resolveStrategy(){var t,e,i,n;const r=this.buildContext();return null!=(t=this.store.extra)&&t.isRawMeat?new le(r):(null==(e=this.store.subtitlePosition)?void 0:e.purpose)===S.Mask?new ae(r):this.fixed?new oe(r,{getBottom:()=>this.fixedPosition,forceCenter:!0,allowDrag:!1,skipResetOnFontChange:!0}):(null==(i=this.store.subtitlePosition)?void 0:i.purpose)!==S.Uncover||null!=(n=this.store.renderData[Q.Minor])&&n.length?new re(r):new oe(r,{getBottom:()=>this.store.subtitlePosition.y_min,forceCenter:!1,allowDrag:!0,skipResetOnFontChange:!0})}resetInlineStyles(){const{position:t,wrap:e,group:i}=this.templateNodes;t.style.left="",t.style.width="",t.style.bottom="",t.style.top="",e.style.maxWidth="",e.style.margin="",i[Q.Major].style.fontSize="",i[Q.Minor].style.fontSize="",this.dragged=!1,this.backdropDragOffset={}}updateState(t){this.store.updateState(t)}updatePartialStyle(t){var e,i;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(n){case"fontSize":this.store.fontSize=t.fontSize,this.updateFontSize(),
this.rooter.log.i(` update font size: ${t.fontSize}, scale: ${this.store.scale} `);break;case"useDiffFontSize":this.store.fontSize=t.useDiffFontSize,this.store.useDiffFontSize=1,this.updateFontSize(18),this.rooter.log.i(` update use Diff font size: ${t.useDiffFontSize}`);break;case"color":"string"==typeof t.color&&(this.store.color=t.color,this.updateColor()),this.rooter.log.i(` update color: ${t.color}`);break;case"shadow":"string"==typeof t.shadow&&(this.store.shadow=t.shadow,this.updateTextShadow()),this.rooter.log.i(` update shadow: ${t.shadow}`);break;case"position":"string"==typeof t.position&&(this.store.position=t.position,this.setPositionAttributes(t.position),this.dragged=!1,this.backdropDragOffset={}),this.rooter.log.i(` update position: ${t.position}`);break;case"opacity":this.store.opacity=t.opacity,this.updateOpacity(),this.rooter.log.i(` update opacity: ${t.opacity}`);break;case"fade":this.store.fade=t.fade,this.rooter.log.i(` update fade: ${t.fade}`);break;case"bottom":if(this.getDragged()||!this.strategy.isDraggable())break;this.strategy.setBottom(t.bottom),this.rooter.log.i(` update bottom: ${t.bottom}`);break;case"scale":this.store.scale=t.scale,this.updateFontSize(),this.rooter.log.i(` update scale: ${t.scale}`);break;case"draggable":this.store.draggable=t.draggable,this.rooter.log.i(` update draggable: ${t.draggable}`);break;case"fixed":this.setFixed(t.fixed),this.strategy=this.resolveStrategy(),this.rooter.log.i(` update fixed: ${t.fixed}`);break;case"fixedPosition":"number"==typeof t.fixedPosition&&(this.setFixedPosition(t.fixedPosition),this.rooter.log.i(` update fixedPosition: ${JSON.stringify(t.fixedPosition)}`));break;case"subtitlePosition":this.store.subtitlePosition={x_min:t.subtitlePosition.x_min,x_max:t.subtitlePosition.x_max,y_max:parseFloat((1-t.subtitlePosition.y_min).toFixed(4)),y_min:parseFloat((1-t.subtitlePosition.y_max).toFixed(4)),purpose:(null==(e=t.subtitlePosition)?void 0:e.purpose)||0},this.strategy=this.resolveStrategy(),this.rooter.log.i(` update subtitlePosition: ${JSON.stringify(t.subtitlePosition)}`),(null==(i=this.store.subtitlePosition)?void 0:i.purpose)===S.Uncover&&(this.setBottomPosition(this.store.subtitlePosition.y_min),this.rooter.log.i(` update subtitlePosition : ${JSON.stringify(t.subtitlePosition)}`));break;case"extra":this.store.extra=t.extra,this.strategy=this.resolveStrategy(),this.initStyle(),this.rooter.log.i(` update extra: ${JSON.stringify(t.extra)}`);break;default:console.warn(`Unrecognized option key: ${n}`)}}setFixed(t){this.fixed=t,this.dragged=!1,this.backdropDragOffset={},this.setPositionAttributes(this.store.position)}setFixedPosition(t){this.fixedPosition=t,this.setBottomPosition(this.fixedPosition)}setSource(t,e){var i,n,r,o;this.store.setSource(t);const a=!(null==(i=this.store.renderData[Q.Minor])||!i.length),s=!(null==(n=this.store.renderData[Q.Minor])||!n.length);(null==(r=this.store.subtitlePosition)?void 0:r.purpose)===S.Uncover&&a!==s&&this.resetInlineStyles(),this.clear(Q.Major),this.clear(Q.Minor),this.store.updateState(e),this.strategy=this.resolveStrategy(),this.initStyle(),(null==(o=this.store.subtitlePosition)?void 0:o.purpose)===S.Uncover&&!s&&this.setBottomPosition(this.store.subtitlePosition.y_min)}initStyle(){var t;this.updateColor(),this.updateTextShadow();const e=!(null==(t=this.store.renderData[Q.Minor])||!t.length);this.updateFontSize(this.store.useDiffFontSize&&!e?18:null),this.updateOpacity()}updateTextShadow(){this.strategy.updateTextShadow()}updateColor(){this.strategy.updateColor()}updateOpacity(){this.strategy.updateOpacity()}handleTestSubtitle(t){!this.showingGroup[Q.Major]&&!this.showingGroup[Q.Minor]&&(t?this.draw(this.testSubtitleItem):this.wipe(this.testSubtitleItem))}hide(){this.stopRendering(),this.templateNodes.panel.style.display="none"}show(){this.startRendering(),this.templateNodes.panel.style.display="block"}resize(){this.strategy.resize()}setBottom(t){this.strategy.setBottom(t)}startRendering(){return m(this,null,(function*(){if(!this.isRendering){this.isRendering=!0;try{for(var t,e,i,n=((t,e,i)=>(e=t[c("asyncIterator")])?e.call(t):(t=t[c("iterator")](),e={},(i=(i,n)=>(n=t[i])&&(e[i]=e=>new Promise(((i,r,o)=>(e=n.call(t,e),o=e.done,Promise.resolve(e.value).then((t=>i({value:t,done:o})),r))))))("next"),i("return"),e))($t.nextFrame({fps:30}));t=!(e=yield n.next()).done;t=!1){e.value;if(!this.isRendering)break;this.render(Q.Major),this.render(Q.Minor)}}catch(t){i=[t]}finally{try{t&&(e=n.return)&&(yield e.call(n))}finally{if(i)throw i[0]}}}}))}stopRendering(){this.isRendering=!1}subtitleTemplate(){const t=Kt(`\n            <div class="${this.ppx}-subtitle-panel">\n                <div class="${this.ppx}-subtitle-panel-position">\n                    <div class="${this.ppx}-subtitle-panel-wrap">\n                        <div class="${this.ppx}-subtitle-panel-major-group"></div>\n                        <div class="${this.ppx}-subtitle-panel-minor-group"></div>\n                    </div>\n                </div>\n            <div>\n        `),e=t.querySelector(`.${this.ppx}-subtitle-panel-position`);return{wrap:t.querySelector(`.${this.ppx}-subtitle-panel-wrap`),group:[t.querySelector(`.${this.ppx}-subtitle-panel-major-group`),t.querySelector(`.${this.ppx}-subtitle-panel-minor-group`)],panel:t,position:e}}setPositionAttributes(t){if(this.strategy.setPositionAttributes(t))return;const[e,i]=t.split("-");this.templateNodes.position.style.top="",this.templateNodes.position.style.left="",this.templateNodes.position.style.bottom=this.store.bottom+"px",this.templateNodes.position.setAttribute("data-position",e),this.templateNodes.position.setAttribute("data-textalign",i)}render(t){const e=this.video.currentTime;this.handleTestSubtitleRender()||(this.shouldClearCurrentSubtitle(t,e)&&(this.showingGroup[t]&&(t===Q.Major?this.previousSubtitle=d({},this.showingGroup[t]):t===Q.Minor&&(this.previousMinorSubtitle=d({},this.showingGroup[t]))),this.wipe(this.showingGroup[t]),this.showingGroup[t]=null,t===Q.Major?this.currentSubtitle=null:t===Q.Minor&&(this.currentMinorSubtitle=null)),this.showingGroup[t]||this.renderNewSubtitle(t,e))}renderNewSubtitle(t,e){var i,n,r,o,a,s,l,A;const c=this.store.renderData[t];if(null==c||!c.length)return;const h=this.findSubtitleIndex(c,e);if(-1===h)return;const d=c[h];if(t===Q.Major){if((null==(i=this.currentSubtitle)?void 0:i.content)!==d.content&&(this.previousSubtitle=this.currentSubtitle,this.currentSubtitle=d),this.nextSubtitle=h<c.length-1?c[h+1]:null,this.wipe(this.testSubtitleItem),this.draw(this.currentSubtitle,t),this.logSubtitleContext(e,t),(null==(n=this.store.extra)?void 0:n.minorLan)!==(null==(r=this.store.extra)?void 0:r.majorLan)){let t=null==(o=this.store.extra)?void 0:o.lan;this.currentSubtitle.type&&"string"==typeof t&&(t=t.replace("ai-","")),t&&(this.aiSubtitleCountTrack[t]=(this.aiSubtitleCountTrack[t]||0)+1)}}else if(t===Q.Minor&&((null==(a=this.currentMinorSubtitle)?void 0:a.content)!==d.content&&(this.previousMinorSubtitle=this.currentMinorSubtitle,this.currentMinorSubtitle=d),this.nextMinorSubtitle=h<c.length-1?c[h+1]:null,this.wipe(this.testSubtitleItem),this.draw(this.currentMinorSubtitle,t),this.logSubtitleContext(e,t),(null==(s=this.store.extra)?void 0:s.minorLan)!==(null==(l=this.store.extra)?void 0:l.majorLan))){let t=null==(A=this.store.extra)?void 0:A.minorLan;this.currentMinorSubtitle.type&&"string"==typeof t&&(t=t.replace("ai-","")),t&&(this.aiSubtitleCountTrack[t]=(this.aiSubtitleCountTrack[t]||0)+1)}}handleTestSubtitleRender(){var t,e;return(null==(e=null==(t=this.store.renderData[0])?void 0:t[0])?void 0:e.to)===1/0?(this.isTestSubtitleAlive||(this.draw(this.store.renderData[0][0]),this.rooter.log.i("testing subtitle has been rendered"),this.isTestSubtitleAlive=!0),!0):(this.isTestSubtitleAlive=!1,!1)}shouldClearCurrentSubtitle(t,e){const i=this.showingGroup[t];return!!i&&(e<i.from||e>=i.to)}findSubtitleIndex(t,e){let i=0,n=t.length-1;for(;i<=n;){const r=Math.floor((i+n)/2),o=t[r];if(e>=o.from&&e<o.to)return r;e<o.from?n=r-1:i=r+1}return-1}logSubtitleContext(t,e){var i,n,r,o,a,s
;e===Q.Major?this.rooter.log.i(`Subtitle Context at ${t}:\n                            Previous Rendered: ${(null==(i=this.previousSubtitle)?void 0:i.content)||"none"}\n                            Current: ${(null==(n=this.currentSubtitle)?void 0:n.content)||"none"}\n                            Next in Timeline: ${(null==(r=this.nextSubtitle)?void 0:r.content)||"none"}\n                            Type: ${e}`):e===Q.Minor&&this.rooter.log.i(`Subtitle Context at ${t}:\n                            Previous Rendered: ${(null==(o=this.previousMinorSubtitle)?void 0:o.content)||"none"}\n                            Current: ${(null==(a=this.currentMinorSubtitle)?void 0:a.content)||"none"}\n                            Next in Timeline: ${(null==(s=this.nextMinorSubtitle)?void 0:s.content)||"none"}\n                            Type: ${e}`)}getDragged(){return"draged"===this.templateNodes.position.getAttribute("data-position")}draw(t,e){var i;const{fade:n}=this.store,r=null!=e?e:Q.Major;this.strategy.draw(t,r),n&&(t.ele.style.display="block",t.ele.animate([{opacity:0},{opacity:1}],{duration:1e3,easing:"ease-out",fill:"forwards"})),null!=e&&(this.showingGroup[e]=t),this.strategy.afterDraw(t,r),this.rooter.log.i(`Draw subtitle: ${t.content}, fade: ${n}, purpose: ${null==(i=this.store.subtitlePosition)?void 0:i.purpose}`)}wipe(t){null!=t&&t.ele&&t.ele.remove()}clear(t){this.strategy.clear(t),null!=t&&(this.showingGroup[t]=null)}updateFontSize(t){this.strategy.updateFontSize(t)}updateMoveRule(){const t=this.templateNodes.panel.getBoundingClientRect(),e=this.templateNodes.wrap.getBoundingClientRect(),i=this.templateNodes.wrap.offsetLeft,n=e.width<350?14:this.store.bottom;let r=Math.round(.05*t.height),o=Math.round(t.height-e.height-n);const a=this.strategy.updateMoveRule({topBounding:r,bottomBounding:o});r=a.topBounding,o=a.bottomBounding,this.moveRule={leftBounding:Math.round(.05*t.width-i),rightBounding:Math.round(.95*t.width-e.width-i),topBounding:r,bottomBounding:o,width:t.width,height:t.height}}limiteFixPosition({x:t,y:e}){const{leftBounding:i,rightBounding:n,topBounding:r,bottomBounding:o}=this.moveRule;return t=Math.max(t,i),t=Math.min(t,n),e=Math.max(e,r),{x:t,y:e=Math.min(e,o)}}fixToRelativePositin(t){const{leftBounding:e,rightBounding:i,topBounding:n,bottomBounding:r}=this.moveRule;let{x:o,y:a}=this.limiteFixPosition(t);return{x:(o-e)/(i-e)||0,y:(a-n)/(r-n)}}relativeToFixPositin({x:t,y:e}){const{leftBounding:i,rightBounding:n,topBounding:r,bottomBounding:o}=this.moveRule;return{x:Math.round(t*(n-i)+i),y:Math.round(e*(o-r)+r)}}updatePosition(t){this.templateNodes.position.style.bottom="",this.templateNodes.position.style.left=t.x+"px",this.templateNodes.position.style.top=t.y+"px",this.rooter.log.i(`subtitle position updated: left :${t.x}, top: ${t.y}`)}updateBottomPosition(t){this.templateNodes.position.style.bottom=t.y+"px",this.templateNodes.position.style.left=t.x+"px",this.templateNodes.position.style.top="",this.rooter.log.i(`subtitle bottom position updated: left: ${t.x}, bottom: ${t.y}`)}resetPosition(t){if(console.trace("reset position, isStartDrag:",t),this.updateMoveRule(),t){const{top:t,left:e}=window.getComputedStyle(this.templateNodes.position);this.drag=this.fixToRelativePositin({x:parseFloat(e),y:parseFloat(t)})}this.updatePosition(this.relativeToFixPositin(this.drag))}setBottomPosition(t){const e=this.templateNodes.panel.getBoundingClientRect();let i=e.width,n=e.height;0===i&&0===n&&(i=this.video.clientWidth,n=this.video.clientHeight);const r=this.video.videoWidth,o=this.video.videoHeight*i/r,a=.05*i,s=Math.max(0,(n-o)/2)+o*t;this.updateBottomPosition({x:a,y:s})}calculateFontSize(){let t=1;const{scale:e,fontSize:i}=this.store,n=this.templateNodes.panel.getBoundingClientRect();return e&&(t=n.width/1139),i&&(t*=i),t}onMousedownHandler(t){this.rooter.eventEmitter.emit(I.MOUSEEVENT,{MouseEvent:t,type:v.BILI,showingGroup:this.showingGroup,wrap:this.templateNodes.wrap}),this.store.draggable&&this.strategy.isDraggable()&&(t.preventDefault(),0===t.button&&(this.dragStart={x:t.clientX,y:t.clientY},this.dragged=!0,this.resetPosition(!0),this.templateNodes.position.setAttribute("data-position","draged"),this.rooter.log.i(` subtitle drag started: ${t.clientX}, ${t.clientY}`),document.addEventListener("mousemove",this.onMousemoveHandler),document.addEventListener("mouseup",this.onMouseupHandler)))}onMousemoveHandler(t){if(!this.store.draggable||!this.strategy.isDraggable())return;const e=this.relativeToFixPositin(this.drag);this.dragEnd=this.limiteFixPosition({x:t.clientX-this.dragStart.x+e.x,y:t.clientY-this.dragStart.y+e.y}),this.updatePosition(this.dragEnd)}onMouseupHandler(){!this.store.draggable||!this.strategy.isDraggable()||(this.drag=this.fixToRelativePositin(this.dragEnd),document.removeEventListener("mousemove",this.onMousemoveHandler),document.removeEventListener("mouseup",this.onMouseupHandler))}getAiSubtitleCountTrack(){return this.aiSubtitleCountTrack}destroy(){var t,e;this.stopRendering(),this.templateNodes.wrap.removeEventListener("mousedown",this.onMousedownHandler),null!=(e=null==(t=this.templateNodes)?void 0:t.panel)&&e.parentNode&&this.templateNodes.panel.parentNode.removeChild(this.templateNodes.panel),this.clear(Q.Major),this.clear(Q.Minor),window.clearInterval(this.timer),this.aiSubtitleCountTrack={},this.timer=null,this.templateNodes=null,this.showingGroup=null,this.store.clear(),this.store=null}}he([Wt],de.prototype,"onMousedownHandler"),he([Wt],de.prototype,"onMousemoveHandler"),he([Wt],de.prototype,"onMouseupHandler");const ue=class t extends D{constructor(t){super(t),this.rooter=t,this.biliSubtitle=null,this.defaultOptions={fontSize:1,opacity:1,color:"16776960",fade:!1,scale:!1,shadow:x.None,position:w.BottomCenter,bottom:0},this.initializeLogger(),this.initializeSubtitle()}initializeLogger(){const e=this.rooter.log;this.log=e.getLogger(t.tag),this.log.i(`init - id: ${this.id}`)}initializeSubtitle(){const{container:t,video:e}=this.rooter.getInitCfg();this.biliSubtitle=new de(e,t,this.options,this.rooter)}render(){super.render(),this.source&&this.biliSubtitle&&this.biliSubtitle.setSource(this.source,this.options)}parseData(t){return m(this,null,(function*(){try{const{source:e,options:i}=t;return this.isBiliSubtitleRenderData(e)?(this.parseOptions(i),e):(this.emitError("bili subtitle plugin parse json data error"),null)}catch(t){return this.emitError(`Parse error: ${t.message}`),null}}))}emitError(t){this.log.e(`[bili subtitle plugin]: ${t}`),this.rooter.eventEmitter.emit(I.ERROR,{code:E.BILI_PARSE_ERR,message:t})}isBiliSubtitleRenderData(t){if(!t||"object"!=typeof t)return!1;const e=t;return this.validateSubtitleGroups(e)}validateSubtitleGroups(t){const{Major:e,Minor:i}=Q,n=t[e],r=t[i];return!(!Array.isArray(n)||!n.every(this.isHttpSubtitleListItem))&&(null==r||Array.isArray(r)&&r.every(this.isHttpSubtitleListItem))}isHttpSubtitleListItem(t){if(!t||"object"!=typeof t)return!1;return"from"in t&&"to"in t&&"content"in t&&"string"==typeof t.content}parseOptions(t){this.options=d(d({},this.defaultOptions),t)}handleTestSubtitle(t){this.biliSubtitle&&this.biliSubtitle.handleTestSubtitle(t)}getStat(){if(this.biliSubtitle)return{aiSubtitleCountTrack:this.biliSubtitle.getAiSubtitleCountTrack()}}onHide(){var t;super.onHide(),null==(t=this.biliSubtitle)||t.hide()}onResample(t){super.onResample(t)}onOptionUpdate(t){var e;super.onOptionUpdate(t),null==(e=this.biliSubtitle)||e.updatePartialStyle(t)}onShow(){var t;super.onShow(),null==(t=this.biliSubtitle)||t.show()}onResize(){var t;super.onResize(),null==(t=this.biliSubtitle)||t.resize()}onDispose(){super.onDispose(),this.biliSubtitle&&(this.biliSubtitle.destroy(),this.biliSubtitle=null),this.log&&(this.log.clear(),this.log=null)}};ue.tag=v.BILI;let pe=ue;var ge={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,i="~";function n(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new r(n,o||t,a),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function a(t,e){
0==--t._eventsCount?t._events=new n:delete t._events[e]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),s.prototype.eventNames=function(){var t,n,r=[];if(0===this._eventsCount)return r;for(n in t=this._events)e.call(t,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},s.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},s.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},s.prototype.emit=function(t,e,n,r,o,a){var s=i?i+t:t;if(!this._events[s])return!1;var l,A,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,o),!0;case 6:return c.fn.call(c.context,e,n,r,o,a),!0}for(A=1,l=new Array(h-1);A<h;A++)l[A-1]=arguments[A];c.fn.apply(c.context,l)}else{var d,u=c.length;for(A=0;A<u;A++)switch(c[A].once&&this.removeListener(t,c[A].fn,void 0,!0),h){case 1:c[A].fn.call(c[A].context);break;case 2:c[A].fn.call(c[A].context,e);break;case 3:c[A].fn.call(c[A].context,e,n);break;case 4:c[A].fn.call(c[A].context,e,n,r);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];c[A].fn.apply(c[A].context,l)}}return!0},s.prototype.on=function(t,e,i){return o(this,t,e,i,!1)},s.prototype.once=function(t,e,i){return o(this,t,e,i,!0)},s.prototype.removeListener=function(t,e,n,r){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn===e&&(!r||s.once)&&(!n||s.context===n)&&a(this,o);else{for(var l=0,A=[],c=s.length;l<c;l++)(s[l].fn!==e||r&&!s[l].once||n&&s[l].context!==n)&&A.push(s[l]);A.length?this._events[o]=1===A.length?A[0]:A:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,t.exports=s}(ge);const fe=Ot(ge.exports);var me={exports:{}};!function(t){t.exports=function(){var t=1e3,e=6e4,i=36e5,n="millisecond",r="second",o="minute",a="hour",s="day",l="week",A="month",c="quarter",h="year",d="date",u="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},m=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},y={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),r=i%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(r,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),r=e.clone().add(n,A),o=i-r<0,a=e.clone().add(n+(o?-1:1),A);return+(-(n+(i-r)/(o?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:A,y:h,w:l,d:s,D:d,h:a,m:o,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",v={};v[b]=f;var E=function(t){return t instanceof w},I=function t(e,i,n){var r;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();v[o]&&(r=o),i&&(v[o]=i,r=o);var a=e.split("-");if(!r&&a.length>1)return t(a[0])}else{var s=e.name;v[s]=e,r=s}return!n&&r&&(b=r),r||!n&&b},C=function(t,e){if(E(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new w(i)},B=y;B.l=I,B.i=E,B.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function f(t){this.$L=I(t.locale,null,!0),this.parse(t)}var m=f.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(B.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var r=n[2]-1||0,o=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return B},m.isValid=function(){return this.$d.toString()!==u},m.isSame=function(t,e){var i=C(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return C(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<C(t)},m.$g=function(t,e,i){return B.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,n=!!B.u(e)||e,c=B.p(t),u=function(t,e){var r=B.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return n?r:r.endOf(s)},p=function(t,e){return B.w(i.toDate()[t].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},g=this.$W,f=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case h:return n?u(1,0):u(31,11);case A:return n?u(1,f):u(0,f+1);case l:var b=this.$locale().weekStart||0,v=(g<b?g+7:g)-b;return u(n?m-v:m+(6-v),f);case s:case d:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var i,l=B.p(t),c="set"+(this.$u?"UTC":""),u=(i={},i[s]=c+"Date",i[d]=c+"Date",i[A]=c+"Month",i[h]=c+"FullYear",i[a]=c+"Hours",i[o]=c+"Minutes",i[r]=c+"Seconds",i[n]=c+"Milliseconds",i)[l],p=l===s?this.$D+(e-this.$W):e;if(l===A||l===h){var g=this.clone().set(d,1);g.$d[u](p),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else u&&this.$d[u](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[B.p(t)]()},m.add=function(n,c){var d,u=this;n=Number(n);var p=B.p(c),g=function(t){var e=C(u);return B.w(e.date(e.date()+Math.round(t*n)),u)};if(p===A)return this.set(A,this.$M+n);if(p===h)return this.set(h,this.$y+n);if(p===s)return g(1);if(p===l)return g(7);var f=(d={},d[o]=e,d[a]=i,d[r]=t,d)[p]||1,m=this.$d.getTime()+n*f;return B.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||u;var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=B.z(this),o=this.$H,a=this.$m,s=this.$M,l=i.weekdays,A=i.months,c=function(t,i,r,o){return t&&(t[i]||t(e,n))||r[i].slice(0,o)},h=function(t){return B.s(o%12||12,t,"0")},d=i.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:B.s(s+1,2,"0"),MMM:c(i.monthsShort,s,A,3),MMMM:c(A,s),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,l,2),ddd:c(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:B.s(o,2,"0"),h:h(1),hh:h(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:B.s(a,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:r};return n.replace(g,(function(t,e){return e||p[t]||r.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,u){var p,g=B.p(d),f=C(n),m=(f.utcOffset()-this.utcOffset())*e,y=this-f,b=B.m(this,f);return b=(p={},p[h]=b/12,p[A]=b,p[c]=b/3,p[l]=(y-m)/6048e5,p[s]=(y-m)/864e5,p[a]=y/i,p[o]=y/e,p[r]=y/t,p)[g]||y,u?b:B.a(b)},m.daysInMonth=function(){return this.endOf(A).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){
if(!t)return this.$L;var i=this.clone(),n=I(t,e,!0);return n&&(i.$L=n),i},m.clone=function(){return B.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},f}(),x=w.prototype;return C.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",a],["$W",s],["$M",A],["$y",h],["$D",d]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),C.extend=function(t,e){return t.$i||(t(e,w,C),t.$i=!0),C},C.locale=I,C.isDayjs=E,C.unix=function(t){return C(1e3*t)},C.en=v[b],C.Ls=v,C.p={},C}()}(me);const ye=Ot(me.exports);var be=(t=>(t[t.DEBUG=0]="DEBUG",t[t.INFO=1]="INFO",t[t.WARNING=2]="WARNING",t[t.ERROR=3]="ERROR",t))(be||{});class ve{constructor(t){this.maximum=1e5,this.instances=new Map,this.records=new Set,this.debugMode=t}getLogger(t){const e=`@@${t}`,i=this.instances;if(i.has(e))return i.get(e);{const n=this.records,r=new ve(this.debugMode);return r.moduleId=t,r.records=n,i.set(e,r),r}}add(t,...e){const i=this.maximum,n=this.records,r=this.moduleId,o={level:t,messages:e,timestamp:Date.now(),moduleId:r};n.size>0&&n.size>i&&n.delete(n.keys().next().value),o.messages.length>0&&this.debugMode&&console.log(`%c${this.getSinglePrint(o)}`,`color: ${{1:"#2ecc71",2:"#f39c12",0:"#3498db",3:"#e74c3c"}[o.level]}`),n.add(o)}getSinglePrint(t){const e=[];return e.push(`[${ye(t.timestamp).format("YYYY-MM-DD hh:mm:ss")}]`),e.push(`[${be[t.level]}]`),t.moduleId&&e.push(`[${t.moduleId}]`),t.messages.forEach((t=>e.push(Ee`${t}`))),e.join(" ")}getFilteredLog(t={}){var e;const i=this.records,n=this.moduleId,r=null!=(e=t.level)?e:-1,o=t.limit||1/0,a=[],s=[];t.header&&(s.push("--------------- Header(S) ---------------"),s.push(t.header),s.push("--------------- Header(E) ---------------"),s.push(""));for(const e of i.values())if(!t.filterModuleId||e.moduleId===n){if(a.length>=o)break;e.level>=r&&a.push(e)}s.push("--------------- Content(S) ---------------");for(const t of a){const e=[];e.push(`[${ye(t.timestamp).format("YYYY-MM-DD hh:mm:ss")}]`),e.push(`[${be[t.level]}]`),t.moduleId&&e.push(`[${t.moduleId}]`),t.messages.forEach((t=>e.push(Ee`${t}`))),s.push(e.join(" "))}return s.push("--------------- Content(E) ---------------"),t.footer&&(s.push(""),s.push("--------------- Footer(S) ---------------"),s.push(t.footer),s.push("--------------- Footer(E) ---------------")),s.join("\n")}d(...t){this.add(0,...t)}i(...t){this.add(1,...t)}w(...t){this.add(2,...t)}e(...t){this.add(3,...t)}clear(){this.records&&this.records.clear()}setDebugMode(t){this.debugMode=t}getDebugMode(){return this.debugMode}}function Ee(t,...e){let i="";for(let n=0;n<e.length;n++){let r=e[n],o="";if(null!=r)if("string"==typeof r)o=r;else if("[object Object]"===Object.prototype.toString.call(r))try{o=JSON.stringify(r)}catch(t){console.warn(t)}else if("object"==typeof r&&"message"in r)o=r.message;else try{o=r.toString()}catch(t){console.warn(t)}i+=t[n],i+=o}return i+=t[t.length-1],i}var Ie=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,Be=(t,e,i,n)=>{for(var r,o=Ce(e,i),a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,i,o)||o);return o&&Ie(e,i,o),o};var we;const xe=(we=class{constructor(t){this.plugins=new Map,this.eventEmitter=new fe,this.initCfg=(t=>{if(!t.container)throw new Error("container and video should be passed");return t})(t),this.log=new ve(!!t.debugMode),this.log.i("[SubtitleX]: 0.2.3 init"),we.pluginStorage.forEach(((t,e)=>{this.log.i(`[SubtitleX]: install plugin: ${e}`),this.plugins.set(e,((t,e,i)=>new t(e,i))(t,this,this.initCfg))})),this.eventEmitter.emit(I.INITIALIZED)}static registerPlugin(t){if(!t)throw new Error("subtitle plugin should be a class object or class array");const e=t=>{const e=t.tag;this.pluginStorage.has(e)||this.pluginStorage.set(e,t)};Array.isArray(t)?t.forEach((t=>{e(t)})):e(t)}getPlugin(t){return this.plugins.get(t)}getAllPlugins(){return this.plugins}resetFontSize(){this.log.i("[SubtitleX]: reset plugin render fontsize"),this.getPlugin(v.ASS).clearFontSizeCache()}inputData(t){if(!t||!t.type)throw new Error("data should have a type field");const{type:e}=t;this.log.i(`[SubtitleX]: accept data - type: ${e}`),this.getPlugin(e).acceptData(t)}getInitCfg(){return this.initCfg}on(t,e){this.eventEmitter.on(t,e)}off(t,e){this.eventEmitter.off(t,e)}destroy(){this.log.i("[SubtitleX]: destroy"),this.eventEmitter.emit(I.DESTROY),this.initCfg=null,this.plugins.clear(),this.eventEmitter.removeAllListeners(),this.eventEmitter=null,this.plugins=null,this.log=null}resize(){this.eventEmitter.emit(I.RESIZE)}show(){this.eventEmitter.emit(I.SHOW)}hide(){this.eventEmitter.emit(I.HIDE)}resample(t){this.eventEmitter.emit(I.RESAMPLE,t)}updateOptions(t){this.eventEmitter.emit(I.OPTION_UPDATE,t)}dlog(t){const e=function(t,e){e=e||"yyyy-MM-dd hh:mm:ss";const i={"M+":(t=t||new Date).getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),"S+":t.getMilliseconds()};/(y+)/i.test(e)&&(e=e.replace(RegExp.$1,t.getFullYear().toString().substr(4-RegExp.$1.length)));for(const t in i)if(new RegExp(`(${t})`).test(e)){const n=1===RegExp.$1.length?i[t].toString():("00"+i[t]).substr(i[t].toString().length);e=e.replace(RegExp.$1,n)}return e}(null,"yyyyMMdd_hhmmss"),i={name:"subtitle-x",version:"0.2.3",creattTime:(new Date).toISOString()},n=Object.keys(i).map((t=>`${t}: ${i[t]}`)).join("\n");!function(t){const e=d({text:"",mimeType:"text/plain;charset=utf-8",filename:"text.txt",timeout:5e3},t),i=Array.isArray(e.text)?e.text:[e.text],n=new Blob(i,{type:e.mimeType}),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=e.filename,r.target="_blank",r.click(),window.setTimeout((()=>{URL.revokeObjectURL(r.href)}),e.timeout)}({text:this.log.getFilteredLog({level:t,header:n}),filename:`BilibiliSubtitleX_${e}.log`})}glog(t=be.INFO){return this.log.getFilteredLog({level:t})}handleTestSubtitle(t){this.getPlugin(v.BILI).handleTestSubtitle(t)}getStat(){return this.getPlugin(v.BILI).getStat()}setDebugMode(t){this.log.setDebugMode(t)}getDebugMode(){return this.log.getDebugMode()}},we.pluginStorage=new Map,we.SUBTITLE_TYPE=v,we.LOG_LEVEL=be,we.RESAMPLE_TYPE=C,we.EVENT=I,we.ASS_FONT_SIZE_DISPLAY_MODE=B,we.Bili_Subtitle_Group_Type=Q,we);Be([zt],xe.prototype,"inputData"),Be([zt],xe.prototype,"getInitCfg"),Be([zt],xe.prototype,"on"),Be([zt],xe.prototype,"off"),Be([zt],xe.prototype,"destroy"),Be([zt],xe.prototype,"resize"),Be([zt],xe.prototype,"show"),Be([zt],xe.prototype,"hide"),Be([zt],xe.prototype,"resample"),Be([zt],xe.prototype,"dlog"),Be([zt],xe.prototype,"glog"),Be([zt],xe.prototype,"setDebugMode"),Be([zt],xe.prototype,"getDebugMode");let Qe=xe;window.SubtitleX=Qe;var Se=i(22451),ke=i(65214),De=i(43426),_e=i(10379),Re=i(75135),Me=i(61068),Te=i(53229);class Fe extends n.vq{constructor(){super(...arguments),this.aiSubtitleCountTrack={},this.showingGroup=[null,null],this.issueCache=[],this.hasBeenRegistered=!1,this.inited=!1,this.testSubtitleItem={to:1/0,from:1/0,content:"字幕样式测试"}}install(){this.dc.enable=(0,Se.U5)((()=>this.subtitleStore.state.enable),(t=>{t&&(this.inited||(this.init(),this.addReactions()))}),{fireImmediately:!0}),this.rootPlayer.on(n.p2.PLAYER_UNLOAD,(()=>{if(this.inited){const{aiSubtitleCountTrack:t}=this.subtitleInstance.getStat();t&&Object.entries(t).forEach((([t,e])=>{this.trackExtra.p("player.player.subtitle-show.counts.show",n.p0.Appear,{avid:this.configStore.aid,cid:this.configStore.cid,aisubtitle_display_count:e,aisubtitle_display_lang_count:`${t}-${e}`}),this.track.e("subtitle_ai_render_count",{aisubtitle_display_count:e,aisubtitle_display_lang_count:`${t}-${e}`})}))}})),this.rootPlayer.on(n.p2.PLAYER_MEDIA_CHANGED,(()=>{this.recreateSubtitle()}))}ctrlHiddenHandler(t){const e=+this.mediaStore.video.style.paddingBottom.split("px")[0],i=this.nodes.controlWrap.offsetHeight,r=this.progressStore.state.pbpstate?8:0;this.uiStore.screenKind!==n.dY.Mini?e<=i&&(t?this.subtitleInstance.updateOptions({bottom:e+14}):this.subtitleInstance.updateOptions({bottom:e+14+r+i})):this.subtitleInstance.updateOptions({bottom:14})}
setRenderData(t,e){this.subtitleStore.setRenderData(t,e)}get renderData(){return this.subtitleStore.renderData}get subtitleOptions(){const{isRawMeat:t,minorLan:e,lan:i}=this.subtitleStore.state;return{color:this.subtitleStore.state.color,fontSize:this.subtitleStore.state.fontsize,opacity:this.subtitleStore.state.opacity,fade:this.subtitleStore.state.fade,scale:this.subtitleStore.state.scale,shadow:this.subtitleStore.state.shadow,position:this.subtitleStore.state.position,bottom:this.initBottom,draggable:!0,extra:{isRawMeat:t,minorLan:e,lan:i}}}get initBottom(){const t=+this.mediaStore.video.style.paddingBottom.split("px")[0],e=this.nodes.controlWrap.offsetHeight,i=this.progressStore.state.pbpstate?8:0;return t<=e?t+14+i+e:0}addReactions(){this.dp.fetchMajorData=(0,Se.U5)((()=>!this.subtitleStore.state.isclosed&&this.subtitleStore.state.lan),(t=>{var e;t?this.fetchSubtitle(t).then((({body:t})=>{var e,i;(null==(e=null==t?void 0:t.list)?void 0:e.length)&&(this.patchAdvStore.hasValidAdv&&this.subtitleOffsetProcess(t),this.setRenderData(n.nK.Major,t.list),null==(i=this.subtitleInstance)||i.show())})):(null==(e=this.subtitleInstance)||e.hide(),this.setRenderData(n.nK.Major,null))}),{fireImmediately:!0}),this.dp.color=(0,Se.U5)((()=>this.subtitleStore.state.color),(t=>{this.subtitleInstance.updateOptions({color:t})}),{fireImmediately:!0}),this.dp.position=(0,Se.U5)((()=>this.subtitleStore.state.position),(t=>{this.subtitleInstance.updateOptions({position:t})}),{fireImmediately:!0}),this.dp.shadow=(0,Se.U5)((()=>this.subtitleStore.state.shadow),(t=>{this.subtitleInstance.updateOptions({shadow:t})}),{fireImmediately:!0}),this.dp.fontsize=(0,Se.U5)((()=>this.subtitleStore.state.fontsize),(t=>{this.subtitleStore.state.enablePgcAiSubtitle?this.subtitleInstance.updateOptions({useDiffFontSize:t}):this.subtitleInstance.updateOptions({fontSize:t})}),{fireImmediately:!0}),this.dp.scale=(0,Se.U5)((()=>this.subtitleStore.state.scale),(()=>{this.subtitleInstance.updateOptions({scale:this.subtitleStore.state.scale})})),this.dp.status=(0,Se.U5)((()=>({height:this.uiStore.state.videoAreaHeight,screenKind:this.uiStore.screenKind})),(0,Me.Z)((()=>{this.subtitleInstance.resize(),this.uiStore.screenKind===n.dY.Mini&&this.subtitleInstance.updateOptions({bottom:14})}),50,{leading:!0,trailing:!0})),this.dp.fixed=(0,Se.U5)((()=>this.subtitleStore.state.fixed),(t=>{this.subtitleInstance.updateOptions({fixed:t})}),{fireImmediately:!0}),this.dp.fixedPosition=(0,Se.U5)((()=>this.subtitleStore.state.fixedPosition),(t=>{this.subtitleInstance.updateOptions({fixedPosition:t})}),{fireImmediately:!0}),this.dp.subtitlePosition=(0,Se.U5)((()=>this.subtitleStore.state.subtitlePosition),(t=>{t&&this.subtitleInstance.updateOptions({subtitlePosition:t})}),{fireImmediately:!0}),this.dp.resize=(0,Se.U5)((()=>this.subtitleStore.state.scale&&this.uiStore.state.videoAreaWidth),(t=>{t&&(this.subtitleStore.state.fontSizeType?this.subtitleInstance.updateOptions({useDiffFontSize:this.subtitleStore.state.fontsize}):this.subtitleInstance.updateOptions({fontSize:this.subtitleStore.state.fontsize}))})),this.dp.opacity=(0,Se.U5)((()=>this.subtitleStore.state.opacity),(t=>{null!==t&&this.subtitleInstance.updateOptions({opacity:t})}),{fireImmediately:!0}),this.dp.ctrlHidden=(0,Se.U5)((()=>this.ctrlStore.ctrlHidden||this.uiStore.screenKind),(()=>{this.ctrlHiddenHandler(this.ctrlStore.ctrlHidden)}),{fireImmediately:!0}),this.dp.fade=(0,Se.U5)((()=>this.subtitleStore.state.fade),(t=>{this.subtitleInstance.updateOptions({fade:t})}),{fireImmediately:!0}),this.dp.hover=(0,Se.U5)((()=>this.subtitleStore.state.hover),(t=>{this.subtitleInstance.handleTestSubtitle(t)})),this.dp.fetchMinorData=(0,Se.U5)((()=>!this.subtitleStore.state.isclosed&&this.subtitleStore.state.bilingual&&this.subtitleStore.state.minorLan),(t=>{t?this.fetchSubtitle(t).then((({body:t})=>{var e;(null==(e=null==t?void 0:t.list)?void 0:e.length)&&(this.patchAdvStore.hasValidAdv&&this.subtitleOffsetProcess(t),this.setRenderData(n.nK.Minor,t.list))})):this.setRenderData(n.nK.Minor,null)}),{fireImmediately:!0}),this.dp.lanSwitch=(0,Se.U5)((()=>({major:this.renderData[n.nK.Major],minor:this.renderData[n.nK.Minor]})),(t=>{if(t.major){let e={[Qe.Bili_Subtitle_Group_Type.Major]:t.major,[Qe.Bili_Subtitle_Group_Type.Minor]:t.minor};this.subtitleInstance.inputData({source:e,type:Qe.SUBTITLE_TYPE.BILI,options:this.subtitleOptions}),this.trackExtra.p("player.player.subtitle.language.player",n.p0.Click,{avid:this.configStore.aid,cid:this.configStore.cid})}else{let t={[Qe.Bili_Subtitle_Group_Type.Major]:[],[Qe.Bili_Subtitle_Group_Type.Minor]:[]};this.subtitleInstance.inputData({source:t,type:Qe.SUBTITLE_TYPE.BILI,options:this.subtitleOptions})}})),this.subtitleInstance.on(Qe.EVENT.MOUSEEVENT,(t=>{this.contextmenu||(this.contextmenu=new _e.V(this.nodes.contextArea,t.wrap,{ppx:this.ppx,theme:"black",onChange:(t,e,i)=>{if(i&&!isNaN(+i.dataset.type)&&(this.showingGroup[n.nK.Major]||this.showingGroup[n.nK.Minor])){const n=this.menuList(+i.dataset.type);return this.contextmenu.showFromOut(n,t,e),this.track.e("subtitle_contextmenu_show"),null}}})),this.showingGroup=t.showingGroup})),this.subtitleInstance.on(Qe.EVENT.ERROR,(t=>{this.track.e("subtitle_error",t)})),this.dp.showIssue=(0,Se.U5)((()=>this.menuStore.state.showSubtitleIssue&&!this.uiStore.isTinyView),(t=>{var e,i;t?null==(e=this.subtitleIssue)||e.show(this.issue):null==(i=this.subtitleIssue)||i.hide()}))}fetchSubtitle(t){const e=this.subtitleStore.findLanguageItem(t);if(e&&e.subtitle_url)return new ke.m(this.rootPlayer,{memCache:!0}).r(e.subtitle_url,e.type,e.ai_type)}subtitleOffsetProcess(t){t.list.forEach((t=>{t.from+=this.patchAdvStore.prePatchDurationInSecAndInt(),t.to+=this.patchAdvStore.prePatchDurationInSecAndInt()}))}init(){this.inited||(this.inited=!0,this.hasBeenRegistered||(Qe.registerPlugin(pe),this.hasBeenRegistered=!0),this.subtitleInstance=new Qe({video:this.mediaStore.video,container:this.nodes.subtitleWrap}),this.subtitleInstance.inputData({source:{[Qe.Bili_Subtitle_Group_Type.Major]:[],[Qe.Bili_Subtitle_Group_Type.Minor]:[]},type:Qe.SUBTITLE_TYPE.BILI,options:this.subtitleOptions}),this.subtitleStore.setSubtitleLogHelper(this.downloadSubtitleLog.bind(this),this.setSubtitleDebugMode.bind(this)))}downloadSubtitleLog(t){try{this.subtitleInstance.dlog(t)}catch(t){this.log.e("subtitle_log_download_failed",null==t?void 0:t.message,t)}}setSubtitleDebugMode(t){this.subtitleInstance.getDebugMode()!==t&&this.subtitleInstance.setDebugMode(t)}menuList(t){this.subtitleIssue||(this.subtitleIssue=new Re.$(this.nodes.videoArea,{ppx:this.ppx,close:()=>{this.menuStore.setState({showSubtitleIssue:!1})},submit:t=>{this.issueSubmit(t)}}));const e=this.judge(this.showingGroup[t]);return{id:"subtitle",html:`<li class="${this.ppx}-context-item-subtitle">\n            <span class="${this.ppx}-context-item-subtitle-text">${this.showingGroup[t].content}</span>\n            <span class="${this.ppx}-context-item-subtitle-issue" disable="${!!e}">${e?"已反馈":"反馈"}</span>\n        </li>`,click:i=>{var r;if(i.classList.contains(`${this.ppx}-context-item-subtitle-issue`)&&!e){const e=t===n.nK.Major?this.subtitleStore.state.lan:this.subtitleStore.state.minorLan,i=this.subtitleStore.findLanguageItem(e);if(!i||!i.id_str)return;this.issue={aid:this.configStore.aid,cid:this.configStore.cid,to:this.showingGroup[t].to,from:this.showingGroup[t].from,subtitle_id:i.id_str,subtitle_type:i.type,content:this.showingGroup[t].content,row_id:null!=(r=this.showingGroup[t].sid)?r:0},this.menuStore.state.showSubtitleIssue?this.subtitleIssue.show(this.issue):(this.menuStore.hideAllPopupPanel(),this.menuStore.setState({showSubtitleIssue:!0}))}}}}judge(t){return this.issueCache.some((e=>t.content===e.content&&t.from===e.from))}issueSubmit(t){new De.I(this.rootPlayer).r(t).then((({body:e})=>{0===(null==e?void 0:e.code)?(this.issueToast("反馈成功"),this.issueCache.push(Object.assign({},t)),this.track.e(""+(t.subtitle_type?"submit_ai_subtitle":"submit_cc_subtitle"),t)):this.issueToast((null==e?void 0:e.message)||"反馈失败"),this.menuStore.setState({showSubtitleIssue:!1})})).catch((()=>{this.issueToast("反馈失败")}))}recreateSubtitle(){var t
;(null==(t=this.mediaStore)?void 0:t.video)&&(this.destroy(),this.dp=(0,Te.Jo)(this.dp),this.init(),this.addReactions())}issueToast(t){this.toastStore.create({text:t,duration:1e3})}onDisconnect(){this.hasBeenRegistered=!1}onDispose(){this.inited&&this.destroy(),this.inited=!1}destroy(){var t;null==(t=this.subtitleInstance)||t.destroy(),this.subtitleInstance=null,this.inited=!1}}},30757:function(t,e,i){"use strict";i.d(e,{Q:function(){return C}});var n=i(22451),r=i(99550),o=i(34201),a=i(65723),s=i(51102),l=i(5489),A=i(54),c=i.n(A),h=i(89262),d=i(65214),u=i(43426),p=i(10379),g=i(75135),f=i(16174),m=i.n(f),y=i(82853),b=i.n(y),v=Object.defineProperty,E=Object.getOwnPropertyDescriptor,I=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?E(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&v(e,i,o),o};class C extends l.vq{constructor(){super(...arguments),this.templateNodes=this.subtitleTemplate(),this.showingGroup=[null,null],this.aiSubtitleCountTrack={},this.testSubtitleItem={to:1/0,from:1/0,content:"字幕样式测试"},this.moveRule={leftBounding:0,rightBounding:0,topBounding:0,bottomBounding:0,width:0,height:0},this.dragStart={x:0,y:0},this.dragEnd={x:0,y:0},this.drag={x:0,y:0},this.issueCache=[]}get renderData(){return this.subtitleStore.renderData}get shadowMap(){return["none","rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) -1px 0px 1px","rgb(0, 0, 0) 0px 0px 1px, rgb(0, 0, 0) 0px 0px 1px, rgb(0, 0, 0) 0px 0px 1px","rgb(0, 0, 0) 1px 1px 2px, rgb(0, 0, 0) 0px 0px 1px"]}install(){super.install(),this.dc.enable=(0,n.U5)((()=>({enable:this.subtitleStore.state.enable,isLogin:this.userStore.isLogin,kind:this.uiStore.kind})),(({enable:t,isLogin:e,kind:i})=>{var n,r;if(e&&i===l.HR.Ugc)if(t){if(!this.templateNodes.panel.parentElement){const t=this.subtitleStore.findLanguageItem(this.subtitleStore.state.lan);this.testSubtitleItem.type=null!=(n=null==t?void 0:t.type)?n:0,this.nodes.subtitleWrap.appendChild(this.templateNodes.panel),this.addReactions(),this.addEventListener()}}else this.templateNodes.panel.parentElement&&(this.templateNodes.panel.parentElement.removeChild(this.templateNodes.panel),this.removeEventListener());else if(t){if(!this.templateNodes.panel.parentElement){const t=this.subtitleStore.findLanguageItem(this.subtitleStore.state.lan);this.testSubtitleItem.type=null!=(r=null==t?void 0:t.type)?r:0,this.nodes.subtitleWrap.appendChild(this.templateNodes.panel),this.addReactions(),this.addEventListener()}}else this.templateNodes.panel.parentElement&&(this.templateNodes.panel.parentElement.removeChild(this.templateNodes.panel),this.removeEventListener())}),{fireImmediately:!0}),this.rootPlayer.on(l.p2.PLAYER_UNLOAD,(()=>{if(this.aiSubtitleCountTrack)for(let t in this.aiSubtitleCountTrack)this.trackExtra.p("player.player.subtitle-show.counts.show",l.p0.Appear,{avid:this.configStore.aid,cid:this.configStore.cid,aisubtitle_display_count:this.aiSubtitleCountTrack[t],aisubtitle_display_lang_count:`${t}-${this.aiSubtitleCountTrack[t]}`})})),this.rootPlayer.on(l.p2.PLAYER_CLEAR_SUBTITLE,(t=>this.clear(t)))}subtitleTemplate(){const t=`\n            <div class="${this.ppx}-subtitle-panel">\n                <div class="${this.ppx}-subtitle-panel-position">\n                    <div class="${this.ppx}-subtitle-panel-wrap">\n                        <div class="${this.ppx}-subtitle-panel-major-group"></div>\n                        <div class="${this.ppx}-subtitle-panel-minor-group"></div>\n                    </div>\n                </div>\n            </div>\n        `,e=(0,r.t)(t),i=e.querySelector(`.${this.ppx}-subtitle-panel-position`);return{wrap:e.querySelector(`.${this.ppx}-subtitle-panel-wrap`),group:[e.querySelector(`.${this.ppx}-subtitle-panel-major-group`),e.querySelector(`.${this.ppx}-subtitle-panel-minor-group`)],panel:e,position:i}}subtitleOffsetProcess(t){t.list.forEach((t=>{t.from+=this.patchAdvStore.prePatchDurationInSecAndInt(),t.to+=this.patchAdvStore.prePatchDurationInSecAndInt()}))}addReactions(){this.dp.fetchMajorData=(0,n.U5)((()=>!this.subtitleStore.state.isclosed&&this.subtitleStore.state.lan),(t=>{t?this.fetchSubtitle(t).then((({body:t})=>{var e;(null==(e=null==t?void 0:t.list)?void 0:e.length)&&(this.patchAdvStore.hasValidAdv&&this.subtitleOffsetProcess(t),this.setRenderData(l.nK.Major,t.list))})):this.setRenderData(l.nK.Major,null)}),{fireImmediately:!0}),this.dp.fetchMinorData=(0,n.U5)((()=>!this.subtitleStore.state.isclosed&&this.subtitleStore.state.bilingual&&this.subtitleStore.state.minorLan),(t=>{t?this.fetchSubtitle(t).then((({body:t})=>{var e;(null==(e=null==t?void 0:t.list)?void 0:e.length)&&(this.patchAdvStore.hasValidAdv&&this.subtitleOffsetProcess(t),this.setRenderData(l.nK.Minor,t.list))})):this.setRenderData(l.nK.Minor,null)}),{fireImmediately:!0}),this.dp.ctime=(0,n.U5)((()=>this.mediaStore.state.currentTime),(t=>{this.renderData[l.nK.Major]&&this.render(t,l.nK.Major),this.renderData[l.nK.Minor]&&this.render(t,l.nK.Minor)}),{fireImmediately:!0}),this.dp.majorLan=(0,n.U5)((()=>this.renderData[l.nK.Major]),(t=>{t&&null!==this.showingGroup[l.nK.Major]&&this.trackExtra.p("player.player.subtitle.language.player",l.p0.Click,{avid:this.configStore.aid,cid:this.configStore.cid}),this.clear(l.nK.Major),t&&this.render(this.mediaStore.state.currentTime,l.nK.Major)})),this.dp.minorLan=(0,n.U5)((()=>this.renderData[l.nK.Minor]),(t=>{t&&null!==this.showingGroup[l.nK.Minor]&&this.trackExtra.p("player.player.subtitle.language.player",l.p0.Click,{avid:this.configStore.aid,cid:this.configStore.cid}),this.clear(l.nK.Minor),t&&this.mediaStore.state.currentTime&&this.render(this.mediaStore.state.currentTime,l.nK.Minor)})),this.dp.color=(0,n.U5)((()=>this.subtitleStore.state.color),(t=>{this.templateNodes.panel.style.color=(0,o.X)(+t)}),{fireImmediately:!0}),this.dp.shadow=(0,n.U5)((()=>this.subtitleStore.state.shadow),(t=>{this.templateNodes.panel.style.textShadow=this.shadowMap[+t]}),{fireImmediately:!0}),this.dp.fontsize=(0,n.U5)((()=>this.subtitleStore.state.fontsize),(()=>{this.updateFontSize()}),{fireImmediately:!0}),this.dp.scale=(0,n.U5)((()=>this.subtitleStore.state.scale),(()=>{this.updateFontSize()})),this.dp.position=(0,n.U5)((()=>this.subtitleStore.state.position),(t=>{this.setPositionAttributes(t)}),{fireImmediately:!0}),this.dp.status=(0,n.U5)((()=>this.uiStore.state.videoAreaWidth||this.uiStore.screenKind),(()=>{"draged"===this.templateNodes.position.getAttribute("data-position")&&this.resetPosition()})),this.dp.resize=(0,n.U5)((()=>this.subtitleStore.state.scale&&this.uiStore.state.videoAreaWidth),(t=>{t&&this.updateFontSize()})),this.dp.opacity=(0,n.U5)((()=>this.subtitleStore.state.opacity),(t=>{var e,i,n,r;null!=t&&((null==(i=null==(e=this.showingGroup[0])?void 0:e.ele)?void 0:i.querySelector("span"))&&(this.showingGroup[0].ele.querySelector("span").style.background=`rgba(0, 0, 0, ${t})`),(null==(r=null==(n=this.showingGroup[1])?void 0:n.ele)?void 0:r.querySelector("span"))&&(this.showingGroup[1].ele.querySelector("span").style.background=`rgba(0, 0, 0, ${t})`))}),{fireImmediately:!0}),this.dp.ctrlHidden=(0,n.U5)((()=>this.ctrlStore.ctrlHidden||this.uiStore.screenKind),(()=>{"draged"!==this.templateNodes.position.getAttribute("data-position")&&this.ctrlHiddenHandler(this.ctrlStore.ctrlHidden)}),{fireImmediately:!0}),this.dp.hover=(0,n.U5)((()=>this.subtitleStore.state.hover),(t=>{this.showingGroup[0]||this.showingGroup[1]||(t?this.draw(this.testSubtitleItem):this.wipe(this.testSubtitleItem))})),this.dp.showIssue=(0,n.U5)((()=>this.menuStore.state.showSubtitleIssue&&!this.uiStore.isTinyView),(t=>{var e,i;t?null==(e=this.subtitleIssue)||e.show(this.issue):null==(i=this.subtitleIssue)||i.hide()}))}fetchSubtitle(t){const e=this.subtitleStore.findLanguageItem(t);if(e&&e.subtitle_url)return new d.m(this.rootPlayer,{memCache:!0}).r(e.subtitle_url,e.type,e.ai_type)}setRenderData(t,e){this.subtitleStore.setRenderData(t,e)}ctrlHiddenHandler(t){const e=+this.mediaStore.video.style.paddingBottom.split("px")[0],i=this.nodes.controlWrap.offsetHeight,n=this.progressStore.state.pbpstate?8:0;e<=i&&(this.templateNodes.position.style.top="",
this.templateNodes.position.style.bottom=t?e+14+"px":e+14+n+i+"px")}setPositionAttributes(t){const[e,i]=t.split("-");this.templateNodes.position.style.top="",this.templateNodes.position.style.left="",this.templateNodes.position.setAttribute("data-position",e),this.templateNodes.position.setAttribute("data-textalign",i),this.ctrlHiddenHandler(this.ctrlStore.isCtrlHidden())}render(t,e){if(this.showingGroup[e]&&(this.showingGroup[e].from>t||this.showingGroup[e].to<t)&&(this.wipe(this.showingGroup[e]),this.showingGroup[e]=null),!this.showingGroup[e]){const i=this.renderData[e];for(let n=0;n<i.length;n++){const r=i[n];if(r.from<=t&&r.to>t){if(this.wipe(this.testSubtitleItem),this.draw(r,e),this.subtitleStore.state.lan===this.subtitleStore.state.minorLan&&e)return;let t=e?this.subtitleStore.state.minorLan:this.subtitleStore.state.lan;return void(r.type&&(t=t.replace("ai-",""),this.aiSubtitleCountTrack[t]?this.aiSubtitleCountTrack[t]++:this.aiSubtitleCountTrack[t]=1))}}}}draw(t,e){const{fade:i}=this.subtitleStore.state,n=a.t`${t.content}`.replace(/\n/g,"<br>");t.ele=(0,r.t)(`\n            <div style="${i?"display: none;":""}"><span class="${this.ppx}-subtitle-panel-text" role="caption" aria-live="polite" data-type="${e}" style="background: rgba(0, 0, 0, ${this.subtitleStore.state.opacity}); font-family: ${s.X.safari.alike?"-apple-system":""};">${n}</span><div class="${this.ppx}-subtitle-panel-icon">${t.type?`<span class="${this.cpx}-svg-icon">${t.ai_type?m():b()}</span>`:""}</div></div>\n        `),this.templateNodes.group[null!=e?e:l.nK.Major].appendChild(t.ele),i&&c()(t.ele).fadeIn(1e3,(()=>{c()(t.ele).show()})),null!=e&&(this.showingGroup[e]=t)}wipe(t){(null==t?void 0:t.ele)&&c()(t.ele).remove()}clear(t){this.templateNodes.group[null!=t?t:l.nK.Major].innerHTML="",null!=t&&(this.showingGroup[t]=null)}updateFontSize(){let t=1;const{scale:e,fontsize:i}=this.subtitleStore.state,n=this.templateNodes.panel.getBoundingClientRect();e&&(t=n.width/1139),i&&(t*=i),this.templateNodes.group[l.nK.Major].style.fontSize=28*t+"px",this.templateNodes.group[l.nK.Minor].style.fontSize=20*t+"px",this.currentFontsize?"draged"===this.templateNodes.position.getAttribute("data-position")&&this.uiStore.state.mainScreen!==l.dY.Mini&&this.currentFontsize!==t&&(this.currentFontsize=t,this.resetPosition()):this.currentFontsize=t}updateMoveRule(){const t=this.templateNodes.panel.getBoundingClientRect(),e=this.templateNodes.wrap.getBoundingClientRect(),i=c()(this.templateNodes.wrap).position().left;let n;const r=this.progressStore.state.pbpstate?8:0;n=this.uiStore.isFullView?90+r:this.uiStore.state.mainScreen===l.dY.Mini?14:72+r,this.moveRule={leftBounding:Math.round(.05*t.width-i),rightBounding:Math.round(.95*t.width-e.width-i),topBounding:Math.round(.05*t.height),bottomBounding:Math.round(t.height-e.height-n),width:t.width,height:t.height}}limiteFixPosition({x:t,y:e}){const{leftBounding:i,rightBounding:n,topBounding:r,bottomBounding:o}=this.moveRule;return t=Math.max(t,i),t=Math.min(t,n),e=Math.max(e,r),{x:t,y:e=Math.min(e,o)}}fixToRelativePositin(t){const{leftBounding:e,rightBounding:i,topBounding:n,bottomBounding:r}=this.moveRule;let{x:o,y:a}=this.limiteFixPosition(t);return{x:(o-e)/(i-e)||0,y:(a-n)/(r-n)}}relativeToFixPositin({x:t,y:e}){const{leftBounding:i,rightBounding:n,topBounding:r,bottomBounding:o}=this.moveRule;return{x:Math.round(t*(n-i)+i),y:Math.round(e*(o-r)+r)}}updatePosition(t){this.templateNodes.position.style.bottom="",this.templateNodes.position.style.left=t.x+"px",this.templateNodes.position.style.top=t.y+"px"}resetPosition(t){if(this.updateMoveRule(),t){const{top:t,left:e}=window.getComputedStyle(this.templateNodes.position);this.drag=this.fixToRelativePositin({x:parseFloat(e),y:parseFloat(t)})}this.updatePosition(this.relativeToFixPositin(this.drag))}addEventListener(){this.templateNodes.wrap.addEventListener("mousedown",this.onMousedownHandler),this.contextmenu=new p.V(this.nodes.contextArea,this.templateNodes.wrap,{ppx:this.ppx,theme:"black",onChange:(t,e,i)=>{if(i&&!isNaN(+i.dataset.type)&&(this.showingGroup[l.nK.Major]||this.showingGroup[l.nK.Minor])){const n=this.menuList(+i.dataset.type);return this.contextmenu.showFromOut(n,t,e),this.track.e("subtitle_contextmenu_show"),null}}})}menuList(t){this.subtitleIssue||(this.subtitleIssue=new g.$(this.nodes.videoArea,{ppx:this.ppx,close:()=>{this.menuStore.setState({showSubtitleIssue:!1})},submit:t=>{this.issueSubmit(t)}}));const e=this.judge(this.showingGroup[t]);return{id:"subtitle",html:`<li class="${this.ppx}-context-item-subtitle">\n            <span class="${this.ppx}-context-item-subtitle-text">${this.showingGroup[t].content}</span>\n            <span class="${this.ppx}-context-item-subtitle-issue" disable="${!!e}">${e?"已反馈":"反馈"}</span>\n        </li>`,click:i=>{var n;if(i.classList.contains(`${this.ppx}-context-item-subtitle-issue`)&&!e){const e=t===l.nK.Major?this.subtitleStore.state.lan:this.subtitleStore.state.minorLan,i=this.subtitleStore.findLanguageItem(e);if(!i||!i.id_str)return;this.issue={aid:this.configStore.aid,cid:this.configStore.cid,to:this.showingGroup[t].to,from:this.showingGroup[t].from,subtitle_id:i.id_str,subtitle_type:i.type,content:this.showingGroup[t].content,row_id:null!=(n=this.showingGroup[t].sid)?n:0},this.menuStore.state.showSubtitleIssue?this.subtitleIssue.show(this.issue):(this.menuStore.hideAllPopupPanel(),this.menuStore.setState({showSubtitleIssue:!0}))}}}}removeEventListener(){this.templateNodes.wrap.removeEventListener("mousedown",this.onMousedownHandler)}onMousedownHandler(t){t.preventDefault(),0===t.button&&(this.dragStart={x:t.clientX,y:t.clientY},this.resetPosition(!0),this.templateNodes.position.setAttribute("data-position","draged"),document.addEventListener("mousemove",this.onMousemoveHandler),document.addEventListener("mouseup",this.onMouseupHandler))}onMousemoveHandler(t){const e=this.relativeToFixPositin(this.drag);this.dragEnd=this.limiteFixPosition({x:t.clientX-this.dragStart.x+e.x,y:t.clientY-this.dragStart.y+e.y}),this.updatePosition(this.dragEnd)}onMouseupHandler(){this.drag=this.fixToRelativePositin(this.dragEnd),document.removeEventListener("mousemove",this.onMousemoveHandler),document.removeEventListener("mouseup",this.onMouseupHandler)}judge(t){return this.issueCache.some((e=>t.content===e.content&&t.from===e.from))}issueSubmit(t){new u.I(this.rootPlayer).r(t).then((({body:e})=>{0===(null==e?void 0:e.code)?(this.issueToast("反馈成功"),this.issueCache.push(Object.assign({},t)),this.track.e(""+(t.subtitle_type?"submit_ai_subtitle":"submit_cc_subtitle"),t)):this.issueToast((null==e?void 0:e.message)||"反馈失败"),this.menuStore.setState({showSubtitleIssue:!1})})).catch((()=>{this.issueToast("反馈失败")}))}issueToast(t){this.toastStore.create({text:t,duration:1e3})}onDispose(){super.onDispose(),this.issue=null,this.issueCache=[],this.aiSubtitleCountTrack={},this.clear(l.nK.Major),this.clear(l.nK.Minor),this.subtitleIssue&&(this.subtitleIssue.dispose(),this.subtitleIssue=null)}}I([h.ZP],C.prototype,"onMousedownHandler",1),I([h.ZP],C.prototype,"onMousemoveHandler",1),I([h.ZP],C.prototype,"onMouseupHandler",1)},66292:function(t,e,i){"use strict";i.d(e,{F:function(){return f}});var n=i(5489),r=i(53229),o=i(23529),a=i(46330),s=i(99550),l=i(70417),A=i(89262),c=i(25360),h=i.n(c),d=i(22451),u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?p(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&u(e,i,o),o};class f extends n.vq{constructor(){super(...arguments),this.idMap=new Map}install(){super.install(),this.rootPlayer.hasFeature("noToast")||(this.dc.toast=(0,r.dX)(this.toastStore.records,{add:(t,e)=>{for(const e of t)this.addToast(e)},remove:(t,e)=>{for(const e of t)this.removeToast(e)},update:(t,e)=>{for(const[e,i]of t)this.updateToast(e,i)}}),this.dc.tinyMode=(0,d.EH)((()=>{this.uiStore.isTinyView?(0,o.N)(this.nodes.toastWrap):(0,a.o)(this.nodes.toastWrap)})),this.dc.pugvNoSid=(0,d.U5)((()=>this.rootStore.isPrepared),(t=>{t&&this.uiStore.kind===n.HR.Pugv&&!this.configStore.seasonId&&this.track.o("pugv_no_sid")}),{fireImmediately:!0}))}addToast(t){var e,i
;if(null==(e=this.userStore.info)?void 0:e.toastBlock)return;const n=[],r={iid:t.iid},o=(0,s.t)(`<div class="${this.ppx}-toast-row"></div>`),a=(0,s.t)(`<div class="${this.ppx}-toast-item"></div>`);if(t.manualMode&&(r.manual=(0,s.t)(`<span class="${this.ppx}-toast-cancel">${h()}</span>`),r.manual.addEventListener("click",this.onCloseClick),n.push(r.manual)),t.badgeUrl){const e=document.createElement("img");e.src=t.badgeUrl,e.alt="badge-icon",r.badge=(0,s.t)(`<span class="${this.ppx}-toast-badge"></span>`),r.badge.appendChild(e),n.push(r.badge)}t.text&&(r.text=(0,s.t)(`<span class="${this.ppx}-toast-text"></span>`),"string"==typeof t.text?r.text.textContent=t.text:r.text.appendChild(t.text),n.push(r.text)),t.confirmText&&(r.confirm=(0,s.t)(`<span class="${this.ppx}-toast-confirm"></span>`),"string"==typeof t.confirmText?r.confirm.textContent=t.confirmText:r.confirm.appendChild(t.confirmText),r.confirm.addEventListener("click",this.onConfirmClick),n.push(r.confirm)),r.row=o,r.item=a,t.hide&&(r.hide=t.hide),t.customClassName&&a.classList.add(`${this.ppx}-custom-toast-${t.customClassName}`),o.appendChild(a),n.forEach((t=>r.item.appendChild(t))),t.confirmColor&&r.row.style.setProperty("--bpx-toast-fn-color",t.confirmColor),t.confirmHoverColor&&r.row.style.setProperty("--bpx-toast-fn-hover-color",t.confirmHoverColor),r.row.addEventListener("mouseenter",this.onMouseEnter),r.row.addEventListener("mouseleave",this.onMouseLeave),t.fixed?this.nodes.toastFixed.appendChild(r.row):this.nodes.toastAuto.appendChild(r.row),this.idMap.set(t.iid,r),r.row.classList.add(`${this.ppx}-toast-unfold`),null==(i=t.timerClock)||i.resume()}updateToast(t,e){const i=this.idMap.get(e.iid);i&&(t.text!==e.text&&i.text&&("string"==typeof t.text?i.text.textContent=t.text:(i.text.textContent="",i.text.appendChild(t.text))),t.confirmText!==e.confirmText&&i.confirm&&("string"==typeof t.confirmText?i.confirm.textContent=t.confirmText:(i.confirm.textContent="",i.confirm.appendChild(t.confirmText))),t.hide?(0,o.N)(i.row):(0,a.o)(i.row))}removeToast(t){const e=this.idMap.get(t.iid);e&&(e.manual&&e.manual.removeEventListener("click",this.onCloseClick),e.confirm&&e.confirm.removeEventListener("click",this.onConfirmClick),e.row&&(e.row.removeEventListener("mouseenter",this.onMouseEnter),e.row.removeEventListener("mouseleave",this.onMouseLeave),e.removeTimer&&window.clearTimeout(e.removeTimer),e.row.classList.remove(`${this.ppx}-toast-unfold`),e.removeTimer=window.setTimeout((()=>{e.row&&e.row.parentNode&&(0,l.b)(e.row),delete e.removeTimer,this.idMap.delete(t.iid)}),250)))}getTargetValue(t){for(const[e,i]of this.idMap)if(i.row&&i.row.contains(t))return i}onCloseClick(t){const e=this.getTargetValue(t.target);e&&this.toastStore.remove(e.iid,"manual")}onConfirmClick(t){const e=this.getTargetValue(t.target);if(e){const t=this.toastStore.records.get(e.iid);t&&"function"==typeof t.onConfirmClicked&&t.onConfirmClicked()}}onMouseEnter(t){const e=this.getTargetValue(t.target);if(e){const t=this.toastStore.records.get(e.iid);t&&"function"==typeof t.onHoverChanged&&t.onHoverChanged(!0)}}onMouseLeave(t){const e=this.getTargetValue(t.target);if(e){const t=this.toastStore.records.get(e.iid);t&&"function"==typeof t.onHoverChanged&&t.onHoverChanged(!1)}}}g([A.ZP],f.prototype,"onCloseClick",1),g([A.ZP],f.prototype,"onConfirmClick",1),g([A.ZP],f.prototype,"onMouseEnter",1),g([A.ZP],f.prototype,"onMouseLeave",1)},85531:function(t,e,i){"use strict";i.d(e,{u:function(){return b}});var n=i(5489),r=i(53229),o=i(99550),a=i(70417);var s=i(65945),l=i(40712),A=i(89262),c=Object.defineProperty,h=Object.defineProperties,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,m=(t,e,i)=>e in t?c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,y=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?d(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&c(e,i,o),o};class b extends n.vq{constructor(){super(...arguments),this.idMap=new Map,this.coupler=new WeakMap}install(){super.install(),this.rootPlayer.hasFeature("noTooltip")||(this.dc.tooltip=(0,r.dX)(this.tooltipStore.records,{add:(t,e)=>{for(const e of t)this.addTooltip(e)},remove:(t,e)=>{for(const e of t)this.removeTooltip(e)},update:(t,e)=>{for(const[e,i]of t)this.updateTooltip(e,i)}}),this.addMutationObserver())}addTooltip(t){var e;if(null==(e=this.userStore.info)?void 0:e.toastBlock)return;const i=(0,o.t)(`<div class="${this.ppx}-tooltip-title"></div>`),n=(0,o.t)(`<div class="${this.ppx}-tooltip-item" data-name="${t.name}"></div>`),r={item:n,title:i,record:t,hoverTimer:null};t.slotMode?i.innerHTML=t.title:i.innerText=t.title,t.renderTarget&&(n.appendChild(i),t.renderTarget.appendChild(n),this.idMap.set(t.name,r),t.target&&this.coupler.set(t.target,r),t.tip?t.target&&(t.target.addEventListener("mouseenter",this.onMouseEnter),t.target.addEventListener("mouseleave",this.onMouseLeave)):this.open(t.name))}updateTooltip(t,e){const i=this.idMap.get(e.name);i&&t.title!==e.title&&i.title&&(i.title.textContent=t.title,this.tuneCoordinate(i.record,i.item))}removeTooltip(t){const e=this.idMap.get(t.name);e&&(this.clearHoverDelayTimer(e),e.record&&(e.record.target&&(e.record.target.removeEventListener("mouseenter",this.onMouseEnter),e.record.target.removeEventListener("mouseleave",this.onMouseLeave),this.coupler.delete(e.record.target)),this.close(e.record.name,!0)))}onMouseEnter(t){const e=this.coupler.get(t.target);e&&(this.clearHoverDelayTimer(e),this.open(e.record.name))}onMouseLeave(t){const e=this.coupler.get(t.target);e&&(this.clearHoverDelayTimer(e),this.close(e.record.name))}clearHoverDelayTimer(t){t.hoverTimer&&(clearTimeout(t.hoverTimer),t.hoverTimer=null)}open(t){const e=this.idMap.get(t);e&&(e.hoverTimer=window.setTimeout((()=>{this.openHandler(t)}),e.record.delay))}openHandler(t){const e=this.idMap.get(t);e&&(this.tuneCoordinate(e.record,e.item),e.item.style.visibility="visible",(0,s.jt)(((t,e)=>h(t,u(e)))(((t,e)=>{for(var i in e||(e={}))g.call(e,i)&&m(t,i,e[i]);if(p)for(var i of p(e))f.call(e,i)&&m(t,i,e[i]);return t})({},this.getOpenKeyframes(e.record.position)),{ease:s.Vv,duration:300,onUpdate:t=>{(0,l.ZP)(e.item).set(t)},onComplete:()=>{e.record.timerClock&&e.record.timerClock.resume()}})),"function"==typeof e.record.onOpened&&e.record.onOpened())}close(t,e){const i=this.idMap.get(t);if(!i)return;e&&this.clearHoverDelayTimer(i);const n=+(0,l.ZP)(i.item).get("opacity");(0,s.jt)({from:{opacity:n},to:{opacity:0},ease:s.mZ,duration:50,onUpdate:t=>{(0,l.ZP)(i.item).set(t)},onComplete:()=>{e?(0,a.b)(i.item):i.item.style.visibility="hidden"}}),"function"==typeof i.record.onClosed&&i.record.onClosed()}getOpenKeyframes(t){switch(t){case n.DU.LeftCenter:return{from:{opacity:0,transform:"translate(6px, 0px)"},to:{opacity:1,transform:"translate(0px, 0px)"}};case n.DU.RightCenter:return{from:{opacity:0,transform:"translate(-6px, 0px)"},to:{opacity:1,transform:"translate(0px, 0px)"}};case n.DU.BottomRight:case n.DU.BottomLeft:case n.DU.BottomCenter:return{from:{opacity:0,transform:"translate(0px, -6px)"},to:{opacity:1,transform:"translate(0px, 0px)"}};case n.DU.TopRight:case n.DU.TopLeft:case n.DU.TopCenter:case n.DU.CenterCenter:default:return{from:{opacity:0,transform:"translate(0px, 6px)"},to:{opacity:1,transform:"translate(0px, 0px)"}}}}getRefRect(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,width:e.width,height:e.height}}tuneCoordinate(t,e){const i={x:0,y:0,width:0,height:0},r=function(t){const e=t.document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}(this.rootPlayer.window),o=t.target?this.getRefRect(t.target):{x:t.clientX,y:t.clientY,width:0,height:0},a=this.getRefRect(e),s=0,l=0,A=r.width,c=r.height;switch(t.position){case n.DU.TopLeft:i.x=o.x-a.width-t.gap,i.y=o.y-a.height-t.gap;break;case n.DU.TopCenter:i.x=o.x+(o.width-a.width)/2,i.y=o.y-a.height-t.gap;break;case n.DU.TopRight:i.x=o.x+o.width+t.gap,i.y=o.y-a.height-t.gap;break;case n.DU.LeftCenter:i.x=o.x-a.width-t.gap,i.y=o.y+(o.height-a.height)/2;break;case n.DU.CenterCenter:i.x=o.x+(o.width-a.width)/2,
i.y=o.y+(o.height-a.height)/2;break;case n.DU.RightCenter:i.x=o.x+o.width+t.gap,i.y=o.y+(o.height-a.height)/2;break;case n.DU.BottomLeft:i.x=o.x-a.width-t.gap,i.y=o.y+o.height+t.gap;break;case n.DU.BottomCenter:i.x=o.x+(o.width-a.width)/2,i.y=o.y+o.height+t.gap;break;case n.DU.BottomRight:i.x=o.x+o.width+t.gap,i.y=o.y+o.height+t.gap}i.width=a.width,i.height=a.height,t.offsetX>=-1&&t.offsetX<=1?i.x+=i.width*t.offsetX:i.x+=t.offsetX,t.offsetY>=-1&&t.offsetY<=1?i.y+=i.height*t.offsetY:i.y+=t.offsetY;const h=s+t.renderGap,d=s+A-t.renderGap,u=l+t.renderGap,p=l+c-t.renderGap;d-h>=i.width?(i.x<h&&(i.x=h),i.x+i.width>d&&(i.x=d-i.width)):(i.x+i.width>s+A&&(i.x=s+A-i.width),i.x<s&&(i.x=s)),p-u>=i.height?(i.y<u&&(i.y=u),i.y+i.height>p&&(i.y=p-i.height)):(i.y+i.height>l+c&&(i.y=l+c-i.height),i.y<l&&(i.y=l)),e.style.left=`${Math.round(i.x)}px`,e.style.top=`${Math.round(i.y)}px`}addMutationObserver(){"function"==typeof MutationObserver&&(this.observer=new MutationObserver(((t,e)=>{t.forEach((t=>{if("childList"===t.type)for(let e=0;e<t.removedNodes.length;e++){const i=t.removedNodes[e];if(this.coupler.has(i)){const t=this.coupler.get(i);if(!t||!t.record||!t.item)return;t.item.parentElement&&!t.record.timerClock&&this.removeTooltip(t.record)}}}))})),this.observer.observe(this.nodes.container,{subtree:!0,childList:!0}))}removeMutationObserver(){this.observer&&this.observer.disconnect()}onDisconnect(){super.onDisconnect(),this.removeMutationObserver()}}y([A.ZP],b.prototype,"onMouseEnter",1),y([A.ZP],b.prototype,"onMouseLeave",1)},29608:function(t,e,i){"use strict";i.d(e,{_:function(){return p}});var n=i(23529),r=i(46330),o=i(99149),a=i(30905),s=i(22451),l=i(5489),A=i(25360),c=i.n(A),h=i(89262),d=Object.defineProperty,u=Object.getOwnPropertyDescriptor;class p extends l.vq{install(){super.install(),this.dc.show=(0,s.EH)((()=>{var t;this.menuStore.state.showVideoInfo&&!this.uiStore.isTinyView?this.show():(0,n.N)(null==(t=this.element)?void 0:t.container)}))}show(){this.inited||this.initUi(),(0,r.o)(this.element.container)}initUi(){this.inited=!0,this.graphWidth=180,this.graphHeight=14,this.minValue=0,this.infos={};const t=this.ppx,e=this.nodes.videoArea;e.appendChild(this.renderFragment()),this.element={container:e.querySelector(`.${t}-info-container`),panel:e.querySelector(`.${t}-info-panel`),close:e.querySelector(`.${t}-info-close`),copy:e.querySelector(`.${t}-info-copy`),download:e.querySelector(`.${t}-info-download`)},this.element.close.addEventListener("click",(()=>{this.menuStore.setState({showVideoInfo:!1})})),this.element.download.addEventListener("click",(()=>{this.rootPlayer.downloadLogs()})),this.element.copy.addEventListener("click",this.createClipBoard),this.dc.change=(0,s.U5)((()=>this.menuStore.state.videoInfo),(t=>{const e=t||this.menuStore.videoInfo;if(!e)return;const{type:i}=e,n=this.menuStore.getVideoInfoItems().infos,r=this.menuStore.getVideoInfo();let o="";if(this.videoType!==i&&(this.videoType=i,n.forEach((t=>{const e={type:t.type,title:t.title,data:t.data};if("graph"===t.type){e.unit=t.unit,e.graphPointArr=[],e.graphLineArr=[];for(let t=0,i=this.graphWidth/2;t<i;t++)e.graphPointArr.push(0),e.graphLineArr.push([2*t,this.graphHeight])}this.infos[t.name]=e}))),r.forEach((t=>{this.infos[t.name]&&(this.infos[t.name].data=t.data,o+=this.infoTemplate(this.infos[t.name]))})),this.freeStore.audioAtom.getLoudnessActive()){[{type:"text",title:"Integrated Loudness",data:this.freeStore.audioAtom.getIntegratedLoudness()+" LUFS"}].forEach((t=>{o+=this.infoTemplate(t)}))}this.element.panel.innerHTML=o}),{fireImmediately:!0})}createClipBoard(){a.T.copy(this.rootPlayer.getFormattedLogs(),{container:this.element.copy})?this.tooltipStore.create({target:this.element.copy,name:"copy",title:"已复制",duration:1e3}):this.tooltipStore.create({target:this.element.copy,name:"copy",title:"复制失败",duration:1e3})}infoTemplate(t){let e="";if("object"==typeof t&&t.type&&t.title)switch(t.type){case"text":e+=`<div class="info-line">\n                    <span class="info-title">${t.title}:</span>\n                    <span class="info-data">${t.data}</span>\n                    </div>`;break;case"graph":e+=`<div class="info-line">\n                    <span class="info-title">${t.title}:</span>\n                    <span class="info-graph">${this.getGraph(t)}</span>\n                    <span class="info-data">${t.data} ${t.unit||""}</span>\n                    </div>`}return e}getGraph(t){let e,i="",n="";t.graphPointArr.splice(0,1),t.graphPointArr.push(t.data),t.graphLineArr=[],this.maxValue=Math.max.apply(this,t.graphPointArr)||1,this.perValue=this.graphHeight/(this.maxValue-this.minValue);for(let e=0,i=t.graphPointArr.length;e<i;e++){const i=t.graphPointArr[e];t.graphLineArr.push([2*e,this.graphHeight-(i-this.minValue)*this.perValue])}e=t.graphLineArr;for(let t=0,i=e.length;t<i;t++)n+=e[t].join(",")+" ";return i+=`<svg width="${this.graphWidth}" height="${this.graphHeight}" viewBox="0 0 ${this.graphWidth} ${this.graphHeight}">\n        <g><polyline stroke="white" fill="none" points="${n}"></polyline></g>\n        </svg>`,i}renderFragment(){const t=this.ppx,e=`<div class="${t}-info-container">\n                    <div class="${t}-info-title">统计信息<span class="${t}-info-close"><span class="${this.cpx}-svg-icon">${c()}</span></span></div>\n                    <div class="${t}-info-panel"></div>\n                    <div class="${t}-info-log"><div class="info-line">\n                        <span class="info-title">${l.IS.version}-Log:</span>\n                        <span class="${t}-info-copy" data-action="copy">[Copy]</span>\n                        <span class="${t}-info-download" data-action="download">[Download]</span>\n                    </div></div>\n                    \n                </div>`;return(0,o.i)(e)}onDispose(){super.onDispose(),this.videoType=null}onDisconnect(){var t;super.onDisconnect(),(null==(t=this.element)?void 0:t.copy)&&this.element.copy.removeEventListener("click",this.createClipBoard)}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?u(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&d(e,i,o)})([h.ZP],p.prototype,"createClipBoard",1)},63801:function(t,e,i){"use strict";i.d(e,{Q:function(){return y}});var n=i(63904),r=i.n(n),o=i(56145),a=i.n(o),s=i(82087),l=i.n(s),A=i(5489),c=i(99550),h=i(65723),d=i(22451),u=i(83370),p=i(89262),g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,m=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?f(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&g(e,i,o),o};class y extends A.vq{constructor(){super(...arguments),this.iid=null,this.isEnded=!1,this.chargingQATimer=null,this.chargingQAToastId=null}install(){super.install(),this.dc.playUrlCode=(0,d.U5)((()=>this.mpdStore.state.playUrlCode),(t=>{t!==u.Vp.Charing_NeedPay&&t!==u.Vp.Old_Charing_NeedPay||(this.isEnded=!0)}),{fireImmediately:!0}),(0,d.EH)((()=>{var t,e,i,n,r,o,a;if(this.userStore.isCommonWatch&&this.iid)return this.toastStore.remove(this.iid),void(this.iid=null);if(!(null==(t=this.userStore.info)?void 0:t.is_upower_exclusive_with_qa)||this.chargingQAToastId){if(this.userStore.isChargedWatch){this.iid&&(this.toastStore.remove(this.iid),this.iid=null);let t="";return t=(null==(i=null==(e=this.userStore.info)?void 0:e.elec_high_level)?void 0:i.new)?null==(a=null==(o=this.userStore.info)?void 0:o.elec_high_level)?void 0:a.title:`「${null==(r=null==(n=this.userStore.info)?void 0:n.elec_high_level)?void 0:r.title}」充电专属视频`,this.ele=this.showChargedToast(t),void this.bindEvents()}return this.userStore.isCharingTrialWatch?(this.iid&&(this.toastStore.remove(this.iid),this.iid=null),this.ele=this.showTrialWatchChargingToast(),this.chargeBtn=this.ele.querySelector(`.${this.ppx}-charging-toast-right`),void this.bindEvents()):void 0}this.showChargingQAToast()}))}showChargingQAToast(){this.ele=this.chargingQATpl();this.chargingQAToastId=this.toastStore.create({duration:0,text:this.ele,customClassName:"charging-QA"}),queueMicrotask((()=>{const t=this.ele.querySelector(`.${this.ppx}-charging-qa-question-content`);if((null==t?void 0:t.scrollHeight)>40){const e=(0,c.t)(`<div class="${this.ppx}-charging-qa-question-content-more">详情</div>`)
;t.appendChild(e)}})),this.chargingQATimer=window.setTimeout((()=>{this.dp.hide=(0,d.U5)((()=>this.ctrlStore.ctrlHidden),(t=>{this.chargingQAToastId&&!this.userStore.isChargingQATrialWatch&&this.toastStore.update(this.chargingQAToastId,{hide:!!t})}),{fireImmediately:!0})}),5e3)}chargingQATpl(){const{elec_high_level:t}=this.userStore.info||{},e=(null==t?void 0:t.question_text)||"",i=(null==t?void 0:t.qa_title)||"",n=null==t?void 0:t.show_button;return this.createToastElement({title:i,text:e,showButton:n})}createToastElement({title:t,text:e,showButton:i}){const n=(0,c.t)(`\n            <div class="${this.ppx}-charging-qa-toast">\n                <div class="${this.ppx}-charging-qa-content">\n                    ${this.createTitleSection(t)}\n                    ${this.createQuestionSection(e,i)}\n                </div>\n            </div>\n        `);return this.bindToastEvents(n,i),n}createTitleSection(t){return`\n            <div class="${this.ppx}-charging-qa-title">\n                ${h.t`${t}`}\n            </div>\n        `}createQuestionSection(t,e){return`\n            <div class="${this.ppx}-charging-qa-question">\n                ${this.createQuestionText(t)}\n                ${e?this.createActionButton():""}\n            </div>\n        `}createQuestionText(t){return`\n            <div class="${this.ppx}-charging-qa-question-text">\n               \n                <div class="${this.ppx}-charging-qa-question-content">\n                        <span class="${this.cpx}-svg-icon">${r()}</span>\n                    ${h.t`${t}`}\n                </div>\n            </div>\n        `}createActionButton(){return`\n            <div class="${this.ppx}-charging-qa-button">\n                <i class="${this.ppx}-charging-qa-button-icon">${a()}</i>\n                <span>去开通</span>\n            </div>\n        `}bindToastEvents(t,e){const i=t.querySelector(`.${this.ppx}-charging-qa-question-text`);if(null==i||i.addEventListener("click",this.questionTextClickHandler),e){const e=t.querySelector(`.${this.ppx}-charging-qa-button`);null==e||e.addEventListener("click",this.buttonClickHandler)}}questionTextClickHandler(){this.emitElectricAction(A.jy.Qa)}buttonClickHandler(t){t.stopPropagation(),this.emitElectricAction(A.jy.Prompt)}removeEvent(){var t,e;const i=null==(t=this.ele)?void 0:t.querySelector(`.${this.ppx}-charging-qa-question-text`);null==i||i.removeEventListener("click",this.questionTextClickHandler);const n=null==(e=this.ele)?void 0:e.querySelector(`.${this.ppx}-charging-qa-button`);null==n||n.removeEventListener("click",this.buttonClickHandler)}emitElectricAction(t){this.rootPlayer.emit(A.tw.Player_Virtual_Action,new CustomEvent(A.tw.Player_Virtual_Action,{detail:{kind:A.s.Electric,data:{from:"electric-video-button-click",electricBusinessType:t}}}))}showTrialWatchChargingToast(){var t,e,i,n,r,o,s,A,h;let d="";d=(null==(e=null==(t=this.userStore.info)?void 0:t.elec_high_level)?void 0:e.new)?`\n                <div class="${this.ppx}-trial-watch-charging-toast">\n                    <div class="${this.ppx}-charging-toast-left">\n                        <span class="${this.ppx}-charging-toast-left-title">${null==(r=this.userStore.info)?void 0:r.elec_high_level.title}</span>\n                        <span class="${this.ppx}-charging-toast-left-level">\n                            <i>\n                                ${l()}\n                            </i>\n                            <span>${null==(o=this.userStore.info)?void 0:o.elec_high_level.sub_title}</span>\n                        </span>\n                    </div>\n                    <div class="${this.ppx}-charging-toast-right">\n                        <i>${a()}</i>\n                        <span>${null==(s=this.userStore.info)?void 0:s.elec_high_level.button_text}</span>\n                    </div>\n                </div>\n            `:`\n                <div class="${this.ppx}-trial-watch-charging-toast">\n                    <div class="${this.ppx}-charging-toast-left">\n                        <span class="${this.ppx}-charging-toast-left-title">该视频为「${null==(i=this.userStore.info)?void 0:i.elec_high_level.title}」专属视频</span>\n                        <span class="${this.ppx}-charging-toast-left-level">\n                            <i>\n                                ${l()}\n                            </i>\n                            <span>试看中 · 开通「${null==(n=this.userStore.info)?void 0:n.elec_high_level.level_str}」即可观看</span>\n                        </span>\n                    </div>\n                    <div class="${this.ppx}-charging-toast-right">\n                        <i>${a()}</i>\n                        <span>去开通</span>\n                    </div>\n                </div>\n            `;const u=(0,c.t)(d);if(!1===(null==(h=null==(A=this.userStore.info)?void 0:A.elec_high_level)?void 0:h.show_button)){u.querySelector(`.${this.ppx}-charging-toast-right`).style.display="none"}return this.iid=this.toastStore.create({duration:0,manualMode:!1,text:u,fixed:!0}),u}showChargedToast(t){const e=`\n            <span class="${this.ppx}-charging-toast">\n                <span class="${this.ppx}-charging-flash">${a()}</span>\n                ${t}\n            </span>\n        `,i=(0,c.t)(e);return this.iid=this.toastStore.create({duration:8e3,manualMode:!1,text:i,fixed:!0}),i}bindEvents(){this.ele&&this.chargeBtn&&this.chargeBtn.addEventListener("click",(()=>{return t=this,e=null,i=function*(){this.rootPlayer.emit(A.tw.Player_Virtual_Action,new CustomEvent(A.tw.Player_Virtual_Action,{detail:{kind:A.s.Electric,data:{from:"electric-video-button-click"}}}))},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i})),this.rootPlayer.on(A.p2.MEDIA_ENDED,(()=>{this.toastStore.remove(this.iid),this.isEnded=!0})),this.rootPlayer.on(A.p2.MEDIA_PLAY,(()=>{(this.userStore.isCharingTrialWatch||this.mpdStore.state.playUrlCode===u.Vp.Charing_NeedPay||this.mpdStore.state.playUrlCode===u.Vp.Old_Charing_NeedPay)&&this.isEnded&&this.portStore.pause()})),this.rootPlayer.on(A.tw.Player_Navigate,(()=>{this.isEnded=!1}))}onDispose(){super.onDispose(),this.removeEvent(),this.chargingQAToastId=null,window.clearTimeout(this.chargingQATimer),this.chargingQATimer=null}}m([p.ZP],y.prototype,"questionTextClickHandler",1),m([p.ZP],y.prototype,"buttonClickHandler",1)},62557:function(t,e,i){"use strict";i.d(e,{N:function(){return c}});var n=i(5489),r=i(22451),o=i(31168),a=i(23173),s=i(83370),l=Object.defineProperty,A=Object.getOwnPropertyDescriptor;class c extends n.vq{constructor(t){super(t),this.historyDeferred=null,this.hasShown=!1,this.conflictToastLocker=!1,this.iid=0,(0,r.rC)(this)}get history(){if(this.configStore.fromLocalCache)return;if(this.configStore.fromDid||this.dmCmdStore.creator)return;if(!this.userStore.info||this.userStore.info.interaction)return!1;if(this.premiereStore.state.status)return;const t=this.rootStore.isLoaded,{sameEp:e,exist:i}=this.processHistoryData();return!!i&&(e?t:t&&(!!this.storyStore.eplist||!!this.storyStore.ugcMultiEpisode))}processHistoryData(){var t,e,i,n,r,o;let{lastPlayEpid:a=null,lastPlayCid:s=null,lastPlayTime:l=null}=this.mpdStore.body||{};if(a){let r=null==(e=null==(t=this.mpdStore.body)?void 0:t.playViewBusinessInfo.userStatus)?void 0:e.watch_progress.lastEpIndex,o=null==(n=null==(i=this.mpdStore.body)?void 0:i.playViewBusinessInfo.userStatus)?void 0:n.watch_progress.lastTime;return{sameEp:a===this.configStore.episodeId,lastPlayTime:l,videoId:a,exist:a&&l>0,lastEpIndex:r,lastTime:o}}return s||(l=null==(r=this.userStore.info)?void 0:r.lastPlayTime,s=null==(o=this.userStore.info)?void 0:o.lastCid),s?{sameEp:s===this.configStore.cid,lastPlayTime:l,videoId:s,exist:s&&l>0,lastEpIndex:null,lastTime:l}:{sameEp:!1,lastPlayTime:0,videoId:0,exist:!1,lastEpIndex:null,lastTime:0}}install(){super.install(),this.dc.history=(0,r.U5)((()=>({his:this.history,ding:this.rootStore.ding})),(()=>{this.configStore.t||this.hasShown||!this.history||(this.historyHandler(),this.hasShown=!0)}),{fireImmediately:!0}),this.dc.tHisotry=(0,
r.U5)((()=>this.configStore.homepageT),(t=>{t&&"number"==typeof t&&t>0&&this.tHistoryHandler()}),{fireImmediately:!0})}historyHandler(){var t,e,i,r,a,s,l,A;const c=this.uiStore.kind===n.HR.Pgc||this.uiStore.kind===n.HR.Pugv,{sameEp:h,lastPlayTime:d,videoId:u,lastEpIndex:p,lastTime:g}=this.processHistoryData(),f=d/1e3,m=null==(r=null==(i=null==(e=null==(t=this.mpdStore)?void 0:t.body)?void 0:e.playViewBusinessInfo)?void 0:i.seasonInfo)?void 0:r.season_type,y=null==(A=null==(l=null==(s=null==(a=this.mpdStore)?void 0:a.body)?void 0:s.playViewBusinessInfo)?void 0:l.episodeInfo)?void 0:A.delivery_fragment_video,{duration:b,isLastWatchSeeked:v}=this.mediaStore.state,E=()=>{this.toastStore.remove(this.iid,"manual")},I=()=>{this.portStore.seek(0,{initiator:"History:ToStart:Seek"}),E()},C=t=>{this.conflictToastLocker||(this.iid=this.toastStore.create({text:t,duration:3500,manualMode:!0,confirmText:"从头播放",onConfirmClicked:I}),this.track.e("toast_last_playtime_show",{qs:+v}))},B=()=>{if(v)return C(y?"已为您定位至上次观看位置":`已为您定位至${(0,o.Z)(f,b)}`)};let w=p+"";h?u===this.configStore.cid&&f>=5&&f<b-5&&B():this.handleDifferentEpisode(c,u,w,m,g,f,y),c&&f>=5&&B()}handleDifferentEpisode(t,e,i,n,r,a,s){let l,A=this.findEpisodeItem(e);this.storyStore.ugcMultiEpisode&&(A=this.storyStore.findEpisodeByCid(e)),A&&1===this.rootStore.ding&&(t?(this.conflictToastLocker=!0,l=`上次看到 ${this.formatShortTitle(i,n)}`,!s&&r>0&&(l+=` ${(0,o.Z)(r/1e3,this.portStore.getDuration())}`)):l=`上次看到第${A.p}个 ${r/1e3&&r>0&&r/1e3<A.duration?(0,o.Z)(r/1e3,A.duration):""}`,r>0&&(this.toastStore.create({text:l,duration:3500,manualMode:!0,confirmText:"跳转播放",onConfirmClicked:()=>this.handleConfirmClick(t,A,a,r)}),this.track.e("toast_last_episode_show")))}handleConfirmClick(t,e,i,r){this.configStore.outSideReload?this.rootPlayer.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.Eplist_Pgc_Direct,data:{index:e.p-1,lastPlayTime:t?r/1e3:i}}})):(this.episodeStore.reload(Object.assign({},{t:`${i}`,stats:{spmId:this.configStore.spmId,spmIdFrom:a.Q.stringify({type:this.storyStore.state.type,action:a.A.Un_Named})}},e)),this.track.e("slidejump"))}tHistoryHandler(){const{duration:t}=this.mediaStore.state,e=this.patchAdvStore.prePatchDurationInSec()||0;this.toastStore.create({text:`已为您定位至${(0,o.Z)(this.configStore.t+e,t)}`,duration:3500,manualMode:!0})}findEpisodeItem(t){const e=this.storyStore.eplist;if(Array.isArray(e)&&e.length>1)for(let i=0;i<e.length;i++){const n=e[i];if(n.episodeId===t||n.cid===t)return n}return null}formatShortTitle(t,e){const i=Number(t),n=e===s.bU.Anime||e===s.bU.CHN?"话":"集";return isNaN(i)?t:`第${i}${n}`}onDispose(){this.historyDeferred&&(this.historyDeferred.reject(),this.historyDeferred=null),this.hasShown=!1,this.conflictToastLocker=!1}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?A(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&l(e,i,o)})([r.Fl],c.prototype,"history",1)},96429:function(t,e,i){"use strict";i.d(e,{E:function(){return E}});var n=i(5489),r=i(22451),o=i(60736),a=i(43122),s=i(99550),l=i(25360),A=i.n(l),c=i(57012),h=i(23574),d=i(89262),u=i(54),p=i.n(u),g=i(92452);class f extends g.eV{constructor(){super(...arguments),this.tag="HttpFeedback",this.url="//api.bilibili.com/x/web-interface/feedback"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}var m=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?y(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&m(e,i,o),o};const v={1:"当前可能存在网络异常，<br/>请点击提交上传拨测结果，并尝试切换网络",2:"当前网速较慢，无法满足流畅播放的要求，<br/>请尝试切换不同清晰度或暂停缓冲",3:"视频可能存在播放问题，<br/>请点击提交上传拨测结果，技术小哥哥会尽快修复"};class E extends n.vq{constructor(t){super(t),this.hasBufferLagTimes=[],this.noBufferLagTimes=[],this.boceLagTimes=[],this.hasBufferLagTimer=0,this.lowerQualityTimes=0,this.lowerQualityClicked=!1,this.lowerQualityStartTime=0,this.lowerQualityRemoved=!1,this.lowerQualityChanged=!1,this.boceStartTime=0,this.boceTimer=0,this.displayedLoadTimeoutToast=!1,(0,r.rC)(this)}get hasBufferLag(){return!(!this.uiStore.state.isLoaded||!this.mediaStore.state.buffering||this.videoHasBuffered)&&(!this.mediaStore.state.seekLoad&&this.mediaStore.state.lagLoad)}get noBufferLag(){return!(!this.uiStore.state.isLoaded||!this.mediaStore.state.lagging||this.videoHasBuffered)&&(!this.mediaStore.state.seekLoad&&!this.mediaStore.state.lagLoad)}get videoHasBuffered(){const t=this.mediaStore.video;return t.buffered&&t.buffered.length>1}install(){super.install(),this.addNetWorkLagListener(),this.dc.hasBufferLag=(0,r.U5)((()=>this.hasBufferLag),(()=>{this.hasBufferLag?this.hasBufferLagHandler():window.clearTimeout(this.hasBufferLagTimer)})),this.dc.noBufferLag=(0,r.U5)((()=>this.noBufferLag),(()=>{this.noBufferLag?(this.noBufferLagHandler(),this.boceGuideHandler()):window.clearTimeout(this.boceTimer)})),this.dc.isLoadedTimeout=(0,r.U5)((()=>this.uiStore.state.isLoadTimeout&&!this.uiStore.state.isLoaded),(t=>{t?this.startMediaCanPlayChecker((()=>{this.displayedLoadTimeoutToast||this.showLoadTimeoutFeedback()})):this.stopMediaCanPlayChecker()}),{fireImmediately:!0}),this.dc.isLoaded=(0,r.U5)((()=>this.uiStore.state.isLoaded),(t=>{t&&this.stopMediaCanPlayChecker()}),{fireImmediately:!0})}startMediaCanPlayChecker(t){this.stopMediaCanPlayChecker();const e=this.configStore.loadedIssueTime;e<=0||(this.loadedTimeoutClock=new o.eF(((i,n)=>{n>=i&&(this.log.w("[MediaCanplayChecker]",`黑屏时间总计超过${e}s`),t&&t())}),1e3*e,500),this.dp.loadChecker&&this.dp.loadChecker(),this.dp.loadChecker=(0,r.EH)((()=>{this.rootStore.pageHidden?this.loadedTimeoutClock&&this.loadedTimeoutClock.suspend():this.loadedTimeoutClock&&this.loadedTimeoutClock.resume()})))}stopMediaCanPlayChecker(){this.dp.loadChecker&&this.dp.loadChecker(),this.loadedTimeoutClock&&(this.loadedTimeoutClock.abort(),this.loadedTimeoutClock=null)}showLoadTimeoutFeedback(){this.displayedLoadTimeoutToast=!0;const t=this.toastStore.create({text:"播放遇到问题？",confirmText:"点击反馈",duration:8e3,manualMode:!0,onRemoved:()=>{t&&this.toastStore.remove(t)},onConfirmClicked:()=>{t&&this.toastStore.remove(t),this.track.e("load_timeout_toast_click"),this.menuStore.hideAllPopupPanel(),this.menuStore.setState({showIssue:!0,showIssueFrom:"load-failed"})}})}addNetWorkLagListener(){this.rootPlayer.on(n.p2.PLAYER_PLAYBACK_LAG,(()=>{if(!this.uiStore.state.isLoaded)return;const t=this.kernelStore.dashKernel;if(t)if("function"==typeof t.isLoadingFragment){let e=t.getBufferLength("video"),i=t.getBufferLength("audio");(isNaN(e)||e<.01)&&!t.isLoadingFragment("video")||(isNaN(i)||i<.01)&&!t.isLoadingFragment("audio")||this.lowerQualityToast(1)}else this.lowerQualityToast(1)}))}hasBufferLagHandler(){const t=Date.now();this.hasBufferLagTimes.push(t),this.hasBufferLagTimes.length>=3&&(t-this.hasBufferLagTimes[0]<=3e4?(this.hasBufferLagTimes=[],this.lowerQualityToast(3)):this.hasBufferLagTimes.shift()),window.clearTimeout(this.hasBufferLagTimer),this.hasBufferLagTimer=window.setTimeout((()=>{this.lowerQualityToast(2)}),5e3)}noBufferLagHandler(){const t=Date.now();this.noBufferLagTimes.push(t),this.noBufferLagTimes.length>=5&&(t-this.noBufferLagTimes[0]<=3e4?(this.noBufferLagTimes=[],this.lowerQualityToast(1)):this.noBufferLagTimes.shift())}lowerQualityToast(t){var e;if(this.lowerQualityClicked)return;const i=Date.now();if(!(this.lowerQualityStartTime&&i-this.lowerQualityStartTime<=12e4)&&this.qualityStore.realQ&&this.qualityStore.realQ>a.nJ.normalize(16)){let n,r="";const o=Object.assign([],null==(e=this.mpdStore.body)?void 0:e.acceptQuality).sort(((t,e)=>e-t));for(let t=0;t<o.length;t++)if(+o[t]===this.qualityStore.realQ&&o[t+1]){n=o[t+1],r=a.nJ.item(n).name;break}if(!n||!r)return;if(++this.lowerQualityTimes>2)return;const s=this.toastStore.create({text:(1===t?"网络":"播放")+"卡顿，试试切换到",confirmText:r,duration:8e3,manualMode:!0,onRemoved:()=>{this.lowerQualityRemoved=!0},
onConfirmClicked:()=>{this.lowerQualityClicked=!0,s&&this.toastStore.remove(s),this.qualityStore.requestQuality(n).then((()=>{this.lowerQualityChanged=!0})),this.track.e("quality_toast_click",n)}});this.lowerQualityStartTime=i,this.track.e("quality_toast_show",t)}}boceGuideHandler(){if(this.lowerQualityChanged)this.boceGuideToast();else if(this.lowerQualityRemoved){const t=Date.now();this.boceLagTimes.push(t),this.boceLagTimes.length>=10&&(t-this.boceLagTimes[0]<=6e4?(this.boceLagTimes=[],this.boceGuideToast()):this.boceLagTimes.shift()),window.clearTimeout(this.boceTimer),this.boceTimer=window.setTimeout((()=>{this.boceGuideToast()}),5e3)}}boceGuideToast(){if(!this.lowerQualityChanged&&!this.lowerQualityRemoved)return;if(this.boceStartTime)return;const t=new Date,e=+new Date(t.getFullYear(),t.getMonth(),t.getDate());let i=this.localStore.get().boceTimes;if(i=i.filter((t=>t>=e)),i.length>=2)return;i.push(+t),this.boceStartTime=+t,this.localStore.set({boceTimes:i});const n=this.toastStore.create({text:"发现您遇到播放卡顿的情况",confirmText:"点击检测原因",duration:5e3,onConfirmClicked:()=>{n&&this.toastStore.remove(n),new I(this.rootStore).open(),this.track.e("buffering_toast_click")},onRemoved:()=>{this.track.e("buffering_toast_close")}});this.track.e("buffering_toast_show")}onDispose(){super.onDispose(),this.hasBufferLagTimes=[],this.noBufferLagTimes=[],this.boceLagTimes=[],this.lowerQualityTimes=0,this.lowerQualityClicked=!1,this.lowerQualityRemoved=!1,this.lowerQualityChanged=!1,this.lowerQualityStartTime=0,this.boceStartTime=0,window.clearTimeout(this.hasBufferLagTimer),window.clearTimeout(this.boceTimer),this.stopMediaCanPlayChecker(),this.displayedLoadTimeoutToast=!1}}b([r.Fl],E.prototype,"hasBufferLag",1),b([r.Fl],E.prototype,"noBufferLag",1);class I extends n.vq{constructor(){super(...arguments),this.speed="",this.type=1,this.templateNodes=this.detectionTemplate(),this.circleProgress=this.createCircleProgress()}open(){this.templateNodes.container.parentElement||this.nodes.videoArea.appendChild(this.templateNodes.container),this.circleProgress.start(),this.calcSpeed()}detectionTemplate(){const t=`\n            <div class="${this.ppx}-detection-wrap">\n                <div class="${this.ppx}-detection-panel">\n                    <div class="${this.ppx}-detection-title">播放卡顿测速<span class="${this.ppx}-detection-close"><span class="${this.cpx}-svg-icon">${A()}</span></span></div>\n                    <div class="${this.ppx}-detection-circle-progress"></div>\n                    <div class="${this.ppx}-detection-summary"></div>\n                    <div class="${this.ppx}-detection-submit disable">提交</div>\n                </div>\n            </div>\n        `,e=(0,s.t)(t),i=e.querySelector(`.${this.ppx}-detection-close`),n=e.querySelector(`.${this.ppx}-detection-submit`);return i&&i.addEventListener("click",this.onCloseHandler),n&&n.addEventListener("click",this.onSubmitHandler),{container:e,close:i,submit:n,summary:e.querySelector(`.${this.ppx}-detection-summary`),circleProgress:e.querySelector(`.${this.ppx}-detection-circle-progress`)}}onCloseHandler(){this.removeHandler()}onSubmitHandler(){this.templateNodes.submit.classList.contains("disable")||(this.removeHandler(),this.boceReportFeedback(),this.track.e(`boce_board_click_${this.type}`))}createCircleProgress(){const t=new c.mZ(this.templateNodes.circleProgress,{});return t.on("start",(()=>{this.templateNodes.submit.classList.add("disable")})),t.on("end",(()=>{this.templateNodes.submit.classList.remove("disable"),this.templateNodes.summary.innerHTML=v[this.type]})),t}calcSpeed(){let t=new h.Z({timeout:5e3,defaultData:1048576,url:this.portStore.getPlayUrl(),onProgress:(e,i,n)=>{this.speed=t.trans(n)}});t.start().then((e=>{e&&(this.reportData=e),e.length&&e[0].speed?(e[0].speed>=e[0].bandWidth?this.type=3:this.type=2,this.speed=t.trans(e[0].speed)):(this.type=1,this.speed=t.trans(0)),this.circleProgress.value(String(this.speed))})).catch((()=>{this.type=1,this.speed=t.trans(0),this.circleProgress.value(String(this.speed))}))}boceReportFeedback(){let t={content:"boceReport",aid:this.configStore.aid,bvid:this.configStore.bvid,tag_id:300,browser:window.navigator.userAgent,version:"boceReport",jsonp:"jsonp",other:JSON.stringify({speed:this.speed,cid:this.configStore.cid,playurl:this.portStore.getPlayUrl(),progress:this.portStore.getCurrentTime(),video_info:this.menuStore.getVideoInfo(),speedDetails:this.reportData||""})};new f(this.rootPlayer).r(t)}removeHandler(){this.type=1,this.speed="",this.reportData=null,p()(this.templateNodes.container).remove(),this.circleProgress.cancelAnimation(),this.templateNodes.close.removeEventListener("click",this.onCloseHandler),this.templateNodes.submit.removeEventListener("click",this.onCloseHandler)}onDispose(){super.onDispose(),this.removeHandler()}}b([d.ZP],I.prototype,"onCloseHandler",1),b([d.ZP],I.prototype,"onSubmitHandler",1)},92572:function(t,e,i){"use strict";i.d(e,{o:function(){return A}});var n=i(5489),r=i(22451),o=i(43122),a=i(89262),s=Object.defineProperty,l=Object.getOwnPropertyDescriptor;class A extends n.vq{constructor(){super(...arguments),this.justAboveTwoMin=!0,this.hasTrialed=!1}install(){super.install(),this.unLoginGreatestQuality=this.uiStore.kind===n.HR.Ugc?o.nJ.gt.ugcLogin:o.nJ.gt.login,this.rootPlayer.on(n.tw.Player_Quality_Changed,(()=>{this.qualityStore.state.isTrialQuality&&this.uiStore.kind===n.HR.Ugc&&this.kernelStore.dashKernel&&this.kernelStore.dashKernel.setAutoSwitchTopQualityFor("video",this.highestQuality.quality)})),this.dp.noLogin=(0,r.gx)((()=>this.rootStore.isLoaded&&this.userStore.state.isUserPrepared),(()=>{if(!(this.userStore.isLogin||this.isViewToday&&this.isVideoAble)){const t=this.showLoginToast();this.interactStore.setState({unLoginToastId:t})}})),this.trialDisposer=(0,r.U5)((()=>({isReady:this.rootStore.isLoaded&&this.userStore.state.isUserPrepared,isLogin:this.userStore.isLogin})),(({isReady:t,isLogin:e})=>{if(t)if(this.userStore.isLogin)"function"==typeof this.trialDisposer&&(this.toastStore.remove(this.interactStore.state.unLoginToastId),this.trialDisposer());else if(this.isViewToday){if(this.isVideoAble){const t=this.showTrialToast();this.interactStore.setState({unLoginToastId:t})}}else if(this.hitAbTest){const t=this.showTrialToast();this.interactStore.setState({unLoginToastId:t}),e&&this.toastStore.remove(t)}else"function"==typeof this.trialDisposer&&(this.trialDisposer(),this.qualityStore.state.isTrialQuality&&16!==this.qualityStore.quality&&(this.qualityStore.setState({isTrialSwitch:!0}),this.qualityStore.requestQuality(16).then((()=>{this.qualityStore.setState({isTrialSwitch:!1})})).catch((t=>{this.qualityStore.setState({isTrialSwitch:!1})}))))}),{fireImmediately:!0})}get hitAbTest(){var t;return"V_PLAYER_PLAY_TOAST"===(null==(t=window.webAbTest)?void 0:t.login_dialog_version)}get highestQuality(){var t;return null==(t=this.mpdStore.body)?void 0:t.supportFormats.reduce(((t,e)=>o.nJ.isSuperQuality(e.quality)||t&&t.quality>e.quality?t:e),null)}get isVideoAble(){var t;const e=this.hitAbTest?60:30;if(this.uiStore.kind===n.HR.Ugc&&!(null==(t=this.userStore.info)?void 0:t.withoutVip)&&this.mediaStore.state.duration>=e&&this.highestQuality.quality>this.unLoginGreatestQuality&&this.kernelStore.baseAgent&&"object"==typeof this.mpdStore.body.mediaDataSource.url){const t=this.kernelStore.baseAgent.averageThroughput;return this.mpdStore.body.mediaDataSource.url.video[0].bandwidth/8/1e3<t}return!1}get isViewToday(){if(this.userStore.isCharingTrialWatch)return!1;if(this.hitAbTest)return!0;if(this.hasTrialed)return!1;const t=this.localStore.get().lastUnlogintrialView;if(!t)return!0;const e=new Date(t),i=new Date;return e.getDate()!==i.getDate()||e.getMonth()!==i.getMonth()||e.getFullYear()!==i.getFullYear()}reportTrack(t,e,i){this.track.e(t,i),this.trackExtra.p(t,e,i)}showTrialToast(){const t=document.createElement("span");t.textContent="登录 ",t.classList.add(`${this.ppx}-toast-confirm`),t.style.marginLeft="0px";const e=document.createElement("span");e.textContent="免费享高清视频",e.insertAdjacentElement("afterbegin",t);const i=document.createElement("span");i.classList.add(`${this.ppx}-toast-confirm-login`),i.innerHTML="试看30秒"
;const r=this.toastStore.create({duration:this.hitAbTest?0:12e3,manualMode:!0,confirmText:i,text:e,onConfirmClicked:()=>{this.toastStore.remove(r),this.localStore.set({lastUnlogintrialView:Date.now()}),this.startTrialHq()}});return t.addEventListener("click",(()=>{this.toastStore.remove(r),this.userStore.requestQuickLogin(),this.portStore.pause(),this.reportTrack("thirtyseconds_login_click",n.p0.Click)})),this.reportTrack("thirtyseconds_show",n.p0.Appear),r}endTrial(){this.qualityStore.state.isTrialQuality&&(this.kernelStore.dashKernel&&(this.kernelStore.dashKernel.setAutoSwitchQualityFor("video",!0).setAutoSwitchTopQualityFor("video",this.unLoginGreatestQuality),this.hasTrialed=!0),this.dp.et=(0,r.gx)((()=>!this.qualityStore.isSwitching),(()=>{this.qualityStore.setState({isTrialQuality:!1}),this.qualityStore.realQ>this.unLoginGreatestQuality&&(this.qualityStore.setState({isTrialSwitch:!0}),this.reportTrack("thirtyseconds_end_show",n.p0.Appear),this.trailSwitchTimer=window.setTimeout((()=>{this.qualityStore.requestQuality(16).then((()=>{this.qualityStore.setState({isTrialSwitch:!1});const t={duration:5e3,manualMode:!0,text:"高清试看已结束，为您切换回360P 流畅"};this.toastStore.create(t),this.trialLoginTimer=window.setTimeout((()=>{this.userStore.isLogin||(this.portStore.pause(),this.userStore.requestQuickLogin("高清试看已结束，登录免费享高清画质")),this.reportTrack("thirtyseconds_end_login_show",n.p0.Appear)}),4e3)})).catch((()=>{this.qualityStore.setState({isTrialSwitch:!1})}))})))})))}startTrialHq(){this.dp.st=(0,r.gx)((()=>!this.qualityStore.isSwitching),(()=>{this.qualityStore.setState({isTrialQuality:!0,isTrialSwitch:!0}),this.trailSwitchTimer=window.setTimeout((()=>{this.qualityStore.requestQuality(this.highestQuality.quality).then((()=>{this.trialTimer=window.setTimeout(this.endTrial,3e4),this.reportTrack("thirtyseconds_click",n.p0.Click,{success:1}),this.qualityStore.setState({isTrialSwitch:!1})})).catch((()=>{this.qualityStore.setState({isTrialQuality:!1}),this.reportTrack("thirtyseconds_click",n.p0.Click,{success:0}),this.qualityStore.setState({isTrialSwitch:!1})}))}))}))}showLoginToast(){const t=this.toastStore.create({duration:5e3,manualMode:!0,confirmText:"立即登录",text:"登录免费享高清画质",onConfirmClicked:()=>{this.toastStore.remove(t),this.userStore.requestQuickLogin(),this.portStore.pause(),this.reportTrack("play_window.login_toast_click",n.p0.Click)}});return this.reportTrack("play_window.login_toast_show",n.p0.Appear),t}onDispose(){window.clearTimeout(this.trialTimer),window.clearTimeout(this.trailSwitchTimer),window.clearTimeout(this.trialLoginTimer),this.justAboveTwoMin=!0}}((t,e,i,n)=>{for(var r,o=n>1?void 0:n?l(e,i):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(n?r(e,i,o):r(o))||o);n&&o&&s(e,i,o)})([a.ZP],A.prototype,"endTrial",1)},82949:function(t,e,i){"use strict";i.d(e,{C:function(){return o}});var n=i(5489),r=i(22451);class o extends n.vq{install(){super.install(),this.dc.autoplayNotAllowed=(0,r.U5)((()=>this.rootStore.isLoaded&&this.mediaStore.state.autoplayNotAllowed),(t=>{t&&(this.toastStore.create({text:"当前浏览器已限制自动播放",duration:3500,priority:1}),this.track.e("browser_forbid_autoplay"))}),{fireImmediately:!0}),this.dc.autoplayPlanB=(0,r.U5)((()=>this.rootStore.isLoaded&&this.mediaStore.state.autoplayPlanB),(t=>{if(t){const t=this.toastStore.create({text:"已静音开播",confirmText:"点击恢复音量",manualMode:!0,duration:3500,priority:1,onConfirmClicked:()=>{this.settingStore.setMuted(!1),this.toastStore.remove(t),this.track.e("forbid_play_vol")}});this.track.e("forbid_play_mute")}}),{fireImmediately:!0})}}},71859:function(t,e,i){"use strict";i.d(e,{j:function(){return A}});var n=i(5489),r=i(22451),o=i(89262),a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=(t,e,i,n)=>{for(var r,o=n>1?void 0:n?s(e,i):e,l=t.length-1;l>=0;l--)(r=t[l])&&(o=(n?r(e,i,o):r(o))||o);return n&&o&&a(e,i,o),o};class A extends n.vq{constructor(){super(...arguments),this.tid=NaN,this.opInfo=null,this.edInfo=null,this.skippingType=0,this.displayedSkipOp=!1,this.displayedSkipEd=!1,this.needSkipOp=!0,this.needSkipEd=!0}install(){super.install(),this.uiStore.kind===n.HR.Pgc&&(this.dc.clipInfo=(0,r.U5)((()=>this.rootStore.isLoaded),(t=>{var e;if(!t)return;const i=null==(e=this.mpdStore.body)?void 0:e.clipInfoList;i&&i.length&&(this.opInfo=i.find((t=>"CLIP_TYPE_OP"===t.clipType)),this.edInfo=i.find((t=>"CLIP_TYPE_ED"===t.clipType)),this.removeEventListener(),this.addEventListener())}),{fireImmediately:!0}),this.dc.superVise=(0,r.U5)((()=>this.settingStore.state.opEd),(t=>{t||this.removeCurToast("abort")}),{fireImmediately:!0}))}addEventListener(){this.rootPlayer.on(n.p2.MEDIA_TIMEUPDATE,this.onTimeUpdate),this.rootPlayer.on(n.p2.PLAYER_BEFORE_SEEKING,this.removeCurToastBySeeking)}removeEventListener(){this.rootPlayer.off(n.p2.MEDIA_TIMEUPDATE,this.onTimeUpdate),this.rootPlayer.off(n.p2.PLAYER_BEFORE_SEEKING,this.removeCurToastBySeeking)}onTimeUpdate(){this.showToastOrSkip()}removeCurToastBySeeking(){this.removeCurToast("abort")}hasHistory(){if(!this.mpdStore.body)return!1;const{lastPlayEpid:t,lastPlayCid:e,lastPlayTime:i}=this.mpdStore.body;return!!(t||e||i)}report(){const t=1===this.skippingType?"auto-skip-op":"auto-skip-ed";this.track.e(t)}jumpTo(t,e){this.skippingType=e,this.portStore.seek(t,{origin:n.bt.Default}).then((()=>{this.log.i(`skip ${this.skippingType} success`),0!==this.skippingType&&(this.report(),this.showSkipped())})).catch((t=>{this.log.e(`skip ${this.skippingType} occurred error: ${t.message}`),this.skippingType=0}))}isInShowTimeRange(t,e){if(e){const{start:i}=e;if(t>=i-5&&t<=i)return!0}return!1}shouldSkip(t,e){const{start:i,end:n,clipType:r}=e;if("CLIP_TYPE_OP"===r&&!this.hasHistory()&&this.userStore.isLogin)return!1;const o=this.settingStore.state.playbackRate||1;return!!((t<3&&0===i||t>=i&&t<=i+.5*o&&0!==i)&&n>t)}judgeHead(){const t=this.portStore.getCurrentTime();if(this.opInfo){const{start:e,end:i}=this.opInfo;if(t>=i)return!1;const n=this.hasHistory();if(this.needSkipOp&&this.shouldSkip(t,this.opInfo))return this.removeCurToast("lifecycle"),this.jumpTo(i,1),this.track.o("start_skip_op",{start:t,end:i}),this.needSkipOp=!1,!0;if(!this.displayedSkipOp){let r="即将跳过片头",o="不跳过",a=!1,s=()=>{this.needSkipOp=!1,this.removeCurToast("abort")};if(n||!this.userStore.isLogin?a=this.isInShowTimeRange(t,this.opInfo):(a=t>=e&&t<=(i-1||i),r="首次观看为您播放片头片尾",o="仍然跳过",s=()=>{this.removeCurToast("abort"),e<=t&&i>=t&&(this.jumpTo(i,1),this.track.o("start_skip_op",{start:t,end:i}))}),a)return this.showToast(r,o,s),this.displayedSkipOp=!0,!0}}return!1}judgeTail(){const t=this.portStore.getCurrentTime();if(this.edInfo){const{end:e}=this.edInfo;if(t>=e)return!1;const i=this.portStore.getDuration()-e>1;if(this.needSkipEd&&this.shouldSkip(t,this.edInfo))return this.removeCurToast("lifecycle"),this.jumpTo(e,2),this.track.o("start_skip_ed",{start:t,end:e}),this.needSkipEd=!1,!0;if(!this.displayedSkipEd){let e="";const n="即将跳过片尾";let r=null;if(i&&(r=()=>{this.needSkipEd=!1,this.removeCurToast("abort")},e="不跳过"),this.isInShowTimeRange(t,this.edInfo))return this.showToast(n,e,r),this.displayedSkipEd=!0,!0}}return!1}showToastOrSkip(){this.kernelStore.state.srcSwitching||isNaN(this.portStore.getDuration())||!this.skippingType&&this.settingStore.getOpEd()&&(this.judgeHead()||this.judgeTail())}removeCurToast(t){isNaN(this.tid)||this.toastStore.remove(this.tid,t),this.tid=NaN}showToast(t,e,i,n){this.removeCurToast("abort"),this.tid=this.toastStore.create({duration:5e3,manualMode:!1,text:t,confirmText:e,onConfirmClicked:i,onRemoved:()=>{this.tid=NaN,n&&n()}})}showSkipped(){const t=1===this.skippingType?"已为你跳过片头":"已为你跳过片尾";this.skippingType=0,this.showToast(t)}onDispose(){this.removeCurToast("abort"),this.removeEventListener(),this.opInfo=this.edInfo=null,this.skippingType=0,this.displayedSkipOp=!1,this.displayedSkipEd=!1,this.needSkipOp=!0,this.needSkipEd=!0}}l([o.ZP],A.prototype,"onTimeUpdate",1),l([o.ZP],A.prototype,"removeCurToastBySeeking",1)},50669:function(t,e,i){"use strict";i.d(e,{l:function(){return y}});var n=i(5489),r=i(22451),o=i(43122),a=i(99550),s=i(87563),l=i.n(s),A=i(83370);const c="bpx-player-quality-animation";class h{constructor(t,e={}){var i,n,r,o,a,s,l,A,c;this.wrapper=null,
this.maskDelayTimer=null,this.isPlaying=!1,this.container=t,this.options={scene:null!=(i=e.scene)?i:"",tag:null!=(n=e.tag)?n:"4K高清",tagImg:null!=(r=e.tagImg)?r:"",maskDelay:null!=(o=e.maskDelay)?o:1.1,maskMoveTime:null!=(a=e.maskMoveTime)?a:2,textDelay:null!=(s=e.textDelay)?s:0,textFadeTime:null!=(l=e.textFadeTime)?l:1.6,textFadeInPercent:null!=(A=e.textFadeInPercent)?A:31.25,textFadeOutPercent:null!=(c=e.textFadeOutPercent)?c:68.75}}play(t){this.container&&!this.isPlaying&&(this.isPlaying=!0,this.wrapper=this.createDOM(),this.container.appendChild(this.wrapper),requestAnimationFrame((()=>{if(!this.wrapper)return;const e=this.wrapper.querySelector(`.${c}-move-wrapper`),i=this.wrapper.querySelector(`.${c}-center-tip`),n=this.wrapper.querySelector(`.${c}-left-golden-mask`),r=this.wrapper.querySelector(`.${c}-right-black-mask`);if(!e||!n)return void this.dispose();e.style.transform="translateX(-100%)",this.wrapper.classList.add(`${c}-show`),r&&r.animate([{opacity:0},{opacity:1}],{duration:500,easing:"linear"});const o=this.options.textFadeInPercent/100,a=this.options.textFadeOutPercent/100;let s=null;i&&(s=i.animate([{opacity:0,filter:"blur(20px)",offset:0},{opacity:1,filter:"blur(0px)",offset:o},{opacity:1,filter:"blur(0px)",offset:a},{opacity:0,filter:"blur(20px)",offset:1}],{duration:1e3*this.options.textFadeTime,delay:1e3*this.options.textDelay,easing:"linear"}));const l=this.options.maskDelay+this.options.maskMoveTime,A=this.options.textDelay+this.options.textFadeTime,h=!s||l>=A,d=()=>{null==t||t(),this.dispose()},u=()=>{if(!this.wrapper)return;const t=`-${n.clientWidth}px`,i=`${this.container.clientWidth}px`,r=e.animate([{transform:`translateX(${t})`},{transform:`translateX(${i})`}],{duration:1e3*this.options.maskMoveTime,easing:"cubic-bezier(0.32, 0.94, 0.6, 1)"});h&&r.addEventListener("finish",d,{once:!0})};this.maskDelayTimer=window.setTimeout((()=>{u()}),1e3*this.options.maskDelay),h||s.addEventListener("finish",d,{once:!0})})))}dispose(){var t;window.clearTimeout(this.maskDelayTimer),null==(t=this.wrapper)||t.remove(),this.wrapper=null,this.isPlaying=!1}createDOM(){const t=document.createElement("div");t.className=`${c}-wrapper`;const e=this.options.tag||"",i=this.options.tagImg||"",n=this.options.scene||"",r=e||i||n,o=i?`<img class="${c}-quality-tag-img" src="${i}" alt="">`:e?`<span class="${c}-quality-tag">${e}</span>`:"";return t.innerHTML=`\n            ${r?`<div class="${c}-center-tip">${n}${o}</div>`:""}\n            <div class="${c}-move-wrapper">\n                <div class="${c}-left-golden-mask">\n                    <img class="${c}-left-golden-mask-img" src="//s1.hdslb.com/bfs/static/player/img/4k_animation.svg" alt="">\n                </div>\n                <div class="${c}-right-black-mask"></div>\n            </div>\n        `,t}}const d="HDR 10",u="HDR VIVID",p="Dolby Vision",g="SDR增强",f="AI修复",m="大视界 ";class y extends n.vq{constructor(){super(...arguments),this.tid=null,this.nowA=null,this.newA=null,this.nowQ=null,this.newQ=null,this.hasPlayedAnimation=!1}install(){super.install(),this.dc.switchQuality=(0,r.U5)((()=>this.rootStore.isLoaded&&this.qualityStore.isSwitching),(t=>{const e=this.qualityStore.state,i=t=>null!=t&&!isNaN(t);t?e.nowQuality!==e.newQuality?(this.nowQ=e.nowQuality,this.newQ=e.newQuality,this.startingV()):e.nowAudio!==e.newAudio&&(this.nowA=e.nowAudio,this.newA=e.newAudio,this.startingA()):(i(this.nowQ)?this.finishedV(e.nowQuality===this.nowQ):i(this.nowA)&&this.finishedA(e.nowAudio===this.nowA),this.nowQ=this.newQ=null,this.nowA=this.newA=null)}))}clearToast(){this.tid&&(this.toastStore.remove(this.tid),this.tid=null)}setToast(t){this.clearToast(),this.tid=this.toastStore.create(t)}startingV(){if(!this.qualityStore.state.isTrialQuality&&this.qualityStore.state.isTrialSwitch)return;if(0===this.newQ)return void this.finishedV(null,"自动");const t=this.getVText(this.newQ),e=this.qualityStore.state.banQualityToast,i=this.qualityStore.state.banQnTimePeriodToast,r=this.qualityStore.state.banFinalQnTimePeriodToast;o.nJ.isSuperQuality(this.newQ)&&i||r||t&&!e&&(this.uiStore.kind===n.HR.Pgc?this.setToast({text:"切换中，请稍候",duration:2e3}):this.setToast({text:`正在为您切换到${t}，请稍候...`,duration:2e3}))}finishedV(t,e){var i,r,s,c,h;if(t)this.setToast({text:"切换失败",duration:2e3});else{const t=this.qualityStore.state.nowQuality,y=e||this.getVText(t),b=this.qualityStore.state.isTrialQuality,v=this.qualityStore.state.oldQuality,E=this.qualityStore.state.banQnTimePeriodToast,I=(this.qualityStore.state.vipQnTrialStatus,this.qualityStore.state.banFinalQnTimePeriodToast),C=this.toastStore.getFirstSponsorToast();if((null==(i=null==C?void 0:C.toast)?void 0:i.success_toast)&&t===C.qn){const t=(null==(r=C.toast.success_toast.toast_text)?void 0:r.text)||"",e=null==(s=C.toast.success_toast.toast_text)?void 0:s.text_color,i=e?(0,a.t)(`<span style="color:${e}">${t}</span>`):t,n=()=>this.toastStore.create({text:i,duration:2e3});if(this.playQualityNamingAnimationIfNeeded(n))return}if(o.nJ.isSuperQuality(this.newQ)&&E)return void this.toastStore.create({text:"已免费开启大会员清晰度",duration:3e3});if(I)return void this.qualityStore.setState({banFinalQnTimePeriodToast:!1});if(!b&&this.qualityStore.state.isTrialSwitch||isNaN(v))return;if(y){const e=this.uiStore.kind===n.HR.Ugc?o.nJ.gt.ugcLogin:o.nJ.gt.login;if(b&&t>e)this.toastStore.create({duration:3e3,text:`已切换至${y}，试用中`});else{if(this.shouldShowHouseholdBroadbandToast(t))return this.showHouseholdBroadbandToast(t),this.track.o("household_broadband_toast_show",{quality:t}),void this.trackStore.polarReport("family-vip-use.toast",n.Rr.show,{vip_type:this.userStore.info.vipType,vip_status:this.userStore.info.vipStatus,benefit_type:1});if(t===o.nJ.alias.AI_100)if(this.userStore.isSuperUser){const t=`\n                                <div class="${this.ppx}-ai-prompt-toast">\n                                    ${l()}<span>成功切换至智能修复(大会员专享)</span>\n                                </div>\n                            `,e=(0,a.t)(t);this.setToast({text:e,duration:2e3})}else this.trackStore.polarReport("aiqn-free-toast.start",n.Rr.show,{play_qn:o.nJ.alias.AI_100}),this.setToast({text:"已开启智能修复高清体验",duration:2e3});else if(this.qualityStore.needVipVisionPanel&&this.qualityStore.filteredVipVisionPanel.find((e=>e.quality===t))){const e=this.qualityStore.filteredVipVisionPanel.find((e=>e.quality===t));let i=m;const r=null==(c=null==e?void 0:e.formatTag)?void 0:c.hdrTag;if(r)switch(r){case A.H$.HDR10:i+=d;break;case A.H$.HDR_VIVID:i+=u;break;case A.H$.HDR_Dolby:i+=p;break;case A.H$.SDR_ENHANCED:i+=g;break;case A.H$.AI_ENHANCED:i+=f}else{(null==(h=null==e?void 0:e.formatTag)?void 0:h.frameTag)&&(i+=`${e.title} `)}const o=`\n                                <div class="${this.ppx}-ctrl-vip-vision-quality-toast">\n                                    <span class="${this.cpx}-svg-icon">${l()}</span><span>成功切换至${i} (大会员专享)</span>\n                                </div>\n                            `,s=(0,a.t)(o);this.setToast({text:s,duration:2e3}),this.trackStore.polarReport("vipvision-toast.0",n.Rr.show,{play_qn:t})}else this.setToast({text:`已经切换至${y}画质`,duration:2e3})}}}}startingA(){const t=this.newA===n.IL.Dolby||this.newA===n.IL.Flac,e=this.getAText(),i=t?"开启":"关闭";e&&this.setToast({text:`${e+i}中，请稍候`,duration:2e3})}finishedA(t){const e=this.newA===n.IL.Dolby||this.newA===n.IL.Flac,i=this.getAText(),r=e?"开启":"关闭";if(i){const e=i+(t?`${r}失败`:`已${r}`);this.setToast({text:e,duration:2e3})}}shouldShowHouseholdBroadbandToast(t){const e=this.qualityStore.getQualitySupportFormatItem(t);if((null==e?void 0:e.canWatchQnReason)!==A.C$.CICC_HOME_NETWORK)return!1;const i=t||this.qualityStore.realQ;this.qualityStore.reportHouseholdBroadbandInfo(i);const n=new Date,r=this.localStore.get().householdBroadToastShowDate||0,o=new Date(r);return s=n,((a=o).getFullYear()!==s.getFullYear()||a.getMonth()!==s.getMonth()||a.getDate()!==s.getDate())&&(this.localStore.set({householdBroadToastShowDate:n.getTime()}),!0);var a,s}showHouseholdBroadbandToast(t){const e=`\n            <div class="${this.ppx}-ctrl-vip-vision-quality-toast">\n                ${l()}<span>家庭宽带会员权益生效中，畅享会员清晰度</span>\n            </div>\n        `,i=(0,a.t)(e)
;this.setToast({text:i,duration:3e3})}getVText(t){var e;try{if(null==(e=this.mpdStore.body)?void 0:e.supportFormats)for(const e of this.mpdStore.body.supportFormats)if(t&&t===e.quality)return e.newDescription;const i=o.nJ.item(t);if(i)return i.name}catch(t){return null}return null}getAText(){const t=(0,n.rs)(this.mpdStore.body.mediaDataSource),e=this.newA===n.IL.Dolby||this.nowA===n.IL.Dolby,i=this.newA===n.IL.Flac||this.nowA===n.IL.Flac;return e&&t.hasDolbyAudioSrc?t.dolbyName:i&&t.hasFlacAudioSrc?t.flacName:void 0}playQualityNamingAnimationIfNeeded(t){var e,i,n;if(this.hasPlayedAnimation)return!1;const r=this.toastStore.getFirstSponsorToast();return!!(null==(e=null==r?void 0:r.toast)?void 0:e.cutscene)&&(this.hasPlayedAnimation=!0,null==(i=this.qualityAnimation)||i.dispose(),this.qualityAnimation=new h(this.nodes.videoArea,{scene:r.toast.cutscene.cutscene||"",tagImg:r.toast.cutscene.img}),null==(n=this.qualityAnimation)||n.play(t),!0)}onDispose(){var t;super.onDispose(),this.nowQ=this.newQ=null,this.nowA=this.newA=null,this.hasPlayedAnimation=!1,null==(t=this.qualityAnimation)||t.dispose(),this.qualityAnimation=null}}},653:function(t,e,i){"use strict";function n(t,e){return t.stime-e.stime}i.d(e,{n:function(){return r},w:function(){return n}});class r extends Array{constructor(){super(),Object.setPrototypeOf(this,r.prototype),this.length=0}bsearch(t,e){if(0===this.length)return 0;if(e(t,this[0])<0)return 0;if(e(t,this[this.length-1])>=0)return this.length;let i,n=0,r=this.length-1,o=0;for(;n<=r;){if(i=Math.floor((n+r+1)/2),o++,e(t,this[i-1])>=0&&e(t,this[i])<0)return i;if(e(t,this[i-1])<0?r=i-1:e(t,this[i])>=0?n=i:window.console.error("Catch an ERROR"),o>1e3){window.console.error("1000");break}}return-1}binsert(t,e){let i=this.bsearch(t,e);return this.splice(i,0,t),i}cinsert(t,e){var i,n;let r=this.bsearch(t,e);return(null==(i=this[r-1])?void 0:i.stime)===t.stime?this[r-1]=t:(null==(n=this[r])?void 0:n.stime)===t.stime?this[r]=t:this.splice(r,0,t),r}bremove(t){for(let e=0;e<this.length;e++)if(this[e]===t)return void this.splice(e,1)}}},30905:function(t,e,i){"use strict";i.d(e,{T:function(){return n}});class n{static copy(t,e={container:document.body}){let i="";if("string"==typeof t){const r=n.createFakeElement(t);e.container.appendChild(r),i=n.select(r),n.command("copy"),r.remove()}else i=n.select(t),n.command("copy");return i}static command(t){try{return document.execCommand(t)}catch(t){return!1}}static createFakeElement(t){const e=document.createElement("textarea");e.style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style.pointerEvents="none",e.style.opacity="0";let i=window.pageYOffset||document.documentElement.scrollTop;return e.style.top=`${i}px`,e.setAttribute("readonly",""),e.value=t,e}static select(t){let e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){const i=t.hasAttribute("readonly");i||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),i||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();const i=window.getSelection(),n=document.createRange();n.selectNodeContents(t),i.removeAllRanges(),i.addRange(n),e=i.toString()}return e}}},80388:function(t,e,i){"use strict";i.d(e,{Z:function(){return a}});var n=i(51125),r=i.n(n),o=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));class a{constructor(t,e,i){this.fawkesConfigURL="//i0.hdslb.com/bfs/fawkes/config",this.configVersion=t,this.env=e||"prod",this.url=`${this.fawkesConfigURL}/${this.env}/web_main_${t}.zip`,this.localStorageConfigPrefix=i,this.getLocalConfig()}getConfig(t){return new Promise((e=>o(this,null,(function*(){let i;if(this.config||(yield this.loadConfig()),i=this.config,t)e(this.atob(this.config[t]));else if(this.config){let t={};for(let e in this.config)t[e]=this.atob(this.config[e]);e(t)}else e(null)}))))}loadConfig(){return this.pendingPromise||(this.pendingPromise=this.getZipData(this.url).then((t=>o(this,null,(function*(){yield this.getZipData(t,!0).then((t=>o(this,null,(function*(){this.config=t,this.pendingPromise=void 0})))).catch((t=>o(this,null,(function*(){this.pendingPromise=void 0}))))})))).catch((t=>o(this,null,(function*(){this.pendingPromise=void 0}))))),this.pendingPromise}atob(t){try{return window.atob(t)}catch(t){return null}}getZipData(t,e){return new Promise(((i,n)=>{const o=/\/([a-zA-Z0-9_]*?)\.zip/.exec(t),a=o?o[1]:"";if(a){const o=new XMLHttpRequest;o.addEventListener("load",(()=>{const t=new(r());t.loadAsync(o.response).then((r=>{try{t.file(r.files[a].name).async("text").then((t=>{var r,o,s;if(e){try{for(let t in localStorage)localStorage.getItem(t)&&RegExp(String.raw`^${this.localStorageConfigPrefix}_`).test(t)&&localStorage.removeItem(t);(null==localStorage?void 0:localStorage.setItem)&&(null==localStorage||localStorage.setItem(this.getConfigKey(),t))}catch(t){}i(JSON.parse(t))}else{const e=null==(s=null==(o=null==(r=JSON.parse(t))?void 0:r.version)?void 0:o.default)?void 0:s.u;e?i(e):n(`can't find zip in ${a}`)}}))}catch(t){n(`load zip ${a} error`)}})).catch((t=>{n(`parse zip ${a} error`)}))}),!1),o.addEventListener("error",onerror,!1),o.open("GET",t),o.responseType="arraybuffer",o.send()}}))}getLocalConfig(){try{const t=null==localStorage?void 0:localStorage.getItem(this.getConfigKey());t&&(this.config=JSON.parse(t))}catch(t){}}getConfigKey(){return`${this.localStorageConfigPrefix}_${this.env}_${this.configVersion}`}}},5506:function(t,e,i){"use strict";i.d(e,{X:function(){return r},f:function(){return n}});const n={0:"举报已提交","-1":"举报失败，请先激活账号。","-2":"举报失败，系统拒绝受理您的举报请求。","-3":"举报失败，您已经被禁言。","-4":"您的操作过于频繁，请稍后再试。","-5":"您已经举报过这条弹幕了。","-6":"举报失败，系统错误。"},r=[{name:"违法违禁",value:"1"},{name:"色情低俗",value:"2"},{name:"恶意刷屏",value:"9"},{name:"赌博诈骗",value:"3"},{name:"人身攻击",value:"4"},{name:"侵犯隐私",value:"5"},{name:"垃圾广告",value:"6"},{name:"视频无关",value:"10"},{name:"引战",value:"7"},{name:"剧透",value:"8"},{name:"青少年不良信息",value:"12"},{name:"其它",value:"11"},{name:"违法信息外链",value:"13"}]},10379:function(t,e,i){"use strict";i.d(e,{V:function(){return A}});var n=i(99550),r=Object.defineProperty,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class A{constructor(t,e,i){this.container=t,this.triggerBtn=e,this.disabledStatus=!1,this.options=((t,e)=>{for(var i in e||(e={}))a.call(e,i)&&l(t,i,e[i]);if(o)for(var i of o(e))s.call(e,i)&&l(t,i,e[i]);return t})({theme:"black"},i),this.ppx=i.ppx,this.init()}init(){var t;try{this.window=window.parent&&window.parent.document?window.parent:window}catch(t){this.window=window}this.clear(),this.templete=this.container.querySelector(`.${this.ppx}-contextmenu`),this.templete||(this.container.appendChild((0,n.t)(this.tpl())),this.templete=this.container.querySelector(`.${this.ppx}-contextmenu`)),(null==(t=this.options.list)?void 0:t.length)&&this.concat(this.options.list),this.bindEvents()}bindEvents(){this.containerCT=t=>{var e,i;if(!this.disabledStatus){t.preventDefault(),t.stopPropagation();const n=t.target,r=t.clientX-1,o=t.clientY-1;let a="";this.outList=null;const s=null==(i=(e=this.options).onChange)?void 0:i.call(e,r,o,n);s&&(this.outList=s,a=s.html),this.show(a,r,o)}},this.tplClick=t=>{var e,i;if(t.stopPropagation(),2===t.button)return;const n=t.target,r=n.dataset.id;"function"==typeof(null==(e=this.outList)?void 0:e.click)?this.outList.click(n):"function"==typeof(null==(i=this.menuList[r])?void 0:i.click)&&this.menuList[r].click(r),setTimeout((()=>{this.hide()}),100)},this.windowClick=t=>!!this.templete.contains(t.target)||(2===t.button||void(this.showed&&(this.hide(),t.stopPropagation()))),this.windowCT=t=>{if(this.templete.contains(t.target))return!0;this.showed&&(this.hide(),t.stopPropagation())},this.windowKeydown=t=>{27===t.keyCode&&this.hide()},this.window.addEventListener("click",this.windowClick,!0),
this.window.addEventListener("contextmenu",this.windowCT,!0),this.window.addEventListener("keydown",this.windowKeydown),this.window!==window&&(window.addEventListener("click",this.windowClick,!0),window.addEventListener("contextmenu",this.windowCT,!0),window.addEventListener("keydown",this.windowKeydown)),this.triggerBtn.addEventListener("contextmenu",this.containerCT),this.templete.addEventListener("mousedown",this.tplClick)}unBindEvents(){this.window.removeEventListener("click",this.windowClick,!0),this.window.removeEventListener("contextmenu",this.windowCT,!0),this.window.removeEventListener("keydown",this.windowKeydown),this.window!==window&&(window.removeEventListener("click",this.windowClick,!0),window.removeEventListener("contextmenu",this.windowCT,!0),window.removeEventListener("keydown",this.windowKeydown)),this.triggerBtn.removeEventListener("contextmenu",this.containerCT),this.templete.removeEventListener("mousedown",this.tplClick)}setPosition(t,e){const i=document.body.clientWidth,n=document.body.clientHeight,r=document.documentElement.scrollTop||document.body.scrollTop||0,o=document.documentElement.scrollLeft||document.body.scrollLeft||0,a=this.container.getBoundingClientRect(),s=this.templete.getBoundingClientRect();t+s.width+7>i+o&&(t=i-s.width-7+o),e+s.height+7>n+r&&(e=n-s.height-7+r),t-=a.left,e-=a.top,this.templete.style.cssText=`top:${e}px;left:${t}px;`}show(t,e=0,i=0){if(this.showed)return;this.showed=!0;let n=t||"";if(!n){let t;for(let e=0;e<this.dataList.length;e++)t=this.dataList[e],n+=this.menuList[t].html}n?(this.templete.innerHTML=n,this.setPosition(e,i),this.templete.classList.add(`${this.ppx}-active`)):this.showed=!1}hide(){this.showed&&(this.showed=!1,this.templete.classList.remove(`${this.ppx}-active`))}clear(){this.dataList=[],this.menuList={}}showFromOut(t,e=0,i=0){this.outList=t,this.show(t.html,e,i)}push(t){this.concat(t)}prepend(t){this.concat(t,!1)}dispose(){this.unBindEvents()}tpl(){return`<ul class="${this.ppx}-contextmenu ${this.ppx}-${this.options.theme}"></ul>`}concat(t,e=!0){let i;for(let n=0;n<t.length;n++)i=t[n],this.menuList[i.id]||(this.menuList[i.id]={html:`<li class="${i.disabled?`${this.ppx}-disabled`:""}" data-id="${i.id}">${i.html}</li>`,click:i.click},e?this.dataList.push(i.id):this.dataList.unshift(i.id))}}},68918:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(5489);const r=(t,e)=>{var i,r;if(t)if(e)try{(null==(r=null==(i=e.rootStore)?void 0:i.configStore)?void 0:r.isChannel(n.u5.PC_APP))?null==e||e.emit(n.tw.Player_Virtual_Action,new CustomEvent(n.tw.Player_Virtual_Action,{detail:{kind:n.s.OpenUrl,data:t}})):window.open(t)}catch(e){window.open(t)}else window.open(t)}},92115:function(t,e,i){"use strict";i.d(e,{T:function(){return r}});const n=class{static initEvents(){n.flag||(n.flag=!0,window.addEventListener("click",n.windowClick,!0))}static addEvents(t){n.cbList.push(t)}static windowClick(t){n.cbList.forEach((e=>e(t)))}static reset(){n.cbList.length=0,n.flag=!1}};let r=n;r.cbList=[]},5169:function(t,e,i){"use strict";i.d(e,{y:function(){return u}});var n=i(5506),r=i(99550),o=i(46330),a=i(23529),s=Object.defineProperty,l=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,h=(t,e,i)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;const d=class{constructor(t,e,i){this.container=t,this.ui=e,this.info={dmid:"",reason:0,block:!1},this.options=((t,e)=>{for(var i in e||(e={}))A.call(e,i)&&h(t,i,e[i]);if(l)for(var i of l(e))c.call(e,i)&&h(t,i,e[i]);return t})({theme:"black"},i),this.domEle=i.domEle,this.ppx=i.ppx,this.init()}get wrap(){return this.template.wrap}init(){this.container.appendChild((0,r.t)(this.createTpl()));const t=this.ppx;return this.template={close:this.container.querySelector(`.${t}-report-close`),wrap:this.container.querySelector(`.${t}-report-wrap`),success:this.container.querySelector(`.${t}-report-success`),content:this.container.querySelector(`.${t}-report-content`),list:this.container.querySelector(`.${t}-report-list`),reason:this.container.querySelector(`.${t}-report-reason`),block:this.container.querySelector(`.${t}-report-block`),btn:this.container.querySelector(`.${t}-report-btn`)},this.template.close.addEventListener("click",(()=>{this.hide()})),this.radio=new this.ui.Radio(this.template.list,{style:"normal",columnCount:3,labels:n.X}),this.radio.on("change",(t=>{this.submit.disabled=!1,this.info.reason=+t.value,11===this.info.reason?(0,o.o)(this.template.reason):((0,a.N)(this.template.reason),delete this.info.content)})),this.checkbox=new this.ui.Checkbox(this.template.block,{name:"同时屏蔽该用户及视频内相同弹幕",value:this.info.block}),this.checkbox.on("change",(t=>{t.manual&&(this.info.block=t.value,this.options.checkbox(t.value))})),this.submit=new this.ui.Button(this.template.btn,{type:"blue",disabled:!0}),this.submit.disabled=!0,this.submit.on("click",(()=>{11===this.info.reason&&(this.info.content=this.template.reason.value),this.options.submit(this.info,this.uhash).then((t=>{0!==t&&-5!==t||d.reported.push(this.info.dmid),this.hide()}))})),this}update(t,e,i,n){return this.uhash=t.uhash,this.info={dmid:t.dmid,reason:0,block:e},i&&(this.info.originCid=i),this.checkbox.value(e),this.submit.disabled=!0,this.template.content.textContent=t.text,this.template.content.setAttribute("title",t.text),this.domEle=n,this}show(){return this.radio.reset(),(0,o.o)(this.template.wrap),this}hide(){var t,e;return(0,a.N)(this.template.wrap),null==(e=(t=this.options).hide)||e.call(t),this}createTpl(){const t=this.ppx;return`<div class="${t}-report-wrap${` ${t}-${this.options.theme}`}">\n                <div class="${t}-report-box">\n                    <div class="${t}-report-title">举报弹幕<span class="${t}-report-close">${this.options.close}</span></div>\n                    <div class="${t}-report-content">举报文字</div>\n                    <input type="hidden" class="${t}-report-id" value="" />\n                    <input type="hidden" class="${t}-report-dmid" value="" />\n                    <div class="${t}-report-list"></div>\n                    <textarea maxlength="100" style="display:none;" class="${t}-report-reason" placeholder="请输入详细的理由"></textarea>\n                    <div class="${t}-report-block"></div>\n                    <div class="${t}-report-bottom">\n                        <div class="${t}-report-btn">确定</div>\n                    </div>\n                </div>\n            </div>`}dispose(){d.reported=[]}};let u=d;u.reported=[]},61072:function(t,e,i){"use strict";i.d(e,{P:function(){return s}});var n=i(99550),r=i(23529),o=i(46330);const a=class{constructor(t,e){this.container=t,this.config=e,this.container.appendChild((0,n.t)(this.createTpl())),this.template={wrap:this.container.querySelector(`.${this.config.ppx}-report-wrap`),iframe:this.container.querySelector(`.${this.config.ppx}-report-iframe`)},this.domEle=e.domEle,this.boundMessageHandler=this.messageHandler.bind(this)}get wrap(){return this.template.wrap}createTpl(){const t=this.config.ppx,e={aid:this.config.aid,cid:this.config.cid,dmcontent:this.config.dmcontent,dmid:this.config.dmid,from_spmid:this.config.from_spmid,scene:this.config.scene},i=encodeURIComponent(JSON.stringify(e));return`<div class="${t}-report-wrap">\n                <iframe class="${t}-report-iframe ${"normal"===this.config.scene&&`${t}-report-iframe-shadow`}"\n                src="https://www.bilibili.com/york/danmakureport/?report_cfg=${i}"\n                width="308"\n                height="388"\n                frameborder="0"\n                ></iframe>\n            </div>`}messageHandler(t){var e,i;if(-1===t.origin.indexOf("www.bilibili.com")||this.template.iframe.contentWindow!==t.source)return;const n=t.data;"close"===n.action?(this.hide(),this.destroyIframe()):"submit"===n.action?(this.hide(),this.destroyIframe(),console.log("ReportV2: submit recall",n),null==(i=(e=this.config).submit)||i.call(e,n)):console.warn("ReportV2: Unknown action",n.action)}hide(){var t,e;return window.removeEventListener("message",this.boundMessageHandler),(0,r.N)(this.template.wrap),null==(e=(t=this.config).hide)||e.call(t),this}show(){
return window.addEventListener("message",this.boundMessageHandler),(0,o.o)(this.template.wrap),this}destroyIframe(){this.template.iframe&&(this.template.iframe.remove(),this.template.iframe=null),this.template.wrap.remove(),this.template=null}dispose(){a.reported=[]}};let s=a;s.reported=[]},23173:function(t,e,i){"use strict";i.d(e,{A:function(){return r},Q:function(){return o}});var n=i(5489),r=(t=>(t.Handoff_Auto="0",t.Un_Named="others",t.Player_Loop="player_loop",t.Player_Ctrl_Next="player_next",t.Player_Ctrl_Prev="player_prev",t.Player_Ctrl_Eplist="player_selection",t.Player_End_Reload="player_end_reload",t.Player_End_Replay="player_end_replay",t.Player_End_Recommend="player_end_recommend",t.Player_End_Recommend_AutoPlay="player_end_recommend_autoplay",t.Media_Session_Nexttrack="media_session_nexttrack",t.Media_Session_Previoustrack="media_session_previoustrack",t))(r||{});class o{static get spmPrefix(){const t=document.querySelector('meta[name="spm_prefix"]');return t&&t.content?t.content:""}static get callPlayMapping(){return{[n.Dg.UGCSinglePart]:"video",[n.Dg.UGCMultiPart]:"segment_within_video",[n.Dg.UGCSeasonPart]:"drama_within_video",[n.Dg.PlaylistPart]:"playlist_within_video",[n.Dg.ActivityPart]:"activity_within_video"}}static get recommendPlayMapping(){return{[n.Dg.UGCSinglePart]:"video",[n.Dg.UGCMultiPart]:"segment_video",[n.Dg.UGCSeasonPart]:"drama_video",[n.Dg.PlaylistPart]:"playlist_video",[n.Dg.ActivityPart]:"activity_video"}}static stringify(t,e=!1){return null!=(t=Object.assign({},{prefix:o.spmPrefix},t)).type&&t.prefix?e?[t.prefix,o.recommendPlayMapping[t.type],t.action].join("."):[t.prefix,o.callPlayMapping[t.type],t.action].join("."):null}}},75135:function(t,e,i){"use strict";i.d(e,{$:function(){return c}});var n=i(57012),r=i(25360),o=i.n(r),a=i(99550),s=i(46330),l=i(23529),A=i(38785);class c{constructor(t,e){this.issueParams={cid:null,aid:null,to:null,from:null,subtitle_id:null,subtitle_type:null,content:"",tag_id:null,reason:null,row_id:null,description:null},this.tagIdArray=[],this.reasonArray=[],this.container=t,this.config=e,this.resetCheckbox=()=>{}}get RADIOLABELS(){return[{name:"翻译错误",value:"1"},{name:"字幕不同步",value:"2"},{name:"违法违禁",value:"3"},{name:"视频无关",value:"4"},{name:"其它",value:"5"}]}get CHECKBOXLABELS(){return[{name:"字幕不同步",value:"0"},{name:"字幕错字",value:"0"},{name:"单条字幕过长",value:"0"},{name:"单条字幕过短",value:"0"},{name:"数字展现效果不好",value:"0"},{name:"违法违禁",value:"3"},{name:"低俗色情",value:"6"},{name:"赌博诈骗",value:"7"},{name:"血腥暴力",value:"8"},{name:"青少年不良信息",value:"9"}]}createTemplate(){const t=this.config.ppx,e=`\n            <div class="${t}-subtitle-issue-panel">\n                <div class="${t}-subtitle-issue-panel-header"><span class="${t}-subtitle-issue-panel-title">字幕问题反馈</span><span class="${t}-subtitle-issue-panel-close">${o()}</span></div>\n                <div class="${t}-subtitle-issue-panel-content"></div>\n                <div class="${t}-subtitle-issue-panel-radios"></div>\n                <textarea maxlength="100" class="${t}-subtitle-issue-panel-textarea" placeholder="请输入详细的理由" style="display: none;"></textarea>\n                <div class="${t}-subtitle-issue-panel-checkboxs"></div>\n                <div class="${t}-subtitle-issue-panel-airecovery">\n                    <div class="${t}-subtitle-issue-panel-airecovery-title">字幕纠错</div>\n                    <input type="text" class="${t}-subtitle-issue-panel-airecovery-text" placeholder="您也可以输入正确的字幕，让它更准确" value="" />\n                </div>\n                <div class="${t}-subtitle-issue-panel-bottom">\n                    <div class="${t}-subtitle-issue-panel-submit">确定</div>\n                </div>\n            </div>\n        `,i=(0,a.t)(e),r=i.querySelector(`.${t}-subtitle-issue-panel-title`),A=i.querySelector(`.${t}-subtitle-issue-panel-close`),c=i.querySelector(`.${t}-subtitle-issue-panel-content`),h=i.querySelector(`.${t}-subtitle-issue-panel-radios`),d=i.querySelector(`.${t}-subtitle-issue-panel-textarea`),u=i.querySelector(`.${t}-subtitle-issue-panel-checkboxs`),p=i.querySelector(`.${t}-subtitle-issue-panel-airecovery`),g=i.querySelector(`.${t}-subtitle-issue-panel-airecovery-text`),f=i.querySelector(`.${t}-subtitle-issue-panel-submit`);this.submitButton=new n.zx(f,{type:"blue",disabled:!0}).on("click",(()=>{this.issueParams.tag_id&&this.issueParams.content&&this.config.submit(this.issueParams)})),this.radio=new n.Y8(h,{labels:this.RADIOLABELS}).on("change",(t=>{this.setIssueParams({tag_id:t.value});const e=this.RADIOLABELS.findIndex((e=>e.value===t.value));-1!==e&&this.setIssueParams({reason:this.RADIOLABELS[e].name}),"5"===t.value?(0,s.o)(d):(0,l.N)(d)}));const m=[];return this.CHECKBOXLABELS.forEach((e=>{const i=(0,a.t)(`<div class="${t}-subtitle-issue-panel-checkboxs-item"></div>`),r=new n.XZ(i,{name:e.name,dark:!0});r.on("change",(t=>{const i=this.reasonArray.findIndex((t=>t===e.name));t.value&&-1===i?(this.tagIdArray.push(+e.value),this.reasonArray.push(e.name)):-1!==i&&(this.tagIdArray.splice(i,1),this.reasonArray.splice(i,1)),this.setIssueParams({tag_id:this.tagIdArray.join(","),reason:this.reasonArray.join(",")})})),m.push(r),u.appendChild(i)})),this.resetCheckbox=()=>{m.forEach((t=>{t.value(!1)}))},g.addEventListener("input",(()=>{this.tagIdArray.length||(g.value&&g.value.length>0?this.setIssueParams({tag_id:"0"}):this.setIssueParams({tag_id:null})),this.setIssueParams({description:g.value})})),d.addEventListener("input",(()=>{this.setIssueParams({description:d.value})})),{panel:i,title:r,close:A,content:c,radios:h,textarea:d,checkboxs:u,aiRecovery:p,input:g}}setIssueParams(t){if((0,A.Z)(this.issueParams)&&(0,A.Z)(t))for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.prototype.hasOwnProperty.call(this.issueParams,e)&&this.issueParams[e]!==t[e]&&(this.issueParams[e]=t[e]);this.submitButton&&(this.issueParams.tag_id?this.submitButton.disabled=!1:this.submitButton.disabled=!0)}show(t){if(t)switch(this.setIssueParams(t),this.templateNodes||(this.templateNodes=this.createTemplate(),this.container.appendChild(this.templateNodes.panel),this.templateNodes.close.addEventListener("click",(()=>{this.config.close()}))),this.templateNodes.content.innerHTML=this.issueParams.content,+this.issueParams.subtitle_type){case 0:this.templateNodes.title.innerHTML="字幕问题反馈",(0,l.N)(this.templateNodes.checkboxs,this.templateNodes.aiRecovery),(0,s.o)(this.templateNodes.radios,this.templateNodes.panel);break;case 1:this.templateNodes.title.innerHTML="AI字幕问题反馈",(0,l.N)(this.templateNodes.radios),(0,s.o)(this.templateNodes.checkboxs,this.templateNodes.aiRecovery,this.templateNodes.panel)}}hide(){this.templateNodes&&(this.tagIdArray=[],this.reasonArray=[],this.radio.value(0),this.resetCheckbox(),this.submitButton.disabled=!0,this.templateNodes.input.value="",this.templateNodes.textarea.value="",this.setIssueParams({to:null,from:null,subtitle_id:null,subtitle_type:null,content:"",tag_id:null,reason:null,row_id:null,description:null}),(0,l.N)(this.templateNodes.panel,this.templateNodes.textarea))}dispose(){var t,e;this.hide(),(null==(e=null==(t=this.templateNodes)?void 0:t.panel)?void 0:e.parentElement)&&(this.templateNodes.panel.parentElement.removeChild(this.templateNodes.panel),this.templateNodes=null)}}},68748:function(t,e,i){"use strict";i.d(e,{Ri:function(){return s},qo:function(){return a}});var n=i(51125),r=i.n(n);const o={};function a(t){let e=t.replace("http://","//");return e=e.replace("https://","//"),0!==e.indexOf("//")&&(e="//"+e),o[e]=o[e]||function(t){return new Promise(((e,i)=>{const n=[2e3,3e3];let r=0,o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="arraybuffer",o.onload=()=>{e(o.response)},o.onerror=e=>{n[r]?setTimeout((()=>{o.open("GET",t,!0),o.send()}),n[r++]):i(e)},o.send()}))}(e),o[e]}function s(t){return(new(r())).loadAsync(t).then((t=>{const e=[];for(let i in t.files)if(!t.files[i].dir){const n=t.files[i].name;if(/^__MACOSX/.test(n))continue;if(/\.(png|jpg|jpeg|gif)$/.test(n)){const i=t.file(n).async("base64").then((t=>{const e=n.split("/");let i=e.pop().split(".");const r=i[0],o=i[1];return{folder:e.pop(),name:r,content:`data:image/${o};base64,${t}`}}));e.push(i)}else if(/\.(json)$/.test(n)){
const i=t.file(n).async("string").then((t=>{const e=n.split("/");let i=e.pop().split(".");const r=i[0];i[1];return{folder:e.pop(),name:r,content:JSON.parse(t)}}));e.push(i)}else if(/\.(ttf)$/.test(n)){const i=t.file(n).async("arraybuffer").then((t=>{const e=n.split("/");let i=e.pop().split(".");const r=i[0];i[1];return{folder:e.pop(),name:r,content:t}}));e.push(i)}}return e})).then((t=>Promise.all(t).then((t=>{const e={};return t.forEach((t=>{t.folder?(e[t.folder]=e[t.folder]||{length:0},e[t.folder][t.name]=t.content,e[t.folder].length+=1):e[t.name]=t.content})),e}))))}},78333:function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,a=void 0,a=function(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===r(a)?a:String(a)),n)}var o,a}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,a=!0,s=function(){return a&&(a="undefined"==typeof window),a},l=function(){var t,e,i,n;if(s())return!1;if(void 0!==o)return o;try{if("undefined"!=typeof navigator&&/Firefox\/(\d+)/i.test(navigator.userAgent))return o=Number((null===(t=navigator.userAgent.match(/Firefox\/(\d+)/i))||void 0===t?void 0:t[1])||"0")>=65;var r=document.createElement("canvas");o=!!(null===(e=r.getContext)||void 0===e?void 0:e.call(r,"2d"))&&0===(null===(n=null===(i=r.toDataURL)||void 0===i?void 0:i.call(r,"image/webp"))||void 0===n?void 0:n.indexOf("data:image/webp"))}catch(t){o=!1}return o};s()||window.IntersectionObserver;var A=function(t){return"number"==typeof t&&(0|t)===t},c=/\.(jpeg|jpg|png|webp|gif|avif)$/,h=function(t){return!(e=t,!/\/bfs\//.test(e)||!function(t){var e;return(null===(e=t.match(c))||void 0===e?void 0:e[0])||null}(t));var e},d=function(t){return"number"!=typeof t||isNaN(t)?0:Math.floor(t)||0},u=function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{c:!0};if(!t||"string"!=typeof t)return"";if(!h(t))return t;if(t.indexOf("@")>-1){if(i.cache)return t;t=t.split("@")[0]}t=t.replace("pre-","");var n=i.dpr||(s()?2:Math.floor(null!==(e=null===window||void 0===window?void 0:window.devicePixelRatio)&&void 0!==e?e:2)||1),r=[];i.w&&A(i.w)&&r.push("".concat(Math.floor(i.w*n),"w")),i.h&&A(i.h)&&r.push("".concat(Math.floor(i.h*n),"h")),i.e&&r.push("".concat(i.e,"e")),i.c&&r.push("1c"),i.a&&r.push("".concat([d(i.a.x),d(i.a.y),d(i.a.w)*n,d(i.a.h)*n].join("-"),"a")),i.p&&A(i.p)&&r.push("".concat(i.p,"p")),i.s&&r.push("1s"),i.q&&A(i.q)&&r.push("".concat(i.q,"q")),i.style&&r.push("!".concat(i.style));var o,a="";return i.ext&&["webp","avif"].includes(i.ext)&&(a=i.ext),0!==r.length||a?"".concat((o=t,o?o.replace(/^http(s)?:/,""):""),"@").concat(r.join("_")).concat(a?".".concat(a):""):t};function p(t){return(p="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}var g="bmgOnLoad",f="bmgOnError",m="__BMG_TRACKER_COLLECT_QUEUE__",y="__BMG_TRACKER_COLLECT_EXTS__",b="__BMG_TRACKER__",v=function(){return v=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},v.apply(this,arguments)};function E(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}var I=function(t){return t instanceof HTMLImageElement},C=function(t){return"function"==typeof t},B=function(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")},w=function(t){for(var e={},i=decodeURIComponent(document.cookie).split(";"),n=0;n<i.length;n++){for(var r=i[n];" "===r.charAt(0);)r=r.substring(1);var o=r.split("="),a=o[0],s=o[1];if(e[a]=s,t===a)return e[t]}return""},x=function(t){if(!t.eventId)throw new Error("apm report must need eventid");var e,i,n,r,o={},a={eventId:t.eventId,ctime:Date.now(),appInfo:{appId:t.appId||21,platform:(null==o?void 0:o.platform)?o.platform:5},runtimeInfo:o,extendedFields:{referer:document.referrer,ua:navigator.userAgent}};return e={url:"//api.bilibili.com/x/web-frontend/data/collector",method:"POST",data:[v(v({},a),{mid:w("DedeUserID"),buvid:w("buvid3")?w("buvid3"):w("buvid4"),extendedFields:v(v(v({},a.extendedFields),{apmType:t.type}),t.msg)})],headers:{"Content-Type":"text/plain;charset=UTF-8"}},n=e.method.toLocaleUpperCase(),r=e.url,"GET"===n?r=function(t){if(!t.url)return"";var e=t.url,i={},n="",r=[];if(e.indexOf("?")>-1){var o=e.split("?");e=o[0],(r=(n=o[1]).split("&")).forEach((function(t){var e=t.split("=");2===e.length&&(i[e[0]]=e[1])}))}for(var a in Object.assign(i,t.query),r=[],i)void 0!==i[a]&&r.push("".concat(B(a),"=").concat(B(String(i[a]))));return r.length?(n=r.join("&"),"".concat(e,"?").concat(n)):e}({url:r,query:e.data||{}}):"POST"===n&&e.data&&(i=JSON.stringify(e.data)),new Promise((function(t,o){var a=new XMLHttpRequest;if(a.onreadystatechange=function(){if(a.readyState===XMLHttpRequest.DONE)if(200===a.status){var e=null;try{e=JSON.parse(a.responseText)}catch(t){e=a.responseText}t(e)}else o(a.status)},a.onerror=function(){o(new Error("Request fail"))},a.withCredentials=!0,a.open(n,r,!0),"POST"===n&&e.headers)for(var s in e.headers)a.setRequestHeader(s,e.headers[s]);a.send(i)}))},Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},S={};Object.defineProperty(S,"__esModule",{value:!0});var k=!0,D=S.default=function(){return k&&(k="undefined"==typeof window),k},_=function(){return D()?null:window[b]||null},R={};Object.defineProperty(R,"__esModule",{value:!0});var M=/\.(jpeg|jpg|png|webp|gif|avif)$/,T=R.default=function(t){var e;return(null===(e=t.match(M))||void 0===e?void 0:e[0])||null},F={};!function(t){var e=Q&&Q.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCanUseAvif=t.canUseAvif=t.setAvif=void 0;var i,n=e(S);t.setAvif=function(t){i=t},t.canUseAvif=function(){return!(0,n.default)()&&void 0!==i&&i},t.asyncCanUseAvif=function(){return new Promise((function(e){if((0,n.default)())return e(!1);if((0,t.canUseAvif)())return e(!0);var i=new Image;i.onerror=function(){(0,t.setAvif)(!1),e(!1)},i.onload=function(){(0,t.setAvif)(!0),e(!0)},i.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}))}}(F);var L={};!function(t){var e=Q&&Q.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCanUseWebP=t.canUseWebP=t.setWebp=void 0;var i,n=e(S);t.setWebp=function(t){i=t},t.canUseWebP=function(){var t,e,r,o;if((0,n.default)())return!1;if(void 0!==i)return i;try{if("undefined"!=typeof navigator&&/Firefox\/(\d+)/i.test(navigator.userAgent))return i=Number((null===(t=navigator.userAgent.match(/Firefox\/(\d+)/i))||void 0===t?void 0:t[1])||"0")>=65;var a=document.createElement("canvas");i=!!(null===(e=a.getContext)||void 0===e?void 0:e.call(a,"2d"))&&0===(null===(o=null===(r=a.toDataURL)||void 0===r?void 0:r.call(a,"image/webp"))||void 0===o?void 0:o.indexOf("data:image/webp"))}catch(t){i=!1}return i},t.asyncCanUseWebP=function(){return new Promise((function(e){if((0,
n.default)())return e(!1);if((0,t.canUseWebP)())return e(!0);var i=new Image;i.onerror=function(){(0,t.setWebp)(!1),e(!1)},i.onload=function(){(0,t.setWebp)(!0),e(!0)},i.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}}(L);var N="BMG_EXTS",P=null,U=function(t){if(void 0===t&&(t=!1),!window[y]||t){var e=function(){if(P)return P;try{P=(localStorage.getItem(N)||"").split(",")}catch(t){console.warn(t),P=[]}return P}();window[y]={avif:e.includes("avif"),webp:e.includes("webp")}}},O=function(t,e,i){if(!D()){var n=_(),r=(T(t)||"").substring(1);if(["avif","webp"].indexOf(r)>-1&&function(t){var e,i;"object"!=p(window[y])&&U(),(null===(e=window[y])||void 0===e?void 0:e[t])||(window[y][t]=!0,(i=t,function(t){switch(function(){var t=[],e=window[y]||{avif:!1,webp:!1};e.avif&&t.push("avif"),e.webp&&t.push("webp");try{localStorage.setItem(N,t.join(","))}catch(t){console.warn(t)}}(),i){case"avif":F.setAvif(t);break;case"webp":L.setWebp(t)}})(!0))}(r),"onlyext"!==i)if(n)n.collect(t,e);else if("nocache"!==i){var o={src:t,type:e,ts:Date.now()/1e3|0};Array.isArray(window[m])?window[m].push(o):window[m]=[o]}}},G=function(){return!D()&&C(window[g])&&C(window[f])},H={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.commitLog=t.getSpmId=t.getSpmPrefix=void 0;var e=function(){return"undefined"==typeof window},i="";t.getSpmPrefix=function(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e())return"";if(i&&!n)return i;try{return i=(null===(t=document.querySelector("meta[name=spm_prefix]"))||void 0===t?void 0:t.content)||""}catch(t){return""}},t.getSpmId=function(e){if(!e)return"";var i=(0,t.getSpmPrefix)();return i?e.indexOf(i)>-1?e:"".concat(i,".").concat(e):""},t.commitLog=function(i,n,r,o){var a,s,l,A;if(!e()&&(window.reportConfig||window.MReporter)&&i&&n){var c=null;if(!c&&window.reportConfig)if(window.reportMsgObj)c=window.reportMsgObj;else{var h=window.reportConfig.msgObjects;c=window[h]||null}var d=n.indexOf("selfDef");if(d>-1)c&&(c[n.substring(d+8)]=r,null===(a=window.reportObserver)||void 0===a||a.forceCommit());else{var u=(0,t.getSpmPrefix)();if(u){var g="object"==p(r)?JSON.stringify(r):JSON.stringify({});if(window.MReporter)return n.indexOf(u)>-1&&(n=n.replace("".concat(u,"."),"")),void(null===(l=(s=window.MReporter)[i])||void 0===l||l.call(s,{evt:n,msg:g,target_url:o||""}));null===(A=window.reportObserver)||void 0===A||A.reportCustomData(i,{spm_id:(0,t.getSpmId)(n),msg:g,target_url:o||""})}}}}}(H);var V=function(){function t(t){var e,i;this.sample=.01,this.max=100,this.onlyExts=!1,this.spmID=H.getSpmPrefix(),this.queue=[],this.count=0,this.checked=!1,this.sample=Math.min(1,Math.max(.01,t.sample||0)),this.max=t.max||100,this.onlyExts=t.onlyExts||!1,function(){if(D())return!1;if(!G()){var t=window;window[g]=function(e){var i,n;I(e)&&((null===(i=e.dataset)||void 0===i?void 0:i.onload)&&(null===(n=t[e.dataset.onload])||void 0===n||n.call(t,e)),O(e.currentSrc||e.src,"success","standard"))},window[f]=function(e){var i,n;I(e)&&((null===(i=e.dataset)||void 0===i?void 0:i.onerror)&&(null===(n=t[e.dataset.onerror])||void 0===n||n.call(t,e)),O(e.currentSrc||e.src,"error","standard"))}}}(),this.onlyExts||(null===(i=t.stock)||void 0===i?void 0:i.length)&&((e=this.queue).push.apply(e,t.stock),this.reportBrowserEvent())}return t.prototype.reset=function(){this.queue=[],this.count=0,this.checked=!1,this.spmID=H.getSpmPrefix()},t.prototype.activate=function(){this.onlyExts=!1},t.prototype.collect=function(t,e){this.onlyExts||t&&(this.count>=this.max||(this.queue.push({src:t,type:e,ts:Date.now()/1e3|0}),this.reportBrowserEvent()))},t.prototype.reportBrowserEvent=function(){var t=this;if(this.queue.length&&!(this.count>=this.max)){var e=this.queue.shift();Math.random()>this.sample||((null==e?void 0:e.src)&&(this.report("success"===e.type?"success":"error",v(v({},this.getItemReportInfo(e.src)),{source_from:"browser",occur_ts:e.ts})),"success"!==e.type&&(this.count++,this.checkNetwork("https://i0.hdslb.com/bfs/test/ce1cf20203c303963e78c811b01100667c960bba.png"))),this.queue.length&&setTimeout((function(){t.reportBrowserEvent()}),1e3))}},t.prototype.checkNetwork=function(t,e){var i=this;if(void 0===e&&(e=!1),t&&(!this.checked||e)){this.checked=!0;var n=new Image;n.onload=function(){i.report("success",v(v({},i.getItemReportInfo(t)),{source_from:"auto"}))},n.onerror=function(){i.checked=!1,i.report("error",v(v({},i.getItemReportInfo(t)),{source_from:"auto"}))},n.src=t}},t.prototype.getItemReportInfo=function(t){var e=t,i="",n="";if(t.indexOf("@")>-1){var r=t.split("@");e=r[0];var o=r[1].split("."),a=o[0];i=o[1]||"",a.split("_").forEach((function(t){"!"===t[0]&&(n=t.substring(1))}))}else i=(T(t)||"").substring(1);return{src:t,origin_src:e,ext:i,style:n}},t.prototype.report=function(t,e){return i=this,r=function(){var i;return function(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=v(v({},e),{occur_ts:e.occur_ts||Date.now()/1e3|0,href:location.href,spm_id:this.spmID,sample:this.sample}),[4,x({eventId:"web.main.imgdownload",platform:5,type:t,msg:e})];case 1:return n.sent(),[3,3];case 2:return i=n.sent(),console.log(i),[3,3];case 3:return[2]}}))},new((n=void 0)||(n=Promise))((function(t,e){function o(t){try{s(r.next(t))}catch(t){e(t)}}function a(t){try{s(r.throw(t))}catch(t){e(t)}}function s(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,a)}s((r=r.apply(i,[])).next())}));var i,n,r},t}(),Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},z={},W={},Z={};Object.defineProperty(Z,"__esModule",{value:!0});var j=!0,q=Z.default=function(){return j&&(j="undefined"==typeof window),j};!function(t){var e=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCanUseAvif=t.canUseAvif=t.setAvif=void 0;var i,n=e(Z);t.setAvif=function(t){i=t},t.canUseAvif=function(){return!(0,n.default)()&&void 0!==i&&i},t.asyncCanUseAvif=function(){return new Promise((function(e){if((0,n.default)())return e(!1);if((0,t.canUseAvif)())return e(!0);var i=new Image;i.onerror=function(){(0,t.setAvif)(!1),e(!1)},i.onload=function(){(0,t.setAvif)(!0),e(!0)},i.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}))}}(W);var J={};!function(t){var e=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCanUseWebP=t.canUseWebP=t.setWebp=void 0;var i,n=e(Z);t.setWebp=function(t){i=t},t.canUseWebP=function(){var t,e,r,o;if((0,n.default)())return!1;if(void 0!==i)return i;try{
if("undefined"!=typeof navigator&&/Firefox\/(\d+)/i.test(navigator.userAgent))return i=Number((null===(t=navigator.userAgent.match(/Firefox\/(\d+)/i))||void 0===t?void 0:t[1])||"0")>=65;var a=document.createElement("canvas");i=!!(null===(e=a.getContext)||void 0===e?void 0:e.call(a,"2d"))&&0===(null===(o=null===(r=a.toDataURL)||void 0===r?void 0:r.call(a,"image/webp"))||void 0===o?void 0:o.indexOf("data:image/webp"))}catch(t){i=!1}return i},t.asyncCanUseWebP=function(){return new Promise((function(e){if((0,n.default)())return e(!1);if((0,t.canUseWebP)())return e(!0);var i=new Image;i.onerror=function(){(0,t.setWebp)(!1),e(!1)},i.onload=function(){(0,t.setWebp)(!0),e(!0)},i.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}}(J);var K={},X=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});var $=X(Z);K.default=function(){return!(0,$.default)()&&!!window.HTMLPictureElement},function(t){var e=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.autoDetectAll=t.autoDetect=t.canUseHtmlPictureElement=t.canUseWebP=t.setWebp=t.canUseAvif=t.setAvif=void 0;var i=W;Object.defineProperty(t,"canUseAvif",{enumerable:!0,get:function(){return i.canUseAvif}}),Object.defineProperty(t,"setAvif",{enumerable:!0,get:function(){return i.setAvif}});var n=J;Object.defineProperty(t,"canUseWebP",{enumerable:!0,get:function(){return n.canUseWebP}}),Object.defineProperty(t,"setWebp",{enumerable:!0,get:function(){return n.setWebp}});var r=e(K);t.canUseHtmlPictureElement=r.default,t.autoDetect=function(t){void 0===t&&(t=["webp"]);for(var e=0;e<t.length;e++){if("avif"===t[e]&&(0,i.canUseAvif)())return t[e];if("webp"===t[e]&&(0,n.canUseWebP)())return t[e]}return""},t.autoDetectAll=function(){return new Promise((function(t){Promise.all([(0,i.asyncCanUseAvif)(),(0,n.asyncCanUseWebP)()]).then((function(e){var i=e[0],n=e[1];t({avif:i,webp:n})}))}))}}(z);var tt={},et={};Object.defineProperty(et,"__esModule",{value:!0}),et.default=function(t){return t?t.replace(/^http(s)?:/,""):""};var it,nt={};it=nt,Object.defineProperty(it,"__esModule",{value:!0}),it.isInt=it.isNum=void 0,it.isNum=function(t){return"number"==typeof t},it.isInt=function(t){return(0,it.isNum)(t)&&(0|t)===t};var rt={};Object.defineProperty(rt,"__esModule",{value:!0});var ot=/\.(jpeg|jpg|png|webp|gif|avif)$/;rt.default=function(t){var e;return(null===(e=t.match(ot))||void 0===e?void 0:e[0])||null},function(t){var e=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.getBmgSrc=t.isSupportBmgFormat=void 0;var i=e(et),n=e(Z),r=nt,o=e(rt);t.isSupportBmgFormat=function(t){return!(e=t,!/\/bfs\//.test(e)||!(0,o.default)(t));var e};var a=function(t){return"number"!=typeof t||isNaN(t)?0:Math.floor(t)||0};t.getBmgSrc=function(e,o){var s;if(void 0===o&&(o={c:!0}),!e||"string"!=typeof e)return"";if(!(0,t.isSupportBmgFormat)(e))return e;if(e.indexOf("@")>-1){if(o.cache)return e;e=e.split("@")[0]}e=e.replace("pre-","");var l=o.dpr||((0,n.default)()?2:Math.floor(null!==(s=null===window||void 0===window?void 0:window.devicePixelRatio)&&void 0!==s?s:2)||1),A=[];o.w&&(0,r.isInt)(o.w)&&A.push("".concat(Math.floor(o.w*l),"w")),o.h&&(0,r.isInt)(o.h)&&A.push("".concat(Math.floor(o.h*l),"h")),o.e&&A.push("".concat(o.e,"e")),o.c&&A.push("1c"),o.a&&A.push("".concat([a(o.a.x),a(o.a.y),a(o.a.w)*l,a(o.a.h)*l].join("-"),"a")),o.p&&(0,r.isInt)(o.p)&&A.push("".concat(o.p,"p")),o.s&&A.push("1s"),o.q&&(0,r.isInt)(o.q)&&A.push("".concat(o.q,"q")),o.style&&A.push("!".concat(o.style));var c="";return o.ext&&["webp","avif"].includes(o.ext)&&(c=o.ext),0!==A.length||c?"".concat((0,i.default)(e),"@").concat(A.join("_")).concat(c?".".concat(c):""):e}}(tt);var at,st,lt,At={};function ct(t){return(ct="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}Object.defineProperty(At,"__esModule",{value:!0});var ht="__BMG_TRACKER_COLLECT_QUEUE__",dt="__BMG_TRACKER_COLLECT_EXTS__",ut="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Y?Y:"undefined"!=typeof self?self:{},pt={};Object.defineProperty(pt,"__esModule",{value:!0});var gt=!0,ft=pt.default=function(){return gt&&(gt="undefined"==typeof window),gt},mt={};Object.defineProperty(mt,"__esModule",{value:!0});var yt=/\.(jpeg|jpg|png|webp|gif|avif)$/,bt=mt.default=function(t){var e;return(null===(e=t.match(yt))||void 0===e?void 0:e[0])||null},vt={};!function(t){var e=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCanUseAvif=t.canUseAvif=t.setAvif=void 0;var i,n=e(pt);t.setAvif=function(t){i=t},t.canUseAvif=function(){return!(0,n.default)()&&void 0!==i&&i},t.asyncCanUseAvif=function(){return new Promise((function(e){if((0,n.default)())return e(!1);if((0,t.canUseAvif)())return e(!0);var i=new Image;i.onerror=function(){(0,t.setAvif)(!1),e(!1)},i.onload=function(){(0,t.setAvif)(!0),e(!0)},i.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="}))}}(vt);var Et={};!function(t){var e=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncCanUseWebP=t.canUseWebP=t.setWebp=void 0;var i,n=e(pt);t.setWebp=function(t){i=t},t.canUseWebP=function(){var t,e,r,o;if((0,n.default)())return!1;if(void 0!==i)return i;try{if("undefined"!=typeof navigator&&/Firefox\/(\d+)/i.test(navigator.userAgent))return i=Number((null===(t=navigator.userAgent.match(/Firefox\/(\d+)/i))||void 0===t?void 0:t[1])||"0")>=65;var a=document.createElement("canvas");i=!!(null===(e=a.getContext)||void 0===e?void 0:e.call(a,"2d"))&&0===(null===(o=null===(r=a.toDataURL)||void 0===r?void 0:r.call(a,"image/webp"))||void 0===o?void 0:o.indexOf("data:image/webp"))}catch(t){i=!1}return i},t.asyncCanUseWebP=function(){return new Promise((function(e){if((0,n.default)())return e(!1);if((0,t.canUseWebP)())return e(!0);var i=new Image;i.onerror=function(){(0,t.setWebp)(!1),e(!1)},i.onload=function(){(0,t.setWebp)(!0),e(!0)},i.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="}))}}(Et);var It="BMG_EXTS",Ct=null,Bt=function(){if(Ct)return Ct;try{Ct=(localStorage.getItem(It)||"").split(",")}catch(t){console.warn(t),Ct=[]}return Ct},wt=function(t){if(void 0===t&&(t=!1),!window[dt]||t){var e=Bt();window[dt]={avif:e.includes("avif"),webp:e.includes("webp")}}},xt=function(t){return function(e){switch(function(){var t=[],e=window[dt]||{avif:!1,webp:!1};e.avif&&t.push("avif"),e.webp&&t.push("webp");try{localStorage.setItem(It,t.join(","))}catch(t){console.warn(t)}}(),t){case"avif":vt.setAvif(e);break;case"webp":Et.setWebp(e)}}},Qt=function(t){var e;"object"!=ct(window[dt])&&wt(),(null===(e=window[dt])||void 0===e?void 0:e[t])||(window[dt][t]=!0,xt(t)(!0))};At.collect=function(t,e,i){if(!ft()){var n=ft()?null:window.__BMG_TRACKER__||null,r=(bt(t)||"").substring(1);if(["avif","webp"].indexOf(r)>-1&&Qt(r),"onlyext"!==i)if(n)n.collect(t,e);else if("nocache"!==i){var o={src:t,type:e,ts:Date.now()/1e3|0};Array.isArray(window[ht])?window[ht].push(o):window[ht]=[o]}}},At.getLocalExtsState=Bt,lt=At.getWindowExtsState=function(t){var e,i;return"avif"===t?(null===(e=window[dt])||void 0===e?void 0:e.avif)||!1:"webp"===t?(null===(i=window[dt])||void 0===i?void 0:i.webp)||!1:window[dt]||null},st=At.initWindowExtsState=wt,At.updateExtState=xt,at=At.updateWindowExtsState=Qt;var St="",kt=function(t){if(!s()){St=t||"bmg";var e="bmgstyle"+("bmg"===t?"":"-".concat(t)),i=document.querySelector("#".concat(e))
;i||((i=document.createElement("style")).id=e,i.innerHTML="\n        .".concat(t," {\n            width: 100%;\n            height: 100%;\n            display: inline-block;\n            vertical-align: middle;\n        }\n        .").concat(t," img {\n            display: block;\n            width: 100%;\n            height: 100%;\n            object-fit: inherit;\n        }\n    "),document.head.appendChild(i))}},Dt=function(t,e,i){i=(null==i?void 0:i.filter(Boolean))||[];var n="img"===t?">":">".concat(i.length?i.join(""):"","</").concat(t,">");return"<".concat(t," ").concat(Object.keys(e).filter((function(t){return"string"==typeof e[t]})).map((function(t){return"".concat(t,'="').concat((i=e[t]||"")?i.replace(/[&<">'](?:(amp|lt|quot|gt|#39|nbsp|#\d+);)?/g,(function(t,e){return e?t:{"<":"&lt;","&":"&amp;",'"':"&quot;",">":"&gt;","'":"&#39;"}[t]||""})):"",'"');var i})).join(" ")," ").concat(n)},_t=function(t){return t?"".concat(t,"(this)"):""},Rt=function(t,e){return-1===t.indexOf("@")?"".concat(t,"@.").concat(e):"".concat(t=t.replace(new RegExp(".(avif|webp)$"),""),".").concat(e)},Mt=function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s()?"":i&&(null===(t=window[y])||void 0===t?void 0:t.avif)?"avif":(null===(e=window[y])||void 0===e?void 0:e.webp)?"webp":function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["webp"],e=0;e<t.length;e++){if("avif"===t[e]&&(s(),0))return t[e];if("webp"===t[e]&&l())return t[e]}return""}()},Tt=function(t,e,i){var n,o=[],a="";e.class?(o.push(e.class),St&&St!==e.class&&o.push(St),a=o.join(" ")):a=St;var l=!!(null===(n=null==i?void 0:i.exts)||void 0===n?void 0:n.avif),A=!!(null==i?void 0:i.performance),c=h(t)&&((null==i?void 0:i.tag)?"picture"===i.tag:!s()&&!!window.HTMLPictureElement),d=Mt(A&&l),p=u(t,Object.assign({},e,{ext:d})),m=G(),y={};if("object"==r(e.dataset))for(var b in e.dataset)y["data-".concat(b)]=e.dataset[b];var v=A&&l&&"avif"===d,E=Dt("img",Object.assign({src:p,class:v||!c?a:null,alt:e.alt||null,loading:(null==e?void 0:e.loading)?"lazy":null,onload:m?_t(g):_t((null==i?void 0:i.onload)||"")||null,onerror:m?_t(f):_t((null==i?void 0:i.onerror)||"")||null,"data-onload":m&&(null==i?void 0:i.onload)||null,"data-onerror":m&&(null==i?void 0:i.onerror)||null},y));return v?E:c?Dt("picture",{class:a||null},[l&&Dt("source",{type:"image/avif",srcset:Rt(p,"avif")})||"",Dt("source",{type:"image/webp",srcset:Rt(p,"webp")}),E]):E},Ft=function(){function t(e){var i,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.class="",this.onload="",this.onerror="",this.loading=!0,this.performance=!1,this.tag=(null==e?void 0:e.tag)||"",this.exts=Object.assign({webp:!0,avif:!1},(null==e?void 0:e.exts)||{}),this.dpr=(null==e?void 0:e.dpr)||2,this.performance=!!(null==e?void 0:e.performance),"string"==typeof(null==e?void 0:e.class)&&(this.class=e.class),!1===(null==e?void 0:e.loading)&&(this.loading=!1),s()||(kt(this.class),i=null==e?void 0:e.tracker,_()||(n=new V(v(v({},i||{sample:.01,interval:2e3}),{stock:E(E([],(null==i?void 0:i.stock)||[],!0),window[m]||[],!0)})),D()||(window[b]=n)))}var e,i,r;return e=t,i=[{key:"render",value:function(t,e){return Tt(t,Object.assign(Object.assign({class:this.class,dpr:this.dpr},e),{loading:this.loading}),{tag:this.tag,exts:this.exts,onload:this.onload,onerror:this.onerror,performance:this.performance})}}],i&&n(e.prototype,i),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();"undefined"!=typeof window&&U(),e.Xv=function(t,e){var i="";return q()?tt.getBmgSrc(t,e):(i=lt("avif")?"avif":lt("webp")?"webp":z.autoDetect(["avif","webp"]),tt.getBmgSrc(t,Object.assign(Object.assign({},e),{ext:i})))}},22019:function(t){var e,i=(e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t){var i,n,r;t=t||{},i||(i=void 0!==t?t:{}),i.ready=new Promise((function(t,e){n=t,r=e}));var o,a,s=Object.assign({},i),l="./this.program",A="";"undefined"!=typeof document&&document.currentScript&&(A=document.currentScript.src),e&&(A=e),A=0!==A.indexOf("blob:")?A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1):"",o=t=>{try{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText}catch(r){if(t=he(t)){e=[];for(var i=0;i<t.length;i++){var n=t[i];255<n&&(le&&P("Character code "+n+" ("+String.fromCharCode(n)+")  at offset "+i+" not in 0x00-0xFF."),n&=255),e.push(String.fromCharCode(n))}return e.join("")}throw r}},a=(t,e,i)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{if(200==n.status||0==n.status&&n.response)e(n.response);else{var r=he(t);r?e(r.buffer):i()}},n.onerror=i,n.send(null)};var c,h=i.print||console.log.bind(console),d=i.printErr||console.warn.bind(console);Object.assign(i,s),s=null,i.thisProgram&&(l=i.thisProgram),i.wasmBinary&&(c=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&P("no native wasm support detected");var u,p=!1,g="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function f(t,e){for(var i=e+NaN,n=e;t[n]&&!(n>=i);)++n;if(16<n-e&&t.buffer&&g)return g.decode(t.subarray(e,n));for(i="";e<n;){var r=t[e++];if(128&r){var o=63&t[e++];if(192==(224&r))i+=String.fromCharCode((31&r)<<6|o);else{var a=63&t[e++];65536>(r=224==(240&r)?(15&r)<<12|o<<6|a:(7&r)<<18|o<<12|a<<6|63&t[e++])?i+=String.fromCharCode(r):(r-=65536,i+=String.fromCharCode(55296|r>>10,56320|1023&r))}}else i+=String.fromCharCode(r)}return i}function m(t,e,i,n){if(!(0<n))return 0;var r=i;n=i+n-1;for(var o=0;o<t.length;++o){var a=t.charCodeAt(o);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),127>=a){if(i>=n)break;e[i++]=a}else{if(2047>=a){if(i+1>=n)break;e[i++]=192|a>>6}else{if(65535>=a){if(i+2>=n)break;e[i++]=224|a>>12}else{if(i+3>=n)break;e[i++]=240|a>>18,e[i++]=128|a>>12&63}e[i++]=128|a>>6&63}e[i++]=128|63&a}}return e[i]=0,i-r}function y(t){for(var e=0,i=0;i<t.length;++i){var n=t.charCodeAt(i);55296<=n&&57343>=n&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++i)),127>=n?++e:e=2047>=n?e+2:65535>=n?e+3:e+4}return e}function b(t){var e=y(t)+1,i=fe(e);return i&&m(t,E,i,e),i}var v,E,I,C,B,w,x,Q,S,k=[],D=[],_=[];function R(){var t=i.preRun.shift();k.unshift(t)}var M=0,T=null,F=null;function L(){M++,i.monitorRunDependencies&&i.monitorRunDependencies(M)}function N(){if(M--,i.monitorRunDependencies&&i.monitorRunDependencies(M),0==M&&(null!==T&&(clearInterval(T),T=null),F)){var t=F;F=null,t()}}function P(t){throw i.onAbort&&i.onAbort(t),d(t="Aborted("+t+")"),p=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),r(t),t}var U,O,G,H="data:application/octet-stream;base64,";function V(t){return function(){if(p)throw"program has already aborted!";try{return t.apply(null,arguments)}catch(t){if(p||1/0===t)throw t;P("unhandled exception: "+[t,t.stack])}}}
if(!(U="data:application/octet-stream;base64, ").startsWith(H)){
var Y=U;U=i.locateFile?i.locateFile(Y,A):A+Y}function z(){var t=U;try{if(t==U&&c)return new Uint8Array(c);var e=he(t);if(e)return e;throw"both async and sync fetching of the wasm failed"}catch(t){P(t)}}function W(t){for(;0<t.length;){var e=t.shift();if("function"==typeof e)e(i);else{var n=e.pa;"number"==typeof n?void 0===e.ga?q(n)():q(n)(e.ga):n(void 0===e.ga?null:e.ga)}}}function Z(t,e="i8"){switch(e.endsWith("*")&&(e="i32"),e){case"i1":case"i8":return E[0|t];case"i16":return C[t>>1];case"i32":case"i64":return B[t>>2];case"float":return x[t>>2];case"double":return Number(Q[t>>3]);default:P("invalid type for getValue: "+e)}return null}var j=[];function q(t){var e=j[t];return e||(t>=j.length&&(j.length=t+1),j[t]=e=S.get(t)),e}function J(t,e,i="i8"){switch(i.endsWith("*")&&(i="i32"),i){case"i1":case"i8":E[0|t]=e;break;case"i16":C[t>>1]=e;break;case"i32":B[t>>2]=e;break;case"i64":G=[e>>>0,(O=e,1<=+Math.abs(O)?0<O?(0|Math.min(+Math.floor(O/4294967296),4294967295))>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],B[t>>2]=G[0],B[t+4>>2]=G[1];break;case"float":x[t>>2]=e;break;case"double":Q[t>>3]=e;break;default:P("invalid type for setValue: "+i)}}var K=(t,e)=>{for(var i=0,n=t.length-1;0<=n;n--){var r=t[n];"."===r?t.splice(n,1):".."===r?(t.splice(n,1),i++):i&&(t.splice(n,1),i--)}if(e)for(;i;i--)t.unshift("..");return t},X=t=>{var e="/"===t.charAt(0),i="/"===t.substr(-1);return(t=K(t.split("/").filter((t=>!!t)),!e).join("/"))||e||(t="."),t&&i&&(t+="/"),(e?"/":"")+t},$=t=>{var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1);return t=e[0],e=e[1],t||e?(e&&(e=e.substr(0,e.length-1)),t+e):"."},tt=t=>{if("/"===t)return"/";var e=(t=(t=X(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?t:t.substr(e+1)};function et(){for(var t="",e=!1,i=arguments.length-1;-1<=i&&!e;i--){if("string"!=typeof(e=0<=i?arguments[i]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!e)return"";t=e+"/"+t,e="/"===e.charAt(0)}return(e?"/":"")+(t=K(t.split("/").filter((t=>!!t)),!e).join("/"))||"."}var it=[];function nt(t,e){it[t]={input:[],L:[],V:e},_t(t,rt)}var rt={open:function(t){var e=it[t.node.Z];if(!e)throw new yt(43);t.J=e,t.seekable=!1},close:function(t){t.J.V.flush(t.J)},flush:function(t){t.J.V.flush(t.J)},read:function(t,e,i,n){if(!t.J||!t.J.V.qa)throw new yt(60);for(var r=0,o=0;o<n;o++){try{var a=t.J.V.qa(t.J)}catch(t){throw new yt(29)}if(void 0===a&&0===r)throw new yt(6);if(null==a)break;r++,e[i+o]=a}return r&&(t.node.timestamp=Date.now()),r},write:function(t,e,i,n){if(!t.J||!t.J.V.ja)throw new yt(60);try{for(var r=0;r<n;r++)t.J.V.ja(t.J,e[i+r])}catch(t){throw new yt(29)}return n&&(t.node.timestamp=Date.now()),r}},ot={qa:function(t){if(!t.input.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;t.input=Ae(e)}return t.input.shift()},ja:function(t,e){null===e||10===e?(h(f(t.L,0)),t.L=[]):0!=e&&t.L.push(e)},flush:function(t){t.L&&0<t.L.length&&(h(f(t.L,0)),t.L=[])}},at={ja:function(t,e){null===e||10===e?(d(f(t.L,0)),t.L=[]):0!=e&&t.L.push(e)},flush:function(t){t.L&&0<t.L.length&&(d(f(t.L,0)),t.L=[])}};function st(t){t=65536*Math.ceil(t/65536);var e=me(65536,t);return e?(I.fill(0,e,e+t),e):0}var lt,At,ct,ht={O:null,P:function(){return ht.createNode(null,"/",16895,0)},createNode:function(t,e,i,n){if(24576==(61440&i)||4096==(61440&i))throw new yt(63);return ht.O||(ht.O={dir:{node:{N:ht.G.N,M:ht.G.M,X:ht.G.X,aa:ht.G.aa,ua:ht.G.ua,fa:ht.G.fa,va:ht.G.va,ca:ht.G.ca,ea:ht.G.ea},stream:{T:ht.H.T}},file:{node:{N:ht.G.N,M:ht.G.M},stream:{T:ht.H.T,read:ht.H.read,write:ht.H.write,la:ht.H.la,ia:ht.H.ia,ba:ht.H.ba}},link:{node:{N:ht.G.N,M:ht.G.M,$:ht.G.$},stream:{}},ma:{node:{N:ht.G.N,M:ht.G.M},stream:Dt}}),16384==(61440&(i=Bt(t,e,i,n)).mode)?(i.G=ht.O.dir.node,i.H=ht.O.dir.stream,i.F={}):32768==(61440&i.mode)?(i.G=ht.O.file.node,i.H=ht.O.file.stream,i.I=0,i.F=null):40960==(61440&i.mode)?(i.G=ht.O.link.node,i.H=ht.O.link.stream):8192==(61440&i.mode)&&(i.G=ht.O.ma.node,i.H=ht.O.ma.stream),i.timestamp=Date.now(),t&&(t.F[e]=i,t.timestamp=i.timestamp),i},Oa:function(t){return t.F?t.F.subarray?t.F.subarray(0,t.I):new Uint8Array(t.F):new Uint8Array(0)},na:function(t,e){var i=t.F?t.F.length:0;i>=e||(e=Math.max(e,i*(1048576>i?2:1.125)>>>0),0!=i&&(e=Math.max(e,256)),i=t.F,t.F=new Uint8Array(e),0<t.I&&t.F.set(i.subarray(0,t.I),0))},Ja:function(t,e){if(t.I!=e)if(0==e)t.F=null,t.I=0;else{var i=t.F;t.F=new Uint8Array(e),i&&t.F.set(i.subarray(0,Math.min(e,t.I))),t.I=e}},G:{N:function(t){var e={};return e.Ba=8192==(61440&t.mode)?t.id:1,e.ha=t.id,e.mode=t.mode,e.Ha=1,e.uid=0,e.Ca=0,e.Z=t.Z,16384==(61440&t.mode)?e.size=4096:32768==(61440&t.mode)?e.size=t.I:40960==(61440&t.mode)?e.size=t.link.length:e.size=0,e.xa=new Date(t.timestamp),e.Ga=new Date(t.timestamp),e.Aa=new Date(t.timestamp),e.ya=4096,e.za=Math.ceil(e.size/e.ya),e},M:function(t,e){void 0!==e.mode&&(t.mode=e.mode),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.size&&ht.Ja(t,e.size)},X:function(){throw bt[44]},aa:function(t,e,i,n){return ht.createNode(t,e,i,n)},ua:function(t,e,i){if(16384==(61440&t.mode)){try{var n=Ct(e,i)}catch(t){}if(n)for(var r in n.F)throw new yt(55)}delete t.parent.F[t.name],t.parent.timestamp=Date.now(),t.name=i,e.F[i]=t,e.timestamp=t.parent.timestamp,t.parent=e},fa:function(t,e){delete t.F[e],t.timestamp=Date.now()},va:function(t,e){var i,n=Ct(t,e);for(i in n.F)throw new yt(55);delete t.F[e],t.timestamp=Date.now()},ca:function(t){var e,i=[".",".."];for(e in t.F)t.F.hasOwnProperty(e)&&i.push(e);return i},ea:function(t,e,i){return(t=ht.createNode(t,e,41471,0)).link=i,t},$:function(t){if(40960!=(61440&t.mode))throw new yt(28);return t.link}},H:{read:function(t,e,i,n,r){var o=t.node.F;if(r>=t.node.I)return 0;if(8<(t=Math.min(t.node.I-r,n))&&o.subarray)e.set(o.subarray(r,r+t),i);else for(n=0;n<t;n++)e[i+n]=o[r+n];return t},write:function(t,e,i,n,r,o){if(!n)return 0;if((t=t.node).timestamp=Date.now(),e.subarray&&(!t.F||t.F.subarray)){if(o)return t.F=e.subarray(i,i+n),t.I=n;if(0===t.I&&0===r)return t.F=e.slice(i,i+n),t.I=n;if(r+n<=t.I)return t.F.set(e.subarray(i,i+n),r),n}if(ht.na(t,r+n),t.F.subarray&&e.subarray)t.F.set(e.subarray(i,i+n),r);else for(o=0;o<n;o++)t.F[r+o]=e[i+o];return t.I=Math.max(t.I,r+n),n},T:function(t,e,i){if(1===i?e+=t.position:2===i&&32768==(61440&t.node.mode)&&(e+=t.node.I),0>e)throw new yt(28);return e},la:function(t,e,i){ht.na(t.node,e+i),t.node.I=Math.max(t.node.I,e+i)},ia:function(t,e,i,n,r){if(32768!=(61440&t.node.mode))throw new yt(43);if(t=t.node.F,2&r||t.buffer!==v){if((0<i||i+e<t.length)&&(t=t.subarray?t.subarray(i,i+e):Array.prototype.slice.call(t,i,i+e)),i=!0,!(e=st(e)))throw new yt(48);E.set(t,e)}else i=!1,e=t.byteOffset;return{Ia:e,wa:i}},ba:function(t,e,i,n,r){if(32768!=(61440&t.node.mode))throw new yt(43);return 2&r||ht.H.write(t,e,0,n,i,!1),0}}},dt=null,ut={},pt=[],gt=1,ft=null,mt=!0,yt=null,bt={},vt=(t,e={})=>{if(!(t=et("/",t)))return{path:"",node:null};if(8<(e=Object.assign({oa:!0,ka:0},e)).ka)throw new yt(32);t=K(t.split("/").filter((t=>!!t)),!1);for(var i=dt,n="/",r=0;r<t.length;r++){var o=r===t.length-1;if(o&&e.parent)break;if(i=Ct(i,t[r]),n=X(n+"/"+t[r]),i.Y&&(!o||o&&e.oa)&&(i=i.Y.root),!o||e.W)for(o=0;40960==(61440&i.mode);)if(i=Nt(n),n=et($(n),i),i=vt(n,{ka:e.ka+1}).node,40<o++)throw new yt(32)}return{path:n,node:i}},Et=t=>{for(var e;;){if(t===t.parent)return t=t.P.ta,e?"/"!==t[t.length-1]?t+"/"+e:t+e:t;e=e?t.name+"/"+e:t.name,t=t.parent}},It=(t,e)=>{for(var i=0,n=0;n<e.length;n++)i=(i<<5)-i+e.charCodeAt(n)|0;return(t+i>>>0)%ft.length},Ct=(t,e)=>{var i;if(i=(i=Qt(t,"x"))?i:t.G.X?0:2)throw new yt(i,t);for(i=ft[It(t.id,e)];i;i=i.U){var n=i.name;if(i.parent.id===t.id&&n===e)return i}return t.G.X(t,e)},Bt=(t,e,i,n)=>(t=new se(t,e,i,n),e=It(t.parent.id,t.name),t.U=ft[e],ft[e]=t),wt={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},xt=t=>{var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},Qt=(t,e)=>mt?0:!e.includes("r")||292&t.mode?e.includes("w")&&!(146&t.mode)||e.includes("x")&&!(73&t.mode)?2:0:2,St=(t,e)=>{try{return Ct(t,e),20}catch(t){}return Qt(t,"wx")
},kt=(t,e)=>(At||((At=function(){this.da={}}).prototype={flags:{get:function(){return this.da.flags},set:function(t){this.da.flags=t}},position:{get Na(){return this.da.position},set:function(t){this.da.position=t}}}),t=Object.assign(new At,t),e=((t=0)=>{for(;4096>=t;t++)if(!pt[t])return t;throw new yt(33)})(e),t.R=e,pt[e]=t),Dt={open:t=>{t.H=ut[t.node.Z].H,t.H.open&&t.H.open(t)},T:()=>{throw new yt(70)}},_t=(t,e)=>{ut[t]={H:e}},Rt=(t,e)=>{var i="/"===e,n=!e;if(i&&dt)throw new yt(10);if(!i&&!n){var r=vt(e,{oa:!1});if(e=r.path,(r=r.node).Y)throw new yt(10);if(16384!=(61440&r.mode))throw new yt(54)}e={type:t,Qa:{},ta:e,Fa:[]},(t=t.P(e)).P=e,e.root=t,i?dt=t:r&&(r.Y=e,r.P&&r.P.Fa.push(e))},Mt=(t,e,i)=>{var n=vt(t,{parent:!0}).node;if(!(t=tt(t))||"."===t||".."===t)throw new yt(28);var r=St(n,t);if(r)throw new yt(r);if(!n.G.aa)throw new yt(63);return n.G.aa(n,t,e,i)},Tt=(t,e,i)=>(void 0===i&&(i=e,e=438),Mt(t,8192|e,i)),Ft=(t,e)=>{if(!et(t))throw new yt(44);var i=vt(e,{parent:!0}).node;if(!i)throw new yt(44);e=tt(e);var n=St(i,e);if(n)throw new yt(n);if(!i.G.ea)throw new yt(63);i.G.ea(i,e,t)},Lt=t=>{var e=vt(t,{parent:!0}).node;if(!e)throw new yt(44);var i=tt(t);t=Ct(e,i);t:{try{var n=Ct(e,i)}catch(t){n=t.K;break t}var r=Qt(e,"wx");n=r||(16384==(61440&n.mode)?31:0)}if(n)throw new yt(n);if(!e.G.fa)throw new yt(63);if(t.Y)throw new yt(10);if(e.G.fa(e,i),e=It(t.parent.id,t.name),ft[e]===t)ft[e]=t.U;else for(e=ft[e];e;){if(e.U===t){e.U=t.U;break}e=e.U}},Nt=t=>{if(!(t=vt(t).node))throw new yt(44);if(!t.G.$)throw new yt(28);return et(Et(t.parent),t.G.$(t))},Pt=(t,e)=>{if(!(t=vt(t,{W:!e}).node))throw new yt(44);if(!t.G.N)throw new yt(63);return t.G.N(t)},Ut=t=>Pt(t,!0),Ot=(t,e)=>{if(!(t="string"==typeof t?vt(t,{W:!0}).node:t).G.M)throw new yt(63);t.G.M(t,{mode:4095&e|-4096&t.mode,timestamp:Date.now()})},Gt=(t,e,n)=>{if(""===t)throw new yt(44);if("string"==typeof e){var r=wt[e];if(void 0===r)throw Error("Unknown file open mode: "+e);e=r}if(n=64&e?4095&(void 0===n?438:n)|32768:0,"object"==typeof t)var o=t;else{t=X(t);try{o=vt(t,{W:!(131072&e)}).node}catch(t){}}if(r=!1,64&e)if(o){if(128&e)throw new yt(20)}else o=Mt(t,n,0),r=!0;if(!o)throw new yt(44);if(8192==(61440&o.mode)&&(e&=-513),65536&e&&16384!=(61440&o.mode))throw new yt(54);if(!r&&(n=o?40960==(61440&o.mode)?32:16384==(61440&o.mode)&&("r"!==xt(e)||512&e)?31:Qt(o,xt(e)):44))throw new yt(n);if(512&e&&!r){if(!(n="string"==typeof(n=o)?vt(n,{W:!0}).node:n).G.M)throw new yt(63);if(16384==(61440&n.mode))throw new yt(31);if(32768!=(61440&n.mode))throw new yt(28);if(r=Qt(n,"w"))throw new yt(r);n.G.M(n,{size:0,timestamp:Date.now()})}return e&=-131713,(o=kt({node:o,path:Et(o),flags:e,seekable:!0,position:0,H:o.H,La:[],error:!1})).H.open&&o.H.open(o),!i.logReadFiles||1&e||(ct||(ct={}),t in ct||(ct[t]=1)),o},Ht=t=>{if(null===t.R)throw new yt(8);t.S&&(t.S=null);try{t.H.close&&t.H.close(t)}catch(t){throw t}finally{pt[t.R]=null}t.R=null},Vt=(t,e,i)=>{if(null===t.R)throw new yt(8);if(!t.seekable||!t.H.T)throw new yt(70);if(0!=i&&1!=i&&2!=i)throw new yt(28);return t.position=t.H.T(t,e,i),t.La=[],t.position},Yt=(t,e,i,n,r,o)=>{if(0>n||0>r)throw new yt(28);if(null===t.R)throw new yt(8);if(!(2097155&t.flags))throw new yt(8);if(16384==(61440&t.node.mode))throw new yt(31);if(!t.H.write)throw new yt(28);t.seekable&&1024&t.flags&&Vt(t,0,2);var a=void 0!==r;if(a){if(!t.seekable)throw new yt(70)}else r=t.position;return e=t.H.write(t,e,i,n,r,o),a||(t.position+=e),e},zt=()=>{yt||((yt=function(t,e){this.node=e,this.Ka=function(t){this.K=t},this.Ka(t),this.message="FS error"}).prototype=Error(),yt.prototype.constructor=yt,[44].forEach((t=>{bt[t]=new yt(t),bt[t].stack="<generic error, no stack>"})))},Wt=(t,e)=>{var i=0;return t&&(i|=365),e&&(i|=146),i},Zt=(t,e)=>{for(t="string"==typeof t?t:Et(t),e=e.split("/").reverse();e.length;){var i=e.pop();if(i){var n=X(t+"/"+i);try{Mt(n,16895,0)}catch(t){}t=n}}return n},jt=(t,e,i,n,r,o)=>{var a=e;if(t&&(t="string"==typeof t?t:Et(t),a=e?X(t+"/"+e):t),t=Wt(n,r),a=Mt(a,4095&(void 0!==t?t:438)|32768,0),i){if("string"==typeof i){for(e=Array(i.length),n=0,r=i.length;n<r;++n)e[n]=i.charCodeAt(n);i=e}Ot(a,146|t),e=Gt(a,577),Yt(e,i,0,i.length,0,o),Ht(e),Ot(a,t)}return a},qt=(t,e,i,n)=>{t=X(("string"==typeof t?t:Et(t))+"/"+e),e=Wt(!!i,!!n),qt.sa||(qt.sa=64);var r=qt.sa++<<8;return _t(r,{open:t=>{t.seekable=!1},close:()=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(t,e,n,r)=>{for(var o=0,a=0;a<r;a++){try{var s=i()}catch(t){throw new yt(29)}if(void 0===s&&0===o)throw new yt(6);if(null==s)break;o++,e[n+a]=s}return o&&(t.node.timestamp=Date.now()),o},write:(t,e,i,r)=>{for(var o=0;o<r;o++)try{n(e[i+o])}catch(t){throw new yt(29)}return r&&(t.node.timestamp=Date.now()),o}}),Tt(t,e,r)},Jt=t=>{if(!(t.ra||t.Ea||t.link||t.F)){if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!o)throw Error("Cannot load without read() or XMLHttpRequest.");try{t.F=Ae(o(t.url)),t.I=t.F.length}catch(t){throw new yt(29)}}},Kt=(t,e,i,n,r)=>{function o(t,e,i,n,r){if(r>=(t=t.node.F).length)return 0;if(n=Math.min(t.length-r,n),t.slice)for(var o=0;o<n;o++)e[i+o]=t[r+o];else for(o=0;o<n;o++)e[i+o]=t.get(r+o);return n}if("undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";i={ra:!1,url:i};var a=((t,e,i,n)=>(t=X(("string"==typeof t?t:Et(t))+"/"+e),i=Wt(i,n),Mt(t,4095&(void 0!==i?i:438)|32768,0)))(t,e,n,r);i.F?a.F=i.F:i.url&&(a.F=null,a.url=i.url),Object.defineProperties(a,{I:{get:function(){return this.F.length}}});var s={};return Object.keys(a.H).forEach((t=>{var e=a.H[t];s[t]=function(){return Jt(a),e.apply(null,arguments)}})),s.read=(t,e,i,n,r)=>(Jt(a),o(t,e,i,n,r)),s.ia=(t,e,i)=>{Jt(a);var n=st(e);if(!n)throw new yt(48);return o(t,E,n,e,i),{Ia:n,wa:!0}},a.H=s,a},Xt=(t,e,i,n,r,o,s,l,A,c)=>{function h(i){function a(i){c&&c(),l||jt(t,e,i,n,r,A),o&&o(),N()}(void 0).Pa(i,d,a,(()=>{s&&s(),N()}))||a(i)}var d=e?et(X(t+"/"+e)):t;L(),"string"==typeof i?function(t,e,i){var n="al "+t;a(t,(function(i){i||P('Loading data file "'+t+'" failed (no arrayBuffer).'),e(new Uint8Array(i)),n&&N()}),(function(){if(!i)throw'Loading data file "'+t+'" failed.';i()})),n&&L()}(i,(t=>h(t)),s):h(i)};function $t(t,e,i){if("/"===e.charAt(0))return e;if(-100===t)t="/";else{if(!(t=pt[t]))throw new yt(8);t=t.path}if(0==e.length){if(!i)throw new yt(44);return t}return X(t+"/"+e)}function te(t,e,i){try{var n=t(e)}catch(t){if(t&&t.node&&X(e)!==X(Et(t.node)))return-54;throw t}return B[i>>2]=n.Ba,B[i+4>>2]=0,B[i+8>>2]=n.ha,B[i+12>>2]=n.mode,B[i+16>>2]=n.Ha,B[i+20>>2]=n.uid,B[i+24>>2]=n.Ca,B[i+28>>2]=n.Z,B[i+32>>2]=0,G=[n.size>>>0,(O=n.size,1<=+Math.abs(O)?0<O?(0|Math.min(+Math.floor(O/4294967296),4294967295))>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],B[i+40>>2]=G[0],B[i+44>>2]=G[1],B[i+48>>2]=4096,B[i+52>>2]=n.za,B[i+56>>2]=n.xa.getTime()/1e3|0,B[i+60>>2]=0,B[i+64>>2]=n.Ga.getTime()/1e3|0,B[i+68>>2]=0,B[i+72>>2]=n.Aa.getTime()/1e3|0,B[i+76>>2]=0,G=[n.ha>>>0,(O=n.ha,1<=+Math.abs(O)?0<O?(0|Math.min(+Math.floor(O/4294967296),4294967295))>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],B[i+80>>2]=G[0],B[i+84>>2]=G[1],0}var ee=void 0;function ie(){return B[(ee+=4)-4>>2]}function ne(t){if(!(t=pt[t]))throw new yt(8);return t}var re,oe={};function ae(){if(!re){var t,e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:l||"./this.program"};for(t in oe)void 0===oe[t]?delete e[t]:e[t]=oe[t];var i=[];for(t in e)i.push(t+"="+e[t]);re=i}return re}function se(t,e,i,n){t||(t=this),this.parent=t,this.P=t.P,this.Y=null,this.id=gt++,this.name=e,this.mode=i,this.G={},this.H={},this.Z=n}Object.defineProperties(se.prototype,{read:{get:function(){return!(365&~this.mode)},set:function(t){t?this.mode|=365:this.mode&=-366}},write:{get:function(){return!(146&~this.mode)},set:function(t){t?this.mode|=146:this.mode&=-147}},Ea:{get:function(){
return 16384==(61440&this.mode)}},ra:{get:function(){return 8192==(61440&this.mode)}}}),zt(),ft=Array(4096),Rt(ht,"/"),Mt("/tmp",16895,0),Mt("/home",16895,0),Mt("/home/web_user",16895,0),(()=>{Mt("/dev",16895,0),_t(259,{read:()=>0,write:(t,e,i,n)=>n}),Tt("/dev/null",259),nt(1280,ot),nt(1536,at),Tt("/dev/tty",1280),Tt("/dev/tty1",1536);var t=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return function(){return crypto.getRandomValues(t),t[0]}}return function(){P("randomDevice")}}();qt("/dev","random",t),qt("/dev","urandom",t),Mt("/dev/shm",16895,0),Mt("/dev/shm/tmp",16895,0)})(),(()=>{Mt("/proc",16895,0);var t=Mt("/proc/self",16895,0);Mt("/proc/self/fd",16895,0),Rt({P:()=>{var e=Bt(t,"fd",16895,73);return e.G={X:(t,e)=>{var i=pt[+e];if(!i)throw new yt(8);return(t={parent:null,P:{ta:"fake"},G:{$:()=>i.path}}).parent=t}},e}},"/proc/self/fd")})(),i.FS_createPath=Zt,i.FS_createDataFile=jt,i.FS_createPreloadedFile=Xt,i.FS_unlink=Lt,i.FS_createLazyFile=Kt,i.FS_createDevice=qt;var le=!1;function Ae(t){var e=Array(y(t)+1);return t=m(t,e,0,e.length),e.length=t,e}var ce="function"==typeof atob?atob:function(t){var e="",i=0;t=t.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(i++)),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(i++)),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(i++)),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(i++));n=n<<2|r>>4,r=(15&r)<<4|o>>2;var s=(3&o)<<6|a;e+=String.fromCharCode(n),64!==o&&(e+=String.fromCharCode(r)),64!==a&&(e+=String.fromCharCode(s))}while(i<t.length);return e};function he(t){if(t.startsWith(H)){try{var e=ce(t.slice(H.length)),i=new Uint8Array(e.length);for(t=0;t<e.length;++t)i[t]=e.charCodeAt(t)}catch(t){throw Error("Converting base64 string to bytes failed.")}return i}}var de={e:function(t,e,i){ee=i;try{var n=ne(t);switch(e){case 0:var r=ie();return 0>r?-28:kt(n,r).R;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:return r=ie(),n.flags|=r,0;case 5:return r=ie(),C[r+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return B[ge()>>2]=28,-1}}catch(t){if(!(t instanceof yt))throw t;return-t.K}},t:function(t,e){try{var i=ne(t);return te(Pt,i.path,e)}catch(t){if(!(t instanceof yt))throw t;return-t.K}},m:function(t,e,i){try{var n=ne(t);if(!n.S){var r=vt(n.path,{W:!0}).node;if(!r.G.ca)throw new yt(54);var o=r.G.ca(r);n.S=o}t=0;for(var a=Vt(n,0,1),s=Math.floor(a/280);s<n.S.length&&t+280<=i;){var l=n.S[s];if("."===l)var A=n.node.id,c=4;else if(".."===l)A=vt(n.path,{parent:!0}).node.id,c=4;else{var h=Ct(n.node,l);A=h.id,c=8192==(61440&h.mode)?2:16384==(61440&h.mode)?4:40960==(61440&h.mode)?10:8}G=[A>>>0,(O=A,1<=+Math.abs(O)?0<O?(0|Math.min(+Math.floor(O/4294967296),4294967295))>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],B[e+t>>2]=G[0],B[e+t+4>>2]=G[1],G=[280*(s+1)>>>0,(O=280*(s+1),1<=+Math.abs(O)?0<O?(0|Math.min(+Math.floor(O/4294967296),4294967295))>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],B[e+t+8>>2]=G[0],B[e+t+12>>2]=G[1],C[e+t+16>>1]=280,E[e+t+18|0]=c,m(l,I,e+t+19,256),t+=280,s+=1}return Vt(n,280*s,0),t}catch(t){if(!(t instanceof yt))throw t;return-t.K}},d:function(t,e,i){ee=i;try{var n=ne(t);switch(e){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.J?0:-59;case 21519:if(!n.J)return-59;var r=ie();return B[r>>2]=0;case 21520:return n.J?-28:-59;case 21531:if(t=r=ie(),!n.H.Da)throw new yt(59);return n.H.Da(n,e,t);default:P("bad ioctl syscall "+e)}}catch(t){if(!(t instanceof yt))throw t;return-t.K}},q:function(t,e){try{return t=t?f(I,t):"",te(Ut,t,e)}catch(t){if(!(t instanceof yt))throw t;return-t.K}},r:function(t,e,i,n){try{e=e?f(I,e):"";var r=256&n;return e=$t(t,e,4096&n),te(r?Ut:Pt,e,i)}catch(t){if(!(t instanceof yt))throw t;return-t.K}},f:function(t,e,i,n){ee=n;try{e=$t(t,e=e?f(I,e):"");var r=n?ie():0;return Gt(e,i,r).R}catch(t){if(!(t instanceof yt))throw t;return-t.K}},s:function(t,e){try{return t=t?f(I,t):"",te(Pt,t,e)}catch(t){if(!(t instanceof yt))throw t;return-t.K}},b:function(){return Date.now()},i:function(){return!0},n:function(t,e,i,n,r,o){try{var a=pt[r];a&&2&i&&a&&a.H.ba&&a.H.ba(a,I.slice(t,t+e),o,e,n)}catch(t){if(!(t instanceof yt))throw t;return-t.K}},u:function(){P("")},h:()=>performance.now(),k:function(t,e,i){I.copyWithin(t,e,e+i)},l:function(){P("OOM")},o:function(t,e){var i=0;return ae().forEach((function(n,r){var o=e+i;for(r=w[t+4*r>>2]=o,o=0;o<n.length;++o)E[0|r++]=n.charCodeAt(o);E[0|r]=0,i+=n.length+1})),0},p:function(t,e){var i=ae();w[t>>2]=i.length;var n=0;return i.forEach((function(t){n+=t.length+1})),w[e>>2]=n,0},a:function(t){try{var e=ne(t);return Ht(e),0}catch(t){if(!(t instanceof yt))throw t;return t.K}},g:function(t,e,i,n){try{t:{var r=ne(t);t=e;for(var o=e=0;o<i;o++){var a=w[t>>2],s=w[t+4>>2];t+=8;var l=r,A=a,c=s,h=void 0,d=E;if(0>c||0>h)throw new yt(28);if(null===l.R)throw new yt(8);if(1==(2097155&l.flags))throw new yt(8);if(16384==(61440&l.node.mode))throw new yt(31);if(!l.H.read)throw new yt(28);var u=void 0!==h;if(u){if(!l.seekable)throw new yt(70)}else h=l.position;var p=l.H.read(l,d,A,c,h);u||(l.position+=p);var g=p;if(0>g){var f=-1;break t}if(e+=g,g<s)break}f=e}return B[n>>2]=f,0}catch(t){if(!(t instanceof yt))throw t;return t.K}},j:function(t,e,i,n,r){try{if(e=i+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*i:NaN,isNaN(e))return 61;var o=ne(t);return Vt(o,e,n),G=[o.position>>>0,(O=o.position,1<=+Math.abs(O)?0<O?(0|Math.min(+Math.floor(O/4294967296),4294967295))>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],B[r>>2]=G[0],B[r+4>>2]=G[1],o.S&&0===e&&0===n&&(o.S=null),0}catch(t){if(!(t instanceof yt))throw t;return t.K}},c:function(t,e,i,n){try{t:{var r=ne(t);t=e;for(var o=e=0;o<i;o++){var a=w[t>>2],s=w[t+4>>2];t+=8;var l=Yt(r,E,a,s);if(0>l){var A=-1;break t}e+=l}A=e}return w[n>>2]=A,0}catch(t){if(!(t instanceof yt))throw t;return t.K}}};!function(){function t(t){t=t.exports;var e,n={};for(e in t){var r=t[e];n[e]="function"==typeof r?V(r):r}i.asm=n,u=i.asm.v,v=e=u.buffer,i.HEAP8=E=new Int8Array(e),i.HEAP16=C=new Int16Array(e),i.HEAP32=B=new Int32Array(e),i.HEAPU8=I=new Uint8Array(e),i.HEAPU16=new Uint16Array(e),i.HEAPU32=w=new Uint32Array(e),i.HEAPF32=x=new Float32Array(e),i.HEAPF64=Q=new Float64Array(e),S=i.asm.A,D.unshift(i.asm.w),function(){var t=S.get,e={};S.get=i=>{var n=t.call(S,i),r=e[i];return r&&r.pa===n||(r=e[i]={pa:n,Ma:V(n)}),r.Ma}}(),N()}function e(e){t(e.instance)}function n(t){return(c||"function"!=typeof fetch?Promise.resolve().then((function(){return z()})):fetch(U,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+U+"'";return t.arrayBuffer()})).catch((function(){return z()}))).then((function(t){return WebAssembly.instantiate(t,o)})).then((function(t){return t})).then(t,(function(t){d("failed to asynchronously prepare wasm: "+t),P(t)}))}var o={a:de};if(L(),i.instantiateWasm)try{return i.instantiateWasm(o,t)}catch(t){return d("Module.instantiateWasm callback failed with error: "+t),!1}(c||"function"!=typeof WebAssembly.instantiateStreaming||U.startsWith(H)||"function"!=typeof fetch?n(e):fetch(U,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,o).then(e,(function(t){return d("wasm streaming compile failed: "+t),d("falling back to ArrayBuffer instantiation"),n(e)}))}))).catch(r)}(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.w).apply(null,arguments)},i._biliDRMGenSPC=function(){return(i._biliDRMGenSPC=i.asm.x).apply(null,arguments)},i._biliDRMParseCKC=function(){return(i._biliDRMParseCKC=i.asm.y).apply(null,arguments)};var ue,pe=i._free=function(){return(pe=i._free=i.asm.z).apply(null,arguments)},ge=i.___errno_location=function(){return(ge=i.___errno_location=i.asm.B).apply(null,arguments)},fe=i._malloc=function(){return(fe=i._malloc=i.asm.C).apply(null,arguments)},me=i._emscripten_builtin_memalign=function(){return(me=i._emscripten_builtin_memalign=i.asm.D).apply(null,arguments)}
;function ye(){function t(){if(!ue&&(ue=!0,i.calledRun=!0,!p)){if(i.noFSInit||lt||(lt=!0,zt(),i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?qt("/dev","stdin",i.stdin):Ft("/dev/tty","/dev/stdin"),i.stdout?qt("/dev","stdout",null,i.stdout):Ft("/dev/tty","/dev/stdout"),i.stderr?qt("/dev","stderr",null,i.stderr):Ft("/dev/tty1","/dev/stderr"),Gt("/dev/stdin",0),Gt("/dev/stdout",1),Gt("/dev/stderr",1)),mt=!1,W(D),n(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var t=i.postRun.shift();_.unshift(t)}W(_)}}if(!(0<M)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)R();W(k),0<M||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),t()}),1)):t())}}if(i.addRunDependency=L,i.removeRunDependency=N,i.FS_createPath=Zt,i.FS_createDataFile=jt,i.FS_createPreloadedFile=Xt,i.FS_createLazyFile=Kt,i.FS_createDevice=qt,i.FS_unlink=Lt,i.setValue=J,i.getValue=Z,F=function t(){ue||ye(),ue||(F=t)},i.run=ye,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();function be(t,e,i){if("string"!=typeof t&&t.length!==e)throw new TypeError(i)}ye();for(var ve=[],Ee=0;64>Ee;++Ee)ve[Ee]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[Ee];function Ie(t){for(var e=t.length,i=e%3,n=[],r=0,o=e-i;r<o;r+=16383){for(var a,s=n,l=s.push,A=t,c=r+16383>o?o:r+16383,h=[],d=r;d<c;d+=3)a=(A[d]<<16&16711680)+(A[d+1]<<8&65280)+(255&A[d+2]),h.push(ve[a>>18&63]+ve[a>>12&63]+ve[a>>6&63]+ve[63&a]);l.call(s,h.join(""))}return 1===i?(t=t[e-1],n.push(ve[t>>2]+ve[t<<4&63]+"==")):2===i&&(t=(t[e-2]<<8)+t[e-1],n.push(ve[t>>10]+ve[t>>4&63]+ve[t<<2&63]+"=")),n.join("")}return i.OSStatus={NoErr:0,ServerPlaybackContextVersionErr:-42580,ServerParserErr:-42581,ServerCKCSPCErr:-42582,ServerMissingRequiredTag:-42583,ServerCKNotFound:-42584,ServerParamErr:-42585,ServerMemErr:-42586,ServerFileNotFoundErr:-42587,ServerOpenSSLErr:-42588,ServerIntegrityErr:-42589,ServerVersionErr:-42590,ServerDupTagErr:-42591},i.biliDRMGenSPC=function(t,e,n){be(t,32,"[BiliDRMSDK] kid type error or kid.length != 32"),be(e,16,"[BiliDRMSDK] aesKey type error or aesKey.length != 16");var r=n.byteLength;if(10240<r)throw new RangeError("[BiliDRMSDK] cer length > 1024 * 10");t=b(t),e=b(e);var o=fe(r);n=new Uint8Array(n),I.set(n,o),n=fe(4);var a=fe(4),s=fe(4);J(a,n,"i32"),r=i._biliDRMGenSPC(t,e,o,r,a,s);var l=null,A=Z(s,"i32");if(0<A){var c=Z(a,"i32");l=Ie(I.subarray(c,c+A)),pe(c)}return pe(t),pe(e),pe(o),pe(a),pe(n),pe(s),{osStatus:r,spc:l}},i.biliDRMParseCKC=function(t,e){be(e,16,"[BiliDRMSDK] aesKey type error or aesKey.length != 16");var n=t.byteLength,r=new Uint8Array(t);t=fe(n),I.set(r,t),e=b(e),r=fe(4);var o=fe(4);J(o,r,"i32");var a=fe(4),s=fe(4);J(s,a,"i32");var l=fe(4),A=fe(4);n=i._biliDRMParseCKC(t,n,e,o,l,s,A);var c=Z(l,"i32"),h=Z(A,"i32"),d=Z(o,"i32"),u=Z(s,"i32"),p=null,g=null;return 0<c&&(p=Ie(I.subarray(d,d+c))),h&&(g=Ie(I.subarray(u,u+h))),pe(t),pe(e),pe(d),pe(o),pe(r),pe(u),pe(s),pe(a),pe(l),pe(A),{osStatus:n,iv:p,key:g}},t.ready});t.exports=i},71183:function(t,e,i){"use strict";i.d(e,{Ak:function(){return D},C5:function(){return h},H1:function(){return d},Hr:function(){return b},MX:function(){return _},RZ:function(){return Q},TV:function(){return I},Ub:function(){return E},VP:function(){return u},Xv:function(){return k},YW:function(){return m},ZC:function(){return x},ZP:function(){return B},_F:function(){return A},c9:function(){return y},hd:function(){return f},no:function(){return l},oA:function(){return S},pB:function(){return v},tw:function(){return g},uC:function(){return c},uf:function(){return w},w9:function(){return C},yC:function(){return p}});var n=Math.pow,r={683:function(t){var e;window,e=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){i.r(e);var n={32:.5,33:.4,34:.55,35:.6,36:.6,37:1,38:.8,39:.36,40:.4,41:.4,42:.6,43:.7,44:.4,45:.7,46:.4,47:.6,48:.65,49:.5,50:.6,51:.6,52:.6,53:.6,54:.6,55:.6,56:.6,57:.6,58:.4,59:.4,60:.7,61:.7,62:.7,63:.6,64:.95},r=function(){function t(){}return t.reset=function(e,i){if(e){if(!t.fragment)for(var n in t.fragment=document.createElement("div"),t.sizeTest){var r=t.sizeTest[n];r.ele=document.createElement("span"),r.ele.textContent=r.val,r.ele.style.cssText="margin:0;padding:0;line-height:1;font-size:20px;font-family:inherit;font-weight:inherit;",t.fragment.appendChild(r.ele)}for(var n in t.fragment.style.cssText="opacity:0;pointer-events:none;"+i,e.appendChild(t.fragment),t.sizeScale={},t.sizeTest){var o=t.sizeTest[n];t.sizeScale[n]=o.ele.getBoundingClientRect().width/o.def/20}e.removeChild(t.fragment)}else t.sizeScale=void 0},t.getLen=function(e){if(!e||!t.sizeScale)return 0;for(var i,r=0,o=t.sizeScale.fullAngle,a=o/2,s=0;s<e.length;s++)if((i=e.charCodeAt(s))>=32&&i<=64)r+=n[i]*t.sizeScale.number;else if(i>=8192&&i<=10175)r+=o;else if(i>=11904&&i<=40959)r+=o;else if(i>=63744&&i<=64255)r+=o;else if(i>=65040&&i<=65055)r+=o;else if(i>=65072&&i<=65103)r+=o;else if(i>=65280&&i<=65376)r+=o;else if(i>=65471&&i<=65473)r+=o;else if(i>=65480&&i<=65481)r+=o;else if(i>=65488&&i<=65489)r+=o;else if(i>=65496&&i<=65497)r+=o;else if(i>=65501&&i<=65512)r+=o;else if(65519!==i)if(i>=65377&&i<=65470)r+=a;else if(i>=65474&&i<=65479)r+=a;else if(i>=65482&&i<=65487)r+=a;else if(i>=65490&&i<=65495)r+=a;else if(i>=65498&&i<=65500)r+=a;else{if(!(i>=65513&&i<=65518))return 0;r+=a}else r+=o;return r},t.dispose=function(){t.sizeScale=void 0},t.sizeTest={number:{val:"9",def:.6},fullAngle:{val:"麤",def:1}},t}();e.default=r}]).default},t.exports=e()},6732:function(t,e,i){var n=i(5409),r=i(4399);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s,l,A=i(5349).codes,c=A.ERR_AMBIGUOUS_ARGUMENT,h=A.ERR_INVALID_ARG_TYPE,d=A.ERR_INVALID_ARG_VALUE,u=A.ERR_INVALID_RETURN_VALUE,p=A.ERR_MISSING_ARGS,g=i(6342),f=i(1344).inspect,m=i(1344).types,y=m.isPromise,b=m.isRegExp,v=i(3921)(),E=i(2197)(),I=i(1187)("RegExp.prototype.test");function C(){var t=i(1235);s=t.isDeepEqual,l=t.isDeepStrictEqual}var B=!1,w=t.exports=k,x={};function Q(t){if(t.message instanceof Error)throw t.message;throw new g(t)}function S(t,e,i,n){if(!i){var r=!1;if(0===e)r=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new g({actual:i,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=r,o}}function k(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];S.apply(void 0,[k,e.length].concat(e))}w.fail=function t(e,i,o,a,s){var l,A=arguments.length;if(0===A?l="Failed":1===A?(o=e,e=void 0):(!1===B&&(B=!0,
(n.emitWarning?n.emitWarning:r.warn.bind(r))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===A&&(a="!=")),o instanceof Error)throw o;var c={actual:e,expected:i,operator:void 0===a?"fail":a,stackStartFn:s||t};void 0!==o&&(c.message=o);var h=new g(c);throw l&&(h.message=l,h.generatedMessage=!0),h},w.AssertionError=g,w.ok=k,w.equal=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");e!=i&&Q({actual:e,expected:i,message:n,operator:"==",stackStartFn:t})},w.notEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");e==i&&Q({actual:e,expected:i,message:n,operator:"!=",stackStartFn:t})},w.deepEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),s(e,i)||Q({actual:e,expected:i,message:n,operator:"deepEqual",stackStartFn:t})},w.notDeepEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),s(e,i)&&Q({actual:e,expected:i,message:n,operator:"notDeepEqual",stackStartFn:t})},w.deepStrictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),l(e,i)||Q({actual:e,expected:i,message:n,operator:"deepStrictEqual",stackStartFn:t})},w.notDeepStrictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");void 0===s&&C(),l(e,i)&&Q({actual:e,expected:i,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},w.strictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");E(e,i)||Q({actual:e,expected:i,message:n,operator:"strictEqual",stackStartFn:t})},w.notStrictEqual=function t(e,i,n){if(arguments.length<2)throw new p("actual","expected");E(e,i)&&Q({actual:e,expected:i,message:n,operator:"notStrictEqual",stackStartFn:t})};var D,_,R,M=(D=function t(e,i,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&b(e[t])&&I(e[t],n[t])?r[t]=n[t]:r[t]=e[t])}))},_&&a(D.prototype,_),R&&a(D,R),Object.defineProperty(D,"prototype",{writable:!1}),D);function T(t,e,i,n){if("function"!=typeof e){if(b(e))return I(e,t);if(2===arguments.length)throw new h("expected",["Function","RegExp"],e);if("object"!==o(t)||null===t){var r=new g({actual:t,expected:e,message:i,operator:"deepStrictEqual",stackStartFn:n});throw r.operator=n.name,r}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",e,"may not be an empty object");return void 0===s&&C(),a.forEach((function(r){"string"==typeof t[r]&&b(e[r])&&I(e[r],t[r])||function(t,e,i,n,r,o){if(!(i in t)||!l(t[i],e[i])){if(!n){var a=new M(t,r),s=new M(e,r,t),A=new g({actual:a,expected:s,operator:"deepStrictEqual",stackStartFn:o});throw A.actual=t,A.expected=e,A.operator=o.name,A}Q({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}(t,e,r,i,a,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function F(t){if("function"!=typeof t)throw new h("fn","Function",t);try{t()}catch(t){return t}return x}function L(t){return y(t)||null!==t&&"object"===o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function N(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!L(e=t()))throw new u("instance of Promise","promiseFn",e)}else{if(!L(t))throw new h("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return x})).catch((function(t){return t}))}))}function P(t,e,i,n){if("string"==typeof i){if(4===arguments.length)throw new h("error",["Object","Error","Function","RegExp"],i);if("object"===o(e)&&null!==e){if(e.message===i)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===i)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=i,i=void 0}else if(null!=i&&"object"!==o(i)&&"function"!=typeof i)throw new h("error",["Object","Error","Function","RegExp"],i);if(e===x){var r="";i&&i.name&&(r+=" (".concat(i.name,")")),r+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";Q({actual:void 0,expected:i,operator:t.name,message:"Missing expected ".concat(a).concat(r),stackStartFn:t})}if(i&&!T(e,i,n,t))throw e}function U(t,e,i,n){if(e!==x){if("string"==typeof i&&(n=i,i=void 0),!i||T(e,i)){var r=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";Q({actual:e,expected:i,operator:t.name,message:"Got unwanted ".concat(o).concat(r,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function O(t,e,i,n,r){if(!b(e))throw new h("regexp","RegExp",e);var a="match"===r;if("string"!=typeof t||I(e,t)!==a){if(i instanceof Error)throw i;var s=!i;i=i||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(o(t)," (").concat(f(t),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(f(e),". Input:\n\n").concat(f(t),"\n"));var l=new g({actual:t,expected:e,message:i,operator:r,stackStartFn:n});throw l.generatedMessage=s,l}}function G(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];S.apply(void 0,[G,e.length].concat(e))}w.throws=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];P.apply(void 0,[t,F(e)].concat(n))},w.rejects=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return N(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},w.doesNotThrow=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];U.apply(void 0,[t,F(e)].concat(n))},w.doesNotReject=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return N(e).then((function(e){return U.apply(void 0,[t,e].concat(n))}))},w.ifError=function t(e){if(null!=e){var i="ifError got unwanted exception: ";"object"===o(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?i+=e.constructor.name:i+=e.message:i+=f(e);var n=new g({actual:e,expected:null,operator:"ifError",message:i,stackStartFn:t}),r=e.stack;if("string"==typeof r){var a=r.split("\n");a.shift();for(var s=n.stack.split("\n"),l=0;l<a.length;l++){var A=s.indexOf(a[l]);if(-1!==A){s=s.slice(0,A);break}}n.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw n}},w.match=function t(e,i,n){O(e,i,n,t,"match")},w.doesNotMatch=function t(e,i,n){O(e,i,n,t,"doesNotMatch")},w.strict=v(G,w,{equal:w.strictEqual,deepEqual:w.deepStrictEqual,notEqual:w.notStrictEqual,notDeepEqual:w.notDeepStrictEqual}),w.strict.strict=w.strict},6342:function(t,e,i){var n=i(5409);function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return(e=l(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t){if("object"!==f(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!==f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}function A(t,e){if(e&&("object"===f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined")
;return c(t)}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e="function"==typeof Map?new Map:void 0;return h=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,g(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)},h(t)}function d(t,e,i){return(d=u()?Reflect.construct.bind():function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&p(r,i.prototype),r}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=i(1344).inspect,y=i(5349).codes.ERR_INVALID_ARG_TYPE;function b(t,e,i){return(void 0===i||i>t.length)&&(i=t.length),t.substring(i-e.length,i)===e}var v="",E="",I="",C="",B={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(t){var e=Object.keys(t),i=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){i[e]=t[e]})),Object.defineProperty(i,"message",{value:t.message}),i}function x(t){return m(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var Q=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(d,t);var i,r,a,l,h=(i=d,r=u(),function(){var t,e=g(i);if(r){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return A(this,t)});function d(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),"object"!==f(t)||null===t)throw new y("options","Object",t);var i=t.message,r=t.operator,o=t.stackStartFn,a=t.actual,s=t.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)e=h.call(this,String(i));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(v="[34m",E="[32m",C="[39m",I="[31m"):(v="",E="",C="",I="")),"object"===f(a)&&null!==a&&"object"===f(s)&&null!==s&&"stack"in a&&a instanceof Error&&"stack"in s&&s instanceof Error&&(a=w(a),s=w(s)),"deepStrictEqual"===r||"strictEqual"===r)e=h.call(this,function(t,e,i){var r="",o="",a=0,s="",l=!1,A=x(t),c=A.split("\n"),h=x(e).split("\n"),d=0,u="";if("strictEqual"===i&&"object"===f(t)&&"object"===f(e)&&null!==t&&null!==e&&(i="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var p=c[0].length+h[0].length;if(p<=10){if(!("object"===f(t)&&null!==t||"object"===f(e)&&null!==e||0===t&&0===e))return"".concat(B[i],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==i&&p<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][d]===h[0][d];)d++;d>2&&(u="\n  ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var i=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,i-t.length)}(" ",d),"^"),d=0)}}for(var g=c[c.length-1],m=h[h.length-1];g===m&&(d++<2?s="\n  ".concat(g).concat(s):r=g,c.pop(),h.pop(),0!==c.length&&0!==h.length);)g=c[c.length-1],m=h[h.length-1];var y=Math.max(c.length,h.length);if(0===y){var w=A.split("\n");if(w.length>30)for(w[26]="".concat(v,"...").concat(C);w.length>27;)w.pop();return"".concat(B.notIdentical,"\n\n").concat(w.join("\n"),"\n")}d>3&&(s="\n".concat(v,"...").concat(C).concat(s),l=!0),""!==r&&(s="\n  ".concat(r).concat(s),r="");var Q=0,S=B[i]+"\n".concat(E,"+ actual").concat(C," ").concat(I,"- expected").concat(C),k=" ".concat(v,"...").concat(C," Lines skipped");for(d=0;d<y;d++){var D=d-a;if(c.length<d+1)D>1&&d>2&&(D>4?(o+="\n".concat(v,"...").concat(C),l=!0):D>3&&(o+="\n  ".concat(h[d-2]),Q++),o+="\n  ".concat(h[d-1]),Q++),a=d,r+="\n".concat(I,"-").concat(C," ").concat(h[d]),Q++;else if(h.length<d+1)D>1&&d>2&&(D>4?(o+="\n".concat(v,"...").concat(C),l=!0):D>3&&(o+="\n  ".concat(c[d-2]),Q++),o+="\n  ".concat(c[d-1]),Q++),a=d,o+="\n".concat(E,"+").concat(C," ").concat(c[d]),Q++;else{var _=h[d],R=c[d],M=R!==_&&(!b(R,",")||R.slice(0,-1)!==_);M&&b(_,",")&&_.slice(0,-1)===R&&(M=!1,R+=","),M?(D>1&&d>2&&(D>4?(o+="\n".concat(v,"...").concat(C),l=!0):D>3&&(o+="\n  ".concat(c[d-2]),Q++),o+="\n  ".concat(c[d-1]),Q++),a=d,o+="\n".concat(E,"+").concat(C," ").concat(R),r+="\n".concat(I,"-").concat(C," ").concat(_),Q+=2):(o+=r,r="",1!==D&&0!==d||(o+="\n  ".concat(R),Q++))}if(Q>20&&d<y-2)return"".concat(S).concat(k,"\n").concat(o,"\n").concat(v,"...").concat(C).concat(r,"\n")+"".concat(v,"...").concat(C)}return"".concat(S).concat(l?k:"","\n").concat(o).concat(r).concat(s).concat(u)}(a,s,r));else if("notDeepStrictEqual"===r||"notStrictEqual"===r){var u=B[r],p=x(a).split("\n");if("notStrictEqual"===r&&"object"===f(a)&&null!==a&&(u=B.notStrictEqualObject),p.length>30)for(p[26]="".concat(v,"...").concat(C);p.length>27;)p.pop();e=1===p.length?h.call(this,"".concat(u," ").concat(p[0])):h.call(this,"".concat(u,"\n\n").concat(p.join("\n"),"\n"))}else{var g=x(a),m="",Q=B[r];"notDeepEqual"===r||"notEqual"===r?(g="".concat(B[r],"\n\n").concat(g)).length>1024&&(g="".concat(g.slice(0,1021),"...")):(m="".concat(x(s)),g.length>512&&(g="".concat(g.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),"deepEqual"===r||"equal"===r?g="".concat(Q,"\n\n").concat(g,"\n\nshould equal\n\n"):m=" ".concat(r," ").concat(m)),e=h.call(this,"".concat(g).concat(m))}return Error.stackTraceLimit=l,e.generatedMessage=!i,Object.defineProperty(c(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=s,e.operator=r,Error.captureStackTrace&&Error.captureStackTrace(c(e),o),e.stack,e.name="AssertionError",A(e)}return a=d,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return m(this,o(o({},e),{},{customInspect:!1,depth:0}))}}])&&s(a.prototype,l),Object.defineProperty(a,"prototype",{writable:!1}),d}(h(Error),m.custom);t.exports=Q},5349:function(t,e,i){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){
return t.__proto__||Object.getPrototypeOf(t)})(t)}var a,s,l={};function A(t,e,i){i||(i=Error);var a=function(i){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}(l,i);var a,s=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,r=o(t);if(e){var a=o(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,i)}}(l);function l(i,n,r){var o,a,A,c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(o=s.call(this,(a=i,A=n,c=r,"string"==typeof e?e:e(a,A,c)))).code=t,o}return a=l,Object.defineProperty(a,"prototype",{writable:!1}),a}(i);l[t]=a}function c(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),i>2?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",(function(t,e,r){var o,s,l,A,h,d;if(void 0===a&&(a=i(6732)),a("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(s="not ",e.substr(0,4)===s)?(o="must not be",e=e.replace(/^not /,"")):o="must be",A=t,h=" argument",(void 0===d||d>A.length)&&(d=A.length),A.substring(d-9,d)===h)l="The ".concat(t," ").concat(o," ").concat(c(e,"type"));else{var u=function(t,e,i){return"number"!=typeof i&&(i=0),!(i+1>t.length)&&-1!==t.indexOf(".",i)}(t)?"property":"argument";l='The "'.concat(t,'" ').concat(u," ").concat(o," ").concat(c(e,"type"))}return l+". Received type ".concat(n(r))}),TypeError),A("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=i(1344));var r=s.inspect(e);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(r)}),TypeError,RangeError),A("ERR_INVALID_RETURN_VALUE",(function(t,e,i){var r;return r=i&&i.constructor&&i.constructor.name?"instance of ".concat(i.constructor.name):"type ".concat(n(i)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(r,".")}),TypeError),A("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===a&&(a=i(6732)),a(e.length>0,"At least one arg needs to be specified");var r="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:r+="".concat(e[0]," argument");break;case 2:r+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:r+=e.slice(0,o-1).join(", "),r+=", and ".concat(e[o-1]," arguments")}return"".concat(r," must be specified")}),TypeError),t.exports.codes=l},1235:function(t,e,i){function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,r,o,a,s=[],l=!0,A=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==e);l=!0);}catch(t){A=!0,r=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(A)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},l=function(t){var e=[];return t.forEach((function(t,i){return e.push([i,t])})),e},A=Object.is?Object.is:i(9068),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:i(4954);function d(t){return t.call.bind(t)}var u=d(Object.prototype.hasOwnProperty),p=d(Object.prototype.propertyIsEnumerable),g=d(Object.prototype.toString),f=i(1344).types,m=f.isAnyArrayBuffer,y=f.isArrayBufferView,b=f.isDate,v=f.isMap,E=f.isRegExp,I=f.isSet,C=f.isNativeError,B=f.isBoxedPrimitive,w=f.isNumberObject,x=f.isStringObject,Q=f.isBooleanObject,S=f.isBigIntObject,k=f.isSymbolObject,D=f.isFloat32Array,_=f.isFloat64Array;function R(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var i=t.charCodeAt(e);if(i<48||i>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function M(t){return Object.keys(t).filter(R).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function T(t,e){if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0}function F(t,e,i,n){if(t===e)return 0!==t||!i||A(t,e);if(i){if("object"!==o(t))return"number"==typeof t&&h(t)&&h(e);if("object"!==o(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==o(t))return(null===e||"object"!==o(e))&&t==e;if(null===e||"object"!==o(e))return!1}var r,s,l,c,d,u,p=g(t);if(p!==g(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var f=M(t),R=M(e);return f.length===R.length&&N(t,e,i,n,1,f)}if("[object Object]"===p&&(!v(t)&&v(e)||!I(t)&&I(e)))return!1;if(b(t)){if(!b(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(E(t)){if(!E(e)||(l=t,c=e,!(a?l.source===c.source&&l.flags===c.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(c))))return!1}else if(C(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(y(t)){if(i||!D(t)&&!_(t)){if(u=e,(d=t).byteLength!==u.byteLength||0!==T(new Uint8Array(d.buffer,d.byteOffset,d.byteLength),new Uint8Array(u.buffer,u.byteOffset,u.byteLength)))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var i=0;i<t.byteLength;i++)if(t[i]!==e[i])return!1;return!0}(t,e))return!1;var F=M(t),L=M(e);return F.length===L.length&&N(t,e,i,n,0,F)}if(I(t))return!(!I(e)||t.size!==e.size)&&N(t,e,i,n,2);if(v(t))return!(!v(e)||t.size!==e.size)&&N(t,e,i,n,3);if(m(t)){if(s=e,(r=t).byteLength!==s.byteLength||0!==T(new Uint8Array(r),new Uint8Array(s)))return!1}else if(B(t)&&!function(t,e){return w(t)?w(e)&&A(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):x(t)?x(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):Q(t)?Q(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):S(t)?S(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):k(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return N(t,e,i,n,0)}function L(t,e){return e.filter((function(e){return p(t,e)}))}function N(t,e,i,r,a,A){if(5===arguments.length){A=Object.keys(t);var h=Object.keys(e);if(A.length!==h.length)return!1}
for(var d=0;d<A.length;d++)if(!u(e,A[d]))return!1;if(i&&5===arguments.length){var g=c(t);if(0!==g.length){var f=0;for(d=0;d<g.length;d++){var m=g[d];if(p(t,m)){if(!p(e,m))return!1;A.push(m),f++}else if(p(e,m))return!1}var y=c(e);if(g.length!==y.length&&L(e,y).length!==f)return!1}else{var b=c(e);if(0!==b.length&&0!==L(e,b).length)return!1}}if(0===A.length&&(0===a||1===a&&0===t.length||0===t.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var v=r.val1.get(t);if(void 0!==v){var E=r.val2.get(e);if(void 0!==E)return v===E}r.position++}r.val1.set(t,r.position),r.val2.set(e,r.position);var I=function(t,e,i,r,a,A){var c=0;if(2===A){if(!function(t,e,i,n){for(var r=null,a=s(t),l=0;l<a.length;l++){var A=a[l];if("object"===o(A)&&null!==A)null===r&&(r=new Set),r.add(A);else if(!e.has(A)){if(i)return!1;if(!O(t,e,A))return!1;null===r&&(r=new Set),r.add(A)}}if(null!==r){for(var c=s(e),h=0;h<c.length;h++){var d=c[h];if("object"===o(d)&&null!==d){if(!P(r,d,i,n))return!1}else if(!i&&!t.has(d)&&!P(r,d,i,n))return!1}return 0===r.size}return!0}(t,e,i,a))return!1}else if(3===A){if(!function(t,e,i,r){for(var a=null,s=l(t),A=0;A<s.length;A++){var c=n(s[A],2),h=c[0],d=c[1];if("object"===o(h)&&null!==h)null===a&&(a=new Set),a.add(h);else{var u=e.get(h);if(void 0===u&&!e.has(h)||!F(d,u,i,r)){if(i)return!1;if(!G(t,e,h,d,r))return!1;null===a&&(a=new Set),a.add(h)}}}if(null!==a){for(var p=l(e),g=0;g<p.length;g++){var f=n(p[g],2),m=f[0],y=f[1];if("object"===o(m)&&null!==m){if(!H(a,t,m,y,i,r))return!1}else if(!(i||t.has(m)&&F(t.get(m),y,!1,r)||H(a,t,m,y,!1,r)))return!1}return 0===a.size}return!0}(t,e,i,a))return!1}else if(1===A)for(;c<t.length;c++){if(!u(t,c)){if(u(e,c))return!1;for(var h=Object.keys(t);c<h.length;c++){var d=h[c];if(!u(e,d)||!F(t[d],e[d],i,a))return!1}return h.length===Object.keys(e).length}if(!u(e,c)||!F(t[c],e[c],i,a))return!1}for(c=0;c<r.length;c++){var p=r[c];if(!F(t[p],e[p],i,a))return!1}return!0}(t,e,i,A,r,a);return r.val1.delete(t),r.val2.delete(e),I}function P(t,e,i,n){for(var r=s(t),o=0;o<r.length;o++){var a=r[o];if(F(e,a,i,n))return t.delete(a),!0}return!1}function U(t){switch(o(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(h(t))return!1}return!0}function O(t,e,i){var n=U(i);return null!=n?n:e.has(n)&&!t.has(n)}function G(t,e,i,n,r){var o=U(i);if(null!=o)return o;var a=e.get(o);return!(void 0===a&&!e.has(o)||!F(n,a,!1,r))&&!t.has(o)&&F(n,a,!1,r)}function H(t,e,i,n,r,o){for(var a=s(t),l=0;l<a.length;l++){var A=a[l];if(F(i,A,r,o)&&F(n,e.get(A),r,o))return t.delete(A),!0}return!1}t.exports={isDeepEqual:function(t,e){return F(t,e,!1)},isDeepStrictEqual:function(t,e){return F(t,e,!0)}}},4933:function(t,e){e.byteLength=function(t){var e=s(t),i=e[0],n=e[1];return 3*(i+n)/4-n},e.toByteArray=function(t){var e,i,o,a=s(t),l=a[0],A=a[1],c=new r(3*(l+(o=A))/4-o),h=0,d=A>0?l-4:l;for(i=0;i<d;i+=4)e=n[t.charCodeAt(i)]<<18|n[t.charCodeAt(i+1)]<<12|n[t.charCodeAt(i+2)]<<6|n[t.charCodeAt(i+3)],c[h++]=e>>16&255,c[h++]=e>>8&255,c[h++]=255&e;return 2===A&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,c[h++]=255&e),1===A&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=16383,s=0,A=n-r;s<A;s+=a)o.push(l(t,s,s+a>A?A:s+a));return 1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),o.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)i[a]=o[a],n[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,n){for(var r,o,a=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},6533:function(t,e,i){var r=i(4399);const o=i(4933),a=i(3328),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const l=2147483647;function A(t){if(t>l)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return h(t,e,i)}function h(t,e,i){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const i=0|m(t,e);let n=A(i);const r=n.write(t,e);return r!==i&&(n=n.slice(0,r)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return g(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return g(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return g(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,i);const r=function(t){if(c.isBuffer(t)){const e=0|f(t.length),i=A(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?A(0):p(t):"Buffer"===t.type&&Array.isArray(t.data)?p(t.data):void 0}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function d(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return d(t),A(t<0?0:0|f(t))}function p(t){const e=t.length<0?0:0|f(t.length),i=A(e);for(let n=0;n<e;n+=1)i[n]=255&t[n];return i}function g(t,e,i){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Object.setPrototypeOf(n,c.prototype),n}function f(t){if(t>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const i=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return q(t).length;default:if(r)return n?-1:j(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,i){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,i);case"utf8":case"utf-8":return S(this,e,i);case"ascii":return D(this,e,i);case"latin1":case"binary":return _(this,e,i);case"base64":return Q(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,i){const n=t[e];t[e]=t[i],t[i]=n}function v(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,
i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),X(i=+i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:E(t,e,i,n,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):E(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function E(t,e,i,n,r){let o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}function A(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){let n=-1;for(o=i;o<s;o++)if(A(t,o)===A(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(i+l>s&&(i=s-l),o=i;o>=0;o--){let i=!0;for(let n=0;n<l;n++)if(A(t,o+n)!==A(e,n)){i=!1;break}if(i)return o}return-1}function I(t,e,i,n){i=Number(i)||0;const r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;const o=e.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(e.substr(2*a,2),16);if(X(n))return a;t[i+a]=n}return a}function C(t,e,i,n){return J(j(e,t.length-i),t,i,n)}function B(t,e,i,n){return J(function(t){const e=[];for(let i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,n)}function w(t,e,i,n){return J(q(e),t,i,n)}function x(t,e,i,n){return J(function(t,e){let i,n,r;const o=[];for(let a=0;a<t.length&&!((e-=2)<0);++a)i=t.charCodeAt(a),n=i>>8,r=i%256,o.push(r),o.push(n);return o}(e,t.length-i),t,i,n)}function Q(t,e,i){return 0===e&&i===t.length?o.fromByteArray(t):o.fromByteArray(t.slice(e,i))}function S(t,e,i){i=Math.min(t.length,i);const n=[];let r=e;for(;r<i;){const e=t[r];let o=null,a=e>239?4:e>223?3:e>191?2:1;if(r+a<=i){let i,n,s,l;switch(a){case 1:e<128&&(o=e);break;case 2:i=t[r+1],128==(192&i)&&(l=(31&e)<<6|63&i,l>127&&(o=l));break;case 3:i=t[r+1],n=t[r+2],128==(192&i)&&128==(192&n)&&(l=(15&e)<<12|(63&i)<<6|63&n,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:i=t[r+1],n=t[r+2],s=t[r+3],128==(192&i)&&128==(192&n)&&128==(192&s)&&(l=(15&e)<<18|(63&i)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),r+=a}return function(t){const e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);let i="",n=0;for(;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=k));return i}(n)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,i){return h(t,e,i)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,i){return r=e,o=i,d(n=t),n<=0?A(n):void 0!==r?"string"==typeof o?A(n).fill(r,o):A(n).fill(r):A(n);var n,r,o},c.allocUnsafe=function(t){return u(t)},c.allocUnsafeSlow=function(t){return u(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let i=t.length,n=e.length;for(let r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;const n=c.allocUnsafe(e);let r=0;for(i=0;i<t.length;++i){let e=t[i];if(K(e,Uint8Array))r+e.length>n.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(n,r)):Uint8Array.prototype.set.call(n,e,r);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,r)}r+=e.length}return n},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?S(this,0,t):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const i=e.IS;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(t,e,i,n,r){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;let o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(e>>>=0);const s=Math.min(o,a),l=this.slice(n,r),A=t.slice(e,i);for(let t=0;t<s;++t)if(l[t]!==A[t]){o=l[t],a=A[t];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},c.prototype.indexOf=function(t,e,i){return v(this,t,e,i,!0)},c.prototype.lastIndexOf=function(t,e,i){return v(this,t,e,i,!1)},c.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}const r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return I(this,t,e,i);case"utf8":case"utf-8":return C(this,t,e,i);case"ascii":case"latin1":case"binary":return B(this,t,e,i);case"base64":return w(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function D(t,e,i){let n="";i=Math.min(t.length,i);for(let r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function _(t,e,i){let n="";i=Math.min(t.length,i);for(let r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function R(t,e,i){const n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);let r="";for(let n=e;n<i;++n)r+=$[t[n]];return r}function M(t,e,i){const n=t.slice(e,i);let r="";for(let t=0;t<n.length-1;t+=2)r+=String.fromCharCode(n[t]+256*n[t+1]);return r}function T(t,e,i){
if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,i,n,r,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function L(t,e,i,n,r){Y(e,n,r,t,i,7);let o=Number(e&BigInt(4294967295));t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o,o>>=8,t[i++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[i++]=a,a>>=8,t[i++]=a,a>>=8,t[i++]=a,a>>=8,t[i++]=a,i}function N(t,e,i,n,r){Y(e,n,r,t,i,7);let o=Number(e&BigInt(4294967295));t[i+7]=o,o>>=8,t[i+6]=o,o>>=8,t[i+5]=o,o>>=8,t[i+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[i+3]=a,a>>=8,t[i+2]=a,a>>=8,t[i+1]=a,a>>=8,t[i]=a,i+8}function P(t,e,i,n,r,o){if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function U(t,e,i,n,r){return e=+e,i>>>=0,r||P(t,0,i,4),a.write(t,e,i,n,23,4),i+4}function O(t,e,i,n,r){return e=+e,i>>>=0,r||P(t,0,i,8),a.write(t,e,i,n,52,8),i+8}c.prototype.slice=function(t,e){const i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||T(t,e,this.length);let n=this[t],r=1,o=0;for(;++o<e&&(r*=256);)n+=this[t+o]*r;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||T(t,e,this.length);let n=this[t+--e],r=1;for(;e>0&&(r*=256);)n+=this[t+--e]*r;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=tt((function(t){z(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||W(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*n(2,24),o=this[++t]+256*this[++t]+65536*this[++t]+i*n(2,24);return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=tt((function(t){z(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||W(t,this.length-8);const r=e*n(2,24)+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*n(2,24)+65536*this[++t]+256*this[++t]+i;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||T(t,e,this.length);let n=this[t],r=1,o=0;for(;++o<e&&(r*=256);)n+=this[t+o]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||T(t,e,this.length);let n=e,r=1,o=this[t+--n];for(;n>0&&(r*=256);)o+=this[t+--n]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=tt((function(t){z(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||W(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(i<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*n(2,24))})),c.prototype.readBigInt64BE=tt((function(t){z(t>>>=0,"offset");const e=this[t],i=this[t+7];void 0!==e&&void 0!==i||W(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*n(2,24)+65536*this[++t]+256*this[++t]+i)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),a.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),a.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),a.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),a.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,i,n){t=+t,e>>>=0,i>>>=0,n||F(this,t,e,i,Math.pow(2,8*i)-1,0);let r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,i,n){t=+t,e>>>=0,i>>>=0,n||F(this,t,e,i,Math.pow(2,8*i)-1,0);let r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=tt((function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=tt((function(t,e=0){return N(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*i-1);F(this,t,e,i,n-1,-n)}let r=0,o=1,a=0;for(this[e]=255&t;++r<i&&(o*=256);)t<0&&0===a&&0!==this[e+r-1]&&(a=1),this[e+r]=(t/o|0)-a&255;return e+i},c.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*i-1);F(this,t,e,i,n-1,-n)}let r=i-1,o=1,a=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/o|0)-a&255;return e+i},c.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=tt((function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=tt((function(t,e=0){return N(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,i){return U(this,t,e,!0,i)},c.prototype.writeFloatBE=function(t,e,i){return U(this,t,e,!1,i)},c.prototype.writeDoubleLE=function(t,e,i){return O(this,t,e,!0,i)},c.prototype.writeDoubleBE=function(t,e,i){return O(this,t,e,!1,i)},c.prototype.copy=function(t,e,i,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0
;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);const r=n-i;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,i,n):Uint8Array.prototype.set.call(t,this.subarray(i,n),e),r},c.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;let r;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else{const o=c.isBuffer(t)?t:c.from(t,n),a=o.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<i-e;++r)this[r+e]=o[r%a]}return this};const G={};function H(t,e,i){G[t]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function V(t){let e="",i=t.length;const n="-"===t[0]?1:0;for(;i>=n+4;i-=3)e=`_${t.slice(i-3,i)}${e}`;return`${t.slice(0,i)}${e}`}function Y(t,e,i,n,r,o){if(t>i||t<e){const n="bigint"==typeof e?"n":"";let r;throw r=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${i}${n}`,new G.ERR_OUT_OF_RANGE("value",r,t)}var a,s,l;a=n,l=o,z(s=r,"offset"),void 0!==a[s]&&void 0!==a[s+l]||W(s,a.length-(l+1))}function z(t,e){if("number"!=typeof t)throw new G.ERR_INVALID_ARG_TYPE(e,"number",t)}function W(t,e,i){if(Math.floor(t)!==t)throw z(t,i),new G.ERR_OUT_OF_RANGE(i||"offset","an integer",t);if(e<0)throw new G.ERR_BUFFER_OUT_OF_BOUNDS;throw new G.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${e}`,t)}H("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),H("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),H("ERR_OUT_OF_RANGE",(function(t,e,i){let r=`The value of "${t}" is out of range.`,o=i;return Number.isInteger(i)&&Math.abs(i)>n(2,32)?o=V(String(i)):"bigint"==typeof i&&(o=String(i),(i>n(BigInt(2),BigInt(32))||i<-n(BigInt(2),BigInt(32)))&&(o=V(o)),o+="n"),r+=` It must be ${e}. Received ${o}`,r}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function j(t,e){let i;e=e||1/0;const n=t.length;let r=null;const o=[];for(let a=0;a<n;++a){if(i=t.charCodeAt(a),i>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function q(t){return o.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,i,n){let r;for(r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const $=function(){const t="0123456789abcdef",e=new Array(256);for(let i=0;i<16;++i){const n=16*i;for(let r=0;r<16;++r)e[n+r]=t[i]+t[r]}return e}();function tt(t){return"undefined"==typeof BigInt?et:t}function et(){throw new Error("BigInt not supported")}},3602:function(t,e,i){var n=i(9524),r=i(9764),o=i(4294),a=i(573);t.exports=a||n.call(o,r)},1091:function(t,e,i){var n=i(9524),r=i(9764),o=i(3602);t.exports=function(){return o(n,r,arguments)}},9764:function(t){t.exports=Function.prototype.apply},4294:function(t){t.exports=Function.prototype.call},88:function(t,e,i){var n=i(9524),r=i(1102),o=i(4294),a=i(3602);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new r("a function is required");return a(n,o,t)}},573:function(t){t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},1187:function(t,e,i){var n=i(3711),r=i(7695),o=r(n("String.prototype.indexOf"));t.exports=function(t,e){var i=n(t,!!e);return"function"==typeof i&&o(t,".prototype.")>-1?r(i):i}},7695:function(t,e,i){var n=i(7755),r=i(9886),o=i(88),a=i(1091);t.exports=function(t){var e=o(arguments),i=t.length-(arguments.length-1);return n(e,1+(i>0?i:0),!0)},r?r(t.exports,"apply",{value:a}):t.exports.apply=a},7412:function(t,e,i){var n=i(3711),r=i(88),o=r([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var i=n(t,!!e);return"function"==typeof i&&o(t,".prototype.")>-1?r([i]):i}},4399:function(t,e,i){var n=i(1344),r=i(6732);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,l={};a=void 0!==i.g&&i.g.console?i.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var A=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){l[t]=o()},"time"],[function(t){var e=l[t];if(!e)throw new Error("No such label: "+t);delete l[t];var i=o()-e;a.log(t+": "+i+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\n")},"dir"],[function(t){if(!t){var e=s.call(arguments,1);r.ok(!1,n.format.apply(null,e))}},"assert"]],c=0;c<A.length;c++){var h=A[c],d=h[0],u=h[1];a[u]||(a[u]=d)}t.exports=a},4380:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-dm.bili-danmaku-x-show.bili-danmaku-x-bidirection-reverse {\n  -webkit-animation: bidirection-reverse linear var(--duration) forwards;\n          animation: bidirection-reverse linear var(--duration) forwards;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-bidirection-reverse {\n  left: auto;\n  right: var(--offset);\n}\n@-webkit-keyframes bidirection-reverse {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n@keyframes bidirection-reverse {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n",""]),e.A=a},257:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-dm {\n  will-change: transform, opacity, top, left;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-center {\n  top: 0;\n  left: 50%;\n  -webkit-transform: translate(-50%, 0);\n          transform: translate(-50%, 0);\n  -webkit-transform: translate(-50%, var(--translateY, 0));\n          transform: translate(-50%, var(--translateY, 0));\n}\n",""]),e.A=a},4548:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-colorful {\n  color: transparent;\n  background-size: 100% 100%;\n  background-repeat: no-repeat;\n  text-shadow: none;\n  -webkit-background-clip: text;\n          background-clip: text;\n}\n",""]),e.A=a},6806:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-actor {\n  background-color: rgba(0, 0, 0, 0.5);\n  border-radius: 16px;\n  padding: 4px 16px 3px 40px;\n  z-index: 1;\n}\n.bili-danmaku-x-actor-img {\n  position: absolute;\n  top: 2px;\n  left: 2px;\n  display: inline-block;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  overflow: hidden;\n}\n.bili-danmaku-x-actor-img > img {\n  width: 100%;\n  height: 100%;\n  border: none;\n  position: absolute;\n  left: 0;\n  top: 0;\n}\n.bili-danmaku-x-actor-tip {\n  position: absolute;\n  bottom: 2px;\n  left: 16px;\n  width: 20px;\n  height: 20px;\n  font-size: 0;\n  -webkit-transform-origin: 0 100%;\n          transform-origin: 0 100%;\n}\n.bili-danmaku-x-actor-tip > svg {\n  width: 100%;\n  height: 100%;\n}\n.bili-danmaku-x-actor-tip.bili-danmaku-x-up-text {\n  width: auto;\n  height: 16px;\n  top: 2px;\n  padding: 2px 8px;\n  font-size: 14px;\n  color: #fff;\n  text-shadow: none;\n  -webkit-writing-mode: horizontal-tb;\n      -ms-writing-mode: lr-tb;\n          writing-mode: horizontal-tb;\n  line-height: 1;\n  border-radius: 12px;\n  background-color: #00a1d6;\n  -webkit-transform-origin: 0 0;\n          transform-origin: 0 0;\n}\n",""]),e.A=a},6650:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-prefixImage-text-container {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-icon {\n  vertical-align: bottom;\n}\n",""]),e.A=a},4984:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-dm.bili-danmaku-x-show.bili-danmaku-x-reverse {\n  -webkit-animation: roll-reverse linear var(--duration) forwards;\n          animation: roll-reverse linear var(--duration) forwards;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-reverse {\n  right: var(--offset);\n}\n@-webkit-keyframes roll-reverse {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n            transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n  }\n}\n@keyframes roll-reverse {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n            transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n  }\n}\n",""]),e.A=a},5721:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o),s=i(3832),l=i.n(s),A=new URL(i(4815),i.b),c=a()(r()),h=l()(A)
;c.push([t.id,".bili-danmaku-x-paused .bili-danmaku-x-dm {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-dm {\n  position: absolute;\n  line-height: 1.125;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  white-space: pre;\n  -webkit-perspective: 500px;\n          perspective: 500px;\n  will-change: transform, opacity, top, left;\n  font-weight: bold;\n  font-weight: var(--fontWeight, bold);\n  font-family: var(--fontFamily);\n  font-size: 25px;\n  font-size: var(--fontSize, 25px);\n  color: #ffffff;\n  color: var(--color, #ffffff);\n  text-shadow: var(--textShadow);\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  top: 0;\n  top: var(--top, 0);\n  opacity: 0;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  left: -10px;\n  left: var(--offset, -10px);\n  z-index: 200;\n  z-index: var(--zIndex, 200);\n  display: var(--display, flex);\n}\n.bili-danmaku-x-dm.bili-danmaku-x-show {\n  opacity: 1;\n  opacity: var(--opacity, 1);\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-show.bili-danmaku-x-roll {\n  -webkit-animation: roll linear var(--duration) forwards;\n          animation: roll linear var(--duration) forwards;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-paused {\n  -webkit-animation-play-state: paused !important;\n          animation-play-state: paused !important;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-disable {\n  -webkit-transition: opacity 0.35s linear;\n  transition: opacity 0.35s linear;\n  opacity: 0;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-liked {\n  z-index: 2;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-liked .bili-danmaku-x-liked-icon {\n  opacity: 1;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-liked .bili-danmaku-x-high-plus {\n  -webkit-animation: tipsPlus 1250ms forwards;\n          animation: tipsPlus 1250ms forwards;\n}\n.bili-danmaku-x-dm .bp-svgicon {\n  -webkit-transition: fill 0.3s;\n  transition: fill 0.3s;\n  vertical-align: middle;\n  display: inline-block;\n  font-size: 0;\n}\n.bili-danmaku-x-dm .bp-svgicon,\n.bili-danmaku-x-dm .bp-svgicon svg {\n  width: 100%;\n  height: 100%;\n}\n.bili-danmaku-x-icon {\n  vertical-align: bottom;\n}\n.bili-danmaku-x-liked-icon {\n  display: inline-block;\n  position: absolute;\n  opacity: 0;\n  -webkit-transition: opacity 150ms ease-in-out;\n  transition: opacity 150ms ease-in-out;\n  font-size: 0;\n  vertical-align: bottom;\n}\n.bili-danmaku-x-liked-icon svg {\n  width: 100%;\n  height: 100%;\n  fill: #fff;\n}\n.bili-danmaku-x-like {\n  z-index: 2;\n  line-height: 1;\n  padding: 0.6em;\n}\n.bili-danmaku-x-like-icon {\n  display: inline-block;\n  font-size: 0;\n  vertical-align: bottom;\n}\n.bili-danmaku-x-like-icon svg {\n  width: 100%;\n  height: 100%;\n  fill: #fff;\n}\n.bili-danmaku-x-like-num {\n  display: inline-block;\n  margin: 0 8px 0 0;\n  font-size: 14px;\n  vertical-align: top;\n  -webkit-transform-origin: left top;\n          transform-origin: left top;\n  color: #fff;\n}\n.bili-danmaku-x-like::before {\n  content: '';\n  position: absolute;\n  top: 0.2em;\n  left: 0;\n  bottom: 0.2em;\n  right: 0;\n  background-color: rgba(255, 255, 255, 0.5);\n  border: 1px solid #fff;\n  z-index: -1;\n}\n.bili-danmaku-x-high {\n  z-index: 300;\n  will-change: transform, opacity, top, left, width, height;\n}\n.bili-danmaku-x-high.bili-danmaku-x-high-top .bili-danmaku-x-high-top-bg {\n  position: absolute;\n  top: 0.1em;\n  left: 0;\n  width: 100%;\n  height: 2em;\n}\n.bili-danmaku-x-high.bili-danmaku-x-high-reverse .bili-danmaku-x-high-text {\n  margin: 0 0.2em 0 0;\n}\n.bili-danmaku-x-high.bili-danmaku-x-high-reverse .bili-danmaku-x-high-icon {\n  margin-left: 2px;\n}\n.bili-danmaku-x-high-plus {\n  display: inline-block;\n  position: absolute;\n  right: -0.5em;\n  top: 0;\n  opacity: 0;\n  font-size: 12px;\n  color: #fff;\n  text-shadow: none;\n  z-index: 2;\n}\n.bili-danmaku-x-high-text {\n  margin-left: 0.2em;\n}\n.bili-danmaku-x-high-icon {\n  display: inline-block;\n  position: relative;\n  font-size: 0;\n  vertical-align: bottom;\n}\n.bili-danmaku-x-high-icon-animate {\n  display: inline-block;\n  width: 106%;\n  height: 106%;\n  margin-top: -3%;\n  background-image: url("+h+");\n  background-size: cover;\n  background-repeat: no-repeat;\n}\n.bili-danmaku-x-high-icon .bp-svgicon {\n  position: absolute;\n  top: 0;\n  left: 0;\n}\n.bili-danmaku-x-upslogan {\n  padding: 6px 12px;\n  background-color: rgba(0, 0, 0, 0.7);\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  font-weight: 500;\n  border-radius: 30px;\n  opacity: 1 !important;\n}\n@-webkit-keyframes tipsPlus {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(0);\n            transform: translateY(0);\n  }\n  52% {\n    opacity: 1;\n    -webkit-transform: translateY(0);\n            transform: translateY(0);\n  }\n  70% {\n    opacity: 1;\n    -webkit-transform: translateY(-66%);\n            transform: translateY(-66%);\n  }\n  90% {\n    opacity: 1;\n    -webkit-transform: translateY(-66%);\n            transform: translateY(-66%);\n  }\n  100% {\n    opacity: 0;\n    -webkit-transform: translateY(-130%);\n            transform: translateY(-130%);\n  }\n}\n@keyframes tipsPlus {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(0);\n            transform: translateY(0);\n  }\n  52% {\n    opacity: 1;\n    -webkit-transform: translateY(0);\n            transform: translateY(0);\n  }\n  70% {\n    opacity: 1;\n    -webkit-transform: translateY(-66%);\n            transform: translateY(-66%);\n  }\n  90% {\n    opacity: 1;\n    -webkit-transform: translateY(-66%);\n            transform: translateY(-66%);\n  }\n  100% {\n    opacity: 0;\n    -webkit-transform: translateY(-130%);\n            transform: translateY(-130%);\n  }\n}\n@-webkit-keyframes roll {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n@keyframes roll {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(var(--translateX)) translateZ(0);\n            transform: translateX(var(--translateX)) translateZ(0);\n  }\n}\n@-webkit-keyframes roll-reverse {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n            transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n  }\n}\n@keyframes roll-reverse {\n  0% {\n    -webkit-transform: translateX(0) translateZ(0);\n            transform: translateX(0) translateZ(0);\n  }\n  100% {\n    -webkit-transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n            transform: translateX(calc(var(--translateX) * -1)) translateZ(0);\n  }\n}\n",""]),e.A=c},2683:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-suffixImage-text-container {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n}\n.bili-danmaku-x-icon {\n  vertical-align: bottom;\n}\n",""]),e.A=a},5417:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r())
;a.push([t.id,".bili-danmaku-x-dm {\n  will-change: transform, opacity, top, left;\n}\n.bili-danmaku-x-dm.bili-danmaku-x-show {\n  opacity: 1;\n  opacity: var(--opacity, 1);\n}\n.bili-danmaku-x-dm.bili-danmaku-x-center {\n  top: 0;\n  left: 50%;\n  -webkit-transform: translate(-50%, 0);\n          transform: translate(-50%, 0);\n  -webkit-transform: translate(-50%, var(--translateY, 0));\n          transform: translate(-50%, var(--translateY, 0));\n}\n",""]),e.A=a},4440:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-up {\n  background-color: rgba(0, 0, 0, 0.5);\n  border-radius: 1em;\n  line-height: 1.6 !important;\n  padding: 0 0.5em 0 2.8em;\n}\n.bili-danmaku-x-up-tip {\n  position: absolute;\n  left: 0.66em;\n  top: 50%;\n  background: #00a1d6;\n  color: #fff;\n  border-radius: 1em;\n  padding: 0 0.5em;\n  text-shadow: none !important;\n  line-height: 1.5;\n  -webkit-transform-origin: left center;\n          transform-origin: left center;\n  -webkit-transform: translateY(-50%);\n          transform: translateY(-50%);\n}\n",""]),e.A=a},417:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-cmd-shrink {\n  -webkit-transform-origin: left bottom;\n          transform-origin: left bottom;\n  position: absolute;\n  cursor: pointer;\n  pointer-events: all;\n  left: 23px;\n  bottom: 71px;\n  height: 30px;\n  color: #fff;\n  -webkit-transition: opacity 0.35s;\n  transition: opacity 0.35s;\n  line-height: 30px;\n  background-color: rgba(24, 25, 28, 0.8);\n  border-radius: 20px;\n  padding: 0 10px 0 36px;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n.bili-danmaku-x-cmd-shrink.bili-danmaku-x-hide {\n  opacity: 0;\n  visibility: hidden;\n}\n.bili-danmaku-x-dm svg {\n  width: 100%;\n  height: 100%;\n}\n.bili-danmaku-x-dm-emoji {\n  height: 23px;\n  height: var(--fontSize, 23px);\n}\n.bili-danmaku-x-dm-inside {\n  position: relative;\n  width: 80%;\n  height: 100%;\n  z-index: 10;\n}\n.bili-danmaku-x-dm-rotate {\n  position: absolute;\n  top: -15%;\n  left: -6%;\n  right: -6%;\n  bottom: -15%;\n  pointer-events: none;\n  -webkit-transform: rotate(15deg);\n          transform: rotate(15deg);\n  -webkit-transform-origin: center;\n          transform-origin: center;\n  z-index: 4;\n}\n.bili-danmaku-x-line:before,\n.bili-danmaku-x-line:after {\n  position: absolute;\n  content: '';\n  background: #858688;\n  -webkit-transition: opacity 0.2s;\n  transition: opacity 0.2s;\n  z-index: 100;\n}\n.bili-danmaku-x-line-horizontal:before,\n.bili-danmaku-x-line-horizontal:after {\n  width: 0;\n  width: var(--width, 0);\n  height: 1px;\n  left: 50%;\n  -webkit-transform: translateX(-50%);\n          transform: translateX(-50%);\n}\n.bili-danmaku-x-line-horizontal:before {\n  top: 0;\n  top: var(--top, 0);\n  opacity: 0;\n  opacity: var(--top-show, 0);\n}\n.bili-danmaku-x-line-horizontal:after {\n  top: 0;\n  top: var(--bottom, 0);\n  opacity: 0;\n  opacity: var(--bottom-show, 0);\n}\n.bili-danmaku-x-line-vertical:before,\n.bili-danmaku-x-line-vertical:after {\n  width: 1px;\n  height: 0;\n  height: var(--height, 0);\n  top: 50%;\n  -webkit-transform: translateY(-50%);\n          transform: translateY(-50%);\n}\n.bili-danmaku-x-line-vertical:before {\n  left: 0;\n  left: var(--left, 0);\n  opacity: 0;\n  opacity: var(--left-show, 0);\n}\n.bili-danmaku-x-line-vertical:after {\n  left: 0;\n  left: var(--right, 0);\n  opacity: 0;\n  opacity: var(--right-show, 0);\n}\n",""]),e.A=a},4948:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-circle {\n  position: absolute;\n  top: -13px;\n  right: -13px;\n  width: 16px;\n  width: var(--width, 16px);\n  height: 16px;\n  height: var(--height, 16px);\n  border-radius: 50%;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  cursor: pointer;\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-align: center;\n      -ms-flex-align: center;\n          align-items: center;\n  -webkit-box-pack: center;\n      -ms-flex-pack: center;\n          justify-content: center;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-circle:before {\n  content: '';\n  position: absolute;\n  width: 40px;\n  height: 40px;\n  left: -12px;\n  top: -12px;\n}\n.bili-danmaku-x-circle-left,\n.bili-danmaku-x-circle-right {\n  position: absolute;\n  width: 50%;\n  height: 16px;\n  height: var(--height, 16px);\n  top: 0;\n  overflow: hidden;\n  z-index: 1;\n  pointer-events: none;\n}\n.bili-danmaku-x-circle-left-bar,\n.bili-danmaku-x-circle-right-bar {\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  position: absolute;\n  top: 0;\n  width: 16px;\n  width: var(--width, 16px);\n  height: 16px;\n  height: var(--height, 16px);\n  border: 1px solid transparent;\n  border-radius: 50%;\n  -webkit-transform: rotate(-45deg);\n          transform: rotate(-45deg);\n  z-index: 2;\n}\n.bili-danmaku-x-circle-left {\n  left: 0;\n}\n.bili-danmaku-x-circle-right {\n  right: 0;\n}\n.bili-danmaku-x-circle-left-bar {\n  left: 0;\n  border-top-color: rgba(255,255,255,0.70196);\n  border-top-color: var(--color, rgba(255,255,255,0.70196));\n  border-left-color: rgba(255,255,255,0.70196);\n  border-left-color: var(--color, rgba(255,255,255,0.70196));\n  -webkit-transform: rotate(0);\n          transform: rotate(0);\n  -webkit-transform: rotate(var(--leftDeg, 0));\n          transform: rotate(var(--leftDeg, 0));\n}\n.bili-danmaku-x-circle-right-bar {\n  right: 0;\n  border-right-color: rgba(255,255,255,0.70196);\n  border-right-color: var(--color, rgba(255,255,255,0.70196));\n  border-bottom-color: rgba(255,255,255,0.70196);\n  border-bottom-color: var(--color, rgba(255,255,255,0.70196));\n  -webkit-transform: rotate(0);\n          transform: rotate(0);\n  -webkit-transform: rotate(var(--rightDeg, 0));\n          transform: rotate(var(--rightDeg, 0));\n}\n.bili-danmaku-x-circle svg {\n  display: inline-block;\n  width: 90%;\n  position: absolute;\n  height: 90%;\n  pointer-events: none;\n  fill: rgba(255,255,255,0.70196);\n}\n",""]),e.A=a},8273:function(t,e,i){var n=i(5732),r=i.n(n),o=i(2109),a=i.n(o)()(r());a.push([t.id,".bili-danmaku-x-cmd-shrink {\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.bili-danmaku-x-cmd-shrink .bili-danmaku-x-circle {\n  top: 2px;\n  left: 2px;\n}\n.bili-danmaku-x-cmd-shrink .bili-danmaku-x-shrink-img {\n  width: 16px;\n  height: 16px;\n  padding: 5px;\n  border-radius: 50%;\n}\n",""]),e.A=a},2109:function(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},3832:function(t){t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},5732:function(t){t.exports=function(t){return t[1]}},22:function(t,e,i){var n=i(9886),r=i(3429),o=i(1102),a=i(5667);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`")
;if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(n)n(t,e,{configurable:null===A&&h?h.configurable:!A,enumerable:null===s&&h?h.enumerable:!s,value:i,writable:null===l&&h?h.writable:!l});else{if(!c&&(s||l||A))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=i}}},4938:function(t,e,i){var n=i(5187),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=i(22),l=i(491)(),A=function(t,e,i,n){if(e in t)if(!0===n){if(t[e]===i)return}else if("function"!=typeof(r=n)||"[object Function]"!==o.call(r)||!n())return;var r;l?s(t,e,i,!0):s(t,e,i)},c=function(t,e){var i=arguments.length>2?arguments[2]:{},o=n(e);r&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)A(t,o[s],e[o[s]],i[o[s]])};c.supportsDescriptors=!!l,t.exports=c},7678:function(t,e,i){var n,r=i(88),o=i(5667);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof l&&function(t){return l(null==t?t:s(t))}},9886:function(t){var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},8004:function(t){t.exports=EvalError},1488:function(t){t.exports=Error},6469:function(t){t.exports=RangeError},2557:function(t){t.exports=ReferenceError},3429:function(t){t.exports=SyntaxError},1102:function(t){t.exports=TypeError},5966:function(t){t.exports=URIError},6365:function(t){t.exports=Object},381:function(t,e,i){var n,r=i(4399),o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function l(){l.init.call(this)}t.exports=l,t.exports.once=function(t,e){return new Promise((function(i,n){function r(i){t.removeListener(e,o),n(i)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}var a,s;y(t,e,o,{once:!0}),"error"!==e&&(s=r,"function"==typeof(a=t).on&&y(a,"error",s,{once:!0}))}))},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var A=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function d(t,e,i,n){var o,a,s,l;if(c(i),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),a=t._events),s=a[e]),void 0===s)s=a[e]=i,++t._eventsCount;else if("function"==typeof s?s=a[e]=n?[i,s]:[s,i]:n?s.unshift(i):s.push(i),(o=h(t))>0&&s.length>o&&!s.warned){s.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=t,A.type=e,A.count=s.length,l=A,r&&r.warn&&r.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=u.bind(n);return r.listener=i,n.wrapFn=r,r}function g(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(r):m(r,r.length)}function f(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function m(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function y(t,e,i,n){if("function"==typeof t.on)n.once?t.once(e,i):t.on(e,i);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){n.once&&t.removeEventListener(e,r),i(o)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");A=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return h(this)},l.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var n="error"===t,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=r[t];if(void 0===l)return!1;if("function"==typeof l)a(l,this,e);else{var A=l.length,c=m(l,A);for(i=0;i<A;++i)a(c[i],this,e)}return!0},l.prototype.addListener=function(t,e){return d(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return d(this,t,e,!0)},l.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},l.prototype.removeListener=function(t,e){var i,n,r,o,a;if(c(e),void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===e||i[o].listener===e){a=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(r=o[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},l.prototype.listeners=function(t){return g(this,t,!0)},l.prototype.rawListeners=function(t){return g(this,t,!1)},l.listenerCount=function(t,e){
return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},l.prototype.listenerCount=f,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},4086:function(t,e,i){var n=i(2956),r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){if(!n(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=i),"[object Array]"===r.call(t)?function(t,e,i){for(var n=0,r=t.length;n<r;n++)o.call(t,n)&&(null==i?e(t[n],n,t):e.call(i,t[n],n,t))}(t,e,a):"string"==typeof t?function(t,e,i){for(var n=0,r=t.length;n<r;n++)null==i?e(t.charAt(n),n,t):e.call(i,t.charAt(n),n,t)}(t,e,a):function(t,e,i){for(var n in t)o.call(t,n)&&(null==i?e(t[n],n,t):e.call(i,t[n],n,t))}(t,e,a)}},9992:function(t){var e=Object.prototype.toString,i=Math.max,n=function(t,e){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var r=0;r<e.length;r+=1)i[r+t.length]=e[r];return i};t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,a=function(t){for(var e=[],i=1,n=0;i<t.length;i+=1,n+=1)e[n]=t[i];return e}(arguments),s=i(0,r.length-a.length),l=[],A=0;A<s;A++)l[A]="$"+A;if(o=Function("binder","return function ("+function(t){for(var e="",i=0;i<t.length;i+=1)e+=t[i],i+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=r.apply(this,n(a,arguments));return Object(e)===e?e:this}return r.apply(t,n(a,arguments))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},9524:function(t,e,i){var n=i(9992);t.exports=Function.prototype.bind||n},3711:function(t,e,i){var n,r=i(6365),o=i(1488),a=i(8004),s=i(6469),l=i(2557),A=i(3429),c=i(1102),h=i(5966),d=i(1009),u=i(1219),p=i(2659),g=i(7905),f=i(6219),m=Function,y=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},b=i(5667),v=i(9886),E=function(){throw new c},I=b?function(){try{return E}catch(t){try{return b(arguments,"callee").get}catch(t){return E}}}():E,C=i(1514)(),B=i(7678),w="function"==typeof Reflect&&Reflect.getPrototypeOf||r.getPrototypeOf||B,x=i(9764),Q=i(4294),S={},k="undefined"!=typeof Uint8Array&&w?w(Uint8Array):n,D={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&w?w([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":S,"%AsyncGenerator%":S,"%AsyncGeneratorFunction%":S,"%AsyncIteratorPrototype%":S,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":S,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&w?w(w([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&w?w((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&w?w((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&w?w(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":A,"%ThrowTypeError%":I,"%TypedArray%":k,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":Q,"%Function.prototype.apply%":x,"%Object.defineProperty%":v,"%Math.abs%":d,"%Math.floor%":u,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":f};if(w)try{null.error}catch(t){var _=w(w(t));D["%Error.prototype%"]=_}var R=function t(e){var i;if("%AsyncFunction%"===e)i=y("async function () {}");else if("%GeneratorFunction%"===e)i=y("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=y("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&w&&(i=w(r.prototype))}return D[e]=i,i},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]
},T=i(9524),F=i(5630),L=T.call(Q,Array.prototype.concat),N=T.call(x,Array.prototype.splice),P=T.call(Q,String.prototype.replace),U=T.call(Q,String.prototype.slice),O=T.call(Q,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(t,e){var i,n=t;if(F(M,n)&&(n="%"+(i=M[n])[0]+"%"),F(D,n)){var r=D[n];if(r===S&&(r=R(n)),void 0===r&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:r}}throw new A("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,t))throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(t){var e=U(t,0,1),i=U(t,-1);if("%"===e&&"%"!==i)throw new A("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new A("invalid intrinsic syntax, expected opening `%`");var n=[];return P(t,G,(function(t,e,i,r){n[n.length]=i?P(r,H,"$1"):e||t})),n}(t),n=i.length>0?i[0]:"",r=V("%"+n+"%",e),o=r.name,a=r.value,s=!1,l=r.alias;l&&(n=l[0],N(i,L([0,1],l)));for(var h=1,d=!0;h<i.length;h+=1){var u=i[h],p=U(u,0,1),g=U(u,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new A("property names with quotes must have matching quotes");if("constructor"!==u&&d||(s=!0),F(D,o="%"+(n+="."+u)+"%"))a=D[o];else if(null!=a){if(!(u in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(b&&h+1>=i.length){var f=b(a,u);a=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[u]}else d=F(a,u),a=a[u];d&&!s&&(D[o]=a)}}return a}},1333:function(t){t.exports=Object.getOwnPropertyDescriptor},5667:function(t,e,i){var n=i(1333);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},491:function(t,e,i){var n=i(9886),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},1514:function(t,e,i){var n="undefined"!=typeof Symbol&&Symbol,r=i(9712);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&r()}},9712:function(t){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7185:function(t,e,i){var n=i(9712);t.exports=function(){return n()&&!!Symbol.toStringTag}},5630:function(t,e,i){var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=i(9524);t.exports=o.call(n,r)},3328:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,A=l>>1,c=-7,h=i?r-1:0,d=i?-1:1,u=t[e+h];for(h+=d,o=u&(1<<-c)-1,u>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-A;else{if(o===l)return a?NaN:1/0*(u?-1:1);a+=Math.pow(2,n),o-=A}return(u?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,A=8*o-r-1,c=(1<<A)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,u=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+u]=255&s,u+=p,s/=256,r-=8);for(a=a<<r|s,A+=r;A>0;t[i+u]=255&a,u+=p,a/=256,A-=8);t[i+u-p]|=128*g}},1193:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},6531:function(t,e,i){var n=i(7185)(),r=i(7412)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===r(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==r(t)&&"callee"in t&&"[object Function]"===r(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},2956:function(t){var e,i,n=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw i}}),i={},r((function(){throw 42}),null,e)}catch(t){t!==i&&(r=null)}else r=null;var o=/^\s*class\b/,a=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,A="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var d=document.all;l.call(d)===l.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=r?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{r(t,null,e)}catch(t){if(t!==i)return!1}return!a(t)&&s(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(A)return s(t);if(a(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},3034:function(t,e,i){var n,r=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=i(7185)(),l=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(o.call(t)))return!0;if(!s)return"[object GeneratorFunction]"===r.call(t);if(!l)return!1;if(void 0===n){var e=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&l(e)}return l(t)===n}},4770:function(t){t.exports=function(t){return t!=t}},4954:function(t,e,i){var n=i(7695),r=i(4938),o=i(4770),a=i(2219),s=i(4445),l=n(a(),Number);r(l,{getPolyfill:a,implementation:o,shim:s}),t.exports=l},2219:function(t,e,i){var n=i(4770);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},4445:function(t,e,i){var n=i(4938),r=i(2219);t.exports=function(){var t=r();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},6:function(t,e,i){var n=i(9033);t.exports=function(t){return!!n(t)}},8606:function(t,e,i){var n=i(6533).hp;t.exports=function t(e,i,n){function r(a,s){if(!i[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var A=i[a]={exports:{}};e[a][0].call(A.exports,(function(t){return r(e[a][1][t]||t)}),A,A.exports,t,e,i,n)}return i[a].exports}for(var o=void 0,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){var n=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var e,i,r,a,s,l,A,c=[],h=0,d=t.length,u=d,p="string"!==n.getTypeOf(t);h<t.length;)u=d-h,r=p?(e=t[h++],i=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),i=h<d?t.charCodeAt(h++):0,
h<d?t.charCodeAt(h++):0),a=e>>2,s=(3&e)<<4|i>>4,l=1<u?(15&i)<<2|r>>6:64,A=2<u?63&r:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(A));return c.join("")},i.decode=function(t){var e,i,n,a,s,l,A=0,c=0,h="data:";if(t.substr(0,5)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,u=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&u--,t.charAt(t.length-2)===o.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=r.uint8array?new Uint8Array(0|u):new Array(0|u);A<t.length;)e=o.indexOf(t.charAt(A++))<<2|(a=o.indexOf(t.charAt(A++)))>>4,i=(15&a)<<4|(s=o.indexOf(t.charAt(A++)))>>2,n=(3&s)<<6|(l=o.indexOf(t.charAt(A++))),d[c++]=e,64!==s&&(d[c++]=i),64!==l&&(d[c++]=n);return d}},{"./support":30,"./utils":32}],2:[function(t,e,i){var n=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,i,n,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=n,this.compressedContent=r}s.prototype={getContentWorker:function(){var t=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,i){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){var n=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(t){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){var n=t("./utils"),r=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,i){var n=r,o=0+i;t^=-1;for(var a=0;a<o;a++)t=t>>>8^n[255&(t^e[a])];return~t}(0|e,t,t.length):function(t,e,i){var n=r,o=0+i;t^=-1;for(var a=0;a<o;a++)t=t>>>8^n[255&(t^e.charCodeAt(a))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){var n;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=n?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},i.compressWorker=function(t){return new l("Deflate",t)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,i){function n(t,e){var i,n="";for(i=0;i<e;i++)n+=String.fromCharCode(255&t),t>>>=8;return n}function r(t,e,i,r,a,c){var h,d,u=t.file,p=t.compression,g=c!==s.utf8encode,f=o.transformTo("string",c(u.name)),m=o.transformTo("string",s.utf8encode(u.name)),y=u.comment,b=o.transformTo("string",c(y)),v=o.transformTo("string",s.utf8encode(y)),E=m.length!==u.name.length,I=v.length!==y.length,C="",B="",w="",x=u.dir,Q=u.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!i||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var k=0;e&&(k|=8),g||!E&&!I||(k|=2048);var D,_,R,M=0,T=0;x&&(M|=16),"UNIX"===a?(T=798,M|=(D=u.unixPermissions,_=x,R=D,D||(R=_?16893:33204),(65535&R)<<16)):(T=20,M|=function(t){return 63&(t||0)}(u.dosPermissions)),h=Q.getUTCHours(),h<<=6,h|=Q.getUTCMinutes(),h<<=5,h|=Q.getUTCSeconds()/2,d=Q.getUTCFullYear()-1980,d<<=4,d|=Q.getUTCMonth()+1,d<<=5,d|=Q.getUTCDate(),E&&(B=n(1,1)+n(l(f),4)+m,C+="up"+n(B.length,2)+B),I&&(w=n(1,1)+n(l(b),4)+v,C+="uc"+n(w.length,2)+w);var F="";return F+="\n\0",F+=n(k,2),F+=p.magic,F+=n(h,2),F+=n(d,2),F+=n(S.crc32,4),F+=n(S.compressedSize,4),F+=n(S.uncompressedSize,4),F+=n(f.length,2),F+=n(C.length,2),{fileRecord:A.LOCAL_FILE_HEADER+F+f+C,dirRecord:A.CENTRAL_FILE_HEADER+n(T,2)+F+n(b.length,2)+"\0\0\0\0"+n(M,4)+n(r,4)+f+C+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),A=t("../signature");function c(t,e,i,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,a),c.prototype.push=function(t){var e=t.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(e+100*(i-n-1))/i:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var i=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(t){this.accumulate=!1;var e,i=this.streamFiles&&!t.file.dir,o=r(t,i,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),i)this.push({data:(e=t,A.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var i,r,a,s,l,c,h=this.bytesWritten-t,d=(i=this.dirRecords.length,r=h,a=t,s=this.zipComment,l=this.encodeFileName,c=o.transformTo("string",l(s)),A.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(i,2)+n(i,2)+n(r,4)+n(a,4)+n(c.length,2)+c);this.push({data:d,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var i=0;i<e.length;i++)try{e[i].error(t)}catch(t){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this)
;for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,i){var n=t("../compressions"),r=t("./ZipFileWorker");i.generateWorker=function(t,e,i){var o=new r(e.streamFiles,i,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,i){a++;var r=function(t,e){var i=t||e,r=n[i];if(!r)throw new Error(i+" is not a valid compression method !");return r}(i.options.compression,e.compression),s=i.options.compressionOptions||e.compressionOptions||{},l=i.dir,A=i.date;i._compressWorker(r,s).withStreamInfo("file",{name:t,dir:l,date:A,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,i){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.9.1",n.loadAsync=function(t,e){return(new n).loadAsync(t,e)},n.external=t("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,i){var n=t("./utils"),r=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function A(t){return new r.Promise((function(e,i){var n=t.decompressed.getContentWorker().pipe(new s);n.on("error",(function(t){i(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var i=this;return e=n.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var i=new a(e);return i.load(t),i})).then((function(t){var i=[r.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var o=0;o<n.length;o++)i.push(A(n[o]));return r.Promise.all(i)})).then((function(t){for(var r=t.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,A=n.resolve(s.fileNameStr);i.file(A,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(i.file(A).unsafeOriginalName=l)}return r.zipComment.length&&(i.comment=r.zipComment),i}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,i){var n=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}n.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,i){var n=t("readable-stream").Readable;function r(t,e,i){n.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),i&&i(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,n),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,i){e.exports={isNode:void 0!==n,newBufferFrom:function(t,e){if(n.from&&n.from!==Uint8Array.from)return n.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new n(t,e)},allocBuffer:function(t){if(n.alloc)return n.alloc(t);var e=new n(t);return e.fill(0),e},isBuffer:function(t){return n.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,i){function n(t,e,i){var n,r=o.getTypeOf(e),s=o.extend(i||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(n=p(t))&&f.call(this,n,!0);var h="string"===r&&!1===s.binary&&!1===s.base64;i&&void 0!==i.binary||(s.binary=!h),(e instanceof A&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",r="string");var m;m=e instanceof A||e instanceof a?e:d.isNode&&d.isStream(e)?new u(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new c(t,m,s);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),A=t("./compressedObject"),c=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),u=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},f=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||n.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,i,n;for(e in this.files)n=this.files[e],(i=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(i,n)},filter:function(t){var e=[];return this.forEach((function(i,n){t(i,n)&&e.push(n)})),e},file:function(t,e,i){if(1!==arguments.length)return t=this.root+t,n.call(this,t,e,i),this;if(m(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(m(t))return this.filter((function(e,i){return i.dir&&t.test(e)}));var e=this.root+t,i=f.call(this,e),n=this.clone();return n.root=i.name,n},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var i=this.filter((function(e,i){return i.name.slice(0,t.length)===t})),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,i={};try{if((i=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");o.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var n=i.comment||this.comment||"";e=h.generateWorker(this,i,n)}catch(t){(e=new a("error")).error(t)}return new s(e,i.type||"string",i.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,
"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,i){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,i){var n=t("./DataReader");function r(t){n.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===i&&this.data[o+2]===n&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&i===o[1]&&n===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,i){var n=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,i=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)i=(i<<8)+this.byteAt(e);return this.index+=t,i},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,i){var n=t("./Uint8ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,i){var n=t("./DataReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,i){var n=t("./ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,i){var n=t("../utils"),r=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new s(t):r.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,i){var n=t("./GenericWorker"),r=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,i){var n=t("./GenericWorker"),r=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,i){var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,i){var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}n.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,i){function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var i=0;i<this._listeners[t].length;i++)this._listeners[t][i].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){
if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=n},{}],29:[function(t,e,i){var r=t("../utils"),o=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),A=t("../external"),c=null;if(l.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,e,i){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=i,r.checkSupport(n),this._worker=t.pipe(new o(n)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return function(t,e){return new A.Promise((function(i,o){var a=[],l=t._internalType,A=t._outputType,c=t._mimeType;t.on("data",(function(t,i){a.push(t),e&&e(i)})).on("error",(function(t){a=[],o(t)})).on("end",(function(){try{var t=function(t,e,i){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),i);case"base64":return s.encode(e);default:return r.transformTo(t,e)}}(A,function(t,e){var i,r=0,o=null,a=0;for(i=0;i<e.length;i++)a+=e[i].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(o=new Uint8Array(a),i=0;i<e.length;i++)o.set(e[i],r),r+=e[i].length;return o;case"nodebuffer":return n.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(l,a),c);i(t)}catch(t){o(t)}a=[]})).resume()}))}(this,t)},on:function(t,e){var i=this;return"data"===t?this._worker.on(t,(function(t){e.call(i,t.data,t.meta)})):this._worker.on(t,(function(){r.delay(e,arguments,i)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer=void 0!==n,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(t){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),i.blob=0===o.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,i){for(var n=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function A(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,i.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,i,n,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(n-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(n-56320),o++),i<128?e[a++]=i:(i<2048?e[a++]=192|i>>>6:(i<65536?e[a++]=224|i>>>12:(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63),e[a++]=128|i>>>6&63),e[a++]=128|63&i);return e}(t)},i.utf8decode=function(t){return r.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,i,r,o,a=t.length,l=new Array(2*a);for(e=i=0;e<a;)if((r=t[e++])<128)l[i++]=r;else if(4<(o=s[r]))l[i++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<a;)r=r<<6|63&t[e++],o--;1<o?l[i++]=65533:r<65536?l[i++]=r:(r-=65536,l[i++]=55296|r>>10&1023,l[i++]=56320|1023&r)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),n.applyFromCharCode(l)}(t=n.transformTo(r.uint8array?"uint8array":"array",t))},n.inherits(A,a),A.prototype.processChunk=function(t){var e=n.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}(e),l=e;a!==e.length&&(r.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:i.utf8decode(l),meta:t.meta})},A.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=A,n.inherits(c,a),c.prototype.processChunk=function(t){this.push({data:i.utf8encode(t.data),meta:t.meta})},i.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,i){var n=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),a=t("set-immediate-shim"),s=t("./external");function l(t){return t}function A(t,e){for(var i=0;i<t.length;++i)e[i]=255&t.charCodeAt(i);return e}i.newBlob=function(t,e){i.checkSupport("blob");try{return new Blob([t],{type:e})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,i){var n=[],r=0,o=t.length;if(o<=i)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+i,o)))):n.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+i,o)))),r+=i;return n.join("")},stringifyByChar:function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function h(t){var e=65536,n=i.getTypeOf(t),r=!0;if("uint8array"===n?r=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,n,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function d(t,e){for(var i=0;i<t.length;i++)e[i]=t[i];return e}i.applyFromCharCode=h;var u={};u.string={string:l,array:function(t){return A(t,new Array(t.length))},arraybuffer:function(t){return u.string.uint8array(t).buffer},uint8array:function(t){return A(t,new Uint8Array(t.length))},nodebuffer:function(t){return A(t,o.allocBuffer(t.length))}},u.array={string:h,array:l,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},u.arraybuffer={string:function(t){return h(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:l,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},u.uint8array={string:h,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:l,nodebuffer:function(t){return o.newBufferFrom(t)}},u.nodebuffer={string:h,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return u.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:l},i.transformTo=function(t,e){if(e=e||"",!t)return e;i.checkSupport(t);var n=i.getTypeOf(e);return u[n][t](e)},i.resolve=function(t){
for(var e=t.split("/"),i=[],n=0;n<e.length;n++){var r=e[n];"."===r||""===r&&0!==n&&n!==e.length-1||(".."===r?i.pop():i.push(r))}return i.join("/")},i.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&t instanceof Uint8Array?"uint8array":n.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(t){var e,i,n="";for(i=0;i<(t||"").length;i++)n+="\\x"+((e=t.charCodeAt(i))<16?"0":"")+e.toString(16).toUpperCase();return n},i.delay=function(t,e,i){a((function(){t.apply(i||null,e||[])}))},i.inherits=function(t,e){function i(){}i.prototype=e.prototype,t.prototype=new i},i.extend=function(){var t,e,i={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===i[e]&&(i[e]=arguments[t][e]);return i},i.prepareContent=function(t,e,o,a,l){return s.Promise.resolve(e).then((function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,i){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){i(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){var c,h=i.getTypeOf(e);return h?("arraybuffer"===h?e=i.transformTo("uint8array",e):"string"===h&&(l?e=r.decode(e):o&&!0!==a&&(e=A(c=e,n.uint8array?new Uint8Array(c.length):new Array(c.length)))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,i){var n=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=(t("./utf8"),t("./support"));function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var i=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(i),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",i=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,i,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),i=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=e-i;if(0<n)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,i){var n=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),A=t("./support");function c(t,e){this.options=t,this.loadOptions=e}c.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(l.hasOwnProperty(e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported")
;t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,i,n,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),i=t.readInt(2),n=t.readData(i),this.extraFields[e]={id:e,length:i,value:n};t.setIndex(r)},handleUTF8:function(){var t=A.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var i=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,i){function n(t,e,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=e,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var e=null,i="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(i=t.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&n&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,i,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(i,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var A=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<A.length;h++)n.prototype[A[h]]=c;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){var i,n,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,a=new r(c),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),i=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new t.MessageChannel;l.port1.onmessage=c,i=function(){l.port2.postMessage(0)}}var A=[];function c(){var t,e;n=!0;for(var i=A.length;i;){for(e=A,A=[],t=-1;++t<i;)e[t]();i=A.length}n=!1}e.exports=function(t){1!==A.push(t)||n||i()}}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,i){var n=t("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function A(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&u(this,t)}function c(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function h(t,e,i){n((function(){var n;try{n=e(i)}catch(e){return o.reject(t,e)}n===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,n)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function u(t,e){var i=!1;function n(e){i||(i=!0,o.reject(t,e))}function r(e){i||(i=!0,o.resolve(t,e))}var a=p((function(){e(r,n)}));"error"===a.status&&n(a.value)}function p(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}(e.exports=A).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))},A.prototype.catch=function(t){return this.then(null,t)},A.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var i=new this.constructor(r);return this.state!==l?h(i,this.state===s?t:e,this.outcome):this.queue.push(new c(i,t,e)),i},c.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){o.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var i=p(d,e);if("error"===i.status)return o.reject(t,i.value);var n=i.value;if(n)u(t,n);else{t.state=s,t.outcome=e;for(var r=-1,a=t.queue.length;++r<a;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(e);return t},A.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},A.reject=function(t){var e=new this(r);return o.reject(e,t)},A.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);for(var a=new Array(i),s=0,l=-1,A=new this(r);++l<i;)c(t[l],l);return A;function c(t,r){e.resolve(t).then((function(t){a[r]=t,++s!==i||n||(n=!0,o.resolve(A,a))}),(function(t){n||(n=!0,o.reject(A,t))}))}},A.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,i=!1;if(!e)return this.resolve([]);for(var n,a=-1,s=new this(r);++a<e;)n=t[a],this.resolve(n).then((function(t){i||(i=!0,o.resolve(s,t))}),(function(t){i||(i=!0,o.reject(s,t))}));return s}},{immediate:36}],38:[function(t,e,i){var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,i){
var n=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString;function A(t){if(!(this instanceof A))return new A(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(a[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(i=n.deflateSetDictionary(this.strm,c)))throw new Error(a[i]);this._dict_set=!0}}function c(t,e){var i=new A(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}A.prototype.push=function(t,e){var i,a,s=this.strm,A=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(A),s.next_out=0,s.avail_out=A),1!==(i=n.deflate(s,a))&&0!==i)return this.onEnd(i),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==i);return 4===a?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==a||(this.onEnd(0),!(s.avail_out=0))},A.prototype.onData=function(t){this.chunks.push(t)},A.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Deflate=A,i.deflate=c,i.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},i.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,i){var n=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),A=t("./zlib/gzheader"),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==a.Z_OK)throw new Error(s[i]);this.header=new A,n.inflateGetHeader(this.strm,this.header)}function d(t,e){var i=new h(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}h.prototype.push=function(t,e){var i,s,l,A,h,d,u=this.strm,p=this.options.chunkSize,g=this.options.dictionary,f=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?u.input=o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new r.Buf8(p),u.next_out=0,u.avail_out=p),(i=n.inflate(u,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,i=n.inflateSetDictionary(this.strm,d)),i===a.Z_BUF_ERROR&&!0===f&&(i=a.Z_OK,f=!1),i!==a.Z_STREAM_END&&i!==a.Z_OK)return this.onEnd(i),!(this.ended=!0);u.next_out&&(0!==u.avail_out&&i!==a.Z_STREAM_END&&(0!==u.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(u.output,u.next_out),A=u.next_out-l,h=o.buf2string(u.output,l),u.next_out=A,u.avail_out=p-A,A&&r.arraySet(u.output,u.output,l,A,0),this.onData(h)):this.onData(r.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(f=!0)}while((0<u.avail_in||0===u.avail_out)&&i!==a.Z_STREAM_END);return i===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(u.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Inflate=h,i.inflate=d,i.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},i.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}}return t},i.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,a;for(e=n=0,i=t.length;e<i;e++)n+=t[e].length;for(a=new Uint8Array(n),e=r=0,i=t.length;e<i;e++)o=t[e],a.set(o,r),r+=o.length;return a}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};i.setTyped=function(t){t?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,r)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(n)},{}],42:[function(t,e,i){var n=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var i="",a=0;a<e;a++)i+=String.fromCharCode(t[a]);return i}a[254]=a[254]=1,i.string2buf=function(t){var e,i,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),o=a=0;a<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[a++]=i:(i<2048?e[a++]=192|i>>>6:(i<65536?e[a++]=224|i>>>12:(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63),e[a++]=128|i>>>6&63),e[a++]=128|63&i);return e},i.buf2binstring=function(t){return l(t,t.length)},i.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},i.buf2string=function(t,e){var i,n,r,o,s=e||t.length,A=new Array(2*s);for(i=n=0;i<s;)if((r=t[i++])<128)A[n++]=r;else if(4<(o=a[r]))A[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&i<s;)r=r<<6|63&t[i++],o--;1<o?A[n++]=65533:r<65536?A[n++]=r:(r-=65536,A[n++]=55296|r>>10&1023,A[n++]=56320|1023&r)}return l(A,n)},i.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+a[t[i]]>e?i:e}},{"./common":41}],43:[function(t,e,i){e.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,a=0;0!==i;){for(i-=a=2e3<i?2e3:i;o=o+(r=r+e[n++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(t,e,i){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,
Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,i){var n=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e,i,r){var o=n,a=r+i;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},{}],46:[function(t,e,i){var n,r=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),A=-2,c=258,h=262,d=113;function u(t,e){return t.msg=l[e],e}function p(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function f(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function m(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,f(t.strm)}function y(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function v(t,e){var i,n,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-h?t.strstart-(t.w_size-h):0,A=t.window,d=t.w_mask,u=t.prev,p=t.strstart+c,g=A[o+a-1],f=A[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(A[(i=e)+a]===f&&A[i+a-1]===g&&A[i]===A[o]&&A[++i]===A[o+1]){o+=2,i++;do{}while(A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&o<p);if(n=c-(p-o),o=p-c,a<n){if(t.match_start=e,s<=(a=n))break;g=A[o+a-1],f=A[o+a]}}}while((e=u[e&d])>l&&0!=--r);return a<=t.lookahead?a:t.lookahead}function E(t){var e,i,n,o,l,A,c,d,u,p,g=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-h)){for(r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=i=t.hash_size;n=t.head[--e],t.head[e]=g<=n?n-g:0,--i;);for(e=i=g;n=t.prev[--e],t.prev[e]=g<=n?n-g:0,--i;);o+=g}if(0===t.strm.avail_in)break;if(A=t.strm,c=t.window,d=t.strstart+t.lookahead,p=void 0,(u=o)<(p=A.avail_in)&&(p=u),i=0===p?0:(A.avail_in-=p,r.arraySet(c,A.input,A.next_in,p,d),1===A.state.wrap?A.adler=a(A.adler,c,p,d):2===A.state.wrap&&(A.adler=s(A.adler,c,p,d)),A.next_in+=p,A.total_in+=p,p),t.lookahead+=i,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<h&&0!==t.strm.avail_in)}function I(t,e){for(var i,n;;){if(t.lookahead<h){if(E(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-h&&(t.match_length=v(t,i)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function C(t,e){for(var i,n,r;;){if(t.lookahead<h){if(E(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-h&&(t.match_length=v(t,i),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(m(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&m(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}function B(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:d,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):u(t,A)}function Q(t){var e,i=x(t);return 0===i&&((e=t.state).window_size=2*e.w_size,g(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i}function S(t,e,i,n,o,a){if(!t)return A;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||9<o||8!==i||n<8||15<n||e<0||9<e||a<0||4<a)return u(t,A);8===n&&(n=9);var l=new w;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=i,Q(t)}n=[new B(0,0,0,0,(function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(E(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,m(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-h&&(m(t,!1),
0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(m(t,!1),t.strm.avail_out),1)})),new B(4,4,8,4,I),new B(4,5,16,8,I),new B(4,6,32,32,I),new B(4,4,16,16,C),new B(8,16,32,32,C),new B(8,16,128,128,C),new B(8,32,128,256,C),new B(32,128,258,1024,C),new B(32,258,258,4096,C)],i.deflateInit=function(t,e){return S(t,e,8,15,8,0)},i.deflateInit2=S,i.deflateReset=Q,i.deflateResetKeep=x,i.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?A:(t.state.gzhead=e,0):A},i.deflate=function(t,e){var i,r,a,l;if(!t||!t.state||5<e||e<0)return t?u(t,A):A;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return u(t,0===t.avail_out?-5:A);if(r.strm=t,i=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,y(r,31),y(r,139),y(r,8),r.gzhead?(y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),y(r,255&r.gzhead.time),y(r,r.gzhead.time>>8&255),y(r,r.gzhead.time>>16&255),y(r,r.gzhead.time>>24&255),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(y(r,255&r.gzhead.extra.length),y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(y(r,0),y(r,0),y(r,0),y(r,0),y(r,0),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,3),r.status=d);else{var h=8+(r.w_bits-8<<4)<<8;h|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=d,b(r,h),0!==r.strstart&&(b(r,t.adler>>>16),b(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),f(t),a=r.pending,r.pending!==r.pending_buf_size));)y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),f(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),f(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&f(t),r.pending+2<=r.pending_buf_size&&(y(r,255&t.adler),y(r,t.adler>>8&255),t.adler=0,r.status=d)):r.status=d),0!==r.pending){if(f(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&p(e)<=p(i)&&4!==e)return u(t,-5);if(666===r.status&&0!==t.avail_in)return u(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var v=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(E(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var i,n,r,a,s=t.window;;){if(t.lookahead<=c){if(E(t),t.lookahead<=c&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){a=t.strstart+c;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<a);t.match_length=c-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(m(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(m(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(m(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==v&&4!==v||(r.status=666),1===v||3===v)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===v&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),f(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(y(r,255&t.adler),y(r,t.adler>>8&255),y(r,t.adler>>16&255),y(r,t.adler>>24&255),y(r,255&t.total_in),y(r,t.total_in>>8&255),y(r,t.total_in>>16&255),y(r,t.total_in>>24&255)):(b(r,t.adler>>>16),b(r,65535&t.adler)),f(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},i.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==d&&666!==e?u(t,A):(t.state=null,e===d?u(t,-3):0):A},i.deflateSetDictionary=function(t,e){var i,n,o,s,l,c,h,d,u=e.length;if(!t||!t.state)return A;if(2===(s=(i=t.state).wrap)||1===s&&42!==i.status||i.lookahead)return A;for(1===s&&(t.adler=a(t.adler,e,u,0)),i.wrap=0,u>=i.w_size&&(0===s&&(g(i.head),i.strstart=0,i.block_start=0,i.insert=0),d=new r.Buf8(i.w_size),r.arraySet(d,e,u-i.w_size,i.w_size,0),e=d,u=i.w_size),l=t.avail_in,c=t.next_in,h=t.input,t.avail_in=u,t.next_in=0,t.input=e,E(i);i.lookahead>=3;){for(n=i.strstart,o=i.lookahead-2;i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++,--o;);i.strstart=n,i.lookahead=2,E(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=c,t.input=h,t.avail_in=l,i.wrap=s,0},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,i){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,i){e.exports=function(t,e){var i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B,w,x;i=t.state,n=t.next_in,w=t.input,r=n+(t.avail_in-5),o=t.next_out,x=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=i.dmax,A=i.wsize,c=i.whave,h=i.wnext,d=i.window,u=i.hold,p=i.bits,g=i.lencode,f=i.distcode,m=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(u+=w[n++]<<p,p+=8,u+=w[n++]<<p,p+=8),b=g[u&m];e:for(;;){if(u>>>=v=b>>>24,p-=v,0==(v=b>>>16&255))x[o++]=65535&b;else{if(!(16&v)){if(!(64&v)){b=g[(65535&b)+(u&(1<<v)-1)];continue e}if(32&v){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}E=65535&b,(v&=15)&&(p<v&&(u+=w[n++]<<p,p+=8),E+=u&(1<<v)-1,u>>>=v,p-=v),p<15&&(u+=w[n++]<<p,p+=8,u+=w[n++]<<p,p+=8),b=f[u&y];i:for(;;){if(u>>>=v=b>>>24,p-=v,!(16&(v=b>>>16&255))){if(!(64&v)){b=f[(65535&b)+(u&(1<<v)-1)];continue i}t.msg="invalid distance code",i.mode=30;break t}if(I=65535&b,p<(v&=15)&&(u+=w[n++]<<p,(p+=8)<v&&(u+=w[n++]<<p,p+=8)),l<(I+=u&(1<<v)-1)){t.msg="invalid distance too far back",i.mode=30;break t}if(u>>>=v,p-=v,(v=o-a)<I){if(c<(v=I-v)&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(B=d,(C=0)===h){if(C+=A-v,v<E){for(E-=v;x[o++]=d[C++],--v;);C=o-I,B=x}}else if(h<v){if(C+=A+h-v,(v-=h)<E){for(E-=v;x[o++]=d[C++],--v;);if(C=0,h<E){for(E-=v=h;x[o++]=d[C++],--v;);C=o-I,B=x}}}else if(C+=h-v,v<E){for(E-=v;x[o++]=d[C++],--v;);C=o-I,B=x}for(;2<E;)x[o++]=B[C++],x[o++]=B[C++],x[o++]=B[C++],E-=3;E&&(x[o++]=B[C++],1<E&&(x[o++]=B[C++]))}else{for(C=o-I;x[o++]=x[C++],x[o++]=x[C++],x[o++]=x[C++],2<(E-=3););E&&(x[o++]=x[C++],1<E&&(x[o++]=x[C++]))}break}}break}}while(n<r&&o<s);n-=E=p>>3,u&=(1<<(p-=E<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),
t.avail_out=o<s?s-o+257:257-(o-s),i.hold=u,i.bits=p}},{}],49:[function(t,e,i){var n=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=-2;function A(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function d(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,h(t)):l}function u(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,d(t))):l}function p(t,e){var i,n;return t?(n=new c,(t.state=n).window=null,0!==(i=u(t,e))&&(t.state=null),i):l}var g,f,m=!0;function y(t){if(m){var e;for(g=new n.Buf32(512),f=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,f,0,t.work,{bits:5}),m=!1}t.lencode=g,t.lenbits=9,t.distcode=f,t.distbits=5}function b(t,e,i,r){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),r>=a.wsize?(n.arraySet(a.window,e,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),n.arraySet(a.window,e,i-r,o,a.wnext),(r-=o)?(n.arraySet(a.window,e,i-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}i.inflateReset=d,i.inflateReset2=u,i.inflateResetKeep=h,i.inflateInit=function(t){return p(t,15)},i.inflateInit2=p,i.inflate=function(t,e){var i,c,h,d,u,p,g,f,m,v,E,I,C,B,w,x,Q,S,k,D,_,R,M,T,F=0,L=new n.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(i=t.state).mode&&(i.mode=13),u=t.next_out,h=t.output,g=t.avail_out,d=t.next_in,c=t.input,p=t.avail_in,f=i.hold,m=i.bits,v=p,E=g,R=0;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;m<16;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(2&i.wrap&&35615===f){L[i.check=0]=255&f,L[1]=f>>>8&255,i.check=o(i.check,L,2,0),m=f=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",i.mode=30;break}if(8!=(15&f)){t.msg="unknown compression method",i.mode=30;break}if(m-=4,_=8+(15&(f>>>=4)),0===i.wbits)i.wbits=_;else if(_>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<<_,t.adler=i.check=1,i.mode=512&f?10:12,m=f=0;break;case 2:for(;m<16;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(i.flags=f,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=f>>8&1),512&i.flags&&(L[0]=255&f,L[1]=f>>>8&255,i.check=o(i.check,L,2,0)),m=f=0,i.mode=3;case 3:for(;m<32;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}i.head&&(i.head.time=f),512&i.flags&&(L[0]=255&f,L[1]=f>>>8&255,L[2]=f>>>16&255,L[3]=f>>>24&255,i.check=o(i.check,L,4,0)),m=f=0,i.mode=4;case 4:for(;m<16;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}i.head&&(i.head.xflags=255&f,i.head.os=f>>8),512&i.flags&&(L[0]=255&f,L[1]=f>>>8&255,i.check=o(i.check,L,2,0)),m=f=0,i.mode=5;case 5:if(1024&i.flags){for(;m<16;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}i.length=f,i.head&&(i.head.extra_len=f),512&i.flags&&(L[0]=255&f,L[1]=f>>>8&255,i.check=o(i.check,L,2,0)),m=f=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(p<(I=i.length)&&(I=p),I&&(i.head&&(_=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,c,d,I,_)),512&i.flags&&(i.check=o(i.check,c,I,d)),p-=I,d+=I,i.length-=I),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===p)break t;for(I=0;_=c[d+I++],i.head&&_&&i.length<65536&&(i.head.name+=String.fromCharCode(_)),_&&I<p;);if(512&i.flags&&(i.check=o(i.check,c,I,d)),p-=I,d+=I,_)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===p)break t;for(I=0;_=c[d+I++],i.head&&_&&i.length<65536&&(i.head.comment+=String.fromCharCode(_)),_&&I<p;);if(512&i.flags&&(i.check=o(i.check,c,I,d)),p-=I,d+=I,_)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;m<16;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(f!==(65535&i.check)){t.msg="header crc mismatch",i.mode=30;break}m=f=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=12;break;case 10:for(;m<32;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}t.adler=i.check=A(f),m=f=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=u,t.avail_out=g,t.next_in=d,t.avail_in=p,i.hold=f,i.bits=m,2;t.adler=i.check=1,i.mode=12;case 12:if(5===e||6===e)break t;case 13:if(i.last){f>>>=7&m,m-=7&m,i.mode=27;break}for(;m<3;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}switch(i.last=1&f,m-=1,3&(f>>>=1)){case 0:i.mode=14;break;case 1:if(y(i),i.mode=20,6!==e)break;f>>>=2,m-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}f>>>=2,m-=2;break;case 14:for(f>>>=7&m,m-=7&m;m<32;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if((65535&f)!=(f>>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&f,m=f=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(I=i.length){if(p<I&&(I=p),g<I&&(I=g),0===I)break t;n.arraySet(h,c,d,I,u),p-=I,d+=I,g-=I,u+=I,i.length-=I;break}i.mode=12;break;case 17:for(;m<14;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(i.nlen=257+(31&f),f>>>=5,m-=5,i.ndist=1+(31&f),f>>>=5,m-=5,i.ncode=4+(15&f),f>>>=4,m-=4,286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;m<3;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}i.lens[N[i.have++]]=7&f,f>>>=3,m-=3}for(;i.have<19;)i.lens[N[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,M={bits:i.lenbits},R=s(0,i.lens,0,19,i.lencode,0,i.work,M),i.lenbits=M.bits,R){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;x=(F=i.lencode[f&(1<<i.lenbits)-1])>>>16&255,Q=65535&F,!((w=F>>>24)<=m);){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(Q<16)f>>>=w,m-=w,i.lens[i.have++]=Q;else{if(16===Q){for(T=w+2;m<T;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(f>>>=w,m-=w,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}_=i.lens[i.have-1],I=3+(3&f),f>>>=2,m-=2}else if(17===Q){for(T=w+3;m<T;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}m-=w,_=0,I=3+(7&(f>>>=w)),f>>>=3,m-=3}else{for(T=w+7;m<T;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}m-=w,_=0,I=11+(127&(f>>>=w)),f>>>=7,m-=7}if(i.have+I>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;I--;)i.lens[i.have++]=_}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,M={bits:i.lenbits},R=s(1,i.lens,0,i.nlen,i.lencode,0,i.work,M),i.lenbits=M.bits,R){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,M={bits:i.distbits},R=s(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,M),i.distbits=M.bits,R){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(6<=p&&258<=g){t.next_out=u,t.avail_out=g,t.next_in=d,t.avail_in=p,i.hold=f,i.bits=m,a(t,E),u=t.next_out,h=t.output,g=t.avail_out,d=t.next_in,c=t.input,p=t.avail_in,f=i.hold,m=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;x=(F=i.lencode[f&(1<<i.lenbits)-1])>>>16&255,Q=65535&F,!((w=F>>>24)<=m);){if(0===p)break t
;p--,f+=c[d++]<<m,m+=8}if(x&&!(240&x)){for(S=w,k=x,D=Q;x=(F=i.lencode[D+((f&(1<<S+k)-1)>>S)])>>>16&255,Q=65535&F,!(S+(w=F>>>24)<=m);){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}f>>>=S,m-=S,i.back+=S}if(f>>>=w,m-=w,i.back+=w,i.length=Q,0===x){i.mode=26;break}if(32&x){i.back=-1,i.mode=12;break}if(64&x){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&x,i.mode=22;case 22:if(i.extra){for(T=i.extra;m<T;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}i.length+=f&(1<<i.extra)-1,f>>>=i.extra,m-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;x=(F=i.distcode[f&(1<<i.distbits)-1])>>>16&255,Q=65535&F,!((w=F>>>24)<=m);){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(!(240&x)){for(S=w,k=x,D=Q;x=(F=i.distcode[D+((f&(1<<S+k)-1)>>S)])>>>16&255,Q=65535&F,!(S+(w=F>>>24)<=m);){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}f>>>=S,m-=S,i.back+=S}if(f>>>=w,m-=w,i.back+=w,64&x){t.msg="invalid distance code",i.mode=30;break}i.offset=Q,i.extra=15&x,i.mode=24;case 24:if(i.extra){for(T=i.extra;m<T;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}i.offset+=f&(1<<i.extra)-1,f>>>=i.extra,m-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===g)break t;if(I=E-g,i.offset>I){if((I=i.offset-I)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}C=I>i.wnext?(I-=i.wnext,i.wsize-I):i.wnext-I,I>i.length&&(I=i.length),B=i.window}else B=h,C=u-i.offset,I=i.length;for(g<I&&(I=g),g-=I,i.length-=I;h[u++]=B[C++],--I;);0===i.length&&(i.mode=21);break;case 26:if(0===g)break t;h[u++]=i.length,g--,i.mode=21;break;case 27:if(i.wrap){for(;m<32;){if(0===p)break t;p--,f|=c[d++]<<m,m+=8}if(E-=g,t.total_out+=E,i.total+=E,E&&(t.adler=i.check=i.flags?o(i.check,h,E,u-E):r(i.check,h,E,u-E)),E=g,(i.flags?f:A(f))!==i.check){t.msg="incorrect data check",i.mode=30;break}m=f=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;m<32;){if(0===p)break t;p--,f+=c[d++]<<m,m+=8}if(f!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=30;break}m=f=0}i.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;default:return l}return t.next_out=u,t.avail_out=g,t.next_in=d,t.avail_in=p,i.hold=f,i.bits=m,(i.wsize||E!==t.avail_out&&i.mode<30&&(i.mode<27||4!==e))&&b(t,t.output,t.next_out,E-t.avail_out)?(i.mode=31,-4):(v-=t.avail_in,E-=t.avail_out,t.total_in+=v,t.total_out+=E,i.total+=E,i.wrap&&E&&(t.adler=i.check=i.flags?o(i.check,h,E,t.next_out-E):r(i.check,h,E,t.next_out-E)),t.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==v&&0===E||4===e)&&0===R&&(R=-5),R)},i.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},i.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?((i.head=e).done=!1,0):l},i.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,e,n,0)!==i.check?-3:b(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,i){var n=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,i,l,A,c,h,d){var u,p,g,f,m,y,b,v,E,I=d.bits,C=0,B=0,w=0,x=0,Q=0,S=0,k=0,D=0,_=0,R=0,M=null,T=0,F=new n.Buf16(16),L=new n.Buf16(16),N=null,P=0;for(C=0;C<=15;C++)F[C]=0;for(B=0;B<l;B++)F[e[i+B]]++;for(Q=I,x=15;1<=x&&0===F[x];x--);if(x<Q&&(Q=x),0===x)return A[c++]=20971520,A[c++]=20971520,d.bits=1,0;for(w=1;w<x&&0===F[w];w++);for(Q<w&&(Q=w),C=D=1;C<=15;C++)if(D<<=1,(D-=F[C])<0)return-1;if(0<D&&(0===t||1!==x))return-1;for(L[1]=0,C=1;C<15;C++)L[C+1]=L[C]+F[C];for(B=0;B<l;B++)0!==e[i+B]&&(h[L[e[i+B]]++]=B);if(y=0===t?(M=N=h,19):1===t?(M=r,T-=257,N=o,P-=257,256):(M=a,N=s,-1),C=w,m=c,k=B=R=0,g=-1,f=(_=1<<(S=Q))-1,1===t&&852<_||2===t&&592<_)return 1;for(;;){for(b=C-k,E=h[B]<y?(v=0,h[B]):h[B]>y?(v=N[P+h[B]],M[T+h[B]]):(v=96,0),u=1<<C-k,w=p=1<<S;A[m+(R>>k)+(p-=u)]=b<<24|v<<16|E,0!==p;);for(u=1<<C-1;R&u;)u>>=1;if(0!==u?(R&=u-1,R+=u):R=0,B++,0==--F[C]){if(C===x)break;C=e[i+h[B]]}if(Q<C&&(R&f)!==g){for(0===k&&(k=Q),m+=w,D=1<<(S=C-k);S+k<x&&!((D-=F[S+k])<=0);)S++,D<<=1;if(_+=1<<S,1===t&&852<_||2===t&&592<_)return 1;A[g=R&f]=Q<<24|S<<16|m-c}}return 0!==R&&(A[m+R]=C-k<<24|64<<16),d.bits=Q,0}},{"../utils/common":41}],51:[function(t,e,i){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,i){var n=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var o=256,a=286,s=30,l=15,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);r(u);var p=new Array(60);r(p);var g=new Array(512);r(g);var f=new Array(256);r(f);var m=new Array(29);r(m);var y,b,v,E=new Array(s);function I(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function B(t){return t<256?g[t]:g[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,i){t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function Q(t,e,i){x(t,i[2*e],i[2*e+1])}function S(t,e){for(var i=0;i|=1&t,t>>>=1,i<<=1,0<--e;);return i>>>1}function k(t,e,i){var n,r,o=new Array(16),a=0;for(n=1;n<=l;n++)o[n]=a=a+i[n-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=S(o[s]++,s))}}function D(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function _(t){8<t.bi_valid?w(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function M(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&R(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!R(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function T(t,e,i){var n,r,a,s,l=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===n?Q(t,r,e):(Q(t,(a=f[r])+o+1,e),0!==(s=A[a])&&x(t,r-=m[a],s),Q(t,a=B(--n),i),0!==(s=c[a])&&x(t,n-=E[a],s)),l<t.last_lit;);Q(t,256,e)}function F(t,e){var i,n,r,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,A=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<A;i++)0!==o[2*i]?(t.heap[++t.heap_len]=c=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=a[2*r+1]);for(e.max_code=c,i=t.heap_len>>1;1<=i;i--)M(t,o,i);for(r=A;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],M(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,M(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,a,s,A=e.dyn_tree,c=e.max_code,h=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,g=e.stat_desc.max_length,f=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(A[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)g<(o=A[2*A[2*(n=t.heap[i])+1]+1]+1)&&(o=g,f++),A[2*n+1]=o,c<n||(t.bl_count[o]++,a=0,p<=n&&(a=u[n-p]),s=A[2*n],t.opt_len+=s*(o+a),d&&(t.static_len+=s*(h[2*n+1]+a)));if(0!==f){do{for(o=g-1;0===t.bl_count[o];)o--
;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,f-=2}while(0<f);for(o=g;0!==o;o--)for(n=t.bl_count[o];0!==n;)c<(r=t.heap[--i])||(A[2*r+1]!==o&&(t.opt_len+=(o-A[2*r+1])*A[2*r],A[2*r+1]=o),n--)}}(t,e),k(o,c,t.bl_count)}function L(t,e,i){var n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=a,a=e[2*(n+1)+1],++s<l&&r===a||(s<A?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=r,A=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function N(t,e,i){var n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),n=0;n<=i;n++)if(r=a,a=e[2*(n+1)+1],!(++s<l&&r===a)){if(s<A)for(;Q(t,r,t.bl_tree),0!=--s;);else 0!==r?(r!==o&&(Q(t,r,t.bl_tree),s--),Q(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(Q(t,17,t.bl_tree),x(t,s-3,3)):(Q(t,18,t.bl_tree),x(t,s-11,7));o=r,A=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}r(E);var P=!1;function U(t,e,i,r){var o,a,s;x(t,0+(r?1:0),3),a=e,s=i,_(o=t),w(o,s),w(o,~s),n.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}i._tr_init=function(t){P||(function(){var t,e,i,n,r,o=new Array(16);for(n=i=0;n<28;n++)for(m[n]=i,t=0;t<1<<A[n];t++)f[i++]=n;for(f[i-1]=n,n=r=0;n<16;n++)for(E[n]=r,t=0;t<1<<c[n];t++)g[r++]=n;for(r>>=7;n<s;n++)for(E[n]=r<<7,t=0;t<1<<c[n]-7;t++)g[256+r++]=n;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,o[8]++;for(;t<=255;)u[2*t+1]=9,t++,o[9]++;for(;t<=279;)u[2*t+1]=7,t++,o[7]++;for(;t<=287;)u[2*t+1]=8,t++,o[8]++;for(k(u,287,o),t=0;t<s;t++)p[2*t+1]=5,p[2*t]=S(t,5);y=new I(u,A,257,a,l),b=new I(p,c,0,s,l),v=new I(new Array(0),h,0,19,7)}(),P=!0),t.l_desc=new C(t.dyn_ltree,y),t.d_desc=new C(t.dyn_dtree,b),t.bl_desc=new C(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,D(t)},i._tr_stored_block=U,i._tr_flush_block=function(t,e,i,n){var r,a,s=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),s=function(t){var e;for(L(t,t.dyn_ltree,t.l_desc.max_code),L(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=r&&(r=a)):r=a=i+5,i+4<=r&&-1!==e?U(t,e,i,n):4===t.strategy||a===r?(x(t,2+(n?1:0),3),T(t,u,p)):(x(t,4+(n?1:0),3),function(t,e,i,n){var r;for(x(t,e-257,5),x(t,i-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),T(t,t.dyn_ltree,t.dyn_dtree)),D(t),n&&_(t)},i._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(f[i]+o+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){var e;x(t,2,3),Q(t,256,u),16===(e=t).bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,i){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)},1009:function(t){t.exports=Math.abs},1219:function(t){t.exports=Math.floor},2659:function(t){t.exports=Math.max},7905:function(t){t.exports=Math.min},6219:function(t){t.exports=Math.pow},656:function(t){var e=function(t){return t!=t};t.exports=function(t,i){return 0===t&&0===i?1/t==1/i:t===i||!(!e(t)||!e(i))}},9068:function(t,e,i){var n=i(4938),r=i(7695),o=i(656),a=i(2197),s=i(9235),l=r(a(),Object);n(l,{getPolyfill:a,implementation:o,shim:s}),t.exports=l},2197:function(t,e,i){var n=i(656);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9235:function(t,e,i){var n=i(2197),r=i(4938);t.exports=function(){var t=n();return r(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5717:function(t,e,i){var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=i(4635),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),A=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,i="[object Function]"===o.call(t),n=a(t),s=e&&"[object String]"===o.call(t),d=[];if(!e&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var p=A&&i;if(s&&t.length>0&&!r.call(t,0))for(var g=0;g<t.length;++g)d.push(String(g));if(n&&t.length>0)for(var f=0;f<t.length;++f)d.push(String(f));else for(var m in t)p&&"prototype"===m||!r.call(t,m)||d.push(String(m));if(l)for(var y=function(t){if("undefined"==typeof window||!u)return h(t);try{return h(t)}catch(t){return!1}}(t),b=0;b<c.length;++b)y&&"constructor"===c[b]||!r.call(t,c[b])||d.push(c[b]);return d}}t.exports=n},5187:function(t,e,i){var n=Array.prototype.slice,r=i(4635),o=Object.keys,a=o?function(t){return o(t)}:i(5717),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return r(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},4635:function(t){var e=Object.prototype.toString;t.exports=function(t){var i=e.call(t),n="[object Arguments]"===i;return n||(n="[object Array]"!==i&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1924:function(t,e,i){var n=i(5187),r=i(9712)(),o=i(7412),a=i(6365),s=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),A=r?a.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var i=a(t);if(1===arguments.length)return i;for(var o=1;o<arguments.length;++o){var c=a(arguments[o]),h=n(c),d=r&&(a.getOwnPropertySymbols||A);if(d)for(var u=d(c),p=0;p<u.length;++p){var g=u[p];l(c,g)&&s(h,g)}for(var f=0;f<h.length;++f){var m=h[f];if(l(c,m)){var y=c[m];i[m]=y}}}return i}},3921:function(t,e,i){var n=i(1924);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),i={},n=0;n<e.length;++n)i[e[n]]=e[n];var r=Object.assign({},i),o="";for(var a in r)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9773:function(t){t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5409:function(t){var e,i,n=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{
i="function"==typeof clearTimeout?clearTimeout:o}catch(t){i=o}}();var s,l=[],A=!1,c=-1;function h(){A&&s&&(A=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!A){var t=a(h);A=!0;for(var e=l.length;e;){for(s=l,l=[];++c<e;)s&&s[c].run();c=-1,e=l.length}s=null,A=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function u(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new u(t,e)),1!==l.length||A||a(d)},u.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},7755:function(t,e,i){var n=i(3711),r=i(22),o=i(491)(),a=i(5667),s=i(1102),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new s("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,A=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(A=!1)}return(n||A||!i)&&(o?r(t,"length",e,!0,!0):r(t,"length",e)),t}},3957:function(t){var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},8866:function(t){var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},3897:function(t){t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},511:function(t){t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},5629:function(t){var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},4634:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5z"></path></svg>'},1048:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M14.261 4.08a.6.6 0 0 1-.007.848L7.62 11.456a1.767 1.767 0 0 1-2.478 0l-3.395-3.34a.6.6 0 1 1 .842-.855l3.394 3.34c.221.216.575.216.795 0l6.636-6.529a.6.6 0 0 1 .848.007" clip-rule="evenodd"></path></svg>'},739:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541s.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8zm3.276 7.65-.032-.003a.6.6 0 0 1-.286-.103L4.9 8.738a1 1 0 0 1-.074-.063l.032.03-.022-.02-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013-.014.01.032-.023a.6.6 0 0 1-.25.118l-.005.001a1 1 0 0 1-.094.011zM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6m4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6M6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486z"></path></svg>'},2427:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},426:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.82 11.82 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12S5.473.182 12 .182m3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},9057:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.27 3.27 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875z"></path></svg>'},536:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},3779:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" fill-rule="evenodd" d="M11.599 3.211c1.068-.007 2.119.432 3.099 1.262 1.064.901 1.53 2.303 1.515 3.69-.014 1.39-.506 2.846-1.458 3.921-1.739 1.963-3.82 3.561-4.828 4.288-.556.401-1.299.4-1.854-.002-1.003-.728-3.076-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.516-3.696.953-.807 2.003-1.243 3.073-1.243.926 0 1.818.327 2.623.943.798-.615 1.676-.955 2.6-.962m.007 1.11c-.74.005-1.495.316-2.233.986a.555.555 0 0 1-.746 0c-.731-.665-1.5-.967-2.251-.967-.755 0-1.559.305-2.356.98-.745.63-1.135 1.678-1.123 2.838.012 1.157.424 2.344 1.178 3.189 1.672 1.873 3.671 3.415 4.65 4.124a.47.47 0 0 0 .553.001c.982-.708 2.987-2.25 4.646-4.123.755-.854 1.168-2.043 1.18-3.197.011-1.157-.378-2.201-1.123-2.832-.83-.703-1.633-1.004-2.375-.999" clip-rule="evenodd"></path></svg>'},7381:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 16 16"><defs><filter id="__1IZJGH5__a" width="125%" height="125%" x="-12.5%" y="-8.9%" filterUnits="objectBoundingBox"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation=".5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"></feColorMatrix></filter><path id="__1IZJGH5__b" d="M4.393 5.952V15H2.746C1.782 15 1 14.22 1 13.259V7.694c0-.962.782-1.741 1.746-1.741zm4.524-4.806c.76.367 1.26 1.293 1.26 2.53q0 1.11-.276 2.277h3.349a1.75 1.75 0 0 1 1.7 2.168l-1.105 4.483A3.15 3.15 0 0 1 10.786 15h-5.12l.001-9.496c.917-.667 1.451-1.834 1.605-3.533.076-.844.88-1.194 1.645-.825"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__1IZJGH5__b" fill="#000" filter="url(#__1IZJGH5__a)"></use><use xlink:href="#__1IZJGH5__b" fill="#FFD070"></use></g></svg>'},5684:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},1496:function(t){t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272q0 1.875-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.32 5.32 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428"></path></svg>'},4173:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833z" clip-rule="evenodd"></path></svg>'},9461:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" fill-rule="evenodd" d="M12.376 4.211c1.068-.007 2.12.432 3.1 1.262 1.064.901 1.529 2.303 1.515 3.69-.014 1.39-.507 2.846-1.459 3.921-1.738 1.963-3.82 3.561-4.827 4.288-.556.401-1.3.4-1.854-.002-1.003-.728-3.077-2.324-4.826-4.284-.954-1.069-1.446-2.525-1.46-3.917-.014-1.388.45-2.794 1.515-3.696.954-.807 2.004-1.243 3.073-1.243.927 0 1.818.327 2.624.943.798-.615 1.676-.955 2.6-.962m.008 1.11c-.74.005-1.496.316-2.233.986a.555.555 0 0 1-.746 0c-.732-.664-1.5-.967-2.252-.967-.754 0-1.558.305-2.356.98-.744.63-1.134 1.678-1.122 2.838.011 1.157.424 2.344 1.178 3.189 1.671 1.873 3.67 3.415 4.65 4.124a.47.47 0 0 0 .553 0c.981-.708 2.987-2.25 4.645-4.123.756-.853 1.168-2.042 1.18-3.196.012-1.157-.378-2.201-1.123-2.832-.83-.702-1.632-1.004-2.374-.999" clip-rule="evenodd"></path><path fill="#fff" stroke="#00AEEC" d="M14.763 1.91a.7.7 0 0 0-1.302 0l-.49 1.241-1.24.49a.7.7 0 0 0 0 1.302l1.24.49.49 1.24a.7.7 0 0 0 1.302 0l.49-1.24 1.24-.49a.7.7 0 0 0 0-1.302l-1.24-.49z"></path><path fill="#fff" stroke="#00AEEC" d="M17.587 5.24a.7.7 0 0 0-1.302 0l-.347.878-.878.347a.7.7 0 0 0 0 1.302l.878.346.347.879a.7.7 0 0 0 1.302 0l.347-.879.878-.346a.7.7 0 0 0 0-1.302l-.878-.347z"></path></svg>'},6786:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 12"><g fill="none" fill-rule="evenodd"><circle cx="6" cy="6" r="5.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M5.4 9.939a.5.5 0 0 1-.222.063.33.33 0 0 1-.338-.325.3.3 0 0 1 .02-.092l.64-2.929-2.653.005a.334.334 0 0 1-.347-.325.32.32 0 0 1 .15-.264l3.96-3.997A.47.47 0 0 1 6.844 2a.33.33 0 0 1 .338.325.3.3 0 0 1-.045.153L6.5 5.359h2.658a.333.333 0 0 1 .342.326.32.32 0 0 1-.15.265z"></path></g></svg>'},610:function(t){t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8z" clip-rule="evenodd" opacity=".714"></path></svg>'},6653:function(t){t.exports='<svg fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.48.48 0 0 1 .702 0L3.72 6.473 9.073.83a.48.48 0 0 1 .702 0" clip-rule="evenodd"></path></svg>'},7159:function(t){t.exports='<svg data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593M8 1a.7.7 0 0 1 .698.753 4.67 4.67 0 0 1 2.668 1.373 4.9 4.9 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.6.6 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.7 4.7 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1m0 1.7c-1.002 0-1.94.397-2.651 1.125a3.9 3.9 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.6.6 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.6 1.6 0 0 1-.622-1.106l-.008-.165v-2.47a3.9 3.9 0 0 0-1.113-2.75A3.68 3.68 0 0 0 8 2.7"></path></svg>'},4395:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055q.021.22.038.441.066.885.06 1.77a19 19 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.6 1.6 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003-.044.006-.061.006-.108.01-.216.016a34 34 0 0 1-1.295.072 37 37 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002-.062-.007-.062-.01-.061-.012a1.5 1.5 0 0 1-.666-.334 1.58 1.58 0 0 1-.536-.977l-.007-.063-.006-.055A18 18 0 0 1 3.51 7.53q.026-.885.12-1.765a1.6 1.6 0 0 1 .405-.899 1.52 1.52 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014q.216-.014.432-.024.284-.014.566-.023l-.055-.07a14 14 0 0 1-.285-.388l-.07-.099-.034-.05-.003-.003-.03-.047a.4.4 0 0 1-.044-.267.47.47 0 0 1 .518-.383.36.36 0 0 1 .235.124l.034.043q0 .002.003.005l.036.048.07.098q.142.195.274.396a11 11 0 0 1 .353.57 60 60 0 0 1 1.337 0 11 11 0 0 1 .352-.57q.133-.201.274-.396l.07-.098.036-.048.004-.005.033-.043a.4.4 0 0 1 .236-.124.47.47 0 0 1 .517.383.4.4 0 0 1-.044.267q-.014.023-.03.046l-.003.004-.034.05-.07.099q-.139.196-.285.387l-.037.047-.016.022q.204.006.41.016.432.019.865.05l.013.002.015.001.03.003.06.008h.002l.03.004.03.006.061.013a1.5 1.5 0 0 1 .655.336 1.56 1.56 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055zm-.807 3.048q.024-.431.027-.844a21 21 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.67.67 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42 42 0 0 0-1.999-.04 50 50 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003-.048.007a.65.65 0 0 0-.476.376.7.7 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a19 19 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.68.68 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36 36 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.68.68 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198q.016-.209.028-.419m-.836-1.928q.05.026.102.057c.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002-.102-.036-.026-.01-.077-.03-.01-.004-.091-.038-.102-.042-.102-.043-.101-.044-.203-.086-.407-.166-.204-.081-.101-.04-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225q.111.033.22.067l.11.035.108.037q.216.075.428.159l.186.074.025.01.04.017q.086.035.17.072a5 5 0 0 1 .309.149M7.1 7.167l-.008.004-.098.038-.106.041-.203.081q-.204.082-.407.167l-.203.086-.09.038-.113.049-.102.042-.071.03-.133.051-.102.037-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2 2 0 0 1 .203-.11 5 5 0 0 1 .39-.173l.027-.01q.104-.045.212-.086.212-.083.428-.158l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387m2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023L9 8.391a1.3 1.3 0 0 1-.13.265.5.5 0 0 1-.116.119.24.24 0 0 1-.13.041.3.3 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.14.14 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a2 2 0 0 1-.074.132 1 1 0 0 1-.117.151.5.5 0 0 1-.137.1.3.3 0 0 1-.146.031.24.24 0 0 1-.13-.041.5.5 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.4 1.4 0 0 0 .172.412c.049.075.112.147.195.204a.55.55 0 0 0 .288.095.6.6 0 0 0 .286-.062.8.8 0 0 0 .222-.167q.075-.083.13-.173.055.09.13.173c.06.065.135.124.222.167a.6.6 0 0 0 .285.062.53.53 0 0 0 .289-.095.7.7 0 0 0 .195-.204 1.2 1.2 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155"></path></svg>'},6640:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},515:function(t,e,i){var n=i(6531),r=i(3034),o=i(9033),a=i(6);function s(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,A="undefined"!=typeof Symbol,c=s(Object.prototype.toString),h=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),u=s(Boolean.prototype.valueOf);if(l)var p=s(BigInt.prototype.valueOf);if(A)var g=s(Symbol.prototype.valueOf);function f(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===c(t)}function y(t){return"[object Set]"===c(t)}function b(t){return"[object WeakMap]"===c(t)}function v(t){return"[object WeakSet]"===c(t)}function E(t){return"[object ArrayBuffer]"===c(t)}function I(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function C(t){return"[object DataView]"===c(t)}function B(t){return"undefined"!=typeof DataView&&(C.working?C(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=r,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||B(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},m.working="undefined"!=typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},y.working="undefined"!=typeof Set&&y(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(y.working?y(t):t instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},v.working="undefined"!=typeof WeakSet&&v(new WeakSet),e.isWeakSet=function(t){return v(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=I,C.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&C(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=B;var w="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(t){return"[object SharedArrayBuffer]"===c(t)}function Q(t){return void 0!==w&&(void 0===x.working&&(x.working=x(new w)),x.working?x(t):t instanceof w)}function S(t){return f(t,h)}function k(t){return f(t,d)}function D(t){return f(t,u)}function _(t){return l&&f(t,p)}function R(t){return A&&f(t,g)}e.isSharedArrayBuffer=Q,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=S,e.isStringObject=k,e.isBooleanObject=D,e.isBigIntObject=_,e.isSymbolObject=R,e.isBoxedPrimitive=function(t){return S(t)||k(t)||D(t)||_(t)||R(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(I(t)||Q(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},1344:function(t,e,i){var n=i(5409),r=i(4399),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++)i[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return i},a=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],i=0;i<arguments.length;i++)e.push(c(arguments[i]));return e.join(" ")}i=1;for(var n=arguments,r=n.length,o=String(t).replace(a,(function(t){if("%%"===t)return"%";if(i>=r)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{
return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return t}})),s=n[i];i<r;s=n[++i])y(s)||!C(s)?o+=" "+s:o+=" "+c(s);return o},e.deprecate=function(t,i){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,i).apply(this,arguments)};var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?r.trace(i):r.error(i),o=!0}return t.apply(this,arguments)}};var s={},l=/^$/;if(n.env.NODE_DEBUG){var A=n.env.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+A+"$","i")}function c(t,i){var n={seen:[],stylize:d};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(i)?n.showHidden=i:i&&e._extend(n,i),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=h),u(n,t,n.depth)}function h(t,e){var i=c.styles[e];return i?"["+c.colors[i][0]+"m"+t+"["+c.colors[i][1]+"m":t}function d(t,e){return t}function u(t,i,n){if(t.customInspect&&i&&x(i.inspect)&&i.inspect!==e.inspect&&(!i.constructor||i.constructor.prototype!==i)){var r=i.inspect(n,t);return v(r)||(r=u(t,r,n)),r}var o=function(t,e){if(E(e))return t.stylize("undefined","undefined");if(v(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}return b(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,i);if(o)return o;var a,s=Object.keys(i),l=(a={},s.forEach((function(t,e){a[t]=!0})),a);if(t.showHidden&&(s=Object.getOwnPropertyNames(i)),w(i)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(i);if(0===s.length){if(x(i)){var A=i.name?": "+i.name:"";return t.stylize("[Function"+A+"]","special")}if(I(i))return t.stylize(RegExp.prototype.toString.call(i),"regexp");if(B(i))return t.stylize(Date.prototype.toString.call(i),"date");if(w(i))return p(i)}var c,h="",d=!1,C=["{","}"];return f(i)&&(d=!0,C=["[","]"]),x(i)&&(h=" [Function"+(i.name?": "+i.name:"")+"]"),I(i)&&(h=" "+RegExp.prototype.toString.call(i)),B(i)&&(h=" "+Date.prototype.toUTCString.call(i)),w(i)&&(h=" "+p(i)),0!==s.length||d&&0!=i.length?n<0?I(i)?t.stylize(RegExp.prototype.toString.call(i),"regexp"):t.stylize("[Object]","special"):(t.seen.push(i),c=d?function(t,e,i,n,r){for(var o=[],a=0,s=e.length;a<s;++a)D(e,String(a))?o.push(g(t,e,i,n,String(a),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(g(t,e,i,n,r,!0))})),o}(t,i,n,l,s):s.map((function(e){return g(t,i,n,l,e,d)})),t.seen.pop(),function(t,e,i){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?i[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+i[1]:i[0]+e+" "+t.join(", ")+" "+i[1]}(c,h,C)):C[0]+h+C[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,i,n,r,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),D(n,r)||(a="["+r+"]"),s||(t.seen.indexOf(l.value)<0?(s=y(i)?u(t,l.value,null):u(t,l.value,i-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return"  "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return"   "+t})).join("\n")):s=t.stylize("[Circular]","special")),E(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function f(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function b(t){return"number"==typeof t}function v(t){return"string"==typeof t}function E(t){return void 0===t}function I(t){return C(t)&&"[object RegExp]"===Q(t)}function C(t){return"object"==typeof t&&null!==t}function B(t){return C(t)&&"[object Date]"===Q(t)}function w(t){return C(t)&&("[object Error]"===Q(t)||t instanceof Error)}function x(t){return"function"==typeof t}function Q(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(l.test(t)){var i=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);r.error("%s %d: %s",t,i,n)}}else s[t]=function(){};return s[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=i(515),e.isArray=f,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=E,e.isRegExp=I,e.types.isRegExp=I,e.isObject=C,e.isDate=B,e.types.isDate=B,e.isError=w,e.types.isNativeError=w,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=i(6640);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,i;r.log("%s - %s",(i=[S((t=new Date).getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],i].join(" ")),e.format.apply(e,arguments))},e.inherits=i(1193),e._extend=function(t,e){if(!e||!C(e))return t;for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t};var _="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var i=new Error("Promise was rejected with a falsy value");i.reason=t,t=i}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(_&&t[_]){var e;if("function"!=typeof(e=t[_]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,_,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,i,n=new Promise((function(t,n){e=t,i=n})),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push((function(t,n){t?i(t):e(n)}));try{t.apply(this,r)}catch(t){i(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),_&&Object.defineProperty(e,_,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,o(t))},e.promisify.custom=_,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],i=0;i<arguments.length;i++)e.push(arguments[i]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return r.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(R.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,o(t)),e}},9033:function(t,e,i){var n=i(4086),r=i(4379),o=i(7695),a=i(7412),s=i(5667),l=a("Object.prototype.toString"),A=i(7185)(),c="undefined"==typeof globalThis?i.g:globalThis,h=r(),d=a("String.prototype.slice"),u=Object.getPrototypeOf,p=a("Array.prototype.indexOf",!0)||function(t,e){for(var i=0;i<t.length;i+=1)if(t[i]===e)return i;return-1},g={__proto__:null};n(h,A&&s&&u?function(t){var e=new c[t];if(Symbol.toStringTag in e){var i=u(e),n=s(i,Symbol.toStringTag);if(!n){var r=u(i);n=s(r,Symbol.toStringTag)}g["$"+t]=o(n.get)}}:function(t){var e=new c[t],i=e.slice||e.set;i&&(g["$"+t]=o(i))}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!A){var e=d(l(t),8,-1);return p(h,e)>-1?e:"Object"===e&&(i=t,r=!1,n(g,(function(t,e){if(!r)try{t(i),r=d(e,1)}catch(t){}})),r)}var i,r;return s?function(t){var e=!1;return n(g,(function(i,n){if(!e)try{"$"+i(t)===n&&(e=d(n,1))}catch(t){}})),e}(t):null}},9455:function(t){
t.exports=function(t,e,i,n){var r=self||window;try{try{var o;try{o=new r.Blob([t])}catch(e){(o=new(r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder)).append(t),o=o.getBlob()}var a=r.URL||r.webkitURL,s=a.createObjectURL(o),l=new r[e](s,i);return a.revokeObjectURL(s),l}catch(n){return new r[e]("data:application/javascript,".concat(encodeURIComponent(t)),i)}}catch(t){if(!n)throw Error("Inline worker is not supported");return new r[e](n,i)}}},4815:function(t){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNf6auY6LWePC90aXRsZT4KICAgIDxkZWZzPgogICAgICAgIDxwYXRoIGQ9Ik00LjM5Myw1Ljk1MiBMNC4zOTMsMTUgTDIuNzQ2MTU2ODgsMTUgQzEuNzgyMDU3OTIsMTUgMSwxNC4yMjA3MDQ0IDEsMTMuMjU4NzczNyBMMSw3LjY5Mzg3MjQzIEMxLDYuNzMxOTQxNzggMS43ODIwNTc5Miw1Ljk1MjY0NjE3IDIuNzQ2MTU2ODgsNS45NTI2NDYxNyBMNC4zOTMsNS45NTIgWiBNOC45MTcxMDA2NiwxLjE0NjM2Nzc1IEM5LjY3NjY3ODg5LDEuNTEzMDc5NDEgMTAuMTc3NzI2OCwyLjQzOTIwMjA2IDEwLjE3NzcyNjgsMy42NzY1Nzk0OSBDMTAuMTc3NzI2OCw0LjQxNjU5NjIxIDEwLjA4NTMwMzEsNS4xNzUzNzA1NyA5LjkwMDg2MDgyLDUuOTUyNjQ0MjUgTDEzLjI0OTk5OSw1Ljk1MjY0NjE3IEMxNC4yMTY0OTc5LDUuOTUyNjQ2MTcgMTUsNi43MzYxNDk5NCAxNSw3LjcwMjY1MDgyIEMxNSw3Ljg0Mzc2ODE4IDE0Ljk4MjkzMTEsNy45ODQzNjc1MSAxNC45NDkxNjUxLDguMTIxMzg1NjIgTDEzLjg0NDU2NSwxMi42MDM3MTQyIEMxMy40OTc3NjI5LDE0LjAxMDk5MzYgMTIuMjM1NDQ0NywxNSAxMC43ODYwNjYsMTUgTDUuNjY2LDE1IEw1LjY2NzEwMDMsNS41MDQwODU4MSBDNi41ODM1NDg0MSw0LjgzNjY5ODAyIDcuMTE4Mzc1MzMsMy42NzAwMzg5OSA3LjI3MjA1Mzk1LDEuOTcwNTQwOTMgQzcuMzQ4MzEwOTcsMS4xMjcyMzEzMyA4LjE1MTU5MTU4LDAuNzc2NzkyNzgxIDguOTE3MTAwNjYsMS4xNDYzNjc3NSBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICAgICAgPGZpbHRlciB4PSItMTIuNSUiIHk9Ii04LjklIiB3aWR0aD0iMTI1LjAlIiBoZWlnaHQ9IjEyNS4wJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iZmlsdGVyLTIiPgogICAgICAgICAgICA8ZmVPZmZzZXQgZHg9IjAiIGR5PSIwLjUiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dPZmZzZXRPdXRlcjEiPjwvZmVPZmZzZXQ+CiAgICAgICAgICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjAuNSIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIj48L2ZlR2F1c3NpYW5CbHVyPgogICAgICAgICAgICA8ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAgIDAgMCAwIDAgMCAgIDAgMCAwIDAgMCAgMCAwIDAgMC41IDAiIHR5cGU9Im1hdHJpeCIgaW49InNoYWRvd0JsdXJPdXRlcjEiPjwvZmVDb2xvck1hdHJpeD4KICAgICAgICA8L2ZpbHRlcj4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSLkuInov57kuI7pq5jotZ7lvLnluZXlvLHljJYiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSLpq5jotZ7lvLnluZXlvLHljJYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNzguMDAwMDAwLCAtMTc4LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyBpZD0i57yW57uELTPlpIfku70tMyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTc4LjAwMDAwMCwgMTc2LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Iui1niIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPHVzZSBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIxIiBmaWx0ZXI9InVybCgjZmlsdGVyLTIpIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgICAgICAgICA8dXNlIGZpbGw9IiNGRkQwNzAiIGZpbGwtcnVsZT0iZXZlbm9kZCIgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="},4379:function(t,e,i){var n=i(9773),r="undefined"==typeof globalThis?i.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof r[n[e]]&&(t[t.length]=n[e]);return t}}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={id:t,exports:{}};return r[t](i,i.exports,a),i.exports}a.m=r,a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.b=document.baseURI||self.location.href;var s={};!function(){a.d(s,{zH:function(){return ni},Ki:function(){return ei},PV:function(){return J},W3:function(){return we},BH:function(){return Ee},jl:function(){return vi},Xn:function(){return x},nQ:function(){return Ve},MY:function(){return Si},re:function(){return Di},LE:function(){return H},EN:function(){return Zt},wR:function(){return S},bJ:function(){return oi},_T:function(){return C},jD:function(){return w},X7:function(){return I},Oo:function(){return B},Bx:function(){return G},S:function(){return Li},FE:function(){return Ri},Zj:function(){return Ze},Kt:function(){return Y},c5:function(){return O},Xx:function(){return V},F9:function(){return X},VI:function(){return Ue},b3:function(){return ke},DQ:function(){return Ti},dw:function(){return Jt},PD:function(){return Ke},Iw:function(){return ue},ne:function(){return Ae},Wi:function(){return wi},r9:function(){return D},Wg:function(){return se},sZ:function(){return Me},Ke:function(){return W},aE:function(){return be},vH:function(){return ge},CC:function(){return Gt},aJ:function(){return Ut},B_:function(){return Ne},T:function(){return Et},PG:function(){return ot},Jh:function(){return Dt},uI:function(){return Nt},Ay:function(){return Ni},sb:function(){return z},lg:function(){return K},ZV:function(){return dt},Xo:function(){return et},vX:function(){return ht},T$:function(){return St},H2:function(){return Pt},Dx:function(){return lt},M6:function(){return Mt},Pi:function(){return U},uW:function(){return ct},_N:function(){return at},Hw:function(){return F},m9:function(){return P},ar:function(){return _},_C:function(){return N},VS:function(){return M},hI:function(){return T},Q0:function(){return R},zq:function(){return L},Gl:function(){return Lt},hH:function(){return yt},oG:function(){return mt},J:function(){return Ct},XB:function(){return It},sv:function(){return it},yT:function(){return tt},zy:function(){return _t},bz:function(){return rt},p6:function(){return At},N0:function(){return kt},C2:function(){return nt},ET:function(){return $},$1:function(){return bt},uR:function(){return Ft}});var t=a(3957),e=a.n(t),i=a(5629),n=a.n(i),r=a(8866),o=a.n(r),l=a(511),A=a.n(l),c=a(3897),h=a.n(c),d=a(417),u={attributes:{"data-injector":"danmaku-x"}};u.setAttributes=A(),u.insert=o().bind(null,"head"),u.domAPI=n(),u.insertStyleElement=h(),e()(d.A,u),d.A&&d.A.locals&&d.A.locals;var p,g,f,m,y,b,v,E,I,C,B,w,x,Q,S=function(){function t(t){var e,i,n;for(var r in this.configMap=t,this.blackHoleList=[],this.pools=((e={})[x.ScrollVertical]={},e[x.ScrollHorizontal]={},e[x.Top]={},e[x.Bottom]={},e[x.Rotate]={},e[x.Shooter]={},e),this.map=((i={})[x.ScrollHorizontal]=[C.Roll,C.Reverse,B.BlackHole],i[x.ScrollVertical]=[B.Firework2022,B.Firework2023,B.FireworkBillion,B.FireworkBoom],i[x.Top]=[C.Top],i[x.Bottom]=[C.Bottom],i[x.Rotate]=[B.Spring],i[x.Shooter]=[B.Shooter],i),this.configMap)this.map[r]&&Array.isArray(this.map[r])?(n=this.map[r]).push.apply(n,this.configMap[r]):(this.map[r]=this.configMap[r],this.pools[r]=this.pools[r]||{})}return t.prototype.registerPool=function(t){for(var e in this.map)if(this.map[e].includes(t))return this.pools[e]=this.pools[e]||{},this.pools[e];return this.map[t]=[t],this.pools[t]={},this.pools[t]},t.prototype.getPool=function(t){for(var e in this.map)if(this.map[e].includes(t))return this.pools[e]=this.pools[e]||{},this.pools[e];return null},t.prototype.getBlackHoleList=function(){return this.blackHoleList},t.prototype.resizeSegmentsArea=function(t,e){},t.prototype.clearAllPool=function(){for(var t in this.pools){var e=this.pools[t];if(t===x.Shooter)for(var i in e)e[i].length=0;else for(var n in e)e[n].clear()}},t}(),k=function(){return k=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},k.apply(this,arguments)};(Q=I||(I={})).common="common",Q.inside="inside",Q.rotate="rotate",function(t){t[t.Roll=1]="Roll",t[t.Bottom=4]="Bottom",t[t.Top=5]="Top",t[t.Reverse=6]="Reverse"}(C||(C={})),function(t){t[t.FireworkBillion=2e3]="FireworkBillion",
t[t.FireworkBoom=2001]="FireworkBoom",t[t.Firework2022=2002]="Firework2022",t[t.Firework2023=2003]="Firework2023",t[t.Spring=2004]="Spring",t[t.Cross=2005]="Cross",t[t.PK=2006]="PK",t[t.BlackHole=2007]="BlackHole",t[t.PrefixImage=2008]="PrefixImage",t[t.SuffixImage=2009]="SuffixImage",t[t.UpProfile=2010]="UpProfile",t[t.Guest=2011]="Guest",t[t.Colorful=2012]="Colorful",t[t.Yanwen=2013]="Yanwen",t[t.Picture=2014]="Picture",t[t.Sand=2015]="Sand",t[t.HarryPotter=2016]="HarryPotter",t[t.Mars=2017]="Mars",t[t.Shooter=2018]="Shooter",t[t.LiveToVod=2019]="LiveToVod",t[t.Bidirection=2020]="Bidirection"}(B||(B={})),function(t){t[t.Combo=3e3]="Combo",t[t.Link=3001]="Link",t[t.Score=3002]="Score",t[t.ScoreSum=3003]="ScoreSum",t[t.ClockIn=3004]="ClockIn",t[t.Follow=3005]="Follow",t[t.Vote=3006]="Vote",t[t.Reserve=3007]="Reserve",t[t.Rewardfans=3008]="Rewardfans",t[t.GoodsLike=3009]="GoodsLike",t[t.SuperRating=3010]="SuperRating",t[t.Cmtime=3011]="Cmtime",t[t.QoeFeedback=3012]="QoeFeedback"}(w||(w={})),function(t){t.ScrollHorizontal="ScrollHorizontal",t.ScrollVertical="ScrollVertical",t.Bottom="Bottom",t.Top="Top",t.Rotate="Rotate",t.Shooter="Shooter"}(x||(x={}));var D,_=((p={})[w.Link]=!0,p[w.Follow]=!0,p[w.Score]=!0,p[w.Reserve]=!0,p[w.Vote]=!0,p[w.ClockIn]=!0,p[w.ScoreSum]=!0,p[w.Rewardfans]=!0,p[w.GoodsLike]=!0,p[w.SuperRating]=!0,p[w.Cmtime]=!0,p[w.QoeFeedback]=!0,p),R=Object.create(k({},_)),M=((g={})[B.Firework2022]=4e4,g[B.FireworkBillion]=4e4,g[B.FireworkBoom]=4e4,g[B.Spring]=1e4,g),T=((f={})[B.PK]=!0,f[B.Spring]=!0,f[B.Firework2023]=!0,f[B.Shooter]=!0,f),F=((m={})[C.Bottom]=!0,m[C.Top]=!0,m[C.Roll]=!0,m[C.Reverse]=!0,m),L=((y={})[B.FireworkBillion]=!0,y[B.FireworkBoom]=!0,y[B.Firework2022]=!0,y[B.Spring]=!0,y[B.Firework2023]=!0,y[B.Cross]=!0,y[B.PK]=!0,y[B.BlackHole]=!0,y[B.Shooter]=!0,y),N=Object.create(k({},_)),P=((b={})[B.PrefixImage]=!0,b[B.SuffixImage]=!0,b[B.Colorful]=!0,b[B.Yanwen]=!0,b[B.Sand]=!0,b[B.Picture]=!0,b[B.UpProfile]=!0,b[B.Guest]=!0,b[B.Mars]=!0,b[B.HarryPotter]=!0,b[B.LiveToVod]=!0,b[B.Bidirection]=!0,b),U=((v={})[w.ClockIn]=!0,v[w.Link]=!0,v[w.Score]=!0,v[w.ScoreSum]=!0,v[w.SuperRating]=!0,v[w.Vote]=!0,v[w.Reserve]=!0,v[w.Rewardfans]=!0,v),O=((E={})[C.Roll]=I.common,E[C.Bottom]=I.common,E[C.Top]=I.common,E[C.Reverse]=I.common,E[B.Firework2022]=I.common,E[B.FireworkBillion]=I.common,E[B.FireworkBoom]=I.common,E[B.Cross]=I.common,E[B.PK]=I.common,E[B.Firework2023]=I.common,E[B.BlackHole]=I.common,E[B.HarryPotter]=I.common,E[B.Mars]=I.common,E[B.Shooter]=I.common,E[B.LiveToVod]=I.common,E[w.Combo]=I.inside,E[B.Bidirection]=I.common,E[w.Link]=I.inside,E[w.Score]=I.inside,E[w.ScoreSum]=I.inside,E[w.ClockIn]=I.inside,E[w.Follow]=I.inside,E[w.Vote]=I.inside,E[w.Reserve]=I.inside,E[w.Rewardfans]=I.inside,E[w.SuperRating]=I.inside,E[w.QoeFeedback]=I.inside,E[w.GoodsLike]=I.inside,E[w.Cmtime]=I.inside,E[B.Spring]=I.rotate,E);!function(t){t[t.OFF=0]="OFF",t[t.ON=1]="ON",t[t.HIDE=2]="HIDE"}(D||(D={}));var G,H="bili-danmaku-x",V=667;!function(t){t.Danmaku_Interact_Click="Danmaku_Interact_Click",t.Danmaku_Roll_Hover="Danmaku_Roll_Hover",t.Follow_Danmaku_Events="Follow_Danmaku_Get_Events",t.Cmtime_Danmaku_Support="Cmtime_Danmaku_Support",t.ClockIn_Danmaku_Click="ClockIn_Danmaku_Click",t.GoodsLike_Danmaku_Click="GoodsLike_Danmaku_Click",t.Link_Danmaku_Click="Link_Danmaku_Click",t.Reserve_Danmaku_Click="Reserve_Danmaku_Click",t.Rewardfans_Danmaku_Click="Rewardfans_Danmaku_Click",t.Score_Danmaku_Events="Score_Danmaku_Events",t.Vote_Danmaku_Events="Vote_Danmaku_Events",t.Interact_Danmaku_ShrinkState_Changed="Interact_Danmaku_ShrinkState_Changed",t.Interact_Danmaku_Position_Changed="Interact_Danmaku_Position_Changed",t.Danmaku_Stat_Report="Danmaku_Stat_Report",t.Danmaku_Track_Report="Danmaku_Track_Report",t.Danmaku_Play="Danmaku_Play",t.Danmaku_Pause="Danmaku_Pause",t.Danmaku_Render="Danmaku_Render",t.Danmaku_Log="Danmaku_Log"}(G||(G={}));var Y={Roll:C.Roll,Bottom:C.Bottom,Top:C.Top,Reverse:C.Reverse,Firework2022:B.Firework2022,Firework2023:B.Firework2023,FireworkBillion:B.FireworkBillion,FireworkBoom:B.FireworkBoom,Spring:B.Spring,PK:B.PK,Cross:B.Cross,BlackHole:B.BlackHole,PrefixImage:B.PrefixImage,SuffixImage:B.SuffixImage,Picture:B.Picture,Guest:B.Guest,UpProfile:B.UpProfile,Colorful:B.Colorful,Yanwen:B.Yanwen,Sand:B.Sand,HarryPotter:B.HarryPotter,LiveToVod:B.LiveToVod,Mars:B.Mars,Shooter:B.Shooter,Bidirection:B.Bidirection,Combo:w.Combo,Link:w.Link,Score:w.Score,ScoreSum:w.ScoreSum,ClockIn:w.ClockIn,Follow:w.Follow,Vote:w.Vote,Reserve:w.Reserve,Rewardfans:w.Rewardfans,GoodsLike:w.GoodsLike,SuperRating:w.SuperRating,Cmtime:w.Cmtime},z={setting:{visible:!0,isRecyclingDom:!0,isRecyclingModel:!1,bold:!0,opacity:1,fontFamily:'SimHei, "Microsoft JhengHei"',fontSize:1,fullScreenSync:!1,duration:4.5,speedPlus:1,speedSync:!1,videoSpeed:1,area:100,limit:300,density:1,offsetTop:4,offsetBottom:0,preventShade:!1,preTime:1,canBindMove:!1,forbidEvents:!1,forbidShrinkState:!1,noDanmakuXTypes:[]},fn:{timelineSync:function(){return window.performance.now()/1e3},filter:function(t){return!1}},scene:{isMini:!1,isMobile:!1,creator:!1}},W=function(){function t(t){this.timeline=t.fn.timelineSync,this.preTime=t.setting.preTime}return Object.defineProperty(t.prototype,"nowTime",{get:function(){return Date.now()/1e3},enumerable:!1,configurable:!0}),t.prototype.play=function(){this.playTime?this.pauseTime&&(this.playTime+=this.nowTime-this.pauseTime):this.playTime=this.nowTime-(this.currentTime||0),this.pauseTime=0},t.prototype.pause=function(){this.pauseTime=this.nowTime},t.prototype.seek=function(t){this.pauseTime=this.nowTime,this.playTime=this.pauseTime-t,this.seekTarget=t,this.lastFetchDmTime=this.seekTarget,this.updateTime()},Object.defineProperty(t.prototype,"seekTarget",{get:function(){return this._seekTarget},set:function(t){this._seekTarget=null!=t?t:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastFetchDmTime",{get:function(){return this._lastFetchDmTime},set:function(t){this._lastFetchDmTime=t},enumerable:!1,configurable:!0}),t.prototype.shouldFetchAndInitDm=function(){return!this.lastFetchDmTime||this.renderTime-this.lastFetchDmTime>this.preTime||"number"==typeof this.seekTarget},t.prototype.updateTime=function(){var t;this.renderTime=Math.max(this.nowTime-this.playTime,.01),this.currentTime=(null===(t=this.timeline)||void 0===t?void 0:t.call(this))||this.renderTime},t}();function Z(t,e,i){for(var n=0,r=t.length-1,o=0;n<=r;){var a=i(e,t[o=Math.floor((n+r)/2)]);if(-1===a)r=o-1;else if(1===a)n=o+1;else if(0===a)return o+1}return t[o]?-1===i(e,t[o])?o:o+1:o}var j,q=(j=function(t,e){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),J=function(t){function e(){var i=t.call(this)||this;return Object.setPrototypeOf(i,e.prototype),i.length=0,i}return q(e,t),e.prototype.bsearch=function(t,e){return Z(this,t,e)},e.prototype.binsert=function(t,e){var i=this.bsearch(t,e);return this.splice(i,0,t),i},e.prototype.bremove=function(t){for(var e=0;e<this.length;e++)if(this[e]===t)return void this.splice(e,1)},e.prototype.clear=function(){this.length=0},e}(Array),K={field:1e3,liveStart:0,liveCurrent:0,density:0,speed:1.2,resize:function(){this.liveCurrent=0},validateLive:function(t){if(this.config=t,this.density=null==t?void 0:t.density,(null==t?void 0:t.speed)&&(this.speed=t.speed),this.density<0||0!==(null==t?void 0:t.pool))return!0;var e=Math.floor(this.density*(.5*this.speed)/3*this.field/1e3);e<1&&(e=1),0===this.liveStart&&(this.liveStart=+new Date);var i=+new Date;if(i>this.liveStart+this.field)for(this.liveCurrent=0;i>this.liveStart+this.field;)this.liveStart+=this.field;return this.liveCurrent<e&&(this.liveCurrent++,!0)}},X=function(){function t(t,e){this.list=t instanceof Array?t:[],this.fnCompare=e||this.fnDefault}
return Object.defineProperty(t.prototype,"length",{get:function(){return this.list.length},enumerable:!1,configurable:!0}),t.prototype.getItem=function(t){return this.list[t]},t.prototype.fnDefault=function(t,e){return t.stime>e.stime?1:t.stime<e.stime?-1:0},t.prototype.reset=function(){this.list.length=0},t.prototype.insert=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0;i<t.length;){var n=Z(this.list,t[i],this.fnCompare);this.list.splice(n,0,t[i]),i++}return this},t.prototype.remove=function(t){for(var e=Z(this.list,t,this.fnCompare);e>=0;){if(this.list[e]===t)return this.list.splice(e,1),!0;e--}return!1},t.prototype.getItemsByRange=function(t,e){var i=Z(this.list,t,this.fnCompare),n=Z(this.list,e,this.fnCompare);return this.getItemsByIndexRange(i,n)},t.prototype.getItemsByIndexRange=function(t,e){var i=[];if(e<=t)return i;for(;t<e&&t<this.list.length;)i.push(this.list[t]),t++;return i},t}(),$=function(t){return Object.assign({},t,{isMaster:!!t.border,border:t.border||!1,borderColor:t.borderColor||6750207})};function tt(t,e){return t+Math.floor(100*Math.random())*(e-t)/100}function et(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var i=0|Math.floor(t),n=("0"+i%60).slice(-2);return(n=Math.floor(i%3600/60)+":"+n).length<5&&(n="0"+n),!(!Math.floor(t/3600)&&!Math.floor(e/3600))&&(n=Math.floor(t/3600)+":"+n),n}function it(t){if(!t)return{};var e=t.split("?"),i=e[0],n=e[1],r={url:i};return n&&n.split("&").forEach((function(t){var e=t.split("="),i=e[0],n=e[1];try{r[i]=decodeURIComponent(n)}catch(t){}})),r}function nt(t){if(!t)return null;for(var e=[],i=atob(t),n=0,r=i.length;n<r;++n)e.push(i.charCodeAt(n));return new Uint8Array(e)}var rt=function(t,e,i){t=t||0,e=e||0;var n=[];return i.forEach((function(i){var r,o,a=i.textData,s=i.width,l=i.height,A=i.x,c=i.y,h=i.isHide;if(F[null==a?void 0:a.rawMode]&&!h)if((null==a?void 0:a.rawMode)===C.Reverse||!0===i._isReverse){var d=((null===(o=null===(r=i.manager)||void 0===r?void 0:r.containerSize)||void 0===o?void 0:o.width)||i.horizontalDistance)-A-s;t>=d-5&&t<=d+s+5&&e>=c-5&&e-l<=c+5&&n.push(i)}else t>=A-5&&t<=A+s+5&&e>=c-5&&e-l<=c+5&&n.push(i)})),n},ot=["","-webkit-","-moz-","-ms-"];function at(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\//g,"&#x2f;").replace(/\n/g,"<br>")}var st=1;function lt(){return st++}function At(t){st=t}function ct(t){return t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#x2f;/g,"/").replace(/<br>/g,"")}function ht(t,e){void 0===e&&(e=12);for(var i=t.split(""),n=0,r="",o=0;o<t.length;o++){if(n>e){r+="...";break}i[o].charCodeAt(0)>255?n+=2:n++,r+=i[o]}return r}function dt(t){return t<0||null==t?"--":-1!==String(t).indexOf(".")||-1!==String(t).indexOf("-")?t+"":0===t?"0":t>=1e4&&t<1e8?(t/1e4).toFixed(1)+"万":t>=1e8?(t/1e8).toFixed(1)+"亿":t+""}var ut=a(8606),pt=a.n(ut),gt={},ft={};function mt(t){var e=t.replace("http://","//");return 0!==(e=e.replace("https://","//")).indexOf("//")&&(e="//"+e),gt[e]=gt[e]||yt(e),gt[e]}function yt(t){return new Promise((function(e,i){var n=[2e3,3e3],r=0,o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="arraybuffer",o.onload=function(){e(o.response)},o.onerror=function(e){n[r]?setTimeout((function(){o.open("GET",t,!0),o.send()}),n[r++]):i(e)},o.send()}))}function bt(t){return ft[t]=ft[t]||new Promise((function(e,i){mt(t).then((function(t){(new(pt())).loadAsync(t).then((function(t){var e=[],i=function(i){if(!t.files[i].dir){var n=t.files[i].name,r=null;if(/^__MACOSX/.test(n))return"continue";/\.(png|jpg|jpeg|gif)$/.test(n)?r=t.file(n).async("base64").then((function(t){var e=n.split("/").pop().split(".")[1];return{name:n,type:"image",format:e,content:"data:image/".concat(e,";base64,").concat(t)}})):/\.(json)$/.test(n)?r=t.file(n).async("string").then((function(t){var e=JSON.parse(t);return{type:"json",name:n,content:e}})):/\.(ttf)$/.test(n)&&(r=t.file(n).async("arraybuffer").then((function(t){return{type:"font",name:n,content:t}}))),e.push(r)}};for(var n in t.files)i(n);return e})).then((function(t){Promise.all(t).then((function(t){e(t)}))}))}))})),ft[t]}var vt=function(){function t(){this.ua=navigator.userAgent.toLowerCase()}return Object.defineProperty(t.prototype,"msie",{get:function(){return{alike:window.ActiveXObject||"ActiveXObject"in window,ie11:/rv:11/i.test(this.ua)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssVar",{get:function(){if("boolean"==typeof this.supportCssVar)return this.supportCssVar;var t=this.msie,e=t.alike,i=t.ie11;if(e||i)return this.supportCssVar=!1,!1;var n,r,o,a=(n=this.ua,o=n.match(/(msie|firefox|chrome|opera|version).*?([\d.]+)/),{browser:null===(r=null==o?void 0:o[1])||void 0===r?void 0:r.replace(/version/,"safari"),ver:parseFloat(null==o?void 0:o[2])}),s=a.ver;switch(a.browser){case"chrome":if(s<50)return this.supportCssVar=!1,!1;break;case"safari":if(s<9.5)return this.supportCssVar=!1,!1;break;case"firefox":if(s<32)return this.supportCssVar=!1,!1;break;case"opera":if(s<37)return this.supportCssVar=!1,!1;break;default:return this.supportCssVar=!1,!1}return this.supportCssVar=!0,!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hidden",{get:function(){return void 0!==document.hidden?"hidden":void 0!==document.msHidden?"msHidden":void 0!==document.webkitHidden?"webkitHidden":void 0},enumerable:!1,configurable:!0}),t}(),Et=new vt;function It(t){var e={};return"string"==typeof t&&t.split(";").forEach((function(t){var i=t.split(":"),n=i[0],r=i[1];n&&(e[n]=r)})),e}function Ct(t){var e={};if(!t)return e;try{e=JSON.parse(t)}catch(t){}return e||{}}var Bt=[{boundary:558,maxTime:13,minTime:7},{boundary:888,maxTime:14,minTime:8},{boundary:1082,maxTime:14,minTime:9},{boundary:1246,maxTime:15,minTime:10},{boundary:1452,maxTime:16,minTime:11},{boundary:1744,maxTime:18,minTime:13},{boundary:2314,maxTime:20,minTime:14},{boundary:2560,maxTime:22,minTime:16}],wt=.2,xt=.1,Qt=.2;function St(t){try{var e=0,i=t.containerWidth,n=t.dmWidth,r=t.defaultDuration,o=void 0===r?4.5:r;if(!i||!n)return o;if(i<Bt[0].boundary)return o;var a=void 0,s=void 0;if(i>Bt[Bt.length-1].boundary)e=Math.floor((i-Bt[Bt.length-1].boundary)/500),a=Bt[Bt.length-1].maxTime+e,s=Bt[Bt.length-1].minTime+e;else for(var l=1;l<Bt.length;l++)if(i<=Bt[l].boundary){a=Bt[l-1].maxTime,s=Bt[l-1].minTime;break}if(void 0===a||void 0===s)return o;var A=n/i,c=(a-s)/xt-1,h=Math.log(c)/wt+Qt;return s+(a-s)/(1+Math.pow(Math.E,-wt*(A-h)))||o}catch(t){return 4.5}}function kt(t,e,i,n,r){t||((t=document.createElement("canvas")).style.width=n+"px",t.style.height=r+"px",t.setAttribute("width",2*n+"px"),t.setAttribute("height",2*r+"px"));var o=t.getContext("2d");return o.globalAlpha=i.opacity,e.forEach((function(t){var e=2*t.x,i=2*t.y;t.textData.mode===C.Reverse&&(i=2*n-i),o.font=t.font,o.strokeStyle=Pt(t.textData.color?0:16777215),o.lineWidth=2,o.shadowBlur=3,o.fillStyle=Pt(t.textData.color);var r=ct(t.text);o.strokeText(r,e,i+2*t.height),o.fillText(r,e,i+2*t.height)})),t}function Dt(t,e){void 0===e&&(e={});for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r=document.createElement(t);return Object.entries(e).forEach((function(t){var e=t[0],i=t[1];r.setAttribute(e,i)})),i.forEach((function(t){Array.isArray(t)?r.appendChild(Dt.apply(void 0,t)):"string"==typeof t||"number"==typeof t?r.appendChild(document.createTextNode(String(t))):t instanceof Node&&r.appendChild(t)})),r}function _t(t,e,i,n,r,o){if(t||((t=document.createElement("canvas")).style.width=n+"px",t.style.height=r+"px",t.style.background="transparent",t.setAttribute("width",2*n+"px"),t.setAttribute("height",2*r+"px")),o&&void 0!==o.needDraw&&!o.needDraw)return t;var a=t.getContext("2d");a.clearRect(0,0,t.width,t.height),a.globalAlpha=i.opacity;var s=0,l=1;return(null==o?void 0:o.center)&&(s=o.center||.5,o.centerOffset,l=o.reflowProgress),e.forEach((function(t){if(!isNaN(t.x)&&!isNaN(t.y)){var e=2*t.x,i=2*t.y;6===t.textData.mode&&(i=2*n-i);var r=t.x/n<s+.05,o=t.y/n<s-.1,A=t.textData.mode;if(A!==C.Reverse){h=a,1===(d=t.config).fontSize?h.shadowBlur=1:2===d.fontSize&&(h.shadowBlur=2),h.lineWidth=d.fontBorder,
a.fillStyle=Pt(t.textData.color);var c=ct(t.text);a.shadowColor="#000000",a.shadowBlur=2,a.shadowOffsetX=1,a.shadowOffsetY=1,a.font="".concat(2*t.fontSize,"px SimHei, 'Microsoft JhengHei', Arial, Helvetica, sans-serif"),a.strokeStyle="rgba(0, 0, 0, 0)",a.textBaseline="alphabetic",A===C.Top||A===C.Bottom?l<.8&&(a.strokeText(c,e,i+2*(t.fontSize-2)),a.fillText(c,e,i+2*(t.height-2)),a.fillStyle="white"):o&&l<.8&&e>0?(a.strokeText(c,(s*n*2-e)*l+e,i+2*(t.fontSize-2)),a.fillText(c,(s*n*2-e)*l+e,i+2*(t.fontSize-2)),a.fillStyle="white"):r&&l>=.8?a.fillStyle="white":r||A!==C.Roll||(a.strokeText(c,e,i+2*(t.fontSize-2)),a.fillText(c,e,i+2*(t.height-2)),a.fillStyle="white"),a.shadowColor="rgba(0, 0, 0, 0)"}}var h,d})),t}var Rt={};function Mt(t){if(t in Rt)return Rt[t];var e=new Image;e.src=t,e.onload=function(){Rt[t]={width:e.width,height:e.height}}}var Tt=1;function Ft(){return Tt++}function Lt(t,e){try{return JSON.parse(t)}catch(t){return e||{}}}function Nt(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?Nt(t[i],e[i]):t[i]=e[i];return t}function Pt(t){return"string"==typeof t?"#000000":"#"+("000000"+t.toString(16)).slice(-6)}var Ut,Ot=a(4399);!function(t){t.OP="001111",t.EVENT="001114",t.CLICK="001115",t.SHOW="001116"}(Ut||(Ut={}));var Gt=function(){function t(t){var e=this;this.manager=t,this.queues=[],this.toBeDefined="TBD",this.url="//data.bilibili.com/log/web",this.trackTimer=-1,this.trackReport=function(t){var i={logId:t.kind,ctime:t.timeStamp,eventId:t.name,eventParam:t.value};e.manager.emit(G.Danmaku_Track_Report,{eventId:i.eventId,eventParam:i.eventParam,type:t.kind})}}return t.prototype.getSerializedUrl=function(t){if("string"==typeof t)return"".concat(this.url,"?").concat(t);var e=[t.ctime,t.eventId,t.eventParam].join("|");return"".concat(this.url,"?").concat(t.logId).concat(Date.now()).concat(e)},t.prototype.sendProxy=function(t){if(void 0===t&&(t=3),this.queues.length)for(var e=this.queues,i=Math.max(1,Math.min(t,e.length)),n=0;n<i;n++)this.trackReport(e.shift())},t.prototype.add=function(t,e,i){var n,r=function(t){return t&&"[object Object]"===Object.prototype.toString.call(t)},o=Object.assign({name:t,value:e,rawData:e,srcUrl:null,exParam:null,prepend:!1,sendBeacon:!1,timeStamp:Date.now()},i);if(null==o.value||r(o.value)||(o.value=((n={})[this.toBeDefined]=o.value,n)),r(o.value))try{o.value=JSON.stringify(o.value)}catch(t){Ot.warn(t)}o.immediately&&this.trackReport(o),o.prepend?this.queues.unshift(o):this.queues.push(o)},t.prototype.o=function(t,e,i){this.add(t,e,Object.assign({},i,{kind:Ut.OP}))},t.prototype.e=function(t,e,i){this.add(t,e,Object.assign({},i,{kind:Ut.EVENT}))},t.prototype.c=function(t,e,i){this.add(t,e,Object.assign({},i,{kind:Ut.CLICK}))},t.prototype.s=function(t,e,i){this.add(t,e,Object.assign({},i,{kind:Ut.SHOW}))},t.prototype.startTask=function(){var t=this;window.clearInterval(this.trackTimer),this.trackTimer=window.setInterval((function(){return t.sendProxy()}),200)},t.prototype.clearTask=function(){for(window.clearInterval(this.trackTimer);this.queues.length;)this.sendProxy()},t}(),Ht=function(){return Ht=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ht.apply(this,arguments)},Vt=function(){function t(t){this.config=t}return t.prototype.parseDm=function(t){var e=this,i=[];return t.forEach((function(t){var n=t.text;if(t.text=null==n?void 0:n.replace(/\r/g,""),t.text){var r=e.parse(t);i.push(r)}})),i},t.prototype.parse=function(t){var e=this.parseAttr(t),i=+t.mode||1,n=+t.rawMode||i||1;return Ht(Ht({},t),{mode:i,rawMode:n,stime:void 0!==t.stime&&t.stime/1e3>=0?t.stime/1e3:this.config.fn.timelineSync()||0,size:t.size||25,color:t.color||16777215,date:t.date||0,pool:t.pool||0,uhash:t.uhash||"",uid:t.uid,uname:t.uname||"",dmid:t.dmid||"",id_str:t.dmid||"",text:t.text,weight:t.weight,attr:t.attr,likes:t.likes,isLose:t.isLose,emoticons:t.emoticons,border:t.border||!1,borderColor:t.borderColor||6750207,colorful:t.colorful,colorfulImg:t.colorfulImg,resUrl:t.resUrl,resource:t.resource,modeInfo:t.modeInfo,isHighLike:(null==e?void 0:e.isHighLike)||!1,isMine:(null==e?void 0:e.isMine)||!1,prefix:t.prefix||null,suffix:t.suffix||null,isRealTime:t.isRealTime||!1,dmFrom:t.dmFrom||0})},t.prototype.parseAttr=function(t){if(t.attr)return{isHighLike:!!(4&t.attr),isMine:!!(t.attr>>18&1)}},t}(),Yt=a(9455),zt=a.n(Yt);function Wt(){
return zt()('var t,e,r={6732:function(t,e,r){var n=r(5409),o=r(4399);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,a=void 0,a=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===i(a)?a:String(a)),n)}var o,a}function c(t,e,r){return e&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var u,f,l=r(5349).codes,p=l.ERR_AMBIGUOUS_ARGUMENT,s=l.ERR_INVALID_ARG_TYPE,y=l.ERR_INVALID_ARG_VALUE,g=l.ERR_INVALID_RETURN_VALUE,b=l.ERR_MISSING_ARGS,h=r(6342),d=r(1344).inspect,v=r(1344).types,m=v.isPromise,w=v.isRegExp,j=r(3921)(),O=r(2197)(),S=r(1187)("RegExp.prototype.test");new Map;function A(){var t=r(1235);u=t.isDeepEqual,f=t.isDeepStrictEqual}var E=!1,x=t.exports=T,P={};function R(t){if(t.message instanceof Error)throw t.message;throw new h(t)}function k(t,e,r,n){if(!r){var o=!1;if(0===e)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw i.generatedMessage=o,i}}function T(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];k.apply(void 0,[T,e.length].concat(e))}x.fail=function t(e,r,i,a,c){var u,f=arguments.length;if(0===f)u="Failed";else if(1===f)i=e,e=void 0;else{if(!1===E)E=!0,(n.emitWarning?n.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===f&&(a="!=")}if(i instanceof Error)throw i;var l={actual:e,expected:r,operator:void 0===a?"fail":a,stackStartFn:c||t};void 0!==i&&(l.message=i);var p=new h(l);throw u&&(p.message=u,p.generatedMessage=!0),p},x.AssertionError=h,x.ok=T,x.equal=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");e!=r&&R({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},x.notEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");e==r&&R({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},x.deepEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");void 0===u&&A(),u(e,r)||R({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},x.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");void 0===u&&A(),u(e,r)&&R({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},x.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");void 0===u&&A(),f(e,r)||R({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},x.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");void 0===u&&A();f(e,r)&&R({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},x.strictEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");O(e,r)||R({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},x.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new b("actual","expected");O(e,r)&&R({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var I=c((function t(e,r,n){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&w(e[t])&&S(e[t],n[t])?o[t]=n[t]:o[t]=e[t])}))}));function F(t,e,r,n){if("function"!=typeof e){if(w(e))return S(e,t);if(2===arguments.length)throw new s("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var o=new h({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw o.operator=n.name,o}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new y("error",e,"may not be an empty object");return void 0===u&&A(),a.forEach((function(o){"string"==typeof t[o]&&w(e[o])&&S(e[o],t[o])||function(t,e,r,n,o,i){if(!(r in t)||!f(t[r],e[r])){if(!n){var a=new I(t,o),c=new I(e,o,t),u=new h({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw u.actual=t,u.expected=e,u.operator=i.name,u}R({actual:t,expected:e,message:n,operator:i.name,stackStartFn:i})}}(t,e,o,r,a,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function N(t){if("function"!=typeof t)throw new s("fn","Function",t);try{t()}catch(t){return t}return P}function _(t){return m(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function M(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!_(e=t()))throw new g("instance of Promise","promiseFn",e)}else{if(!_(t))throw new s("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return P})).catch((function(t){return t}))}))}function U(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new s("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new p("error/message",\'The error message "\'.concat(e.message,\'" is identical to the message.\'))}else if(e===r)throw new p("error/message",\'The error "\'.concat(e,\'" is identical to the message.\'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new s("error",["Object","Error","Function","RegExp"],r);if(e===P){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var a="rejects"===t.name?"rejection":"exception";R({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:t})}if(r&&!F(e,r,n,t))throw e}function D(t,e,r,n){if(e!==P){if("string"==typeof r&&(n=r,r=void 0),!r||F(e,r)){var o=n?": ".concat(n):".",i="doesNotReject"===t.name?"rejection":"exception";R({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(i).concat(o,"\\n")+\'Actual message: "\'.concat(e&&e.message,\'"\'),stackStartFn:t})}throw e}}function B(t,e,r,n,o){if(!w(e))throw new s("regexp","RegExp",e);var a="match"===o;if("string"!=typeof t||S(e,t)!==a){if(r instanceof Error)throw r;var c=!r;r=r||("string"!=typeof t?\'The "string" argument must be of type string. Received type \'+"".concat(i(t)," (").concat(d(t),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(d(e),". Input:\\n\\n").concat(d(t),"\\n"));var u=new h({actual:t,expected:e,message:r,operator:o,stackStartFn:n});throw u.generatedMessage=c,u}}function q(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];k.apply(void 0,[q,e.length].concat(e))}x.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];U.apply(void 0,[t,N(e)].concat(n))},x.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return M(e).then((function(e){return U.apply(void 0,[t,e].concat(n))}))},x.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];D.apply(void 0,[t,N(e)].concat(n))},x.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return M(e).then((function(e){return D.apply(void 0,[t,e].concat(n))}))},x.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=d(e);var n=new h({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var a=o.split("\\n");a.shift();for(var c=n.stack.split("\\n"),u=0;u<a.length;u++){var f=c.indexOf(a[u]);if(-1!==f){c=c.slice(0,f);break}}n.stack="".concat(c.join("\\n"),"\\n").concat(a.join("\\n"))}throw n}},x.match=function t(e,r,n){B(e,r,n,t,"match")},x.doesNotMatch=function t(e,r,n){B(e,r,n,t,"doesNotMatch")},x.strict=j(q,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},6342:function(t,e,r){var n=r(5409);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return(e=u(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,u(n.key),n)}}function u(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}function f(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}function p(t){var e="function"==typeof Map?new Map:void 0;return p=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return s(t,arguments,b(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,t)},p(t)}function s(t,e,r){return s=y()?Reflect.construct.bind():function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&g(o,r.prototype),o},s.apply(null,arguments)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}var d=r(1344).inspect,v=r(5349).codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var w="",j="",O="",S="",A={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:\'Expected "actual" to be reference-equal to "expected":\',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:\'Expected "actual" not to be strictly deep-equal to:\',notStrictEqual:\'Expected "actual" to be strictly unequal to:\',notStrictEqualObject:\'Expected "actual" not to be reference-equal to "expected":\',notDeepEqual:\'Expected "actual" not to be loosely deep-equal to:\',notEqual:\'Expected "actual" to be loosely unequal to:\',notIdentical:"Values identical but not reference-equal:"};function E(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function x(t){return d(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function P(t,e,r){var o="",i="",a=0,c="",u=!1,f=x(t),l=f.split("\\n"),p=x(e).split("\\n"),s=0,y="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===p.length&&l[0]!==p[0]){var g=l[0].length+p[0].length;if(g<=10){if(!("object"===h(t)&&null!==t||"object"===h(e)&&null!==e||0===t&&0===e))return"".concat(A[r],"\\n\\n")+"".concat(l[0]," !== ").concat(p[0],"\\n")}else if("strictEqualObject"!==r){if(g<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][s]===p[0][s];)s++;s>2&&(y="\\n  ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",s),"^"),s=0)}}}for(var b=l[l.length-1],d=p[p.length-1];b===d&&(s++<2?c="\\n  ".concat(b).concat(c):o=b,l.pop(),p.pop(),0!==l.length&&0!==p.length);)b=l[l.length-1],d=p[p.length-1];var v=Math.max(l.length,p.length);if(0===v){var E=f.split("\\n");if(E.length>30)for(E[26]="".concat(w,"...").concat(S);E.length>27;)E.pop();return"".concat(A.notIdentical,"\\n\\n").concat(E.join("\\n"),"\\n")}s>3&&(c="\\n".concat(w,"...").concat(S).concat(c),u=!0),""!==o&&(c="\\n  ".concat(o).concat(c),o="");var P=0,R=A[r]+"\\n".concat(j,"+ actual").concat(S," ").concat(O,"- expected").concat(S),k=" ".concat(w,"...").concat(S," Lines skipped");for(s=0;s<v;s++){var T=s-a;if(l.length<s+1)T>1&&s>2&&(T>4?(i+="\\n".concat(w,"...").concat(S),u=!0):T>3&&(i+="\\n  ".concat(p[s-2]),P++),i+="\\n  ".concat(p[s-1]),P++),a=s,o+="\\n".concat(O,"-").concat(S," ").concat(p[s]),P++;else if(p.length<s+1)T>1&&s>2&&(T>4?(i+="\\n".concat(w,"...").concat(S),u=!0):T>3&&(i+="\\n  ".concat(l[s-2]),P++),i+="\\n  ".concat(l[s-1]),P++),a=s,i+="\\n".concat(j,"+").concat(S," ").concat(l[s]),P++;else{var I=p[s],F=l[s],N=F!==I&&(!m(F,",")||F.slice(0,-1)!==I);N&&m(I,",")&&I.slice(0,-1)===F&&(N=!1,F+=","),N?(T>1&&s>2&&(T>4?(i+="\\n".concat(w,"...").concat(S),u=!0):T>3&&(i+="\\n  ".concat(l[s-2]),P++),i+="\\n  ".concat(l[s-1]),P++),a=s,i+="\\n".concat(j,"+").concat(S," ").concat(F),o+="\\n".concat(O,"-").concat(S," ").concat(I),P+=2):(i+=o,o="",1!==T&&0!==s||(i+="\\n  ".concat(F),P++))}if(P>20&&s<v-2)return"".concat(R).concat(k,"\\n").concat(i,"\\n").concat(w,"...").concat(S).concat(o,"\\n")+"".concat(w,"...").concat(S)}return"".concat(R).concat(u?k:"","\\n").concat(i).concat(o).concat(c).concat(y)}var R=function(t,e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(m,t);var r,o,a,u,p,s=(r=m,o=y(),function(){var t,e=b(r);if(o){var n=b(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return f(this,t)});function m(t){var e;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),"object"!==h(t)||null===t)throw new v("options","Object",t);var r=t.message,o=t.operator,i=t.stackStartFn,a=t.actual,c=t.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=s.call(this,String(r));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(w="[34m",j="[32m",S="[39m",O="[31m"):(w="",j="",S="",O="")),"object"===h(a)&&null!==a&&"object"===h(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=E(a),c=E(c)),"deepStrictEqual"===o||"strictEqual"===o)e=s.call(this,P(a,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var p=A[o],y=x(a).split("\\n");if("notStrictEqual"===o&&"object"===h(a)&&null!==a&&(p=A.notStrictEqualObject),y.length>30)for(y[26]="".concat(w,"...").concat(S);y.length>27;)y.pop();e=1===y.length?s.call(this,"".concat(p," ").concat(y[0])):s.call(this,"".concat(p,"\\n\\n").concat(y.join("\\n"),"\\n"))}else{var g=x(a),b="",d=A[o];"notDeepEqual"===o||"notEqual"===o?(g="".concat(A[o],"\\n\\n").concat(g)).length>1024&&(g="".concat(g.slice(0,1021),"...")):(b="".concat(x(c)),g.length>512&&(g="".concat(g.slice(0,509),"...")),b.length>512&&(b="".concat(b.slice(0,509),"...")),"deepEqual"===o||"equal"===o?g="".concat(d,"\\n\\n").concat(g,"\\n\\nshould equal\\n\\n"):b=" ".concat(o," ").concat(b)),e=s.call(this,"".concat(g).concat(b))}return Error.stackTraceLimit=u,e.generatedMessage=!r,Object.defineProperty(l(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=c,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(e),i),e.stack,e.name="AssertionError",f(e)}return a=m,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return d(this,i(i({},e),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,u),p&&c(a,p),Object.defineProperty(a,"prototype",{writable:!1}),m}(p(Error),d.custom);t.exports=R},5349:function(t,e,r){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.key,a=void 0,a=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(a)?a:String(a)),o)}var i,a}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(e){var i=c(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t)}(this,r)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var u,f,l={};function p(t,e,r){r||(r=Error);var n=function(r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,r);var n,c,u,f=a(l);function l(r,n,o){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),i=f.call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,n,o)),i.code=t,i}return n=l,c&&o(n.prototype,c),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n}(r);l[t]=n}function s(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}p("ERR_AMBIGUOUS_ARGUMENT",\'The "%s" argument is ambiguous. %s\',TypeError),p("ERR_INVALID_ARG_TYPE",(function(t,e,o){var i,a,c,f;if(void 0===u&&(u=r(6732)),u("string"==typeof t,"\'name\' must be a string"),"string"==typeof e&&(a="not ",e.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))f="The ".concat(t," ").concat(i," ").concat(s(e,"type"));else{var l=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";f=\'The "\'.concat(t,\'" \').concat(l," ").concat(i," ").concat(s(e,"type"))}return f+=". Received type ".concat(n(o))}),TypeError),p("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=r(1344));var o=f.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument \'".concat(t,"\' ").concat(n,". Received ").concat(o)}),TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,\' to be returned from the "\').concat(e,\'"\')+" function but got ".concat(o,".")}),TypeError),p("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===u&&(u=r(6732)),u(e.length>0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map((function(t){return\'"\'.concat(t,\'"\')})),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),t.exports.codes=l},1235:function(t,e,r){function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){f=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a=void 0!==/a/g.flags,c=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},u=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},f=Object.is?Object.is:r(9068),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},p=Number.isNaN?Number.isNaN:r(4954);function s(t){return t.call.bind(t)}var y=s(Object.prototype.hasOwnProperty),g=s(Object.prototype.propertyIsEnumerable),b=s(Object.prototype.toString),h=r(1344).types,d=h.isAnyArrayBuffer,v=h.isArrayBufferView,m=h.isDate,w=h.isMap,j=h.isRegExp,O=h.isSet,S=h.isNativeError,A=h.isBoxedPrimitive,E=h.isNumberObject,x=h.isStringObject,P=h.isBooleanObject,R=h.isBigIntObject,k=h.isSymbolObject,T=h.isFloat32Array,I=h.isFloat64Array;function F(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function N(t){return Object.keys(t).filter(F).concat(l(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license  MIT\n */function _(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0}function M(t,e,r,n){if(t===e)return 0!==t||(!r||f(t,e));if(r){if("object"!==i(t))return"number"==typeof t&&p(t)&&p(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var o,c,u,l,s=b(t);if(s!==b(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var y=N(t),g=N(e);return y.length===g.length&&D(t,e,r,n,1,y)}if("[object Object]"===s&&(!w(t)&&w(e)||!O(t)&&O(e)))return!1;if(m(t)){if(!m(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(j(t)){if(!j(e)||(u=t,l=e,!(a?u.source===l.source&&u.flags===l.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(l))))return!1}else if(S(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(v(t)){if(r||!T(t)&&!I(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===_(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var h=N(t),F=N(e);return h.length===F.length&&D(t,e,r,n,0,h)}if(O(t))return!(!O(e)||t.size!==e.size)&&D(t,e,r,n,2);if(w(t))return!(!w(e)||t.size!==e.size)&&D(t,e,r,n,3);if(d(t)){if(c=e,(o=t).byteLength!==c.byteLength||0!==_(new Uint8Array(o),new Uint8Array(c)))return!1}else if(A(t)&&!function(t,e){return E(t)?E(e)&&f(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):x(t)?x(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):P(t)?P(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):R(t)?R(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):k(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return D(t,e,r,n,0)}function U(t,e){return e.filter((function(e){return g(t,e)}))}function D(t,e,r,o,a,f){if(5===arguments.length){f=Object.keys(t);var p=Object.keys(e);if(f.length!==p.length)return!1}for(var s=0;s<f.length;s++)if(!y(e,f[s]))return!1;if(r&&5===arguments.length){var b=l(t);if(0!==b.length){var h=0;for(s=0;s<b.length;s++){var d=b[s];if(g(t,d)){if(!g(e,d))return!1;f.push(d),h++}else if(g(e,d))return!1}var v=l(e);if(b.length!==v.length&&U(e,v).length!==h)return!1}else{var m=l(e);if(0!==m.length&&0!==U(e,m).length)return!1}}if(0===f.length&&(0===a||1===a&&0===t.length||0===t.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(t);if(void 0!==w){var j=o.val2.get(e);if(void 0!==j)return w===j}o.position++}o.val1.set(t,o.position),o.val2.set(e,o.position);var O=function(t,e,r,o,a,f){var l=0;if(2===f){if(!function(t,e,r,n){for(var o=null,a=c(t),u=0;u<a.length;u++){var f=a[u];if("object"===i(f)&&null!==f)null===o&&(o=new Set),o.add(f);else if(!e.has(f)){if(r)return!1;if(!$(t,e,f))return!1;null===o&&(o=new Set),o.add(f)}}if(null!==o){for(var l=c(e),p=0;p<l.length;p++){var s=l[p];if("object"===i(s)&&null!==s){if(!B(o,s,r,n))return!1}else if(!r&&!t.has(s)&&!B(o,s,r,n))return!1}return 0===o.size}return!0}(t,e,r,a))return!1}else if(3===f){if(!function(t,e,r,o){for(var a=null,c=u(t),f=0;f<c.length;f++){var l=n(c[f],2),p=l[0],s=l[1];if("object"===i(p)&&null!==p)null===a&&(a=new Set),a.add(p);else{var y=e.get(p);if(void 0===y&&!e.has(p)||!M(s,y,r,o)){if(r)return!1;if(!L(t,e,p,s,o))return!1;null===a&&(a=new Set),a.add(p)}}}if(null!==a){for(var g=u(e),b=0;b<g.length;b++){var h=n(g[b],2),d=h[0],v=h[1];if("object"===i(d)&&null!==d){if(!G(a,t,d,v,r,o))return!1}else if(!(r||t.has(d)&&M(t.get(d),v,!1,o)||G(a,t,d,v,!1,o)))return!1}return 0===a.size}return!0}(t,e,r,a))return!1}else if(1===f)for(;l<t.length;l++){if(!y(t,l)){if(y(e,l))return!1;for(var p=Object.keys(t);l<p.length;l++){var s=p[l];if(!y(e,s)||!M(t[s],e[s],r,a))return!1}return p.length===Object.keys(e).length}if(!y(e,l)||!M(t[l],e[l],r,a))return!1}for(l=0;l<o.length;l++){var g=o[l];if(!M(t[g],e[g],r,a))return!1}return!0}(t,e,r,f,o,a);return o.val1.delete(t),o.val2.delete(e),O}function B(t,e,r,n){for(var o=c(t),i=0;i<o.length;i++){var a=o[i];if(M(e,a,r,n))return t.delete(a),!0}return!1}function q(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(p(t))return!1}return!0}function $(t,e,r){var n=q(r);return null!=n?n:e.has(n)&&!t.has(n)}function L(t,e,r,n,o){var i=q(r);if(null!=i)return i;var a=e.get(i);return!(void 0===a&&!e.has(i)||!M(n,a,!1,o))&&(!t.has(i)&&M(n,a,!1,o))}function G(t,e,r,n,o,i){for(var a=c(t),u=0;u<a.length;u++){var f=a[u];if(M(r,f,o,i)&&M(n,e.get(f),o,i))return t.delete(f),!0}return!1}t.exports={isDeepEqual:function(t,e){return M(t,e,false)},isDeepStrictEqual:function(t,e){return M(t,e,true)}}},3602:function(t,e,r){var n=r(9524),o=r(9764),i=r(4294),a=r(573);t.exports=a||n.call(i,o)},1091:function(t,e,r){var n=r(9524),o=r(9764),i=r(3602);t.exports=function(){return i(n,o,arguments)}},9764:function(t){t.exports=Function.prototype.apply},4294:function(t){t.exports=Function.prototype.call},88:function(t,e,r){var n=r(9524),o=r(1102),i=r(4294),a=r(3602);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return a(n,i,t)}},573:function(t){t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},1187:function(t,e,r){var n=r(3711),o=r(7695),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},7695:function(t,e,r){var n=r(7755),o=r(9886),i=r(88),a=r(1091);t.exports=function(t){var e=i(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},o?o(t.exports,"apply",{value:a}):t.exports.apply=a},7412:function(t,e,r){var n=r(3711),o=r(88),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o([r]):r}},4399:function(t,e,r){var n=r(1344),o=r(6732);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,u={};a=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var f=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(t){u[t]=i()},"time"],[function(t){var e=u[t];if(!e)throw new Error("No such label: "+t);delete u[t];var r=i()-e;a.log(t+": "+r+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=n.format.apply(null,arguments),a.error(t.stack)},"trace"],[function(t){a.log(n.inspect(t)+"\\n")},"dir"],[function(t){if(!t){var e=c.call(arguments,1);o.ok(!1,n.format.apply(null,e))}},"assert"]],l=0;l<f.length;l++){var p=f[l],s=p[0],y=p[1];a[y]||(a[y]=s)}t.exports=a},22:function(t,e,r){var n=r(9886),o=r(3429),i=r(1102),a=r(5667);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],p=!!a&&a(t,e);if(n)n(t,e,{configurable:null===f&&p?p.configurable:!f,enumerable:null===c&&p?p.enumerable:!c,value:r,writable:null===u&&p?p.writable:!u});else{if(!l&&(c||u||f))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},4938:function(t,e,r){var n=r(5187),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=r(22),u=r(491)(),f=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;u?c(t,e,r,!0):c(t,e,r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var c=0;c<i.length;c+=1)f(t,i[c],e[i[c]],r[i[c]])};l.supportsDescriptors=!!u,t.exports=l},7678:function(t,e,r){var n,o=r(88),i=r(5667);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&i&&i(Object.prototype,"__proto__"),c=Object,u=c.getPrototypeOf;t.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof u&&function(t){return u(null==t?t:c(t))}},9886:function(t){var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},8004:function(t){t.exports=EvalError},1488:function(t){t.exports=Error},6469:function(t){t.exports=RangeError},2557:function(t){t.exports=ReferenceError},3429:function(t){t.exports=SyntaxError},1102:function(t){t.exports=TypeError},5966:function(t){t.exports=URIError},6365:function(t){t.exports=Object},4086:function(t,e,r){var n=r(2956),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===o.call(t)?function(t,e,r){for(var n=0,o=t.length;n<o;n++)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a):"string"==typeof t?function(t,e,r){for(var n=0,o=t.length;n<o;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,a):function(t,e,r){for(var n in t)i.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a)}},9992:function(t){var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var o=0;o<e.length;o+=1)r[o+t.length]=e[o];return r};t.exports=function(t){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(t,e){for(var r=[],n=e||0,o=0;n<t.length;n+=1,o+=1)r[o]=t[n];return r}(arguments,1),c=r(0,o.length-a.length),u=[],f=0;f<c;f++)u[f]="$"+f;if(i=Function("binder","return function ("+function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r}(u,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=o.apply(this,n(a,arguments));return Object(e)===e?e:this}return o.apply(t,n(a,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},9524:function(t,e,r){var n=r(9992);t.exports=Function.prototype.bind||n},3711:function(t,e,r){var n,o=r(6365),i=r(1488),a=r(8004),c=r(6469),u=r(2557),f=r(3429),l=r(1102),p=r(5966),s=r(1009),y=r(1219),g=r(2659),b=r(7905),h=r(6219),d=Function,v=function(t){try{return d(\'"use strict"; return (\'+t+").constructor;")()}catch(t){}},m=r(5667),w=r(9886),j=function(){throw new l},O=m?function(){try{return j}catch(t){try{return m(arguments,"callee").get}catch(t){return j}}}():j,S=r(1514)(),A=r(7678),E="function"==typeof Reflect&&Reflect.getPrototypeOf||o.getPrototypeOf||A,x=r(9764),P=r(4294),R={},k="undefined"!=typeof Uint8Array&&E?E(Uint8Array):n,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":R,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&S&&E?E((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":c,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&S&&E?E((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):n,"%Symbol%":S?Symbol:n,"%SyntaxError%":f,"%ThrowTypeError%":O,"%TypedArray%":k,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":x,"%Object.defineProperty%":w,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":g,"%Math.min%":b,"%Math.pow%":h};if(E)try{null.error}catch(t){var I=E(E(t));T["%Error.prototype%"]=I}var F=function t(e){var r;if("%AsyncFunction%"===e)r=v("async function () {}");else if("%GeneratorFunction%"===e)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=v("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&E&&(r=E(o.prototype))}return T[e]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=r(9524),M=r(5630),U=_.call(P,Array.prototype.concat),D=_.call(x,Array.prototype.splice),B=_.call(P,String.prototype.replace),q=_.call(P,String.prototype.slice),$=_.call(P,RegExp.prototype.exec),L=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,G=/\\\\(\\\\)?/g,z=function(t,e){var r,n=t;if(M(N,n)&&(n="%"+(r=N[n])[0]+"%"),M(T,n)){var o=T[n];if(o===R&&(o=F(n)),void 0===o&&!e)throw new l("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new f("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new l(\'"allowMissing" argument must be a boolean\');if(null===$(/^%?[^%]*%?$/,t))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=q(t,0,1),r=q(t,-1);if("%"===e&&"%"!==r)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new f("invalid intrinsic syntax, expected opening `%`");var n=[];return B(t,L,(function(t,e,r,o){n[n.length]=r?B(o,G,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=z("%"+n+"%",e),i=o.name,a=o.value,c=!1,u=o.alias;u&&(n=u[0],D(r,U([0,1],u)));for(var p=1,s=!0;p<r.length;p+=1){var y=r[p],g=q(y,0,1),b=q(y,-1);if((\'"\'===g||"\'"===g||"`"===g||\'"\'===b||"\'"===b||"`"===b)&&g!==b)throw new f("property names with quotes must have matching quotes");if("constructor"!==y&&s||(c=!0),M(T,i="%"+(n+="."+y)+"%"))a=T[i];else if(null!=a){if(!(y in a)){if(!e)throw new l("base intrinsic for "+t+" exists, but the property is not available.");return}if(m&&p+1>=r.length){var h=m(a,y);a=(s=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[y]}else s=M(a,y),a=a[y];s&&!c&&(T[i]=a)}}return a}},1333:function(t){t.exports=Object.getOwnPropertyDescriptor},5667:function(t,e,r){var n=r(1333);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},491:function(t,e,r){var n=r(9886),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},1514:function(t,e,r){var n="undefined"!=typeof Symbol&&Symbol,o=r(9712);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},9712:function(t){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},7185:function(t,e,r){var n=r(9712);t.exports=function(){return n()&&!!Symbol.toStringTag}},5630:function(t,e,r){var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(9524);t.exports=i.call(n,o)},1193:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6531:function(t,e,r){var n=r(7185)(),o=r(7412)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"callee"in t&&"[object Function]"===o(t.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=c?i:a},2956:function(t){var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\\s*class\\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},c=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var s=document.all;u.call(s)===u.call(document.all)&&(p=function(t){if((l||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(p(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&c(t)}:function(t){if(p(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(f)return c(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\\[object HTML/.test(e))&&c(t)}},3034:function(t,e,r){var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\\s*(?:function)?\\*/,c=r(7185)(),u=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(a.test(i.call(t)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(t);if(!u)return!1;if(void 0===n){var e=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},4770:function(t){t.exports=function(t){return t!=t}},4954:function(t,e,r){var n=r(7695),o=r(4938),i=r(4770),a=r(2219),c=r(4445),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:c}),t.exports=u},2219:function(t,e,r){var n=r(4770);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},4445:function(t,e,r){var n=r(4938),o=r(2219);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},6:function(t,e,r){var n=r(9033);t.exports=function(t){return!!n(t)}},1009:function(t){t.exports=Math.abs},1219:function(t){t.exports=Math.floor},2659:function(t){t.exports=Math.max},7905:function(t){t.exports=Math.min},6219:function(t){t.exports=Math.pow},656:function(t){var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9068:function(t,e,r){var n=r(4938),o=r(7695),i=r(656),a=r(2197),c=r(9235),u=o(a(),Object);n(u,{getPolyfill:a,implementation:i,shim:c}),t.exports=u},2197:function(t,e,r){var n=r(656);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9235:function(t,e,r){var n=r(2197),o=r(4938);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},5717:function(t,e,r){var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(4635),c=Object.prototype.propertyIsEnumerable,u=!c.call({toString:null},"toString"),f=c.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!s["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),c=e&&"[object String]"===i.call(t),s=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var g=f&&r;if(c&&t.length>0&&!o.call(t,0))for(var b=0;b<t.length;++b)s.push(String(b));if(n&&t.length>0)for(var h=0;h<t.length;++h)s.push(String(h));else for(var d in t)g&&"prototype"===d||!o.call(t,d)||s.push(String(d));if(u)for(var v=function(t){if("undefined"==typeof window||!y)return p(t);try{return p(t)}catch(t){return!1}}(t),m=0;m<l.length;++m)v&&"constructor"===l[m]||!o.call(t,l[m])||s.push(l[m]);return s}}t.exports=n},5187:function(t,e,r){var n=Array.prototype.slice,o=r(4635),i=Object.keys,a=i?function(t){return i(t)}:r(5717),c=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?c(n.call(t)):c(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},4635:function(t){var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1924:function(t,e,r){var n=r(5187),o=r(9712)(),i=r(7412),a=r(6365),c=i("Array.prototype.push"),u=i("Object.prototype.propertyIsEnumerable"),f=o?a.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=a(t);if(1===arguments.length)return r;for(var i=1;i<arguments.length;++i){var l=a(arguments[i]),p=n(l),s=o&&(a.getOwnPropertySymbols||f);if(s)for(var y=s(l),g=0;g<y.length;++g){var b=y[g];u(l,b)&&c(p,b)}for(var h=0;h<p.length;++h){var d=p[h];if(u(l,d)){var v=l[d];r[d]=v}}}return r}},3921:function(t,e,r){var n=r(1924);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var o=Object.assign({},r),i="";for(var a in o)i+=a;return t!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9773:function(t){t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5409:function(t){var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var c,u=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?u=c.concat(u):l=-1,u.length&&s())}function s(){if(!f){var t=a(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++l<e;)c&&c[l].run();l=-1,e=u.length}c=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function y(t,e){this.fun=t,this.array=e}function g(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new y(t,e)),1!==u.length||f||a(s)},y.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},7755:function(t,e,r){var n=r(3711),o=r(22),i=r(491)(),a=r(5667),c=r(1102),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new c("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new c("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,f=!0;if("length"in t&&a){var l=a(t,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(f=!1)}return(n||f||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},6640:function(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},515:function(t,e,r){var n=r(6531),o=r(3034),i=r(9033),a=r(6);function c(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,f="undefined"!=typeof Symbol,l=c(Object.prototype.toString),p=c(Number.prototype.valueOf),s=c(String.prototype.valueOf),y=c(Boolean.prototype.valueOf);if(u)var g=c(BigInt.prototype.valueOf);if(f)var b=c(Symbol.prototype.valueOf);function h(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function d(t){return"[object Map]"===l(t)}function v(t){return"[object Set]"===l(t)}function m(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function j(t){return"[object ArrayBuffer]"===l(t)}function O(t){return"undefined"!=typeof ArrayBuffer&&(j.working?j(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===l(t)}function A(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||A(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},d.working="undefined"!=typeof Map&&d(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(d.working?d(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(m.working?m(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},j.working="undefined"!=typeof ArrayBuffer&&j(new ArrayBuffer),e.isArrayBuffer=O,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=A;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function x(t){return"[object SharedArrayBuffer]"===l(t)}function P(t){return void 0!==E&&(void 0===x.working&&(x.working=x(new E)),x.working?x(t):t instanceof E)}function R(t){return h(t,p)}function k(t){return h(t,s)}function T(t){return h(t,y)}function I(t){return u&&h(t,g)}function F(t){return f&&h(t,b)}e.isSharedArrayBuffer=P,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=R,e.isStringObject=k,e.isBooleanObject=T,e.isBigIntObject=I,e.isSymbolObject=F,e.isBoxedPrimitive=function(t){return R(t)||k(t)||T(t)||I(t)||F(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(O(t)||P(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},1344:function(t,e,r){var n=r(5409),o=r(4399),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},a=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(l(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(t).replace(a,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),c=n[r];r<o;c=n[++r])v(c)||!S(c)?i+=" "+c:i+=" "+l(c);return i},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?o.trace(r):o.error(r),i=!0}return t.apply(this,arguments)}};var c={},u=/^$/;if(n.env.NODE_DEBUG){var f=n.env.NODE_DEBUG;f=f.replace(/[|\\\\{}()[\\]^$+?.]/g,"\\\\$&").replace(/\\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+f+"$","i")}function l(t,r){var n={seen:[],stylize:s};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),j(n.showHidden)&&(n.showHidden=!1),j(n.depth)&&(n.depth=2),j(n.colors)&&(n.colors=!1),j(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=p),y(n,t,n.depth)}function p(t,e){var r=l.styles[e];return r?"["+l.colors[r][0]+"m"+t+"["+l.colors[r][1]+"m":t}function s(t,e){return t}function y(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return w(o)||(o=y(t,o,n)),o}var i=function(t,e){if(j(e))return t.stylize("undefined","undefined");if(w(e)){var r="\'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\')+"\'";return t.stylize(r,"string")}if(m(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(t,r);if(i)return i;var a=Object.keys(r),c=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return g(r);if(0===a.length){if(x(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(O(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(A(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return g(r)}var f,l="",p=!1,s=["{","}"];(h(r)&&(p=!0,s=["[","]"]),x(r))&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return O(r)&&(l=" "+RegExp.prototype.toString.call(r)),A(r)&&(l=" "+Date.prototype.toUTCString.call(r)),E(r)&&(l=" "+g(r)),0!==a.length||p&&0!=r.length?n<0?O(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),f=p?function(t,e,r,n,o){for(var i=[],a=0,c=e.length;a<c;++a)T(e,String(a))?i.push(b(t,e,r,n,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\\d+$/)||i.push(b(t,e,r,n,o,!0))})),i}(t,r,n,c,a):a.map((function(e){return b(t,r,n,c,e,p)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\\n")>=0&&0,t+e.replace(/\\u001b\\[\\d\\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\\n ")+" "+t.join(",\\n  ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(f,l,s)):s[0]+l+s[1]}function g(t){return"["+Error.prototype.toString.call(t)+"]"}function b(t,e,r,n,o,i){var a,c,u;if((u=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?c=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(c=t.stylize("[Setter]","special")),T(n,o)||(a="["+o+"]"),c||(t.seen.indexOf(u.value)<0?(c=v(r)?y(t,u.value,null):y(t,u.value,r-1)).indexOf("\\n")>-1&&(c=i?c.split("\\n").map((function(t){return"  "+t})).join("\\n").slice(2):"\\n"+c.split("\\n").map((function(t){return"   "+t})).join("\\n")):c=t.stylize("[Circular]","special")),j(a)){if(i&&o.match(/^\\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\').replace(/(^"|"$)/g,"\'"),a=t.stylize(a,"string"))}return a+": "+c}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function v(t){return null===t}function m(t){return"number"==typeof t}function w(t){return"string"==typeof t}function j(t){return void 0===t}function O(t){return S(t)&&"[object RegExp]"===P(t)}function S(t){return"object"==typeof t&&null!==t}function A(t){return S(t)&&"[object Date]"===P(t)}function E(t){return S(t)&&("[object Error]"===P(t)||t instanceof Error)}function x(t){return"function"==typeof t}function P(t){return Object.prototype.toString.call(t)}function R(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!c[t])if(u.test(t)){var r=n.pid;c[t]=function(){var n=e.format.apply(e,arguments);o.error("%s %d: %s",t,r,n)}}else c[t]=function(){};return c[t]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(515),e.isArray=h,e.isBoolean=d,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=w,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=j,e.isRegExp=O,e.types.isRegExp=O,e.isObject=S,e.isDate=A,e.types.isDate=A,e.isError=E,e.types.isNativeError=E,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(6640);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;o.log("%s - %s",(t=new Date,r=[R(t.getHours()),R(t.getMinutes()),R(t.getSeconds())].join(":"),[t.getDate(),k[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(1193),e._extend=function(t,e){if(!e||!S(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError(\'The "original" argument must be of type Function\');if(I&&t[I]){var e;if("function"!=typeof(e=t[I]))throw new TypeError(\'The "util.promisify.custom" argument must be of type Function\');return Object.defineProperty(e,I,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,o)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),I&&Object.defineProperty(e,I,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=I,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError(\'The "original" argument must be of type Function\');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var o=e.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,e).then((function(t){n.nextTick(a.bind(null,null,t))}),(function(t){n.nextTick(F.bind(null,t,a))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},9033:function(t,e,r){var n=r(4086),o=r(4379),i=r(7695),a=r(7412),c=r(5667),u=a("Object.prototype.toString"),f=r(7185)(),l="undefined"==typeof globalThis?r.g:globalThis,p=o(),s=a("String.prototype.slice"),y=Object.getPrototypeOf,g=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},b={__proto__:null};n(p,f&&c&&y?function(t){var e=new l[t];if(Symbol.toStringTag in e){var r=y(e),n=c(r,Symbol.toStringTag);if(!n){var o=y(r);n=c(o,Symbol.toStringTag)}b["$"+t]=i(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(b["$"+t]=i(r))});t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!f){var e=s(u(t),8,-1);return g(p,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(b,(function(r,n){if(!e)try{r(t),e=s(n,1)}catch(t){}})),e}(t)}return c?function(t){var e=!1;return n(b,(function(r,n){if(!e)try{"$"+r(t)===n&&(e=s(n,1))}catch(t){}})),e}(t):null}},4379:function(t,e,r){var n=r(9773),o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof o[n[e]]&&(t[t.length]=n[e]);return t}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,o),i.exports}o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),t=o(4399),(e=self).addEventListener("message",(function(r){var n=r.data,o=[],i={};function a(t,e){return Math.floor(t.stime)===Math.floor(e.stime)?t.weight===e.weight?t.stime-e.stime:e.weight-t.weight:t.stime-e.stime}n&&Array.isArray(n)&&(n.forEach((function(e){e.weight||(e.weight=-Math.round(10*Math.random()));var r=function(e){if(0===o.length)return 0;if(a(e,o[0])<0)return 0;if(a(e,o[o.length-1])>=0)return o.length;for(var r=0,n=0,i=o.length-1,c=0;n<=i;){if(r=Math.floor((n+i+1)/2),c++,a(e,o[r-1])>=0&&a(e,o[r])<0)return r;if(a(e,o[r-1])<0?i=r-1:a(e,o[r])>=0&&(n=r),c>1e3){t.error("[insert.worker.ts 35:1] bsearch: Cannot Find Place To Insert");break}}return-1}(e);o.splice(r,0,e)})),\n//!! CASE: 防止出现重复弹幕，因此在这里进行去重\no=o.filter((function(t){return!i[t.dmid]&&(i[t.dmid]=!0,!0)})),e.postMessage(o))}));',"Worker",void 0,void 0)
}var Zt=function(){function t(t){this.cmdDmList=[],this.dmArray=[],this.dmParser=new Vt(t),this.timeLine=new X,this.isInsertingDm=!1}return t.prototype.pushDm=function(t){if(!t.isLose){if(t.isRealTime&&this.dmArray.length>=500){var e=this.dmArray.shift();e&&this.timeLine.remove(e)}this.dmArray.push(t),this.timeLine.insert(t)}},t.prototype.pushCmd=function(t){t.isLose||this.cmdDmList.push(t)},t.prototype.addCmdList=function(t,e,i){var n=this;if(void 0===i&&(i=!1),e&&(this.cmdDmList.length=0),null==t?void 0:t.length)return t.forEach((function(t){t&&n.pushCmd(t)})),t},t.prototype.addList=function(t){var e=this;(null==t?void 0:t.length)&&((null==t?void 0:t.length)&&t.length<200?t.forEach((function(t){e.add(t)})):(this.worker||(this.worker=new Wt),this.isInsertingDm?this.addTimer=window.setTimeout((function(){e.addList(t)}),5e3):(this.dmParser.parseDm(t).forEach((function(t){t.isLose||e.dmArray.push(t)})),this.isInsertingDm=!0,this.timeLine.reset(),this.worker.postMessage(this.dmArray),this.worker.onmessage=function(t){var i=new X(t.data);e.timeLine=i,e.isInsertingDm=!1})))},t.prototype.add=function(t){var e=this.dmParser.parseDm([t])[0];if(e)return this.pushDm(e),e},t.prototype.updateCmd=function(t){var e=this;t.forEach((function(t){e.cmdDmList=e.cmdDmList.filter((function(e){var i=e.mode;switch(t.mode){case w.Score:case w.ScoreSum:if(i===w.Score||i===w.ScoreSum)return!1;break;case w.Follow:case w.Vote:if(i===w.Follow||i===w.Vote)return!1}return t.mode!==i}))})),t.forEach((function(t){t.delete||e.cmdDmList.push(t)}))},t.prototype.updateMode=function(t,e){this.cmdDmList.some((function(i){if(e&&e===i.dmid)return!0;if(i.mode===t.mode)for(var n in t)i.modeInfo[n]=t[n]}))},t.prototype.getModes=function(t){return this.cmdDmList.filter((function(e){return e.mode===t}))},t.prototype.remove=function(t){var e,i=this;null===(e=this.timeLine.list)||void 0===e||e.some((function(e,n){var r=e.dmid;if(t===r)return i.timeLine.list.splice(n,1),!0}))},t.prototype.getItemsByRange=function(t,e,i){var n=this.timeLine.getItemsByRange({stime:t},{stime:e});return this.cmdDmList.forEach((function(t){var e=t.on,r=t.stime,o=t.duration;!e&&r<i&&i<r+o&&n.push(t)})),n},t.prototype.reset=function(t){var e;null===(e=this.worker)||void 0===e||e.terminate(),this.worker=null,t||(this.cmdDmList.length=0),this.timeLine=new X,this.addTimer&&clearTimeout(this.addTimer)},t}(),jt=a(683),qt=a.n(jt),Jt=function(){function t(t,e){void 0===e&&(e="default"),this.options=t,this.id=e,this._endTime=void 0,this.hasEmoji=0,this.width=0,this.height=0,this.showTime=0,this.precise=0,this.duration=0,this.speed=0,this._x=99999,this._y=99999,this.index=-1,this.fontSize=0,this.showed=!1,this.isHide=!1,this.isFirstAnimate=!0,this.init(t,e)}return Object.defineProperty(t.prototype,"endTime",{get:function(){return this._endTime||(this._endTime=this.showTime+this.duration),this._endTime},set:function(t){this._endTime=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pool",{get:function(){var t=this.textData.rawMode;return this.manager.collisionPool.registerPool(t),this.manager.collisionPool.getPool(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resource",{get:function(){if(this.textData.resource)return this.textData.resource;var t=this.textData.resUrl;return t&&this.manager.cacheResource[t]?this.manager.cacheResource[t]:this.manager.modeMap[this.textData.mode].resource||{}},enumerable:!1,configurable:!0}),t.prototype.getFontSize=function(t){var e=this.config.setting.fontSize;if(this.config.setting.fullScreenSync){var i=this.manager.containerSize.height,n=e*t/25;return i<=314?16:i<=499?n*(.0385*i+3.29):i<=608?n*(.041*i):i<=700?n*(.022*i+12):i<=816?27*n:i<=980?n*(.0365*i-2.5):i<=1300?n*(.022*i+18.5):40*n}return e*t},t.prototype.init=function(t,e){var i=this,n=t.textData,r=t.manager;this.options=t,this.id=e,this.manager=r,this.textData=n,this.config=this.manager.config,this.modeInfo=n.modeInfo||{},this.precise=this.manager.currentTime-this.textData.stime,this.showTime=this.manager.renderTime-this.precise,this.horizontalDistance=this.manager.containerSize.width+1,this.verticalDistance=this.manager.containerSize.height+1;var o=O[this.textData.rawMode||this.textData.mode];switch(o){case I.common:this.container=this.config.container;break;case I.inside:this.container=this.config.dom.insideWrap;break;case I.rotate:this.container=this.config.dom.rotateDom;break;default:this.container=this.manager.modeDomMap[this.textData.rawMode||this.textData.mode]||this.config.container}var a=this.textData,s=a.text,l=a.emoticons;window.String.prototype.trim||(window.String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),s&&(s=s.trim(),this.text=at(s.replace(/\r/g,"\r\n")||""),l&&s.includes("[")&&s.match(/\[\S+?\]/g).forEach((function(t){var e=l[t];if(e&&e.url){var n=e.url.replace(/^https:\/\/|^http:\/\/|^\/\//,""),r=t.replace("[","\\[");r=r.replace("]","\\]");var o=new RegExp(r,"g");i.text=i.text.replace(o,'<img class="'.concat(H,'-dm-emoji" src="https://').concat(n,'" />')),i.hasEmoji++}})),this.textData.prefix&&"string"==typeof this.textData.prefix&&(this.text=this.textData.prefix+this.text),this.textData.suffix&&"string"==typeof this.textData.suffix&&(this.text=this.text+this.textData.suffix));var A=0;this.config.scene.isMini?A=16:(A=this.getFontSize(this.textData.size),A=Math.max(12,A)),this.fontSize=A||25,this.config.scene.isMobile&&(this.fontSize*=.75);var c=this.manager.cycleDoms[o]||[];c.length>0?this.element=c.shift():(this.element=document.createElement("div"),this.container.append(this.element));var h=this.getSpaceManager();this.spaceManager=h?new h(this.pool,this.manager):null,this.render(),this.afterRender()},t.prototype.getSize=function(){return{width:0,height:0}},t.prototype.getSpaceManager=function(){return null},t.prototype.shouldDestroy=function(){return this.manager.renderTime>=this.endTime},t.prototype.afterRender=function(){},t.prototype.beforeCollisionCheck=function(){var t=this.getSize(),e=t.width,i=t.height;this.width=e,this.height=i},t.prototype.collisionCheck=function(){if(this.spaceManager){var t=this.spaceManager.add(this),e=t.x,i=t.y,n=t.index;-1!==n?(this.x=e,this.y=i,this.index=n,this.spaceManager.insert(this)):this.duration=-1}},t.prototype.afterCollisionCheck=function(){},t.prototype.firstFrame=function(){},t.prototype.animate=function(t){},t.prototype.hide=function(){this.isHide=!0,this.element&&(this.element.style.visibility="hidden")},t.prototype.show=function(){this.isHide=!1,this.element&&(this.element.style.visibility="")},t.prototype.firstShow=function(){if(!this.showed){this.showed=!0,this.element.classList.add("".concat(H,"-show"));var t=this.manager.danmakuShowInfo;F[this.textData.mode]?(t[this.textData.mode]=t[this.textData.mode]||{totalNumber:0,highLikeNumber:0,vipColorfulNumber:0,messageLinkNumber:0},t[this.textData.mode].totalNumber++,this.textData.isHighLike&&t[this.textData.mode].highLikeNumber++,this.textData.colorful&&t[this.textData.mode].vipColorfulNumber++,this.textData.likes&&t[this.textData.mode].messageLinkNumber++):(t[this.textData.mode]=t[this.textData.mode]||{totalNumber:0},t[this.textData.mode].totalNumber++)}},t.prototype.resize=function(t,e){},t.prototype.destroy=function(){this.spaceManager&&this.spaceManager.remove(this),this.textData.on=!1;var t=O[this.textData.rawMode||this.textData.mode]||this.config.container;this.manager.cycleDoms[t].push(this.element);var e=this.textData.rawMode;F[e]?this.element.className="".concat(H,"-").concat(this.id):(this.element.className="".concat(H,"-").concat(this.id),this.element.innerHTML="",this.element.style.cssText="")},t}(),Kt=(a(4634),a(2427)),Xt=a.n(Kt),$t=(a(426),a(9057),a(5684),a(1496)),te=a.n($t),ee=a(7381),ie=a.n(ee),ne=(a(4173),a(7159),a(610),a(6653),a(739),a(3779),a(1048),a(4395),a(536)),re=a.n(ne),oe=a(6786),ae=a.n(oe),se=(a(9461),function(){function t(t,e){this.manager=e,
this.list=t,this.sortFn=function(t,e){return t.y>e.y?1:t.y<e.y?-1:t.y===e.y?t.endTime<e.endTime?-1:t.endTime>e.endTime?1:0:0}}return t.prototype.remove=function(t){var e,i=this.list[t.index];i&&(null===(e=null==i?void 0:i.bremove)||void 0===e||e.call(i,t))},t.prototype.insert=function(t){if(-1!==t.index){var e=this.list[t.index];e&&-1!==e.indexOf(t)||(e||(this.list[t.index]=e=new J),e.binsert(t,this.sortFn))}},t}()),le=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ae=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortFn=function(t,e){return t.bottom>e.bottom?1:t.bottom<e.bottom?-1:t.bottom===e.bottom?t.endTime<e.endTime?-1:t.endTime>e.endTime?1:0:0},e}return le(e,t),e.prototype.hasDm=function(t,e,i,n){for(var r,o=t;o<n.length;o++)if(!((r=n[o]).bottom<e)){if(r.y>i)break;return!0}return!1},e.prototype.add=function(t){var e=t.config,i=e.setting,n=i.offsetTop,r=i.videoOffsetTop,o=i.videoOffsetHeight,a=i.area,s=i.offsetBottom,l=i.preventShade,A=o?o+r:t.verticalDistance,c=A-(s||0),h=t.textData,d=h.pool,u=h.border,p=h.isHighLike,g=1===d||u||p||t.textData.mode===B.UpProfile||t.textData.mode===B.LiveToVod,f=t.verticalDistance*a/100,m=e.setting.density||1,y=(l?.85:1)*A;y=Math.min(y,c);for(var b=0;b<3;){var v=(n||0)+(r||0),E=t.height,I=v+E,C=this.list[b];if(!C)return t.bottom=v+E,{x:t.x,y:v,index:b};for(var w=0;w<C.length;w++){var x=C[w];if(I>y)break;if(!(x.bottom<=v)){if(x.y>I)return t.bottom=v+E,{x:t.x,y:v,index:b};if(x.y<=I&&x.bottom>=v){var Q=Math.floor(t.duration*(1-m)/2)+.1;if(t.x>x.x+x.width&&t.middle>x.endTime+Q){if(I<=x.bottom){if(this.hasDm(w+1,v,I,C))continue;return t.bottom=v+E,{x:t.x,y:v,index:b}}continue}}if(I=(v=x.bottom+1)+E,f&&!g&&I>f)return{x:-1,y:-1,index:-1}}}if(I<=y)return t.bottom=v+E,{x:t.x,y:v,index:b};if(f&&!g)return{x:-1,y:-1,index:-1};b++}return{x:-1,y:-1,index:-1}},e}(se),ce=a(5721),he={attributes:{"data-injector":"danmaku-x"}};he.setAttributes=A(),he.insert=o().bind(null,"head"),he.domAPI=n(),he.insertStyleElement=h(),e()(ce.A,he),ce.A&&ce.A.locals&&ce.A.locals;var de=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ue=function(t){function e(e){var i=t.call(this,e,"dm")||this;return i.bottom=0,i.middle=0,i.SAFE_RIGHT=50,i.SAFE_LEFT=50,i}return de(e,t),Object.defineProperty(e.prototype,"x",{get:function(){if(this.isHover)return this._x;var t=this.middle-this.manager.renderTime;return this._x=t*this.speed,this._x},set:function(t){this._x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t},enumerable:!1,configurable:!0}),e.prototype.outlineColor=function(t){return t?0:16777215},e.prototype.getShadow=function(t,e){return 1==+e?"0px 0px 1px "+t+",0 0 1px "+t+",0 0 1px "+t:2==+e?"1px 1px 2px "+t+",0 0 1px "+t:"1px 0 1px "+t+",0 1px 1px "+t+",0 -1px 1px "+t+",-1px 0 1px "+t},e.prototype.getSpaceManager=function(){return Ae},e.prototype.render=function(t,e){var i,n,r,o=this.textData,a=o.color,s=o.border,l=o.borderColor,A=o.colorfulImg,c=o.isHighLike,h=o.likes,d=this.config.setting,u=d.bold,p=d.fontFamily,g=d.fontBorder,f=d.opacity,m=Pt(this.outlineColor(a)),y="".concat(H,"-dm ").concat(H,"-roll"),b="";s&&"transparent"!==l&&!(null===(i=this.modeInfo)||void 0===i?void 0:i.isUpSlogan)?(b+="border: 1px solid ".concat(Pt(l),";"),this.width+=4,this.height+=4):(null===(n=this.modeInfo)||void 0===n?void 0:n.isUpSlogan)&&(y+=" ".concat(H,"-upslogan"),this.width+=12),this.font=(u?"bold":"normal")+" "+2*this.fontSize+"px "+p,b+="--opacity: ".concat(Math.max(f,.1)+"",";"),b+="--fontSize: ".concat(this.fontSize,"px;"),b+="--fontFamily: ".concat(p,", Arial, Helvetica, sans-serif;"),b+="--fontWeight: ".concat(u?"bold":"normal",";"),b+="--color: ".concat(Pt(a),";"),this.element.setAttribute("aria-live","polite"),this.element.setAttribute("role","comment"),A||(b+="--textShadow: ".concat(this.getShadow(m,g),";")),b+=this.renderRealTimeOptimization(null===(r=this.textData)||void 0===r?void 0:r.isRealTime),c||h||A?this.renderSpecialType(e||y,b):(this.hasEmoji||this.textData.prefix||this.textData.suffix?this.element.innerHTML=ct(this.text):this.element.textContent=ct(this.text),this.element.className=e||y,this.element.style.cssText=b),this.textData.prefix&&this.textData.prefix instanceof HTMLElement&&(this.textData.prefix.style.height="".concat(1.2*this.fontSize,"px"),this.textData.prefix.style.width="auto",this.element.insertBefore(this.textData.prefix,this.element.firstChild)),this.textData.suffix&&this.textData.suffix instanceof HTMLElement&&(this.textData.suffix.style.height="".concat(1.2*this.fontSize,"px"),this.textData.suffix.style.width="auto",this.element.appendChild(this.textData.suffix))},e.prototype.renderSpecialType=function(t,e){var i=this.textData,n=i.isHighLike,r=i.likes,o=i.colorfulImg;if(n){if(this.element.className="".concat(t," ").concat(H,"-high"),this.element.style.cssText=e,o)try{var a=JSON.parse(o),s=["","-webkit-","-moz-","-ms-"],l="";(null==a?void 0:a.stroke_color)&&(l+="background-image: url(".concat(a.stroke_color,");"),l+="background-size: cover;",l+="color: rgb(255,255,255);"),l+="text-shadow:none;display:flex;align-items:center;";for(var A=0;A<s.length;A++)l+="".concat(s[A],"background-clip:text;"),l+="".concat(s[A],"text-fill-color: #FFFFF;"),l+="".concat(s[A],"text-stroke: 2px transparent;");return this.element.innerHTML='\n                        <span class="'.concat(H,'-high-icon" style="width:').concat(this.fontSize,"px;height:").concat(this.fontSize,'px;">\n                            <em class="').concat(H,'-high-plus" style="font-size:').concat(this.fontSize/2,'px;">+1</em>\n                            <span class="').concat(H,'-high-icon-animate"></span>\n                        </span>\n                        <span class="').concat(H,"-high-text ").concat(H,'-colorful" style="').concat(l,'">').concat(this.text,"</span>\n                    "),this.width=1.1*this.fontSize,this.eventRange=[0,this.fontSize],void this.manager.track.s("player.highlight-dm.show",{dmid:this.textData.dmid})}catch(t){}return this.element.innerHTML='\n                <span class="'.concat(H,'-high-icon" style="width:').concat(this.fontSize,"px;height:").concat(this.fontSize,'px;">\n                    <em class="').concat(H,'-high-plus" style="font-size:').concat(this.fontSize/2,'px;">+1</em>\n                    <span class="').concat(H,'-high-icon-animate"></span>\n                </span>\n                <span class="').concat(H,'-high-text">').concat(this.text,"</span>\n            "),this.width=1.1*this.fontSize,this.eventRange=[0,this.fontSize],void this.manager.track.s("player.highlight-dm.show",{dmid:this.textData.dmid})}if(r){var c=this.fontSize/25;this.element.className="".concat(t," ").concat(H,"-like"),this.element.style.cssText=e;var h="font-size:".concat(this.fontSize/2,"px;");return this.fontSize<24&&(h="font-size:12px; transform:scale(".concat(c,")")),void(this.element.innerHTML='\n                <span class="'.concat(H,'-like-icon" style="width:').concat(this.fontSize,"px;height:").concat(this.fontSize,'px;">').concat(te(),'</span>\n                <span class="').concat(H,'-like-num" style="').concat(h,'">').concat(this.textData.likes||1,'</span>\n                <span class="').concat(H,'-like-text">').concat(this.text,"</span>\n            "))}if(o)try{
for(a=JSON.parse(o),s=["","-webkit-","-moz-","-ms-"],l="",(null==a?void 0:a.stroke_color)&&(l+="background-image: url(".concat(a.stroke_color,");"),l+="background-size: cover;"),l+="text-shadow:none;display:flex;align-items:center;",A=0;A<s.length;A++)l+="".concat(s[A],"background-clip:text;"),l+="".concat(s[A],"text-fill-color: #FFFFF;"),l+="".concat(s[A],"text-stroke: 2px transparent;");return this.element.className="".concat(t),this.element.style.cssText=e,void(this.element.innerHTML='<div style="'.concat(l,'" class="').concat(H,'-dm-vip">').concat(this.text,"</div>"))}catch(t){}},e.prototype.getSize=function(){var t=0,e=0,i=this.text,n=qt().getLen(i);if(n)t=1.02*Math.ceil(n*this.fontSize+this.width),e=Math.ceil(1.125*this.fontSize+this.height);else{var r=this.element.getBoundingClientRect();t=r.width,e=r.height}return this.textData.border&&(t+=4,e+=4),this.hasEmoji&&(t+=this.hasEmoji*this.fontSize),{width:t,height:e}},e.prototype.beforeCollisionCheck=function(){t.prototype.beforeCollisionCheck.call(this);var e=this.config.setting,i=e.duration,n=e.speedPlus,r=e.speedSync,o=e.videoSpeed,a=St({dmWidth:this.width,containerWidth:this.manager.containerSize.width,defaultDuration:i||4.5}),s=r?o:1;this.speed=(this.manager.containerSize.width+this.width)/a*n*s,this.horizontalDistance=Math.ceil(this.horizontalDistance-this.precise*this.speed)+this.SAFE_RIGHT,this.moveDistance=Math.ceil(this.horizontalDistance+this.width+this.SAFE_LEFT),this.duration=Math.ceil(this.moveDistance/this.speed*100)/100,this.endTime=this.duration+this.manager.renderTime,this.middle=this.manager.renderTime+this.horizontalDistance/this.speed,this.x=this.horizontalDistance,this.y=0},e.prototype.collisionCheck=function(){t.prototype.collisionCheck.call(this),(isNaN(this.width)||isNaN(this.horizontalDistance)||isNaN(this.duration))&&(this.duration=-1)},e.prototype.afterCollisionCheck=function(){var t=this.moveDistance,e="\n            --offset:".concat(this.x,"px;\n            --translateX:").concat(-t,"px;\n            --duration:").concat(this.duration,"s;\n            --top:").concat(this.y,"px;\n        ");this.element.style.cssText+=e},e.prototype.mouseEnter=function(){this.element.classList.add("".concat(H,"-paused")),this.isHover=!0,this.stopTime=Date.now()},e.prototype.mouseLeave=function(){var t;if(this.stopTime){null===(t=this.element)||void 0===t||t.classList.remove("".concat(H,"-paused")),this.isHover=!1;var e=(Date.now()-this.stopTime)/1e3;this.middle+=e,this.endTime+=e,this.stopTime=0}},e.prototype.hideAnimate=function(){this.element.classList.add("".concat(H,"-disable"))},e.prototype.likeNum=function(t){var e=this;if(!this.textData.unlike)if(t){if(this.liked||this.textData.isHighLike)return void setTimeout((function(){e.element.classList.add("".concat(H,"-liked"))}),20);this.liked=!0;var i=.8*this.height,n="\n                width:".concat(i,"px;\n                height:").concat(i,"px;\n                margin: 0px 0 0 -").concat(1.25*i,"px;\n            ");this.element.insertAdjacentHTML("afterbegin",'<span class="'.concat(H,'-liked-icon" style="').concat(n,'">').concat(te(),"</span>")),setTimeout((function(){e.element.classList.add("".concat(H,"-liked"))}),20)}else this.element.classList.remove("".concat(H,"-liked"))},e.prototype.renderRealTimeOptimization=function(t){void 0===t&&(t=!1);var e="";return qt().getLen(this.text)&&t&&(e+="--display: none;"),e},e}(Jt),pe=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pe(e,t),e.prototype.add=function(t){var e=t.config;if(t.height>=t.verticalDistance*(e.setting.preventShade?.85:1))return{x:0,y:0,index:-1};var i=e.setting,n=i.offsetTop,r=i.videoOffsetTop,o=i.videoOffsetHeight,a=i.area,s=i.offsetBottom,l=i.preventShade,A=o?o+r:t.verticalDistance,c=A-(s||0),h=t.textData,d=h.pool,u=h.border,p=h.isHighLike,g=h.likes,f=1===d||u||p||g,m=t.verticalDistance*a/100,y=(l?.85:1)*A,b=0;for(y=Math.min(y,c);b<3;){var v=(n||0)+(r||0),E=t.height,I=v+E,C=this.list[b];if(!C)return t.bottom=v+E,{x:t.x,y:v,index:b};for(var B=0;B<C.length;B++){var w=C[B];if(I>y)break;if(!(w.bottom<=v)){if(w.y>I)return t.bottom=v+E,{x:t.x,y:v,index:b};if(w.y<=I&&w.bottom>=v&&t.showTime>w.endTime+2){if(I<=w.bottom)return t.bottom=v+E,{x:t.x,y:v,index:b}}else if(I=(v=w.bottom+1)+E,m&&!f&&I>m)return{x:0,y:0,index:-1}}}if(I<=y)return t.bottom=v+E,{x:t.x,y:v,index:b};if(m&&!f)return{x:0,y:0,index:-1};b++}return{x:0,y:0,index:-1}},e}(Ae),fe=a(5417),me={attributes:{"data-injector":"danmaku-x"}};me.setAttributes=A(),me.insert=o().bind(null,"head"),me.domAPI=n(),me.insertStyleElement=h(),e()(fe.A,me),fe.A&&fe.A.locals&&fe.A.locals;var ye=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ye(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.manager.containerSize.width/2-this.width/2},set:function(t){this._x=t},enumerable:!1,configurable:!0}),e.prototype.getSpaceManager=function(){return ge},e.prototype.render=function(e,i){var n="".concat(H,"-dm ").concat(H,"-center");t.prototype.render.call(this,e,n)},e.prototype.afterRender=function(){t.prototype.afterRender.call(this),this.textData.isHighLike&&(this.element.className="".concat(H,"-dm ").concat(H,"-center ").concat(H,"-high-top"))},e.prototype.beforeCollisionCheck=function(){t.prototype.beforeCollisionCheck.call(this);var e=this.textData.duration,i=this.config.setting.duration;this.endTime=this.showTime+(e||i),this.middle=this.endTime,this.duration=this.endTime-this.manager.renderTime,this.x=(this.horizontalDistance-this.width)/2,this.y=0},e.prototype.afterCollisionCheck=function(){this.element.style.setProperty("--translateY","".concat(this.y,"px"))},e}(ue),ve=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ve(e,t),e.prototype.add=function(t){var e=t.config;if(t.height>=t.verticalDistance*(e.setting.preventShade?.85:1))return{x:0,y:0,index:-1};var i=e.setting,n=i.offsetTop,r=i.videoOffsetTop,o=i.videoOffsetHeight,a=i.area,s=i.offsetBottom,l=i.preventShade,A=o?o+r:t.verticalDistance,c=A-(s||0),h=t.textData,d=h.pool,u=h.border,p=h.isHighLike,g=h.likes,f=1===d||u||p||g,m=t.verticalDistance*a/100,y=(l?.85:1)*A,b=0;for(y=Math.min(y,c);b<3;){var v=(n||0)+(r||0),E=t.height,I=v+E,C=this.list[b];if(!C)return t.bottom=v+E,{x:t.x,y:v,index:b};for(var B=0;B<C.length;B++){var w=C[B],x=w.bottom-w.height;if(I>y)break;if(!(w.bottom<=v)){if(x>I)return t.bottom=v+E,{x:t.x,y:v,index:b};if(x<=I&&w.bottom>=v&&t.showTime>w.endTime+2){if(I<=w.bottom)return t.bottom=v+E,{x:t.x,y:v,index:b}}else if(I=(v=w.bottom+1)+E,m&&!f&&I>m)return{x:0,y:0,index:-1}}}if(I<=y)return t.bottom=v+E,{x:t.x,y:v,index:b};if(m&&!f)return{x:0,y:0,index:-1};b++}return{x:0,y:0,index:-1}},e}(Ae),Ie=a(257),Ce={attributes:{"data-injector":"danmaku-x"}}
;Ce.setAttributes=A(),Ce.insert=o().bind(null,"head"),Ce.domAPI=n(),Ce.insertStyleElement=h(),e()(Ie.A,Ce),Ie.A&&Ie.A.locals&&Ie.A.locals;var Be=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Be(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return(this.manager.containerSize.width-this.width)/2},set:function(t){this._x=t},enumerable:!1,configurable:!0}),e.prototype.getSpaceManager=function(){return Ee},e.prototype.render=function(e,i){var n="".concat(H,"-dm ").concat(H,"-center");t.prototype.render.call(this,e,n)},e.prototype.afterRender=function(){t.prototype.afterRender.call(this),this.textData.isHighLike&&(this.element.className="".concat(H,"-dm ").concat(H,"-center ").concat(H,"-high-top"))},e.prototype.beforeCollisionCheck=function(){t.prototype.beforeCollisionCheck.call(this);var e=this.textData.duration,i=this.config.setting.duration;this.endTime=this.showTime+(e||i),this.middle=this.endTime,this.duration=this.endTime-this.manager.renderTime,this.x=(this.horizontalDistance-this.width)/2,this.y=0},e.prototype.collisionCheck=function(){t.prototype.collisionCheck.call(this),this.y=this.manager.containerSize.height*(this.config.setting.preventShade?.85:1)-this.height-this.y},e.prototype.afterCollisionCheck=function(){this.element.style.setProperty("--translateY","".concat(this.y,"px"))},e.prototype.resize=function(e,i){t.prototype.resize.call(this,e,i),this.y+=i,this.element.style.setProperty("--translateY","".concat(this.y,"px"))},e}(ue),xe=a(6650),Qe={attributes:{"data-injector":"danmaku-x"}};Qe.setAttributes=A(),Qe.insert=o().bind(null,"head"),Qe.domAPI=n(),Qe.insertStyleElement=h(),e()(xe.A,Qe),xe.A&&xe.A.locals&&xe.A.locals;var Se=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function ke(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Se(e,t),e.prototype.render=function(e,i){t.prototype.render.call(this,e,i);var n=this.resource,r=n.url,o=n.width,a=n.height;this.element.innerHTML='\n                <img src="'.concat(r,'" class="').concat(H,'-icon" />\n                <span class="').concat(H,'-prefixImage-text-container">').concat(ct(this.text),"</span>\n            ");var s=this.element.querySelector(".".concat(H,"-icon")),l=1.2*this.fontSize,A=l*o/a;s.style.height="".concat(l,"px"),s.style.width="".concat(A,"px")},e.prototype.getSize=function(){var e=t.prototype.getSize.call(this),i=e.width,n=e.height,r=this.resource,o=r.width,a=r.height;return{width:i+1.2*this.fontSize*(o/a),height:n}},e}(t)}var De=a(2683),_e={attributes:{"data-injector":"danmaku-x"}};_e.setAttributes=A(),_e.insert=o().bind(null,"head"),_e.domAPI=n(),_e.insertStyleElement=h(),e()(De.A,_e),De.A&&De.A.locals&&De.A.locals;var Re=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Me(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Re(e,t),e.prototype.render=function(e,i){t.prototype.render.call(this,e,i);var n=this.resource,r=n.url,o=n.width,a=n.height;this.element.innerHTML='\n                <span class="'.concat(H,'-prefixImage-text-container">').concat(ct(this.text),'</span>\n                <img src="').concat(r,'" class="').concat(H,'-icon" />\n            ');var s=this.element.querySelector(".".concat(H,"-icon")),l=1.2*this.fontSize,A=l*o/a;s.style.height="".concat(l,"px"),s.style.width="".concat(A,"px")},e.prototype.getSize=function(){var e=t.prototype.getSize.call(this),i=e.width,n=e.height,r=this.resource,o=r.width,a=r.height;return{width:i+1.2*this.fontSize*(o/a),height:n}},e}(t)}var Te=a(4440),Fe={attributes:{"data-injector":"danmaku-x"}};Fe.setAttributes=A(),Fe.insert=o().bind(null,"head"),Fe.domAPI=n(),Fe.insertStyleElement=h(),e()(Te.A,Fe),Te.A&&Te.A.locals&&Te.A.locals;var Le=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Ne(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Le(e,t),e.prototype.render=function(e){t.prototype.render.call(this,e);var i="",n=Math.max(.6*this.fontSize,12);i+="font-size:".concat(n,"px;"),this.fontSize<20&&(i+="transform: translateY(-50%) scale(".concat(this.fontSize/20,");"),i+="left: ".concat(.6*this.fontSize/20,"em;")),this.element.classList.add("".concat(H,"-up")),this.element.innerHTML='\n                <span class="'.concat(H,'-up-tip" style="').concat(i,'">UP主</span>\n                <span>').concat(this.text,"</span>\n            ")},e.prototype.getSize=function(){var e=t.prototype.getSize.call(this),i=e.width;return e.height,{width:i+3.2*this.fontSize,height:Math.ceil(1.6*this.fontSize)}},e.prototype.likeNum=function(t){},e}(t)}var Pe=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Ue(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pe(e,t),e.prototype.render=function(e){t.prototype.render.call(this,e);var i=this.resource,n=i.url,r=i.width,o=i.height,a=i.scale,s=i.borderRadius,l=r+2,A=o;a&&(l=r*(A=a*this.fontSize*1.125)/o),this.imgHeight=A,this.imgWidth=l;var c=s?"border-radius:".concat(s,"px;"):"";this.element.innerHTML='<img src="'.concat(n,'" style="width:').concat(l,"px;height:").concat(A,'px;">'),this.element.style.cssText+="width:".concat(l,"px;height:").concat(A,"px;").concat(c,";overflow:hidden;")},e.prototype.getSize=function(){return{width:this.imgWidth,height:this.imgHeight}},e}(t)}var Oe=a(4548),Ge={attributes:{"data-injector":"danmaku-x"}};Ge.setAttributes=A(),Ge.insert=o().bind(null,"head"),Ge.domAPI=n(),Ge.insertStyleElement=h(),e()(Oe.A,Ge),Oe.A&&Oe.A.locals&&Oe.A.locals;var He=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()
;function Ve(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return He(e,t),e.prototype.render=function(e){t.prototype.render.call(this,e);var i=this.modeInfo,n=i.color_type,r=i.font_color,o=i.font_stroke_color,a=i.fontBorder,s=this.resource.url;if(1===n){var l="";r&&(l+="--color: ".concat(r,";")),o&&(l+="--textShadow: ".concat(this.getShadow(o,a),";")),this.element.style.cssText+=l}else this.element.innerHTML='\n                    <div class="'.concat(H,'-colorful" style="background-image: url(').concat(s,')">').concat(this.text,"</div>\n                ")},e}(t)}var Ye=a(6806),ze={attributes:{"data-injector":"danmaku-x"}};ze.setAttributes=A(),ze.insert=o().bind(null,"head"),ze.domAPI=n(),ze.insertStyleElement=h(),e()(Ye.A,ze),Ye.A&&Ye.A.locals&&Ye.A.locals;var We=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function Ze(t){return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return We(e,t),e.prototype.render=function(e){t.prototype.render.call(this,e);var i=this.resource.url,n=this.modeInfo.official_type,r=this.fontSize/25,o=1.125*this.fontSize+7*r-4,a="";switch(n){case 0:a=ae();break;case 1:a=re()}this.manager.track.s("player.dm-actor-image.show"),this.element.classList.add("".concat(H,"-actor")),this.element.style.cssText+="\n                padding: ".concat(4*r,"px ").concat(16*r,"px ").concat(3*r,"px ").concat(12*r+2*o,"px;\n                border-radius: ").concat((o+4)/2,"px;\n            "),this.element.innerHTML='\n                <span class="'.concat(H,'-actor-img" style="width:').concat(o,"px;height:").concat(o,'px">\n                    <img src="').concat(i,'" />\n                </span>\n                <span class="').concat(H,'-actor-tip" style="left:').concat(o/2+4,"px;transform:scale(").concat(this.fontSize/40,')">').concat(a,"</span>\n                <span>").concat(this.text,"</span>\n            "),this.guestWidth=28*r+o+10,this.guestHeight=1.125*this.fontSize+7*r-4},e.prototype.getSize=function(){var e=t.prototype.getSize.call(this),i=e.width;return e.height,{width:i+this.guestWidth,height:this.guestHeight}},e}(t)}var je=a(4984),qe={attributes:{"data-injector":"danmaku-x"}};qe.setAttributes=A(),qe.insert=o().bind(null,"head"),qe.domAPI=n(),qe.insertStyleElement=h(),e()(je.A,qe),je.A&&je.A.locals&&je.A.locals;var Je=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Je(e,t),e.prototype.render=function(e){t.prototype.render.call(this,e),this.element.classList.remove("".concat(H,"-roll")),this.element.classList.add("".concat(H,"-reverse")),this.textData.isHighLike&&(this.eventRange=[-this.fontSize],this.element.innerHTML='\n                <span class="'.concat(H,'-high-text">').concat(this.text,'</span>\n                <span class="').concat(H,'-high-icon" style="width:').concat(this.fontSize,"px;height:").concat(this.fontSize,'px;">\n                    <em class="').concat(H,'-high-plus" style="font-size:').concat(this.fontSize/2,'px;">+1</em>\n                    <span class="').concat(H,'-high-icon-animate">').concat(ie(),"</span>\n                </span>\n            "),this.element.className+=" ".concat(H,"-high-reverse"))},e}(ue),Xe=a(4380),$e={attributes:{"data-injector":"danmaku-x"}};$e.setAttributes=A(),$e.insert=o().bind(null,"head"),$e.domAPI=n(),$e.insertStyleElement=h(),e()(Xe.A,$e),Xe.A&&Xe.A.locals&&Xe.A.locals;var ti=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ei=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortFn=function(t,e){return t.bottom>e.bottom?1:t.bottom<e.bottom?-1:t.bottom===e.bottom?t.endTime<e.endTime?-1:t.endTime>e.endTime?1:0:0},e}return ti(e,t),e.prototype.hasDm=function(t,e,i,n){for(var r,o=t;o<n.length;o++)if(!((r=n[o]).bottom<e)){if(r.y>i)break;return!0}return!1},e.prototype.add=function(t){return t._isReverse?this.addReverse(t):this.addForward(t)},e.prototype.addForward=function(t){var e=t.config,i=e.setting,n=i.offsetTop,r=i.videoOffsetTop,o=i.videoOffsetHeight,a=i.area,s=i.offsetBottom,l=i.preventShade,A=o?o+r:t.verticalDistance,c=A-(s||0),h=t.textData,d=h.pool,u=h.border,p=h.isHighLike,g=1===d||u||p||t.textData.mode===B.UpProfile||t.textData.mode===B.LiveToVod,f=t.verticalDistance*a/100,m=e.setting.density||1,y=(l?.85:1)*A;y=Math.min(y,c);for(var b=f?Math.min(.5*f,.5*y):.5*y,v=b<t.height?f:b,E=0;E<3;){var I=(n||0)+(r||0),C=t.height,w=I+C,x=this.list[E];if(x){for(var Q=0;Q<x.length;Q++){var S=x[Q];if(w>v)break;if(!(S.bottom<=I)){if(S.y>w)return t.bottom=I+C,{x:t.x,y:I,index:E};if(S.y<=w&&S.bottom>=I){var k=Math.floor(t.duration*(1-m)/2)+.1;if(t.x>S.x+S.width&&t.middle>S.endTime+k){if(w<=S.bottom){if(this.hasDm(Q+1,I,w,x))continue;return t.bottom=I+C,{x:t.x,y:I,index:E}}continue}}if(w=(I=S.bottom+1)+C,f&&!g&&w>f)return{x:-1,y:-1,index:-1}}}if(w<=v)return t.bottom=I+C,{x:t.x,y:I,index:E};if(f&&!g)return{x:-1,y:-1,index:-1};E++}else{if(w<=v)return t.bottom=I+C,{x:t.x,y:I,index:E};E++}}return{x:-1,y:-1,index:-1}},e.prototype.addReverse=function(t){var e=t.config,i=e.setting,n=i.offsetTop,r=i.videoOffsetTop,o=i.videoOffsetHeight,a=i.area,s=i.offsetBottom,l=i.preventShade,A=o?o+r:t.verticalDistance,c=A-(s||0),h=t.textData,d=h.pool,u=h.border,p=h.isHighLike,g=1===d||u||p||t.textData.mode===B.UpProfile||t.textData.mode===B.LiveToVod,f=t.verticalDistance*a/100,m=e.setting.density||1,y=(l?.85:1)*A;y=Math.min(y,c);var b=(n||0)+(r||0)+(f?Math.min(.5*f,.5*y):.5*y),v=f?Math.min(f,y):y;if(b+t.height>v)return{x:-1,y:-1,index:-1};for(var E=0;E<3;){var I=b,C=t.height,w=I+C,x=this.list[E];if(x){for(var Q=0;Q<x.length;Q++){var S=x[Q];if(w>v)break;if(!(S.bottom<=I)){if(S.y>w)return t.bottom=w,{x:t.x,y:I,index:E+100};if(S.y<=w&&S.bottom>=I){var k=Math.floor(t.duration*(1-m)/2)+.1;if(t.x>S.x+S.width&&t.middle>S.endTime+k){if(w<=S.bottom){if(this.hasDm(Q+1,I,w,x))continue;return t.bottom=w,{x:t.x,y:I,index:E+100}}continue}}if(w=(I=S.bottom+1)+C,f&&!g&&w>f)return{x:-1,y:-1,index:-1}}}if(w<=v)return t.bottom=w,{x:t.x,y:I,index:E+100};if(f&&!g)return{x:-1,y:-1,index:-1};E++}else{if(w<=v)return t.bottom=w,{x:t.x,y:I,index:E+100};E++}}return{x:-1,y:-1,index:-1}},e.prototype.remove=function(t){var e,i=t.index>=100?t.index-100:t.index,n=this.list[i];n&&(null===(e=null==n?void 0:n.bremove)||void 0===e||e.call(n,t))},e.prototype.insert=function(t){if(-1!==t.index){var e=t.index>=100?t.index-100:t.index,i=this.list[e];i&&-1!==i.indexOf(t)||(i||(this.list[e]=i=new J),i.binsert(t,this.sortFn))}},e}(se),ii=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}
t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}();function ni(t){return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._isReverse=!1,e._reverseMiddle=0,e}return ii(e,t),e.prototype.getSpaceManager=function(){var e;return(null!==(e=this.textData.rawMode)&&void 0!==e?e:this.textData.mode)===C.Roll?ei:t.prototype.getSpaceManager.call(this)},Object.defineProperty(e.prototype,"x",{get:function(){if(this.isHover)return this._x;if(this._isReverse){var t=this._reverseMiddle-this.manager.renderTime;return this._x=t*this.speed,this._x}return t=this.middle-this.manager.renderTime,this._x=t*this.speed,this._x},set:function(t){this._x=t},enumerable:!1,configurable:!0}),e.prototype.mouseLeave=function(){var t;if(this.stopTime){null===(t=this.element)||void 0===t||t.classList.remove("".concat(H,"-paused")),this.isHover=!1;var e=(Date.now()-this.stopTime)/1e3;this._isReverse?this._reverseMiddle+=e:this.middle+=e,this.endTime+=e,this.stopTime=0}},e.prototype.beforeCollisionCheck=function(){var e;if((null!==(e=this.textData.rawMode)&&void 0!==e?e:this.textData.mode)===C.Roll){var i=this.textData,n=i.border,r=i.pool,o=i.isHighLike,a=n||1===r||o;this._isReverse=!a&&Math.random()<.5}t.prototype.beforeCollisionCheck.call(this),this._isReverse&&(this.horizontalDistance=Math.ceil(this.manager.containerSize.width+1-this.precise*this.speed)+this.SAFE_LEFT,this.moveDistance=Math.ceil(this.horizontalDistance+this.width+this.SAFE_RIGHT),this.duration=Math.ceil(this.moveDistance/this.speed*100)/100,this.endTime=this.duration+this.manager.renderTime,this._reverseMiddle=this.manager.renderTime+this.horizontalDistance/this.speed,this.x=this.horizontalDistance)},e.prototype.afterCollisionCheck=function(){var e;if((null!==(e=this.textData.rawMode)&&void 0!==e?e:this.textData.mode)===C.Roll)if(this._isReverse){this.element.classList.remove("".concat(H,"-roll")),this.element.classList.add("".concat(H,"-bidirection-reverse"));var i="\n                    --offset:".concat(this.horizontalDistance,"px;\n                    --translateX:").concat(this.moveDistance,"px;\n                    --duration:").concat(this.duration,"s;\n                    --top:").concat(this.y,"px;\n                ");this.element.style.cssText+=i}else t.prototype.afterCollisionCheck.call(this);else t.prototype.afterCollisionCheck.call(this)},e}(t)}var ri=function(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},oi=function(){function t(t){this.danmaku=t,this.lastTime=null,this.limitNumber=0,this.squareArea=0,this.recordDanmakuInfoStartTime=0,this.recordDanmakuInfo={},this.dmExposureNum=0,this.interactiveDmCount=0,this.dmFromMap=new Map,this.cDmlist=[],this.cycleDoms={common:[],inside:[],rotate:[]},this.modeDomMap={},this.lineElement={vertical:null,horizontal:null},this.containerSize={height:0,width:0,vHeight:0,vWidth:0,rHeight:0,rWidth:0},this.cacheResource={},this.shrinkState=D.OFF,this.dmidMap={},this.danmakuShowInfo={},this.danmakuFilterInfo={},this.danmakuLogs=[],this.config=t.config,this.visualArray=[],this.container=this.config.container,this.dataBase=new Zt(this.config),this.collisionPool=new S(this.config.collisionPoolMap),this.initTrack(),this.initModeMap(),this.mixinModeMap(),this.mixinModeDomMap(),this.resize()}return t.prototype.initTrack=function(){this.track=new Gt(this),this.track.startTask()},t.prototype.initModeMap=function(){var t;this.modeMap=((t={})[fi.Mode.Roll]={model:ue},t[fi.Mode.Top]={model:be},t[fi.Mode.Bottom]={model:we},t[fi.Mode.Reverse]={model:Ke},t[fi.Mode.PrefixImage]={model:ke},t[fi.Mode.SuffixImage]={model:Me},t[fi.Mode.Picture]={model:Ue},t[fi.Mode.Colorful]={model:Ve},t[fi.Mode.Guest]={model:Ze},t[fi.Mode.UpProfile]={model:Ne},t[fi.Mode.Bidirection]={model:ni},t)},t.prototype.mixinModeMap=function(){for(var t=this.config.modes||[],e=function(t){if(i.modeMap[t.mode]){var e=i.modeMap[t.mode];Object.keys(t).forEach((function(i){e[i]=t[i]}))}else i.modeMap[t.mode]=t},i=this,n=0,r=t;n<r.length;n++)e(r[n])},t.prototype.mixinModeDomMap=function(){for(var t=0,e=this.config.modes||[];t<e.length;t++){var i=e[t];if(i.wrap)"string"==typeof i.wrap?O[i.mode]=I[i.wrap]:(this.cycleDoms[i.wrap.name]=[],this.modeDomMap[i.mode]=i.wrap.dom);else{var n=i.mode;O[n]||(O[n]=I.common)}}},t.prototype.setReportDmid=function(t){this.reportDmid=t},t.prototype.addCmdList=function(t,e){this.dataBase.addCmdList(t,e)},t.prototype.addList=function(t){var e=this;t.forEach((function(t){if(t.resUrl&&"string"==typeof t.resUrl){var i=t.resUrl;e.cacheResource[i]=e.cacheResource[i]||t.resource,t.resource=null,delete t.resource}})),this.dataBase.addList(t)},t.prototype.updateCmd=function(t){this.dataBase.updateCmd(t)},t.prototype.multipleAdd=function(t){var e=this;t.forEach((function(t){e.dataBase.add(t)}))},t.prototype.updateState=function(){this.visualArray.forEach((function(t){var e,i;null===(i=(e=t).update)||void 0===i||i.call(e)}))},t.prototype.setModes=function(t){var e=this;t.forEach((function(t){if(e.modeMap[t.mode]){var i=function(i){if("mode"===i)return"continue";"object"==typeof t[i]?(e.modeMap[t.mode][i]&&"object"==typeof e.modeMap[t.mode][i]||(e.modeMap[t.mode][i]={}),Object.keys(t[i]).forEach((function(n){e.modeMap[t.mode][i][n]=t[i][n]}))):e.modeMap[t.mode][i]=t[i]};for(var n in t)i(n)}else e.modeMap[t.mode]=t}))},t.prototype.add=function(t,e){var i;t.isRealTime=!0,(i=N[t.mode]||e?this.dataBase.addCmdList([t],!1,!0)[0]:this.dataBase.add(t))&&(i.isRealTime=!0,this.config.setting.visible&&!document[Et.hidden]&&(this.insert([i]),this.visualArray.some((function(t){var e,n;if(t.textData.mode===w.Combo&&t.textData.text===i.text)return null===(n=(e=t).update)||void 0===n||n.call(e,i),!0}))))},t.prototype.remove=function(t){var e=this;this.dataBase.remove(t),this.visualArray.some((function(i,n){if(i.textData.dmid===t)return i.destroy(),e.visualArray.splice(n,1),!0}))},t.prototype.emit=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];(e=this.danmaku).emit.apply(e,ri([t],i,!1))},t.prototype.render=function(t,e,i){var n=this;this.renderTime=t,this.currentTime=e;var r=[];this.visualArray.forEach((function(e){var i=e.textData,o=i.mode,a=i.rawMode,s=e.showTime,l=e.endTime,A=t-s;if(N[o]){if(n.currentTime<s||n.currentTime>l)return r.push(e);!e.showed&&e.firstShow()}else{if(A<-n.config.setting.preTime*n.config.setting.videoSpeed)return r.push(e);if(e.shouldDestroy())return r.push(e);(A>=0||a===C.Roll||a===C.Reverse||a===B.BlackHole)&&!e.showed&&e.firstShow()}e.animate(e.isFirstAnimate),e.isFirstAnimate&&(e.isFirstAnimate=!1)})),r.forEach((function(t){n.end(t)}))},t.prototype.fetchAndInitDm=function(t,e,i){this.renderTime=t,this.currentTime=e;var n=this.currentTime-.001,r=+i>=0;this.lastTime||(this.lastTime=n),this.lastTime=Math.max(this.lastTime,n);var o=this.config.setting,a=o.videoSpeed,s=o.preTime,l=o.speedSync,A=o.speedPlus,c=o.duration,h=this.containerSize.width,d=this.lastTime-.001;this.lastTime=n+s*a,d=r?i-h/(512/c*A*(l?a:1)):Math.max(d,n);var u=this.dataBase.getItemsByRange(d,this.lastTime,this.currentTime),p=this.config.setting.limit;r?(this.config.setting.limit=1e4,this.insert(u,this.config.setting.limit),this.config.setting.limit=p):this.insert(u)},t.prototype.insert=function(t,e){var i=this,n=this.config.scene.isMini;this.danmaku.callHooks("beforeRender",ri([],this.visualArray,!0),ri([],t,!0));var r=Math.max(this.getRollDanmakuMaxCountPerSecond(),null!=e?e:0),o=0,a=null;t=t.filter((function(t){var e,s,l,A,c,h,d=t.on,u=t.stime,p=t.modeInfo,g=t.likes,f=t.rawMode,m=t.mode;if(m===B.LiveToVod)return a=t,!1;if(null!==(e=(A=i.danmakuFilterInfo)["dm-total-number"])&&void 0!==e||(A["dm-total-number"]=0),i.danmakuFilterInfo["dm-total-number"]++,F[m]&&i.config.setting.noDanmakuXTypes.includes("common")||N[m]&&i.config.setting.noDanmakuXTypes.includes("interact")||L[m]&&i.config.setting.noDanmakuXTypes.includes("special"))return!1;if(!i.config.setting.visible||document[Et.hidden])return!1
;if(!i.validate(t))return null!==(s=(c=i.danmakuFilterInfo)["dm-filter-fail"])&&void 0!==s||(c["dm-filter-fail"]=0),i.danmakuFilterInfo["dm-filter-fail"]++,!1;if(d)return!1;if(g)return!0;if(!F[f]&&n)return!1;if(L[f]){if(u<i.currentTime)return!1;if(null==p?void 0:p.mustShow)return!0}return!(N[f]&&(u>i.currentTime||i.currentTime>u+t.duration||i.shrinkState===D.HIDE)||f===C.Roll&&m!==B.LiveToVod&&++o>r&&(null!==(l=(h=i.danmakuFilterInfo)["dm-count-exceed-limit"])&&void 0!==l||(h["dm-count-exceed-limit"]=0),i.danmakuFilterInfo["dm-count-exceed-limit"]++,1))})),(t=a?ri([a],t,!0):t).forEach((function(t){var e=M[t.mode];if(e&&!t.border){if(+e*i.limitNumber/i.squareArea>1)return!1;i.limitNumber++}t.on=!0,i.initRender(t)}))},t.prototype.initRender=function(t){var e,i,n,r;if(P[t.mode]){var o=null===(e=this.modeMap[t.rawMode])||void 0===e?void 0:e.model,a=null===(i=this.modeMap[t.mode])||void 0===i?void 0:i.model;if(!o||"function"!=typeof a)return;r=a(o)}else r=null===(n=this.modeMap[t.mode])||void 0===n?void 0:n.model;if(r){var s=new r({textData:t,manager:this});r=null,t.isHighLike?this.cDmlist.unshift(s):this.cDmlist.push(s)}},t.prototype.cloneBlackHole=function(t){var e,i=new(null===(e=this.modeMap[t.mode])||void 0===e?void 0:e.model)({textData:t,manager:this});i.beforeCollisionCheck(),i.collisionCheck(),i.duration<0?this.end(i):(i.afterCollisionCheck(),this.visualArray.push(i))},t.prototype.beforeCollisionCheck=function(){this.cDmlist.forEach((function(t){t.beforeCollisionCheck()}))},t.prototype.collisionCheck=function(){var t=this;this.cDmlist.forEach((function(e){var i,n,r;if(e.collisionCheck(),e.duration<=0)null!==(i=(r=t.danmakuFilterInfo)["dm-collisionCheck-fail"])&&void 0!==i||(r["dm-collisionCheck-fail"]=0),t.danmakuFilterInfo["dm-collisionCheck-fail"]++,t.end(e);else{t.dmExposureNum++;var o=(null===(n=null==e?void 0:e.textData)||void 0===n?void 0:n.dmFrom)||0;t.dmFromMap.has(o)?t.dmFromMap.set(o,t.dmFromMap.get(o)+1):t.dmFromMap.set(o,1),e.afterCollisionCheck(),e.firstFrame(),t.visualArray.push(e),e.textData.mode,C.Roll}})),this.danmaku.callHooks("render",this.visualArray),this.cDmlist.length=0},t.prototype.fresh=function(t){for(var e=t?function(e,i){return!t(e)}:this.validate.bind(this),i=0;i<this.visualArray.length;i++){var n=this.visualArray[i];n&&n.textData&&(e(n.textData,!0)||n.textData.likes?n.show():(this.reportDmid===n.textData.dmid&&(this.reportDmid=null),n.hide()))}for(i=0;i<this.cDmlist.length;i++){var r=this.cDmlist[i];this.cDmlist.splice(i,1),i--,this.end(r)}},t.prototype.resizeSegmentsArea=function(t){void 0===t&&(t=100);var e=this.config.setting,i=(e.offsetTop||0)+(e.videoOffsetTop||0),n=this.containerSize.height*t/100;this.collisionPool.resizeSegmentsArea(i,n)},t.prototype.reset=function(t){this.clear(),this.dataBase.reset(t)},t.prototype.resize=function(t){var e=this,i=t||{},n=i.width,r=i.vWidth,o=i.height,a=i.vHeight;n=n||this.container.offsetWidth||680,o=o||this.container.offsetHeight||420,r=r||n,a=a||o;var s=o-this.containerSize.height,l=n-this.containerSize.width;this.containerSize.width=n,this.containerSize.height=o,this.containerSize.rWidth=1.12*n,this.containerSize.rHeight=1.3*o,this.containerSize.vWidth=r,this.containerSize.vHeight=a,this.squareArea=n*o,0!==this.config.setting.limit&&K.resize();var A=[];this.visualArray.forEach((function(t){var e=t.textData.mode;T[e]?A.push(t):t.resize(l,s)})),A.forEach((function(t){e.end(t)}))},t.prototype.validate=function(t,e){return!(this.config.fn.filter(t)||!e&&!K.validateLive({density:this.config.setting.limit,pool:t.pool}))},t.prototype.clear=function(){this.collisionPool.clearAllPool(),this.clearVisualArray(),this.clearCDmlist(),this.lastTime=0},t.prototype.clearCDmlist=function(){for(;this.cDmlist.length;){var t=this.cDmlist.shift();this.endClear(t)}this.cDmlist.length=0},t.prototype.clearVisualArray=function(){for(;this.visualArray.length;){var t=this.visualArray.shift();this.endClear(t)}this.visualArray.length=0},t.prototype.endClear=function(t){if(M[t.textData.mode]&&this.limitNumber--,t.destroy(),N[t.textData.mode]&&this.lineElement){var e=this.lineElement,i=e.horizontal,n=e.vertical;null==n||n.style.setProperty("--left-show","0"),null==n||n.style.setProperty("--right-show","0"),null==i||i.style.setProperty("--top-show","0"),null==i||i.style.setProperty("--bottom-show","0")}t=null},t.prototype.getRollDanmakuMaxCountPerSecond=function(){var t=this.containerSize.height,e=this.config.setting,i=e.area,n=28.125*e.fontSize;if(i){var r=t*(i/100);return Math.ceil(r/n)}return 9999},t.prototype.recordRollDanmakuCountPerSecond=function(t){var e=Date.now(),i=Math.floor(e/1e3);this.recordDanmakuInfoStartTime||(this.recordDanmakuInfoStartTime=i);var n="roll-".concat(i-this.recordDanmakuInfoStartTime);this.recordDanmakuInfo[n]||(this.recordDanmakuInfo[n]=0),this.recordDanmakuInfo[n]+=(null==t?void 0:t.filter((function(t){return t.mode===C.Roll})).length)||0},t.prototype.end=function(t){if(M[t.textData.mode]&&this.limitNumber--,t.destroy(),N[t.textData.mode]&&this.lineElement){var e=this.lineElement,i=e.horizontal,n=e.vertical;null==n||n.style.setProperty("--left-show","0"),null==n||n.style.setProperty("--right-show","0"),null==i||i.style.setProperty("--top-show","0"),null==i||i.style.setProperty("--bottom-show","0")}var r=this.visualArray.indexOf(t);-1!==r&&this.visualArray.splice(r,1),t=null},t.prototype.clearDanmakuLogs=function(){this.danmakuLogs=[]},t.prototype.getDanmakuStatReport=function(){return{dmExposureNum:this.dmExposureNum,dmFromMap:this.dmFromMap,interactiveDmCount:this.interactiveDmCount}},t.prototype.destroy=function(){for(var t in this.clear(),this.danmakuLogs=[],this.emit(G.Danmaku_Stat_Report,{params:{dmExposureNum:this.dmExposureNum,dmFromMap:this.dmFromMap,interactiveDmCount:this.interactiveDmCount}}),this.track.o("danmaku-exposure",this.danmakuShowInfo,{sendBeacon:!0,prepend:!0,kind:Ut.OP}),this.track.o("danmaku-filter-reason",this.danmakuFilterInfo,{sendBeacon:!0,prepend:!0,kind:Ut.OP}),this.dmFromMap.clear(),this.track.clearTask(),this.dmExposureNum=0,this.interactiveDmCount=0,this.dataBase.reset(),this.dmidMap=null,this.modeMap=null,this.cycleDoms)this.cycleDoms[t].forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}));this.cycleDoms=null,this.container.innerHTML="",this.lineElement&&(this.lineElement.horizontal&&this.config.dom.insideWrap.removeChild(this.lineElement.horizontal),this.lineElement.vertical&&this.config.dom.insideWrap.removeChild(this.lineElement.vertical),this.lineElement.horizontal=null,this.lineElement.vertical=null)},t}(),ai=function(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},si=function(t){return this instanceof si?(this.v=t,this):new si(t)},li=function(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=i.apply(t,e||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",(function(t){return function(e){return Promise.resolve(e).then(t,A)}})),n[Symbol.asyncIterator]=function(){return this},n;function a(t,e){
r[t]&&(n[t]=function(e){return new Promise((function(i,n){o.push([t,e,i,n])>1||s(t,e)}))},e&&(n[t]=e(n[t])))}function s(t,e){try{(i=r[t](e)).value instanceof si?Promise.resolve(i.value.v).then(l,A):c(o[0][2],i)}catch(t){c(o[0][3],t)}var i}function l(t){s("next",t)}function A(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},Ai=function(){function t(t,e){this.msPrev=performance.now(),this.running=!1,this.msPerFrame=1e3/t.fps,e&&(this.callback=e)}return t.prototype.start=function(t){if(t&&(this.callback=t),!this.callback)throw new Error("No callback provided for the throttled RAF.");this.running||(this.rafID=window.requestAnimationFrame(this.loop.bind(this)))},t.prototype.loop=function(t){this.rafID=window.requestAnimationFrame(this.loop.bind(this));var e=t-this.msPrev;if(!(e<this.msPerFrame)){var i=e%this.msPerFrame;this.msPrev=t-i,this.callback(t)}},t.prototype.stop=function(){this.rafID&&(window.cancelAnimationFrame(this.rafID),this.rafID=void 0)},t.prototype.nextFrame2=function(){return li(this,arguments,(function(){var t,e,i;return ai(this,(function(n){switch(n.label){case 0:t=performance.now(),e=0,n.label=1;case 1:return[4,si(new Promise(requestAnimationFrame))];case 2:return(i=n.sent())-t<this.msPerFrame-e?[3,1]:(e=Math.min(this.msPerFrame,e+i-t-this.msPerFrame),t=i,[4,si(i)]);case 3:return[4,n.sent()];case 4:return n.sent(),[3,1];case 5:return[2]}}))}))},t.nextFrame=function(t){return li(this,arguments,(function(t){var e,i,n,r,o=t.fps;return ai(this,(function(t){switch(t.label){case 0:e=1e3/o,i=performance.now(),t.label=1;case 1:return[4,si(new Promise(requestAnimationFrame))];case 2:return n=t.sent(),(r=n-i)<e?[3,1]:(i=n-r%e,[4,si(n)]);case 3:return[4,t.sent()];case 4:return t.sent(),[3,1];case 5:return[2]}}))}))},t}(),ci=function(){function t(){this.isRunningMap={},this.frontEveryFrameCallbacks=[],this.endEveryFrameCallbacks=[],this.startID=-1,this.splitFrameCallbacks=[]}return t.prototype.start=function(){return function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))}(this,void 0,void 0,(function(){var t,e,i,n,r,o,a,s,l,A,c;return function(t,e){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],n=0}finally{i=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(h){switch(h.label){case 0:if(this.isRunningMap[this.startID])return[2];this.startID++,t=this.startID,this.isRunningMap[t]=!0,h.label=1;case 1:h.trys.push([1,6,7,12]),e=function(){c=o.value,n=!1;var e=c;if(!i.isRunningMap[t])return"break";i.frontEveryFrameCallbacks.forEach((function(t){return t(e)})),i.splitFrameCallbacks.forEach((function(t){(t.isSplitFrameRunning||t.condition())&&(t.runCallback(e),t.mayReset())})),i.endEveryFrameCallbacks.forEach((function(t){return t(e)}))},i=this,n=!0,r=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise((function(n,r){var o,a,s,l;o=n,a=r,s=(e=t[i](e)).done,l=e.value,Promise.resolve(l).then((function(t){o({value:t,done:s})}),a)}))}}}(Ai.nextFrame({fps:30})),h.label=2;case 2:return[4,r.next()];case 3:if(o=h.sent(),s=o.done)return[3,5];if("break"===e())return[3,5];h.label=4;case 4:return n=!0,[3,2];case 5:return[3,12];case 6:return a=h.sent(),l={error:a},[3,12];case 7:return h.trys.push([7,,10,11]),n||s||!(A=r.return)?[3,9]:[4,A.call(r)];case 8:h.sent(),h.label=9;case 9:return[3,11];case 10:if(l)throw l.error;return[7];case 11:return[7];case 12:return[2]}}))}))},t.prototype.startImmediate=function(t){this.frontEveryFrameCallbacks.forEach((function(e){return e(t)})),this.splitFrameCallbacks.forEach((function(e){(e.isSplitFrameRunning||e.condition())&&(e.runAll(t),e.mayReset())})),this.endEveryFrameCallbacks.forEach((function(e){return e(t)}))},t.prototype.stop=function(){this.isRunningMap[this.startID]=!1},t.prototype.destroy=function(){this.stop(),this.frontEveryFrameCallbacks=[],this.endEveryFrameCallbacks=[],this.splitFrameCallbacks=[]},t.prototype.everyFrame=function(t,e){"front"===t?this.frontEveryFrameCallbacks.push(e):"end"===t&&this.endEveryFrameCallbacks.push(e)},t.prototype.certainFrames=function(t,e){this.splitFrameCallbacks.push({condition:t,callbacks:e,isSplitFrameRunning:!1,index:0,mayReset:function(){this.index>=this.callbacks.length&&(this.isSplitFrameRunning=!1,this.index=0)},runCallback:function(t){this.isSplitFrameRunning=!0,this.callbacks[this.index](t),this.index++},runAll:function(t){this.isSplitFrameRunning=!0;for(var e=0;e<this.callbacks.length;)this.callbacks[e](t),e++}})},t}(),hi=a(381),di=a(4399),ui=function(){return ui=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},ui.apply(this,arguments)},pi=function(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},gi=function(){function t(t){if(this.wordReseted=!1,this.config=this.mixinConfig(t,z),this.container=this.config.container,this.container.style.contain="paint",this.hooks=this.config.hooks||{},this.callHooks("beforeCreate",this.config),this.container){this.config.dom=this.config.dom||{},this.config.dom.insideWrap=this.config.dom.insideWrap||this.container;var e=this.container.querySelector(".".concat(H,"-dm-rotate"));e||((e=document.createElement("div")).className="".concat(H,"-dm-rotate"),this.container.appendChild(e)),this.config.dom.rotateDom=e,t.creator&&this.config.insideWrap.classList.add("".concat(H,"-creator")),this.manager=new oi(this),this.eventBus=new hi.EventEmitter,this.timeController=new W(this.config),this.startFrameScheduler(),this.callHooks("created",this.config)}else di.warn("no danmaku wrap")}return t.prototype.getDanmakuLogsString=function(t){return void 0===t&&(t="\n"),this.manager.danmakuLogs.join(t)},Object.defineProperty(t.prototype,"visible",{get:function(){return this.config.setting.visible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderTime",{get:function(){return this.timeController.renderTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.timeController.currentTime},enumerable:!1,configurable:!0}),t.prototype.mixinConfig=function(t,e){for(var i in e){var n=e[i];t[i]||(t[i]={}),t[i]=ui(ui({},n),t[i])}return t},t.prototype.play=function(){var t;this.isRunning||(this.isRunning=!0,null===(t=this.frameScheduler)||void 0===t||t.start(),this.timeController.play(),this.emit(G.Danmaku_Play),this.container.classList.remove("".concat(H,"-paused")))},t.prototype.pause=function(t){var e;(this.isRunning||t)&&(this.isRunning=!1,
null===(e=this.frameScheduler)||void 0===e||e.stop(),this.timeController.pause(),this.emit(G.Danmaku_Pause),this.container.classList.add("".concat(H,"-paused")))},t.prototype.seek=function(t,e){var i;(!e||Math.abs(this.renderTime-t)>.8)&&this.clear(),this.timeController.seek(t),null===(i=this.frameScheduler)||void 0===i||i.startImmediate(t)},t.prototype.getDanmakuStatReport=function(){return this.manager.getDanmakuStatReport()},t.prototype.resize=function(t,e,i){this.manager.resize(t),e&&(this.seek(this.renderTime,!e),i&&this.pause(!0))},t.prototype.addCmdList=function(t,e){Et.cssVar&&this.manager.addCmdList(t,e)},t.prototype.addList=function(t){this.manager.addList(t)},t.prototype.add=function(t,e){this.manager.add(t,e)},t.prototype.updateCmd=function(t){if(Et.cssVar){try{var e=JSON.parse(t);this.manager.updateCmd(e)}catch(t){}this.seek(this.currentTime,!1)}},t.prototype.updateState=function(){this.manager.updateState()},t.prototype.searchAreaDanmaku=function(t,e){return this.manager&&Et.cssVar?rt(t,e,this.manager.visualArray):[]},t.prototype.setReportDmid=function(t){this.manager.setReportDmid(t)},t.prototype.shot=function(t,e,i){return e||(e=this.container.offsetWidth,i=this.container.offsetHeight),kt(t,this.manager.visualArray,this.config,e,i)},t.prototype.sandShot=function(t,e,i,n){return e||(e=this.container.offsetWidth,i=this.container.offsetHeight),_t(t,this.manager.visualArray,this.config,e,i,n)},t.prototype.setRollContainerVisibility=function(t){this.container.classList[t?"remove":"add"]("unvisible")},t.prototype.clear=function(){this.manager.clear()},t.prototype.fresh=function(t){this.manager.fresh(t)},t.prototype.reset=function(t){this.manager.reset(t)},t.prototype.setSetting=function(t,e,i){var n,r;if(t&&void 0!==e){switch(this.callHooks("beforeUpdate",{container:this.config.container,id:this.config.id,setting:ui({},this.config.setting),dom:ui({},this.config.dom),scene:ui({},this.config.scene),modes:this.config.modes,hooks:this.config.hooks}),t){case"fontFamily":case"bold":this.wordReseted=!1,this.resetWord();break;case"visible":e?this.frameScheduler.start():(null===(n=this.manager)||void 0===n||n.clear(),this.frameScheduler.stop());break;case"offsetTop":case"offsetBottom":case"videoOffsetHeight":case"videoOffsetTop":e&&(null===(r=this.manager)||void 0===r||r.clearCDmlist());break;case"area":e&&this.manager.resizeSegmentsArea(e);break;case"opacity":i&&pi(pi([],this.manager.visualArray,!0),this.manager.cDmlist,!0).forEach((function(t){F[t.textData.rawMode]&&t.element.style.setProperty("--opacity",Math.max(e,.1)+"")}))}this.config.setting[t]=e,this.callHooks("updated",this.config)}},t.prototype.setScene=function(t,e){t&&void 0!==e&&(this.callHooks("beforeUpdate",{container:this.config.container,id:this.config.id,setting:ui({},this.config.setting),dom:ui({},this.config.dom),scene:ui({},this.config.scene),modes:this.config.modes,hooks:this.config.hooks}),this.config.scene[t]=e,this.callHooks("updated",this.config))},t.prototype.setModes=function(t){this.manager.setModes(t)},t.prototype.remove=function(t){var e;null===(e=this.manager)||void 0===e||e.remove(t)},t.prototype.on=function(t,e){return this.eventBus.on(t,e),this},t.prototype.once=function(t,e){return this.eventBus.once(t,e),this},t.prototype.off=function(t,e){return this.eventBus.off(t,e),this},t.prototype.emit=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return(e=this.eventBus).emit.apply(e,pi([t],i,!1)),this},t.prototype.removeAllListeners=function(){return this.eventBus.removeAllListeners(),this},t.prototype.callHooks=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.hooks[t]&&"function"==typeof this.hooks[t]&&(e=this.hooks[t]).call.apply(e,pi([this],i,!1))},t.prototype.getMetadata=function(){return{version:"1.1.21",lastCompiled:"2026-04-09T15:46:43+08:00"}},t.prototype.startFrameScheduler=function(){var t,e,i=this;null===(t=this.frameScheduler)||void 0===t||t.destroy(),this.frameScheduler=new ci,this.frameScheduler.everyFrame("front",(function(){i.timeController.updateTime()})),this.frameScheduler.certainFrames((function(){return i.config.setting.visible&&i.timeController.shouldFetchAndInitDm()}),[function(){i.resetWord(),i.manager.fetchAndInitDm(i.renderTime,i.currentTime,i.timeController.seekTarget),i.timeController.seekTarget=null,i.timeController.lastFetchDmTime=i.renderTime},function(){i.manager.beforeCollisionCheck()},function(){i.manager.collisionCheck()}]),this.frameScheduler.everyFrame("end",(function(){var t;i.manager.render(i.renderTime,i.currentTime,i.timeController.seekTarget),i.emit(G.Danmaku_Render,i.renderTime),i.isRunning||null===(t=i.frameScheduler)||void 0===t||t.stop()})),null===(e=this.frameScheduler)||void 0===e||e.stop()},t.prototype.resetWord=function(){var t=this;this.wordReseted||(this.wordReseted=!0,this.wordTimer&&clearTimeout(this.wordTimer),this.wordTimer=window.setTimeout((function(){qt().reset(t.container,"font-family:".concat(t.config.fontFamily,";font-weight:").concat(t.config.bold?"bold":"normal",";"))}),10))},t.prototype.dispose=function(){this.callHooks("beforeDestroy",this.config),this.pause(),this.manager.destroy(),this.frameScheduler.destroy(),this.removeAllListeners(),this.callHooks("destroyed")},t.EventType=G,t.Mode=Y,t.Utils={unzip:bt},t}(),fi=gi,mi=a(4948),yi={attributes:{"data-injector":"danmaku-x"}};yi.setAttributes=A(),yi.insert=o().bind(null,"head"),yi.domAPI=n(),yi.insertStyleElement=h(),e()(mi.A,yi),mi.A&&mi.A.locals&&mi.A.locals;var bi=function(){return bi=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},bi.apply(this,arguments)},vi=function(){function t(t){this.config=bi({width:16,height:16,color:"#ffffffb3",click:null,value:0},t),this.wrap=t.wrap,this.init(),this.config.value&&this.value(this.config.value)}return t.prototype.value=function(t){this.setPercent(this.leftDom,Math.min(50,t),"--leftDeg"),this.setPercent(this.rightDom,t-50,"--rightDeg")},t.prototype.dispose=function(){try{this.wrap.removeChild(this.area)}catch(t){}this.removeEventListener()},t.prototype.setPercent=function(t,e,i){t.style.cssText="".concat(i,":").concat(e<0?-45:-45-3.6*e,"deg")},t.prototype.init=function(){this.wrap.insertAdjacentHTML("beforeend",this.tpl()),this.area=this.wrap.querySelector(".".concat(H,"-circle")),this.leftDom=this.wrap.querySelector(".".concat(H,"-circle-left-bar")),this.rightDom=this.wrap.querySelector(".".concat(H,"-circle-right-bar")),this.click=this.click.bind(this),"function"==typeof this.config.click&&this.area.addEventListener("click",this.click)},t.prototype.removeEventListener=function(){this.area.removeEventListener("click",this.click)},t.prototype.click=function(t){t.stopPropagation(),this.config.click()},t.prototype.tpl=function(){var t=this.config,e=t.width,i=t.height,n=t.color,r=t.icon||"",o="--width:".concat(e,"px;--height:").concat(i,"px;--color:").concat(n);return'<div class="'.concat(H,'-circle" style="').concat(o,'">\n            <div class="').concat(H,'-circle-left"><div class="').concat(H,'-circle-left-bar"></div></div>\n            <div class="').concat(H,'-circle-right"><div class="').concat(H,'-circle-right-bar"></div></div>\n            ').concat(r,"\n    </div>")},t}(),Ei=a(8273),Ii={attributes:{"data-injector":"danmaku-x"}};Ii.setAttributes=A(),Ii.insert=o().bind(null,"head"),Ii.domAPI=n(),Ii.insertStyleElement=h(),e()(Ei.A,Ii),Ei.A&&Ei.A.locals&&Ei.A.locals;var Ci,Bi=function(){return Bi=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Bi.apply(this,arguments)},wi=function(){function t(t){this.config=Bi({click:null},t),this.wrap=t.wrap,this.init()}return t.prototype.value=function(t){this.closeBtn.value(t)},t.prototype.dispose=function(){this.removeEventListener()},t.prototype.init=function(){var t=this.config,e=t.click,i=t.icon;this.wrap.innerHTML=this.tpl(),this.closeBtn=new vi({width:26,height:26,wrap:this.wrap,
icon:i&&'<img class="'.concat(H,'-shrink-img" src="').concat(i,'" onerror="this.style.display=\'none\'"/>')}),this.click=this.click.bind(this),"function"==typeof e&&this.wrap.addEventListener("click",this.click)},t.prototype.removeEventListener=function(){this.wrap.removeEventListener("click",this.click)},t.prototype.click=function(t){t.stopPropagation(),this.config.click()},t.prototype.tpl=function(){var t=this.config.title;return'<div class="'.concat(H,'-shrink-title">').concat(at(t||""),"</div>")},t}(),xi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Qi=((Ci={})[w.Combo]="Combo",Ci[w.Link]="Link",Ci[w.Score]="Score",Ci[w.ScoreSum]="ScoreSum",Ci[w.ClockIn]="ClockIn",Ci[w.Follow]="Follow",Ci[w.Vote]="Vote",Ci[w.Reserve]="Reserve",Ci[w.Rewardfans]="Rewardfans",Ci[w.GoodsLike]="GoodsLike",Ci[w.SuperRating]="SuperRating",Ci[w.Cmtime]="Cmtime",Ci[w.QoeFeedback]="QoeFeedback",Ci),Si=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.noShrink=!1,e.btnSize={padding:64,left:0,top:0,startX:0,startY:0,endX:0,endY:0},e}return xi(e,t),Object.defineProperty(e.prototype,"btnBounding",{get:function(){return{leftBounding:3,rightBounding:97,topBounding:5,bottomBounding:85}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lineElement",{get:function(){return this.manager.lineElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shrinkState",{get:function(){var t,e;return void 0!==(null===(t=this.modeInfo)||void 0===t?void 0:t.shrinkState)?null===(e=this.modeInfo)||void 0===e?void 0:e.shrinkState:this.manager.shrinkState},set:function(t){var e;void 0!==(null===(e=this.modeInfo)||void 0===e?void 0:e.shrinkState)?this.modeInfo.shrinkState=t:this.manager.shrinkState=t},enumerable:!1,configurable:!0}),e.prototype.init=function(e,i){if(t.prototype.init.call(this,e,i),!(this.duration<0)){if(U[this.textData.mode]){var n=this.modeInfo,r=n.shrinkTitle,o=n.shrinkIcon;if(this.shrinkState===D.ON&&!this.config.setting.forbidShrinkState)return void this.renderShrink(r,o);this.renderCloseBtn()}this.resize(),this.config.setting.canBindMove&&this.bindMove(),this.config.setting.forbidEvents||this.bindEvents()}},e.prototype.beforeCollisionCheck=function(){if(!(this.duration<0)){t.prototype.beforeCollisionCheck.call(this);var e=this.textData,i=e.duration,n=e.stime;this.showTime=n,this.endTime=n+i,this.duration=i}},e.prototype.getPositionInfo=function(t){var e=t.posX,i=t.posY,n=this.btnBounding,r=n.leftBounding,o=n.rightBounding,a=n.topBounding,s=n.bottomBounding,l=this.width,A=this.height,c=this.manager.containerSize,h=c.height,d=c.width,u=this.getScale().scaleS,p=l/d*u*100,g=A/h*u*100,f=0,m=!1,y=!1;void 0!==e&&(r+p<o-1?((f=e||50)<=Math.ceil(r+p/2)&&(f=r+p/2,m=!0),f>=Math.floor(o-p/2)&&(f=o-p/2,y=!0)):(f=50,m=!0,y=!0));var b=0,v=!1,E=!1;return void 0!==i&&(a+g<s-1?((b=i||50)<=Math.ceil(a+g/2)&&(b=a+g/2,v=!0),b>=Math.floor(s-g/2)&&(b=s-g/2,E=!0)):(b=50,v=!0,E=!0)),{left:f,top:b,leftOut:m,rightOut:y,topOut:v,bottomOut:E,relateHeight:g,relateWidth:p}},e.prototype.getScale=function(){var t=this.container.getBoundingClientRect(),e=t.width,i=t.height,n=1,r=e*e+i*i;if(e>=i)switch(!0){case r<Math.pow(800,2):case r<Math.pow(1600,2):n=1;break;case r<Math.pow(2e3,2):n=1.25;break;default:n=1.5}else switch(!0){case r<Math.pow(500,2):case r<Math.pow(800,2):case r<Math.pow(1200,2):n=1;break;default:n=1.25}return{scaleS:n,scaleP:e/V}},e.prototype.bindMove=function(t,e){var i=this;void 0===t&&(t=!0),void 0===e&&(e=!0);var n=function(n){t&&(i.btnSize.endY=n.clientY),e&&(i.btnSize.endX=n.clientX),i.move(t,e)},r=function(n){i.mouseUp(t,e),document.onmousemove=null,document.onmouseup=null};this.element.onmousedown=function(o){t&&(i.btnSize.startY=o.clientY,i.btnSize.endY=o.clientY,i.btnSize.top=i.modeInfo.posY),e&&(i.btnSize.startX=o.clientX,i.btnSize.endX=o.clientX,i.btnSize.left=i.modeInfo.posX),document.onmousemove=n,document.onmouseup=r}},e.prototype.mouseUp=function(t,e){t&&(this.modeInfo.posY=Number(this.btnSize.top.toFixed(1))),e&&(this.modeInfo.posX=Number(this.btnSize.left.toFixed(1))),this.manager.emit(G.Interact_Danmaku_Position_Changed,{params:{data:this.textData},action:"update"})},e.prototype.move=function(t,e){var i=this.btnSize,n=i.endY-i.startY,r=i.endX-i.startX;if(n||r){var o=this.scaleInfo.scaleS,a=this.modeInfo,s=a.posY,l=a.posX,A=this.manager.containerSize,c=A.height,h=A.width,d="--scale:".concat(o,";"),u=this.lineElement,p=u.horizontal,g=u.vertical;if(t){var f=this.getPositionInfo({posY:s+n/c*100}),m=f.top,y=f.topOut,b=f.bottomOut;this.btnSize.top=m,d+="--top:".concat(m,"%;"),y?p.style.setProperty("--top-show","1"):p.style.setProperty("--top-show","0"),b?p.style.setProperty("--bottom-show","1"):p.style.setProperty("--bottom-show","0")}if(e){var v=this.getPositionInfo({posX:l+r/h*100}),E=v.left,I=v.leftOut,C=v.rightOut;this.btnSize.left=E,d+="--left:".concat(E,"%;"),I?g.style.setProperty("--left-show","1"):g.style.setProperty("--left-show","0"),C?g.style.setProperty("--right-show","1"):g.style.setProperty("--right-show","0")}this.element.style.cssText=d}},e.prototype.renderCloseBtn=function(){var t=this;this.closeBtn=new vi({wrap:this.element,icon:Xt(),click:function(){if(!t.config.setting.forbidEvents){var e=t.modeInfo,i=e.shrinkTitle,n=e.shrinkIcon;t.free(),t.setShrinkState(D.ON),t.renderShrink(i,n),t.animate()}}})},e.prototype.renderShrink=function(t,e){var i=this;this.element.className="".concat(H,"-cmd-shrink"),this.element.style.cssText="",this.element.innerHTML="",this.shrinkBtn=new wi({wrap:this.element,title:t,icon:e,click:function(){i.free(),i.setShrinkState(D.OFF),i.init(i.options,i.id),i.firstShow(),i.animate()}})},e.prototype.firstShow=function(){var e;if(t.prototype.firstShow.call(this),Object.values(w).includes(this.textData.mode)){this.manager.interactiveDmCount++;var i="弹幕 ".concat(this.textData.dmid," 首次显示 - 种类: ").concat((e=this.textData.mode,Qi[e]||"Unknown(".concat(e,")")),", 时间: ").concat(this.manager.currentTime);this.manager.emit(G.Danmaku_Log,{params:{dmid:this.textData.dmid,mode:this.textData.mode,message:i}}),this.manager.danmakuLogs.push(i)}},e.prototype.setShrinkState=function(t){this.shrinkState=t,t!==D.HIDE&&this.manager.emit(G.Interact_Danmaku_ShrinkState_Changed,{params:{state:t,dmid:this.textData.dmid,mode:this.textData.mode},action:"shrink"})},e.prototype.showDragLine=function(){if(!this.lineElement.horizontal||!this.lineElement.vertical){var t=document.createElement("div"),e=document.createElement("div");this.lineElement.horizontal=t,this.lineElement.vertical=e,t.className="".concat(H,"-line ").concat(H,"-line-horizontal"),e.className="".concat(H,"-line ").concat(H,"-line-vertical"),this.container.appendChild(e),this.container.appendChild(t)}var i=this.lineElement,n=i.horizontal,r=i.vertical,o=this.manager.containerSize,a=o.width,s=o.height,l="--width:".concat(a,"px; "),A="--height:".concat(s,"px; "),c=this.modeInfo,h=c.posX,d=c.posY,u=this.btnBounding,p=u.leftBounding,g=u.rightBounding,f=u.topBounding,m=u.bottomBounding,y=this.getPositionInfo({posX:h,posY:d}),b=y.left,v=y.leftOut,E=y.rightOut,I=y.top,C=y.topOut,B=y.bottomOut,w=y.relateHeight,x=y.relateWidth;return A+=v?"--left:".concat(b-x/2,"%;--left-show:1;"):"--left:".concat(p,"%;--left-show:0;"),A+=E?"--right:".concat(b+x/2,"%;--right-show:1;"):"--right:".concat(g,"%;--right-show:0;"),l+=C?"--top:".concat(I-w/2,"%;--top-show:1;"):"--top:".concat(f,"%;--top-show:0;"),l+=B?"--bottom:".concat(I+w/2,"%;--bottom-show:1;"):"--bottom:".concat(m,"%;--bottom-show:0;"),n.setAttribute("style",l),r.setAttribute("style",A),{left:b,top:I}},e.prototype.animate=function(){var t,e;if(this.closeBtn||this.shrinkBtn){var i=this.textData.duration,n=Math.floor((this.manager.currentTime-this.showTime)/i*100)
;null===(t=this.closeBtn)||void 0===t||t.value(n),null===(e=this.shrinkBtn)||void 0===e||e.value(n)}},e.prototype.resize=function(){t.prototype.resize.call(this),this.scaleInfo=this.getScale();var e=this.scaleInfo.scaleS,i=this.getSize(),n=i.width,r=i.height;this.width=n,this.height=r;var o={left:50,top:50};if(this.config.setting.canBindMove)o=this.showDragLine();else{var a=this.modeInfo,s=a.posX,l=a.posY;o=this.getPositionInfo({posX:s,posY:l})}this.element.style.cssText+="--left:".concat(o.left,"%;--top:").concat(o.top,"%;--scale:").concat(e||1,";")},e.prototype.free=function(){var t,e;null===(t=this.shrinkBtn)||void 0===t||t.dispose(),null===(e=this.closeBtn)||void 0===e||e.dispose(),this.shrinkBtn=null,this.closeBtn=null,this.element.innerHTML="",this.element.style.cssText="",this.element.className="",this.showed=!1},e.prototype.destroy=function(){var e,i;t.prototype.destroy.call(this),null===(e=this.shrinkBtn)||void 0===e||e.dispose(),null===(i=this.closeBtn)||void 0===i||i.dispose(),this.element.onmousedown=null,document.onmousemove=null,document.onmouseup=null,this.shrinkBtn=null,this.closeBtn=null},e}(Jt),ki=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ki(e,t),e.prototype.add=function(t){return{x:0,y:0,index:0}},e.prototype.remove=function(t){},e.prototype.insert=function(t){},e}(se),_i=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ri=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.sortFn=function(t,e){return t.x>e.x?1:t.x<e.x?-1:t.x===e.x?t.endTime<e.endTime?-1:t.endTime>e.endTime?1:0:void 0},e}return _i(e,t),e.prototype.initPos=function(t){var e=t.textData,i=t.width,n=e.border,r=t.horizontalDistance,o=n?tt(.3,.6):tt(0,1),a=r*o;return{initX:a=Math.min(a,r-i),baseDirection:o>.5?-1:1}},e.prototype.add=function(t){var e=this.initPos(t),i=e.initX,n=e.baseDirection;if(t.textData.border)return{x:i,y:t.verticalDistance,index:0};for(var r=t.width,o=t.horizontalDistance,a=[-1,1],s=this.list[0],l=0;l<2;l++)for(var A=a[l]*n*t.width,c=i;c>=0&&c<=o-r;){var h=!0,d=void 0;if(!s)return{x:c,y:t.verticalDistance,index:0};for(var u=0,p=s;u<p.length;u++){var g=p[u];if(c+t.width>g.x&&c<g.x+g.width&&g.middle>t.showTime){h=!1,d=g;break}}if(h)return{x:c,y:t.verticalDistance,index:0};c=d.x+A,A>0&&(c+=d.width)}return{x:0,y:0,index:-1}},e}(se),Mi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mi(e,t),e.prototype.generateBoxMullerRandom=function(){return tt(0,1)},e.prototype.add=function(t){var e=t.textData,i=t.verticalDistance,n=t.height,r=i*(e.border?tt(.3,.6):this.generateBoxMullerRandom());return r=Math.min(r,i-n),{x:t.verticalDistance+1,y:r,index:0}},e.prototype.remove=function(t){var e=this.list[0];e&&e.bremove(t)},e}(se),Fi=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fi(e,t),e.prototype.getSize=function(){var t=this.element.getBoundingClientRect();return{width:t.width,height:t.height}},e.prototype.getSpaceManager=function(){return Ri},e}(Jt),Ni=fi;window.__danmaku_x_metadata__={version:"1.1.21",lastCompiled:"2026-04-09T15:46:43+08:00"}}();var l=s.PV,A=s.MY,c=s.re,h=s.LE,d=s._T,u=s.jD,p=s.Oo,g=s.Bx,f=s.S,m=s.FE,y=s.DQ,b=s.dw,v=s.Iw,E=s.r9,I=s.Wg,C=s.aJ,B=s.Ay,w=s.ZV,x=s.Xo,Q=s.vX,S=s.T$,k=s.H2,D=s._N,_=s.yT},67977:function(t){"use strict";t.exports=function(t,e){var i=new Array(arguments.length-1),n=0,r=2,o=!0;for(;r<arguments.length;)i[n++]=arguments[r++];return new Promise((function(r,a){i[n]=function(t){if(o)if(o=!1,t)a(t);else{for(var e=new Array(arguments.length-1),i=0;i<e.length;)e[i++]=arguments[i];r.apply(null,e)}};try{t.apply(e||null,i)}catch(t){o&&(o=!1,a(t))}}))}},44583:function(t,e){"use strict";var i=e;i.length=function(t){var e=t.length;if(!e)return 0;for(var i=0;--e%4>1&&"="===t.charAt(e);)++i;return Math.ceil(3*t.length)/4-i};for(var n=new Array(64),r=new Array(123),o=0;o<64;)r[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function(t,e,i){for(var r,o=null,a=[],s=0,l=0;e<i;){var A=t[e++];switch(l){case 0:a[s++]=n[A>>2],r=(3&A)<<4,l=1;break;case 1:a[s++]=n[r|A>>4],r=(15&A)<<2,l=2;break;case 2:a[s++]=n[r|A>>6],a[s++]=n[63&A],l=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=n[r],a[s++]=61,1===l&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";i.decode=function(t,e,i){for(var n,o=i,s=0,l=0;l<t.length;){var A=t.charCodeAt(l++);if(61===A&&s>1)break;if(void 0===(A=r[A]))throw Error(a);switch(s){case 0:n=A,s=1;break;case 1:e[i++]=n<<2|(48&A)>>4,n=A,s=2;break;case 2:e[i++]=(15&n)<<4|(60&A)>>2,n=A,s=3;break;case 3:e[i++]=(3&n)<<6|A,s=0}}if(1===s)throw Error(a);return i-o},i.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},83234:function(t){"use strict";function e(t,i){"string"==typeof t&&(i=t,t=void 0);var n=[];function r(t){if("string"!=typeof t){var i=o();if(e.verbose&&console.log("codegen: "+i),i="return "+i,t){for(var a=Object.keys(t),s=new Array(a.length+1),l=new Array(a.length),A=0;A<a.length;)s[A]=a[A],l[A]=t[a[A++]];return s[A]=i,Function.apply(null,s).apply(null,l)}return Function(i)()}for(var c=new Array(arguments.length-1),h=0;h<c.length;)c[h]=arguments[++h];if(h=0,t=t.replace(/%([%dfijs])/g,(function(t,e){var i=c[h++];switch(e){case"d":case"f":return String(Number(i));case"i":return String(Math.floor(i));case"j":return JSON.stringify(i);case"s":return String(i)}return"%"})),h!==c.length)throw Error("parameter count mismatch");return n.push(t),r}function o(e){return"function "+(e||i||"")+"("+(t&&t.join(",")||"")+"){\n  "+n.join("\n  ")+"\n}"}return r.toString=o,r}t.exports=e,e.verbose=!1},188:function(t){"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,i){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:i||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var i=this._listeners[t],n=0;n<i.length;)i[n].fn===e?i.splice(n,1):++n;return this},e.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var i=[],n=1;n<arguments.length;)i.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,i)}return this}},29427:function(t,e,i){"use strict"
;t.exports=o;var n=i(67977),r=i(82281)("fs");function o(t,e,i){return"function"==typeof e?(i=e,e={}):e||(e={}),i?!e.xhr&&r&&r.readFile?r.readFile(t,(function(n,r){return n&&"undefined"!=typeof XMLHttpRequest?o.xhr(t,e,i):n?i(n):i(null,e.binary?r:r.toString("utf8"))})):o.xhr(t,e,i):n(o,this,t,e)}o.xhr=function(t,e,i){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState){if(0!==n.status&&200!==n.status)return i(Error("status "+n.status));if(e.binary){var t=n.response;if(!t){t=[];for(var r=0;r<n.responseText.length;++r)t.push(255&n.responseText.charCodeAt(r))}return i(null,"undefined"!=typeof Uint8Array?new Uint8Array(t):t)}return i(null,n.responseText)}},e.binary&&("overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.responseType="arraybuffer"),n.open("GET",t),n.send()}},54585:function(t){"use strict";function e(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),i=new Uint8Array(e.buffer),n=128===i[3];function r(t,n,r){e[0]=t,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3]}function o(t,n,r){e[0]=t,n[r]=i[3],n[r+1]=i[2],n[r+2]=i[1],n[r+3]=i[0]}function a(t,n){return i[0]=t[n],i[1]=t[n+1],i[2]=t[n+2],i[3]=t[n+3],e[0]}function s(t,n){return i[3]=t[n],i[2]=t[n+1],i[1]=t[n+2],i[0]=t[n+3],e[0]}t.writeFloatLE=n?r:o,t.writeFloatBE=n?o:r,t.readFloatLE=n?a:s,t.readFloatBE=n?s:a}():function(){function e(t,e,i,n){var r=e<0?1:0;if(r&&(e=-e),0===e)t(1/e>0?0:2147483648,i,n);else if(isNaN(e))t(2143289344,i,n);else if(e>34028234663852886e22)t((r<<31|2139095040)>>>0,i,n);else if(e<11754943508222875e-54)t((r<<31|Math.round(e/1401298464324817e-60))>>>0,i,n);else{var o=Math.floor(Math.log(e)/Math.LN2);t((r<<31|o+127<<23|8388607&Math.round(e*Math.pow(2,-o)*8388608))>>>0,i,n)}}function a(t,e,i){var n=t(e,i),r=2*(n>>31)+1,o=n>>>23&255,a=8388607&n;return 255===o?a?NaN:r*(1/0):0===o?1401298464324817e-60*r*a:r*Math.pow(2,o-150)*(a+8388608)}t.writeFloatLE=e.bind(null,i),t.writeFloatBE=e.bind(null,n),t.readFloatLE=a.bind(null,r),t.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),i=new Uint8Array(e.buffer),n=128===i[7];function r(t,n,r){e[0]=t,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3],n[r+4]=i[4],n[r+5]=i[5],n[r+6]=i[6],n[r+7]=i[7]}function o(t,n,r){e[0]=t,n[r]=i[7],n[r+1]=i[6],n[r+2]=i[5],n[r+3]=i[4],n[r+4]=i[3],n[r+5]=i[2],n[r+6]=i[1],n[r+7]=i[0]}function a(t,n){return i[0]=t[n],i[1]=t[n+1],i[2]=t[n+2],i[3]=t[n+3],i[4]=t[n+4],i[5]=t[n+5],i[6]=t[n+6],i[7]=t[n+7],e[0]}function s(t,n){return i[7]=t[n],i[6]=t[n+1],i[5]=t[n+2],i[4]=t[n+3],i[3]=t[n+4],i[2]=t[n+5],i[1]=t[n+6],i[0]=t[n+7],e[0]}t.writeDoubleLE=n?r:o,t.writeDoubleBE=n?o:r,t.readDoubleLE=n?a:s,t.readDoubleBE=n?s:a}():function(){function e(t,e,i,n,r,o){var a=n<0?1:0;if(a&&(n=-n),0===n)t(0,r,o+e),t(1/n>0?0:2147483648,r,o+i);else if(isNaN(n))t(0,r,o+e),t(2146959360,r,o+i);else if(n>17976931348623157e292)t(0,r,o+e),t((a<<31|2146435072)>>>0,r,o+i);else{var s;if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,r,o+e),t((a<<31|s/4294967296)>>>0,r,o+i);else{var l=Math.floor(Math.log(n)/Math.LN2);1024===l&&(l=1023),t(4503599627370496*(s=n*Math.pow(2,-l))>>>0,r,o+e),t((a<<31|l+1023<<20|1048576*s&1048575)>>>0,r,o+i)}}}function a(t,e,i,n,r){var o=t(n,r+e),a=t(n,r+i),s=2*(a>>31)+1,l=a>>>20&2047,A=4294967296*(1048575&a)+o;return 2047===l?A?NaN:s*(1/0):0===l?5e-324*s*A:s*Math.pow(2,l-1075)*(A+4503599627370496)}t.writeDoubleLE=e.bind(null,i,0,4),t.writeDoubleBE=e.bind(null,n,4,0),t.readDoubleLE=a.bind(null,r,0,4),t.readDoubleBE=a.bind(null,o,4,0)}(),t}function i(t,e,i){e[i]=255&t,e[i+1]=t>>>8&255,e[i+2]=t>>>16&255,e[i+3]=t>>>24}function n(t,e,i){e[i]=t>>>24,e[i+1]=t>>>16&255,e[i+2]=t>>>8&255,e[i+3]=255&t}function r(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function o(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},82281:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},57170:function(t,e){"use strict";var i=e,n=i.isAbsolute=function(t){return/^(?:\/|\w+:)/.test(t)},r=i.normalize=function(t){var e=(t=t.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),i=n(t),r="";i&&(r=e.shift()+"/");for(var o=0;o<e.length;)".."===e[o]?o>0&&".."!==e[o-1]?e.splice(--o,2):i?e.splice(o,1):++o:"."===e[o]?e.splice(o,1):++o;return r+e.join("/")};i.resolve=function(t,e,i){return i||(e=r(e)),n(e)?e:(i||(t=r(t)),(t=t.replace(/(?:\/|^)[^/]+$/,"")).length?r(t+"/"+e):e)}},74065:function(t){"use strict";t.exports=function(t,e,i){var n=i||8192,r=n>>>1,o=null,a=n;return function(i){if(i<1||i>r)return t(i);a+i>n&&(o=t(n),a=0);var s=e.call(o,a,a+=i);return 7&a&&(a=1+(7|a)),s}}},74465:function(t,e){"use strict";var i=e;i.length=function(t){for(var e=0,i=0,n=0;n<t.length;++n)(i=t.charCodeAt(n))<128?e+=1:i<2048?e+=2:55296==(64512&i)&&56320==(64512&t.charCodeAt(n+1))?(++n,e+=4):e+=3;return e},i.read=function(t,e,i){if(i-e<1)return"";for(var n,r=null,o=[],a=0;e<i;)(n=t[e++])<128?o[a++]=n:n>191&&n<224?o[a++]=(31&n)<<6|63&t[e++]:n>239&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[a++]=55296+(n>>10),o[a++]=56320+(1023&n)):o[a++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),a=0);return r?(a&&r.push(String.fromCharCode.apply(String,o.slice(0,a))),r.join("")):String.fromCharCode.apply(String,o.slice(0,a))},i.write=function(t,e,i){for(var n,r,o=i,a=0;a<t.length;++a)(n=t.charCodeAt(a))<128?e[i++]=n:n<2048?(e[i++]=n>>6|192,e[i++]=63&n|128):55296==(64512&n)&&56320==(64512&(r=t.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&r),++a,e[i++]=n>>18|240,e[i++]=n>>12&63|128,e[i++]=n>>6&63|128,e[i++]=63&n|128):(e[i++]=n>>12|224,e[i++]=n>>6&63|128,e[i++]=63&n|128);return i-o}},73858:function(t,e,i){"use strict";var n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:{},r=Object.create(n),o=/["&'<>]/;function a(t){return"string"!=typeof t&&(t=null==t?"":"function"==typeof t?a(t.call(t)):JSON.stringify(t)),t}r.$escape=function(t){return function(t){var e=""+t,i=o.exec(e);if(!i)return t;var n="",r=void 0,a=void 0,s=void 0;for(r=i.index,a=0;r<e.length;r++){switch(e.charCodeAt(r)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}a!==r&&(n+=e.substring(a,r)),a=r+1,n+=s}return a!==r?n+e.substring(a,r):n}(a(t))},r.$each=function(t,e){if(Array.isArray(t))for(var i=0,n=t.length;i<n;i++)e(t[i],i);else for(var r in t)e(t[r],r)},t.exports=r},53499:function(t,e,i){"use strict";t.exports=i(73858)},96034:function(t){t.exports=function(t){try{var e;try{(e=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(t),e=e.getBlob("application/javascript; charset=utf-8")}catch(i){e=new Blob([t],{type:"application/javascript; charset=utf-8"})}return URL.createObjectURL(e)}catch(e){return"data:application/javascript,"+encodeURIComponent(t)}}},91680:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),i=e[0],n=e[1];return 3*(i+n)/4-n},e.toByteArray=function(t){var e,i,o=s(t),a=o[0],l=o[1],A=new r(function(t,e,i){return 3*(e+i)/4-i}(0,a,l)),c=0,h=l>0?a-4:a;for(i=0;i<h;i+=4)e=n[t.charCodeAt(i)]<<18|n[t.charCodeAt(i+1)]<<12|n[t.charCodeAt(i+2)]<<6|n[t.charCodeAt(i+3)],A[c++]=e>>16&255,A[c++]=e>>8&255,A[c++]=255&e;2===l&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,A[c++]=255&e);1===l&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,A[c++]=e>>8&255,A[c++]=255&e);return A},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=16383,s=0,A=n-r;s<A;s+=a)o.push(l(t,s,s+a>A?A:s+a));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)i[a]=o[a],n[o.charCodeAt(a)]=a;function s(t){var e=t.length
;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,n){for(var r,o,a=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},89262:function(t,e){"use strict";var i,n;function r(t,e,n){if(!n||typeof n.value!==i.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:i.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:i.boolTrue,writable:i.boolTrue}),t}}}(n=i||(i={})).typeOfFunction="function",n.boolTrue=!0,e.ak=r,e.ZP=r},20094:function(t,e){e.defaults={},e.set=function(t,i,n){var r=n||{},o=e.defaults,a=r.expires||o.expires,s=r.domain||o.domain,l=void 0!==r.path?r.path:void 0!==o.path?o.path:"/",A=void 0!==r.secure?r.secure:o.secure,c=void 0!==r.httponly?r.httponly:o.httponly,h=void 0!==r.samesite?r.samesite:o.samesite,d=a?new Date("number"==typeof a?(new Date).getTime()+864e5*a:a):0;document.cookie=t.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+i.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(d&&d.getTime()>=0?";expires="+d.toUTCString():"")+(s?";domain="+s:"")+(l?";path="+l:"")+(A?";secure":"")+(c?";httponly":"")+(h?";samesite="+h:"")},e.get=function(t){for(var e=document.cookie.split(";");e.length;){var i=e.pop(),n=i.indexOf("=");if(n=n<0?i.length:n,decodeURIComponent(i.slice(0,n).replace(/^\s+/,""))===t)return decodeURIComponent(i.slice(n+1))}return null},e.erase=function(t,i){e.set(t,"",{expires:-1,domain:i&&i.domain,path:i&&i.path,secure:0,httponly:0})},e.all=function(){for(var t={},e=document.cookie.split(";");e.length;){var i=e.pop(),n=i.indexOf("=");n=n<0?i.length:n,t[decodeURIComponent(i.slice(0,n).replace(/^\s+/,""))]=decodeURIComponent(i.slice(n+1))}return t}},39055:function(t,e,i){"use strict";var n=i(48856),r=i(64210),o=i(47421),a=i(50773);t.exports=a||n.call(o,r)},58491:function(t,e,i){"use strict";var n=i(48856),r=i(64210),o=i(39055);t.exports=function(){return o(n,r,arguments)}},64210:function(t){"use strict";t.exports=Function.prototype.apply},47421:function(t){"use strict";t.exports=Function.prototype.call},52985:function(t,e,i){"use strict";var n=i(48856),r=i(57252),o=i(47421),a=i(39055);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new r("a function is required");return a(n,o,t)}},50773:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},84584:function(t,e,i){"use strict";var n=i(12451),r=i(55310),o=r(n("String.prototype.indexOf"));t.exports=function(t,e){var i=n(t,!!e);return"function"==typeof i&&o(t,".prototype.")>-1?r(i):i}},55310:function(t,e,i){"use strict";var n=i(35274),r=i(68050),o=i(52985),a=i(58491);t.exports=function(t){var e=o(arguments),i=t.length-(arguments.length-1);return n(e,1+(i>0?i:0),!0)},r?r(t.exports,"apply",{value:a}):t.exports.apply=a},50099:function(t){var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],i=0;i<t.length;i++)e.push(255&t.charCodeAt(i));return e},bytesToString:function(t){for(var e=[],i=0;i<t.length;i++)e.push(String.fromCharCode(t[i]));return e.join("")}}};t.exports=e},33258:function(t,e,i){i(31245);var n=i(51489);t.exports=n("Array","findIndex")},67531:function(t,e,i){i(36306);var n=i(51489);t.exports=n("Array","find")},81133:function(t,e,i){i(70730),i(77208);var n=i(61869);t.exports=n.Array.from},9420:function(t,e,i){i(46712);var n=i(51489);t.exports=n("Array","includes")},35289:function(t,e,i){i(50488),i(53035),i(70730),i(60159);var n=i(61869);t.exports=n.Map},63313:function(t,e,i){i(92646);var n=i(61869);t.exports=n.Object.assign},67414:function(t,e,i){i(41071),i(53035),i(70730),i(60159);var n=i(61869);t.exports=n.Set},98274:function(t,e,i){i(80429);var n=i(51489);t.exports=n("String","endsWith")},72097:function(t,e,i){i(75264);var n=i(51489);t.exports=n("String","includes")},23509:function(t,e,i){i(70009);var n=i(51489);t.exports=n("String","startsWith")},24828:function(t,e,i){i(53035),i(37376),i(60159);var n=i(61869);t.exports=n.WeakMap},17060:function(t,e,i){i(53035),i(37820),i(60159);var n=i(61869);t.exports=n.WeakSet},59812:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},73238:function(t,e,i){var n=i(77153);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},31853:function(t,e,i){var n=i(53632),r=i(88859),o=i(55904),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},48673:function(t){t.exports=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},67133:function(t,e,i){var n=i(77153);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},51353:function(t,e,i){"use strict";var n=i(38790).forEach,r=i(86786),o=i(40992),a=r("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},72118:function(t,e,i){"use strict";var n=i(77532),r=i(62946),o=i(22707),a=i(80823),s=i(50989),l=i(5818),A=i(79714);t.exports=function(t){var e,i,c,h,d,u,p=r(t),g="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,y=void 0!==m,b=A(p),v=0;if(y&&(m=n(m,f>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(i=new g(e=s(p.length));e>v;v++)u=y?m(p[v],v):p[v],l(i,v,u);else for(d=(h=b.call(p)).next,i=new g;!(c=d.call(h)).done;v++)u=y?o(h,m,[c.value,v],!0):c.value,l(i,v,u);return i.length=v,i}},62768:function(t,e,i){var n=i(10940),r=i(50989),o=i(66635),a=function(t){return function(e,i,a){var s,l=n(e),A=r(l.length),c=o(a,A);if(t&&i!=i){for(;A>c;)if((s=l[c++])!=s)return!0}else for(;A>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},38790:function(t,e,i){var n=i(77532),r=i(62662),o=i(62946),a=i(50989),s=i(96398),l=[].push,A=function(t){var e=1==t,i=2==t,A=3==t,c=4==t,h=6==t,d=7==t,u=5==t||h;return function(p,g,f,m){for(var y,b,v=o(p),E=r(v),I=n(g,f,3),C=a(E.length),B=0,w=m||s,x=e?w(p,C):i||d?w(p,0):void 0;C>B;B++)if((u||B in E)&&(b=I(y=E[B],B,v),t))if(e)x[B]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return B;case 2:l.call(x,y)}else switch(t){case 4:return!1;case 7:l.call(x,y)}return h?-1:A||c?c:x}};t.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterOut:A(7)}},86786:function(t,e,i){"use strict";var n=i(83733);t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){throw 1},1)}))}},40992:function(t,e,i){var n=i(88334),r=i(83733),o=i(38621),a=Object.defineProperty,s={},l=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var i=[][t],A=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:l,h=o(e,1)?e[1]:void 0;return s[t]=!!i&&!r((function(){if(A&&!n)return!0;var t={length:-1};A?a(t,1,{enumerable:!0,get:l}):t[1]=1,i.call(t,c,h)}))}},96398:function(t,e,i){var n=i(77153),r=i(80210),o=i(53632)("species");t.exports=function(t,e){var i;return r(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!r(i.prototype)?n(i)&&null===(i=i[o])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)}},22707:function(t,e,i){var n=i(67133),r=i(23084);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){throw r(t),e}}},23038:function(t,e,i){var n=i(53632)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},35447:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)
}},43479:function(t,e,i){var n=i(55480),r=i(35447),o=i(53632)("toStringTag"),a="Arguments"==r(function(){return arguments}());t.exports=n?r:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:a?r(e):"Object"==(n=r(e))&&"function"==typeof e.callee?"Arguments":n}},57047:function(t,e,i){"use strict";var n=i(55904).f,r=i(88859),o=i(58496),a=i(77532),s=i(48673),l=i(94458),A=i(56983),c=i(92656),h=i(88334),d=i(60374).fastKey,u=i(72539),p=u.set,g=u.getterFor;t.exports={getConstructor:function(t,e,i,A){var c=t((function(t,n){s(t,c,e),p(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=n&&l(n,t[A],{that:t,AS_ENTRIES:i})})),u=g(e),f=function(t,e,i){var n,r,o=u(t),a=m(t,e);return a?a.value=i:(o.last=a={index:r=d(e,!0),key:e,value:i,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),h?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},m=function(t,e){var i,n=u(t),r=d(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key==e)return i};return o(c.prototype,{clear:function(){for(var t=u(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=this,i=u(e),n=m(e,t);if(n){var r=n.next,o=n.previous;delete i.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),i.first==n&&(i.first=r),i.last==n&&(i.last=o),h?i.size--:e.size--}return!!n},forEach:function(t){for(var e,i=u(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),o(c.prototype,i?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return f(this,0===t?0:t,e)}}:{add:function(t){return f(this,t=0===t?0:t,t)}}),h&&n(c.prototype,"size",{get:function(){return u(this).size}}),c},setStrong:function(t,e,i){var n=e+" Iterator",r=g(e),o=g(n);A(t,e,(function(t,e){p(this,{type:n,target:t,state:r(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),c(e)}}},78951:function(t,e,i){"use strict";var n=i(58496),r=i(60374).getWeakData,o=i(67133),a=i(77153),s=i(48673),l=i(94458),A=i(38790),c=i(38621),h=i(72539),d=h.set,u=h.getterFor,p=A.find,g=A.findIndex,f=0,m=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var i=b(this,t);i?i[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,A){var h=t((function(t,n){s(t,h,e),d(t,{type:e,id:f++,frozen:void 0}),null!=n&&l(n,t[A],{that:t,AS_ENTRIES:i})})),p=u(e),g=function(t,e,i){var n=p(t),a=r(o(e),!0);return!0===a?m(n).set(e,i):a[n.id]=i,t};return n(h.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var i=r(t);return!0===i?m(e).delete(t):i&&c(i,e.id)&&delete i[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var i=r(t);return!0===i?m(e).has(t):i&&c(i,e.id)}}),n(h.prototype,i?{get:function(t){var e=p(this);if(a(t)){var i=r(t);return!0===i?m(e).get(t):i?i[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),h}}},42127:function(t,e,i){"use strict";var n=i(27559),r=i(35923),o=i(5292),a=i(96474),s=i(60374),l=i(94458),A=i(48673),c=i(77153),h=i(83733),d=i(23038),u=i(81359),p=i(18997);t.exports=function(t,e,i){var g=-1!==t.indexOf("Map"),f=-1!==t.indexOf("Weak"),m=g?"set":"add",y=r[t],b=y&&y.prototype,v=y,E={},I=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(f&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return f&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(f&&!c(t))&&e.call(this,0===t?0:t)}:function(t,i){return e.call(this,0===t?0:t,i),this})};if(o(t,"function"!=typeof y||!(f||b.forEach&&!h((function(){(new y).entries().next()})))))v=i.getConstructor(e,t,g,m),s.REQUIRED=!0;else if(o(t,!0)){var C=new v,B=C[m](f?{}:-0,1)!=C,w=h((function(){C.has(1)})),x=d((function(t){new y(t)})),Q=!f&&h((function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)}));x||((v=e((function(e,i){A(e,v,t);var n=p(new y,e,v);return null!=i&&l(i,n[m],{that:n,AS_ENTRIES:g}),n}))).prototype=b,b.constructor=v),(w||Q)&&(I("delete"),I("has"),g&&I("get")),(Q||B)&&I(m),f&&b.clear&&delete b.clear}return E[t]=v,n({global:!0,forced:v!=y},E),u(v,t),f||i.setStrong(v,t,g),v}},99734:function(t,e,i){var n=i(38621),r=i(32244),o=i(78101),a=i(55904);t.exports=function(t,e){for(var i=r(e),s=a.f,l=o.f,A=0;A<i.length;A++){var c=i[A];n(t,c)||s(t,c,l(e,c))}}},51428:function(t,e,i){var n=i(53632)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},35322:function(t,e,i){var n=i(83733);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},64417:function(t,e,i){"use strict";var n=i(91308).IteratorPrototype,r=i(88859),o=i(91434),a=i(81359),s=i(89053),l=function(){return this};t.exports=function(t,e,i){var A=e+" Iterator";return t.prototype=r(n,{next:o(1,i)}),a(t,A,!1,!0),s[A]=l,t}},42060:function(t,e,i){var n=i(88334),r=i(55904),o=i(91434);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},91434:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5818:function(t,e,i){"use strict";var n=i(46958),r=i(55904),o=i(91434);t.exports=function(t,e,i){var a=n(e);a in t?r.f(t,a,o(0,i)):t[a]=i}},56983:function(t,e,i){"use strict";var n=i(27559),r=i(64417),o=i(46005),a=i(54813),s=i(81359),l=i(42060),A=i(96474),c=i(53632),h=i(89366),d=i(89053),u=i(91308),p=u.IteratorPrototype,g=u.BUGGY_SAFARI_ITERATORS,f=c("iterator"),m="keys",y="values",b="entries",v=function(){return this};t.exports=function(t,e,i,c,u,E,I){r(i,e,c);var C,B,w,x=function(t){if(t===u&&_)return _;if(!g&&t in k)return k[t];switch(t){case m:case y:case b:return function(){return new i(this,t)}}return function(){return new i(this)}},Q=e+" Iterator",S=!1,k=t.prototype,D=k[f]||k["@@iterator"]||u&&k[u],_=!g&&D||x(u),R="Array"==e&&k.entries||D;if(R&&(C=o(R.call(new t)),p!==Object.prototype&&C.next&&(h||o(C)===p||(a?a(C,p):"function"!=typeof C[f]&&l(C,f,v)),s(C,Q,!0,!0),h&&(d[Q]=v))),u==y&&D&&D.name!==y&&(S=!0,_=function(){return D.call(this)}),h&&!I||k[f]===_||l(k,f,_),d[e]=_,u)if(B={values:x(y),keys:E?_:x(m),entries:x(b)},I)for(w in B)(g||S||!(w in k))&&A(k,w,B[w]);else n({target:e,proto:!0,forced:g||S},B);return B}},88334:function(t,e,i){var n=i(83733);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},61440:function(t,e,i){var n=i(35923),r=i(77153),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},30074:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},13362:function(t,e,i){var n=i(58485);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},64135:function(t,e,i){var n=i(35447),r=i(35923);t.exports="process"==n(r.process)},58485:function(t,e,i){var n=i(9307);t.exports=n("navigator","userAgent")||""},51489:function(t,e,i){
var n=i(35923),r=i(77532),o=Function.call;t.exports=function(t,e,i){return r(o,n[t].prototype[e],i)}},77754:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},27559:function(t,e,i){var n=i(35923),r=i(78101).f,o=i(42060),a=i(96474),s=i(24092),l=i(99734),A=i(5292);t.exports=function(t,e){var i,c,h,d,u,p=t.target,g=t.global,f=t.stat;if(i=g?n:f?n[p]||s(p,{}):(n[p]||{}).prototype)for(c in e){if(d=e[c],h=t.noTargetGet?(u=r(i,c))&&u.value:i[c],!A(g?c:p+(f?".":"#")+c,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(i,c,d,t)}}},83733:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},49632:function(t,e,i){var n=i(83733);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},77532:function(t,e,i){var n=i(59812);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 0:return function(){return t.call(e)};case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},9307:function(t,e,i){var n=i(61869),r=i(35923),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(r[t]):n[t]&&n[t][e]||r[t]&&r[t][e]}},79714:function(t,e,i){var n=i(43479),r=i(89053),o=i(53632)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||r[n(t)]}},35923:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},38621:function(t){var e={}.hasOwnProperty;t.exports=function(t,i){return e.call(t,i)}},59902:function(t){t.exports={}},79253:function(t,e,i){var n=i(9307);t.exports=n("document","documentElement")},90803:function(t,e,i){var n=i(88334),r=i(83733),o=i(61440);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},62662:function(t,e,i){var n=i(83733),r=i(35447),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?o.call(t,""):Object(t)}:Object},18997:function(t,e,i){var n=i(77153),r=i(54813);t.exports=function(t,e,i){var o,a;return r&&"function"==typeof(o=e.constructor)&&o!==i&&n(a=o.prototype)&&a!==i.prototype&&r(t,a),t}},44674:function(t,e,i){var n=i(54089),r=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return r.call(t)}),t.exports=n.inspectSource},60374:function(t,e,i){var n=i(59902),r=i(77153),o=i(38621),a=i(55904).f,s=i(67621),l=i(49632),A=s("meta"),c=0,h=Object.isExtensible||function(){return!0},d=function(t){a(t,A,{value:{objectID:"O"+ ++c,weakData:{}}})},u=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,A)){if(!h(t))return"F";if(!e)return"E";d(t)}return t[A].objectID},getWeakData:function(t,e){if(!o(t,A)){if(!h(t))return!0;if(!e)return!1;d(t)}return t[A].weakData},onFreeze:function(t){return l&&u.REQUIRED&&h(t)&&!o(t,A)&&d(t),t}};n[A]=!0},72539:function(t,e,i){var n,r,o,a=i(67326),s=i(35923),l=i(77153),A=i(42060),c=i(38621),h=i(54089),d=i(29170),u=i(59902),p=s.WeakMap;if(a){var g=h.state||(h.state=new p),f=g.get,m=g.has,y=g.set;n=function(t,e){return e.facade=t,y.call(g,t,e),e},r=function(t){return f.call(g,t)||{}},o=function(t){return m.call(g,t)}}else{var b=d("state");u[b]=!0,n=function(t,e){return e.facade=t,A(t,b,e),e},r=function(t){return c(t,b)?t[b]:{}},o=function(t){return c(t,b)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}}},80823:function(t,e,i){var n=i(53632),r=i(89053),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},80210:function(t,e,i){var n=i(35447);t.exports=Array.isArray||function(t){return"Array"==n(t)}},5292:function(t,e,i){var n=i(83733),r=/#|\.prototype\./,o=function(t,e){var i=s[a(t)];return i==A||i!=l&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",A=o.POLYFILL="P";t.exports=o},77153:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},89366:function(t){t.exports=!1},96649:function(t,e,i){var n=i(77153),r=i(35447),o=i(53632)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},94458:function(t,e,i){var n=i(67133),r=i(80823),o=i(50989),a=i(77532),s=i(79714),l=i(23084),A=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,i){var c,h,d,u,p,g,f,m=i&&i.that,y=!(!i||!i.AS_ENTRIES),b=!(!i||!i.IS_ITERATOR),v=!(!i||!i.INTERRUPTED),E=a(e,m,1+y+v),I=function(t){return c&&l(c),new A(!0,t)},C=function(t){return y?(n(t),v?E(t[0],t[1],I):E(t[0],t[1])):v?E(t,I):E(t)};if(b)c=t;else{if("function"!=typeof(h=s(t)))throw TypeError("Target is not iterable");if(r(h)){for(d=0,u=o(t.length);u>d;d++)if((p=C(t[d]))&&p instanceof A)return p;return new A(!1)}c=h.call(t)}for(g=c.next;!(f=g.call(c)).done;){try{p=C(f.value)}catch(t){throw l(c),t}if("object"==typeof p&&p&&p instanceof A)return p}return new A(!1)}},23084:function(t,e,i){var n=i(67133);t.exports=function(t){var e=t.return;if(void 0!==e)return n(e.call(t)).value}},91308:function(t,e,i){"use strict";var n,r,o,a=i(46005),s=i(42060),l=i(38621),A=i(53632),c=i(89366),h=A("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=a(a(o)))!==Object.prototype&&(n=r):d=!0),null==n&&(n={}),c||l(n,h)||s(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},89053:function(t){t.exports={}},28951:function(t,e,i){var n,r,o,a,s,l,A,c,h=i(35923),d=i(78101).f,u=i(40223).set,p=i(13362),g=i(64135),f=h.MutationObserver||h.WebKitMutationObserver,m=h.document,y=h.process,b=h.Promise,v=d(h,"queueMicrotask"),E=v&&v.value;E||(n=function(){var t,e;for(g&&(t=y.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?a():o=void 0,t}}o=void 0,t&&t.enter()},!p&&!g&&f&&m?(s=!0,l=m.createTextNode(""),new f(n).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):b&&b.resolve?(A=b.resolve(void 0),c=A.then,a=function(){c.call(A,n)}):a=g?function(){y.nextTick(n)}:function(){u.call(h,n)}),t.exports=E||function(t){var e={fn:t,next:void 0};o&&(o.next=e),r||(r=e,a()),o=e}},60258:function(t,e,i){var n=i(83733);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},67326:function(t,e,i){var n=i(35923),r=i(44674),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(r(o))},24019:function(t,e,i){var n=i(96649);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},90161:function(t,e,i){"use strict";var n=i(88334),r=i(83733),o=i(26271),a=i(33587),s=i(69731),l=i(62946),A=i(62662),c=Object.assign,h=Object.defineProperty;t.exports=!c||r((function(){if(n&&1!==c({b:1},c(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!=c({},t)[i]||o(c({},e)).join("")!=r}))?function(t,e){for(var i=l(t),r=arguments.length,c=1,h=a.f,d=s.f;r>c;)for(var u,p=A(arguments[c++]),g=h?o(p).concat(h(p)):o(p),f=g.length,m=0;f>m;)u=g[m++],n&&!d.call(p,u)||(i[u]=p[u]);return i}:c},88859:function(t,e,i){var n,r=i(67133),o=i(32035),a=i(77754),s=i(59902),l=i(79253),A=i(61440),c=i(29170),h="prototype",d="script",u=c("IE_PROTO"),p=function(){},g=function(t){return"<"+d+">"+t+"</"+d+">"},f=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,i;f=n?function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):(e=A("iframe"),i="java"+d+":",e.style.display="none",l.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),
t.write(g("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete f[h][a[r]];return f()};s[u]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(p[h]=r(t),i=new p,p[h]=null,i[u]=t):i=f(),void 0===e?i:o(i,e)}},32035:function(t,e,i){var n=i(88334),r=i(55904),o=i(67133),a=i(26271);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var i,n=a(e),s=n.length,l=0;s>l;)r.f(t,i=n[l++],e[i]);return t}},55904:function(t,e,i){var n=i(88334),r=i(90803),o=i(67133),a=i(46958),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(o(t),e=a(e,!0),o(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},78101:function(t,e,i){var n=i(88334),r=i(69731),o=i(91434),a=i(10940),s=i(46958),l=i(38621),A=i(90803),c=Object.getOwnPropertyDescriptor;e.f=n?c:function(t,e){if(t=a(t),e=s(e,!0),A)try{return c(t,e)}catch(t){}if(l(t,e))return o(!r.f.call(t,e),t[e])}},97254:function(t,e,i){var n=i(49624),r=i(77754).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},33587:function(t,e){e.f=Object.getOwnPropertySymbols},46005:function(t,e,i){var n=i(38621),r=i(62946),o=i(29170),a=i(35322),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=r(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},49624:function(t,e,i){var n=i(38621),r=i(10940),o=i(62768).indexOf,a=i(59902);t.exports=function(t,e){var i,s=r(t),l=0,A=[];for(i in s)!n(a,i)&&n(s,i)&&A.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(A,i)||A.push(i));return A}},26271:function(t,e,i){var n=i(49624),r=i(77754);t.exports=Object.keys||function(t){return n(t,r)}},69731:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},54813:function(t,e,i){var n=i(67133),r=i(73238);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),e=i instanceof Array}catch(t){}return function(i,o){return n(i),r(o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},89519:function(t,e,i){"use strict";var n=i(55480),r=i(43479);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},32244:function(t,e,i){var n=i(9307),r=i(97254),o=i(33587),a=i(67133);t.exports=n("Reflect","ownKeys")||function(t){var e=r.f(a(t)),i=o.f;return i?e.concat(i(t)):e}},61869:function(t,e,i){var n=i(35923);t.exports=n},58496:function(t,e,i){var n=i(96474);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},96474:function(t,e,i){var n=i(35923),r=i(42060),o=i(38621),a=i(24092),s=i(44674),l=i(72539),A=l.get,c=l.enforce,h=String(String).split("String");(t.exports=function(t,e,i,s){var l,A=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof i&&("string"!=typeof e||o(i,"name")||r(i,"name",e),(l=c(i)).source||(l.source=h.join("string"==typeof e?e:""))),t!==n?(A?!u&&t[e]&&(d=!0):delete t[e],d?t[e]=i:r(t,e,i)):d?t[e]=i:a(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&A(this).source||s(this)}))},78028:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},24092:function(t,e,i){var n=i(35923),r=i(42060);t.exports=function(t,e){try{r(n,t,e)}catch(i){n[t]=e}return e}},92656:function(t,e,i){"use strict";var n=i(9307),r=i(55904),o=i(53632),a=i(88334),s=o("species");t.exports=function(t){var e=n(t),i=r.f;a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},81359:function(t,e,i){var n=i(55904).f,r=i(38621),o=i(53632)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},29170:function(t,e,i){var n=i(11018),r=i(67621),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},54089:function(t,e,i){var n=i(35923),r=i(24092),o="__core-js_shared__",a=n[o]||r(o,{});t.exports=a},11018:function(t,e,i){var n=i(89366),r=i(54089);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.1",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},92798:function(t,e,i){var n=i(8227),r=i(78028),o=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),A=s.length;return l<0||l>=A?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===A||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},40223:function(t,e,i){var n,r,o,a=i(35923),s=i(83733),l=i(77532),A=i(79253),c=i(61440),h=i(13362),d=i(64135),u=a.location,p=a.setImmediate,g=a.clearImmediate,f=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,v={},E="onreadystatechange",I=function(t){if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},C=function(t){return function(){I(t)}},B=function(t){I(t.data)},w=function(t){a.postMessage(t+"",u.protocol+"//"+u.host)};p&&g||(p=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return v[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},g=function(t){delete v[t]},d?n=function(t){f.nextTick(C(t))}:y&&y.now?n=function(t){y.now(C(t))}:m&&!h?(o=(r=new m).port2,r.port1.onmessage=B,n=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&u&&"file:"!==u.protocol&&!s(w)?(n=w,a.addEventListener("message",B,!1)):n=E in c("script")?function(t){A.appendChild(c("script"))[E]=function(){A.removeChild(this),I(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:p,clear:g}},66635:function(t,e,i){var n=i(8227),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},10940:function(t,e,i){var n=i(62662),r=i(78028);t.exports=function(t){return n(r(t))}},8227:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:e)(t)}},50989:function(t,e,i){var n=i(8227),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},62946:function(t,e,i){var n=i(78028);t.exports=function(t){return Object(n(t))}},46958:function(t,e,i){var n=i(77153);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},55480:function(t,e,i){var n={};n[i(53632)("toStringTag")]="z",t.exports="[object z]"===String(n)},67621:function(t){var e=0,i=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+i).toString(36)}},75544:function(t,e,i){var n=i(60258);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},53632:function(t,e,i){var n=i(35923),r=i(11018),o=i(38621),a=i(67621),s=i(60258),l=i(75544),A=r("wks"),c=n.Symbol,h=l?c:c&&c.withoutSetter||a;t.exports=function(t){return o(A,t)||(s&&o(c,t)?A[t]=c[t]:A[t]=h("Symbol."+t)),A[t]}},31245:function(t,e,i){"use strict";var n=i(27559),r=i(38790).findIndex,o=i(31853),a=i(40992),s="findIndex",l=!0,A=a(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!A},{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},36306:function(t,e,i){"use strict";var n=i(27559),r=i(38790).find,o=i(31853),a=i(40992),s="find",l=!0,A=a(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!A},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},77208:function(t,e,i){var n=i(27559),r=i(72118);n({target:"Array",stat:!0,forced:!i(23038)((function(t){Array.from(t)}))},{from:r})},46712:function(t,e,i){"use strict";var n=i(27559),r=i(62768).includes,o=i(31853);n({target:"Array",proto:!0,forced:!i(40992)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},37090:function(t,e,i){"use strict";var n=i(10940),r=i(31853),o=i(89053),a=i(72539),s=i(56983),l="Array Iterator",A=a.set,c=a.getterFor(l)
;t.exports=s(Array,"Array",(function(t,e){A(this,{type:l,target:n(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},50488:function(t,e,i){"use strict";var n=i(42127),r=i(57047);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},92646:function(t,e,i){var n=i(27559),r=i(90161);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},53035:function(t,e,i){var n=i(55480),r=i(96474),o=i(89519);n||r(Object.prototype,"toString",o,{unsafe:!0})},41071:function(t,e,i){"use strict";var n=i(42127),r=i(57047);t.exports=n("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},80429:function(t,e,i){"use strict";var n,r=i(27559),o=i(78101).f,a=i(50989),s=i(24019),l=i(78028),A=i(51428),c=i(89366),h="".endsWith,d=Math.min,u=A("endsWith");r({target:"String",proto:!0,forced:!!(c||u||(n=o(String.prototype,"endsWith"),!n||n.writable))&&!u},{endsWith:function(t){var e=String(l(this));s(t);var i=arguments.length>1?arguments[1]:void 0,n=a(e.length),r=void 0===i?n:d(a(i),n),o=String(t);return h?h.call(e,o,r):e.slice(r-o.length,r)===o}})},75264:function(t,e,i){"use strict";var n=i(27559),r=i(24019),o=i(78028);n({target:"String",proto:!0,forced:!i(51428)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(r(t),arguments.length>1?arguments[1]:void 0)}})},70730:function(t,e,i){"use strict";var n=i(92798).charAt,r=i(72539),o=i(56983),a="String Iterator",s=r.set,l=r.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=l(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},70009:function(t,e,i){"use strict";var n,r=i(27559),o=i(78101).f,a=i(50989),s=i(24019),l=i(78028),A=i(51428),c=i(89366),h="".startsWith,d=Math.min,u=A("startsWith");r({target:"String",proto:!0,forced:!!(c||u||(n=o(String.prototype,"startsWith"),!n||n.writable))&&!u},{startsWith:function(t){var e=String(l(this));s(t);var i=a(d(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return h?h.call(e,n,i):e.slice(i,i+n.length)===n}})},37376:function(t,e,i){"use strict";var n,r=i(35923),o=i(58496),a=i(60374),s=i(42127),l=i(78951),A=i(77153),c=i(72539).enforce,h=i(67326),d=!r.ActiveXObject&&"ActiveXObject"in r,u=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",p,l);if(h&&d){n=l.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var f=g.prototype,m=f.delete,y=f.has,b=f.get,v=f.set;o(f,{delete:function(t){if(A(t)&&!u(t)){var e=c(this);return e.frozen||(e.frozen=new n),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(A(t)&&!u(t)){var e=c(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(A(t)&&!u(t)){var e=c(this);return e.frozen||(e.frozen=new n),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(A(t)&&!u(t)){var i=c(this);i.frozen||(i.frozen=new n),y.call(this,t)?v.call(this,t,e):i.frozen.set(t,e)}else v.call(this,t,e);return this}})}},37820:function(t,e,i){"use strict";i(42127)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i(78951))},73925:function(t,e,i){var n=i(35923),r=i(30074),o=i(51353),a=i(42060);for(var s in r){var l=n[s],A=l&&l.prototype;if(A&&A.forEach!==o)try{a(A,"forEach",o)}catch(t){A.forEach=o}}},60159:function(t,e,i){var n=i(35923),r=i(30074),o=i(37090),a=i(42060),s=i(53632),l=s("iterator"),A=s("toStringTag"),c=o.values;for(var h in r){var d=n[h],u=d&&d.prototype;if(u){if(u[l]!==c)try{a(u,l,c)}catch(t){u[l]=c}if(u[A]||a(u,A,h),r[h])for(var p in o)if(u[p]!==o[p])try{a(u,p,o[p])}catch(t){u[p]=o[p]}}}},89026:function(t,e,i){var n=i(27559),r=i(35923),o=i(28951),a=i(64135),s=r.process;n({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=a&&s.domain;o(e?e.bind(t):t)}})},25870:function(t,e,i){var n=i(33258);t.exports=n},84993:function(t,e,i){var n=i(67531);t.exports=n},97709:function(t,e,i){var n=i(81133);t.exports=n},19714:function(t,e,i){var n=i(9420);t.exports=n},18503:function(t,e,i){i(73925),i(60159);var n=i(37090),r=i(51353);t.exports={keys:n.keys,values:n.values,entries:n.entries,iterator:n.values,forEach:r}},20477:function(t,e,i){var n=i(35289);t.exports=n},30306:function(t,e,i){var n=i(63313);t.exports=n},27155:function(t,e,i){var n=i(26176);t.exports=n},96841:function(t,e,i){var n=i(67414);t.exports=n},99808:function(t,e,i){var n=i(98274);t.exports=n},50767:function(t,e,i){var n=i(72097);t.exports=n},45727:function(t,e,i){var n=i(23509);t.exports=n},37801:function(t,e,i){var n=i(24828);t.exports=n},33921:function(t,e,i){var n=i(17060);t.exports=n},26176:function(t,e,i){i(89026);var n=i(61869);t.exports=n.queueMicrotask},49554:function(t){var e,i;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=i.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],i=0,n=0;i<t.length;i++,n+=8)e[n>>>5]|=t[i]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i<t.length;i++)e.push((t[i]>>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i<t.length;i+=2)e.push(parseInt(t.substr(i,2),16));return e},bytesToBase64:function(t){for(var i=[],n=0;n<t.length;n+=3)for(var r=t[n]<<16|t[n+1]<<8|t[n+2],o=0;o<4;o++)8*n+6*o<=8*t.length?i.push(e.charAt(r>>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],n=0,r=0;n<t.length;r=++n%4)0!=r&&i.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|e.indexOf(t.charAt(n))>>>6-2*r);return i}},t.exports=i},73044:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},7121:function(t){"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},26751:function(t){"use strict";t.exports=function(t){return t[1]}},19247:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,i=36e5,n="millisecond",r="second",o="minute",a="hour",s="day",l="week",A="month",c="quarter",h="year",d="date",u="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}},m=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},y={s:m,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),r=i%60;return(e<=0?"+":"-")+m(n,2,"0")+":"+m(r,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),r=e.clone().add(n,A),o=i-r<0,a=e.clone().add(n+(o?-1:1),A);return+(-(n+(i-r)/(o?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:A,y:h,w:l,d:s,D:d,h:a,m:o,s:r,ms:n,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",v={};v[b]=f;var E=function(t){return t instanceof w},I=function t(e,i,n){var r;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();v[o]&&(r=o),i&&(v[o]=i,r=o);var a=e.split("-");if(!r&&a.length>1)return t(a[0])}else{var s=e.name;v[s]=e,r=s}return!n&&r&&(b=r),r||!n&&b},C=function(t,e){if(E(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new w(i)},B=y;B.l=I,B.i=E,B.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function f(t){this.$L=I(t.locale,null,!0),this.parse(t)}var m=f.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(B.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(p);if(n){var r=n[2]-1||0,o=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return B},m.isValid=function(){return!(this.$d.toString()===u)},m.isSame=function(t,e){var i=C(t);return this.startOf(e)<=i&&i<=this.endOf(e)},m.isAfter=function(t,e){return C(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<C(t)},m.$g=function(t,e,i){return B.u(t)?this[e]:this.set(i,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var i=this,n=!!B.u(e)||e,c=B.p(t),u=function(t,e){var r=B.w(i.$u?Date.UTC(i.$y,e,t):new Date(i.$y,e,t),i);return n?r:r.endOf(s)},p=function(t,e){return B.w(i.toDate()[t].apply(i.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),i)},g=this.$W,f=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case h:return n?u(1,0):u(31,11);case A:return n?u(1,f):u(0,f+1);case l:var b=this.$locale().weekStart||0,v=(g<b?g+7:g)-b;return u(n?m-v:m+(6-v),f);case s:case d:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case r:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var i,l=B.p(t),c="set"+(this.$u?"UTC":""),u=(i={},i[s]=c+"Date",i[d]=c+"Date",i[A]=c+"Month",i[h]=c+"FullYear",i[a]=c+"Hours",i[o]=c+"Minutes",i[r]=c+"Seconds",i[n]=c+"Milliseconds",i)[l],p=l===s?this.$D+(e-this.$W):e;if(l===A||l===h){var g=this.clone().set(d,1);g.$d[u](p),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else u&&this.$d[u](p);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[B.p(t)]()},m.add=function(n,c){var d,u=this;n=Number(n);var p=B.p(c),g=function(t){var e=C(u);return B.w(e.date(e.date()+Math.round(t*n)),u)};if(p===A)return this.set(A,this.$M+n);if(p===h)return this.set(h,this.$y+n);if(p===s)return g(1);if(p===l)return g(7);var f=(d={},d[o]=e,d[a]=i,d[r]=t,d)[p]||1,m=this.$d.getTime()+n*f;return B.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||u;var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=B.z(this),o=this.$H,a=this.$m,s=this.$M,l=i.weekdays,A=i.months,c=function(t,i,r,o){return t&&(t[i]||t(e,n))||r[i].slice(0,o)},h=function(t){return B.s(o%12||12,t,"0")},d=i.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:B.s(s+1,2,"0"),MMM:c(i.monthsShort,s,A,3),MMMM:c(A,s),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:c(i.weekdaysMin,this.$W,l,2),ddd:c(i.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:B.s(o,2,"0"),h:h(1),hh:h(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:B.s(a,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:r};return n.replace(g,(function(t,e){return e||p[t]||r.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,u){var p,g=B.p(d),f=C(n),m=(f.utcOffset()-this.utcOffset())*e,y=this-f,b=B.m(this,f);return b=(p={},p[h]=b/12,p[A]=b,p[c]=b/3,p[l]=(y-m)/6048e5,p[s]=(y-m)/864e5,p[a]=y/i,p[o]=y/e,p[r]=y/t,p)[g]||y,u?b:B.a(b)},m.daysInMonth=function(){return this.endOf(A).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=I(t,e,!0);return n&&(i.$L=n),i},m.clone=function(){return B.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},f}(),x=w.prototype;return C.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",a],["$W",s],["$M",A],["$y",h],["$D",d]].forEach((function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),C.extend=function(t,e){return t.$i||(t(e,w,C),t.$i=!0),C},C.locale=I,C.isDayjs=E,C.unix=function(t){return C(1e3*t)},C.en=v[b],C.Ls=v,C.p={},C}()},1641:function(t,e,i){t.exports=function(){"use strict";var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(e,i)},e=function(){return(e=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function n(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:i.g,o=Object.keys,a=Array.isArray;function s(t,e){return"object"!=typeof e||o(e).forEach((function(i){t[i]=e[i]})),t}"undefined"==typeof Promise||r.Promise||(r.Promise=Promise);var l=Object.getPrototypeOf,A={}.hasOwnProperty;function c(t,e){return A.call(t,e)}function h(t,e){"function"==typeof e&&(e=e(l(t))),("undefined"==typeof Reflect?o:Reflect.ownKeys)(e).forEach((function(i){u(t,i,e[i])}))}var d=Object.defineProperty;function u(t,e,i,n){d(t,e,s(i&&c(i,"get")&&"function"==typeof i.get?{get:i.get,set:i.set,configurable:!0}:{value:i,configurable:!0,writable:!0},n))}function p(t){return{from:function(e){return t.prototype=Object.create(e.prototype),u(t.prototype,"constructor",t),{extend:h.bind(null,t.prototype)}}}}var g=Object.getOwnPropertyDescriptor,f=[].slice;function m(t,e,i){return f.call(t,e,i)}function y(t,e){return e(t)}function b(t){if(!t)throw new Error("Assertion Failed")}function v(t){r.setImmediate?setImmediate(t):setTimeout(t,0)}function E(t,e){if("string"==typeof e&&c(t,e))return t[e];if(!e)return t;if("string"!=typeof e){for(var i=[],n=0,r=e.length;n<r;++n){var o=E(t,e[n]);i.push(o)}return i}var a=e.indexOf(".");if(-1!==a){var s=t[e.substr(0,a)];return null==s?void 0:E(s,e.substr(a+1))}}function I(t,e,i){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!=typeof e&&"length"in e){b("string"!=typeof i&&"length"in i)
;for(var n=0,r=e.length;n<r;++n)I(t,e[n],i[n])}else{var o,s,l=e.indexOf(".");-1!==l?(o=e.substr(0,l),""===(s=e.substr(l+1))?void 0===i?a(t)&&!isNaN(parseInt(o))?t.splice(o,1):delete t[o]:t[o]=i:I(l=(l=t[o])&&c(t,o)?l:t[o]={},s,i)):void 0===i?a(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=i}}function C(t){var e,i={};for(e in t)c(t,e)&&(i[e]=t[e]);return i}var B=[].concat;function w(t){return B.apply([],t)}var x="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(w([8,16,32,64].map((function(t){return["Int","Uint","Float"].map((function(e){return e+t+"Array"}))})))).filter((function(t){return r[t]})),Q=new Set(x.map((function(t){return r[t]}))),S=null;function k(t){return S=new WeakMap,t=function t(e){if(!e||"object"!=typeof e)return e;var i=S.get(e);if(i)return i;if(a(e)){i=[],S.set(e,i);for(var n=0,r=e.length;n<r;++n)i.push(t(e[n]))}else if(Q.has(e.constructor))i=e;else{var o,s=l(e);for(o in i=s===Object.prototype?{}:Object.create(s),S.set(e,i),e)c(e,o)&&(i[o]=t(e[o]))}return i}(t),S=null,t}var D={}.toString;function _(t){return D.call(t).slice(8,-1)}var R="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",M="symbol"==typeof R?function(t){var e;return null!=t&&(e=t[R])&&e.apply(t)}:function(){return null};function T(t,e){return 0<=(e=t.indexOf(e))&&t.splice(e,1),0<=e}var F={};function L(t){var e,i,n,r;if(1===arguments.length){if(a(t))return t.slice();if(this===F&&"string"==typeof t)return[t];if(r=M(t)){for(i=[];!(n=r.next()).done;)i.push(n.value);return i}if(null==t)return[t];if("number"!=typeof(e=t.length))return[t];for(i=new Array(e);e--;)i[e]=t[e];return i}for(e=arguments.length,i=new Array(e);e--;)i[e]=arguments[e];return i}var N="undefined"!=typeof Symbol?function(t){return"AsyncFunction"===t[Symbol.toStringTag]}:function(){return!1},P=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(lt=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"]),U={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function O(t,e){this.name=t,this.message=e}function G(t,e){return t+". Errors: "+Object.keys(e).map((function(t){return e[t].toString()})).filter((function(t,e,i){return i.indexOf(t)===e})).join("\n")}function H(t,e,i,n){this.failures=e,this.failedKeys=n,this.successCount=i,this.message=G(t,e)}function V(t,e){this.name="BulkError",this.failures=Object.keys(e).map((function(t){return e[t]})),this.failuresByPos=e,this.message=G(t,this.failures)}p(O).from(Error).extend({toString:function(){return this.name+": "+this.message}}),p(H).from(O),p(V).from(O);var Y=P.reduce((function(t,e){return t[e]=e+"Error",t}),{}),z=O,W=P.reduce((function(t,e){var i=e+"Error";function n(t,n){this.name=i,t?"string"==typeof t?(this.message="".concat(t).concat(n?"\n "+n:""),this.inner=n||null):"object"==typeof t&&(this.message="".concat(t.name," ").concat(t.message),this.inner=t):(this.message=U[e]||i,this.inner=null)}return p(n).from(z),t[e]=n,t}),{});W.Syntax=SyntaxError,W.Type=TypeError,W.Range=RangeError;var Z=lt.reduce((function(t,e){return t[e+"Error"]=W[e],t}),{}),j=P.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=W[e]),t}),{});function q(){}function J(t){return t}function K(t,e){return null==t||t===J?e:function(i){return e(t(i))}}function X(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function $(t,e){return t===q?e:function(){var i=t.apply(this,arguments);void 0!==i&&(arguments[0]=i);var n=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?X(n,this.onsuccess):n),r&&(this.onerror=this.onerror?X(r,this.onerror):r),void 0!==o?o:i}}function tt(t,e){return t===q?e:function(){t.apply(this,arguments);var i=this.onsuccess,n=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),i&&(this.onsuccess=this.onsuccess?X(i,this.onsuccess):i),n&&(this.onerror=this.onerror?X(n,this.onerror):n)}}function et(t,e){return t===q?e:function(i){var n=t.apply(this,arguments);s(i,n);var r=this.onsuccess,o=this.onerror;return this.onsuccess=null,this.onerror=null,i=e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?X(r,this.onsuccess):r),o&&(this.onerror=this.onerror?X(o,this.onerror):o),void 0===n?void 0===i?void 0:i:s(n,i)}}function it(t,e){return t===q?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function nt(t,e){return t===q?e:function(){var i=t.apply(this,arguments);if(i&&"function"==typeof i.then){for(var n=this,r=arguments.length,o=new Array(r);r--;)o[r]=arguments[r];return i.then((function(){return e.apply(n,o)}))}return e.apply(this,arguments)}}j.ModifyError=H,j.DexieError=O,j.BulkError=V;var rt="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ot(t){rt=t}var at={},st=100,lt=(x="undefined"==typeof Promise?[]:function(){var t=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[t,l(t),t];var e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,l(e),t]}())[0],At=(P=x[1],x=x[2],P=P&&P.then,lt&&lt.constructor),ct=!!x,ht=function(t,e){bt.push([t,e]),ut&&(queueMicrotask(kt),ut=!1)},dt=!0,ut=!0,pt=[],gt=[],ft=J,mt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:q,pgp:!1,env:{},finalize:q},yt=mt,bt=[],vt=0,Et=[];function It(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var e=this._PSD=yt;if("function"!=typeof t){if(t!==at)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&wt(this,this._value))}this._state=null,this._value=null,++e.ref,function t(e,i){try{i((function(i){if(null===e._state){if(i===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Dt();i&&"function"==typeof i.then?t(e,(function(t,e){i instanceof It?i._then(t,e):i.then(t,e)})):(e._state=!0,e._value=i,xt(e)),n&&_t()}}),wt.bind(null,e))}catch(t){wt(e,t)}}(this,t)}var Ct={get:function(){var t=yt,e=Ut;function i(i,n){var r=this,o=!t.global&&(t!==yt||e!==Ut),a=o&&!Vt(),s=new It((function(e,s){Qt(r,new Bt(qt(i,t,o,a),qt(n,t,o,a),e,s,t))}));return this._consoleTask&&(s._consoleTask=this._consoleTask),s}return i.prototype=at,i},set:function(t){u(this,"then",t&&t.prototype===at?Ct:{get:function(){return t},set:Ct.set})}};function Bt(t,e,i,n,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.resolve=i,this.reject=n,this.psd=r}function wt(t,e){var i,n;gt.push(e),null===t._state&&(i=t._lib&&Dt(),e=ft(e),t._state=!1,t._value=e,n=t,pt.some((function(t){return t._value===n._value}))||pt.push(n),xt(t),i&&_t())}function xt(t){var e=t._listeners;t._listeners=[];for(var i=0,n=e.length;i<n;++i)Qt(t,e[i]);var r=t._PSD;--r.ref||r.finalize(),0===vt&&(++vt,ht((function(){0==--vt&&Rt()}),[]))}function Qt(t,e){if(null!==t._state){var i=t._state?e.onFulfilled:e.onRejected;if(null===i)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++vt,ht(St,[i,t,e])}else t._listeners.push(e)}function St(t,e,i){try{var n,r=e._value;!e._state&&gt.length&&(gt=[]),n=rt&&e._consoleTask?e._consoleTask.run((function(){return t(r)})):t(r),e._state||-1!==gt.indexOf(r)||function(t){for(var e=pt.length;e;)if(pt[--e]._value===t._value)return pt.splice(e,1)}(e),i.resolve(n)}catch(t){i.reject(t)}finally{0==--vt&&Rt(),--i.psd.ref||i.psd.finalize()}}function kt(){jt(mt,(function(){Dt()&&_t()}))}function Dt(){var t=dt;return ut=dt=!1,t}function _t(){var t,e,i;do{
for(;0<bt.length;)for(t=bt,bt=[],i=t.length,e=0;e<i;++e){var n=t[e];n[0].apply(null,n[1])}}while(0<bt.length);ut=dt=!0}function Rt(){var t=pt;pt=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));for(var e=Et.slice(0),i=e.length;i;)e[--i]()}function Mt(t){return new It(at,!1,t)}function Tt(t,e){var i=yt;return function(){var n=Dt(),r=yt;try{return Wt(i,!0),t.apply(this,arguments)}catch(t){e&&e(t)}finally{Wt(r,!1),n&&_t()}}}h(It.prototype,{then:Ct,_then:function(t,e){Qt(this,new Bt(null,null,t,e,yt))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=t,i=arguments[1];return"function"==typeof e?this.then(null,(function(t){return(t instanceof e?i:Mt)(t)})):this.then(null,(function(t){return(t&&t.name===e?i:Mt)(t)}))},finally:function(t){return this.then((function(e){return It.resolve(t()).then((function(){return e}))}),(function(e){return It.resolve(t()).then((function(){return Mt(e)}))}))},timeout:function(t,e){var i=this;return t<1/0?new It((function(n,r){var o=setTimeout((function(){return r(new W.Timeout(e))}),t);i.then(n,r).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&u(It.prototype,Symbol.toStringTag,"Dexie.Promise"),mt.env=Zt(),h(It,{all:function(){var t=L.apply(null,arguments).map(Yt);return new It((function(e,i){0===t.length&&e([]);var n=t.length;t.forEach((function(r,o){return It.resolve(r).then((function(i){t[o]=i,--n||e(t)}),i)}))}))},resolve:function(t){return t instanceof It?t:t&&"function"==typeof t.then?new It((function(e,i){t.then(e,i)})):new It(at,!0,t)},reject:Mt,race:function(){var t=L.apply(null,arguments).map(Yt);return new It((function(e,i){t.map((function(t){return It.resolve(t).then(e,i)}))}))},PSD:{get:function(){return yt},set:function(t){return yt=t}},totalEchoes:{get:function(){return Ut}},newPSD:Gt,usePSD:jt,scheduler:{get:function(){return ht},set:function(t){ht=t}},rejectionMapper:{get:function(){return ft},set:function(t){ft=t}},follow:function(t,e){return new It((function(i,n){return Gt((function(e,i){var n=yt;n.unhandleds=[],n.onunhandled=i,n.finalize=X((function(){var t,n=this;t=function(){0===n.unhandleds.length?e():i(n.unhandleds[0])},Et.push((function e(){t(),Et.splice(Et.indexOf(e),1)})),++vt,ht((function(){0==--vt&&Rt()}),[])}),n.finalize),t()}),e,i,n)}))}}),At&&(At.allSettled&&u(It,"allSettled",(function(){var t=L.apply(null,arguments).map(Yt);return new It((function(e){0===t.length&&e([]);var i=t.length,n=new Array(i);t.forEach((function(t,r){return It.resolve(t).then((function(t){return n[r]={status:"fulfilled",value:t}}),(function(t){return n[r]={status:"rejected",reason:t}})).then((function(){return--i||e(n)}))}))}))})),At.any&&"undefined"!=typeof AggregateError&&u(It,"any",(function(){var t=L.apply(null,arguments).map(Yt);return new It((function(e,i){0===t.length&&i(new AggregateError([]));var n=t.length,r=new Array(n);t.forEach((function(t,o){return It.resolve(t).then((function(t){return e(t)}),(function(t){r[o]=t,--n||i(new AggregateError(r))}))}))}))})));var Ft={awaits:0,echoes:0,id:0},Lt=0,Nt=[],Pt=0,Ut=0,Ot=0;function Gt(t,e,i,n){var r=yt,o=Object.create(r);return o.parent=r,o.ref=0,o.global=!1,o.id=++Ot,mt.env,o.env=ct?{Promise:It,PromiseProp:{value:It,configurable:!0,writable:!0},all:It.all,race:It.race,allSettled:It.allSettled,any:It.any,resolve:It.resolve,reject:It.reject}:{},e&&s(o,e),++r.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()},n=jt(o,t,i,n),0===o.ref&&o.finalize(),n}function Ht(){return Ft.id||(Ft.id=++Lt),++Ft.awaits,Ft.echoes+=st,Ft.id}function Vt(){return!!Ft.awaits&&(0==--Ft.awaits&&(Ft.id=0),Ft.echoes=Ft.awaits*st,!0)}function Yt(t){return Ft.echoes&&t&&t.constructor===At?(Ht(),t.then((function(t){return Vt(),t}),(function(t){return Vt(),Kt(t)}))):t}function zt(){var t=Nt[Nt.length-1];Nt.pop(),Wt(t,!1)}function Wt(t,e){var i,n=yt;(e?!Ft.echoes||Pt++&&t===yt:!Pt||--Pt&&t===yt)||queueMicrotask(e?function(t){++Ut,Ft.echoes&&0!=--Ft.echoes||(Ft.echoes=Ft.awaits=Ft.id=0),Nt.push(yt),Wt(t,!0)}.bind(null,t):zt),t!==yt&&(yt=t,n===mt&&(mt.env=Zt()),ct&&(i=mt.env.Promise,e=t.env,(n.global||t.global)&&(Object.defineProperty(r,"Promise",e.PromiseProp),i.all=e.all,i.race=e.race,i.resolve=e.resolve,i.reject=e.reject,e.allSettled&&(i.allSettled=e.allSettled),e.any&&(i.any=e.any))))}function Zt(){var t=r.Promise;return ct?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(r,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject}:{}}function jt(t,e,i,n,r){var o=yt;try{return Wt(t,!0),e(i,n,r)}finally{Wt(o,!1)}}function qt(t,e,i,n){return"function"!=typeof t?t:function(){var r=yt;i&&Ht(),Wt(e,!0);try{return t.apply(this,arguments)}finally{Wt(r,!1),n&&queueMicrotask(Vt)}}}function Jt(t){Promise===At&&0===Ft.echoes?0===Pt?t():enqueueNativeMicroTask(t):setTimeout(t,0)}-1===(""+P).indexOf("[native code]")&&(Ht=Vt=q);var Kt=It.reject,Xt=String.fromCharCode(65535),$t="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",te="String expected.",ee=[],ie="__dbnames",ne="readonly",re="readwrite";function oe(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}var ae={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function se(t){return"string"!=typeof t||/\./.test(t)?function(t){return t}:function(e){return void 0===e[t]&&t in e&&delete(e=k(e))[t],e}}function le(){throw W.Type()}function Ae(t,e){try{var i=ce(t),n=ce(e);if(i!==n)return"Array"===i?1:"Array"===n?-1:"binary"===i?1:"binary"===n?-1:"string"===i?1:"string"===n?-1:"Date"===i?1:"Date"!==n?NaN:-1;switch(i){case"number":case"Date":case"string":return e<t?1:t<e?-1:0;case"binary":return function(t,e){for(var i=t.length,n=e.length,r=i<n?i:n,o=0;o<r;++o)if(t[o]!==e[o])return t[o]<e[o]?-1:1;return i===n?0:i<n?-1:1}(he(t),he(e));case"Array":return function(t,e){for(var i=t.length,n=e.length,r=i<n?i:n,o=0;o<r;++o){var a=Ae(t[o],e[o]);if(0!==a)return a}return i===n?0:i<n?-1:1}(t,e)}}catch(t){}return NaN}function ce(t){var e=typeof t;return"object"!=e?e:ArrayBuffer.isView(t)||"ArrayBuffer"===(t=_(t))?"binary":t}function he(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)}var de=(ue.prototype._trans=function(t,e,i){var n=this._tx||yt.trans,r=this.name,o=rt&&"undefined"!=typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===t?"read":"write"," ").concat(this.name));function a(t,i,n){if(!n.schema[r])throw new W.NotFound("Table "+r+" not part of transaction");return e(n.idbtrans,n)}var s=Dt();try{var l=n&&n.db._novip===this.db._novip?n===yt.trans?n._promise(t,a,i):Gt((function(){return n._promise(t,a,i)}),{trans:n,transless:yt.transless||yt}):function t(e,i,n,r){if(e.idbdb&&(e._state.openComplete||yt.letThrough||e._vip)){var o=e._createTransaction(i,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(o){return o.name===Y.InvalidState&&e.isOpen()&&0<--e._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return t(e,i,n,r)}))):Kt(o)}return o._promise(i,(function(t,e){return Gt((function(){return yt.trans=o,r(t,e,o)}))})).then((function(t){if("readwrite"===i)try{o.idbtrans.commit()}catch(t){}return"readonly"===i?t:o._completion.then((function(){return t}))}))}if(e._state.openComplete)return Kt(new W.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._state.autoOpen)return Kt(new W.DatabaseClosed);e.open().catch(q)}return e._state.dbReadyPromise.then((function(){return t(e,i,n,r)}))}(this.db,t,[this.name],a);return o&&(l._consoleTask=o,l=l.catch((function(t){return console.trace(t),Kt(t)}))),l}finally{s&&_t()}},ue.prototype.get=function(t,e){var i=this;return t&&t.constructor===Object?this.where(t).first(e):null==t?Kt(new W.Type("Invalid argument to Table.get()")):this._trans("readonly",(function(e){return i.core.get({trans:e,key:t}).then((function(t){return i.hook.reading.fire(t)}))})).then(e)},ue.prototype.where=function(t){if("string"==typeof t)return new this.db.WhereClause(this,t)
;if(a(t))return new this.db.WhereClause(this,"[".concat(t.join("+"),"]"));var e=o(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);var i=this.schema.indexes.concat(this.schema.primKey).filter((function(t){if(t.compound&&e.every((function(e){return 0<=t.keyPath.indexOf(e)}))){for(var i=0;i<e.length;++i)if(-1===e.indexOf(t.keyPath[i]))return!1;return!0}return!1})).sort((function(t,e){return t.keyPath.length-e.keyPath.length}))[0];if(i&&this.db._maxKey!==Xt){var n=i.keyPath.slice(0,e.length);return this.where(n).equals(n.map((function(e){return t[e]})))}!i&&rt&&console.warn("The query ".concat(JSON.stringify(t)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(e.join("+"),"]"));var r=this.schema.idxByName,s=this.db._deps.indexedDB;function l(t,e){return 0===s.cmp(t,e)}n=(A=e.reduce((function(e,i){var n=e[0],o=e[1],s=(e=r[i],t[i]);return[n||e,n||!e?oe(o,e&&e.multi?function(t){return t=E(t,i),a(t)&&t.some((function(t){return l(s,t)}))}:function(t){return l(s,E(t,i))}):o]}),[null,null]))[0];var A=A[1];return n?this.where(n.name).equals(t[n.keyPath]).filter(A):i?this.filter(A):this.where(e).equals("")},ue.prototype.filter=function(t){return this.toCollection().and(t)},ue.prototype.count=function(t){return this.toCollection().count(t)},ue.prototype.offset=function(t){return this.toCollection().offset(t)},ue.prototype.limit=function(t){return this.toCollection().limit(t)},ue.prototype.each=function(t){return this.toCollection().each(t)},ue.prototype.toArray=function(t){return this.toCollection().toArray(t)},ue.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},ue.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,a(t)?"[".concat(t.join("+"),"]"):t))},ue.prototype.reverse=function(){return this.toCollection().reverse()},ue.prototype.mapToClass=function(e){var i,n=this.db,r=this.name;function o(){return null!==i&&i.apply(this,arguments)||this}(this.schema.mappedClass=e).prototype instanceof le&&(function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}(o,i=e),Object.defineProperty(o.prototype,"db",{get:function(){return n},enumerable:!1,configurable:!0}),o.prototype.table=function(){return r},e=o);for(var a=new Set,s=e.prototype;s;s=l(s))Object.getOwnPropertyNames(s).forEach((function(t){return a.add(t)}));function A(t){if(!t)return t;var i,n=Object.create(e.prototype);for(i in t)if(!a.has(i))try{n[i]=t[i]}catch(t){}return n}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=A,this.hook("reading",A),e},ue.prototype.defineClass=function(){return this.mapToClass((function(t){s(this,t)}))},ue.prototype.add=function(t,e){var i=this,n=this.schema.primKey,r=n.auto,o=n.keyPath,a=t;return o&&r&&(a=se(o)(t)),this._trans("readwrite",(function(t){return i.core.mutate({trans:t,type:"add",keys:null!=e?[e]:null,values:[a]})})).then((function(t){return t.numFailures?It.reject(t.failures[0]):t.lastResult})).then((function(e){if(o)try{I(t,o,e)}catch(t){}return e}))},ue.prototype.update=function(t,e){return"object"!=typeof t||a(t)?this.where(":id").equals(t).modify(e):void 0===(t=E(t,this.schema.primKey.keyPath))?Kt(new W.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(t).modify(e)},ue.prototype.put=function(t,e){var i=this,n=this.schema.primKey,r=n.auto,o=n.keyPath,a=t;return o&&r&&(a=se(o)(t)),this._trans("readwrite",(function(t){return i.core.mutate({trans:t,type:"put",values:[a],keys:null!=e?[e]:null})})).then((function(t){return t.numFailures?It.reject(t.failures[0]):t.lastResult})).then((function(e){if(o)try{I(t,o,e)}catch(t){}return e}))},ue.prototype.delete=function(t){var e=this;return this._trans("readwrite",(function(i){return e.core.mutate({trans:i,type:"delete",keys:[t]})})).then((function(t){return t.numFailures?It.reject(t.failures[0]):void 0}))},ue.prototype.clear=function(){var t=this;return this._trans("readwrite",(function(e){return t.core.mutate({trans:e,type:"deleteRange",range:ae})})).then((function(t){return t.numFailures?It.reject(t.failures[0]):void 0}))},ue.prototype.bulkGet=function(t){var e=this;return this._trans("readonly",(function(i){return e.core.getMany({keys:t,trans:i}).then((function(t){return t.map((function(t){return e.hook.reading.fire(t)}))}))}))},ue.prototype.bulkAdd=function(t,e,i){var n=this,r=Array.isArray(e)?e:void 0,o=(i=i||(r?void 0:e))?i.allKeys:void 0;return this._trans("readwrite",(function(e){var i=(s=n.schema.primKey).auto;if((s=s.keyPath)&&r)throw new W.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==t.length)throw new W.InvalidArgument("Arguments objects and keys must have the same length");var a=t.length,s=s&&i?t.map(se(s)):t;return n.core.mutate({trans:e,type:"add",keys:r,values:s,wantResults:o}).then((function(t){var e=t.numFailures,i=t.results,r=t.lastResult;if(t=t.failures,0===e)return o?i:r;throw new V("".concat(n.name,".bulkAdd(): ").concat(e," of ").concat(a," operations failed"),t)}))}))},ue.prototype.bulkPut=function(t,e,i){var n=this,r=Array.isArray(e)?e:void 0,o=(i=i||(r?void 0:e))?i.allKeys:void 0;return this._trans("readwrite",(function(e){var i=(s=n.schema.primKey).auto;if((s=s.keyPath)&&r)throw new W.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==t.length)throw new W.InvalidArgument("Arguments objects and keys must have the same length");var a=t.length,s=s&&i?t.map(se(s)):t;return n.core.mutate({trans:e,type:"put",keys:r,values:s,wantResults:o}).then((function(t){var e=t.numFailures,i=t.results,r=t.lastResult;if(t=t.failures,0===e)return o?i:r;throw new V("".concat(n.name,".bulkPut(): ").concat(e," of ").concat(a," operations failed"),t)}))}))},ue.prototype.bulkUpdate=function(t){var e=this,i=this.core,n=t.map((function(t){return t.key})),r=t.map((function(t){return t.changes})),o=[];return this._trans("readwrite",(function(a){return i.getMany({trans:a,keys:n,cache:"clone"}).then((function(s){var l=[],A=[];t.forEach((function(t,i){var n=t.key,r=t.changes,a=s[i];if(a){for(var c=0,h=Object.keys(r);c<h.length;c++){var d=h[c],u=r[d];if(d===e.schema.primKey.keyPath){if(0!==Ae(u,n))throw new W.Constraint("Cannot update primary key in bulkUpdate()")}else I(a,d,u)}o.push(i),l.push(n),A.push(a)}}));var c=l.length;return i.mutate({trans:a,type:"put",keys:l,values:A,updates:{keys:n,changeSpecs:r}}).then((function(t){var i=t.numFailures,n=t.failures;if(0===i)return c;for(var r=0,a=Object.keys(n);r<a.length;r++){var s,l=a[r],A=o[Number(l)];null!=A&&(s=n[l],delete n[l],n[A]=s)}throw new V("".concat(e.name,".bulkUpdate(): ").concat(i," of ").concat(c," operations failed"),n)}))}))}))},ue.prototype.bulkDelete=function(t){var e=this,i=t.length;return this._trans("readwrite",(function(i){return e.core.mutate({trans:i,type:"delete",keys:t})})).then((function(t){var n=t.numFailures,r=t.lastResult;if(t=t.failures,0===n)return r;throw new V("".concat(e.name,".bulkDelete(): ").concat(n," of ").concat(i," operations failed"),t)}))},ue);function ue(){}function pe(t){function e(e,n){if(n){for(var r=arguments.length,o=new Array(r-1);--r;)o[r-1]=arguments[r];return i[e].subscribe.apply(null,o),t}if("string"==typeof e)return i[e]}var i={};e.addEventType=s;for(var n=1,r=arguments.length;n<r;++n)s(arguments[n]);return e;function s(t,n,r){if("object"!=typeof t){var l;n=n||it;var A={subscribers:[],fire:r=r||q,subscribe:function(t){-1===A.subscribers.indexOf(t)&&(A.subscribers.push(t),A.fire=n(A.fire,t))},unsubscribe:function(t){A.subscribers=A.subscribers.filter((function(e){return e!==t})),A.fire=A.subscribers.reduce(n,r)}};return i[t]=e[t]=A}o(l=t).forEach((function(t){var e=l[t];if(a(e))s(t,l[t][0],l[t][1]);else{if("asap"!==e)throw new W.InvalidArgument("Invalid event config");var i=s(t,J,(function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];i.subscribers.forEach((function(t){v((function(){t.apply(null,e)}))}))}))
}}))}}function ge(t,e){return p(e).from({prototype:t}),e}function fe(t,e){return!(t.filter||t.algorithm||t.or)&&(e?t.justLimit:!t.replayFilter)}function me(t,e){t.filter=oe(t.filter,e)}function ye(t,e,i){var n=t.replayFilter;t.replayFilter=n?function(){return oe(n(),e())}:e,t.justLimit=i&&!n}function be(t,e){if(t.isPrimKey)return e.primaryKey;var i=e.getIndexByKeyPath(t.index);if(!i)throw new W.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return i}function ve(t,e,i){var n=be(t,e.schema);return e.openCursor({trans:i,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:n,range:t.range}})}function Ee(t,e,i,n){var r=t.replayFilter?oe(t.filter,t.replayFilter()):t.filter;if(t.or){var o={},a=function(t,i,n){var a,s;r&&!r(i,n,(function(t){return i.stop(t)}),(function(t){return i.fail(t)}))||("[object ArrayBuffer]"==(s=""+(a=i.primaryKey))&&(s=""+new Uint8Array(a)),c(o,s)||(o[s]=!0,e(t,i,n)))};return Promise.all([t.or._iterate(a,i),Ie(ve(t,n,i),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return Ie(ve(t,n,i),oe(t.algorithm,r),e,!t.keysOnly&&t.valueMapper)}function Ie(t,e,i,n){var r=Tt(n?function(t,e,r){return i(n(t),e,r)}:i);return t.then((function(t){if(t)return t.start((function(){var i=function(){return t.continue()};e&&!e(t,(function(t){return i=t}),(function(e){t.stop(e),i=q}),(function(e){t.fail(e),i=q}))||r(t.value,t,(function(t){return i=t})),i()}))}))}x=Symbol();var Ce=(Be.prototype.execute=function(t){if(void 0!==this.add){var e=this.add;if(a(e))return n(n([],a(t)?t:[],!0),e,!0).sort();if("number"==typeof e)return(Number(t)||0)+e;if("bigint"==typeof e)try{return BigInt(t)+e}catch(t){return BigInt(0)+e}throw new TypeError("Invalid term ".concat(e))}if(void 0!==this.remove){var i=this.remove;if(a(i))return a(t)?t.filter((function(t){return!i.includes(t)})).sort():[];if("number"==typeof i)return Number(t)-i;if("bigint"==typeof i)try{return BigInt(t)-i}catch(t){return BigInt(0)-i}throw new TypeError("Invalid subtrahend ".concat(i))}return(e=null===(e=this.replacePrefix)||void 0===e?void 0:e[0])&&"string"==typeof t&&t.startsWith(e)?this.replacePrefix[1]+t.substring(e.length):t},Be);function Be(t){Object.assign(this,t)}var we=(xe.prototype._read=function(t,e){var i=this._ctx;return i.error?i.table._trans(null,Kt.bind(null,i.error)):i.table._trans("readonly",t).then(e)},xe.prototype._write=function(t){var e=this._ctx;return e.error?e.table._trans(null,Kt.bind(null,e.error)):e.table._trans("readwrite",t,"locked")},xe.prototype._addAlgorithm=function(t){var e=this._ctx;e.algorithm=oe(e.algorithm,t)},xe.prototype._iterate=function(t,e){return Ee(this._ctx,t,e,this._ctx.table.core)},xe.prototype.clone=function(t){var e=Object.create(this.constructor.prototype),i=Object.create(this._ctx);return t&&s(i,t),e._ctx=i,e},xe.prototype.raw=function(){return this._ctx.valueMapper=null,this},xe.prototype.each=function(t){var e=this._ctx;return this._read((function(i){return Ee(e,t,i,e.table.core)}))},xe.prototype.count=function(t){var e=this;return this._read((function(t){var i=e._ctx,n=i.table.core;if(fe(i,!0))return n.count({trans:t,query:{index:be(i,n.schema),range:i.range}}).then((function(t){return Math.min(t,i.limit)}));var r=0;return Ee(i,(function(){return++r,!1}),t,n).then((function(){return r}))})).then(t)},xe.prototype.sortBy=function(t,e){var i=t.split(".").reverse(),n=i[0],r=i.length-1;function o(t,e){return e?o(t[i[e]],e-1):t[n]}var a="next"===this._ctx.dir?1:-1;function s(t,e){return(t=o(t,r))<(e=o(e,r))?-a:e<t?a:0}return this.toArray((function(t){return t.sort(s)})).then(e)},xe.prototype.toArray=function(t){var e=this;return this._read((function(t){var i=e._ctx;if("next"===i.dir&&fe(i,!0)&&0<i.limit){var n=i.valueMapper,r=be(i,i.table.core.schema);return i.table.core.query({trans:t,limit:i.limit,values:!0,query:{index:r,range:i.range}}).then((function(t){return t=t.result,n?t.map(n):t}))}var o=[];return Ee(i,(function(t){return o.push(t)}),t,i.table.core).then((function(){return o}))}),t)},xe.prototype.offset=function(t){var e=this._ctx;return t<=0||(e.offset+=t,fe(e)?ye(e,(function(){var e=t;return function(t,i){return 0===e||(1===e?--e:i((function(){t.advance(e),e=0})),!1)}})):ye(e,(function(){var e=t;return function(){return--e<0}}))),this},xe.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),ye(this._ctx,(function(){var e=t;return function(t,i,n){return--e<=0&&i(n),0<=e}}),!0),this},xe.prototype.until=function(t,e){return me(this._ctx,(function(i,n,r){return!t(i.value)||(n(r),e)})),this},xe.prototype.first=function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)},xe.prototype.last=function(t){return this.reverse().first(t)},xe.prototype.filter=function(t){var e;return me(this._ctx,(function(e){return t(e.value)})),(e=this._ctx).isMatch=oe(e.isMatch,t),this},xe.prototype.and=function(t){return this.filter(t)},xe.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},xe.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},xe.prototype.desc=function(){return this.reverse()},xe.prototype.eachKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,i){t(i.key,i)}))},xe.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},xe.prototype.eachPrimaryKey=function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,i){t(i.primaryKey,i)}))},xe.prototype.keys=function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var i=[];return this.each((function(t,e){i.push(e.key)})).then((function(){return i})).then(t)},xe.prototype.primaryKeys=function(t){var e=this._ctx;if("next"===e.dir&&fe(e,!0)&&0<e.limit)return this._read((function(t){var i=be(e,e.table.core.schema);return e.table.core.query({trans:t,values:!1,limit:e.limit,query:{index:i,range:e.range}})})).then((function(t){return t.result})).then(t);e.keysOnly=!e.isMatch;var i=[];return this.each((function(t,e){i.push(e.primaryKey)})).then((function(){return i})).then(t)},xe.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},xe.prototype.firstKey=function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)},xe.prototype.lastKey=function(t){return this.reverse().firstKey(t)},xe.prototype.distinct=function(){var t;if(!(t=(t=this._ctx).index&&t.table.schema.idxByName[t.index])||!t.multi)return this;var e={};return me(this._ctx,(function(t){var i=t.primaryKey.toString();return t=c(e,i),e[i]=!0,!t})),this},xe.prototype.modify=function(t){var e=this,i=this._ctx;return this._write((function(n){var r,a,s;function l(t,e){var i=e.failures;e=e.numFailures,g+=t-e;for(var n=0,r=o(i);n<r.length;n++){var a=r[n];p.push(i[a])}}s="function"==typeof t?t:(r=o(t),a=r.length,function(e){for(var i=!1,n=0;n<a;++n){var o=r[n],s=t[o],l=E(e,o);s instanceof Ce?(I(e,o,s.execute(l)),i=!0):l!==s&&(I(e,o,s),i=!0)}return i});var A=i.table.core,c=A.schema.primaryKey,h=c.outbound,d=c.extractKey,u=e.db._options.modifyChunkSize||200,p=[],g=0,f=[];return e.clone().primaryKeys().then((function(e){function r(i){var a=Math.min(u,e.length-i);return A.getMany({trans:n,keys:e.slice(i,i+a),cache:"immutable"}).then((function(c){for(var p=[],g=[],f=h?[]:null,m=[],y=0;y<a;++y){var b=c[y],v={value:k(b),primKey:e[i+y]};!1!==s.call(v,v.value,v)&&(null==v.value?m.push(e[i+y]):h||0===Ae(d(b),d(v.value))?(g.push(v.value),h&&f.push(e[i+y])):(m.push(e[i+y]),p.push(v.value)))}return Promise.resolve(0<p.length&&A.mutate({trans:n,type:"add",values:p}).then((function(t){for(var e in t.failures)m.splice(parseInt(e),1);l(p.length,t)}))).then((function(){return(0<g.length||o&&"object"==typeof t)&&A.mutate({trans:n,type:"put",keys:f,values:g,criteria:o,changeSpec:"function"!=typeof t&&t,isAdditionalChunk:0<i}).then((function(t){return l(g.length,t)}))})).then((function(){return(0<m.length||o&&t===Qe)&&A.mutate({trans:n,type:"delete",keys:m,criteria:o,isAdditionalChunk:0<i}).then((function(t){return l(m.length,t)}))})).then((function(){return e.length>i+a&&r(i+u)}))}))}var o=fe(i)&&i.limit===1/0&&("function"!=typeof t||t===Qe)&&{
index:i.index,range:i.range};return r(0).then((function(){if(0<p.length)throw new H("Error modifying one or more objects",p,g,f);return e.length}))}))}))},xe.prototype.delete=function(){var t=this._ctx,e=t.range;return fe(t)&&(t.isPrimKey||3===e.type)?this._write((function(i){var n=t.table.core.schema.primaryKey,r=e;return t.table.core.count({trans:i,query:{index:n,range:r}}).then((function(e){return t.table.core.mutate({trans:i,type:"deleteRange",range:r}).then((function(t){var i=t.failures;if(t.lastResult,t.results,t=t.numFailures)throw new H("Could not delete some values",Object.keys(i).map((function(t){return i[t]})),e-t);return e-t}))}))})):this.modify(Qe)},xe);function xe(){}var Qe=function(t,e){return e.value=null};function Se(t,e){return t<e?-1:t===e?0:1}function ke(t,e){return e<t?-1:t===e?0:1}function De(t,e,i){return(t=t instanceof Fe?new t.Collection(t):t)._ctx.error=new(i||TypeError)(e),t}function _e(t){return new t.Collection(t,(function(){return Te("")})).limit(0)}function Re(t,e,i,n){var r,o,a,s,l,A,c,h=i.length;if(!i.every((function(t){return"string"==typeof t})))return De(t,te);function d(t){r="next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()},o="next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()},a="next"===t?Se:ke;var e=i.map((function(t){return{lower:o(t),upper:r(t)}})).sort((function(t,e){return a(t.lower,e.lower)}));s=e.map((function(t){return t.upper})),l=e.map((function(t){return t.lower})),c="next"===(A=t)?"":n}d("next"),(t=new t.Collection(t,(function(){return Me(s[0],l[h-1]+n)})))._ondirectionchange=function(t){d(t)};var u=0;return t._addAlgorithm((function(t,i,n){var r=t.key;if("string"!=typeof r)return!1;var d=o(r);if(e(d,l,u))return!0;for(var p=null,g=u;g<h;++g){var f=function(t,e,i,n,r,o){for(var a=Math.min(t.length,n.length),s=-1,l=0;l<a;++l){var A=e[l];if(A!==n[l])return r(t[l],i[l])<0?t.substr(0,l)+i[l]+i.substr(l+1):r(t[l],n[l])<0?t.substr(0,l)+n[l]+i.substr(l+1):0<=s?t.substr(0,s)+e[s]+i.substr(s+1):null;r(t[l],A)<0&&(s=l)}return a<n.length&&"next"===o?t+i.substr(t.length):a<t.length&&"prev"===o?t.substr(0,i.length):s<0?null:t.substr(0,s)+n[s]+i.substr(s+1)}(r,d,s[g],l[g],a,A);null===f&&null===p?u=g+1:(null===p||0<a(p,f))&&(p=f)}return i(null!==p?function(){t.continue(p+c)}:n),!1})),t}function Me(t,e,i,n){return{type:2,lower:t,upper:e,lowerOpen:i,upperOpen:n}}function Te(t){return{type:1,lower:t,upper:t}}var Fe=(Object.defineProperty(Le.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Le.prototype.between=function(t,e,i,n){i=!1!==i,n=!0===n;try{return 0<this._cmp(t,e)||0===this._cmp(t,e)&&(i||n)&&(!i||!n)?_e(this):new this.Collection(this,(function(){return Me(t,e,!i,!n)}))}catch(t){return De(this,$t)}},Le.prototype.equals=function(t){return null==t?De(this,$t):new this.Collection(this,(function(){return Te(t)}))},Le.prototype.above=function(t){return null==t?De(this,$t):new this.Collection(this,(function(){return Me(t,void 0,!0)}))},Le.prototype.aboveOrEqual=function(t){return null==t?De(this,$t):new this.Collection(this,(function(){return Me(t,void 0,!1)}))},Le.prototype.below=function(t){return null==t?De(this,$t):new this.Collection(this,(function(){return Me(void 0,t,!1,!0)}))},Le.prototype.belowOrEqual=function(t){return null==t?De(this,$t):new this.Collection(this,(function(){return Me(void 0,t)}))},Le.prototype.startsWith=function(t){return"string"!=typeof t?De(this,te):this.between(t,t+Xt,!0,!0)},Le.prototype.startsWithIgnoreCase=function(t){return""===t?this.startsWith(t):Re(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],Xt)},Le.prototype.equalsIgnoreCase=function(t){return Re(this,(function(t,e){return t===e[0]}),[t],"")},Le.prototype.anyOfIgnoreCase=function(){var t=L.apply(F,arguments);return 0===t.length?_e(this):Re(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")},Le.prototype.startsWithAnyOfIgnoreCase=function(){var t=L.apply(F,arguments);return 0===t.length?_e(this):Re(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,Xt)},Le.prototype.anyOf=function(){var t=this,e=L.apply(F,arguments),i=this._cmp;try{e.sort(i)}catch(t){return De(this,$t)}if(0===e.length)return _e(this);var n=new this.Collection(this,(function(){return Me(e[0],e[e.length-1])}));n._ondirectionchange=function(n){i="next"===n?t._ascending:t._descending,e.sort(i)};var r=0;return n._addAlgorithm((function(t,n,o){for(var a=t.key;0<i(a,e[r]);)if(++r===e.length)return n(o),!1;return 0===i(a,e[r])||(n((function(){t.continue(e[r])})),!1)})),n},Le.prototype.notEqual=function(t){return this.inAnyRange([[-1/0,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Le.prototype.noneOf=function(){var t=L.apply(F,arguments);if(0===t.length)return new this.Collection(this);try{t.sort(this._ascending)}catch(t){return De(this,$t)}var e=t.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[-1/0,e]]}),null);return e.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})},Le.prototype.inAnyRange=function(t,e){var i=this,n=this._cmp,r=this._ascending,o=this._descending,a=this._min,s=this._max;if(0===t.length)return _e(this);if(!t.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&r(t[0],t[1])<=0})))return De(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",W.InvalidArgument);var l,A=!e||!1!==e.includeLowers,c=e&&!0===e.includeUppers,h=r;function d(t,e){return h(t[0],e[0])}try{(l=t.reduce((function(t,e){for(var i=0,r=t.length;i<r;++i){var o=t[i];if(n(e[0],o[1])<0&&0<n(e[1],o[0])){o[0]=a(o[0],e[0]),o[1]=s(o[1],e[1]);break}}return i===r&&t.push(e),t}),[])).sort(d)}catch(t){return De(this,$t)}var u=0,p=c?function(t){return 0<r(t,l[u][1])}:function(t){return 0<=r(t,l[u][1])},g=A?function(t){return 0<o(t,l[u][0])}:function(t){return 0<=o(t,l[u][0])},f=p;return(t=new this.Collection(this,(function(){return Me(l[0][0],l[l.length-1][1],!A,!c)})))._ondirectionchange=function(t){h="next"===t?(f=p,r):(f=g,o),l.sort(d)},t._addAlgorithm((function(t,e,n){for(var o,a=t.key;f(a);)if(++u===l.length)return e(n),!1;return!p(o=a)&&!g(o)||(0===i._cmp(a,l[u][1])||0===i._cmp(a,l[u][0])||e((function(){h===r?t.continue(l[u][0]):t.continue(l[u][1])})),!1)})),t},Le.prototype.startsWithAnyOf=function(){var t=L.apply(F,arguments);return t.every((function(t){return"string"==typeof t}))?0===t.length?_e(this):this.inAnyRange(t.map((function(t){return[t,t+Xt]}))):De(this,"startsWithAnyOf() only works with strings")},Le);function Le(){}function Ne(t){return Tt((function(e){return Pe(e),t(e.target.error),!1}))}function Pe(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}var Ue="storagemutated",Oe="x-storagemutated-1",Ge=pe(null,Ue),He=(Ve.prototype._lock=function(){return b(!yt.global),++this._reculock,1!==this._reculock||yt.global||(yt.lockOwnerFor=this),this},Ve.prototype._unlock=function(){if(b(!yt.global),0==--this._reculock)for(yt.global||(yt.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var t=this._blockedFuncs.shift();try{jt(t[1],t[0])}catch(t){}}return this},Ve.prototype._locked=function(){return this._reculock&&yt.lockOwnerFor!==this},Ve.prototype.create=function(t){var e=this;if(!this.mode)return this;var i=this.db.idbdb,n=this.db._state.dbOpenError;if(b(!this.idbtrans),!t&&!i)switch(n&&n.name){case"DatabaseClosedError":throw new W.DatabaseClosed(n);case"MissingAPIError":throw new W.MissingAPI(n.message,n);default:throw new W.OpenFailed(n)}if(!this.active)throw new W.TransactionInactive;return b(null===this._completion._state),(t=this.idbtrans=t||(this.db.core||i).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=Tt((function(i){Pe(i),e._reject(t.error)})),t.onabort=Tt((function(i){Pe(i),e.active&&e._reject(new W.Abort(t.error)),e.active=!1,e.on("abort").fire(i)})),t.oncomplete=Tt((function(){e.active=!1,e._resolve(),"mutatedParts"in t&&Ge.storagemutated.fire(t.mutatedParts)})),this},Ve.prototype._promise=function(t,e,i){var n=this
;if("readwrite"===t&&"readwrite"!==this.mode)return Kt(new W.ReadOnly("Transaction is readonly"));if(!this.active)return Kt(new W.TransactionInactive);if(this._locked())return new It((function(r,o){n._blockedFuncs.push([function(){n._promise(t,e,i).then(r,o)},yt])}));if(i)return Gt((function(){var t=new It((function(t,i){n._lock();var r=e(t,i,n);r&&r.then&&r.then(t,i)}));return t.finally((function(){return n._unlock()})),t._lib=!0,t}));var r=new It((function(t,i){var r=e(t,i,n);r&&r.then&&r.then(t,i)}));return r._lib=!0,r},Ve.prototype._root=function(){return this.parent?this.parent._root():this},Ve.prototype.waitFor=function(t){var e,i=this._root(),n=It.resolve(t);i._waitingFor?i._waitingFor=i._waitingFor.then((function(){return n})):(i._waitingFor=n,i._waitingQueue=[],e=i.idbtrans.objectStore(i.storeNames[0]),function t(){for(++i._spinCount;i._waitingQueue.length;)i._waitingQueue.shift()();i._waitingFor&&(e.get(-1/0).onsuccess=t)}());var r=i._waitingFor;return new It((function(t,e){n.then((function(e){return i._waitingQueue.push(Tt(t.bind(null,e)))}),(function(t){return i._waitingQueue.push(Tt(e.bind(null,t)))})).finally((function(){i._waitingFor===r&&(i._waitingFor=null)}))}))},Ve.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new W.Abort))},Ve.prototype.table=function(t){var e=this._memoizedTables||(this._memoizedTables={});if(c(e,t))return e[t];var i=this.schema[t];if(!i)throw new W.NotFound("Table "+t+" not part of transaction");return(i=new this.db.Table(t,i,this)).core=this.db.core.table(t),e[t]=i},Ve);function Ve(){}function Ye(t,e,i,n,r,o,a){return{name:t,keyPath:e,unique:i,multi:n,auto:r,compound:o,src:(i&&!a?"&":"")+(n?"*":"")+(r?"++":"")+ze(e)}}function ze(t){return"string"==typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function We(t,e,i){return{name:t,primKey:e,indexes:i,mappedClass:null,idxByName:(n=function(t){return[t.name,t]},i.reduce((function(t,e,i){return(i=n(e,i))&&(t[i[0]]=i[1]),t}),{}))};var n}var Ze=function(t){try{return t.only([[]]),Ze=function(){return[[]]},[[]]}catch(t){return Ze=function(){return Xt},Xt}};function je(t){return null==t?function(){}:"string"==typeof t?1===(e=t).split(".").length?function(t){return t[e]}:function(t){return E(t,e)}:function(e){return E(e,t)};var e}function qe(t){return[].slice.call(t)}var Je=0;function Ke(t){return null==t?":id":"string"==typeof t?t:"[".concat(t.join("+"),"]")}function Xe(t,e,i){function n(t){if(3===t.type)return null;if(4===t.type)throw new Error("Cannot convert never type to IDBKeyRange");var i=t.lower,n=t.upper,r=t.lowerOpen;return t=t.upperOpen,void 0===i?void 0===n?null:e.upperBound(n,!!t):void 0===n?e.lowerBound(i,!!r):e.bound(i,n,!!r,!!t)}function r(t){var e,i=t.name;return{name:i,schema:t,mutate:function(t){var e=t.trans,r=t.type,o=t.keys,a=t.values,s=t.range;return new Promise((function(t,l){t=Tt(t);var A=e.objectStore(i),c=null==A.keyPath,h="put"===r||"add"===r;if(!h&&"delete"!==r&&"deleteRange"!==r)throw new Error("Invalid operation type: "+r);var d,u=(o||a||{length:1}).length;if(o&&a&&o.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===u)return t({numFailures:0,failures:{},results:[],lastResult:void 0});function p(t){++m,Pe(t)}var g=[],f=[],m=0;if("deleteRange"===r){if(4===s.type)return t({numFailures:m,failures:f,results:[],lastResult:void 0});3===s.type?g.push(d=A.clear()):g.push(d=A.delete(n(s)))}else{var y=(c=h?c?[a,o]:[a,null]:[o,null])[0],b=c[1];if(h)for(var v=0;v<u;++v)g.push(d=b&&void 0!==b[v]?A[r](y[v],b[v]):A[r](y[v])),d.onerror=p;else for(v=0;v<u;++v)g.push(d=A[r](y[v])),d.onerror=p}function E(e){e=e.target.result,g.forEach((function(t,e){return null!=t.error&&(f[e]=t.error)})),t({numFailures:m,failures:f,results:"delete"===r?o:g.map((function(t){return t.result})),lastResult:e})}d.onerror=function(t){p(t),E(t)},d.onsuccess=E}))},getMany:function(t){var e=t.trans,n=t.keys;return new Promise((function(t,r){t=Tt(t);for(var o,a=e.objectStore(i),s=n.length,l=new Array(s),A=0,c=0,h=function(e){e=e.target,l[e._pos]=e.result,++c===A&&t(l)},d=Ne(r),u=0;u<s;++u)null!=n[u]&&((o=a.get(n[u]))._pos=u,o.onsuccess=h,o.onerror=d,++A);0===A&&t(l)}))},get:function(t){var e=t.trans,n=t.key;return new Promise((function(t,r){t=Tt(t);var o=e.objectStore(i).get(n);o.onsuccess=function(e){return t(e.target.result)},o.onerror=Ne(r)}))},query:(e=A,function(t){return new Promise((function(r,o){r=Tt(r);var a,s,l,A=t.trans,c=t.values,h=t.limit,d=t.query,u=h===1/0?void 0:h,p=d.index;if(d=d.range,A=A.objectStore(i),p=p.isPrimaryKey?A:A.index(p.name),d=n(d),0===h)return r({result:[]});e?((u=c?p.getAll(d,u):p.getAllKeys(d,u)).onsuccess=function(t){return r({result:t.target.result})},u.onerror=Ne(o)):(a=0,s=!c&&"openKeyCursor"in p?p.openKeyCursor(d):p.openCursor(d),l=[],s.onsuccess=function(t){var e=s.result;return e?(l.push(c?e.value:e.primaryKey),++a===h?r({result:l}):void e.continue()):r({result:l})},s.onerror=Ne(o))}))}),openCursor:function(t){var e=t.trans,r=t.values,o=t.query,a=t.reverse,s=t.unique;return new Promise((function(t,l){t=Tt(t);var A=o.index,c=o.range,h=e.objectStore(i),d=(h=A.isPrimaryKey?h:h.index(A.name),A=a?s?"prevunique":"prev":s?"nextunique":"next",!r&&"openKeyCursor"in h?h.openKeyCursor(n(c),A):h.openCursor(n(c),A));d.onerror=Ne(l),d.onsuccess=Tt((function(i){var n,r,o,a,s=d.result;s?(s.___id=++Je,s.done=!1,n=s.continue.bind(s),r=(r=s.continuePrimaryKey)&&r.bind(s),o=s.advance.bind(s),a=function(){throw new Error("Cursor not stopped")},s.trans=e,s.stop=s.continue=s.continuePrimaryKey=s.advance=function(){throw new Error("Cursor not started")},s.fail=Tt(l),s.next=function(){var t=this,e=1;return this.start((function(){return e--?t.continue():t.stop()})).then((function(){return t}))},s.start=function(t){function e(){if(d.result)try{t()}catch(t){s.fail(t)}else s.done=!0,s.start=function(){throw new Error("Cursor behind last entry")},s.stop()}var i=new Promise((function(t,e){t=Tt(t),d.onerror=Ne(e),s.fail=e,s.stop=function(e){s.stop=s.continue=s.continuePrimaryKey=s.advance=a,t(e)}}));return d.onsuccess=Tt((function(t){d.onsuccess=e,e()})),s.continue=n,s.continuePrimaryKey=r,s.advance=o,e(),i},t(s)):t(null)}),l)}))},count:function(t){var e=t.query,r=t.trans,o=e.index,a=e.range;return new Promise((function(t,e){var s=r.objectStore(i),l=o.isPrimaryKey?s:s.index(o.name);(l=(s=n(a))?l.count(s):l.count()).onsuccess=Tt((function(e){return t(e.target.result)})),l.onerror=Ne(e)}))}}}i=(s=i,l=qe((o=t).objectStoreNames),c={schema:{name:o.name,tables:l.map((function(t){return s.objectStore(t)})).map((function(t){var e=t.keyPath,i=t.autoIncrement,n=a(e),r={};return i={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==e,compound:n,keyPath:e,autoIncrement:i,unique:!0,extractKey:je(e)},indexes:qe(t.indexNames).map((function(e){return t.index(e)})).map((function(t){var e=t.name,i=t.unique,n=t.multiEntry;return t=t.keyPath,n={name:e,compound:a(t),keyPath:t,unique:i,multiEntry:n,extractKey:je(t)},r[Ke(t)]=n})),getIndexByKeyPath:function(t){return r[Ke(t)]}},r[":id"]=i.primaryKey,null!=e&&(r[Ke(e)]=i.primaryKey),i}))},hasGetAll:0<l.length&&"getAll"in s.objectStore(l[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}).schema;var o,s,l,A=c.hasGetAll,c=i.tables.map(r),h={};return c.forEach((function(t){return h[t.name]=t})),{stack:"dbcore",transaction:t.transaction.bind(t),table:function(t){if(!h[t])throw new Error("Table '".concat(t,"' not found"));return h[t]},MIN_KEY:-1/0,MAX_KEY:Ze(e),schema:i}}function $e(t,i,n,r){var o=n.IDBKeyRange;return n.indexedDB,{dbcore:(r=Xe(i,o,r),t.dbcore.reduce((function(t,i){return i=i.create,e(e({},t),i(t))}),r))}}function ti(t,e){var i=e.db;e=$e(t._middlewares,i,t._deps,e),t.core=e.dbcore,t.tables.forEach((function(e){var i=e.name;t.core.schema.tables.some((function(t){return t.name===i}))&&(e.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=e.core))}))}function ei(t,e,i,n){i.forEach((function(i){var r=n[i];e.forEach((function(e){var n=function t(e,i){
return g(e,i)||(e=l(e))&&t(e,i)}(e,i);(!n||"value"in n&&void 0===n.value)&&(e===t.Transaction.prototype||e instanceof t.Transaction?u(e,i,{get:function(){return this.table(i)},set:function(t){d(this,i,{value:t,writable:!0,configurable:!0,enumerable:!0})}}):e[i]=new t.Table(i,r))}))}))}function ii(t,e){e.forEach((function(e){for(var i in e)e[i]instanceof t.Table&&delete e[i]}))}function ni(t,e){return t._cfg.version-e._cfg.version}function ri(t,e,i,n){var r=t._dbSchema;i.objectStoreNames.contains("$meta")&&!r.$meta&&(r.$meta=We("$meta",di("")[0],[]),t._storeNames.push("$meta"));var a=t._createTransaction("readwrite",t._storeNames,r);a.create(i),a._completion.catch(n);var s=a._reject.bind(a),l=yt.transless||yt;Gt((function(){return yt.trans=a,yt.transless=l,0!==e?(ti(t,i),A=e,((n=a).storeNames.includes("$meta")?n.table("$meta").get("version").then((function(t){return null!=t?t:A})):It.resolve(A)).then((function(e){return r=e,s=a,l=i,A=[],e=(n=t)._versions,c=n._dbSchema=ci(0,n.idbdb,l),0!==(e=e.filter((function(t){return t._cfg.version>=r}))).length?(e.forEach((function(t){A.push((function(){var e=c,i=t._cfg.dbschema;hi(n,e,l),hi(n,i,l),c=n._dbSchema=i;var a=ai(e,i);a.add.forEach((function(t){si(l,t[0],t[1].primKey,t[1].indexes)})),a.change.forEach((function(t){if(t.recreate)throw new W.Upgrade("Not yet support for changing primary key");var e=l.objectStore(t.name);t.add.forEach((function(t){return Ai(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),Ai(e,t)})),t.del.forEach((function(t){return e.deleteIndex(t)}))}));var A=t._cfg.contentUpgrade;if(A&&t._cfg.version>r){ti(n,l),s._memoizedTables={};var h=C(i);a.del.forEach((function(t){h[t]=e[t]})),ii(n,[n.Transaction.prototype]),ei(n,[n.Transaction.prototype],o(h),h),s.schema=h;var d,u=N(A);return u&&Ht(),a=It.follow((function(){var t;(d=A(s))&&u&&(t=Vt.bind(null,null),d.then(t,t))})),d&&"function"==typeof d.then?It.resolve(d):a.then((function(){return d}))}})),A.push((function(e){var i,r,o=t._cfg.dbschema;i=o,r=e,[].slice.call(r.db.objectStoreNames).forEach((function(t){return null==i[t]&&r.db.deleteObjectStore(t)})),ii(n,[n.Transaction.prototype]),ei(n,[n.Transaction.prototype],n._storeNames,n._dbSchema),s.schema=n._dbSchema})),A.push((function(e){n.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(n.idbdb.version/10)===t._cfg.version?(n.idbdb.deleteObjectStore("$meta"),delete n._dbSchema.$meta,n._storeNames=n._storeNames.filter((function(t){return"$meta"!==t}))):e.objectStore("$meta").put(t._cfg.version,"version"))}))})),function t(){return A.length?It.resolve(A.shift()(s.idbtrans)).then(t):It.resolve()}().then((function(){li(c,l)}))):It.resolve();var n,r,s,l,A,c})).catch(s)):(o(r).forEach((function(t){si(i,t,r[t].primKey,r[t].indexes)})),ti(t,i),void It.follow((function(){return t.on.populate.fire(a)})).catch(s));var n,A}))}function oi(t,e){li(t._dbSchema,e),e.db.version%10!=0||e.objectStoreNames.contains("$meta")||e.db.createObjectStore("$meta").add(Math.ceil(e.db.version/10-1),"version");var i=ci(0,t.idbdb,e);hi(t,t._dbSchema,e);for(var n=0,r=ai(i,t._dbSchema).change;n<r.length;n++){var o=function(t){if(t.change.length||t.recreate)return console.warn("Unable to patch indexes of table ".concat(t.name," because it has changes on the type of index or primary key.")),{value:void 0};var i=e.objectStore(t.name);t.add.forEach((function(e){rt&&console.debug("Dexie upgrade patch: Creating missing index ".concat(t.name,".").concat(e.src)),Ai(i,e)}))}(r[n]);if("object"==typeof o)return o.value}}function ai(t,e){var i,n={del:[],add:[],change:[]};for(i in t)e[i]||n.del.push(i);for(i in e){var r=t[i],o=e[i];if(r){var a={name:i,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(r.primKey.keyPath||"")!=""+(o.primKey.keyPath||"")||r.primKey.auto!==o.primKey.auto)a.recreate=!0,n.change.push(a);else{var s=r.idxByName,l=o.idxByName,A=void 0;for(A in s)l[A]||a.del.push(A);for(A in l){var c=s[A],h=l[A];c?c.src!==h.src&&a.change.push(h):a.add.push(h)}(0<a.del.length||0<a.add.length||0<a.change.length)&&n.change.push(a)}}else n.add.push([i,o])}return n}function si(t,e,i,n){var r=t.db.createObjectStore(e,i.keyPath?{keyPath:i.keyPath,autoIncrement:i.auto}:{autoIncrement:i.auto});return n.forEach((function(t){return Ai(r,t)})),r}function li(t,e){o(t).forEach((function(i){e.db.objectStoreNames.contains(i)||(rt&&console.debug("Dexie: Creating missing table",i),si(e,i,t[i].primKey,t[i].indexes))}))}function Ai(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function ci(t,e,i){var n={};return m(e.objectStoreNames,0).forEach((function(t){for(var e=i.objectStore(t),r=Ye(ze(s=e.keyPath),s||"",!0,!1,!!e.autoIncrement,s&&"string"!=typeof s,!0),o=[],a=0;a<e.indexNames.length;++a){var s=(l=e.index(e.indexNames[a])).keyPath,l=Ye(l.name,s,!!l.unique,!!l.multiEntry,!1,s&&"string"!=typeof s,!1);o.push(l)}n[t]=We(t,r,o)})),n}function hi(t,e,i){for(var n=i.db.objectStoreNames,o=0;o<n.length;++o){var a=n[o],s=i.objectStore(a);t._hasGetAll="getAll"in s;for(var l=0;l<s.indexNames.length;++l){var A=s.indexNames[l],c=s.index(A).keyPath,h="string"==typeof c?c:"["+m(c).join("+")+"]";!e[a]||(c=e[a].idxByName[h])&&(c.name=A,delete e[a].idxByName[h],e[a].idxByName[A]=c)}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&r.WorkerGlobalScope&&r instanceof r.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(t._hasGetAll=!1)}function di(t){return t.split(",").map((function(t,e){var i=(t=t.trim()).replace(/([&*]|\+\+)/g,""),n=/^\[/.test(i)?i.match(/^\[(.*)\]$/)[1].split("+"):i;return Ye(i,n||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),a(n),0===e)}))}var ui=(pi.prototype._parseStoresSpec=function(t,e){o(t).forEach((function(i){if(null!==t[i]){var n=di(t[i]),r=n.shift();if(r.unique=!0,r.multi)throw new W.Schema("Primary key cannot be multi-valued");n.forEach((function(t){if(t.auto)throw new W.Schema("Only primary key can be marked as autoIncrement (++)");if(!t.keyPath)throw new W.Schema("Index must have a name and cannot be an empty string")})),e[i]=We(i,r,n)}}))},pi.prototype.stores=function(t){var e=this.db;this._cfg.storesSource=this._cfg.storesSource?s(this._cfg.storesSource,t):t,t=e._versions;var i={},n={};return t.forEach((function(t){s(i,t._cfg.storesSource),n=t._cfg.dbschema={},t._parseStoresSpec(i,n)})),e._dbSchema=n,ii(e,[e._allTables,e,e.Transaction.prototype]),ei(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],o(n),n),e._storeNames=o(n),this},pi.prototype.upgrade=function(t){return this._cfg.contentUpgrade=nt(this._cfg.contentUpgrade||q,t),this},pi);function pi(){}function gi(t,e){var i=t._dbNamesDB;return i||(i=t._dbNamesDB=new tn(ie,{addons:[],indexedDB:t,IDBKeyRange:e})).version(1).stores({dbnames:"name"}),i.table("dbnames")}function fi(t){return t&&"function"==typeof t.databases}function mi(t){return Gt((function(){return yt.letThrough=!0,t()}))}function yi(t){return!("from"in t)}var bi=function(t,e){if(!this){var i=new bi;return t&&"d"in t&&s(i,t),i}s(this,arguments.length?{d:1,from:t,to:1<arguments.length?e:t}:{d:0})};function vi(t,e,i){var n=Ae(e,i);if(!isNaN(n)){if(0<n)throw RangeError();if(yi(t))return s(t,{from:e,to:i,d:1});var r=t.l;if(n=t.r,Ae(i,t.from)<0)return r?vi(r,e,i):t.l={from:e,to:i,d:1,l:null,r:null},Bi(t);if(0<Ae(e,t.to))return n?vi(n,e,i):t.r={from:e,to:i,d:1,l:null,r:null},Bi(t);Ae(e,t.from)<0&&(t.from=e,t.l=null,t.d=n?n.d+1:1),0<Ae(i,t.to)&&(t.to=i,t.r=null,t.d=t.l?t.l.d+1:1),i=!t.r,r&&!t.l&&Ei(t,r),n&&i&&Ei(t,n)}}function Ei(t,e){yi(e)||function t(e,i){var n=i.from,r=i.to,o=i.l;i=i.r,vi(e,n,r),o&&t(e,o),i&&t(e,i)}(t,e)}function Ii(t,e){var i=Ci(e),n=i.next();if(n.done)return!1;for(var r=n.value,o=Ci(t),a=o.next(r.from),s=a.value;!n.done&&!a.done;){if(Ae(s.from,r.to)<=0&&0<=Ae(s.to,r.from))return!0;Ae(r.from,s.from)<0?r=(n=i.next(s.from)).value:s=(a=o.next(r.from)).value}return!1}function Ci(t){var e=yi(t)?null:{s:0,n:t};return{next:function(t){for(var i=0<arguments.length;e;)switch(e.s){case 0:if(e.s=1,i)for(;e.n.l&&Ae(t,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!i||Ae(t,e.n.to)<=0)return{value:e.n,done:!1};case 2:
if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function Bi(t){var i,n,r=((null===(i=t.r)||void 0===i?void 0:i.d)||0)-((null===(n=t.l)||void 0===n?void 0:n.d)||0),o=1<r?"r":r<-1?"l":"";o&&(i="r"==o?"l":"r",n=e({},t),r=t[o],t.from=r.from,t.to=r.to,t[o]=r[o],n[o]=r[i],(t[i]=n).d=wi(n)),t.d=wi(t)}function wi(t){var e=t.r;return t=t.l,(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}function xi(t,e){return o(e).forEach((function(i){t[i]?Ei(t[i],e[i]):t[i]=function t(e){var i,n,r={};for(i in e)c(e,i)&&(n=e[i],r[i]=!n||"object"!=typeof n||Q.has(n.constructor)?n:t(n));return r}(e[i])})),t}function Qi(t,e){return t.all||e.all||Object.keys(t).some((function(i){return e[i]&&Ii(e[i],t[i])}))}h(bi.prototype,((P={add:function(t){return Ei(this,t),this},addKey:function(t){return vi(this,t,t),this},addKeys:function(t){var e=this;return t.forEach((function(t){return vi(e,t,t)})),this},hasKey:function(t){var e=Ci(this).next(t).value;return e&&Ae(e.from,t)<=0&&0<=Ae(e.to,t)}})[R]=function(){return Ci(this)},P));var Si={},ki={},Di=!1;function _i(t){xi(ki,t),Di||(Di=!0,setTimeout((function(){Di=!1,Ri(ki,!(ki={}))}),0))}function Ri(t,e){void 0===e&&(e=!1);var i=new Set;if(t.all)for(var n=0,r=Object.values(Si);n<r.length;n++)Mi(a=r[n],t,i,e);else for(var o in t){var a,s=/^idb\:\/\/(.*)\/(.*)\//.exec(o);s&&(o=s[1],s=s[2],(a=Si["idb://".concat(o,"/").concat(s)])&&Mi(a,t,i,e))}i.forEach((function(t){return t()}))}function Mi(t,e,i,n){for(var r=[],o=0,a=Object.entries(t.queries.query);o<a.length;o++){for(var s=a[o],l=s[0],A=[],c=0,h=s[1];c<h.length;c++){var d=h[c];Qi(e,d.obsSet)?d.subscribers.forEach((function(t){return i.add(t)})):n&&A.push(d)}n&&r.push([l,A])}if(n)for(var u=0,p=r;u<p.length;u++){var g=p[u];l=g[0],A=g[1],t.queries.query[l]=A}}function Ti(t){var e=t._state,i=t._deps.indexedDB;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then((function(){return e.dbOpenError?Kt(e.dbOpenError):t}));e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;var n=e.openCanceller,r=Math.round(10*t.verno),a=!1;function s(){if(e.openCanceller!==n)throw new W.DatabaseClosed("db.open() was cancelled")}function l(){return new It((function(n,A){if(s(),!i)throw new W.MissingAPI;var c=t.name,u=e.autoSchema||!r?i.open(c):i.open(c,r);if(!u)throw new W.MissingAPI;u.onerror=Ne(A),u.onblocked=Tt(t._fireOnBlocked),u.onupgradeneeded=Tt((function(n){var r;h=u.transaction,e.autoSchema&&!t._options.allowEmptyDB?(u.onerror=Pe,h.abort(),u.result.close(),(r=i.deleteDatabase(c)).onsuccess=r.onerror=Tt((function(){A(new W.NoSuchDatabase("Database ".concat(c," doesnt exist")))}))):(h.onerror=Ne(A),n=n.oldVersion>Math.pow(2,62)?0:n.oldVersion,d=n<1,t.idbdb=u.result,a&&oi(t,h),ri(t,n/10,h,A))}),A),u.onsuccess=Tt((function(){h=null;var i,s,A,p,g,f=t.idbdb=u.result,y=m(f.objectStoreNames);if(0<y.length)try{var b=f.transaction(1===(p=y).length?p[0]:p,"readonly");if(e.autoSchema)s=f,A=b,(i=t).verno=s.version/10,A=i._dbSchema=ci(0,s,A),i._storeNames=m(s.objectStoreNames,0),ei(i,[i._allTables],o(A),A);else if(hi(t,t._dbSchema,b),((g=ai(ci(0,(g=t).idbdb,b),g._dbSchema)).add.length||g.change.some((function(t){return t.add.length||t.change.length})))&&!a)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),f.close(),r=f.version+1,a=!0,n(l());ti(t,b)}catch(t){}ee.push(t),f.onversionchange=Tt((function(i){e.vcFired=!0,t.on("versionchange").fire(i)})),f.onclose=Tt((function(e){t.on("close").fire(e)})),d&&(g=t._deps,b=c,f=g.indexedDB,g=g.IDBKeyRange,fi(f)||b===ie||gi(f,g).put({name:b}).catch(q)),n()}),A)})).catch((function(t){switch(null==t?void 0:t.name){case"UnknownError":if(0<e.PR1398_maxLoop)return e.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),l();break;case"VersionError":if(0<r)return r=0,l()}return It.reject(t)}))}var A,c=e.dbReadyResolve,h=null,d=!1;return It.race([n,("undefined"==typeof navigator?It.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){function e(){return indexedDB.databases().finally(t)}A=setInterval(e,100),e()})).finally((function(){return clearInterval(A)})):Promise.resolve()).then(l)]).then((function(){return s(),e.onReadyBeingFired=[],It.resolve(mi((function(){return t.on.ready.fire(t.vip)}))).then((function i(){if(0<e.onReadyBeingFired.length){var n=e.onReadyBeingFired.reduce(nt,q);return e.onReadyBeingFired=[],It.resolve(mi((function(){return n(t.vip)}))).then(i)}}))})).finally((function(){e.openCanceller===n&&(e.onReadyBeingFired=null,e.isBeingOpened=!1)})).catch((function(i){e.dbOpenError=i;try{h&&h.abort()}catch(t){}return n===e.openCanceller&&t._close(),Kt(i)})).finally((function(){e.openComplete=!0,c()})).then((function(){var e;return d&&(e={},t.tables.forEach((function(i){i.schema.indexes.forEach((function(n){n.name&&(e["idb://".concat(t.name,"/").concat(i.name,"/").concat(n.name)]=new bi(-1/0,[[[]]]))})),e["idb://".concat(t.name,"/").concat(i.name,"/")]=e["idb://".concat(t.name,"/").concat(i.name,"/:dels")]=new bi(-1/0,[[[]]])})),Ge(Ue).fire(e),Ri(e,!0)),t}))}function Fi(t){function e(e){return t.next(e)}var i=r(e),n=r((function(e){return t.throw(e)}));function r(t){return function(e){var r=t(e);return e=r.value,r.done?e:e&&"function"==typeof e.then?e.then(i,n):a(e)?Promise.all(e).then(i,n):i(e)}}return r(e)()}function Li(t,e,i){for(var n=a(t)?t.slice():[t],r=0;r<i;++r)n.push(e);return n}var Ni={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return e(e({},t),{table:function(i){var n=t.table(i),r=n.schema,o={},a=[];function s(t,i,n){var r=Ke(t),l=o[r]=o[r]||[],A=null==t?0:"string"==typeof t?1:t.length,c=0<i;return c=e(e({},n),{name:c?"".concat(r,"(virtual-from:").concat(n.name,")"):n.name,lowLevelIndex:n,isVirtual:c,keyTail:i,keyLength:A,extractKey:je(t),unique:!c&&n.unique}),l.push(c),c.isPrimaryKey||a.push(c),1<A&&s(2===A?t[0]:t.slice(0,A-1),i+1,n),l.sort((function(t,e){return t.keyTail-e.keyTail})),c}i=s(r.primaryKey.keyPath,0,r.primaryKey),o[":id"]=[i];for(var l=0,A=r.indexes;l<A.length;l++){var c=A[l];s(c.keyPath,0,c)}function h(i){var n,r=i.query.index;return r.isVirtual?e(e({},i),{query:{index:r.lowLevelIndex,range:(n=i.query.range,r=r.keyTail,{type:1===n.type?2:n.type,lower:Li(n.lower,n.lowerOpen?t.MAX_KEY:t.MIN_KEY,r),lowerOpen:!0,upper:Li(n.upper,n.upperOpen?t.MIN_KEY:t.MAX_KEY,r),upperOpen:!0})}}):i}return e(e({},n),{schema:e(e({},r),{primaryKey:i,indexes:a,getIndexByKeyPath:function(t){return(t=o[Ke(t)])&&t[0]}}),count:function(t){return n.count(h(t))},query:function(t){return n.query(h(t))},openCursor:function(e){var i=e.query.index,r=i.keyTail,o=i.isVirtual,a=i.keyLength;return o?n.openCursor(h(e)).then((function(t){return t&&s(t)})):n.openCursor(e);function s(i){return Object.create(i,{continue:{value:function(n){null!=n?i.continue(Li(n,e.reverse?t.MAX_KEY:t.MIN_KEY,r)):e.unique?i.continue(i.key.slice(0,a).concat(e.reverse?t.MIN_KEY:t.MAX_KEY,r)):i.continue()}},continuePrimaryKey:{value:function(e,n){i.continuePrimaryKey(Li(e,t.MAX_KEY,r),n)}},primaryKey:{get:function(){return i.primaryKey}},key:{get:function(){var t=i.key;return 1===a?t[0]:t.slice(0,a)}},value:{get:function(){return i.value}}})}}})}})}};function Pi(t,e,i,n){return i=i||{},n=n||"",o(t).forEach((function(r){var o,a,s;c(e,r)?(o=t[r],a=e[r],"object"==typeof o&&"object"==typeof a&&o&&a?(s=_(o))!==_(a)?i[n+r]=e[r]:"Object"===s?Pi(o,a,i,n+r+"."):o!==a&&(i[n+r]=e[r]):o!==a&&(i[n+r]=e[r])):i[n+r]=void 0})),o(e).forEach((function(r){c(t,r)||(i[n+r]=e[r])})),i}function Ui(t,e){return"delete"===e.type?e.keys:e.keys||e.values.map(t.extractKey)}var Oi={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(t){return e(e({},t),{table:function(i){var r=t.table(i),o=r.schema.primaryKey;return e(e({},r),{mutate:function(t){var a=yt.trans,s=a.table(i).hook,l=s.deleting,A=s.creating,h=s.updating;switch(t.type){case"add":if(A.fire===q)break;return a._promise("readwrite",(function(){return d(t)}),!0);case"put":if(A.fire===q&&h.fire===q)break
;return a._promise("readwrite",(function(){return d(t)}),!0);case"delete":if(l.fire===q)break;return a._promise("readwrite",(function(){return d(t)}),!0);case"deleteRange":if(l.fire===q)break;return a._promise("readwrite",(function(){return function t(i,n,a){return r.query({trans:i,values:!1,query:{index:o,range:n},limit:a}).then((function(r){var o=r.result;return d({type:"delete",keys:o,trans:i}).then((function(r){return 0<r.numFailures?Promise.reject(r.failures[0]):o.length<a?{failures:[],numFailures:0,lastResult:void 0}:t(i,e(e({},n),{lower:o[o.length-1],lowerOpen:!0}),a)}))}))}(t.trans,t.range,1e4)}),!0)}return r.mutate(t);function d(t){var i,a,s,d=yt.trans,u=t.keys||Ui(o,t);if(!u)throw new Error("Keys missing");return"delete"!==(t="add"===t.type||"put"===t.type?e(e({},t),{keys:u}):e({},t)).type&&(t.values=n([],t.values,!0)),t.keys&&(t.keys=n([],t.keys,!0)),i=r,s=u,("add"===(a=t).type?Promise.resolve([]):i.getMany({trans:a.trans,keys:s,cache:"immutable"})).then((function(e){var i=u.map((function(i,n){var r,a,s,u=e[n],p={onerror:null,onsuccess:null};return"delete"===t.type?l.fire.call(p,i,u,d):"add"===t.type||void 0===u?(r=A.fire.call(p,i,t.values[n],d),null==i&&null!=r&&(t.keys[n]=i=r,o.outbound||I(t.values[n],o.keyPath,i))):(r=Pi(u,t.values[n]),(a=h.fire.call(p,r,i,u,d))&&(s=t.values[n],Object.keys(a).forEach((function(t){c(s,t)?s[t]=a[t]:I(s,t,a[t])})))),p}));return r.mutate(t).then((function(n){for(var r=n.failures,o=n.results,a=n.numFailures,s=(n=n.lastResult,0);s<u.length;++s){var l=(o||u)[s],A=i[s];null==l?A.onerror&&A.onerror(r[s]):A.onsuccess&&A.onsuccess("put"===t.type&&e[s]?t.values[s]:l)}return{failures:r,results:o,numFailures:a,lastResult:n}})).catch((function(t){return i.forEach((function(e){return e.onerror&&e.onerror(t)})),Promise.reject(t)}))}))}}})}})}};function Gi(t,e,i){try{if(!e)return null;if(e.keys.length<t.length)return null;for(var n=[],r=0,o=0;r<e.keys.length&&o<t.length;++r)0===Ae(e.keys[r],t[o])&&(n.push(i?k(e.values[r]):e.values[r]),++o);return n.length===t.length?n:null}catch(t){return null}}var Hi={stack:"dbcore",level:-1,create:function(t){return{table:function(i){var n=t.table(i);return e(e({},n),{getMany:function(t){if(!t.cache)return n.getMany(t);var e=Gi(t.keys,t.trans._cache,"clone"===t.cache);return e?It.resolve(e):n.getMany(t).then((function(e){return t.trans._cache={keys:t.keys,values:"clone"===t.cache?k(e):e},e}))},mutate:function(t){return"add"!==t.type&&(t.trans._cache=null),n.mutate(t)}})}}}};function Vi(t,e){return"readonly"===t.trans.mode&&!!t.subscr&&!t.trans.explicit&&"disabled"!==t.trans.db._options.cache&&!e.schema.primaryKey.outbound}function Yi(t,e){switch(t){case"query":return e.values&&!e.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var zi={stack:"dbcore",level:0,name:"Observability",create:function(t){var i=t.schema.name,n=new bi(t.MIN_KEY,t.MAX_KEY);return e(e({},t),{transaction:function(e,i,n){if(yt.subscr&&"readonly"!==i)throw new W.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(yt.querier));return t.transaction(e,i,n)},table:function(r){var s=t.table(r),l=s.schema,A=l.primaryKey,c=l.indexes,h=A.extractKey,d=A.outbound,u=A.autoIncrement&&c.filter((function(t){return t.compound&&t.keyPath.includes(A.keyPath)})),p=e(e({},s),{mutate:function(t){function e(t){return t="idb://".concat(i,"/").concat(r,"/").concat(t),p[t]||(p[t]=new bi)}var o,c,h,d=t.trans,p=t.mutatedParts||(t.mutatedParts={}),g=e(""),f=e(":dels"),m=t.type,y=(v="deleteRange"===t.type?[t.range]:"delete"===t.type?[t.keys]:t.values.length<50?[Ui(A,t).filter((function(t){return t})),t.values]:[])[0],b=v[1],v=t.trans._cache;return a(y)?(g.addKeys(y),(v="delete"===m||y.length===b.length?Gi(y,v):null)||f.addKeys(y),(v||b)&&(o=e,c=v,h=b,l.indexes.forEach((function(t){var e=o(t.name||"");function i(e){return null!=e?t.extractKey(e):null}function n(i){return t.multiEntry&&a(i)?i.forEach((function(t){return e.addKey(t)})):e.addKey(i)}(c||h).forEach((function(t,e){var r=c&&i(c[e]);0!==Ae(r,e=h&&i(h[e]))&&(null!=r&&n(r),null!=e&&n(e))}))})))):y?(b={from:y.lower,to:y.upper},f.add(b),g.add(b)):(g.add(n),f.add(n),l.indexes.forEach((function(t){return e(t.name).add(n)}))),s.mutate(t).then((function(i){return!y||"add"!==t.type&&"put"!==t.type||(g.addKeys(i.results),u&&u.forEach((function(n){var r=t.values.map((function(t){return n.extractKey(t)})),o=n.keyPath.findIndex((function(t){return t===A.keyPath}));i.results.forEach((function(t){return r[o]=t})),e(n.name).addKeys(r)}))),d.mutatedParts=xi(d.mutatedParts||{},p),i}))}}),g={get:function(t){return[A,new bi(t.key)]},getMany:function(t){return[A,(new bi).addKeys(t.keys)]},count:c=function(e){e=(i=e.query).index;var i=i.range;return[e,new bi(null!==(e=i.lower)&&void 0!==e?e:t.MIN_KEY,null!==(i=i.upper)&&void 0!==i?i:t.MAX_KEY)]},query:c,openCursor:c};return o(g).forEach((function(t){p[t]=function(o){var a=!!(p=yt.subscr),l=Vi(yt,s)&&Yi(t,o)?o.obsSet={}:p;if(a){var A=function(t){return t="idb://".concat(i,"/").concat(r,"/").concat(t),l[t]||(l[t]=new bi)},c=A(""),u=A(":dels"),p=(a=(p=g[t](o))[0],p[1]);if(("query"===t&&a.isPrimaryKey&&!o.values?u:A(a.name||"")).add(p),!a.isPrimaryKey){if("count"!==t){var f="query"===t&&d&&o.values&&s.query(e(e({},o),{values:!1}));return s[t].apply(this,arguments).then((function(e){if("query"===t){if(d&&o.values)return f.then((function(t){return t=t.result,c.addKeys(t),e}));var i=o.values?e.result.map(h):e.result;(o.values?c:u).addKeys(i)}else if("openCursor"===t){var n=e,r=o.values;return n&&Object.create(n,{key:{get:function(){return u.addKey(n.primaryKey),n.key}},primaryKey:{get:function(){var t=n.primaryKey;return u.addKey(t),t}},value:{get:function(){return r&&c.addKey(n.primaryKey),n.value}}})}return e}))}u.add(n)}}return s[t].apply(this,arguments)}})),p}})}};function Wi(t,i,n){if(0===n.numFailures)return i;if("deleteRange"===i.type)return null;var r=i.keys?i.keys.length:"values"in i&&i.values?i.values.length:1;return n.numFailures===r?null:(i=e({},i),a(i.keys)&&(i.keys=i.keys.filter((function(t,e){return!(e in n.failures)}))),"values"in i&&a(i.values)&&(i.values=i.values.filter((function(t,e){return!(e in n.failures)}))),i)}function Zi(t,e){return i=t,(void 0===(n=e).lower||(n.lowerOpen?0<Ae(i,n.lower):0<=Ae(i,n.lower)))&&(void 0===e.upper||(e.upperOpen?Ae(t,e.upper)<0:Ae(t,e.upper)<=0));var i,n}function ji(t,e,i,n,r,o){if(!i||0===i.length)return t;var s=e.query.index,l=s.multiEntry,A=e.query.range,c=n.schema.primaryKey.extractKey,h=s.extractKey,d=(s.lowLevelIndex||s).extractKey;return(i=i.reduce((function(t,i){var n=t,r=[];if("add"===i.type||"put"===i.type)for(var o=new bi,s=i.values.length-1;0<=s;--s){var d,u=i.values[s],p=c(u);o.hasKey(p)||(d=h(u),(l&&a(d)?d.some((function(t){return Zi(t,A)})):Zi(d,A))&&(o.addKey(p),r.push(u)))}switch(i.type){case"add":n=t.concat(e.values?r:r.map((function(t){return c(t)})));break;case"put":var g=(new bi).addKeys(i.values.map((function(t){return c(t)})));n=t.filter((function(t){return!g.hasKey(e.values?c(t):t)})).concat(e.values?r:r.map((function(t){return c(t)})));break;case"delete":var f=(new bi).addKeys(i.keys);n=t.filter((function(t){return!f.hasKey(e.values?c(t):t)}));break;case"deleteRange":var m=i.range;n=t.filter((function(t){return!Zi(c(t),m)}))}return n}),t))===t?t:(i.sort((function(t,e){return Ae(d(t),d(e))||Ae(c(t),c(e))})),e.limit&&e.limit<1/0&&(i.length>e.limit?i.length=e.limit:t.length===e.limit&&i.length<e.limit&&(r.dirty=!0)),o?Object.freeze(i):i)}function qi(t,e){return 0===Ae(t.lower,e.lower)&&0===Ae(t.upper,e.upper)&&!!t.lowerOpen==!!e.lowerOpen&&!!t.upperOpen==!!e.upperOpen}function Ji(t,e){return function(t,e,i,n){if(void 0===t)return void 0!==e?-1:0;if(void 0===e)return 1;if(0===(e=Ae(t,e))){if(i&&n)return 0;if(i)return 1;if(n)return-1}return e}(t.lower,e.lower,t.lowerOpen,e.lowerOpen)<=0&&0<=function(t,e,i,n){if(void 0===t)return void 0!==e?1:0;if(void 0===e)return-1;if(0===(e=Ae(t,e))){if(i&&n)return 0;if(i)return-1;if(n)return 1}return e}(t.upper,e.upper,t.upperOpen,e.upperOpen)}function Ki(t,e,i,n){t.subscribers.add(i),n.addEventListener("abort",(function(){var n,r;t.subscribers.delete(i),0===t.subscribers.size&&(n=t,r=e,
setTimeout((function(){0===n.subscribers.size&&T(r,n)}),3e3))}))}var Xi={stack:"dbcore",level:0,name:"Cache",create:function(t){var i=t.schema.name;return e(e({},t),{transaction:function(e,n,r){var o,a,s=t.transaction(e,n,r);return"readwrite"===n&&(a=(o=new AbortController).signal,r=function(r){return function(){if(o.abort(),"readwrite"===n){for(var a=new Set,l=0,A=e;l<A.length;l++){var c=A[l],h=Si["idb://".concat(i,"/").concat(c)];if(h){var d=t.table(c),u=h.optimisticOps.filter((function(t){return t.trans===s}));if(s._explicit&&r&&s.mutatedParts)for(var p=0,g=Object.values(h.queries.query);p<g.length;p++)for(var f=0,m=(v=g[p]).slice();f<m.length;f++)Qi((E=m[f]).obsSet,s.mutatedParts)&&(T(v,E),E.subscribers.forEach((function(t){return a.add(t)})));else if(0<u.length){h.optimisticOps=h.optimisticOps.filter((function(t){return t.trans!==s}));for(var y=0,b=Object.values(h.queries.query);y<b.length;y++)for(var v,E,I,C=0,B=(v=b[y]).slice();C<B.length;C++)null!=(E=B[C]).res&&s.mutatedParts&&(r&&!E.dirty?(I=Object.isFrozen(E.res),I=ji(E.res,E.req,u,d,E,I),E.dirty?(T(v,E),E.subscribers.forEach((function(t){return a.add(t)}))):I!==E.res&&(E.res=I,E.promise=It.resolve({result:I}))):(E.dirty&&T(v,E),E.subscribers.forEach((function(t){return a.add(t)}))))}}}a.forEach((function(t){return t()}))}}},s.addEventListener("abort",r(!1),{signal:a}),s.addEventListener("error",r(!1),{signal:a}),s.addEventListener("complete",r(!0),{signal:a})),s},table:function(n){var r=t.table(n),o=r.schema.primaryKey;return e(e({},r),{mutate:function(t){var a=yt.trans;if(o.outbound||"disabled"===a.db._options.cache||a.explicit)return r.mutate(t);var s=Si["idb://".concat(i,"/").concat(n)];return s?(a=r.mutate(t),"add"!==t.type&&"put"!==t.type||!(50<=t.values.length||Ui(o,t).some((function(t){return null==t})))?(s.optimisticOps.push(t),t.mutatedParts&&_i(t.mutatedParts),a.then((function(e){0<e.numFailures&&(T(s.optimisticOps,t),(e=Wi(0,t,e))&&s.optimisticOps.push(e),t.mutatedParts&&_i(t.mutatedParts))})),a.catch((function(){T(s.optimisticOps,t),t.mutatedParts&&_i(t.mutatedParts)}))):a.then((function(i){var n=Wi(0,e(e({},t),{values:t.values.map((function(t,n){var r;return I(t=null!==(r=o.keyPath)&&void 0!==r&&r.includes(".")?k(t):e({},t),o.keyPath,i.results[n]),t}))}),i);s.optimisticOps.push(n),queueMicrotask((function(){return t.mutatedParts&&_i(t.mutatedParts)}))})),a):r.mutate(t)},query:function(t){if(!Vi(yt,r)||!Yi("query",t))return r.query(t);var e="immutable"===(null===(s=yt.trans)||void 0===s?void 0:s.db._options.cache),o=(A=yt).requery,a=A.signal,s=function(t,e,i,n){var r=Si["idb://".concat(t,"/").concat(e)];if(!r)return[];if(!(e=r.queries[i]))return[null,!1,r,null];var o=e[(n.query?n.query.index.name:null)||""];if(!o)return[null,!1,r,null];switch(i){case"query":var a=o.find((function(t){return t.req.limit===n.limit&&t.req.values===n.values&&qi(t.req.query.range,n.query.range)}));return a?[a,!0,r,o]:[o.find((function(t){return("limit"in t.req?t.req.limit:1/0)>=n.limit&&(!n.values||t.req.values)&&Ji(t.req.query.range,n.query.range)})),!1,r,o];case"count":return[a=o.find((function(t){return qi(t.req.query.range,n.query.range)})),!!a,r,o]}}(i,n,"query",t),l=s[0],A=s[1],c=s[2],h=s[3];return l&&A?l.obsSet=t.obsSet:(A=r.query(t).then((function(t){var i=t.result;if(l&&(l.res=i),e){for(var n=0,r=i.length;n<r;++n)Object.freeze(i[n]);Object.freeze(i)}else t.result=k(i);return t})).catch((function(t){return h&&l&&T(h,l),Promise.reject(t)})),l={obsSet:t.obsSet,promise:A,subscribers:new Set,type:"query",req:t,dirty:!1},h?h.push(l):(h=[l],(c=c||(Si["idb://".concat(i,"/").concat(n)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[t.query.index.name||""]=h)),Ki(l,h,o,a),l.promise.then((function(i){return{result:ji(i.result,t,null==c?void 0:c.optimisticOps,r,l,e)}}))}})}})}};function $i(t,e){return new Proxy(t,{get:function(t,i,n){return"db"===i?e:Reflect.get(t,i,n)}})}var tn=(en.prototype.version=function(t){if(isNaN(t)||t<.1)throw new W.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new W.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,i=e.filter((function(e){return e._cfg.version===t}))[0];return i||(i=new this.Version(t),e.push(i),e.sort(ni),i.stores({}),this._state.autoSchema=!1,i)},en.prototype._whenReady=function(t){var e=this;return this.idbdb&&(this._state.openComplete||yt.letThrough||this._vip)?t():new It((function(t,i){if(e._state.openComplete)return i(new W.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._state.autoOpen)return void i(new W.DatabaseClosed);e.open().catch(q)}e._state.dbReadyPromise.then(t,i)})).then(t)},en.prototype.use=function(t){var e=t.stack,i=t.create,n=t.level,r=t.name;return r&&this.unuse({stack:e,name:r}),(t=this._middlewares[e]||(this._middlewares[e]=[])).push({stack:e,create:i,level:null==n?10:n,name:r}),t.sort((function(t,e){return t.level-e.level})),this},en.prototype.unuse=function(t){var e=t.stack,i=t.name,n=t.create;return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((function(t){return n?t.create!==n:!!i&&t.name!==i}))),this},en.prototype.open=function(){var t=this;return jt(mt,(function(){return Ti(t)}))},en.prototype._close=function(){var t=this._state,e=ee.indexOf(this);if(0<=e&&ee.splice(e,1),this.idbdb){try{this.idbdb.close()}catch(t){}this.idbdb=null}t.isBeingOpened||(t.dbReadyPromise=new It((function(e){t.dbReadyResolve=e})),t.openCanceller=new It((function(e,i){t.cancelOpen=i})))},en.prototype.close=function(t){var e=(void 0===t?{disableAutoOpen:!0}:t).disableAutoOpen;t=this._state,e?(t.isBeingOpened&&t.cancelOpen(new W.DatabaseClosed),this._close(),t.autoOpen=!1,t.dbOpenError=new W.DatabaseClosed):(this._close(),t.autoOpen=this._options.autoOpen||t.isBeingOpened,t.openComplete=!1,t.dbOpenError=null)},en.prototype.delete=function(t){var e=this;void 0===t&&(t={disableAutoOpen:!0});var i=0<arguments.length&&"object"!=typeof arguments[0],n=this._state;return new It((function(r,o){function a(){e.close(t);var i=e._deps.indexedDB.deleteDatabase(e.name);i.onsuccess=Tt((function(){var t,i,n;t=e._deps,i=e.name,n=t.indexedDB,t=t.IDBKeyRange,fi(n)||i===ie||gi(n,t).delete(i).catch(q),r()})),i.onerror=Ne(o),i.onblocked=e._fireOnBlocked}if(i)throw new W.InvalidArgument("Invalid closeOptions argument to db.delete()");n.isBeingOpened?n.dbReadyPromise.then(a):a()}))},en.prototype.backendDB=function(){return this.idbdb},en.prototype.isOpen=function(){return null!==this.idbdb},en.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&"DatabaseClosed"===t.name},en.prototype.hasFailed=function(){return null!==this._state.dbOpenError},en.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(en.prototype,"tables",{get:function(){var t=this;return o(this._allTables).map((function(e){return t._allTables[e]}))},enumerable:!1,configurable:!0}),en.prototype.transaction=function(){var t=function(t,e,i){var n=arguments.length;if(n<2)throw new W.InvalidArgument("Too few arguments");for(var r=new Array(n-1);--n;)r[n-1]=arguments[n];return i=r.pop(),[t,w(r),i]}.apply(this,arguments);return this._transaction.apply(this,t)},en.prototype._transaction=function(t,e,i){var n=this,r=yt.trans;r&&r.db===this&&-1===t.indexOf("!")||(r=null);var o,a,s=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{if(a=e.map((function(t){if("string"!=typeof(t=t instanceof n.Table?t.name:t))throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==t||t===ne)o=ne;else{if("rw"!=t&&t!=re)throw new W.InvalidArgument("Invalid transaction mode: "+t);o=re}if(r){if(r.mode===ne&&o===re){if(!s)throw new W.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&a.forEach((function(t){if(r&&-1===r.storeNames.indexOf(t)){if(!s)throw new W.SubTransaction("Table "+t+" not included in parent transaction.");r=null}})),s&&r&&!r.active&&(r=null)}}catch(t){return r?r._promise(null,(function(e,i){i(t)
})):Kt(t)}var l=function t(e,i,n,r,o){return It.resolve().then((function(){var a=yt.transless||yt,s=e._createTransaction(i,n,e._dbSchema,r);if(s.explicit=!0,a={trans:s,transless:a},r)s.idbtrans=r.idbtrans;else try{s.create(),s.idbtrans._explicit=!0,e._state.PR1398_maxLoop=3}catch(r){return r.name===Y.InvalidState&&e.isOpen()&&0<--e._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return t(e,i,n,null,o)}))):Kt(r)}var l,A=N(o);return A&&Ht(),a=It.follow((function(){var t;(l=o.call(s,s))&&(A?(t=Vt.bind(null,null),l.then(t,t)):"function"==typeof l.next&&"function"==typeof l.throw&&(l=Fi(l)))}),a),(l&&"function"==typeof l.then?It.resolve(l).then((function(t){return s.active?t:Kt(new W.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):a.then((function(){return l}))).then((function(t){return r&&s._resolve(),s._completion.then((function(){return t}))})).catch((function(t){return s._reject(t),Kt(t)}))}))}.bind(null,this,o,a,r,i);return r?r._promise(o,l,"lock"):yt.trans?jt(yt.transless,(function(){return n._whenReady(l)})):this._whenReady(l)},en.prototype.table=function(t){if(!c(this._allTables,t))throw new W.InvalidTable("Table ".concat(t," does not exist"));return this._allTables[t]},en);function en(t,i){var n=this;this._middlewares={},this.verno=0;var r=en.dependencies;this._options=i=e({addons:en.addons,autoOpen:!0,indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange,cache:"cloned"},i),this._deps={indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},r=i.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var o,a,s,l,A,c={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:q,dbReadyPromise:null,cancelOpen:q,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:i.autoOpen};c.dbReadyPromise=new It((function(t){c.dbReadyResolve=t})),c.openCanceller=new It((function(t,e){c.cancelOpen=e})),this._state=c,this.name=t,this.on=pe(this,"populate","blocked","versionchange","close",{ready:[nt,q]}),this.on.ready.subscribe=y(this.on.ready.subscribe,(function(t){return function(e,i){en.vip((function(){var r,o=n._state;o.openComplete?(o.dbOpenError||It.resolve().then(e),i&&t(e)):o.onReadyBeingFired?(o.onReadyBeingFired.push(e),i&&t(e)):(t(e),r=n,i||t((function t(){r.on.ready.unsubscribe(e),r.on.ready.unsubscribe(t)})))}))}})),this.Collection=(o=this,ge(we.prototype,(function(t,e){this.db=o;var i=ae,n=null;if(e)try{i=e()}catch(t){n=t}var r=t._ctx;t=(e=r.table).hook.reading.fire,this._ctx={table:e,index:r.index,isPrimKey:!r.index||e.schema.primKey.keyPath&&r.index===e.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:n,or:r.or,valueMapper:t!==J?t:null}}))),this.Table=(a=this,ge(de.prototype,(function(t,e,i){this.db=a,this._tx=i,this.name=t,this.schema=e,this.hook=a._allTables[t]?a._allTables[t].hook:pe(null,{creating:[$,q],reading:[K,J],updating:[et,q],deleting:[tt,q]})}))),this.Transaction=(s=this,ge(He.prototype,(function(t,e,i,n,r){var o=this;this.db=s,this.mode=t,this.storeNames=e,this.schema=i,this.chromeTransactionDurability=n,this.idbtrans=null,this.on=pe(this,"complete","error","abort"),this.parent=r||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new It((function(t,e){o._resolve=t,o._reject=e})),this._completion.then((function(){o.active=!1,o.on.complete.fire()}),(function(t){var e=o.active;return o.active=!1,o.on.error.fire(t),o.parent?o.parent._reject(t):e&&o.idbtrans&&o.idbtrans.abort(),Kt(t)}))}))),this.Version=(l=this,ge(ui.prototype,(function(t){this.db=l,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))),this.WhereClause=(A=this,ge(Fe.prototype,(function(t,e,i){if(this.db=A,this._ctx={table:t,index:":id"===e?null:e,or:i},this._cmp=this._ascending=Ae,this._descending=function(t,e){return Ae(e,t)},this._max=function(t,e){return 0<Ae(t,e)?t:e},this._min=function(t,e){return Ae(t,e)<0?t:e},this._IDBKeyRange=A._deps.IDBKeyRange,!this._IDBKeyRange)throw new W.MissingAPI}))),this.on("versionchange",(function(t){0<t.newVersion?console.warn("Another connection wants to upgrade database '".concat(n.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(n.name,"'. Closing db now to resume the delete request.")),n.close({disableAutoOpen:!1})})),this.on("blocked",(function(t){!t.newVersion||t.newVersion<t.oldVersion?console.warn("Dexie.delete('".concat(n.name,"') was blocked")):console.warn("Upgrade '".concat(n.name,"' blocked by other connection holding version ").concat(t.oldVersion/10))})),this._maxKey=Ze(i.IDBKeyRange),this._createTransaction=function(t,e,i,r){return new n.Transaction(t,e,i,n._options.chromeTransactionDurability,r)},this._fireOnBlocked=function(t){n.on("blocked").fire(t),ee.filter((function(t){return t.name===n.name&&t!==n&&!t._state.vcFired})).map((function(e){return e.on("versionchange").fire(t)}))},this.use(Hi),this.use(Xi),this.use(zi),this.use(Ni),this.use(Oi);var h=new Proxy(this,{get:function(t,e,i){if("_vip"===e)return!0;if("table"===e)return function(t){return $i(n.table(t),h)};var r=Reflect.get(t,e,i);return r instanceof de?$i(r,h):"tables"===e?r.map((function(t){return $i(t,h)})):"_createTransaction"===e?function(){return $i(r.apply(this,arguments),h)}:r}});this.vip=h,r.forEach((function(t){return t(n)}))}P="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";var nn,rn=(on.prototype.subscribe=function(t,e,i){return this._subscribe(t&&"function"!=typeof t?t:{next:t,error:e,complete:i})},on.prototype[P]=function(){return this},on);function on(t){this._subscribe=t}try{nn={indexedDB:r.indexedDB||r.mozIndexedDB||r.webkitIndexedDB||r.msIndexedDB,IDBKeyRange:r.IDBKeyRange||r.webkitIDBKeyRange}}catch(t){nn={indexedDB:null,IDBKeyRange:null}}function an(t){var e,i=!1,n=new rn((function(n){var r,o=N(t),a=!1,s={},l={},A={get closed(){return a},unsubscribe:function(){a||(a=!0,r&&r.abort(),h&&Ge.storagemutated.unsubscribe(u))}};n.start&&n.start(A);var h=!1,d=function(){return Jt(p)},u=function(t){xi(s,t),Qi(l,s)&&d()},p=function(){var A,p,g;!a&&nn.indexedDB&&(s={},A={},r&&r.abort(),r=new AbortController,g=function(e){var i=Dt();try{o&&Ht();var n=Gt(t,e);return n=o?n.finally(Vt):n}finally{i&&_t()}}(p={subscr:A,signal:r.signal,requery:d,querier:t,trans:null}),Promise.resolve(g).then((function(t){i=!0,e=t,a||p.signal.aborted||(s={},function(t){for(var e in t)if(c(t,e))return;return 1}(l=A)||h||(Ge(Ue,u),h=!0),Jt((function(){return!a&&n.next&&n.next(t)})))}),(function(t){i=!1,["DatabaseClosedError","AbortError"].includes(null==t?void 0:t.name)||a||Jt((function(){a||n.error&&n.error(t)}))})))};return setTimeout(d,0),A}));return n.hasValue=function(){return i},n.getValue=function(){return e},n}var sn=tn;function ln(t){var e=cn;try{cn=!0,Ge.storagemutated.fire(t),Ri(t,!0)}finally{cn=e}}h(sn,e(e({},j),{delete:function(t){return new sn(t,{addons:[]}).delete()},exists:function(t){return new sn(t,{addons:[]}).open().then((function(t){return t.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(t){try{return i=(e=sn.dependencies).indexedDB,e=e.IDBKeyRange,(fi(i)?Promise.resolve(i.databases()).then((function(t){return t.map((function(t){return t.name})).filter((function(t){return t!==ie}))})):gi(i,e).toCollection().primaryKeys()).then(t)}catch(t){return Kt(new W.MissingAPI)}var e,i},defineClass:function(){return function(t){s(this,t)}},ignoreTransaction:function(t){return yt.trans?jt(yt.transless,t):t()},vip:mi,async:function(t){return function(){try{var e=Fi(t.apply(this,arguments));return e&&"function"==typeof e.then?e:It.resolve(e)}catch(t){return Kt(t)}}},spawn:function(t,e,i){try{var n=Fi(t.apply(i,e||[]));return n&&"function"==typeof n.then?n:It.resolve(n)}catch(t){return Kt(t)}},currentTransaction:{get:function(){return yt.trans||null}},
waitFor:function(t,e){return e=It.resolve("function"==typeof t?sn.ignoreTransaction(t):t).timeout(e||6e4),yt.trans?yt.trans.waitFor(e):e},Promise:It,debug:{get:function(){return rt},set:function(t){ot(t)}},derive:p,extend:s,props:h,override:y,Events:pe,on:Ge,liveQuery:an,extendObservabilitySet:xi,getByKeyPath:E,setByKeyPath:I,delByKeyPath:function(t,e){"string"==typeof e?I(t,e,void 0):"length"in e&&[].map.call(e,(function(e){I(t,e,void 0)}))},shallowClone:C,deepClone:k,getObjectDiff:Pi,cmp:Ae,asap:v,minKey:-1/0,addons:[],connections:ee,errnames:Y,dependencies:nn,cache:Si,semVer:"4.0.8",version:"4.0.8".split(".").map((function(t){return parseInt(t)})).reduce((function(t,e,i){return t+e/Math.pow(10,2*i)}))})),sn.maxKey=Ze(sn.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Ge(Ue,(function(t){cn||(t=new CustomEvent(Oe,{detail:t}),cn=!0,dispatchEvent(t),cn=!1)})),addEventListener(Oe,(function(t){t=t.detail,cn||ln(t)})));var An,cn=!1,hn=function(){};return"undefined"!=typeof BroadcastChannel&&((hn=function(){(An=new BroadcastChannel(Oe)).onmessage=function(t){return t.data&&ln(t.data)}})(),"function"==typeof An.unref&&An.unref(),Ge(Ue,(function(t){cn||An.postMessage(t)}))),"undefined"!=typeof addEventListener&&(addEventListener("pagehide",(function(t){if(!tn.disableBfCache&&t.persisted){rt&&console.debug("Dexie: handling persisted pagehide"),null!=An&&An.close();for(var e=0,i=ee;e<i.length;e++)i[e].close({disableAutoOpen:!1})}})),addEventListener("pageshow",(function(t){!tn.disableBfCache&&t.persisted&&(rt&&console.debug("Dexie: handling persisted pageshow"),hn(),ln({all:new bi(-1/0,[[]])}))}))),It.rejectionMapper=function(t,e){return!t||t instanceof O||t instanceof TypeError||t instanceof SyntaxError||!t.name||!Z[t.name]?t:(e=new Z[t.name](e||t.message,t),"stack"in t&&u(e,"stack",{get:function(){return this.inner.stack}}),e)},ot(rt),e(tn,Object.freeze({__proto__:null,Dexie:tn,liveQuery:an,Entity:le,cmp:Ae,PropModSymbol:x,PropModification:Ce,replacePrefix:function(t,e){return new Ce({replacePrefix:[t,e]})},add:function(t){return new Ce({add:t})},remove:function(t){return new Ce({remove:t})},default:tn,RangeSet:bi,mergeRanges:Ei,rangesOverlap:Ii}),{default:tn}),tn}()},12403:function(t,e,i){"use strict";var n=i(29955),r=i(83037),o=[].__proto__===Array.prototype&&r&&r(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof s&&function(t){return s(null==t?t:a(t))}},68050:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},55303:function(t){"use strict";t.exports=EvalError},38174:function(t){"use strict";t.exports=Error},91900:function(t){"use strict";t.exports=RangeError},78452:function(t){"use strict";t.exports=ReferenceError},74027:function(t){"use strict";t.exports=SyntaxError},43669:function(t){"use strict";t.exports=TypeError},83301:function(t){"use strict";t.exports=URIError},464:function(t){"use strict";var e,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(i,n){function r(i){t.removeListener(e,o),n(i)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,i){"function"==typeof t.on&&g(t,"error",e,i)}(t,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function A(t,e,i,n){var r,o,a,A;if(s(i),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),o=t._events),a=o[e]),void 0===a)a=o[e]=i,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),(r=l(t))>0&&a.length>r&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,A=c,console&&console.warn&&console.warn(A)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=c.bind(n);return r.listener=i,n.wrapFn=r,r}function d(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(r):p(r,r.length)}function u(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function p(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function g(t,e,i,n){if("function"==typeof t.on)n.once?t.once(e,i):t.on(e,i);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){n.once&&t.removeEventListener(e,r),i(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else{var A=l.length,c=p(l,A);for(i=0;i<A;++i)n(c[i],this,e)}return!0},o.prototype.addListener=function(t,e){return A(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return A(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var i,n,r,o,a;if(s(e),void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===e||i[o].listener===e){a=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this
;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(r=o[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):u.call(t,e)},o.prototype.listenerCount=u,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},87314:function(t,e,i){"use strict";i.d(e,{qY:function(){return g}});var n=i(23974),r=0,o="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),i=Math.max(0,16.7-(e-r));r=e+i,setTimeout((function(){return t(r)}),i)},a=1/60*1e3,s=!0,l=!1,A=!1,c={delta:0,timestamp:0},h=["read","update","preRender","render","postRender"],d=function(t){return l=t},u=h.reduce((function(t,e){var i,r,o,a,s,l,A,c,h;return t[e]=(i=d,r=[],o=[],a=0,s=!1,l=0,A=new WeakSet,c=new WeakSet,h={cancel:function(t){var e=o.indexOf(t);A.add(t),-1!==e&&o.splice(e,1)},process:function(t){var e,n;if(s=!0,r=(e=[o,r])[0],(o=e[1]).length=0,a=r.length)for(l=0;l<a;l++)(n=r[l])(t),!0!==c.has(n)||A.has(n)||(h.schedule(n),i(!0));s=!1},schedule:function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),(0,n.k)("function"==typeof t,"Argument must be a function");var l=i&&s,h=l?r:o;A.delete(t),e&&c.add(t),-1===h.indexOf(t)&&(h.push(t),l&&(a=r.length))}}),t}),{}),p=h.reduce((function(t,e){var i=u[e];return t[e]=function(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=!1),l||y(),i.schedule(t,e,n),t},t}),{}),g=h.reduce((function(t,e){return t[e]=u[e].cancel,t}),{}),f=function(t){return u[t].process(c)},m=function(t){l=!1,c.delta=s?a:Math.max(Math.min(t-c.timestamp,40),1),s||(a=c.delta),c.timestamp=t,A=!0,h.forEach(f),A=!1,l&&(s=!1,o(m))},y=function(){l=!0,s=!0,A||o(m)};e.ZP=p},71698:function(t){"use strict";var e=Object.prototype.toString,i=Math.max,n=function(t,e){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var r=0;r<e.length;r+=1)i[r+t.length]=e[r];return i};t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,a=function(t,e){for(var i=[],n=e||0,r=0;n<t.length;n+=1,r+=1)i[r]=t[n];return i}(arguments,1),s=i(0,r.length-a.length),l=[],A=0;A<s;A++)l[A]="$"+A;if(o=Function("binder","return function ("+function(t,e){for(var i="",n=0;n<t.length;n+=1)i+=t[n],n+1<t.length&&(i+=e);return i}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=r.apply(this,n(a,arguments));return Object(e)===e?e:this}return r.apply(t,n(a,arguments))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},26668:function(t,e,i){"use strict";var n=i(71698);t.exports=Function.prototype.bind||n},12451:function(t,e,i){"use strict";var n,r=i(38174),o=i(55303),a=i(91900),s=i(78452),l=i(74027),A=i(43669),c=i(83301),h=Function,d=function(t){try{return h('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=i(11611),p=i(68050),g=function(){throw new A},f=u?function(){try{return g}catch(t){try{return u(arguments,"callee").get}catch(t){return g}}}():g,m=i(55476)(),y=i(12403),b="function"==typeof Reflect&&Reflect.getPrototypeOf||Object.getPrototypeOf||y,v=i(64210),E=i(47421),I={},C="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%Object.getOwnPropertyDescriptor%":u,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):n,"%Symbol%":m?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":f,"%TypedArray%":C,"%TypeError%":A,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":E,"%Function.prototype.apply%":v,"%Object.defineProperty%":p};if(b)try{null.error}catch(t){var w=b(b(t));B["%Error.prototype%"]=w}var x=function t(e){var i;if("%AsyncFunction%"===e)i=d("async function () {}");else if("%GeneratorFunction%"===e)i=d("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=d("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&b&&(i=b(r.prototype))}return B[e]=i,i},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],
"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=i(26668),k=i(3313),D=S.call(E,Array.prototype.concat),_=S.call(v,Array.prototype.splice),R=S.call(E,String.prototype.replace),M=S.call(E,String.prototype.slice),T=S.call(E,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,N=function(t,e){var i,n=t;if(k(Q,n)&&(n="%"+(i=Q[n])[0]+"%"),k(B,n)){var r=B[n];if(r===I&&(r=x(n)),void 0===r&&!e)throw new A("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:r}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new A('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(t){var e=M(t,0,1),i=M(t,-1);if("%"===e&&"%"!==i)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return R(t,F,(function(t,e,i,r){n[n.length]=i?R(r,L,"$1"):e||t})),n}(t),n=i.length>0?i[0]:"",r=N("%"+n+"%",e),o=r.name,a=r.value,s=!1,c=r.alias;c&&(n=c[0],_(i,D([0,1],c)));for(var h=1,d=!0;h<i.length;h+=1){var p=i[h],g=M(p,0,1),f=M(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===f||"'"===f||"`"===f)&&g!==f)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),k(B,o="%"+(n+="."+p)+"%"))a=B[o];else if(null!=a){if(!(p in a)){if(!e)throw new A("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=i.length){var m=u(a,p);a=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[p]}else d=k(a,p),a=a[p];d&&!s&&(B[o]=a)}}return a}},35405:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},11611:function(t,e,i){"use strict";var n=i(35405);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},2218:function(t,e,i){var n;!function(r,o,a,s){"use strict";var l,A=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h=Math.round,d=Math.abs,u=Date.now;function p(t,e,i){return setTimeout(E(t,i),e)}function g(t,e,i){return!!Array.isArray(t)&&(f(t,i[e],i),!0)}function f(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==s)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function m(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,n,i),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==s&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var y=m((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===s)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),b=m((function(t,e){return y(t,e,!0)}),"merge","Use `assign`.");function v(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&l(n,i)}function E(t,e){return function(){return t.apply(e,arguments)}}function I(t,e){return"function"==typeof t?t.apply(e&&e[0]||s,e):t}function C(t,e){return t===s?e:t}function B(t,e,i){f(S(e),(function(e){t.addEventListener(e,i,!1)}))}function w(t,e,i){f(S(e),(function(e){t.removeEventListener(e,i,!1)}))}function x(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function Q(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function k(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function D(t){return Array.prototype.slice.call(t,0)}function _(t,e,i){for(var n=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];k(r,a)<0&&n.push(t[o]),r[o]=a,o++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function R(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),o=0;o<A.length;){if((n=(i=A[o])?i+r:e)in t)return n;o++}return s}var M=1;function T(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var F="ontouchstart"in r,L=R(r,"PointerEvent")!==s,N=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),P="touch",U="mouse",O=24,G=["x","y"],H=["clientX","clientY"];function V(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){I(t.options.enable,[t])&&i.handler(e)},this.init()}function Y(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,o=1&e&&n-r==0,a=12&e&&n-r==0;i.isFirst=!!o,i.isFinal=!!a,o&&(t.session={}),i.eventType=e,function(t,e){var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=z(e));r>1&&!i.firstMultiple?i.firstMultiple=z(e):1===r&&(i.firstMultiple=!1);var o=i.firstInput,a=i.firstMultiple,l=a?a.center:o.center,A=e.center=W(n);e.timeStamp=u(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=J(l,A),e.distance=q(l,A),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=j(e.deltaX,e.deltaY);var c=Z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=d(c.x)>d(c.y)?c.x:c.y,e.scale=a?(h=a.pointers,p=n,q(p[0],p[1],H)/q(h[0],h[1],H)):1,e.rotation=a?function(t,e){return J(e[1],e[0],H)+J(t[1],t[0],H)}(a.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(l>25||a.velocity===s)){var A=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,h=Z(l,A,c);n=h.x,r=h.y,i=d(h.x)>d(h.y)?h.x:h.y,o=j(A,c),t.lastInterval=e}else i=a.velocity,n=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=o}(i,e);var h,p;var g=t.element;x(e.srcEvent.target,g)&&(g=e.srcEvent.target);e.target=g}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function z(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:h(t.pointers[i].clientX),clientY:h(t.pointers[i].clientY)},i++;return{timeStamp:u(),
pointers:e,center:W(e),deltaX:t.deltaX,deltaY:t.deltaY}}function W(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:h(i/e),y:h(n/e)}}function Z(t,e,i){return{x:e/t||0,y:i/t||0}}function j(t,e){return t===e?1:d(t)>=d(e)?t<0?2:4:e<0?8:16}function q(t,e,i){i||(i=G);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function J(t,e,i){i||(i=G);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}V.prototype={handler:function(){},init:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(T(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4},X="mousedown",$="mousemove mouseup";function tt(){this.evEl=X,this.evWin=$,this.pressed=!1,V.apply(this,arguments)}v(tt,V,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:U,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},it={2:P,3:"pen",4:U,5:"kinect"},nt="pointerdown",rt="pointermove pointerup pointercancel";function ot(){this.evEl=nt,this.evWin=rt,V.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(nt="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),v(ot,V,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=et[n],o=it[t.pointerType]||t.pointerType,a=o==P,s=k(e,t.pointerId,"pointerId");1&r&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&r&&(i=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),i&&e.splice(s,1))}});var at={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function st(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,V.apply(this,arguments)}function lt(t,e){var i=D(t.touches),n=D(t.changedTouches);return 12&e&&(i=_(i.concat(n),"identifier",!0)),[i,n]}v(st,V,{handler:function(t){var e=at[t.type];if(1===e&&(this.started=!0),this.started){var i=lt.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:P,srcEvent:t})}}});var At={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ct="touchstart touchmove touchend touchcancel";function ht(){this.evTarget=ct,this.targetIds={},V.apply(this,arguments)}function dt(t,e){var i=D(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,o,a=D(t.changedTouches),s=[],l=this.target;if(o=i.filter((function(t){return x(t.target,l)})),1===e)for(r=0;r<o.length;)n[o[r].identifier]=!0,r++;for(r=0;r<a.length;)n[a[r].identifier]&&s.push(a[r]),12&e&&delete n[a[r].identifier],r++;return s.length?[_(o.concat(s),"identifier",!0),s]:void 0}v(ht,V,{handler:function(t){var e=At[t.type],i=dt.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:P,srcEvent:t})}});function ut(){V.apply(this,arguments);var t=E(this.handler,this);this.touch=new ht(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function pt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,gt.call(this,e)):12&t&&gt.call(this,e)}function gt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function ft(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],o=Math.abs(e-r.x),a=Math.abs(i-r.y);if(o<=25&&a<=25)return!0}return!1}v(ut,V,{handler:function(t,e,i){var n=i.pointerType==P,r=i.pointerType==U;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)pt.call(this,e,i);else if(r&&ft.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var mt=R(c.style,"touchAction"),yt=mt!==s,bt="compute",vt="auto",Et="manipulation",It="none",Ct="pan-x",Bt="pan-y",wt=function(){if(!yt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){t[i]=!e||r.CSS.supports("touch-action",i)})),t}();function xt(t,e){this.manager=t,this.set(e)}xt.prototype={set:function(t){t==bt&&(t=this.compute()),yt&&this.manager.element.style&&wt[t]&&(this.manager.element.style[mt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,(function(e){I(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Q(t,It))return It;var e=Q(t,Ct),i=Q(t,Bt);if(e&&i)return It;if(e||i)return e?Ct:Bt;if(Q(t,Et))return Et;return vt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=Q(n,It)&&!wt[It],o=Q(n,Bt)&&!wt[Bt],a=Q(n,Ct)&&!wt[Ct];if(r){var s=1===t.pointers.length,l=t.distance<2,A=t.deltaTime<250;if(s&&l&&A)return}if(!a||!o)return r||o&&6&i||a&&i&O?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Qt=32;function St(t){this.options=l({},this.defaults,t||{}),this.id=M++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function kt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Dt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function _t(t,e){var i=e.manager;return i?i.get(t):t}function Rt(){St.apply(this,arguments)}function Mt(){Rt.apply(this,arguments),this.pX=null,this.pY=null}function Tt(){Rt.apply(this,arguments)}function Ft(){St.apply(this,arguments),this._timer=null,this._input=null}function Lt(){Rt.apply(this,arguments)}function Nt(){Rt.apply(this,arguments)}function Pt(){St.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ut(t,e){return(e=e||{}).recognizers=C(e.recognizers,Ut.defaults.preset),new Ot(t,e)}St.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=_t(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=_t(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===k(e,t=_t(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=_t(t,this);var e=k(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+kt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+kt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Qt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!I(this.options.enable,[this,e]))return this.reset(),void(this.state=Qt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},v(Rt,St,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers
;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,r=this.attrTest(t);return n&&(8&i||!r)?16|e:n||r?4&i?8|e:2&e?4|e:2:Qt}}),v(Mt,Rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(Bt),t&O&&e.push(Ct),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,i=o!=this.pX,n=Math.abs(t.deltaX)):(r=0===a?1:a<0?8:16,i=a!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return Rt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Dt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Tt,Rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[It]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),v(Ft,St,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[vt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Qt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),v(Lt,Rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[It]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Nt,Rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Mt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:i&O&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Dt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(Pt,St,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Et]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&r&&i){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||q(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Qt},failTimeout:function(){return this._timer=p((function(){this.state=Qt}),this.options.interval,this),Qt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ut.VERSION="2.0.7",Ut.defaults={domEvents:!1,touchAction:bt,enable:!0,inputTarget:null,inputClass:null,preset:[[Lt,{enable:!1}],[Tt,{enable:!1},["rotate"]],[Nt,{direction:6}],[Mt,{direction:6},["swipe"]],[Pt],[Pt,{event:"doubletap",taps:2},["tap"]],[Ft]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ot(t,e){var i;this.options=l({},Ut.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(L?ot:N?ht:F?ut:tt))(i,Y),this.touchAction=new xt(this,this.options.touchAction),Gt(this,!0),f(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Gt(t,e){var i,n=t.element;n.style&&(f(t.options.cssProps,(function(r,o){i=R(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}Ot.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o<n.length;)i=n[o],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&14&i.state&&(r=e.curRecognizer=i),o++}},get:function(t){if(t instanceof St)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=k(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var i=this.handlers;return f(S(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==s){var i=this.handlers;return f(S(t),(function(t){e?i[t]&&i[t].splice(k(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=o.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&Gt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Ut,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Qt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:O,DIRECTION_ALL:30,Manager:Ot,Input:V,TouchAction:xt,TouchInput:ht,MouseInput:tt,PointerEventInput:ot,TouchMouseInput:ut,SingleTouchInput:st,Recognizer:St,AttrRecognizer:Rt,Tap:Pt,Pan:Mt,Swipe:Nt,Pinch:Tt,Rotate:Lt,Press:Ft,on:B,off:w,each:f,merge:b,extend:y,assign:l,inherit:v,bindFn:E,prefixed:R}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Ut,(n=function(){return Ut}.call(e,i,e,t))===s||(t.exports=n)}(window,document)},55476:function(t,e,i){"use strict";var n="undefined"!=typeof Symbol&&Symbol,r=i(50002);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},50002:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1
;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},3313:function(t,e,i){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=i(48856);t.exports=o.call(n,r)},23974:function(t,e,i){"use strict";i.d(e,{K:function(){return n},k:function(){return r}});var n=function(){},r=function(){}},87691:function(t){function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},54:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},A=o.push,c=o.indexOf,h={},d=h.toString,u=h.hasOwnProperty,p=u.toString,g=p.call(Object),f={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function(t){return null!=t&&t===t.window},b=n.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function E(t,e,i){var n,r,o=(i=i||b).createElement("script");if(o.text=t,e)for(n in v)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function I(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[d.call(t)]||"object":typeof t}var C="3.5.1",B=function(t,e){return new B.fn.init(t,e)};function w(t){var e=!!t&&"length"in t&&t.length,i=I(t);return!m(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}B.fn=B.prototype={jquery:C,constructor:B,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=B.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return B.each(this,t)},map:function(t){return this.pushStack(B.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(B.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(B.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:A,sort:o.sort,splice:o.splice},B.extend=B.fn.extend=function(){var t,e,i,n,r,o,a=arguments[0]||{},s=1,l=arguments.length,A=!1;for("boolean"==typeof a&&(A=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&a!==n&&(A&&n&&(B.isPlainObject(n)||(r=Array.isArray(n)))?(i=a[e],o=r&&!Array.isArray(i)?[]:r||B.isPlainObject(i)?i:{},r=!1,a[e]=B.extend(A,o,n)):void 0!==n&&(a[e]=n));return a},B.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==d.call(t))&&(!(e=a(t))||"function"==typeof(i=u.call(e,"constructor")&&e.constructor)&&p.call(i)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){E(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(w(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(w(Object(t))?B.merge(i,"string"==typeof t?[t]:t):A.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:c.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,a=!i;r<o;r++)!e(t[r],r)!==a&&n.push(t[r]);return n},map:function(t,e,i){var n,r,o=0,a=[];if(w(t))for(n=t.length;o<n;o++)null!=(r=e(t[o],o,i))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,i))&&a.push(r);return l(a)},guid:1,support:f}),"function"==typeof Symbol&&(B.fn[Symbol.iterator]=o[Symbol.iterator]),B.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));var x=function(t){var e,i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v="sizzle"+1*new Date,E=t.document,I=0,C=0,B=lt(),w=lt(),x=lt(),Q=lt(),S=function(t,e){return t===e&&(h=!0),0},k={}.hasOwnProperty,D=[],_=D.pop,R=D.push,M=D.push,T=D.slice,F=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",P="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+N+"*("+P+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+N+"*\\]",O=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",G=new RegExp(N+"+","g"),H=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),V=new RegExp("^"+N+"*,"+N+"*"),Y=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),z=new RegExp(N+"|>"),W=new RegExp(O),Z=new RegExp("^"+P+"$"),j={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},q=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=vt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(D=T.call(E.childNodes),E.childNodes),D[E.childNodes.length].nodeType}catch(t){M={apply:D.length?function(t,e){R.apply(t,T.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,r){var o,s,A,c,h,p,m,y=e&&e.ownerDocument,E=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==E&&9!==E&&11!==E)return n;if(!r&&(d(e),e=e||u,g)){if(11!==E&&(h=$.exec(t)))if(o=h[1]){if(9===E){if(!(A=e.getElementById(o)))return n;if(A.id===o)return n.push(A),n}else if(y&&(A=y.getElementById(o))&&b(e,A)&&A.id===o)return n.push(A),n}else{if(h[2])return M.apply(n,e.getElementsByTagName(t)),n;if((o=h[3])&&i.getElementsByClassName&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!Q[t+" "]&&(!f||!f.test(t))&&(1!==E||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===E&&(z.test(t)||Y.test(t))){for((y=tt.test(t)&&mt(e.parentNode)||e)===e&&i.scope||((c=e.getAttribute("id"))?c=c.replace(nt,rt):e.setAttribute("id",c=v)),s=(p=a(t)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+bt(p[s]);m=p.join(",")}try{return M.apply(n,y.querySelectorAll(m)),n}catch(e){Q(t,!0)}finally{c===v&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function At(t){return t[v]=!0,t}function ct(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){
for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function dt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ut(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ft(t){return At((function(e){return e=+e,At((function(i,n){for(var r,o=t([],i.length,e),a=o.length;a--;)i[r=o[a]]&&(i[r]=!(n[r]=i[r]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},o=st.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!q.test(e||i&&i.nodeName||"HTML")},d=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:E;return a!=u&&9===a.nodeType&&a.documentElement?(p=(u=a).documentElement,g=!o(u),E!=u&&(r=u.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),i.scope=ct((function(t){return p.appendChild(t).appendChild(u.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ct((function(t){return t.appendChild(u.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=X.test(u.getElementsByClassName),i.getById=ct((function(t){return p.appendChild(t).id=v,!u.getElementsByName||!u.getElementsByName(v).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],f=[],(i.qsa=X.test(u.querySelectorAll))&&(ct((function(t){var e;p.appendChild(t).innerHTML="<a id='"+v+"'></a><select id='"+v+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||f.push("\\["+N+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+v+"-]").length||f.push("~="),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||f.push(":checked"),t.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=u.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&f.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),f.push(",.*:")}))),(i.matchesSelector=X.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",O)})),f=f.length&&new RegExp(f.join("|")),m=m.length&&new RegExp(m.join("|")),e=X.test(p.compareDocumentPosition),b=e||X.test(p.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},S=e?function(t,e){if(t===e)return h=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==u||t.ownerDocument==E&&b(E,t)?-1:e==u||e.ownerDocument==E&&b(E,e)?1:c?F(c,t)-F(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==u?-1:e==u?1:r?-1:o?1:c?F(c,t)-F(c,e):0;if(r===o)return dt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?dt(a[n],s[n]):a[n]==E?-1:s[n]==E?1:0},u):u},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),i.matchesSelector&&g&&!Q[e+" "]&&(!m||!m.test(e))&&(!f||!f.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){Q(e,!0)}return st(e,u,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=u&&d(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=u&&d(t);var r=n.attrHandle[e.toLowerCase()],o=r&&k.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:i.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(nt,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],r=0,o=0;if(h=!i.detectDuplicates,c=!i.sortStable&&t.slice(0),t.sort(S),h){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return c=null,t},r=st.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=st.selectors={cacheLength:50,createPseudo:At,match:j,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return j.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&W.test(i)&&(e=a(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&B(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var r=st.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(G," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){
var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var A,c,h,d,u,p,g=o!==a?"nextSibling":"previousSibling",f=e.parentNode,m=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(f){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?f.firstChild:f.lastChild],a&&y){for(b=(u=(A=(c=(h=(d=f)[v]||(d[v]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===I&&A[1])&&A[2],d=u&&f.childNodes[u];d=++u&&d&&d[g]||(b=u=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){c[t]=[I,u,b];break}}else if(y&&(b=u=(A=(c=(h=(d=e)[v]||(d[v]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===I&&A[1]),!1===b)for(;(d=++u&&d&&d[g]||(b=u=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++b||(y&&((c=(h=d[v]||(d[v]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[I,b]),d!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[v]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?At((function(t,i){for(var n,o=r(t,e),a=o.length;a--;)t[n=F(t,o[a])]=!(i[n]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:At((function(t){var e=[],i=[],n=s(t.replace(H,"$1"));return n[v]?At((function(t,e,i,r){for(var o,a=n(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:At((function(t){return function(e){return st(t,e).length>0}})),contains:At((function(t){return t=t.replace(et,it),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:At((function(t){return Z.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===u.activeElement&&(!u.hasFocus||u.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,i){return[i<0?i+e:i]})),even:ft((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:ft((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:ft((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:ft((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ut(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=pt(e);function yt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function vt(t,e,i){var n=e.dir,r=e.next,o=r||n,a=i&&"parentNode"===o,s=C++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||a)return t(e,i,r);return!1}:function(e,i,l){var A,c,h,d=[I,s];if(l){for(;e=e[n];)if((1===e.nodeType||a)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||a)if(c=(h=e[v]||(e[v]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((A=c[o])&&A[0]===I&&A[1]===s)return d[2]=A[2];if(c[o]=d,d[2]=t(e,i,l))return!0}return!1}}function Et(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function It(t,e,i,n,r){for(var o,a=[],s=0,l=t.length,A=null!=e;s<l;s++)(o=t[s])&&(i&&!i(o,n,r)||(a.push(o),A&&e.push(s)));return a}function Ct(t,e,i,n,r,o){return n&&!n[v]&&(n=Ct(n)),r&&!r[v]&&(r=Ct(r,o)),At((function(o,a,s,l){var A,c,h,d=[],u=[],p=a.length,g=o||function(t,e,i){for(var n=0,r=e.length;n<r;n++)st(t,e[n],i);return i}(e||"*",s.nodeType?[s]:s,[]),f=!t||!o&&e?g:It(g,d,t,s,l),m=i?r||(o?t:p||n)?[]:a:f;if(i&&i(f,m,s,l),n)for(A=It(m,u),n(A,[],s,l),c=A.length;c--;)(h=A[c])&&(m[u[c]]=!(f[u[c]]=h));if(o){if(r||t){if(r){for(A=[],c=m.length;c--;)(h=m[c])&&A.push(f[c]=h);r(null,m=[],A,l)}for(c=m.length;c--;)(h=m[c])&&(A=r?F(o,h):d[c])>-1&&(o[A]=!(a[A]=h))}}else m=It(m===a?m.splice(p,m.length):m),r?r(null,a,m,l):M.apply(a,m)}))}function Bt(t){for(var e,i,r,o=t.length,a=n.relative[t[0].type],s=a||n.relative[" "],l=a?1:0,c=vt((function(t){return t===e}),s,!0),h=vt((function(t){return F(e,t)>-1}),s,!0),d=[function(t,i,n){var r=!a&&(n||i!==A)||((e=i).nodeType?c(t,i,n):h(t,i,n));return e=null,r}];l<o;l++)if(i=n.relative[t[l].type])d=[vt(Et(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[v]){for(r=++l;r<o&&!n.relative[t[r].type];r++);return Ct(l>1&&Et(d),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),i,l<r&&Bt(t.slice(l,r)),r<o&&Bt(t=t.slice(r)),r<o&&bt(t))}d.push(i)}return Et(d)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,a=st.tokenize=function(t,e){var i,r,o,a,s,l,A,c=w[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],A=n.preFilter;s;){for(a in i&&!(r=V.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=Y.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(H," ")}),s=s.slice(i.length)),n.filter)!(r=j[a].exec(s))||A[a]&&!(r=A[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return e?s.length:s?st.error(t):w(t,l).slice(0)},s=st.compile=function(t,e){var i,r=[],o=[],s=x[t+" "];if(!s){for(e||(e=a(t)),i=e.length;i--;)(s=Bt(e[i]))[v]?r.push(s):o.push(s);s=x(t,function(t,e){var i=e.length>0,r=t.length>0,o=function(o,a,s,l,c){var h,p,f,m=0,y="0",b=o&&[],v=[],E=A,C=o||r&&n.find.TAG("*",c),B=I+=null==E?1:Math.random()||.1,w=C.length;for(c&&(A=a==u||a||c);y!==w&&null!=(h=C[y]);y++){if(r&&h){for(p=0,a||h.ownerDocument==u||(d(h),s=!g);f=t[p++];)if(f(h,a||u,s)){l.push(h);break}c&&(I=B)}i&&((h=!f&&h)&&m--,o&&b.push(h))}if(m+=y,i&&y!==m){for(p=0;f=e[p++];)f(b,v,a,s);if(o){if(m>0)for(;y--;)b[y]||v[y]||(v[y]=_.call(l));v=It(v)}M.apply(l,v),c&&!o&&v.length>0&&m+e.length>1&&st.uniqueSort(l)}return c&&(I=B,A=E),b};return i?At(o):o}(o,r)),s.selector=t}return s},l=st.select=function(t,e,i,r){var o,l,A,c,h,d="function"==typeof t&&t,u=!r&&a(t=d.selector||t);if(i=i||[],1===u.length){if((l=u[0]=u[0].slice(0)).length>2&&"ID"===(A=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(A.matches[0].replace(et,it),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=j.needsContext.test(t)?0:l.length;o--&&(A=l[o],!n.relative[c=A.type]);)if((h=n.find[c])&&(r=h(A.matches[0].replace(et,it),tt.test(l[0].type)&&mt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return M.apply(i,r),i;break}}return(d||s(t,u))(r,e,!g,i,!e||tt.test(t)&&mt(e.parentNode)||e),i},i.sortStable=v.split("").sort(S).join("")===v,i.detectDuplicates=!!h,d(),i.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ht(L,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null
})),st}(n);B.find=x,B.expr=x.selectors,B.expr[":"]=B.expr.pseudos,B.uniqueSort=B.unique=x.uniqueSort,B.text=x.getText,B.isXMLDoc=x.isXML,B.contains=x.contains,B.escapeSelector=x.escape;var Q=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&B(t).is(i))break;n.push(t)}return n},S=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},k=B.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var _=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(t,e,i){return m(e)?B.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?B.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?B.grep(t,(function(t){return c.call(e,t)>-1!==i})):B.filter(e,t,i)}B.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?B.find.matchesSelector(n,t)?[n]:[]:B.find.matches(t,B.grep(e,(function(t){return 1===t.nodeType})))},B.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(B(t).filter((function(){for(e=0;e<n;e++)if(B.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)B.find(t,r[e],i);return n>1?B.uniqueSort(i):i},filter:function(t){return this.pushStack(R(this,t||[],!1))},not:function(t){return this.pushStack(R(this,t||[],!0))},is:function(t){return!!R(this,"string"==typeof t&&k.test(t)?B(t):t||[],!1).length}});var M,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(B.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||M,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof B?e[0]:e,B.merge(this,B.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),_.test(n[1])&&B.isPlainObject(e))for(n in e)m(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==i.ready?i.ready(t):t(B):B.makeArray(t,this)}).prototype=B.fn,M=B(b);var F=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}B.fn.extend({has:function(t){var e=B(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(B.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,o=[],a="string"!=typeof t&&B(t);if(!k.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&B.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?B.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(B(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(B.uniqueSort(B.merge(this.get(),B(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),B.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Q(t,"parentNode")},parentsUntil:function(t,e,i){return Q(t,"parentNode",i)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return Q(t,"nextSibling")},prevAll:function(t){return Q(t,"previousSibling")},nextUntil:function(t,e,i){return Q(t,"nextSibling",i)},prevUntil:function(t,e,i){return Q(t,"previousSibling",i)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(D(t,"template")&&(t=t.content||t),B.merge([],t.childNodes))}},(function(t,e){B.fn[t]=function(i,n){var r=B.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=B.filter(n,r)),this.length>1&&(L[t]||B.uniqueSort(r),F.test(t)&&r.reverse()),this.pushStack(r)}}));var P=/[^\x20\t\r\n\f]+/g;function U(t){return t}function O(t){throw t}function G(t,e,i,n){var r;try{t&&m(r=t.promise)?r.call(t).done(e).fail(i):t&&m(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}B.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return B.each(t.match(P)||[],(function(t,i){e[i]=!0})),e}(t):B.extend({},t);var e,i,n,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,n=e=!0;a.length;s=-1)for(i=a.shift();++s<o.length;)!1===o[s].apply(i[0],i[1])&&t.stopOnFalse&&(s=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},A={add:function(){return o&&(i&&!e&&(s=o.length-1,a.push(i)),function e(i){B.each(i,(function(i,n){m(n)?t.unique&&A.has(n)||o.push(n):n&&n.length&&"string"!==I(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return B.each(arguments,(function(t,e){for(var i;(i=B.inArray(e,o,i))>-1;)o.splice(i,1),i<=s&&s--})),this},has:function(t){return t?B.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=a=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],a.push(i),e||l()),this},fire:function(){return A.fireWith(this,arguments),this},fired:function(){return!!n}};return A},B.extend({Deferred:function(t){var e=[["notify","progress",B.Callbacks("memory"),B.Callbacks("memory"),2],["resolve","done",B.Callbacks("once memory"),B.Callbacks("once memory"),0,"resolved"],["reject","fail",B.Callbacks("once memory"),B.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return B.Deferred((function(i){B.each(e,(function(e,n){var r=m(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&m(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function a(t,e,i,r){return function(){var s=this,l=arguments,A=function(){var n,A;if(!(t<o)){if((n=i.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");A=n&&("object"==typeof n||"function"==typeof n)&&n.then,m(A)?r?A.call(n,a(o,e,U,r),a(o,e,O,r)):(o++,A.call(n,a(o,e,U,r),a(o,e,O,r),a(o,e,U,e.notifyWith))):(i!==U&&(s=void 0,l=[n]),(r||e.resolveWith)(s,l))}},c=r?A:function(){try{A()}catch(n){B.Deferred.exceptionHook&&B.Deferred.exceptionHook(n,c.stackTrace),t+1>=o&&(i!==O&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?c():(B.Deferred.getStackHook&&(c.stackTrace=B.Deferred.getStackHook()),n.setTimeout(c))}}return B.Deferred((function(n){e[0][3].add(a(0,n,m(r)?r:U,n.notifyWith)),e[1][3].add(a(0,n,m(t)?t:U)),e[2][3].add(a(0,n,m(i)?i:O))})).promise()},promise:function(t){return null!=t?B.extend(t,r):r}},o={};return B.each(e,(function(t,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add((function(){i=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=s.call(arguments),o=B.Deferred(),a=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?s.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(G(t,o.done(a(i)).resolve,o.reject,!e),"pending"===o.state()||m(r[i]&&r[i].then)))return o.then();for(;i--;)G(r[i],a(i),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;B.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&H.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},B.readyException=function(t){n.setTimeout((function(){throw t}))};var V=B.Deferred();function Y(){b.removeEventListener("DOMContentLoaded",Y),n.removeEventListener("load",Y),B.ready()}B.fn.ready=function(t){return V.then(t).catch((function(t){B.readyException(t)})),this},B.extend({isReady:!1,readyWait:1,ready:function(t){
(!0===t?--B.readyWait:B.isReady)||(B.isReady=!0,!0!==t&&--B.readyWait>0||V.resolveWith(b,[B]))}}),B.ready.then=V.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(B.ready):(b.addEventListener("DOMContentLoaded",Y),n.addEventListener("load",Y));var z=function(t,e,i,n,r,o,a){var s=0,l=t.length,A=null==i;if("object"===I(i))for(s in r=!0,i)z(t,e,s,i[s],!0,o,a);else if(void 0!==n&&(r=!0,m(n)||(a=!0),A&&(a?(e.call(t,n),e=null):(A=e,e=function(t,e,i){return A.call(B(t),i)})),e))for(;s<l;s++)e(t[s],i,a?n:n.call(t[s],s,e(t[s],i)));return r?t:A?e.call(t):l?e(t[0],i):o},W=/^-ms-/,Z=/-([a-z])/g;function j(t,e){return e.toUpperCase()}function q(t){return t.replace(W,"ms-").replace(Z,j)}var J=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=B.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},J(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[q(e)]=i;else for(n in e)r[q(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][q(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(q):(e=q(e))in n?[e]:e.match(P)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||B.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!B.isEmptyObject(e)}};var X=new K,$=new K,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function it(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(i)}catch(t){}$.set(t,e,i)}else i=void 0;return i}B.extend({hasData:function(t){return $.hasData(t)||X.hasData(t)},data:function(t,e,i){return $.access(t,e,i)},removeData:function(t,e){$.remove(t,e)},_data:function(t,e,i){return X.access(t,e,i)},_removeData:function(t,e){X.remove(t,e)}}),B.fn.extend({data:function(t,e){var i,n,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=$.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(n=a[i].name).indexOf("data-")&&(n=q(n.slice(5)),it(o,n,r[n]));X.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){$.set(this,t)})):z(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=$.get(o,t))||void 0!==(i=it(o,t))?i:void 0;this.each((function(){$.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){$.remove(this,t)}))}}),B.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=X.get(t,e),i&&(!n||Array.isArray(i)?n=X.access(t,e,B.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=B.queue(t,e),n=i.length,r=i.shift(),o=B._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,(function(){B.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return X.get(t,i)||X.access(t,i,{empty:B.Callbacks("once memory").add((function(){X.remove(t,[e+"queue",i])}))})}}),B.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?B.queue(this[0],t):void 0===e?this:this.each((function(){var i=B.queue(this,t,e);B._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&B.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){B.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=B.Deferred(),o=this,a=this.length,s=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=X.get(o[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),r.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],at=b.documentElement,st=function(t){return B.contains(t.ownerDocument,t)},lt={composed:!0};at.getRootNode&&(st=function(t){return B.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var At=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&st(t)&&"none"===B.css(t,"display")};function ct(t,e,i,n){var r,o,a=20,s=n?function(){return n.cur()}:function(){return B.css(t,e,"")},l=s(),A=i&&i[3]||(B.cssNumber[e]?"":"px"),c=t.nodeType&&(B.cssNumber[e]||"px"!==A&&+l)&&rt.exec(B.css(t,e));if(c&&c[3]!==A){for(l/=2,A=A||c[3],c=+l||1;a--;)B.style(t,e,c+A),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,B.style(t,e,c+A),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=A,n.start=c,n.end=r)),r}var ht={};function dt(t){var e,i=t.ownerDocument,n=t.nodeName,r=ht[n];return r||(e=i.body.appendChild(i.createElement(n)),r=B.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),ht[n]=r,r)}function ut(t,e){for(var i,n,r=[],o=0,a=t.length;o<a;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=X.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&At(n)&&(r[o]=dt(n))):"none"!==i&&(r[o]="none",X.set(n,"display",i)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}B.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){At(this)?B(this).show():B(this).hide()}))}});var pt,gt,ft=/^(?:checkbox|radio)$/i,mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;pt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),f.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",f.option=!!pt.lastChild;var bt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?B.merge([t],i):i}function Et(t,e){for(var i=0,n=t.length;i<n;i++)X.set(t[i],"globalEval",!e||X.get(e[i],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,f.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var It=/<|&#?\w+;/;function Ct(t,e,i,n,r){for(var o,a,s,l,A,c,h=e.createDocumentFragment(),d=[],u=0,p=t.length;u<p;u++)if((o=t[u])||0===o)if("object"===I(o))B.merge(d,o.nodeType?[o]:o);else if(It.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(mt.exec(o)||["",""])[1].toLowerCase(),l=bt[s]||bt._default,a.innerHTML=l[1]+B.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;B.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",u=0;o=d[u++];)if(n&&B.inArray(o,n)>-1)r&&r.push(o);else if(A=st(o),a=vt(h.appendChild(o),"script"),A&&Et(a),i)for(c=0;o=a[c++];)yt.test(o.type||"")&&i.push(o);return h}var Bt=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function Qt(){return!0}function St(){return!1}function kt(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function Dt(t,e,i,n,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)Dt(t,s,i,n,e[s],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=St;else if(!r)return t;return 1===o&&(a=r,r=function(t){return B().off(t),a.apply(this,arguments)},
r.guid=a.guid||(a.guid=B.guid++)),t.each((function(){B.event.add(this,e,r,n,i)}))}function _t(t,e,i){i?(X.set(t,e,!1),B.event.add(t,e,{namespace:!1,handler:function(t){var n,r,o=X.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(B.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),X.set(this,e,o),n=i(this,e),this[e](),o!==(r=X.get(this,e))||n?X.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r.value}else o.length&&(X.set(this,e,{value:B.event.trigger(B.extend(o[0],B.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===X.get(t,e)&&B.event.add(t,e,Qt)}B.event={global:{},add:function(t,e,i,n,r){var o,a,s,l,A,c,h,d,u,p,g,f=X.get(t);if(J(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&B.find.matchesSelector(at,r),i.guid||(i.guid=B.guid++),(l=f.events)||(l=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(e){return void 0!==B&&B.event.triggered!==e.type?B.event.dispatch.apply(t,arguments):void 0}),A=(e=(e||"").match(P)||[""]).length;A--;)u=g=(s=xt.exec(e[A])||[])[1],p=(s[2]||"").split(".").sort(),u&&(h=B.event.special[u]||{},u=(r?h.delegateType:h.bindType)||u,h=B.event.special[u]||{},c=B.extend({type:u,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&B.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[u])||((d=l[u]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,p,a)||t.addEventListener&&t.addEventListener(u,a)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),B.event.global[u]=!0)},remove:function(t,e,i,n,r){var o,a,s,l,A,c,h,d,u,p,g,f=X.hasData(t)&&X.get(t);if(f&&(l=f.events)){for(A=(e=(e||"").match(P)||[""]).length;A--;)if(u=g=(s=xt.exec(e[A])||[])[1],p=(s[2]||"").split(".").sort(),u){for(h=B.event.special[u]||{},d=l[u=(n?h.delegateType:h.bindType)||u]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&g!==c.origType||i&&i.guid!==c.guid||s&&!s.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(t,c));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,f.handle)||B.removeEvent(t,u,f.handle),delete l[u])}else for(u in l)B.event.remove(t,u+e[A],i,n,!0);B.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,a,s=new Array(arguments.length),l=B.event.fix(t),A=(X.get(this,"events")||Object.create(null))[l.type]||[],c=B.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=B.event.handlers.call(this,l,A),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((B.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,o,a,s=[],l=e.delegateCount,A=t.target;if(l&&A.nodeType&&!("click"===t.type&&t.button>=1))for(;A!==this;A=A.parentNode||this)if(1===A.nodeType&&("click"!==t.type||!0!==A.disabled)){for(o=[],a={},i=0;i<l;i++)void 0===a[r=(n=e[i]).selector+" "]&&(a[r]=n.needsContext?B(r,this).index(A)>-1:B.find(r,this,null,[A]).length),a[r]&&o.push(n);o.length&&s.push({elem:A,handlers:o})}return A=this,l<e.length&&s.push({elem:A,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(B.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[B.expando]?t:new B.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ft.test(e.type)&&e.click&&D(e,"input")&&_t(e,"click",Qt),!1},trigger:function(t){var e=this||t;return ft.test(e.type)&&e.click&&D(e,"input")&&_t(e,"click"),!0},_default:function(t){var e=t.target;return ft.test(e.type)&&e.click&&D(e,"input")&&X.get(e,"click")||D(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},B.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},B.Event=function(t,e){if(!(this instanceof B.Event))return new B.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Qt:St,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&B.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[B.expando]=!0},B.Event.prototype={constructor:B.Event,isDefaultPrevented:St,isPropagationStopped:St,isImmediatePropagationStopped:St,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Qt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Qt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Qt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},B.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Bt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&wt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},B.event.addProp),B.each({focus:"focusin",blur:"focusout"},(function(t,e){B.event.special[t]={setup:function(){return _t(this,t,kt),!1},trigger:function(){return _t(this,t),!0},delegateType:e}})),B.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){B.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||B.contains(this,n))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}})),B.fn.extend({on:function(t,e,i,n){return Dt(this,t,e,i,n)},one:function(t,e,i,n){return Dt(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,B(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=St),this.each((function(){B.event.remove(this,t,i,e)}))}});var Rt=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,Tt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ft(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&B(t).children("tbody")[0]||t}function Lt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var i,n,r,o,a,s;if(1===e.nodeType){if(X.hasData(t)&&(s=X.get(t).events))for(r in X.remove(e,"handle events"),s)for(i=0,n=s[r].length;i<n;i++)B.event.add(e,r,s[r][i]);$.hasData(t)&&(o=$.access(t),a=B.extend({},o),$.set(e,a))}}function Ut(t,e,i,n){e=l(e);var r,o,a,s,A,c,h=0,d=t.length,u=d-1,p=e[0],g=m(p);if(g||d>1&&"string"==typeof p&&!f.checkClone&&Mt.test(p))return t.each((function(r){var o=t.eq(r);g&&(e[0]=p.call(this,r,o.html())),Ut(o,e,i,n)}));if(d&&(o=(r=Ct(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(s=(a=B.map(vt(r,"script"),Lt)).length;h<d;h++)A=r,h!==u&&(A=B.clone(A,!0,!0),s&&B.merge(a,vt(A,"script"))),i.call(t[h],A,h)
;if(s)for(c=a[a.length-1].ownerDocument,B.map(a,Nt),h=0;h<s;h++)A=a[h],yt.test(A.type||"")&&!X.access(A,"globalEval")&&B.contains(c,A)&&(A.src&&"module"!==(A.type||"").toLowerCase()?B._evalUrl&&!A.noModule&&B._evalUrl(A.src,{nonce:A.nonce||A.getAttribute("nonce")},c):E(A.textContent.replace(Tt,""),A,c))}return t}function Ot(t,e,i){for(var n,r=e?B.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||B.cleanData(vt(n)),n.parentNode&&(i&&st(n)&&Et(vt(n,"script")),n.parentNode.removeChild(n));return t}B.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,a,s,l,A,c=t.cloneNode(!0),h=st(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||B.isXMLDoc(t)))for(a=vt(c),n=0,r=(o=vt(t)).length;n<r;n++)s=o[n],l=a[n],A=void 0,"input"===(A=l.nodeName.toLowerCase())&&ft.test(s.type)?l.checked=s.checked:"input"!==A&&"textarea"!==A||(l.defaultValue=s.defaultValue);if(e)if(i)for(o=o||vt(t),a=a||vt(c),n=0,r=o.length;n<r;n++)Pt(o[n],a[n]);else Pt(t,c);return(a=vt(c,"script")).length>0&&Et(a,!h&&vt(t,"script")),c},cleanData:function(t){for(var e,i,n,r=B.event.special,o=0;void 0!==(i=t[o]);o++)if(J(i)){if(e=i[X.expando]){if(e.events)for(n in e.events)r[n]?B.event.remove(i,n):B.removeEvent(i,n,e.handle);i[X.expando]=void 0}i[$.expando]&&(i[$.expando]=void 0)}}}),B.fn.extend({detach:function(t){return Ot(this,t,!0)},remove:function(t){return Ot(this,t)},text:function(t){return z(this,(function(t){return void 0===t?B.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(B.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return B.clone(this,t,e)}))},html:function(t){return z(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!bt[(mt.exec(t)||["",""])[1].toLowerCase()]){t=B.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(B.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var i=this.parentNode;B.inArray(this,t)<0&&(B.cleanData(vt(this)),i&&i.replaceChild(e,this))}),t)}}),B.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){B.fn[t]=function(t){for(var i,n=[],r=B(t),o=r.length-1,a=0;a<=o;a++)i=a===o?this:this.clone(!0),B(r[a])[e](i),A.apply(n,i.get());return this.pushStack(n)}}));var Gt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Ht=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Vt=function(t,e,i){var n,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=o[r];return n},Yt=new RegExp(ot.join("|"),"i");function zt(t,e,i){var n,r,o,a,s=t.style;return(i=i||Ht(t))&&(""!==(a=i.getPropertyValue(e)||i[e])||st(t)||(a=B.style(t,e)),!f.pixelBoxStyles()&&Gt.test(a)&&Yt.test(e)&&(n=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Wt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){A.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",at.appendChild(A).appendChild(c);var t=n.getComputedStyle(c);i="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),at.removeChild(A),c=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,a,s,l,A=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===c.style.backgroundClip,B.extend(f,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,r;return null==s&&(t=b.createElement("table"),e=b.createElement("tr"),i=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",i.style.height="9px",at.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),s=parseInt(r.height)>3,at.removeChild(t)),s}}))}();var Zt=["Webkit","Moz","ms"],jt=b.createElement("div").style,qt={};function Jt(t){var e=B.cssProps[t]||qt[t];return e||(t in jt?t:qt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Zt.length;i--;)if((t=Zt[i]+e)in jt)return t}(t)||t)}var Kt=/^(none|table(?!-c[ea]).+)/,Xt=/^--/,$t={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,i){var n=rt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ie(t,e,i,n,r,o){var a="width"===e?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=B.css(t,i+ot[a],!0,r)),n?("content"===i&&(l-=B.css(t,"padding"+ot[a],!0,r)),"margin"!==i&&(l-=B.css(t,"border"+ot[a]+"Width",!0,r))):(l+=B.css(t,"padding"+ot[a],!0,r),"padding"!==i?l+=B.css(t,"border"+ot[a]+"Width",!0,r):s+=B.css(t,"border"+ot[a]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function ne(t,e,i){var n=Ht(t),r=(!f.boxSizingReliable()||i)&&"border-box"===B.css(t,"boxSizing",!1,n),o=r,a=zt(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(a)){if(!i)return a;a="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&D(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===B.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===B.css(t,"boxSizing",!1,n),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ie(t,e,i||(r?"border":"content"),o,n,a)+"px"}function re(t,e,i,n,r){return new re.prototype.init(t,e,i,n,r)}B.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=zt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=q(e),l=Xt.test(e),A=t.style;if(l||(e=Jt(s)),a=B.cssHooks[e]||B.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(r=a.get(t,!1,n))?r:A[e];"string"===(o=typeof i)&&(r=rt.exec(i))&&r[1]&&(i=ct(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(B.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==i||0!==e.indexOf("background")||(A[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?A.setProperty(e,i):A[e]=i))}},css:function(t,e,i,n){var r,o,a,s=q(e);return Xt.test(e)||(e=Jt(s)),(a=B.cssHooks[e]||B.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,i)),void 0===r&&(r=zt(t,e,n)),"normal"===r&&e in te&&(r=te[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),B.each(["height","width"],(function(t,e){B.cssHooks[e]={get:function(t,i,n){if(i)return!Kt.test(B.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,n):Vt(t,$t,(function(){return ne(t,e,n)}))},set:function(t,i,n){
var r,o=Ht(t),a=!f.scrollboxSize()&&"absolute"===o.position,s=(a||n)&&"border-box"===B.css(t,"boxSizing",!1,o),l=n?ie(t,e,n,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ie(t,e,"border",!1,o)-.5)),l&&(r=rt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=B.css(t,e)),ee(0,i,l)}}})),B.cssHooks.marginLeft=Wt(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-Vt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),B.each({margin:"",padding:"",border:"Width"},(function(t,e){B.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+ot[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(B.cssHooks[t+e].set=ee)})),B.fn.extend({css:function(t,e){return z(this,(function(t,e,i){var n,r,o={},a=0;if(Array.isArray(e)){for(n=Ht(t),r=e.length;a<r;a++)o[e[a]]=B.css(t,e[a],!1,n);return o}return void 0!==i?B.style(t,e,i):B.css(t,e)}),t,e,arguments.length>1)}}),B.Tween=re,re.prototype={constructor:re,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||B.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(B.cssNumber[i]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return t&&t.get?t.get(this):re.propHooks._default.get(this)},run:function(t){var e,i=re.propHooks[this.prop];return this.options.duration?this.pos=e=B.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):re.propHooks._default.set(this),this}},re.prototype.init.prototype=re.prototype,re.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=B.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){B.fx.step[t.prop]?B.fx.step[t.prop](t):1!==t.elem.nodeType||!B.cssHooks[t.prop]&&null==t.elem.style[Jt(t.prop)]?t.elem[t.prop]=t.now:B.style(t.elem,t.prop,t.now+t.unit)}}},re.propHooks.scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},B.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},B.fx=re.prototype.init,B.fx.step={};var oe,ae,se=/^(?:toggle|show|hide)$/,le=/queueHooks$/;function Ae(){ae&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(Ae):n.setTimeout(Ae,B.fx.interval),B.fx.tick())}function ce(){return n.setTimeout((function(){oe=void 0})),oe=Date.now()}function he(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=ot[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function de(t,e,i){for(var n,r=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),o=0,a=r.length;o<a;o++)if(n=r[o].call(i,e,t))return n}function ue(t,e,i){var n,r,o=0,a=ue.prefilters.length,s=B.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=oe||ce(),i=Math.max(0,A.startTime+A.duration-e),n=1-(i/A.duration||0),o=0,a=A.tweens.length;o<a;o++)A.tweens[o].run(n);return s.notifyWith(t,[A,n,i]),n<1&&a?i:(a||s.notifyWith(t,[A,1,0]),s.resolveWith(t,[A]),!1)},A=s.promise({elem:t,props:B.extend({},e),opts:B.extend(!0,{specialEasing:{},easing:B.easing._default},i),originalProperties:e,originalOptions:i,startTime:oe||ce(),duration:i.duration,tweens:[],createTween:function(e,i){var n=B.Tween(t,A.opts,e,i,A.opts.specialEasing[e]||A.opts.easing);return A.tweens.push(n),n},stop:function(e){var i=0,n=e?A.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)A.tweens[i].run(1);return e?(s.notifyWith(t,[A,1,0]),s.resolveWith(t,[A,e])):s.rejectWith(t,[A,e]),this}}),c=A.props;for(!function(t,e){var i,n,r,o,a;for(i in t)if(r=e[n=q(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=B.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}(c,A.opts.specialEasing);o<a;o++)if(n=ue.prefilters[o].call(A,t,c,A.opts))return m(n.stop)&&(B._queueHooks(A.elem,A.opts.queue).stop=n.stop.bind(n)),n;return B.map(c,de,A),m(A.opts.start)&&A.opts.start.call(t,A),A.progress(A.opts.progress).done(A.opts.done,A.opts.complete).fail(A.opts.fail).always(A.opts.always),B.fx.timer(B.extend(l,{elem:t,anim:A,queue:A.opts.queue})),A}B.Animation=B.extend(ue,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ct(i.elem,t,rt.exec(e),i),i}]},tweener:function(t,e){m(t)?(e=t,t=["*"]):t=t.match(P);for(var i,n=0,r=t.length;n<r;n++)i=t[n],ue.tweeners[i]=ue.tweeners[i]||[],ue.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,o,a,s,l,A,c,h="width"in e||"height"in e,d=this,u={},p=t.style,g=t.nodeType&&At(t),f=X.get(t,"fxshow");for(n in i.queue||(null==(a=B._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,B.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[n],se.test(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!f||void 0===f[n])continue;g=!0}u[n]=f&&f[n]||B.style(t,n)}if((l=!B.isEmptyObject(e))||!B.isEmptyObject(u))for(n in h&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(A=f&&f.display)&&(A=X.get(t,"display")),"none"===(c=B.css(t,"display"))&&(A?c=A:(ut([t],!0),A=t.style.display||A,c=B.css(t,"display"),ut([t]))),("inline"===c||"inline-block"===c&&null!=A)&&"none"===B.css(t,"float")&&(l||(d.done((function(){p.display=A})),null==A&&(c=p.display,A="none"===c?"":c)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,u)l||(f?"hidden"in f&&(g=f.hidden):f=X.access(t,"fxshow",{display:A}),o&&(f.hidden=!g),g&&ut([t],!0),d.done((function(){for(n in g||ut([t]),X.remove(t,"fxshow"),u)B.style(t,n,u[n])}))),l=de(g?f[n]:0,n,d),n in f||(f[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ue.prefilters.unshift(t):ue.prefilters.push(t)}}),B.speed=function(t,e,i){var n=t&&"object"==typeof t?B.extend({},t):{complete:i||!i&&e||m(t)&&t,duration:t,easing:i&&e||e&&!m(e)&&e};return B.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in B.fx.speeds?n.duration=B.fx.speeds[n.duration]:n.duration=B.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){m(n.old)&&n.old.call(this),n.queue&&B.dequeue(this,n.queue)},n},B.fn.extend({fadeTo:function(t,e,i,n){return this.filter(At).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=B.isEmptyObject(t),o=B.speed(e,i,n),a=function(){var e=ue(this,B.extend({},t),o);(r||X.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=B.timers,a=X.get(this);if(r)a[r]&&a[r].stop&&n(a[r]);else for(r in a)a[r]&&a[r].stop&&le.test(r)&&n(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||B.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=X.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=B.timers,a=n?n.length:0;for(i.finish=!0,B.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),B.each(["toggle","show","hide"],(function(t,e){var i=B.fn[e];B.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(he(e,!0),t,n,r)}})),B.each({slideDown:he("show"),slideUp:he("hide"),slideToggle:he("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){B.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),B.timers=[],B.fx.tick=function(){var t,e=0,i=B.timers
;for(oe=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||B.fx.stop(),oe=void 0},B.fx.timer=function(t){B.timers.push(t),B.fx.start()},B.fx.interval=13,B.fx.start=function(){ae||(ae=!0,Ae())},B.fx.stop=function(){ae=null},B.fx.speeds={slow:600,fast:200,_default:400},B.fn.delay=function(t,e){return t=B.fx&&B.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var pe,ge=B.expr.attrHandle;B.fn.extend({attr:function(t,e){return z(this,B.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){B.removeAttr(this,t)}))}}),B.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?B.prop(t,e,i):(1===o&&B.isXMLDoc(t)||(r=B.attrHooks[e.toLowerCase()]||(B.expr.match.bool.test(e)?pe:void 0)),void 0!==i?null===i?void B.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=B.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(P);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),pe={set:function(t,e,i){return!1===e?B.removeAttr(t,i):t.setAttribute(i,i),i}},B.each(B.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=ge[e]||B.find.attr;ge[e]=function(t,e,n){var r,o,a=e.toLowerCase();return n||(o=ge[a],ge[a]=r,r=null!=i(t,e,n)?a:null,ge[a]=o),r}}));var fe=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ye(t){return(t.match(P)||[]).join(" ")}function be(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(P)||[]}B.fn.extend({prop:function(t,e){return z(this,B.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[B.propFix[t]||t]}))}}),B.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&B.isXMLDoc(t)||(e=B.propFix[e]||e,r=B.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=B.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(B.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),B.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){B.propFix[this.toLowerCase()]=this})),B.fn.extend({addClass:function(t){var e,i,n,r,o,a,s,l=0;if(m(t))return this.each((function(e){B(this).addClass(t.call(this,e,be(this)))}));if((e=ve(t)).length)for(;i=this[l++];)if(r=be(i),n=1===i.nodeType&&" "+ye(r)+" "){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(s=ye(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,r,o,a,s,l=0;if(m(t))return this.each((function(e){B(this).removeClass(t.call(this,e,be(this)))}));if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;i=this[l++];)if(r=be(i),n=1===i.nodeType&&" "+ye(r)+" "){for(a=0;o=e[a++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(s=ye(n))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):m(t)?this.each((function(i){B(this).toggleClass(t.call(this,i,be(this),e),e)})):this.each((function(){var e,r,o,a;if(n)for(r=0,o=B(this),a=ve(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=be(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+ye(be(i))+" ").indexOf(e)>-1)return!0;return!1}});var Ee=/\r/g;B.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=m(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,B(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=B.map(r,(function(t){return null==t?"":t+""}))),(e=B.valHooks[this.type]||B.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=B.valHooks[r.type]||B.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(Ee,""):null==i?"":i:void 0}}),B.extend({valHooks:{option:{get:function(t){var e=B.find.attr(t,"value");return null!=e?e:ye(B.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(n=o<0?l:a?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=B(i).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var i,n,r=t.options,o=B.makeArray(e),a=r.length;a--;)((n=r[a]).selected=B.inArray(B.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),B.each(["radio","checkbox"],(function(){B.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=B.inArray(B(t).val(),e)>-1}},f.checkOn||(B.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in n;var Ie=/^(?:focusinfocus|focusoutblur)$/,Ce=function(t){t.stopPropagation()};B.extend(B.event,{trigger:function(t,e,i,r){var o,a,s,l,A,c,h,d,p=[i||b],g=u.call(t,"type")?t.type:t,f=u.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Ie.test(g+B.event.triggered)&&(g.indexOf(".")>-1&&(f=g.split("."),g=f.shift(),f.sort()),A=g.indexOf(":")<0&&"on"+g,(t=t[B.expando]?t:new B.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:B.makeArray(e,[t]),h=B.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(i,e))){if(!r&&!h.noBubble&&!y(i)){for(l=h.delegateType||g,Ie.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(i.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?l:h.bindType||g,(c=(X.get(a,"events")||Object.create(null))[t.type]&&X.get(a,"handle"))&&c.apply(a,e),(c=A&&a[A])&&c.apply&&J(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),e)||!J(i)||A&&m(i[g])&&!y(i)&&((s=i[A])&&(i[A]=null),B.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Ce),i[g](),t.isPropagationStopped()&&d.removeEventListener(g,Ce),B.event.triggered=void 0,s&&(i[A]=s)),t.result}},simulate:function(t,e,i){var n=B.extend(new B.Event,i,{type:t,isSimulated:!0});B.event.trigger(n,null,e)}}),B.fn.extend({trigger:function(t,e){return this.each((function(){B.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return B.event.trigger(t,e,i,!0)}}),f.focusin||B.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){B.event.simulate(e,t.target,B.event.fix(t))};B.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=X.access(n,e);r||n.addEventListener(t,i,!0),X.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=X.access(n,e)-1;r?X.access(n,e,r):(n.removeEventListener(t,i,!0),X.remove(n,e))}}}));var Be=n.location,we={guid:Date.now()},xe=/\?/;B.parseXML=function(t){var e
;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||B.error("Invalid XML: "+t),e};var Qe=/\[\]$/,Se=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;function _e(t,e,i,n){var r;if(Array.isArray(e))B.each(e,(function(e,r){i||Qe.test(t)?n(t,r):_e(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)}));else if(i||"object"!==I(e))n(t,e);else for(r in e)_e(t+"["+r+"]",e[r],i,n)}B.param=function(t,e){var i,n=[],r=function(t,e){var i=m(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!B.isPlainObject(t))B.each(t,(function(){r(this.name,this.value)}));else for(i in t)_e(i,t[i],e,r);return n.join("&")},B.fn.extend({serialize:function(){return B.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=B.prop(this,"elements");return t?B.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!B(this).is(":disabled")&&De.test(this.nodeName)&&!ke.test(t)&&(this.checked||!ft.test(t))})).map((function(t,e){var i=B(this).val();return null==i?null:Array.isArray(i)?B.map(i,(function(t){return{name:e.name,value:t.replace(Se,"\r\n")}})):{name:e.name,value:i.replace(Se,"\r\n")}})).get()}});var Re=/%20/g,Me=/#.*$/,Te=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Ne=/^\/\//,Pe={},Ue={},Oe="*/".concat("*"),Ge=b.createElement("a");function He(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(P)||[];if(m(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Ve(t,e,i,n){var r={},o=t===Ue;function a(s){var l;return r[s]=!0,B.each(t[s]||[],(function(t,s){var A=s(e,i,n);return"string"!=typeof A||o||r[A]?o?!(l=A):void 0:(e.dataTypes.unshift(A),a(A),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Ye(t,e){var i,n,r=B.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&B.extend(!0,t,n),t}Ge.href=Be.href,B.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Be.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Oe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":B.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ye(Ye(t,B.ajaxSettings),e):Ye(B.ajaxSettings,t)},ajaxPrefilter:He(Pe),ajaxTransport:He(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,a,s,l,A,c,h,d,u=B.ajaxSetup({},e),p=u.context||u,g=u.context&&(p.nodeType||p.jquery)?B(p):B.event,f=B.Deferred(),m=B.Callbacks("once memory"),y=u.statusCode||{},v={},E={},I="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(A){if(!a)for(a={};e=Fe.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return A?o:null},setRequestHeader:function(t,e){return null==A&&(t=E[t.toLowerCase()]=E[t.toLowerCase()]||t,v[t]=e),this},overrideMimeType:function(t){return null==A&&(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(A)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||I;return i&&i.abort(e),w(0,e),this}};if(f.promise(C),u.url=((t||u.url||Be.href)+"").replace(Ne,Be.protocol+"//"),u.type=e.method||e.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(P)||[""],null==u.crossDomain){l=b.createElement("a");try{l.href=u.url,l.href=l.href,u.crossDomain=Ge.protocol+"//"+Ge.host!=l.protocol+"//"+l.host}catch(t){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=B.param(u.data,u.traditional)),Ve(Pe,u,e,C),A)return C;for(h in(c=B.event&&u.global)&&0==B.active++&&B.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Le.test(u.type),r=u.url.replace(Me,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(Re,"+")):(d=u.url.slice(r.length),u.data&&(u.processData||"string"==typeof u.data)&&(r+=(xe.test(r)?"&":"?")+u.data,delete u.data),!1===u.cache&&(r=r.replace(Te,"$1"),d=(xe.test(r)?"&":"?")+"_="+we.guid+++d),u.url=r+d),u.ifModified&&(B.lastModified[r]&&C.setRequestHeader("If-Modified-Since",B.lastModified[r]),B.etag[r]&&C.setRequestHeader("If-None-Match",B.etag[r])),(u.data&&u.hasContent&&!1!==u.contentType||e.contentType)&&C.setRequestHeader("Content-Type",u.contentType),C.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+Oe+"; q=0.01":""):u.accepts["*"]),u.headers)C.setRequestHeader(h,u.headers[h]);if(u.beforeSend&&(!1===u.beforeSend.call(p,C,u)||A))return C.abort();if(I="abort",m.add(u.complete),C.done(u.success),C.fail(u.error),i=Ve(Ue,u,e,C)){if(C.readyState=1,c&&g.trigger("ajaxSend",[C,u]),A)return C;u.async&&u.timeout>0&&(s=n.setTimeout((function(){C.abort("timeout")}),u.timeout));try{A=!1,i.send(v,w)}catch(t){if(A)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,e,a,l){var h,d,b,v,E,I=e;A||(A=!0,s&&n.clearTimeout(s),i=void 0,o=l||"",C.readyState=t>0?4:0,h=t>=200&&t<300||304===t,a&&(v=function(t,e,i){for(var n,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in s)if(s[r]&&s[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(u,C,a)),!h&&B.inArray("script",u.dataTypes)>-1&&(u.converters["text script"]=function(){}),v=function(t,e,i,n){var r,o,a,s,l,A={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)A[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=A[l+" "+o]||A["* "+o]))for(r in A)if((s=r.split(" "))[1]===o&&(a=A[l+" "+s[0]]||A["* "+s[0]])){!0===a?a=A[r]:!0!==A[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(u,v,C,h),h?(u.ifModified&&((E=C.getResponseHeader("Last-Modified"))&&(B.lastModified[r]=E),(E=C.getResponseHeader("etag"))&&(B.etag[r]=E)),204===t||"HEAD"===u.type?I="nocontent":304===t?I="notmodified":(I=v.state,d=v.data,h=!(b=v.error))):(b=I,!t&&I||(I="error",t<0&&(t=0))),C.status=t,C.statusText=(e||I)+"",h?f.resolveWith(p,[d,I,C]):f.rejectWith(p,[C,I,b]),C.statusCode(y),y=void 0,c&&g.trigger(h?"ajaxSuccess":"ajaxError",[C,u,h?d:b]),m.fireWith(p,[C,I]),c&&(g.trigger("ajaxComplete",[C,u]),--B.active||B.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,i){return B.get(t,e,i,"json")},getScript:function(t,e){return B.get(t,void 0,e,"script")}}),B.each(["get","post"],(function(t,e){B[e]=function(t,i,n,r){return m(i)&&(r=r||n,n=i,i=void 0),B.ajax(B.extend({url:t,type:e,dataType:r,data:i,success:n},B.isPlainObject(t)&&t))}})),B.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),B._evalUrl=function(t,e,i){return B.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){B.globalEval(t,e,i)}})},B.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=B(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t
})).append(this)),this},wrapInner:function(t){return m(t)?this.each((function(e){B(this).wrapInner(t.call(this,e))})):this.each((function(){var e=B(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(i){B(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){B(this).replaceWith(this.childNodes)})),this}}),B.expr.pseudos.hidden=function(t){return!B.expr.pseudos.visible(t)},B.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},B.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},We=B.ajaxSettings.xhr();f.cors=!!We&&"withCredentials"in We,f.ajax=We=!!We,B.ajaxTransport((function(t){var e,i;if(f.cors||We&&!t.crossDomain)return{send:function(r,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(ze[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),i=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),B.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),B.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return B.globalEval(t),t}}}),B.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),B.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=B("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ze,je=[],qe=/(=)\?(?=&|$)|\?\?/;B.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=je.pop()||B.expando+"_"+we.guid++;return this[t]=!0,t}}),B.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,a,s=!1!==t.jsonp&&(qe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(qe,"$1"+r):!1!==t.jsonp&&(t.url+=(xe.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||B.error(r+" was not called"),a[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){a=arguments},i.always((function(){void 0===o?B(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,je.push(r)),a&&m(o)&&o(a[0]),a=o=void 0})),"script"})),f.createHTMLDocument=((Ze=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ze.childNodes.length),B.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(f.createHTMLDocument?((n=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(n)):e=b),o=!i&&[],(r=_.exec(t))?[e.createElement(r[1])]:(r=Ct([t],e,o),o&&o.length&&B(o).remove(),B.merge([],r.childNodes)));var n,r,o},B.fn.load=function(t,e,i){var n,r,o,a=this,s=t.indexOf(" ");return s>-1&&(n=ye(t.slice(s)),t=t.slice(0,s)),m(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&B.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(n?B("<div>").append(B.parseHTML(t)).find(n):t)})).always(i&&function(t,e){a.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},B.expr.pseudos.animated=function(t){return B.grep(B.timers,(function(e){return t===e.elem})).length},B.offset={setOffset:function(t,e,i){var n,r,o,a,s,l,A=B.css(t,"position"),c=B(t),h={};"static"===A&&(t.style.position="relative"),s=c.offset(),o=B.css(t,"top"),l=B.css(t,"left"),("absolute"===A||"fixed"===A)&&(o+l).indexOf("auto")>-1?(a=(n=c.position()).top,r=n.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),m(e)&&(e=e.call(t,i,B.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),c.css(h))}},B.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){B.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===B.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===B.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=B(t).offset()).top+=B.css(t,"borderTopWidth",!0),r.left+=B.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-B.css(n,"marginTop",!0),left:e.left-r.left-B.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===B.css(t,"position");)t=t.offsetParent;return t||at}))}}),B.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;B.fn[t]=function(n){return z(this,(function(t,n,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r}),t,n,arguments.length)}})),B.each(["top","left"],(function(t,e){B.cssHooks[e]=Wt(f.pixelPosition,(function(t,i){if(i)return i=zt(t,e),Gt.test(i)?B(t).position()[e]+"px":i}))})),B.each({Height:"height",Width:"width"},(function(t,e){B.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){B.fn[n]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),s=i||(!0===r||!0===o?"margin":"border");return z(this,(function(e,i,r){var o;return y(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?B.css(e,i,s):B.style(e,i,r,s)}),e,a?r:void 0,a)}}))})),B.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){B.fn[e]=function(t){return this.on(e,t)}})),B.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),B.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){B.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;B.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),m(t))return n=s.call(arguments,2),r=function(){return t.apply(e||this,n.concat(s.call(arguments)))},r.guid=t.guid=t.guid||B.guid++,r},B.holdReady=function(t){t?B.readyWait++:B.ready(!0)},B.isArray=Array.isArray,B.parseJSON=JSON.parse,B.nodeName=D,B.isFunction=m,B.isWindow=y,B.camelCase=q,B.type=I,B.now=Date.now,B.isNumeric=function(t){var e=B.type(t)
;return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},B.trim=function(t){return null==t?"":(t+"").replace(Je,"")},void 0===(i=function(){return B}.apply(e,[]))||(t.exports=i);var Ke=n.jQuery,Xe=n.$;return B.noConflict=function(t){return n.$===B&&(n.$=Xe),t&&n.jQuery===B&&(n.jQuery=Ke),B},void 0===r&&(n.jQuery=n.$=B),B}))},51125:function(t,e,i){t.exports=function t(e,i,n){function r(a,s){if(!i[a]){if(!e[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var A=i[a]={exports:{}};e[a][0].call(A.exports,(function(t){return r(e[a][1][t]||t)}),A,A.exports,t,e,i,n)}return i[a].exports}for(var o=void 0,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,i){"use strict";var n=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var e,i,r,a,s,l,A,c=[],h=0,d=t.length,u=d,p="string"!==n.getTypeOf(t);h<t.length;)u=d-h,r=p?(e=t[h++],i=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),i=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),a=e>>2,s=(3&e)<<4|i>>4,l=1<u?(15&i)<<2|r>>6:64,A=2<u?63&r:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(A));return c.join("")},i.decode=function(t){var e,i,n,a,s,l,A=0,c=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,u=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&u--,t.charAt(t.length-2)===o.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=r.uint8array?new Uint8Array(0|u):new Array(0|u);A<t.length;)e=o.indexOf(t.charAt(A++))<<2|(a=o.indexOf(t.charAt(A++)))>>4,i=(15&a)<<4|(s=o.indexOf(t.charAt(A++)))>>2,n=(3&s)<<6|(l=o.indexOf(t.charAt(A++))),d[c++]=e,64!==s&&(d[c++]=i),64!==l&&(d[c++]=n);return d}},{"./support":30,"./utils":32}],2:[function(t,e,i){"use strict";var n=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,i,n,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=n,this.compressedContent=r}s.prototype={getContentWorker:function(){var t=new r(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,i){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){"use strict";var n=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){"use strict";var n=t("./utils"),r=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,i,n){var o=r,a=n+i;t^=-1;for(var s=n;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}(0|e,t,t.length,0):function(t,e,i,n){var o=r,a=n+i;t^=-1;for(var s=n;s<a;s++)t=t>>>8^o[255&(t^e.charCodeAt(s))];return~t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=n?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},i.compressWorker=function(t){return new l("Deflate",t)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,i){"use strict";function n(t,e){var i,n="";for(i=0;i<e;i++)n+=String.fromCharCode(255&t),t>>>=8;return n}function r(t,e,i,r,a,c){var h,d,u=t.file,p=t.compression,g=c!==s.utf8encode,f=o.transformTo("string",c(u.name)),m=o.transformTo("string",s.utf8encode(u.name)),y=u.comment,b=o.transformTo("string",c(y)),v=o.transformTo("string",s.utf8encode(y)),E=m.length!==u.name.length,I=v.length!==y.length,C="",B="",w="",x=u.dir,Q=u.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!i||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var k=0;e&&(k|=8),g||!E&&!I||(k|=2048);var D,_,R,M=0,T=0;x&&(M|=16),"UNIX"===a?(T=798,M|=(D=u.unixPermissions,_=x,R=D,D||(R=_?16893:33204),(65535&R)<<16)):(T=20,M|=function(t){return 63&(t||0)}(u.dosPermissions)),h=Q.getUTCHours(),h<<=6,h|=Q.getUTCMinutes(),h<<=5,h|=Q.getUTCSeconds()/2,d=Q.getUTCFullYear()-1980,d<<=4,d|=Q.getUTCMonth()+1,d<<=5,d|=Q.getUTCDate(),E&&(B=n(1,1)+n(l(f),4)+m,C+="up"+n(B.length,2)+B),I&&(w=n(1,1)+n(l(b),4)+v,C+="uc"+n(w.length,2)+w);var F="";return F+="\n\0",F+=n(k,2),F+=p.magic,F+=n(h,2),F+=n(d,2),F+=n(S.crc32,4),F+=n(S.compressedSize,4),F+=n(S.uncompressedSize,4),F+=n(f.length,2),F+=n(C.length,2),{fileRecord:A.LOCAL_FILE_HEADER+F+f+C,dirRecord:A.CENTRAL_FILE_HEADER+n(T,2)+F+n(b.length,2)+"\0\0\0\0"+n(M,4)+n(r,4)+f+C+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),A=t("../signature");function c(t,e,i,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(c,a),c.prototype.push=function(t){var e=t.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:i?(e+100*(i-n-1))/i:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var i=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(t){this.accumulate=!1;var e,i=this.streamFiles&&!t.file.dir,o=r(t,i,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(o.dirRecord),i)this.push({data:(e=t,A.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:o.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}})
;var i,r,a,s,l,c,h=this.bytesWritten-t,d=(i=this.dirRecords.length,r=h,a=t,s=this.zipComment,l=this.encodeFileName,c=o.transformTo("string",l(s)),A.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(i,2)+n(i,2)+n(r,4)+n(a,4)+n(c.length,2)+c);this.push({data:d,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var i=0;i<e.length;i++)try{e[i].error(t)}catch(t){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,i){"use strict";var n=t("../compressions"),r=t("./ZipFileWorker");i.generateWorker=function(t,e,i){var o=new r(e.streamFiles,i,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,i){a++;var r=function(t,e){var i=t||e,r=n[i];if(!r)throw new Error(i+" is not a valid compression method !");return r}(i.options.compression,e.compression),s=i.options.compressionOptions||e.compressionOptions||{},l=i.dir,A=i.date;i._compressWorker(r,s).withStreamInfo("file",{name:t,dir:l,date:A,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,i){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new n;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(n.prototype=t("./object")).loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.10.1",n.loadAsync=function(t,e){return(new n).loadAsync(t,e)},n.external=t("./external"),e.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,i){"use strict";var n=t("./utils"),r=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function A(t){return new r.Promise((function(e,i){var n=t.decompressed.getContentWorker().pipe(new s);n.on("error",(function(t){i(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var i=this;return e=n.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var i=new a(e);return i.load(t),i})).then((function(t){var i=[r.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var o=0;o<n.length;o++)i.push(A(n[o]));return r.Promise.all(i)})).then((function(t){for(var r=t.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,A=n.resolve(s.fileNameStr);i.file(A,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(i.file(A).unsafeOriginalName=l)}return r.zipComment.length&&(i.comment=r.zipComment),i}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,i){"use strict";var n=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}n.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,i){"use strict";var n=t("readable-stream").Readable;function r(t,e,i){n.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),i&&i(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,n),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,i){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,i){"use strict";function n(t,e,i){var n,r=o.getTypeOf(e),s=o.extend(i||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(n=p(t))&&f.call(this,n,!0);var h="string"===r&&!1===s.binary&&!1===s.base64;i&&void 0!==i.binary||(s.binary=!h),(e instanceof A&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",r="string");var m=null;m=e instanceof A||e instanceof a?e:d.isNode&&d.isStream(e)?new u(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new c(t,m,s);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),A=t("./compressedObject"),c=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),u=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},f=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||n.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,i,n;for(e in this.files)n=this.files[e],(i=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(i,n)},filter:function(t){var e=[];return this.forEach((function(i,n){t(i,n)&&e.push(n)})),e},file:function(t,e,i){if(1!==arguments.length)return t=this.root+t,n.call(this,t,e,i),this;if(m(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(m(t))return this.filter((function(e,i){return i.dir&&t.test(e)}));var e=this.root+t,i=f.call(this,e),n=this.clone();return n.root=i.name,n},remove:function(t){t=this.root+t;var e=this.files[t]
;if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var i=this.filter((function(e,i){return i.name.slice(0,t.length)===t})),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,i={};try{if((i=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");o.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var n=i.comment||this.comment||"";e=h.generateWorker(this,i,n)}catch(t){(e=new a("error")).error(t)}return new s(e,i.type||"string",i.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,i){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,i){"use strict";var n=t("./DataReader");function r(t){n.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===i&&this.data[o+2]===n&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),i=t.charCodeAt(1),n=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&i===o[1]&&n===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,i){"use strict";var n=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,i=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)i=(i<<8)+this.byteAt(e);return this.index+=t,i},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,i){"use strict";var n=t("./Uint8ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,i){"use strict";var n=t("./DataReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,i){"use strict";var n=t("./ArrayReader");function r(t){n.call(this,t)}t("../utils").inherits(r,n),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,i){"use strict";var n=t("../utils"),r=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new s(t):r.uint8array?new l(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,i){"use strict";var n=t("./GenericWorker"),r=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,i){"use strict";var n=t("./GenericWorker"),r=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,i){"use strict";var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,i){"use strict";var n=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}n.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,i){"use strict";function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){
return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var i=0;i<this._listeners[t].length;i++)this._listeners[t][i].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=n},{}],29:[function(t,e,i){"use strict";var n=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),a=t("../base64"),s=t("../support"),l=t("../external"),A=null;if(s.nodestream)try{A=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function c(t,e){return new l.Promise((function(i,r){var o=[],s=t._internalType,l=t._outputType,A=t._mimeType;t.on("data",(function(t,i){o.push(t),e&&e(i)})).on("error",(function(t){o=[],r(t)})).on("end",(function(){try{var t=function(t,e,i){switch(t){case"blob":return n.newBlob(n.transformTo("arraybuffer",e),i);case"base64":return a.encode(e);default:return n.transformTo(t,e)}}(l,function(t,e){var i,n=0,r=null,o=0;for(i=0;i<e.length;i++)o+=e[i].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(o),i=0;i<e.length;i++)r.set(e[i],n),n+=e[i].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(s,o),A);i(t)}catch(t){r(t)}o=[]})).resume()}))}function h(t,e,i){var a=e;switch(e){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=e,this._mimeType=i,n.checkSupport(a),this._worker=t.pipe(new r(a)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return c(this,t)},on:function(t,e){var i=this;return"data"===t?this._worker.on(t,(function(t){e.call(i,t.data,t.meta)})):this._worker.on(t,(function(){n.delay(e,arguments,i)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new A(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof Buffer,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var n=new ArrayBuffer(0);try{i.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(n),i.blob=0===r.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,i){"use strict";for(var n=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function A(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,i.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,i,n,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(n-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(n=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(n-56320),o++),i<128?e[a++]=i:(i<2048?e[a++]=192|i>>>6:(i<65536?e[a++]=224|i>>>12:(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63),e[a++]=128|i>>>6&63),e[a++]=128|63&i);return e}(t)},i.utf8decode=function(t){return r.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,i,r,o,a=t.length,l=new Array(2*a);for(e=i=0;e<a;)if((r=t[e++])<128)l[i++]=r;else if(4<(o=s[r]))l[i++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<a;)r=r<<6|63&t[e++],o--;1<o?l[i++]=65533:r<65536?l[i++]=r:(r-=65536,l[i++]=55296|r>>10&1023,l[i++]=56320|1023&r)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),n.applyFromCharCode(l)}(t=n.transformTo(r.uint8array?"uint8array":"array",t))},n.inherits(A,a),A.prototype.processChunk=function(t){var e=n.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+s[t[i]]>e?i:e}(e),l=e;a!==e.length&&(r.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:i.utf8decode(l),meta:t.meta})},A.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=A,n.inherits(c,a),c.prototype.processChunk=function(t){this.push({data:i.utf8encode(t.data),meta:t.meta})},i.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,i){"use strict";var n=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var i=0;i<t.length;++i)e[i]=255&t.charCodeAt(i);return e}t("setimmediate"),i.newBlob=function(t,e){i.checkSupport("blob");try{return new Blob([t],{type:e})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var A={stringifyByChunk:function(t,e,i){var n=[],r=0,o=t.length;if(o<=i)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?n.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+i,o)))):n.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+i,o)))),r+=i;return n.join("")},stringifyByChar:function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function c(t){var e=65536,n=i.getTypeOf(t),r=!0
;if("uint8array"===n?r=A.applyCanBeUsed.uint8array:"nodebuffer"===n&&(r=A.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return A.stringifyByChunk(t,n,e)}catch(t){e=Math.floor(e/2)}return A.stringifyByChar(t)}function h(t,e){for(var i=0;i<t.length;i++)e[i]=t[i];return e}i.applyFromCharCode=c;var d={};d.string={string:s,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},d.array={string:c,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:c,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},i.transformTo=function(t,e){if(e=e||"",!t)return e;i.checkSupport(t);var n=i.getTypeOf(e);return d[n][t](e)},i.resolve=function(t){for(var e=t.split("/"),i=[],n=0;n<e.length;n++){var r=e[n];"."===r||""===r&&0!==n&&n!==e.length-1||(".."===r?i.pop():i.push(r))}return i.join("/")},i.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&t instanceof Uint8Array?"uint8array":n.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(t){var e,i,n="";for(i=0;i<(t||"").length;i++)n+="\\x"+((e=t.charCodeAt(i))<16?"0":"")+e.toString(16).toUpperCase();return n},i.delay=function(t,e,i){setImmediate((function(){t.apply(i||null,e||[])}))},i.inherits=function(t,e){function i(){}i.prototype=e.prototype,t.prototype=new i},i.extend=function(){var t,e,i={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===i[e]&&(i[e]=arguments[t][e]);return i},i.prepareContent=function(t,e,o,s,A){return a.Promise.resolve(e).then((function(t){return n.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(e,i){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){i(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){var c,h=i.getTypeOf(e);return h?("arraybuffer"===h?e=i.transformTo("uint8array",e):"string"===h&&(A?e=r.decode(e):o&&!0!==s&&(e=l(c=e,n.uint8array?new Uint8Array(c.length):new Array(c.length)))),e):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,i){"use strict";var n=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var i=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(i),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",i=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,i,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),i=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=e-i;if(0<n)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(t){this.reader=n(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,i){"use strict"
;var n=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),A=t("./support");function c(t,e){this.options=t,this.loadOptions=e}c.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,i;if(t.skip(22),this.fileNameLength=t.readInt(2),i=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,i,n,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),i=t.readInt(2),n=t.readData(i),this.extraFields[e]={id:e,length:i,value:n};t.setIndex(r)},handleUTF8:function(){var t=A.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var i=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=n(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,i){"use strict";function n(t,e,i){this.name=t,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=e,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");n.prototype={internalStream:function(t){var e=null,i="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(i=t.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&n&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,i,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(i,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var A=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<A.length;h++)n.prototype[A[h]]=c;e.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){"use strict";var i,n,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,a=new r(c),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),i=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new t.MessageChannel;l.port1.onmessage=c,i=function(){l.port2.postMessage(0)}}var A=[];function c(){var t,e;n=!0;for(var i=A.length;i;){for(e=A,A=[],t=-1;++t<i;)e[t]();i=A.length}n=!1}e.exports=function(t){1!==A.push(t)||n||i()}}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,i){"use strict";var n=t("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function A(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&u(this,t)}function c(t,e,i){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function h(t,e,i){n((function(){var n;try{n=e(i)}catch(e){return o.reject(t,e)}n===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,n)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function u(t,e){var i=!1;function n(e){i||(i=!0,o.reject(t,e))}function r(e){i||(i=!0,o.resolve(t,e))}var a=p((function(){e(r,n)}));"error"===a.status&&n(a.value)}function p(t,e){var i={};try{i.value=t(e),i.status="success"}catch(t){i.status="error",i.value=t}return i}(e.exports=A).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))},A.prototype.catch=function(t){return this.then(null,t)},A.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var i=new this.constructor(r);return this.state!==l?h(i,this.state===s?t:e,this.outcome):this.queue.push(new c(i,t,e)),i},c.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){
h(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){o.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var i=p(d,e);if("error"===i.status)return o.reject(t,i.value);var n=i.value;if(n)u(t,n);else{t.state=s,t.outcome=e;for(var r=-1,a=t.queue.length;++r<a;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var i=-1,n=t.queue.length;++i<n;)t.queue[i].callRejected(e);return t},A.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},A.reject=function(t){var e=new this(r);return o.reject(e,t)},A.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);for(var a=new Array(i),s=0,l=-1,A=new this(r);++l<i;)c(t[l],l);return A;function c(t,r){e.resolve(t).then((function(t){a[r]=t,++s!==i||n||(n=!0,o.resolve(A,a))}),(function(t){n||(n=!0,o.reject(A,t))}))}},A.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,n=!1;if(!i)return this.resolve([]);for(var a,s=-1,l=new this(r);++s<i;)a=t[s],e.resolve(a).then((function(t){n||(n=!0,o.resolve(l,t))}),(function(t){n||(n=!0,o.reject(l,t))}));return l}},{immediate:36}],38:[function(t,e,i){"use strict";var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,i){"use strict";var n=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString,A=0,c=-1,h=0,d=8;function u(t){if(!(this instanceof u))return new u(t);this.options=r.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==A)throw new Error(a[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(i=n.deflateSetDictionary(this.strm,p))!==A)throw new Error(a[i]);this._dict_set=!0}}function p(t,e){var i=new u(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}u.prototype.push=function(t,e){var i,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(c),s.next_out=0,s.avail_out=c),1!==(i=n.deflate(s,a))&&i!==A)return this.onEnd(i),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==i);return 4===a?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===A):2!==a||(this.onEnd(A),!(s.avail_out=0))},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){t===A&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Deflate=u,i.deflate=p,i.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},i.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,i){"use strict";var n=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),A=t("./zlib/gzheader"),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==a.Z_OK)throw new Error(s[i]);this.header=new A,n.inflateGetHeader(this.strm,this.header)}function d(t,e){var i=new h(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}h.prototype.push=function(t,e){var i,s,l,A,h,d,u=this.strm,p=this.options.chunkSize,g=this.options.dictionary,f=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?u.input=o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new r.Buf8(p),u.next_out=0,u.avail_out=p),(i=n.inflate(u,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,i=n.inflateSetDictionary(this.strm,d)),i===a.Z_BUF_ERROR&&!0===f&&(i=a.Z_OK,f=!1),i!==a.Z_STREAM_END&&i!==a.Z_OK)return this.onEnd(i),!(this.ended=!0);u.next_out&&(0!==u.avail_out&&i!==a.Z_STREAM_END&&(0!==u.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(u.output,u.next_out),A=u.next_out-l,h=o.buf2string(u.output,l),u.next_out=A,u.avail_out=p-A,A&&r.arraySet(u.output,u.output,l,A,0),this.onData(h)):this.onData(r.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(f=!0)}while((0<u.avail_in||0===u.avail_out)&&i!==a.Z_STREAM_END);return i===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(u.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},i.Inflate=h,i.inflate=d,i.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},i.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}}return t},i.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,a;for(e=n=0,i=t.length;e<i;e++)n+=t[e].length;for(a=new Uint8Array(n),e=r=0,i=t.length;e<i;e++)o=t[e],a.set(o,r),r+=o.length;return a}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};i.setTyped=function(t){t?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,r)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(n)},{}],42:[function(t,e,i){"use strict";var n=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e))
;for(var i="",a=0;a<e;a++)i+=String.fromCharCode(t[a]);return i}a[254]=a[254]=1,i.string2buf=function(t){var e,i,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),o=a=0;a<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[a++]=i:(i<2048?e[a++]=192|i>>>6:(i<65536?e[a++]=224|i>>>12:(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63),e[a++]=128|i>>>6&63),e[a++]=128|63&i);return e},i.buf2binstring=function(t){return l(t,t.length)},i.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},i.buf2string=function(t,e){var i,n,r,o,s=e||t.length,A=new Array(2*s);for(i=n=0;i<s;)if((r=t[i++])<128)A[n++]=r;else if(4<(o=a[r]))A[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&i<s;)r=r<<6|63&t[i++],o--;1<o?A[n++]=65533:r<65536?A[n++]=r:(r-=65536,A[n++]=55296|r>>10&1023,A[n++]=56320|1023&r)}return l(A,n)},i.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;0<=i&&128==(192&t[i]);)i--;return i<0||0===i?e:i+a[t[i]]>e?i:e}},{"./common":41}],43:[function(t,e,i){"use strict";e.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,a=0;0!==i;){for(i-=a=2e3<i?2e3:i;o=o+(r=r+e[n++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(t,e,i){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,i){"use strict";var n=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e,i,r){var o=n,a=r+i;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^e[s])];return~t}},{}],46:[function(t,e,i){"use strict";var n,r=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),A=0,c=4,h=0,d=-2,u=-1,p=4,g=2,f=8,m=9,y=286,b=30,v=19,E=2*y+1,I=15,C=3,B=258,w=B+C+1,x=42,Q=113,S=1,k=2,D=3,_=4;function R(t,e){return t.msg=l[e],e}function M(t){return(t<<1)-(4<t?9:0)}function T(t){for(var e=t.length;0<=--e;)t[e]=0}function F(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function L(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,F(t.strm)}function N(t,e){t.pending_buf[t.pending++]=e}function P(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function U(t,e){var i,n,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-w?t.strstart-(t.w_size-w):0,A=t.window,c=t.w_mask,h=t.prev,d=t.strstart+B,u=A[o+a-1],p=A[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(A[(i=e)+a]===p&&A[i+a-1]===u&&A[i]===A[o]&&A[++i]===A[o+1]){o+=2,i++;do{}while(A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&o<d);if(n=B-(d-o),o=d-B,a<n){if(t.match_start=e,s<=(a=n))break;u=A[o+a-1],p=A[o+a]}}}while((e=h[e&c])>l&&0!=--r);return a<=t.lookahead?a:t.lookahead}function O(t){var e,i,n,o,l,A,c,h,d,u,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-w)){for(r.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=i=t.hash_size;n=t.head[--e],t.head[e]=p<=n?n-p:0,--i;);for(e=i=p;n=t.prev[--e],t.prev[e]=p<=n?n-p:0,--i;);o+=p}if(0===t.strm.avail_in)break;if(A=t.strm,c=t.window,h=t.strstart+t.lookahead,u=void 0,(d=o)<(u=A.avail_in)&&(u=d),i=0===u?0:(A.avail_in-=u,r.arraySet(c,A.input,A.next_in,u,h),1===A.state.wrap?A.adler=a(A.adler,c,u,h):2===A.state.wrap&&(A.adler=s(A.adler,c,u,h)),A.next_in+=u,A.total_in+=u,u),t.lookahead+=i,t.lookahead+t.insert>=C)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+C-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<C)););}while(t.lookahead<w&&0!==t.strm.avail_in)}function G(t,e){for(var i,n;;){if(t.lookahead<w){if(O(t),t.lookahead<w&&e===A)return S;if(0===t.lookahead)break}if(i=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-w&&(t.match_length=U(t,i)),t.match_length>=C)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(L(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<C-1?t.strstart:C-1,e===c?(L(t,!0),0===t.strm.avail_out?D:_):t.last_lit&&(L(t,!1),0===t.strm.avail_out)?S:k}function H(t,e){for(var i,n,r;;){if(t.lookahead<w){if(O(t),t.lookahead<w&&e===A)return S;if(0===t.lookahead)break}if(i=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=C-1,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-w&&(t.match_length=U(t,i),t.match_length<=5&&(1===t.strategy||t.match_length===C&&4096<t.strstart-t.match_start)&&(t.match_length=C-1)),t.prev_length>=C&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-C,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=C-1,t.strstart++,n&&(L(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&L(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<C-1?t.strstart:C-1,e===c?(L(t,!0),0===t.strm.avail_out?D:_):t.last_lit&&(L(t,!1),0===t.strm.avail_out)?S:k}function V(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function Y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=f,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*E),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*v+1)),T(this.dyn_ltree),T(this.dyn_dtree),T(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(I+1),this.heap=new r.Buf16(2*y+1),T(this.heap),
this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*y+1),T(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function z(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?x:Q,t.adler=2===e.wrap?0:1,e.last_flush=A,o._tr_init(e),h):R(t,d)}function W(t){var e,i=z(t);return i===h&&((e=t.state).window_size=2*e.w_size,T(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=C-1,e.match_available=0,e.ins_h=0),i}function Z(t,e,i,n,o,a){if(!t)return d;var s=1;if(e===u&&(e=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),o<1||m<o||i!==f||n<8||15<n||e<0||9<e||a<0||p<a)return R(t,d);8===n&&(n=9);var l=new Y;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+C-1)/C),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=i,W(t)}n=[new V(0,0,0,0,(function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(O(t),0===t.lookahead&&e===A)return S;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,L(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-w&&(L(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===c?(L(t,!0),0===t.strm.avail_out?D:_):(t.strstart>t.block_start&&(L(t,!1),t.strm.avail_out),S)})),new V(4,4,8,4,G),new V(4,5,16,8,G),new V(4,6,32,32,G),new V(4,4,16,16,H),new V(8,16,32,32,H),new V(8,16,128,128,H),new V(8,32,128,256,H),new V(32,128,258,1024,H),new V(32,258,258,4096,H)],i.deflateInit=function(t,e){return Z(t,e,f,15,8,0)},i.deflateInit2=Z,i.deflateReset=W,i.deflateResetKeep=z,i.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,h):d},i.deflate=function(t,e){var i,r,a,l;if(!t||!t.state||5<e||e<0)return t?R(t,d):d;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==c)return R(t,0===t.avail_out?-5:d);if(r.strm=t,i=r.last_flush,r.last_flush=e,r.status===x)if(2===r.wrap)t.adler=0,N(r,31),N(r,139),N(r,8),r.gzhead?(N(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),N(r,255&r.gzhead.time),N(r,r.gzhead.time>>8&255),N(r,r.gzhead.time>>16&255),N(r,r.gzhead.time>>24&255),N(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),N(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(N(r,255&r.gzhead.extra.length),N(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(N(r,0),N(r,0),N(r,0),N(r,0),N(r,0),N(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),N(r,3),r.status=Q);else{var u=f+(r.w_bits-8<<4)<<8;u|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(u|=32),u+=31-u%31,r.status=Q,P(r,u),0!==r.strstart&&(P(r,t.adler>>>16),P(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),F(t),a=r.pending,r.pending!==r.pending_buf_size));)N(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),F(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,N(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),F(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,N(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&F(t),r.pending+2<=r.pending_buf_size&&(N(r,255&t.adler),N(r,t.adler>>8&255),t.adler=0,r.status=Q)):r.status=Q),0!==r.pending){if(F(t),0===t.avail_out)return r.last_flush=-1,h}else if(0===t.avail_in&&M(e)<=M(i)&&e!==c)return R(t,-5);if(666===r.status&&0!==t.avail_in)return R(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==A&&666!==r.status){var p=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(O(t),0===t.lookahead)){if(e===A)return S;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(L(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===c?(L(t,!0),0===t.strm.avail_out?D:_):t.last_lit&&(L(t,!1),0===t.strm.avail_out)?S:k}(r,e):3===r.strategy?function(t,e){for(var i,n,r,a,s=t.window;;){if(t.lookahead<=B){if(O(t),t.lookahead<=B&&e===A)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=C&&0<t.strstart&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){a=t.strstart+B;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<a);t.match_length=B-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=C?(i=o._tr_tally(t,1,t.match_length-C),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(L(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===c?(L(t,!0),0===t.strm.avail_out?D:_):t.last_lit&&(L(t,!1),0===t.strm.avail_out)?S:k}(r,e):n[r.level].func(r,e);if(p!==D&&p!==_||(r.status=666),p===S||p===D)return 0===t.avail_out&&(r.last_flush=-1),h;if(p===k&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(T(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),F(t),0===t.avail_out))return r.last_flush=-1,h}return e!==c?h:r.wrap<=0?1:(2===r.wrap?(N(r,255&t.adler),N(r,t.adler>>8&255),N(r,t.adler>>16&255),N(r,t.adler>>24&255),N(r,255&t.total_in),N(r,t.total_in>>8&255),N(r,t.total_in>>16&255),N(r,t.total_in>>24&255)):(P(r,t.adler>>>16),P(r,65535&t.adler)),F(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?h:1)},i.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==x&&69!==e&&73!==e&&91!==e&&103!==e&&e!==Q&&666!==e?R(t,d):(t.state=null,e===Q?R(t,-3):h):d},i.deflateSetDictionary=function(t,e){var i,n,o,s,l,A,c,u,p=e.length;if(!t||!t.state)return d;if(2===(s=(i=t.state).wrap)||1===s&&i.status!==x||i.lookahead)return d;for(1===s&&(t.adler=a(t.adler,e,p,0)),i.wrap=0,p>=i.w_size&&(0===s&&(T(i.head),i.strstart=0,i.block_start=0,i.insert=0),u=new r.Buf8(i.w_size),r.arraySet(u,e,p-i.w_size,i.w_size,0),e=u,p=i.w_size),l=t.avail_in,A=t.next_in,c=t.input,t.avail_in=p,t.next_in=0,t.input=e,O(i);i.lookahead>=C;){for(n=i.strstart,o=i.lookahead-(C-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+C-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++,--o;);i.strstart=n,i.lookahead=C-1,O(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=C-1,i.match_available=0,t.next_in=A,t.input=c,t.avail_in=l,i.wrap=s,h},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],
47:[function(t,e,i){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,i){"use strict";e.exports=function(t,e){var i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B,w,x;i=t.state,n=t.next_in,w=t.input,r=n+(t.avail_in-5),o=t.next_out,x=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=i.dmax,A=i.wsize,c=i.whave,h=i.wnext,d=i.window,u=i.hold,p=i.bits,g=i.lencode,f=i.distcode,m=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(u+=w[n++]<<p,p+=8,u+=w[n++]<<p,p+=8),b=g[u&m];e:for(;;){if(u>>>=v=b>>>24,p-=v,0==(v=b>>>16&255))x[o++]=65535&b;else{if(!(16&v)){if(!(64&v)){b=g[(65535&b)+(u&(1<<v)-1)];continue e}if(32&v){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}E=65535&b,(v&=15)&&(p<v&&(u+=w[n++]<<p,p+=8),E+=u&(1<<v)-1,u>>>=v,p-=v),p<15&&(u+=w[n++]<<p,p+=8,u+=w[n++]<<p,p+=8),b=f[u&y];i:for(;;){if(u>>>=v=b>>>24,p-=v,!(16&(v=b>>>16&255))){if(!(64&v)){b=f[(65535&b)+(u&(1<<v)-1)];continue i}t.msg="invalid distance code",i.mode=30;break t}if(I=65535&b,p<(v&=15)&&(u+=w[n++]<<p,(p+=8)<v&&(u+=w[n++]<<p,p+=8)),l<(I+=u&(1<<v)-1)){t.msg="invalid distance too far back",i.mode=30;break t}if(u>>>=v,p-=v,(v=o-a)<I){if(c<(v=I-v)&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(B=d,(C=0)===h){if(C+=A-v,v<E){for(E-=v;x[o++]=d[C++],--v;);C=o-I,B=x}}else if(h<v){if(C+=A+h-v,(v-=h)<E){for(E-=v;x[o++]=d[C++],--v;);if(C=0,h<E){for(E-=v=h;x[o++]=d[C++],--v;);C=o-I,B=x}}}else if(C+=h-v,v<E){for(E-=v;x[o++]=d[C++],--v;);C=o-I,B=x}for(;2<E;)x[o++]=B[C++],x[o++]=B[C++],x[o++]=B[C++],E-=3;E&&(x[o++]=B[C++],1<E&&(x[o++]=B[C++]))}else{for(C=o-I;x[o++]=x[C++],x[o++]=x[C++],x[o++]=x[C++],2<(E-=3););E&&(x[o++]=x[C++],1<E&&(x[o++]=x[C++]))}break}}break}}while(n<r&&o<s);n-=E=p>>3,u&=(1<<(p-=E<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<s?s-o+257:257-(o-s),i.hold=u,i.bits=p}},{}],49:[function(t,e,i){"use strict";var n=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=1,A=2,c=0,h=-2,d=1,u=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(u),e.distcode=e.distdyn=new n.Buf32(p),e.sane=1,e.back=-1,c):h}function y(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,m(t)):h}function b(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,y(t))):h}function v(t,e){var i,n;return t?(n=new f,(t.state=n).window=null,(i=b(t,e))!==c&&(t.state=null),i):h}var E,I,C=!0;function B(t){if(C){var e;for(E=new n.Buf32(512),I=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,E,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(A,t.lens,0,32,I,0,t.work,{bits:5}),C=!1}t.lencode=E,t.lenbits=9,t.distcode=I,t.distbits=5}function w(t,e,i,r){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),r>=a.wsize?(n.arraySet(a.window,e,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),n.arraySet(a.window,e,i-r,o,a.wnext),(r-=o)?(n.arraySet(a.window,e,i-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}i.inflateReset=y,i.inflateReset2=b,i.inflateResetKeep=m,i.inflateInit=function(t){return v(t,15)},i.inflateInit2=v,i.inflate=function(t,e){var i,u,p,f,m,y,b,v,E,I,C,x,Q,S,k,D,_,R,M,T,F,L,N,P,U=0,O=new n.Buf8(4),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(i=t.state).mode&&(i.mode=13),m=t.next_out,p=t.output,b=t.avail_out,f=t.next_in,u=t.input,y=t.avail_in,v=i.hold,E=i.bits,I=y,C=b,L=c;t:for(;;)switch(i.mode){case d:if(0===i.wrap){i.mode=13;break}for(;E<16;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(2&i.wrap&&35615===v){O[i.check=0]=255&v,O[1]=v>>>8&255,i.check=o(i.check,O,2,0),E=v=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&v)<<8)+(v>>8))%31){t.msg="incorrect header check",i.mode=30;break}if(8!=(15&v)){t.msg="unknown compression method",i.mode=30;break}if(E-=4,F=8+(15&(v>>>=4)),0===i.wbits)i.wbits=F;else if(F>i.wbits){t.msg="invalid window size",i.mode=30;break}i.dmax=1<<F,t.adler=i.check=1,i.mode=512&v?10:12,E=v=0;break;case 2:for(;E<16;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(i.flags=v,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=v>>8&1),512&i.flags&&(O[0]=255&v,O[1]=v>>>8&255,i.check=o(i.check,O,2,0)),E=v=0,i.mode=3;case 3:for(;E<32;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}i.head&&(i.head.time=v),512&i.flags&&(O[0]=255&v,O[1]=v>>>8&255,O[2]=v>>>16&255,O[3]=v>>>24&255,i.check=o(i.check,O,4,0)),E=v=0,i.mode=4;case 4:for(;E<16;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}i.head&&(i.head.xflags=255&v,i.head.os=v>>8),512&i.flags&&(O[0]=255&v,O[1]=v>>>8&255,i.check=o(i.check,O,2,0)),E=v=0,i.mode=5;case 5:if(1024&i.flags){for(;E<16;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}i.length=v,i.head&&(i.head.extra_len=v),512&i.flags&&(O[0]=255&v,O[1]=v>>>8&255,i.check=o(i.check,O,2,0)),E=v=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(y<(x=i.length)&&(x=y),x&&(i.head&&(F=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,u,f,x,F)),512&i.flags&&(i.check=o(i.check,u,x,f)),y-=x,f+=x,i.length-=x),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===y)break t;for(x=0;F=u[f+x++],i.head&&F&&i.length<65536&&(i.head.name+=String.fromCharCode(F)),F&&x<y;);if(512&i.flags&&(i.check=o(i.check,u,x,f)),y-=x,f+=x,F)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===y)break t;for(x=0;F=u[f+x++],i.head&&F&&i.length<65536&&(i.head.comment+=String.fromCharCode(F)),F&&x<y;);if(512&i.flags&&(i.check=o(i.check,u,x,f)),y-=x,f+=x,F)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;E<16;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(v!==(65535&i.check)){t.msg="header crc mismatch",i.mode=30;break}E=v=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=12;break;case 10:for(;E<32;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}t.adler=i.check=g(v),E=v=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=m,t.avail_out=b,t.next_in=f,t.avail_in=y,i.hold=v,i.bits=E,2;t.adler=i.check=1,i.mode=12;case 12:if(5===e||6===e)break t;case 13:if(i.last){v>>>=7&E,E-=7&E,i.mode=27;break}for(;E<3;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}switch(i.last=1&v,E-=1,3&(v>>>=1)){case 0:i.mode=14;break;case 1:if(B(i),i.mode=20,6!==e)break;v>>>=2,E-=2;break t;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=30}v>>>=2,E-=2;break;case 14:for(v>>>=7&E,E-=7&E;E<32;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if((65535&v)!=(v>>>16^65535)){t.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&v,E=v=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(x=i.length){if(y<x&&(x=y),b<x&&(x=b),0===x)break t;n.arraySet(p,u,f,x,m),y-=x,f+=x,b-=x,m+=x,i.length-=x;break}i.mode=12;break;case 17:for(;E<14;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(i.nlen=257+(31&v),v>>>=5,E-=5,i.ndist=1+(31&v),v>>>=5,E-=5,
i.ncode=4+(15&v),v>>>=4,E-=4,286<i.nlen||30<i.ndist){t.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;E<3;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}i.lens[G[i.have++]]=7&v,v>>>=3,E-=3}for(;i.have<19;)i.lens[G[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,N={bits:i.lenbits},L=s(0,i.lens,0,19,i.lencode,0,i.work,N),i.lenbits=N.bits,L){t.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;D=(U=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,_=65535&U,!((k=U>>>24)<=E);){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(_<16)v>>>=k,E-=k,i.lens[i.have++]=_;else{if(16===_){for(P=k+2;E<P;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(v>>>=k,E-=k,0===i.have){t.msg="invalid bit length repeat",i.mode=30;break}F=i.lens[i.have-1],x=3+(3&v),v>>>=2,E-=2}else if(17===_){for(P=k+3;E<P;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}E-=k,F=0,x=3+(7&(v>>>=k)),v>>>=3,E-=3}else{for(P=k+7;E<P;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}E-=k,F=0,x=11+(127&(v>>>=k)),v>>>=7,E-=7}if(i.have+x>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=30;break}for(;x--;)i.lens[i.have++]=F}}if(30===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,N={bits:i.lenbits},L=s(l,i.lens,0,i.nlen,i.lencode,0,i.work,N),i.lenbits=N.bits,L){t.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,N={bits:i.distbits},L=s(A,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,N),i.distbits=N.bits,L){t.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(6<=y&&258<=b){t.next_out=m,t.avail_out=b,t.next_in=f,t.avail_in=y,i.hold=v,i.bits=E,a(t,C),m=t.next_out,p=t.output,b=t.avail_out,f=t.next_in,u=t.input,y=t.avail_in,v=i.hold,E=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;D=(U=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,_=65535&U,!((k=U>>>24)<=E);){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(D&&!(240&D)){for(R=k,M=D,T=_;D=(U=i.lencode[T+((v&(1<<R+M)-1)>>R)])>>>16&255,_=65535&U,!(R+(k=U>>>24)<=E);){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}v>>>=R,E-=R,i.back+=R}if(v>>>=k,E-=k,i.back+=k,i.length=_,0===D){i.mode=26;break}if(32&D){i.back=-1,i.mode=12;break}if(64&D){t.msg="invalid literal/length code",i.mode=30;break}i.extra=15&D,i.mode=22;case 22:if(i.extra){for(P=i.extra;E<P;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}i.length+=v&(1<<i.extra)-1,v>>>=i.extra,E-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;D=(U=i.distcode[v&(1<<i.distbits)-1])>>>16&255,_=65535&U,!((k=U>>>24)<=E);){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(!(240&D)){for(R=k,M=D,T=_;D=(U=i.distcode[T+((v&(1<<R+M)-1)>>R)])>>>16&255,_=65535&U,!(R+(k=U>>>24)<=E);){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}v>>>=R,E-=R,i.back+=R}if(v>>>=k,E-=k,i.back+=k,64&D){t.msg="invalid distance code",i.mode=30;break}i.offset=_,i.extra=15&D,i.mode=24;case 24:if(i.extra){for(P=i.extra;E<P;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}i.offset+=v&(1<<i.extra)-1,v>>>=i.extra,E-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===b)break t;if(x=C-b,i.offset>x){if((x=i.offset-x)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=30;break}Q=x>i.wnext?(x-=i.wnext,i.wsize-x):i.wnext-x,x>i.length&&(x=i.length),S=i.window}else S=p,Q=m-i.offset,x=i.length;for(b<x&&(x=b),b-=x,i.length-=x;p[m++]=S[Q++],--x;);0===i.length&&(i.mode=21);break;case 26:if(0===b)break t;p[m++]=i.length,b--,i.mode=21;break;case 27:if(i.wrap){for(;E<32;){if(0===y)break t;y--,v|=u[f++]<<E,E+=8}if(C-=b,t.total_out+=C,i.total+=C,C&&(t.adler=i.check=i.flags?o(i.check,p,C,m-C):r(i.check,p,C,m-C)),C=b,(i.flags?v:g(v))!==i.check){t.msg="incorrect data check",i.mode=30;break}E=v=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;E<32;){if(0===y)break t;y--,v+=u[f++]<<E,E+=8}if(v!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=30;break}E=v=0}i.mode=29;case 29:L=1;break t;case 30:L=-3;break t;case 31:return-4;default:return h}return t.next_out=m,t.avail_out=b,t.next_in=f,t.avail_in=y,i.hold=v,i.bits=E,(i.wsize||C!==t.avail_out&&i.mode<30&&(i.mode<27||4!==e))&&w(t,t.output,t.next_out,C-t.avail_out)?(i.mode=31,-4):(I-=t.avail_in,C-=t.avail_out,t.total_in+=I,t.total_out+=C,i.total+=C,i.wrap&&C&&(t.adler=i.check=i.flags?o(i.check,p,C,t.next_out-C):r(i.check,p,C,t.next_out-C)),t.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==I&&0===C||4===e)&&L===c&&(L=-5),L)},i.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,c},i.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?((i.head=e).done=!1,c):h},i.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?h:11===i.mode&&r(1,e,n,0)!==i.check?-3:w(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,c):h},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,i){"use strict";var n=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,i,l,A,c,h,d){var u,p,g,f,m,y,b,v,E,I=d.bits,C=0,B=0,w=0,x=0,Q=0,S=0,k=0,D=0,_=0,R=0,M=null,T=0,F=new n.Buf16(16),L=new n.Buf16(16),N=null,P=0;for(C=0;C<=15;C++)F[C]=0;for(B=0;B<l;B++)F[e[i+B]]++;for(Q=I,x=15;1<=x&&0===F[x];x--);if(x<Q&&(Q=x),0===x)return A[c++]=20971520,A[c++]=20971520,d.bits=1,0;for(w=1;w<x&&0===F[w];w++);for(Q<w&&(Q=w),C=D=1;C<=15;C++)if(D<<=1,(D-=F[C])<0)return-1;if(0<D&&(0===t||1!==x))return-1;for(L[1]=0,C=1;C<15;C++)L[C+1]=L[C]+F[C];for(B=0;B<l;B++)0!==e[i+B]&&(h[L[e[i+B]]++]=B);if(y=0===t?(M=N=h,19):1===t?(M=r,T-=257,N=o,P-=257,256):(M=a,N=s,-1),C=w,m=c,k=B=R=0,g=-1,f=(_=1<<(S=Q))-1,1===t&&852<_||2===t&&592<_)return 1;for(;;){for(b=C-k,E=h[B]<y?(v=0,h[B]):h[B]>y?(v=N[P+h[B]],M[T+h[B]]):(v=96,0),u=1<<C-k,w=p=1<<S;A[m+(R>>k)+(p-=u)]=b<<24|v<<16|E,0!==p;);for(u=1<<C-1;R&u;)u>>=1;if(0!==u?(R&=u-1,R+=u):R=0,B++,0==--F[C]){if(C===x)break;C=e[i+h[B]]}if(Q<C&&(R&f)!==g){for(0===k&&(k=Q),m+=w,D=1<<(S=C-k);S+k<x&&!((D-=F[S+k])<=0);)S++,D<<=1;if(_+=1<<S,1===t&&852<_||2===t&&592<_)return 1;A[g=R&f]=Q<<24|S<<16|m-c}}return 0!==R&&(A[m+R]=C-k<<24|64<<16),d.bits=Q,0}},{"../utils/common":41}],51:[function(t,e,i){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,i){"use strict";var n=t("../utils/common"),r=0,o=1;function a(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,l=29,A=256,c=A+1+l,h=30,d=19,u=2*c+1,p=15,g=16,f=7,m=256,y=16,b=17,v=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w=new Array(2*(c+2));a(w);var x=new Array(2*h);a(x);var Q=new Array(512);a(Q);var S=new Array(256);a(S);var k=new Array(l);a(k);var D,_,R,M=new Array(h);function T(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function F(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function L(t){return t<256?Q[t]:Q[256+(t>>>7)]}function N(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function P(t,e,i){t.bi_valid>g-i?(t.bi_buf|=e<<t.bi_valid&65535,N(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=i-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function U(t,e,i){P(t,i[2*e],i[2*e+1])}function O(t,e){for(var i=0;i|=1&t,t>>>=1,i<<=1,0<--e;);return i>>>1}function G(t,e,i){var n,r,o=new Array(p+1),a=0;for(n=1;n<=p;n++)o[n]=a=a+i[n-1]<<1;for(r=0;r<=e;r++){
var s=t[2*r+1];0!==s&&(t[2*r]=O(o[s]++,s))}}function H(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<d;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function V(t){8<t.bi_valid?N(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Y(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function z(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&Y(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!Y(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function W(t,e,i){var n,r,o,a,s=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===n?U(t,r,e):(U(t,(o=S[r])+A+1,e),0!==(a=E[o])&&P(t,r-=k[o],a),U(t,o=L(--n),i),0!==(a=I[o])&&P(t,n-=M[o],a)),s<t.last_lit;);U(t,m,e)}function Z(t,e){var i,n,r,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,A=-1;for(t.heap_len=0,t.heap_max=u,i=0;i<l;i++)0!==o[2*i]?(t.heap[++t.heap_len]=A=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=A<2?++A:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=a[2*r+1]);for(e.max_code=A,i=t.heap_len>>1;1<=i;i--)z(t,o,i);for(r=l;i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],z(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,z(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,a,s,l=e.dyn_tree,A=e.max_code,c=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,f=e.stat_desc.max_length,m=0;for(o=0;o<=p;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<u;i++)f<(o=l[2*l[2*(n=t.heap[i])+1]+1]+1)&&(o=f,m++),l[2*n+1]=o,A<n||(t.bl_count[o]++,a=0,g<=n&&(a=d[n-g]),s=l[2*n],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(c[2*n+1]+a)));if(0!==m){do{for(o=f-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[f]--,m-=2}while(0<m);for(o=f;0!==o;o--)for(n=t.bl_count[o];0!==n;)A<(r=t.heap[--i])||(l[2*r+1]!==o&&(t.opt_len+=(o-l[2*r+1])*l[2*r],l[2*r+1]=o),n--)}}(t,e),G(o,A,t.bl_count)}function j(t,e,i){var n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=a,a=e[2*(n+1)+1],++s<l&&r===a||(s<A?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*v]++,o=r,A=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function q(t,e,i){var n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),n=0;n<=i;n++)if(r=a,a=e[2*(n+1)+1],!(++s<l&&r===a)){if(s<A)for(;U(t,r,t.bl_tree),0!=--s;);else 0!==r?(r!==o&&(U(t,r,t.bl_tree),s--),U(t,y,t.bl_tree),P(t,s-3,2)):s<=10?(U(t,b,t.bl_tree),P(t,s-3,3)):(U(t,v,t.bl_tree),P(t,s-11,7));o=r,A=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}a(M);var J=!1;function K(t,e,i,r){var o,a,l,A;P(t,(s<<1)+(r?1:0),3),a=e,l=i,A=!0,V(o=t),A&&(N(o,l),N(o,~l)),n.arraySet(o.pending_buf,o.window,a,l,o.pending),o.pending+=l}i._tr_init=function(t){J||(function(){var t,e,i,n,r,o=new Array(p+1);for(n=i=0;n<l-1;n++)for(k[n]=i,t=0;t<1<<E[n];t++)S[i++]=n;for(S[i-1]=n,n=r=0;n<16;n++)for(M[n]=r,t=0;t<1<<I[n];t++)Q[r++]=n;for(r>>=7;n<h;n++)for(M[n]=r<<7,t=0;t<1<<I[n]-7;t++)Q[256+r++]=n;for(e=0;e<=p;e++)o[e]=0;for(t=0;t<=143;)w[2*t+1]=8,t++,o[8]++;for(;t<=255;)w[2*t+1]=9,t++,o[9]++;for(;t<=279;)w[2*t+1]=7,t++,o[7]++;for(;t<=287;)w[2*t+1]=8,t++,o[8]++;for(G(w,c+1,o),t=0;t<h;t++)x[2*t+1]=5,x[2*t]=O(t,5);D=new T(w,E,A+1,c,p),_=new T(x,I,0,h,p),R=new T(new Array(0),C,0,d,f)}(),J=!0),t.l_desc=new F(t.dyn_ltree,D),t.d_desc=new F(t.dyn_dtree,_),t.bl_desc=new F(t.bl_tree,R),t.bi_buf=0,t.bi_valid=0,H(t)},i._tr_stored_block=K,i._tr_flush_block=function(t,e,i,n){var a,s,l=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return r;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<A;e++)if(0!==t.dyn_ltree[2*e])return o;return r}(t)),Z(t,t.l_desc),Z(t,t.d_desc),l=function(t){var e;for(j(t,t.dyn_ltree,t.l_desc.max_code),j(t,t.dyn_dtree,t.d_desc.max_code),Z(t,t.bl_desc),e=d-1;3<=e&&0===t.bl_tree[2*B[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=i+5,i+4<=a&&-1!==e?K(t,e,i,n):4===t.strategy||s===a?(P(t,2+(n?1:0),3),W(t,w,x)):(P(t,4+(n?1:0),3),function(t,e,i,n){var r;for(P(t,e-257,5),P(t,i-1,5),P(t,n-4,4),r=0;r<n;r++)P(t,t.bl_tree[2*B[r]+1],3);q(t,t.dyn_ltree,e-1),q(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),W(t,t.dyn_ltree,t.dyn_dtree)),H(t),n&&V(t)},i._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(S[i]+A+1)]++,t.dyn_dtree[2*L(e)]++),t.last_lit===t.lit_bufsize-1},i._tr_align=function(t){var e;P(t,2,3),U(t,m,w),16===(e=t).bi_valid?(N(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,i){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var i,n,r,o,a=1,s={},l=!1,A=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",u,!1):t.attachEvent("onmessage",u),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){r.port2.postMessage(t)}):A&&"onreadystatechange"in A.createElement("script")?(n=A.documentElement,function(t){var e=A.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return s[a]=r,i(a),a++},c.clearImmediate=h}function h(t){delete s[t]}function d(t){if(l)setTimeout(d,0,t);else{var i=s[t];if(i){l=!0;try{!function(t){var i=t.callback,n=t.args;switch(n.length){case 0:i();break;case 1:i(n[0]);break;case 2:i(n[0],n[1]);break;case 3:i(n[0],n[1],n[2]);break;default:i.apply(e,n)}}(i)}finally{h(t),l=!1}}}}function u(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},37746:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(85256),r=n.glob.performance&&n.glob.performance.now?function(){return n.glob.performance.now()}:function(){return(new Date).getTime()},o=function(){function t(e,i){this.id=t.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:r(),frameRate:0},this.func=e,this.setLayers(i)}return t.prototype.setLayers=function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},t.prototype.getLayers=function(){return this.layers},t.prototype.addLayer=function(t){var e,i=this.layers,n=i.length;for(e=0;e<n;e++)if(i[e]._id===t._id)return!1;return this.layers.push(t),!0},t.prototype.isRunning=function(){var e,i=t.animations,n=i.length;for(e=0;e<n;e++)if(i[e].id===this.id)return!0;return!1},t.prototype.start=function(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=r(),t._addAnimation(this),this},t.prototype.stop=function(){
return t._removeAnimation(this),this},t.prototype._updateFrameObject=function(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff},t._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t._removeAnimation=function(t){var e,i=t.id,n=this.animations,r=n.length;for(e=0;e<r;e++)if(n[e].id===i){this.animations.splice(e,1);break}},t._runFrames=function(){var t,e,i,n,o,a,s,l,A={},c=this.animations;for(n=0;n<c.length;n++)if(e=(t=c[n]).layers,i=t.func,t._updateFrameObject(r()),a=e.length,!i||!1!==i.call(t,t.frame))for(o=0;o<a;o++)void 0!==(s=e[o])._id&&(A[s._id]=s);for(l in A)A.hasOwnProperty(l)&&A[l].draw()},t._animationLoop=function(){var e=t;e.animations.length?(e._runFrames(),requestAnimationFrame(e._animationLoop)):e.animRunning=!1},t._handleAnimation=function(){this.animRunning||(this.animRunning=!0,requestAnimationFrame(this._animationLoop))},t.animations=[],t.animIdCounter=0,t.animRunning=!1,t}();e.Animation=o},31074:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,a=i(41808),s=i(1989),l=i(85256),A=i(49609),c=i(29172);var h=function(){function t(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var e=(t||{}).pixelRatio||l.Konva.pixelRatio||function(){if(o)return o;var t=a.Util.createCanvasElement().getContext("2d");return o=(l.Konva._global.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}();this.pixelRatio=e,this._canvas=a.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}return t.prototype.getContext=function(){return this.context},t.prototype.getPixelRatio=function(){return this.pixelRatio},t.prototype.setPixelRatio=function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},t.prototype.setWidth=function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},t.prototype.setHeight=function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.setSize=function(t,e){this.setWidth(t||0),this.setHeight(e||0)},t.prototype.toDataURL=function(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return a.Util.error("Unable to get data URL. "+t.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}},t}();e.Canvas=h,A.Factory.addGetterSetter(h,"pixelRatio",void 0,c.getNumberValidator());var d=function(t){function e(e){void 0===e&&(e={width:0,height:0});var i=t.call(this,e)||this;return i.context=new s.SceneContext(i),i.setSize(e.width,e.height),i}return r(e,t),e}(h);e.SceneCanvas=d;var u=function(t){function e(e){void 0===e&&(e={width:0,height:0});var i=t.call(this,e)||this;return i.hitCanvas=!0,i.context=new s.HitContext(i),i.setSize(e.width,e.height),i}return r(e,t),e}(h);e.HitCanvas=u},26937:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(6627),l=i(29172),A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new o.Collection,e}return r(e,t),e.prototype.getChildren=function(t){if(!t)return this.children;var e=new o.Collection;return this.children.each((function(i){t(i)&&e.push(i)})),e},e.prototype.hasChildren=function(){return this.getChildren().length>0},e.prototype.removeChildren=function(){for(var t,e=0;e<this.children.length;e++)(t=this.children[e]).parent=null,t.index=0,t.remove();return this.children=new o.Collection,this},e.prototype.destroyChildren=function(){for(var t,e=0;e<this.children.length;e++)(t=this.children[e]).parent=null,t.index=0,t.destroy();return this.children=new o.Collection,this},e.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(arguments.length>1){for(var i=0;i<arguments.length;i++)this.add(arguments[i]);return this}var n=t[0];if(n.getParent())return n.moveTo(this),this;var r=this.children;return this._validateAdd(n),n._clearCaches(),n.index=r.length,n.parent=this,r.push(n),this._fire("add",{child:n}),this},e.prototype.destroy=function(){return this.hasChildren()&&this.destroyChildren(),t.prototype.destroy.call(this),this},e.prototype.find=function(t){return this._generalFind(t,!1)},e.prototype.get=function(t){return o.Util.warn("collection.get() method is deprecated. Please use collection.find() instead."),this.find(t)},e.prototype.findOne=function(t){var e=this._generalFind(t,!0);return e.length>0?e[0]:void 0},e.prototype._generalFind=function(t,e){var i=[];return this._descendants((function(n){var r=n._isMatch(t);return r&&i.push(n),!(!r||!e)})),o.Collection.toCollection(i)},e.prototype._descendants=function(t){for(var e=0;e<this.children.length;e++){var i=this.children[e];if(t(i))return!0;if(i.hasChildren()&&i._descendants(t))return!0}return!1},e.prototype.toObject=function(){var t=s.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),i=e.length,n=0;n<i;n++){var r=e[n];t.children.push(r.toObject())}return t},e.prototype.isAncestorOf=function(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1},e.prototype.clone=function(t){var e=s.Node.prototype.clone.call(this,t);return this.getChildren().each((function(t){e.add(t.clone())})),e},e.prototype.getAllIntersections=function(t){var e=[];return this.find("Shape").each((function(i){i.isVisible()&&i.intersects(t)&&e.push(i)})),e},e.prototype._setChildrenIndices=function(){this.children.each((function(t,e){t.index=e}))},e.prototype.drawScene=function(t,e){var i=this.getLayer(),n=t||i&&i.getCanvas(),r=n&&n.getContext(),o=this._getCanvasCache(),a=o&&o.scene,s=n&&n.isCache;if(!this.isVisible()&&!s)return this;if(a){r.save();var l=this.getAbsoluteTransform(e).getMatrix();r.transform(l[0],l[1],l[2],l[3],l[4],l[5]),this._drawCachedSceneCanvas(r),r.restore()}else this._drawChildren("drawScene",n,e);return this},e.prototype.drawHit=function(t,e){if(!this.shouldDrawHit(e))return this;var i=this.getLayer(),n=t||i&&i.hitCanvas,r=n&&n.getContext(),o=this._getCanvasCache();if(o&&o.hit){r.save();var a=this.getAbsoluteTransform(e).getMatrix();r.transform(a[0],a[1],a[2],a[3],a[4],a[5]),this._drawCachedHitCanvas(r),r.restore()}else this._drawChildren("drawHit",n,e);return this},e.prototype._drawChildren=function(t,e,i){var n=e&&e.getContext(),r=this.clipWidth(),o=this.clipHeight(),a=this.clipFunc(),s=r&&o||a,l=i===this;if(s){n.save();var A=this.getAbsoluteTransform(i),c=A.getMatrix();if(n.transform(c[0],c[1],c[2],c[3],c[4],c[5]),n.beginPath(),a)a.call(this,n,this);else{var h=this.clipX(),d=this.clipY();n.rect(h,d,r,o)}n.clip(),c=A.copy().invert().getMatrix(),n.transform(c[0],c[1],c[2],c[3],c[4],c[5])}var u=!l&&"source-over"!==this.globalCompositeOperation()&&"drawScene"===t;u&&(n.save(),n._applyGlobalCompositeOperation(this)),this.children.each((function(n){n[t](e,i)})),u&&n.restore(),s&&n.restore()},e.prototype.getClientRect=function(t){
var e,i,n,r,o=(t=t||{}).skipTransform,a=t.relativeTo,s={x:1/0,y:1/0,width:0,height:0},l=this;this.children.each((function(o){if(o.visible()){var a=o.getClientRect({relativeTo:l,skipShadow:t.skipShadow,skipStroke:t.skipStroke});0===a.width&&0===a.height||(void 0===e?(e=a.x,i=a.y,n=a.x+a.width,r=a.y+a.height):(e=Math.min(e,a.x),i=Math.min(i,a.y),n=Math.max(n,a.x+a.width),r=Math.max(r,a.y+a.height)))}}));for(var A=this.find("Shape"),c=!1,h=0;h<A.length;h++){if(A[h]._isVisible(this)){c=!0;break}}return s=c&&void 0!==e?{x:e,y:i,width:n-e,height:r-i}:{x:0,y:0,width:0,height:0},o?s:this._transformedRect(s,a)},e}(s.Node);e.Container=A,a.Factory.addComponentsGetterSetter(A,"clip",["x","y","width","height"]),a.Factory.addGetterSetter(A,"clipX",void 0,l.getNumberValidator()),a.Factory.addGetterSetter(A,"clipY",void 0,l.getNumberValidator()),a.Factory.addGetterSetter(A,"clipWidth",void 0,l.getNumberValidator()),a.Factory.addGetterSetter(A,"clipHeight",void 0,l.getNumberValidator()),a.Factory.addGetterSetter(A,"clipFunc"),o.Collection.mapMethods(A)},1989:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(85256),s=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],l=function(){function t(t){this.canvas=t,this._context=t._canvas.getContext("2d"),a.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}return t.prototype.fillShape=function(t){t.fillEnabled()&&this._fill(t)},t.prototype._fill=function(t){},t.prototype.strokeShape=function(t){t.hasStroke()&&this._stroke(t)},t.prototype._stroke=function(t){},t.prototype.fillStrokeShape=function(t){this.fillShape(t),this.strokeShape(t)},t.prototype.getTrace=function(t){var e,i,n,r,a=this.traceArr,s=a.length,l="";for(e=0;e<s;e++)(n=(i=a[e]).method)?(r=i.args,l+=n,t?l+="()":o.Util._isArray(r[0])?l+="(["+r.join(",")+"])":l+="("+r.join(",")+")"):(l+=i.property,t||(l+="="+i.val)),l+=";";return l},t.prototype.clearTrace=function(){this.traceArr=[]},t.prototype._trace=function(t){var e=this.traceArr;e.push(t),e.length>=100&&e.shift()},t.prototype.reset=function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},t.prototype.getCanvas=function(){return this.canvas},t.prototype.clear=function(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)},t.prototype._applyLineCap=function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},t.prototype._applyOpacity=function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},t.prototype._applyLineJoin=function(t){var e=t.attrs.lineJoin;e&&this.setAttr("lineJoin",e)},t.prototype.setAttr=function(t,e){this._context[t]=e},t.prototype.arc=function(t,e,i,n,r,o){this._context.arc(t,e,i,n,r,o)},t.prototype.arcTo=function(t,e,i,n,r){this._context.arcTo(t,e,i,n,r)},t.prototype.beginPath=function(){this._context.beginPath()},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){this._context.bezierCurveTo(t,e,i,n,r,o)},t.prototype.clearRect=function(t,e,i,n){this._context.clearRect(t,e,i,n)},t.prototype.clip=function(){this._context.clip()},t.prototype.closePath=function(){this._context.closePath()},t.prototype.createImageData=function(t,e){var i=arguments;return 2===i.length?this._context.createImageData(t,e):1===i.length?this._context.createImageData(t):void 0},t.prototype.createLinearGradient=function(t,e,i,n){return this._context.createLinearGradient(t,e,i,n)},t.prototype.createPattern=function(t,e){return this._context.createPattern(t,e)},t.prototype.createRadialGradient=function(t,e,i,n,r,o){return this._context.createRadialGradient(t,e,i,n,r,o)},t.prototype.drawImage=function(t,e,i,n,r,o,a,s,l){var A=arguments,c=this._context;3===A.length?c.drawImage(t,e,i):5===A.length?c.drawImage(t,e,i,n,r):9===A.length&&c.drawImage(t,e,i,n,r,o,a,s,l)},t.prototype.ellipse=function(t,e,i,n,r,o,a,s){this._context.ellipse(t,e,i,n,r,o,a,s)},t.prototype.isPointInPath=function(t,e){return this._context.isPointInPath(t,e)},t.prototype.fill=function(){this._context.fill()},t.prototype.fillRect=function(t,e,i,n){this._context.fillRect(t,e,i,n)},t.prototype.strokeRect=function(t,e,i,n){this._context.strokeRect(t,e,i,n)},t.prototype.fillText=function(t,e,i){this._context.fillText(t,e,i)},t.prototype.measureText=function(t){return this._context.measureText(t)},t.prototype.getImageData=function(t,e,i,n){return this._context.getImageData(t,e,i,n)},t.prototype.lineTo=function(t,e){this._context.lineTo(t,e)},t.prototype.moveTo=function(t,e){this._context.moveTo(t,e)},t.prototype.rect=function(t,e,i,n){this._context.rect(t,e,i,n)},t.prototype.putImageData=function(t,e,i){this._context.putImageData(t,e,i)},t.prototype.quadraticCurveTo=function(t,e,i,n){this._context.quadraticCurveTo(t,e,i,n)},t.prototype.restore=function(){this._context.restore()},t.prototype.rotate=function(t){this._context.rotate(t)},t.prototype.save=function(){this._context.save()},t.prototype.scale=function(t,e){this._context.scale(t,e)},t.prototype.setLineDash=function(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)},t.prototype.getLineDash=function(){return this._context.getLineDash()},t.prototype.setTransform=function(t,e,i,n,r,o){this._context.setTransform(t,e,i,n,r,o)},t.prototype.stroke=function(){this._context.stroke()},t.prototype.strokeText=function(t,e,i,n){this._context.strokeText(t,e,i,n)},t.prototype.transform=function(t,e,i,n,r,o){this._context.transform(t,e,i,n,r,o)},t.prototype.translate=function(t,e){this._context.translate(t,e)},t.prototype._enableTrace=function(){var t,e,i=this,n=s.length,r=o.Util._simplifyArray,a=this.setAttr,l=function(t){var n,o=i[t];i[t]=function(){return e=r(Array.prototype.slice.call(arguments,0)),n=o.apply(i,arguments),i._trace({method:t,args:e}),n}};for(t=0;t<n;t++)l(s[t]);i.setAttr=function(){a.apply(i,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),i._trace({property:t,val:e})}},t.prototype._applyGlobalCompositeOperation=function(t){var e=t.getGlobalCompositeOperation();"source-over"!==e&&this.setAttr("globalCompositeOperation",e)},t}();e.Context=l,["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"].forEach((function(t){Object.defineProperty(l.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})}));var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._fillColor=function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},e.prototype._fillPattern=function(t){var e=t.getFillPatternX(),i=t.getFillPatternY(),n=a.Konva.getAngle(t.getFillPatternRotation()),r=t.getFillPatternOffsetX(),o=t.getFillPatternOffsetY(),s=t.getFillPatternScaleX(),l=t.getFillPatternScaleY();(e||i)&&this.translate(e||0,i||0),n&&this.rotate(n),(s||l)&&this.scale(s,l),(r||o)&&this.translate(-1*r,-1*o),this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)},e.prototype._fillLinearGradient=function(t){var e=t._getLinearGradient();e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fillRadialGradient=function(t){var e=t._getRadialGradient()
;e&&(this.setAttr("fillStyle",e),t._fillFunc(this))},e.prototype._fill=function(t){var e=t.fill(),i=t.getFillPriority();if(e&&"color"===i)this._fillColor(t);else{var n=t.getFillPatternImage();if(n&&"pattern"===i)this._fillPattern(t);else{var r=t.getFillLinearGradientColorStops();if(r&&"linear-gradient"===i)this._fillLinearGradient(t);else{var o=t.getFillRadialGradientColorStops();o&&"radial-gradient"===i?this._fillRadialGradient(t):e?this._fillColor(t):n?this._fillPattern(t):r?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)}}}},e.prototype._strokeLinearGradient=function(t){var e=t.getStrokeLinearGradientStartPoint(),i=t.getStrokeLinearGradientEndPoint(),n=t.getStrokeLinearGradientColorStops(),r=this.createLinearGradient(e.x,e.y,i.x,i.y);if(n){for(var o=0;o<n.length;o+=2)r.addColorStop(n[o],n[o+1]);this.setAttr("strokeStyle",r)}},e.prototype._stroke=function(t){var e=t.dash(),i=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!i){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t.getStrokeLinearGradientColorStops()?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),i||this.restore()}},e.prototype._applyShadow=function(t){var e=o.Util,i=e.get(t.getShadowRGBA(),"black"),n=e.get(t.getShadowBlur(),5),r=e.get(t.getShadowOffset(),{x:0,y:0}),a=t.getAbsoluteScale(),s=this.canvas.getPixelRatio(),l=a.x*s,A=a.y*s;this.setAttr("shadowColor",i),this.setAttr("shadowBlur",n*Math.min(Math.abs(l),Math.abs(A))),this.setAttr("shadowOffsetX",r.x*l),this.setAttr("shadowOffsetY",r.y*A)},e}(l);e.SceneContext=A;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._fill=function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()},e.prototype.strokeShape=function(t){t.hasHitStroke()&&this._stroke(t)},e.prototype._stroke=function(t){if(t.hasHitStroke()){var e=t.getStrokeScaleEnabled();if(!e){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t);var n=t.hitStrokeWidth(),r="auto"===n?t.strokeWidth():n;this.setAttr("lineWidth",r),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}},e}(l);e.HitContext=c},50090:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(85256),r=i(41808);e.DD={get isDragging(){var t=!1;return e.DD._dragElements.forEach((function(e){"dragging"===e.dragStatus&&(t=!0)})),t},justDragged:!1,get node(){var t;return e.DD._dragElements.forEach((function(e){t=e.node})),t},_dragElements:new Map,_drag:function(t){var i=[];e.DD._dragElements.forEach((function(e,n){var o=e.node,a=o.getStage();a.setPointersPositions(t),void 0===e.pointerId&&(e.pointerId=r.Util._getFirstPointerId(t));var s=a._changedPointerPositions.find((function(t){return t.id===e.pointerId}));if(s){if("dragging"!==e.dragStatus){var l=o.dragDistance();if(Math.max(Math.abs(s.x-e.startPointerPos.x),Math.abs(s.y-e.startPointerPos.y))<l)return;if(o.startDrag({evt:t}),!o.isDragging())return}o._setDragPosition(t,e),i.push(o)}})),i.forEach((function(e){e.fire("dragmove",{type:"dragmove",target:e,evt:t},!0)}))},_endDragBefore:function(t){e.DD._dragElements.forEach((function(i,r){var o=i.node.getStage();if(t&&o.setPointersPositions(t),o._changedPointerPositions.find((function(t){return t.id===i.pointerId}))){"dragging"!==i.dragStatus&&"stopped"!==i.dragStatus||(e.DD.justDragged=!0,n.Konva.listenClickTap=!1,i.dragStatus="stopped");var a=i.node.getLayer()||i.node instanceof n.Konva.Stage&&i.node;a&&a.draw()}}))},_endDragAfter:function(t){e.DD._dragElements.forEach((function(i,n){"stopped"===i.dragStatus&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:t},!0),"dragging"!==i.dragStatus&&e.DD._dragElements.delete(n)}))}},n.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))},49609:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(41808),r=i(29172),o="get",a="set";e.Factory={addGetterSetter:function(t,i,n,r,o){e.Factory.addGetter(t,i,n),e.Factory.addSetter(t,i,r,o),e.Factory.addOverloadedGetterSetter(t,i)},addGetter:function(t,e,i){var r=o+n.Util._capitalize(e);t.prototype[r]=t.prototype[r]||function(){var t=this.attrs[e];return void 0===t?i:t}},addSetter:function(t,i,r,o){var s=a+n.Util._capitalize(i);t.prototype[s]||e.Factory.overWriteSetter(t,i,r,o)},overWriteSetter:function(t,e,i,r){var o=a+n.Util._capitalize(e);t.prototype[o]=function(t){return i&&null!=t&&(t=i.call(this,t,e)),this._setAttr(e,t),r&&r.call(this),this}},addComponentsGetterSetter:function(t,i,s,l,A){var c,h,d=s.length,u=n.Util._capitalize,p=o+u(i),g=a+u(i);t.prototype[p]=function(){var t={};for(c=0;c<d;c++)t[h=s[c]]=this.getAttr(i+u(h));return t};var f=r.getComponentValidator(s);t.prototype[g]=function(t){var e,n=this.attrs[i];for(e in l&&(t=l.call(this,t)),f&&f.call(this,t,i),t)t.hasOwnProperty(e)&&this._setAttr(i+u(e),t[e]);return this._fireChangeEvent(i,n,t),A&&A.call(this),this},e.Factory.addOverloadedGetterSetter(t,i)},addOverloadedGetterSetter:function(t,e){var i=n.Util._capitalize(e),r=a+i,s=o+i;t.prototype[e]=function(){return arguments.length?(this[r](arguments[0]),this):this[s]()}},addDeprecatedGetterSetter:function(t,i,r,a){n.Util.error("Adding deprecated "+i);var s=o+n.Util._capitalize(i),l=i+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[s]=function(){n.Util.error(l);var t=this.attrs[i];return void 0===t?r:t},e.Factory.addSetter(t,i,a,(function(){n.Util.error(l)})),e.Factory.addOverloadedGetterSetter(t,i)},backCompat:function(t,e){n.Util.each(e,(function(e,i){var r=t.prototype[i],s=o+n.Util._capitalize(e),l=a+n.Util._capitalize(e);function A(){r.apply(this,arguments),n.Util.error('"'+e+'" method is deprecated and will be removed soon. Use ""'+i+'" instead.')}t.prototype[e]=A,t.prototype[s]=A,t.prototype[l]=A}))},afterSetFilter:function(){this._filterUpToDate=!1}}},5573:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(26413),s=i(85256),l=function(t){function e(e){var i=t.call(this,e)||this;return i.listening(!1),o.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.'),i}return r(e,t),e}(a.Layer);e.FastLayer=l,l.prototype.nodeType="FastLayer",s._registerNode(l),o.Collection.mapMethods(l)},85256:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Math.PI/180;var r=function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var n=t.indexOf("edge/");return n>0&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)};e._parseUA=function(t){var e=t.toLowerCase(),i=/(chrome)[ /]([\w.]+)/.exec(e)||/(webkit)[ /]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),o=!!t.match(/IEMobile/i);return{browser:i[1]||"",version:i[2]||"0",isIE:r(e),mobile:n,ieMobile:o}},e.glob=void 0!==i.g?i.g:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{},e.Konva={
_global:e.glob,version:"7.0.3",isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),isUnminified:/param/.test(function(t){}.toString()),dblClickWindow:400,getAngle:function(t){return e.Konva.angleDeg?t*n:t},enableTrace:!1,_pointerEventsEnabled:!1,hitOnDragEnabled:!1,captureTouchEventsEnabled:!1,listenClickTap:!1,inDblClickWindow:!1,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging:function(){return e.Konva.DD.isDragging},isDragReady:function(){return!!e.Konva.DD.node},UA:e._parseUA(e.glob.navigator&&e.glob.navigator.userAgent||""),document:e.glob.document,_injectGlobal:function(t){e.glob.Konva=t},_parseUA:e._parseUA},e._NODES_REGISTRY={},e._registerNode=function(t){e._NODES_REGISTRY[t.prototype.getClassName()]=t,e.Konva[t.prototype.getClassName()]=t}},69834:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(26937),s=i(85256),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&o.Util.throw("You may only add groups and shapes to groups.")},e}(a.Container);e.Group=l,l.prototype.nodeType="Group",s._registerNode(l),o.Collection.mapMethods(l)},26413:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(26937),s=i(6627),l=i(49609),A=i(31074),c=i(29172),h=i(95706),d=i(85256),u=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],p=u.length,g=function(t){function e(e){var i=t.call(this,e)||this;return i.canvas=new A.SceneCanvas,i.hitCanvas=new A.HitCanvas({pixelRatio:1}),i._waitingForDraw=!1,i.on("visibleChange.konva",i._checkVisibility),i._checkVisibility(),i.on("imageSmoothingEnabledChange.konva",i._setSmoothEnabled),i._setSmoothEnabled(),i}return r(e,t),e.prototype.createPNGStream=function(){return this.canvas._canvas.createPNGStream()},e.prototype.getCanvas=function(){return this.canvas},e.prototype.getHitCanvas=function(){return this.hitCanvas},e.prototype.getContext=function(){return this.getCanvas().getContext()},e.prototype.clear=function(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this},e.prototype.setZIndex=function(e){t.prototype.setZIndex.call(this,e);var i=this.getStage();return i&&(i.content.removeChild(this.getCanvas()._canvas),e<i.children.length-1?i.content.insertBefore(this.getCanvas()._canvas,i.children[e+1].getCanvas()._canvas):i.content.appendChild(this.getCanvas()._canvas)),this},e.prototype.moveToTop=function(){s.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),!0},e.prototype.moveUp=function(){if(!s.Node.prototype.moveUp.call(this))return!1;var t=this.getStage();return!!t&&(t.content.removeChild(this.getCanvas()._canvas),this.index<t.children.length-1?t.content.insertBefore(this.getCanvas()._canvas,t.children[this.index+1].getCanvas()._canvas):t.content.appendChild(this.getCanvas()._canvas),!0)},e.prototype.moveDown=function(){if(s.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.children;t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[this.index+1].getCanvas()._canvas)}return!0}return!1},e.prototype.moveToBottom=function(){if(s.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.children;t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[1].getCanvas()._canvas)}return!0}return!1},e.prototype.getLayer=function(){return this},e.prototype.remove=function(){var t=this.getCanvas()._canvas;return s.Node.prototype.remove.call(this),t&&t.parentNode&&o.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},e.prototype.getStage=function(){return this.parent},e.prototype.setSize=function(t){var e=t.width,i=t.height;return this.canvas.setSize(e,i),this.hitCanvas.setSize(e,i),this._setSmoothEnabled(),this},e.prototype._validateAdd=function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&o.Util.throw("You may only add groups and shapes to a layer.")},e.prototype._toKonvaCanvas=function(t){return(t=t||{}).width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=void 0!==t.x?t.x:this.x(),t.y=void 0!==t.y?t.y:this.y(),s.Node.prototype._toKonvaCanvas.call(this,t)},e.prototype._checkVisibility=function(){var t=this.visible();this.canvas._canvas.style.display=t?"block":"none"},e.prototype._setSmoothEnabled=function(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()},e.prototype.getWidth=function(){if(this.parent)return this.parent.width()},e.prototype.setWidth=function(){o.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},e.prototype.getHeight=function(){if(this.parent)return this.parent.height()},e.prototype.setHeight=function(){o.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},e.prototype.batchDraw=function(){var t=this;return this._waitingForDraw||(this._waitingForDraw=!0,o.Util.requestAnimFrame((function(){t.draw(),t._waitingForDraw=!1}))),this},e.prototype.getIntersection=function(t,e){var i,n,r,o;if(!this.isListening()||!this.isVisible())return null;for(var a=1,s=!1;;){for(n=0;n<p;n++){if(r=u[n],(o=(i=this._getIntersection({x:t.x+r.x*a,y:t.y+r.y*a})).shape)&&e)return o.findAncestor(e,!0);if(o)return o;if(s=!!i.antialiased,!i.antialiased)break}if(!s)return null;a+=1}},e.prototype._getIntersection=function(t){var e,i,n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*n),Math.round(t.y*n),1,1).data,a=r[3];return 255===a?(e=o.Util._rgbToHex(r[0],r[1],r[2]),(i=h.shapes["#"+e])?{shape:i}:{antialiased:!0}):a>0?{antialiased:!0}:{}},e.prototype.drawScene=function(t,e){var i=this.getLayer(),n=t||i&&i.getCanvas();return this._fire("beforeDraw",{node:this}),this.clearBeforeDraw()&&n.getContext().clear(),a.Container.prototype.drawScene.call(this,n,e),this._fire("draw",{node:this}),this},e.prototype.drawHit=function(t,e){var i=this.getLayer(),n=t||i&&i.hitCanvas;return i&&i.clearBeforeDraw()&&i.getHitCanvas().getContext().clear(),a.Container.prototype.drawHit.call(this,n,e),this},e.prototype.enableHitGraph=function(){return this.hitGraphEnabled(!0),this},e.prototype.disableHitGraph=function(){return this.hitGraphEnabled(!1),this},e.prototype.setHitGraphEnabled=function(t){o.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)},e.prototype.getHitGraphEnabled=function(t){return o.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()},e.prototype.toggleHitCanvas=function(){if(this.parent){var t=this.parent;!!this.hitCanvas._canvas.parentNode?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}},e}(a.Container);e.Layer=g,g.prototype.nodeType="Layer",d._registerNode(g),l.Factory.addGetterSetter(g,"imageSmoothingEnabled",!0),l.Factory.addGetterSetter(g,"clearBeforeDraw",!0),l.Factory.addGetterSetter(g,"hitGraphEnabled",!0,c.getBooleanValidator()),o.Collection.mapMethods(g)},6627:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(41808),r=i(49609),o=i(31074),a=i(85256),s=i(50090),l=i(29172);e.ids={},e.names={};e._removeId=function(t,i){
t&&e.ids[t]===i&&delete e.ids[t]},e._addName=function(t,i){i&&(e.names[i]||(e.names[i]=[]),e.names[i].push(t))},e._removeName=function(t,i){if(t){var n=e.names[t];if(n){for(var r=0;r<n.length;r++){n[r]._id===i&&n.splice(r,1)}0===n.length&&delete e.names[t]}}};var A="absoluteOpacity",c="absoluteTransform",h="absoluteScale",d="canvas",u="listening",p="mouseenter",g="mouseleave",f="Shape",m=" ",y="stage",b="transform",v="visible",E=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(m),I=(["scaleXChange.konva","scaleYChange.konva"].join(m),new n.Collection),C=1,B=function(){function t(t){var e=this;this._id=C++,this.eventListeners={},this.attrs={},this.index=0,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this.children=I,this._dragEventId=null,this.setAttrs(t),this.on(E,(function(){e._batchingTransformChange?e._needClearTransformCache=!0:(e._clearCache(b),e._clearSelfAndDescendantCache(c))})),this.on("visibleChange.konva",(function(){e._clearSelfAndDescendantCache(v)})),this.on("listeningChange.konva",(function(){e._clearSelfAndDescendantCache(u)})),this.on("opacityChange.konva",(function(){e._clearSelfAndDescendantCache(A)}))}return t.prototype.hasChildren=function(){return!1},t.prototype.getChildren=function(){return I},t.prototype._clearCache=function(t){t!==b&&t!==c||!this._cache.get(t)?t?this._cache.delete(t):this._cache.clear():this._cache.get(t).dirty=!0},t.prototype._getCache=function(t,e){var i=this._cache.get(t);return(void 0===i||(t===b||t===c)&&!0===i.dirty)&&(i=e.call(this),this._cache.set(t,i)),i},t.prototype._calculate=function(t,e,i){var n=this;if(!this._attachedDepsListeners.get(t)){var r=e.map((function(t){return t+"Change.konva"})).join(m);this.on(r,(function(){n._clearCache(t)})),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,i)},t.prototype._getCanvasCache=function(){return this._cache.get(d)},t.prototype._clearSelfAndDescendantCache=function(t,e){this._clearCache(t),e&&t===c&&this.fire("_clearTransformCache"),this.isCached()||this.children&&this.children.each((function(e){e._clearSelfAndDescendantCache(t,!0)}))},t.prototype.clearCache=function(){return this._cache.delete(d),this._clearSelfAndDescendantCache(),this},t.prototype.cache=function(t){var e=t||{},i={};void 0!==e.x&&void 0!==e.y&&void 0!==e.width&&void 0!==e.height||(i=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var r=Math.ceil(e.width||i.width),a=Math.ceil(e.height||i.height),s=e.pixelRatio,l=void 0===e.x?i.x:e.x,c=void 0===e.y?i.y:e.y,u=e.offset||0,p=e.drawBorder||!1;if(r&&a){r+=2*u,a+=2*u,l-=u,c-=u;var g=new o.SceneCanvas({pixelRatio:s,width:r,height:a}),f=new o.SceneCanvas({pixelRatio:s,width:0,height:0}),m=new o.HitCanvas({pixelRatio:1,width:r,height:a}),y=g.getContext(),b=m.getContext();return m.isCache=!0,g.isCache=!0,this._cache.delete("canvas"),this._filterUpToDate=!1,!1===e.imageSmoothingEnabled&&(g.getContext()._context.imageSmoothingEnabled=!1,f.getContext()._context.imageSmoothingEnabled=!1),y.save(),b.save(),y.translate(-l,-c),b.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(A),this._clearSelfAndDescendantCache(h),this.drawScene(g,this),this.drawHit(m,this),this._isUnderCache=!1,y.restore(),b.restore(),p&&(y.save(),y.beginPath(),y.rect(0,0,r,a),y.closePath(),y.setAttr("strokeStyle","red"),y.setAttr("lineWidth",5),y.stroke(),y.restore()),this._cache.set(d,{scene:g,filter:f,hit:m,x:l,y:c}),this}n.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.")},t.prototype.isCached=function(){return this._cache.has("canvas")},t.prototype.getClientRect=function(t){throw new Error('abstract "getClientRect" method call')},t.prototype._transformedRect=function(t,e){var i,n,r,o,a=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return a.forEach((function(t){var e=s.point(t);void 0===i&&(i=r=e.x,n=o=e.y),i=Math.min(i,e.x),n=Math.min(n,e.y),r=Math.max(r,e.x),o=Math.max(o,e.y)})),{x:i,y:n,width:r-i,height:o-n}},t.prototype._drawCachedSceneCanvas=function(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);var e=this._getCanvasCache();t.translate(e.x,e.y);var i=this._getCachedSceneCanvas(),n=i.pixelRatio;t.drawImage(i._canvas,0,0,i.width/n,i.height/n),t.restore()},t.prototype._drawCachedHitCanvas=function(t){var e=this._getCanvasCache(),i=e.hit;t.save(),t.translate(e.x,e.y),t.drawImage(i._canvas,0,0),t.restore()},t.prototype._getCachedSceneCanvas=function(){var t,e,i,r,o=this.filters(),a=this._getCanvasCache(),s=a.scene,l=a.filter,A=l.getContext();if(o){if(!this._filterUpToDate){var c=s.pixelRatio;l.setSize(s.width/s.pixelRatio,s.height/s.pixelRatio);try{for(t=o.length,A.clear(),A.drawImage(s._canvas,0,0,s.getWidth()/c,s.getHeight()/c),e=A.getImageData(0,0,l.getWidth(),l.getHeight()),i=0;i<t;i++)"function"==typeof(r=o[i])?(r.call(this,e),A.putImageData(e,0,0)):n.Util.error("Filter should be type of function, but got "+typeof r+" instead. Please check correct filters")}catch(t){n.Util.error("Unable to apply filter. "+t.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return l}return s},t.prototype.on=function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var i,n,r,o,a=t.split(m),s=a.length;for(i=0;i<s;i++)r=(n=a[i].split("."))[0],o=n[1]||"",this.eventListeners[r]||(this.eventListeners[r]=[]),this.eventListeners[r].push({name:o,handler:e});return this},t.prototype.off=function(t,e){var i,n,r,o,a,s=(t||"").split(m),l=s.length;if(!t)for(n in this.eventListeners)this._off(n);for(i=0;i<l;i++)if(o=(r=s[i].split("."))[0],a=r[1],o)this.eventListeners[o]&&this._off(o,a,e);else for(n in this.eventListeners)this._off(n,a,e);return this},t.prototype.dispatchEvent=function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},t.prototype.addEventListener=function(t,e){return this.on(t,(function(t){e.call(this,t.evt)})),this},t.prototype.removeEventListener=function(t){return this.off(t),this},t.prototype._delegate=function(t,e,i){var r=this;this.on(t,(function(t){for(var o=t.target.findAncestors(e,!0,r),a=0;a<o.length;a++)(t=n.Util.cloneObject(t)).currentTarget=o[a],i.call(o[a],t)}))},t.prototype.remove=function(){return this.isDragging()&&this.stopDrag(),s.DD._dragElements.delete(this._id),this._remove(),this},t.prototype._clearCaches=function(){this._clearSelfAndDescendantCache(c),this._clearSelfAndDescendantCache(A),this._clearSelfAndDescendantCache(h),this._clearSelfAndDescendantCache(y),this._clearSelfAndDescendantCache(v),this._clearSelfAndDescendantCache(u)},t.prototype._remove=function(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)},t.prototype.destroy=function(){e._removeId(this.id(),this);for(var t=(this.name()||"").split(/\s/g),i=0;i<t.length;i++){var n=t[i];e._removeName(n,this._id)}return this.remove(),this},t.prototype.getAttr=function(t){var e="get"+n.Util._capitalize(t);return n.Util._isFunction(this[e])?this[e]():this.attrs[t]},t.prototype.getAncestors=function(){for(var t=this.getParent(),e=new n.Collection;t;)e.push(t),t=t.getParent();return e},t.prototype.getAttrs=function(){return this.attrs||{}},t.prototype.setAttrs=function(t){var e=this;return this._batchTransformChanges((function(){var i,r;if(!t)return e;for(i in t)"children"!==i&&(r="set"+n.Util._capitalize(i),n.Util._isFunction(e[r])?e[r](t[i]):e._setAttr(i,t[i]))})),this},t.prototype.isListening=function(){return this._getCache(u,this._isListening)},t.prototype._isListening=function(t){if(!this.listening())return!1;var e=this.getParent();return!e||e===t||this===t||e._isListening(t)},t.prototype.isVisible=function(){return this._getCache(v,this._isVisible)},t.prototype._isVisible=function(t){
if(!this.visible())return!1;var e=this.getParent();return!e||e===t||this===t||e._isVisible(t)},t.prototype.shouldDrawHit=function(t){if(t)return this._isVisible(t)&&this._isListening(t);var e=this.getLayer(),i=!1;s.DD._dragElements.forEach((function(t){"dragging"===t.dragStatus&&t.node.getLayer()===e&&(i=!0)}));var n=!a.Konva.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!n},t.prototype.show=function(){return this.visible(!0),this},t.prototype.hide=function(){return this.visible(!1),this},t.prototype.getZIndex=function(){return this.index||0},t.prototype.getAbsoluteZIndex=function(){var t,e,i,n,r=this.getDepth(),o=this,a=0;return"Stage"!==o.nodeType&&function s(l){for(t=[],e=l.length,i=0;i<e;i++)n=l[i],a++,n.nodeType!==f&&(t=t.concat(n.getChildren().toArray())),n._id===o._id&&(i=e);t.length>0&&t[0].getDepth()<=r&&s(t)}(o.getStage().getChildren()),a},t.prototype.getDepth=function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},t.prototype._batchTransformChanges=function(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(b),this._clearSelfAndDescendantCache(c,!0)),this._needClearTransformCache=!1},t.prototype.setPosition=function(t){var e=this;return this._batchTransformChanges((function(){e.x(t.x),e.y(t.y)})),this},t.prototype.getPosition=function(){return{x:this.x(),y:this.y()}},t.prototype.getAbsolutePosition=function(t){for(var e=!1,i=this.parent;i;){if(i.isCached()){e=!0;break}i=i.parent}e&&!t&&(t=!0);var r=this.getAbsoluteTransform(t).getMatrix(),o=new n.Transform,a=this.offset();return o.m=r.slice(),o.translate(a.x,a.y),o.getTranslation()},t.prototype.setAbsolutePosition=function(t){var e=this._clearTransform();this.attrs.x=e.x,this.attrs.y=e.y,delete e.x,delete e.y,this._clearCache(b);var i=this._getAbsoluteTransform().copy();return i.invert(),i.translate(t.x,t.y),t={x:this.attrs.x+i.getTranslation().x,y:this.attrs.y+i.getTranslation().y},this._setTransform(e),this.setPosition({x:t.x,y:t.y}),this._clearCache(b),this._clearSelfAndDescendantCache(c),this},t.prototype._setTransform=function(t){var e;for(e in t)this.attrs[e]=t[e]},t.prototype._clearTransform=function(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t},t.prototype.move=function(t){var e=t.x,i=t.y,n=this.x(),r=this.y();return void 0!==e&&(n+=e),void 0!==i&&(r+=i),this.setPosition({x:n,y:r}),this},t.prototype._eachAncestorReverse=function(t,e){var i,n,r=[],o=this.getParent();if(e&&e._id===this._id)t(this);else{for(r.unshift(this);o&&(!e||o._id!==e._id);)r.unshift(o),o=o.parent;for(i=r.length,n=0;n<i;n++)t(r[n])}},t.prototype.rotate=function(t){return this.rotation(this.rotation()+t),this},t.prototype.moveToTop=function(){if(!this.parent)return n.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index;return this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},t.prototype.moveUp=function(){if(!this.parent)return n.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index;return t<this.parent.getChildren().length-1&&(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveDown=function(){if(!this.parent)return n.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0)},t.prototype.moveToBottom=function(){if(!this.parent)return n.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0&&(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},t.prototype.setZIndex=function(t){if(!this.parent)return n.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&n.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var e=this.index;return this.parent.children.splice(e,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this},t.prototype.getAbsoluteOpacity=function(){return this._getCache(A,this._getAbsoluteOpacity)},t.prototype._getAbsoluteOpacity=function(){var t=this.opacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=e.getAbsoluteOpacity()),t},t.prototype.moveTo=function(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this},t.prototype.toObject=function(){var t,e,i,r,o={},a=this.getAttrs();for(t in o.attrs={},a)e=a[t],n.Util.isObject(e)&&!n.Util._isPlainObject(e)&&!n.Util._isArray(e)||(i="function"==typeof this[t]&&this[t],delete a[t],r=i?i.call(this):null,a[t]=e,r!==e&&(o.attrs[t]=e));return o.className=this.getClassName(),n.Util._prepareToStringify(o)},t.prototype.toJSON=function(){return JSON.stringify(this.toObject())},t.prototype.getParent=function(){return this.parent},t.prototype.findAncestors=function(t,e,i){var n=[];e&&this._isMatch(t)&&n.push(this);for(var r=this.parent;r;){if(r===i)return n;r._isMatch(t)&&n.push(r),r=r.parent}return n},t.prototype.isAncestorOf=function(t){return!1},t.prototype.findAncestor=function(t,e,i){return this.findAncestors(t,e,i)[0]},t.prototype._isMatch=function(t){if(!t)return!1;if("function"==typeof t)return t(this);var e,i,r=t.replace(/ /g,"").split(","),o=r.length;for(e=0;e<o;e++)if(i=r[e],n.Util.isValidSelector(i)||(n.Util.warn('Selector "'+i+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),n.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),n.Util.warn("Konva is awesome, right?")),"#"===i.charAt(0)){if(this.id()===i.slice(1))return!0}else if("."===i.charAt(0)){if(this.hasName(i.slice(1)))return!0}else if(this.className===i||this.nodeType===i)return!0;return!1},t.prototype.getLayer=function(){var t=this.getParent();return t?t.getLayer():null},t.prototype.getStage=function(){return this._getCache(y,this._getStage)},t.prototype._getStage=function(){var t=this.getParent();return t?t.getStage():void 0},t.prototype.fire=function(t,e,i){return void 0===e&&(e={}),e.target=e.target||this,i?this._fireAndBubble(t,e):this._fire(t,e),this},t.prototype.getAbsoluteTransform=function(t){return t?this._getAbsoluteTransform(t):this._getCache(c,this._getAbsoluteTransform)},t.prototype._getAbsoluteTransform=function(t){var e;if(t)return e=new n.Transform,this._eachAncestorReverse((function(t){var i=t.transformsEnabled();"all"===i?e.multiply(t.getTransform()):"position"===i&&e.translate(t.x()-t.offsetX(),t.y()-t.offsetY())}),t),e;e=this._cache.get(c)||new n.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(e):e.reset();var i=this.transformsEnabled();if("all"===i)e.multiply(this.getTransform());else if("position"===i){var r=this.attrs.x||0,o=this.attrs.y||0,a=this.attrs.offsetX||0,s=this.attrs.offsetY||0;e.translate(r-a,o-s)}return e.dirty=!1,e},t.prototype.getAbsoluteScale=function(t){for(var e=this;e;)e._isUnderCache&&(t=e),e=e.getParent();var i=this.getAbsoluteTransform(t).decompose();return{x:i.scaleX,y:i.scaleY}},t.prototype.getAbsoluteRotation=function(){return this.getAbsoluteTransform().decompose().rotation},t.prototype.getTransform=function(){return this._getCache(b,this._getTransform)},t.prototype._getTransform=function(){var t,e,i=this._cache.get(b)||new n.Transform;i.reset();var r=this.x(),o=this.y(),s=a.Konva.getAngle(this.rotation()),l=null!==(t=this.attrs.scaleX)&&void 0!==t?t:1,A=null!==(e=this.attrs.scaleY)&&void 0!==e?e:1,c=this.attrs.skewX||0,h=this.attrs.skewY||0,d=this.attrs.offsetX||0,u=this.attrs.offsetY||0;return 0===r&&0===o||i.translate(r,o),0!==s&&i.rotate(s),0===c&&0===h||i.skew(c,h),
1===l&&1===A||i.scale(l,A),0===d&&0===u||i.translate(-1*d,-1*u),i.dirty=!1,i},t.prototype.clone=function(t){var e,i,r,o,a,s=n.Util.cloneObject(this.attrs);for(e in t)s[e]=t[e];var l=new this.constructor(s);for(e in this.eventListeners)for(r=(i=this.eventListeners[e]).length,o=0;o<r;o++)(a=i[o]).name.indexOf("konva")<0&&(l.eventListeners[e]||(l.eventListeners[e]=[]),l.eventListeners[e].push(a));return l},t.prototype._toKonvaCanvas=function(t){t=t||{};var e=this.getClientRect(),i=this.getStage(),n=void 0!==t.x?t.x:e.x,r=void 0!==t.y?t.y:e.y,a=t.pixelRatio||1,s=new o.SceneCanvas({width:t.width||e.width||(i?i.width():0),height:t.height||e.height||(i?i.height():0),pixelRatio:a}),l=s.getContext();return l.save(),(n||r)&&l.translate(-1*n,-1*r),this.drawScene(s),l.restore(),s},t.prototype.toCanvas=function(t){return this._toKonvaCanvas(t)._canvas},t.prototype.toDataURL=function(t){var e=(t=t||{}).mimeType||null,i=t.quality||null,n=this._toKonvaCanvas(t).toDataURL(e,i);return t.callback&&t.callback(n),n},t.prototype.toImage=function(t){if(!t||!t.callback)throw"callback required for toImage method config argument";var e=t.callback;delete t.callback,n.Util._urlToImage(this.toDataURL(t),(function(t){e(t)}))},t.prototype.setSize=function(t){return this.width(t.width),this.height(t.height),this},t.prototype.getSize=function(){return{width:this.width(),height:this.height()}},t.prototype.getClassName=function(){return this.className||this.nodeType},t.prototype.getType=function(){return this.nodeType},t.prototype.getDragDistance=function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():a.Konva.dragDistance},t.prototype._off=function(t,e,i){var n,r,o,a=this.eventListeners[t];for(n=0;n<a.length;n++)if(r=a[n].name,o=a[n].handler,!("konva"===r&&"konva"!==e||e&&r!==e||i&&i!==o)){if(a.splice(n,1),0===a.length){delete this.eventListeners[t];break}n--}},t.prototype._fireChangeEvent=function(t,e,i){this._fire(t+"Change",{oldVal:e,newVal:i})},t.prototype.setId=function(t){var i=this.id();return e._removeId(i,this),function(t,i){i&&(e.ids[i]=t)}(this,t),this._setAttr("id",t),this},t.prototype.setName=function(t){var i,n,r=(this.name()||"").split(/\s/g),o=(t||"").split(/\s/g);for(n=0;n<r.length;n++)i=r[n],-1===o.indexOf(i)&&i&&e._removeName(i,this._id);for(n=0;n<o.length;n++)i=o[n],-1===r.indexOf(i)&&i&&e._addName(this,i);return this._setAttr("name",t),this},t.prototype.addName=function(t){if(!this.hasName(t)){var e=this.name(),i=e?e+" "+t:t;this.setName(i)}return this},t.prototype.hasName=function(t){if(!t)return!1;var e=this.name();return!!e&&-1!==(e||"").split(/\s/g).indexOf(t)},t.prototype.removeName=function(t){var e=(this.name()||"").split(/\s/g),i=e.indexOf(t);return-1!==i&&(e.splice(i,1),this.setName(e.join(" "))),this},t.prototype.setAttr=function(t,e){var i=this["set"+n.Util._capitalize(t)];return n.Util._isFunction(i)?i.call(this,e):this._setAttr(t,e),this},t.prototype._setAttr=function(t,e){var i=this.attrs[t];(i!==e||n.Util.isObject(e))&&(null==e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,i,e))},t.prototype._setComponentAttr=function(t,e,i){var n;void 0!==i&&((n=this.attrs[t])||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=i,this._fireChangeEvent(t,n,i))},t.prototype._fireAndBubble=function(t,e,i){if(e&&this.nodeType===f&&(e.target=this),!((t===p||t===g)&&(i&&(this===i||this.isAncestorOf&&this.isAncestorOf(i))||"Stage"===this.nodeType&&!i))){this._fire(t,e);var n=(t===p||t===g)&&i&&i.isAncestorOf&&i.isAncestorOf(this)&&!i.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!n&&(i&&i.parent?this._fireAndBubble.call(this.parent,t,e,i):this._fireAndBubble.call(this.parent,t,e))}},t.prototype._fire=function(t,e){var i,n=this.eventListeners[t];if(n)for((e=e||{}).currentTarget=this,e.type=t,i=0;i<n.length;i++)n[i].handler.call(this,e)},t.prototype.draw=function(){return this.drawScene(),this.drawHit(),this},t.prototype._createDragElement=function(t){var e=t?t.pointerId:void 0,i=this.getStage(),n=this.getAbsolutePosition(),r=i._getPointerById(e)||i._changedPointerPositions[0]||n;s.DD._dragElements.set(this._id,{node:this,startPointerPos:r,offset:{x:r.x-n.x,y:r.y-n.y},dragStatus:"ready",pointerId:e})},t.prototype.startDrag=function(t){s.DD._dragElements.has(this._id)||this._createDragElement(t),s.DD._dragElements.get(this._id).dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},!0)},t.prototype._setDragPosition=function(t,e){var i=this.getStage()._getPointerById(e.pointerId);if(i){var r={x:i.x-e.offset.x,y:i.y-e.offset.y},o=this.dragBoundFunc();if(void 0!==o){var a=o.call(this,r,t);a?r=a:n.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}this._lastPos&&this._lastPos.x===r.x&&this._lastPos.y===r.y||(this.setAbsolutePosition(r),this.getLayer()?this.getLayer().batchDraw():this.getStage()&&this.getStage().batchDraw()),this._lastPos=r}},t.prototype.stopDrag=function(t){var e=s.DD._dragElements.get(this._id);e&&(e.dragStatus="stopped"),s.DD._endDragBefore(t),s.DD._endDragAfter(t)},t.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()},t.prototype.isDragging=function(){var t=s.DD._dragElements.get(this._id);return!!t&&"dragging"===t.dragStatus},t.prototype._listenDrag=function(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",(function(t){var e=this;if((!(void 0!==t.evt.button)||a.Konva.dragButtons.indexOf(t.evt.button)>=0)&&!this.isDragging()){var i=!1;s.DD._dragElements.forEach((function(t){e.isAncestorOf(t.node)&&(i=!0)})),i||this._createDragElement(t)}}))},t.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;var t=s.DD._dragElements.get(this._id),e=t&&"dragging"===t.dragStatus,i=t&&"ready"===t.dragStatus;e?this.stopDrag():i&&s.DD._dragElements.delete(this._id)}},t.prototype._dragCleanup=function(){this.off("mousedown.konva"),this.off("touchstart.konva")},t.create=function(t,e){return n.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,e)},t._createNode=function(e,i){var r,o,s,l=t.prototype.getClassName.call(e),A=e.children;if(i&&(e.attrs.container=i),a._NODES_REGISTRY[l]||(n.Util.warn('Can not find a node with class name "'+l+'". Fallback to "Shape".'),l="Shape"),r=new(0,a._NODES_REGISTRY[l])(e.attrs),A)for(o=A.length,s=0;s<o;s++)r.add(t._createNode(A[s]));return r},t}();e.Node=B,B.prototype.nodeType="Node",B.prototype._attrsAffectingSize=[];var w=r.Factory.addGetterSetter;w(B,"zIndex"),w(B,"absolutePosition"),w(B,"position"),w(B,"x",0,l.getNumberValidator()),w(B,"y",0,l.getNumberValidator()),w(B,"globalCompositeOperation","source-over",l.getStringValidator()),w(B,"opacity",1,l.getNumberValidator()),w(B,"name","",l.getStringValidator()),w(B,"id","",l.getStringValidator()),w(B,"rotation",0,l.getNumberValidator()),r.Factory.addComponentsGetterSetter(B,"scale",["x","y"]),w(B,"scaleX",1,l.getNumberValidator()),w(B,"scaleY",1,l.getNumberValidator()),r.Factory.addComponentsGetterSetter(B,"skew",["x","y"]),w(B,"skewX",0,l.getNumberValidator()),w(B,"skewY",0,l.getNumberValidator()),r.Factory.addComponentsGetterSetter(B,"offset",["x","y"]),w(B,"offsetX",0,l.getNumberValidator()),w(B,"offsetY",0,l.getNumberValidator()),w(B,"dragDistance",null,l.getNumberValidator()),w(B,"width",0,l.getNumberValidator()),w(B,"height",0,l.getNumberValidator()),w(B,"listening",!0,l.getBooleanValidator()),w(B,"preventDefault",!0,l.getBooleanValidator()),w(B,"filters",null,(function(t){return this._filterUpToDate=!1,t})),w(B,"visible",!0,l.getBooleanValidator()),w(B,"transformsEnabled","all",l.getStringValidator()),w(B,"size"),w(B,"dragBoundFunc"),w(B,"draggable",!1,l.getBooleanValidator()),r.Factory.backCompat(B,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),n.Collection.mapMethods(B)},41746:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(85256),r=new Map,o=void 0!==n.Konva._global.PointerEvent;function a(t){return{evt:t,pointerId:t.pointerId}}
function s(t,e){var i=r.get(t);if(i){var n=i.getStage();n&&n.content,r.delete(t),o&&i._fire("lostpointercapture",a(new PointerEvent("lostpointercapture")))}}e.getCapturedShape=function(t){return r.get(t)},e.createEvent=a,e.hasPointerCapture=function(t,e){return r.get(t)===e},e.setPointerCapture=function(t,e){s(t),e.getStage()&&(r.set(t,e),o&&e._fire("gotpointercapture",a(new PointerEvent("gotpointercapture"))))},e.releaseCapture=s},95706:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,a=i(41808),s=i(49609),l=i(6627),A=i(29172),c=i(85256),h=i(41746),d="hasShadow",u="shadowRGBA",p="patternImage",g="linearGradient",f="radialGradient";function m(){return o||(o=a.Util.createCanvasElement().getContext("2d"))}function y(){this._clearCache(d)}function b(){this._clearCache(u)}function v(){this._clearCache(p)}function E(){this._clearCache(g)}function I(){this._clearCache(f)}e.shapes={};var C=function(t){function i(i){for(var n,r=t.call(this,i)||this;!(n=a.Util.getRandomColor())||n in e.shapes;);return r.colorKey=n,e.shapes[n]=r,r.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",y),r.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",b),r.on("fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva",v),r.on("fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",E),r.on("fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",I),r}return r(i,t),i.prototype.getContext=function(){return this.getLayer().getContext()},i.prototype.getCanvas=function(){return this.getLayer().getCanvas()},i.prototype.getSceneFunc=function(){return this.attrs.sceneFunc||this._sceneFunc},i.prototype.getHitFunc=function(){return this.attrs.hitFunc||this._hitFunc},i.prototype.hasShadow=function(){return this._getCache(d,this._hasShadow)},i.prototype._hasShadow=function(){return this.shadowEnabled()&&0!==this.shadowOpacity()&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())},i.prototype._getFillPattern=function(){return this._getCache(p,this.__getFillPattern)},i.prototype.__getFillPattern=function(){if(this.fillPatternImage())return m().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat")},i.prototype._getLinearGradient=function(){return this._getCache(g,this.__getLinearGradient)},i.prototype.__getLinearGradient=function(){var t=this.fillLinearGradientColorStops();if(t){for(var e=m(),i=this.fillLinearGradientStartPoint(),n=this.fillLinearGradientEndPoint(),r=e.createLinearGradient(i.x,i.y,n.x,n.y),o=0;o<t.length;o+=2)r.addColorStop(t[o],t[o+1]);return r}},i.prototype._getRadialGradient=function(){return this._getCache(f,this.__getRadialGradient)},i.prototype.__getRadialGradient=function(){var t=this.fillRadialGradientColorStops();if(t){for(var e=m(),i=this.fillRadialGradientStartPoint(),n=this.fillRadialGradientEndPoint(),r=e.createRadialGradient(i.x,i.y,this.fillRadialGradientStartRadius(),n.x,n.y,this.fillRadialGradientEndRadius()),o=0;o<t.length;o+=2)r.addColorStop(t[o],t[o+1]);return r}},i.prototype.getShadowRGBA=function(){return this._getCache(u,this._getShadowRGBA)},i.prototype._getShadowRGBA=function(){if(this.hasShadow()){var t=a.Util.colorToRGBA(this.shadowColor());return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}},i.prototype.hasFill=function(){var t=this;return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],(function(){return t.fillEnabled()&&!!(t.fill()||t.fillPatternImage()||t.fillLinearGradientColorStops()||t.fillRadialGradientColorStops())}))},i.prototype.hasStroke=function(){var t=this;return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],(function(){return t.strokeEnabled()&&t.strokeWidth()&&!(!t.stroke()&&!t.strokeLinearGradientColorStops())}))},i.prototype.hasHitStroke=function(){var t=this.hitStrokeWidth();return"auto"===t?this.hasStroke():this.strokeEnabled()&&!!t},i.prototype.intersects=function(t){var e=this.getStage().bufferHitCanvas;return e.getContext().clear(),this.drawHit(e),e.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data[3]>0},i.prototype.destroy=function(){return l.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this},i.prototype._useBufferCanvas=function(t){var e;if(!this.getStage())return!1;if(!(null===(e=this.attrs.perfectDrawEnabled)||void 0===e||e))return!1;var i=t||this.hasFill(),n=this.hasStroke(),r=1!==this.getAbsoluteOpacity();if(i&&n&&r)return!0;var o=this.hasShadow(),a=this.shadowForStrokeEnabled();return!!(i&&n&&o&&a)},i.prototype.setStrokeHitEnabled=function(t){a.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)},i.prototype.getStrokeHitEnabled=function(){return 0!==this.hitStrokeWidth()},i.prototype.getSelfRect=function(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}},i.prototype.getClientRect=function(t){var e=(t=t||{}).skipTransform,i=t.relativeTo,n=this.getSelfRect(),r=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,o=n.width+r,a=n.height+r,s=!t.skipShadow&&this.hasShadow(),l=s?this.shadowOffsetX():0,A=s?this.shadowOffsetY():0,c=o+Math.abs(l),h=a+Math.abs(A),d=s&&this.shadowBlur()||0,u=c+2*d,p=h+2*d,g=0;Math.round(r/2)!==r/2&&(g=1);var f={width:u+g,height:p+g,x:-Math.round(r/2+d)+Math.min(l,0)+n.x,y:-Math.round(r/2+d)+Math.min(A,0)+n.y};return e?f:this._transformedRect(f,i)},i.prototype.drawScene=function(t,e){var i,n,r=this.getLayer(),o=t||r.getCanvas(),a=o.getContext(),s=this._getCanvasCache(),l=this.getSceneFunc(),A=this.hasShadow(),c=o.isCache,h=o.isCache,d=e===this;if(!this.isVisible()&&!c)return this;if(s){a.save();var u=this.getAbsoluteTransform(e).getMatrix();return a.transform(u[0],u[1],u[2],u[3],u[4],u[5]),this._drawCachedSceneCanvas(a),a.restore(),this}if(!l)return this;if(a.save(),this._useBufferCanvas()&&!h){(n=(i=this.getStage().bufferCanvas).getContext()).clear(),n.save(),n._applyLineJoin(this);var p=this.getAbsoluteTransform(e).getMatrix();n.transform(p[0],p[1],p[2],p[3],p[4],p[5]),l.call(this,n,this),n.restore();var g=i.pixelRatio;A&&a._applyShadow(this),a._applyOpacity(this),a._applyGlobalCompositeOperation(this),a.drawImage(i._canvas,0,0,i.width/g,i.height/g)}else{if(a._applyLineJoin(this),!d){p=this.getAbsoluteTransform(e).getMatrix();a.transform(p[0],p[1],p[2],p[3],p[4],p[5]),a._applyOpacity(this),a._applyGlobalCompositeOperation(this)}A&&a._applyShadow(this),l.call(this,a,this)}return a.restore(),this},i.prototype.drawHit=function(t,e){if(!this.shouldDrawHit(e))return this;var i=this.getLayer(),n=t||i.hitCanvas,r=n&&n.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._getCanvasCache(),l=s&&s.hit;if(this.colorKey||(console.log(this),a.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. See the shape in logs above. If you want to reuse shape you should call remove() instead of destroy()")),l){r.save();var A=this.getAbsoluteTransform(e).getMatrix();return r.transform(A[0],A[1],A[2],A[3],A[4],A[5]),this._drawCachedHitCanvas(r),
r.restore(),this}if(!o)return this;if(r.save(),r._applyLineJoin(this),!(this===e)){var c=this.getAbsoluteTransform(e).getMatrix();r.transform(c[0],c[1],c[2],c[3],c[4],c[5])}return o.call(this,r,this),r.restore(),this},i.prototype.drawHitFromCache=function(t){void 0===t&&(t=0);var e,i,n,r,o,s=this._getCanvasCache(),l=this._getCachedSceneCanvas(),A=s.hit,c=A.getContext(),h=A.getWidth(),d=A.getHeight();c.clear(),c.drawImage(l._canvas,0,0,h,d);try{for(n=(i=(e=c.getImageData(0,0,h,d)).data).length,r=a.Util._hexToRgb(this.colorKey),o=0;o<n;o+=4)i[o+3]>t?(i[o]=r.r,i[o+1]=r.g,i[o+2]=r.b,i[o+3]=255):i[o+3]=0;c.putImageData(e,0,0)}catch(t){a.Util.error("Unable to draw hit graph from cached scene canvas. "+t.message)}return this},i.prototype.hasPointerCapture=function(t){return h.hasPointerCapture(t,this)},i.prototype.setPointerCapture=function(t){h.setPointerCapture(t,this)},i.prototype.releaseCapture=function(t){h.releaseCapture(t,this)},i}(l.Node);e.Shape=C,C.prototype._fillFunc=function(t){t.fill()},C.prototype._strokeFunc=function(t){t.stroke()},C.prototype._fillFuncHit=function(t){t.fill()},C.prototype._strokeFuncHit=function(t){t.stroke()},C.prototype._centroid=!1,C.prototype.nodeType="Shape",c._registerNode(C),s.Factory.addGetterSetter(C,"stroke",void 0,A.getStringValidator()),s.Factory.addGetterSetter(C,"strokeWidth",2,A.getNumberValidator()),s.Factory.addGetterSetter(C,"hitStrokeWidth","auto",A.getNumberOrAutoValidator()),s.Factory.addGetterSetter(C,"strokeHitEnabled",!0,A.getBooleanValidator()),s.Factory.addGetterSetter(C,"perfectDrawEnabled",!0,A.getBooleanValidator()),s.Factory.addGetterSetter(C,"shadowForStrokeEnabled",!0,A.getBooleanValidator()),s.Factory.addGetterSetter(C,"lineJoin"),s.Factory.addGetterSetter(C,"lineCap"),s.Factory.addGetterSetter(C,"sceneFunc"),s.Factory.addGetterSetter(C,"hitFunc"),s.Factory.addGetterSetter(C,"dash"),s.Factory.addGetterSetter(C,"dashOffset",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"shadowColor",void 0,A.getStringValidator()),s.Factory.addGetterSetter(C,"shadowBlur",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"shadowOpacity",1,A.getNumberValidator()),s.Factory.addComponentsGetterSetter(C,"shadowOffset",["x","y"]),s.Factory.addGetterSetter(C,"shadowOffsetX",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"shadowOffsetY",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"fillPatternImage"),s.Factory.addGetterSetter(C,"fill",void 0,A.getStringValidator()),s.Factory.addGetterSetter(C,"fillPatternX",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"fillPatternY",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"fillLinearGradientColorStops"),s.Factory.addGetterSetter(C,"strokeLinearGradientColorStops"),s.Factory.addGetterSetter(C,"fillRadialGradientStartRadius",0),s.Factory.addGetterSetter(C,"fillRadialGradientEndRadius",0),s.Factory.addGetterSetter(C,"fillRadialGradientColorStops"),s.Factory.addGetterSetter(C,"fillPatternRepeat","repeat"),s.Factory.addGetterSetter(C,"fillEnabled",!0),s.Factory.addGetterSetter(C,"strokeEnabled",!0),s.Factory.addGetterSetter(C,"shadowEnabled",!0),s.Factory.addGetterSetter(C,"dashEnabled",!0),s.Factory.addGetterSetter(C,"strokeScaleEnabled",!0),s.Factory.addGetterSetter(C,"fillPriority","color"),s.Factory.addComponentsGetterSetter(C,"fillPatternOffset",["x","y"]),s.Factory.addGetterSetter(C,"fillPatternOffsetX",0,A.getNumberValidator()),s.Factory.addGetterSetter(C,"fillPatternOffsetY",0,A.getNumberValidator()),s.Factory.addComponentsGetterSetter(C,"fillPatternScale",["x","y"]),s.Factory.addGetterSetter(C,"fillPatternScaleX",1,A.getNumberValidator()),s.Factory.addGetterSetter(C,"fillPatternScaleY",1,A.getNumberValidator()),s.Factory.addComponentsGetterSetter(C,"fillLinearGradientStartPoint",["x","y"]),s.Factory.addComponentsGetterSetter(C,"strokeLinearGradientStartPoint",["x","y"]),s.Factory.addGetterSetter(C,"fillLinearGradientStartPointX",0),s.Factory.addGetterSetter(C,"strokeLinearGradientStartPointX",0),s.Factory.addGetterSetter(C,"fillLinearGradientStartPointY",0),s.Factory.addGetterSetter(C,"strokeLinearGradientStartPointY",0),s.Factory.addComponentsGetterSetter(C,"fillLinearGradientEndPoint",["x","y"]),s.Factory.addComponentsGetterSetter(C,"strokeLinearGradientEndPoint",["x","y"]),s.Factory.addGetterSetter(C,"fillLinearGradientEndPointX",0),s.Factory.addGetterSetter(C,"strokeLinearGradientEndPointX",0),s.Factory.addGetterSetter(C,"fillLinearGradientEndPointY",0),s.Factory.addGetterSetter(C,"strokeLinearGradientEndPointY",0),s.Factory.addComponentsGetterSetter(C,"fillRadialGradientStartPoint",["x","y"]),s.Factory.addGetterSetter(C,"fillRadialGradientStartPointX",0),s.Factory.addGetterSetter(C,"fillRadialGradientStartPointY",0),s.Factory.addComponentsGetterSetter(C,"fillRadialGradientEndPoint",["x","y"]),s.Factory.addGetterSetter(C,"fillRadialGradientEndPointX",0),s.Factory.addGetterSetter(C,"fillRadialGradientEndPointY",0),s.Factory.addGetterSetter(C,"fillPatternRotation",0),s.Factory.backCompat(C,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),a.Collection.mapMethods(C)},49432:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(26937),l=i(85256),A=i(31074),c=i(50090),h=i(85256),d=i(41746),u="mouseout",p="mouseleave",g="mouseover",f="mouseenter",m="mousemove",y="mousedown",b="mouseup",v="pointermove",E="pointerdown",I="pointerup",C="contextmenu",B="click",w="dblclick",x="touchstart",Q="touchend",S="dbltap",k="touchmove",D="wheel",_=[f,y,m,b,u,x,k,Q,g,D,C,E,v,I,"pointercancel","lostpointercapture"],R=_.length;function M(t,e){t.content.addEventListener(e,(function(i){t["_"+e](i)}),!1)}function T(t){return void 0===t&&(t={}),(t.clipFunc||t.clipWidth||t.clipHeight)&&o.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),t}e.stages=[];var F=function(t){function i(i){var n=t.call(this,T(i))||this;return n._pointerPositions=[],n._changedPointerPositions=[],n._buildDOM(),n._bindContentEvents(),e.stages.push(n),n.on("widthChange.konva heightChange.konva",n._resizeDOM),n.on("visibleChange.konva",n._checkVisibility),n.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",(function(){T(n.attrs)})),n._checkVisibility(),n}return r(i,t),i.prototype._validateAdd=function(t){var e="Layer"===t.getType(),i="FastLayer"===t.getType();e||i||o.Util.throw("You may only add layers to the stage.")},i.prototype._checkVisibility=function(){if(this.content){var t=this.visible()?"":"none";this.content.style.display=t}},i.prototype.setContainer=function(t){if("string"==typeof t){if("."===t.charAt(0)){var e=t.slice(1);t=document.getElementsByClassName(e)[0]}else{var i;i="#"!==t.charAt(0)?t:t.slice(1),t=document.getElementById(i)}if(!t)throw"Can not find container in document with id "+i}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this},i.prototype.shouldDrawHit=function(){return!0},i.prototype.clear=function(){var t,e=this.children,i=e.length;for(t=0;t<i;t++)e[t].clear();return this},i.prototype.clone=function(t){return t||(t={}),t.container=document.createElement("div"),s.Container.prototype.clone.call(this,t)},i.prototype.destroy=function(){t.prototype.destroy.call(this);var i=this.content;i&&o.Util._isInDocument(i)&&this.container().removeChild(i);var n=e.stages.indexOf(this);return n>-1&&e.stages.splice(n,1),this},i.prototype.getPointerPosition=function(){var t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y
}:(o.Util.warn("Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);"),null)},i.prototype._getPointerById=function(t){return this._pointerPositions.find((function(e){return e.id===t}))},i.prototype.getPointersPositions=function(){return this._pointerPositions},i.prototype.getStage=function(){return this},i.prototype.getContent=function(){return this.content},i.prototype._toKonvaCanvas=function(t){var e=(t=t||{}).x||0,i=t.y||0,n=new A.SceneCanvas({width:t.width||this.width(),height:t.height||this.height(),pixelRatio:t.pixelRatio||1}),r=n.getContext()._context,o=this.children;return(e||i)&&r.translate(-1*e,-1*i),o.each((function(n){if(n.isVisible()){var o=n._toKonvaCanvas(t);r.drawImage(o._canvas,e,i,o.getWidth()/o.getPixelRatio(),o.getHeight()/o.getPixelRatio())}})),n},i.prototype.getIntersection=function(t,e){if(!t)return null;var i,n,r=this.children;for(i=r.length-1;i>=0;i--)if(n=r[i].getIntersection(t,e))return n;return null},i.prototype._resizeDOM=function(){var t=this.width(),e=this.height();this.content&&(this.content.style.width=t+"px",this.content.style.height=e+"px"),this.bufferCanvas.setSize(t,e),this.bufferHitCanvas.setSize(t,e),this.children.each((function(i){i.setSize({width:t,height:e}),i.draw()}))},i.prototype.add=function(e){if(arguments.length>1){for(var i=0;i<arguments.length;i++)this.add(arguments[i]);return this}t.prototype.add.call(this,e);var n=this.children.length;return n>5&&o.Util.warn("The stage has "+n+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),e.setSize({width:this.width(),height:this.height()}),e.draw(),l.Konva.isBrowser&&this.content.appendChild(e.canvas._canvas),this},i.prototype.getParent=function(){return null},i.prototype.getLayer=function(){return null},i.prototype.hasPointerCapture=function(t){return d.hasPointerCapture(t,this)},i.prototype.setPointerCapture=function(t){d.setPointerCapture(t,this)},i.prototype.releaseCapture=function(t){d.releaseCapture(t,this)},i.prototype.getLayers=function(){return this.getChildren()},i.prototype._bindContentEvents=function(){if(l.Konva.isBrowser)for(var t=0;t<R;t++)M(this,_[t])},i.prototype._mouseenter=function(t){this.setPointersPositions(t),this._fire(f,{evt:t,target:this,currentTarget:this})},i.prototype._mouseover=function(t){this.setPointersPositions(t),this._fire("contentMouseover",{evt:t}),this._fire(g,{evt:t,target:this,currentTarget:this})},i.prototype._mouseout=function(t){var e;this.setPointersPositions(t);var i=(null===(e=this.targetShape)||void 0===e?void 0:e.getStage())?this.targetShape:null,n=!c.DD.isDragging||l.Konva.hitOnDragEnabled;i&&n?(i._fireAndBubble(u,{evt:t}),i._fireAndBubble(p,{evt:t}),this._fire(p,{evt:t,target:this,currentTarget:this}),this.targetShape=null):n&&(this._fire(p,{evt:t,target:this,currentTarget:this}),this._fire(u,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[],this._fire("contentMouseout",{evt:t})},i.prototype._mousemove=function(t){var e;if(l.Konva.UA.ieMobile)return this._touchmove(t);this.setPointersPositions(t);var i,n=o.Util._getFirstPointerId(t),r=(null===(e=this.targetShape)||void 0===e?void 0:e.getStage())?this.targetShape:null,a=!c.DD.isDragging||l.Konva.hitOnDragEnabled;if(a){if((i=this.getIntersection(this.getPointerPosition()))&&i.isListening())a&&r!==i?(r&&(r._fireAndBubble(u,{evt:t,pointerId:n},i),r._fireAndBubble(p,{evt:t,pointerId:n},i)),i._fireAndBubble(g,{evt:t,pointerId:n},r),i._fireAndBubble(f,{evt:t,pointerId:n},r),i._fireAndBubble(m,{evt:t,pointerId:n}),this.targetShape=i):i._fireAndBubble(m,{evt:t,pointerId:n});else r&&a&&(r._fireAndBubble(u,{evt:t,pointerId:n}),r._fireAndBubble(p,{evt:t,pointerId:n}),this._fire(g,{evt:t,target:this,currentTarget:this,pointerId:n}),this.targetShape=null),this._fire(m,{evt:t,target:this,currentTarget:this,pointerId:n});this._fire("contentMousemove",{evt:t})}t.cancelable&&t.preventDefault()},i.prototype._mousedown=function(t){if(l.Konva.UA.ieMobile)return this._touchstart(t);this.setPointersPositions(t);var e=o.Util._getFirstPointerId(t),i=this.getIntersection(this.getPointerPosition());c.DD.justDragged=!1,l.Konva.listenClickTap=!0,i&&i.isListening()?(this.clickStartShape=i,i._fireAndBubble(y,{evt:t,pointerId:e})):this._fire(y,{evt:t,target:this,currentTarget:this,pointerId:e}),this._fire("contentMousedown",{evt:t})},i.prototype._mouseup=function(t){if(l.Konva.UA.ieMobile)return this._touchend(t);this.setPointersPositions(t);var e=o.Util._getFirstPointerId(t),i=this.getIntersection(this.getPointerPosition()),n=this.clickStartShape,r=this.clickEndShape,a=!1;l.Konva.inDblClickWindow?(a=!0,clearTimeout(this.dblTimeout)):c.DD.justDragged||(l.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout((function(){l.Konva.inDblClickWindow=!1}),l.Konva.dblClickWindow),i&&i.isListening()?(this.clickEndShape=i,i._fireAndBubble(b,{evt:t,pointerId:e}),l.Konva.listenClickTap&&n&&n._id===i._id&&(i._fireAndBubble(B,{evt:t,pointerId:e}),a&&r&&r===i&&i._fireAndBubble(w,{evt:t,pointerId:e}))):(this.clickEndShape=null,this._fire(b,{evt:t,target:this,currentTarget:this,pointerId:e}),l.Konva.listenClickTap&&this._fire(B,{evt:t,target:this,currentTarget:this,pointerId:e}),a&&this._fire(w,{evt:t,target:this,currentTarget:this,pointerId:e})),this._fire("contentMouseup",{evt:t}),l.Konva.listenClickTap&&(this._fire("contentClick",{evt:t}),a&&this._fire("contentDblclick",{evt:t})),l.Konva.listenClickTap=!1,t.cancelable&&t.preventDefault()},i.prototype._contextmenu=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(C,{evt:t}):this._fire(C,{evt:t,target:this,currentTarget:this}),this._fire("contentContextmenu",{evt:t})},i.prototype._touchstart=function(t){var e=this;this.setPointersPositions(t);var i=!1;this._changedPointerPositions.forEach((function(n){var r=e.getIntersection(n);l.Konva.listenClickTap=!0,c.DD.justDragged=!1,r&&r.isListening()&&(l.Konva.captureTouchEventsEnabled&&r.setPointerCapture(n.id),e.tapStartShape=r,r._fireAndBubble(x,{evt:t,pointerId:n.id},e),i=!0,r.isListening()&&r.preventDefault()&&t.cancelable&&t.preventDefault())})),i||this._fire(x,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire("contentTouchstart",{evt:t})},i.prototype._touchmove=function(t){var e=this;if(this.setPointersPositions(t),!c.DD.isDragging||l.Konva.hitOnDragEnabled){var i=!1,n={};this._changedPointerPositions.forEach((function(r){var o=d.getCapturedShape(r.id)||e.getIntersection(r);o&&o.isListening()&&(n[o._id]||(n[o._id]=!0,o._fireAndBubble(k,{evt:t,pointerId:r.id}),i=!0,o.isListening()&&o.preventDefault()&&t.cancelable&&t.preventDefault()))})),i||this._fire(k,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire("contentTouchmove",{evt:t})}c.DD.isDragging&&c.DD.node.preventDefault()&&t.cancelable&&t.preventDefault()},i.prototype._touchend=function(t){var e=this;this.setPointersPositions(t);var i=this.tapEndShape,n=!1;l.Konva.inDblClickWindow?(n=!0,clearTimeout(this.dblTimeout)):c.DD.justDragged||(l.Konva.inDblClickWindow=!0,clearTimeout(this.dblTimeout)),this.dblTimeout=setTimeout((function(){l.Konva.inDblClickWindow=!1}),l.Konva.dblClickWindow);var r=!1,o={},a=!1,s=!1;this._changedPointerPositions.forEach((function(A){var c=d.getCapturedShape(A.id)||e.getIntersection(A);c&&c.releaseCapture(A.id),c&&c.isListening()&&(o[c._id]||(o[c._id]=!0,e.tapEndShape=c,c._fireAndBubble(Q,{evt:t,pointerId:A.id}),r=!0,l.Konva.listenClickTap&&c===e.tapStartShape&&(a=!0,c._fireAndBubble("tap",{evt:t,pointerId:A.id}),n&&i&&i===c&&(s=!0,c._fireAndBubble(S,{evt:t,pointerId:A.id}))),c.isListening()&&c.preventDefault()&&t.cancelable&&t.preventDefault()))})),r||this._fire(Q,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),l.Konva.listenClickTap&&!a&&(this.tapEndShape=null,this._fire("tap",{evt:t,target:this,
currentTarget:this,pointerId:this._changedPointerPositions[0].id})),n&&!s&&this._fire(S,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),this._fire("contentTouchend",{evt:t}),l.Konva.listenClickTap&&(this._fire("contentTap",{evt:t}),n&&this._fire("contentDbltap",{evt:t})),this.preventDefault()&&t.cancelable&&t.preventDefault(),l.Konva.listenClickTap=!1},i.prototype._wheel=function(t){this.setPointersPositions(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()?e._fireAndBubble(D,{evt:t}):this._fire(D,{evt:t,target:this,currentTarget:this}),this._fire("contentWheel",{evt:t})},i.prototype._pointerdown=function(t){if(l.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=d.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(E,d.createEvent(t))}},i.prototype._pointermove=function(t){if(l.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=d.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(v,d.createEvent(t))}},i.prototype._pointerup=function(t){if(l.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=d.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(I,d.createEvent(t)),d.releaseCapture(t.pointerId)}},i.prototype._pointercancel=function(t){if(l.Konva._pointerEventsEnabled){this.setPointersPositions(t);var e=d.getCapturedShape(t.pointerId)||this.getIntersection(this.getPointerPosition());e&&e._fireAndBubble(I,d.createEvent(t)),d.releaseCapture(t.pointerId)}},i.prototype._lostpointercapture=function(t){d.releaseCapture(t.pointerId)},i.prototype.setPointersPositions=function(t){var e=this,i=this._getContentPosition(),n=null,r=null;void 0!==(t=t||window.event).touches?(this._pointerPositions=[],this._changedPointerPositions=[],o.Collection.prototype.each.call(t.touches,(function(t){e._pointerPositions.push({id:t.identifier,x:(t.clientX-i.left)/i.scaleX,y:(t.clientY-i.top)/i.scaleY})})),o.Collection.prototype.each.call(t.changedTouches||t.touches,(function(t){e._changedPointerPositions.push({id:t.identifier,x:(t.clientX-i.left)/i.scaleX,y:(t.clientY-i.top)/i.scaleY})}))):(n=(t.clientX-i.left)/i.scaleX,r=(t.clientY-i.top)/i.scaleY,this.pointerPos={x:n,y:r},this._pointerPositions=[{x:n,y:r,id:o.Util._getFirstPointerId(t)}],this._changedPointerPositions=[{x:n,y:r,id:o.Util._getFirstPointerId(t)}])},i.prototype._setPointerPosition=function(t){o.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)},i.prototype._getContentPosition=function(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}},i.prototype._buildDOM=function(){if(this.bufferCanvas=new A.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new A.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),l.Konva.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}},i.prototype.cache=function(){return o.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this},i.prototype.clearCache=function(){return this},i.prototype.batchDraw=function(){return this.children.each((function(t){t.batchDraw()})),this},i}(s.Container);e.Stage=F,F.prototype.nodeType="Stage",h._registerNode(F),a.Factory.addGetterSetter(F,"container")},46485:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(41808),r=i(37746),o=i(6627),a=i(85256),s={node:1,duration:1,easing:1,onFinish:1,yoyo:1},l=0,A=["fill","stroke","shadowColor"],c=function(){function t(t,e,i,n,r,o,a){this.prop=t,this.propFunc=e,this.begin=n,this._pos=n,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=i,this._change=r-this.begin,this.pause()}return t.prototype.fire=function(t){var e=this[t];e&&e()},t.prototype.setTime=function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},t.prototype.getTime=function(){return this._time},t.prototype.setPosition=function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},t.prototype.getPosition=function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},t.prototype.play=function(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},t.prototype.reverse=function(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},t.prototype.seek=function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},t.prototype.reset=function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},t.prototype.finish=function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},t.prototype.update=function(){this.setPosition(this.getPosition(this._time))},t.prototype.onEnterFrame=function(){var t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)},t.prototype.pause=function(){this.state=1,this.fire("onPause")},t.prototype.getTimer=function(){return(new Date).getTime()},t}(),h=function(){function t(i){var o,A,h=this,d=i.node,u=d._id,p=i.easing||e.Easings.Linear,g=!!i.yoyo;o=void 0===i.duration?.3:0===i.duration?.001:i.duration,this.node=d,this._id=l++;var f=d.getLayer()||(d instanceof a.Konva.Stage?d.getLayers():null);for(A in f||n.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new r.Animation((function(){h.tween.onEnterFrame()}),f),this.tween=new c(A,(function(t){h._tweenFunc(t)}),p,0,1,1e3*o,g),this._addListeners(),t.attrs[u]||(t.attrs[u]={}),t.attrs[u][this._id]||(t.attrs[u][this._id]={}),t.tweens[u]||(t.tweens[u]={}),i)void 0===s[A]&&this._addAttr(A,i[A]);this.reset(),this.onFinish=i.onFinish,this.onReset=i.onReset}return t.prototype._addAttr=function(e,i){var r,o,a,s,l,c,h,d,u=this.node,p=u._id;if((a=t.tweens[p][e])&&delete t.attrs[p][a][e],r=u.getAttr(e),n.Util._isArray(i))if(o=[],l=Math.max(i.length,r.length),"points"===e&&i.length!==r.length&&(i.length>r.length?(h=r,r=n.Util._prepareArrayForTween(r,i,u.closed())):(c=i,i=n.Util._prepareArrayForTween(i,r,u.closed()))),0===e.indexOf("fill"))for(s=0;s<l;s++)if(s%2==0)o.push(i[s]-r[s]);else{var g=n.Util.colorToRGBA(r[s]);d=n.Util.colorToRGBA(i[s]),r[s]=g,o.push({r:d.r-g.r,g:d.g-g.g,b:d.b-g.b,a:d.a-g.a})}else for(s=0;s<l;s++)o.push(i[s]-r[s]);else-1!==A.indexOf(e)?(r=n.Util.colorToRGBA(r),o={r:(d=n.Util.colorToRGBA(i)).r-r.r,g:d.g-r.g,b:d.b-r.b,a:d.a-r.a}):o=i-r;t.attrs[p][this._id][e]={start:r,diff:o,end:i,trueEnd:c,trueStart:h},t.tweens[p][e]=this._id},t.prototype._tweenFunc=function(e){var i,r,o,a,s,l,c,h,d=this.node,u=t.attrs[d._id][this._id];for(i in u){if(o=(r=u[i]).start,a=r.diff,h=r.end,n.Util._isArray(o))if(s=[],c=Math.max(o.length,h.length),0===i.indexOf("fill"))for(l=0;l<c;l++)l%2==0?s.push((o[l]||0)+a[l]*e):s.push("rgba("+Math.round(o[l].r+a[l].r*e)+","+Math.round(o[l].g+a[l].g*e)+","+Math.round(o[l].b+a[l].b*e)+","+(o[l].a+a[l].a*e)+")");else for(l=0;l<c;l++)s.push((o[l]||0)+a[l]*e);else s=-1!==A.indexOf(i)?"rgba("+Math.round(o.r+a.r*e)+","+Math.round(o.g+a.g*e)+","+Math.round(o.b+a.b*e)+","+(o.a+a.a*e)+")":o+a*e;d.setAttr(i,s)}},t.prototype._addListeners=function(){var e=this;this.tween.onPlay=function(){e.anim.start()},this.tween.onReverse=function(){e.anim.start()},this.tween.onPause=function(){e.anim.stop()},
this.tween.onFinish=function(){var i=e.node,n=t.attrs[i._id][e._id];n.points&&n.points.trueEnd&&i.setAttr("points",n.points.trueEnd),e.onFinish&&e.onFinish.call(e)},this.tween.onReset=function(){var i=e.node,n=t.attrs[i._id][e._id];n.points&&n.points.trueStart&&i.points(n.points.trueStart),e.onReset&&e.onReset()}},t.prototype.play=function(){return this.tween.play(),this},t.prototype.reverse=function(){return this.tween.reverse(),this},t.prototype.reset=function(){return this.tween.reset(),this},t.prototype.seek=function(t){return this.tween.seek(1e3*t),this},t.prototype.pause=function(){return this.tween.pause(),this},t.prototype.finish=function(){return this.tween.finish(),this},t.prototype.destroy=function(){var e,i=this.node._id,n=this._id,r=t.tweens[i];for(e in this.pause(),r)delete t.tweens[i][e];delete t.attrs[i][n]},t.attrs={},t.tweens={},t}();e.Tween=h,o.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new h(t).play()},e.Easings={BackEaseIn:function(t,e,i,n){var r=1.70158;return i*(t/=n)*t*((r+1)*t-r)+e},BackEaseOut:function(t,e,i,n){var r=1.70158;return i*((t=t/n-1)*t*((r+1)*t+r)+1)+e},BackEaseInOut:function(t,e,i,n){var r=1.70158;return(t/=n/2)<1?i/2*(t*t*((1+(r*=1.525))*t-r))+e:i/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},ElasticEaseIn:function(t,e,i,n,r,o){var a=0;return 0===t?e:1==(t/=n)?e+i:(o||(o=.3*n),!r||r<Math.abs(i)?(r=i,a=o/4):a=o/(2*Math.PI)*Math.asin(i/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t*n-a)*(2*Math.PI)/o)+e)},ElasticEaseOut:function(t,e,i,n,r,o){var a=0;return 0===t?e:1==(t/=n)?e+i:(o||(o=.3*n),!r||r<Math.abs(i)?(r=i,a=o/4):a=o/(2*Math.PI)*Math.asin(i/r),r*Math.pow(2,-10*t)*Math.sin((t*n-a)*(2*Math.PI)/o)+i+e)},ElasticEaseInOut:function(t,e,i,n,r,o){var a=0;return 0===t?e:2==(t/=n/2)?e+i:(o||(o=n*(.3*1.5)),!r||r<Math.abs(i)?(r=i,a=o/4):a=o/(2*Math.PI)*Math.asin(i/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t*n-a)*(2*Math.PI)/o)*-.5+e:r*Math.pow(2,-10*(t-=1))*Math.sin((t*n-a)*(2*Math.PI)/o)*.5+i+e)},BounceEaseOut:function(t,e,i,n){return(t/=n)<1/2.75?i*(7.5625*t*t)+e:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+e:i*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn:function(t,i,n,r){return n-e.Easings.BounceEaseOut(r-t,0,n,r)+i},BounceEaseInOut:function(t,i,n,r){return t<r/2?.5*e.Easings.BounceEaseIn(2*t,0,n,r)+i:.5*e.Easings.BounceEaseOut(2*t-r,0,n,r)+.5*n+i},EaseIn:function(t,e,i,n){return i*(t/=n)*t+e},EaseOut:function(t,e,i,n){return-i*(t/=n)*(t-2)+e},EaseInOut:function(t,e,i,n){return(t/=n/2)<1?i/2*t*t+e:-i/2*(--t*(t-2)-1)+e},StrongEaseIn:function(t,e,i,n){return i*(t/=n)*t*t*t*t+e},StrongEaseOut:function(t,e,i,n){return i*((t=t/n-1)*t*t*t*t+1)+e},StrongEaseInOut:function(t,e,i,n){return(t/=n/2)<1?i/2*t*t*t*t*t+e:i/2*((t-=2)*t*t*t*t+2)+e},Linear:function(t,e,i,n){return i*t/n+e}}},41808:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(85256),r=function(){function t(){}return t.toCollection=function(e){var i,n=new t,r=e.length;for(i=0;i<r;i++)n.push(e[i]);return n},t._mapMethod=function(e){t.prototype[e]=function(){var t,i=this.length,n=[].slice.call(arguments);for(t=0;t<i;t++)this[t][e].apply(this[t],n);return this}},t.mapMethods=function(e){var i=e.prototype;for(var n in i)t._mapMethod(n)},t}();e.Collection=r,r.prototype=[],r.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},r.prototype.toArray=function(){var t,e=[],i=this.length;for(t=0;t<i;t++)e.push(this[t]);return e};var o=function(){function t(t){void 0===t&&(t=[1,0,0,1,0,0]),this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}return t.prototype.reset=function(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0},t.prototype.copy=function(){return new t(this.m)},t.prototype.copyInto=function(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]},t.prototype.point=function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},t.prototype.translate=function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},t.prototype.scale=function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),n=this.m[0]*e+this.m[2]*i,r=this.m[1]*e+this.m[3]*i,o=this.m[0]*-i+this.m[2]*e,a=this.m[1]*-i+this.m[3]*e;return this.m[0]=n,this.m[1]=r,this.m[2]=o,this.m[3]=a,this},t.prototype.getTranslation=function(){return{x:this.m[4],y:this.m[5]}},t.prototype.skew=function(t,e){var i=this.m[0]+this.m[2]*e,n=this.m[1]+this.m[3]*e,r=this.m[2]+this.m[0]*t,o=this.m[3]+this.m[1]*t;return this.m[0]=i,this.m[1]=n,this.m[2]=r,this.m[3]=o,this},t.prototype.multiply=function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],i=this.m[1]*t.m[0]+this.m[3]*t.m[1],n=this.m[0]*t.m[2]+this.m[2]*t.m[3],r=this.m[1]*t.m[2]+this.m[3]*t.m[3],o=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],a=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=i,this.m[2]=n,this.m[3]=r,this.m[4]=o,this.m[5]=a,this},t.prototype.invert=function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,i=-this.m[1]*t,n=-this.m[2]*t,r=this.m[0]*t,o=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=i,this.m[2]=n,this.m[3]=r,this.m[4]=o,this.m[5]=a,this},t.prototype.getMatrix=function(){return this.m},t.prototype.setAbsolutePosition=function(t,e){var i=this.m[0],n=this.m[1],r=this.m[2],o=this.m[3],a=this.m[4],s=(i*(e-this.m[5])-n*(t-a))/(i*o-n*r),l=(t-a-r*s)/i;return this.translate(l,s)},t.prototype.decompose=function(){var t=this.m[0],i=this.m[1],n=this.m[2],r=this.m[3],o=t*r-i*n,a={x:this.m[4],y:this.m[5],rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(0!=t||0!=i){var s=Math.sqrt(t*t+i*i);a.rotation=i>0?Math.acos(t/s):-Math.acos(t/s),a.scaleX=s,a.scaleY=o/s,a.skewX=(t*n+i*r)/o,a.skewY=0}else if(0!=n||0!=r){var l=Math.sqrt(n*n+r*r);a.rotation=Math.PI/2-(r>0?Math.acos(-n/l):-Math.acos(n/l)),a.scaleX=o/l,a.scaleY=l,a.skewX=0,a.skewY=(t*n+i*r)/o}return a.rotation=e.Util._getRotation(a.rotation),a},t}();e.Transform=o;var a=Math.PI/180,s=180/Math.PI,l="Konva error: ",A={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],
magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},c=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,h=[];e.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isPlainObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},_isNumber:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&!isNaN(t)&&isFinite(t)},_isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},_isBoolean:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},isObject:function(t){return t instanceof Object},isValidSelector:function(t){if("string"!=typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},_sign:function(t){return 0===t?0:t>0?1:-1},requestAnimFrame:function(t){h.push(t),1===h.length&&requestAnimationFrame((function(){var t=h;h=[],t.forEach((function(t){t()}))}))},createCanvasElement:function(){var t=document.createElement("canvas");try{t.style=t.style||{}}catch(t){}return t},createImageElement:function(){return document.createElement("img")},_isInDocument:function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1},_simplifyArray:function(t){var i,n,r=[],o=t.length,a=e.Util;for(i=0;i<o;i++)n=t[i],a._isNumber(n)?n=Math.round(1e3*n)/1e3:a._isString(n)||(n=n.toString()),r.push(n);return r},_urlToImage:function(t,e){var i=new n.glob.Image;i.onload=function(){e(i)},i.src=t},_rgbToHex:function(t,e,i){return((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace("#","");var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){for(var t=(16777215*Math.random()|0).toString(16);t.length<6;)t="0"+t;return"#"+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in A?{r:(e=A[t])[0],g:e[1],b:e[2]}:"#"===t[0]?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?(e=c.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",e.Util._namedColorToRBA(t)||e.Util._hex3ColorToRGBA(t)||e.Util._hex6ColorToRGBA(t)||e.Util._rgbColorToRGBA(t)||e.Util._rgbaColorToRGBA(t)||e.Util._hslColorToRGBA(t)},_namedColorToRBA:function(t){var e=A[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){var e=(t=t.match(/rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){var e=(t=t.match(/rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_hslColorToRGBA:function(t){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(t)){var e=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t),i=(e[0],e.slice(1)),n=Number(i[0])/360,r=Number(i[1])/100,o=Number(i[2])/100,a=void 0,s=void 0,l=void 0;if(0===r)return l=255*o,{r:Math.round(l),g:Math.round(l),b:Math.round(l),a:1};for(var A=2*o-(a=o<.5?o*(1+r):o+r-o*r),c=[0,0,0],h=0;h<3;h++)(s=n+1/3*-(h-1))<0&&s++,s>1&&s--,l=6*s<1?A+6*(a-A)*s:2*s<1?a:3*s<2?A+(a-A)*(2/3-s)*6:A,c[h]=255*l;return{r:Math.round(c[0]),g:Math.round(c[1]),b:Math.round(c[2]),a:1}}},haveIntersection:function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>t.y+t.height||e.y+e.height<t.y)},cloneObject:function(t){var e={};for(var i in t)this._isPlainObject(t[i])?e[i]=this.cloneObject(t[i]):this._isArray(t[i])?e[i]=this.cloneArray(t[i]):e[i]=t[i];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(t){return t*a},_radToDeg:function(t){return t*s},_getRotation:function(t){return n.Konva.angleDeg?e.Util._radToDeg(t):t},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error(l+t)},error:function(t){console.error(l+t)},warn:function(t){n.Konva.showWarnings&&console.warn("Konva warning: "+t)},extend:function(t,e){function i(){this.constructor=t}i.prototype=e.prototype;var n=t.prototype;for(var r in t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.__super__=e.prototype,t.super=e},_getControlPoints:function(t,e,i,n,r,o,a){var s=Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2)),l=Math.sqrt(Math.pow(r-i,2)+Math.pow(o-n,2)),A=a*s/(s+l),c=a*l/(s+l);return[i-A*(r-t),n-A*(o-e),i+c*(r-t),n+c*(o-e)]},_expandPoints:function(t,i){var n,r,o=t.length,a=[];for(n=2;n<o-2;n+=2)r=e.Util._getControlPoints(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],i),a.push(r[0]),a.push(r[1]),a.push(t[n]),a.push(t[n+1]),a.push(r[2]),a.push(r[3]);return a},each:function(t,e){for(var i in t)e(i,t[i])},_inRange:function(t,e,i){return e<=t&&t<i},_getProjectionToSegment:function(t,e,i,n,r,o){var a,s,l,A=(t-i)*(t-i)+(e-n)*(e-n);if(0==A)a=t,s=e,l=(r-i)*(r-i)+(o-n)*(o-n);else{var c=((r-t)*(i-t)+(o-e)*(n-e))/A;c<0?(a=t,s=e,l=(t-r)*(t-r)+(e-o)*(e-o)):c>1?(a=i,s=n,l=(i-r)*(i-r)+(n-o)*(n-o)):l=((a=t+c*(i-t))-r)*(a-r)+((s=e+c*(n-e))-o)*(s-o)}return[a,s,l]},_getProjectionToLine:function(t,i,n){var r=e.Util.cloneObject(t),o=Number.MAX_VALUE;return i.forEach((function(a,s){if(n||s!==i.length-1){var l=i[(s+1)%i.length],A=e.Util._getProjectionToSegment(a.x,a.y,l.x,l.y,t.x,t.y),c=A[0],h=A[1],d=A[2];d<o&&(r.x=c,r.y=h,o=d)}})),r},_prepareArrayForTween:function(t,i,n){var r,o=[],a=[];if(t.length>i.length){var s=i;i=t,t=s}for(r=0;r<t.length;r+=2)o.push({x:t[r],y:t[r+1]});for(r=0;r<i.length;r+=2)a.push({x:i[r],y:i[r+1]});var l=[];return a.forEach((function(t){var i=e.Util._getProjectionToLine(t,o,n);l.push(i.x),l.push(i.y)})),l},_prepareToStringify:function(t){var i;for(var n in t.visitedByCircularReferenceRemoval=!0,t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(i=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||e.Util._isElement(t[n])){if(!i.configurable)return null;delete t[n]}else if(null===e.Util._prepareToStringify(t[n])){if(!i.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t},_assign:function(t,e){for(var i in e)t[i]=e[i];return t},_getFirstPointerId:function(t){return t.touches?t.changedTouches[0].identifier:999}}},29172:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(85256),r=i(41808);function o(t){return r.Util._isString(t)?'"'+t+'"':"[object Number]"===Object.prototype.toString.call(t)||r.Util._isBoolean(t)?t:Object.prototype.toString.call(t)}e.RGBComponent=function(t){return t>255?255:t<0?0:Math.round(t)},
e.alphaComponent=function(t){return t>1?1:t<1e-4?1e-4:t},e.getNumberValidator=function(){if(n.Konva.isUnminified)return function(t,e){return r.Util._isNumber(t)||r.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a number.'),t}},e.getNumberOrAutoValidator=function(){if(n.Konva.isUnminified)return function(t,e){return r.Util._isNumber(t)||"auto"===t||r.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a number or "auto".'),t}},e.getStringValidator=function(){if(n.Konva.isUnminified)return function(t,e){return r.Util._isString(t)||r.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a string.'),t}},e.getFunctionValidator=function(){if(n.Konva.isUnminified)return function(t,e){return r.Util._isFunction(t)||r.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a function.'),t}},e.getNumberArrayValidator=function(){if(n.Konva.isUnminified)return function(t,e){return r.Util._isArray(t)?t.forEach((function(t){r.Util._isNumber(t)||r.Util.warn('"'+e+'" attribute has non numeric element '+t+". Make sure that all elements are numbers.")})):r.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a array of numbers.'),t}},e.getBooleanValidator=function(){if(n.Konva.isUnminified)return function(t,e){return!0===t||!1===t||r.Util.warn(o(t)+' is a not valid value for "'+e+'" attribute. The value should be a boolean.'),t}},e.getComponentValidator=function(t){if(n.Konva.isUnminified)return function(e,i){return r.Util.isObject(e)||r.Util.warn(o(e)+' is a not valid value for "'+i+'" attribute. The value should be an object with properties '+t),e}}},58270:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(85256),r=i(41808),o=i(6627),a=i(26937),s=i(49432),l=i(26413),A=i(5573),c=i(69834),h=i(50090),d=i(95706),u=i(37746),p=i(46485),g=i(1989),f=i(31074);e.Konva=r.Util._assign(n.Konva,{Collection:r.Collection,Util:r.Util,Transform:r.Transform,Node:o.Node,ids:o.ids,names:o.names,Container:a.Container,Stage:s.Stage,stages:s.stages,Layer:l.Layer,FastLayer:A.FastLayer,Group:c.Group,DD:h.DD,Shape:d.Shape,shapes:d.shapes,Animation:u.Animation,Tween:p.Tween,Easings:p.Easings,Context:g.Context,Canvas:f.Canvas})},15086:function(t,e,i){"use strict";var n=i(58270),r=i(47924),o=i(57078),a=i(88036),s=i(89528),l=i(44162),A=i(85632),c=i(15540),h=i(10834),d=i(23123),u=i(97198),p=i(58373),g=i(82446),f=i(53785),m=i(36153),y=i(49842),b=i(59017),v=i(59190),E=i(14496),I=i(20138),C=i(37553),B=i(2946),w=i(62499),x=i(37686),Q=i(56361),S=i(88634),k=i(87715),D=i(70908),_=i(96526),R=i(51288),M=i(40225),T=i(58031),F=i(87122),L=i(83169),N=i(1585),P=i(64431),U=i(23005);e.S=n.Konva.Util._assign(n.Konva,{Arc:r.Arc,Arrow:o.Arrow,Circle:a.Circle,Ellipse:s.Ellipse,Image:l.Image,Label:A.Label,Tag:A.Tag,Line:c.Line,Path:h.Path,Rect:d.Rect,RegularPolygon:u.RegularPolygon,Ring:p.Ring,Sprite:g.Sprite,Star:f.Star,Text:m.Text,TextPath:y.TextPath,Transformer:b.Transformer,Wedge:v.Wedge,Filters:{Blur:E.Blur,Brighten:I.Brighten,Contrast:C.Contrast,Emboss:B.Emboss,Enhance:w.Enhance,Grayscale:x.Grayscale,HSL:Q.HSL,HSV:S.HSV,Invert:k.Invert,Kaleidoscope:D.Kaleidoscope,Mask:_.Mask,Noise:R.Noise,Pixelate:M.Pixelate,Posterize:T.Posterize,RGB:F.RGB,RGBA:L.RGBA,Sepia:N.Sepia,Solarize:P.Solarize,Threshold:U.Threshold}})},14496:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);function a(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var s=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],l=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];e.Blur=function(t){var e=Math.round(this.blurRadius());e>0&&function(t,e){var i,n,r,o,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B,w,x,Q,S,k=t.data,D=t.width,_=t.height,R=e+e+1,M=D-1,T=_-1,F=e+1,L=F*(F+1)/2,N=new a,P=null,U=N,O=null,G=null,H=s[e],V=l[e];for(r=1;r<R;r++)U=U.next=new a,r===F&&(P=U);for(U.next=N,h=c=0,n=0;n<_;n++){for(v=E=I=C=d=u=p=g=0,f=F*(B=k[c]),m=F*(w=k[c+1]),y=F*(x=k[c+2]),b=F*(Q=k[c+3]),d+=L*B,u+=L*w,p+=L*x,g+=L*Q,U=N,r=0;r<F;r++)U.r=B,U.g=w,U.b=x,U.a=Q,U=U.next;for(r=1;r<F;r++)o=c+((M<r?M:r)<<2),d+=(U.r=B=k[o])*(S=F-r),u+=(U.g=w=k[o+1])*S,p+=(U.b=x=k[o+2])*S,g+=(U.a=Q=k[o+3])*S,v+=B,E+=w,I+=x,C+=Q,U=U.next;for(O=N,G=P,i=0;i<D;i++)k[c+3]=Q=g*H>>V,0!==Q?(Q=255/Q,k[c]=(d*H>>V)*Q,k[c+1]=(u*H>>V)*Q,k[c+2]=(p*H>>V)*Q):k[c]=k[c+1]=k[c+2]=0,d-=f,u-=m,p-=y,g-=b,f-=O.r,m-=O.g,y-=O.b,b-=O.a,o=h+((o=i+e+1)<M?o:M)<<2,d+=v+=O.r=k[o],u+=E+=O.g=k[o+1],p+=I+=O.b=k[o+2],g+=C+=O.a=k[o+3],O=O.next,f+=B=G.r,m+=w=G.g,y+=x=G.b,b+=Q=G.a,v-=B,E-=w,I-=x,C-=Q,G=G.next,c+=4;h+=D}for(i=0;i<D;i++){for(E=I=C=v=u=p=g=d=0,f=F*(B=k[c=i<<2]),m=F*(w=k[c+1]),y=F*(x=k[c+2]),b=F*(Q=k[c+3]),d+=L*B,u+=L*w,p+=L*x,g+=L*Q,U=N,r=0;r<F;r++)U.r=B,U.g=w,U.b=x,U.a=Q,U=U.next;for(A=D,r=1;r<=e;r++)c=A+i<<2,d+=(U.r=B=k[c])*(S=F-r),u+=(U.g=w=k[c+1])*S,p+=(U.b=x=k[c+2])*S,g+=(U.a=Q=k[c+3])*S,v+=B,E+=w,I+=x,C+=Q,U=U.next,r<T&&(A+=D);for(c=i,O=N,G=P,n=0;n<_;n++)k[3+(o=c<<2)]=Q=g*H>>V,Q>0?(Q=255/Q,k[o]=(d*H>>V)*Q,k[o+1]=(u*H>>V)*Q,k[o+2]=(p*H>>V)*Q):k[o]=k[o+1]=k[o+2]=0,d-=f,u-=m,p-=y,g-=b,f-=O.r,m-=O.g,y-=O.b,b-=O.a,o=i+((o=n+F)<T?o:T)*D<<2,d+=v+=O.r=k[o],u+=E+=O.g=k[o+1],p+=I+=O.b=k[o+2],g+=C+=O.a=k[o+3],O=O.next,f+=B=G.r,m+=w=G.g,y+=x=G.b,b+=Q=G.a,v-=B,E-=w,I-=x,C-=Q,G=G.next,c+=D}}(t,e)},n.Factory.addGetterSetter(r.Node,"blurRadius",0,o.getNumberValidator(),n.Factory.afterSetFilter)},20138:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.Brighten=function(t){var e,i=255*this.brightness(),n=t.data,r=n.length;for(e=0;e<r;e+=4)n[e]+=i,n[e+1]+=i,n[e+2]+=i},n.Factory.addGetterSetter(r.Node,"brightness",0,o.getNumberValidator(),n.Factory.afterSetFilter)},37553:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.Contrast=function(t){var e,i=Math.pow((this.contrast()+100)/100,2),n=t.data,r=n.length,o=150,a=150,s=150;for(e=0;e<r;e+=4)o=n[e],a=n[e+1],s=n[e+2],o/=255,o-=.5,o*=i,o+=.5,a/=255,a-=.5,a*=i,a+=.5,s/=255,s-=.5,s*=i,s+=.5,o=(o*=255)<0?0:o>255?255:o,a=(a*=255)<0?0:a>255?255:a,s=(s*=255)<0?0:s>255?255:s,n[e]=o,n[e+1]=a,n[e+2]=s},n.Factory.addGetterSetter(r.Node,"contrast",0,o.getNumberValidator(),n.Factory.afterSetFilter)},2946:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(41808),a=i(29172);e.Emboss=function(t){
var e=10*this.embossStrength(),i=255*this.embossWhiteLevel(),n=this.embossDirection(),r=this.embossBlend(),a=0,s=0,l=t.data,A=t.width,c=t.height,h=4*A,d=c;switch(n){case"top-left":a=-1,s=-1;break;case"top":a=-1,s=0;break;case"top-right":a=-1,s=1;break;case"right":a=0,s=1;break;case"bottom-right":a=1,s=1;break;case"bottom":a=1,s=0;break;case"bottom-left":a=1,s=-1;break;case"left":a=0,s=-1;break;default:o.Util.error("Unknown emboss direction: "+n)}do{var u=(d-1)*h,p=a;d+p<1&&(p=0),d+p>c&&(p=0);var g=(d-1+p)*A*4,f=A;do{var m=u+4*(f-1),y=s;f+y<1&&(y=0),f+y>A&&(y=0);var b=g+4*(f-1+y),v=l[m]-l[b],E=l[m+1]-l[b+1],I=l[m+2]-l[b+2],C=v,B=C>0?C:-C;if((E>0?E:-E)>B&&(C=E),(I>0?I:-I)>B&&(C=I),C*=e,r){var w=l[m]+C,x=l[m+1]+C,Q=l[m+2]+C;l[m]=w>255?255:w<0?0:w,l[m+1]=x>255?255:x<0?0:x,l[m+2]=Q>255?255:Q<0?0:Q}else{var S=i-C;S<0?S=0:S>255&&(S=255),l[m]=l[m+1]=l[m+2]=S}}while(--f)}while(--d)},n.Factory.addGetterSetter(r.Node,"embossStrength",.5,a.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"embossWhiteLevel",.5,a.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"embossDirection","top-left",null,n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"embossBlend",!1,null,n.Factory.afterSetFilter)},62499:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);function a(t,e,i,n,r){var o=i-e,a=r-n;return 0===o?n+a/2:0===a?n:a*((t-e)/o)+n}e.Enhance=function(t){var e,i,n,r,o=t.data,s=o.length,l=o[0],A=l,c=o[1],h=c,d=o[2],u=d,p=this.enhance();if(0!==p){for(r=0;r<s;r+=4)(e=o[r+0])<l?l=e:e>A&&(A=e),(i=o[r+1])<c?c=i:i>h&&(h=i),(n=o[r+2])<d?d=n:n>u&&(u=n);var g,f,m,y,b,v,E,I,C;for(A===l&&(A=255,l=0),h===c&&(h=255,c=0),u===d&&(u=255,d=0),p>0?(f=A+p*(255-A),m=l-p*(l-0),b=h+p*(255-h),v=c-p*(c-0),I=u+p*(255-u),C=d-p*(d-0)):(f=A+p*(A-(g=.5*(A+l))),m=l+p*(l-g),b=h+p*(h-(y=.5*(h+c))),v=c+p*(c-y),I=u+p*(u-(E=.5*(u+d))),C=d+p*(d-E)),r=0;r<s;r+=4)o[r+0]=a(o[r+0],l,A,m,f),o[r+1]=a(o[r+1],c,h,v,b),o[r+2]=a(o[r+2],d,u,C,I)}},n.Factory.addGetterSetter(r.Node,"enhance",0,o.getNumberValidator(),n.Factory.afterSetFilter)},37686:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Grayscale=function(t){var e,i,n=t.data,r=n.length;for(e=0;e<r;e+=4)i=.34*n[e]+.5*n[e+1]+.16*n[e+2],n[e]=i,n[e+1]=i,n[e+2]=i}},56361:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);n.Factory.addGetterSetter(r.Node,"hue",0,o.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"saturation",0,o.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"luminance",0,o.getNumberValidator(),n.Factory.afterSetFilter),e.HSL=function(t){var e,i,n,r,o,a=t.data,s=a.length,l=Math.pow(2,this.saturation()),A=Math.abs(this.hue()+360)%360,c=127*this.luminance(),h=1*l*Math.cos(A*Math.PI/180),d=1*l*Math.sin(A*Math.PI/180),u=.299+.701*h+.167*d,p=.587-.587*h+.33*d,g=.114-.114*h-.497*d,f=.299-.299*h-.328*d,m=.587+.413*h+.035*d,y=.114-.114*h+.293*d,b=.299-.3*h+1.25*d,v=.587-.586*h-1.05*d,E=.114+.886*h-.2*d;for(e=0;e<s;e+=4)i=a[e+0],n=a[e+1],r=a[e+2],o=a[e+3],a[e+0]=u*i+p*n+g*r+c,a[e+1]=f*i+m*n+y*r+c,a[e+2]=b*i+v*n+E*r+c,a[e+3]=o}},88634:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.HSV=function(t){var e,i,n,r,o,a=t.data,s=a.length,l=Math.pow(2,this.value()),A=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,h=l*A*Math.cos(c*Math.PI/180),d=l*A*Math.sin(c*Math.PI/180),u=.299*l+.701*h+.167*d,p=.587*l-.587*h+.33*d,g=.114*l-.114*h-.497*d,f=.299*l-.299*h-.328*d,m=.587*l+.413*h+.035*d,y=.114*l-.114*h+.293*d,b=.299*l-.3*h+1.25*d,v=.587*l-.586*h-1.05*d,E=.114*l+.886*h-.2*d;for(e=0;e<s;e+=4)i=a[e+0],n=a[e+1],r=a[e+2],o=a[e+3],a[e+0]=u*i+p*n+g*r,a[e+1]=f*i+m*n+y*r,a[e+2]=b*i+v*n+E*r,a[e+3]=o},n.Factory.addGetterSetter(r.Node,"hue",0,o.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"saturation",0,o.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"value",0,o.getNumberValidator(),n.Factory.afterSetFilter)},87715:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Invert=function(t){var e,i=t.data,n=i.length;for(e=0;e<n;e+=4)i[e]=255-i[e],i[e+1]=255-i[e+1],i[e+2]=255-i[e+2]}},70908:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(41808),a=i(29172);e.Kaleidoscope=function(t){var e,i,n,r,a,s,l,A,c,h=t.width,d=t.height,u=Math.round(this.kaleidoscopePower()),p=Math.round(this.kaleidoscopeAngle()),g=Math.floor(h*(p%360)/360);if(!(u<1)){var f=o.Util.createCanvasElement();f.width=h,f.height=d;var m=f.getContext("2d").getImageData(0,0,h,d);!function(t,e,i){var n,r,o,a,s=t.data,l=e.data,A=t.width,c=t.height,h=i.polarCenterX||A/2,d=i.polarCenterY||c/2,u=0,p=0,g=0,f=0,m=Math.sqrt(h*h+d*d);r=A-h,o=c-d,m=(a=Math.sqrt(r*r+o*o))>m?a:m;var y,b,v,E,I=c,C=A,B=360/C*Math.PI/180;for(b=0;b<C;b+=1)for(v=Math.sin(b*B),E=Math.cos(b*B),y=0;y<I;y+=1)r=Math.floor(h+m*y/I*E),u=s[0+(n=4*((o=Math.floor(d+m*y/I*v))*A+r))],p=s[n+1],g=s[n+2],f=s[n+3],l[0+(n=4*(b+y*A))]=u,l[n+1]=p,l[n+2]=g,l[n+3]=f}(t,m,{polarCenterX:h/2,polarCenterY:d/2});for(var y=h/Math.pow(2,u);y<=8;)y*=2,u-=1;var b=y=Math.ceil(y),v=0,E=b,I=1;for(g+y>h&&(v=b,E=0,I=-1),i=0;i<d;i+=1)for(e=v;e!==E;e+=I)A=4*(h*i+Math.round(e+g)%h),r=m.data[A+0],a=m.data[A+1],s=m.data[A+2],l=m.data[A+3],c=4*(h*i+e),m.data[c+0]=r,m.data[c+1]=a,m.data[c+2]=s,m.data[c+3]=l;for(i=0;i<d;i+=1)for(b=Math.floor(y),n=0;n<u;n+=1){for(e=0;e<b+1;e+=1)A=4*(h*i+e),r=m.data[A+0],a=m.data[A+1],s=m.data[A+2],l=m.data[A+3],c=4*(h*i+2*b-e-1),m.data[c+0]=r,m.data[c+1]=a,m.data[c+2]=s,m.data[c+3]=l;b*=2}!function(t,e,i){var n,r,o,a,s,l,A=t.data,c=e.data,h=t.width,d=t.height,u=i.polarCenterX||h/2,p=i.polarCenterY||d/2,g=0,f=0,m=0,y=0,b=Math.sqrt(u*u+p*p);r=h-u,o=d-p,b=(l=Math.sqrt(r*r+o*o))>b?l:b;var v,E,I,C=d,B=h,w=i.polarRotation||0;for(r=0;r<h;r+=1)for(o=0;o<d;o+=1)a=r-u,s=o-p,v=Math.sqrt(a*a+s*s)*C/b,E=(E=(180*Math.atan2(s,a)/Math.PI+360+w)%360)*B/360,I=Math.floor(E),g=A[0+(n=4*(Math.floor(v)*h+I))],f=A[n+1],m=A[n+2],y=A[n+3],c[0+(n=4*(o*h+r))]=g,c[n+1]=f,c[n+2]=m,c[n+3]=y}(m,t,{polarRotation:0})}},n.Factory.addGetterSetter(r.Node,"kaleidoscopePower",2,a.getNumberValidator(),n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"kaleidoscopeAngle",0,a.getNumberValidator(),n.Factory.afterSetFilter)},96526:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);function a(t,e,i){var n=4*(i*t.width+e),r=[];return r.push(t.data[n++],t.data[n++],t.data[n++],t.data[n++]),r}function s(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}e.Mask=function(t){var e=function(t,e){var i=a(t,0,0),n=a(t,t.width-1,0),r=a(t,0,t.height-1),o=a(t,t.width-1,t.height-1),l=e||10;if(s(i,n)<l&&s(n,o)<l&&s(o,r)<l&&s(r,i)<l){for(var A=function(t){for(var e=[0,0,0],i=0;i<t.length;i++)e[0]+=t[i][0],e[1]+=t[i][1],e[2]+=t[i][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}([n,i,o,r]),c=[],h=0;h<t.width*t.height;h++){var d=s(A,[t.data[4*h],t.data[4*h+1],t.data[4*h+2]]);c[h]=d<l?0:255}return c}}(t,this.threshold());return e&&function(t,e){for(var i=0;i<t.width*t.height;i++)t.data[4*i+3]=e[i]}(t,e=function(t,e,i){for(var n=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],r=Math.round(Math.sqrt(n.length)),o=Math.floor(r/2),a=[],s=0;s<i;s++)for(var l=0;l<e;l++){for(var A=s*e+l,c=0,h=0;h<r;h++)for(var d=0;d<r;d++){var u=s+h-o,p=l+d-o;if(u>=0&&u<i&&p>=0&&p<e){var g=n[h*r+d];c+=t[u*e+p]*g}}a[A]=c}return a}(e=function(t,e,i){for(var n=[1,1,1,1,1,1,1,1,1],r=Math.round(Math.sqrt(n.length)),o=Math.floor(r/2),a=[],s=0;s<i;s++)for(var l=0;l<e;l++){for(var A=s*e+l,c=0,h=0;h<r;h++)for(var d=0;d<r;d++){var u=s+h-o,p=l+d-o;if(u>=0&&u<i&&p>=0&&p<e){var g=n[h*r+d];c+=t[u*e+p]*g}}a[A]=c>=1020?255:0}return a}(e=function(t,e,i){for(var n=[1,1,1,1,0,1,1,1,1],r=Math.round(Math.sqrt(n.length)),o=Math.floor(r/2),a=[],s=0;s<i;s++)for(var l=0;l<e;l++){for(var A=s*e+l,c=0,h=0;h<r;h++)for(var d=0;d<r;d++){
var u=s+h-o,p=l+d-o;if(u>=0&&u<i&&p>=0&&p<e){var g=n[h*r+d];c+=t[u*e+p]*g}}a[A]=2040===c?255:0}return a}(e,t.width,t.height),t.width,t.height),t.width,t.height)),t},n.Factory.addGetterSetter(r.Node,"threshold",0,o.getNumberValidator(),n.Factory.afterSetFilter)},51288:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.Noise=function(t){var e,i=255*this.noise(),n=t.data,r=n.length,o=i/2;for(e=0;e<r;e+=4)n[e+0]+=o-2*o*Math.random(),n[e+1]+=o-2*o*Math.random(),n[e+2]+=o-2*o*Math.random()},n.Factory.addGetterSetter(r.Node,"noise",.2,o.getNumberValidator(),n.Factory.afterSetFilter)},40225:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(41808),o=i(6627),a=i(29172);e.Pixelate=function(t){var e,i,n,o,a,s,l,A,c,h,d,u,p,g,f=Math.ceil(this.pixelSize()),m=t.width,y=t.height,b=Math.ceil(m/f),v=Math.ceil(y/f),E=t.data;if(f<=0)r.Util.error("pixelSize value can not be <= 0");else for(u=0;u<b;u+=1)for(p=0;p<v;p+=1){for(o=0,a=0,s=0,l=0,c=(A=u*f)+f,d=(h=p*f)+f,g=0,e=A;e<c;e+=1)if(!(e>=m))for(i=h;i<d;i+=1)i>=y||(o+=E[(n=4*(m*i+e))+0],a+=E[n+1],s+=E[n+2],l+=E[n+3],g+=1);for(o/=g,a/=g,s/=g,l/=g,e=A;e<c;e+=1)if(!(e>=m))for(i=h;i<d;i+=1)i>=y||(E[(n=4*(m*i+e))+0]=o,E[n+1]=a,E[n+2]=s,E[n+3]=l)}},n.Factory.addGetterSetter(o.Node,"pixelSize",8,a.getNumberValidator(),n.Factory.afterSetFilter)},58031:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.Posterize=function(t){var e,i=Math.round(254*this.levels())+1,n=t.data,r=n.length,o=255/i;for(e=0;e<r;e+=1)n[e]=Math.floor(n[e]/o)*o},n.Factory.addGetterSetter(r.Node,"levels",.5,o.getNumberValidator(),n.Factory.afterSetFilter)},87122:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.RGB=function(t){var e,i,n=t.data,r=n.length,o=this.red(),a=this.green(),s=this.blue();for(e=0;e<r;e+=4)i=(.34*n[e]+.5*n[e+1]+.16*n[e+2])/255,n[e]=i*o,n[e+1]=i*a,n[e+2]=i*s,n[e+3]=n[e+3]},n.Factory.addGetterSetter(r.Node,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),n.Factory.addGetterSetter(r.Node,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),n.Factory.addGetterSetter(r.Node,"blue",0,o.RGBComponent,n.Factory.afterSetFilter)},83169:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.RGBA=function(t){var e,i,n=t.data,r=n.length,o=this.red(),a=this.green(),s=this.blue(),l=this.alpha();for(e=0;e<r;e+=4)i=1-l,n[e]=o*l+n[e]*i,n[e+1]=a*l+n[e+1]*i,n[e+2]=s*l+n[e+2]*i},n.Factory.addGetterSetter(r.Node,"red",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),n.Factory.addGetterSetter(r.Node,"green",0,(function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)})),n.Factory.addGetterSetter(r.Node,"blue",0,o.RGBComponent,n.Factory.afterSetFilter),n.Factory.addGetterSetter(r.Node,"alpha",1,(function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t}))},1585:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sepia=function(t){var e,i,n,r,o=t.data,a=o.length;for(e=0;e<a;e+=4)i=o[e+0],n=o[e+1],r=o[e+2],o[e+0]=Math.min(255,.393*i+.769*n+.189*r),o[e+1]=Math.min(255,.349*i+.686*n+.168*r),o[e+2]=Math.min(255,.272*i+.534*n+.131*r)}},64431:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Solarize=function(t){var e=t.data,i=t.width,n=4*i,r=t.height;do{var o=(r-1)*n,a=i;do{var s=o+4*(a-1),l=e[s],A=e[s+1],c=e[s+2];l>127&&(l=255-l),A>127&&(A=255-A),c>127&&(c=255-c),e[s]=l,e[s+1]=A,e[s+2]=c}while(--a)}while(--r)}},23005:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(49609),r=i(6627),o=i(29172);e.Threshold=function(t){var e,i=255*this.threshold(),n=t.data,r=n.length;for(e=0;e<r;e+=1)n[e]=n[e]<i?0:255},n.Factory.addGetterSetter(r.Node,"threshold",.5,o.getNumberValidator(),n.Factory.afterSetFilter)},12325:function(t,e,i){var n=i(15086).S;n._injectGlobal(n),e.default=n,t.exports=e.default},47924:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(85256),A=i(29172),c=i(85256),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=l.Konva.getAngle(this.angle()),i=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,e,i),t.arc(0,0,this.innerRadius(),e,0,!i),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(s.Shape);e.Arc=h,h.prototype._centroid=!0,h.prototype.className="Arc",h.prototype._attrsAffectingSize=["innerRadius","outerRadius"],c._registerNode(h),a.Factory.addGetterSetter(h,"innerRadius",0,A.getNumberValidator()),a.Factory.addGetterSetter(h,"outerRadius",0,A.getNumberValidator()),a.Factory.addGetterSetter(h,"angle",0,A.getNumberValidator()),a.Factory.addGetterSetter(h,"clockwise",!1,A.getBooleanValidator()),o.Collection.mapMethods(h)},57078:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(15540),l=i(29172),A=i(85256),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(e){t.prototype._sceneFunc.call(this,e);var i=2*Math.PI,n=this.points(),r=n,o=0!==this.tension()&&n.length>4;o&&(r=this.getTensionPoints());var a,s,l=n.length;o?(a=n[l-2]-(r[r.length-2]+r[r.length-4])/2,s=n[l-1]-(r[r.length-1]+r[r.length-3])/2):(a=n[l-2]-n[l-4],s=n[l-1]-n[l-3]);var A=(Math.atan2(s,a)+i)%i,c=this.pointerLength(),h=this.pointerWidth();e.save(),e.beginPath(),e.translate(n[l-2],n[l-1]),e.rotate(A),e.moveTo(0,0),e.lineTo(-c,h/2),e.lineTo(-c,-h/2),e.closePath(),e.restore(),this.pointerAtBeginning()&&(e.save(),e.translate(n[0],n[1]),o?(a=(r[0]+r[2])/2-n[0],s=(r[1]+r[3])/2-n[1]):(a=n[2]-n[0],s=n[3]-n[1]),e.rotate((Math.atan2(-s,-a)+i)%i),e.moveTo(0,0),e.lineTo(-c,h/2),e.lineTo(-c,-h/2),e.closePath(),e.restore());var d=this.dashEnabled();d&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),d&&(this.attrs.dashEnabled=!0)},e.prototype.getSelfRect=function(){var e=t.prototype.getSelfRect.call(this),i=this.pointerWidth()/2;return{x:e.x-i,y:e.y-i,width:e.width+2*i,height:e.height+2*i}},e}(s.Line);e.Arrow=c,c.prototype.className="Arrow",A._registerNode(c),a.Factory.addGetterSetter(c,"pointerLength",10,l.getNumberValidator()),a.Factory.addGetterSetter(c,"pointerWidth",10,l.getNumberValidator()),a.Factory.addGetterSetter(c,"pointerAtBeginning",!1),o.Collection.mapMethods(c)},88036:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(29172),A=i(85256),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),
t.arc(0,0,this.radius(),0,2*Math.PI,!1),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius()!==t/2&&this.radius(t/2)},e.prototype.setHeight=function(t){this.radius()!==t/2&&this.radius(t/2)},e}(s.Shape);e.Circle=c,c.prototype._centroid=!0,c.prototype.className="Circle",c.prototype._attrsAffectingSize=["radius"],A._registerNode(c),a.Factory.addGetterSetter(c,"radius",0,l.getNumberValidator()),o.Collection.mapMethods(c)},89528:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(29172),A=i(85256),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.radiusX(),i=this.radiusY();t.beginPath(),t.save(),e!==i&&t.scale(1,i/e),t.arc(0,0,e,0,2*Math.PI,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radiusX()},e.prototype.getHeight=function(){return 2*this.radiusY()},e.prototype.setWidth=function(t){this.radiusX(t/2)},e.prototype.setHeight=function(t){this.radiusY(t/2)},e}(s.Shape);e.Ellipse=c,c.prototype.className="Ellipse",c.prototype._centroid=!0,c.prototype._attrsAffectingSize=["radiusX","radiusY"],A._registerNode(c),a.Factory.addComponentsGetterSetter(c,"radius",["x","y"]),a.Factory.addGetterSetter(c,"radiusX",0,l.getNumberValidator()),a.Factory.addGetterSetter(c,"radiusY",0,l.getNumberValidator()),o.Collection.mapMethods(c)},44162:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(29172),A=i(85256),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._useBufferCanvas=function(){return t.prototype._useBufferCanvas.call(this,!0)},e.prototype._sceneFunc=function(t){var e,i,n,r=this.getWidth(),o=this.getHeight(),a=this.attrs.image;a&&(e=this.attrs.cropWidth,i=this.attrs.cropHeight,n=e&&i?[a,this.cropX(),this.cropY(),e,i,0,0,r,o]:[a,0,0,r,o]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,r,o),t.closePath(),t.fillStrokeShape(this)),a&&t.drawImage.apply(t,n)},e.prototype._hitFunc=function(t){var e=this.width(),i=this.height();t.beginPath(),t.rect(0,0,e,i),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){var t,e;return null!==(t=this.attrs.width)&&void 0!==t?t:(null===(e=this.image())||void 0===e?void 0:e.width)||0},e.prototype.getHeight=function(){var t,e;return null!==(t=this.attrs.height)&&void 0!==t?t:(null===(e=this.image())||void 0===e?void 0:e.height)||0},e.fromURL=function(t,i){var n=o.Util.createImageElement();n.onload=function(){var t=new e({image:n});i(t)},n.crossOrigin="Anonymous",n.src=t},e}(s.Shape);e.Image=c,c.prototype.className="Image",A._registerNode(c),a.Factory.addGetterSetter(c,"image"),a.Factory.addComponentsGetterSetter(c,"crop",["x","y","width","height"]),a.Factory.addGetterSetter(c,"cropX",0,l.getNumberValidator()),a.Factory.addGetterSetter(c,"cropY",0,l.getNumberValidator()),a.Factory.addGetterSetter(c,"cropWidth",0,l.getNumberValidator()),a.Factory.addGetterSetter(c,"cropHeight",0,l.getNumberValidator()),o.Collection.mapMethods(c)},85632:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(69834),A=i(29172),c=i(85256),h=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],d="up",u="right",p="down",g="left",f=h.length,m=function(t){function e(e){var i=t.call(this,e)||this;return i.on("add.konva",(function(t){this._addListeners(t.child),this._sync()})),i}return r(e,t),e.prototype.getText=function(){return this.find("Text")[0]},e.prototype.getTag=function(){return this.find("Tag")[0]},e.prototype._addListeners=function(t){var e,i=this,n=function(){i._sync()};for(e=0;e<f;e++)t.on(h[e]+"Change.konva",n)},e.prototype.getWidth=function(){return this.getText().width()},e.prototype.getHeight=function(){return this.getText().height()},e.prototype._sync=function(){var t,e,i,n,r,o,a,s=this.getText(),l=this.getTag();if(s&&l){switch(t=s.width(),e=s.height(),i=l.pointerDirection(),n=l.pointerWidth(),a=l.pointerHeight(),r=0,o=0,i){case d:r=t/2,o=-1*a;break;case u:r=t+n,o=e/2;break;case p:r=t/2,o=e+a;break;case g:r=-1*n,o=e/2}l.setAttrs({x:-1*r,y:-1*o,width:t,height:e}),s.setAttrs({x:-1*r,y:-1*o})}},e}(l.Group);e.Label=m,m.prototype.className="Label",c._registerNode(m),o.Collection.mapMethods(m);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.width(),i=this.height(),n=this.pointerDirection(),r=this.pointerWidth(),o=this.pointerHeight(),a=Math.min(this.cornerRadius(),e/2,i/2);t.beginPath(),a?t.moveTo(a,0):t.moveTo(0,0),n===d&&(t.lineTo((e-r)/2,0),t.lineTo(e/2,-1*o),t.lineTo((e+r)/2,0)),a?(t.lineTo(e-a,0),t.arc(e-a,a,a,3*Math.PI/2,0,!1)):t.lineTo(e,0),n===u&&(t.lineTo(e,(i-o)/2),t.lineTo(e+r,i/2),t.lineTo(e,(i+o)/2)),a?(t.lineTo(e,i-a),t.arc(e-a,i-a,a,0,Math.PI/2,!1)):t.lineTo(e,i),n===p&&(t.lineTo((e+r)/2,i),t.lineTo(e/2,i+o),t.lineTo((e-r)/2,i)),a?(t.lineTo(a,i),t.arc(a,i-a,a,Math.PI/2,Math.PI,!1)):t.lineTo(0,i),n===g&&(t.lineTo(0,(i+o)/2),t.lineTo(-1*r,i/2),t.lineTo(0,(i-o)/2)),a&&(t.lineTo(0,a),t.arc(a,a,a,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},e.prototype.getSelfRect=function(){var t=0,e=0,i=this.pointerWidth(),n=this.pointerHeight(),r=this.pointerDirection(),o=this.width(),a=this.height();return r===d?(e-=n,a+=n):r===p?a+=n:r===g?(t-=1.5*i,o+=i):r===u&&(o+=1.5*i),{x:t,y:e,width:o,height:a}},e}(s.Shape);e.Tag=y,y.prototype.className="Tag",c._registerNode(y),a.Factory.addGetterSetter(y,"pointerDirection","none"),a.Factory.addGetterSetter(y,"pointerWidth",0,A.getNumberValidator()),a.Factory.addGetterSetter(y,"pointerHeight",0,A.getNumberValidator()),a.Factory.addGetterSetter(y,"cornerRadius",0,A.getNumberValidator()),o.Collection.mapMethods(y)},15540:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n};Object.defineProperty(e,"__esModule",{value:!0});var a=i(41808),s=i(49609),l=i(95706),A=i(29172),c=i(85256),h=function(t){function e(e){var i=t.call(this,e)||this;return i.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",(function(){this._clearCache("tensionPoints")})),i}return r(e,t),e.prototype._sceneFunc=function(t){var e,i,n,r=this.points(),o=r.length,a=this.tension(),s=this.closed(),l=this.bezier();if(o){if(t.beginPath(),t.moveTo(r[0],r[1]),0!==a&&o>4){for(i=(e=this.getTensionPoints()).length,n=s?0:4,
s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);n<i-2;)t.bezierCurveTo(e[n++],e[n++],e[n++],e[n++],e[n++],e[n++]);s||t.quadraticCurveTo(e[i-2],e[i-1],r[o-2],r[o-1])}else if(l)for(n=2;n<o;)t.bezierCurveTo(r[n++],r[n++],r[n++],r[n++],r[n++],r[n++]);else for(n=2;n<o;n+=2)t.lineTo(r[n],r[n+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},e.prototype.getTensionPoints=function(){return this._getCache("tensionPoints",this._getTensionPoints)},e.prototype._getTensionPoints=function(){return this.closed()?this._getTensionPointsClosed():a.Util._expandPoints(this.points(),this.tension())},e.prototype._getTensionPointsClosed=function(){var t=this.points(),e=t.length,i=this.tension(),n=a.Util._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],i),r=a.Util._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],i),o=a.Util._expandPoints(t,i);return[n[2],n[3]].concat(o).concat([r[0],r[1],t[e-2],t[e-1],r[2],r[3],n[0],n[1],t[0],t[1]])},e.prototype.getWidth=function(){return this.getSelfRect().width},e.prototype.getHeight=function(){return this.getSelfRect().height},e.prototype.getSelfRect=function(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};for(var e,i,n=(t=0!==this.tension()?o([t[0],t[1]],this._getTensionPoints(),[t[t.length-2],t[t.length-1]]):this.points())[0],r=t[0],a=t[1],s=t[1],l=0;l<t.length/2;l++)e=t[2*l],i=t[2*l+1],n=Math.min(n,e),r=Math.max(r,e),a=Math.min(a,i),s=Math.max(s,i);return{x:n,y:a,width:r-n,height:s-a}},e}(l.Shape);e.Line=h,h.prototype.className="Line",h.prototype._attrsAffectingSize=["points","bezier","tension"],c._registerNode(h),s.Factory.addGetterSetter(h,"closed",!1),s.Factory.addGetterSetter(h,"bezier",!1),s.Factory.addGetterSetter(h,"tension",0,A.getNumberValidator()),s.Factory.addGetterSetter(h,"points",[],A.getNumberArrayValidator()),a.Collection.mapMethods(h)},10834:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(85256),A=function(t){function e(i){var n=t.call(this,i)||this;n.dataArray=[],n.pathLength=0,n.dataArray=e.parsePathData(n.data()),n.pathLength=0;for(var r=0;r<n.dataArray.length;++r)n.pathLength+=n.dataArray[r].pathLength;return n.on("dataChange.konva",(function(){this.dataArray=e.parsePathData(this.data()),this.pathLength=0;for(var t=0;t<this.dataArray.length;++t)this.pathLength+=this.dataArray[t].pathLength})),n}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.dataArray;t.beginPath();for(var i=!1,n=0;n<e.length;n++){var r=e[n].command,o=e[n].points;switch(r){case"L":t.lineTo(o[0],o[1]);break;case"M":t.moveTo(o[0],o[1]);break;case"C":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":t.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":var a=o[0],s=o[1],l=o[2],A=o[3],c=o[4],h=o[5],d=o[6],u=o[7],p=l>A?l:A,g=l>A?1:l/A,f=l>A?A/l:1;t.translate(a,s),t.rotate(d),t.scale(g,f),t.arc(0,0,p,c,c+h,1-u),t.scale(1/g,1/f),t.rotate(-d),t.translate(-a,-s);break;case"z":i=!0,t.closePath()}}i||this.hasFill()?t.fillStrokeShape(this):t.strokeShape(this)},e.prototype.getSelfRect=function(){var t=[];this.dataArray.forEach((function(i){if("A"===i.command){var n=i.points[4],r=i.points[5],o=i.points[4]+r,a=Math.PI/180;if(Math.abs(n-o)<a&&(a=Math.abs(n-o)),r<0)for(var s=n-a;s>o;s-=a){var l=e.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],s,0);t.push(l.x,l.y)}else for(s=n+a;s<o;s+=a){l=e.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],s,0);t.push(l.x,l.y)}}else if("C"===i.command)for(s=0;s<=1;s+=.01){l=e.getPointOnCubicBezier(s,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);t.push(l.x,l.y)}else t=t.concat(i.points)}));for(var i,n,r=t[0],o=t[0],a=t[1],s=t[1],l=0;l<t.length/2;l++)i=t[2*l],n=t[2*l+1],isNaN(i)||(r=Math.min(r,i),o=Math.max(o,i)),isNaN(n)||(a=Math.min(a,n),s=Math.max(s,n));return{x:Math.round(r),y:Math.round(a),width:Math.round(o-r),height:Math.round(s-a)}},e.prototype.getLength=function(){return this.pathLength},e.prototype.getPointAtLength=function(t){var i,n=0,r=this.dataArray.length;if(!r)return null;for(;n<r&&t>this.dataArray[n].pathLength;)t-=this.dataArray[n].pathLength,++n;if(n===r)return{x:(i=this.dataArray[n-1].points.slice(-2))[0],y:i[1]};if(t<.01)return{x:(i=this.dataArray[n].points.slice(0,2))[0],y:i[1]};var o=this.dataArray[n],a=o.points;switch(o.command){case"L":return e.getPointOnLine(t,o.start.x,o.start.y,a[0],a[1]);case"C":return e.getPointOnCubicBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3],a[4],a[5]);case"Q":return e.getPointOnQuadraticBezier(t/o.pathLength,o.start.x,o.start.y,a[0],a[1],a[2],a[3]);case"A":var s=a[0],l=a[1],A=a[2],c=a[3],h=a[4],d=a[5],u=a[6];return h+=d*t/o.pathLength,e.getPointOnEllipticalArc(s,l,A,c,h,u)}return null},e.getLineLength=function(t,e,i,n){return Math.sqrt((i-t)*(i-t)+(n-e)*(n-e))},e.getPointOnLine=function(t,e,i,n,r,o,a){void 0===o&&(o=e),void 0===a&&(a=i);var s=(r-i)/(n-e+1e-8),l=Math.sqrt(t*t/(1+s*s));n<e&&(l*=-1);var A,c=s*l;if(n===e)A={x:o,y:a+c};else if((a-i)/(o-e+1e-8)===s)A={x:o+l,y:a+c};else{var h,d,u=this.getLineLength(e,i,n,r);if(u<1e-8)return;var p=(o-e)*(n-e)+(a-i)*(r-i);h=e+(p/=u*u)*(n-e),d=i+p*(r-i);var g=this.getLineLength(o,a,h,d),f=Math.sqrt(t*t-g*g);l=Math.sqrt(f*f/(1+s*s)),n<e&&(l*=-1),A={x:h+l,y:d+(c=s*l)}}return A},e.getPointOnCubicBezier=function(t,e,i,n,r,o,a,s,l){function A(t){return t*t*t}function c(t){return 3*t*t*(1-t)}function h(t){return 3*t*(1-t)*(1-t)}function d(t){return(1-t)*(1-t)*(1-t)}return{x:s*A(t)+o*c(t)+n*h(t)+e*d(t),y:l*A(t)+a*c(t)+r*h(t)+i*d(t)}},e.getPointOnQuadraticBezier=function(t,e,i,n,r,o,a){function s(t){return t*t}function l(t){return 2*t*(1-t)}function A(t){return(1-t)*(1-t)}return{x:o*s(t)+n*l(t)+e*A(t),y:a*s(t)+r*l(t)+i*A(t)}},e.getPointOnEllipticalArc=function(t,e,i,n,r,o){var a=Math.cos(o),s=Math.sin(o),l=i*Math.cos(r),A=n*Math.sin(r);return{x:t+(l*a-A*s),y:e+(l*s+A*a)}},e.parsePathData=function(t){if(!t)return[];var e=t,i=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var n=0;n<i.length;n++)e=e.replace(new RegExp(i[n],"g"),"|"+i[n]);var r,o=e.split("|"),a=[],s=[],l=0,A=0,c=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi;for(n=1;n<o.length;n++){var h=o[n],d=h.charAt(0);for(h=h.slice(1),s.length=0;r=c.exec(h);)s.push(r[0]);for(var u=[],p=0,g=s.length;p<g;p++){var f=parseFloat(s[p]);isNaN(f)?u.push(0):u.push(f)}for(;u.length>0&&!isNaN(u[0]);){var m,y,b,v,E,I,C,B,w,x,Q=null,S=[],k=l,D=A;switch(d){case"l":l+=u.shift(),A+=u.shift(),Q="L",S.push(l,A);break;case"L":l=u.shift(),A=u.shift(),S.push(l,A);break;case"m":var _=u.shift(),R=u.shift();if(l+=_,A+=R,Q="M",a.length>2&&"z"===a[a.length-1].command)for(var M=a.length-2;M>=0;M--)if("M"===a[M].command){l=a[M].points[0]+_,A=a[M].points[1]+R;break}S.push(l,A),d="l";break;case"M":l=u.shift(),A=u.shift(),Q="M",S.push(l,A),d="L";break;case"h":l+=u.shift(),Q="L",S.push(l,A);break;case"H":l=u.shift(),Q="L",S.push(l,A);break;case"v":A+=u.shift(),Q="L",S.push(l,A);break;case"V":A=u.shift(),Q="L",S.push(l,A);break;case"C":S.push(u.shift(),u.shift(),u.shift(),u.shift()),l=u.shift(),A=u.shift(),S.push(l,A);break;case"c":S.push(l+u.shift(),A+u.shift(),l+u.shift(),A+u.shift()),l+=u.shift(),A+=u.shift(),Q="C",S.push(l,A);break;case"S":y=l,b=A,"C"===(m=a[a.length-1]).command&&(y=l+(l-m.points[2]),b=A+(A-m.points[3])),S.push(y,b,u.shift(),u.shift()),l=u.shift(),A=u.shift(),Q="C",S.push(l,A);break;case"s":y=l,b=A,"C"===(m=a[a.length-1]).command&&(y=l+(l-m.points[2]),b=A+(A-m.points[3])),S.push(y,b,l+u.shift(),A+u.shift()),l+=u.shift(),A+=u.shift(),Q="C",S.push(l,A);break;case"Q":S.push(u.shift(),u.shift()),l=u.shift(),A=u.shift(),S.push(l,A);break;case"q":S.push(l+u.shift(),A+u.shift()),l+=u.shift(),A+=u.shift(),Q="Q",S.push(l,A);break;case"T":
y=l,b=A,"Q"===(m=a[a.length-1]).command&&(y=l+(l-m.points[0]),b=A+(A-m.points[1])),l=u.shift(),A=u.shift(),Q="Q",S.push(y,b,l,A);break;case"t":y=l,b=A,"Q"===(m=a[a.length-1]).command&&(y=l+(l-m.points[0]),b=A+(A-m.points[1])),l+=u.shift(),A+=u.shift(),Q="Q",S.push(y,b,l,A);break;case"A":v=u.shift(),E=u.shift(),I=u.shift(),C=u.shift(),B=u.shift(),w=l,x=A,l=u.shift(),A=u.shift(),Q="A",S=this.convertEndpointToCenterParameterization(w,x,l,A,C,B,v,E,I);break;case"a":v=u.shift(),E=u.shift(),I=u.shift(),C=u.shift(),B=u.shift(),w=l,x=A,l+=u.shift(),A+=u.shift(),Q="A",S=this.convertEndpointToCenterParameterization(w,x,l,A,C,B,v,E,I)}a.push({command:Q||d,points:S,start:{x:k,y:D},pathLength:this.calcLength(k,D,Q||d,S)})}"z"!==d&&"Z"!==d||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a},e.calcLength=function(t,i,n,r){var o,a,s,l,A=e;switch(n){case"L":return A.getLineLength(t,i,r[0],r[1]);case"C":for(o=0,a=A.getPointOnCubicBezier(0,t,i,r[0],r[1],r[2],r[3],r[4],r[5]),l=.01;l<=1;l+=.01)s=A.getPointOnCubicBezier(l,t,i,r[0],r[1],r[2],r[3],r[4],r[5]),o+=A.getLineLength(a.x,a.y,s.x,s.y),a=s;return o;case"Q":for(o=0,a=A.getPointOnQuadraticBezier(0,t,i,r[0],r[1],r[2],r[3]),l=.01;l<=1;l+=.01)s=A.getPointOnQuadraticBezier(l,t,i,r[0],r[1],r[2],r[3]),o+=A.getLineLength(a.x,a.y,s.x,s.y),a=s;return o;case"A":o=0;var c=r[4],h=r[5],d=r[4]+h,u=Math.PI/180;if(Math.abs(c-d)<u&&(u=Math.abs(c-d)),a=A.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),h<0)for(l=c-u;l>d;l-=u)s=A.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),o+=A.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(l=c+u;l<d;l+=u)s=A.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),o+=A.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=A.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],d,0),o+=A.getLineLength(a.x,a.y,s.x,s.y)}return 0},e.convertEndpointToCenterParameterization=function(t,e,i,n,r,o,a,s,l){var A=l*(Math.PI/180),c=Math.cos(A)*(t-i)/2+Math.sin(A)*(e-n)/2,h=-1*Math.sin(A)*(t-i)/2+Math.cos(A)*(e-n)/2,d=c*c/(a*a)+h*h/(s*s);d>1&&(a*=Math.sqrt(d),s*=Math.sqrt(d));var u=Math.sqrt((a*a*(s*s)-a*a*(h*h)-s*s*(c*c))/(a*a*(h*h)+s*s*(c*c)));r===o&&(u*=-1),isNaN(u)&&(u=0);var p=u*a*h/s,g=u*-s*c/a,f=(t+i)/2+Math.cos(A)*p-Math.sin(A)*g,m=(e+n)/2+Math.sin(A)*p+Math.cos(A)*g,y=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},b=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))},v=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))},E=v([1,0],[(c-p)/a,(h-g)/s]),I=[(c-p)/a,(h-g)/s],C=[(-1*c-p)/a,(-1*h-g)/s],B=v(I,C);return b(I,C)<=-1&&(B=Math.PI),b(I,C)>=1&&(B=0),0===o&&B>0&&(B-=2*Math.PI),1===o&&B<0&&(B+=2*Math.PI),[f,m,a,s,E,B,A,o]},e}(s.Shape);e.Path=A,A.prototype.className="Path",A.prototype._attrsAffectingSize=["data"],l._registerNode(A),a.Factory.addGetterSetter(A,"data"),o.Collection.mapMethods(A)},23123:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(85256),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.cornerRadius(),i=this.width(),n=this.height();if(t.beginPath(),e){var r=0,o=0,a=0,s=0;"number"==typeof e?r=o=a=s=Math.min(e,i/2,n/2):(r=Math.min(e[0],i/2,n/2),o=Math.min(e[1],i/2,n/2),s=Math.min(e[2],i/2,n/2),a=Math.min(e[3],i/2,n/2)),t.moveTo(r,0),t.lineTo(i-o,0),t.arc(i-o,o,o,3*Math.PI/2,0,!1),t.lineTo(i,n-s),t.arc(i-s,n-s,s,0,Math.PI/2,!1),t.lineTo(a,n),t.arc(a,n-a,a,Math.PI/2,Math.PI,!1),t.lineTo(0,r),t.arc(r,r,r,Math.PI,3*Math.PI/2,!1)}else t.rect(0,0,i,n);t.closePath(),t.fillStrokeShape(this)},e}(s.Shape);e.Rect=A,A.prototype.className="Rect",l._registerNode(A),a.Factory.addGetterSetter(A,"cornerRadius",0),o.Collection.mapMethods(A)},97198:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(29172),A=i(85256),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e,i,n,r=this.sides(),o=this.radius();for(t.beginPath(),t.moveTo(0,0-o),e=1;e<r;e++)i=o*Math.sin(2*e*Math.PI/r),n=-1*o*Math.cos(2*e*Math.PI/r),t.lineTo(i,n);t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(s.Shape);e.RegularPolygon=c,c.prototype.className="RegularPolygon",c.prototype._centroid=!0,c.prototype._attrsAffectingSize=["radius"],A._registerNode(c),a.Factory.addGetterSetter(c,"radius",0,l.getNumberValidator()),a.Factory.addGetterSetter(c,"sides",0,l.getNumberValidator()),o.Collection.mapMethods(c)},58373:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(29172),A=i(85256),c=2*Math.PI,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,c,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),c,0,!0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(s.Shape);e.Ring=h,h.prototype.className="Ring",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["innerRadius","outerRadius"],A._registerNode(h),a.Factory.addGetterSetter(h,"innerRadius",0,l.getNumberValidator()),a.Factory.addGetterSetter(h,"outerRadius",0,l.getNumberValidator()),o.Collection.mapMethods(h)},82446:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(37746),A=i(29172),c=i(85256),h=function(t){function e(e){var i=t.call(this,e)||this;return i._updated=!0,i.anim=new l.Animation((function(){var t=i._updated;return i._updated=!1,t})),i.on("animationChange.konva",(function(){this.frameIndex(0)})),i.on("frameIndexChange.konva",(function(){this._updated=!0})),i.on("frameRateChange.konva",(function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})),i}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.animation(),i=this.frameIndex(),n=4*i,r=this.animations()[e],o=this.frameOffsets(),a=r[n+0],s=r[n+1],l=r[n+2],A=r[n+3],c=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,A),t.closePath(),t.fillStrokeShape(this)),c)if(o){var h=o[e],d=2*i;t.drawImage(c,a,s,l,A,h[d+0],h[d+1],l,A)}else t.drawImage(c,a,s,l,A,0,0,l,A)},e.prototype._hitFunc=function(t){var e=this.animation(),i=this.frameIndex(),n=4*i,r=this.animations()[e],o=this.frameOffsets(),a=r[n+2],s=r[n+3];if(t.beginPath(),o){var l=o[e],A=2*i
;t.rect(l[A+0],l[A+1],a,s)}else t.rect(0,0,a,s);t.closePath(),t.fillShape(this)},e.prototype._useBufferCanvas=function(){return t.prototype._useBufferCanvas.call(this,!0)},e.prototype._setInterval=function(){var t=this;this.interval=setInterval((function(){t._updateIndex()}),1e3/this.frameRate())},e.prototype.start=function(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}},e.prototype.stop=function(){this.anim.stop(),clearInterval(this.interval)},e.prototype.isRunning=function(){return this.anim.isRunning()},e.prototype._updateIndex=function(){var t=this.frameIndex(),e=this.animation();t<this.animations()[e].length/4-1?this.frameIndex(t+1):this.frameIndex(0)},e}(s.Shape);e.Sprite=h,h.prototype.className="Sprite",c._registerNode(h),a.Factory.addGetterSetter(h,"animation"),a.Factory.addGetterSetter(h,"animations"),a.Factory.addGetterSetter(h,"frameOffsets"),a.Factory.addGetterSetter(h,"image"),a.Factory.addGetterSetter(h,"frameIndex",0,A.getNumberValidator()),a.Factory.addGetterSetter(h,"frameRate",17,A.getNumberValidator()),a.Factory.backCompat(h,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),o.Collection.mapMethods(h)},53785:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(29172),A=i(85256),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){var e=this.innerRadius(),i=this.outerRadius(),n=this.numPoints();t.beginPath(),t.moveTo(0,0-i);for(var r=1;r<2*n;r++){var o=r%2==0?i:e,a=o*Math.sin(r*Math.PI/n),s=-1*o*Math.cos(r*Math.PI/n);t.lineTo(a,s)}t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.outerRadius()},e.prototype.getHeight=function(){return 2*this.outerRadius()},e.prototype.setWidth=function(t){this.outerRadius(t/2)},e.prototype.setHeight=function(t){this.outerRadius(t/2)},e}(s.Shape);e.Star=c,c.prototype.className="Star",c.prototype._centroid=!0,c.prototype._attrsAffectingSize=["innerRadius","outerRadius"],A._registerNode(c),a.Factory.addGetterSetter(c,"numPoints",5,l.getNumberValidator()),a.Factory.addGetterSetter(c,"innerRadius",0,l.getNumberValidator()),a.Factory.addGetterSetter(c,"outerRadius",0,l.getNumberValidator()),o.Collection.mapMethods(c)},36153:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o,a=i(41808),s=i(49609),l=i(95706),A=i(85256),c=i(29172),h=i(85256),d="auto",u="justify",p="left",g="middle",f="normal",m=" ",y=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],b=y.length;function v(){return o||(o=a.Util.createCanvasElement().getContext("2d"))}var E=function(t){function e(e){var i=t.call(this,function(t){return(t=t||{}).fillLinearGradientColorStops||t.fillRadialGradientColorStops||t.fillPatternImage||(t.fill=t.fill||"black"),t}(e))||this;i._partialTextX=0,i._partialTextY=0;for(var n=0;n<b;n++)i.on(y[n]+"Change.konva",i._setTextData);return i._setTextData(),i}return r(e,t),e.prototype._sceneFunc=function(t){var e,i=this.padding(),n=this.fontSize(),r=this.lineHeight()*n,o=this.textArr,a=o.length,s=this.verticalAlign(),l=0,A=this.align(),c=this.getWidth(),h=this.letterSpacing(),d=this.fill(),f=this.textDecoration(),m=-1!==f.indexOf("underline"),y=-1!==f.indexOf("line-through"),b=0,v=(b=r/2,0),E=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",g),t.setAttr("textAlign",p),s===g?l=(this.getHeight()-a*r-2*i)/2:"bottom"===s&&(l=this.getHeight()-a*r-2*i),t.translate(i,l+i),e=0;e<a;e++){v=0,E=0;var I,C,B,w=o[e],x=w.text,Q=w.width,S=e!==a-1;if(t.save(),"right"===A?v+=c-Q-2*i:"center"===A&&(v+=(c-Q-2*i)/2),m&&(t.save(),t.beginPath(),t.moveTo(v,b+E+Math.round(n/2)),C=0===(I=x.split(" ").length-1),B=A===u&&S&&!C?c-2*i:Q,t.lineTo(v+Math.round(B),b+E+Math.round(n/2)),t.lineWidth=n/15,t.strokeStyle=d,t.stroke(),t.restore()),y&&(t.save(),t.beginPath(),t.moveTo(v,b+E),C=0===(I=x.split(" ").length-1),B=A===u&&S&&!C?c-2*i:Q,t.lineTo(v+Math.round(B),b+E),t.lineWidth=n/15,t.strokeStyle=d,t.stroke(),t.restore()),0!==h||A===u){I=x.split(" ").length-1;for(var k=0;k<x.length;k++){var D=x[k];" "===D&&e!==a-1&&A===u&&(v+=(c-2*i-Q)/I),this._partialTextX=v,this._partialTextY=b+E,this._partialText=D,t.fillStrokeShape(this),v+=this.measureSize(D).width+h}}else this._partialTextX=v,this._partialTextY=b+E,this._partialText=x,t.fillStrokeShape(this);t.restore(),a>1&&(b+=r)}},e.prototype._hitFunc=function(t){var e=this.getWidth(),i=this.getHeight();t.beginPath(),t.rect(0,0,e,i),t.closePath(),t.fillStrokeShape(this)},e.prototype.setText=function(t){var e=a.Util._isString(t)?t:null==t?"":t+"";return this._setAttr("text",e),this},e.prototype.getWidth=function(){return this.attrs.width===d||void 0===this.attrs.width?this.getTextWidth()+2*this.padding():this.attrs.width},e.prototype.getHeight=function(){return this.attrs.height===d||void 0===this.attrs.height?this.fontSize()*this.textArr.length*this.lineHeight()+2*this.padding():this.attrs.height},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return a.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.measureSize=function(t){var e,i=v(),n=this.fontSize();return i.save(),i.font=this._getContextFont(),e=i.measureText(t),i.restore(),{width:e.width,height:n}},e.prototype._getContextFont=function(){return A.Konva.UA.isIE?this.fontStyle()+m+this.fontSize()+"px "+this.fontFamily():this.fontStyle()+m+this.fontVariant()+m+(this.fontSize()+"px ")+this.fontFamily().split(",").map((function(t){var e=(t=t.trim()).indexOf(" ")>=0,i=t.indexOf('"')>=0||t.indexOf("'")>=0;return e&&!i&&(t='"'+t+'"'),t})).join(", ")},e.prototype._addTextLine=function(t){this.align()===u&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e})},e.prototype._getTextWidth=function(t){var e=this.letterSpacing(),i=t.length;return v().measureText(t).width+(i?e*(i-1):0)},e.prototype._setTextData=function(){var t=this.text().split("\n"),e=+this.fontSize(),i=0,n=this.lineHeight()*e,r=this.attrs.width,o=this.attrs.height,a=r!==d&&void 0!==r,s=o!==d&&void 0!==o,l=this.padding(),A=r-2*l,c=o-2*l,h=0,u=this.wrap(),p="none"!==u,g="char"!==u&&p,f=this.ellipsis()&&!p;this.textArr=[],v().font=this._getContextFont();for(var y=f?this._getTextWidth("…"):0,b=0,E=t.length;b<E;++b){var I=t[b],C=this._getTextWidth(I);if(a&&C>A)for(;I.length>0;){for(var B=0,w=I.length,x="",Q=0;B<w;){var S=B+w>>>1,k=I.slice(0,S+1),D=this._getTextWidth(k)+y;D<=A?(B=S+1,x=k+(f?"…":""),Q=D):w=S}if(!x)break;if(g){var _,R=I[x.length];(_=(R===m||"-"===R)&&Q<=A?x.length:Math.max(x.lastIndexOf(m),x.lastIndexOf("-"))+1)>0&&(B=_,x=x.slice(0,B),Q=this._getTextWidth(x))}if(x=x.trimRight(),this._addTextLine(x),i=Math.max(i,Q),h+=n,!p||s&&h+n>c)break;if((I=(I=I.slice(B)).trimLeft()).length>0&&(C=this._getTextWidth(I))<=A){this._addTextLine(I),h+=n,i=Math.max(i,C);break}}else this._addTextLine(I),h+=n,i=Math.max(i,C);if(s&&h+n>c)break}this.textHeight=e,this.textWidth=i},e.prototype.getStrokeScaleEnabled=function(){return!0},e}(l.Shape);e.Text=E,E.prototype._fillFunc=function(t){t.fillText(this._partialText,this._partialTextX,this._partialTextY)},E.prototype._strokeFunc=function(t){
t.strokeText(this._partialText,this._partialTextX,this._partialTextY)},E.prototype.className="Text",E.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight"],h._registerNode(E),s.Factory.overWriteSetter(E,"width",c.getNumberOrAutoValidator()),s.Factory.overWriteSetter(E,"height",c.getNumberOrAutoValidator()),s.Factory.addGetterSetter(E,"fontFamily","Arial"),s.Factory.addGetterSetter(E,"fontSize",12,c.getNumberValidator()),s.Factory.addGetterSetter(E,"fontStyle",f),s.Factory.addGetterSetter(E,"fontVariant",f),s.Factory.addGetterSetter(E,"padding",0,c.getNumberValidator()),s.Factory.addGetterSetter(E,"align",p),s.Factory.addGetterSetter(E,"verticalAlign","top"),s.Factory.addGetterSetter(E,"lineHeight",1,c.getNumberValidator()),s.Factory.addGetterSetter(E,"wrap","word"),s.Factory.addGetterSetter(E,"ellipsis",!1),s.Factory.addGetterSetter(E,"letterSpacing",0,c.getNumberValidator()),s.Factory.addGetterSetter(E,"text","",c.getStringValidator()),s.Factory.addGetterSetter(E,"textDecoration",""),a.Collection.mapMethods(E)},49842:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(10834),A=i(36153),c=i(29172),h=i(85256),d="normal";function u(t){t.fillText(this.partialText,0,0)}function p(t){t.strokeText(this.partialText,0,0)}var g=function(t){function e(e){var i=t.call(this,e)||this;return i.dummyCanvas=o.Util.createCanvasElement(),i.dataArray=[],i.dataArray=l.Path.parsePathData(i.attrs.data),i.on("dataChange.konva",(function(){this.dataArray=l.Path.parsePathData(this.attrs.data),this._setTextData()})),i.on("textChange.konva alignChange.konva letterSpacingChange.konva kerningFuncChange.konva",i._setTextData),e&&e.getKerning&&(o.Util.warn('getKerning TextPath API is deprecated. Please use "kerningFunc" instead.'),i.kerningFunc(e.getKerning)),i._setTextData(),i}return r(e,t),e.prototype._sceneFunc=function(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),i=this.fill(),n=this.fontSize(),r=this.glyphInfo;"underline"===e&&t.beginPath();for(var o=0;o<r.length;o++){t.save();var a=r[o].p0;t.translate(a.x,a.y),t.rotate(r[o].rotation),this.partialText=r[o].text,t.fillStrokeShape(this),"underline"===e&&(0===o&&t.moveTo(0,n/2+1),t.lineTo(n,n/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=i,t.lineWidth=n/20,t.stroke()),t.restore()},e.prototype._hitFunc=function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var i=e[0].p0;t.moveTo(i.x,i.y)}for(var n=0;n<e.length;n++){var r=e[n].p1;t.lineTo(r.x,r.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},e.prototype.getTextWidth=function(){return this.textWidth},e.prototype.getTextHeight=function(){return o.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight},e.prototype.setText=function(t){return A.Text.prototype.setText.call(this,t)},e.prototype._getContextFont=function(){return A.Text.prototype._getContextFont.call(this)},e.prototype._getTextSize=function(t){var e=this.dummyCanvas.getContext("2d");e.save(),e.font=this._getContextFont();var i=e.measureText(t);return e.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}},e.prototype._setTextData=function(){var t=this,e=this._getTextSize(this.attrs.text),i=this.letterSpacing(),n=this.align(),r=this.kerningFunc();this.textWidth=e.width,this.textHeight=e.height;var o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*i,0);this.glyphInfo=[];for(var a=0,s=0;s<t.dataArray.length;s++)t.dataArray[s].pathLength>0&&(a+=t.dataArray[s].pathLength);var A=0;"center"===n&&(A=Math.max(0,a/2-o/2)),"right"===n&&(A=Math.max(0,a-o));for(var c,h,d,u=this.text().split(""),p=this.text().split(" ").length-1,g=-1,f=0,m=function(){f=0;for(var e=t.dataArray,i=g+1;i<e.length;i++){if(e[i].pathLength>0)return g=i,e[i];"M"===e[i].command&&(c={x:e[i].points[0],y:e[i].points[1]})}return{}},y=function(e){var r=t._getTextSize(e).width+i;" "===e&&"justify"===n&&(r+=(a-o)/p);var s=0,A=0;for(h=void 0;Math.abs(r-s)/r>.01&&A<25;){A++;for(var u=s;void 0===d;)(d=m())&&u+d.pathLength<r&&(u+=d.pathLength,d=void 0);if(d==={}||void 0===c)return;var g=!1;switch(d.command){case"L":l.Path.getLineLength(c.x,c.y,d.points[0],d.points[1])>r?h=l.Path.getPointOnLine(r,c.x,c.y,d.points[0],d.points[1],c.x,c.y):d=void 0;break;case"A":var y=d.points[4],b=d.points[5],v=d.points[4]+b;0===f?f=y+1e-8:r>s?f+=Math.PI/180*b/Math.abs(b):f-=Math.PI/360*b/Math.abs(b),(b<0&&f<v||b>=0&&f>v)&&(f=v,g=!0),h=l.Path.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],f,d.points[6]);break;case"C":0===f?f=r>d.pathLength?1e-8:r/d.pathLength:r>s?f+=(r-s)/d.pathLength:f-=(s-r)/d.pathLength,f>1&&(f=1,g=!0),h=l.Path.getPointOnCubicBezier(f,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3],d.points[4],d.points[5]);break;case"Q":0===f?f=r/d.pathLength:r>s?f+=(r-s)/d.pathLength:f-=(s-r)/d.pathLength,f>1&&(f=1,g=!0),h=l.Path.getPointOnQuadraticBezier(f,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3])}void 0!==h&&(s=l.Path.getLineLength(c.x,c.y,h.x,h.y)),g&&(g=!1,d=void 0)}},b=A/(t._getTextSize("C").width+i)-1,v=0;v<b&&(y("C"),void 0!==c&&void 0!==h);v++)c=h;for(var E=0;E<u.length&&(y(u[E]),void 0!==c&&void 0!==h);E++){var I=l.Path.getLineLength(c.x,c.y,h.x,h.y),C=0;if(r)try{C=r(u[E-1],u[E])*this.fontSize()}catch(t){C=0}c.x+=C,h.x+=C,this.textWidth+=C;var B=l.Path.getPointOnLine(C+I/2,c.x,c.y,h.x,h.y),w=Math.atan2(h.y-c.y,h.x-c.x);this.glyphInfo.push({transposeX:B.x,transposeY:B.y,text:u[E],rotation:w,p0:c,p1:h}),c=h}},e.prototype.getSelfRect=function(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach((function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)}));for(var e,i,n=t[0]||0,r=t[0]||0,o=t[1]||0,a=t[1]||0,s=0;s<t.length/2;s++)e=t[2*s],i=t[2*s+1],n=Math.min(n,e),r=Math.max(r,e),o=Math.min(o,i),a=Math.max(a,i);var l=this.fontSize();return{x:n-l/2,y:o-l/2,width:r-n+l,height:a-o+l}},e}(s.Shape);e.TextPath=g,g.prototype._fillFunc=u,g.prototype._strokeFunc=p,g.prototype._fillFuncHit=u,g.prototype._strokeFuncHit=p,g.prototype.className="TextPath",g.prototype._attrsAffectingSize=["text","fontSize","data"],h._registerNode(g),a.Factory.addGetterSetter(g,"data"),a.Factory.addGetterSetter(g,"fontFamily","Arial"),a.Factory.addGetterSetter(g,"fontSize",12,c.getNumberValidator()),a.Factory.addGetterSetter(g,"fontStyle",d),a.Factory.addGetterSetter(g,"align","left"),a.Factory.addGetterSetter(g,"letterSpacing",0,c.getNumberValidator()),a.Factory.addGetterSetter(g,"textBaseline","middle"),a.Factory.addGetterSetter(g,"fontVariant",d),a.Factory.addGetterSetter(g,"text",""),a.Factory.addGetterSetter(g,"textDecoration",null),a.Factory.addGetterSetter(g,"kerningFunc",null),o.Collection.mapMethods(g)},59017:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0})
;var a=i(41808),s=i(49609),l=i(6627),A=i(95706),c=i(23123),h=i(69834),d=i(85256),u=i(29172),p=i(85256),g="tr-konva",f=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map((function(t){return t+"."+g})).join(" "),m="nodesRect",y=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"].map((function(t){return t+"."+g})).join(" "),b={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},v="ontouchstart"in d.Konva._global;var E=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function I(t,e,i){var n=i.x+(t.x-i.x)*Math.cos(e)-(t.y-i.y)*Math.sin(e),r=i.y+(t.x-i.x)*Math.sin(e)+(t.y-i.y)*Math.cos(e);return o(o({},t),{rotation:t.rotation+e,x:n,y:r})}function C(t,e){var i=function(t){return{x:t.x+t.width/2*Math.cos(t.rotation)+t.height/2*Math.sin(-t.rotation),y:t.y+t.height/2*Math.cos(t.rotation)+t.width/2*Math.sin(t.rotation)}}(t);return I(t,e,i)}var B=function(t){function e(e){var i=t.call(this,e)||this;return i._transforming=!1,i._createElements(),i._handleMouseMove=i._handleMouseMove.bind(i),i._handleMouseUp=i._handleMouseUp.bind(i),i.update=i.update.bind(i),i.on(f,i.update),i.getNode()&&i.update(),i}return r(e,t),e.prototype.attachTo=function(t){return this.setNode(t),this},e.prototype.setNode=function(t){return a.Util.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])},e.prototype.getNode=function(){return this._nodes&&this._nodes[0]},e.prototype.setNodes=function(t){var e=this;return void 0===t&&(t=[]),this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,1===t.length?this.rotation(t[0].rotation()):this.rotation(0),this._nodes.forEach((function(t){var i=t._attrsAffectingSize.map((function(t){return t+"Change."+g})).join(" "),n=function(){e._resetTransformCache(),e._transforming||e.update()};t.on(i,n),t.on(y,n),t.on("_clearTransformCache."+g,n),t.on("xChange."+g+" yChange."+g,n),e._proxyDrag(t)})),this._resetTransformCache(),!!this.findOne(".top-left")&&this.update(),this},e.prototype._proxyDrag=function(t){var e,i=this;t.on("dragstart."+g,(function(n){e=t.getAbsolutePosition(),i.isDragging()||t===i.findOne(".back")||i.startDrag()})),t.on("dragmove."+g,(function(n){if(e){var r=t.getAbsolutePosition(),o=r.x-e.x,a=r.y-e.y;i.nodes().forEach((function(e){if(e!==t&&!e.isDragging()){var i=e.getAbsolutePosition();e.setAbsolutePosition({x:i.x+o,y:i.y+a}),e.startDrag()}})),e=null}}))},e.prototype.getNodes=function(){return this._nodes},e.prototype.getActiveAnchor=function(){return this._movingAnchorName},e.prototype.detach=function(){this._nodes&&this._nodes.forEach((function(t){t.off("."+g)})),this._nodes=[],this._resetTransformCache()},e.prototype._resetTransformCache=function(){this._clearCache(m),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},e.prototype._getNodeRect=function(){return this._getCache(m,this.__getNodeRect)},e.prototype.__getNodeShape=function(t,e,i){void 0===e&&(e=this.rotation());var n=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),r=t.getAbsoluteScale(i),o=t.getAbsolutePosition(i),a=n.x*r.x-t.offsetX()*r.x,s=n.y*r.y-t.offsetY()*r.y,l=(d.Konva.getAngle(t.getAbsoluteRotation())+2*Math.PI)%(2*Math.PI);return I({x:o.x+a*Math.cos(l)+s*Math.sin(-l),y:o.y+s*Math.cos(l)+a*Math.sin(l),width:n.width*r.x,height:n.height*r.y,rotation:l},-d.Konva.getAngle(e),{x:0,y:0})},e.prototype.__getNodeRect=function(){var t=this;if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};var e=[];this.nodes().map((function(i){var n=i.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:t.ignoreStroke()}),r=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x+n.width,y:n.y+n.height},{x:n.x,y:n.y+n.height}],o=i.getAbsoluteTransform();r.forEach((function(t){var i=o.point(t);e.push(i)}))}));var i,n,r,o,s=new a.Transform;s.rotate(-d.Konva.getAngle(this.rotation())),e.forEach((function(t){var e=s.point(t);void 0===i&&(i=r=e.x,n=o=e.y),i=Math.min(i,e.x),n=Math.min(n,e.y),r=Math.max(r,e.x),o=Math.max(o,e.y)})),s.invert();var l=s.point({x:i,y:n});return{x:l.x,y:l.y,width:r-i,height:o-n,rotation:d.Konva.getAngle(this.rotation())}},e.prototype.getX=function(){return this._getNodeRect().x},e.prototype.getY=function(){return this._getNodeRect().y},e.prototype.getWidth=function(){return this._getNodeRect().width},e.prototype.getHeight=function(){return this._getNodeRect().height},e.prototype._createElements=function(){this._createBack(),E.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")},e.prototype._createAnchor=function(t){var e=this,i=new c.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:v?10:"auto"}),n=this;i.on("mousedown touchstart",(function(t){n._handleMouseDown(t)})),i.on("dragstart",(function(t){i.stopDrag(),t.cancelBubble=!0})),i.on("dragend",(function(t){t.cancelBubble=!0})),i.on("mouseenter",(function(){var n=d.Konva.getAngle(e.rotation()),r=function(t,e){if("rotater"===t)return"crosshair";e+=a.Util._degToRad(b[t]||0);var i=(a.Util._radToDeg(e)%360+360)%360;return a.Util._inRange(i,337.5,360)||a.Util._inRange(i,0,22.5)?"ns-resize":a.Util._inRange(i,22.5,67.5)?"nesw-resize":a.Util._inRange(i,67.5,112.5)?"ew-resize":a.Util._inRange(i,112.5,157.5)?"nwse-resize":a.Util._inRange(i,157.5,202.5)?"ns-resize":a.Util._inRange(i,202.5,247.5)?"nesw-resize":a.Util._inRange(i,247.5,292.5)?"ew-resize":a.Util._inRange(i,292.5,337.5)?"nwse-resize":(a.Util.error("Transformer has unknown angle for cursor detection: "+i),"pointer")}(t,n);i.getStage().content.style.cursor=r,e._cursorChange=!0})),i.on("mouseout",(function(){i.getStage().content.style.cursor="",e._cursorChange=!1})),this.add(i)},e.prototype._createBack=function(){var t=this,e=new A.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc:function(t){var e=this.getParent(),i=e.padding();t.beginPath(),t.rect(-i,-i,this.width()+2*i,this.height()+2*i),t.moveTo(this.width()/2,-i),e.rotateEnabled()&&t.lineTo(this.width()/2,-e.rotateAnchorOffset()*a.Util._sign(this.height())-i),t.fillStrokeShape(this)},hitFunc:function(e,i){if(t.shouldOverdrawWholeArea()){var n=t.padding();e.beginPath(),e.rect(-n,-n,i.width()+2*n,i.height()+2*n),e.fillStrokeShape(i)}}});this.add(e),this._proxyDrag(e)},e.prototype._handleMouseDown=function(t){this._movingAnchorName=t.target.name().split(" ")[0];var e=this._getNodeRect(),i=e.width,n=e.height,r=Math.sqrt(Math.pow(i,2)+Math.pow(n,2));this.sin=Math.abs(n/r),this.cos=Math.abs(i/r),window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0),this._transforming=!0;var o=t.target.getAbsolutePosition(),a=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:a.x-o.x,y:a.y-o.y},this._fire("transformstart",{evt:t,target:this.getNode()}),this.getNode()._fire("transformstart",{evt:t,target:this.getNode()})},e.prototype._handleMouseMove=function(t){var e,i,n,r=this.findOne("."+this._movingAnchorName),o=r.getStage();o.setPointersPositions(t);var a=o.getPointerPosition(),s={x:a.x-this._anchorDragOffset.x,y:a.y-this._anchorDragOffset.y},l=r.getAbsolutePosition();r.setAbsolutePosition(s);var A=r.getAbsolutePosition();if(l.x!==A.x||l.y!==A.y)if("rotater"!==this._movingAnchorName){var c=this.keepRatio()||t.shiftKey,h=this.centeredScaling()||t.altKey;if("top-left"===this._movingAnchorName){if(c){var u=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),
y:this.findOne(".bottom-right").y()};n=Math.sqrt(Math.pow(u.x-r.x(),2)+Math.pow(u.y-r.y(),2));var p=this.findOne(".top-left").x()>u.x?-1:1,g=this.findOne(".top-left").y()>u.y?-1:1;e=n*this.cos*p,i=n*this.sin*g,this.findOne(".top-left").x(u.x-e),this.findOne(".top-left").y(u.y-i)}}else if("top-center"===this._movingAnchorName)this.findOne(".top-left").y(r.y());else if("top-right"===this._movingAnchorName){if(c){u=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};n=Math.sqrt(Math.pow(r.x()-u.x,2)+Math.pow(u.y-r.y(),2));p=this.findOne(".top-right").x()<u.x?-1:1,g=this.findOne(".top-right").y()>u.y?-1:1;e=n*this.cos*p,i=n*this.sin*g,this.findOne(".top-right").x(u.x+e),this.findOne(".top-right").y(u.y-i)}var f=r.position();this.findOne(".top-left").y(f.y),this.findOne(".bottom-right").x(f.x)}else if("middle-left"===this._movingAnchorName)this.findOne(".top-left").x(r.x());else if("middle-right"===this._movingAnchorName)this.findOne(".bottom-right").x(r.x());else if("bottom-left"===this._movingAnchorName){if(c){u=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};n=Math.sqrt(Math.pow(u.x-r.x(),2)+Math.pow(r.y()-u.y,2));p=u.x<r.x()?-1:1,g=r.y()<u.y?-1:1;e=n*this.cos*p,i=n*this.sin*g,r.x(u.x-e),r.y(u.y+i)}f=r.position(),this.findOne(".top-left").x(f.x),this.findOne(".bottom-right").y(f.y)}else if("bottom-center"===this._movingAnchorName)this.findOne(".bottom-right").y(r.y());else if("bottom-right"===this._movingAnchorName){if(c){u=h?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};n=Math.sqrt(Math.pow(r.x()-u.x,2)+Math.pow(r.y()-u.y,2));p=this.findOne(".bottom-right").x()<u.x?-1:1,g=this.findOne(".bottom-right").y()<u.y?-1:1;e=n*this.cos*p,i=n*this.sin*g,this.findOne(".bottom-right").x(u.x+e),this.findOne(".bottom-right").y(u.y+i)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));if(h=this.centeredScaling()||t.altKey){var m=this.findOne(".top-left"),y=this.findOne(".bottom-right"),b=m.x(),v=m.y(),E=this.getWidth()-y.x(),I=this.getHeight()-y.y();y.move({x:-b,y:-v}),m.move({x:E,y:I})}var B=this.findOne(".top-left").getAbsolutePosition();e=B.x,i=B.y;var w=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),x=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:e,y:i,width:w,height:x,rotation:d.Konva.getAngle(this.rotation())},t)}else{var Q=this._getNodeRect();e=r.x()-Q.width/2,i=-r.y()+Q.height/2;var S=Math.atan2(-i,e)+Math.PI/2;Q.height<0&&(S-=Math.PI);var k=d.Konva.getAngle(this.rotation())+S,D=d.Konva.getAngle(this.rotationSnapTolerance()),_=function(t,e,i){for(var n=e,r=0;r<t.length;r++){var o=d.Konva.getAngle(t[r]),a=Math.abs(o-e)%(2*Math.PI);Math.min(a,2*Math.PI-a)<i&&(n=o)}return n}(this.rotationSnaps(),k,D),R=C(Q,_-Q.rotation);this._fitNodesInto(R,t)}},e.prototype._handleMouseUp=function(t){this._removeEvents(t)},e.prototype.getAbsoluteTransform=function(){return this.getTransform()},e.prototype._removeEvents=function(t){if(this._transforming){this._transforming=!1,window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0);var e=this.getNode();this._fire("transformend",{evt:t,target:e}),e&&e.fire("transformend",{evt:t,target:e}),this._movingAnchorName=null}},e.prototype._fitNodesInto=function(t,e){var i=this,n=this._getNodeRect();if(a.Util._inRange(t.width,2*-this.padding()-1,1))this.update();else if(a.Util._inRange(t.height,2*-this.padding()-1,1))this.update();else{var r=new a.Transform;if(r.rotate(d.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){var o=r.point({x:2*-this.padding(),y:0});t.x+=o.x,t.y+=o.y,t.width+=2*this.padding(),this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=o.x,this._anchorDragOffset.y-=o.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){o=r.point({x:2*this.padding(),y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=o.x,this._anchorDragOffset.y-=o.y,t.width+=2*this.padding()}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){o=r.point({x:0,y:2*-this.padding()});t.x+=o.x,t.y+=o.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=o.x,this._anchorDragOffset.y-=o.y,t.height+=2*this.padding()}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){o=r.point({x:0,y:2*this.padding()});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=o.x,this._anchorDragOffset.y-=o.y,t.height+=2*this.padding()}if(this.boundBoxFunc()){var s=this.boundBoxFunc()(n,t);s?t=s:a.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}var l=1e7,A=new a.Transform;A.translate(n.x,n.y),A.rotate(n.rotation),A.scale(n.width/l,n.height/l);var c=new a.Transform;c.translate(t.x,t.y),c.rotate(t.rotation),c.scale(t.width/l,t.height/l);var h=c.multiply(A.invert());this._nodes.forEach((function(t){var n=t.getParent().getAbsoluteTransform(),r=t.getTransform().copy();r.translate(t.offsetX(),t.offsetY());var o=new a.Transform;o.multiply(n.copy().invert()).multiply(h).multiply(n).multiply(r);var s=o.decompose();t.setAttrs(s),i._fire("transform",{evt:e,target:t}),t._fire("transform",{evt:e,target:t})})),this.rotation(a.Util._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}},e.prototype.forceUpdate=function(){this._resetTransformCache(),this.update()},e.prototype._batchChangeChild=function(t,e){this.findOne(t).setAttrs(e)},e.prototype.update=function(){var t=this,e=this._getNodeRect();this.rotation(a.Util._getRotation(e.rotation));var i=e.width,n=e.height,r=this.enabledAnchors(),o=this.resizeEnabled(),s=this.padding(),l=this.anchorSize();this.find("._anchor").each((function(e){e.setAttrs({width:l,height:l,offsetX:l/2,offsetY:l/2,stroke:t.anchorStroke(),strokeWidth:t.anchorStrokeWidth(),fill:t.anchorFill(),cornerRadius:t.anchorCornerRadius()})})),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:l/2+s,offsetY:l/2+s,visible:o&&r.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:i/2,y:0,offsetY:l/2+s,visible:o&&r.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:i,y:0,offsetX:l/2-s,offsetY:l/2+s,visible:o&&r.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:n/2,offsetX:l/2+s,visible:o&&r.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:i,y:n/2,offsetX:l/2-s,visible:o&&r.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:n,offsetX:l/2+s,offsetY:l/2-s,visible:o&&r.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:i/2,y:n,offsetY:l/2-s,visible:o&&r.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:i,y:n,offsetX:l/2-s,offsetY:l/2-s,visible:o&&r.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:i/2,y:-this.rotateAnchorOffset()*a.Util._sign(n)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:i,height:n,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0})},e.prototype.isTransforming=function(){return this._transforming},e.prototype.stopTransform=function(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}},e.prototype.destroy=function(){return this.getStage()&&this._cursorChange&&(this.getStage().content.style.cursor=""),h.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this},e.prototype.toObject=function(){return l.Node.prototype.toObject.call(this)},e}(h.Group);e.Transformer=B,B.prototype.className="Transformer",p._registerNode(B),
s.Factory.addGetterSetter(B,"enabledAnchors",E,(function(t){return t instanceof Array||a.Util.warn("enabledAnchors value should be an array"),t instanceof Array&&t.forEach((function(t){-1===E.indexOf(t)&&a.Util.warn("Unknown anchor name: "+t+". Available names are: "+E.join(", "))})),t||[]})),s.Factory.addGetterSetter(B,"resizeEnabled",!0),s.Factory.addGetterSetter(B,"anchorSize",10,u.getNumberValidator()),s.Factory.addGetterSetter(B,"rotateEnabled",!0),s.Factory.addGetterSetter(B,"rotationSnaps",[]),s.Factory.addGetterSetter(B,"rotateAnchorOffset",50,u.getNumberValidator()),s.Factory.addGetterSetter(B,"rotationSnapTolerance",5,u.getNumberValidator()),s.Factory.addGetterSetter(B,"borderEnabled",!0),s.Factory.addGetterSetter(B,"anchorStroke","rgb(0, 161, 255)"),s.Factory.addGetterSetter(B,"anchorStrokeWidth",1,u.getNumberValidator()),s.Factory.addGetterSetter(B,"anchorFill","white"),s.Factory.addGetterSetter(B,"anchorCornerRadius",0,u.getNumberValidator()),s.Factory.addGetterSetter(B,"borderStroke","rgb(0, 161, 255)"),s.Factory.addGetterSetter(B,"borderStrokeWidth",1,u.getNumberValidator()),s.Factory.addGetterSetter(B,"borderDash"),s.Factory.addGetterSetter(B,"keepRatio",!0),s.Factory.addGetterSetter(B,"centeredScaling",!1),s.Factory.addGetterSetter(B,"ignoreStroke",!1),s.Factory.addGetterSetter(B,"padding",0,u.getNumberValidator()),s.Factory.addGetterSetter(B,"node"),s.Factory.addGetterSetter(B,"nodes"),s.Factory.addGetterSetter(B,"boundBoxFunc"),s.Factory.addGetterSetter(B,"shouldOverdrawWholeArea",!1),s.Factory.backCompat(B,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"}),a.Collection.mapMethods(B)},59190:function(t,e,i){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var o=i(41808),a=i(49609),s=i(95706),l=i(85256),A=i(29172),c=i(85256),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._sceneFunc=function(t){t.beginPath(),t.arc(0,0,this.radius(),0,l.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},e.prototype.getWidth=function(){return 2*this.radius()},e.prototype.getHeight=function(){return 2*this.radius()},e.prototype.setWidth=function(t){this.radius(t/2)},e.prototype.setHeight=function(t){this.radius(t/2)},e}(s.Shape);e.Wedge=h,h.prototype.className="Wedge",h.prototype._centroid=!0,h.prototype._attrsAffectingSize=["radius"],c._registerNode(h),a.Factory.addGetterSetter(h,"radius",0,A.getNumberValidator()),a.Factory.addGetterSetter(h,"angle",0,A.getNumberValidator()),a.Factory.addGetterSetter(h,"clockwise",!1),a.Factory.backCompat(h,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),o.Collection.mapMethods(h)},20733:function(t,e,i){var n,r;"undefined"!=typeof navigator&&(r=window||{},void 0===(n=function(){return function(t){"use strict";var e,i="http://www.w3.org/2000/svg",n="",r=-999999,o=!0,a=(/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Math.round,Math.pow),s=Math.sqrt,l=(Math.abs,Math.floor),A=(Math.max,Math.min),c={};function h(){return{}}(function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)c[e[t]]=Math[e[t]]})(),c.random=Math.random,c.abs=function(t){if("object"==typeof t&&t.length){var e,i=M(t.length),n=t.length;for(e=0;e<n;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var d=150,u=Math.PI/180,p=.5519;function g(t){t&&Math.round}function f(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function m(t,e){this.type=t,this.direction=e<0?-1:1}function y(t,e,i,n){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=n<0?-1:1}function b(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function v(t,e){this.type=t,this.target=e}function E(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function I(t){this.type="configError",this.nativeError=t}g(!1);var C,B=(C=0,function(){return"__lottie_element_"+ ++C});function w(t,e,i){var n,r,o,a,s,l,A,c;switch(l=i*(1-e),A=i*(1-(s=6*t-(a=Math.floor(6*t)))*e),c=i*(1-(1-s)*e),a%6){case 0:n=i,r=c,o=l;break;case 1:n=A,r=i,o=l;break;case 2:n=l,r=i,o=c;break;case 3:n=l,r=A,o=i;break;case 4:n=c,r=l,o=i;break;case 5:n=i,r=l,o=A}return[n,r,o]}function x(t,e,i){var n,r=Math.max(t,e,i),o=Math.min(t,e,i),a=r-o,s=0===r?0:a/r,l=r/255;switch(r){case o:n=0;break;case t:n=e-i+a*(e<i?6:0),n/=6*a;break;case e:n=i-t+2*a,n/=6*a;break;case i:n=t-e+4*a,n/=6*a}return[n,s,l]}function Q(t,e){var i=x(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),w(i[0],i[1],i[2])}function S(t,e){var i=x(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),w(i[0],i[1],i[2])}function k(t,e){var i=x(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),w(i[0],i[1],i[2])}var D=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1==e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}();function _(){}_.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t].length,n=0;n<i;n++)this._cbs[t][n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var R=function(){function t(t,e){var i,n=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<e;n+=1)r.push(i);return r}function e(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function M(t){return Array.apply(null,{length:t})}function T(t){return document.createElementNS(i,t)}function F(t){return document.createElement(t)}function L(){}L.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var N,P=(N={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return N[t]||""}),U=function(){var t=Math.cos,e=Math.sin,i=Math.tan,n=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1)}function s(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1)}function l(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function A(t,e){return this._t(1,e,t,1,0,0)
}function c(t,e){return this.shear(i(t),i(e))}function h(n,r){var o=t(r),a=e(r);return this._t(o,a,0,0,-a,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(n),1,0,0,0,0,1,0,0,0,0,1)._t(o,-a,0,0,a,o,0,0,0,0,1,0,0,0,0,1)}function d(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function u(t,e,i,n,r,o,a,s,l,A,c,h,d,u,p,g){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=r,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=A,this.props[10]=c,this.props[11]=h,this.props[12]=d,this.props[13]=u,this.props[14]=p,this.props[15]=g,this}function p(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function g(t,e,i,n,r,o,a,s,l,A,c,h,d,u,p,g){var f=this.props;if(1===t&&0===e&&0===i&&0===n&&0===r&&1===o&&0===a&&0===s&&0===l&&0===A&&1===c&&0===h)return f[12]=f[12]*t+f[15]*d,f[13]=f[13]*o+f[15]*u,f[14]=f[14]*c+f[15]*p,f[15]=f[15]*g,this._identityCalculated=!1,this;var m=f[0],y=f[1],b=f[2],v=f[3],E=f[4],I=f[5],C=f[6],B=f[7],w=f[8],x=f[9],Q=f[10],S=f[11],k=f[12],D=f[13],_=f[14],R=f[15];return f[0]=m*t+y*r+b*l+v*d,f[1]=m*e+y*o+b*A+v*u,f[2]=m*i+y*a+b*c+v*p,f[3]=m*n+y*s+b*h+v*g,f[4]=E*t+I*r+C*l+B*d,f[5]=E*e+I*o+C*A+B*u,f[6]=E*i+I*a+C*c+B*p,f[7]=E*n+I*s+C*h+B*g,f[8]=w*t+x*r+Q*l+S*d,f[9]=w*e+x*o+Q*A+S*u,f[10]=w*i+x*a+Q*c+S*p,f[11]=w*n+x*s+Q*h+S*g,f[12]=k*t+D*r+_*l+R*d,f[13]=k*e+D*o+_*A+R*u,f[14]=k*i+D*a+_*c+R*p,f[15]=k*n+D*s+_*h+R*g,this._identityCalculated=!1,this}function f(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function m(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function y(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function v(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function E(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function I(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function C(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function B(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,n=-this.props[4]/t,r=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,s=new U;return s.props[0]=e,s.props[1]=i,s.props[4]=n,s.props[5]=r,s.props[12]=o,s.props[13]=a,s}function w(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function x(t){var e,i=t.length,n=[];for(e=0;e<i;e+=1)n[e]=w(t[e]);return n}function Q(t,e,i){var n=R("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=i[0],n[5]=i[1];else{var r=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],A=this.props[13];n[0]=t[0]*r+t[1]*a+l,n[1]=t[0]*o+t[1]*s+A,n[2]=e[0]*r+e[1]*a+l,n[3]=e[0]*o+e[1]*s+A,n[4]=i[0]*r+i[1]*a+l,n[5]=i[0]*o+i[1]*s+A}return n}function S(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function k(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function D(){for(var t=0,e=this.props,i="matrix3d(",r=1e4;t<16;)i+=n(e[t]*r)/r,i+=15===t?")":",",t+=1;return i}function _(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?n(t*e)/e:t}function M(){var t=this.props;return"matrix("+_(t[0])+","+_(t[1])+","+_(t[4])+","+_(t[5])+","+_(t[12])+","+_(t[13])+")"}return function(){this.reset=r,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=A,this.scale=d,this.setTransform=u,this.translate=p,this.transform=g,this.applyToPoint=v,this.applyToX=E,this.applyToY=I,this.applyToZ=C,this.applyToPointArray=S,this.applyToTriplePoints=Q,this.applyToPointStringified=k,this.toCSS=D,this.to2dCSS=M,this.clone=y,this.cloneFromProps=b,this.equals=m,this.inversePoints=x,this.inversePoint=w,this.getInverseMatrix=B,this._t=this.transform,this.isIdentity=f,this._identity=!0,this._identityCalculated=!1,this.props=R("float32",16),this.reset()}}();!function(t,e){var i,n=this,r=256,o=6,a=52,s="random",l=e.pow(r,o),A=e.pow(2,a),c=2*A,h=r-1;function d(i,n,a){var h=[],d=f(g((n=!0===n?{entropy:!0}:n||{}).entropy?[i,y(t)]:null===i?m():i,3),h),b=new u(h),v=function(){for(var t=b.g(o),e=l,i=0;t<A;)t=(t+i)*r,e*=r,i=b.g(1);for(;t>=c;)t/=2,e/=2,i>>>=1;return(t+i)/e};return v.int32=function(){return 0|b.g(4)},v.quick=function(){return b.g(4)/4294967296},v.double=v,f(y(b.S),t),(n.pass||a||function(t,i,n,r){return r&&(r.S&&p(r,b),t.state=function(){return p(b,{})}),n?(e[s]=t,i):t})(v,d,"global"in n?n.global:this==e,n.state)}function u(t){var e,i=t.length,n=this,o=0,a=n.i=n.j=0,s=n.S=[];for(i||(t=[i++]);o<r;)s[o]=o++;for(o=0;o<r;o++)s[o]=s[a=h&a+t[o%i]+(e=s[o])],s[a]=e;n.g=function(t){for(var e,i=0,o=n.i,a=n.j,s=n.S;t--;)e=s[o=h&o+1],i=i*r+s[h&(s[o]=s[a=h&a+e])+(s[a]=e)];return n.i=o,n.j=a,i}}function p(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function g(t,e){var i,n=[],r=typeof t;if(e&&"object"==r)for(i in t)try{n.push(g(t[i],e-1))}catch(t){}return n.length?n:"string"==r?t:t+"\0"}function f(t,e){for(var i,n=t+"",r=0;r<n.length;)e[h&r]=h&(i^=19*e[h&r])+n.charCodeAt(r++);return y(e)}function m(){try{if(i)return y(i.randomBytes(r));var e=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(e),y(e)}catch(e){var o=n.navigator,a=o&&o.plugins;return[+new Date,n,a,n.screen,y(t)]}}function y(t){return String.fromCharCode.apply(0,t)}e["seed"+s]=d,f(e.random(),t)}([],c);var O=function(){var t={};t.getBezierEasing=i;var e={};function i(t,i,n,r,o){var a=o||("bez_"+t+"_"+i+"_"+n+"_"+r).replace(/\./g,"p");if(e[a])return e[a];var s=new m([t,i,n,r]);return e[a]=s,s}var n=4,r=.001,o=1e-7,a=10,s=11,l=1/(s-1),A="function"==typeof Float32Array;function c(t,e){return 1-3*e+3*t}function h(t,e){return 3*e-6*t}function d(t){return 3*t}function u(t,e,i){return((c(e,i)*t+h(e,i))*t+d(e))*t}function p(t,e,i){return 3*c(e,i)*t*t+2*h(e,i)*t+d(e)}function g(t,e,i,n,r){var s,l,A=0;do{(s=u(l=e+(i-e)/2,n,r)-t)>0?i=l:e=l}while(Math.abs(s)>o&&++A<a);return l}function f(t,e,i,r){for(var o=0;o<n;++o){var a=p(e,i,r);if(0===a)return e;e-=(u(e,i,r)-t)/a}return e}function m(t){this._p=t,this._mSampleValues=A?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return m.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&n===r?t:0===t?0:1===t?1:u(this._getTForX(t),i,r)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],n=this._p[3];this._precomputed=!0,t===e&&i===n||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<s;++i)this._mSampleValues[i]=u(i*l,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],n=this._mSampleValues,o=0,a=1,A=s-1;a!==A&&n[a]<=t;++a)o+=l;var c=o+(t-n[--a])/(n[a+1]-n[a])*l,h=p(c,e,i);return h>=r?f(t,c,e,i):0===h?c:g(t,o,o+l,e,i)}},t}();function G(t,e){var i,n,r=t.length;for(i=0;i<r;i+=1)for(var o in n=t[i].prototype)n.hasOwnProperty(o)&&(e.prototype[o]=n[o])}function H(t){function e(){}return e.prototype=t,e}function V(){function t(t,e,i,n,r,o){var a=t*n+e*r+i*o-r*n-o*t-i*e;return a>-.001&&a<.001}function e(e,i,n,r,o,a,s,l,A){if(0===n&&0===a&&0===A)return t(e,i,r,o,s,l)
;var c,h=Math.sqrt(Math.pow(r-e,2)+Math.pow(o-i,2)+Math.pow(a-n,2)),d=Math.sqrt(Math.pow(s-e,2)+Math.pow(l-i,2)+Math.pow(A-n,2)),u=Math.sqrt(Math.pow(s-r,2)+Math.pow(l-o,2)+Math.pow(A-a,2));return(c=h>d?h>u?h-d-u:u-d-h:u>d?u-d-h:d-h-u)>-1e-4&&c<1e-4}Math;var i=function(t,e,i,n){var r,o,l,A,c,h,u=d,p=0,g=[],f=[],m=Bt.newElement();for(l=i.length,r=0;r<u;r+=1){for(c=r/(u-1),h=0,o=0;o<l;o+=1)A=a(1-c,3)*t[o]+3*a(1-c,2)*c*i[o]+3*(1-c)*a(c,2)*n[o]+a(c,3)*e[o],g[o]=A,null!==f[o]&&(h+=a(g[o]-f[o],2)),f[o]=g[o];h&&(p+=h=s(h)),m.percents[r]=c,m.lengths[r]=p}return m.addedLength=p,m};function n(t){var e,n=Ct.newElement(),r=t.c,o=t.v,a=t.o,s=t.i,l=t._length,A=n.lengths,c=0;for(e=0;e<l-1;e+=1)A[e]=i(o[e],o[e+1],a[e],s[e+1]),c+=A[e].addedLength;return r&&l&&(A[e]=i(o[e],o[0],a[e],s[0]),c+=A[e].addedLength),n.totalLength=c,n}function r(t){this.segmentLength=0,this.points=new Array(t)}function o(t,e){this.partialLength=t,this.point=e}var A,c=(A={},function(e,i,n,l){var c=(e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+n[0]+"_"+n[1]+"_"+l[0]+"_"+l[1]).replace(/\./g,"p");if(!A[c]){var h,u,p,g,f,m,y,b=d,v=0,E=null;2===e.length&&(e[0]!=i[0]||e[1]!=i[1])&&t(e[0],e[1],i[0],i[1],e[0]+n[0],e[1]+n[1])&&t(e[0],e[1],i[0],i[1],i[0]+l[0],i[1]+l[1])&&(b=2);var I=new r(b);for(p=n.length,h=0;h<b;h+=1){for(y=M(p),f=h/(b-1),m=0,u=0;u<p;u+=1)g=a(1-f,3)*e[u]+3*a(1-f,2)*f*(e[u]+n[u])+3*(1-f)*a(f,2)*(i[u]+l[u])+a(f,3)*i[u],y[u]=g,null!==E&&(m+=a(y[u]-E[u],2));v+=m=s(m),I.points[h]=new o(m,y),E=y}I.segmentLength=v,A[c]=I}return A[c]});function h(t,e){var i=e.percents,n=e.lengths,r=i.length,o=l((r-1)*t),a=t*e.addedLength,s=0;if(o===r-1||0===o||a===n[o])return i[o];for(var A=n[o]>a?-1:1,c=!0;c;)if(n[o]<=a&&n[o+1]>a?(s=(a-n[o])/(n[o+1]-n[o]),c=!1):o+=A,o<0||o>=r-1){if(o===r-1)return i[o];c=!1}return i[o]+(i[o+1]-i[o])*s}function u(t,e,i,n,r,o){var a=h(r,o),s=1-a;return[Math.round(1e3*(s*s*s*t[0]+(a*s*s+s*a*s+s*s*a)*i[0]+(a*a*s+s*a*a+a*s*a)*n[0]+a*a*a*e[0]))/1e3,Math.round(1e3*(s*s*s*t[1]+(a*s*s+s*a*s+s*s*a)*i[1]+(a*a*s+s*a*a+a*s*a)*n[1]+a*a*a*e[1]))/1e3]}var p=R("float32",8);function g(t,e,i,n,r,o,a){var s,l=h(r=r<0?0:r>1?1:r,a),A=h(o=o>1?1:o,a),c=t.length,d=1-l,u=1-A,g=d*d*d,f=l*d*d*3,m=l*l*d*3,y=l*l*l,b=d*d*u,v=l*d*u+d*l*u+d*d*A,E=l*l*u+d*l*A+l*d*A,I=l*l*A,C=d*u*u,B=l*u*u+d*A*u+d*u*A,w=l*A*u+d*A*A+l*u*A,x=l*A*A,Q=u*u*u,S=A*u*u+u*A*u+u*u*A,k=A*A*u+u*A*A+A*u*A,D=A*A*A;for(s=0;s<c;s+=1)p[4*s]=Math.round(1e3*(g*t[s]+f*i[s]+m*n[s]+y*e[s]))/1e3,p[4*s+1]=Math.round(1e3*(b*t[s]+v*i[s]+E*n[s]+I*e[s]))/1e3,p[4*s+2]=Math.round(1e3*(C*t[s]+B*i[s]+w*n[s]+x*e[s]))/1e3,p[4*s+3]=Math.round(1e3*(Q*t[s]+S*i[s]+k*n[s]+D*e[s]))/1e3;return p}return{getSegmentsLength:n,getNewSegment:g,getPointInSegment:u,buildBezierData:c,pointOnLine2D:t,pointOnLine3D:e}}!function(){for(var e=0,i=["ms","moz","webkit","o"],n=0;n<i.length&&!t.requestAnimationFrame;++n)t.requestAnimationFrame=t[i[n]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[i[n]+"CancelAnimationFrame"]||t[i[n]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(t,i){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),o=setTimeout((function(){t(n+r)}),r);return e=n+r,o}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(t){clearTimeout(t)})}();var Y=V();function z(){function t(r,o,a){var s,l,A,c,d,u,p=r.length;for(l=0;l<p;l+=1)if("ks"in(s=r[l])&&!s.completed){if(s.completed=!0,s.tt&&(r[l-1].td=s.tt),s.hasMask){var g=s.masksProperties;for(c=g.length,A=0;A<c;A+=1)if(g[A].pt.k.i)n(g[A].pt.k);else for(u=g[A].pt.k.length,d=0;d<u;d+=1)g[A].pt.k[d].s&&n(g[A].pt.k[d].s[0]),g[A].pt.k[d].e&&n(g[A].pt.k[d].e[0])}0===s.ty?(s.layers=e(s.refId,o),t(s.layers,o,a)):4===s.ty?i(s.shapes):5==s.ty&&h(s,a)}}function e(t,e){for(var i=0,n=e.length;i<n;){if(e[i].id===t)return e[i].layers.__used?JSON.parse(JSON.stringify(e[i].layers)):(e[i].layers.__used=!0,e[i].layers);i+=1}}function i(t){var e,r,o;for(e=t.length-1;e>=0;e-=1)if("sh"==t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(o=t[e].ks.k.length,r=0;r<o;r+=1)t[e].ks.k[r].s&&n(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&n(t[e].ks.k[r].e[0]);else"gr"==t[e].ty&&i(t[e].it)}function n(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&void 0))}var o,a=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),s=(o=[4,7,99],function(t){if(t.chars&&!r(o,t.v)){var e,i,a,s,l,A=t.chars.length;for(e=0;e<A;e+=1)if(t.chars[e].data&&t.chars[e].data.shapes)for(a=(l=t.chars[e].data.shapes[0].it).length,i=0;i<a;i+=1)(s=l[i].ks.k).__converted||(n(l[i].ks.k),s.__converted=!0)}}),l=function(){var t=[4,1,9];function e(t){var i,n,r,o=t.length;for(i=0;i<o;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,n=0;n<r;n+=1)t[i].c.k[n].s&&(t[i].c.k[n].s[0]/=255,t[i].c.k[n].s[1]/=255,t[i].c.k[n].s[2]/=255,t[i].c.k[n].s[3]/=255),t[i].c.k[n].e&&(t[i].c.k[n].e[0]/=255,t[i].c.k[n].e[1]/=255,t[i].c.k[n].e[2]/=255,t[i].c.k[n].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),A=function(){var t=[4,4,18];function e(t){var i,n,r;for(i=t.length-1;i>=0;i-=1)if("sh"==t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n<r;n+=1)t[i].ks.k[n].s&&(t[i].ks.k[n].s[0].c=t[i].closed),t[i].ks.k[n].e&&(t[i].ks.k[n].e[0].c=t[i].closed);else"gr"==t[i].ty&&e(t[i].it)}function i(t){var i,n,r,o,a,s,l=t.length;for(n=0;n<l;n+=1){if((i=t[n]).hasMask){var A=i.masksProperties;for(o=A.length,r=0;r<o;r+=1)if(A[r].pt.k.i)A[r].pt.k.c=A[r].cl;else for(s=A[r].pt.k.length,a=0;a<s;a+=1)A[r].pt.k[a].s&&(A[r].pt.k[a].s[0].c=A[r].cl),A[r].pt.k[a].e&&(A[r].pt.k[a].e[0].c=A[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,o=e.assets.length;for(n=0;n<o;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}();function c(e,i){e.__complete||(l(e),a(e),s(e),A(e),t(e.layers,e.assets,i),e.__complete=!0)}function h(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var d={};return d.completeData=c,d.checkColors=l,d.checkChars=s,d.checkShapes=A,d.completeLayers=t,d}var W=z(),Z=function(){var t=5e3,e={w:0,size:0,shapes:[]},i=[];function n(t){var e,i=t.split(","),n=i.length,r=[];for(e=0;e<n;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}function r(t,e){var i=F("span");i.style.fontFamily=e;var r=F("span");r.innerHTML="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i);var o=r.offsetWidth;return r.style.fontFamily=n(t)+", "+e,{node:r,w:o,parent:i}}function o(){var e,i,n,r=this.fonts.length,o=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,i.offsetWidth!==n?(o-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,i.offsetWidth!==n&&(o-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==o&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function a(t,e){var i=T("text");return i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",e.fStyle),i.setAttribute("font-weight",e.fWeight),
i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),F("canvas").getContext("2d").font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily,i}function s(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);var i,n=t.list,o=n.length,s=o;for(i=0;i<o;i+=1){var l,A,c=!0;if(n[i].loaded=!1,n[i].monoCase=r(n[i].fFamily,"monospace"),n[i].sansCase=r(n[i].fFamily,"sans-serif"),n[i].fPath){if("p"===n[i].fOrigin||3===n[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[i].fFamily+'"], style[f-origin="3"][f-family="'+n[i].fFamily+'"]')).length>0&&(c=!1),c){var h=F("style");h.setAttribute("f-forigin",n[i].fOrigin),h.setAttribute("f-origin",n[i].origin),h.setAttribute("f-family",n[i].fFamily),h.type="text/css",h.innerHTML="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(h)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),A=0;A<l.length;A++)-1!==l[A].href.indexOf(n[i].fPath)&&(c=!1);if(c){var d=F("link");d.setAttribute("f-forigin",n[i].fOrigin),d.setAttribute("f-origin",n[i].origin),d.type="text/css",d.rel="stylesheet",d.href=n[i].fPath,document.body.appendChild(d)}}else if("t"===n[i].fOrigin||2===n[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),A=0;A<l.length;A++)n[i].fPath===l[A].src&&(c=!1);if(c){var u=F("link");u.setAttribute("f-forigin",n[i].fOrigin),u.setAttribute("f-origin",n[i].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",n[i].fPath),e.appendChild(u)}}}else n[i].loaded=!0,s-=1;n[i].helper=a(e,n[i]),n[i].cache={},this.fonts.push(n[i])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function l(t){if(t){this.chars||(this.chars=[]);var e,i,n,r=t.length,o=this.chars.length;for(e=0;e<r;e+=1){for(i=0,n=!1;i<o;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(n=!0),i+=1;n||(this.chars.push(t[e]),o+=1)}}}function A(t,i,n){for(var r=0,o=this.chars.length;r<o;){if(this.chars[r].ch===t&&this.chars[r].style===i&&this.chars[r].fFamily===n)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&console.warn("Missing character from exported characters list: ",t,i,n),e}function c(t,e,i){var n=this.getFontByName(e),r=t.charCodeAt(0);if(!n.cache[r+1]){var o=n.helper;if(" "===t){o.textContent="|"+t+"|";var a=o.getComputedTextLength();o.textContent="||";var s=o.getComputedTextLength();n.cache[r+1]=(a-s)/100}else o.textContent=t,n.cache[r+1]=o.getComputedTextLength()/100}return n.cache[r+1]*i}function h(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function d(){return i}function u(){this.isLoaded=!0}i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var p=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};p.getCombinedCharacterCodes=d;var g={addChars:l,addFonts:s,getCharData:A,getFontByName:h,measureText:c,checkLoadedFonts:o,setIsLoaded:u};return p.prototype=g,p}(),j=function(){var t=r,e=Math.abs;function i(t,e){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=R("float32",this.pv.length));for(var s,l,A,c,h,d,u,p,g=e.lastIndex,f=g,m=this.keyframes.length-1,y=!0;y;){if(s=this.keyframes[f],l=this.keyframes[f+1],f===m-1&&t>=l.t-r){s.h&&(s=l),g=0;break}if(l.t-r>t){g=f;break}f<m-1?f+=1:(g=0,y=!1)}var b,v=l.t-r,E=s.t-r;if(s.to){s.bezierData||(s.bezierData=Y.buildBezierData(s.s,l.s||s.e,s.to,s.ti));var I=s.bezierData;if(t>=v||t<E){var C=t>=v?I.points.length-1:0;for(c=I.points[C].point.length,A=0;A<c;A+=1)i[A]=I.points[C].point[A]}else{s.__fnct?p=s.__fnct:(p=O.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,s.__fnct=p),h=p((t-E)/(v-E));var B,w=I.segmentLength*h,x=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(u=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,y=!0,d=I.points.length;y;){if(x+=I.points[u].partialLength,0===w||0===h||u===I.points.length-1){for(c=I.points[u].point.length,A=0;A<c;A+=1)i[A]=I.points[u].point[A];break}if(w>=x&&w<x+I.points[u+1].partialLength){for(B=(w-x)/I.points[u+1].partialLength,c=I.points[u].point.length,A=0;A<c;A+=1)i[A]=I.points[u].point[A]+(I.points[u+1].point[A]-I.points[u].point[A])*B;break}u<d-1?u+=1:y=!1}e._lastPoint=u,e._lastAddedLength=x-I.points[u].partialLength,e._lastKeyframeIndex=f}}else{var Q,S,k,D,_;if(m=s.s.length,b=l.s||s.e,this.sh&&1!==s.h)t>=v?(i[0]=b[0],i[1]=b[1],i[2]=b[2]):t<=E?(i[0]=s.s[0],i[1]=s.s[1],i[2]=s.s[2]):o(i,n(a(s.s),a(b),(t-E)/(v-E)));else for(f=0;f<m;f+=1)1!==s.h&&(t>=v?h=1:t<E?h=0:(s.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[f]?p=s.__fnct[f]:(Q=void 0===s.o.x[f]?s.o.x[0]:s.o.x[f],S=void 0===s.o.y[f]?s.o.y[0]:s.o.y[f],k=void 0===s.i.x[f]?s.i.x[0]:s.i.x[f],D=void 0===s.i.y[f]?s.i.y[0]:s.i.y[f],p=O.getBezierEasing(Q,S,k,D).get,s.__fnct[f]=p)):s.__fnct?p=s.__fnct:(Q=s.o.x,S=s.o.y,k=s.i.x,D=s.i.y,p=O.getBezierEasing(Q,S,k,D).get,s.__fnct=p),h=p((t-E)/(v-E)))),b=l.s||s.e,_=1===s.h?s.s[f]:s.s[f]+(b[f]-s.s[f])*h,"multidimensional"===this.propType?i[f]=_:i=_}return e.lastIndex=g,i}function n(t,e,i){var n,r,o,a,s,l=[],A=t[0],c=t[1],h=t[2],d=t[3],u=e[0],p=e[1],g=e[2],f=e[3];return(r=A*u+c*p+h*g+d*f)<0&&(r=-r,u=-u,p=-p,g=-g,f=-f),1-r>1e-6?(n=Math.acos(r),o=Math.sin(n),a=Math.sin((1-i)*n)/o,s=Math.sin(i*n)/o):(a=1-i,s=i),l[0]=a*A+s*u,l[1]=a*c+s*p,l[2]=a*h+s*g,l[3]=a*d+s*f,l}function o(t,e){var i=e[0],n=e[1],r=e[2],o=e[3],a=Math.atan2(2*n*o-2*i*r,1-2*n*n-2*r*r),s=Math.asin(2*i*n+2*r*o),l=Math.atan2(2*i*o-2*n*r,1-2*i*i-2*r*r);t[0]=a/u,t[1]=s/u,t[2]=l/u}function a(t){var e=t[0]*u,i=t[1]*u,n=t[2]*u,r=Math.cos(e/2),o=Math.cos(i/2),a=Math.cos(n/2),s=Math.sin(e/2),l=Math.sin(i/2),A=Math.sin(n/2);return[s*l*a+r*o*A,s*o*a+r*l*A,r*l*a-s*o*A,r*o*a-s*l*A]}function s(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<i&&e<i))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function l(t){var i;if("unidimensional"===this.propType)i=t*this.mult,e(this.v-i)>1e-5&&(this.v=i,this._mdf=!0);else for(var n=0,r=this.v.length;n<r;)i=t[n]*this.mult,e(this.v[n]-i)>1e-5&&(this.v[n]=i,this._mdf=!0),n+=1}function A(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function c(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,i,n){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=A,this.setVValue=l,this.addEffect=c}function d(t,e,i,n){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,o=e.k.length;for(this.v=R("float32",o),this.pv=R("float32",o),R("float32",o),this.vel=R("float32",o),r=0;r<o;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=A,this.setVValue=l,this.addEffect=c}function p(e,n,r,o){this.propType="unidimensional",
this.keyframes=n.k,this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=r||1,this.elem=e,this.container=o,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=A,this.setVValue=l,this.interpolateValue=i,this.effectsSequence=[s.bind(this)],this.addEffect=c}function g(e,n,r,o){this.propType="multidimensional";var a,h,d,u,p,g=n.k.length;for(a=0;a<g-1;a+=1)n.k[a].to&&n.k[a].s&&n.k[a+1]&&n.k[a+1].s&&(h=n.k[a].s,d=n.k[a+1].s,u=n.k[a].to,p=n.k[a].ti,(2===h.length&&(h[0]!==d[0]||h[1]!==d[1])&&Y.pointOnLine2D(h[0],h[1],d[0],d[1],h[0]+u[0],h[1]+u[1])&&Y.pointOnLine2D(h[0],h[1],d[0],d[1],d[0]+p[0],d[1]+p[1])||3===h.length&&(h[0]!==d[0]||h[1]!==d[1]||h[2]!==d[2])&&Y.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],h[0]+u[0],h[1]+u[1],h[2]+u[2])&&Y.pointOnLine3D(h[0],h[1],h[2],d[0],d[1],d[2],d[0]+p[0],d[1]+p[1],d[2]+p[2]))&&(n.k[a].to=null,n.k[a].ti=null),h[0]===d[0]&&h[1]===d[1]&&0===u[0]&&0===u[1]&&0===p[0]&&0===p[1]&&(2===h.length||h[2]===d[2]&&0===u[2]&&0===p[2])&&(n.k[a].to=null,n.k[a].ti=null));this.effectsSequence=[s.bind(this)],this.keyframes=n.k,this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=o,this.comp=e.comp,this.getValue=A,this.setVValue=l,this.interpolateValue=i,this.frameId=-1;var f=n.k[0].s.length;for(this.v=R("float32",f),this.pv=R("float32",f),a=0;a<f;a+=1)this.v[a]=t,this.pv[a]=t;this._caching={lastFrame:t,lastIndex:0,value:R("float32",f)},this.addEffect=c}function f(t,e,i,n,r){var o;if(e.k.length)if("number"==typeof e.k[0])o=new d(t,e,n,r);else switch(i){case 0:o=new p(t,e,n,r);break;case 1:o=new g(t,e,n,r)}else o=new h(t,e,n,r);return o.effectsSequence.length&&r.addDynamicProperty(o),o}return{getProp:f}}(),q=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,n,r=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],n=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(i[0]=o.getValueAtTime((o.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),n[0]=o.getValueAtTime(o.keyframes[0].t/r,0),n[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(i[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),n[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/r,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[o.pv,a.pv],n[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/r,o.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=n=t;this.v.rotate(-Math.atan2(i[1]-n[1],i[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function o(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new U,this.pre=new U,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=j.getProp(t,e.p.x,0,0,this),this.py=j.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=j.getProp(t,e.p.z,0,0,this))):this.p=j.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=j.getProp(t,e.rx,0,u,this),this.ry=j.getProp(t,e.ry,0,u,this),this.rz=j.getProp(t,e.rz,0,u,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n<r;n+=1)e.or.k[n].to=e.or.k[n].ti=null}this.or=j.getProp(t,e.or,1,u,this),this.or.sh=!0}else this.r=j.getProp(t,e.r||{k:0},0,u,this);e.sk&&(this.sk=j.getProp(t,e.sk,0,u,this),this.sa=j.getProp(t,e.sa,0,u,this)),this.a=j.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=j.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=j.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function s(t,e,i){return new a(t,e,i)}return a.prototype={applyToMatrix:e,getValue:i,precalculateMatrix:n,autoOrient:r},G([L],a),a.prototype.addDynamicProperty=o,a.prototype._addDynamicProperty=L.prototype.addDynamicProperty,{getTransformProperty:s}}();function J(){this.c=!1,this._length=0,this._maxLength=8,this.v=M(this._maxLength),this.o=M(this._maxLength),this.i=M(this._maxLength)}J.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=vt.newElement(),this.o[i]=vt.newElement(),this.i[i]=vt.newElement(),i+=1},J.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},J.prototype.doubleArrayLength=function(){this.v=this.v.concat(M(this._maxLength)),this.i=this.i.concat(M(this._maxLength)),this.o=this.o.concat(M(this._maxLength)),this._maxLength*=2},J.prototype.setXYAt=function(t,e,i,n,r){var o;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o}(!o[n]||o[n]&&!r)&&(o[n]=vt.newElement()),o[n][0]=t,o[n][1]=e},J.prototype.setTripleAt=function(t,e,i,n,r,o,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(i,n,"o",a,s),this.setXYAt(r,o,"i",a,s)},J.prototype.reverse=function(){var t=new J;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=0
;this.c&&(t.setTripleAt(e[0][0],e[0][1],n[0][0],n[0][1],i[0][0],i[0][1],0,!1),r=1);var o,a=this._length-1,s=this._length;for(o=r;o<s;o+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],i[a][0],i[a][1],o,!1),a-=1;return t};var K=function(){var t=-999999;function e(t,e,i){var n,r,o,a,s,l,A,c,h,d=i.lastIndex,u=this.keyframes;if(t<u[0].t-this.offsetTime)n=u[0].s[0],o=!0,d=0;else if(t>=u[u.length-1].t-this.offsetTime)n=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],o=!0;else{for(var p,g,f=d,m=u.length-1,y=!0;y&&(p=u[f],!((g=u[f+1]).t-this.offsetTime>t));)f<m-1?f+=1:y=!1;if(d=f,!(o=1===p.h)){if(t>=g.t-this.offsetTime)c=1;else if(t<p.t-this.offsetTime)c=0;else{var b;p.__fnct?b=p.__fnct:(b=O.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,p.__fnct=b),c=b((t-(p.t-this.offsetTime))/(g.t-this.offsetTime-(p.t-this.offsetTime)))}r=g.s?g.s[0]:p.e[0]}n=p.s[0]}for(l=e._length,A=n.i[0].length,i.lastIndex=d,a=0;a<l;a+=1)for(s=0;s<A;s+=1)h=o?n.i[a][s]:n.i[a][s]+(r.i[a][s]-n.i[a][s])*c,e.i[a][s]=h,h=o?n.o[a][s]:n.o[a][s]+(r.o[a][s]-n.o[a][s])*c,e.o[a][s]=h,h=o?n.v[a][s]:n.v[a][s]+(r.v[a][s]-n.v[a][s])*c,e.v[a][s]=h}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>n&&e>n)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function r(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,n=t._length;for(i=0;i<n;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0}function o(t){r(this.v,t)||(this.v=Et.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1;var t,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,i=this.effectsSequence.length;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=Et.clone(r),this.pv=Et.clone(this.v),this.localShapeCollection=It.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,r,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?r.pt.k:r.ks.k,this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length,this.v=Et.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=Et.clone(this.v),this.localShapeCollection=It.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}s.prototype.interpolateShape=e,s.prototype.getValue=a,s.prototype.setVValue=o,s.prototype.addEffect=l,c.prototype.getValue=a,c.prototype.interpolateShape=e,c.prototype.setVValue=o,c.prototype.addEffect=l;var h=function(){var t=p;function e(t,e){this.v=Et.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=It.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=j.getProp(t,e.p,1,0,this),this.s=j.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-r,a.v[1][0]=o?e+n:e-n,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+r,a.v[3][0]=o?e-n:e+n,a.v[3][1]=i,a.i[0][0]=o?e-n*t:e+n*t,a.i[0][1]=i-r,a.i[1][0]=o?e+n:e-n,a.i[1][1]=i-r*t,a.i[2][0]=o?e+n*t:e-n*t,a.i[2][1]=i+r,a.i[3][0]=o?e-n:e+n,a.i[3][1]=i+r*t,a.o[0][0]=o?e+n*t:e-n*t,a.o[0][1]=i-r,a.o[1][0]=o?e+n:e-n,a.o[1][1]=i+r*t,a.o[2][0]=o?e-n*t:e+n*t,a.o[2][1]=i+r,a.o[3][0]=o?e-n:e+n,a.o[3][1]=i-r*t}},G([L],e),e}(),d=function(){function t(t,e){this.v=Et.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=j.getProp(t,e.ir,0,0,this),this.is=j.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=j.getProp(t,e.pt,0,0,this),this.p=j.getProp(t,e.p,1,0,this),this.r=j.getProp(t,e.r,0,u,this),this.or=j.getProp(t,e.or,0,0,this),this.os=j.getProp(t,e.os,0,.01,this),this.localShapeCollection=It.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,n,r=2*Math.floor(this.pt.v),o=2*Math.PI/r,a=!0,s=this.or.v,l=this.ir.v,A=this.os.v,c=this.is.v,h=2*Math.PI*s/(2*r),d=2*Math.PI*l/(2*r),u=-Math.PI/2;u+=this.r.v;var p=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=a?A:c,n=a?h:d;var g=(e=a?s:l)*Math.cos(u),f=e*Math.sin(u),m=0===g&&0===f?0:f/Math.sqrt(g*g+f*f),y=0===g&&0===f?0:-g/Math.sqrt(g*g+f*f);g+=+this.p.v[0],f+=+this.p.v[1],this.v.setTripleAt(g,f,g-m*n*i*p,f-y*n*i*p,g+m*n*i*p,f+y*n*i*p,t,!0),a=!a,u+=o*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,n=this.or.v,r=this.os.v,o=2*Math.PI*n/(4*e),a=-Math.PI/2,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=n*Math.cos(a),A=n*Math.sin(a),c=0===l&&0===A?0:A/Math.sqrt(l*l+A*A),h=0===l&&0===A?0:-l/Math.sqrt(l*l+A*A);l+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(l,A,l-c*o*r*s,A-h*o*r*s,l+c*o*r*s,A+h*o*r*s,t,!0),a+=i*s}this.paths.length=0,this.paths[0]=this.v}},G([L],t),t}(),g=function(){function t(t,e){this.v=Et.newElement(),this.v.c=!0,this.localShapeCollection=It.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=j.getProp(t,e.p,1,0,this),this.s=j.getProp(t,e.s,1,0,this),this.r=j.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,r=A(i,n,this.r.v),o=r*(1-p);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+r,t+i,e-n+o,0,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-o,t+i,e+n-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+n,t+i-r,e+n,t+i-o,e+n,2,!0),this.v.setTripleAt(t-i+r,e+n,t-i+o,e+n,t-i+r,e+n,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-r,t-i,e+n-o,4,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+o,t-i,e-n+r,5,!0),this.v.setTripleAt(t-i+r,e-n,t-i+r,e-n,t-i+o,e-n,6,!0),this.v.setTripleAt(t+i-r,e-n,t+i-o,e-n,t+i-r,e-n,7,!0)):(this.v.setTripleAt(t-i,e+n,t-i+o,e+n,t-i,e+n,2),this.v.setTripleAt(t-i,e-n,t-i,e-n+o,t-i,e-n,3))):(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+o,t+i,e-n+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-n,t+i-r,e-n,t+i-o,e-n,1,!0),this.v.setTripleAt(t-i+r,e-n,t-i+o,e-n,t-i+r,e-n,2,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+r,t-i,e-n+o,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-o,t-i,e+n-r,4,!0),
this.v.setTripleAt(t-i+r,e+n,t-i+r,e+n,t-i+o,e+n,5,!0),this.v.setTripleAt(t+i-r,e+n,t+i-o,e+n,t+i-r,e+n,6,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-r,t+i,e+n-o,7,!0)):(this.v.setTripleAt(t-i,e-n,t-i+o,e-n,t-i,e-n,1,!0),this.v.setTripleAt(t-i,e+n,t-i,e+n-o,t-i,e+n,2,!0),this.v.setTripleAt(t+i,e+n,t+i-o,e+n,t+i,e+n,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},G([L],t),t}();function f(t,e,i){var n;return 3===i||4===i?n=(3===i?e.pt:e.ks).k.length?new c(t,e,i):new s(t,e,i):5===i?n=new g(t,e):6===i?n=new h(t,e):7===i&&(n=new d(t,e)),n.k&&t.addDynamicProperty(n),n}function m(){return s}function y(){return c}var b={};return b.getShapeProp=f,b.getConstructorFunction=m,b.getKeyframedConstructorFunction=y,b}(),X=function(){var t={},e={};function i(t,i){e[t]||(e[t]=i)}function n(t,i,n){return new e[t](i,n)}return t.registerModifier=i,t.getModifier=n,t}();function $(){}function tt(){}function et(){}function it(){}function nt(){}function rt(){this._length=0,this._maxLength=4,this.shapes=M(this._maxLength)}function ot(t,e,i,n){this.elem=t,this.frameId=-1,this.dataProps=M(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=R("float32",e.length?e.length-1:0),this.dashoffset=R("float32",1),this.initDynamicPropertyContainer(n);var r,o,a=e.length||0;for(r=0;r<a;r+=1)o=j.getProp(t,e[r].v,0,0,this),this.k=o.k||this.k,this.dataProps[r]={n:e[r].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function at(t,e,i){this.data=e,this.c=R("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=R("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=j.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}$.prototype.initModifierProperties=function(){},$.prototype.addShapeToModifier=function(){},$.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:It.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},$.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},$.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},G([L],$),G([$],tt),tt.prototype.initModifierProperties=function(t,e){this.s=j.getProp(t,e.s,0,.01,this),this.e=j.getProp(t,e.e,0,.01,this),this.o=j.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},tt.prototype.addShapeToModifier=function(t){t.pathsData=[]},tt.prototype.calculateShapeEdges=function(t,e,i,n,r){var o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var a,s,l=[],A=o.length;for(a=0;a<A;a+=1){var c,h;(s=o[a]).e*r<n||s.s*r>n+i||(c=s.s*r<=n?0:(s.s*r-n)/i,h=s.e*r>=n+i?1:(s.e*r-n)/i,l.push([c,h]))}return l.length||l.push([0,0]),l},tt.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)Ct.release(t[e]);return t.length=0,t},tt.prototype.processShapes=function(t){var e,i,n;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+r)>(i=(this.e.v>1?1:this.e.v<0?0:this.e.v)+r)){var o=e;e=i,i=o}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var a,s,l,A,c,h,d=this.shapes.length,u=0;if(i===e)for(a=0;a<d;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(a=0;a<d;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var p,g,f=[];for(a=0;a<d;a+=1)if((p=this.shapes[a]).shape._mdf||this._mdf||t||2===this.m){if(l=(n=p.shape.paths)._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(A=this.releasePathsData(p.pathsData),s=0;s<l;s+=1)c=Y.getSegmentsLength(n.shapes[s]),A.push(c),h+=c.totalLength;p.totalShapeLength=h,p.pathsData=A}u+=h,p.shape._mdf=!0}else p.shape.paths=p.localShapeCollection;var m,y=e,b=i,v=0;for(a=d-1;a>=0;a-=1)if((p=this.shapes[a]).shape._mdf){for((g=p.localShapeCollection).releaseShapes(),2===this.m&&d>1?(m=this.calculateShapeEdges(e,i,p.totalShapeLength,v,u),v+=p.totalShapeLength):m=[[y,b]],l=m.length,s=0;s<l;s+=1){y=m[s][0],b=m[s][1],f.length=0,b<=1?f.push({s:p.totalShapeLength*y,e:p.totalShapeLength*b}):y>=1?f.push({s:p.totalShapeLength*(y-1),e:p.totalShapeLength*(b-1)}):(f.push({s:p.totalShapeLength*y,e:p.totalShapeLength}),f.push({s:0,e:p.totalShapeLength*(b-1)}));var E=this.addShapes(p,f[0]);if(f[0].s!==f[0].e){if(f.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var I=E.pop();this.addPaths(E,g),E=this.addShapes(p,f[1],I)}else this.addPaths(E,g),E=this.addShapes(p,f[1]);this.addPaths(E,g)}}p.shape.paths=g}}},tt.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},tt.prototype.addSegment=function(t,e,i,n,r,o,a){r.setXYAt(e[0],e[1],"o",o),r.setXYAt(i[0],i[1],"i",o+1),a&&r.setXYAt(t[0],t[1],"v",o),r.setXYAt(n[0],n[1],"v",o+1)},tt.prototype.addSegmentFromArray=function(t,e,i,n){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),n&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},tt.prototype.addShapes=function(t,e,i){var n,r,o,a,s,l,A,c,h=t.pathsData,d=t.shape.paths.shapes,u=t.shape.paths._length,p=0,g=[],f=!0;for(i?(s=i._length,c=i._length):(i=Et.newElement(),s=0,c=0),g.push(i),n=0;n<u;n+=1){for(l=h[n].lengths,i.c=d[n].c,o=d[n].c?l.length:l.length+1,r=1;r<o;r+=1)if(p+(a=l[r-1]).addedLength<e.s)p+=a.addedLength,i.c=!1;else{if(p>e.e){i.c=!1;break}e.s<=p&&e.e>=p+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,s,f),f=!1):(A=Y.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-p)/a.addedLength,(e.e-p)/a.addedLength,l[r-1]),this.addSegmentFromArray(A,i,s,f),f=!1,i.c=!1),p+=a.addedLength,s+=1}if(d[n].c&&l.length){if(a=l[r-1],p<=e.e){var m=l[r-1].addedLength;e.s<=p&&e.e>=p+m?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,s,f),f=!1):(A=Y.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-p)/m,(e.e-p)/m,l[r-1]),this.addSegmentFromArray(A,i,s,f),f=!1,i.c=!1)}else i.c=!1;p+=a.addedLength,s+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),p>e.e)break;n<u-1&&(i=Et.newElement(),f=!0,g.push(i),s=0)}return g},X.registerModifier("tm",tt),G([$],et),et.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=j.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},et.prototype.processPath=function(t,e){var i=Et.newElement();i.c=t.c;var n,r,o,a,s,l,A,c,h,d,u,g,f,m=t._length,y=0;for(n=0;n<m;n+=1)r=t.v[n],a=t.o[n],o=t.i[n],r[0]===a[0]&&r[1]===a[1]&&r[0]===o[0]&&r[1]===o[1]?0!==n&&n!==m-1||t.c?(s=0===n?t.v[m-1]:t.v[n-1],A=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=g=r[0]+(s[0]-r[0])*A,h=f=r[1]-(r[1]-s[1])*A,d=c-(c-r[0])*p,u=h-(h-r[1])*p,i.setTripleAt(c,h,d,u,g,f,y),y+=1,s=n===m-1?t.v[0]:t.v[n+1],A=(l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)))?Math.min(l/2,e)/l:0,c=d=r[0]+(s[0]-r[0])*A,h=u=r[1]+(s[1]-r[1])*A,g=c-(c-r[0])*p,f=h-(h-r[1])*p,i.setTripleAt(c,h,d,u,g,f,y),y+=1):(i.setTripleAt(r[0],r[1],a[0],a[1],o[0],o[1],y),y+=1):(i.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],y),y+=1);return i},et.prototype.processShapes=function(t){var e,i,n,r,o,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<s;i+=1){if((o=this.shapes[i]).shape.paths,a=o.localShapeCollection,
o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},X.registerModifier("rd",et),G([$],it),it.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=j.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},it.prototype.processPath=function(t,e){var i=e/100,n=[0,0],r=t._length,o=0;for(o=0;o<r;o+=1)n[0]+=t.v[o][0],n[1]+=t.v[o][1];n[0]/=r,n[1]/=r;var a,s,l,A,c,h,d=Et.newElement();for(d.c=t.c,o=0;o<r;o+=1)a=t.v[o][0]+(n[0]-t.v[o][0])*i,s=t.v[o][1]+(n[1]-t.v[o][1])*i,l=t.o[o][0]+(n[0]-t.o[o][0])*-i,A=t.o[o][1]+(n[1]-t.o[o][1])*-i,c=t.i[o][0]+(n[0]-t.i[o][0])*-i,h=t.i[o][1]+(n[1]-t.i[o][1])*-i,d.setTripleAt(a,s,l,A,c,h,o);return d},it.prototype.processShapes=function(t){var e,i,n,r,o,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<s;i+=1){if((o=this.shapes[i]).shape.paths,a=o.localShapeCollection,o.shape._mdf||this._mdf||t)for(a.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,r=o.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},X.registerModifier("pb",it),G([$],nt),nt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=j.getProp(t,e.c,0,null,this),this.o=j.getProp(t,e.o,0,null,this),this.tr=q.getTransformProperty(t,e.tr,this),this.so=j.getProp(t,e.tr.so,0,.01,this),this.eo=j.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new U,this.rMatrix=new U,this.sMatrix=new U,this.tMatrix=new U,this.matrix=new U},nt.prototype.applyTransforms=function(t,e,i,n,r,o){var a=o?-1:1,s=n.s.v[0]+(1-n.s.v[0])*(1-r),l=n.s.v[1]+(1-n.s.v[1])*(1-r);t.translate(n.p.v[0]*a*r,n.p.v[1]*a*r,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*r),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(o?1/s:s,o?1/l:l),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},nt.prototype.init=function(t,e,i,n){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},nt.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},nt.prototype.cloneElements=function(t){t.length;var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},nt.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},nt.prototype.processShapes=function(t){var e,i,n,r,o;if(this._mdf||t){var a,s=Math.ceil(this.c.v);if(this._groups.length<s){for(;this._groups.length<s;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes()}for(o=0,n=0;n<=this._groups.length-1;n+=1)a=o<s,this._groups[n]._render=a,this.changeGroupRender(this._groups[n].it,a),o+=1;this._currentCopies=s;var A=this.o.v,c=A%1,h=A>0?Math.floor(A):Math.ceil(A),d=(this.tr.v.props,this.pMatrix.props),u=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var g,f,m=0;if(A>0){for(;m<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),m+=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),m+=c)}else if(A<0){for(;m>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),m-=c)}for(n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,o=this._currentCopies;o;){if(f=(i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==m){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),g=0;g<f;g+=1)i[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<f;g+=1)i[g]=this.matrix.props[g];m+=1,o-=1,n+=r}}else for(o=this._currentCopies,n=0,r=1;o;)i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,n+=r},nt.prototype.addShape=function(){},X.registerModifier("rp",nt),rt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(M(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},rt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)Et.release(this.shapes[t]);this._length=0},ot.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},G([L],ot),at.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2;i<n;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},at.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},at.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,n,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,n=Math.round(this.prop.v[e]*i),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},G([L],at);var st,lt=function(t,e,i,n){if(0===e)return"";var r,o=t.o,a=t.i,s=t.v,l=" M"+n.applyToPointStringified(s[0][0],s[0][1]);for(r=1;r<e;r+=1)l+=" C"+n.applyToPointStringified(o[r-1][0],o[r-1][1])+" "+n.applyToPointStringified(a[r][0],a[r][1])+" "+n.applyToPointStringified(s[r][0],s[r][1]);return i&&e&&(l+=" C"+n.applyToPointStringified(o[r-1][0],o[r-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},At=function(){var t=function(){var t=F("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,i){var n="";if(t.e)n=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),n=e+r}else n=i,n+=t.u?t.u:"",n+=t.p;return n}function n(e){var n=i(e,this.assetsPath,this.path),r=T("image");r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),
r.setAttributeNS("http://www.w3.org/1999/xlink","href",n);var o={img:r,assetData:e};return o}function r(e){var n=i(e,this.assetsPath,this.path),r=F("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),r.src=n;var o={img:r,assetData:e};return o}function o(t,e){this.imagesLoadedCb=e;var i,n=t.length;for(i=0;i<n;i+=1)t[i].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[i])))}function a(t){this.path=t||""}function s(t){this.assetsPath=t||""}function l(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}}function A(){this.imagesLoadedCb=null,this.images.length=0}function c(){return this.totalImages===this.loadedAssets}function h(t){this._createImageData="svg"===t?this.createImageData.bind(this):this.createImgData.bind(this)}function d(t){this._imageLoaded=e.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}return d.prototype={loadAssets:o,setAssetsPath:s,setPath:a,loaded:c,destroy:A,getImage:l,createImgData:r,createImageData:n,imageLoaded:e,setCacheType:h},d}(),ct=(st={maskType:!0},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(st.maskType=!1),st),ht=function(){var t={};function e(t){var e=T("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e}function i(){var t=T("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=i,t}(),dt=function(){function t(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}function e(e,i,n){var r,o=new XMLHttpRequest;o.open("GET",e,!0);try{o.responseType="json"}catch(t){}o.send(),o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status)r=t(o),i(r);else try{r=t(o),i(r)}catch(t){n&&n(t)}}}return{load:e}}();function ut(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=M(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function pt(t,e,i){var n={propType:!1},r=j.getProp,o=e.a;this.a={r:o.r?r(t,o.r,0,u,i):n,rx:o.rx?r(t,o.rx,0,u,i):n,ry:o.ry?r(t,o.ry,0,u,i):n,sk:o.sk?r(t,o.sk,0,u,i):n,sa:o.sa?r(t,o.sa,0,u,i):n,s:o.s?r(t,o.s,1,.01,i):n,a:o.a?r(t,o.a,1,0,i):n,o:o.o?r(t,o.o,0,.01,i):n,p:o.p?r(t,o.p,1,0,i):n,sw:o.sw?r(t,o.sw,0,0,i):n,sc:o.sc?r(t,o.sc,1,0,i):n,fc:o.fc?r(t,o.fc,1,0,i):n,fh:o.fh?r(t,o.fh,0,0,i):n,fs:o.fs?r(t,o.fs,0,.01,i):n,fb:o.fb?r(t,o.fb,0,.01,i):n,t:o.t?r(t,o.t,0,0,i):n},this.s=mt.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function gt(t,e,i,n,r,o){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=r,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}function ft(t,e){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}ut.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,n=j.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new pt(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},ut.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E=this._moreOptions.alignment.v,I=this._animatorsData,C=this._textData,B=this.mHelper,w=this._renderType,x=this.renderedLetters.length,D=(this.data,t.l);if(this._hasMaskedPath){if(v=this._pathData.m,!this._pathData.n||this._pathData._mdf){var _,R=v.v;for(this._pathData.r&&(R=R.reverse()),a={tLength:0,segments:[]},o=R._length-1,m=0,r=0;r<o;r+=1)_=Y.buildBezierData(R.v[r],R.v[r+1],[R.o[r][0]-R.v[r][0],R.o[r][1]-R.v[r][1]],[R.i[r+1][0]-R.v[r+1][0],R.i[r+1][1]-R.v[r+1][1]]),a.tLength+=_.segmentLength,a.segments.push(_),m+=_.segmentLength;r=o,v.v.c&&(_=Y.buildBezierData(R.v[r],R.v[0],[R.o[r][0]-R.v[r][0],R.o[r][1]-R.v[r][1]],[R.i[0][0]-R.v[0][0],R.i[0][1]-R.v[0][1]]),a.tLength+=_.segmentLength,a.segments.push(_),m+=_.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,d=0,h=1,A=0,c=!0,g=a.segments,s<0&&v.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),h=(p=g[d=g.length-1].points).length-1;s<0;)s+=p[h].partialLength,(h-=1)<0&&(h=(p=g[d-=1].points).length-1);u=(p=g[d].points)[h-1],f=(l=p[h]).partialLength}o=D.length,i=0,n=0;var M,T,F,L,N=1.2*t.finalSize*.714,P=!0;F=I.length;var U,O,G,H,V,z,W,Z,j,q,J,K,X,$=-1,tt=s,et=d,it=h,nt=-1,rt="",ot=this.defaultPropsArray;if(2===t.j||1===t.j){var at=0,st=0,lt=2===t.j?-.5:-1,At=0,ct=!0;for(r=0;r<o;r+=1)if(D[r].n){for(at&&(at+=st);At<r;)D[At].animatorJustifyOffset=at,At+=1;at=0,ct=!0}else{for(T=0;T<F;T+=1)(M=I[T].a).t.propType&&(ct&&2===t.j&&(st+=M.t.v*lt),(U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars)).length?at+=M.t.v*U[0]*lt:at+=M.t.v*U*lt);ct=!1}for(at&&(at+=st);At<r;)D[At].animatorJustifyOffset=at,At+=1}for(r=0;r<o;r+=1){if(B.reset(),V=1,D[r].n)i=0,n+=t.yOffset,n+=P?1:0,s=tt,P=!1,this._hasMaskedPath&&(h=it,u=(p=g[d=et].points)[h-1],f=(l=p[h]).partialLength,A=0),X=q=K=rt="",ot=this.defaultPropsArray;else{if(this._hasMaskedPath){if(nt!==D[r].line){switch(t.j){case 1:s+=m-t.lineWidths[D[r].line];break;case 2:s+=(m-t.lineWidths[D[r].line])/2}nt=D[r].line}$!==D[r].ind&&(D[$]&&(s+=D[$].extra),s+=D[r].an/2,$=D[r].ind),s+=E[0]*D[r].an/200;var ht=0;for(T=0;T<F;T+=1)(M=I[T].a).p.propType&&((U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars)).length?ht+=M.p.v[0]*U[0]:ht+=M.p.v[0]*U),M.a.propType&&((U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars)).length?ht+=M.a.v[0]*U[0]:ht+=M.a.v[0]*U);for(c=!0;c;)A+f>=s+ht||!p?(y=(s+ht-A)/l.partialLength,G=u.point[0]+(l.point[0]-u.point[0])*y,H=u.point[1]+(l.point[1]-u.point[1])*y,B.translate(-E[0]*D[r].an/200,-E[1]*N/100),c=!1):p&&(A+=l.partialLength,(h+=1)>=p.length&&(h=0,g[d+=1]?p=g[d].points:v.v.c?(h=0,p=g[d=0].points):(A-=l.partialLength,p=null)),p&&(u=l,f=(l=p[h]).partialLength));O=D[r].an/2-D[r].add,B.translate(-O,0,0)}else O=D[r].an/2-D[r].add,B.translate(-O,0,0),B.translate(-E[0]*D[r].an/200,-E[1]*N/100,0);for(D[r].l,T=0;T<F;T+=1)(M=I[T].a).t.propType&&(U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?U.length?s+=M.t.v*U[0]:s+=M.t.v*U:U.length?i+=M.t.v*U[0]:i+=M.t.v*U));for(D[r].l,t.strokeWidthAnim&&(W=t.sw||0),t.strokeColorAnim&&(z=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(Z=[t.fc[0],t.fc[1],t.fc[2]]),T=0;T<F;T+=1)(M=I[T].a).a.propType&&((U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars)).length?B.translate(-M.a.v[0]*U[0],-M.a.v[1]*U[1],M.a.v[2]*U[2]):B.translate(-M.a.v[0]*U,-M.a.v[1]*U,M.a.v[2]*U))
;for(T=0;T<F;T+=1)(M=I[T].a).s.propType&&((U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars)).length?B.scale(1+(M.s.v[0]-1)*U[0],1+(M.s.v[1]-1)*U[1],1):B.scale(1+(M.s.v[0]-1)*U,1+(M.s.v[1]-1)*U,1));for(T=0;T<F;T+=1){if(M=I[T].a,U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars),M.sk.propType&&(U.length?B.skewFromAxis(-M.sk.v*U[0],M.sa.v*U[1]):B.skewFromAxis(-M.sk.v*U,M.sa.v*U)),M.r.propType&&(U.length?B.rotateZ(-M.r.v*U[2]):B.rotateZ(-M.r.v*U)),M.ry.propType&&(U.length?B.rotateY(M.ry.v*U[1]):B.rotateY(M.ry.v*U)),M.rx.propType&&(U.length?B.rotateX(M.rx.v*U[0]):B.rotateX(M.rx.v*U)),M.o.propType&&(U.length?V+=(M.o.v*U[0]-V)*U[0]:V+=(M.o.v*U-V)*U),t.strokeWidthAnim&&M.sw.propType&&(U.length?W+=M.sw.v*U[0]:W+=M.sw.v*U),t.strokeColorAnim&&M.sc.propType)for(j=0;j<3;j+=1)U.length?z[j]=z[j]+(M.sc.v[j]-z[j])*U[0]:z[j]=z[j]+(M.sc.v[j]-z[j])*U;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(j=0;j<3;j+=1)U.length?Z[j]=Z[j]+(M.fc.v[j]-Z[j])*U[0]:Z[j]=Z[j]+(M.fc.v[j]-Z[j])*U;M.fh.propType&&(Z=U.length?k(Z,M.fh.v*U[0]):k(Z,M.fh.v*U)),M.fs.propType&&(Z=U.length?Q(Z,M.fs.v*U[0]):Q(Z,M.fs.v*U)),M.fb.propType&&(Z=U.length?S(Z,M.fb.v*U[0]):S(Z,M.fb.v*U))}}for(T=0;T<F;T+=1)(M=I[T].a).p.propType&&(U=I[T].s.getMult(D[r].anIndexes[T],C.a[T].s.totalChars),this._hasMaskedPath?U.length?B.translate(0,M.p.v[1]*U[0],-M.p.v[2]*U[1]):B.translate(0,M.p.v[1]*U,-M.p.v[2]*U):U.length?B.translate(M.p.v[0]*U[0],M.p.v[1]*U[1],-M.p.v[2]*U[2]):B.translate(M.p.v[0]*U,M.p.v[1]*U,-M.p.v[2]*U));if(t.strokeWidthAnim&&(q=W<0?0:W),t.strokeColorAnim&&(J="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*Z[0])+","+Math.round(255*Z[1])+","+Math.round(255*Z[2])+")"),this._hasMaskedPath){if(B.translate(0,-t.ls),B.translate(0,E[1]*N/100+n,0),C.p.p){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var dt=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(dt+=180),B.rotate(-dt*Math.PI/180)}B.translate(G,H,0),s-=E[0]*D[r].an/200,D[r+1]&&$!==D[r+1].ind&&(s+=D[r].an/2,s+=t.tr/1e3*t.finalSize)}else{switch(B.translate(i,n,0),t.ps&&B.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:B.translate(D[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[r].line]),0,0);break;case 2:B.translate(D[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[r].line])/2,0,0)}B.translate(0,-t.ls),B.translate(O,0,0),B.translate(E[0]*D[r].an/200,E[1]*N/100,0),i+=D[r].l+t.tr/1e3*t.finalSize}"html"===w?rt=B.toCSS():"svg"===w?rt=B.to2dCSS():ot=[B.props[0],B.props[1],B.props[2],B.props[3],B.props[4],B.props[5],B.props[6],B.props[7],B.props[8],B.props[9],B.props[10],B.props[11],B.props[12],B.props[13],B.props[14],B.props[15]],X=V}x<=r?(L=new gt(X,q,J,K,rt,ot),this.renderedLetters.push(L),x+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[r],this.lettersChangedFlag=L.update(X,q,J,K,rt,ot)||this.lettersChangedFlag)}}},ut.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},ut.prototype.mHelper=new U,ut.prototype.defaultPropsArray=[],G([L],ut),gt.prototype.update=function(t,e,i,n,r,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},ft.prototype.defaultBoxWidth=[0,0],ft.prototype.copyData=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},ft.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},ft.prototype.searchProperty=function(){return this.searchKeyframes()},ft.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},ft.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},ft.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;var n,r=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(n=0;n<r;n+=1)o=i!==this.keysIndex?this.effectsSequence[n](o,o.t):this.effectsSequence[n](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},ft.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&(t[i].s,!(i===n-1||t[i+1].t>e));)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},ft.prototype.buildFinalText=function(t){for(var e,i=Z.getCombinedCharacterCodes(),n=[],r=0,o=t.length;r<o;)e=t.charCodeAt(r),-1!==i.indexOf(e)?n[n.length-1]+=t.charAt(r):e>=55296&&e<=56319&&(e=t.charCodeAt(r+1))>=56320&&e<=57343?(n.push(t.substr(r,2)),++r):n.push(t.charAt(r)),r+=1;return n},ft.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,o,a,s,l=this.elem.globalData.fontManager,A=this.data,c=[],h=0,d=A.m.g,u=0,p=0,g=0,f=[],m=0,y=0,b=l.getFontByName(t.f),v=0,E=b.fStyle?b.fStyle.split(" "):[],I="normal",C="normal";for(i=E.length,e=0;e<i;e+=1)switch(E[e].toLowerCase()){case"italic":C="italic";break;case"bold":I="700";break;case"black":I="900";break;case"medium":I="500";break;case"regular":case"normal":I="400";break;case"light":case"thin":I="200"}t.fWeight=b.fWeight||I,t.fStyle=C,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var B,w=t.tr/1e3*t.finalSize;if(t.sz)for(var x,Q,S=!0,k=t.sz[0],D=t.sz[1];S;){x=0,m=0,i=(Q=this.buildFinalText(t.t)).length,w=t.tr/1e3*t.finalSize;var _=-1;for(e=0;e<i;e+=1)B=Q[e].charCodeAt(0),n=!1," "===Q[e]?_=e:13!==B&&3!==B||(m=0,n=!0,x+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(Q[e],b.fStyle,b.fFamily),v=n?0:s.w*t.finalSize/100):v=l.measureText(Q[e],t.f,t.finalSize),m+v>k&&" "!==Q[e]?(-1===_?i+=1:e=_,x+=t.finalLineHeight||1.2*t.finalSize,Q.splice(e,_===e?1:0,"\r"),_=-1,m=0):(m+=v,m+=w);x+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&D<x?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=Q,i=t.finalText.length,S=!1)}m=-w,v=0;var R,M=0;for(e=0;e<i;e+=1)if(n=!1,13===(B=(R=t.finalText[e]).charCodeAt(0))||3===B?(M=0,f.push(m),y=m>y?m:y,m=-2*w,r="",n=!0,g+=1):r=R,l.chars?(s=l.getCharData(R,b.fStyle,l.getFontByName(t.f).fFamily),v=n?0:s.w*t.finalSize/100):v=l.measureText(r,t.f,t.finalSize)," "===R?M+=v+w:(m+=v+w+M,M=0),c.push({l:v,an:v,add:u,n:n,anIndexes:[],val:r,line:g,animatorJustifyOffset:0}),2==d){if(u+=v,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(u-=v);p<=e;)c[p].an=u,c[p].ind=h,c[p].extra=v,p+=1;h+=1,u=0}}else if(3==d){if(u+=v,""===r||e===i-1){for(""===r&&(u-=v);p<=e;)c[p].an=u,c[p].ind=h,c[p].extra=v,p+=1;u=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(t.l=c,y=m>y?m:y,f.push(m),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=f;var T,F,L=A.a;a=L.length;var N,P,U=[];for(o=0;o<a;o+=1){for((T=L[o]).a.sc&&(t.strokeColorAnim=!0),T.a.sw&&(t.strokeWidthAnim=!0),(T.a.fc||T.a.fh||T.a.fs||T.a.fb)&&(t.fillColorAnim=!0),P=0,N=T.s.b,e=0;e<i;e+=1)(F=c[e]).anIndexes[o]=P,(1==N&&""!==F.val||2==N&&""!==F.val&&" "!==F.val||3==N&&(F.n||" "==F.val||e==i-1)||4==N&&(F.n||e==i-1))&&(1===T.s.rn&&U.push(P),P+=1);A.a[o].s.totalChars=P;var O,G=-1;if(1===T.s.rn)for(e=0;e<i;e+=1)G!=(F=c[e]).anIndexes[o]&&(G=F.anIndexes[o],O=U.splice(Math.floor(Math.random()*U.length),1)[0]),F.anIndexes[o]=O}
t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},ft.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},ft.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},ft.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},ft.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var mt=function(){var t=Math.max,e=Math.min,i=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=j.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?j.getProp(t,e.e,0,0,this):{v:100},this.o=j.getProp(t,e.o||{k:0},0,0,this),this.xe=j.getProp(t,e.xe||{k:0},0,0,this),this.ne=j.getProp(t,e.ne||{k:0},0,0,this),this.a=j.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function r(t,e,i){return new n(t,e,i)}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,o=0,a=1,s=1;this.ne.v>0?r=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=O.getBezierEasing(r,o,a,s).get,A=0,c=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)A=l(A=h===c?n>=h?1:0:t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(3===d)A=l(A=h===c?n>=h?0:1:1-t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(4===d)h===c?A=0:(A=t(0,e(.5/(h-c)+(n-c)/(h-c),1)))<.5?A*=2:A=1-2*(A-.5),A=l(A);else if(5===d){if(h===c)A=0;else{var u=h-c,p=-u/2+(n=e(t(0,n+.5-c),h-c)),g=u/2;A=Math.sqrt(1-p*p/(g*g))}A=l(A)}else 6===d?(h===c?A=0:(n=e(t(0,n+.5-c),h-c),A=(1+Math.cos(Math.PI+2*Math.PI*n/(h-c)))/2),A=l(A)):(n>=i(c)&&(A=t(0,e(n-c<0?e(h,1)-(c-n):h-n,1))),A=l(A));return A*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var o=n;n=r,r=o}this.finalS=n,this.finalE=r}},G([L],n),{getTextSelectorProp:r}}(),yt=function(t,e,i,n){var r=0,o=t,a=M(o);function s(){return r?a[r-=1]:e()}function l(t){r===o&&(a=bt.double(a),o*=2),i&&i(t),a[r]=t,r+=1}return{newElement:s,release:l}},bt=function(){function t(t){return t.concat(M(t.length))}return{double:t}}(),vt=function(){function t(){return R("float32",2)}return yt(8,t)}(),Et=function(){function t(){return new J}function e(t){var e,i=t._length;for(e=0;e<i;e+=1)vt.release(t.v[e]),vt.release(t.i[e]),vt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function i(t){var e,i=n.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i}var n=yt(4,t,e);return n.clone=i,n}(),It=function(){var t={newShapeCollection:r,release:o},e=0,i=4,n=M(i);function r(){return e?n[e-=1]:new rt}function o(t){var r,o=t._length;for(r=0;r<o;r+=1)Et.release(t.shapes[r]);t._length=0,e===i&&(n=bt.double(n),i*=2),n[e]=t,e+=1}return t}(),Ct=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)Bt.release(t.lengths[e]);t.lengths.length=0}return yt(8,t,e)}(),Bt=function(){function t(){return{addedLength:0,percents:R("float32",d),lengths:R("float32",d)}}return yt(8,t)}();function wt(){}function xt(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=T("svg");var i="";if(e&&e.title){var n=T("title"),r=B();n.setAttribute("id",r),n.textContent=e.title,this.svgElement.appendChild(n),i+=r}if(e&&e.description){var o=T("desc"),a=B();o.setAttribute("id",a),o.textContent=e.description,this.svgElement.appendChild(o),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var s=T("defs");this.svgElement.appendChild(s);var l=T("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function Qt(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,o=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=M(a),this.solidPath="";var s,l,A,c,h,d,u,p=this.masksProperties,g=0,f=[],m=B(),y="clipPath",b="clip-path";for(r=0;r<a;r++)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(y="mask",b="mask"),"s"!=p[r].mode&&"i"!=p[r].mode||0!==g?c=null:((c=T("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),f.push(c)),s=T("path"),"n"!=p[r].mode){var v;if(g+=1,s.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(y="mask",b="mask",u=j.getProp(this.element,p[r].x,0,null,this.element),v=B(),(h=T("filter")).setAttribute("id",v),(d=T("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),h.appendChild(d),o.appendChild(h),s.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(d=null,u=null),this.storedData[r]={elem:s,x:u,expan:d,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"==p[r].mode){A=f.length;var E=T("g");for(l=0;l<A;l+=1)E.appendChild(f[l]);var I=T("mask");I.setAttribute("mask-type","alpha"),I.setAttribute("id",m+"_"+g),I.appendChild(s),o.appendChild(I),E.setAttribute("mask","url("+n+"#"+m+"_"+g+")"),f.length=0,f.push(E)}else f.push(s);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:s,lastPath:"",op:j.getProp(this.element,p[r].o,0,.01,this.element),prop:K.getShapeProp(this.element,p[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}else this.viewData[r]={op:j.getProp(this.element,p[r].o,0,.01,this.element),prop:K.getShapeProp(this.element,p[r],3),elem:s,lastPath:""},o.appendChild(s);for(this.maskElement=T(y),a=f.length,r=0;r<a;r+=1)this.maskElement.appendChild(f[r]);g>0&&(this.maskElement.setAttribute("id",m),this.element.maskedElement.setAttribute(b,"url("+n+"#"+m+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function St(){}function kt(){}function Dt(){}function _t(){}function Rt(){}function Mt(t,e){this.elem=t,this.pos=e}function Tt(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=T("path"),this.msElem=null}function Ft(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var n=0,r=t.length;n<r;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function Lt(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function Nt(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=j.getProp(t,e.o,0,.01,this),this.w=j.getProp(t,e.w,0,null,this),
this.d=new ot(t,e.d||{},"svg",this),this.c=j.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function Pt(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=j.getProp(t,e.o,0,.01,this),this.c=j.getProp(t,e.c,1,255,this),this.style=i}function Ut(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function Ot(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=j.getProp(t,e.w,0,null,this),this.d=new ot(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function Gt(){this.it=[],this.prevViewData=[],this.gr=T("g")}wt.prototype.checkLayers=function(t){var e,i,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e--)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},wt.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},wt.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},wt.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},wt.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,n=t.length,r=this.layers.length;for(e=0;e<n;e+=1)for(i=0;i<r;){if(this.layers[i].id==t[e].id){this.layers[i]=t[e];break}i+=1}},wt.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},wt.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},wt.prototype.buildElementParenting=function(t,e,i){for(var n=this.elements,r=this.layers,o=0,a=r.length;o<a;)r[o].ind==e&&(n[o]&&!0!==n[o]?(i.push(n[o]),n[o].setAsParent(),void 0!==r[o].parent?this.buildElementParenting(t,r[o].parent,i):t.setHierarchy(i)):(this.buildItem(o),this.addPendingElement(t))),o+=1},wt.prototype.addPendingElement=function(t){this.pendingElements.push(t)},wt.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},wt.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new Z,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},G([wt],xt),xt.prototype.createNull=function(t){return new zt(t,this.globalData,this)},xt.prototype.createShape=function(t){return new te(t,this.globalData,this)},xt.prototype.createText=function(t){return new $t(t,this.globalData,this)},xt.prototype.createImage=function(t){return new Jt(t,this.globalData,this)},xt.prototype.createComp=function(t){return new Xt(t,this.globalData,this)},xt.prototype.createSolid=function(t){return new Kt(t,this.globalData,this)},xt.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=T("clipPath"),r=T("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var o=B();i.setAttribute("id",o),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+n+"#"+o+")"),e.appendChild(i),this.layers=t.layers,this.elements=M(t.layers.length)},xt.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},xt.prototype.updateContainerSize=function(){},xt.prototype.buildItem=function(t){var i=this.elements;if(!i[t]&&99!=this.layers[t].ty){i[t]=!0;var n=this.createItem(this.layers[t]);i[t]=n,e&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?n.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(n)))}},xt.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},xt.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},xt.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var n,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(i,n):this.layerElement.appendChild(i)}},xt.prototype.hide=function(){this.layerElement.style.display="none"},xt.prototype.show=function(){this.layerElement.style.display="block"},Qt.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Qt.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e++)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var o=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+n+"#"+this.storedData[e].filterId+")")),o.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Qt.prototype.getMaskelement=function(){return this.maskElement},Qt.prototype.createLayerSolidPath=function(){
var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},Qt.prototype.drawPath=function(t,e,i){var n,r,o=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,n=1;n<r;n+=1)o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&r>1&&(o+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==o){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+o:o),i.elem.setAttribute("d",a)),i.lastPath=o}},Qt.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},St.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},kt.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Dt.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?q.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new U},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<n;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var r,o,a=e.length;for(r=0;r<a;r+=1)o=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new U},_t.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},G([_t,H({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],Rt),Tt.prototype.reset=function(){this.d="",this._mdf=!1},Ft.prototype.setAsAnimated=function(){this._isAnimated=!0},G([L],Nt),G([L],Pt),Ut.prototype.initGradientData=function(t,e,i){this.o=j.getProp(t,e.o,0,.01,this),this.s=j.getProp(t,e.s,1,null,this),this.e=j.getProp(t,e.e,1,null,this),this.h=j.getProp(t,e.h||{k:0},0,.01,this),this.a=j.getProp(t,e.a||{k:0},0,u,this),this.g=new at(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},Ut.prototype.setGradientData=function(t,e){var i=B(),r=T(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var o,a,s,l=[];for(s=4*e.g.p,a=0;a<s;a+=4)o=T("stop"),r.appendChild(o),l.push(o);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+n+"#"+i+")"),this.gf=r,this.cst=l},Ut.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,o,a=T("mask"),s=T("path");a.appendChild(s);var l=B(),A=B();a.setAttribute("id",A);var c=T(1===t.t?"linearGradient":"radialGradient");c.setAttribute("id",l),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),o=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var h=this.stops;for(r=4*t.g.p;r<o;r+=2)(i=T("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(i),h.push(i);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+n+"#"+l+")"),this.of=c,this.ms=a,this.ost=h,this.maskId=A,e.msElem=s}},G([L],Ut),G([Ut,L],Ot);var Ht=function(){var t=new U,e=new U;function i(t){switch(t.ty,t.ty){case"fl":return o;case"gf":return s;case"gs":return a;case"st":return A;case"sh":case"el":case"rc":case"sr":return r;case"tr":return n}}function n(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(i,n,r){var o,a,s,l,A,c,h,d,u,p,g,f=n.styles.length,m=n.lvl;for(c=0;c<f;c+=1){if(l=n.sh._mdf||r,n.styles[c].lvl<m){for(d=e.reset(),p=m-n.styles[c].lvl,g=n.transformers.length-1;!l&&p>0;)l=n.transformers[g].mProps._mdf||l,p--,g--;if(l)for(p=m-n.styles[c].lvl,g=n.transformers.length-1;p>0;)u=n.transformers[g].mProps.v.props,d.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),p--,g--}else d=t;if(a=(h=n.sh.paths)._length,l){for(s="",o=0;o<a;o+=1)(A=h.shapes[o])&&A._length&&(s+=lt(A,A._length,A.c,d));n.caches[c]=s}else s=n.caches[c];n.styles[c].d+=!0===i.hd?"":s,n.styles[c]._mdf=l||n.styles[c]._mdf}}function o(t,e,i){var n=e.style;(e.c._mdf||i)&&n.pElem.setAttribute("fill","rgb("+l(e.c.v[0])+","+l(e.c.v[1])+","+l(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){s(t,e,i),A(t,e,i)}function s(t,e,i){var n,r,o,a,s,l=e.gf,A=e.g._hasOpacity,c=e.s.v,h=e.e.v;if(e.o._mdf||i){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||i){var u=1===t.t?"x1":"cx",p="x1"===u?"y1":"cy";l.setAttribute(u,c[0]),l.setAttribute(p,c[1]),A&&!e.g._collapsable&&(e.of.setAttribute(u,c[0]),
e.of.setAttribute(p,c[1]))}if(e.g._cmdf||i){n=e.cst;var g=e.g.c;for(o=n.length,r=0;r<o;r+=1)(a=n[r]).setAttribute("offset",g[4*r]+"%"),a.setAttribute("stop-color","rgb("+g[4*r+1]+","+g[4*r+2]+","+g[4*r+3]+")")}if(A&&(e.g._omdf||i)){var f=e.g.o;for(o=(n=e.g._collapsable?e.cst:e.ost).length,r=0;r<o;r+=1)a=n[r],e.g._collapsable||a.setAttribute("offset",f[2*r]+"%"),a.setAttribute("stop-opacity",f[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),A&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",s),A&&!e.g._collapsable&&e.of.setAttribute("r",s)),e.e._mdf||e.h._mdf||e.a._mdf||i){s||(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var m=Math.atan2(h[1]-c[1],h[0]-c[0]),y=s*(e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v),b=Math.cos(m+e.a.v)*y+c[0],v=Math.sin(m+e.a.v)*y+c[1];l.setAttribute("fx",b),l.setAttribute("fy",v),A&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",v))}}function A(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+l(e.c.v[0])+","+l(e.c.v[1])+","+l(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:i}}();function Vt(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function Yt(){}function zt(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function Wt(){}function Zt(){}function jt(){}function qt(){}function Jt(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function Kt(t,e,i){this.initElement(t,e,i)}function Xt(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?M(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?j.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function $t(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function te(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function ee(t,e){this.filterManager=e;var i=T("feColorMatrix");if(i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i),(i=T("feColorMatrix")).setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result","f2"),t.appendChild(i),this.matrixFilter=i,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var n,r=T("feMerge");t.appendChild(r),(n=T("feMergeNode")).setAttribute("in","SourceGraphic"),r.appendChild(n),(n=T("feMergeNode")).setAttribute("in","f2"),r.appendChild(n)}}function ie(t,e){this.filterManager=e;var i=T("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(i),this.matrixFilter=i}function ne(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var i=T("feGaussianBlur");t.appendChild(i),this.feGaussianBlur=i}function re(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function oe(t,e){this.filterManager=e;var i=T("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.setAttribute("result","f1"),t.appendChild(i);var n=T("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),this.matrixFilter=n;var r=T("feFuncR");r.setAttribute("type","table"),n.appendChild(r),this.feFuncR=r;var o=T("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var a=T("feFuncB");a.setAttribute("type","table"),n.appendChild(a),this.feFuncB=a}function ae(t,e){this.filterManager=e;var i=this.filterManager.effectElements,n=T("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),n=T("feComponentTransfer")),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function se(t,e){var i=e.container.globalData.renderConfig.filterSize;t.setAttribute("x",i.x),t.setAttribute("y",i.y),t.setAttribute("width",i.width),t.setAttribute("height",i.height),this.filterManager=e;var n=T("feGaussianBlur");n.setAttribute("in","SourceAlpha"),n.setAttribute("result","drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n);var r=T("feOffset");r.setAttribute("dx","25"),r.setAttribute("dy","0"),r.setAttribute("in","drop_shadow_1"),r.setAttribute("result","drop_shadow_2"),this.feOffset=r,t.appendChild(r);var o=T("feFlood");o.setAttribute("flood-color","#00ff00"),o.setAttribute("flood-opacity","1"),o.setAttribute("result","drop_shadow_3"),this.feFlood=o,t.appendChild(o);var a=T("feComposite");a.setAttribute("in","drop_shadow_3"),a.setAttribute("in2","drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result","drop_shadow_4"),t.appendChild(a);var s,l=T("feMerge");t.appendChild(l),s=T("feMergeNode"),l.appendChild(s),(s=T("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=s,this.feMerge=l,this.originalNodeAdded=!1,l.appendChild(s)}Vt.prototype={addTransformSequence:function(t){var e,i=t.length,n="_";for(e=0;e<i;e+=1)n+=t[e].transform.key+"_";var r=this.sequences[n];return r||(r={transforms:[].concat(t),finalTransform:new U,_mdf:!1},this.sequences[n]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var i,n=0,r=t.transforms.length,o=e;n<r&&!e;){if(t.transforms[n].transform.mProps._mdf){o=!0;break}n+=1}if(o)for(t.finalTransform.reset(),n=r-1;n>=0;n-=1)i=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=o},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return"_"+this.transform_key_count++}},Yt.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),
this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=P(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=B(),this.data.sr||(this.data.sr=1),this.effectsManager=new ue(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},zt.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},zt.prototype.renderFrame=function(){},zt.prototype.getBaseElement=function(){return null},zt.prototype.destroy=function(){},zt.prototype.sourceRectAtTime=function(){},zt.prototype.hide=function(){},G([Yt,Dt,St,kt],zt),Wt.prototype={initRendererElement:function(){this.layerElement=T("g")},createContainerElements:function(){this.matteElement=T("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,r=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var o=T("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),o.appendChild(this.layerElement),r=o,this.globalData.defs.appendChild(o),ct.maskType||1!=this.data.td||(o.setAttribute("mask-type","luminance"),t=B(),e=ht.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(ht.createAlphaToLuminanceFilter()),(i=T("g")).appendChild(this.layerElement),r=i,o.appendChild(i),i.setAttribute("filter","url("+n+"#"+t+")"))}else if(2==this.data.td){var a=T("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var s=T("g");a.appendChild(s),t=B(),e=ht.createFilter(t);var l=T("feComponentTransfer");l.setAttribute("in","SourceGraphic"),e.appendChild(l);var A=T("feFuncA");A.setAttribute("type","table"),A.setAttribute("tableValues","1.0 0.0"),l.appendChild(A),this.globalData.defs.appendChild(e);var c=T("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),s.setAttribute("filter","url("+n+"#"+t+")"),s.appendChild(c),s.appendChild(this.layerElement),r=s,ct.maskType||(a.setAttribute("mask-type","luminance"),e.appendChild(ht.createAlphaToLuminanceFilter()),i=T("g"),s.appendChild(c),i.appendChild(this.layerElement),r=i,s.appendChild(i)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var h=T("clipPath"),d=T("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var u=B();if(h.setAttribute("id",u),h.appendChild(d),this.globalData.defs.appendChild(h),this.checkMasks()){var p=T("g");p.setAttribute("clip-path","url("+n+"#"+u+")"),p.appendChild(this.layerElement),this.transformedElement=p,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+n+"#"+u+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Qt(this.data,this,this.globalData),this.renderableEffectsManager=new ce(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+n+"#"+t+")")}},Zt.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,n=e.length;i<n;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,n=i.length;n;)if(i[n-=1].elem===t)return void(i[n].pos=e);i.push(new Mt(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},jt.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new ft(this,t.t,this.dynamicProperties),this.textAnimator=new ut(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},jt.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},jt.prototype.createPathShape=function(t,e){var i,n,r=e.length,o="";for(i=0;i<r;i+=1)n=e[i].ks.k,o+=lt(n,n.i.length,!0,t);return o},jt.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},jt.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},jt.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},jt.prototype.applyTextPropertiesToMatrix=function(t,e,i,n,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(n,r,0)},jt.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},jt.prototype.emptyProp=new gt,jt.prototype.destroy=function(){},G([Yt,Dt,St,kt,Rt],qt),qt.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},qt.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},qt.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},
qt.prototype.setElements=function(t){this.elements=t},qt.prototype.getElements=function(){return this.elements},qt.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},qt.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},G([Yt,Dt,Wt,St,kt,Rt],Jt),Jt.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=T("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},Jt.prototype.sourceRectAtTime=function(){return this.sourceRect},G([Jt],Kt),Kt.prototype.createContent=function(){var t=T("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},G([xt,qt,Wt],Xt),G([Yt,Dt,Wt,St,kt,Rt,jt],$t),$t.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=T("text"))},$t.prototype.buildTextContents=function(t){for(var e=0,i=t.length,n=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(r),r=""):r+=t[e],e+=1;return n.push(r),n},$t.prototype.buildNewText=function(){var t,e,i=this.textProperty.currentData;this.renderedLetters=M(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var r=i.fWeight,o=i.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var a,s=i.l||[],l=!!this.globalData.fontManager.chars;e=s.length;var A,c=this.mHelper,h="",d=this.data.singleShape,u=0,p=0,g=!0,f=i.tr/1e3*i.finalSize;if(!d||l||i.sz){var m,y,b=this.textSpans.length;for(t=0;t<e;t+=1)l&&d&&0!==t||(a=b>t?this.textSpans[t]:T(l?"path":"text"),b<=t&&(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=a,this.layerElement.appendChild(a)),a.style.display="inherit"),c.reset(),c.scale(i.finalSize/100,i.finalSize/100),d&&(s[t].n&&(u=-f,p+=i.yOffset,p+=g?1:0,g=!1),this.applyTextPropertiesToMatrix(i,c,s[t].line,u,p),u+=s[t].l||0,u+=f),l?(A=(m=(y=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily))&&y.data||{}).shapes?m.shapes[0].it:[],d?h+=this.createPathShape(c,A):a.setAttribute("d",this.createPathShape(c,A))):(d&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));d&&a&&a.setAttribute("d",h)}else{var v=this.textContainer,E="start";switch(i.j){case 1:E="end";break;case 2:E="middle"}v.setAttribute("text-anchor",E),v.setAttribute("letter-spacing",f);var I=this.buildTextContents(i.finalText);for(e=I.length,p=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t]||T("tspan")).textContent=I[t],a.setAttribute("x",0),a.setAttribute("y",p),a.style.display="inherit",v.appendChild(a),this.textSpans[t]=a,p+=i.finalLineHeight;this.layerElement.appendChild(v)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},$t.prototype.sourceRectAtTime=function(t){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},$t.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,n,r=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(i=r[t],n=this.textSpans[t],i._mdf.m&&n.setAttribute("transform",i.m),i._mdf.o&&n.setAttribute("opacity",i.o),i._mdf.sw&&n.setAttribute("stroke-width",i.sw),i._mdf.sc&&n.setAttribute("stroke",i.sc),i._mdf.fc&&n.setAttribute("fill",i.fc))}},G([Yt,Dt,Wt,Zt,St,kt,Rt],te),te.prototype.initSecondaryElement=function(){},te.prototype.identityMatrix=new U,te.prototype.buildExpressionInterface=function(){},te.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},te.prototype.filterUniqueShapes=function(){var t,e,i,n,r=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(i=0;i<o;i+=1){for(n=this.stylesList[i],s=!1,a.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),s=e._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},te.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},te.prototype.createStyleElement=function(t,e){var i,r=new Tt(t,e),o=r.pElem;return"st"===t.ty?i=new Nt(this,t,r):"fl"===t.ty?i=new Pt(this,t,r):"gf"!==t.ty&&"gs"!==t.ty||(i=new("gf"===t.ty?Ut:Ot)(this,t,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),o.setAttribute("mask","url("+n+"#"+i.maskId+")"))),"st"!==t.ty&&"gs"!==t.ty||(o.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),o.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),o.setAttribute("fill-opacity","0"),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&o.setAttribute("fill-rule","evenodd"),t.ln&&o.setAttribute("id",t.ln),t.cl&&o.setAttribute("class",t.cl),t.bm&&(o.style["mix-blend-mode"]=P(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,i),i},te.prototype.createGroupElement=function(t){var e=new Gt;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=P(t.bm)),e},te.prototype.createTransformElement=function(t,e){var i=q.getTransformProperty(this,t,this),n=new Lt(i,i.o,e);return this.addToAnimatedContents(t,n),n},te.prototype.createShapeElement=function(t,e,i){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var r=new Ft(e,i,K.getShapeProp(this,t,n,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},te.prototype.addToAnimatedContents=function(t,e){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:Ht.createRenderFunction(t),element:e,data:t})},te.prototype.setElementStyles=function(t){var e,i=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},te.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},te.prototype.searchShapes=function(t,e,i,n,r,o,a){var s,l,A,c,h,d,u=[].concat(o),p=t.length-1,g=[],f=[];for(s=p;s>=0;s-=1){if((d=this.searchProcessedElement(t[s]))?e[s]=i[d-1]:t[s]._render=a,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)d?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],r),t[s]._render&&n.appendChild(e[s].style.pElem),g.push(e[s].style);else if("gr"==t[s].ty){if(d)for(A=e[s].it.length,l=0;l<A;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s])
;this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,r+1,u,a),t[s]._render&&n.appendChild(e[s].gr)}else"tr"==t[s].ty?(d||(e[s]=this.createTransformElement(t[s],n)),c=e[s].transform,u.push(c)):"sh"==t[s].ty||"rc"==t[s].ty||"el"==t[s].ty||"sr"==t[s].ty?(d||(e[s]=this.createShapeElement(t[s],u,r)),this.setElementStyles(e[s])):"tm"==t[s].ty||"rd"==t[s].ty||"ms"==t[s].ty||"pb"==t[s].ty?(d?(h=e[s]).closed=!1:((h=X.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"==t[s].ty&&(d?(h=e[s]).closed=!0:(h=X.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),a=!1),f.push(h));this.addProcessedElement(t[s],s+1)}for(p=g.length,s=0;s<p;s+=1)g[s].closed=!0;for(p=f.length,s=0;s<p;s+=1)f[s].closed=!0},te.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},te.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},te.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},ee.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},ie.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},ne.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,i=this.filterManager.effectElements[0].p.v*e,n=this.filterManager.effectElements[1].p.v,r=3==n?0:i,o=2==n?0:i;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+o);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},re.prototype.initialize=function(){var t,e,i,r,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=1+(i=this.filterManager.effectElements[0].p.v-1),(e=T("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=T("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=T("mask"),s=B();a.setAttribute("id",s),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var l=T("g");for(l.setAttribute("mask","url("+n+"#"+s+")");o[0];)l.appendChild(o[0]);this.elem.layerElement.appendChild(l),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},re.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,i,n,r=this.paths.length;for(e=0;e<r;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&n.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,A=n.getTotalLength();o="0 0 0 "+A*a+" ";var c,h=A*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,u=Math.floor(h/d);for(c=0;c<u;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";o+="0 "+10*A+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;n.setAttribute("stroke-dasharray",o)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+l(255*p[0])+","+l(255*p[1])+","+l(255*p[2])+")")}},oe.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,r=n[0]+" "+i[0]+" "+e[0],o=n[1]+" "+i[1]+" "+e[1],a=n[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},ae.prototype.createFeFunc=function(t,e){var i=T(t);return i.setAttribute("type","table"),e.appendChild(i),i},ae.prototype.getTableValue=function(t,e,i,n,r){for(var o,a,s=0,l=256,A=Math.min(t,e),c=Math.max(t,e),h=Array.call(null,{length:l}),d=0,u=r-n,p=e-t;s<=256;)a=(o=s/256)<=A?p<0?r:n:o>=c?p<0?n:r:n+u*Math.pow((o-t)/p,1/i),h[d++]=a,s+=256/(l-1);return h.join(" ")},ae.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},se.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",D(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),
t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*u,r=i*Math.cos(n),o=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",o)}}};var le=[];function Ae(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=T("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function ce(t){var e,i,r=t.data.ef?t.data.ef.length:0,o=B(),a=ht.createFilter(o),s=0;for(this.filters=[],e=0;e<r;e+=1)i=null,20===t.data.ef[e].ty?(s+=1,i=new ee(a,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(s+=1,i=new ie(a,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?i=new re(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(s+=1,i=new oe(a,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(s+=1,i=new ae(a,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(s+=1,i=new se(a,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?i=new Ae(a,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(s+=1,i=new ne(a,t.effectsManager.effectElements[e])),i&&this.filters.push(i);s&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+n+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}Ae.prototype.findSymbol=function(t){for(var e=0,i=le.length;e<i;){if(le[e]===t)return le[e];e+=1}return null},Ae.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var n,r=i.children,o=0,a=r.length;o<a&&r[o]!==t.layerElement;)o+=1;o<=a-2&&(n=r[o+1]);var s=T("use");s.setAttribute("href","#"+e),n?i.insertBefore(s,n):i.appendChild(s)}},Ae.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=B(),n=T("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),le.push(e);var r=t.globalData.defs;r.appendChild(n);var o=T("symbol");o.setAttribute("id",i),this.replaceInParent(e,i),o.appendChild(e.layerElement),r.appendChild(o);var a=T("use");a.setAttribute("href","#"+i),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},Ae.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,n=e.length;i<n;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},Ae.prototype.renderFrame=function(){this.initialized||this.initialize()},ce.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)};var he=function(){var e={},i=[],n=0,r=0,o=0,a=!0,s=!1;function l(t){for(var e=0,n=t.target;e<r;)i[e].animation===n&&(i.splice(e,1),e-=1,r-=1,n.isPaused||d()),e+=1}function A(t,e){if(!t)return null;for(var n=0;n<r;){if(i[n].elem==t&&null!==i[n].elem)return i[n].animation;n+=1}var o=new de;return u(o,t),o.setData(t,e),o}function c(){var t,e=i.length,n=[];for(t=0;t<e;t+=1)n.push(i[t].animation);return n}function h(){o+=1,Q()}function d(){o-=1}function u(t,e){t.addEventListener("destroy",l),t.addEventListener("_active",h),t.addEventListener("_idle",d),i.push({elem:e,animation:t}),r+=1}function p(t){var e=new de;return u(e,null),e.setParams(t),e}function g(t,e){var n;for(n=0;n<r;n+=1)i[n].animation.setSpeed(t,e)}function f(t,e){var n;for(n=0;n<r;n+=1)i[n].animation.setDirection(t,e)}function m(t){var e;for(e=0;e<r;e+=1)i[e].animation.play(t)}function y(e){var l,A=e-n;for(l=0;l<r;l+=1)i[l].animation.advanceTime(A);n=e,o&&!s?t.requestAnimationFrame(y):a=!0}function b(e){n=e,t.requestAnimationFrame(y)}function v(t){var e;for(e=0;e<r;e+=1)i[e].animation.pause(t)}function E(t,e,n){var o;for(o=0;o<r;o+=1)i[o].animation.goToAndStop(t,e,n)}function I(t){var e;for(e=0;e<r;e+=1)i[e].animation.stop(t)}function C(t){var e;for(e=0;e<r;e+=1)i[e].animation.togglePause(t)}function B(t){var e;for(e=r-1;e>=0;e-=1)i[e].animation.destroy(t)}function w(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=r.length;for(n=0;n<o;n+=1)i&&r[n].setAttribute("data-bm-type",i),A(r[n],t);if(e&&0===o){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerHTML="";var s=F("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",i),a.appendChild(s),A(s,t)}}function x(){var t;for(t=0;t<r;t+=1)i[t].animation.resize()}function Q(){!s&&o&&a&&(t.requestAnimationFrame(b),a=!1)}function S(){s=!0}function k(){s=!1,Q()}return e.registerAnimation=A,e.loadAnimation=p,e.setSpeed=g,e.setDirection=f,e.play=m,e.pause=v,e.stop=I,e.togglePause=C,e.searchAnimations=w,e.resize=x,e.goToAndStop=E,e.destroy=B,e.freeze=S,e.unfreeze=k,e.getRegisteredAnimations=c,e}(),de=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=B(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=o,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=h(),this.imagePreloader=new At};function ue(){}G([_],de),de.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new xt(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.imagePreloader.setCacheType(e),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.animationData?this.configAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dt.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},de.prototype.setData=function(t,e){var i={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:"canvas";var r=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";""===r||(i.loop="false"!==r&&("true"===r||parseInt(r)));var o=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;i.autoplay="false"!==o,i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"",
"false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),this.setParams(i)},de.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var i,n,r=this.animationData.layers,o=r.length,a=t.layers,s=a.length;for(n=0;n<s;n+=1)for(i=0;i<o;){if(r[i].id==a[n].id){r[i]=a[n];break}i+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(o=t.assets.length,i=0;i<o;i+=1)this.animationData.assets.push(t.assets[i]);this.animationData.__complete=!1,W.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),e&&e.initExpressions(this),this.loadNextSegment()},de.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dt.load(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},de.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},de.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},de.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},de.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded()}catch(t){this.triggerConfigError(t)}},de.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},de.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.isLoaded||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,W.completeData(this.animationData,this.renderer.globalData.fontManager),e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},de.prototype.resize=function(){this.renderer.updateContainerSize()},de.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},de.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},de.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},de.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},de.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},de.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},de.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},de.prototype.goToAndStop=function(t,e,i){i&&this.name!=i||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},de.prototype.goToAndPlay=function(t,e,i){this.goToAndStop(t,e,i),this.play()},de.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},de.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},de.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==i&&this.goToAndStop(i,!0)},de.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},de.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},de.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},de.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},de.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},de.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},de.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},de.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},de.prototype.getPath=function(){return this.path},de.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},de.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t==this.assets[e].id)return this.assets[e];e+=1}},de.prototype.hide=function(){this.renderer.hide()},de.prototype.show=function(){this.renderer.show()},de.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},de.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new f(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":
this.triggerEvent(t,new y(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new m(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new b(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new v(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new f(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new y(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new m(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new b(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new v(t,this))},de.prototype.triggerRenderFrameError=function(t){var e=new E(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},de.prototype.triggerConfigError=function(t){var e=new I(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var pe={};function ge(t){n=t}function fe(){!0===we?he.searchAnimations(xe,we,Qe):he.searchAnimations()}function me(t){o=t}function ye(t){return!0===we&&(t.animationData=JSON.parse(xe)),he.loadAnimation(t)}function be(t){if("string"==typeof t)switch(t){case"high":d=200;break;case"medium":d=50;break;case"low":d=10}else!isNaN(t)&&t>1&&(d=t);g(!(d>=50))}function ve(){return"undefined"!=typeof navigator}function Ee(t,i){"expressions"===t&&(e=i)}function Ie(t){switch(t){case"propertyFactory":return j;case"shapePropertyFactory":return K;case"matrix":return U}}function Ce(){"complete"===document.readyState&&(clearInterval(De),fe())}function Be(t){for(var e=ke.split("&"),i=0;i<e.length;i++){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}}pe.play=he.play,pe.pause=he.pause,pe.setLocationHref=ge,pe.togglePause=he.togglePause,pe.setSpeed=he.setSpeed,pe.setDirection=he.setDirection,pe.stop=he.stop,pe.searchAnimations=fe,pe.registerAnimation=he.registerAnimation,pe.loadAnimation=ye,pe.setSubframeRendering=me,pe.resize=he.resize,pe.goToAndStop=he.goToAndStop,pe.destroy=he.destroy,pe.setQuality=be,pe.inBrowser=ve,pe.installPlugin=Ee,pe.freeze=he.freeze,pe.unfreeze=he.unfreeze,pe.getRegisteredAnimations=he.getRegisteredAnimations,pe.__getFactory=Ie,pe.version="5.7.1";var we="__[STANDALONE]__",xe="__[ANIMATIONDATA]__",Qe="";if(we){var Se=document.getElementsByTagName("script"),ke=(Se[Se.length-1]||{src:""}).src.replace(/^[^\?]+\??/,"");Qe=Be("renderer")}var De=setInterval(Ce,100);return pe}(r)}.call(e,i,e,t))||(t.exports=n))},416:function(t,e,i){var n,r,o,a,s;n=i(49554),r=i(50099).utf8,o=i(87691),a=i(50099).bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):r.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var i=n.bytesToWords(t),l=8*t.length,A=1732584193,c=-271733879,h=-1732584194,d=271733878,u=0;u<i.length;u++)i[u]=16711935&(i[u]<<8|i[u]>>>24)|4278255360&(i[u]<<24|i[u]>>>8);i[l>>>5]|=128<<l%32,i[14+(l+64>>>9<<4)]=l;var p=s._ff,g=s._gg,f=s._hh,m=s._ii;for(u=0;u<i.length;u+=16){var y=A,b=c,v=h,E=d;A=p(A,c,h,d,i[u+0],7,-680876936),d=p(d,A,c,h,i[u+1],12,-389564586),h=p(h,d,A,c,i[u+2],17,606105819),c=p(c,h,d,A,i[u+3],22,-1044525330),A=p(A,c,h,d,i[u+4],7,-176418897),d=p(d,A,c,h,i[u+5],12,1200080426),h=p(h,d,A,c,i[u+6],17,-1473231341),c=p(c,h,d,A,i[u+7],22,-45705983),A=p(A,c,h,d,i[u+8],7,1770035416),d=p(d,A,c,h,i[u+9],12,-1958414417),h=p(h,d,A,c,i[u+10],17,-42063),c=p(c,h,d,A,i[u+11],22,-1990404162),A=p(A,c,h,d,i[u+12],7,1804603682),d=p(d,A,c,h,i[u+13],12,-40341101),h=p(h,d,A,c,i[u+14],17,-1502002290),A=g(A,c=p(c,h,d,A,i[u+15],22,1236535329),h,d,i[u+1],5,-165796510),d=g(d,A,c,h,i[u+6],9,-1069501632),h=g(h,d,A,c,i[u+11],14,643717713),c=g(c,h,d,A,i[u+0],20,-373897302),A=g(A,c,h,d,i[u+5],5,-701558691),d=g(d,A,c,h,i[u+10],9,38016083),h=g(h,d,A,c,i[u+15],14,-660478335),c=g(c,h,d,A,i[u+4],20,-405537848),A=g(A,c,h,d,i[u+9],5,568446438),d=g(d,A,c,h,i[u+14],9,-1019803690),h=g(h,d,A,c,i[u+3],14,-187363961),c=g(c,h,d,A,i[u+8],20,1163531501),A=g(A,c,h,d,i[u+13],5,-1444681467),d=g(d,A,c,h,i[u+2],9,-51403784),h=g(h,d,A,c,i[u+7],14,1735328473),A=f(A,c=g(c,h,d,A,i[u+12],20,-1926607734),h,d,i[u+5],4,-378558),d=f(d,A,c,h,i[u+8],11,-2022574463),h=f(h,d,A,c,i[u+11],16,1839030562),c=f(c,h,d,A,i[u+14],23,-35309556),A=f(A,c,h,d,i[u+1],4,-1530992060),d=f(d,A,c,h,i[u+4],11,1272893353),h=f(h,d,A,c,i[u+7],16,-155497632),c=f(c,h,d,A,i[u+10],23,-1094730640),A=f(A,c,h,d,i[u+13],4,681279174),d=f(d,A,c,h,i[u+0],11,-358537222),h=f(h,d,A,c,i[u+3],16,-722521979),c=f(c,h,d,A,i[u+6],23,76029189),A=f(A,c,h,d,i[u+9],4,-640364487),d=f(d,A,c,h,i[u+12],11,-421815835),h=f(h,d,A,c,i[u+15],16,530742520),A=m(A,c=f(c,h,d,A,i[u+2],23,-995338651),h,d,i[u+0],6,-198630844),d=m(d,A,c,h,i[u+7],10,1126891415),h=m(h,d,A,c,i[u+14],15,-1416354905),c=m(c,h,d,A,i[u+5],21,-57434055),A=m(A,c,h,d,i[u+12],6,1700485571),d=m(d,A,c,h,i[u+3],10,-1894986606),h=m(h,d,A,c,i[u+10],15,-1051523),c=m(c,h,d,A,i[u+1],21,-2054922799),A=m(A,c,h,d,i[u+8],6,1873313359),d=m(d,A,c,h,i[u+15],10,-30611744),h=m(h,d,A,c,i[u+6],15,-1560198380),c=m(c,h,d,A,i[u+13],21,1309151649),A=m(A,c,h,d,i[u+4],6,-145523070),d=m(d,A,c,h,i[u+11],10,-1120210379),h=m(h,d,A,c,i[u+2],15,718787259),c=m(c,h,d,A,i[u+9],21,-343485551),A=A+y>>>0,c=c+b>>>0,h=h+v>>>0,d=d+E>>>0}return n.endian([A,c,h,d])})._ff=function(t,e,i,n,r,o,a){var s=t+(e&i|~e&n)+(r>>>0)+a;return(s<<o|s>>>32-o)+e},s._gg=function(t,e,i,n,r,o,a){var s=t+(e&n|i&~n)+(r>>>0)+a;return(s<<o|s>>>32-o)+e},s._hh=function(t,e,i,n,r,o,a){var s=t+(e^i^n)+(r>>>0)+a;return(s<<o|s>>>32-o)+e},s._ii=function(t,e,i,n,r,o,a){var s=t+(i^(e|~n))+(r>>>0)+a;return(s<<o|s>>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var i=n.wordsToBytes(s(t,e));return e&&e.asBytes?i:e&&e.asString?a.bytesToString(i):n.bytesToHex(i)}},22451:function(t,e,i){"use strict";i.d(e,{EH:function(){return Pe},Fl:function(){return _t},LO:function(){return Qt},U5:function(){return Ge},ZN:function(){return Ai},aD:function(){return Te},gx:function(){return hi},hz:function(){return Ye},jQ:function(){return Je},p6:function(){return Z},rC:function(){return Ei},vP:function(){return Gi},z:function(){return Le}});function n(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}var r={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:r}var a=Object.assign,s=Object.getOwnPropertyDescriptor,l=Object.defineProperty,A=Object.prototype,c=[];Object.freeze(c);var h={};Object.freeze(h);var d="undefined"!=typeof Proxy,u=Object.toString();function p(){d||n("Proxy not available")}function g(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var f=function(){};function m(t){return"function"==typeof t}function y(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function b(t){return null!==t&&"object"==typeof t}function v(t){if(!b(t))return!1;var e=Object.getPrototypeOf(t);if(null==e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i.toString()===u}function E(t){var e=null==t?void 0:t.constructor;return!!e&&("GeneratorFunction"===e.name||"GeneratorFunction"===e.displayName)}function I(t,e,i){l(t,e,{enumerable:!1,writable:!0,configurable:!0,value:i})}function C(t,e,i){l(t,e,{enumerable:!1,writable:!1,configurable:!0,value:i})}function B(t,e){var i="isMobX"+t;return e.prototype[i]=!0,function(t){return b(t)&&!0===t[i]}}function w(t){return t instanceof Map}function x(t){return t instanceof Set}var Q=void 0!==Object.getOwnPropertySymbols;var S="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Q?function(t){
return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function k(t){return null===t?null:"object"==typeof t?""+t:t}function D(t,e){return A.hasOwnProperty.call(t,e)}var _=Object.getOwnPropertyDescriptors||function(t){var e={};return S(t).forEach((function(i){e[i]=s(t,i)})),e};function R(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(r=n.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),n)}var r,o}function M(t,e,i){return e&&R(t.prototype,e),i&&R(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},T.apply(this,arguments)}function F(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,L(t,e)}function L(t,e){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function N(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function U(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return P(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?P(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var O=Symbol("mobx-stored-annotations");function G(t){return Object.assign((function(e,i){H(e,i,t)}),t)}function H(t,e,i){D(t,O)||I(t,O,T({},t[O])),function(t){return t.annotationType_===J}(i)||(t[O][e]=i)}var V=Symbol("mobx administration"),Y=function(){function t(t){void 0===t&&(t="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=zt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=t}var e=t.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},e.reportObserved=function(){return ye(this)},e.reportChanged=function(){fe(),be(this),me()},e.toString=function(){return this.name_},t}(),z=B("Atom",Y);function W(t,e,i){void 0===e&&(e=f),void 0===i&&(i=f);var n=new Y(t);return e!==f&&Ye(n,e),i!==f&&ze(n,i),n}var Z={identity:function(t,e){return t===e},structural:function(t,e){return fn(t,e)},default:function(t,e){return Object.is?Object.is(t,e):t===e?0!==t||1/t==1/e:t!=t&&e!=e},shallow:function(t,e){return fn(t,e,1)}};function j(t,e,i){return ai(t)?t:Array.isArray(t)?Qt.array(t,{name:i}):v(t)?Qt.object(t,void 0,{name:i}):w(t)?Qt.map(t,{name:i}):x(t)?Qt.set(t,{name:i}):"function"!=typeof t||Ne(t)||ri(t)?t:E(t)?ii(t):Fe(i,t)}function q(t){return t}var J="override";function K(t,e){return{annotationType_:t,options_:e,make_:X,extend_:$}}function X(t,e,i,n){var r;if(null!=(r=this.options_)&&r.bound)return null===this.extend_(t,e,i,!1)?0:1;if(n===t.target_)return null===this.extend_(t,e,i,!1)?0:2;if(Ne(i.value))return 1;var o=tt(t,this,e,i,!1);return l(n,e,o),2}function $(t,e,i,n){var r=tt(t,this,e,i);return t.defineProperty_(e,r,n)}function tt(t,e,i,n,r){var o,a,s,l,A,c,h,d;void 0===r&&(r=de.safeDescriptors),d=n,e.annotationType_,d.value;var u,p=n.value;null!=(o=e.options_)&&o.bound&&(p=p.bind(null!=(u=t.proxy_)?u:t.target_));return{value:Nt(null!=(a=null==(s=e.options_)?void 0:s.name)?a:i.toString(),p,null!=(l=null==(A=e.options_)?void 0:A.autoAction)&&l,null!=(c=e.options_)&&c.bound?null!=(h=t.proxy_)?h:t.target_:void 0),configurable:!r||t.isPlainObject_,enumerable:!1,writable:!r}}function et(t,e){return{annotationType_:t,options_:e,make_:it,extend_:nt}}function it(t,e,i,n){var r;if(n===t.target_)return null===this.extend_(t,e,i,!1)?0:2;if(null!=(r=this.options_)&&r.bound&&(!D(t.target_,e)||!ri(t.target_[e]))&&null===this.extend_(t,e,i,!1))return 0;if(ri(i.value))return 1;var o=rt(t,this,e,i,!1,!1);return l(n,e,o),2}function nt(t,e,i,n){var r,o=rt(t,this,e,i,null==(r=this.options_)?void 0:r.bound);return t.defineProperty_(e,o,n)}function rt(t,e,i,n,r,o){var a;void 0===o&&(o=de.safeDescriptors),a=n,e.annotationType_,a.value;var s,l=n.value;(ri(l)||(l=ii(l)),r)&&((l=l.bind(null!=(s=t.proxy_)?s:t.target_)).isMobXFlow=!0);return{value:l,configurable:!o||t.isPlainObject_,enumerable:!1,writable:!o}}function ot(t,e){return{annotationType_:t,options_:e,make_:at,extend_:st}}function at(t,e,i){return null===this.extend_(t,e,i,!1)?0:1}function st(t,e,i,n){return function(t,e,i,n){e.annotationType_,n.get;0}(0,this,0,i),t.defineComputedProperty_(e,T({},this.options_,{get:i.get,set:i.set}),n)}function lt(t,e){return{annotationType_:t,options_:e,make_:At,extend_:ct}}function At(t,e,i){return null===this.extend_(t,e,i,!1)?0:1}function ct(t,e,i,n){var r,o;return function(t,e){e.annotationType_;0}(0,this),t.defineObservableProperty_(e,i.value,null!=(r=null==(o=this.options_)?void 0:o.enhancer)?r:j,n)}var ht="true",dt=ut();function ut(t){return{annotationType_:ht,options_:t,make_:pt,extend_:gt}}function pt(t,e,i,n){var r,o,a,s;if(i.get)return _t.make_(t,e,i,n);if(i.set){var A=Nt(e.toString(),i.set);return n===t.target_?null===t.defineProperty_(e,{configurable:!de.safeDescriptors||t.isPlainObject_,set:A})?0:2:(l(n,e,{configurable:!0,set:A}),2)}if(n!==t.target_&&"function"==typeof i.value)return E(i.value)?(null!=(s=this.options_)&&s.autoBind?ii.bound:ii).make_(t,e,i,n):(null!=(a=this.options_)&&a.autoBind?Fe.bound:Fe).make_(t,e,i,n);var c,h=!1===(null==(r=this.options_)?void 0:r.deep)?Qt.ref:Qt;"function"==typeof i.value&&null!=(o=this.options_)&&o.autoBind&&(i.value=i.value.bind(null!=(c=t.proxy_)?c:t.target_));return h.make_(t,e,i,n)}function gt(t,e,i,n){var r,o,a;if(i.get)return _t.extend_(t,e,i,n);if(i.set)return t.defineProperty_(e,{configurable:!de.safeDescriptors||t.isPlainObject_,set:Nt(e.toString(),i.set)},n);"function"==typeof i.value&&null!=(r=this.options_)&&r.autoBind&&(i.value=i.value.bind(null!=(a=t.proxy_)?a:t.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?Qt.ref:Qt).extend_(t,e,i,n)}var ft={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function mt(t){return t||ft}Object.freeze(ft);var yt=lt("observable"),bt=lt("observable.ref",{enhancer:q}),vt=lt("observable.shallow",{enhancer:function(t,e,i){return null==t||Xi(t)||Fi(t)||Hi(t)||zi(t)?t:Array.isArray(t)?Qt.array(t,{name:i,deep:!1}):v(t)?Qt.object(t,void 0,{name:i,deep:!1}):w(t)?Qt.map(t,{name:i,deep:!1}):x(t)?Qt.set(t,{name:i,deep:!1}):void 0}}),Et=lt("observable.struct",{enhancer:function(t,e){return fn(t,e)?e:t}}),It=G(yt);function Ct(t){return!0===t.deep?j:!1===t.deep?q:(e=t.defaultDecorator)&&null!=(i=null==(n=e.options_)?void 0:n.enhancer)?i:j;var e,i,n}function Bt(t,e,i){if(!y(e))return ai(t)?t:v(t)?Qt.object(t,e,i):Array.isArray(t)?Qt.array(t,e):w(t)?Qt.map(t,e):x(t)?Qt.set(t,e):"object"==typeof t&&null!==t?t:Qt.box(t,e);H(t,e,yt)}a(Bt,It);var wt,xt,Qt=a(Bt,{box:function(t,e){var i=mt(e);return new Vt(t,Ct(i),i.name,!0,i.equals)},array:function(t,e){var i=mt(e);return(!1===de.useProxies||!1===i.proxy?hn:xi)(t,Ct(i),i.name)},map:function(t,e){var i=mt(e);return new Gi(t,Ct(i),i.name)},set:function(t,e){var i=mt(e);return new Yi(t,Ct(i),i.name)},
object:function(t,e,i){return Ke(!1===de.useProxies||!1===(null==i?void 0:i.proxy)?qi({},i):function(t,e){var i,n;return p(),t=qi(t,e),null!=(n=(i=t[V]).proxy_)?n:i.proxy_=new Proxy(t,pi)}({},i),t,e)},ref:G(bt),shallow:G(vt),deep:It,struct:G(Et)}),St="computed",kt=ot(St),Dt=ot("computed.struct",{equals:Z.structural}),_t=function(t,e){if(y(e))return H(t,e,kt);if(v(t))return G(ot(St,t));var i=v(e)?e:{};return i.get=t,i.name||(i.name=t.name||""),new qt(i)};Object.assign(_t,kt),_t.struct=G(Dt);var Rt,Mt=0,Tt=1,Ft=null!=(wt=null==(xt=s((function(){}),"name"))?void 0:xt.configurable)&&wt,Lt={value:"action",configurable:!0,writable:!1,enumerable:!1};function Nt(t,e,i,n){function r(){return Pt(t,i,e,n||this,arguments)}return void 0===i&&(i=!1),r.isMobxAction=!0,Ft&&(Lt.value=t,l(r,"name",Lt)),r}function Pt(t,e,i,r,o){var a=function(t,e){var i=!1,n=0;0;var r=de.trackingDerivation,o=!e||!r;fe();var a=de.allowStateChanges;o&&(re(),a=Ot(!0));var s=ae(!0),l={runAsAction_:o,prevDerivation_:r,prevAllowStateChanges_:a,prevAllowStateReads_:s,notifySpy_:i,startTime_:n,actionId_:Tt++,parentActionId_:Mt};return Mt=l.actionId_,l}(0,e);try{return i.apply(r,o)}catch(t){throw a.error_=t,t}finally{!function(t){Mt!==t.actionId_&&n(30);Mt=t.parentActionId_,void 0!==t.error_&&(de.suppressReactionErrors=!0);Gt(t.prevAllowStateChanges_),se(t.prevAllowStateReads_),me(),t.runAsAction_&&oe(t.prevDerivation_);0;de.suppressReactionErrors=!1}(a)}}function Ut(t,e){var i=Ot(t);try{return e()}finally{Gt(i)}}function Ot(t){var e=de.allowStateChanges;return de.allowStateChanges=t,e}function Gt(t){de.allowStateChanges=t}Rt=Symbol.toPrimitive;var Ht,Vt=function(t){function e(e,i,n,r,o){var a;return void 0===n&&(n="ObservableValue"),void 0===r&&(r=!0),void 0===o&&(o=Z.default),(a=t.call(this,n)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=i,a.name_=n,a.equals=o,a.value_=i(e,void 0,n),a}F(e,t);var i=e.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){this.value_;if((t=this.prepareNewValue_(t))!==de.UNCHANGED){0,this.setNewValue_(t)}},i.prepareNewValue_=function(t){if(te(this),gi(this)){var e=mi(this,{object:this,type:Ci,newValue:t});if(!e)return de.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value_,this.name_),this.equals(this.value_,t)?de.UNCHANGED:t},i.setNewValue_=function(t){var e=this.value_;this.value_=t,this.reportChanged(),yi(this)&&vi(this,{type:Ci,object:this,newValue:t,oldValue:e})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(t){return fi(this,t)},i.observe_=function(t,e){return e&&t({observableKind:"value",debugObjectName:this.name_,object:this,type:Ci,newValue:this.value_,oldValue:void 0}),bi(this,t)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return k(this.get())},i[Rt]=function(){return this.valueOf()},e}(Y),Yt=B("ObservableValue",Vt);Ht=Symbol.toPrimitive;var zt,Wt,Zt,jt,qt=function(){function t(t){this.dependenciesState_=zt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=zt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Kt(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Zt.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,t.get||n(31),this.derivation=t.get,this.name_=t.name||"ComputedValue",t.set&&(this.setter_=Nt("ComputedValue-setter",t.set)),this.equals_=t.equals||(t.compareStructural||t.struct?Z.structural:Z.default),this.scope_=t.context,this.requiresReaction_=t.requiresReaction,this.keepAlive_=!!t.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){!function(t){if(t.lowestObserverState_!==zt.UP_TO_DATE_)return;t.lowestObserverState_=zt.POSSIBLY_STALE_,t.observers_.forEach((function(t){t.dependenciesState_===zt.UP_TO_DATE_&&(t.dependenciesState_=zt.POSSIBLY_STALE_,t.onBecomeStale_())}))}(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},e.get=function(){if(this.isComputing_&&n(32,this.name_,this.derivation),0!==de.inBatch||0!==this.observers_.size||this.keepAlive_){if(ye(this),$t(this)){var t=de.trackingContext;this.keepAlive_&&!t&&(de.trackingContext=this),this.trackAndCompute()&&function(t){if(t.lowestObserverState_===zt.STALE_)return;t.lowestObserverState_=zt.STALE_,t.observers_.forEach((function(e){e.dependenciesState_===zt.POSSIBLY_STALE_?e.dependenciesState_=zt.STALE_:e.dependenciesState_===zt.UP_TO_DATE_&&(t.lowestObserverState_=zt.UP_TO_DATE_)}))}(this),de.trackingContext=t}}else $t(this)&&(this.warnAboutUntrackedRead_(),fe(),this.value_=this.computeValue_(!1),me());var e=this.value_;if(Xt(e))throw e.cause;return e},e.set=function(t){if(this.setter_){this.isRunningSetter_&&n(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,t)}finally{this.isRunningSetter_=!1}}else n(34,this.name_)},e.trackAndCompute=function(){var t=this.value_,e=this.dependenciesState_===zt.NOT_TRACKING_,i=this.computeValue_(!0),n=e||Xt(t)||Xt(i)||!this.equals_(t,i);return n&&(this.value_=i),n},e.computeValue_=function(t){this.isComputing_=!0;var e,i=Ot(!1);if(t)e=ee(this,this.derivation,this.scope_);else if(!0===de.disableErrorBoundaries)e=this.derivation.call(this.scope_);else try{e=this.derivation.call(this.scope_)}catch(t){e=new Kt(t)}return Gt(i),this.isComputing_=!1,e},e.suspend_=function(){this.keepAlive_||(ie(this),this.value_=void 0)},e.observe_=function(t,e){var i=this,n=!0,r=void 0;return Pe((function(){var o=i.get();if(!n||e){var a=re();t({observableKind:"computed",debugObjectName:i.name_,type:Ci,object:i,newValue:o,oldValue:r}),oe(a)}n=!1,r=o}))},e.warnAboutUntrackedRead_=function(){},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return k(this.get())},e[Ht]=function(){return this.valueOf()},t}(),Jt=B("ComputedValue",qt);(Wt=zt||(zt={}))[Wt.NOT_TRACKING_=-1]="NOT_TRACKING_",Wt[Wt.UP_TO_DATE_=0]="UP_TO_DATE_",Wt[Wt.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",Wt[Wt.STALE_=2]="STALE_",(jt=Zt||(Zt={}))[jt.NONE=0]="NONE",jt[jt.LOG=1]="LOG",jt[jt.BREAK=2]="BREAK";var Kt=function(t){this.cause=void 0,this.cause=t};function Xt(t){return t instanceof Kt}function $t(t){switch(t.dependenciesState_){case zt.UP_TO_DATE_:return!1;case zt.NOT_TRACKING_:case zt.STALE_:return!0;case zt.POSSIBLY_STALE_:for(var e=ae(!0),i=re(),n=t.observing_,r=n.length,o=0;o<r;o++){var a=n[o];if(Jt(a)){if(de.disableErrorBoundaries)a.get();else try{a.get()}catch(t){return oe(i),se(e),!0}if(t.dependenciesState_===zt.STALE_)return oe(i),se(e),!0}}return le(t),oe(i),se(e),!1}}function te(t){}function ee(t,e,i){var n=ae(!0);le(t),t.newObserving_=new Array(t.observing_.length+100),t.unboundDepsCount_=0,t.runId_=++de.runId;var r,o=de.trackingDerivation;if(de.trackingDerivation=t,de.inBatch++,!0===de.disableErrorBoundaries)r=e.call(i);else try{r=e.call(i)}catch(t){r=new Kt(t)}return de.inBatch--,de.trackingDerivation=o,function(t){for(var e=t.observing_,i=t.observing_=t.newObserving_,n=zt.UP_TO_DATE_,r=0,o=t.unboundDepsCount_,a=0;a<o;a++){var s=i[a];0===s.diffValue_&&(s.diffValue_=1,r!==a&&(i[r]=s),r++),s.dependenciesState_>n&&(n=s.dependenciesState_)}i.length=r,t.newObserving_=null,o=e.length;for(;o--;){var l=e[o];0===l.diffValue_&&pe(l,t),l.diffValue_=0}for(;r--;){var A=i[r];1===A.diffValue_&&(A.diffValue_=0,ue(A,t))}n!==zt.UP_TO_DATE_&&(t.dependenciesState_=n,t.onBecomeStale_())}(t),se(n),r}function ie(t){var e=t.observing_;t.observing_=[];for(var i=e.length;i--;)pe(e[i],t);t.dependenciesState_=zt.NOT_TRACKING_}function ne(t){var e=re();try{return t()}finally{oe(e)}}function re(){
var t=de.trackingDerivation;return de.trackingDerivation=null,t}function oe(t){de.trackingDerivation=t}function ae(t){var e=de.allowStateReads;return de.allowStateReads=t,e}function se(t){de.allowStateReads=t}function le(t){if(t.dependenciesState_!==zt.UP_TO_DATE_){t.dependenciesState_=zt.UP_TO_DATE_;for(var e=t.observing_,i=e.length;i--;)e[i].lowestObserverState_=zt.UP_TO_DATE_}}var Ae=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},ce=!0,he=!1,de=function(){var t=o();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(ce=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new Ae).version&&(ce=!1),ce?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ae):(setTimeout((function(){he||n(35)}),1),new Ae)}();function ue(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function pe(t,e){t.observers_.delete(e),0===t.observers_.size&&ge(t)}function ge(t){!1===t.isPendingUnobservation_&&(t.isPendingUnobservation_=!0,de.pendingUnobservations.push(t))}function fe(){de.inBatch++}function me(){if(0==--de.inBatch){Ce();for(var t=de.pendingUnobservations,e=0;e<t.length;e++){var i=t[e];i.isPendingUnobservation_=!1,0===i.observers_.size&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof qt&&i.suspend_())}de.pendingUnobservations=[]}}function ye(t){var e=de.trackingDerivation;return null!==e?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved_&&de.trackingContext&&(t.isBeingObserved_=!0,t.onBO())),t.isBeingObserved_):(0===t.observers_.size&&de.inBatch>0&&ge(t),!1)}function be(t){t.lowestObserverState_!==zt.STALE_&&(t.lowestObserverState_=zt.STALE_,t.observers_.forEach((function(t){t.dependenciesState_===zt.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=zt.STALE_})))}var ve=function(){function t(t,e,i,n){void 0===t&&(t="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=zt.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Zt.NONE,this.name_=t,this.onInvalidate_=e,this.errorHandler_=i,this.requiresObservable_=n}var e=t.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,de.pendingReactions.push(this),Ce())},e.isScheduled=function(){return this.isScheduled_},e.runReaction_=function(){if(!this.isDisposed_){fe(),this.isScheduled_=!1;var t=de.trackingContext;if(de.trackingContext=this,$t(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}de.trackingContext=t,me()}},e.track=function(t){if(!this.isDisposed_){fe();0,this.isRunning_=!0;var e=de.trackingContext;de.trackingContext=this;var i=ee(this,t,void 0);de.trackingContext=e,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ie(this),Xt(i)&&this.reportExceptionInDerivation_(i.cause),me()}},e.reportExceptionInDerivation_=function(t){var e=this;if(this.errorHandler_)this.errorHandler_(t,this);else{if(de.disableErrorBoundaries)throw t;var i="[mobx] uncaught error in '"+this+"'";de.suppressReactionErrors||console.error(i,t),de.globalReactionErrorHandlers.forEach((function(i){return i(t,e)}))}},e.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(fe(),ie(this),me()))},e.getDisposer_=function(){var t=this.dispose.bind(this);return t[V]=this,t},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(t){void 0===t&&(t=!1),function(){n("trace() is not available in production builds");for(var t=!1,e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];"boolean"==typeof i[i.length-1]&&(t=i.pop());var o=function(t){switch(t.length){case 0:return de.trackingDerivation;case 1:return dn(t[0]);case 2:return dn(t[0],t[1])}}(i);if(!o)return n("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Zt.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=t?Zt.BREAK:Zt.LOG}(this,t)},t}();var Ee=100,Ie=function(t){return t()};function Ce(){de.inBatch>0||de.isRunningReactions||Ie(Be)}function Be(){de.isRunningReactions=!0;for(var t=de.pendingReactions,e=0;t.length>0;){++e===Ee&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),n=0,r=i.length;n<r;n++)i[n].runReaction_()}de.isRunningReactions=!1}var we=B("Reaction",ve);var xe="action",Qe="autoAction",Se="<unnamed action>",ke=K(xe),De=K("action.bound",{bound:!0}),_e=K(Qe,{autoAction:!0}),Re=K("autoAction.bound",{autoAction:!0,bound:!0});function Me(t){return function(e,i){return m(e)?Nt(e.name||Se,e,t):m(i)?Nt(e,i,t):y(i)?H(e,i,t?_e:ke):y(e)?G(K(t?Qe:xe,{name:e,autoAction:t})):void 0}}var Te=Me(!1);Object.assign(Te,ke);var Fe=Me(!0);function Le(t){return Pt(t.name,!1,t,this,void 0)}function Ne(t){return m(t)&&!0===t.isMobxAction}function Pe(t,e){var i,n;void 0===e&&(e=h);var r,o=null!=(i=null==(n=e)?void 0:n.name)?i:"Autorun";if(!e.scheduler&&!e.delay)r=new ve(o,(function(){this.track(l)}),e.onError,e.requiresObservable);else{var a=Oe(e),s=!1;r=new ve(o,(function(){s||(s=!0,a((function(){s=!1,r.isDisposed_||r.track(l)})))}),e.onError,e.requiresObservable)}function l(){t(r)}return r.schedule_(),r.getDisposer_()}Object.assign(Fe,_e),Te.bound=G(De),Fe.bound=G(Re);var Ue=function(t){return t()};function Oe(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Ue}function Ge(t,e,i){var n;void 0===i&&(i=h);var r,o,a,s,l=null!=(n=i.name)?n:"Reaction",A=Te(l,i.onError?(r=i.onError,o=e,function(){try{return o.apply(this,arguments)}catch(t){r.call(this,t)}}):e),c=!i.scheduler&&!i.delay,d=Oe(i),u=!0,p=!1,g=i.compareStructural?Z.structural:i.equals||Z.default,f=new ve(l,(function(){u||c?m():p||(p=!0,d(m))}),i.onError,i.requiresObservable);function m(){if(p=!1,!f.isDisposed_){var e=!1;f.track((function(){var i=Ut(!1,(function(){return t(f)}));e=u||!g(a,i),s=a,a=i})),(u&&i.fireImmediately||!u&&e)&&A(a,s,f),u=!1}}return f.schedule_(),f.getDisposer_()}var He="onBO",Ve="onBUO";function Ye(t,e,i){return We(He,t,e,i)}function ze(t,e,i){return We(Ve,t,e,i)}function We(t,e,i,n){var r="function"==typeof n?dn(e,i):dn(e),o=m(n)?n:i,a=t+"L";return r[a]?r[a].add(o):r[a]=new Set([o]),function(){var t=r[a];t&&(t.delete(o),0===t.size&&delete r[a])}}var Ze="never",je="always",qe="observed";function Je(t){!0===t.isolateGlobalState&&function(){if((de.pendingReactions.length||de.inBatch||de.isRunningReactions)&&n(36),he=!0,ce){var t=o();0==--t.__mobxInstanceCount&&(t.__mobxGlobals=void 0),de=new Ae}}();var e,i,r=t.useProxies,a=t.enforceActions;if(void 0!==r&&(de.useProxies=r===je||r!==Ze&&"undefined"!=typeof Proxy),"ifavailable"===r&&(de.verifyProxies=!0),void 0!==a){var s=a===je?je:a===qe;de.enforceActions=s,de.allowStateChanges=!0!==s&&s!==je}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(e){e in t&&(de[e]=!!t[e])})),de.allowStateReads=!de.observableRequiresReaction,t.reactionScheduler&&(e=t.reactionScheduler,i=Ie,Ie=function(t){return e((function(){return i(t)}))})}function Ke(t,e,i,n){var r=_(e),o=qi(t,n)[V];fe();try{S(r).forEach((function(t){o.extend_(t,r[t],!i||(!(t in i)||i[t]))}))}finally{me()}return t}
var Xe=0;function $e(){this.message="FLOW_CANCELLED"}$e.prototype=Object.create(Error.prototype);var ti=et("flow"),ei=et("flow.bound",{bound:!0}),ii=Object.assign((function(t,e){if(y(e))return H(t,e,ti);var i=t,n=i.name||"<unnamed flow>",r=function(){var t,e=arguments,r=++Xe,o=Te(n+" - runid: "+r+" - init",i).apply(this,e),a=void 0,s=new Promise((function(e,i){var s=0;function l(t){var e;a=void 0;try{e=Te(n+" - runid: "+r+" - yield "+s++,o.next).call(o,t)}catch(t){return i(t)}c(e)}function A(t){var e;a=void 0;try{e=Te(n+" - runid: "+r+" - yield "+s++,o.throw).call(o,t)}catch(t){return i(t)}c(e)}function c(t){if(!m(null==t?void 0:t.then))return t.done?e(t.value):(a=Promise.resolve(t.value)).then(l,A);t.then(c,i)}t=i,l(void 0)}));return s.cancel=Te(n+" - runid: "+r+" - cancel",(function(){try{a&&ni(a);var e=o.return(void 0),i=Promise.resolve(e.value);i.then(f,f),ni(i),t(new $e)}catch(e){t(e)}})),s};return r.isMobXFlow=!0,r}),ti);function ni(t){m(t.cancel)&&t.cancel()}function ri(t){return!0===(null==t?void 0:t.isMobXFlow)}function oi(t,e){return!!t&&(void 0!==e?!!Xi(t)&&t[V].values_.has(e):Xi(t)||!!t[V]||z(t)||we(t)||Jt(t))}function ai(t){return oi(t)}function si(t,e,i){return t.set(e,i),i}function li(t,e){if(null==t||"object"!=typeof t||t instanceof Date||!ai(t))return t;if(Yt(t)||Jt(t))return li(t.get(),e);if(e.has(t))return e.get(t);if(Fi(t)){var i=si(e,t,new Array(t.length));return t.forEach((function(t,n){i[n]=li(t,e)})),i}if(zi(t)){var r=si(e,t,new Set);return t.forEach((function(t){r.add(li(t,e))})),r}if(Hi(t)){var o=si(e,t,new Map);return t.forEach((function(t,i){o.set(i,li(t,e))})),o}var a=si(e,t,{});return function(t){if(Xi(t))return t[V].ownKeys_();n(38)}(t).forEach((function(i){A.propertyIsEnumerable.call(t,i)&&(a[i]=li(t[i],e))})),a}function Ai(t,e){return li(t,new Map)}function ci(t,e){void 0===e&&(e=void 0),fe();try{return t.apply(e)}finally{me()}}function hi(t,e,i){return 1===arguments.length||e&&"object"==typeof e?function(t,e){var i,n,r;0;if(null!=e&&null!=(i=e.signal)&&i.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var o=new Promise((function(i,o){var a,s=di(t,i,T({},e,{onError:o}));n=function(){s(),o(new Error("WHEN_CANCELLED"))},r=function(){s(),o(new Error("WHEN_ABORTED"))},null==e||null==(a=e.signal)||null==a.addEventListener||a.addEventListener("abort",r)})).finally((function(){var t;return null==e||null==(t=e.signal)||null==t.removeEventListener?void 0:t.removeEventListener("abort",r)}));return o.cancel=n,o}(t,e):di(t,e,i||{})}function di(t,e,i){var n;if("number"==typeof i.timeout){var r=new Error("WHEN_TIMEOUT");n=setTimeout((function(){if(!a[V].isDisposed_){if(a(),!i.onError)throw r;i.onError(r)}}),i.timeout)}i.name="When";var o=Nt("When-effect",e),a=Pe((function(e){Ut(!1,t)&&(e.dispose(),n&&clearTimeout(n),o())}),i);return a}function ui(t){return t[V]}ii.bound=G(ei);var pi={has:function(t,e){return ui(t).has_(e)},get:function(t,e){return ui(t).get_(e)},set:function(t,e,i){var n;return!!y(e)&&(null==(n=ui(t).set_(e,i,!0))||n)},deleteProperty:function(t,e){var i;return!!y(e)&&(null==(i=ui(t).delete_(e,!0))||i)},defineProperty:function(t,e,i){var n;return null==(n=ui(t).defineProperty_(e,i))||n},ownKeys:function(t){return ui(t).ownKeys_()},preventExtensions:function(t){n(13)}};function gi(t){return void 0!==t.interceptors_&&t.interceptors_.length>0}function fi(t,e){var i=t.interceptors_||(t.interceptors_=[]);return i.push(e),g((function(){var t=i.indexOf(e);-1!==t&&i.splice(t,1)}))}function mi(t,e){var i=re();try{for(var r=[].concat(t.interceptors_||[]),o=0,a=r.length;o<a&&((e=r[o](e))&&!e.type&&n(14),e);o++);return e}finally{oe(i)}}function yi(t){return void 0!==t.changeListeners_&&t.changeListeners_.length>0}function bi(t,e){var i=t.changeListeners_||(t.changeListeners_=[]);return i.push(e),g((function(){var t=i.indexOf(e);-1!==t&&i.splice(t,1)}))}function vi(t,e){var i=re(),n=t.changeListeners_;if(n){for(var r=0,o=(n=n.slice()).length;r<o;r++)n[r](e);oe(i)}}function Ei(t,e,i){var n=qi(t,i)[V];fe();try{0,null!=e||(e=function(t){return D(t,O)||I(t,O,T({},t[O])),t[O]}(t)),S(e).forEach((function(t){return n.make_(t,e[t])}))}finally{me()}return t}var Ii="splice",Ci="update",Bi={get:function(t,e){var i=t[V];return e===V?i:"length"===e?i.getArrayLength_():"string"!=typeof e||isNaN(e)?D(Qi,e)?Qi[e]:t[e]:i.get_(parseInt(e))},set:function(t,e,i){var n=t[V];return"length"===e&&n.setArrayLength_(i),"symbol"==typeof e||isNaN(e)?t[e]=i:n.set_(parseInt(e),i),!0},preventExtensions:function(){n(15)}},wi=function(){function t(t,e,i,n){void 0===t&&(t="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=n,this.atom_=new Y(t),this.enhancer_=function(t,i){return e(t,i,"ObservableArray[..]")}}var e=t.prototype;return e.dehanceValue_=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.dehanceValues_=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},e.intercept_=function(t){return fi(this,t)},e.observe_=function(t,e){return void 0===e&&(e=!1),e&&t({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),bi(this,t)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(t){("number"!=typeof t||isNaN(t)||t<0)&&n("Out of range: "+t);var e=this.values_.length;if(t!==e)if(t>e){for(var i=new Array(t-e),r=0;r<t-e;r++)i[r]=void 0;this.spliceWithArray_(e,0,i)}else this.spliceWithArray_(t,e-t)},e.updateArrayLength_=function(t,e){t!==this.lastKnownLength_&&n(16),this.lastKnownLength_+=e,this.legacyMode_&&e>0&&cn(t+e+1)},e.spliceWithArray_=function(t,e,i){var n=this;this.atom_;var r=this.values_.length;if(void 0===t?t=0:t>r?t=r:t<0&&(t=Math.max(0,r+t)),e=1===arguments.length?r-t:null==e?0:Math.max(0,Math.min(e,r-t)),void 0===i&&(i=c),gi(this)){var o=mi(this,{object:this.proxy_,type:Ii,index:t,removedCount:e,added:i});if(!o)return c;e=o.removedCount,i=o.added}if(i=0===i.length?i:i.map((function(t){return n.enhancer_(t,void 0)})),this.legacyMode_){var a=i.length-e;this.updateArrayLength_(r,a)}var s=this.spliceItemsIntoValues_(t,e,i);return 0===e&&0===i.length||this.notifyArraySplice_(t,i,s),this.dehanceValues_(s)},e.spliceItemsIntoValues_=function(t,e,i){var n;if(i.length<1e4)return(n=this.values_).splice.apply(n,[t,e].concat(i));var r=this.values_.slice(t,t+e),o=this.values_.slice(t+e);this.values_.length+=i.length-e;for(var a=0;a<i.length;a++)this.values_[t+a]=i[a];for(var s=0;s<o.length;s++)this.values_[t+i.length+s]=o[s];return r},e.notifyArrayChildUpdate_=function(t,e,i){var n=!this.owned_&&!1,r=yi(this),o=r||n?{observableKind:"array",object:this.proxy_,type:Ci,debugObjectName:this.atom_.name_,index:t,newValue:e,oldValue:i}:null;this.atom_.reportChanged(),r&&vi(this,o)},e.notifyArraySplice_=function(t,e,i){var n=!this.owned_&&!1,r=yi(this),o=r||n?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ii,index:t,removed:i,added:e,removedCount:i.length,addedCount:e.length}:null;this.atom_.reportChanged(),r&&vi(this,o)},e.get_=function(t){if(!(this.legacyMode_&&t>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[t]);console.warn("[mobx] Out of bounds read: "+t)},e.set_=function(t,e){var i=this.values_;if(this.legacyMode_&&t>i.length&&n(17,t,i.length),t<i.length){this.atom_;var r=i[t];if(gi(this)){var o=mi(this,{type:Ci,object:this.proxy_,index:t,newValue:e});if(!o)return;e=o.newValue}(e=this.enhancer_(e,r))!==r&&(i[t]=e,this.notifyArrayChildUpdate_(t,e,r))}else{for(var a=new Array(t+1-i.length),s=0;s<a.length-1;s++)a[s]=void 0;a[a.length-1]=e,this.spliceWithArray_(i.length,0,a)}},t}();function xi(t,e,i,n){void 0===i&&(i="ObservableArray"),void 0===n&&(n=!1),p();var r=new wi(i,e,n,!1);C(r.values_,V,r);var o=new Proxy(r.values_,Bi);if(r.proxy_=o,t&&t.length){var a=Ot(!0)
;r.spliceWithArray_(0,0,t),Gt(a)}return o}var Qi={clear:function(){return this.splice(0)},replace:function(t){var e=this[V];return e.spliceWithArray_(0,e.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];var o=this[V];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,e)}return o.spliceWithArray_(t,e,n)},spliceWithArray:function(t,e,i){return this[V].spliceWithArray_(t,e,i)},push:function(){for(var t=this[V],e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t.spliceWithArray_(t.values_.length,0,i),t.values_.length},pop:function(){return this.splice(Math.max(this[V].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[V],e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t.spliceWithArray_(0,0,i),t.values_.length},reverse:function(){return de.trackingDerivation&&n(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){de.trackingDerivation&&n(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var e=this[V],i=e.dehanceValues_(e.values_).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};function Si(t,e){"function"==typeof Array.prototype[t]&&(Qi[t]=e(t))}function ki(t){return function(){var e=this[V];e.atom_.reportObserved();var i=e.dehanceValues_(e.values_);return i[t].apply(i,arguments)}}function Di(t){return function(e,i){var n=this,r=this[V];return r.atom_.reportObserved(),r.dehanceValues_(r.values_)[t]((function(t,r){return e.call(i,t,r,n)}))}}function _i(t){return function(){var e=this,i=this[V];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),r=arguments[0];return arguments[0]=function(t,i,n){return r(t,i,n,e)},n[t].apply(n,arguments)}}Si("concat",ki),Si("flat",ki),Si("includes",ki),Si("indexOf",ki),Si("join",ki),Si("lastIndexOf",ki),Si("slice",ki),Si("toString",ki),Si("toLocaleString",ki),Si("every",Di),Si("filter",Di),Si("find",Di),Si("findIndex",Di),Si("flatMap",Di),Si("forEach",Di),Si("map",Di),Si("some",Di),Si("reduce",_i),Si("reduceRight",_i);var Ri,Mi,Ti=B("ObservableArrayAdministration",wi);function Fi(t){return b(t)&&Ti(t[V])}var Li={},Ni="add",Pi="delete";Ri=Symbol.iterator,Mi=Symbol.toStringTag;var Ui,Oi,Gi=function(){function t(t,e,i){var r=this;void 0===e&&(e=j),void 0===i&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[V]=Li,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=e,this.name_=i,m(Map)||n(18),this.keysAtom_=W("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Ut(!0,(function(){r.merge(t)}))}var e=t.prototype;return e.has_=function(t){return this.data_.has(t)},e.has=function(t){var e=this;if(!de.trackingDerivation)return this.has_(t);var i=this.hasMap_.get(t);if(!i){var n=i=new Vt(this.has_(t),q,"ObservableMap.key?",!1);this.hasMap_.set(t,n),ze(n,(function(){return e.hasMap_.delete(t)}))}return i.get()},e.set=function(t,e){var i=this.has_(t);if(gi(this)){var n=mi(this,{type:i?Ci:Ni,object:this,newValue:e,name:t});if(!n)return this;e=n.newValue}return i?this.updateValue_(t,e):this.addValue_(t,e),this},e.delete=function(t){var e=this;if((this.keysAtom_,gi(this))&&!mi(this,{type:Pi,object:this,name:t}))return!1;if(this.has_(t)){var i=yi(this),n=i?{observableKind:"map",debugObjectName:this.name_,type:Pi,object:this,oldValue:this.data_.get(t).value_,name:t}:null;return ci((function(){var i;e.keysAtom_.reportChanged(),null==(i=e.hasMap_.get(t))||i.setNewValue_(!1),e.data_.get(t).setNewValue_(void 0),e.data_.delete(t)})),i&&vi(this,n),!0}return!1},e.updateValue_=function(t,e){var i=this.data_.get(t);if((e=i.prepareNewValue_(e))!==de.UNCHANGED){var n=yi(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Ci,object:this,oldValue:i.value_,name:t,newValue:e}:null;0,i.setNewValue_(e),n&&vi(this,r)}},e.addValue_=function(t,e){var i=this;this.keysAtom_,ci((function(){var n,r=new Vt(e,i.enhancer_,"ObservableMap.key",!1);i.data_.set(t,r),e=r.value_,null==(n=i.hasMap_.get(t))||n.setNewValue_(!0),i.keysAtom_.reportChanged()}));var n=yi(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Ni,object:this,name:t,newValue:e}:null;n&&vi(this,r)},e.get=function(t){return this.has(t)?this.dehanceValue_(this.data_.get(t).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var t=this,e=this.keys();return bn({next:function(){var i=e.next(),n=i.done,r=i.value;return{done:n,value:n?void 0:t.get(r)}}})},e.entries=function(){var t=this,e=this.keys();return bn({next:function(){var i=e.next(),n=i.done,r=i.value;return{done:n,value:n?void 0:[r,t.get(r)]}}})},e[Ri]=function(){return this.entries()},e.forEach=function(t,e){for(var i,n=U(this);!(i=n()).done;){var r=i.value,o=r[0],a=r[1];t.call(e,a,o,this)}},e.merge=function(t){var e=this;return Hi(t)&&(t=new Map(t)),ci((function(){v(t)?function(t){var e=Object.keys(t);if(!Q)return e;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(e,i.filter((function(e){return A.propertyIsEnumerable.call(t,e)}))):e}(t).forEach((function(i){return e.set(i,t[i])})):Array.isArray(t)?t.forEach((function(t){var i=t[0],n=t[1];return e.set(i,n)})):w(t)?(t.constructor!==Map&&n(19,t),t.forEach((function(t,i){return e.set(i,t)}))):null!=t&&n(20,t)})),this},e.clear=function(){var t=this;ci((function(){ne((function(){for(var e,i=U(t.keys());!(e=i()).done;){var n=e.value;t.delete(n)}}))}))},e.replace=function(t){var e=this;return ci((function(){for(var i,r=function(t){if(w(t)||Hi(t))return t;if(Array.isArray(t))return new Map(t);if(v(t)){var e=new Map;for(var i in t)e.set(i,t[i]);return e}return n(21,t)}(t),o=new Map,a=!1,s=U(e.data_.keys());!(i=s()).done;){var l=i.value;if(!r.has(l))if(e.delete(l))a=!0;else{var A=e.data_.get(l);o.set(l,A)}}for(var c,h=U(r.entries());!(c=h()).done;){var d=c.value,u=d[0],p=d[1],g=e.data_.has(u);if(e.set(u,p),e.data_.has(u)){var f=e.data_.get(u);o.set(u,f),g||(a=!0)}}if(!a)if(e.data_.size!==o.size)e.keysAtom_.reportChanged();else for(var m=e.data_.keys(),y=o.keys(),b=m.next(),E=y.next();!b.done;){if(b.value!==E.value){e.keysAtom_.reportChanged();break}b=m.next(),E=y.next()}e.data_=o})),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(t,e){return bi(this,t)},e.intercept_=function(t){return fi(this,t)},M(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Mi,get:function(){return"Map"}}]),t}(),Hi=B("ObservableMap",Gi);var Vi={};Ui=Symbol.iterator,Oi=Symbol.toStringTag;var Yi=function(){function t(t,e,i){void 0===e&&(e=j),void 0===i&&(i="ObservableSet"),this.name_=void 0,this[V]=Vi,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,m(Set)||n(22),this.atom_=W(this.name_),this.enhancer_=function(t,n){return e(t,n,i)},t&&this.replace(t)}var e=t.prototype;return e.dehanceValue_=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.clear=function(){var t=this;ci((function(){ne((function(){for(var e,i=U(t.data_.values());!(e=i()).done;){var n=e.value;t.delete(n)}}))}))},e.forEach=function(t,e){for(var i,n=U(this);!(i=n()).done;){var r=i.value;t.call(e,r,r,this)}},e.add=function(t){var e=this;if((this.atom_,gi(this))&&!mi(this,{type:Ni,object:this,newValue:t}))return this;if(!this.has(t)){ci((function(){e.data_.add(e.enhancer_(t,void 0)),e.atom_.reportChanged()}));var i=!1,n=yi(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Ni,object:this,newValue:t}:null;i,n&&vi(this,r)}return this},e.delete=function(t){var e=this;if(gi(this)&&!mi(this,{type:Pi,object:this,oldValue:t}))return!1;if(this.has(t)){var i=yi(this),n=i?{observableKind:"set",debugObjectName:this.name_,type:Pi,object:this,oldValue:t}:null
;return ci((function(){e.atom_.reportChanged(),e.data_.delete(t)})),i&&vi(this,n),!0}return!1},e.has=function(t){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(t))},e.entries=function(){var t=0,e=Array.from(this.keys()),i=Array.from(this.values());return bn({next:function(){var n=t;return t+=1,n<i.length?{value:[e[n],i[n]],done:!1}:{done:!0}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var t=this,e=0,i=Array.from(this.data_.values());return bn({next:function(){return e<i.length?{value:t.dehanceValue_(i[e++]),done:!1}:{done:!0}}})},e.replace=function(t){var e=this;return zi(t)&&(t=new Set(t)),ci((function(){Array.isArray(t)||x(t)?(e.clear(),t.forEach((function(t){return e.add(t)}))):null!=t&&n("Cannot initialize set from "+t)})),this},e.observe_=function(t,e){return bi(this,t)},e.intercept_=function(t){return fi(this,t)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[Ui]=function(){return this.values()},M(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Oi,get:function(){return"Set"}}]),t}(),zi=B("ObservableSet",Yi),Wi=Object.create(null),Zi="remove",ji=function(){function t(t,e,i,n){void 0===e&&(e=new Map),void 0===n&&(n=dt),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=t,this.values_=e,this.name_=i,this.defaultAnnotation_=n,this.keysAtom_=new Y("ObservableObject.keys"),this.isPlainObject_=v(this.target_)}var e=t.prototype;return e.getObservablePropValue_=function(t){return this.values_.get(t).get()},e.setObservablePropValue_=function(t,e){var i=this.values_.get(t);if(i instanceof qt)return i.set(e),!0;if(gi(this)){var n=mi(this,{type:Ci,object:this.proxy_||this.target_,name:t,newValue:e});if(!n)return null;e=n.newValue}if((e=i.prepareNewValue_(e))!==de.UNCHANGED){var r=yi(this),o=r?{type:Ci,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:t,newValue:e}:null;0,i.setNewValue_(e),r&&vi(this,o)}return!0},e.get_=function(t){return de.trackingDerivation&&!D(this.target_,t)&&this.has_(t),this.target_[t]},e.set_=function(t,e,i){return void 0===i&&(i=!1),D(this.target_,t)?this.values_.has(t)?this.setObservablePropValue_(t,e):i?Reflect.set(this.target_,t,e):(this.target_[t]=e,!0):this.extend_(t,{value:e,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},e.has_=function(t){if(!de.trackingDerivation)return t in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var e=this.pendingKeys_.get(t);return e||(e=new Vt(t in this.target_,q,"ObservableObject.key?",!1),this.pendingKeys_.set(t,e)),e.get()},e.make_=function(t,e){if(!0===e&&(e=this.defaultAnnotation_),!1!==e){if(tn(this,e,t),!(t in this.target_)){var i;if(null!=(i=this.target_[O])&&i[t])return;n(1,e.annotationType_,this.name_+"."+t.toString())}for(var r=this.target_;r&&r!==A;){var o=s(r,t);if(o){var a=e.make_(this,t,o,r);if(0===a)return;if(1===a)break}r=Object.getPrototypeOf(r)}$i(this,e,t)}},e.extend_=function(t,e,i,n){if(void 0===n&&(n=!1),!0===i&&(i=this.defaultAnnotation_),!1===i)return this.defineProperty_(t,e,n);tn(this,i,t);var r=i.extend_(this,t,e,n);return r&&$i(this,i,t),r},e.defineProperty_=function(t,e,i){void 0===i&&(i=!1);try{fe();var n=this.delete_(t);if(!n)return n;if(gi(this)){var r=mi(this,{object:this.proxy_||this.target_,name:t,type:Ni,newValue:e.value});if(!r)return null;var o=r.newValue;e.value!==o&&(e=T({},e,{value:o}))}if(i){if(!Reflect.defineProperty(this.target_,t,e))return!1}else l(this.target_,t,e);this.notifyPropertyAddition_(t,e.value)}finally{me()}return!0},e.defineObservableProperty_=function(t,e,i,n){void 0===n&&(n=!1);try{fe();var r=this.delete_(t);if(!r)return r;if(gi(this)){var o=mi(this,{object:this.proxy_||this.target_,name:t,type:Ni,newValue:e});if(!o)return null;e=o.newValue}var a=Ki(t),s={configurable:!de.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(n){if(!Reflect.defineProperty(this.target_,t,s))return!1}else l(this.target_,t,s);var A=new Vt(e,i,"ObservableObject.key",!1);this.values_.set(t,A),this.notifyPropertyAddition_(t,A.value_)}finally{me()}return!0},e.defineComputedProperty_=function(t,e,i){void 0===i&&(i=!1);try{fe();var n=this.delete_(t);if(!n)return n;if(gi(this))if(!mi(this,{object:this.proxy_||this.target_,name:t,type:Ni,newValue:void 0}))return null;e.name||(e.name="ObservableObject.key"),e.context=this.proxy_||this.target_;var r=Ki(t),o={configurable:!de.safeDescriptors||this.isPlainObject_,enumerable:!1,get:r.get,set:r.set};if(i){if(!Reflect.defineProperty(this.target_,t,o))return!1}else l(this.target_,t,o);this.values_.set(t,new qt(e)),this.notifyPropertyAddition_(t,void 0)}finally{me()}return!0},e.delete_=function(t,e){if(void 0===e&&(e=!1),!D(this.target_,t))return!0;if(gi(this)&&!mi(this,{object:this.proxy_||this.target_,name:t,type:Zi}))return null;try{var i,n;fe();var r,o=yi(this),a=this.values_.get(t),l=void 0;if(!a&&o)l=null==(r=s(this.target_,t))?void 0:r.value;if(e){if(!Reflect.deleteProperty(this.target_,t))return!1}else delete this.target_[t];if(a&&(this.values_.delete(t),a instanceof Vt&&(l=a.value_),be(a)),this.keysAtom_.reportChanged(),null==(i=this.pendingKeys_)||null==(n=i.get(t))||n.set(t in this.target_),o){var A={type:Zi,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:l,name:t};0,o&&vi(this,A)}}finally{me()}return!0},e.observe_=function(t,e){return bi(this,t)},e.intercept_=function(t){return fi(this,t)},e.notifyPropertyAddition_=function(t,e){var i,n,r=yi(this);if(r){var o=r?{type:Ni,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:t,newValue:e}:null;0,r&&vi(this,o)}null==(i=this.pendingKeys_)||null==(n=i.get(t))||n.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),S(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function qi(t,e){var i;if(D(t,V))return t;var n=null!=(i=null==e?void 0:e.name)?i:"ObservableObject",r=new ji(t,new Map,String(n),function(t){var e;return t?null!=(e=t.defaultDecorator)?e:ut(t):void 0}(e));return I(t,V,r),t}var Ji=B("ObservableObjectAdministration",ji);function Ki(t){return Wi[t]||(Wi[t]={get:function(){return this[V].getObservablePropValue_(t)},set:function(e){return this[V].setObservablePropValue_(t,e)}})}function Xi(t){return!!b(t)&&Ji(t[V])}function $i(t,e,i){var n;null==(n=t.target_[O])||delete n[i]}function tn(t,e,i){}var en,nn,rn=ln(0),on=0,an=function(){};en=an,nn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(en.prototype,nn):void 0!==en.prototype.__proto__?en.prototype.__proto__=nn:en.prototype=nn;var sn=function(t,e,i){function n(e,i,n,r){var o;void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),o=t.call(this)||this;var a=new wi(n,i,r,!0);if(a.proxy_=N(o),C(N(o),V,a),e&&e.length){var s=Ot(!0);o.spliceWithArray(0,0,e),Gt(s)}return Object.defineProperty(N(o),"0",rn),o}F(n,t);var r=n.prototype;return r.concat=function(){this[V].atom_.reportObserved();for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),e.map((function(t){return Fi(t)?t.slice():t})))},r[i]=function(){var t=this,e=0;return bn({next:function(){return e<t.length?{value:t[e++],done:!1}:{done:!0,value:void 0}}})},M(n,[{key:"length",get:function(){return this[V].getArrayLength_()},set:function(t){this[V].setArrayLength_(t)}},{key:e,get:function(){return"Array"}}]),n}(an,Symbol.toStringTag,Symbol.iterator);function ln(t){return{enumerable:!1,configurable:!0,get:function(){return this[V].get_(t)},set:function(e){this[V].set_(t,e)}}}function An(t){l(sn.prototype,""+t,ln(t))}function cn(t){if(t>on){for(var e=on;e<t+100;e++)An(e);on=t}}function hn(t,e,i){return new sn(t,e,i)}function dn(t,e){if("object"==typeof t&&null!==t){
if(Fi(t))return void 0!==e&&n(23),t[V].atom_;if(zi(t))return t.atom_;if(Hi(t)){if(void 0===e)return t.keysAtom_;var i=t.data_.get(e)||t.hasMap_.get(e);return i||n(25,e,pn(t)),i}if(Xi(t)){if(!e)return n(26);var r=t[V].values_.get(e);return r||n(27,e,pn(t)),r}if(z(t)||Jt(t)||we(t))return t}else if(m(t)&&we(t[V]))return t[V];n(28)}function un(t,e){return t||n(29),void 0!==e?un(dn(t,e)):z(t)||Jt(t)||we(t)||Hi(t)||zi(t)?t:t[V]?t[V]:void n(24,t)}function pn(t,e){var i;if(void 0!==e)i=dn(t,e);else{if(Ne(t))return t.name;i=Xi(t)||Hi(t)||zi(t)?un(t):dn(t)}return i.name_}Object.entries(Qi).forEach((function(t){var e=t[0],i=t[1];"concat"!==e&&I(sn.prototype,e,i)})),cn(1e3);var gn=A.toString;function fn(t,e,i){return void 0===i&&(i=-1),mn(t,e,i)}function mn(t,e,i,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var o=typeof t;if("function"!==o&&"object"!==o&&"object"!=typeof e)return!1;var a=gn.call(t);if(a!==gn.call(e))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":i>=0&&i++}t=yn(t),e=yn(e);var s="[object Array]"===a;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var l=t.constructor,A=e.constructor;if(l!==A&&!(m(l)&&l instanceof l&&m(A)&&A instanceof A)&&"constructor"in t&&"constructor"in e)return!1}if(0===i)return!1;i<0&&(i=-1),r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===t)return r[c]===e;if(n.push(t),r.push(e),s){if((c=t.length)!==e.length)return!1;for(;c--;)if(!mn(t[c],e[c],i-1,n,r))return!1}else{var h,d=Object.keys(t);if(c=d.length,Object.keys(e).length!==c)return!1;for(;c--;)if(!D(e,h=d[c])||!mn(t[h],e[h],i-1,n,r))return!1}return n.pop(),r.pop(),!0}function yn(t){return Fi(t)?t.slice():w(t)||Hi(t)||x(t)||zi(t)?Array.from(t.entries()):t}function bn(t){return t[Symbol.iterator]=vn,t}function vn(){return this}["Symbol","Map","Set"].forEach((function(t){void 0===o()[t]&&n("MobX requires global '"+t+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:pn},$mobx:V})},8639:function(t,e){"use strict";e.byteLength=function(t){var e=s(t),i=e[0],n=e[1];return 3*(i+n)/4-n},e.toByteArray=function(t){var e,i,o=s(t),a=o[0],l=o[1],A=new r(function(t,e,i){return 3*(e+i)/4-i}(0,a,l)),c=0,h=l>0?a-4:a;for(i=0;i<h;i+=4)e=n[t.charCodeAt(i)]<<18|n[t.charCodeAt(i+1)]<<12|n[t.charCodeAt(i+2)]<<6|n[t.charCodeAt(i+3)],A[c++]=e>>16&255,A[c++]=e>>8&255,A[c++]=255&e;2===l&&(e=n[t.charCodeAt(i)]<<2|n[t.charCodeAt(i+1)]>>4,A[c++]=255&e);1===l&&(e=n[t.charCodeAt(i)]<<10|n[t.charCodeAt(i+1)]<<4|n[t.charCodeAt(i+2)]>>2,A[c++]=e>>8&255,A[c++]=255&e);return A},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],a=16383,s=0,A=n-r;s<A;s+=a)o.push(l(t,s,s+a>A?A:s+a));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],n=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)i[a]=o[a],n[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");return-1===i&&(i=e),[i,i===e?0:4-i%4]}function l(t,e,n){for(var r,o,a=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},80967:function(t,e,i){"use strict";var n=i(8639),r=i(73043),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.lW=l,e.h2=50;var a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,i){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return A(t,e,i)}function A(t,e,i){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var i=0|g(t,e),n=s(i),r=n.write(t,e);r!==i&&(n=n.slice(0,r));return n}(t,e);if(ArrayBuffer.isView(t))return d(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return u(t,e,i);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return u(t,e,i);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return l.from(n,e,i);var r=function(t){if(l.isBuffer(t)){var e=0|p(t.length),i=s(e);return 0===i.length||t.copy(i,0,0,e),i}if(void 0!==t.length)return"number"!=typeof t.length||V(t.length)?s(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return c(t),s(t<0?0:0|p(t))}function d(t){for(var e=t.length<0?0:0|p(t.length),i=s(e),n=0;n<e;n+=1)i[n]=255&t[n];return i}function u(t,e,i){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),Object.setPrototypeOf(n,l.prototype),n}function p(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return O(t).length;default:if(r)return n?-1:U(t).length;e=(""+e).toLowerCase(),r=!0}}function f(t,e,i){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,i);case"utf8":case"utf-8":return Q(this,e,i);case"ascii":return k(this,e,i);case"latin1":case"binary":return D(this,e,i);case"base64":return x(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function y(t,e,i,n,r){if(0===t.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),V(i=+i)&&(i=r?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(r)return-1;i=t.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,n,r);if("number"==typeof e)return e&=255,
"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):b(t,[e],i,n,r);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,n,r){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,i/=2}function A(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(r){var c=-1;for(o=i;o<s;o++)if(A(t,o)===A(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(i+l>s&&(i=s-l),o=i;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(A(t,o+d)!==A(e,d)){h=!1;break}if(h)return o}return-1}function v(t,e,i,n){i=Number(i)||0;var r=t.length-i;n?(n=Number(n))>r&&(n=r):n=r;var o=e.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(V(s))return a;t[i+a]=s}return a}function E(t,e,i,n){return G(U(e,t.length-i),t,i,n)}function I(t,e,i,n){return G(function(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}(e),t,i,n)}function C(t,e,i,n){return I(t,e,i,n)}function B(t,e,i,n){return G(O(e),t,i,n)}function w(t,e,i,n){return G(function(t,e){for(var i,n,r,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(i=t.charCodeAt(a))>>8,r=i%256,o.push(r),o.push(n);return o}(e,t.length-i),t,i,n)}function x(t,e,i){return 0===e&&i===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,i))}function Q(t,e,i){i=Math.min(t.length,i);for(var n=[],r=e;r<i;){var o,a,s,l,A=t[r],c=null,h=A>239?4:A>223?3:A>191?2:1;if(r+h<=i)switch(h){case 1:A<128&&(c=A);break;case 2:128==(192&(o=t[r+1]))&&(l=(31&A)<<6|63&o)>127&&(c=l);break;case 3:o=t[r+1],a=t[r+2],128==(192&o)&&128==(192&a)&&(l=(15&A)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[r+1],a=t[r+2],s=t[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&A)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),r+=h}return function(t){var e=t.length;if(e<=S)return String.fromCharCode.apply(String,t);var i="",n=0;for(;n<e;)i+=String.fromCharCode.apply(String,t.slice(n,n+=S));return i}(n)}l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,i){return A(t,e,i)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,i){return function(t,e,i){return c(t),t<=0?s(t):void 0!==e?"string"==typeof i?s(t).fill(e,i):s(t).fill(e):s(t)}(t,e,i)},l.allocUnsafe=function(t){return h(t)},l.allocUnsafeSlow=function(t){return h(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(H(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var i=t.length,n=e.length,r=0,o=Math.min(i,n);r<o;++r)if(t[r]!==e[r]){i=t[r],n=e[r];break}return i<n?-1:n<i?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var i;if(void 0===e)for(e=0,i=0;i<t.length;++i)e+=t[i].length;var n=l.allocUnsafe(e),r=0;for(i=0;i<t.length;++i){var o=t[i];if(H(o,Uint8Array)&&(o=l.from(o)),!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?Q(this,0,t):f.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",i=e.h2;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(t,e,i,n,r){if(H(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),e<0||i>t.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&e>=i)return 0;if(n>=r)return-1;if(e>=i)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(e>>>=0),s=Math.min(o,a),A=this.slice(n,r),c=t.slice(e,i),h=0;h<s;++h)if(A[h]!==c[h]){o=A[h],a=c[h];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},l.prototype.indexOf=function(t,e,i){return y(this,t,e,i,!0)},l.prototype.lastIndexOf=function(t,e,i){return y(this,t,e,i,!1)},l.prototype.write=function(t,e,i,n){if(void 0===e)n="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)n=e,i=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-e;if((void 0===i||i>r)&&(i=r),t.length>0&&(i<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,t,e,i);case"utf8":case"utf-8":return E(this,t,e,i);case"ascii":return I(this,t,e,i);case"latin1":case"binary":return C(this,t,e,i);case"base64":return B(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,t,e,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function k(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(127&t[r]);return n}function D(t,e,i){var n="";i=Math.min(t.length,i);for(var r=e;r<i;++r)n+=String.fromCharCode(t[r]);return n}function _(t,e,i){var n=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>n)&&(i=n);for(var r="",o=e;o<i;++o)r+=Y[t[o]];return r}function R(t,e,i){for(var n=t.slice(e,i),r="",o=0;o<n.length;o+=2)r+=String.fromCharCode(n[o]+256*n[o+1]);return r}function M(t,e,i){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function T(t,e,i,n,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(i+n>t.length)throw new RangeError("Index out of range")}function F(t,e,i,n,r,o){
if(i+n>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function L(t,e,i,n,o){return e=+e,i>>>=0,o||F(t,0,i,4),r.write(t,e,i,n,23,4),i+4}function N(t,e,i,n,o){return e=+e,i>>>=0,o||F(t,0,i,8),r.write(t,e,i,n,52,8),i+8}l.prototype.slice=function(t,e){var i=this.length;(t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||M(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n},l.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||M(t,e,this.length);for(var n=this[t+--e],r=1;e>0&&(r*=256);)n+=this[t+--e]*r;return n},l.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||M(t,e,this.length);for(var n=this[t],r=1,o=0;++o<e&&(r*=256);)n+=this[t+o]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||M(t,e,this.length);for(var n=e,r=1,o=this[t+--n];n>0&&(r*=256);)o+=this[t+--n]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,n){(t=+t,e>>>=0,i>>>=0,n)||T(this,t,e,i,Math.pow(2,8*i)-1,0);var r=1,o=0;for(this[e]=255&t;++o<i&&(r*=256);)this[e+o]=t/r&255;return e+i},l.prototype.writeUIntBE=function(t,e,i,n){(t=+t,e>>>=0,i>>>=0,n)||T(this,t,e,i,Math.pow(2,8*i)-1,0);var r=i-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+i},l.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,i,n){if(t=+t,e>>>=0,!n){var r=Math.pow(2,8*i-1);T(this,t,e,i,r-1,-r)}var o=0,a=1,s=0;for(this[e]=255&t;++o<i&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,n){if(t=+t,e>>>=0,!n){var r=Math.pow(2,8*i-1);T(this,t,e,i,r-1,-r)}var o=i-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,i){return L(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return L(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return N(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return N(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,n){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-i&&(n=t.length-e+i);var r=n-i;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,i,n);else if(this===t&&i<e&&e<n)for(var o=r-1;o>=0;--o)t[o+e]=this[o+i];else Uint8Array.prototype.set.call(t,this.subarray(i,n),e);return r},l.prototype.fill=function(t,e,i,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var r=t.charCodeAt(0);("utf8"===n&&r<128||"latin1"===n)&&(t=r)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;var o;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(o=e;o<i;++o)this[o]=t;else{var a=l.isBuffer(t)?t:l.from(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<i-e;++o)this[o+e]=a[o%s]}return this};var P=/[^+/0-9A-Za-z-_]/g;function U(t,e){var i;e=e||1/0;for(var n=t.length,r=null,o=[],a=0;a<n;++a){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}r=i;continue}if(i<56320){(e-=3)>-1&&o.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,i<128){if((e-=1)<0)break;o.push(i)}else if(i<2048){if((e-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function O(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function G(t,e,i,n){for(var r=0;r<n&&!(r+i>=e.length||r>=t.length);++r)e[r+i]=t[r];return r}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function V(t){return t!=t}var Y=function(){for(var t="0123456789abcdef",e=new Array(256),i=0;i<16;++i)for(var n=16*i,r=0;r<16;++r)e[n+r]=t[i]+t[r];return e}()},34646:function(t,e,i){"use strict";var n=i(48856),r=i(10060),o=i(93074),a=i(64573);t.exports=a||n.call(o,r)},10060:function(t){"use strict";t.exports=Function.prototype.apply},93074:function(t){"use strict";t.exports=Function.prototype.call},
29955:function(t,e,i){"use strict";var n=i(48856),r=i(57252),o=i(93074),a=i(34646);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new r("a function is required");return a(n,o,t)}},64573:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},43748:function(t,e,i){"use strict";var n=i(75835),r=i(21102),o=i(57252),a=i(83037);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,A=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(n)n(t,e,{configurable:null===A&&h?h.configurable:!A,enumerable:null===s&&h?h.enumerable:!s,value:i,writable:null===l&&h?h.writable:!l});else{if(!c&&(s||l||A))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=i}}},63676:function(t,e,i){"use strict";var n,r=i(29955),o=i(83037);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?r([a.get]):"function"==typeof l&&function(t){return l(null==t?t:s(t))}},75835:function(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},37169:function(t){"use strict";t.exports=EvalError},93416:function(t){"use strict";t.exports=Error},86478:function(t){"use strict";t.exports=RangeError},17166:function(t){"use strict";t.exports=ReferenceError},21102:function(t){"use strict";t.exports=SyntaxError},57252:function(t){"use strict";t.exports=TypeError},200:function(t){"use strict";t.exports=URIError},86233:function(t){"use strict";t.exports=Object},94864:function(t){"use strict";var e,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)};e=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(i,n){function r(i){t.removeListener(e,o),n(i)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),i([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,i){"function"==typeof t.on&&g(t,"error",e,i)}(t,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function A(t,e,i,n){var r,o,a,A;if(s(i),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),o=t._events),a=o[e]),void 0===a)a=o[e]=i,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),(r=l(t))>0&&a.length>r&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,A=c,console&&console.warn&&console.warn(A)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,i){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},r=c.bind(n);return r.listener=i,n.wrapFn=r,r}function d(t,e,i){var n=t._events;if(void 0===n)return[];var r=n[e];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(t){for(var e=new Array(t.length),i=0;i<e.length;++i)e[i]=t[i].listener||t[i];return e}(r):p(r,r.length)}function u(t){var e=this._events;if(void 0!==e){var i=e[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function p(t,e){for(var i=new Array(e),n=0;n<e;++n)i[n]=t[n];return i}function g(t,e,i,n){if("function"==typeof t.on)n.once?t.once(e,i):t.on(e,i);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){n.once&&t.removeEventListener(e,r),i(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else{var A=l.length,c=p(l,A);for(i=0;i<A;++i)n(c[i],this,e)}return!0},o.prototype.addListener=function(t,e){return A(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return A(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var i,n,r,o,a;if(s(e),void 0===(n=this._events))return this;if(void 0===(i=n[t]))return this;if(i===e||i.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||e));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===e||i[o].listener===e){a=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(i,r),1===i.length&&(n[t]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[t]),this;if(0===arguments.length){var r,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(r=o[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}
if("function"==typeof(e=i[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):u.call(t,e)},o.prototype.listenerCount=u,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},3564:function(t){"use strict";var e=Object.prototype.toString,i=Math.max,n=function(t,e){for(var i=[],n=0;n<t.length;n+=1)i[n]=t[n];for(var r=0;r<e.length;r+=1)i[r+t.length]=e[r];return i};t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==e.apply(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,a=function(t,e){for(var i=[],n=e||0,r=0;n<t.length;n+=1,r+=1)i[r]=t[n];return i}(arguments,1),s=i(0,r.length-a.length),l=[],A=0;A<s;A++)l[A]="$"+A;if(o=Function("binder","return function ("+function(t,e){for(var i="",n=0;n<t.length;n+=1)i+=t[n],n+1<t.length&&(i+=e);return i}(l,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=r.apply(this,n(a,arguments));return Object(e)===e?e:this}return r.apply(t,n(a,arguments))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},48856:function(t,e,i){"use strict";var n=i(3564);t.exports=Function.prototype.bind||n},47297:function(t,e,i){"use strict";var n,r=i(86233),o=i(93416),a=i(37169),s=i(86478),l=i(17166),A=i(21102),c=i(57252),h=i(200),d=i(76908),u=i(15527),p=i(24911),g=i(32299),f=i(67618),m=i(54339),y=i(78841),b=Function,v=function(t){try{return b('"use strict"; return ('+t+").constructor;")()}catch(t){}},E=i(83037),I=i(75835),C=function(){throw new c},B=E?function(){try{return C}catch(t){try{return E(arguments,"callee").get}catch(t){return C}}}():C,w=i(41457)(),x=i(30159),Q=i(1451),S=i(41919),k=i(10060),D=i(93074),_={},R="undefined"!=typeof Uint8Array&&x?x(Uint8Array):n,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&x?x(x([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&w&&x?x((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&w&&x?x((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&x?x(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":A,"%ThrowTypeError%":B,"%TypedArray%":R,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":k,"%Object.defineProperty%":I,"%Object.getPrototypeOf%":Q,"%Math.abs%":d,"%Math.floor%":u,"%Math.max%":p,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":y,"%Reflect.getPrototypeOf%":S};if(x)try{null.error}catch(t){var T=x(x(t));M["%Error.prototype%"]=T}var F=function t(e){var i;if("%AsyncFunction%"===e)i=v("async function () {}");else if("%GeneratorFunction%"===e)i=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=v("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(i=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var r=t("%AsyncGenerator%");r&&x&&(i=x(r.prototype))}return M[e]=i,i},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]
},N=i(48856),P=i(95478),U=N.call(D,Array.prototype.concat),O=N.call(k,Array.prototype.splice),G=N.call(D,String.prototype.replace),H=N.call(D,String.prototype.slice),V=N.call(D,RegExp.prototype.exec),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,W=function(t,e){var i,n=t;if(P(L,n)&&(n="%"+(i=L[n])[0]+"%"),P(M,n)){var r=M[n];if(r===_&&(r=F(n)),void 0===r&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:r}}throw new A("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,t))throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(t){var e=H(t,0,1),i=H(t,-1);if("%"===e&&"%"!==i)throw new A("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new A("invalid intrinsic syntax, expected opening `%`");var n=[];return G(t,Y,(function(t,e,i,r){n[n.length]=i?G(r,z,"$1"):e||t})),n}(t),n=i.length>0?i[0]:"",r=W("%"+n+"%",e),o=r.name,a=r.value,s=!1,l=r.alias;l&&(n=l[0],O(i,U([0,1],l)));for(var h=1,d=!0;h<i.length;h+=1){var u=i[h],p=H(u,0,1),g=H(u,-1);if(('"'===p||"'"===p||"`"===p||'"'===g||"'"===g||"`"===g)&&p!==g)throw new A("property names with quotes must have matching quotes");if("constructor"!==u&&d||(s=!0),P(M,o="%"+(n+="."+u)+"%"))a=M[o];else if(null!=a){if(!(u in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(E&&h+1>=i.length){var f=E(a,u);a=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[u]}else d=P(a,u),a=a[u];d&&!s&&(M[o]=a)}}return a}},1451:function(t,e,i){"use strict";var n=i(86233);t.exports=n.getPrototypeOf||null},41919:function(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},30159:function(t,e,i){"use strict";var n=i(41919),r=i(1451),o=i(63676);t.exports=n?function(t){return n(t)}:r?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return r(t)}:o?function(t){return o(t)}:null},44248:function(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},83037:function(t,e,i){"use strict";var n=i(44248);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},22948:function(t,e,i){"use strict";var n=i(75835),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=r},41457:function(t,e,i){"use strict";var n="undefined"!=typeof Symbol&&Symbol,r=i(21955);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},21955:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},95478:function(t,e,i){"use strict";var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=i(48856);t.exports=o.call(n,r)},73043:function(t,e){e.read=function(t,e,i,n,r){var o,a,s=8*r-n-1,l=(1<<s)-1,A=l>>1,c=-7,h=i?r-1:0,d=i?-1:1,u=t[e+h];for(h+=d,o=u&(1<<-c)-1,u>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-A;else{if(o===l)return a?NaN:1/0*(u?-1:1);a+=Math.pow(2,n),o-=A}return(u?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var a,s,l,A=8*o-r-1,c=(1<<A)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,u=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,r),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;t[i+u]=255&s,u+=p,s/=256,r-=8);for(a=a<<r|s,A+=r;A>0;t[i+u]=255&a,u+=p,a/=256,A-=8);t[i+u-p]|=128*g}},76908:function(t){"use strict";t.exports=Math.abs},15527:function(t){"use strict";t.exports=Math.floor},10689:function(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},24911:function(t){"use strict";t.exports=Math.max},32299:function(t){"use strict";t.exports=Math.min},67618:function(t){"use strict";t.exports=Math.pow},54339:function(t){"use strict";t.exports=Math.round},78841:function(t,e,i){"use strict";var n=i(10689);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},72632:function(t,e,i){!function(){"use strict";function t(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){return e.reject(i)}))}))}function e(t){return new this((function(e,i){if(!t||void 0===t.length)return i(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var r=n.length;function o(t,i){if(i&&("object"==typeof i||"function"==typeof i)){var a=i.then;if("function"==typeof a)return void a.call(i,(function(e){o(t,e)}),(function(i){n[t]={status:"rejected",reason:i},0==--r&&e(n)}))}n[t]={status:"fulfilled",value:i},0==--r&&e(n)}for(var a=0;a<n.length;a++)o(a,n[a])}))}var n=setTimeout;function r(t){return Boolean(t&&void 0!==t.length)}function o(){}function a(t,e){return function(){t.apply(e,arguments)}}function s(t){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(t,this)}function l(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,s._immediateFn((function(){var i=1===t._state?e.onFulfilled:e.onRejected;if(null!==i){var n;try{n=i(t._value)}catch(t){return void c(e.promise,t)}A(e.promise,n)}else(1===t._state?A:c)(e.promise,t._value)}))):t._deferreds.push(e)}function A(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if(e instanceof s)return t._state=3,t._value=e,void h(t);if("function"==typeof i)return void u(a(i,e),t)}t._state=1,t._value=e,h(t)}catch(e){c(t,e)}}function c(t,e){t._state=2,t._value=e,h(t)}function h(t){2===t._state&&0===t._deferreds.length&&s._immediateFn((function(){t._handled||s._unhandledRejectionFn(t._value)}));for(var e=0,i=t._deferreds.length;e<i;e++)l(t,t._deferreds[e]);t._deferreds=null}function d(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function u(t,e){var i=!1;try{t((function(t){i||(i=!0,A(e,t))}),(function(t){i||(i=!0,c(e,t))}))}catch(t){if(i)return;i=!0,c(e,t)}}s.prototype.catch=function(t){return this.then(null,t)},s.prototype.then=function(t,e){var i=new this.constructor(o);return l(this,new d(t,e,i)),i},s.prototype.finally=t,s.all=function(t){return new s((function(e,i){if(!r(t))return i(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var o=n.length;function a(t,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var s=r.then;if("function"==typeof s)return void s.call(r,(function(e){a(t,e)}),i)}n[t]=r,0==--o&&e(n)}catch(t){i(t)}}for(var s=0;s<n.length;s++)a(s,n[s])}))},
s.allSettled=e,s.resolve=function(t){return t&&"object"==typeof t&&t.constructor===s?t:new s((function(e){e(t)}))},s.reject=function(t){return new s((function(e,i){i(t)}))},s.race=function(t){return new s((function(e,i){if(!r(t))return i(new TypeError("Promise.race accepts an array"));for(var n=0,o=t.length;n<o;n++)s.resolve(t[n]).then(e,i)}))},s._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){n(t,0)},s._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var p=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==i.g)return i.g;throw new Error("unable to locate global object")}();"function"!=typeof p.Promise?p.Promise=s:p.Promise.prototype.finally?p.Promise.allSettled||(p.Promise.allSettled=e):p.Promise.prototype.finally=t}()},94095:function(t){var e=arguments[3],i=arguments[4],n=arguments[5],r=JSON.stringify;t.exports=function(t,o){for(var a,s=Object.keys(n),l=0,A=s.length;l<A;l++){var c=s[l],h=n[c].exports;if(h===t||h&&h.default===t){a=c;break}}if(!a){a=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var d={};for(l=0,A=s.length;l<A;l++){d[c=s[l]]=c}i[a]=["function(require,module,exports){"+t+"(self); }",d]}var u=Math.floor(Math.pow(16,8)*Math.random()).toString(16),p={};p[a]=a,i[u]=["function(require,module,exports){var f = require("+r(a)+");(f.default ? f.default : f)(self);}",p];var g={};!function t(e){for(var n in g[e]=!0,i[e][1]){var r=i[e][1][n];g[r]||t(r)}}(u);var f="("+e+")({"+Object.keys(g).map((function(t){return r(t)+":["+i[t][0]+","+r(i[t][1])+"]"})).join(",")+"},{},["+r(u)+"])",m=window.URL||window.webkitURL||window.mozURL||window.msURL,y=new Blob([f],{type:"text/javascript"});if(o&&o.bare)return y;var b=m.createObjectURL(y),v=new Worker(b);return v.objectURL=b,v}},47790:function(t,e,i){var n="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&r&&"function"==typeof r.get?r.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,A=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,f=Function.prototype.toString,m=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,v=String.prototype.toUpperCase,E=String.prototype.toLowerCase,I=RegExp.prototype.test,C=Array.prototype.concat,B=Array.prototype.join,w=Array.prototype.slice,x=Math.floor,Q="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function T(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||I.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-x(-t):x(t);if(n!==t){var r=String(n),o=y.call(e,r.length+1);return b.call(r,i,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,i,"$&_")}var F=i(18684),L=F.custom,N=Y(L)?L:null,P={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function O(t,e,i){var n=i.quoteStyle||e,r=P[n];return r+t+r}function G(t){return b.call(String(t),/"/g,"&quot;")}function H(t){return!("[object Array]"!==Z(t)||_&&"object"==typeof t&&_ in t)}function V(t){return!("[object RegExp]"!==Z(t)||_&&"object"==typeof t&&_ in t)}function Y(t){if(D)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,s){var l=n||{};if(W(l,"quoteStyle")&&!W(P,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!W(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return q(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var I=String(e);return v?T(e,I):I}if("bigint"==typeof e){var x=String(e)+"n";return v?T(e,x):x}var S=void 0===l.depth?5:l.depth;if(void 0===r&&(r=0),r>=S&&S>0&&"object"==typeof e)return H(e)?"[Array]":"[Object]";var L=function(t,e){var i;if("\t"===t.indent)i="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;i=B.call(Array(t.indent+1)," ")}return{base:i,prev:B.call(Array(e+1),i)}}(l,r);if(void 0===s)s=[];else if(j(s,e)>=0)return"[Circular]";function U(e,i,n){if(i&&(s=w.call(s)).push(i),n){var o={depth:l.depth};return W(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),t(e,o,r+1,s)}return t(e,l,r+1,s)}if("function"==typeof e&&!V(e)){var z=function(t){if(t.name)return t.name;var e=m.call(f.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),J=et(e,U);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(J.length>0?" { "+B.call(J,", ")+" }":"")}if(Y(e)){var it=D?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||D?it:K(it)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var nt="<"+E.call(String(e.nodeName)),rt=e.attributes||[],ot=0;ot<rt.length;ot++)nt+=" "+rt[ot].name+"="+O(G(rt[ot].value),"double",l);return nt+=">",e.childNodes&&e.childNodes.length&&(nt+="..."),nt+="</"+E.call(String(e.nodeName))+">"}if(H(e)){if(0===e.length)return"[]";var at=et(e,U);return L&&!function(t){for(var e=0;e<t.length;e++)if(j(t[e],"\n")>=0)return!1;return!0}(at)?"["+tt(at,L)+"]":"[ "+B.call(at,", ")+" ]"}if(function(t){return!("[object Error]"!==Z(t)||_&&"object"==typeof t&&_ in t)}(e)){var st=et(e,U);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===st.length?"["+String(e)+"]":"{ ["+String(e)+"] "+B.call(st,", ")+" }":"{ ["+String(e)+"] "+B.call(C.call("[cause]: "+U(e.cause),st),", ")+" }"}if("object"==typeof e&&g){if(N&&"function"==typeof e[N]&&F)return F(e,{depth:S-r});if("symbol"!==g&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{A.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var lt=[];return a&&a.call(e,(function(t,i){lt.push(U(i,e,!0)+" => "+U(t,e))})),$("Map",o.call(e),lt,L)}if(function(t){if(!A||!t||"object"!=typeof t)return!1;try{A.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var At=[];return c&&c.call(e,(function(t){At.push(U(t,e))})),$("Set",A.call(e),At,L)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1
}(e))return X("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{return u.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if(function(t){return!("[object Number]"!==Z(t)||_&&"object"==typeof t&&_ in t)}(e))return K(U(Number(e)));if(function(t){if(!t||"object"!=typeof t||!Q)return!1;try{return Q.call(t),!0}catch(t){}return!1}(e))return K(U(Q.call(e)));if(function(t){return!("[object Boolean]"!==Z(t)||_&&"object"==typeof t&&_ in t)}(e))return K(p.call(e));if(function(t){return!("[object String]"!==Z(t)||_&&"object"==typeof t&&_ in t)}(e))return K(U(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==i.g&&e===i.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==Z(t)||_&&"object"==typeof t&&_ in t)}(e)&&!V(e)){var ct=et(e,U),ht=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",ut=!ht&&_&&Object(e)===e&&_ in e?y.call(Z(e),8,-1):dt?"Object":"",pt=(ht||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ut||dt?"["+B.call(C.call([],ut||[],dt||[]),": ")+"] ":"");return 0===ct.length?pt+"{}":L?pt+"{"+tt(ct,L)+"}":pt+"{ "+B.call(ct,", ")+" }"}return String(e)};var z=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return z.call(t,e)}function Z(t){return g.call(t)}function j(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1}function q(t,e){if(t.length>e.maxStringLength){var i=t.length-e.maxStringLength,n="... "+i+" more character"+(i>1?"s":"");return q(y.call(t,0,e.maxStringLength),e)+n}var r=U[e.quoteStyle||"single"];return r.lastIndex=0,O(b.call(b.call(t,r,"\\$1"),/[\x00-\x1f]/g,J),"single",e)}function J(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+v.call(e.toString(16))}function K(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function $(t,e,i,n){return t+" ("+e+") {"+(n?tt(i,n):B.call(i,", "))+"}"}function tt(t,e){if(0===t.length)return"";var i="\n"+e.prev+e.base;return i+B.call(t,","+i)+"\n"+e.prev}function et(t,e){var i=H(t),n=[];if(i){n.length=t.length;for(var r=0;r<t.length;r++)n[r]=W(t,r)?e(t[r],t):""}var o,a="function"==typeof S?S(t):[];if(D){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in t)W(t,l)&&(i&&String(Number(l))===l&&l<t.length||D&&o["$"+l]instanceof Symbol||(I.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t))));if("function"==typeof S)for(var A=0;A<a.length;A++)R.call(t,a[A])&&n.push("["+e(a[A])+"]: "+e(t[a[A]],t));return n}},22056:function(t,e,i){"use strict";var n={};(0,i(70901).assign)(n,i(72020),i(9955),i(60571)),t.exports=n},72020:function(t,e,i){"use strict";var n=i(64300),r=i(70901),o=i(98435),a=i(27761),s=i(46536),l=Object.prototype.toString;function A(t){if(!(this instanceof A))return new A(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(a[i]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(i=n.deflateSetDictionary(this.strm,c)))throw new Error(a[i]);this._dict_set=!0}}function c(t,e){var i=new A(e);if(i.push(t,!0),i.err)throw i.msg||a[i.err];return i.result}A.prototype.push=function(t,e){var i,a,s=this.strm,A=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(A),s.next_out=0,s.avail_out=A),1!==(i=n.deflate(s,a))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==i);return 4===a?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==a||(this.onEnd(0),s.avail_out=0,!0)},A.prototype.onData=function(t){this.chunks.push(t)},A.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=A,e.deflate=c,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},9955:function(t,e,i){"use strict";var n=i(84237),r=i(70901),o=i(98435),a=i(60571),s=i(27761),l=i(46536),A=i(46156),c=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,e.windowBits);if(i!==a.Z_OK)throw new Error(s[i]);if(this.header=new A,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=n.inflateSetDictionary(this.strm,e.dictionary))!==a.Z_OK))throw new Error(s[i])}function d(t,e){var i=new h(e);if(i.push(t,!0),i.err)throw i.msg||s[i.err];return i.result}h.prototype.push=function(t,e){var i,s,l,A,h,d=this.strm,u=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?d.input=o.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new r.Buf8(u),d.next_out=0,d.avail_out=u),(i=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===a.Z_BUF_ERROR&&!0===g&&(i=a.Z_OK,g=!1),i!==a.Z_STREAM_END&&i!==a.Z_OK)return this.onEnd(i),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&i!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(d.output,d.next_out),A=d.next_out-l,h=o.buf2string(d.output,l),d.next_out=A,d.avail_out=u-A,A&&r.arraySet(d.output,d.output,l,A,0),this.onData(h)):this.onData(r.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&i!==a.Z_STREAM_END);return i===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=h,e.inflate=d,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.ungzip=d},70901:function(t,e){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){
if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(t[r]=i[r])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,i,n,r){if(e.subarray&&t.subarray)t.set(e.subarray(i,i+n),r);else for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){var e,i,n,r,o,a;for(n=0,e=0,i=t.length;e<i;e++)n+=t[e].length;for(a=new Uint8Array(n),r=0,e=0,i=t.length;e<i;e++)o=t[e],a.set(o,r),r+=o.length;return a}},o={arraySet:function(t,e,i,n,r){for(var o=0;o<n;o++)t[r+o]=e[i+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(i)},98435:function(t,e,i){"use strict";var n=i(70901),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new n.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var i="",a=0;a<e;a++)i+=String.fromCharCode(t[a]);return i}a[254]=a[254]=1,e.string2buf=function(t){var e,i,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),l+=i<128?1:i<2048?2:i<65536?3:4;for(e=new n.Buf8(l),a=0,o=0;a<l;o++)55296==(64512&(i=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(i=65536+(i-55296<<10)+(r-56320),o++),i<128?e[a++]=i:i<2048?(e[a++]=192|i>>>6,e[a++]=128|63&i):i<65536?(e[a++]=224|i>>>12,e[a++]=128|i>>>6&63,e[a++]=128|63&i):(e[a++]=240|i>>>18,e[a++]=128|i>>>12&63,e[a++]=128|i>>>6&63,e[a++]=128|63&i);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),i=0,r=e.length;i<r;i++)e[i]=t.charCodeAt(i);return e},e.buf2string=function(t,e){var i,n,r,o,s=e||t.length,A=new Array(2*s);for(n=0,i=0;i<s;)if((r=t[i++])<128)A[n++]=r;else if((o=a[r])>4)A[n++]=65533,i+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&i<s;)r=r<<6|63&t[i++],o--;o>1?A[n++]=65533:r<65536?A[n++]=r:(r-=65536,A[n++]=55296|r>>10&1023,A[n++]=56320|1023&r)}return l(A,n)},e.utf8border=function(t,e){var i;for((e=e||t.length)>t.length&&(e=t.length),i=e-1;i>=0&&128==(192&t[i]);)i--;return i<0||0===i?e:i+a[t[i]]>e?i:e}},45514:function(t){"use strict";t.exports=function(t,e,i,n){for(var r=65535&t,o=t>>>16&65535,a=0;0!==i;){i-=a=i>2e3?2e3:i;do{o=o+(r=r+e[n++]|0)|0}while(--a);r%=65521,o%=65521}return r|o<<16}},60571:function(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},86680:function(t){"use strict";var e=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();t.exports=function(t,i,n,r){var o=e,a=r+n;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^i[s])];return~t}},64300:function(t,e,i){"use strict";var n,r=i(70901),o=i(30824),a=i(45514),s=i(86680),l=i(27761),A=-2,c=258,h=262,d=103,u=113,p=666;function g(t,e){return t.msg=l[e],e}function f(t){return(t<<1)-(t>4?9:0)}function m(t){for(var e=t.length;--e>=0;)t[e]=0}function y(t){var e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(r.arraySet(t.output,e.pending_buf,e.pending_out,i,t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))}function b(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,y(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function E(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function I(t,e){var i,n,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-h?t.strstart-(t.w_size-h):0,A=t.window,d=t.w_mask,u=t.prev,p=t.strstart+c,g=A[o+a-1],f=A[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(A[(i=e)+a]===f&&A[i+a-1]===g&&A[i]===A[o]&&A[++i]===A[o+1]){o+=2,i++;do{}while(A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&A[++o]===A[++i]&&o<p);if(n=c-(p-o),o=p-c,n>a){if(t.match_start=e,a=n,n>=s)break;g=A[o+a-1],f=A[o+a]}}}while((e=u[e&d])>l&&0!=--r);return a<=t.lookahead?a:t.lookahead}function C(t){var e,i,n,o,l,A,c,d,u,p,g=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-h)){r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=i=t.hash_size;do{n=t.head[--e],t.head[e]=n>=g?n-g:0}while(--i);e=i=g;do{n=t.prev[--e],t.prev[e]=n>=g?n-g:0}while(--i);o+=g}if(0===t.strm.avail_in)break;if(A=t.strm,c=t.window,d=t.strstart+t.lookahead,u=o,p=void 0,(p=A.avail_in)>u&&(p=u),i=0===p?0:(A.avail_in-=p,r.arraySet(c,A.input,A.next_in,p,d),1===A.state.wrap?A.adler=a(A.adler,c,p,d):2===A.state.wrap&&(A.adler=s(A.adler,c,p,d)),A.next_in+=p,A.total_in+=p,p),t.lookahead+=i,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<h&&0!==t.strm.avail_in)}function B(t,e){for(var i,n;;){if(t.lookahead<h){if(C(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-h&&(t.match_length=I(t,i)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function w(t,e){for(var i,n,r;;){if(t.lookahead<h){if(C(t),t.lookahead<h&&0===e)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length<t.max_lazy_match&&t.strstart-i<=t.w_size-h&&(t.match_length=I(t,i),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(b(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&b(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(b(t,!0),
0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}function x(t,e,i,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=r}function Q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function S(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:u,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):g(t,A)}function k(t){var e=S(t);return 0===e&&function(t){t.window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function D(t,e,i,n,o,a){if(!t)return A;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||8!==i||n<8||n>15||e<0||e>9||a<0||a>4)return g(t,A);8===n&&(n=9);var l=new Q;return t.state=l,l.strm=t,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=i,k(t)}n=[new x(0,0,0,0,(function(t,e){var i=65535;for(i>t.pending_buf_size-5&&(i=t.pending_buf_size-5);;){if(t.lookahead<=1){if(C(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+i;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-h&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)})),new x(4,4,8,4,B),new x(4,5,16,8,B),new x(4,6,32,32,B),new x(4,4,16,16,w),new x(8,16,32,32,w),new x(8,16,128,128,w),new x(8,32,128,256,w),new x(32,128,258,1024,w),new x(32,258,258,4096,w)],e.deflateInit=function(t,e){return D(t,e,8,15,8,0)},e.deflateInit2=D,e.deflateReset=k,e.deflateResetKeep=S,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?A:(t.state.gzhead=e,0):A},e.deflate=function(t,e){var i,r,a,l;if(!t||!t.state||e>5||e<0)return t?g(t,A):A;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===p&&4!==e)return g(t,0===t.avail_out?-5:A);if(r.strm=t,i=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,v(r,31),v(r,139),v(r,8),r.gzhead?(v(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),v(r,255&r.gzhead.time),v(r,r.gzhead.time>>8&255),v(r,r.gzhead.time>>16&255),v(r,r.gzhead.time>>24&255),v(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),v(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(v(r,255&r.gzhead.extra.length),v(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(v(r,0),v(r,0),v(r,0),v(r,0),v(r,0),v(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),v(r,3),r.status=u);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=u,E(r,h),0!==r.strstart&&(E(r,t.adler>>>16),E(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),y(t),a=r.pending,r.pending!==r.pending_buf_size));)v(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),y(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,v(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),y(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,v(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=d)}else r.status=d;if(r.status===d&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&y(t),r.pending+2<=r.pending_buf_size&&(v(r,255&t.adler),v(r,t.adler>>8&255),t.adler=0,r.status=u)):r.status=u),0!==r.pending){if(y(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(i)&&4!==e)return g(t,-5);if(r.status===p&&0!==t.avail_in)return g(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==p){var I=2===r.strategy?function(t,e){for(var i;;){if(0===t.lookahead&&(C(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var i,n,r,a,s=t.window;;){if(t.lookahead<=c){if(C(t),t.lookahead<=c&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){a=t.strstart+c;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<a);t.match_length=c-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(r,e):n[r.level].func(r,e);if(3!==I&&4!==I||(r.status=p),1===I||3===I)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===I&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(m(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),y(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(v(r,255&t.adler),v(r,t.adler>>8&255),v(r,t.adler>>16&255),v(r,t.adler>>24&255),v(r,255&t.total_in),v(r,t.total_in>>8&255),v(r,t.total_in>>16&255),v(r,t.total_in>>24&255)):(E(r,t.adler>>>16),E(r,65535&t.adler)),y(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},e.deflateEnd=function(t){var e
;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==d&&e!==u&&e!==p?g(t,A):(t.state=null,e===u?g(t,-3):0):A},e.deflateSetDictionary=function(t,e){var i,n,o,s,l,c,h,d,u=e.length;if(!t||!t.state)return A;if(2===(s=(i=t.state).wrap)||1===s&&42!==i.status||i.lookahead)return A;for(1===s&&(t.adler=a(t.adler,e,u,0)),i.wrap=0,u>=i.w_size&&(0===s&&(m(i.head),i.strstart=0,i.block_start=0,i.insert=0),d=new r.Buf8(i.w_size),r.arraySet(d,e,u-i.w_size,i.w_size,0),e=d,u=i.w_size),l=t.avail_in,c=t.next_in,h=t.input,t.avail_in=u,t.next_in=0,t.input=e,C(i);i.lookahead>=3;){n=i.strstart,o=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--o);i.strstart=n,i.lookahead=2,C(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=c,t.input=h,t.avail_in=l,i.wrap=s,0},e.deflateInfo="pako deflate (from Nodeca project)"},46156:function(t){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},20971:function(t){"use strict";t.exports=function(t,e){var i,n,r,o,a,s,l,A,c,h,d,u,p,g,f,m,y,b,v,E,I,C,B,w,x;i=t.state,n=t.next_in,w=t.input,r=n+(t.avail_in-5),o=t.next_out,x=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=i.dmax,A=i.wsize,c=i.whave,h=i.wnext,d=i.window,u=i.hold,p=i.bits,g=i.lencode,f=i.distcode,m=(1<<i.lenbits)-1,y=(1<<i.distbits)-1;t:do{p<15&&(u+=w[n++]<<p,p+=8,u+=w[n++]<<p,p+=8),b=g[u&m];e:for(;;){if(u>>>=v=b>>>24,p-=v,0===(v=b>>>16&255))x[o++]=65535&b;else{if(!(16&v)){if(64&v){if(32&v){i.mode=12;break t}t.msg="invalid literal/length code",i.mode=30;break t}b=g[(65535&b)+(u&(1<<v)-1)];continue e}for(E=65535&b,(v&=15)&&(p<v&&(u+=w[n++]<<p,p+=8),E+=u&(1<<v)-1,u>>>=v,p-=v),p<15&&(u+=w[n++]<<p,p+=8,u+=w[n++]<<p,p+=8),b=f[u&y];;){if(u>>>=v=b>>>24,p-=v,16&(v=b>>>16&255)){if(I=65535&b,p<(v&=15)&&(u+=w[n++]<<p,(p+=8)<v&&(u+=w[n++]<<p,p+=8)),(I+=u&(1<<v)-1)>l){t.msg="invalid distance too far back",i.mode=30;break t}if(u>>>=v,p-=v,I>(v=o-a)){if((v=I-v)>c&&i.sane){t.msg="invalid distance too far back",i.mode=30;break t}if(C=0,B=d,0===h){if(C+=A-v,v<E){E-=v;do{x[o++]=d[C++]}while(--v);C=o-I,B=x}}else if(h<v){if(C+=A+h-v,(v-=h)<E){E-=v;do{x[o++]=d[C++]}while(--v);if(C=0,h<E){E-=v=h;do{x[o++]=d[C++]}while(--v);C=o-I,B=x}}}else if(C+=h-v,v<E){E-=v;do{x[o++]=d[C++]}while(--v);C=o-I,B=x}for(;E>2;)x[o++]=B[C++],x[o++]=B[C++],x[o++]=B[C++],E-=3;E&&(x[o++]=B[C++],E>1&&(x[o++]=B[C++]))}else{C=o-I;do{x[o++]=x[C++],x[o++]=x[C++],x[o++]=x[C++],E-=3}while(E>2);E&&(x[o++]=x[C++],E>1&&(x[o++]=x[C++]))}break}if(64&v){t.msg="invalid distance code",i.mode=30;break t}b=f[(65535&b)+(u&(1<<v)-1)]}}break}}while(n<r&&o<s);n-=E=p>>3,u&=(1<<(p-=E<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<r?r-n+5:5-(n-r),t.avail_out=o<s?s-o+257:257-(o-s),i.hold=u,i.bits=p}},84237:function(t,e,i){"use strict";var n=i(70901),r=i(45514),o=i(86680),a=i(20971),s=i(43106),l=-2,A=12,c=30;function h(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function p(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,u(t)):l}function g(t,e){var i,n;return t&&t.state?(n=t.state,e<0?(i=0,e=-e):(i=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,p(t))):l}function f(t,e){var i,n;return t?(n=new d,t.state=n,n.window=null,0!==(i=g(t,e))&&(t.state=null),i):l}var m,y,b=!0;function v(t){if(b){var e;for(m=new n.Buf32(512),y=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,y,0,t.work,{bits:5}),b=!1}t.lencode=m,t.lenbits=9,t.distcode=y,t.distbits=5}function E(t,e,i,r){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),r>=a.wsize?(n.arraySet(a.window,e,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>r&&(o=r),n.arraySet(a.window,e,i-r,o,a.wnext),(r-=o)?(n.arraySet(a.window,e,i-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}e.inflateReset=p,e.inflateReset2=g,e.inflateResetKeep=u,e.inflateInit=function(t){return f(t,15)},e.inflateInit2=f,e.inflate=function(t,e){var i,d,u,p,g,f,m,y,b,I,C,B,w,x,Q,S,k,D,_,R,M,T,F,L,N=0,P=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;(i=t.state).mode===A&&(i.mode=13),g=t.next_out,u=t.output,m=t.avail_out,p=t.next_in,d=t.input,f=t.avail_in,y=i.hold,b=i.bits,I=f,C=m,T=0;t:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;b<16;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(2&i.wrap&&35615===y){i.check=0,P[0]=255&y,P[1]=y>>>8&255,i.check=o(i.check,P,2,0),y=0,b=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&y)<<8)+(y>>8))%31){t.msg="incorrect header check",i.mode=c;break}if(8!=(15&y)){t.msg="unknown compression method",i.mode=c;break}if(b-=4,M=8+(15&(y>>>=4)),0===i.wbits)i.wbits=M;else if(M>i.wbits){t.msg="invalid window size",i.mode=c;break}i.dmax=1<<M,t.adler=i.check=1,i.mode=512&y?10:A,y=0,b=0;break;case 2:for(;b<16;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(i.flags=y,8!=(255&i.flags)){t.msg="unknown compression method",i.mode=c;break}if(57344&i.flags){t.msg="unknown header flags set",i.mode=c;break}i.head&&(i.head.text=y>>8&1),512&i.flags&&(P[0]=255&y,P[1]=y>>>8&255,i.check=o(i.check,P,2,0)),y=0,b=0,i.mode=3;case 3:for(;b<32;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}i.head&&(i.head.time=y),512&i.flags&&(P[0]=255&y,P[1]=y>>>8&255,P[2]=y>>>16&255,P[3]=y>>>24&255,i.check=o(i.check,P,4,0)),y=0,b=0,i.mode=4;case 4:for(;b<16;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}i.head&&(i.head.xflags=255&y,i.head.os=y>>8),512&i.flags&&(P[0]=255&y,P[1]=y>>>8&255,i.check=o(i.check,P,2,0)),y=0,b=0,i.mode=5;case 5:if(1024&i.flags){for(;b<16;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}i.length=y,i.head&&(i.head.extra_len=y),512&i.flags&&(P[0]=255&y,P[1]=y>>>8&255,i.check=o(i.check,P,2,0)),y=0,b=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((B=i.length)>f&&(B=f),B&&(i.head&&(M=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,d,p,B,M)),512&i.flags&&(i.check=o(i.check,d,B,p)),f-=B,p+=B,i.length-=B),i.length))break t;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===f)break t;B=0;do{M=d[p+B++],i.head&&M&&i.length<65536&&(i.head.name+=String.fromCharCode(M))}while(M&&B<f);if(512&i.flags&&(i.check=o(i.check,d,B,p)),f-=B,p+=B,M)break t}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===f)break t;B=0;do{M=d[p+B++],i.head&&M&&i.length<65536&&(i.head.comment+=String.fromCharCode(M))}while(M&&B<f);if(512&i.flags&&(i.check=o(i.check,d,B,p)),f-=B,p+=B,M)break t}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;b<16;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(y!==(65535&i.check)){t.msg="header crc mismatch",i.mode=c;break}y=0,b=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=A;break;case 10:for(;b<32;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}t.adler=i.check=h(y),y=0,
b=0,i.mode=11;case 11:if(0===i.havedict)return t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=f,i.hold=y,i.bits=b,2;t.adler=i.check=1,i.mode=A;case A:if(5===e||6===e)break t;case 13:if(i.last){y>>>=7&b,b-=7&b,i.mode=27;break}for(;b<3;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}switch(i.last=1&y,b-=1,3&(y>>>=1)){case 0:i.mode=14;break;case 1:if(v(i),i.mode=20,6===e){y>>>=2,b-=2;break t}break;case 2:i.mode=17;break;case 3:t.msg="invalid block type",i.mode=c}y>>>=2,b-=2;break;case 14:for(y>>>=7&b,b-=7&b;b<32;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if((65535&y)!=(y>>>16^65535)){t.msg="invalid stored block lengths",i.mode=c;break}if(i.length=65535&y,y=0,b=0,i.mode=15,6===e)break t;case 15:i.mode=16;case 16:if(B=i.length){if(B>f&&(B=f),B>m&&(B=m),0===B)break t;n.arraySet(u,d,p,B,g),f-=B,p+=B,m-=B,g+=B,i.length-=B;break}i.mode=A;break;case 17:for(;b<14;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(i.nlen=257+(31&y),y>>>=5,b-=5,i.ndist=1+(31&y),y>>>=5,b-=5,i.ncode=4+(15&y),y>>>=4,b-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=c;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;b<3;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}i.lens[U[i.have++]]=7&y,y>>>=3,b-=3}for(;i.have<19;)i.lens[U[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,F={bits:i.lenbits},T=s(0,i.lens,0,19,i.lencode,0,i.work,F),i.lenbits=F.bits,T){t.msg="invalid code lengths set",i.mode=c;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;S=(N=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,k=65535&N,!((Q=N>>>24)<=b);){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(k<16)y>>>=Q,b-=Q,i.lens[i.have++]=k;else{if(16===k){for(L=Q+2;b<L;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(y>>>=Q,b-=Q,0===i.have){t.msg="invalid bit length repeat",i.mode=c;break}M=i.lens[i.have-1],B=3+(3&y),y>>>=2,b-=2}else if(17===k){for(L=Q+3;b<L;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}b-=Q,M=0,B=3+(7&(y>>>=Q)),y>>>=3,b-=3}else{for(L=Q+7;b<L;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}b-=Q,M=0,B=11+(127&(y>>>=Q)),y>>>=7,b-=7}if(i.have+B>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=c;break}for(;B--;)i.lens[i.have++]=M}}if(i.mode===c)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=c;break}if(i.lenbits=9,F={bits:i.lenbits},T=s(1,i.lens,0,i.nlen,i.lencode,0,i.work,F),i.lenbits=F.bits,T){t.msg="invalid literal/lengths set",i.mode=c;break}if(i.distbits=6,i.distcode=i.distdyn,F={bits:i.distbits},T=s(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,F),i.distbits=F.bits,T){t.msg="invalid distances set",i.mode=c;break}if(i.mode=20,6===e)break t;case 20:i.mode=21;case 21:if(f>=6&&m>=258){t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=f,i.hold=y,i.bits=b,a(t,C),g=t.next_out,u=t.output,m=t.avail_out,p=t.next_in,d=t.input,f=t.avail_in,y=i.hold,b=i.bits,i.mode===A&&(i.back=-1);break}for(i.back=0;S=(N=i.lencode[y&(1<<i.lenbits)-1])>>>16&255,k=65535&N,!((Q=N>>>24)<=b);){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(S&&!(240&S)){for(D=Q,_=S,R=k;S=(N=i.lencode[R+((y&(1<<D+_)-1)>>D)])>>>16&255,k=65535&N,!(D+(Q=N>>>24)<=b);){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}y>>>=D,b-=D,i.back+=D}if(y>>>=Q,b-=Q,i.back+=Q,i.length=k,0===S){i.mode=26;break}if(32&S){i.back=-1,i.mode=A;break}if(64&S){t.msg="invalid literal/length code",i.mode=c;break}i.extra=15&S,i.mode=22;case 22:if(i.extra){for(L=i.extra;b<L;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}i.length+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;S=(N=i.distcode[y&(1<<i.distbits)-1])>>>16&255,k=65535&N,!((Q=N>>>24)<=b);){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(!(240&S)){for(D=Q,_=S,R=k;S=(N=i.distcode[R+((y&(1<<D+_)-1)>>D)])>>>16&255,k=65535&N,!(D+(Q=N>>>24)<=b);){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}y>>>=D,b-=D,i.back+=D}if(y>>>=Q,b-=Q,i.back+=Q,64&S){t.msg="invalid distance code",i.mode=c;break}i.offset=k,i.extra=15&S,i.mode=24;case 24:if(i.extra){for(L=i.extra;b<L;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}i.offset+=y&(1<<i.extra)-1,y>>>=i.extra,b-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=c;break}i.mode=25;case 25:if(0===m)break t;if(B=C-m,i.offset>B){if((B=i.offset-B)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=c;break}B>i.wnext?(B-=i.wnext,w=i.wsize-B):w=i.wnext-B,B>i.length&&(B=i.length),x=i.window}else x=u,w=g-i.offset,B=i.length;B>m&&(B=m),m-=B,i.length-=B;do{u[g++]=x[w++]}while(--B);0===i.length&&(i.mode=21);break;case 26:if(0===m)break t;u[g++]=i.length,m--,i.mode=21;break;case 27:if(i.wrap){for(;b<32;){if(0===f)break t;f--,y|=d[p++]<<b,b+=8}if(C-=m,t.total_out+=C,i.total+=C,C&&(t.adler=i.check=i.flags?o(i.check,u,C,g-C):r(i.check,u,C,g-C)),C=m,(i.flags?y:h(y))!==i.check){t.msg="incorrect data check",i.mode=c;break}y=0,b=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;b<32;){if(0===f)break t;f--,y+=d[p++]<<b,b+=8}if(y!==(4294967295&i.total)){t.msg="incorrect length check",i.mode=c;break}y=0,b=0}i.mode=29;case 29:T=1;break t;case c:T=-3;break t;case 31:return-4;default:return l}return t.next_out=g,t.avail_out=m,t.next_in=p,t.avail_in=f,i.hold=y,i.bits=b,(i.wsize||C!==t.avail_out&&i.mode<c&&(i.mode<27||4!==e))&&E(t,t.output,t.next_out,C-t.avail_out)?(i.mode=31,-4):(I-=t.avail_in,C-=t.avail_out,t.total_in+=I,t.total_out+=C,i.total+=C,i.wrap&&C&&(t.adler=i.check=i.flags?o(i.check,u,C,t.next_out-C):r(i.check,u,C,t.next_out-C)),t.data_type=i.bits+(i.last?64:0)+(i.mode===A?128:0)+(20===i.mode||15===i.mode?256:0),(0===I&&0===C||4===e)&&0===T&&(T=-5),T)},e.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},e.inflateGetHeader=function(t,e){var i;return t&&t.state&&2&(i=t.state).wrap?(i.head=e,e.done=!1,0):l},e.inflateSetDictionary=function(t,e){var i,n=e.length;return t&&t.state?0!==(i=t.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,e,n,0)!==i.check?-3:E(t,e,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},e.inflateInfo="pako inflate (from Nodeca project)"},43106:function(t,e,i){"use strict";var n=i(70901),r=15,o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,i,A,c,h,d,u){var p,g,f,m,y,b,v,E,I,C=u.bits,B=0,w=0,x=0,Q=0,S=0,k=0,D=0,_=0,R=0,M=0,T=null,F=0,L=new n.Buf16(16),N=new n.Buf16(16),P=null,U=0;for(B=0;B<=r;B++)L[B]=0;for(w=0;w<A;w++)L[e[i+w]]++;for(S=C,Q=r;Q>=1&&0===L[Q];Q--);if(S>Q&&(S=Q),0===Q)return c[h++]=20971520,c[h++]=20971520,u.bits=1,0;for(x=1;x<Q&&0===L[x];x++);for(S<x&&(S=x),_=1,B=1;B<=r;B++)if(_<<=1,(_-=L[B])<0)return-1;if(_>0&&(0===t||1!==Q))return-1;for(N[1]=0,B=1;B<r;B++)N[B+1]=N[B]+L[B];for(w=0;w<A;w++)0!==e[i+w]&&(d[N[e[i+w]]++]=w);if(0===t?(T=P=d,b=19):1===t?(T=o,F-=257,P=a,U-=257,b=256):(T=s,P=l,b=-1),M=0,w=0,B=x,y=h,k=S,D=0,f=-1,m=(R=1<<S)-1,1===t&&R>852||2===t&&R>592)return 1;for(;;){v=B-D,d[w]<b?(E=0,I=d[w]):d[w]>b?(E=P[U+d[w]],I=T[F+d[w]]):(E=96,I=0),p=1<<B-D,x=g=1<<k;do{c[y+(M>>D)+(g-=p)]=v<<24|E<<16|I}while(0!==g);for(p=1<<B-1;M&p;)p>>=1;if(0!==p?(M&=p-1,M+=p):M=0,w++,0==--L[B]){if(B===Q)break;B=e[i+d[w]]}if(B>S&&(M&m)!==f){for(0===D&&(D=S),y+=x,_=1<<(k=B-D);k+D<Q&&!((_-=L[k+D])<=0);)k++,_<<=1;if(R+=1<<k,1===t&&R>852||2===t&&R>592)return 1;c[f=M&m]=S<<24|k<<16|y-h}}return 0!==M&&(c[y+M]=B-D<<24|64<<16),u.bits=S,0}},27761:function(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},30824:function(t,e,i){"use strict";var n=i(70901);function r(t){for(var e=t.length;--e>=0;)t[e]=0}var o=256,a=286,s=30,l=15,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],d=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);r(u);var p=new Array(60);r(p);var g=new Array(512);r(g)
;var f=new Array(256);r(f);var m=new Array(29);r(m);var y,b,v,E=new Array(s);function I(t,e,i,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function B(t){return t<256?g[t]:g[256+(t>>>7)]}function w(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,i){t.bi_valid>16-i?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=i)}function Q(t,e,i){x(t,i[2*e],i[2*e+1])}function S(t,e){var i=0;do{i|=1&t,t>>>=1,i<<=1}while(--e>0);return i>>>1}function k(t,e,i){var n,r,o=new Array(16),a=0;for(n=1;n<=l;n++)o[n]=a=a+i[n-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=S(o[s]++,s))}}function D(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function _(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,e,i,n){var r=2*e,o=2*i;return t[r]<t[o]||t[r]===t[o]&&n[e]<=n[i]}function M(t,e,i){for(var n=t.heap[i],r=i<<1;r<=t.heap_len&&(r<t.heap_len&&R(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!R(e,n,t.heap[r],t.depth));)t.heap[i]=t.heap[r],i=r,r<<=1;t.heap[i]=n}function T(t,e,i){var n,r,a,s,l=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===n?Q(t,r,e):(Q(t,(a=f[r])+o+1,e),0!==(s=A[a])&&x(t,r-=m[a],s),Q(t,a=B(--n),i),0!==(s=c[a])&&x(t,n-=E[a],s))}while(l<t.last_lit);Q(t,256,e)}function F(t,e){var i,n,r,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,A=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,i=0;i<A;i++)0!==o[2*i]?(t.heap[++t.heap_len]=c=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=a[2*r+1]);for(e.max_code=c,i=t.heap_len>>1;i>=1;i--)M(t,o,i);r=A;do{i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],M(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,o[2*r]=o[2*i]+o[2*n],t.depth[r]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,o[2*i+1]=o[2*n+1]=r,t.heap[1]=r++,M(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var i,n,r,o,a,s,A=e.dyn_tree,c=e.max_code,h=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,g=e.stat_desc.max_length,f=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(A[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(o=A[2*A[2*(n=t.heap[i])+1]+1]+1)>g&&(o=g,f++),A[2*n+1]=o,n>c||(t.bl_count[o]++,a=0,n>=p&&(a=u[n-p]),s=A[2*n],t.opt_len+=s*(o+a),d&&(t.static_len+=s*(h[2*n+1]+a)));if(0!==f){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,f-=2}while(f>0);for(o=g;0!==o;o--)for(n=t.bl_count[o];0!==n;)(r=t.heap[--i])>c||(A[2*r+1]!==o&&(t.opt_len+=(o-A[2*r+1])*A[2*r],A[2*r+1]=o),n--)}}(t,e),k(o,c,t.bl_count)}function L(t,e,i){var n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),e[2*(i+1)+1]=65535,n=0;n<=i;n++)r=a,a=e[2*(n+1)+1],++s<l&&r===a||(s<A?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=r,0===a?(l=138,A=3):r===a?(l=6,A=3):(l=7,A=4))}function N(t,e,i){var n,r,o=-1,a=e[1],s=0,l=7,A=4;for(0===a&&(l=138,A=3),n=0;n<=i;n++)if(r=a,a=e[2*(n+1)+1],!(++s<l&&r===a)){if(s<A)do{Q(t,r,t.bl_tree)}while(0!=--s);else 0!==r?(r!==o&&(Q(t,r,t.bl_tree),s--),Q(t,16,t.bl_tree),x(t,s-3,2)):s<=10?(Q(t,17,t.bl_tree),x(t,s-3,3)):(Q(t,18,t.bl_tree),x(t,s-11,7));s=0,o=r,0===a?(l=138,A=3):r===a?(l=6,A=3):(l=7,A=4)}}r(E);var P=!1;function U(t,e,i,r){x(t,0+(r?1:0),3),function(t,e,i,r){_(t),r&&(w(t,i),w(t,~i)),n.arraySet(t.pending_buf,t.window,e,i,t.pending),t.pending+=i}(t,e,i,!0)}e._tr_init=function(t){P||(!function(){var t,e,i,n,r,o=new Array(16);for(i=0,n=0;n<28;n++)for(m[n]=i,t=0;t<1<<A[n];t++)f[i++]=n;for(f[i-1]=n,r=0,n=0;n<16;n++)for(E[n]=r,t=0;t<1<<c[n];t++)g[r++]=n;for(r>>=7;n<s;n++)for(E[n]=r<<7,t=0;t<1<<c[n]-7;t++)g[256+r++]=n;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)u[2*t+1]=8,t++,o[8]++;for(;t<=255;)u[2*t+1]=9,t++,o[9]++;for(;t<=279;)u[2*t+1]=7,t++,o[7]++;for(;t<=287;)u[2*t+1]=8,t++,o[8]++;for(k(u,287,o),t=0;t<s;t++)p[2*t+1]=5,p[2*t]=S(t,5);y=new I(u,A,257,a,l),b=new I(p,c,0,s,l),v=new I(new Array(0),h,0,19,7)}(),P=!0),t.l_desc=new C(t.dyn_ltree,y),t.d_desc=new C(t.dyn_dtree,b),t.bl_desc=new C(t.bl_tree,v),t.bi_buf=0,t.bi_valid=0,D(t)},e._tr_stored_block=U,e._tr_flush_block=function(t,e,i,n){var r,a,s=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,i=4093624447;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),s=function(t){var e;for(L(t,t.dyn_ltree,t.l_desc.max_code),L(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*d[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=r&&(r=a)):r=a=i+5,i+4<=r&&-1!==e?U(t,e,i,n):4===t.strategy||a===r?(x(t,2+(n?1:0),3),T(t,u,p)):(x(t,4+(n?1:0),3),function(t,e,i,n){var r;for(x(t,e-257,5),x(t,i-1,5),x(t,n-4,4),r=0;r<n;r++)x(t,t.bl_tree[2*d[r]+1],3);N(t,t.dyn_ltree,e-1),N(t,t.dyn_dtree,i-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),T(t,t.dyn_ltree,t.dyn_dtree)),D(t),n&&_(t)},e._tr_tally=function(t,e,i){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&i,t.last_lit++,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[2*(f[i]+o+1)]++,t.dyn_dtree[2*B(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){x(t,2,3),Q(t,256,u),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},46536:function(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},65945:function(t,e,i){"use strict";i.d(e,{GE:function(){return H},Vv:function(){return Y},_s:function(){return ht},jt:function(){return K},mZ:function(){return z}});var n=i(18073),r=i(23974),o=i(73331),a=i(87314),s=function(t,e,i){return Math.min(Math.max(i,t),e)},l=.001,A=.01,c=10,h=.05,d=1;function u(t){var e,i,n=t.duration,o=void 0===n?800:n,a=t.bounce,u=void 0===a?.25:a,f=t.velocity,m=void 0===f?0:f,y=t.mass,b=void 0===y?1:y;(0,r.K)(o<=1e3*c,"Spring duration must be 10 seconds or less");var v=1-u;v=s(h,d,v),o=s(A,c,o/1e3),v<1?(e=function(t){var e=t*v,i=e*o,n=e-m,r=g(t,v),a=Math.exp(-i);return l-n/r*a},i=function(t){var i=t*v*o,n=i*m+m,r=Math.pow(v,2)*Math.pow(t,2)*o,a=Math.exp(-i),s=g(Math.pow(t,2),v);return(-e(t)+l>0?-1:1)*((n-r)*a)/s}):(e=function(t){return Math.exp(-t*o)*((t-m)*o+1)-l},i=function(t){return Math.exp(-t*o)*(o*o*(m-t))});var E=function(t,e,i){for(var n=i,r=1;r<p;r++)n-=t(n)/e(n);return n}(e,i,5/o);if(isNaN(E))return{stiffness:100,damping:10};var I=Math.pow(E,2)*b;return{stiffness:I,damping:2*v*Math.sqrt(b*I)}}var p=12;function g(t,e){return t*Math.sqrt(1-e*e)}var f=["duration","bounce"],m=["stiffness","damping","mass"];function y(t,e){return e.some((function(e){return void 0!==t[e]}))}function b(t){var e=t.from,i=void 0===e?0:e,r=t.to,o=void 0===r?1:r,a=t.restSpeed,s=void 0===a?2:a,l=t.restDelta,A=(0,n._T)(t,["from","to","restSpeed","restDelta"]),c={done:!1,value:i},h=function(t){var e=(0,n.pi)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!y(t,m)&&y(t,f)){var i=u(t);(e=(0,n.pi)((0,n.pi)((0,n.pi)({},e),i),{velocity:0,mass:1})).isResolvedFromDuration=!0}return e}(A),d=h.stiffness,p=h.damping,b=h.mass,E=h.velocity,I=h.isResolvedFromDuration,C=v,B=v;function w(){var t=E?-E/1e3:0,e=o-i,n=p/(2*Math.sqrt(d*b)),r=Math.sqrt(d/b)/1e3;if(null!=l||(l=Math.abs(o-i)<=1?.01:.4),n<1){var a=g(r,n);C=function(i){var s=Math.exp(-n*r*i)
;return o-s*((t+n*r*e)/a*Math.sin(a*i)+e*Math.cos(a*i))},B=function(i){var o=Math.exp(-n*r*i);return n*r*o*(Math.sin(a*i)*(t+n*r*e)/a+e*Math.cos(a*i))-o*(Math.cos(a*i)*(t+n*r*e)-a*e*Math.sin(a*i))}}else if(1===n)C=function(i){return o-Math.exp(-r*i)*(e+(t+r*e)*i)};else{var s=r*Math.sqrt(n*n-1);C=function(i){var a=Math.exp(-n*r*i),l=Math.min(s*i,300);return o-a*((t+n*r*e)*Math.sinh(l)+s*e*Math.cosh(l))/s}}}return w(),{next:function(t){var e=C(t);if(I)c.done=t>=A.duration;else{var i=1e3*B(t),n=Math.abs(i)<=s,r=Math.abs(o-e)<=l;c.done=n&&r}return c.value=c.done?o:e,c},flipTarget:function(){var t;E=-E,i=(t=[o,i])[0],o=t[1],w()}}}b.needsInterpolation=function(t,e){return"string"==typeof t||"string"==typeof e};var v=function(t){return 0},E=function(t,e,i){var n=e-t;return 0===n?1:(i-t)/n},I=function(t,e,i){return-i*t+i*e+t},C=function(t,e,i){var n=t*t,r=e*e;return Math.sqrt(Math.max(0,i*(r-n)+n))},B=[o.$v,o.m4,o.Jn],w=function(t){return B.find((function(e){return e.test(t)}))},x=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},Q=function(t,e){var i=w(t),a=w(e);(0,r.k)(!!i,x(t)),(0,r.k)(!!a,x(e)),(0,r.k)(i.transform===a.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var s=i.parse(t),l=a.parse(e),A=(0,n.pi)({},s),c=i===o.Jn?I:C;return function(t){for(var e in A)"alpha"!==e&&(A[e]=c(s[e],l[e],t));return A.alpha=I(s.alpha,l.alpha,t),i.transform(A)}},S=function(t){return"number"==typeof t},k=function(t,e){return function(i){return e(t(i))}},D=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(k)};function _(t,e){return S(t)?function(i){return I(t,e,i)}:o.$_.test(t)?Q(t,e):F(t,e)}var R=function(t,e){var i=(0,n.pr)(t),r=i.length,o=t.map((function(t,i){return _(t,e[i])}));return function(t){for(var e=0;e<r;e++)i[e]=o[e](t);return i}},M=function(t,e){var i=(0,n.pi)((0,n.pi)({},t),e),r={};for(var o in i)void 0!==t[o]&&void 0!==e[o]&&(r[o]=_(t[o],e[o]));return function(t){for(var e in r)i[e]=r[e](t);return i}};function T(t){for(var e=o.PY.parse(t),i=e.length,n=0,r=0,a=0,s=0;s<i;s++)n||"number"==typeof e[s]?n++:void 0!==e[s].hue?a++:r++;return{parsed:e,numNumbers:n,numRGB:r,numHSL:a}}var F=function(t,e){var i=o.PY.createTransformer(e),n=T(t),a=T(e);return(0,r.k)(n.numHSL===a.numHSL&&n.numRGB===a.numRGB&&n.numNumbers>=a.numNumbers,"Complex values '"+t+"' and '"+e+"' too different to mix. Ensure all colors are of the same type."),D(R(n.parsed,a.parsed),i)},L=function(t,e){return function(i){return I(t,e,i)}};function N(t,e,i){for(var n,r=[],a=i||("number"==typeof(n=t[0])?L:"string"==typeof n?o.$_.test(n)?Q:F:Array.isArray(n)?R:"object"==typeof n?M:void 0),s=t.length-1,l=0;l<s;l++){var A=a(t[l],t[l+1]);if(e){var c=Array.isArray(e)?e[l]:e;A=D(c,A)}r.push(A)}return r}function P(t,e,i){var n=void 0===i?{}:i,o=n.clamp,a=void 0===o||o,l=n.ease,A=n.mixer,c=t.length;(0,r.k)(c===e.length,"Both input and output ranges must be the same length"),(0,r.k)(!l||!Array.isArray(l)||l.length===c-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),t[0]>t[c-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var h=N(e,l,A),d=2===c?function(t,e){var i=t[0],n=t[1],r=e[0];return function(t){return r(E(i,n,t))}}(t,h):function(t,e){var i=t.length,n=i-1;return function(r){var o=0,a=!1;if(r<=t[0]?a=!0:r>=t[n]&&(o=n-1,a=!0),!a){for(var s=1;s<i&&!(t[s]>r||s===n);s++);o=s-1}var l=E(t[o],t[o+1],r);return e[o](l)}}(t,h);return a?function(e){return d(s(t[0],t[c-1],e))}:d}var U=function(t){return function(e){return 1-t(1-e)}},O=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},G=function(t){return function(e){return Math.pow(e,t)}},H=function(t){return t},V=G(2),Y=U(V),z=O(V);function W(t,e){return t.map((function(){return e||z})).splice(0,t.length-1)}function Z(t){var e=t.from,i=void 0===e?0:e,n=t.to,r=void 0===n?1:n,o=t.ease,a=t.offset,s=t.duration,l=void 0===s?300:s,A={done:!1,value:i},c=Array.isArray(r)?r:[i,r],h=function(t,e){return t.map((function(t){return t*e}))}(a&&a.length===c.length?a:function(t){var e=t.length;return t.map((function(t,i){return 0!==i?i/(e-1):0}))}(c),l);function d(){return P(h,c,{ease:Array.isArray(o)?o:W(c,o)})}var u=d();return{next:function(t){return A.value=u(t),A.done=t>=l,A},flipTarget:function(){c.reverse(),u=d()}}}var j={keyframes:Z,spring:b,decay:function(t){var e=t.velocity,i=void 0===e?0:e,n=t.from,r=void 0===n?0:n,o=t.power,a=void 0===o?.8:o,s=t.timeConstant,l=void 0===s?350:s,A=t.restDelta,c=void 0===A?.5:A,h=t.modifyTarget,d={done:!1,value:r},u=a*i,p=r+u,g=void 0===h?p:h(p);return g!==p&&(u=g-r),{next:function(t){var e=-u*Math.exp(-t/l);return d.done=!(e>c||e<-c),d.value=d.done?g:g+e,d},flipTarget:function(){}}}};function q(t,e,i){return void 0===i&&(i=0),t-e-i}var J=function(t){var e=function(e){var i=e.delta;return t(i)};return{start:function(){return a.ZP.update(e,!0,!0)},stop:function(){return a.qY.update(e)}}};function K(t){var e,i,r,o,a,s=t.from,l=t.autoplay,A=void 0===l||l,c=t.driver,h=void 0===c?J:c,d=t.elapsed,u=void 0===d?0:d,p=t.repeat,g=void 0===p?0:p,f=t.repeatType,m=void 0===f?"loop":f,y=t.repeatDelay,v=void 0===y?0:y,E=t.onPlay,I=t.onStop,C=t.onComplete,B=t.onRepeat,w=t.onUpdate,x=(0,n._T)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),Q=x.to,S=0,k=x.duration,D=!1,_=!0,R=function(t){if(Array.isArray(t.to))return Z;if(j[t.type])return j[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?Z:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?b:Z}(x);(null===(i=(e=R).needsInterpolation)||void 0===i?void 0:i.call(e,s,Q))&&(a=P([0,100],[s,Q],{clamp:!1}),s=0,Q=100);var M=R((0,n.pi)((0,n.pi)({},x),{from:s,to:Q}));function T(){S++,"reverse"===m?u=function(t,e,i,n){return void 0===i&&(i=0),void 0===n&&(n=!0),n?q(e+-t,e,i):e-(t-e)+i}(u,k,v,_=S%2==0):(u=q(u,k,v),"mirror"===m&&M.flipTarget()),D=!1,B&&B()}function F(t){if(_||(t=-t),u+=t,!D){var e=M.next(Math.max(0,u));o=e.value,a&&(o=a(o)),D=_?e.done:u<=0}null==w||w(o),D&&(0===S&&(null!=k||(k=u)),S<g?function(t,e,i,n){return n?t>=e+i:t<=-i}(u,k,v,_)&&T():(r.stop(),C&&C()))}return A&&(null==E||E(),(r=h(F)).start()),{stop:function(){null==I||I(),r.stop()}}}var X=function(t){return t},$=function(t){return void 0===t&&(t=X),function(e,i,n){var r=i-n,o=-(0-e+1)*(0-t(Math.abs(r)));return r<=0?i+o:i-o}};Math.sqrt;var tt=function(t,e){return 1-3*e+3*t},et=function(t,e){return 3*e-6*t},it=function(t){return 3*t},nt=function(t,e,i){return((tt(e,i)*t+et(e,i))*t+it(e))*t},rt=function(t,e,i){return 3*tt(e,i)*t*t+2*et(e,i)*t+it(e)},ot=1e-7,at=10;var st=8,lt=.001;var At=11,ct=1/(At-1);function ht(t,e,i,n){if(t===e&&i===n)return H;for(var r=new Float32Array(At),o=0;o<At;++o)r[o]=nt(o*ct,t,i);function a(e){for(var n=0,o=1,a=At-1;o!==a&&r[o]<=e;++o)n+=ct;--o;var s=n+(e-r[o])/(r[o+1]-r[o])*ct,l=rt(s,t,i);return l>=lt?function(t,e,i,n){for(var r=0;r<st;++r){var o=rt(e,i,n);if(0===o)return e;e-=(nt(e,i,n)-t)/o}return e}(e,s,t,i):0===l?s:function(t,e,i,n,r){var o,a,s=0;do{(o=nt(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a}while(Math.abs(o)>ot&&++s<at);return a}(e,n,n+ct,t,i)}return function(t){return 0===t||1===t?t:nt(a(t),e,n)}}},47019:function(t,e,i){"use strict";var n=function(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){return e.reject(i)}))}))};var r=function(t){return new this((function(e,i){if(!t||void 0===t.length)return i(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var r=n.length;function o(t,i){if(i&&("object"==typeof i||"function"==typeof i)){var a=i.then;if("function"==typeof a)return void a.call(i,(function(e){o(t,e)}),(function(i){n[t]={status:"rejected",reason:i},0==--r&&e(n)}))}n[t]={status:"fulfilled",value:i},0==--r&&e(n)}for(var a=0;a<n.length;a++)o(a,n[a])}))},o=setTimeout
;function a(t){return Boolean(t&&void 0!==t.length)}function s(){}function l(t){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(t,this)}function A(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,l._immediateFn((function(){var i=1===t._state?e.onFulfilled:e.onRejected;if(null!==i){var n;try{n=i(t._value)}catch(t){return void h(e.promise,t)}c(e.promise,n)}else(1===t._state?c:h)(e.promise,t._value)}))):t._deferreds.push(e)}function c(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var i=e.then;if(e instanceof l)return t._state=3,t._value=e,void d(t);if("function"==typeof i)return void p((n=i,r=e,function(){n.apply(r,arguments)}),t)}t._state=1,t._value=e,d(t)}catch(e){h(t,e)}var n,r}function h(t,e){t._state=2,t._value=e,d(t)}function d(t){2===t._state&&0===t._deferreds.length&&l._immediateFn((function(){t._handled||l._unhandledRejectionFn(t._value)}));for(var e=0,i=t._deferreds.length;e<i;e++)A(t,t._deferreds[e]);t._deferreds=null}function u(t,e,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=i}function p(t,e){var i=!1;try{t((function(t){i||(i=!0,c(e,t))}),(function(t){i||(i=!0,h(e,t))}))}catch(t){if(i)return;i=!0,h(e,t)}}l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){var i=new this.constructor(s);return A(this,new u(t,e,i)),i},l.prototype.finally=n,l.all=function(t){return new l((function(e,i){if(!a(t))return i(new TypeError("Promise.all accepts an array"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);var r=n.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){o(t,e)}),i)}n[t]=a,0==--r&&e(n)}catch(t){i(t)}}for(var s=0;s<n.length;s++)o(s,n[s])}))},l.allSettled=r,l.resolve=function(t){return t&&"object"==typeof t&&t.constructor===l?t:new l((function(e){e(t)}))},l.reject=function(t){return new l((function(e,i){i(t)}))},l.race=function(t){return new l((function(e,i){if(!a(t))return i(new TypeError("Promise.race accepts an array"));for(var n=0,r=t.length;n<r;n++)l.resolve(t[n]).then(e,i)}))},l._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){o(t,0)},l._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var g=l,f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==i.g)return i.g;throw new Error("unable to locate global object")}();"function"!=typeof f.Promise?f.Promise=g:f.Promise.prototype.finally?f.Promise.allSettled||(f.Promise.allSettled=r):f.Promise.prototype.finally=n},55391:function(t,e,i){"use strict";t.exports=i(44684)},36666:function(t,e,i){"use strict";t.exports=i(82883)},92461:function(t){"use strict";t.exports=n;var e,i=/\/|\./;function n(t,e){i.test(t)||(t="google/protobuf/"+t+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),n[t]=e}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:e={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:e}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(t){return n[t]||null}},75621:function(t,e,i){"use strict";var n=e,r=i(23327),o=i(24985);function a(t,e,i,n){if(e.resolvedType)if(e.resolvedType instanceof r){t("switch(d%s){",n);for(var o=e.resolvedType.values,a=Object.keys(o),s=0;s<a.length;++s)e.repeated&&o[a[s]]===e.typeDefault&&t("default:"),t("case%j:",a[s])("case %i:",o[a[s]])("m%s=%j",n,o[a[s]])("break");t("}")}else t('if(typeof d%s!=="object")',n)("throw TypeError(%j)",e.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",n,i,n);else{var l=!1;switch(e.type){case"double":case"float":t("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",n,n);break;case"uint64":l=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,l)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,l?"true":"");break;case"bytes":t('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length)",n)("m%s=d%s",n,n);break;case"string":t("m%s=String(d%s)",n,n);break;case"bool":t("m%s=Boolean(d%s)",n,n)}}return t}function s(t,e,i,n){if(e.resolvedType)e.resolvedType instanceof r?t("d%s=o.enums===String?types[%i].values[m%s]:m%s",n,i,n,n):t("d%s=types[%i].toObject(m%s,o)",n,i,n);else{var o=!1;switch(e.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":t('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,o?"true":"",n);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:t("d%s=m%s",n,n)}}return t}n.fromObject=function(t){var e=t.fieldsArray,i=o.codegen(["d"],t.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!e.length)return i("return new this.ctor");i("var m=new this.ctor");for(var n=0;n<e.length;++n){var s=e[n].resolve(),l=o.safeProp(s.name);s.map?(i("if(d%s){",l)('if(typeof d%s!=="object")',l)("throw TypeError(%j)",s.fullName+": object expected")("m%s={}",l)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",l),a(i,s,n,l+"[ks[i]]")("}")("}")):s.repeated?(i("if(d%s){",l)("if(!Array.isArray(d%s))",l)("throw TypeError(%j)",s.fullName+": array expected")("m%s=[]",l)("for(var i=0;i<d%s.length;++i){",l),a(i,s,n,l+"[i]")("}")("}")):(s.resolvedType instanceof r||i("if(d%s!=null){",l),a(i,s,n,l),s.resolvedType instanceof r||i("}"))}return i("return m")},n.toObject=function(t){var e=t.fieldsArray.slice().sort(o.compareFieldsById);if(!e.length)return o.codegen()("return {}");for(var i=o.codegen(["m","o"],t.name+"$toObject")("if(!o)")("o={}")("var d={}"),n=[],a=[],l=[],A=0;A<e.length;++A)e[A].partOf||(e[A].resolve().repeated?n:e[A].map?a:l).push(e[A]);if(n.length){for(i("if(o.arrays||o.defaults){"),A=0;A<n.length;++A)i("d%s=[]",o.safeProp(n[A].name));i("}")}if(a.length){for(i("if(o.objects||o.defaults){"),A=0;A<a.length;++A)i("d%s={}",o.safeProp(a[A].name));i("}")}if(l.length){for(i("if(o.defaults){"),A=0;A<l.length;++A){var c=l[A],h=o.safeProp(c.name)
;if(c.resolvedType instanceof r)i("d%s=o.enums===String?%j:%j",h,c.resolvedType.valuesById[c.typeDefault],c.typeDefault);else if(c.long)i("if(util.Long){")("var n=new util.Long(%i,%i,%j)",c.typeDefault.low,c.typeDefault.high,c.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",h)("}else")("d%s=o.longs===String?%j:%i",h,c.typeDefault.toString(),c.typeDefault.toNumber());else if(c.bytes){var d="["+Array.prototype.slice.call(c.typeDefault).join(",")+"]";i("if(o.bytes===String)d%s=%j",h,String.fromCharCode.apply(String,c.typeDefault))("else{")("d%s=%s",h,d)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",h,h)("}")}else i("d%s=%j",h,c.typeDefault)}i("}")}var u=!1;for(A=0;A<e.length;++A){c=e[A];var p=t._fieldsArray.indexOf(c);h=o.safeProp(c.name);c.map?(u||(u=!0,i("var ks2")),i("if(m%s&&(ks2=Object.keys(m%s)).length){",h,h)("d%s={}",h)("for(var j=0;j<ks2.length;++j){"),s(i,c,p,h+"[ks2[j]]")("}")):c.repeated?(i("if(m%s&&m%s.length){",h,h)("d%s=[]",h)("for(var j=0;j<m%s.length;++j){",h),s(i,c,p,h+"[j]")("}")):(i("if(m%s!=null&&m.hasOwnProperty(%j)){",h,c.name),s(i,c,p,h),c.partOf&&i("if(o.oneofs)")("d%s=%j",o.safeProp(c.partOf.name),c.name)),i("}")}return i("return d")}},96435:function(t,e,i){"use strict";t.exports=function(t){var e=o.codegen(["r","l"],t.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(t.fieldsArray.filter((function(t){return t.map})).length?",k":""))("while(r.pos<c){")("var t=r.uint32()");t.group&&e("if((t&7)===4)")("break");e("switch(t>>>3){");for(var i=0;i<t.fieldsArray.length;++i){var s=t._fieldsArray[i].resolve(),l=s.resolvedType instanceof n?"int32":s.type,A="m"+o.safeProp(s.name);e("case %i:",s.id),s.map?(e("r.skip().pos++")("if(%s===util.emptyObject)",A)("%s={}",A)("k=r.%s()",s.keyType)("r.pos++"),void 0!==r.long[s.keyType]?void 0===r.basic[l]?e('%s[typeof k==="object"?util.longToHash(k):k]=types[%i].decode(r,r.uint32())',A,i):e('%s[typeof k==="object"?util.longToHash(k):k]=r.%s()',A,l):void 0===r.basic[l]?e("%s[k]=types[%i].decode(r,r.uint32())",A,i):e("%s[k]=r.%s()",A,l)):s.repeated?(e("if(!(%s&&%s.length))",A,A)("%s=[]",A),void 0!==r.packed[l]&&e("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",A,l)("}else"),void 0===r.basic[l]?e(s.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",A,i):e("%s.push(r.%s())",A,l)):void 0===r.basic[l]?e(s.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",A,i):e("%s=r.%s()",A,l),e("break")}for(e("default:")("r.skipType(t&7)")("break")("}")("}"),i=0;i<t._fieldsArray.length;++i){var c=t._fieldsArray[i];c.required&&e("if(!m.hasOwnProperty(%j))",c.name)("throw util.ProtocolError(%j,{instance:m})",a(c))}return e("return m")};var n=i(23327),r=i(39419),o=i(24985);function a(t){return"missing required '"+t.name+"'"}},42650:function(t,e,i){"use strict";t.exports=function(t){for(var e,i=o.codegen(["m","w"],t.name+"$encode")("if(!w)")("w=Writer.create()"),s=t.fieldsArray.slice().sort(o.compareFieldsById),l=0;l<s.length;++l){var A=s[l].resolve(),c=t._fieldsArray.indexOf(A),h=A.resolvedType instanceof n?"int32":A.type,d=r.basic[h];e="m"+o.safeProp(A.name),A.map?(i("if(%s!=null&&m.hasOwnProperty(%j)){",e,A.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",e)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(A.id<<3|2)>>>0,8|r.mapKey[A.keyType],A.keyType),void 0===d?i("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,e):i(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|d,h,e),i("}")("}")):A.repeated?(i("if(%s!=null&&%s.length){",e,e),A.packed&&void 0!==r.packed[h]?i("w.uint32(%i).fork()",(A.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",e)("w.%s(%s[i])",h,e)("w.ldelim()"):(i("for(var i=0;i<%s.length;++i)",e),void 0===d?a(i,A,c,e+"[i]"):i("w.uint32(%i).%s(%s[i])",(A.id<<3|d)>>>0,h,e)),i("}")):(A.optional&&i("if(%s!=null&&m.hasOwnProperty(%j))",e,A.name),void 0===d?a(i,A,c,e):i("w.uint32(%i).%s(%s)",(A.id<<3|d)>>>0,h,e))}return i("return w")};var n=i(23327),r=i(39419),o=i(24985);function a(t,e,i,n){return e.resolvedType.group?t("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",i,n,(e.id<<3|3)>>>0,(e.id<<3|4)>>>0):t("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",i,n,(e.id<<3|2)>>>0)}},23327:function(t,e,i){"use strict";t.exports=a;var n=i(23092);((a.prototype=Object.create(n.prototype)).constructor=a).className="Enum";var r=i(46066),o=i(24985);function a(t,e,i,r,o){if(n.call(this,t,i),e&&"object"!=typeof e)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=r,this.comments=o||{},this.reserved=void 0,e)for(var a=Object.keys(e),s=0;s<a.length;++s)"number"==typeof e[a[s]]&&(this.valuesById[this.values[a[s]]=e[a[s]]]=a[s])}a.fromJSON=function(t,e){var i=new a(t,e.values,e.options,e.comment,e.comments);return i.reserved=e.reserved,i},a.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return o.toObject(["options",this.options,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",e?this.comment:void 0,"comments",e?this.comments:void 0])},a.prototype.add=function(t,e,i){if(!o.isString(t))throw TypeError("name must be a string");if(!o.isInteger(e))throw TypeError("id must be an integer");if(void 0!==this.values[t])throw Error("duplicate name '"+t+"' in "+this);if(this.isReservedId(e))throw Error("id "+e+" is reserved in "+this);if(this.isReservedName(t))throw Error("name '"+t+"' is reserved in "+this);if(void 0!==this.valuesById[e]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+e+" in "+this);this.values[t]=e}else this.valuesById[this.values[t]=e]=t;return this.comments[t]=i||null,this},a.prototype.remove=function(t){if(!o.isString(t))throw TypeError("name must be a string");var e=this.values[t];if(null==e)throw Error("name '"+t+"' does not exist in "+this);return delete this.valuesById[e],delete this.values[t],delete this.comments[t],this},a.prototype.isReservedId=function(t){return r.isReservedId(this.reserved,t)},a.prototype.isReservedName=function(t){return r.isReservedName(this.reserved,t)}},25076:function(t,e,i){"use strict";t.exports=A;var n=i(23092);((A.prototype=Object.create(n.prototype)).constructor=A).className="Field";var r,o=i(23327),a=i(39419),s=i(24985),l=/^required|optional|repeated$/;function A(t,e,i,r,o,A,c){if(s.isObject(r)?(c=o,A=r,r=o=void 0):s.isObject(o)&&(c=A,A=o,o=void 0),n.call(this,t,A),!s.isInteger(e)||e<0)throw TypeError("id must be a non-negative integer");if(!s.isString(i))throw TypeError("type must be a string");if(void 0!==r&&!l.test(r=r.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!s.isString(o))throw TypeError("extend must be a string");this.rule=r&&"optional"!==r?r:void 0,this.type=i,this.id=e,this.extend=o||void 0,this.required="required"===r,this.optional=!this.required,this.repeated="repeated"===r,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!s.Long&&void 0!==a.long[i],this.bytes="bytes"===i,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=c}A.fromJSON=function(t,e){return new A(t,e.id,e.type,e.rule,e.extend,e.options,e.comment)},Object.defineProperty(A.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),A.prototype.setOption=function(t,e,i){return"packed"===t&&(this._packed=null),n.prototype.setOption.call(this,t,e,i)},A.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return s.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},A.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=a.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),
this.resolvedType instanceof r?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=s.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var t;s.base64.test(this.typeDefault)?s.base64.decode(this.typeDefault,t=s.newBuffer(s.base64.length(this.typeDefault)),0):s.utf8.write(this.typeDefault,t=s.newBuffer(s.utf8.length(this.typeDefault)),0),this.typeDefault=t}return this.map?this.defaultValue=s.emptyObject:this.repeated?this.defaultValue=s.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof r&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},A.d=function(t,e,i,n){return"function"==typeof e?e=s.decorateType(e).name:e&&"object"==typeof e&&(e=s.decorateEnum(e).name),function(r,o){s.decorateType(r.constructor).add(new A(o,t,e,i,{default:n}))}},A._configure=function(t){r=t}},88379:function(t,e,i){"use strict";var n=t.exports=i(82883);n.build="light",n.load=function(t,e,i){return"function"==typeof e?(i=e,e=new n.Root):e||(e=new n.Root),e.load(t,i)},n.loadSync=function(t,e){return e||(e=new n.Root),e.loadSync(t)},n.encoder=i(42650),n.decoder=i(96435),n.verifier=i(46594),n.converter=i(75621),n.ReflectionObject=i(23092),n.Namespace=i(46066),n.Root=i(24020),n.Enum=i(23327),n.Type=i(15353),n.Field=i(25076),n.OneOf=i(11581),n.MapField=i(79949),n.Service=i(73527),n.Method=i(81071),n.Message=i(43836),n.wrappers=i(93515),n.types=i(39419),n.util=i(24985),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},82883:function(t,e,i){"use strict";var n=e;function r(){n.Reader._configure(n.BufferReader),n.util._configure()}n.build="minimal",n.Writer=i(84990),n.BufferWriter=i(2448),n.Reader=i(15458),n.BufferReader=i(47329),n.util=i(24353),n.rpc=i(75064),n.roots=i(56430),n.configure=r,n.Writer._configure(n.BufferWriter),r()},44684:function(t,e,i){"use strict";var n=t.exports=i(88379);n.build="full",n.tokenize=i(66310),n.parse=i(9944),n.common=i(92461),n.Root._configure(n.Type,n.parse,n.common)},79949:function(t,e,i){"use strict";t.exports=a;var n=i(25076);((a.prototype=Object.create(n.prototype)).constructor=a).className="MapField";var r=i(39419),o=i(24985);function a(t,e,i,r,a,s){if(n.call(this,t,e,r,void 0,void 0,a,s),!o.isString(i))throw TypeError("keyType must be a string");this.keyType=i,this.resolvedKeyType=null,this.map=!0}a.fromJSON=function(t,e){return new a(t,e.id,e.keyType,e.type,e.options,e.comment)},a.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",e?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===r.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},a.d=function(t,e,i){return"function"==typeof i?i=o.decorateType(i).name:i&&"object"==typeof i&&(i=o.decorateEnum(i).name),function(n,r){o.decorateType(n.constructor).add(new a(r,t,e,i))}}},43836:function(t,e,i){"use strict";t.exports=r;var n=i(24353);function r(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)this[e[i]]=t[e[i]]}r.create=function(t){return this.$type.create(t)},r.encode=function(t,e){return this.$type.encode(t,e)},r.encodeDelimited=function(t,e){return this.$type.encodeDelimited(t,e)},r.decode=function(t){return this.$type.decode(t)},r.decodeDelimited=function(t){return this.$type.decodeDelimited(t)},r.verify=function(t){return this.$type.verify(t)},r.fromObject=function(t){return this.$type.fromObject(t)},r.toObject=function(t,e){return this.$type.toObject(t,e)},r.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}},81071:function(t,e,i){"use strict";t.exports=o;var n=i(23092);((o.prototype=Object.create(n.prototype)).constructor=o).className="Method";var r=i(24985);function o(t,e,i,o,a,s,l,A){if(r.isObject(a)?(l=a,a=s=void 0):r.isObject(s)&&(l=s,s=void 0),void 0!==e&&!r.isString(e))throw TypeError("type must be a string");if(!r.isString(i))throw TypeError("requestType must be a string");if(!r.isString(o))throw TypeError("responseType must be a string");n.call(this,t,l),this.type=e||"rpc",this.requestType=i,this.requestStream=!!a||void 0,this.responseType=o,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=A}o.fromJSON=function(t,e){return new o(t,e.type,e.requestType,e.responseType,e.requestStream,e.responseStream,e.options,e.comment)},o.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return r.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",e?this.comment:void 0])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},46066:function(t,e,i){"use strict";t.exports=c;var n=i(23092);((c.prototype=Object.create(n.prototype)).constructor=c).className="Namespace";var r,o,a,s=i(25076),l=i(24985);function A(t,e){if(t&&t.length){for(var i={},n=0;n<t.length;++n)i[t[n].name]=t[n].toJSON(e);return i}}function c(t,e){n.call(this,t,e),this.nested=void 0,this._nestedArray=null}function h(t){return t._nestedArray=null,t}c.fromJSON=function(t,e){return new c(t,e.options).addJSON(e.nested)},c.arrayToJSON=A,c.isReservedId=function(t,e){if(t)for(var i=0;i<t.length;++i)if("string"!=typeof t[i]&&t[i][0]<=e&&t[i][1]>=e)return!0;return!1},c.isReservedName=function(t,e){if(t)for(var i=0;i<t.length;++i)if(t[i]===e)return!0;return!1},Object.defineProperty(c.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=l.toArray(this.nested))}}),c.prototype.toJSON=function(t){return l.toObject(["options",this.options,"nested",A(this.nestedArray,t)])},c.prototype.addJSON=function(t){if(t)for(var e,i=Object.keys(t),n=0;n<i.length;++n)e=t[i[n]],this.add((void 0!==e.fields?r.fromJSON:void 0!==e.values?a.fromJSON:void 0!==e.methods?o.fromJSON:void 0!==e.id?s.fromJSON:c.fromJSON)(i[n],e));return this},c.prototype.get=function(t){return this.nested&&this.nested[t]||null},c.prototype.getEnum=function(t){if(this.nested&&this.nested[t]instanceof a)return this.nested[t].values;throw Error("no such enum: "+t)},c.prototype.add=function(t){if(!(t instanceof s&&void 0!==t.extend||t instanceof r||t instanceof a||t instanceof o||t instanceof c))throw TypeError("object must be a valid nested object");if(this.nested){var e=this.get(t.name);if(e){if(!(e instanceof c&&t instanceof c)||e instanceof r||e instanceof o)throw Error("duplicate name '"+t.name+"' in "+this);for(var i=e.nestedArray,n=0;n<i.length;++n)t.add(i[n]);this.remove(e),this.nested||(this.nested={}),t.setOptions(e.options,!0)}}else this.nested={};return this.nested[t.name]=t,t.onAdd(this),h(this)},c.prototype.remove=function(t){if(!(t instanceof n))throw TypeError("object must be a ReflectionObject");if(t.parent!==this)throw Error(t+" is not a member of "+this);return delete this.nested[t.name],Object.keys(this.nested).length||(this.nested=void 0),t.onRemove(this),h(this)},c.prototype.define=function(t,e){if(l.isString(t))t=t.split(".");else if(!Array.isArray(t))throw TypeError("illegal path");if(t&&t.length&&""===t[0])throw Error("path must be relative");for(var i=this;t.length>0;){var n=t.shift();if(i.nested&&i.nested[n]){
if(!((i=i.nested[n])instanceof c))throw Error("path conflicts with non-namespace objects")}else i.add(i=new c(n))}return e&&i.addJSON(e),i},c.prototype.resolveAll=function(){for(var t=this.nestedArray,e=0;e<t.length;)t[e]instanceof c?t[e++].resolveAll():t[e++].resolve();return this.resolve()},c.prototype.lookup=function(t,e,i){if("boolean"==typeof e?(i=e,e=void 0):e&&!Array.isArray(e)&&(e=[e]),l.isString(t)&&t.length){if("."===t)return this.root;t=t.split(".")}else if(!t.length)return this;if(""===t[0])return this.root.lookup(t.slice(1),e);var n=this.get(t[0]);if(n){if(1===t.length){if(!e||e.indexOf(n.constructor)>-1)return n}else if(n instanceof c&&(n=n.lookup(t.slice(1),e,!0)))return n}else for(var r=0;r<this.nestedArray.length;++r)if(this._nestedArray[r]instanceof c&&(n=this._nestedArray[r].lookup(t,e,!0)))return n;return null===this.parent||i?null:this.parent.lookup(t,e)},c.prototype.lookupType=function(t){var e=this.lookup(t,[r]);if(!e)throw Error("no such type: "+t);return e},c.prototype.lookupEnum=function(t){var e=this.lookup(t,[a]);if(!e)throw Error("no such Enum '"+t+"' in "+this);return e},c.prototype.lookupTypeOrEnum=function(t){var e=this.lookup(t,[r,a]);if(!e)throw Error("no such Type or Enum '"+t+"' in "+this);return e},c.prototype.lookupService=function(t){var e=this.lookup(t,[o]);if(!e)throw Error("no such Service '"+t+"' in "+this);return e},c._configure=function(t,e,i){r=t,o=e,a=i}},23092:function(t,e,i){"use strict";t.exports=o,o.className="ReflectionObject";var n,r=i(24985);function o(t,e){if(!r.isString(t))throw TypeError("name must be a string");if(e&&!r.isObject(e))throw TypeError("options must be an object");this.options=e,this.name=t,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(o.prototype,{root:{get:function(){for(var t=this;null!==t.parent;)t=t.parent;return t}},fullName:{get:function(){for(var t=[this.name],e=this.parent;e;)t.unshift(e.name),e=e.parent;return t.join(".")}}}),o.prototype.toJSON=function(){throw Error()},o.prototype.onAdd=function(t){this.parent&&this.parent!==t&&this.parent.remove(this),this.parent=t,this.resolved=!1;var e=t.root;e instanceof n&&e._handleAdd(this)},o.prototype.onRemove=function(t){var e=t.root;e instanceof n&&e._handleRemove(this),this.parent=null,this.resolved=!1},o.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},o.prototype.getOption=function(t){if(this.options)return this.options[t]},o.prototype.setOption=function(t,e,i){return i&&this.options&&void 0!==this.options[t]||((this.options||(this.options={}))[t]=e),this},o.prototype.setOptions=function(t,e){if(t)for(var i=Object.keys(t),n=0;n<i.length;++n)this.setOption(i[n],t[i[n]],e);return this},o.prototype.toString=function(){var t=this.constructor.className,e=this.fullName;return e.length?t+" "+e:t},o._configure=function(t){n=t}},11581:function(t,e,i){"use strict";t.exports=a;var n=i(23092);((a.prototype=Object.create(n.prototype)).constructor=a).className="OneOf";var r=i(25076),o=i(24985);function a(t,e,i,r){if(Array.isArray(e)||(i=e,e=void 0),n.call(this,t,i),void 0!==e&&!Array.isArray(e))throw TypeError("fieldNames must be an Array");this.oneof=e||[],this.fieldsArray=[],this.comment=r}function s(t){if(t.parent)for(var e=0;e<t.fieldsArray.length;++e)t.fieldsArray[e].parent||t.parent.add(t.fieldsArray[e])}a.fromJSON=function(t,e){return new a(t,e.oneof,e.options,e.comment)},a.prototype.toJSON=function(t){var e=!!t&&Boolean(t.keepComments);return o.toObject(["options",this.options,"oneof",this.oneof,"comment",e?this.comment:void 0])},a.prototype.add=function(t){if(!(t instanceof r))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,s(this),this},a.prototype.remove=function(t){if(!(t instanceof r))throw TypeError("field must be a Field");var e=this.fieldsArray.indexOf(t);if(e<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(e,1),(e=this.oneof.indexOf(t.name))>-1&&this.oneof.splice(e,1),t.partOf=null,this},a.prototype.onAdd=function(t){n.prototype.onAdd.call(this,t);for(var e=0;e<this.oneof.length;++e){var i=t.get(this.oneof[e]);i&&!i.partOf&&(i.partOf=this,this.fieldsArray.push(i))}s(this)},a.prototype.onRemove=function(t){for(var e,i=0;i<this.fieldsArray.length;++i)(e=this.fieldsArray[i]).parent&&e.parent.remove(e);n.prototype.onRemove.call(this,t)},a.d=function(){for(var t=new Array(arguments.length),e=0;e<arguments.length;)t[e]=arguments[e++];return function(e,i){o.decorateType(e.constructor).add(new a(i,t)),Object.defineProperty(e,i,{get:o.oneOfGetter(t),set:o.oneOfSetter(t)})}}},9944:function(t,e,i){"use strict";t.exports=B,B.filename=null,B.defaults={keepCase:!1};var n=i(66310),r=i(24020),o=i(15353),a=i(25076),s=i(79949),l=i(11581),A=i(23327),c=i(73527),h=i(81071),d=i(39419),u=i(24985),p=/^[1-9][0-9]*$/,g=/^-?[1-9][0-9]*$/,f=/^0[x][0-9a-fA-F]+$/,m=/^-?0[x][0-9a-fA-F]+$/,y=/^0[0-7]+$/,b=/^-?0[0-7]+$/,v=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,E=/^[a-zA-Z_][a-zA-Z_0-9]*$/,I=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,C=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function B(t,e,i){e instanceof r||(i=e,e=new r),i||(i=B.defaults);var w,x,Q,S,k,D=n(t,i.alternateCommentMode||!1),_=D.next,R=D.push,M=D.peek,T=D.skip,F=D.cmnt,L=!0,N=!1,P=e,U=i.keepCase?function(t){return t}:u.camelCase;function O(t,e,i){var n=B.filename;return i||(B.filename=null),Error("illegal "+(e||"token")+" '"+t+"' ("+(n?n+", ":"")+"line "+D.line+")")}function G(){var t,e=[];do{if('"'!==(t=_())&&"'"!==t)throw O(t);e.push(_()),T(t),t=M()}while('"'===t||"'"===t);return e.join("")}function H(t){var e=_();switch(e){case"'":case'"':return R(e),G();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(t,e){var i=1;"-"===t.charAt(0)&&(i=-1,t=t.substring(1));switch(t){case"inf":case"INF":case"Inf":return i*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(p.test(t))return i*parseInt(t,10);if(f.test(t))return i*parseInt(t,16);if(y.test(t))return i*parseInt(t,8);if(v.test(t))return i*parseFloat(t);throw O(t,"number",e)}(e,!0)}catch(i){if(t&&I.test(e))return e;throw O(e,"value")}}function V(t,e){var i,n;do{!e||'"'!==(i=M())&&"'"!==i?t.push([n=Y(_()),T("to",!0)?Y(_()):n]):t.push(G())}while(T(",",!0));T(";")}function Y(t,e){switch(t){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!e&&"-"===t.charAt(0))throw O(t,"id");if(g.test(t))return parseInt(t,10);if(m.test(t))return parseInt(t,16);if(b.test(t))return parseInt(t,8);throw O(t,"id")}function z(){if(void 0!==w)throw O("package");if(w=_(),!I.test(w))throw O(w,"name");P=P.define(w),T(";")}function W(){var t,e=M();switch(e){case"weak":t=Q||(Q=[]),_();break;case"public":_();default:t=x||(x=[])}e=G(),T(";"),t.push(e)}function Z(){if(T("="),S=G(),!(N="proto3"===S)&&"proto2"!==S)throw O(S,"syntax");T(";")}function j(t,e){switch(e){case"option":return K(t,e),T(";"),!0;case"message":return function(t,e){if(!E.test(e=_()))throw O(e,"type name");var i=new o(e);q(i,(function(t){if(!j(i,t))switch(t){case"map":!function(t){T("<");var e=_();if(void 0===d.mapKey[e])throw O(e,"type");T(",");var i=_();if(!I.test(i))throw O(i,"type");T(">");var n=_();if(!E.test(n))throw O(n,"name");T("=");var r=new s(U(n),Y(_()),e,i);q(r,(function(t){if("option"!==t)throw O(t);K(r,t),T(";")}),(function(){tt(r)})),t.add(r)}(i);break;case"required":case"optional":case"repeated":J(i,t);break;case"oneof":!function(t,e){if(!E.test(e=_()))throw O(e,"name");var i=new l(U(e));q(i,(function(t){"option"===t?(K(i,t),T(";")):(R(t),J(i,"optional"))})),t.add(i)}(i,t);break;case"extensions":V(i.extensions||(i.extensions=[]));break;case"reserved":V(i.reserved||(i.reserved=[]),!0);break;default:if(!N||!I.test(t))throw O(t);R(t),J(i,"optional")}})),t.add(i)}(t,e),!0;case"enum":return function(t,e){if(!E.test(e=_()))throw O(e,"name");var i=new A(e);q(i,(function(t){switch(t){case"option":K(i,t),T(";");break;case"reserved":V(i.reserved||(i.reserved=[]),!0);break;default:!function(t,e){if(!E.test(e))throw O(e,"name");T("=")
;var i=Y(_(),!0),n={};q(n,(function(t){if("option"!==t)throw O(t);K(n,t),T(";")}),(function(){tt(n)})),t.add(e,i,n.comment)}(i,t)}})),t.add(i)}(t,e),!0;case"service":return function(t,e){if(!E.test(e=_()))throw O(e,"service name");var i=new c(e);q(i,(function(t){if(!j(i,t)){if("rpc"!==t)throw O(t);!function(t,e){var i=e;if(!E.test(e=_()))throw O(e,"name");var n,r,o,a,s=e;T("("),T("stream",!0)&&(r=!0);if(!I.test(e=_()))throw O(e);n=e,T(")"),T("returns"),T("("),T("stream",!0)&&(a=!0);if(!I.test(e=_()))throw O(e);o=e,T(")");var l=new h(s,i,n,o,r,a);q(l,(function(t){if("option"!==t)throw O(t);K(l,t),T(";")})),t.add(l)}(i,t)}})),t.add(i)}(t,e),!0;case"extend":return function(t,e){if(!I.test(e=_()))throw O(e,"reference");var i=e;q(null,(function(e){switch(e){case"required":case"repeated":case"optional":J(t,e,i);break;default:if(!N||!I.test(e))throw O(e);R(e),J(t,"optional",i)}}))}(t,e),!0}return!1}function q(t,e,i){var n=D.line;if(t&&(t.comment=F(),t.filename=B.filename),T("{",!0)){for(var r;"}"!==(r=_());)e(r);T(";",!0)}else i&&i(),T(";"),t&&"string"!=typeof t.comment&&(t.comment=F(n))}function J(t,e,i){var n=_();if("group"!==n){if(!I.test(n))throw O(n,"type");var r=_();if(!E.test(r))throw O(r,"name");r=U(r),T("=");var s=new a(r,Y(_()),n,e,i);q(s,(function(t){if("option"!==t)throw O(t);K(s,t),T(";")}),(function(){tt(s)})),t.add(s),N||!s.repeated||void 0===d.packed[n]&&void 0!==d.basic[n]||s.setOption("packed",!1,!0)}else!function(t,e){var i=_();if(!E.test(i))throw O(i,"name");var n=u.lcFirst(i);i===n&&(i=u.ucFirst(i));T("=");var r=Y(_()),s=new o(i);s.group=!0;var l=new a(n,r,i,e);l.filename=B.filename,q(s,(function(t){switch(t){case"option":K(s,t),T(";");break;case"required":case"optional":case"repeated":J(s,t);break;default:throw O(t)}})),t.add(s).add(l)}(t,e)}function K(t,e){var i=T("(",!0);if(!I.test(e=_()))throw O(e,"name");var n=e;i&&(T(")"),n="("+n+")",e=M(),C.test(e)&&(n+=e,_())),T("="),X(t,n)}function X(t,e){if(T("{",!0))do{if(!E.test(k=_()))throw O(k,"name");"{"===M()?X(t,e+"."+k):(T(":"),"{"===M()?X(t,e+"."+k):$(t,e+"."+k,H(!0))),T(",",!0)}while(!T("}",!0));else $(t,e,H(!0))}function $(t,e,i){t.setOption&&t.setOption(e,i)}function tt(t){if(T("[",!0)){do{K(t,"option")}while(T(",",!0));T("]")}return t}for(;null!==(k=_());)switch(k){case"package":if(!L)throw O(k);z();break;case"import":if(!L)throw O(k);W();break;case"syntax":if(!L)throw O(k);Z();break;case"option":if(!L)throw O(k);K(P,k),T(";");break;default:if(j(P,k)){L=!1;continue}throw O(k)}return B.filename=null,{package:w,imports:x,weakImports:Q,syntax:S,root:e}}},15458:function(t,e,i){"use strict";t.exports=l;var n,r=i(24353),o=r.LongBits,a=r.utf8;function s(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function l(t){this.buf=t,this.pos=0,this.len=t.length}var A,c="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new l(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new l(t);throw Error("illegal buffer")};function h(){var t=new o(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function d(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function u(){if(this.pos+8>this.len)throw s(this,8);return new o(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}l.create=r.Buffer?function(t){return(l.create=function(t){return r.Buffer.isBuffer(t)?new n(t):c(t)})(t)}:c,l.prototype._slice=r.Array.prototype.subarray||r.Array.prototype.slice,l.prototype.uint32=(A=4294967295,function(){if(A=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return A;if(A=(A|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return A;if(A=(A|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return A;if(A=(A|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return A;if(A=(A|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return A;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return A}),l.prototype.int32=function(){return 0|this.uint32()},l.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},l.prototype.bool=function(){return 0!==this.uint32()},l.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return d(this.buf,this.pos+=4)},l.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|d(this.buf,this.pos+=4)},l.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},l.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},l.prototype.bytes=function(){var t=this.uint32(),e=this.pos,i=this.pos+t;if(i>this.len)throw s(this,t);return this.pos+=t,Array.isArray(this.buf)?this.buf.slice(e,i):e===i?new this.buf.constructor(0):this._slice.call(this.buf,e,i)},l.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},l.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},l.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},l._configure=function(t){n=t;var e=r.Long?"toLong":"toNumber";r.merge(l.prototype,{int64:function(){return h.call(this)[e](!1)},uint64:function(){return h.call(this)[e](!0)},sint64:function(){return h.call(this).zzDecode()[e](!1)},fixed64:function(){return u.call(this)[e](!0)},sfixed64:function(){return u.call(this)[e](!1)}})}},47329:function(t,e,i){"use strict";t.exports=o;var n=i(15458);(o.prototype=Object.create(n.prototype)).constructor=o;var r=i(24353);function o(t){n.call(this,t)}r.Buffer&&(o.prototype._slice=r.Buffer.prototype.slice),o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len))}},24020:function(t,e,i){"use strict";t.exports=h;var n=i(46066);((h.prototype=Object.create(n.prototype)).constructor=h).className="Root";var r,o,a,s=i(25076),l=i(23327),A=i(11581),c=i(24985);function h(t){n.call(this,"",t),this.deferred=[],this.files=[]}function d(){}h.fromJSON=function(t,e){return e||(e=new h),t.options&&e.setOptions(t.options),e.addJSON(t.nested)},h.prototype.resolvePath=c.path.resolve,h.prototype.load=function t(e,i,n){"function"==typeof i&&(n=i,i=void 0);var r=this;if(!n)return c.asPromise(t,r,e,i);var s=n===d;function l(t,e){if(n){var i=n;if(n=null,s)throw t;i(t,e)}}function A(t,e){try{if(c.isString(e)&&"{"===e.charAt(0)&&(e=JSON.parse(e)),c.isString(e)){o.filename=t;var n,a=o(e,r,i),A=0;if(a.imports)for(;A<a.imports.length;++A)(n=r.resolvePath(t,a.imports[A]))&&h(n);if(a.weakImports)for(A=0;A<a.weakImports.length;++A)(n=r.resolvePath(t,a.weakImports[A]))&&h(n,!0)}else r.setOptions(e.options).addJSON(e.nested)}catch(t){l(t)}s||u||l(null,r)}function h(t,e){var i=t.lastIndexOf("google/protobuf/");if(i>-1){var o=t.substring(i);o in a&&(t=o)}if(!(r.files.indexOf(t)>-1))if(r.files.push(t),t in a)s?A(t,a[t]):(++u,setTimeout((function(){--u,A(t,a[t])})));else if(s){var h;try{h=c.fs.readFileSync(t).toString("utf8")}catch(t){return void(e||l(t))}A(t,h)}else++u,c.fetch(t,(function(i,o){--u,n&&(i?e?u||l(null,r):l(i):A(t,o))}))}var u=0;c.isString(e)&&(e=[e])
;for(var p,g=0;g<e.length;++g)(p=r.resolvePath("",e[g]))&&h(p);if(s)return r;u||l(null,r)},h.prototype.loadSync=function(t,e){if(!c.isNode)throw Error("not supported");return this.load(t,e,d)},h.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map((function(t){return"'extend "+t.extend+"' in "+t.parent.fullName})).join(", "));return n.prototype.resolveAll.call(this)};var u=/^[A-Z]/;function p(t,e){var i=e.parent.lookup(e.extend);if(i){var n=new s(e.fullName,e.id,e.type,e.rule,void 0,e.options);return n.declaringField=e,e.extensionField=n,i.add(n),!0}return!1}h.prototype._handleAdd=function(t){if(t instanceof s)void 0===t.extend||t.extensionField||p(0,t)||this.deferred.push(t);else if(t instanceof l)u.test(t.name)&&(t.parent[t.name]=t.values);else if(!(t instanceof A)){if(t instanceof r)for(var e=0;e<this.deferred.length;)p(0,this.deferred[e])?this.deferred.splice(e,1):++e;for(var i=0;i<t.nestedArray.length;++i)this._handleAdd(t._nestedArray[i]);u.test(t.name)&&(t.parent[t.name]=t)}},h.prototype._handleRemove=function(t){if(t instanceof s){if(void 0!==t.extend)if(t.extensionField)t.extensionField.parent.remove(t.extensionField),t.extensionField=null;else{var e=this.deferred.indexOf(t);e>-1&&this.deferred.splice(e,1)}}else if(t instanceof l)u.test(t.name)&&delete t.parent[t.name];else if(t instanceof n){for(var i=0;i<t.nestedArray.length;++i)this._handleRemove(t._nestedArray[i]);u.test(t.name)&&delete t.parent[t.name]}},h._configure=function(t,e,i){r=t,o=e,a=i}},56430:function(t){"use strict";t.exports={}},75064:function(t,e,i){"use strict";e.Service=i(7337)},7337:function(t,e,i){"use strict";t.exports=r;var n=i(24353);function r(t,e,i){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(i)}(r.prototype=Object.create(n.EventEmitter.prototype)).constructor=r,r.prototype.rpcCall=function t(e,i,r,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return n.asPromise(t,s,e,i,r,o);if(s.rpcImpl)try{return s.rpcImpl(e,i[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(t,i){if(t)return s.emit("error",t,e),a(t);if(null!==i){if(!(i instanceof r))try{i=r[s.responseDelimited?"decodeDelimited":"decode"](i)}catch(t){return s.emit("error",t,e),a(t)}return s.emit("data",i,e),a(null,i)}s.end(!0)}))}catch(t){return s.emit("error",t,e),void setTimeout((function(){a(t)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},r.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},73527:function(t,e,i){"use strict";t.exports=s;var n=i(46066);((s.prototype=Object.create(n.prototype)).constructor=s).className="Service";var r=i(81071),o=i(24985),a=i(75064);function s(t,e){n.call(this,t,e),this.methods={},this._methodsArray=null}function l(t){return t._methodsArray=null,t}s.fromJSON=function(t,e){var i=new s(t,e.options);if(e.methods)for(var n=Object.keys(e.methods),o=0;o<n.length;++o)i.add(r.fromJSON(n[o],e.methods[n[o]]));return e.nested&&i.addJSON(e.nested),i.comment=e.comment,i},s.prototype.toJSON=function(t){var e=n.prototype.toJSON.call(this,t),i=!!t&&Boolean(t.keepComments);return o.toObject(["options",e&&e.options||void 0,"methods",n.arrayToJSON(this.methodsArray,t)||{},"nested",e&&e.nested||void 0,"comment",i?this.comment:void 0])},Object.defineProperty(s.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=o.toArray(this.methods))}}),s.prototype.get=function(t){return this.methods[t]||n.prototype.get.call(this,t)},s.prototype.resolveAll=function(){for(var t=this.methodsArray,e=0;e<t.length;++e)t[e].resolve();return n.prototype.resolve.call(this)},s.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);return t instanceof r?(this.methods[t.name]=t,t.parent=this,l(this)):n.prototype.add.call(this,t)},s.prototype.remove=function(t){if(t instanceof r){if(this.methods[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.methods[t.name],t.parent=null,l(this)}return n.prototype.remove.call(this,t)},s.prototype.create=function(t,e,i){for(var n,r=new a.Service(t,e,i),s=0;s<this.methodsArray.length;++s){var l=o.lcFirst((n=this._methodsArray[s]).resolve().name).replace(/[^$\w_]/g,"");r[l]=o.codegen(["r","c"],o.isReserved(l)?l+"_":l)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return r}},66310:function(t){"use strict";t.exports=h;var e=/[\s{}=;:[\],'"()<>]/g,i=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,r=/^ *[*/]+ */,o=/^\s*\*?\/*/,a=/\n/g,s=/\s/,l=/\\(.?)/g,A={0:"\0",r:"\r",n:"\n",t:"\t"};function c(t){return t.replace(l,(function(t,e){switch(e){case"\\":case"":return e;default:return A[e]||""}}))}function h(t,l){t=t.toString();var A=0,h=t.length,d=1,u=null,p=null,g=0,f=!1,m=[],y=null;function b(t){return Error("illegal "+t+" (line "+d+")")}function v(e){return t.charAt(e)}function E(e,i){u=t.charAt(e++),g=d,f=!1;var n,s=e-(l?2:3);do{if(--s<0||"\n"===(n=t.charAt(s))){f=!0;break}}while(" "===n||"\t"===n);for(var A=t.substring(e,i).split(a),c=0;c<A.length;++c)A[c]=A[c].replace(l?o:r,"").trim();p=A.join("\n").trim()}function I(e){var i=C(e),n=t.substring(e,i);return/^\s*\/{1,2}/.test(n)}function C(t){for(var e=t;e<h&&"\n"!==v(e);)e++;return e}function B(){if(m.length>0)return m.shift();if(y)return function(){var e="'"===y?n:i;e.lastIndex=A-1;var r=e.exec(t);if(!r)throw b("string");return A=e.lastIndex,w(y),y=null,c(r[1])}();var r,o,a,u,p;do{if(A===h)return null;for(r=!1;s.test(a=v(A));)if("\n"===a&&++d,++A===h)return null;if("/"===v(A)){if(++A===h)throw b("comment");if("/"===v(A))if(l){if(u=A,p=!1,I(A)){p=!0;do{if((A=C(A))===h)break;A++}while(I(A))}else A=Math.min(h,C(A)+1);p&&E(u,A),d++,r=!0}else{for(p="/"===v(u=A+1);"\n"!==v(++A);)if(A===h)return null;++A,p&&E(u,A-1),++d,r=!0}else{if("*"!==(a=v(A)))return"/";u=A+1,p=l||"*"===v(u);do{if("\n"===a&&++d,++A===h)throw b("comment");o=a,a=v(A)}while("*"!==o||"/"!==a);++A,p&&E(u,A-2),r=!0}}}while(r);var g=A;if(e.lastIndex=0,!e.test(v(g++)))for(;g<h&&!e.test(v(g));)++g;var f=t.substring(A,A=g);return'"'!==f&&"'"!==f||(y=f),f}function w(t){m.push(t)}function x(){if(!m.length){var t=B();if(null===t)return null;w(t)}return m[0]}return Object.defineProperty({next:B,peek:x,push:w,skip:function(t,e){var i=x();if(i===t)return B(),!0;if(!e)throw b("token '"+i+"', '"+t+"' expected");return!1},cmnt:function(t){var e=null;return void 0===t?g===d-1&&(l||"*"===u||f)&&(e=p):(g<t&&x(),g!==t||f||!l&&"/"!==u||(e=p)),e}},"line",{get:function(){return d}})}h.unescape=c},15353:function(t,e,i){"use strict";t.exports=y;var n=i(46066);((y.prototype=Object.create(n.prototype)).constructor=y).className="Type";var r=i(23327),o=i(11581),a=i(25076),s=i(79949),l=i(73527),A=i(43836),c=i(15458),h=i(84990),d=i(24985),u=i(42650),p=i(96435),g=i(46594),f=i(75621),m=i(93515);function y(t,e){n.call(this,t,e),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function b(t){return t._fieldsById=t._fieldsArray=t._oneofsArray=null,delete t.encode,delete t.decode,delete t.verify,t}Object.defineProperties(y.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var t=Object.keys(this.fields),e=0;e<t.length;++e){var i=this.fields[t[e]],n=i.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=i}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=d.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=d.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=y.generateConstructor(this)())},set:function(t){var e=t.prototype;e instanceof A||((t.prototype=new A).constructor=t,d.merge(t.prototype,e)),t.$type=t.prototype.$type=this,d.merge(t,A,!0),this._ctor=t
;for(var i=0;i<this.fieldsArray.length;++i)this._fieldsArray[i].resolve();var n={};for(i=0;i<this.oneofsArray.length;++i)n[this._oneofsArray[i].resolve().name]={get:d.oneOfGetter(this._oneofsArray[i].oneof),set:d.oneOfSetter(this._oneofsArray[i].oneof)};i&&Object.defineProperties(t.prototype,n)}}}),y.generateConstructor=function(t){for(var e,i=d.codegen(["p"],t.name),n=0;n<t.fieldsArray.length;++n)(e=t._fieldsArray[n]).map?i("this%s={}",d.safeProp(e.name)):e.repeated&&i("this%s=[]",d.safeProp(e.name));return i("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},y.fromJSON=function(t,e){var i=new y(t,e.options);i.extensions=e.extensions,i.reserved=e.reserved;for(var A=Object.keys(e.fields),c=0;c<A.length;++c)i.add((void 0!==e.fields[A[c]].keyType?s.fromJSON:a.fromJSON)(A[c],e.fields[A[c]]));if(e.oneofs)for(A=Object.keys(e.oneofs),c=0;c<A.length;++c)i.add(o.fromJSON(A[c],e.oneofs[A[c]]));if(e.nested)for(A=Object.keys(e.nested),c=0;c<A.length;++c){var h=e.nested[A[c]];i.add((void 0!==h.id?a.fromJSON:void 0!==h.fields?y.fromJSON:void 0!==h.values?r.fromJSON:void 0!==h.methods?l.fromJSON:n.fromJSON)(A[c],h))}return e.extensions&&e.extensions.length&&(i.extensions=e.extensions),e.reserved&&e.reserved.length&&(i.reserved=e.reserved),e.group&&(i.group=!0),e.comment&&(i.comment=e.comment),i},y.prototype.toJSON=function(t){var e=n.prototype.toJSON.call(this,t),i=!!t&&Boolean(t.keepComments);return d.toObject(["options",e&&e.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,t),"fields",n.arrayToJSON(this.fieldsArray.filter((function(t){return!t.declaringField})),t)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",e&&e.nested||void 0,"comment",i?this.comment:void 0])},y.prototype.resolveAll=function(){for(var t=this.fieldsArray,e=0;e<t.length;)t[e++].resolve();var i=this.oneofsArray;for(e=0;e<i.length;)i[e++].resolve();return n.prototype.resolveAll.call(this)},y.prototype.get=function(t){return this.fields[t]||this.oneofs&&this.oneofs[t]||this.nested&&this.nested[t]||null},y.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof a&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),b(this)}return t instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[t.name]=t,t.onAdd(this),b(this)):n.prototype.add.call(this,t)},y.prototype.remove=function(t){if(t instanceof a&&void 0===t.extend){if(!this.fields||this.fields[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.fields[t.name],t.parent=null,t.onRemove(this),b(this)}if(t instanceof o){if(!this.oneofs||this.oneofs[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.oneofs[t.name],t.parent=null,t.onRemove(this),b(this)}return n.prototype.remove.call(this,t)},y.prototype.isReservedId=function(t){return n.isReservedId(this.reserved,t)},y.prototype.isReservedName=function(t){return n.isReservedName(this.reserved,t)},y.prototype.create=function(t){return new this.ctor(t)},y.prototype.setup=function(){for(var t=this.fullName,e=[],i=0;i<this.fieldsArray.length;++i)e.push(this._fieldsArray[i].resolve().resolvedType);this.encode=u(this)({Writer:h,types:e,util:d}),this.decode=p(this)({Reader:c,types:e,util:d}),this.verify=g(this)({types:e,util:d}),this.fromObject=f.fromObject(this)({types:e,util:d}),this.toObject=f.toObject(this)({types:e,util:d});var n=m[t];if(n){var r=Object.create(this);r.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(r),r.toObject=this.toObject,this.toObject=n.toObject.bind(r)}return this},y.prototype.encode=function(t,e){return this.setup().encode(t,e)},y.prototype.encodeDelimited=function(t,e){return this.encode(t,e&&e.len?e.fork():e).ldelim()},y.prototype.decode=function(t,e){return this.setup().decode(t,e)},y.prototype.decodeDelimited=function(t){return t instanceof c||(t=c.create(t)),this.decode(t,t.uint32())},y.prototype.verify=function(t){return this.setup().verify(t)},y.prototype.fromObject=function(t){return this.setup().fromObject(t)},y.prototype.toObject=function(t,e){return this.setup().toObject(t,e)},y.d=function(t){return function(e){d.decorateType(e,t)}}},39419:function(t,e,i){"use strict";var n=e,r=i(24985),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function a(t,e){var i=0,n={};for(e|=0;i<t.length;)n[o[i+e]]=t[i++];return n}n.basic=a([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=a([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",r.emptyArray,null]),n.long=a([0,0,0,1,1],7),n.mapKey=a([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=a([1,5,0,0,0,5,5,0,0,0,1,1,0])},24985:function(t,e,i){"use strict";var n,r,o=t.exports=i(24353),a=i(56430);o.codegen=i(83234),o.fetch=i(29427),o.path=i(57170),o.fs=o.inquire("fs"),o.toArray=function(t){if(t){for(var e=Object.keys(t),i=new Array(e.length),n=0;n<e.length;)i[n]=t[e[n++]];return i}return[]},o.toObject=function(t){for(var e={},i=0;i<t.length;){var n=t[i++],r=t[i++];void 0!==r&&(e[n]=r)}return e};var s=/\\/g,l=/"/g;o.isReserved=function(t){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(t)},o.safeProp=function(t){return!/^[$\w_]+$/.test(t)||o.isReserved(t)?'["'+t.replace(s,"\\\\").replace(l,'\\"')+'"]':"."+t},o.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.substring(1)};var A=/_([a-z])/g;o.camelCase=function(t){return t.substring(0,1)+t.substring(1).replace(A,(function(t,e){return e.toUpperCase()}))},o.compareFieldsById=function(t,e){return t.id-e.id},o.decorateType=function(t,e){if(t.$type)return e&&t.$type.name!==e&&(o.decorateRoot.remove(t.$type),t.$type.name=e,o.decorateRoot.add(t.$type)),t.$type;n||(n=i(15353));var r=new n(e||t.name);return o.decorateRoot.add(r),r.ctor=t,Object.defineProperty(t,"$type",{value:r,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:r,enumerable:!1}),r};var c=0;o.decorateEnum=function(t){if(t.$type)return t.$type;r||(r=i(23327));var e=new r("Enum"+c++,t);return o.decorateRoot.add(e),Object.defineProperty(t,"$type",{value:e,enumerable:!1}),e},Object.defineProperty(o,"decorateRoot",{get:function(){return a.decorated||(a.decorated=new(i(24020)))}})},3155:function(t,e,i){"use strict";t.exports=r;var n=i(24353);function r(t,e){this.lo=t>>>0,this.hi=e>>>0}var o=r.zero=new r(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=r.zeroHash="\0\0\0\0\0\0\0\0";r.fromNumber=function(t){if(0===t)return o;var e=t<0;e&&(t=-t);var i=t>>>0,n=(t-i)/4294967296>>>0;return e&&(n=~n>>>0,i=~i>>>0,++i>4294967295&&(i=0,++n>4294967295&&(n=0))),new r(i,n)},r.from=function(t){if("number"==typeof t)return r.fromNumber(t);if(n.isString(t)){if(!n.Long)return r.fromNumber(parseInt(t,10));t=n.Long.fromString(t)}return t.low||t.high?new r(t.low>>>0,t.high>>>0):o},r.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,i=~this.hi>>>0;return e||(i=i+1>>>0),-(e+4294967296*i)}return this.lo+4294967296*this.hi},r.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var s=String.prototype.charCodeAt;r.fromHash=function(t){return t===a?o:new r((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},r.prototype.toHash=function(){
return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},r.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},r.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:i<128?9:10}},24353:function(t,e,i){"use strict";var n=e;function r(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;++r)void 0!==t[n[r]]&&i||(t[n[r]]=e[n[r]]);return t}function o(t){function e(t,i){if(!(this instanceof e))return new e(t,i);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),i&&r(this,i)}return(e.prototype=Object.create(Error.prototype)).constructor=e,Object.defineProperty(e.prototype,"name",{get:function(){return t}}),e.prototype.toString=function(){return this.name+": "+this.message},e}n.asPromise=i(67977),n.base64=i(44583),n.EventEmitter=i(188),n.float=i(54585),n.inquire=i(82281),n.utf8=i(74465),n.pool=i(74065),n.LongBits=i(3155),n.global="undefined"!=typeof window&&window||void 0!==i.g&&i.g||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isNode=Boolean(n.global.process&&n.global.process.versions&&n.global.process.versions.node),n.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},n.isString=function(t){return"string"==typeof t||t instanceof String},n.isObject=function(t){return t&&"object"==typeof t},n.isset=n.isSet=function(t,e){var i=t[e];return!(null==i||!t.hasOwnProperty(e))&&("object"!=typeof i||(Array.isArray(i)?i.length:Object.keys(i).length)>0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,e){var i=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(i.lo,i.hi,e):i.toNumber(Boolean(e))},n.merge=r,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var e={},i=0;i<t.length;++i)e[t[i]]=1;return function(){for(var t=Object.keys(this),i=t.length-1;i>-1;--i)if(1===e[t[i]]&&void 0!==this[t[i]]&&null!==this[t[i]])return t[i]}},n.oneOfSetter=function(t){return function(e){for(var i=0;i<t.length;++i)t[i]!==e&&delete this[t[i]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var t=n.Buffer;t?(n._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,i){return new t(e,i)},n._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},46594:function(t,e,i){"use strict";t.exports=function(t){var e=r.codegen(["m"],t.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),i=t.oneofsArray,n={};i.length&&e("var p={}");for(var l=0;l<t.fieldsArray.length;++l){var A=t._fieldsArray[l].resolve(),c="m"+r.safeProp(A.name);if(A.optional&&e("if(%s!=null&&m.hasOwnProperty(%j)){",c,A.name),A.map)e("if(!util.isObject(%s))",c)("return%j",o(A,"object"))("var k=Object.keys(%s)",c)("for(var i=0;i<k.length;++i){"),s(e,A,"k[i]"),a(e,A,l,c+"[k[i]]")("}");else if(A.repeated)e("if(!Array.isArray(%s))",c)("return%j",o(A,"array"))("for(var i=0;i<%s.length;++i){",c),a(e,A,l,c+"[i]")("}");else{if(A.partOf){var h=r.safeProp(A.partOf.name);1===n[A.partOf.name]&&e("if(p%s===1)",h)("return%j",A.partOf.name+": multiple values"),n[A.partOf.name]=1,e("p%s=1",h)}a(e,A,l,c)}A.optional&&e("}")}return e("return null")};var n=i(23327),r=i(24985);function o(t,e){return t.name+": "+e+(t.repeated&&"array"!==e?"[]":t.map&&"object"!==e?"{k:"+t.keyType+"}":"")+" expected"}function a(t,e,i,r){if(e.resolvedType)if(e.resolvedType instanceof n){t("switch(%s){",r)("default:")("return%j",o(e,"enum value"));for(var a=Object.keys(e.resolvedType.values),s=0;s<a.length;++s)t("case %i:",e.resolvedType.values[a[s]]);t("break")("}")}else t("{")("var e=types[%i].verify(%s);",i,r)("if(e)")("return%j+e",e.name+".")("}");else switch(e.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",r)("return%j",o(e,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",r,r,r,r)("return%j",o(e,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',r)("return%j",o(e,"number"));break;case"bool":t('if(typeof %s!=="boolean")',r)("return%j",o(e,"boolean"));break;case"string":t("if(!util.isString(%s))",r)("return%j",o(e,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',r,r,r)("return%j",o(e,"buffer"))}return t}function s(t,e,i){switch(e.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",i)("return%j",o(e,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",i)("return%j",o(e,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",i)("return%j",o(e,"boolean key"))}return t}},93515:function(t,e,i){"use strict";var n=e,r=i(43836);n[".google.protobuf.Any"]={fromObject:function(t){if(t&&t["@type"]){var e=this.lookup(t["@type"]);if(e){var i="."===t["@type"].charAt(0)?t["@type"].substr(1):t["@type"];return this.create({type_url:"/"+i,value:e.encode(e.fromObject(t)).finish()})}}return this.fromObject(t)},toObject:function(t,e){if(e&&e.json&&t.type_url&&t.value){var i=t.type_url.substring(t.type_url.lastIndexOf("/")+1),n=this.lookup(i);n&&(t=n.decode(t.value))}if(!(t instanceof this.ctor)&&t instanceof r){var o=t.$type.toObject(t,e);return o["@type"]=t.$type.fullName,o}return this.toObject(t,e)}}},84990:function(t,e,i){"use strict";t.exports=h;var n,r=i(24353),o=r.LongBits,a=r.base64,s=r.utf8;function l(t,e,i){this.fn=t,this.len=e,this.next=void 0,this.val=i}function A(){}function c(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function h(){this.len=0,this.head=new l(A,0,0),this.tail=this.head,this.states=null}function d(t,e,i){e[i]=255&t}function u(t,e){this.len=t,this.next=void 0,this.val=e}function p(t,e,i){for(;t.hi;)e[i++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[i++]=127&t.lo|128,t.lo=t.lo>>>7;e[i++]=t.lo}function g(t,e,i){e[i]=255&t,e[i+1]=t>>>8&255,e[i+2]=t>>>16&255,e[i+3]=t>>>24}h.create=r.Buffer?function(){return(h.create=function(){return new n})()}:function(){return new h},h.alloc=function(t){return new r.Array(t)},r.Array!==Array&&(h.alloc=r.pool(h.alloc,r.Array.prototype.subarray)),h.prototype._push=function(t,e,i){return this.tail=this.tail.next=new l(t,e,i),this.len+=e,this},u.prototype=Object.create(l.prototype),u.prototype.fn=function(t,e,i){for(;t>127;)e[i++]=127&t|128,t>>>=7;e[i]=t},h.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new u((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},h.prototype.int32=function(t){return t<0?this._push(p,10,o.fromNumber(t)):this.uint32(t)},h.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},h.prototype.uint64=function(t){var e=o.from(t);return this._push(p,e.length(),e)},
h.prototype.int64=h.prototype.uint64,h.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(p,e.length(),e)},h.prototype.bool=function(t){return this._push(d,1,t?1:0)},h.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},h.prototype.sfixed32=h.prototype.fixed32,h.prototype.fixed64=function(t){var e=o.from(t);return this._push(g,4,e.lo)._push(g,4,e.hi)},h.prototype.sfixed64=h.prototype.fixed64,h.prototype.float=function(t){return this._push(r.float.writeFloatLE,4,t)},h.prototype.double=function(t){return this._push(r.float.writeDoubleLE,8,t)};var f=r.Array.prototype.set?function(t,e,i){e.set(t,i)}:function(t,e,i){for(var n=0;n<t.length;++n)e[i+n]=t[n]};h.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(d,1,0);if(r.isString(t)){var i=h.alloc(e=a.length(t));a.decode(t,i,0),t=i}return this.uint32(e)._push(f,e,t)},h.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(d,1,0)},h.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new l(A,0,0),this.len=0,this},h.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new l(A,0,0),this.len=0),this},h.prototype.ldelim=function(){var t=this.head,e=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=t.next,this.tail=e,this.len+=i),this},h.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),i=0;t;)t.fn(t.val,e,i),i+=t.len,t=t.next;return e},h._configure=function(t){n=t}},2448:function(t,e,i){"use strict";t.exports=a;var n=i(84990);(a.prototype=Object.create(n.prototype)).constructor=a;var r=i(24353),o=r.Buffer;function a(){n.call(this)}a.alloc=function(t){return(a.alloc=r._Buffer_allocUnsafe)(t)};var s=o&&o.prototype instanceof Uint8Array&&"set"===o.prototype.set.name?function(t,e,i){e.set(t,i)}:function(t,e,i){if(t.copy)t.copy(e,i,0,t.length);else for(var n=0;n<t.length;)e[i++]=t[n++]};function l(t,e,i){t.length<40?r.utf8.write(t,e,i):e.utf8Write(t,i)}a.prototype.bytes=function(t){r.isString(t)&&(t=r._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(s,e,t),this},a.prototype.string=function(t){var e=o.byteLength(t);return this.uint32(e),e&&this._push(l,e,t),this}},60938:function(t){"use strict";var e=String.prototype.replace,i=/%20/g,n="RFC1738",r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return e.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:n,RFC3986:r}},8776:function(t,e,i){"use strict";var n=i(73525),r=i(81327),o=i(60938);t.exports={formats:o,parse:r,stringify:n}},81327:function(t,e,i){"use strict";var n=i(94676),r=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},A=function(t,e,i,n){if(t){var o=i.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=i.depth>0&&/(\[[^[\]]*])/.exec(o),A=s?o.slice(0,s.index):o,c=[];if(A){if(!i.plainObjects&&r.call(Object.prototype,A)&&!i.allowPrototypes)return;c.push(A)}for(var h=0;i.depth>0&&null!==(s=a.exec(o))&&h<i.depth;){if(h+=1,!i.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!i.allowPrototypes)return;c.push(s[1])}return s&&c.push("["+o.slice(s.index)+"]"),function(t,e,i,n){for(var r=n?e:l(e,i),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&i.parseArrays)a=[].concat(r);else{a=i.plainObjects?Object.create(null):{};var A="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(A,10);i.parseArrays||""!==A?!isNaN(c)&&s!==A&&String(c)===A&&c>=0&&i.parseArrays&&c<=i.arrayLimit?(a=[])[c]=r:"__proto__"!==A&&(a[A]=r):a={0:r}}r=a}return r}(c,e,i,n)}};t.exports=function(t,e){var i=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return i.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var i,A={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=c.split(e.delimiter,h),u=-1,p=e.charset;if(e.charsetSentinel)for(i=0;i<d.length;++i)0===d[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[i]?p="utf-8":"utf8=%26%2310003%3B"===d[i]&&(p="iso-8859-1"),u=i,i=d.length);for(i=0;i<d.length;++i)if(i!==u){var g,f,m=d[i],y=m.indexOf("]="),b=-1===y?m.indexOf("="):y+1;-1===b?(g=e.decoder(m,a.decoder,p,"key"),f=e.strictNullHandling?null:""):(g=e.decoder(m.slice(0,b),a.decoder,p,"key"),f=n.maybeMap(l(m.slice(b+1),e),(function(t){return e.decoder(t,a.decoder,p,"value")}))),f&&e.interpretNumericEntities&&"iso-8859-1"===p&&(f=s(f)),m.indexOf("[]=")>-1&&(f=o(f)?[f]:f),r.call(A,g)?A[g]=n.combine(A[g],f):A[g]=f}return A}(t,i):t,h=i.plainObjects?Object.create(null):{},d=Object.keys(c),u=0;u<d.length;++u){var p=d[u],g=A(p,c[p],i,"string"==typeof t);h=n.merge(h,g,i)}return!0===i.allowSparse?h:n.compact(h)}},73525:function(t,e,i){"use strict";var n=i(41051),r=i(94676),o=i(60938),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,A=String.prototype.split,c=Array.prototype.push,h=function(t,e){c.apply(t,l(e)?e:[e])},d=Date.prototype.toISOString,u=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:u,formatter:o.formatters[u],indices:!1,serializeDate:function(t){return d.call(t)},skipNulls:!1,strictNullHandling:!1},g={},f=function t(e,i,o,a,s,c,d,u,f,m,y,b,v,E,I,C){for(var B,w=e,x=C,Q=0,S=!1;void 0!==(x=x.get(g))&&!S;){var k=x.get(e);if(Q+=1,void 0!==k){if(k===Q)throw new RangeError("Cyclic object value");S=!0}void 0===x.get(g)&&(Q=0)}if("function"==typeof u?w=u(i,w):w instanceof Date?w=y(w):"comma"===o&&l(w)&&(w=r.maybeMap(w,(function(t){return t instanceof Date?y(t):t}))),null===w){if(s)return d&&!E?d(i,p.encoder,I,"key",b):i;w=""}if("string"==typeof(B=w)||"number"==typeof B||"boolean"==typeof B||"symbol"==typeof B||"bigint"==typeof B||r.isBuffer(w)){if(d){var D=E?i:d(i,p.encoder,I,"key",b);if("comma"===o&&E){for(var _=A.call(String(w),","),R="",M=0;M<_.length;++M)R+=(0===M?"":",")+v(d(_[M],p.encoder,I,"value",b));return[v(D)+(a&&l(w)&&1===_.length?"[]":"")+"="+R]}return[v(D)+"="+v(d(w,p.encoder,I,"value",b))]}return[v(i)+"="+v(String(w))]}var T,F=[]
;if(void 0===w)return F;if("comma"===o&&l(w))T=[{value:w.length>0?w.join(",")||null:void 0}];else if(l(u))T=u;else{var L=Object.keys(w);T=f?L.sort(f):L}for(var N=a&&l(w)&&1===w.length?i+"[]":i,P=0;P<T.length;++P){var U=T[P],O="object"==typeof U&&void 0!==U.value?U.value:w[U];if(!c||null!==O){var G=l(w)?"function"==typeof o?o(N,U):N:N+(m?"."+U:"["+U+"]");C.set(e,Q);var H=n();H.set(g,C),h(F,t(O,G,o,a,s,c,d,u,f,m,y,b,v,E,I,H))}}return F};t.exports=function(t,e){var i,r=t,A=function(t){if(!t)return p;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=o.default;if(void 0!==t.format){if(!a.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");i=t.format}var n=o.formatters[i],r=p.filter;return("function"==typeof t.filter||l(t.filter))&&(r=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===t.allowDots?p.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:r,format:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"==typeof A.filter?r=(0,A.filter)("",r):l(A.filter)&&(i=A.filter);var c,d=[];if("object"!=typeof r||null===r)return"";c=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var u=s[c];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===u&&e&&e.commaRoundTrip;i||(i=Object.keys(r)),A.sort&&i.sort(A.sort);for(var m=n(),y=0;y<i.length;++y){var b=i[y];A.skipNulls&&null===r[b]||h(d,f(r[b],b,u,g,A.strictNullHandling,A.skipNulls,A.encode?A.encoder:null,A.filter,A.sort,A.allowDots,A.serializeDate,A.format,A.formatter,A.encodeValuesOnly,A.charset,m))}var v=d.join(A.delimiter),E=!0===A.addQueryPrefix?"?":"";return A.charsetSentinel&&("iso-8859-1"===A.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),v.length>0?E+v:""}},94676:function(t,e,i){"use strict";var n=i(60938),r=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var i=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(i[n]=t[n]);return i};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,i){return t[i]=e[i],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],i=[],n=0;n<e.length;++n)for(var r=e[n],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var A=s[l],c=a[A];"object"==typeof c&&null!==c&&-1===i.indexOf(c)&&(e.push({obj:a,prop:A}),i.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),i=e.obj[e.prop];if(o(i)){for(var n=[],r=0;r<i.length;++r)void 0!==i[r]&&n.push(i[r]);e.obj[e.prop]=n}}}(e),t},decode:function(t,e,i){var n=t.replace(/\+/g," ");if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,i,r,o){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===i)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var l="",A=0;A<s.length;++A){var c=s.charCodeAt(A);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===n.RFC1738&&(40===c||41===c)?l+=s.charAt(A):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(A+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(A)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var i=[],n=0;n<t.length;n+=1)i.push(e(t[n]));return i}return e(t)},merge:function t(e,i,n){if(!i)return e;if("object"!=typeof i){if(o(e))e.push(i);else{if(!e||"object"!=typeof e)return[e,i];(n&&(n.plainObjects||n.allowPrototypes)||!r.call(Object.prototype,i))&&(e[i]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(i);var a=e;return o(e)&&!o(i)&&(a=s(e,n)),o(e)&&o(i)?(i.forEach((function(i,o){if(r.call(e,o)){var a=e[o];a&&"object"==typeof a&&i&&"object"==typeof i?e[o]=t(a,i,n):e.push(i)}else e[o]=i})),e):Object.keys(i).reduce((function(e,o){var a=i[o];return r.call(e,o)?e[o]=t(e[o],a,n):e[o]=a,e}),a)}}},35274:function(t,e,i){"use strict";var n=i(47297),r=i(43748),o=i(22948)(),a=i(83037),s=i(57252),l=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new s("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,A=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(A=!1)}return(n||A||!i)&&(o?r(t,"length",e,!0,!0):r(t,"length",e)),t}},41051:function(t,e,i){"use strict";var n=i(12451),r=i(84584),o=i(47790),a=i(43669),s=n("%WeakMap%",!0),l=n("%Map%",!0),A=r("WeakMap.prototype.get",!0),c=r("WeakMap.prototype.set",!0),h=r("WeakMap.prototype.has",!0),d=r("Map.prototype.get",!0),u=r("Map.prototype.set",!0),p=r("Map.prototype.has",!0),g=function(t,e){for(var i,n=t;null!==(i=n.next);n=i)if(i.key===e)return n.next=i.next,i.next=t.next,t.next=i,i};t.exports=function(){var t,e,i,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+o(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return A(t,n)}else if(l){if(e)return d(e,n)}else if(i)return function(t,e){var i=g(t,e);return i&&i.value}(i,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return h(t,n)}else if(l){if(e)return p(e,n)}else if(i)return function(t,e){return!!g(t,e)}(i,n);return!1},set:function(n,r){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),c(t,n,r)):l?(e||(e=new l),u(e,n,r)):(i||(i={key:{},next:null}),function(t,e,i){var n=g(t,e);n?n.value=i:t.next={key:e,next:t.next,value:i}}(i,n,r))}};return n}},73331:function(t,e,i){"use strict";i.d(e,{$C:function(){return f},$_:function(){return x},$v:function(){return w},Fq:function(){return c},Jn:function(){return B},PY:function(){return D},RW:function(){return u},Rx:function(){return A},bA:function(){return h},m4:function(){return C},px:function(){return g}});var n=i(18073),r=function(t,e){return function(i){return Math.max(Math.min(i,e),t)}},o=function(t){return t%1?Number(t.toFixed(5)):t},a=/(-)?(\d[\d\.]*)/g,s=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,l=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,A={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},c=(0,n.pi)((0,n.pi)({},A),{transform:r(0,1)}),h=(0,n.pi)((0,n.pi)({},A),{default:1}),d=function(t){return{test:function(e){return"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},u=d("deg"),p=d("%"),g=d("px"),f=(d("vh"),d("vw"),(0,n.pi)((0,n.pi)({},p),{parse:function(t){return p.parse(t)/100},transform:function(t){return p.transform(100*t)}
})),m=r(0,255),y=function(t){return void 0!==t.red},b=function(t){return void 0!==t.hue};var v=function(t){return function(e){if("string"!=typeof e)return e;for(var i={},n=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))}(e).replace(/(,|\/)/g," ").split(/ \s*/),r=0;r<4;r++)i[t[r]]=void 0!==n[r]?parseFloat(n[r]):1;return i}},E=(0,n.pi)((0,n.pi)({},A),{transform:function(t){return Math.round(m(t))}});function I(t,e){return t.startsWith(e)&&l.test(t)}var C={test:function(t){return"string"==typeof t?I(t,"rgb"):y(t)},parse:v(["red","green","blue","alpha"]),transform:function(t){var e=t.red,i=t.green,n=t.blue,r=t.alpha,a=void 0===r?1:r;return function(t){var e=t.red,i=t.green,n=t.blue,r=t.alpha;return"rgba("+e+", "+i+", "+n+", "+(void 0===r?1:r)+")"}({red:E.transform(e),green:E.transform(i),blue:E.transform(n),alpha:o(c.transform(a))})}},B={test:function(t){return"string"==typeof t?I(t,"hsl"):b(t)},parse:v(["hue","saturation","lightness","alpha"]),transform:function(t){var e=t.hue,i=t.saturation,n=t.lightness,r=t.alpha,a=void 0===r?1:r;return function(t){var e=t.hue,i=t.saturation,n=t.lightness,r=t.alpha;return"hsla("+e+", "+i+", "+n+", "+(void 0===r?1:r)+")"}({hue:Math.round(e),saturation:p.transform(o(i)),lightness:p.transform(o(n)),alpha:o(c.transform(a))})}},w=(0,n.pi)((0,n.pi)({},C),{test:function(t){return"string"==typeof t&&I(t,"#")},parse:function(t){var e="",i="",n="";return t.length>4?(e=t.substr(1,2),i=t.substr(3,2),n=t.substr(5,2)):(e=t.substr(1,1),i=t.substr(2,1),n=t.substr(3,1),e+=e,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:1}}}),x={test:function(t){return"string"==typeof t&&l.test(t)||y(t)||b(t)},parse:function(t){return C.test(t)?C.parse(t):B.test(t)?B.parse(t):w.test(t)?w.parse(t):t},transform:function(t){return y(t)?C.transform(t):b(t)?B.transform(t):t}},Q="${c}",S="${n}",k=function(t){return"number"==typeof t?0:t},D={test:function(t){if("string"!=typeof t||!isNaN(t))return!1;var e=0,i=t.match(a),n=t.match(s);return i&&(e+=i.length),n&&(e+=n.length),e>0},parse:function(t){var e=t,i=[],n=e.match(s);n&&(e=e.replace(s,Q),i.push.apply(i,n.map(x.parse)));var r=e.match(a);return r&&i.push.apply(i,r.map(A.parse)),i},createTransformer:function(t){var e=t,i=0,n=t.match(s),r=n?n.length:0;if(n)for(var l=0;l<r;l++)e=e.replace(n[l],Q),i++;var A=e.match(a),c=A?A.length:0;if(A)for(l=0;l<c;l++)e=e.replace(A[l],S),i++;return function(t){for(var n=e,a=0;a<i;a++)n=n.replace(a<r?Q:S,a<r?x.transform(t[a]):o(t[a]));return n}},getAnimatableNone:function(t){var e=D.parse(t);return D.createTransformer(t)(e.map(k))}}},40712:function(t,e,i){"use strict";var n,r=i(18073),o=i(87314),a=i(73331),s=i(23974),l=function(t){var e=t.onRead,i=t.onRender,n=t.uncachedValues,a=void 0===n?new Set:n,s=t.useCache,l=void 0===s||s;return function(t){void 0===t&&(t={});var n=(0,r._T)(t,[]),s={},A=[],c=!1;function h(t,e){t.startsWith("--")&&(n.hasCSSVariable=!0);var i=s[t];s[t]=e,s[t]!==i&&(-1===A.indexOf(t)&&A.push(t),c||(c=!0,o.ZP.render(d.render)))}var d={get:function(t,i){return void 0===i&&(i=!1),!i&&l&&!a.has(t)&&void 0!==s[t]?s[t]:e(t,n)},set:function(t,e){if("string"==typeof t)h(t,e);else for(var i in t)h(i,t[i]);return this},render:function(t){return void 0===t&&(t=!1),(c||!0===t)&&(i(s,n,A),c=!1,A.length=0),this}};return d}},A=/([a-z])([A-Z])/g,c=function(t){return t.replace(A,"$1-$2").toLowerCase()},h=new Map,d=new Map,u=["Webkit","Moz","O","ms",""],p=u.length,g="undefined"!=typeof document,f=function(t,e){return d.set(t,c(e))},m=function(t,e){void 0===e&&(e=!1);var i=e?d:h;return i.has(t)||(g?function(t){n=n||document.createElement("div");for(var e=0;e<p;e++){var i=u[e],r=""===i,o=r?t:i+t.charAt(0).toUpperCase()+t.slice(1);if(o in n.style||r){if(r&&"clipPath"===t&&d.has(t))return;h.set(t,o),f(t,(r?"":"-")+c(o))}}}(t):function(t){f(t,t)}(t)),i.get(t)||t},y=["","X","Y","Z"],b=["translate","scale","rotate","skew","transformPerspective"].reduce((function(t,e){return y.reduce((function(t,i){return t.push(e+i),t}),t)}),["x","y","z"]),v=b.reduce((function(t,e){return t[e]=!0,t}),{});function E(t){return!0===v[t]}function I(t,e){return b.indexOf(t)-b.indexOf(e)}var C=new Set(["originX","originY","originZ"]);function B(t){return C.has(t)}var w=(0,r.pi)((0,r.pi)({},a.Rx),{transform:Math.round}),x={color:a.$_,backgroundColor:a.$_,outlineColor:a.$_,fill:a.$_,stroke:a.$_,borderColor:a.$_,borderTopColor:a.$_,borderRightColor:a.$_,borderBottomColor:a.$_,borderLeftColor:a.$_,borderWidth:a.px,borderTopWidth:a.px,borderRightWidth:a.px,borderBottomWidth:a.px,borderLeftWidth:a.px,borderRadius:a.px,radius:a.px,borderTopLeftRadius:a.px,borderTopRightRadius:a.px,borderBottomRightRadius:a.px,borderBottomLeftRadius:a.px,width:a.px,maxWidth:a.px,height:a.px,maxHeight:a.px,size:a.px,top:a.px,right:a.px,bottom:a.px,left:a.px,padding:a.px,paddingTop:a.px,paddingRight:a.px,paddingBottom:a.px,paddingLeft:a.px,margin:a.px,marginTop:a.px,marginRight:a.px,marginBottom:a.px,marginLeft:a.px,rotate:a.RW,rotateX:a.RW,rotateY:a.RW,rotateZ:a.RW,scale:a.bA,scaleX:a.bA,scaleY:a.bA,scaleZ:a.bA,skew:a.RW,skewX:a.RW,skewY:a.RW,distance:a.px,translateX:a.px,translateY:a.px,translateZ:a.px,x:a.px,y:a.px,z:a.px,perspective:a.px,opacity:a.Fq,originX:a.$C,originY:a.$C,originZ:a.px,zIndex:w,fillOpacity:a.Fq,strokeOpacity:a.Fq,numOctaves:w},Q=function(t){return x[t]},S=function(t,e){return e&&"number"==typeof t?e.transform(t):t},k="scrollLeft",D="scrollTop",_=new Set([k,D]),R=new Set([k,D,"transform"]),M={x:"translateX",y:"translateY",z:"translateZ"};function T(t){return"function"==typeof t}function F(t,e,i,n,r,o,a,s){void 0===e&&(e=!0),void 0===i&&(i={}),void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=[]),void 0===a&&(a=!1),void 0===s&&(s=!0);var l=!0,A=!1,c=!1;for(var h in t){var d=t[h],u=Q(h),p=S(d,u);E(h)?(A=!0,n[h]=p,o.push(h),l&&(u.default&&d!==u.default||!u.default&&0!==d)&&(l=!1)):B(h)?(r[h]=p,c=!0):R.has(h)&&T(p)||(i[m(h,a)]=p)}return(A||"function"==typeof t.transform)&&(i.transform=function(t,e,i,n,r,o){void 0===o&&(o=!0);var a="",s=!1;i.sort(I);for(var l=i.length,A=0;A<l;A++){var c=i[A];a+=(M[c]||c)+"("+e[c]+") ",s="z"===c||s}return!s&&r?a+="translateZ(0)":a=a.trim(),T(t.transform)?a=t.transform(e,n?"":a):o&&n&&(a="none"),a}(t,n,o,l,e,s)),c&&(i.transformOrigin=(r.originX||"50%")+" "+(r.originY||"50%")+" "+(r.originZ||0)),i}function L(t){var e=void 0===t?{}:t,i=e.enableHardwareAcceleration,n=void 0===i||i,r=e.isDashCase,o=void 0===r||r,a=e.allowTransformNone,s=void 0===a||a,l={},A={},c={},h=[];return function(t){return h.length=0,F(t,n,l,A,c,h,o,s),l}}var N=l({onRead:function(t,e){var i=e.element,n=e.preparseOutput,r=Q(t);if(E(t))return r&&r.default||0;if(_.has(t))return i[t];var o=window.getComputedStyle(i,null).getPropertyValue(m(t,!0))||0;return n&&r&&r.test(o)&&r.parse?r.parse(o):o},onRender:function(t,e,i){var n=e.element,r=e.buildStyles,o=e.hasCSSVariable;if(Object.assign(n.style,r(t)),o)for(var a=i.length,s=0;s<a;s++){var l=i[s];l.startsWith("--")&&n.style.setProperty(l,t[l])}-1!==i.indexOf(k)&&(n[k]=t[k]),-1!==i.indexOf(D)&&(n[D]=t[D])},uncachedValues:_});var P=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),U=function(t,e){return a.px.transform(t*e)},O={x:0,y:0,width:0,height:0};function G(t,e,i){return"string"==typeof t?t:a.px.transform(e+i*t)}var H={enableHardwareAcceleration:!1,isDashCase:!1};function V(t,e,i,n,o,a){void 0===e&&(e=O),void 0===n&&(n=L(H)),void 0===o&&(o={style:{}}),void 0===a&&(a=!0);var s=t.attrX,l=t.attrY,A=t.originX,h=t.originY,d=t.pathLength,u=t.pathSpacing,p=void 0===u?1:u,g=t.pathOffset,f=void 0===g?0:g,m=n((0,r._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var y in m){if("transform"===y)o.style.transform=m[y];else o[a&&!P.has(y)?c(y):y]=m[y]}return(void 0!==A||void 0!==h||m.transform)&&(o.style.transformOrigin=function(t,e,i){return G(e,t.x,t.width)+" "+G(i,t.y,t.height)}(e,void 0!==A?A:.5,void 0!==h?h:.5)),void 0!==s&&(o.x=s),void 0!==l&&(o.y=l),
void 0!==i&&void 0!==d&&(o[a?"stroke-dashoffset":"strokeDashoffset"]=U(-f,i),o[a?"stroke-dasharray":"strokeDasharray"]=U(d,i)+" "+U(p,i)),o}function Y(t,e,i){void 0===i&&(i=!0);var n={style:{}},r=L(H);return function(o){return V(o,t,e,r,n,i)}}var z=l({onRead:function(t,e){var i=e.element;if(E(t=P.has(t)?t:c(t))){var n=Q(t);return n&&n.default||0}return i.getAttribute(t)},onRender:function(t,e){var i=e.element,n=(0,e.buildAttrs)(t);for(var r in n)"style"===r?Object.assign(i.style,n.style):i.setAttribute(r,n[r])}}),W=l({useCache:!1,onRead:function(t){return"scrollTop"===t?window.pageYOffset:window.pageXOffset},onRender:function(t){var e=t.scrollTop,i=void 0===e?0:e,n=t.scrollLeft,r=void 0===n?0:n;return window.scrollTo(r,i)}}),Z=new WeakMap,j=function(t,e){var i,n,o,a;return t===window?i=W(t):!function(t){return t instanceof HTMLElement||"function"==typeof t.click}(t)?function(t){return t instanceof SVGElement||"ownerSVGElement"in t}(t)&&(o=function(t){try{return function(t){return"function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}(t)}catch(t){return{x:0,y:0,width:0,height:0}}}(n=t),a=function(t){return"path"===t.tagName}(n)&&n.getTotalLength?n.getTotalLength():void 0,i=z({element:n,buildAttrs:Y(o,a)})):i=function(t,e){void 0===e&&(e={});var i=e.enableHardwareAcceleration,n=e.allowTransformNone,o=(0,r._T)(e,["enableHardwareAcceleration","allowTransformNone"]);return N((0,r.pi)({element:t,buildStyles:L({enableHardwareAcceleration:i,allowTransformNone:n}),preparseOutput:!0},o))}(t,e),(0,s.k)(void 0!==i,"No valid node provided. Node must be HTMLElement, SVGElement or window."),Z.set(t,i),i};e.ZP=function(t,e){return function(t,e){return Z.has(t)?Z.get(t):j(t,e)}("string"==typeof t?document.querySelector(t):t,e)}},18073:function(t,e,i){"use strict";i.d(e,{_T:function(){return r},pi:function(){return n},pr:function(){return o}});var n=function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};function r(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(t);r<n.length;r++)e.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]])}return i}function o(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n}},3925:function(t,e,i){"use strict";i.r(e);i(5837),i(47168),i(73706),i(10523),i(64832),i(57400)},5837:function(t,e,i){(function(){var t=function(){return this}();!t&&"undefined"!=typeof window&&(t=window);var e=function(t,i,n){"string"==typeof t?(2==arguments.length&&(n=i),e.modules[t]||(e.payloads[t]=n,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};e.modules={},e.payloads={};var i,n,r=function(t,e,i){if("string"==typeof e){var n=s(t,e);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(e)){for(var r=[],a=0,l=e.length;a<l;++a){var A=s(t,e[a]);if(null==A&&o.original)return;r.push(A)}return i&&i.apply(null,r)||!0}},o=function(t,e){var i=r("",t,e);return null==i&&o.original?o.original.apply(this,arguments):i},a=function(t,e){if(-1!==e.indexOf("!")){var i=e.split("!");return a(t,i[0])+"!"+a(t,i[1])}if("."==e.charAt(0))for(e=t.split("/").slice(0,-1).join("/")+"/"+e;-1!==e.indexOf(".")&&n!=e;){var n=e;e=e.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return e},s=function(t,i){i=a(t,i);var n=e.modules[i];if(!n){if("function"==typeof(n=e.payloads[i])){var o={},s={id:i,uri:"",exports:o,packaged:!0};o=n((function(t,e){return r(i,t,e)}),o,s)||s.exports,e.modules[i]=o,delete e.payloads[i]}n=e.modules[i]=o||n}return n};n=t,(i="ace")&&(t[i]||(t[i]={}),n=t[i]),n.define&&n.define.packaged||(e.original=n.define,n.define=e,n.define.packaged=!0),n.require&&n.require.packaged||(o.original=n.require,n.require=o,n.require.packaged=!0)})(),ace.define("ace/lib/regexp",["require","exports","module"],(function(t,e,i){"use strict";var n,r={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},o=void 0===r.exec.call(/()??/,"")[1],a=(n=/^/g,r.test.call(n,""),!n.lastIndex);a&&o||(RegExp.prototype.exec=function(t){var e,i,n=r.exec.apply(this,arguments);if("string"==typeof t&&n){if(!o&&n.length>1&&function(t,e,i){if(Array.prototype.indexOf)return t.indexOf(e,i);for(var n=i||0;n<t.length;n++)if(t[n]===e)return n;return-1}(n,"")>-1&&(i=RegExp(this.source,r.replace.call(function(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":"")}(this),"g","")),r.replace.call(t.slice(n.index),i,(function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(n[t]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var s=1;s<n.length;s++)(e=this._xregexp.captureNames[s-1])&&(n[e]=n[s]);!a&&this.global&&!n[0].length&&this.lastIndex>n.index&&this.lastIndex--}return n},a||(RegExp.prototype.test=function(t){var e=r.exec.call(this,t);return e&&this.global&&!e[0].length&&this.lastIndex>e.index&&this.lastIndex--,!!e}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(t,e,i){function n(){}function r(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(t){}}function o(t){return(t=+t)!=t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError("Function.prototype.bind called on incompatible "+e);var i=p.call(arguments,1),r=function(){if(this instanceof r){var n=e.apply(this,i.concat(p.call(arguments)));return Object(n)===n?n:this}return e.apply(t,i.concat(p.call(arguments)))};return e.prototype&&(n.prototype=e.prototype,r.prototype=new n,n.prototype=null),r});var a,s,l,A,c,h=Function.prototype.call,d=Array.prototype,u=Object.prototype,p=d.slice,g=h.bind(u.toString),f=h.bind(u.hasOwnProperty);if((c=f(u,"__defineGetter__"))&&(a=h.bind(u.__defineGetter__),s=h.bind(u.__defineSetter__),l=h.bind(u.__lookupGetter__),A=h.bind(u.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function t(t){var e=new Array(t+2);return e[0]=e[1]=0,e}var e,i=[];if(i.splice.apply(i,t(20)),i.splice.apply(i,t(26)),e=i.length,i.splice(5,0,"XXX"),i.length,e+1==i.length)return!0}()){var m=Array.prototype.splice;Array.prototype.splice=function(t,e){return arguments.length?m.apply(this,[void 0===t?0:t,void 0===e?this.length-t:e].concat(p.call(arguments,2))):[]}}else Array.prototype.splice=function(t,e){var i=this.length;t>0?t>i&&(t=i):null==t?t=0:t<0&&(t=Math.max(i+t,0)),t+e<i||(e=i-t);var n=this.slice(t,t+e),r=p.call(arguments,2),o=r.length;if(t===i)o&&this.push.apply(this,r);else{var a=Math.min(e,i-t),s=t+a,l=s+o-a,A=i-s,c=i-a;if(l<s)for(var h=0;h<A;++h)this[l+h]=this[s+h];else if(l>s)for(h=A;h--;)this[l+h]=this[s+h];if(o&&t===c)this.length=c,this.push.apply(this,r);else for(this.length=c+o,h=0;h<o;++h)this[t+h]=r[h]}return n};Array.isArray||(Array.isArray=function(t){return"[object Array]"==g(t)});var y,b,v=Object("a"),E="a"!=v[0]||!(0 in v);if(Array.prototype.forEach||(Array.prototype.forEach=function(t){var e=R(this),i=E&&"[object String]"==g(this)?this.split(""):e,n=arguments[1],r=-1,o=i.length>>>0;if("[object Function]"!=g(t))throw new TypeError;for(;++r<o;)r in i&&t.call(n,i[r],r,e)}),Array.prototype.map||(Array.prototype.map=function(t){var e=R(this),i=E&&"[object String]"==g(this)?this.split(""):e,n=i.length>>>0,r=Array(n),o=arguments[1];if("[object Function]"!=g(t))throw new TypeError(t+" is not a function");for(var a=0;a<n;a++)a in i&&(r[a]=t.call(o,i[a],a,e));return r}),Array.prototype.filter||(Array.prototype.filter=function(t){var e,i=R(this),n=E&&"[object String]"==g(this)?this.split(""):i,r=n.length>>>0,o=[],a=arguments[1]
;if("[object Function]"!=g(t))throw new TypeError(t+" is not a function");for(var s=0;s<r;s++)s in n&&(e=n[s],t.call(a,e,s,i)&&o.push(e));return o}),Array.prototype.every||(Array.prototype.every=function(t){var e=R(this),i=E&&"[object String]"==g(this)?this.split(""):e,n=i.length>>>0,r=arguments[1];if("[object Function]"!=g(t))throw new TypeError(t+" is not a function");for(var o=0;o<n;o++)if(o in i&&!t.call(r,i[o],o,e))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t){var e=R(this),i=E&&"[object String]"==g(this)?this.split(""):e,n=i.length>>>0,r=arguments[1];if("[object Function]"!=g(t))throw new TypeError(t+" is not a function");for(var o=0;o<n;o++)if(o in i&&t.call(r,i[o],o,e))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t){var e=R(this),i=E&&"[object String]"==g(this)?this.split(""):e,n=i.length>>>0;if("[object Function]"!=g(t))throw new TypeError(t+" is not a function");if(!n&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,o=0;if(arguments.length>=2)r=arguments[1];else for(;;){if(o in i){r=i[o++];break}if(++o>=n)throw new TypeError("reduce of empty array with no initial value")}for(;o<n;o++)o in i&&(r=t.call(void 0,r,i[o],o,e));return r}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t){var e=R(this),i=E&&"[object String]"==g(this)?this.split(""):e,n=i.length>>>0;if("[object Function]"!=g(t))throw new TypeError(t+" is not a function");if(!n&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,o=n-1;if(arguments.length>=2)r=arguments[1];else for(;;){if(o in i){r=i[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(r=t.call(void 0,r,i[o],o,e))}while(o--);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(t){var e=E&&"[object String]"==g(this)?this.split(""):R(this),i=e.length>>>0;if(!i)return-1;var n=0;for(arguments.length>1&&(n=o(arguments[1])),n=n>=0?n:Math.max(0,i+n);n<i;n++)if(n in e&&e[n]===t)return n;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(t){var e=E&&"[object String]"==g(this)?this.split(""):R(this),i=e.length>>>0;if(!i)return-1;var n=i-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n=n>=0?n:i-Math.abs(n);n>=0;n--)if(n in e&&t===e[n])return n;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(f(t,e)){var i;if(i={enumerable:!0,configurable:!0},c){var n=t.__proto__;t.__proto__=u;var r=l(t,e),o=A(t,e);if(t.__proto__=n,r||o)return r&&(i.get=r),o&&(i.set=o),i}return i.value=t[e],i}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),Object.create)||(y=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var t={};for(var e in t)t[e]=null;return t.constructor=t.hasOwnProperty=t.propertyIsEnumerable=t.isPrototypeOf=t.toLocaleString=t.toString=t.valueOf=t.__proto__=null,t},Object.create=function(t,e){var i;if(null===t)i=y();else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,(i=new n).__proto__=t}return void 0!==e&&Object.defineProperties(i,e),i});if(Object.defineProperty){var I=r({}),C="undefined"==typeof document||r(document.createElement("div"));if(!I||!C)var B=Object.defineProperty}if(!Object.defineProperty||B){Object.defineProperty=function(t,e,i){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.defineProperty called on non-object: "+t);if("object"!=typeof i&&"function"!=typeof i||null===i)throw new TypeError("Property description must be an object: "+i);if(B)try{return B.call(Object,t,e,i)}catch(t){}if(f(i,"value"))if(c&&(l(t,e)||A(t,e))){var n=t.__proto__;t.__proto__=u,delete t[e],t[e]=i.value,t.__proto__=n}else t[e]=i.value;else{if(!c)throw new TypeError("getters & setters can not be defined on this javascript engine");f(i,"get")&&a(t,e,i.get),f(i,"set")&&s(t,e,i.set)}return t}}Object.defineProperties||(Object.defineProperties=function(t,e){for(var i in e)f(e,i)&&Object.defineProperty(t,i,e[i]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze((function(){}))}catch(t){Object.freeze=(b=Object.freeze,function(t){return"function"==typeof t?t:b(t)})}if(Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(t){return!1}),Object.isFrozen||(Object.isFrozen=function(t){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;for(var e="";f(t,e);)e+="?";t[e]=!0;var i=f(t,e);return delete t[e],i}),!Object.keys){var w=!0,x=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Q=x.length;for(var S in{toString:null})w=!1;Object.keys=function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on a non-object");var e=[];for(var i in t)f(t,i)&&e.push(i);if(w)for(var n=0,r=Q;n<r;n++){var o=x[n];f(t,o)&&e.push(o)}return e}}Date.now||(Date.now=function(){return(new Date).getTime()});var k="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff";if(!String.prototype.trim||k.trim()){k="["+k+"]";var D=new RegExp("^"+k+k+"*"),_=new RegExp(k+k+"*$");String.prototype.trim=function(){return String(this).replace(D,"").replace(_,"")}}var R=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(t,e,i){"use strict";t("./regexp"),t("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(t,e,i){"use strict";e.getDocumentHead=function(t){return t||(t=document),t.head||t.getElementsByTagName("head")[0]||t.documentElement},e.createElement=function(t,e){return document.createElementNS?document.createElementNS(e||"http://www.w3.org/1999/xhtml",t):document.createElement(t)},e.hasCssClass=function(t,e){return-1!==(t.className+"").split(/\s+/g).indexOf(e)},e.addCssClass=function(t,i){e.hasCssClass(t,i)||(t.className+=" "+i)},e.removeCssClass=function(t,e){for(var i=t.className.split(/\s+/g);;){var n=i.indexOf(e);if(-1==n)break;i.splice(n,1)}t.className=i.join(" ")},e.toggleCssClass=function(t,e){for(var i=t.className.split(/\s+/g),n=!0;;){var r=i.indexOf(e);if(-1==r)break;n=!1,i.splice(r,1)}return n&&i.push(e),t.className=i.join(" "),n},e.setCssClass=function(t,i,n){n?e.addCssClass(t,i):e.removeCssClass(t,i)},e.hasCssString=function(t,e){var i,n=0;if((e=e||document).createStyleSheet&&(i=e.styleSheets)){for(;n<i.length;)if(i[n++].owningElement.id===t)return!0}else if(i=e.getElementsByTagName("style"))for(;n<i.length;)if(i[n++].id===t)return!0;return!1},e.importCssString=function(t,i,n){if(n=n||document,i&&e.hasCssString(i,n))return null;var r;i&&(t+="\n/*# sourceURL=ace/css/"+i+" */"),n.createStyleSheet?((r=n.createStyleSheet()).cssText=t,i&&(r.owningElement.id=i)):((r=e.createElement("style")).appendChild(n.createTextNode(t)),i&&(r.id=i),e.getDocumentHead(n).appendChild(r))},e.importCssStylsheet=function(t,i){if(i.createStyleSheet)i.createStyleSheet(t);else{var n=e.createElement("link");n.rel="stylesheet",n.href=t,e.getDocumentHead(i).appendChild(n)}},e.getInnerWidth=function(t){return parseInt(e.computedStyle(t,"paddingLeft"),10)+parseInt(e.computedStyle(t,"paddingRight"),10)+t.clientWidth},e.getInnerHeight=function(t){return parseInt(e.computedStyle(t,"paddingTop"),10)+parseInt(e.computedStyle(t,"paddingBottom"),10)+t.clientHeight},e.scrollbarWidth=function(t){var i=e.createElement("ace_inner");i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block"
;var n=e.createElement("ace_outer"),r=n.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",n.appendChild(i);var o=t.documentElement;o.appendChild(n);var a=i.offsetWidth;r.overflow="scroll";var s=i.offsetWidth;return a==s&&(s=n.clientWidth),o.removeChild(n),a-s},"undefined"!=typeof document?(void 0!==window.pageYOffset?(e.getPageScrollTop=function(){return window.pageYOffset},e.getPageScrollLeft=function(){return window.pageXOffset}):(e.getPageScrollTop=function(){return document.body.scrollTop},e.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?e.computedStyle=function(t,e){return e?(window.getComputedStyle(t,"")||{})[e]||"":window.getComputedStyle(t,"")||{}}:e.computedStyle=function(t,e){return e?t.currentStyle[e]:t.currentStyle},e.setInnerHtml=function(t,e){var i=t.cloneNode(!1);return i.innerHTML=e,t.parentNode.replaceChild(i,t),i},"textContent"in document.documentElement?(e.setInnerText=function(t,e){t.textContent=e},e.getInnerText=function(t){return t.textContent}):(e.setInnerText=function(t,e){t.innerText=e},e.getInnerText=function(t){return t.innerText}),e.getParentWindow=function(t){return t.defaultView||t.parentWindow}):e.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(t,e,i){"use strict";e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e.mixin=function(t,e){for(var i in e)t[i]=e[i];return t},e.implement=function(t,i){e.mixin(t,i)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(t,e,i){"use strict";t("./fixoldbrowsers");var n=t("./oop"),r=function(){var t,e,i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(e in i.FUNCTION_KEYS)t=i.FUNCTION_KEYS[e].toLowerCase(),i[t]=parseInt(e,10);for(e in i.PRINTABLE_KEYS)t=i.PRINTABLE_KEYS[e].toLowerCase(),i[t]=parseInt(e,10);return n.mixin(i,i.MODIFIER_KEYS),n.mixin(i,i.PRINTABLE_KEYS),n.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,i[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],e=Math.pow(2,t.length);e--;)i.KEY_MODS[e]=t.filter((function(t){return e&i.KEY_MODS[t]})).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",i}();n.mixin(e,r),e.keyCodeToString=function(t){var e=r[t];return"string"!=typeof e&&(e=String.fromCharCode(t)),e.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(t,e,i){"use strict";if(e.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},e.getOS=function(){return e.isMac?e.OS.MAC:e.isLinux?e.OS.LINUX:e.OS.WINDOWS},"object"==typeof navigator){var n=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),r=navigator.userAgent;e.isWin="win"==n,e.isMac="mac"==n,e.isLinux="linux"==n,e.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),e.isOldIE=e.isIE&&e.isIE<9,e.isGecko=e.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,e.isOldGecko=e.isGecko&&parseInt((r.match(/rv:(\d+)/)||[])[1],10)<4,e.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),e.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,e.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,e.isAIR=r.indexOf("AdobeAIR")>=0,e.isIPad=r.indexOf("iPad")>=0,e.isChromeOS=r.indexOf(" CrOS ")>=0,e.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,e.isIOS&&(e.isMac=!0)}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t,e,i){var n=A(e);if(!a.isMac&&s){if(e.getModifierState&&(e.getModifierState("OS")||e.getModifierState("Win"))&&(n|=8),s.altGr){if(!(3&~n))return;s.altGr=0}if(18===i||17===i){var r="location"in e?e.location:e.keyLocation;if(17===i&&1===r)1==s[i]&&(l=e.timeStamp);else if(18===i&&3===n&&2===r){e.timeStamp-l<50&&(s.altGr=!0)}}}if((i in o.MODIFIER_KEYS&&(i=-1),8&n&&i>=91&&i<=93&&(i=-1),!n&&13===i)&&(3===(r="location"in e?e.location:e.keyLocation)&&(t(e,n,-i),e.defaultPrevented)))return;if(a.isChromeOS&&8&n){if(t(e,n,i),e.defaultPrevented)return;n&=-9}return!!(n||i in o.FUNCTION_KEYS||i in o.PRINTABLE_KEYS)&&t(e,n,i)}function r(){s=Object.create(null)}var o=t("./keys"),a=t("./useragent"),s=null,l=0;e.addListener=function(t,e,i){if(t.addEventListener)return t.addEventListener(e,i,!1);if(t.attachEvent){var n=function(){i.call(t,window.event)};i._wrapper=n,t.attachEvent("on"+e,n)}},e.removeListener=function(t,e,i){if(t.removeEventListener)return t.removeEventListener(e,i,!1);t.detachEvent&&t.detachEvent("on"+e,i._wrapper||i)},e.stopEvent=function(t){return e.stopPropagation(t),e.preventDefault(t),!1},e.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.preventDefault=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},e.getButton=function(t){return"dblclick"==t.type?0:"contextmenu"==t.type||a.isMac&&t.ctrlKey&&!t.altKey&&!t.shiftKey?2:t.preventDefault?t.button:{1:0,2:2,4:1}[t.button]},e.capture=function(t,i,n){function r(t){i&&i(t),n&&n(t),e.removeListener(document,"mousemove",i,!0),e.removeListener(document,"mouseup",r,!0),e.removeListener(document,"dragstart",r,!0)}return e.addListener(document,"mousemove",i,!0),e.addListener(document,"mouseup",r,!0),e.addListener(document,"dragstart",r,!0),r},e.addTouchMoveListener=function(t,i){var n,r;"ontouchmove"in t&&(e.addListener(t,"touchstart",(function(t){var e=t.changedTouches[0];n=e.clientX,r=e.clientY})),e.addListener(t,"touchmove",(function(t){var e=t.changedTouches[0];t.wheelX=-(e.clientX-n)/1,t.wheelY=-(e.clientY-r)/1,n=e.clientX,r=e.clientY,i(t)})))},e.addMouseWheelListener=function(t,i){"onmousewheel"in t?e.addListener(t,"mousewheel",(function(t){void 0!==t.wheelDeltaX?(t.wheelX=-t.wheelDeltaX/8,t.wheelY=-t.wheelDeltaY/8):(t.wheelX=0,t.wheelY=-t.wheelDelta/8),i(t)})):"onwheel"in t?e.addListener(t,"wheel",(function(t){switch(t.deltaMode){case t.DOM_DELTA_PIXEL:t.wheelX=.35*t.deltaX||0,t.wheelY=.35*t.deltaY||0;break;case t.DOM_DELTA_LINE:case t.DOM_DELTA_PAGE:t.wheelX=5*(t.deltaX||0),t.wheelY=5*(t.deltaY||0)}i(t)})):e.addListener(t,"DOMMouseScroll",(function(t){t.axis&&t.axis==t.HORIZONTAL_AXIS?(t.wheelX=5*(t.detail||0),t.wheelY=0):(t.wheelX=0,t.wheelY=5*(t.detail||0)),i(t)}))},e.addMultiMouseDownListener=function(t,i,n,r){function o(t){if(0!==e.getButton(t)?h=0:t.detail>1?++h>4&&(h=1):h=1,a.isIE){var o=Math.abs(t.clientX-l)>5||Math.abs(t.clientY-A)>5;c&&!o||(h=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),i[h-1]||600),1==h&&(l=t.clientX,A=t.clientY)}if(t._clicks=h,n[r]("mousedown",t),h>4)h=0;else if(h>1)return n[r](d[h],t)}function s(t){h=2,c&&clearTimeout(c),c=setTimeout((function(){c=null}),i[h-1]||600),n[r]("mousedown",t),n[r](d[h],t)}var l,A,c,h=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(t)||(t=[t]),t.forEach((function(t){
e.addListener(t,"mousedown",o),a.isOldIE&&e.addListener(t,"dblclick",s)}))};var A=a.isMac&&a.isOpera&&!("KeyboardEvent"in window)?function(t){return(t.metaKey?1:0)|(t.altKey?2:0)|(t.shiftKey?4:0)|(t.ctrlKey?8:0)}:function(t){return(t.ctrlKey?1:0)|(t.altKey?2:0)|(t.shiftKey?4:0)|(t.metaKey?8:0)};if(e.getModifierString=function(t){return o.KEY_MODS[A(t)]},e.addCommandKeyListener=function(t,i){var o=e.addListener;if(a.isOldGecko||a.isOpera&&!("KeyboardEvent"in window)){var l=null;o(t,"keydown",(function(t){l=t.keyCode})),o(t,"keypress",(function(t){return n(i,t,l)}))}else{var A=null;o(t,"keydown",(function(t){s[t.keyCode]=(s[t.keyCode]||0)+1;var e=n(i,t,t.keyCode);return A=t.defaultPrevented,e})),o(t,"keypress",(function(t){A&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)&&(e.stopEvent(t),A=null)})),o(t,"keyup",(function(t){s[t.keyCode]=null})),s||(r(),o(window,"focus",r))}},"object"==typeof window&&window.postMessage&&!a.isOldIE){e.nextTick=function(t,i){i=i||window;var n="zero-timeout-message-1";e.addListener(i,"message",(function r(o){o.data==n&&(e.stopPropagation(o),e.removeListener(i,"message",r),t())})),i.postMessage(n,"*")}}e.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),e.nextFrame?e.nextFrame=e.nextFrame.bind(window):e.nextFrame=function(t){setTimeout(t,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(t,e,i){"use strict";e.last=function(t){return t[t.length-1]},e.stringReverse=function(t){return t.split("").reverse().join("")},e.stringRepeat=function(t,e){for(var i="";e>0;)1&e&&(i+=t),(e>>=1)&&(t+=t);return i};var n=/^\s\s*/,r=/\s\s*$/;e.stringTrimLeft=function(t){return t.replace(n,"")},e.stringTrimRight=function(t){return t.replace(r,"")},e.copyObject=function(t){var e={};for(var i in t)e[i]=t[i];return e},e.copyArray=function(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&"object"==typeof t[i]?e[i]=this.copyObject(t[i]):e[i]=t[i];return e},e.deepCopy=function t(e){if("object"!=typeof e||!e)return e;var i;if(Array.isArray(e)){i=[];for(var n=0;n<e.length;n++)i[n]=t(e[n]);return i}if("[object Object]"!==Object.prototype.toString.call(e))return e;for(var n in i={},e)i[n]=t(e[n]);return i},e.arrayToMap=function(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=1;return e},e.createMap=function(t){var e=Object.create(null);for(var i in t)e[i]=t[i];return e},e.arrayRemove=function(t,e){for(var i=0;i<=t.length;i++)e===t[i]&&t.splice(i,1)},e.escapeRegExp=function(t){return t.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},e.escapeHTML=function(t){return t.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},e.getMatchOffsets=function(t,e){var i=[];return t.replace(e,(function(t){i.push({offset:arguments[arguments.length-2],length:t.length})})),i},e.deferredCall=function(t){var e=null,i=function(){e=null,t()},n=function(t){return n.cancel(),e=setTimeout(i,t||0),n};return n.schedule=n,n.call=function(){return this.cancel(),t(),n},n.cancel=function(){return clearTimeout(e),e=null,n},n.isPending=function(){return e},n},e.delayedCall=function(t,e){var i=null,n=function(){i=null,t()},r=function(t){null==i&&(i=setTimeout(n,t||e))};return r.delay=function(t){i&&clearTimeout(i),i=setTimeout(n,t||e)},r.schedule=r,r.call=function(){this.cancel(),t()},r.cancel=function(){i&&clearTimeout(i),i=null},r.isPending=function(){return i},r}})),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],(function(t,e,i){"use strict";var n=t("../lib/event"),r=t("../lib/useragent"),o=t("../lib/dom"),a=t("../lib/lang"),s=t("../lib/keys"),l=s.KEY_MODS,A=r.isChrome<18,c=r.isIE;e.TextInput=function(t,e){function i(t){if(!y){if(y=!0,B)e=0,i=t?0:u.value.length-1;else var e=4,i=5;try{u.setSelectionRange(e,i)}catch(t){}y=!1}}function h(){y||(u.value=p,r.isWebKit&&C.schedule())}function d(){clearTimeout(M),M=setTimeout((function(){b&&(u.style.cssText=b,b=""),null==e.renderer.$keepTextAreaAtCursor&&(e.renderer.$keepTextAreaAtCursor=!0,e.renderer.$moveTextAreaToCursor())}),0)}var u=o.createElement("textarea");u.className=r.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",r.isTouchPad&&u.setAttribute("x-palm-disable-auto-cap",!0),u.setAttribute("wrap","off"),u.setAttribute("autocorrect","off"),u.setAttribute("autocapitalize","off"),u.setAttribute("spellcheck",!1),u.style.opacity="0",t.insertBefore(u,t.firstChild);var p="\n aaaa a\n",g=!1,f=!1,m=!1,y=!1,b="",v=!0;try{var E=document.activeElement===u}catch(t){}n.addListener(u,"blur",(function(t){e.onBlur(t),E=!1})),n.addListener(u,"focus",(function(t){E=!0,e.onFocus(t),i()})),this.focus=function(){if(b)return u.focus();u.style.position="fixed",u.focus()},this.blur=function(){u.blur()},this.isFocused=function(){return E};var I=a.delayedCall((function(){E&&i(v)})),C=a.delayedCall((function(){y||(u.value=p,E&&i())}));r.isWebKit||e.addEventListener("changeSelection",(function(){e.selection.isEmpty()!=v&&(v=!v,I.schedule())})),h(),E&&e.onFocus();var B=null;this.setInputHandler=function(t){B=t},this.getInputHandler=function(){return B};var w=!1,x=function(t){4===u.selectionStart&&5===u.selectionEnd||(B&&(t=B(t),B=null),m?(i(),t&&e.onPaste(t),m=!1):t==p.substr(0)&&4===u.selectionStart?w?e.execCommand("del",{source:"ace"}):e.execCommand("backspace",{source:"ace"}):g||(t.substring(0,9)==p&&t.length>p.length?t=t.substr(9):t.substr(0,4)==p.substr(0,4)?t=t.substr(4,t.length-p.length+1):t.charAt(t.length-1)==p.charAt(0)&&(t=t.slice(0,-1)),t!=p.charAt(0)&&t.charAt(t.length-1)==p.charAt(0)&&(t=t.slice(0,-1)),t&&e.onTextInput(t)),g&&(g=!1),w&&(w=!1))},Q=function(t){if(!y){var e=u.value;x(e),h()}},S=function(t,e,i){var n=t.clipboardData||window.clipboardData;if(n&&!A){var r=c||i?"Text":"text/plain";try{return e?!1!==n.setData(r,e):n.getData(r)}catch(t){if(!i)return S(t,e,!0)}}},k=function(t,o){var a=e.getCopyText();if(!a)return n.preventDefault(t);S(t,a)?(r.isIOS&&(f=o,u.value="\n aa"+a+"a a\n",u.setSelectionRange(4,4+a.length),g={value:a}),o?e.onCut():e.onCopy(),r.isIOS||n.preventDefault(t)):(g=!0,u.value=a,u.select(),setTimeout((function(){g=!1,h(),i(),o?e.onCut():e.onCopy()})))};n.addCommandKeyListener(u,e.onCommandKey.bind(e)),n.addListener(u,"select",(function(t){!function(t){return 0===t.selectionStart&&t.selectionEnd===t.value.length}(u)?B&&i(e.selection.isEmpty()):(e.selectAll(),i())})),n.addListener(u,"input",Q),n.addListener(u,"cut",(function(t){k(t,!0)})),n.addListener(u,"copy",(function(t){k(t,!1)})),n.addListener(u,"paste",(function(t){var o=S(t);"string"==typeof o?(o&&e.onPaste(o,t),r.isIE&&setTimeout(i),n.preventDefault(t)):(u.value="",m=!0)}));var D=function(){if(y&&e.onCompositionUpdate&&!e.$readOnly){var t=u.value.replace(/\x01/g,"");if(y.lastValue!==t&&(e.onCompositionUpdate(t),y.lastValue&&e.undo(),y.canUndo&&(y.lastValue=t),y.lastValue)){var i=e.selection.getRange();e.insert(y.lastValue),e.session.markUndoGroup(),y.range=e.selection.getRange(),e.selection.setRange(i),e.selection.clearSelection()}}},_=function(t){if(e.onCompositionEnd&&!e.$readOnly){var i=y;y=!1;var n=setTimeout((function(){n=null;var t=u.value.replace(/\x01/g,"");y||(t==i.lastValue?h():!i.lastValue&&t&&(h(),x(t)))}));B=function(t){return n&&clearTimeout(n),(t=t.replace(/\x01/g,""))==i.lastValue?"":(i.lastValue&&n&&e.undo(),t)},e.onCompositionEnd(),e.removeListener("mousedown",_),"compositionend"==t.type&&i.range&&e.selection.setRange(i.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&Q()}},R=a.delayedCall(D,50);n.addListener(u,"compositionstart",(function(t){y||!e.onCompositionStart||e.$readOnly||((y={}).canUndo=e.session.$undoManager,e.onCompositionStart(),setTimeout(D,0),e.on("mousedown",_),y.canUndo&&!e.selection.isEmpty()&&(e.insert(""),e.session.markUndoGroup(),e.selection.clearSelection()),e.session.markUndoGroup())})),r.isGecko?n.addListener(u,"text",(function(){R.schedule()})):(n.addListener(u,"keyup",(function(){R.schedule()})),n.addListener(u,"keydown",(function(){R.schedule()}))),n.addListener(u,"compositionend",_),
this.getElement=function(){return u},this.setReadOnly=function(t){u.readOnly=t},this.onContextMenu=function(t){w=!0,i(e.selection.isEmpty()),e._emit("nativecontextmenu",{target:e,domEvent:t}),this.moveToMouse(t,!0)},this.moveToMouse=function(t,i){b||(b=u.style.cssText),u.style.cssText=(i?"z-index:100000;":"")+"height:"+u.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=e.container.getBoundingClientRect(),s=o.computedStyle(e.container),l=a.top+(parseInt(s.borderTopWidth)||0),A=a.left+(parseInt(a.borderLeftWidth)||0),c=a.bottom-l-u.clientHeight-2,h=function(t){u.style.left=t.clientX-A-2+"px",u.style.top=Math.min(t.clientY-l-2,c)+"px"};h(t),"mousedown"==t.type&&(e.renderer.$keepTextAreaAtCursor&&(e.renderer.$keepTextAreaAtCursor=null),clearTimeout(M),r.isWin&&n.capture(e.container,h,d))},this.onContextMenuClose=d;var M,T=function(t){e.textInput.onContextMenu(t),d()};if(n.addListener(u,"mouseup",T),n.addListener(u,"mousedown",(function(t){t.preventDefault(),d()})),n.addListener(e.renderer.scroller,"contextmenu",T),n.addListener(u,"contextmenu",T),r.isIOS){var F=null,L=!1;t.addEventListener("keydown",(function(t){F&&clearTimeout(F),L=!0})),t.addEventListener("keyup",(function(t){F=setTimeout((function(){L=!1}),100)}));var N=function(t){if(document.activeElement===u&&!L){if(f)return setTimeout((function(){f=!1}),100);var i=u.selectionStart,n=u.selectionEnd;if(u.setSelectionRange(4,5),i==n)switch(i){case 0:e.onCommandKey(null,0,s.up);break;case 1:e.onCommandKey(null,0,s.home);break;case 2:e.onCommandKey(null,l.option,s.left);break;case 4:e.onCommandKey(null,0,s.left);break;case 5:e.onCommandKey(null,0,s.right);break;case 7:e.onCommandKey(null,l.option,s.right);break;case 8:e.onCommandKey(null,0,s.end);break;case 9:e.onCommandKey(null,0,s.down)}else{switch(n){case 6:e.onCommandKey(null,l.shift,s.right);break;case 7:e.onCommandKey(null,l.shift|l.option,s.right);break;case 8:e.onCommandKey(null,l.shift,s.end);break;case 9:e.onCommandKey(null,l.shift,s.down)}switch(i){case 0:e.onCommandKey(null,l.shift,s.up);break;case 1:e.onCommandKey(null,l.shift,s.home);break;case 2:e.onCommandKey(null,l.shift|l.option,s.left);break;case 3:e.onCommandKey(null,l.shift,s.left)}}}};document.addEventListener("selectionchange",N),e.on("destroy",(function(){document.removeEventListener("selectionchange",N)}))}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],(function(t,e,i){"use strict";var n=t("../lib/event"),r=t("../lib/useragent"),o=t("../lib/dom"),a=t("../lib/lang"),s=r.isChrome<18,l=r.isIE,A=t("./textinput_ios").TextInput;e.TextInput=function(t,e){function i(t){if(!f){if(f=!0,I)e=0,i=t?0:d.value.length-1;else var e=t?2:1,i=2;try{d.setSelectionRange(e,i)}catch(t){}f=!1}}function c(){f||(d.value=u,r.isWebKit&&E.schedule())}function h(){clearTimeout(T),T=setTimeout((function(){m&&(d.style.cssText=m,m=""),null==e.renderer.$keepTextAreaAtCursor&&(e.renderer.$keepTextAreaAtCursor=!0,e.renderer.$moveTextAreaToCursor())}),0)}if(r.isIOS)return A.call(this,t,e);var d=o.createElement("textarea");d.className="ace_text-input",d.setAttribute("wrap","off"),d.setAttribute("autocorrect","off"),d.setAttribute("autocapitalize","off"),d.setAttribute("spellcheck",!1),d.style.opacity="0",t.insertBefore(d,t.firstChild);var u="\u2028\u2028",p=!1,g=!1,f=!1,m="",y=!0;try{var b=document.activeElement===d}catch(t){}n.addListener(d,"blur",(function(t){e.onBlur(t),b=!1})),n.addListener(d,"focus",(function(t){b=!0,e.onFocus(t),i()})),this.focus=function(){if(m)return d.focus();var t=d.style.top;d.style.position="fixed",d.style.top="0px",d.focus(),setTimeout((function(){d.style.position="","0px"==d.style.top&&(d.style.top=t)}),0)},this.blur=function(){d.blur()},this.isFocused=function(){return b};var v=a.delayedCall((function(){b&&i(y)})),E=a.delayedCall((function(){f||(d.value=u,b&&i())}));r.isWebKit||e.addEventListener("changeSelection",(function(){e.selection.isEmpty()!=y&&(y=!y,v.schedule())})),c(),b&&e.onFocus();var I=null;this.setInputHandler=function(t){I=t},this.getInputHandler=function(){return I};var C=!1,B=function(t){I&&(t=I(t),I=null),g?(i(),t&&e.onPaste(t),g=!1):t==u.charAt(0)?C?e.execCommand("del",{source:"ace"}):e.execCommand("backspace",{source:"ace"}):(t.substring(0,2)==u?t=t.substr(2):t.charAt(0)==u.charAt(0)?t=t.substr(1):t.charAt(t.length-1)==u.charAt(0)&&(t=t.slice(0,-1)),t.charAt(t.length-1)==u.charAt(0)&&(t=t.slice(0,-1)),t&&e.onTextInput(t)),C&&(C=!1)},w=function(t){if(!f){var e=d.value;B(e),c()}},x=function(t,e,i){var n=t.clipboardData||window.clipboardData;if(n&&!s){var r=l||i?"Text":"text/plain";try{return e?!1!==n.setData(r,e):n.getData(r)}catch(t){if(!i)return x(t,e,!0)}}},Q=function(t,r){var o=e.getCopyText();if(!o)return n.preventDefault(t);x(t,o)?(r?e.onCut():e.onCopy(),n.preventDefault(t)):(p=!0,d.value=o,d.select(),setTimeout((function(){p=!1,c(),i(),r?e.onCut():e.onCopy()})))},S=function(t){Q(t,!0)},k=function(t){Q(t,!1)},D=function(t){var o=x(t);"string"==typeof o?(o&&e.onPaste(o,t),r.isIE&&setTimeout(i),n.preventDefault(t)):(d.value="",g=!0)};n.addCommandKeyListener(d,e.onCommandKey.bind(e)),n.addListener(d,"select",(function(t){p?p=!1:function(t){return 0===t.selectionStart&&t.selectionEnd===t.value.length}(d)?(e.selectAll(),i()):I&&i(e.selection.isEmpty())})),n.addListener(d,"input",w),n.addListener(d,"cut",S),n.addListener(d,"copy",k),n.addListener(d,"paste",D),(!("oncut"in d)||!("oncopy"in d)||!("onpaste"in d))&&n.addListener(t,"keydown",(function(t){if((!r.isMac||t.metaKey)&&t.ctrlKey)switch(t.keyCode){case 67:k(t);break;case 86:D(t);break;case 88:S(t)}}));var _=function(){if(f&&e.onCompositionUpdate&&!e.$readOnly){var t=d.value.replace(/\u2028/g,"");if(f.lastValue!==t&&(e.onCompositionUpdate(t),f.lastValue&&e.undo(),f.canUndo&&(f.lastValue=t),f.lastValue)){var i=e.selection.getRange();e.insert(f.lastValue),e.session.markUndoGroup(),f.range=e.selection.getRange(),e.selection.setRange(i),e.selection.clearSelection()}}},R=function(t){if(e.onCompositionEnd&&!e.$readOnly){var i=f;f=!1;var n=setTimeout((function(){n=null;var t=d.value.replace(/\u2028/g,"");f||(t==i.lastValue?c():!i.lastValue&&t&&(c(),B(t)))}));I=function(t){return n&&clearTimeout(n),(t=t.replace(/\u2028/g,""))==i.lastValue?"":(i.lastValue&&n&&e.undo(),t)},e.onCompositionEnd(),e.removeListener("mousedown",R),"compositionend"==t.type&&i.range&&e.selection.setRange(i.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&w()}},M=a.delayedCall(_,50);n.addListener(d,"compositionstart",(function(t){f||!e.onCompositionStart||e.$readOnly||((f={}).canUndo=e.session.$undoManager,e.onCompositionStart(),setTimeout(_,0),e.on("mousedown",R),f.canUndo&&!e.selection.isEmpty()&&(e.insert(""),e.session.markUndoGroup(),e.selection.clearSelection()),e.session.markUndoGroup())})),r.isGecko?n.addListener(d,"text",(function(){M.schedule()})):(n.addListener(d,"keyup",(function(){M.schedule()})),n.addListener(d,"keydown",(function(){M.schedule()}))),n.addListener(d,"compositionend",R),this.getElement=function(){return d},this.setReadOnly=function(t){d.readOnly=t},this.onContextMenu=function(t){C=!0,i(e.selection.isEmpty()),e._emit("nativecontextmenu",{target:e,domEvent:t}),this.moveToMouse(t,!0)},this.moveToMouse=function(t,i){m||(m=d.style.cssText),d.style.cssText=(i?"z-index:100000;":"")+"height:"+d.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=e.container.getBoundingClientRect(),s=o.computedStyle(e.container),l=a.top+(parseInt(s.borderTopWidth)||0),A=a.left+(parseInt(a.borderLeftWidth)||0),c=a.bottom-l-d.clientHeight-2,u=function(t){d.style.left=t.clientX-A-2+"px",d.style.top=Math.min(t.clientY-l-2,c)+"px"};u(t),"mousedown"==t.type&&(e.renderer.$keepTextAreaAtCursor&&(e.renderer.$keepTextAreaAtCursor=null),clearTimeout(T),r.isWin&&n.capture(e.container,u,h))},this.onContextMenuClose=h;var T,F=function(t){e.textInput.onContextMenu(t),h()};n.addListener(d,"mouseup",F),n.addListener(d,"mousedown",(function(t){t.preventDefault(),h()})),n.addListener(e.renderer.scroller,"contextmenu",F),n.addListener(d,"contextmenu",F)}})),
ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),e.setDefaultHandler("touchmove",this.onTouchMove.bind(t));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(e){t[e]=this[e]}),this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function r(t,e){if(t.start.row==t.end.row)var i=2*e.column-t.start.column-t.end.column;else if(t.start.row!=t.end.row-1||t.start.column||t.end.column)i=2*e.row-t.start.row-t.end.row;else var i=e.column-4;return i<0?{cursor:t.start,anchor:t.end}:{cursor:t.end,anchor:t.start}}t("../lib/dom"),t("../lib/event");var o=t("../lib/useragent");(function(){this.onMouseDown=function(t){var e=t.inSelection(),i=t.getDocumentPosition();this.mousedownEvent=t;var n=this.editor,r=t.getButton();if(0!==r){var a=n.getSelectionRange().isEmpty();return n.$blockScrolling++,(a||1==r)&&n.selection.moveToPosition(i),n.$blockScrolling--,void(2==r&&(n.textInput.onContextMenu(t.domEvent),o.isMozilla||t.preventDefault()))}return this.mousedownEvent.time=Date.now(),!e||n.isFocused()||(n.focus(),!this.$focusTimout||this.$clickSelection||n.inMultiSelectMode)?(this.captureMouse(t),this.startSelect(i,t.domEvent._clicks>1),t.preventDefault()):(this.setState("focusWait"),void this.captureMouse(t))},this.startSelect=function(t,e){t=t||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;i.$blockScrolling++,this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(t):e||i.selection.moveToPosition(t),e||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"),i.$blockScrolling--},this.select=function(){var t,e=this.editor,i=e.renderer.screenToTextCoordinates(this.x,this.y);if(e.$blockScrolling++,this.$clickSelection){var n=this.$clickSelection.comparePoint(i);if(-1==n)t=this.$clickSelection.end;else if(1==n)t=this.$clickSelection.start;else{var o=r(this.$clickSelection,i);i=o.cursor,t=o.anchor}e.selection.setSelectionAnchor(t.row,t.column)}e.selection.selectToPosition(i),e.$blockScrolling--,e.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(t){var e,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y),o=i.selection[t](n.row,n.column);if(i.$blockScrolling++,this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)e=this.$clickSelection.end,o.end.row==n.row&&o.end.column==n.column||(n=o.start);else if(1==s&&a>=0)e=this.$clickSelection.start,o.start.row==n.row&&o.start.column==n.column||(n=o.end);else if(-1==a&&1==s)n=o.end,e=o.start;else{var l=r(this.$clickSelection,n);n=l.cursor,e=l.anchor}i.selection.setSelectionAnchor(e.row,e.column)}i.selection.selectToPosition(n),i.$blockScrolling--,i.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var t=function(t,e,i,n){return Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),e=Date.now();(t>0||e-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(t){var e=t.getDocumentPosition(),i=this.editor,n=i.session.getBracketRange(e);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=i.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(t){var e=t.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var n=i.getSelectionRange();n.isMultiLine()&&n.contains(e.row,e.column)?(this.$clickSelection=i.selection.getLineRange(n.start.row),this.$clickSelection.end=i.selection.getLineRange(n.end.row).end):this.$clickSelection=i.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(t){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(t){if(!t.getAccelKey()){t.getShiftKey()&&t.wheelY&&!t.wheelX&&(t.wheelX=t.wheelY,t.wheelY=0);var e=t.domEvent.timeStamp,i=e-(this.$lastScrollTime||0),n=this.editor;return n.renderer.isScrollableBy(t.wheelX*t.speed,t.wheelY*t.speed)||i<200?(this.$lastScrollTime=e,n.renderer.scrollBy(t.wheelX*t.speed,t.wheelY*t.speed),t.stop()):void 0}},this.onTouchMove=function(t){var e=t.domEvent.timeStamp,i=e-(this.$lastScrollTime||0),n=this.editor;if(n.renderer.isScrollableBy(t.wheelX*t.speed,t.wheelY*t.speed)||i<200)return this.$lastScrollTime=e,n.renderer.scrollBy(t.wheelX*t.speed,t.wheelY*t.speed),t.stop()}}).call(n.prototype),e.DefaultHandlers=n})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(t,e,i){"use strict";function n(t){this.isOpen=!1,this.$element=null,this.$parentNode=t}t("./lib/oop");var r=t("./lib/dom");(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(t){r.setInnerText(this.getElement(),t)},this.setHtml=function(t){this.getElement().innerHTML=t},this.setPosition=function(t,e){this.getElement().style.left=t+"px",this.getElement().style.top=e+"px"},this.setClassName=function(t){r.addCssClass(this.getElement(),t)},this.show=function(t,e,i){null!=t&&this.setText(t),null!=e&&null!=i&&this.setPosition(e,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),e.Tooltip=n})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(t,e,i){"use strict";function n(t){s.call(this,t)}var r=t("../lib/dom"),o=t("../lib/oop"),a=t("../lib/event"),s=t("../tooltip").Tooltip;o.inherits(n,s),function(){this.setPosition=function(t,e){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),o=this.getHeight();(t+=15)+r>i&&(t-=t+r-i),(e+=15)+o>n&&(e-=20+o),s.prototype.setPosition.call(this,t,e)}}.call(n.prototype),e.GutterHandler=function(t){function e(){o&&(o=clearTimeout(o)),l&&(h.hide(),l=null,A._signal("hideGutterTooltip",h),A.removeEventListener("mousewheel",e))}function i(t){h.setPosition(t.x,t.y)}var o,s,l,A=t.editor,c=A.renderer.$gutterLayer,h=new n(A.container);t.editor.setDefaultHandler("guttermousedown",(function(e){if(A.isFocused()&&0==e.getButton()&&"foldWidgets"!=c.getRegion(e)){var i=e.getDocumentPosition().row,n=A.session.selection;if(e.getShiftKey())n.selectTo(i,0);else{if(2==e.domEvent.detail)return A.selectAll(),e.preventDefault();t.$clickSelection=A.selection.getLineRange(i)}return t.setState("selectByLines"),t.captureMouse(e),e.preventDefault()}})),t.editor.setDefaultHandler("guttermousemove",(function(n){var a=n.domEvent.target||n.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return e();l&&t.$tooltipFollowsMouse&&i(n),s=n,
o||(o=setTimeout((function(){o=null,s&&!t.isMousePressed?function(){var n=s.getDocumentPosition().row,r=c.$annotations[n];if(!r)return e();if(n==A.session.getLength()){var o=A.renderer.pixelToScreenCoordinates(0,s.y).row,a=s.$pos;if(o>A.session.documentToScreenRow(a.row,a.column))return e()}if(l!=r)if(l=r.text.join("<br/>"),h.setHtml(l),h.show(),A._signal("showGutterTooltip",h),A.on("mousewheel",e),t.$tooltipFollowsMouse)i(s);else{var d=s.domEvent.target.getBoundingClientRect(),u=h.getElement().style;u.left=d.right+"px",u.top=d.bottom+"px"}}():e()}),50))})),a.addListener(A.renderer.$gutter,"mouseout",(function(t){s=null,l&&!o&&(o=setTimeout((function(){o=null,e()}),50))})),A.on("changeSession",e)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,e,i){"use strict";var n=t("../lib/event"),r=t("../lib/useragent"),o=e.MouseEvent=function(t,e){this.domEvent=t,this.editor=e,this.x=this.clientX=t.clientX,this.y=this.clientY=t.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var t=this.editor.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var e=this.getDocumentPosition();this.$inSelection=t.contains(e.row,e.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t){function e(){var t=E;(function(t,e){var i=Date.now(),n=!e||t.row!=e.row,o=!e||t.column!=e.column;!w||n||o?(p.$blockScrolling+=1,p.moveCursorToPosition(t),p.$blockScrolling-=1,w=i,x={x:m,y:y}):r(x.x,x.y,m,y)>c?w=null:i-w>=A&&(p.renderer.scrollCursorIntoView(),w=null)})(E=p.renderer.screenToTextCoordinates(m,y),t),function(t,e){var i=Date.now(),n=p.renderer.layerConfig.lineHeight,r=p.renderer.layerConfig.characterWidth,o=p.renderer.scroller.getBoundingClientRect(),a={x:{left:m-o.left,right:o.right-m},y:{top:y-o.top,bottom:o.bottom-y}},s=Math.min(a.x.left,a.x.right),A=Math.min(a.y.top,a.y.bottom),c={row:t.row,column:t.column};s/r<=2&&(c.column+=a.x.left<a.x.right?-3:2),A/n<=1&&(c.row+=a.y.top<a.y.bottom?-1:1);var h=t.row!=c.row,d=t.column!=c.column,u=!e||t.row!=e.row;h||d&&!u?B?i-B>=l&&p.renderer.scrollCursorIntoView(c):B=i:B=null}(E,t)}function i(){v=p.selection.toOrientedRange(),f=p.session.addMarker(v,"ace_selection",p.getSelectionStyle()),p.clearSelection(),p.isFocused()&&p.renderer.$cursorLayer.setBlinking(!1),clearInterval(b),e(),b=setInterval(e,20),S=0,a.addListener(document,"mousemove",h)}function n(){clearInterval(b),p.session.removeMarker(f),f=null,p.$blockScrolling+=1,p.selection.fromOrientedRange(v),p.$blockScrolling-=1,p.isFocused()&&!C&&p.renderer.$cursorLayer.setBlinking(!p.getReadOnly()),v=null,E=null,S=0,B=null,w=null,a.removeListener(document,"mousemove",h)}function h(){null==k&&(k=setTimeout((function(){null!=k&&f&&n()}),20))}function d(t){var e=t.types;return!e||Array.prototype.some.call(e,(function(t){return"text/plain"==t||"Text"==t}))}function u(t){var e=["copy","copymove","all","uninitialized"],i=s.isMac?t.altKey:t.ctrlKey,n="uninitialized";try{n=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var r="none";return i&&e.indexOf(n)>=0?r="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(n)>=0?r="move":e.indexOf(n)>=0&&(r="copy"),r}var p=t.editor,g=o.createElement("img");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(g.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(e){t[e]=this[e]}),this),p.addEventListener("mousedown",this.onMouseDown.bind(t));var f,m,y,b,v,E,I,C,B,w,x,Q=p.container,S=0;this.onDragStart=function(t){if(this.cancelDrag||!Q.draggable){var e=this;return setTimeout((function(){e.startSelect(),e.captureMouse(t)}),0),t.preventDefault()}v=p.getSelectionRange();var i=t.dataTransfer;i.effectAllowed=p.getReadOnly()?"copy":"copyMove",s.isOpera&&(p.container.appendChild(g),g.scrollTop=0),i.setDragImage&&i.setDragImage(g,0,0),s.isOpera&&p.container.removeChild(g),i.clearData(),i.setData("Text",p.session.getTextRange()),C=!0,this.setState("drag")},this.onDragEnd=function(t){if(Q.draggable=!1,C=!1,this.setState(null),!p.getReadOnly()){var e=t.dataTransfer.dropEffect;!I&&"move"==e&&p.session.remove(p.getSelectionRange()),p.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(t){if(!p.getReadOnly()&&d(t.dataTransfer))return m=t.clientX,y=t.clientY,f||i(),S++,t.dataTransfer.dropEffect=I=u(t),a.preventDefault(t)},this.onDragOver=function(t){if(!p.getReadOnly()&&d(t.dataTransfer))return m=t.clientX,y=t.clientY,f||(i(),S++),null!==k&&(k=null),t.dataTransfer.dropEffect=I=u(t),a.preventDefault(t)},this.onDragLeave=function(t){if(--S<=0&&f)return n(),I=null,a.preventDefault(t)},this.onDrop=function(t){if(E){var e=t.dataTransfer;if(C)switch(I){case"move":v=v.contains(E.row,E.column)?{start:E,end:E}:p.moveText(v,E);break;case"copy":v=p.moveText(v,E,!0)}else{var i=e.getData("Text");v={start:E,end:p.session.insert(E,i)},p.focus(),I=null}return n(),a.preventDefault(t)}},a.addListener(Q,"dragstart",this.onDragStart.bind(t)),a.addListener(Q,"dragend",this.onDragEnd.bind(t)),a.addListener(Q,"dragenter",this.onDragEnter.bind(t)),a.addListener(Q,"dragover",this.onDragOver.bind(t)),a.addListener(Q,"dragleave",this.onDragLeave.bind(t)),a.addListener(Q,"drop",this.onDrop.bind(t));var k=null}function r(t,e,i,n){return Math.sqrt(Math.pow(i-t,2)+Math.pow(n-e,2))}var o=t("../lib/dom"),a=t("../lib/event"),s=t("../lib/useragent"),l=200,A=200,c=5;(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(t){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var t=this.editor;t.container.draggable=!0,t.renderer.$cursorLayer.setBlinking(!1),t.setStyle("ace_dragging");var e=s.isWin?"default":"move";t.renderer.setCursorStyle(e),this.setState("dragReady")},this.onMouseDrag=function(t){var e=this.editor.container;s.isIE&&"dragReady"==this.state&&(r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&e.dragDrop());"dragWait"===this.state&&(r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(t){if(this.$dragEnabled){this.mousedownEvent=t;var e=this.editor,i=t.inSelection(),n=t.getButton();if(1===(t.domEvent.detail||1)&&0===n&&i){if(t.editor.inMultiSelectMode&&(t.getAccelKey()||t.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=t.domEvent.target||t.domEvent.srcElement;if("unselectable"in r&&(r.unselectable="on"),e.getDragDelay()){if(s.isWebKit)this.cancelDrag=!0,e.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(n.prototype),e.DragdropHandler=n})),
ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("./dom");e.get=function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.onreadystatechange=function(){4===i.readyState&&e(i.responseText)},i.send(null)},e.loadScript=function(t,e){var i=n.getDocumentHead(),r=document.createElement("script");r.src=t,i.appendChild(r),r.onload=r.onreadystatechange=function(t,i){!i&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,i||e())}},e.qualifyURL=function(t){var e=document.createElement("a");return e.href=t,e.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(t,e,i){"use strict";var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[t]||[],n=this._defaultHandlers[t];if(i.length||n){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=r),e.preventDefault||(e.preventDefault=o),i=i.slice();for(var a=0;a<i.length&&(i[a](e,this),!e.propagationStopped);a++);return n&&!e.defaultPrevented?n(e,this):void 0}},n._signal=function(t,e){var i=(this._eventRegistry||{})[t];if(i){i=i.slice();for(var n=0;n<i.length;n++)i[n](e,this)}},n.once=function(t,e){var i=this;e&&this.addEventListener(t,(function n(){i.removeEventListener(t,n),e.apply(null,arguments)}))},n.setDefaultHandler=function(t,e){var i=this._defaultHandlers;if(i||(i=this._defaultHandlers={_disabled_:{}}),i[t]){var n=i[t],r=i._disabled_[t];r||(i._disabled_[t]=r=[]),r.push(n);var o=r.indexOf(e);-1!=o&&r.splice(o,1)}i[t]=e},n.removeDefaultHandler=function(t,e){var i=this._defaultHandlers;if(i){var n=i._disabled_[t];if(i[t]==e){i[t];n&&this.setDefaultHandler(t,n.pop())}else if(n){var r=n.indexOf(e);-1!=r&&n.splice(r,1)}}},n.on=n.addEventListener=function(t,e,i){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[t];return n||(n=this._eventRegistry[t]=[]),-1==n.indexOf(e)&&n[i?"unshift":"push"](e),e},n.off=n.removeListener=n.removeEventListener=function(t,e){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[t];if(i){var n=i.indexOf(e);-1!==n&&i.splice(n,1)}},n.removeAllListeners=function(t){this._eventRegistry&&(this._eventRegistry[t]=[])},e.EventEmitter=n})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,i){function n(t){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function r(t,e){var i=new Error(t);i.data=e,"object"==typeof console&&console.error&&console.error(i),setTimeout((function(){throw i}))}var o=t("./oop"),a=t("./event_emitter").EventEmitter,s={setOptions:function(t){Object.keys(t).forEach((function(e){this.setOption(e,t[e])}),this)},getOptions:function(t){var e={};return t?Array.isArray(t)||(e=t,t=Object.keys(e)):t=Object.keys(this.$options),t.forEach((function(t){e[t]=this.getOption(t)}),this),e},setOption:function(t,e){if(this["$"+t]!==e){var i=this.$options[t];return i?i.forwardTo?this[i.forwardTo]&&this[i.forwardTo].setOption(t,e):(i.handlesSet||(this["$"+t]=e),void(i&&i.set&&i.set.call(this,e))):n('misspelled option "'+t+'"')}},getOption:function(t){var e=this.$options[t];return e?e.forwardTo?this[e.forwardTo]&&this[e.forwardTo].getOption(t):e&&e.get?e.get.call(this):this["$"+t]:n('misspelled option "'+t+'"')}},l=function(){this.$defaultOptions={}};(function(){o.implement(this,a),this.defineOptions=function(t,e,i){return t.$options||(this.$defaultOptions[e]=t.$options={}),Object.keys(i).forEach((function(e){var n=i[e];"string"==typeof n&&(n={forwardTo:n}),n.name||(n.name=e),t.$options[n.name]=n,"initialValue"in n&&(t["$"+n.name]=n.initialValue)})),o.implement(t,s),this},this.resetOptions=function(t){Object.keys(t.$options).forEach((function(e){var i=t.$options[e];"value"in i&&t.setOption(e,i.value)}))},this.setDefaultValue=function(t,e,i){var n=this.$defaultOptions[t]||(this.$defaultOptions[t]={});n[e]&&(n.forwardTo?this.setDefaultValue(n.forwardTo,e,i):n[e].value=i)},this.setDefaultValues=function(t,e){Object.keys(e).forEach((function(i){this.setDefaultValue(t,i,e[i])}),this)},this.warn=n,this.reportError=r}).call(l.prototype),e.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(t,e,n){var r=t("./lib/lang"),o=(t("./lib/oop"),t("./lib/net")),a=t("./lib/app_config").AppConfig;n.exports=e=new a;var s=function(){return this||"undefined"!=typeof window&&window}(),l={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};e.get=function(t){if(!l.hasOwnProperty(t))throw new Error("Unknown config key: "+t);return l[t]},e.set=function(t,e){if(!l.hasOwnProperty(t))throw new Error("Unknown config key: "+t);l[t]=e},e.all=function(){return r.copyObject(l)},e.moduleUrl=function(t,e){if(l.$moduleUrls[t])return l.$moduleUrls[t];var i=t.split("/"),n="snippets"==(e=e||i[i.length-2]||"")?"/":"-",r=i[i.length-1];if("worker"==e&&"-"==n){var o=new RegExp("^"+e+"[\\-_]|[\\-_]"+e+"$","g");r=r.replace(o,"")}(!r||r==e)&&i.length>1&&(r=i[i.length-2]);var a=l[e+"Path"];return null==a?a=l.basePath:"/"==n&&(e=n=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+e+n+r+this.get("suffix")},e.setModuleUrl=function(t,e){return l.$moduleUrls[t]=e},e.$loading={},e.loadModule=function(i,n){var r,a;Array.isArray(i)&&(a=i[0],i=i[1]);try{r=t(i)}catch(t){}if(r&&!e.$loading[i])return n&&n(r);if(e.$loading[i]||(e.$loading[i]=[]),e.$loading[i].push(n),!(e.$loading[i].length>1)){var s=function(){t([i],(function(t){e._emit("load.module",{name:i,module:t});var n=e.$loading[i];e.$loading[i]=null,n.forEach((function(e){e&&e(t)}))}))};if(!e.get("packaged"))return s();o.loadScript(e.moduleUrl(i,a),s)}},e.init=function(r){if(s&&s.document){l.packaged=r||t.packaged||n.packaged||s.define&&i.amdD.packaged;for(var o,a={},A="",c=document.currentScript||document._currentScript,h=(c&&c.ownerDocument||document).getElementsByTagName("script"),d=0;d<h.length;d++){var u=h[d],p=u.src||u.getAttribute("src");if(p){for(var g=u.attributes,f=0,m=g.length;f<m;f++){var y=g[f];0===y.name.indexOf("data-ace-")&&(a[(o=y.name.replace(/^data-ace-/,""),o.replace(/-(.)/g,(function(t,e){return e.toUpperCase()})))]=y.value)}var b=p.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);b&&(A=b[1])}}for(var v in A&&(a.base=a.base||A,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base,a)void 0!==a[v]&&e.set(v,a[v])}}})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(t,e,i){"use strict";var n=t("../lib/event"),r=t("../lib/useragent"),o=t("./default_handlers").DefaultHandlers,a=t("./default_gutter_handler").GutterHandler,s=t("./mouse_event").MouseEvent,l=t("./dragdrop_handler").DragdropHandler,A=t("../config"),c=function(t){var e=this;this.editor=t,new o(this),new a(this),new l(this);var i=function(e){(!document.hasFocus||!document.hasFocus()||!t.isFocused()&&document.activeElement==(t.textInput&&t.textInput.getElement()))&&window.focus(),t.focus()},s=t.renderer.getMouseEventTarget();n.addListener(s,"click",this.onMouseEvent.bind(this,"click")),n.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove")),n.addMultiMouseDownListener([s,t.renderer.scrollBarV&&t.renderer.scrollBarV.inner,t.renderer.scrollBarH&&t.renderer.scrollBarH.inner,t.textInput&&t.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),n.addMouseWheelListener(t.container,this.onMouseWheel.bind(this,"mousewheel")),n.addTouchMoveListener(t.container,this.onTouchMove.bind(this,"touchmove"));var A=t.renderer.$gutter;n.addListener(A,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),n.addListener(A,"click",this.onMouseEvent.bind(this,"gutterclick")),
n.addListener(A,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),n.addListener(A,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),n.addListener(s,"mousedown",i),n.addListener(A,"mousedown",i),r.isIE&&t.renderer.scrollBarV&&(n.addListener(t.renderer.scrollBarV.element,"mousedown",i),n.addListener(t.renderer.scrollBarH.element,"mousedown",i)),t.on("mousemove",(function(i){if(!e.state&&!e.$dragDelay&&e.$dragEnabled){var n=t.renderer.screenToTextCoordinates(i.x,i.y),r=t.session.selection.getRange(),o=t.renderer;!r.isEmpty()&&r.insideStart(n.row,n.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(t,e){this.editor._emit(t,new s(e,this.editor))},this.onMouseMove=function(t,e){var i=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;i&&i.length&&this.editor._emit(t,new s(e,this.editor))},this.onMouseWheel=function(t,e){var i=new s(e,this.editor);i.speed=2*this.$scrollSpeed,i.wheelX=e.wheelX,i.wheelY=e.wheelY,this.editor._emit(t,i)},this.onTouchMove=function(t,e){var i=new s(e,this.editor);i.speed=1,i.wheelX=e.wheelX,i.wheelY=e.wheelY,this.editor._emit(t,i)},this.setState=function(t){this.state=t},this.captureMouse=function(t,e){this.x=t.x,this.y=t.y,this.isMousePressed=!0;var i=this.editor.renderer;i.$keepTextAreaAtCursor&&(i.$keepTextAreaAtCursor=null);var o=this,a=function(t){if(t)return r.isWebKit&&!t.which&&o.releaseMouse?o.releaseMouse():(o.x=t.clientX,o.y=t.clientY,e&&e(t),o.mouseEvent=new s(t,o.editor),void(o.$mouseMoved=!0))},l=function(t){clearInterval(c),A(),o[o.state+"End"]&&o[o.state+"End"](t),o.state="",null==i.$keepTextAreaAtCursor&&(i.$keepTextAreaAtCursor=!0,i.$moveTextAreaToCursor()),o.isMousePressed=!1,o.$onCaptureMouseMove=o.releaseMouse=null,t&&o.onMouseEvent("mouseup",t)},A=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(r.isOldIE&&"dblclick"==t.domEvent.type)return setTimeout((function(){l(t)}));o.$onCaptureMouseMove=a,o.releaseMouse=n.capture(this.editor.container,a,l);var c=setInterval(A,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&n.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)}}).call(c.prototype),A.defineOptions(c.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),e.MouseHandler=c})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(t,e,i){"use strict";e.FoldHandler=function(t){t.on("click",(function(e){var i=e.getDocumentPosition(),n=t.session,r=n.getFoldAt(i.row,i.column,1);r&&(e.getAccelKey()?n.removeFold(r):n.expandFold(r),e.stop())})),t.on("gutterclick",(function(e){if("foldWidgets"==t.renderer.$gutterLayer.getRegion(e)){var i=e.getDocumentPosition().row,n=t.session;n.foldWidgets&&n.foldWidgets[i]&&t.session.onFoldWidgetClick(i,e),t.isFocused()||t.focus(),e.stop()}})),t.on("gutterdblclick",(function(e){if("foldWidgets"==t.renderer.$gutterLayer.getRegion(e)){var i=e.getDocumentPosition().row,n=t.session,r=n.getParentFoldRangeData(i,!0),o=r.range||r.firstRange;if(o){i=o.start.row;var a=n.getFoldAt(i,n.getLine(i).length,1);a?n.removeFold(a):(n.addFold("...",o),t.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}e.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(t,e,i){"use strict";var n=t("../lib/keys"),r=t("../lib/event"),o=function(t){this.$editor=t,this.$data={editor:t},this.$handlers=[],this.setDefaultHandler(t.commands)};(function(){this.setDefaultHandler=function(t){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=t,this.addKeyboardHandler(t,0)},this.setKeyboardHandler=function(t){var e=this.$handlers;if(e[e.length-1]!=t){for(;e[e.length-1]&&e[e.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(e[e.length-1]);this.addKeyboardHandler(t,1)}},this.addKeyboardHandler=function(t,e){if(t){"function"==typeof t&&!t.handleKeyboard&&(t.handleKeyboard=t);var i=this.$handlers.indexOf(t);-1!=i&&this.$handlers.splice(i,1),null==e?this.$handlers.push(t):this.$handlers.splice(e,0,t),-1==i&&t.attach&&t.attach(this.$editor)}},this.removeKeyboardHandler=function(t){var e=this.$handlers.indexOf(t);return-1!=e&&(this.$handlers.splice(e,1),t.detach&&t.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,e=t.editor;return this.$handlers.map((function(i){return i.getStatusText&&i.getStatusText(e,t)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(t,e,i,n){for(var o,a=!1,s=this.$editor.commands,l=this.$handlers.length;l--&&!((o=this.$handlers[l].handleKeyboard(this.$data,t,e,i,n))&&o.command&&((a="null"==o.command||s.exec(o.command,this.$editor,o.args,n))&&n&&-1!=t&&1!=o.passEvent&&1!=o.command.passEvent&&r.stopEvent(n),a)););return!a&&-1==t&&(o={command:"insertstring"},a=s.exec("insertstring",this.$editor,e)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),a},this.onCommandKey=function(t,e,i){var r=n.keyCodeToString(i);this.$callKeyboardHandlers(e,r,i,t)},this.onTextInput=function(t){this.$callKeyboardHandlers(-1,t)}}).call(o.prototype),e.KeyBinding=o})),ace.define("ace/range",["require","exports","module"],(function(t,e,i){"use strict";var n=function(t,e,i,n){this.start={row:t,column:e},this.end={row:i,column:n}};(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,e){return 0==this.compare(t,e)},this.compareRange=function(t){var e,i=t.end,n=t.start;return 1==(e=this.compare(i.row,i.column))?1==(e=this.compare(n.row,n.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(n.row,n.column))?-1:1==e?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){var e=this.compareRange(t);return-1==e||0==e||1==e},this.isEnd=function(t,e){return this.end.row==t&&this.end.column==e},this.isStart=function(t,e){return this.start.row==t&&this.start.column==e},this.setStart=function(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)},this.setEnd=function(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)},this.inside=function(t,e){return 0==this.compare(t,e)&&(!this.isEnd(t,e)&&!this.isStart(t,e))},this.insideStart=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)},this.insideEnd=function(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)},this.compare=function(t,e){return this.isMultiLine()||t!==this.start.row?t<this.start.row?-1:t>this.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row===t?e<=this.end.column?0:1:0:e<this.start.column?-1:e>this.end.column?1:0},this.compareStart=function(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.compareEnd=function(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)},this.compareInside=function(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.clipRows=function(t,e){if(this.end.row>e)var i={row:e+1,column:0};else if(this.end.row<t)i={row:t,column:0};if(this.start.row>e)var r={row:e+1,column:0};else if(this.start.row<t)r={row:t,column:0};return n.fromPoints(r||this.start,i||this.end)},this.extend=function(t,e){var i=this.compare(t,e);if(0==i)return this;if(-1==i)var r={row:t,column:e};else var o={row:t,column:e};return n.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},
this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return n.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new n(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new n(this.start.row,0,this.end.row,0)},this.toScreenRange=function(t){var e=t.documentToScreenPosition(this.start),i=t.documentToScreenPosition(this.end);return new n(e.row,e.column,i.row,i.column)},this.moveBy=function(t,e){this.start.row+=t,this.start.column+=e,this.end.row+=t,this.end.column+=e}}).call(n.prototype),n.fromPoints=function(t,e){return new n(t.row,t.column,e.row,e.column)},n.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},n.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},e.Range=n})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/lang"),o=t("./lib/event_emitter").EventEmitter,a=t("./range").Range,s=function(t){this.session=t,this.doc=t.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var e=this;this.lead.on("change",(function(t){e._emit("changeCursor"),e.$isEmpty||e._emit("changeSelection"),!e.$keepDesiredColumnOnChange&&t.old.column!=t.value.column&&(e.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){e.$isEmpty||e._emit("changeSelection")}))};(function(){n.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(t,e){this.anchor.setPosition(t,e),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(t){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+t);else{var e=this.getSelectionAnchor(),i=this.getSelectionLead(),n=this.isBackwards();(!n||0!==e.column)&&this.setSelectionAnchor(e.row,e.column+t),(n||0!==i.column)&&this.$moveSelection((function(){this.moveCursorTo(i.row,i.column+t)}))}},this.isBackwards=function(){var t=this.anchor,e=this.lead;return t.row>e.row||t.row==e.row&&t.column>e.column},this.getRange=function(){var t=this.anchor,e=this.lead;return this.isEmpty()?a.fromPoints(e,e):this.isBackwards()?a.fromPoints(e,t):a.fromPoints(t,e)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var t=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(t,this.doc.getLine(t).length)},this.setRange=this.setSelectionRange=function(t,e){e?(this.setSelectionAnchor(t.end.row,t.end.column),this.selectTo(t.start.row,t.start.column)):(this.setSelectionAnchor(t.start.row,t.start.column),this.selectTo(t.end.row,t.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(t){var e=this.lead;this.$isEmpty&&this.setSelectionAnchor(e.row,e.column),t.call(this)},this.selectTo=function(t,e){this.$moveSelection((function(){this.moveCursorTo(t,e)}))},this.selectToPosition=function(t){this.$moveSelection((function(){this.moveCursorToPosition(t)}))},this.moveTo=function(t,e){this.clearSelection(),this.moveCursorTo(t,e)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,e){if(void 0===e){var i=t||this.lead;t=i.row,e=i.column}return this.session.getWordRange(t,e)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),e=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(e)},this.getLineRange=function(t,e){var i,n="number"==typeof t?t:this.lead.row,r=this.session.getFoldLine(n);return r?(n=r.start.row,i=r.end.row):i=n,!0===e?new a(n,0,i,this.session.getLine(i).length):new a(n,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,e,i){var n=t.column,r=t.column+e;return i<0&&(n=t.column-e,r=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(n,r).split(" ").length-1==e},this.moveCursorLeft=function(){var t,e=this.lead.getPosition();if(t=this.session.getFoldAt(e.row,e.column,-1))this.moveCursorTo(t.start.row,t.start.column);else if(0===e.column)e.row>0&&this.moveCursorTo(e.row-1,this.doc.getLine(e.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(e,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t,e=this.lead.getPosition();if(t=this.session.getFoldAt(e.row,e.column,1))this.moveCursorTo(t.end.row,t.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var i=this.session.getTabSize();e=this.lead;this.wouldMoveIntoSoftTab(e,i,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,i):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var t=this.lead.row,e=this.lead.column,i=this.session.documentToScreenRow(t,e),n=this.session.screenToDocumentPosition(i,0),r=this.session.getDisplayLine(t,null,n.row,n.column).match(/^\s*/);r[0].length!=e&&!this.session.$useEmacsStyleLineStart&&(n.column+=r[0].length),this.moveCursorToPosition(n)},this.moveCursorLineEnd=function(){var t=this.lead,e=this.session.getDocumentLastRowColumnPosition(t.row,t.column);if(this.lead.column==e.column){var i=this.session.getLine(e.row);if(e.column==i.length){var n=i.search(/\s+$/);n>0&&(e.column=n)}}this.moveCursorTo(e.row,e.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,e=this.doc.getLine(t).length;this.moveCursorTo(t,e)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,e=this.lead.column,i=this.doc.getLine(t),n=i.substring(e);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(t,e,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(n)&&(e+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(e)),e>=i.length)return this.moveCursorTo(t,i.length),this.moveCursorRight(),void(t<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(n)&&(e+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,e)}},this.moveCursorLongWordLeft=function(){var t,e=this.lead.row,i=this.lead.column;if(t=this.session.getFoldAt(e,i,-1))this.moveCursorTo(t.start.row,t.start.column);else{var n=this.session.getFoldStringAt(e,i,-1);null==n&&(n=this.doc.getLine(e).substring(0,i));var o=r.stringReverse(n);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(i-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),
this.session.nonTokenRe.lastIndex=0),i<=0)return this.moveCursorTo(e,0),this.moveCursorLeft(),void(e>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,i)}},this.$shortWordEndIndex=function(t){var e,i=0,n=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(t))i=this.session.tokenRe.lastIndex;else{for(;(e=t[i])&&n.test(e);)i++;if(i<1)for(r.lastIndex=0;(e=t[i])&&!r.test(e);)if(r.lastIndex=0,i++,n.test(e)){if(i>2){i--;break}for(;(e=t[i])&&n.test(e);)i++;if(i>2)break}}return r.lastIndex=0,i},this.moveCursorShortWordRight=function(){var t=this.lead.row,e=this.lead.column,i=this.doc.getLine(t),n=i.substring(e),r=this.session.getFoldAt(t,e,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(e==i.length){var o=this.doc.getLength();do{t++,n=this.doc.getLine(t)}while(t<o&&/^\s*$/.test(n));/^\s+/.test(n)||(n=""),e=0}var a=this.$shortWordEndIndex(n);this.moveCursorTo(t,e+a)},this.moveCursorShortWordLeft=function(){var t,e=this.lead.row,i=this.lead.column;if(t=this.session.getFoldAt(e,i,-1))return this.moveCursorTo(t.start.row,t.start.column);var n=this.session.getLine(e).substring(0,i);if(0===i){do{e--,n=this.doc.getLine(e)}while(e>0&&/^\s*$/.test(n));i=n.length,/\s+$/.test(n)||(n="")}var o=r.stringReverse(n),a=this.$shortWordEndIndex(o);return this.moveCursorTo(e,i-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,e){var i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===e&&(this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var n=this.session.screenToDocumentPosition(i.row+t,i.column);0!==t&&0===e&&n.row===this.lead.row&&n.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[n.row]&&(n.row>0||t>0)&&n.row++,this.moveCursorTo(n.row,n.column+e,0===e)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,e,i){var n=this.session.getFoldAt(t,e,1);n&&(t=n.start.row,e=n.start.column),this.$keepDesiredColumnOnChange=!0,this.lead.setPosition(t,e),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,e,i){var n=this.session.screenToDocumentPosition(t,e);this.moveCursorTo(n.row,n.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var e=this.getRange();return t?(t.start.column=e.start.column,t.start.row=e.start.row,t.end.column=e.end.column,t.end.row=e.end.row):t=e,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var e=this.getCursor();try{t(this);var i=this.getCursor();return a.fromPoints(e,i)}catch(t){return a.fromPoints(e,e)}finally{this.moveCursorToPosition(e)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map((function(t){var e=t.clone();return e.isBackwards=t.cursor==t.start,e}));else(t=this.getRange()).isBackwards=this.isBackwards();return t},this.fromJSON=function(t){if(null==t.start){if(this.rangeList){this.toSingleRange(t[0]);for(var e=t.length;e--;){var i=a.fromPoints(t[e].start,t[e].end);t[e].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}t=t[0]}this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var e=this.ranges.length;e--;)if(!this.ranges[e].isEqual(t[e]))return!1;return!0}}).call(s.prototype),e.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(t,e,i){"use strict";var n=t("./config"),r=2e3,o=function(t){for(var e in this.states=t,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[e],n=[],r=0,o=this.matchMappings[e]={defaultToken:"text"},a="g",s=[],l=0;l<i.length;l++){var A=i[l];if(A.defaultToken&&(o.defaultToken=A.defaultToken),A.caseInsensitive&&(a="gi"),null!=A.regex){A.regex instanceof RegExp&&(A.regex=A.regex.toString().slice(1,-1));var c=A.regex,h=new RegExp("(?:("+c+")|(.))").exec("a").length-2;Array.isArray(A.token)?1==A.token.length||1==h?A.token=A.token[0]:h-1!=A.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:A,groupCount:h-1}),A.token=A.token[0]):(A.tokenArray=A.token,A.token=null,A.onMatch=this.$arrayTokens):"function"==typeof A.token&&!A.onMatch&&(A.onMatch=h>1?this.$applyToken:A.token),h>1&&(/\\\d/.test(A.regex)?c=A.regex.replace(/\\([0-9]+)/g,(function(t,e){return"\\"+(parseInt(e,10)+r+1)})):(h=1,c=this.removeCapturingGroups(A.regex)),!A.splitRegex&&"string"!=typeof A.token&&s.push(A)),o[r]=l,r+=h,n.push(c),A.onMatch||(A.onMatch=null)}}n.length||(o[0]=0,n.push("$")),s.forEach((function(t){t.splitRegex=this.createSplitterRegexp(t.regex,a)}),this),this.regExps[e]=new RegExp("("+n.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(t){r=0|t},this.$applyToken=function(t){var e=this.splitRegex.exec(t).slice(1),i=this.token.apply(this,e);if("string"==typeof i)return[{type:i,value:t}];for(var n=[],r=0,o=i.length;r<o;r++)e[r]&&(n[n.length]={type:i[r],value:e[r]});return n},this.$arrayTokens=function(t){if(!t)return[];var e=this.splitRegex.exec(t);if(!e)return"text";for(var i=[],n=this.tokenArray,r=0,o=n.length;r<o;r++)e[r+1]&&(i[i.length]={type:n[r],value:e[r+1]});return i},this.removeCapturingGroups=function(t){return t.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(t,e){return e?"(?:":t}))},this.createSplitterRegexp=function(t,e){if(-1!=t.indexOf("(?=")){var i=0,n=!1,r={};t.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(t,e,o,a,s,l){return n?n="]"!=s:s?n=!0:a?(i==r.stack&&(r.end=l+1,r.stack=-1),i--):o&&(i++,1!=o.length&&(r.stack=i,r.start=l)),t})),null!=r.end&&/^\)*$/.test(t.substr(r.end))&&(t=t.substring(0,r.start)+t.substr(r.end))}return"^"!=t.charAt(0)&&(t="^"+t),"$"!=t.charAt(t.length-1)&&(t+="$"),new RegExp(t,(e||"").replace("g",""))},this.getLineTokens=function(t,e){if(e&&"string"!=typeof e){var i=e.slice(0);"#tmp"===(e=i[0])&&(i.shift(),e=i.shift())}else i=[];var n=e||"start",o=this.states[n];o||(n="start",o=this.states[n]);var a=this.matchMappings[n],s=this.regExps[n];s.lastIndex=0;for(var l,A=[],c=0,h=0,d={type:null,value:""};l=s.exec(t);){var u=a.defaultToken,p=null,g=l[0],f=s.lastIndex;if(f-g.length>c){var m=t.substring(c,f-g.length);d.type==u?d.value+=m:(d.type&&A.push(d),d={type:u,value:m})}for(var y=0;y<l.length-2;y++)if(void 0!==l[y+1]){u=(p=o[a[y]]).onMatch?p.onMatch(g,n,i,t):p.token,p.next&&(n="string"==typeof p.next?p.next:p.next(n,i),(o=this.states[n])||(this.reportError("state doesn't exist",n),n="start",o=this.states[n]),a=this.matchMappings[n],c=f,(s=this.regExps[n]).lastIndex=f),p.consumeLineEnd&&(c=f);break}if(g)if("string"==typeof u)p&&!1===p.merge||d.type!==u?(d.type&&A.push(d),d={type:u,value:g}):d.value+=g;else if(u){d.type&&A.push(d),d={type:null,value:""};for(y=0;y<u.length;y++)A.push(u[y])}if(c==t.length)break;if(c=f,h++>r){for(h>2*t.length&&this.reportError("infinite loop with in ace tokenizer",{startState:e,line:t});c<t.length;)d.type&&A.push(d),d={value:t.substring(c,c+=2e3),type:"overflow"};n="start",i=[];break}}return d.type&&A.push(d),i.length>1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:A,state:i.length?i:n}},this.reportError=n.reportError}).call(o.prototype),e.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(t,e,i){"use strict";var n=t("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(t,e){if(e)for(var i in t){for(var n=t[i],r=0;r<n.length;r++){var o=n[r]
;(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(e)&&(o.next=e+o.next),o.nextState&&0!==o.nextState.indexOf(e)&&(o.nextState=e+o.nextState))}this.$rules[e+i]=n}else for(var i in t)this.$rules[i]=t[i]},this.getRules=function(){return this.$rules},this.embedRules=function(t,e,i,r,o){var a="function"==typeof t?(new t).getRules():t;if(r)for(var s=0;s<r.length;s++)r[s]=e+r[s];else for(var l in r=[],a)r.push(e+l);if(this.addRules(a,e),i){var A=Array.prototype[o?"push":"unshift"];for(s=0;s<r.length;s++)A.apply(this.$rules[r[s]],n.deepCopy(i))}this.$embeds||(this.$embeds=[]),this.$embeds.push(e)},this.getEmbeds=function(){return this.$embeds};var t=function(t,e){return("start"!=t||e.length)&&e.unshift(this.nextState,t),this.nextState},e=function(t,e){return e.shift(),e.shift()||"start"};this.normalizeRules=function(){var i=0,n=this.$rules;Object.keys(n).forEach((function r(o){var a=n[o];a.processed=!0;for(var s=0;s<a.length;s++){var l=a[s],A=null;Array.isArray(l)&&(A=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var c=l.next||l.push;if(c&&Array.isArray(c)){var h=l.stateName;h||("string"!=typeof(h=l.token)&&(h=h[0]||""),n[h]&&(h+=i++)),n[h]=c,l.next=h,r(h)}else"pop"==c&&(l.next=e);if(l.push&&(l.nextState=l.next||l.push,l.next=t,delete l.push),l.rules)for(var d in l.rules)n[d]?n[d].push&&n[d].push.apply(n[d],l.rules[d]):n[d]=l.rules[d];var u="string"==typeof l?l:l.include;if(u&&(A=Array.isArray(u)?u.map((function(t){return n[t]})):n[u]),A){var p=[s,1].concat(A);l.noEscape&&(p=p.filter((function(t){return!t.next}))),a.splice.apply(a,p),s--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(t,e,i,n){var r=Object.create(null);return Object.keys(t).forEach((function(e){var o=t[e];i&&(o=o.toLowerCase());for(var a=o.split(n||"|"),s=a.length;s--;)r[a[s]]=e})),Object.getPrototypeOf(r)&&(r.__proto__=null),this.$keywordList=Object.keys(r),t=null,i?function(t){return r[t.toLowerCase()]||e}:function(t){return r[t]||e}},this.getKeywords=function(){return this.$keywords}}).call(r.prototype),e.TextHighlightRules=r})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(t,e,i){"use strict";var n=function(){this.$behaviours={}};(function(){this.add=function(t,e,i){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[t]:this.$behaviours[t]={}}this.$behaviours[t][e]=i},this.addBehaviours=function(t){for(var e in t)for(var i in t[e])this.add(e,i,t[e][i])},this.remove=function(t){this.$behaviours&&this.$behaviours[t]&&delete this.$behaviours[t]},this.inherit=function(t,e){if("function"==typeof t)var i=(new t).getBehaviours(e);else i=t.getBehaviours(e);this.addBehaviours(i)},this.getBehaviours=function(t){if(!t)return this.$behaviours;for(var e={},i=0;i<t.length;i++)this.$behaviours[t[i]]&&(e[t[i]]=this.$behaviours[t[i]]);return e}}).call(n.prototype),e.Behaviour=n})),ace.define("ace/token_iterator",["require","exports","module"],(function(t,e,i){"use strict";var n=function(t,e,i){this.$session=t,this.$row=e,this.$rowTokens=t.getTokens(e);var n=t.getTokenAt(e,i);this.$tokenIndex=n?n.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var t;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,t||(t=this.$session.getLength()),this.$row>=t)return this.$row=t-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var t=this.$rowTokens,e=this.$tokenIndex,i=t[e].start;if(void 0!==i)return i;for(i=0;e>0;)i+=t[e-=1].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}}}).call(n.prototype),e.TokenIterator=n})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(t,e,i){"use strict";var n,r=t("../../lib/oop"),o=t("../behaviour").Behaviour,a=t("../../token_iterator").TokenIterator,s=t("../../lib/lang"),l=["text","paren.rparen","punctuation.operator"],A=["text","paren.rparen","punctuation.operator","comment"],c={},h={'"':'"',"'":"'"},d=function(t){var e=-1;if(t.multiSelect&&(e=t.selection.index,c.rangeCount!=t.multiSelect.rangeCount&&(c={rangeCount:t.multiSelect.rangeCount})),c[e])return n=c[e];n=c[e]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},u=function(t,e,i,n){var r=t.end.row-t.start.row;return{text:i+e+n,selection:[0,t.start.column+1,r,t.end.column+(r?0:1)]}},p=function(t){this.add("braces","insertion",(function(e,i,r,o,a){var l=r.getCursorPosition(),A=o.doc.getLine(l.row);if("{"==a){d(r);var c=r.getSelectionRange(),h=o.doc.getTextRange(c);if(""!==h&&"{"!==h&&r.getWrapBehavioursEnabled())return u(c,h,"{","}");if(p.isSaneInsertion(r,o))return/[\]\}\)]/.test(A[l.column])||r.inMultiSelectMode||t&&t.braces?(p.recordAutoInsert(r,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(r,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(d(r),"}"==A.substring(l.column,l.column+1))if(null!==o.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&p.isAutoInsertedClosing(l,A,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){d(r);var g="";if(p.isMaybeInsertedClosing(l,A)&&(g=s.stringRepeat("}",n.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===A.substring(l.column,l.column+1)){var f=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!f)return null;var m=this.$getIndent(o.getLine(f.row))}else{if(!g)return void p.clearMaybeInsertedClosing();m=this.$getIndent(A)}var y=m+o.getTabString();return{text:"\n"+y+"\n"+m+g,selection:[1,y.length,1,y.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(t,e,i,r,o){var a=r.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){if(d(i),"}"==r.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;n.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,e,i,n,r){if("("==r){d(i);var o=i.getSelectionRange(),a=n.doc.getTextRange(o);if(""!==a&&i.getWrapBehavioursEnabled())return u(o,a,"(",")");if(p.isSaneInsertion(i,n))return p.recordAutoInsert(i,n,")"),{text:"()",selection:[1,1]}}else if(")"==r){d(i);var s=i.getCursorPosition(),l=n.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==n.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,r))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(t,e,i,n,r){var o=n.doc.getTextRange(r);if(!r.isMultiLine()&&"("==o&&(d(i),")"==n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("brackets","insertion",(function(t,e,i,n,r){if("["==r){d(i);var o=i.getSelectionRange(),a=n.doc.getTextRange(o);if(""!==a&&i.getWrapBehavioursEnabled())return u(o,a,"[","]");if(p.isSaneInsertion(i,n))return p.recordAutoInsert(i,n,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){d(i);var s=i.getCursorPosition(),l=n.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==n.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,r))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(t,e,i,n,r){var o=n.doc.getTextRange(r);if(!r.isMultiLine()&&"["==o&&(d(i),"]"==n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,
r})),this.add("string_dquotes","insertion",(function(t,e,i,n,r){var o=n.$mode.$quotes||h;if(1==r.length&&o[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;d(i);var a=r,s=i.getSelectionRange(),l=n.doc.getTextRange(s);if(""!==l&&(1!=l.length||!o[l])&&i.getWrapBehavioursEnabled())return u(s,l,a,a);if(!l){var A=i.getCursorPosition(),c=n.doc.getLine(A.row),p=c.substring(A.column-1,A.column),g=c.substring(A.column,A.column+1),f=n.getTokenAt(A.row,A.column),m=n.getTokenAt(A.row,A.column+1);if("\\"==p&&f&&/escape/.test(f.type))return null;var y,b=f&&/string|escape/.test(f.type),v=!m||/string|escape/.test(m.type);if(g==a)(y=b!==v)&&/string\.end/.test(m.type)&&(y=!1);else{if(b&&!v)return null;if(b&&v)return null;var E=n.$mode.tokenRe;E.lastIndex=0;var I=E.test(p);E.lastIndex=0;var C=E.test(p);if(I||C)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(t,e,i,n,r){var o=n.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==o||"'"==o)&&(d(i),n.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==o))return r.end.column++,r}))};p.isSaneInsertion=function(t,e){var i=t.getCursorPosition(),n=new a(e,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",l)){var r=new a(e,i.row,i.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",l))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",A)},p.$matchTokenType=function(t,e){return e.indexOf(t.type||t)>-1},p.recordAutoInsert=function(t,e,i){var r=t.getCursorPosition(),o=e.doc.getLine(r.row);this.isAutoInsertedClosing(r,o,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=r.row,n.autoInsertedLineEnd=i+o.substr(r.column),n.autoInsertedBrackets++},p.recordMaybeInsert=function(t,e,i){var r=t.getCursorPosition(),o=e.doc.getLine(r.row);this.isMaybeInsertedClosing(r,o)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=r.row,n.maybeInsertedLineStart=o.substr(0,r.column)+i,n.maybeInsertedLineEnd=o.substr(r.column),n.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(t,e,i){return n.autoInsertedBrackets>0&&t.row===n.autoInsertedRow&&i===n.autoInsertedLineEnd[0]&&e.substr(t.column)===n.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(t,e){return n.maybeInsertedBrackets>0&&t.row===n.maybeInsertedRow&&e.substr(t.column)===n.maybeInsertedLineEnd&&e.substr(0,t.column)==n.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},r.inherits(p,o),e.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(t,e,i){"use strict";e.packages={},function(t){var i=/\w{4}/g;for(var n in t)e.packages[n]=t[n].replace(i,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",
Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",
M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",
Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(t,e,i){"use strict";var n=t("../tokenizer").Tokenizer,r=t("./text_highlight_rules").TextHighlightRules,o=t("./behaviour/cstyle").CstyleBehaviour,a=t("../unicode"),s=t("../lib/lang"),l=t("../token_iterator").TokenIterator,A=t("../range").Range,c=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new n(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(t,e,i,n){function r(t){for(var e=i;e<=n;e++)t(o.getLine(e),e)
}var o=e.doc,a=!0,l=!0,A=1/0,c=e.getTabSize(),h=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))f=this.lineCommentStart.map(s.escapeRegExp).join("|"),p=this.lineCommentStart[0];else f=s.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart;f=new RegExp("^(\\s*)(?:"+f+") ?"),h=e.getUseSoftTabs();b=function(t,e){var i=t.match(f);if(i){var n=i[1].length,r=i[0].length;!u(t,n,r)&&" "==i[0][r-1]&&r--,o.removeInLine(e,n,r)}};var d=p+" ",u=(y=function(t,e){a&&!/\S/.test(t)||(u(t,A,A)?o.insertInLine({row:e,column:A},d):o.insertInLine({row:e,column:A},p))},v=function(t,e){return f.test(t)},function(t,e,i){for(var n=0;e--&&" "==t.charAt(e);)n++;if(n%c!=0)return!1;for(n=0;" "==t.charAt(i++);)n++;return c>2?n%c!=c-1:n%c==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,g=this.blockComment.end,f=new RegExp("^(\\s*)(?:"+s.escapeRegExp(p)+")"),m=new RegExp("(?:"+s.escapeRegExp(g)+")\\s*$"),y=function(t,e){v(t,e)||a&&!/\S/.test(t)||(o.insertInLine({row:e,column:t.length},g),o.insertInLine({row:e,column:A},p))},b=function(t,e){var i;(i=t.match(m))&&o.removeInLine(e,t.length-i[0].length,t.length),(i=t.match(f))&&o.removeInLine(e,i[1].length,i[0].length)},v=function(t,i){if(f.test(t))return!0;for(var n=e.getTokens(i),r=0;r<n.length;r++)if("comment"===n[r].type)return!0}}var E=1/0;r((function(t,e){var i=t.search(/\S/);-1!==i?(i<A&&(A=i),l&&!v(t,e)&&(l=!1)):E>t.length&&(E=t.length)})),A==1/0&&(A=E,a=!1,l=!1),h&&A%c!=0&&(A=Math.floor(A/c)*c),r(l?b:y)},this.toggleBlockComment=function(t,e,i,n){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var o,a,s=(g=new l(e,n.row,n.column)).getCurrentToken(),c=(e.selection,e.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var h,d;s&&/comment/.test(s.type);){if(-1!=(f=s.value.indexOf(r.start))){var u=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+f;h=new A(u,p,u,p+r.start.length);break}s=g.stepBackward()}var g;for(s=(g=new l(e,n.row,n.column)).getCurrentToken();s&&/comment/.test(s.type);){var f;if(-1!=(f=s.value.indexOf(r.end))){u=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+f;d=new A(u,p,u,p+r.end.length);break}s=g.stepForward()}d&&e.remove(d),h&&(e.remove(h),o=h.start.row,a=-r.start.length)}else a=r.start.length,o=i.start.row,e.insert(i.end,r.end),e.insert(i.start,r.start);c.start.row==o&&(c.start.column+=a),c.end.row==o&&(c.end.column+=a),e.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(t,e,i){return this.$getIndent(e)},this.checkOutdent=function(t,e,i){return!1},this.autoOutdent=function(t,e,i){},this.$getIndent=function(t){return t.match(/^\s*/)[0]},this.createWorker=function(t){return null},this.createModeDelegates=function(t){for(var e in this.$embeds=[],this.$modes={},t)t[e]&&(this.$embeds.push(e),this.$modes[e]=new t[e]);var i=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(e=0;e<i.length;e++)!function(t){var n=i[e],r=t[n];t[i[e]]=function(){return this.$delegator(n,arguments,r)}}(this)},this.$delegator=function(t,e,i){var n=e[0];"string"!=typeof n&&(n=n[0]);for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var o=n.split(this.$embeds[r]);if(!o[0]&&o[1]){e[0]=o[1];var a=this.$modes[this.$embeds[r]];return a[t].apply(a,e)}}var s=i.apply(this,e);return i?s:void 0},this.transformAction=function(t,e,i,n,r){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var a in o)if(o[a][e]){var s=o[a][e].apply(this,arguments);if(s)return s}}},this.getKeywords=function(t){if(!this.completionKeywords){var e=this.$tokenizer.rules,i=[];for(var n in e)for(var r=e[n],o=0,a=r.length;o<a;o++)if("string"==typeof r[o].token)/keyword|support|storage/.test(r[o].token)&&i.push(r[o].regex);else if("object"==typeof r[o].token)for(var s=0,l=r[o].token.length;s<l;s++)if(/keyword|support|storage/.test(r[o].token[s])){n=r[o].regex.match(/\(.+?\)/g)[s];i.push(n.substr(1,n.length-2))}this.completionKeywords=i}return t?i.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(t,e,i,n){return(this.$keywordList||this.$createKeywordList()).map((function(t){return{name:t,value:t,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(c.prototype),e.Mode=c})),ace.define("ace/apply_delta",["require","exports","module"],(function(t,e,i){"use strict";e.applyDelta=function(t,e,i){var n=e.start.row,r=e.start.column,o=t[n]||"";switch(e.action){case"insert":if(1===e.lines.length)t[n]=o.substring(0,r)+e.lines[0]+o.substring(r);else{var a=[n,1].concat(e.lines);t.splice.apply(t,a),t[n]=o.substring(0,r)+t[n],t[n+e.lines.length-1]+=o.substring(r)}break;case"remove":var s=e.end.column,l=e.end.row;n===l?t[n]=o.substring(0,r)+o.substring(s):t.splice(n,l-n+1,o.substring(0,r)+t[l].substring(s))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/event_emitter").EventEmitter,o=e.Anchor=function(t,e,i){this.$onChange=this.onChange.bind(this),this.attach(t),void 0===i?this.setPosition(e.row,e.column):this.setPosition(e,i)};(function(){function t(t,e,i){var n=i?t.column<=e.column:t.column<e.column;return t.row<e.row||t.row==e.row&&n}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var i=function(e,i,n){var r="insert"==e.action,o=(r?1:-1)*(e.end.row-e.start.row),a=(r?1:-1)*(e.end.column-e.start.column),s=e.start,l=r?s:e.end;return t(i,s,n)?{row:i.row,column:i.column}:t(l,i,!n)?{row:i.row+o,column:i.column+(i.row==l.row?a:0)}:{row:s.row,column:s.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(i.row,i.column,!0)}},this.setPosition=function(t,e,i){var n;if(n=i?{row:t,column:e}:this.$clipPositionToDocument(t,e),this.row!=n.row||this.column!=n.column){var r={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:r,value:n})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,e){var i={};return t>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):t<0?(i.row=0,i.column=0):(i.row=t,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,e))),e<0&&(i.column=0),i}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./apply_delta").applyDelta,o=t("./lib/event_emitter").EventEmitter,a=t("./range").Range,s=t("./anchor").Anchor,l=function(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)};(function(){n.implement(this,o),this.setValue=function(t){var e=this.getLength()-1;this.remove(new a(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,e){return new s(this,t,e)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){
return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,e){return this.$lines.slice(t,e+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var e;if(t.start.row===t.end.row)e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{(e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column);var i=e.length-1;t.end.row-t.start.row==i&&(e[i]=e[i].substring(0,t.end.column))}return e},this.insertLines=function(t,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,e)},this.removeLines=function(t,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,e)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(t,this.$split(e))},this.insertInLine=function(t,e){var i=this.clippedPos(t.row,t.column),n=this.pos(t.row,t.column+e.length);return this.applyDelta({start:i,end:n,action:"insert",lines:[e]},!0),this.clonePos(n)},this.clippedPos=function(t,e){var i=this.getLength();void 0===t?t=i:t<0?t=0:t>=i&&(t=i-1,e=void 0);var n=this.getLine(t);return null==e&&(e=n.length),{row:t,column:e=Math.min(Math.max(e,0),n.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,e){return{row:t,column:e}},this.$clipPosition=function(t){var e=this.getLength();return t.row>=e?(t.row=Math.max(0,e-1),t.column=this.getLine(e-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,e){var i=0;(t=Math.min(Math.max(t,0),this.getLength()))<this.getLength()?(e=e.concat([""]),i=0):(e=[""].concat(e),t--,i=this.$lines[t].length),this.insertMergedLines({row:t,column:i},e)},this.insertMergedLines=function(t,e){var i=this.clippedPos(t.row,t.column),n={row:i.row+e.length-1,column:(1==e.length?i.column:0)+e[e.length-1].length};return this.applyDelta({start:i,end:n,action:"insert",lines:e}),this.clonePos(n)},this.remove=function(t){var e=this.clippedPos(t.start.row,t.start.column),i=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:e,end:i,action:"remove",lines:this.getLinesForRange({start:e,end:i})}),this.clonePos(e)},this.removeInLine=function(t,e,i){var n=this.clippedPos(t,e),r=this.clippedPos(t,i);return this.applyDelta({start:n,end:r,action:"remove",lines:this.getLinesForRange({start:n,end:r})},!0),this.clonePos(n)},this.removeFullLines=function(t,e){t=Math.min(Math.max(0,t),this.getLength()-1);var i=(e=Math.min(Math.max(0,e),this.getLength()-1))==this.getLength()-1&&t>0,n=e<this.getLength()-1,r=i?t-1:t,o=i?this.getLine(r).length:0,s=n?e+1:e,l=n?0:this.getLine(s).length,A=new a(r,o,s,l),c=this.$lines.slice(t,e+1);return this.applyDelta({start:A.start,end:A.end,action:"remove",lines:this.getLinesForRange(A)}),c},this.removeNewLine=function(t){t<this.getLength()-1&&t>=0&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,e){return t instanceof a||(t=a.fromPoints(t.start,t.end)),0===e.length&&t.isEmpty()?t.start:e==this.getTextRange(t)?t.end:(this.remove(t),e?this.insert(t.start,e):t.start)},this.applyDeltas=function(t){for(var e=0;e<t.length;e++)this.applyDelta(t[e])},this.revertDeltas=function(t){for(var e=t.length-1;e>=0;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var i="insert"==t.action;(i?t.lines.length<=1&&!t.lines[0]:!a.comparePoints(t.start,t.end))||(i&&t.lines.length>2e4&&this.$splitAndapplyLargeDelta(t,2e4),r(this.$lines,t,e),this._signal("change",t))},this.$splitAndapplyLargeDelta=function(t,e){for(var i=t.lines,n=i.length,r=t.start.row,o=t.start.column,a=0,s=0;;){a=s,s+=e-1;var l=i.slice(a,s);if(s>n){t.lines=l,t.start.row=r+a,t.start.column=o;break}l.push(""),this.applyDelta({start:this.pos(r+a,o),end:this.pos(r+s,o=0),action:t.action,lines:l},!0)}},this.revertDelta=function(t){this.applyDelta({start:this.clonePos(t.start),end:this.clonePos(t.end),action:"insert"==t.action?"remove":"insert",lines:t.lines.slice()})},this.indexToPosition=function(t,e){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,r=e||0,o=i.length;r<o;r++)if((t-=i[r].length+n)<0)return{row:r,column:t+i[r].length+n};return{row:o-1,column:i[o-1].length}},this.positionToIndex=function(t,e){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,r=0,o=Math.min(t.row,i.length),a=e||0;a<o;++a)r+=i[a].length+n;return r+t.column}}).call(l.prototype),e.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/event_emitter").EventEmitter,o=function(t,e){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=t;var i=this;this.$worker=function(){if(i.running){for(var t=new Date,e=i.currentLine,n=-1,r=i.doc,o=e;i.lines[e];)e++;var a=r.getLength(),s=0;for(i.running=!1;e<a;){i.$tokenizeRow(e),n=e;do{e++}while(i.lines[e]);if(++s%5==0&&new Date-t>20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=e,-1==n&&(n=e),o<=n&&i.fireUpdateEvent(o,n)}}};(function(){n.implement(this,r),this.setTokenizer=function(t){this.tokenizer=t,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(t){this.doc=t,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(t,e){var i={first:t,last:e};this._signal("update",{data:i})},this.start=function(t){this.currentLine=Math.min(t||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(t){var e=t.start.row,i=t.end.row-e;if(0===i)this.lines[e]=null;else if("remove"==t.action)this.lines.splice(e,i+1,null),this.states.splice(e,i+1,null);else{var n=Array(i+1);n.unshift(e,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(e,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(t){return this.lines[t]||this.$tokenizeRow(t)},this.getState=function(t){return this.currentLine==t&&this.$tokenizeRow(t),this.states[t]||"start"},this.$tokenizeRow=function(t){var e=this.doc.getLine(t),i=this.states[t-1],n=this.tokenizer.getLineTokens(e,i,t);return this.states[t]+""!=n.state+""?(this.states[t]=n.state,this.lines[t+1]=null,this.currentLine>t+1&&(this.currentLine=t+1)):this.currentLine==t&&(this.currentLine=t+1),this.lines[t]=n.tokens}}).call(o.prototype),e.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,i){"use strict";var n=t("./lib/lang"),r=(t("./lib/oop"),t("./range").Range),o=function(t,e,i){this.setRegexp(t),this.clazz=e,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(t){this.regExp+""!=t+""&&(this.regExp=t,this.cache=[])},this.update=function(t,e,i,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l=a;l<=s;l++){var A=this.cache[l];null==A&&((A=n.getMatchOffsets(i.getLine(l),this.regExp)).length>this.MAX_RANGES&&(A=A.slice(0,this.MAX_RANGES)),A=A.map((function(t){return new r(l,t.offset,l,t.offset+t.length)})),this.cache[l]=A.length?A:"");for(var c=A.length;c--;)e.drawSingleLineMarker(t,A[c].toScreenRange(i),this.clazz,o)}}}).call(o.prototype),e.SearchHighlight=o})),
ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(t,e,i){"use strict";function n(t,e){this.foldData=t,Array.isArray(e)?this.folds=e:e=this.folds=[e];var i=e[e.length-1];this.range=new r(e[0].start.row,e[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(t){t.setFoldLine(this)}),this)}var r=t("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach((function(e){e.start.row+=t,e.end.row+=t}))},this.addFold=function(t){if(t.sameRow){if(t.start.row<this.startRow||t.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(t),this.folds.sort((function(t,e){return-t.range.compareEnd(e.start.row,e.start.column)})),this.range.compareEnd(t.start.row,t.start.column)>0?(this.end.row=t.end.row,this.end.column=t.end.column):this.range.compareStart(t.end.row,t.end.column)<0&&(this.start.row=t.start.row,this.start.column=t.start.column)}else if(t.start.row==this.end.row)this.folds.push(t),this.end.row=t.end.row,this.end.column=t.end.column;else{if(t.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(t),this.start.row=t.start.row,this.start.column=t.start.column}t.foldLine=this},this.containsRow=function(t){return t>=this.start.row&&t<=this.end.row},this.walk=function(t,e,i){var n,r,o=0,a=this.folds,s=!0;null==e&&(e=this.end.row,i=this.end.column);for(var l=0;l<a.length;l++){if(-1==(r=(n=a[l]).range.compareStart(e,i)))return void t(null,e,i,o,s);if(!t(null,n.start.row,n.start.column,o,s)&&t(n.placeholder,n.start.row,n.start.column,o)||0===r)return;s=!n.sameRow,o=n.end.column}t(null,e,i,o,s)},this.getNextFoldTo=function(t,e){for(var i,n,r=0;r<this.folds.length;r++){if(-1==(n=(i=this.folds[r]).range.compareEnd(t,e)))return{fold:i,kind:"after"};if(0===n)return{fold:i,kind:"inside"}}return null},this.addRemoveChars=function(t,e,i){var n,r,o=this.getNextFoldTo(t,e);if(o)if(n=o.fold,"inside"==o.kind&&n.start.column!=e&&n.start.row!=t)window.console&&window.console.log(t,e,n);else if(n.start.row==t){var a=(r=this.folds).indexOf(n);for(0===a&&(this.start.column+=i);a<r.length;a++){if((n=r[a]).start.column+=i,!n.sameRow)return;n.end.column+=i}this.end.column+=i}},this.split=function(t,e){var i=this.getNextFoldTo(t,e);if(!i||"inside"==i.kind)return null;var r=i.fold,o=this.folds,a=this.foldData,s=o.indexOf(r),l=o[s-1];this.end.row=l.end.row,this.end.column=l.end.column;var A=new n(a,o=o.splice(s,o.length-s));return a.splice(a.indexOf(this)+1,0,A),A},this.merge=function(t){for(var e=t.folds,i=0;i<e.length;i++)this.addFold(e[i]);var n=this.foldData;n.splice(n.indexOf(t),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach((function(e){t.push("  "+e.toString())})),t.push("]"),t.join("\n")},this.idxToPosition=function(t){for(var e=0,i=0;i<this.folds.length;i++){var n=this.folds[i];if((t-=n.start.column-e)<0)return{row:n.start.row,column:n.start.column+t};if((t-=n.placeholder.length)<0)return n.start;e=n.end.column}return{row:this.end.row,column:this.end.column+t}}}).call(n.prototype),e.FoldLine=n})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(t,e,i){"use strict";var n=t("./range").Range.comparePoints,r=function(){this.ranges=[]};(function(){this.comparePoints=n,this.pointIndex=function(t,e,i){for(var r=this.ranges,o=i||0;o<r.length;o++){var a=r[o],s=n(t,a.end);if(!(s>0)){var l=n(t,a.start);return 0===s?e&&0!==l?-o-2:o:l>0||0===l&&!e?o:-o-1}}return-o-1},this.add=function(t){var e=!t.isEmpty(),i=this.pointIndex(t.start,e);i<0&&(i=-i-1);var n=this.pointIndex(t.end,e,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,t)},this.addList=function(t){for(var e=[],i=t.length;i--;)e.push.apply(e,this.add(t[i]));return e},this.substractPoint=function(t){var e=this.pointIndex(t);if(e>=0)return this.ranges.splice(e,1)},this.merge=function(){for(var t,e=[],i=this.ranges,r=(i=i.sort((function(t,e){return n(t.start,e.start)})))[0],o=1;o<i.length;o++){t=r,r=i[o];var a=n(t.end,r.start);a<0||(0!=a||t.isEmpty()||r.isEmpty())&&(n(t.end,r.end)<0&&(t.end.row=r.end.row,t.end.column=r.end.column),i.splice(o,1),e.push(r),r=t,o--)}return this.ranges=i,e},this.contains=function(t,e){return this.pointIndex({row:t,column:e})>=0},this.containsPoint=function(t){return this.pointIndex(t)>=0},this.rangeAtPoint=function(t){var e=this.pointIndex(t);if(e>=0)return this.ranges[e]},this.clipRows=function(t,e){var i=this.ranges;if(i[0].start.row>e||i[i.length-1].start.row<t)return[];var n=this.pointIndex({row:t,column:0});n<0&&(n=-n-1);var r=this.pointIndex({row:e,column:0},n);r<0&&(r=-r-1);for(var o=[],a=n;a<r;a++)o.push(i[a]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(t){this.session&&this.detach(),this.session=t,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(t){if("insert"==t.action)var e=t.start,i=t.end;else i=t.start,e=t.end;for(var n=e.row,r=i.row-n,o=-e.column+i.column,a=this.ranges,s=0,l=a.length;s<l;s++){if(!((A=a[s]).end.row<n)){if(A.start.row>n)break;if(A.start.row==n&&A.start.column>=e.column&&(A.start.column!=e.column||!this.$insertRight)&&(A.start.column+=o,A.start.row+=r),A.end.row==n&&A.end.column>=e.column){if(A.end.column==e.column&&this.$insertRight)continue;A.end.column==e.column&&o>0&&s<l-1&&A.end.column>A.start.column&&A.end.column==a[s+1].start.column&&(A.end.column-=o),A.end.column+=o,A.end.row+=r}}}if(0!=r&&s<l)for(;s<l;s++){var A;(A=a[s]).start.row+=r,A.end.row+=r}}}).call(r.prototype),e.RangeList=r})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(t,e,i){"use strict";function n(t,e){t.row-=e.row,0==t.row&&(t.column-=e.column)}function r(t,e){0==t.row&&(t.column+=e.column),t.row+=e.row}t("../range").Range;var o=t("../range_list").RangeList,a=t("../lib/oop"),s=e.Fold=function(t,e){this.foldLine=null,this.placeholder=e,this.range=t,this.start=t.start,this.end=t.end,this.sameRow=t.start.row==t.end.row,this.subFolds=this.ranges=[]};a.inherits(s,o),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach((function(e){e.setFoldLine(t)}))},this.clone=function(){var t=this.range.clone(),e=new s(t,this.placeholder);return this.subFolds.forEach((function(t){e.subFolds.push(t.clone())})),e.collapseChildren=this.collapseChildren,e},this.addSubFold=function(t){if(!this.range.isEqual(t)){if(!this.range.containsRange(t))throw new Error("A fold can't intersect already existing fold"+t.range+this.range);!function(t,e){n(t.start,e),n(t.end,e)}(t,this.start);for(var e=t.start.row,i=t.start.column,r=0,o=-1;r<this.subFolds.length&&1==(o=this.subFolds[r].range.compare(e,i));r++);var a=this.subFolds[r];if(0==o)return a.addSubFold(t);e=t.range.end.row,i=t.range.end.column;var s=r;for(o=-1;s<this.subFolds.length&&1==(o=this.subFolds[s].range.compare(e,i));s++);this.subFolds[s];if(0==o)throw new Error("A fold can't intersect already existing fold"+t.range+this.range);this.subFolds.splice(r,s-r,t);return t.setFoldLine(this.foldLine),t}},this.restoreRange=function(t){return function(t,e){r(t.start,e),r(t.end,e)}(t,this.start)}}.call(s.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(t,e,i){"use strict";var n=t("../range").Range,r=t("./fold_line").FoldLine,o=t("./fold").Fold,a=t("../token_iterator").TokenIterator;e.Folding=function(){this.getFoldAt=function(t,e,i){var n=this.getFoldLine(t);if(!n)return null;for(var r=n.folds,o=0;o<r.length;o++){var a=r[o];if(a.range.contains(t,e)){if(1==i&&a.range.isEnd(t,e))continue;if(-1==i&&a.range.isStart(t,e))continue;return a}}},this.getFoldsInRange=function(t){
var e=t.start,i=t.end,n=this.$foldData,r=[];e.column+=1,i.column-=1;for(var o=0;o<n.length;o++){var a=n[o].range.compareRange(t);if(2!=a){if(-2==a)break;for(var s=n[o].folds,l=0;l<s.length;l++){var A=s[l];if(-2==(a=A.range.compareRange(t)))break;if(2!=a){if(42==a)break;r.push(A)}}}}return e.column-=1,i.column+=1,r},this.getFoldsInRangeList=function(t){if(Array.isArray(t)){var e=[];t.forEach((function(t){e=e.concat(this.getFoldsInRange(t))}),this)}else e=this.getFoldsInRange(t);return e},this.getAllFolds=function(){for(var t=[],e=this.$foldData,i=0;i<e.length;i++)for(var n=0;n<e[i].folds.length;n++)t.push(e[i].folds[n]);return t},this.getFoldStringAt=function(t,e,i,n){if(!(n=n||this.getFoldLine(t)))return null;for(var r,o,a={end:{column:0}},s=0;s<n.folds.length;s++){var l=(o=n.folds[s]).range.compareEnd(t,e);if(-1==l){r=this.getLine(o.start.row).substring(a.end.column,o.start.column);break}if(0===l)return null;a=o}return r||(r=this.getLine(o.start.row).substring(a.end.column)),-1==i?r.substring(0,e-a.end.column):1==i?r.substring(e-a.end.column):r},this.getFoldLine=function(t,e){var i=this.$foldData,n=0;for(e&&(n=i.indexOf(e)),-1==n&&(n=0);n<i.length;n++){var r=i[n];if(r.start.row<=t&&r.end.row>=t)return r;if(r.end.row>t)return null}return null},this.getNextFoldLine=function(t,e){var i=this.$foldData,n=0;for(e&&(n=i.indexOf(e)),-1==n&&(n=0);n<i.length;n++){var r=i[n];if(r.end.row>=t)return r}return null},this.getFoldedRowCount=function(t,e){for(var i=this.$foldData,n=e-t+1,r=0;r<i.length;r++){var o=i[r],a=o.end.row,s=o.start.row;if(a>=e){s<e&&(s>=t?n-=e-s:n=0);break}a>=t&&(n-=s>=t?a-s:a-t+1)}return n},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort((function(t,e){return t.start.row-e.start.row})),t},this.addFold=function(t,e){var i,n=this.$foldData,a=!1;t instanceof o?i=t:(i=new o(e,t)).collapseChildren=e.collapseChildren,this.$clipRangeToDocument(i.range);var s=i.start.row,l=i.start.column,A=i.end.row,c=i.end.column;if(s<A||s==A&&l<=c-2){var h=this.getFoldAt(s,l,1),d=this.getFoldAt(A,c,-1);if(h&&d==h)return h.addSubFold(i);h&&!h.range.isStart(s,l)&&this.removeFold(h),d&&!d.range.isEnd(A,c)&&this.removeFold(d);var u=this.getFoldsInRange(i.range);u.length>0&&(this.removeFolds(u),u.forEach((function(t){i.addSubFold(t)})));for(var p=0;p<n.length;p++){var g=n[p];if(A==g.start.row){g.addFold(i),a=!0;break}if(s==g.end.row){if(g.addFold(i),a=!0,!i.sameRow){var f=n[p+1];if(f&&f.start.row==A){g.merge(f);break}}break}if(A<=g.start.row)break}return a||(g=this.$addFoldLine(new r(this.$foldData,i))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:i,action:"add"}),i}throw new Error("The range has to be at least 2 characters width")},this.addFolds=function(t){t.forEach((function(t){this.addFold(t)}),this)},this.removeFold=function(t){var e=t.foldLine,i=e.start.row,n=e.end.row,r=this.$foldData,o=e.folds;if(1==o.length)r.splice(r.indexOf(e),1);else if(e.range.isEnd(t.end.row,t.end.column))o.pop(),e.end.row=o[o.length-1].end.row,e.end.column=o[o.length-1].end.column;else if(e.range.isStart(t.start.row,t.start.column))o.shift(),e.start.row=o[0].start.row,e.start.column=o[0].start.column;else if(t.sameRow)o.splice(o.indexOf(t),1);else{var a=e.split(t.start.row,t.start.column);(o=a.folds).shift(),a.start.row=o[0].start.row,a.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(i,n):this.$updateRowLengthCache(i,n)),this.$modified=!0,this._signal("changeFold",{data:t,action:"remove"})},this.removeFolds=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i]);e.forEach((function(t){this.removeFold(t)}),this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach((function(e){t.restoreRange(e),this.addFold(e)}),this),t.collapseChildren>0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach((function(t){this.expandFold(t)}),this)},this.unfold=function(t,e){var i,r;if(null==t?(i=new n(0,0,this.getLength(),0),e=!0):i="number"==typeof t?new n(t,0,t,this.getLine(t).length):"row"in t?n.fromPoints(t,t):t,r=this.getFoldsInRangeList(i),e)this.removeFolds(r);else for(var o=r;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(i);if(r.length)return r},this.isRowFolded=function(t,e){return!!this.getFoldLine(t,e)},this.getRowFoldEnd=function(t,e){var i=this.getFoldLine(t,e);return i?i.end.row:t},this.getRowFoldStart=function(t,e){var i=this.getFoldLine(t,e);return i?i.start.row:t},this.getFoldDisplayLine=function(t,e,i,n,r){null==n&&(n=t.start.row),null==r&&(r=0),null==e&&(e=t.end.row),null==i&&(i=this.getLine(e).length);var o=this.doc,a="";return t.walk((function(t,e,i,s){if(!(e<n)){if(e==n){if(i<r)return;s=Math.max(r,s)}a+=null!=t?t:o.getLine(e).substring(s,i)}}),e,i),a},this.getDisplayLine=function(t,e,i,n){var r,o=this.getFoldLine(t);return o?this.getFoldDisplayLine(o,t,e,i,n):(r=this.doc.getLine(t)).substring(n||0,e||r.length)},this.$cloneFoldData=function(){var t=[];return t=this.$foldData.map((function(e){var i=e.folds.map((function(t){return t.clone()}));return new r(t,i)}))},this.toggleFold=function(t){var e,i,n=this.selection.getRange();if(n.isEmpty()){var r=n.start;if(e=this.getFoldAt(r.row,r.column))return void this.expandFold(e);(i=this.findMatchingBracket(r))?1==n.comparePoint(i)?n.end=i:(n.start=i,n.start.column++,n.end.column--):(i=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==n.comparePoint(i)?n.end=i:n.start=i,n.start.column++):n=this.getCommentFoldRange(r.row,r.column)||n}else{var o=this.getFoldsInRange(n);if(t&&o.length)return void this.expandFolds(o);1==o.length&&(e=o[0])}if(e||(e=this.getFoldAt(n.start.row,n.start.column)),e&&e.range.toString()==n.toString())this.expandFold(e);else{var a="...";if(!n.isMultiLine()){if((a=this.getTextRange(n)).length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,n)}},this.getCommentFoldRange=function(t,e,i){var r=new a(this,t,e),o=r.getCurrentToken(),s=o.type;if(o&&/^comment|string/.test(s)){"comment"==(s=s.match(/comment|string/)[0])&&(s+="|doc-start");var l=new RegExp(s),A=new n;if(1!=i){do{o=r.stepBackward()}while(o&&l.test(o.type));r.stepForward()}if(A.start.row=r.getCurrentTokenRow(),A.start.column=r.getCurrentTokenColumn()+2,r=new a(this,t,e),-1!=i){var c=-1;do{if(o=r.stepForward(),-1==c){var h=this.getState(r.$row);l.test(h)||(c=r.$row)}else if(r.$row>c)break}while(o&&l.test(o.type));o=r.stepBackward()}else o=r.getCurrentToken();return A.end.row=r.getCurrentTokenRow(),A.end.column=r.getCurrentTokenColumn()+o.value.length-2,A}},this.foldAll=function(t,e,i){null==i&&(i=1e5);var n=this.foldWidgets;if(n){e=e||this.getLength();for(var r=t=t||0;r<e;r++)if(null==n[r]&&(n[r]=this.getFoldWidget(r)),"start"==n[r]){var o=this.getFoldWidgetRange(r);if(o&&o.isMultiLine()&&o.end.row<=e&&o.start.row>=t){r=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=i)}catch(t){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=t){this.$foldStyle=t,"manual"==t&&this.unfold();var e=this.$foldMode;this.$setFolding(null),this.$setFolding(e)}},this.$setFolding=function(t){this.$foldMode!=t&&(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),t&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(t,e){var i=this.foldWidgets;if(!i||e&&i[t])return{};for(var n,r=t-1;r>=0;){var o=i[r]
;if(null==o&&(o=i[r]=this.getFoldWidget(r)),"start"==o){var a=this.getFoldWidgetRange(r);if(n||(n=a),a&&a.end.row>=t)break}r--}return{range:-1!==r&&a,firstRange:n}},this.onFoldWidgetClick=function(t,e){var i={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};if(!this.$toggleFoldWidget(t,i)){var n=e.target||e.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,e){if(this.getFoldWidget){var i=this.getFoldWidget(t),n=this.getLine(t),r="end"===i?-1:1,o=this.getFoldAt(t,-1===r?0:n.length,r);if(o)return e.children||e.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(t,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(o.range))return this.removeFold(o),o;if(e.siblings){var s=this.getParentFoldRangeData(t);if(s.range)var l=s.range.start.row+1,A=s.range.end.row;this.foldAll(l,A,e.all?1e4:0)}else e.children?(A=a?a.end.row:this.getLength(),this.foldAll(t+1,A,e.all?1e4:0)):a&&(e.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(t){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var i=this.$toggleFoldWidget(e,{});if(!i){var n=this.getParentFoldRangeData(e,!0);if(i=n.range||n.firstRange){e=i.start.row;var r=this.getFoldAt(e,this.getLine(e).length,1);r?this.removeFold(r):this.addFold("...",i)}}},this.updateFoldWidgets=function(t){var e=t.start.row,i=t.end.row-e;if(0===i)this.foldWidgets[e]=null;else if("remove"==t.action)this.foldWidgets.splice(e,i+1,null);else{var n=Array(i+1);n.unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(t,e,i){"use strict";var n=t("../token_iterator").TokenIterator,r=t("../range").Range;e.BracketMatch=function(){this.findMatchingBracket=function(t,e){if(0==t.column)return null;var i=e||this.getLine(t.row).charAt(t.column-1);if(""==i)return null;var n=i.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],t):this.$findOpeningBracket(n[2],t):null},this.getBracketRange=function(t){var e,i=this.getLine(t.row),n=!0,o=i.charAt(t.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=i.charAt(t.column),t={row:t.row,column:t.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),n=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],t)))return null;e=r.fromPoints(t,s),n||(e.end.column++,e.start.column--),e.cursor=e.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],t)))return null;e=r.fromPoints(s,t),n||(e.start.column++,e.end.column--),e.cursor=e.start}return e},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(t,e,i){var r=this.$brackets[t],o=1,a=new n(this,e.row,e.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){i||(i=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=e.column-a.getCurrentTokenColumn()-2,A=s.value;;){for(;l>=0;){var c=A.charAt(l);if(c==r){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else c==t&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!i.test(s.type));if(null==s)break;l=(A=s.value).length-1}return null}},this.$findClosingBracket=function(t,e,i){var r=this.$brackets[t],o=1,a=new n(this,e.row,e.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){i||(i=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=e.column-a.getCurrentTokenColumn();;){for(var A=s.value,c=A.length;l<c;){var h=A.charAt(l);if(h==r){if(0==(o-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else h==t&&(o+=1);l+=1}do{s=a.stepForward()}while(s&&!i.test(s.type));if(null==s)break;l=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/lang"),o=t("./config"),a=t("./lib/event_emitter").EventEmitter,s=t("./selection").Selection,l=t("./mode/text").Mode,A=t("./range").Range,c=t("./document").Document,h=t("./background_tokenizer").BackgroundTokenizer,d=t("./search_highlight").SearchHighlight,u=function(t,e){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++u.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new c(t)),this.setDocument(t),this.selection=new s(this),o.resetOptions(this),this.setMode(e),o._signal("session",this)};u.$uid=0,function(){function t(t){return!(t<4352)&&(t>=4352&&t<=4447||t>=4515&&t<=4519||t>=4602&&t<=4607||t>=9001&&t<=9002||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12283||t>=12288&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12589||t>=12593&&t<=12686||t>=12688&&t<=12730||t>=12736&&t<=12771||t>=12784&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=13054||t>=13056&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=55216&&t<=55238||t>=55243&&t<=55291||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=65281&&t<=65376||t>=65504&&t<=65510)}n.implement(this,a),this.setDocument=function(t){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=t,t.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(t){if(!t)return this.$docRowCache=[],void(this.$screenRowCache=[]);var e=this.$docRowCache.length,i=this.$getRowCacheIndex(this.$docRowCache,t)+1;e>i&&(this.$docRowCache.splice(i,e),this.$screenRowCache.splice(i,e))},this.$getRowCacheIndex=function(t,e){for(var i=0,n=t.length-1;i<=n;){var r=i+n>>1,o=t[r];if(e>o)i=r+1;else{if(!(e<o))return r;n=r-1}}return i-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(t){var e=t.data;this.$resetRowCache(e.start.row)},this.onChange=function(t){this.$modified=!0,this.$resetRowCache(t.start.row);var e=this.$updateInternalDataOnChange(t);!this.$fromUndo&&this.$undoManager&&!t.ignore&&(this.$deltasDoc.push(t),e&&0!=e.length&&this.$deltasFold.push({action:"removeFolds",folds:e}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(t),this._signal("change",t)},this.setValue=function(t){this.doc.setValue(t),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(t){return this.bgTokenizer.getState(t)},this.getTokens=function(t){return this.bgTokenizer.getTokens(t)},this.getTokenAt=function(t,e){var i,n=this.bgTokenizer.getTokens(t),r=0;if(null==e)o=n.length-1,r=this.getLine(t).length;else for(var o=0;o<n.length&&!((r+=n[o].value.length)>=e);o++);return(i=n[o])?(i.index=o,i.start=r-i.value.length,i):null},this.setUndoManager=function(t){if(this.$undoManager=t,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),t){var e=this;this.$syncInformUndoManager=function(){e.$informUndoManager.cancel(),e.$deltasFold.length&&(e.$deltas.push({group:"fold",
deltas:e.$deltasFold}),e.$deltasFold=[]),e.$deltasDoc.length&&(e.$deltas.push({group:"doc",deltas:e.$deltasDoc}),e.$deltasDoc=[]),e.$deltas.length>0&&t.execute({action:"aceupdate",args:[e.$deltas,e],merge:e.mergeUndoDeltas}),e.mergeUndoDeltas=!1,e.$deltas=[]},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(t){this.setOption("useSoftTabs",t)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(t){this.setOption("tabSize",t)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(t){return this.$useSoftTabs&&t.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(t){this.setOption("navigateWithinSoftTabs",t)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(t){this.setOption("overwrite",t)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(t,e){this.$decorations[t]||(this.$decorations[t]=""),this.$decorations[t]+=" "+e,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(t,e){this.$decorations[t]=(this.$decorations[t]||"").replace(" "+e,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(t){this.$breakpoints=[];for(var e=0;e<t.length;e++)this.$breakpoints[t[e]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(t,e){void 0===e&&(e="ace_breakpoint"),e?this.$breakpoints[t]=e:delete this.$breakpoints[t],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(t){delete this.$breakpoints[t],this._signal("changeBreakpoint",{})},this.addMarker=function(t,e,i,n){var r=this.$markerId++,o={range:t,type:i||"line",renderer:"function"==typeof i?i:null,clazz:e,inFront:!!n,id:r};return n?(this.$frontMarkers[r]=o,this._signal("changeFrontMarker")):(this.$backMarkers[r]=o,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(t,e){if(t.update){var i=this.$markerId++;return t.id=i,t.inFront=!!e,e?(this.$frontMarkers[i]=t,this._signal("changeFrontMarker")):(this.$backMarkers[i]=t,this._signal("changeBackMarker")),t}},this.removeMarker=function(t){var e=this.$frontMarkers[t]||this.$backMarkers[t];if(e){var i=e.inFront?this.$frontMarkers:this.$backMarkers;e&&(delete i[t],this._signal(e.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(t){return t?this.$frontMarkers:this.$backMarkers},this.highlight=function(t){if(!this.$searchHighlight){var e=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(e)}this.$searchHighlight.setRegexp(t)},this.highlightLines=function(t,e,i,n){"number"!=typeof e&&(i=e,e=t),i||(i="ace_step");var r=new A(t,0,e,1/0);return r.id=this.addMarker(r,i,"fullLine",n),r},this.setAnnotations=function(t){this.$annotations=t,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r?\n)/m);this.$autoNewLine=e?e[1]:"\n"},this.getWordRange=function(t,e){var i=this.getLine(t),n=!1;if(e>0&&(n=!!i.charAt(e-1).match(this.tokenRe)),n||(n=!!i.charAt(e).match(this.tokenRe)),n)var r=this.tokenRe;else if(/^\s+$/.test(i.slice(e-1,e+1)))r=/\s/;else r=this.nonTokenRe;var o=e;if(o>0){do{o--}while(o>=0&&i.charAt(o).match(r));o++}for(var a=e;a<i.length&&i.charAt(a).match(r);)a++;return new A(t,o,t,a)},this.getAWordRange=function(t,e){for(var i=this.getWordRange(t,e),n=this.getLine(i.end.row);n.charAt(i.end.column).match(/[ \t]/);)i.end.column+=1;return i},this.setNewLineMode=function(t){this.doc.setNewLineMode(t)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(t){this.setOption("useWorker",t)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(t){var e=t.data;this.bgTokenizer.start(e.first),this._signal("tokenizerUpdate",t)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(t,e){if(t&&"object"==typeof t){if(t.getTokenizer)return this.$onChangeMode(t);var i=t,n=i.path}else n=t||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[n]&&!i)return this.$onChangeMode(this.$modes[n]),void(e&&e());this.$modeId=n,o.loadModule(["mode",n],function(t){if(this.$modeId!==n)return e&&e();this.$modes[n]&&!i?this.$onChangeMode(this.$modes[n]):t&&t.Mode&&(t=new t.Mode(i),i||(this.$modes[n]=t,t.$id=n),this.$onChangeMode(t)),e&&e()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(t,e){if(e||(this.$modeId=t.$id),this.$mode!==t){this.$mode=t,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=t.getTokenizer();if(void 0!==i.addEventListener){var n=this.onReloadTokenizer.bind(this);i.addEventListener("update",n)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(i);else{this.bgTokenizer=new h(i);var r=this;this.bgTokenizer.addEventListener("update",(function(t){r._signal("tokenizerUpdate",t)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=t.tokenRe,this.nonTokenRe=t.nonTokenRe,e||(t.attachToSession&&t.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(t.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(t){o.warn("Could not load worker",t),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(t){this.$scrollTop===t||isNaN(t)||(this.$scrollTop=t,this._signal("changeScrollTop",t))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(t){this.$scrollLeft===t||isNaN(t)||(this.$scrollLeft=t,this._signal("changeScrollLeft",t))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach((function(e){e&&e.screenWidth>t&&(t=e.screenWidth)})),this.lineWidgetWidth=t},this.$computeWidth=function(t){if(this.$modified||t){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var e=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,r=0,o=this.$foldData[r],a=o?o.start.row:1/0,s=e.length,l=0;l<s;l++){if(l>a){if((l=o.end.row+1)>=s)break;a=(o=this.$foldData[r++])?o.start.row:1/0}null==i[l]&&(i[l]=this.$getStringScreenWidth(e[l])[0]),i[l]>n&&(n=i[l])}this.screenWidth=n}},this.getLine=function(t){return this.doc.getLine(t)},this.getLines=function(t,e){return this.doc.getLines(t,e)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(t){return this.doc.getTextRange(t||this.selection.getRange())},this.insert=function(t,e){return this.doc.insert(t,e)},this.remove=function(t){return this.doc.remove(t)},this.removeFullLines=function(t,e){return this.doc.removeFullLines(t,e)},this.undoChanges=function(t,e){if(t.length){this.$fromUndo=!0;for(var i=null,n=t.length-1;-1!=n;n--){var r=t[n];"doc"==r.group?(this.doc.revertDeltas(r.deltas),i=this.$getUndoSelection(r.deltas,!0,i)):r.deltas.forEach((function(t){this.addFolds(t.folds)}),this)}return this.$fromUndo=!1,i&&this.$undoSelect&&!e&&this.selection.setSelectionRange(i),i}},
this.redoChanges=function(t,e){if(t.length){this.$fromUndo=!0;for(var i=null,n=0;n<t.length;n++){var r=t[n];"doc"==r.group&&(this.doc.applyDeltas(r.deltas),i=this.$getUndoSelection(r.deltas,!1,i))}return this.$fromUndo=!1,i&&this.$undoSelect&&!e&&this.selection.setSelectionRange(i),i}},this.setUndoSelect=function(t){this.$undoSelect=t},this.$getUndoSelection=function(t,e,i){function n(t){return e?"insert"!==t.action:"insert"===t.action}var r,o,a=t[0];n(a)?r=A.fromPoints(a.start,a.end):r=A.fromPoints(a.start,a.start);for(var s=1;s<t.length;s++)n(a=t[s])?(o=a.start,-1==r.compare(o.row,o.column)&&r.setStart(o),o=a.end,1==r.compare(o.row,o.column)&&r.setEnd(o),!0):(o=a.start,-1==r.compare(o.row,o.column)&&(r=A.fromPoints(a.start,a.start)),!1);if(null!=i){0===A.comparePoints(i.start,r.start)&&(i.start.column+=r.end.column-r.start.column,i.end.column+=r.end.column-r.start.column);var l=i.compareRange(r);1==l?r.setStart(i.start):-1==l&&r.setEnd(i.end)}return r},this.replace=function(t,e){return this.doc.replace(t,e)},this.moveText=function(t,e,i){var n=this.getTextRange(t),r=this.getFoldsInRange(t),o=A.fromPoints(e,e);if(!i){this.remove(t);var a=t.start.row-t.end.row;(c=a?-t.end.column:t.start.column-t.end.column)&&(o.start.row==t.end.row&&o.start.column>t.end.column&&(o.start.column+=c),o.end.row==t.end.row&&o.end.column>t.end.column&&(o.end.column+=c)),a&&o.start.row>=t.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,n),r.length){var s=t.start,l=o.start,c=(a=l.row-s.row,l.column-s.column);this.addFolds(r.map((function(t){return(t=t.clone()).start.row==s.row&&(t.start.column+=c),t.end.row==s.row&&(t.end.column+=c),t.start.row+=a,t.end.row+=a,t})))}return o},this.indentRows=function(t,e,i){i=i.replace(/\t/g,this.getTabString());for(var n=t;n<=e;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(t){for(var e=t.collapseRows(),i=new A(0,0,0,0),n=this.getTabSize(),r=e.start.row;r<=e.end.row;++r){var o=this.getLine(r);i.start.row=r,i.end.row=r;for(var a=0;a<n&&" "==o.charAt(a);++a);a<n&&"\t"==o.charAt(a)?(i.start.column=a,i.end.column=a+1):(i.start.column=0,i.end.column=a),this.remove(i)}},this.$moveLines=function(t,e,i){if(t=this.getRowFoldStart(t),e=this.getRowFoldEnd(e),i<0){if((r=this.getRowFoldStart(t+i))<0)return 0;var n=r-t}else if(i>0){var r;if((r=this.getRowFoldEnd(e+i))>this.doc.getLength()-1)return 0;n=r-e}else{t=this.$clipRowToDocument(t);n=(e=this.$clipRowToDocument(e))-t+1}var o=new A(t,0,e,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(t){return(t=t.clone()).start.row+=n,t.end.row+=n,t})),s=0==i?this.doc.getLines(t,e):this.doc.removeFullLines(t,e);return this.doc.insertFullLines(t+n,s),a.length&&this.addFolds(a),n},this.moveLinesUp=function(t,e){return this.$moveLines(t,e,-1)},this.moveLinesDown=function(t,e){return this.$moveLines(t,e,1)},this.duplicateLines=function(t,e){return this.$moveLines(t,e,0)},this.$clipRowToDocument=function(t){return Math.max(0,Math.min(t,this.doc.getLength()-1))},this.$clipColumnToRow=function(t,e){return e<0?0:Math.min(this.doc.getLine(t).length,e)},this.$clipPositionToDocument=function(t,e){if(e=Math.max(0,e),t<0)t=0,e=0;else{var i=this.doc.getLength();t>=i?(t=i-1,e=this.doc.getLine(i-1).length):e=Math.min(this.doc.getLine(t).length,e)}return{row:t,column:e}},this.$clipRangeToDocument=function(t){t.start.row<0?(t.start.row=0,t.start.column=0):t.start.column=this.$clipColumnToRow(t.start.row,t.start.column);var e=this.doc.getLength()-1;return t.end.row>e?(t.end.row=e,t.end.column=this.doc.getLine(e).length):t.end.column=this.$clipColumnToRow(t.end.row,t.end.column),t},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(t){if(t!=this.$useWrapMode){if(this.$useWrapMode=t,this.$modified=!0,this.$resetRowCache(0),t){var e=this.getLength();this.$wrapData=Array(e),this.$updateWrapData(0,e-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(t,e){this.$wrapLimitRange.min===t&&this.$wrapLimitRange.max===e||(this.$wrapLimitRange={min:t,max:e},this.$modified=!0,this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(t,e){var i=this.$wrapLimitRange;i.max<0&&(i={min:e,max:e});var n=this.$constrainWrapLimit(t,i.min,i.max);return n!=this.$wrapLimit&&n>1&&(this.$wrapLimit=n,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(t,e,i){return e&&(t=Math.max(e,t)),i&&(t=Math.min(i,t)),t},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(t){this.setWrapLimitRange(t,t)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(t){var e=this.$useWrapMode,i=t.action,n=t.start,r=t.end,o=n.row,a=r.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===i){this[e?"$wrapData":"$rowLengthCache"].splice(o,s);var A=this.$foldData;l=this.getFoldsInRange(t),this.removeFolds(l);var c=0;if(g=this.getFoldLine(r.row)){g.addRemoveChars(r.row,r.column,n.column-r.column),g.shiftRow(-s);var h=this.getFoldLine(o);h&&h!==g&&(h.merge(g),g=h),c=A.indexOf(g)+1}for(;c<A.length;c++){(g=A[c]).start.row>=r.row&&g.shiftRow(-s)}a=o}else{var d=Array(s);d.unshift(o,0);var u=e?this.$wrapData:this.$rowLengthCache;u.splice.apply(u,d);A=this.$foldData,c=0;if(g=this.getFoldLine(o)){var p=g.range.compareInside(n.row,n.column);0==p?(g=g.split(n.row,n.column))&&(g.shiftRow(s),g.addRemoveChars(a,0,r.column-n.column)):-1==p&&(g.addRemoveChars(o,0,r.column-n.column),g.shiftRow(s)),c=A.indexOf(g)+1}for(;c<A.length;c++){var g;(g=A[c]).start.row>=o&&g.shiftRow(s)}}else s=Math.abs(t.start.column-t.end.column),"remove"===i&&(l=this.getFoldsInRange(t),this.removeFolds(l),s=-s),(g=this.getFoldLine(o))&&g.addRemoveChars(o,n.column,s);return e&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,e?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(t,e,i){this.$rowLengthCache[t]=null,this.$rowLengthCache[e]=null},this.$updateWrapData=function(t,n){var r,o,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,A=this.$wrapLimit,c=t;for(n=Math.min(n,a.length-1);c<=n;)(o=this.getFoldLine(c,o))?(r=[],o.walk(function(t,n,o,s){var l;if(null!=t){(l=this.$getDisplayTokens(t,r.length))[0]=e;for(var A=1;A<l.length;A++)l[A]=i}else l=this.$getDisplayTokens(a[n].substring(s,o),r.length);r=r.concat(l)}.bind(this),o.end.row,a[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(r,A,s),c=o.end.row+1):(r=this.$getDisplayTokens(a[c]),l[c]=this.$computeWrapSplits(r,A,s),c++)};var e=3,i=4;this.$computeWrapSplits=function(t,n,r){function o(e){var i=t.slice(l,e),n=i.length;i.join("").replace(/12/g,(function(){n-=1})).replace(/2/g,(function(){n-=1})),a.length||(u=function(){var e=0;if(0===d)return e;if(h)for(var i=0;i<t.length;i++){var n=t[i];if(10==n)e+=1;else{if(11!=n){if(12==n)continue;break}e+=r}}return c&&!1!==h&&(e+=r),Math.min(e,d)}(),a.indent=u),A+=n,a.push(A),l=e}if(0==t.length)return[];for(var a=[],s=t.length,l=0,A=0,c=this.$wrapAsCode,h=this.$indentedSoftWrap,d=n<=Math.max(2*r,8)||!1===h?0:Math.floor(n/2),u=0;s-l>n-u;){var p=l+n-u;if(t[p-1]>=10&&t[p]>=10)o(p);else if(t[p]!=e&&t[p]!=i){for(var g=Math.max(p-(n-(n>>2)),l-1);p>g&&t[p]<e;)p--;if(c){for(;p>g&&t[p]<e;)p--;for(;p>g&&9==t[p];)p--}else for(;p>g&&t[p]<10;)p--;p>g?o(++p):(2==t[p=l+n]&&p--,o(p-u))}else{for(;p!=l-1&&t[p]!=e;p--);if(p>l){o(p);continue}for(p=l+n;p<t.length&&t[p]==i;p++);if(p==t.length)break;o(p)}}return a},this.$getDisplayTokens=function(e,i){var n,r=[];i=i||0;for(var o=0;o<e.length;o++){var a=e.charCodeAt(o);if(9==a){n=this.getScreenTabSize(r.length+i),r.push(11);for(var s=1;s<n;s++)r.push(12)}else 32==a?r.push(10):a>39&&a<48||a>57&&a<64?r.push(9):a>=4352&&t(a)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,i,n){if(0==i)return[0,0];var r,o;for(null==i&&(i=1/0),n=n||0,
o=0;o<e.length&&(9==(r=e.charCodeAt(o))?n+=this.getScreenTabSize(n):r>=4352&&t(r)?n+=2:n+=1,!(n>i));o++);return[n,o]},this.lineWidgets=null,this.getRowLength=function(t){if(this.lineWidgets)var e=this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0;else e=0;return this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1+e:1+e},this.getRowLineCount=function(t){return this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1:1},this.getRowWrapIndent=function(t){if(this.$useWrapMode){var e=this.screenToDocumentPosition(t,Number.MAX_VALUE),i=this.$wrapData[e.row];return i.length&&i[0]<e.column?i.indent:0}return 0},this.getScreenLastRowColumn=function(t){var e=this.screenToDocumentPosition(t,Number.MAX_VALUE);return this.documentToScreenColumn(e.row,e.column)},this.getDocumentLastRowColumn=function(t,e){var i=this.documentToScreenRow(t,e);return this.getScreenLastRowColumn(i)},this.getDocumentLastRowColumnPosition=function(t,e){var i=this.documentToScreenRow(t,e);return this.screenToDocumentPosition(i,Number.MAX_VALUE/10)},this.getRowSplitData=function(t){return this.$useWrapMode?this.$wrapData[t]:void 0},this.getScreenTabSize=function(t){return this.$tabSize-t%this.$tabSize},this.screenToDocumentRow=function(t,e){return this.screenToDocumentPosition(t,e).row},this.screenToDocumentColumn=function(t,e){return this.screenToDocumentPosition(t,e).column},this.screenToDocumentPosition=function(t,e){if(t<0)return{row:0,column:0};var i,n,r=0,o=0,a=0,s=0,l=this.$screenRowCache,A=this.$getRowCacheIndex(l,t),c=l.length;if(c&&A>=0){a=l[A],r=this.$docRowCache[A];var h=t>l[c-1]}else h=!c;for(var d=this.getLength()-1,u=this.getNextFoldLine(r),p=u?u.start.row:1/0;a<=t&&!(a+(s=this.getRowLength(r))>t||r>=d);)a+=s,++r>p&&(r=u.end.row+1,p=(u=this.getNextFoldLine(r,u))?u.start.row:1/0),h&&(this.$docRowCache.push(r),this.$screenRowCache.push(a));if(u&&u.start.row<=r)i=this.getFoldDisplayLine(u),r=u.start.row;else{if(a+s<=t||r>d)return{row:d,column:this.getLine(d).length};i=this.getLine(r),u=null}var g=0;if(this.$useWrapMode){var f=this.$wrapData[r];if(f){var m=Math.floor(t-a);n=f[m],m>0&&f.length&&(g=f.indent,o=f[m-1]||f[f.length-1],i=i.substring(o))}}return o+=this.$getStringScreenWidth(i,e-g)[1],this.$useWrapMode&&o>=n&&(o=n-1),u?u.idxToPosition(o):{row:r,column:o}},this.documentToScreenPosition=function(t,e){if(void 0===e)var i=this.$clipPositionToDocument(t.row,t.column);else i=this.$clipPositionToDocument(t,e);t=i.row,e=i.column;var n,r=0,o=null;(n=this.getFoldAt(t,e,1))&&(t=n.start.row,e=n.start.column);var a,s=0,l=this.$docRowCache,A=this.$getRowCacheIndex(l,t),c=l.length;if(c&&A>=0){s=l[A],r=this.$screenRowCache[A];var h=t>l[c-1]}else h=!c;for(var d=this.getNextFoldLine(s),u=d?d.start.row:1/0;s<t;){if(s>=u){if((a=d.end.row+1)>t)break;u=(d=this.getNextFoldLine(a,d))?d.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,h&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var p="";d&&s>=u?(p=this.getFoldDisplayLine(d,t,e),o=d.start.row):(p=this.getLine(t).substring(0,e),o=t);var g=0;if(this.$useWrapMode){var f=this.$wrapData[o];if(f){for(var m=0;p.length>=f[m];)r++,m++;p=p.substring(f[m-1]||0,p.length),g=m>0?f.indent:0}}return{row:r,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(t,e){return this.documentToScreenPosition(t,e).column},this.documentToScreenRow=function(t,e){return this.documentToScreenPosition(t,e).row},this.getScreenLength=function(){var t=0,e=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,r=(s=0,(e=this.$foldData[s++])?e.start.row:1/0);n<i;){var o=this.$wrapData[n];t+=o?o.length+1:1,++n>r&&(n=e.end.row+1,r=(e=this.$foldData[s++])?e.start.row:1/0)}else{t=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)t-=(e=a[s]).end.row-e.start.row}return this.lineWidgets&&(t+=this.$getWidgetScreenLength()),t},this.$setFontMetrics=function(t){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,i,n){if(0===i)return[0,0];var r,o;for(i||(i=1/0),n=n||0,o=0;o<e.length&&!((n+="\t"===(r=e.charAt(o))?this.getScreenTabSize(n):t.getCharacterWidth(r))>i);o++);return[n,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()}}.call(u.prototype),t("./edit_session/folding").Folding.call(u.prototype),t("./edit_session/bracket_match").BracketMatch.call(u.prototype),o.defineOptions(u.prototype,"session",{wrap:{set:function(t){if(t&&"off"!=t?"free"==t?t=!0:"printMargin"==t?t=-1:"string"==typeof t&&(t=parseInt(t,10)||!1):t=!1,this.$wrap!=t)if(this.$wrap=t,t){var e="number"==typeof t?t:null;this.setWrapLimitRange(e,e),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(t){(t="auto"==t?"text"!=this.$mode.type:"text"!=t)!=this.$wrapAsCode&&(this.$wrapAsCode=t,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(t){this.$useWorker=t,this.$stopWorker(),t&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(t){isNaN(t)||this.$tabSize===t||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=t,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(t){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(t){this.doc.setNewLineMode(t)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(t){this.setMode(t)},get:function(){return this.$modeId}}}),e.EditSession=u})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,i){"use strict";var n=t("./lib/lang"),r=t("./lib/oop"),o=t("./range").Range,a=function(){this.$options={}};(function(){this.set=function(t){return r.mixin(this.$options,t),this},this.getOptions=function(){return n.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var e=this.$options,i=this.$matchIterator(t,e);if(!i)return!1;var n=null;return i.forEach((function(t,i,r,a){return n=new o(t,i,r,a),!(i==a&&e.start&&e.start.start&&0!=e.skipCurrent&&n.isEqual(e.start))||(n=null,!1)})),n},this.findAll=function(t){var e=this.$options;if(!e.needle)return[];this.$assembleRegExp(e);var i=e.range,r=i?t.getLines(i.start.row,i.end.row):t.doc.getAllLines(),a=[],s=e.re;if(e.$isMultiLine){var l,A=s.length,c=r.length-A;t:for(var h=s.offset||0;h<=c;h++){for(var d=0;d<A;d++)if(-1==r[h+d].search(s[d]))continue t;var u=r[h],p=r[h+A-1],g=u.length-u.match(s[0])[0].length,f=p.match(s[A-1])[0].length;l&&l.end.row===h&&l.end.column>g||(a.push(l=new o(h,g,h+A-1,f)),A>2&&(h=h+A-2))}}else for(var m=0;m<r.length;m++){var y=n.getMatchOffsets(r[m],s);for(d=0;d<y.length;d++){var b=y[d];a.push(new o(m,b.offset,m,b.offset+b.length))}}if(i){var v=i.start.column,E=i.start.column;for(m=0,d=a.length-1;m<d&&a[m].start.column<v&&a[m].start.row==i.start.row;)m++;for(;m<d&&a[d].end.column>E&&a[d].end.row==i.end.row;)d--;for(a=a.slice(m,d+1),m=0,d=a.length;m<d;m++)a[m].start.row+=i.start.row,a[m].end.row+=i.start.row}return a},this.replace=function(t,e){var i=this.$options,n=this.$assembleRegExp(i);if(i.$isMultiLine)return e;if(n){var r=n.exec(t);if(!r||r[0].length!=t.length)return null;if(e=t.replace(n,e),i.preserveCase){e=e.split("");for(var o=Math.min(t.length,t.length);o--;){var a=t[o];a&&a.toLowerCase()!=a?e[o]=e[o].toUpperCase():e[o]=e[o].toLowerCase()}e=e.join("")}return e}},this.$assembleRegExp=function(t,e){if(t.needle instanceof RegExp)return t.re=t.needle;var i=t.needle;if(!t.needle)return t.re=!1;t.regExp||(i=n.escapeRegExp(i)),t.wholeWord&&(i=function(t,e){function i(t){return/\w/.test(t)||e.regExp?"\\b":""}return i(t[0])+t+i(t[t.length-1])}(i,t));var r=t.caseSensitive?"gm":"gmi";if(t.$isMultiLine=!e&&/[\n\r]/.test(i),t.$isMultiLine)return t.re=this.$assembleMultilineRegExp(i,r);try{var o=new RegExp(i,r)
}catch(t){o=!1}return t.re=o},this.$assembleMultilineRegExp=function(t,e){for(var i=t.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),n=[],r=0;r<i.length;r++)try{n.push(new RegExp(i[r],e))}catch(t){return!1}return n},this.$matchIterator=function(t,e){var i=this.$assembleRegExp(e);if(!i)return!1;var n=1==e.backwards,r=0!=e.skipCurrent,o=e.range,a=e.start;a||(a=o?o[n?"end":"start"]:t.selection.getRange()),a.start&&(a=a[r!=n?"end":"start"]);var s=o?o.start.row:0,l=o?o.end.row:t.getLength()-1;if(n)var A=function(t){var i=a.row;if(!h(i,a.column,t)){for(i--;i>=s;i--)if(h(i,Number.MAX_VALUE,t))return;if(0!=e.wrap)for(i=l,s=a.row;i>=s;i--)if(h(i,Number.MAX_VALUE,t))return}};else A=function(t){var i=a.row;if(!h(i,a.column,t)){for(i+=1;i<=l;i++)if(h(i,0,t))return;if(0!=e.wrap)for(i=s,l=a.row;i<=l;i++)if(h(i,0,t))return}};if(e.$isMultiLine)var c=i.length,h=function(e,r,o){var a=n?e-c+1:e;if(!(a<0)){var s=t.getLine(a),l=s.search(i[0]);if(!(!n&&l<r||-1===l)){for(var A=1;A<c;A++)if(-1==(s=t.getLine(a+A)).search(i[A]))return;var h=s.match(i[c-1])[0].length;if(!(n&&h>r))return!!o(a,l,a+c-1,h)||void 0}}};else if(n)h=function(e,n,r){var o,a=t.getLine(e),s=[],l=0;for(i.lastIndex=0;o=i.exec(a);){var A=o[0].length;if(l=o.index,!A){if(l>=a.length)break;i.lastIndex=l+=1}if(o.index+A>n)break;s.push(o.index,A)}for(var c=s.length-1;c>=0;c-=2){var h=s[c-1];if(r(e,h,e,h+(A=s[c])))return!0}};else h=function(e,n,r){var o,a=t.getLine(e),s=n;for(i.lastIndex=n;o=i.exec(a);){var l=o[0].length;if(r(e,s=o.index,e,s+l))return!0;if(!l&&(i.lastIndex=s+=1,s>=a.length))return!1}};return{forEach:A}}}).call(a.prototype),e.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,i){"use strict";function n(t,e){this.platform=e||(a.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function r(t,e){n.call(this,t,e),this.$singleCommand=!1}var o=t("../lib/keys"),a=t("../lib/useragent"),s=o.KEY_MODS;r.prototype=n.prototype,function(){function t(t){return"object"==typeof t&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),this.commands[t.name]=t,t.bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,e){var i=t&&("string"==typeof t?t:t.name);t=this.commands[i],e||delete this.commands[i];var n=this.commandKeyBinding;for(var r in n){var o=n[r];if(o==t)delete n[r];else if(Array.isArray(o)){var a=o.indexOf(t);-1!=a&&(o.splice(a,1),1==o.length&&(n[r]=o[0]))}}},this.bindKey=function(t,e,i){if("object"==typeof t&&t&&(null==i&&(i=t.position),t=t[this.platform]),t)return"function"==typeof e?this.addCommand({exec:e,bindKey:t,name:e.name||t}):void t.split("|").forEach((function(t){var n="";if(-1!=t.indexOf(" ")){var r=t.split(/\s+/);t=r.pop(),r.forEach((function(t){var e=this.parseKeys(t),i=s[e.hashId]+e.key;n+=(n?" ":"")+i,this._addCommandToBinding(n,"chainKeys")}),this),n+=" "}var o=this.parseKeys(t),a=s[o.hashId]+o.key;this._addCommandToBinding(n+a,e,i)}),this)},this._addCommandToBinding=function(e,i,n){var r,o=this.commandKeyBinding;if(i)if(!o[e]||this.$singleCommand)o[e]=i;else{Array.isArray(o[e])?-1!=(r=o[e].indexOf(i))&&o[e].splice(r,1):o[e]=[o[e]],"number"!=typeof n&&(n=t(i));var a=o[e];for(r=0;r<a.length;r++){if(t(a[r])>n)break}a.splice(r,0,i)}else delete o[e]},this.addCommands=function(t){t&&Object.keys(t).forEach((function(e){var i=t[e];if(i){if("string"==typeof i)return this.bindKey(i,e);"function"==typeof i&&(i={exec:i}),"object"==typeof i&&(i.name||(i.name=e),this.addCommand(i))}}),this)},this.removeCommands=function(t){Object.keys(t).forEach((function(e){this.removeCommand(t[e])}),this)},this.bindKeys=function(t){Object.keys(t).forEach((function(e){this.bindKey(e,t[e])}),this)},this._buildKeyHash=function(t){this.bindKey(t.bindKey,t)},this.parseKeys=function(t){var e=t.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(t){return t})),i=e.pop(),n=o[i];if(o.FUNCTION_KEYS[n])i=o.FUNCTION_KEYS[n].toLowerCase();else{if(!e.length)return{key:i,hashId:-1};if(1==e.length&&"shift"==e[0])return{key:i.toUpperCase(),hashId:-1}}for(var r=0,a=e.length;a--;){var s=o.KEY_MODS[e[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+e[a]+" in "+t),!1;r|=s}return{key:i,hashId:r}},this.findKeyCommand=function(t,e){var i=s[t]+e;return this.commandKeyBinding[i]},this.handleKeyboard=function(t,e,i,n){if(!(n<0)){var r=s[e]+i,o=this.commandKeyBinding[r];return t.$keyChain&&(t.$keyChain+=" "+r,o=this.commandKeyBinding[t.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(t.$keyChain&&(e&&4!=e||1!=i.length?(-1==e||n>0)&&(t.$keyChain=""):t.$keyChain=t.$keyChain.slice(0,-r.length-1)),{command:o}):(t.$keyChain=t.$keyChain||r,{command:"null"})}},this.getStatusText=function(t,e){return e.$keyChain||""}}.call(n.prototype),e.HashHandler=n,e.MultiHashHandler=r})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("../lib/oop"),r=t("../keyboard/hash_handler").MultiHashHandler,o=t("../lib/event_emitter").EventEmitter,a=function(t,e){r.call(this,e,t),this.byName=this.commands,this.setDefaultHandler("exec",(function(t){return t.command.exec(t.editor,t.args||{})}))};n.inherits(a,r),function(){n.implement(this,o),this.exec=function(t,e,i){if(Array.isArray(t)){for(var n=t.length;n--;)if(this.exec(t[n],e,i))return!0;return!1}if("string"==typeof t&&(t=this.commands[t]),!t)return!1;if(e&&e.$readOnly&&!t.readOnly)return!1;if(t.isAvailable&&!t.isAvailable(e))return!1;var r={editor:e,command:t,args:i};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(t){if(!this.$inReplay)return t&&t._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach((function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(t){return t.map((function(t){return"string"!=typeof t[0]&&(t[0]=t[0].name),t[1]||(t=t[0]),t}))}}.call(a.prototype),e.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(t,e,i){"use strict";function n(t,e){return{win:t,mac:e}}var r=t("../lib/lang"),o=t("../config"),a=t("../range").Range;e.commands=[{name:"showSettingsMenu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){o.loadModule("ace/ext/settings_menu",(function(e){e.init(t),t.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:n("Alt-E","F4"),exec:function(t){o.loadModule("ace/ext/error_marker",(function(e){e.showErrorMarker(t,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:n("Alt-Shift-E","Shift-F4"),exec:function(t){o.loadModule("ace/ext/error_marker",(function(e){e.showErrorMarker(t,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:n("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",bindKey:n(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:n("Ctrl-L","Command-L"),exec:function(t){var e=parseInt(prompt("Enter line number:"),10);isNaN(e)||t.gotoLine(e)},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(t){t.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(t){t.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",
bindKey:n("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:n("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:n("Alt-0","Command-Option-0"),exec:function(t){t.session.foldAll(),t.session.unfold(t.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:n("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(t){t.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:n("Alt-K","Ctrl-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){o.loadModule("ace/ext/searchbox",(function(e){e.Search(t)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(t){t.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:n("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(t){t.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(t){t.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:n("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(t){t.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:n("Up","Up|Ctrl-P"),exec:function(t,e){t.navigateUp(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:n("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(t){t.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(t){t.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:n("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(t){t.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:n("Down","Down|Ctrl-N"),exec:function(t,e){t.navigateDown(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(t){t.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:n("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:n("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(t){t.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:n("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(t){t.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:n("Left","Left|Ctrl-B"),exec:function(t,e){t.navigateLeft(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(t){t.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:n("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:n("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(t){t.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:n("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:n("Right","Right|Ctrl-F"),exec:function(t,e){t.navigateRight(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(t){t.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:n(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(t){t.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(t){t.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:n(null,"Option-PageUp"),exec:function(t){t.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(t){t.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:n("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:n("Ctrl-Down",null),exec:function(t){t.renderer.scrollBy(0,2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",bindKey:n("Ctrl-P","Ctrl-P"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:n("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(t){t.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(t){t.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(t){},readOnly:!0},{name:"cut",exec:function(t){var e=t.getSelectionRange();t._emit("cut",e),t.selection.isEmpty()||(t.session.remove(e),t.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(t,e){t.$handlePaste(e)},scrollIntoView:"cursor"},{name:"removeline",bindKey:n("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:n("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",
scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){o.loadModule("ace/ext/searchbox",(function(e){e.Search(t,!0)}))}},{name:"undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:n("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:n("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(t){t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:n("Shift-Delete",null),exec:function(t){if(!t.selection.isEmpty())return!1;t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:n("Alt-Delete","Ctrl-K"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:n("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(t){t.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(t,e){t.insert(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(t,e){t.insert(r.stringRepeat(e.text||"",e.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:n(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:n("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(t){var e=t.selection.getRange();e.start.column=e.end.column=0,e.end.row++,t.selection.setRange(e,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:n(null,null),exec:function(t){for(var e=t.selection.isBackwards(),i=e?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),n=e?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),o=t.session.doc.getLine(i.row).length,s=t.session.doc.getTextRange(t.selection.getRange()).replace(/\n\s*/," ").length,l=t.session.doc.getLine(i.row),A=i.row+1;A<=n.row+1;A++){var c=r.stringTrimLeft(r.stringTrimRight(t.session.doc.getLine(A)));0!==c.length&&(c=" "+c),l+=c}n.row+1<t.session.doc.getLength()-1&&(l+=t.session.doc.getNewLineCharacter()),t.clearSelection(),t.session.doc.replace(new a(i.row,0,n.row+2,0),l),s>0?(t.selection.moveCursorTo(i.row,i.column),t.selection.selectTo(i.row,i.column+s)):(o=t.session.doc.getLine(i.row).length>o?o+1:o,t.selection.moveCursorTo(i.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:n(null,null),exec:function(t){var e=t.session.doc.getLength()-1,i=t.session.doc.getLine(e).length,n=t.selection.rangeList.ranges,r=[];n.length<1&&(n=[t.selection.getRange()]);for(var o=0;o<n.length;o++)o==n.length-1&&(n[o].end.row!==e||n[o].end.column!==i)&&r.push(new a(n[o].end.row,n[o].end.column,e,i)),0===o?(0!==n[o].start.row||0!==n[o].start.column)&&r.push(new a(0,0,n[o].start.row,n[o].start.column)):r.push(new a(n[o-1].end.row,n[o-1].end.column,n[o].start.row,n[o].start.column));t.exitMultiSelectMode(),t.clearSelection();for(o=0;o<r.length;o++)t.selection.addRange(r[o],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(t,e,i){"use strict";t("./lib/fixoldbrowsers");var n=t("./lib/oop"),r=t("./lib/dom"),o=t("./lib/lang"),a=t("./lib/useragent"),s=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,A=t("./mouse/fold_handler").FoldHandler,c=t("./keyboard/keybinding").KeyBinding,h=t("./edit_session").EditSession,d=t("./search").Search,u=t("./range").Range,p=t("./lib/event_emitter").EventEmitter,g=t("./commands/command_manager").CommandManager,f=t("./commands/default_commands").commands,m=t("./config"),y=t("./token_iterator").TokenIterator,b=function(t,e){var i=t.getContainerElement();this.container=i,this.renderer=t,this.id="editor"+ ++b.$uid,this.commands=new g(a.isMac?"mac":"win",f),"object"==typeof document&&(this.textInput=new s(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new A(this)),this.keyBinding=new c(this),this.$blockScrolling=0,this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(t,e){e._$emitInputEvent.schedule(31)})),this.setSession(e||new h("")),m.resetOptions(this),m._signal("editor",this)};b.$uid=0,function(){n.implement(this,p),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(t){if(this.curOp){if(!t||this.curOp.command)return;this.prevOp=this.curOp}t||(this.previousCommand=null,t={}),this.$opResetTimer.schedule(),this.curOp={
command:t.command||{},args:t.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(t){if(this.curOp){if(t&&!1===t.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var e=this.curOp.command;e.name&&this.$blockScrolling>0&&this.$blockScrolling--;var i=e&&e.scrollIntoView;if(i){switch(i){case"center-animate":i="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var n=this.selection.getRange(),r=this.renderer.layerConfig;(n.start.row>=r.lastRow||n.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==i&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(t){if(this.$mergeUndoDeltas){var e=this.prevOp,i=this.$mergeableCommands,n=e.command&&t.command.name==e.command.name;if("insertstring"==t.command.name){var r=t.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(e.args)),this.mergeNextCommand=!0}else n=n&&-1!==i.indexOf(t.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(t.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,e){if(t&&"string"==typeof t){this.$keybindingId=t;var i=this;m.loadModule(["keybinding",t],(function(n){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(n&&n.handler),e&&e()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),e&&e()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(t){if(this.session!=t){this.curOp&&this.endOperation(),this.curOp={};var e=this.session;if(e){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var i=this.session.getSelection();i.off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)}this.session=t,t?(this.$onDocumentChange=this.onDocumentChange.bind(this),t.on("change",this.$onDocumentChange),this.renderer.setSession(t),this.$onChangeMode=this.onChangeMode.bind(this),t.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),t.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),t.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),t.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),t.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),t.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=t.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(t)),this._signal("changeSession",{session:t,oldSession:e}),this.curOp=null,e&&e._signal("changeEditor",{oldEditor:this}),t&&t._signal("changeEditor",{editor:this}),t&&t.bgTokenizer&&t.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(t,e){return this.session.doc.setValue(t),e?1==e?this.navigateFileEnd():-1==e&&this.navigateFileStart():this.selectAll(),t},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(t){this.renderer.onResize(t)},this.setTheme=function(t,e){this.renderer.setTheme(t,e)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(t){this.renderer.setStyle(t)},this.unsetStyle=function(t){this.renderer.unsetStyle(t)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container,"fontSize")},this.setFontSize=function(t){this.setOption("fontSize",t)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var t=this;this.$highlightPending=!0,setTimeout((function(){t.$highlightPending=!1;var e=t.session;if(e&&e.bgTokenizer){var i=e.findMatchingBracket(t.getCursorPosition());if(i)var n=new u(i.row,i.column,i.row,i.column+1);else if(e.$mode.getMatching)n=e.$mode.getMatching(t.session);n&&(e.$bracketHighlight=e.addMarker(n,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var t=this;this.$highlightTagPending=!0,setTimeout((function(){t.$highlightTagPending=!1;var e=t.session;if(e&&e.bgTokenizer){var i=t.getCursorPosition(),n=new y(t.session,i.row,i.column),r=n.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=n.stepForward())){var o=r.value,a=0,s=n.stepBackward();if("<"==s.value)do{s=r,(r=n.stepForward())&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--)}while(r&&a>=0);else{do{r=s,s=n.stepBackward(),r&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--)}while(s&&a<=0);n.stepForward()}if(!r)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var l=n.getCurrentTokenRow(),A=n.getCurrentTokenColumn(),c=new u(l,A,l,A+r.value.length),h=e.$backMarkers[e.$tagHighlight];e.$tagHighlight&&null!=h&&0!==c.compareRange(h.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),c&&!e.$tagHighlight&&(e.$tagHighlight=e.addMarker(c,"ace_bracket","text"))}}}),50)}},this.focus=function(){var t=this;setTimeout((function(){t.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(t){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",t))},this.onBlur=function(t){
this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",t))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(t){var e=this.session.$useWrapMode,i=t.start.row==t.end.row?t.end.row:1/0;this.renderer.updateLines(t.start.row,i,e),this._signal("change",t),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(t){var e=t.data;this.renderer.updateLines(e.first,e.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(m.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var t,e=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(t=this.getCursorPosition()),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(t=!1)),e.$highlightLineMarker&&!t)e.removeMarker(e.$highlightLineMarker.id),e.$highlightLineMarker=null;else if(!e.$highlightLineMarker&&t){var i=new u(t.row,t.column,t.row,1/0);i.id=e.addMarker(i,"ace_active-line","screenLine"),e.$highlightLineMarker=i}else t&&(e.$highlightLineMarker.start.row=t.row,e.$highlightLineMarker.end.row=t.row,e.$highlightLineMarker.start.column=t.column,e._signal("changeBackMarker"))},this.onSelectionChange=function(t){var e=this.session;if(e.$selectionMarker&&e.removeMarker(e.$selectionMarker),e.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var i=this.selection.getRange(),n=this.getSelectionStyle();e.$selectionMarker=e.addMarker(i,"ace_selection",n)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var t=this.session,e=this.getSelectionRange();if(!e.isEmpty()&&!e.isMultiLine()){var i=e.start.column-1,n=e.end.column+1,r=t.getLine(e.start.row),o=r.length,a=r.substring(Math.max(i,0),Math.min(n,o));if(!(i>=0&&/^[\w\d]/.test(a)||n<=o&&/[\w\d]$/.test(a)))if(a=r.substring(e.start.column,e.end.column),/^[\w\d]+$/.test(a))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:a})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(t){this.renderer.updateText(),this._emit("changeMode",t)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var t=this.getSelectedText();return this._signal("copy",t),t},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(t,e){var i={text:t,event:e};this.commands.exec("paste",this,i)},this.$handlePaste=function(t){"string"==typeof t&&(t={text:t}),this._signal("paste",t);var e=t.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(e);else{var i=e.split(/\r\n|\r|\n/),n=this.selection.rangeList.ranges;if(i.length>n.length||i.length<2||!i[1])return this.commands.exec("insertstring",this,e);for(var r=n.length;r--;){var o=n[r];o.isEmpty()||this.session.remove(o),this.session.insert(o.start,i[r])}}},this.execCommand=function(t,e){return this.commands.exec(t,this,e)},this.insert=function(t,e){var i=this.session,n=i.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!e){var o=n.transformAction(i.getState(r.row),"insertion",this,i,t);o&&(t!==o.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),t=o.text)}if("\t"==t&&(t=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==t.indexOf("\n")){(a=new u.fromPoints(r,r)).end.column+=t.length,this.session.remove(a)}}else{var a=this.getSelectionRange();r=this.session.remove(a),this.clearSelection()}if("\n"==t||"\r\n"==t){var s=i.getLine(r.row);if(r.column>s.search(/\S|$/)){var l=s.substr(r.column).search(/\S|$/);i.doc.removeInLine(r.row,r.column,r.column+l)}}this.clearSelection();var A=r.column,c=i.getState(r.row),h=(s=i.getLine(r.row),n.checkOutdent(c,s,t));i.insert(r,t);if(o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new u(r.row,A+o.selection[0],r.row,A+o.selection[1])):this.selection.setSelectionRange(new u(r.row+o.selection[0],o.selection[1],r.row+o.selection[2],o.selection[3]))),i.getDocument().isNewLine(t)){var d=n.getNextLineIndent(c,s.slice(0,r.column),i.getTabString());i.insert({row:r.row+1,column:0},d)}h&&n.autoOutdent(c,i,r.row)},this.onTextInput=function(t){this.keyBinding.onTextInput(t)},this.onCommandKey=function(t,e,i){this.keyBinding.onCommandKey(t,e,i)},this.setOverwrite=function(t){this.session.setOverwrite(t)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(t){this.setOption("scrollSpeed",t)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(t){this.setOption("dragDelay",t)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(t){this.setOption("selectionStyle",t)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(t){this.setOption("highlightActiveLine",t)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(t){this.setOption("highlightSelectedWord",t)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(t){this.renderer.setAnimatedScroll(t)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(t){this.renderer.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(t){this.renderer.setDisplayIndentGuides(t)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(t){this.renderer.setShowPrintMargin(t)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(t){this.renderer.setPrintMarginColumn(t)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(t){this.setOption("readOnly",t)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(t){this.setOption("behavioursEnabled",t)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(t){this.setOption("wrapBehavioursEnabled",t)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(t){this.setOption("showFoldWidgets",t)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(t){
this.selection.isEmpty()&&("left"==t?this.selection.selectLeft():this.selection.selectRight());var e=this.getSelectionRange();if(this.getBehavioursEnabled()){var i=this.session,n=i.getState(e.start.row),r=i.getMode().transformAction(n,"deletion",this,i,e);if(0===e.end.column){var o=i.getTextRange(e);if("\n"==o[o.length-1]){var a=i.getLine(e.end.row);/^\s+$/.test(a)&&(e.end.column=a.length)}}r&&(e=r)}this.session.remove(e),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var t=this.getSelectionRange();t.start.column==t.end.column&&t.start.row==t.end.row&&(t.end.column=0,t.end.row++),this.session.remove(t),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var t=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(t)},this.transposeLetters=function(){if(this.selection.isEmpty()){var t=this.getCursorPosition(),e=t.column;if(0!==e){var i,n,r=this.session.getLine(t.row);e<r.length?(i=r.charAt(e)+r.charAt(e-1),n=new u(t.row,e-1,t.row,e+1)):(i=r.charAt(e-1)+r.charAt(e-2),n=new u(t.row,e-2,t.row,e)),this.session.replace(n,i),this.session.selection.moveToPosition(n.end)}}},this.toLowerCase=function(){var t=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var e=this.getSelectionRange(),i=this.session.getTextRange(e);this.session.replace(e,i.toLowerCase()),this.selection.setSelectionRange(t)},this.toUpperCase=function(){var t=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var e=this.getSelectionRange(),i=this.session.getTextRange(e);this.session.replace(e,i.toUpperCase()),this.selection.setSelectionRange(t)},this.indent=function(){var t=this.session,e=this.getSelectionRange();if(!(e.start.row<e.end.row)){if(e.start.column<e.end.column){var i=t.getTextRange(e);if(!/^\s+$/.test(i)){c=this.$getSelectedRows();return void t.indentRows(c.first,c.last,"\t")}}var n=t.getLine(e.start.row),r=e.start,a=t.getTabSize(),s=t.documentToScreenColumn(r.row,r.column);if(this.session.getUseSoftTabs())var l=a-s%a,A=o.stringRepeat(" ",l);else{for(l=s%a;" "==n[e.start.column-1]&&l;)e.start.column--,l--;this.selection.setSelectionRange(e),A="\t"}return this.insert(A)}var c=this.$getSelectedRows();t.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var t=this.$getSelectedRows();this.session.indentRows(t.first,t.last,"\t")},this.blockOutdent=function(){var t=this.session.getSelection();this.session.outdentRows(t.getRange())},this.sortLines=function(){var t=this.$getSelectedRows(),e=this.session,i=[];for(r=t.first;r<=t.last;r++)i.push(e.getLine(r));i.sort((function(t,e){return t.toLowerCase()<e.toLowerCase()?-1:t.toLowerCase()>e.toLowerCase()?1:0}));for(var n=new u(0,0,0,0),r=t.first;r<=t.last;r++){var o=e.getLine(r);n.start.row=r,n.end.row=r,n.end.column=o.length,e.replace(n,i[r-t.first])}},this.toggleCommentLines=function(){var t=this.session.getState(this.getCursorPosition().row),e=this.$getSelectedRows();this.session.getMode().toggleCommentLines(t,this.session,e.first,e.last)},this.toggleBlockComment=function(){var t=this.getCursorPosition(),e=this.session.getState(t.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(e,this.session,i,t)},this.getNumberAt=function(t,e){var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g;i.lastIndex=0;for(var n=this.session.getLine(t);i.lastIndex<e;){var r=i.exec(n);if(r.index<=e&&r.index+r[0].length>=e)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(t){var e=this.selection.getCursor().row,i=this.selection.getCursor().column,n=new u(e,i-1,e,i),r=this.session.getTextRange(n);if(!isNaN(parseFloat(r))&&isFinite(r)){var o=this.getNumberAt(e,i);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&i<a?t*=Math.pow(10,o.end-i-1):t*=Math.pow(10,o.end-i),l+=t;var A=(l/=Math.pow(10,s)).toFixed(s),c=new u(e,o.start,e,o.end);this.session.replace(c,A),this.moveCursorTo(e,Math.max(o.start+1,i+A.length-o.value.length))}}},this.removeLines=function(){var t=this.$getSelectedRows();this.session.removeFullLines(t.first,t.last),this.clearSelection()},this.duplicateSelection=function(){var t=this.selection,e=this.session,i=t.getRange(),n=t.isBackwards();if(i.isEmpty()){var r=i.start.row;e.duplicateLines(r,r)}else{var o=n?i.start:i.end,a=e.insert(o,e.getTextRange(i),!1);i.start=o,i.end=a,t.setSelectionRange(i,n)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(t,e,i){return this.session.moveText(t,e,i)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(t,e){var i,n,r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var o=r.toOrientedRange();i=this.$getSelectedRows(o),n=this.session.$moveLines(i.first,i.last,e?0:t),e&&-1==t&&(n=0),o.moveBy(n,0),r.fromOrientedRange(o)}else{var a=r.rangeList.ranges;r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,l=0,A=a.length,c=0;c<A;c++){var h=c;a[c].moveBy(s,0);for(var d=(i=this.$getSelectedRows(a[c])).first,u=i.last;++c<A;){l&&a[c].moveBy(l,0);var p=this.$getSelectedRows(a[c]);if(e&&p.first!=u)break;if(!e&&p.first>u+1)break;u=p.last}for(c--,s=this.session.$moveLines(d,u,e?0:t),e&&-1==t&&(h=c+1);h<=c;)a[h].moveBy(s,0),h++;e||(s=0),l+=s}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(t){return t=(t||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(t.start.row),last:this.session.getRowFoldEnd(t.end.row)}},this.onCompositionStart=function(t){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(t){this.renderer.setCompositionText(t)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(t){return t>=this.getFirstVisibleRow()&&t<=this.getLastVisibleRow()},this.isRowFullyVisible=function(t){return t>=this.renderer.getFirstFullyVisibleRow()&&t<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(t,e){var i=this.renderer,n=this.renderer.layerConfig,r=t*Math.floor(n.height/n.lineHeight);this.$blockScrolling++,!0===e?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===e&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),this.$blockScrolling--;var o=i.scrollTop;i.scrollBy(0,r*n.lineHeight),null!=e&&i.scrollCursorIntoView(null,.5),i.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(t){this.renderer.scrollToRow(t)},this.scrollToLine=function(t,e,i,n){this.renderer.scrollToLine(t,e,i,n)},this.centerSelection=function(){var t=this.getSelectionRange(),e={row:Math.floor(t.start.row+(t.end.row-t.start.row)/2),column:Math.floor(t.start.column+(t.end.column-t.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},
this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(t,e){this.selection.moveCursorTo(t,e)},this.moveCursorToPosition=function(t){this.selection.moveCursorToPosition(t)},this.jumpToMatching=function(t,e){var i=this.getCursorPosition(),n=new y(this.session,i.row,i.column),r=n.getCurrentToken(),o=r||n.stepForward();if(o){var a,s,l=!1,A={},c=i.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;c<o.value.length&&!l;c++)if(h[o.value[c]])switch(s=h[o.value[c]]+"."+o.type.replace("rparen","lparen"),isNaN(A[s])&&(A[s]=0),o.value[c]){case"(":case"[":case"{":A[s]++;break;case")":case"]":case"}":A[s]--,-1===A[s]&&(a="bracket",l=!0)}}else o&&-1!==o.type.indexOf("tag-name")&&(isNaN(A[o.value])&&(A[o.value]=0),"<"===r.value?A[o.value]++:"</"===r.value&&A[o.value]--,-1===A[o.value]&&(a="tag",l=!0));l||(r=o,o=n.stepForward(),c=0)}while(o&&!l);if(a){var d,p;if("bracket"===a)(d=this.session.getBracketRange(i))||(p=(d=new u(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+c-1,n.getCurrentTokenRow(),n.getCurrentTokenColumn()+c-1)).start,(e||p.row===i.row&&Math.abs(p.column-i.column)<2)&&(d=this.session.getBracketRange(p)));else if("tag"===a){if(!o||-1===o.type.indexOf("tag-name"))return;var g=o.value;if(0===(d=new u(n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2,n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2)).compare(i.row,i.column)){l=!1;do{o=r,(r=n.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&d.setEnd(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===r.value?A[g]++:"</"===r.value&&A[g]--,0===A[g]&&(l=!0)))}while(r&&!l)}o&&o.type.indexOf("tag-name")&&((p=d.start).row==i.row&&Math.abs(p.column-i.column)<2&&(p=d.end))}(p=d&&d.cursor||p)&&(t?d&&e?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(t,e,i){this.selection.clearSelection(),this.session.unfold({row:t-1,column:e||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(t-1,e||0),this.$blockScrolling-=1,this.isRowFullyVisible(t-1)||this.scrollToLine(t-1,!0,i)},this.navigateTo=function(t,e){this.selection.moveTo(t,e)},this.navigateUp=function(t){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var e=this.selection.anchor.getPosition();return this.moveCursorToPosition(e)}this.selection.clearSelection(),this.selection.moveCursorBy(-t||-1,0)},this.navigateDown=function(t){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var e=this.selection.anchor.getPosition();return this.moveCursorToPosition(e)}this.selection.clearSelection(),this.selection.moveCursorBy(t||1,0)},this.navigateLeft=function(t){if(this.selection.isEmpty())for(t=t||1;t--;)this.selection.moveCursorLeft();else{var e=this.getSelectionRange().start;this.moveCursorToPosition(e)}this.clearSelection()},this.navigateRight=function(t){if(this.selection.isEmpty())for(t=t||1;t--;)this.selection.moveCursorRight();else{var e=this.getSelectionRange().end;this.moveCursorToPosition(e)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(t,e){e&&this.$search.set(e);var i=this.$search.find(this.session),n=0;return i?(this.$tryReplace(i,t)&&(n=1),null!==i&&(this.selection.setSelectionRange(i),this.renderer.scrollSelectionIntoView(i.start,i.end)),n):n},this.replaceAll=function(t,e){e&&this.$search.set(e);var i=this.$search.findAll(this.session),n=0;if(!i.length)return n;this.$blockScrolling+=1;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=i.length-1;o>=0;--o)this.$tryReplace(i[o],t)&&n++;return this.selection.setSelectionRange(r),this.$blockScrolling-=1,n},this.$tryReplace=function(t,e){var i=this.session.getTextRange(t);return null!==(e=this.$search.replace(i,e))?(t.end=this.session.replace(t,e),t):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(t,e,i){e||(e={}),"string"==typeof t||t instanceof RegExp?e.needle=t:"object"==typeof t&&n.mixin(e,t);var r=this.selection.getRange();null==e.needle&&((t=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),t=this.session.getTextRange(r)),this.$search.set({needle:t})),this.$search.set(e),e.start||this.$search.set({start:r});var o=this.$search.find(this.session);return e.preventScroll?o:o?(this.revealRange(o,i),o):(e.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(t,e){this.find({skipCurrent:!0,backwards:!1},t,e)},this.findPrevious=function(t,e){this.find(t,{skipCurrent:!0,backwards:!0},e)},this.revealRange=function(t,e){this.$blockScrolling+=1,this.session.unfold(t),this.selection.setSelectionRange(t),this.$blockScrolling-=1;var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(t.start,t.end,.5),!1!==e&&this.renderer.animateScrolling(i)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(t){if(t){var e,i=this,n=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var o=this.on("changeSelection",(function(){n=!0})),a=this.renderer.on("beforeRender",(function(){n&&(e=i.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(n&&e&&(i.isFocused()||i.searchBox&&i.searchBox.isFocused())){var t=i.renderer,o=t.$cursorLayer.$pixelPos,a=t.layerConfig,s=o.top-a.offset;null!=(n=o.top>=0&&s+e.top<0||!(o.top<a.height&&o.top+e.top+a.lineHeight>window.innerHeight)&&null)&&(r.style.top=s+"px",r.style.left=o.left+"px",r.style.height=a.lineHeight+"px",r.scrollIntoView(n)),n=e=null}}));this.setAutoScrollEditorIntoView=function(t){t||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var t=this.$cursorStyle||"ace",e=this.renderer.$cursorLayer;e&&(e.setSmoothBlinking(/smooth/.test(t)),e.isBlinking=!this.$readOnly&&"wide"!=t,r.setCssClass(e.element,"ace_slim-cursors",/slim/.test(t)))}}.call(b.prototype),m.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(t){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:t})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(t){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(t){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(t){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{
set:function(t){this.setAutoScrollEditorIntoView(t)}},keyboardHandler:{set:function(t){this.setKeyboardHandler(t)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),e.Editor=b})),ace.define("ace/undomanager",["require","exports","module"],(function(t,e,i){"use strict";var n=function(){this.reset()};(function(){function t(t){return{action:t.action,start:t.start,end:t.end,lines:1==t.lines.length?null:t.lines,text:1==t.lines.length?t.lines[0]:null}}function e(t){return{action:t.action,start:t.start,end:t.end,lines:t.lines||[t.text]}}function i(t,e){for(var i=new Array(t.length),n=0;n<t.length;n++){for(var r=t[n],o={group:r.group,deltas:new Array(r.length)},a=0;a<r.deltas.length;a++){var s=r.deltas[a];o.deltas[a]=e(s)}i[n]=o}return i}this.execute=function(t){var e=t.args[0];this.$doc=t.args[1],t.merge&&this.hasUndo()&&(this.dirtyCounter--,e=this.$undoStack.pop().concat(e)),this.$undoStack.push(e),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(t){var e=this.$undoStack.pop(),i=null;return e&&(i=this.$doc.undoChanges(e,t),this.$redoStack.push(e),this.dirtyCounter--),i},this.redo=function(t){var e=this.$redoStack.pop(),i=null;return e&&(i=this.$doc.redoChanges(this.$deserializeDeltas(e),t),this.$undoStack.push(e),this.dirtyCounter++),i},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(e){return i(e,t)},this.$deserializeDeltas=function(t){return i(t,e)}}).call(n.prototype),e.UndoManager=n})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("../lib/dom"),r=t("../lib/oop"),o=t("../lib/lang"),a=t("../lib/event_emitter").EventEmitter,s=function(t){this.element=n.createElement("div"),this.element.className="ace_layer ace_gutter-layer",t.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){r.implement(this,a),this.setSession=function(t){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=t,t&&t.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(t,e){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(t,e)},this.removeGutterDecoration=function(t,e){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(t,e)},this.setAnnotations=function(t){this.$annotations=[];for(var e=0;e<t.length;e++){var i=t[e],n=i.row,r=this.$annotations[n];r||(r=this.$annotations[n]={text:[]});var a=i.text;a=a?o.escapeHTML(a):i.html||"",-1===r.text.indexOf(a)&&r.text.push(a);var s=i.type;"error"==s?r.className=" ace_error":"warning"==s&&" ace_error"!=r.className?r.className=" ace_warning":"info"==s&&!r.className&&(r.className=" ace_info")}},this.$updateAnnotations=function(t){if(this.$annotations.length){var e=t.start.row,i=t.end.row-e;if(0!==i)if("remove"==t.action)this.$annotations.splice(e,i+1,null);else{var n=new Array(i+1);n.unshift(e,1),this.$annotations.splice.apply(this.$annotations,n)}}},this.update=function(t){for(var e=this.session,i=t.firstRow,r=Math.min(t.lastRow+t.gutterOffset,e.getLength()-1),o=e.getNextFoldLine(i),a=o?o.start.row:1/0,s=this.$showFoldWidgets&&e.foldWidgets,l=e.$breakpoints,A=e.$decorations,c=e.$firstLineNumber,h=0,d=e.gutterRenderer||this.$renderer,u=null,p=-1,g=i;;){if(g>a&&(g=o.end.row+1,a=(o=e.getNextFoldLine(g,o))?o.start.row:1/0),g>r){for(;this.$cells.length>p+1;)u=this.$cells.pop(),this.element.removeChild(u.element);break}(u=this.$cells[++p])||((u={element:null,textNode:null,foldWidget:null}).element=n.createElement("div"),u.textNode=document.createTextNode(""),u.element.appendChild(u.textNode),this.element.appendChild(u.element),this.$cells[p]=u);var f="ace_gutter-cell ";if(l[g]&&(f+=l[g]),A[g]&&(f+=A[g]),this.$annotations[g]&&(f+=this.$annotations[g].className),u.element.className!=f&&(u.element.className=f),(y=e.getRowLength(g)*t.lineHeight+"px")!=u.element.style.height&&(u.element.style.height=y),s){var m=s[g];null==m&&(m=s[g]=e.getFoldWidget(g))}if(m){u.foldWidget||(u.foldWidget=n.createElement("span"),u.element.appendChild(u.foldWidget));f="ace_fold-widget ace_"+m;"start"==m&&g==a&&g<o.end.row?f+=" ace_closed":f+=" ace_open",u.foldWidget.className!=f&&(u.foldWidget.className=f);var y=t.lineHeight+"px";u.foldWidget.style.height!=y&&(u.foldWidget.style.height=y)}else u.foldWidget&&(u.element.removeChild(u.foldWidget),u.foldWidget=null);var b=h=d?d.getText(e,g):g+c;b!==u.textNode.data&&(u.textNode.data=b),g++}this.element.style.height=t.minHeight+"px",(this.$fixedWidth||e.$useWrapMode)&&(h=e.getLength()+c);var v=d?d.getWidth(e,h,t):h.toString().length*t.characterWidth,E=this.$padding||this.$computePadding();(v+=E.left+E.right)!==this.gutterWidth&&!isNaN(v)&&(this.gutterWidth=v,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",v))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(t){this.$renderer=!t&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(t){t?n.addCssClass(this.element,"ace_folding-enabled"):n.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=t,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var t=n.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(t.paddingLeft)+1||0,this.$padding.right=parseInt(t.paddingRight)||0,this.$padding},this.getRegion=function(t){var e=this.$padding||this.$computePadding(),i=this.element.getBoundingClientRect();return t.x<e.left+i.left?"markers":this.$showFoldWidgets&&t.x>i.right-e.right?"foldWidgets":void 0}}).call(s.prototype),e.Gutter=s})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("../range").Range,r=t("../lib/dom"),o=function(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",t.appendChild(this.element)};(function(){function t(t,e,i,n){return(t?1:0)|(e?2:0)|(i?4:0)|(n?8:0)}this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setMarkers=function(t){this.markers=t},this.update=function(t){if(t=t||this.config){this.config=t;var e=[];for(var i in this.markers){var n=this.markers[i];if(n.range){var r=n.range.clipRows(t.firstRow,t.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),n.renderer){var o=this.$getTop(r.start.row,t),a=this.$padding+r.start.column*t.characterWidth;n.renderer(e,r,a,o,t)
}else"fullLine"==n.type?this.drawFullLineMarker(e,r,n.clazz,t):"screenLine"==n.type?this.drawScreenLineMarker(e,r,n.clazz,t):r.isMultiLine()?"text"==n.type?this.drawTextMarker(e,r,n.clazz,t):this.drawMultiLineMarker(e,r,n.clazz,t):this.drawSingleLineMarker(e,r,n.clazz+" ace_start ace_br15",t)}else n.update(e,this,this.session,t)}this.element.innerHTML=e.join("")}},this.$getTop=function(t,e){return(t-e.firstRowScreen)*e.lineHeight},this.drawTextMarker=function(e,i,r,o,a){for(var s=this.session,l=i.start.row,A=i.end.row,c=l,h=0,d=0,u=s.getScreenLastRowColumn(c),p=new n(c,i.start.column,c,d);c<=A;c++)p.start.row=p.end.row=c,p.start.column=c==l?i.start.column:s.getRowWrapIndent(c),p.end.column=u,h=d,d=u,u=c+1<A?s.getScreenLastRowColumn(c+1):c==A?0:i.end.column,this.drawSingleLineMarker(e,p,r+(c==l?" ace_start":"")+" ace_br"+t(c==l||c==l+1&&i.start.column,h<d,d>u,c==A),o,c==A?0:1,a)},this.drawMultiLineMarker=function(t,e,i,n,r){var o=this.$padding,a=n.lineHeight,s=this.$getTop(e.start.row,n),l=o+e.start.column*n.characterWidth;r=r||"",t.push("<div class='",i," ace_br1 ace_start' style='","height:",a,"px;","right:0;","top:",s,"px;","left:",l,"px;",r,"'></div>"),s=this.$getTop(e.end.row,n);var A=e.end.column*n.characterWidth;if(t.push("<div class='",i," ace_br12' style='","height:",a,"px;","width:",A,"px;","top:",s,"px;","left:",o,"px;",r,"'></div>"),!((a=(e.end.row-e.start.row-1)*n.lineHeight)<=0)){s=this.$getTop(e.start.row+1,n);var c=(e.start.column?1:0)|(e.end.column?0:8);t.push("<div class='",i,c?" ace_br"+c:"","' style='","height:",a,"px;","right:0;","top:",s,"px;","left:",o,"px;",r,"'></div>")}},this.drawSingleLineMarker=function(t,e,i,n,r,o){var a=n.lineHeight,s=(e.end.column+(r||0)-e.start.column)*n.characterWidth,l=this.$getTop(e.start.row,n),A=this.$padding+e.start.column*n.characterWidth;t.push("<div class='",i,"' style='","height:",a,"px;","width:",s,"px;","top:",l,"px;","left:",A,"px;",o||"","'></div>")},this.drawFullLineMarker=function(t,e,i,n,r){var o=this.$getTop(e.start.row,n),a=n.lineHeight;e.start.row!=e.end.row&&(a+=this.$getTop(e.end.row,n)-o),t.push("<div class='",i,"' style='","height:",a,"px;","top:",o,"px;","left:0;right:0;",r||"","'></div>")},this.drawScreenLineMarker=function(t,e,i,n,r){var o=this.$getTop(e.start.row,n),a=n.lineHeight;t.push("<div class='",i,"' style='","height:",a,"px;","top:",o,"px;","left:0;right:0;",r||"","'></div>")}}).call(o.prototype),e.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("../lib/oop"),r=t("../lib/dom"),o=t("../lib/lang"),a=(t("../lib/useragent"),t("../lib/event_emitter").EventEmitter),s=function(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){n.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var t="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(t){this.$padding=t,this.element.style.padding="0 "+t+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",function(t){this._signal("changeCharacterSize",t)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(t){this.session=t,t&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(t){return this.showInvisibles!=t&&(this.showInvisibles=t,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(t){return this.displayIndentGuides!=t&&(this.displayIndentGuides=t,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var e=this.$tabStrings=[0],i=1;i<t+1;i++)this.showInvisibles?e.push("<span class='ace_invisible ace_invisible_tab'>"+o.stringRepeat(this.TAB_CHAR,i)+"</span>"):e.push(o.stringRepeat(" ",i));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var n="ace_indent-guide",r="",a="";if(this.showInvisibles){n+=" ace_invisible",r=" ace_invisible_space",a=" ace_invisible_tab";var s=o.stringRepeat(this.SPACE_CHAR,this.tabSize),l=o.stringRepeat(this.TAB_CHAR,this.tabSize)}else l=s=o.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+n+r+"'>"+s+"</span>",this.$tabStrings["\t"]="<span class='"+n+a+"'>"+l+"</span>"}},this.updateLines=function(t,e,i){(this.config.lastRow!=t.lastRow||this.config.firstRow!=t.firstRow)&&this.scrollLines(t),this.config=t;for(var n=Math.max(e,t.firstRow),r=Math.min(i,t.lastRow),o=this.element.childNodes,a=0,s=t.firstRow;s<n;s++){if(l=this.session.getFoldLine(s)){if(l.containsRow(n)){n=l.start.row;break}s=l.end.row}a++}s=n;for(var l,A=(l=this.session.getNextFoldLine(s))?l.start.row:1/0;s>A&&(s=l.end.row+1,A=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>r);){var c=o[a++];if(c){var h=[];this.$renderLine(h,s,!this.$useLineGroups(),s==A&&l),c.style.height=t.lineHeight*this.session.getRowLength(s)+"px",c.innerHTML=h.join("")}s++}},this.scrollLines=function(t){var e=this.config;if(this.config=t,!e||e.lastRow<t.firstRow)return this.update(t);if(t.lastRow<e.firstRow)return this.update(t);var i=this.element;if(e.firstRow<t.firstRow)for(var n=this.session.getFoldedRowCount(e.firstRow,t.firstRow-1);n>0;n--)i.removeChild(i.firstChild);if(e.lastRow>t.lastRow)for(n=this.session.getFoldedRowCount(t.lastRow+1,e.lastRow);n>0;n--)i.removeChild(i.lastChild);if(t.firstRow<e.firstRow){var r=this.$renderLinesFragment(t,t.firstRow,e.firstRow-1);i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r)}if(t.lastRow>e.lastRow){r=this.$renderLinesFragment(t,e.lastRow+1,t.lastRow);i.appendChild(r)}},this.$renderLinesFragment=function(t,e,i){for(var n=this.element.ownerDocument.createDocumentFragment(),o=e,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;o>s&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(o>i);){var l=r.createElement("div"),A=[];if(this.$renderLine(A,o,!1,o==s&&a),l.innerHTML=A.join(""),this.$useLineGroups())l.className="ace_line_group",n.appendChild(l),l.style.height=t.lineHeight*this.session.getRowLength(o)+"px";else for(;l.firstChild;)n.appendChild(l.firstChild);o++}return n},this.update=function(t){this.config=t;for(var e=[],i=t.firstRow,n=t.lastRow,r=i,o=this.session.getNextFoldLine(r),a=o?o.start.row:1/0;r>a&&(r=o.end.row+1,a=(o=this.session.getNextFoldLine(r,o))?o.start.row:1/0),!(r>n);)this.$useLineGroups()&&e.push("<div class='ace_line_group' style='height:",t.lineHeight*this.session.getRowLength(r),"px'>"),this.$renderLine(e,r,!1,r==a&&o),this.$useLineGroups()&&e.push("</div>"),r++;this.element.innerHTML=e.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(t,e,i,n){var r=this,a=n.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,(function(t,i,n,a,s){if(i)return r.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+o.stringRepeat(r.SPACE_CHAR,t.length)+"</span>":t;if("&"==t)return"&#38;";if("<"==t)return"&#60;"
;if(">"==t)return"&#62;";if("\t"==t){var l=r.session.getScreenTabSize(e+a);return e+=l-1,r.$tabStrings[l]}if("　"==t){var A=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",c=r.showInvisibles?r.SPACE_CHAR:"";return e+=1,"<span class='"+A+"' style='width:"+2*r.config.characterWidth+"px'>"+c+"</span>"}return n?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+r.SPACE_CHAR+"</span>":(e+=1,"<span class='ace_cjk' style='width:"+2*r.config.characterWidth+"px'>"+t+"</span>")}));if(this.$textToken[i.type])t.push(a);else{var s="ace_"+i.type.replace(/\./g," ace_"),l="";"fold"==i.type&&(l=" style='width:"+i.value.length*this.config.characterWidth+"px;' "),t.push("<span class='",s,"'",l,">",a,"</span>")}return e+n.length},this.renderIndentGuide=function(t,e,i){var n=e.search(this.$indentGuideRe);return n<=0||n>=i?e:" "==e[0]?(n-=n%this.tabSize,t.push(o.stringRepeat(this.$tabStrings[" "],n/this.tabSize)),e.substr(n)):"\t"==e[0]?(t.push(o.stringRepeat(this.$tabStrings["\t"],n)),e.substr(n)):e},this.$renderWrappedLine=function(t,e,i,n){for(var r=0,a=0,s=i[0],l=0,A=0;A<e.length;A++){var c=e[A],h=c.value;if(0==A&&this.displayIndentGuides){if(r=h.length,!(h=this.renderIndentGuide(t,h,s)))continue;r-=h.length}if(r+h.length<s)l=this.$renderToken(t,l,c,h),r+=h.length;else{for(;r+h.length>=s;)l=this.$renderToken(t,l,c,h.substring(0,s-r)),h=h.substring(s-r),r=s,n||t.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),t.push(o.stringRepeat(" ",i.indent)),l=0,s=i[++a]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,l=this.$renderToken(t,l,c,h))}}},this.$renderSimpleLine=function(t,e){var i=0,n=e[0],r=n.value;this.displayIndentGuides&&(r=this.renderIndentGuide(t,r)),r&&(i=this.$renderToken(t,i,n,r));for(var o=1;o<e.length;o++)r=(n=e[o]).value,i=this.$renderToken(t,i,n,r)},this.$renderLine=function(t,e,i,n){if(!n&&0!=n&&(n=this.session.getFoldLine(e)),n)var r=this.$getFoldLineTokens(e,n);else r=this.session.getTokens(e);if(i||t.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(e)),"px'>"),r.length){var o=this.session.getRowSplitData(e);o&&o.length?this.$renderWrappedLine(t,r,o,i):this.$renderSimpleLine(t,r)}this.showInvisibles&&(n&&(e=n.end.row),t.push("<span class='ace_invisible ace_invisible_eol'>",e==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),i||t.push("</div>")},this.$getFoldLineTokens=function(t,e){var i=this.session,n=[],r=i.getTokens(t);return e.walk((function(t,e,o,a,s){null!=t?n.push({type:"fold",value:t}):(s&&(r=i.getTokens(e)),r.length&&function(t,e,i){for(var r=0,o=0;o+t[r].value.length<e;)if(o+=t[r].value.length,++r==t.length)return;for(o!=e&&((a=t[r].value.substring(e-o)).length>i-e&&(a=a.substring(0,i-e)),n.push({type:t[r].type,value:a}),o=e+a.length,r+=1);o<i&&r<t.length;){var a;(a=t[r].value).length+o>i?n.push({type:t[r].type,value:a.substring(0,i-o)}):n.push(t[r]),o+=a.length,r+=1}}(r,a,o))}),e.end.row,this.session.getLine(e.end.row).length),n},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(s.prototype),e.Text=s})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";var n,r=t("../lib/dom"),o=function(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",t.appendChild(this.element),void 0===n&&(n=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(n?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(t){for(var e=this.cursors,i=e.length;i--;)e[i].style.visibility=t?"":"hidden"},this.$updateOpacity=function(t){for(var e=this.cursors,i=e.length;i--;)e[i].style.opacity=t?"":"0"},this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setBlinking=function(t){t!=this.isBlinking&&(this.isBlinking=t,this.restartTimer())},this.setBlinkInterval=function(t){t!=this.blinkInterval&&(this.blinkInterval=t,this.restartTimer())},this.setSmoothBlinking=function(t){t!=this.smoothBlinking&&!n&&(this.smoothBlinking=t,r.setCssClass(this.element,"ace_smooth-blinking",t),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var t=r.createElement("div");return t.className="ace_cursor",this.element.appendChild(t),this.cursors.push(t),t},this.removeCursor=function(){if(this.cursors.length>1){var t=this.cursors.pop();return t.parentNode.removeChild(t),t}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var t=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var e=function(){this.timeoutId=setTimeout((function(){t(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){t(!0),e()}),this.blinkInterval),e()}},this.getPixelPosition=function(t,e){if(!this.config||!this.session)return{left:0,top:0};t||(t=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(t);return{left:this.$padding+i.column*this.config.characterWidth,top:(i.row-(e?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(t){this.config=t;var e=this.session.$selectionMarkers,i=0,n=0;void 0!==e&&0!==e.length||(e=[{cursor:null}]);i=0;for(var r=e.length;i<r;i++){var o=this.getPixelPosition(e[i].cursor,!0);if(!((o.top>t.height+t.offset||o.top<0)&&i>1)){var a=(this.cursors[n++]||this.addCursor()).style;this.drawCursor?this.drawCursor(a,o,t,e[i],this.session):(a.left=o.left+"px",a.top=o.top+"px",a.width=t.characterWidth+"px",a.height=t.lineHeight+"px")}}for(;this.cursors.length>n;)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(t){t!=this.overwrite&&(this.overwrite=t,t?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),e.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/dom"),o=t("./lib/event"),a=t("./lib/event_emitter").EventEmitter,s=32768,l=function(t){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){n.implement(this,a),this.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1}}).call(l.prototype);var A=function(t,e){l.call(this,t),this.scrollTop=0,this.scrollHeight=0,e.$scrollbarWidth=this.width=r.scrollbarWidth(t.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px"};n.inherits(A,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var t=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-t)/(this.coeff-t)}
this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return this.isVisible?this.width:0},this.setHeight=function(t){this.element.style.height=t+"px"},this.setInnerHeight=this.setScrollHeight=function(t){this.scrollHeight=t,t>s?(this.coeff=s/t,t=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=t+"px"},this.setScrollTop=function(t){this.scrollTop!=t&&(this.skipEvent=!0,this.scrollTop=t,this.element.scrollTop=t*this.coeff)}}.call(A.prototype);var c=function(t,e){l.call(this,t),this.scrollLeft=0,this.height=e.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(c,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(t){this.element.style.width=t+"px"},this.setInnerWidth=function(t){this.inner.style.width=t+"px"},this.setScrollWidth=function(t){this.inner.style.width=t+"px"},this.setScrollLeft=function(t){this.scrollLeft!=t&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=t)}}.call(c.prototype),e.ScrollBar=A,e.ScrollBarV=A,e.ScrollBarH=c,e.VScrollBar=A,e.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(t,e,i){"use strict";var n=t("./lib/event"),r=function(t,e){this.onRender=t,this.pending=!1,this.changes=0,this.window=e||window};(function(){this.schedule=function(t){if(this.changes=this.changes|t,!this.pending&&this.changes){this.pending=!0;var e=this;n.nextFrame((function(){var t;for(e.pending=!1;t=e.changes;)e.changes=0,e.onRender(t)}),this.window)}}}).call(r.prototype),e.RenderLoop=r})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(t,e,i){var n=t("../lib/oop"),r=t("../lib/dom"),o=t("../lib/lang"),a=t("../lib/useragent"),s=t("../lib/event_emitter").EventEmitter,l=0,A=e.FontMetrics=function(t){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),t.appendChild(this.el),l||this.$testFractionalRect(),this.$measureNode.innerHTML=o.stringRepeat("X",l),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){n.implement(this,s),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var t=r.createElement("div");this.$setMeasureNodeStyles(t.style),t.style.width="0.2px",document.documentElement.appendChild(t);var e=t.getBoundingClientRect().width;l=e>0&&e<1?50:100,t.parentNode.removeChild(t)},this.$setMeasureNodeStyles=function(t,e){t.width=t.height="auto",t.left=t.top="0px",t.visibility="hidden",t.position="absolute",t.whiteSpace="pre",a.isIE<8?t["font-family"]="inherit":t.font="inherit",t.overflow=e?"hidden":"visible"},this.checkForSizeChanges=function(){var t=this.$measureSizes();if(t&&(this.$characterSize.width!==t.width||this.$characterSize.height!==t.height)){this.$measureNode.style.fontWeight="bold";var e=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=t,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===t.width&&e.height===t.height,this._emit("changeCharacterSize",{data:t})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var t=this;return this.$pollSizeChangesTimer=setInterval((function(){t.checkForSizeChanges()}),500)},this.setPolling=function(t){t?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===l){var t=null;try{t=this.$measureNode.getBoundingClientRect()}catch(e){t={width:0,height:0}}var e={height:t.height,width:t.width/l}}else e={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(t){return this.$main.innerHTML=o.stringRepeat(t,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(t){var e=this.charSizes[t];return void 0===e&&(e=this.charSizes[t]=this.$measureCharWidth(t)/this.$characterSize.width),e},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(A.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/dom"),o=t("./config"),a=t("./lib/useragent"),s=t("./layer/gutter").Gutter,l=t("./layer/marker").Marker,A=t("./layer/text").Text,c=t("./layer/cursor").Cursor,h=t("./scrollbar").HScrollBar,d=t("./scrollbar").VScrollBar,u=t("./renderloop").RenderLoop,p=t("./layer/font_metrics").FontMetrics,g=t("./lib/event_emitter").EventEmitter
;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block;   }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius    : 3px;}.ace_br2 {border-top-right-radius   : 3px;}.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}',"ace_editor.css")
;var f=function(t,e){var i=this;this.container=t||r.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(e),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var n=this.$textLayer=new A(this.content);this.canvas=n.element,this.$markerFront=new l(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",(function(t){i.$scrollAnimation||i.session.setScrollTop(t.data-i.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(t){i.$scrollAnimation||i.session.setScrollLeft(t.data-i.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new p(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(t){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",t)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new u(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(t){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=t,t&&this.scrollMargin.top&&t.getScrollTop()<=0&&t.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(t),this.$markerBack.setSession(t),this.$markerFront.setSession(t),this.$gutterLayer.setSession(t),this.$textLayer.setSession(t),t&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(t,e,i){if(void 0===e&&(e=1/0),this.$changedLines?(this.$changedLines.firstRow>t&&(this.$changedLines.firstRow=t),this.$changedLines.lastRow<e&&(this.$changedLines.lastRow=e)):this.$changedLines={firstRow:t,lastRow:e},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!i)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar()},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(t){t?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(t,e,i,n){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=t?1:0;var r=this.container;n||(n=r.clientHeight||r.scrollHeight),i||(i=r.clientWidth||r.scrollWidth);var o=this.$updateCachedSize(t,e,i,n);if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;t&&(this.$gutterLayer.$padding=null),t?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(t,e,i,n){n-=this.$extraHeight||0;var r=0,o=this.$size,a={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};return n&&(t||o.height!=n)&&(o.height=n,r|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),i&&(t||o.width!=i)&&(r|=this.CHANGE_SIZE,o.width=i,null==e&&(e=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=e,this.scrollBarH.element.style.left=this.scroller.style.left=e+"px",o.scrollerWidth=Math.max(0,i-e-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||t)&&(r|=this.CHANGE_FULL)),o.$dirty=!i||!n,r&&this._signal("resize",a),r},this.onGutterResize=function(){var t=this.$showGutter?this.$gutter.offsetWidth:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var t=this.$size.scrollerWidth-2*this.$padding,e=Math.floor(t/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(t){this.setOption("animatedScroll",t)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(t){this.setOption("showInvisibles",t)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(t){this.setOption("displayIndentGuides",t)},this.setShowPrintMargin=function(t){this.setOption("showPrintMargin",t)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(t){this.setOption("printMarginColumn",t)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(t){return this.setOption("showGutter",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var t=this.$cursorLayer.$pixelPos,e=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var i=this.session.selection.getCursor();i.column=0,t=this.$cursorLayer.getPixelPosition(i,!0),e*=this.session.getRowLength(i.row)}this.$gutterLineHighlight.style.top=t.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=e+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){
if(!this.$printMarginEl){var t=r.createElement("div");t.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",t.appendChild(this.$printMarginEl),this.content.insertBefore(t,this.content.firstChild)}var e=this.$printMarginEl.style;e.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var t=this.layerConfig,e=this.$cursorLayer.$pixelPos.top,i=this.$cursorLayer.$pixelPos.left;e-=t.offset;var n=this.textarea.style,r=this.lineHeight;if(e<0||e>t.height-r)n.top=n.left="0";else{var o=this.characterWidth;if(this.$composition){var a=this.textarea.value.replace(/^\x01+/,"");o*=this.session.$getStringScreenWidth(a)[0]+2,r+=2}(i-=this.scrollLeft)>this.$size.scrollerWidth-o&&(i=this.$size.scrollerWidth-o),i+=this.gutterWidth,n.height=r+"px",n.width=o+"px",n.left=Math.min(i,this.$size.scrollerWidth-o)+"px",n.top=Math.min(e,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var t=this.layerConfig,e=t.lastRow;return this.session.documentToScreenRow(e,0)*t.lineHeight-this.session.getScrollTop()>t.height-t.lineHeight?e-1:e},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(t){this.$padding=t,this.$textLayer.setPadding(t),this.$cursorLayer.setPadding(t),this.$markerFront.setPadding(t),this.$markerBack.setPadding(t),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(t,e,i,n){var r=this.scrollMargin;r.top=0|t,r.bottom=0|e,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(t){this.setOption("hScrollBarAlwaysVisible",t)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(t){this.setOption("vScrollBarAlwaysVisible",t)},this.$updateScrollBarV=function(){var t=this.layerConfig.maxHeight,e=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(t-=(e-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>t-e&&(t=this.scrollTop+e,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(t+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(t,e){if(this.$changes&&(t|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(t||e)){if(this.$size.$dirty)return this.$changes|=t,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender");var i=this.layerConfig;if(t&this.CHANGE_FULL||t&this.CHANGE_SIZE||t&this.CHANGE_TEXT||t&this.CHANGE_LINES||t&this.CHANGE_SCROLL||t&this.CHANGE_H_SCROLL){if(t|=this.$computeLayerConfig(),i.firstRow!=this.layerConfig.firstRow&&i.firstRowScreen==this.layerConfig.firstRowScreen){var n=this.scrollTop+(i.firstRow-this.layerConfig.firstRow)*this.lineHeight;n>0&&(this.scrollTop=n,t|=this.CHANGE_SCROLL,t|=this.$computeLayerConfig())}i=this.layerConfig,this.$updateScrollBarV(),t&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-i.offset+"px",this.content.style.marginTop=-i.offset+"px",this.content.style.width=i.width+2*this.$padding+"px",this.content.style.height=i.minHeight+"px"}return t&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),t&this.CHANGE_FULL?(this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender")):t&this.CHANGE_SCROLL?(t&this.CHANGE_TEXT||t&this.CHANGE_LINES?this.$textLayer.update(i):this.$textLayer.scrollLines(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender")):(t&this.CHANGE_TEXT?(this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i)):t&this.CHANGE_LINES?(this.$updateLines()||t&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(i):(t&this.CHANGE_TEXT||t&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(i),t&this.CHANGE_CURSOR&&(this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(i),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(i),void this._signal("afterRender"))}this.$changes|=t},this.$autosize=function(){var t=this.session.getScreenLength()*this.lineHeight,e=this.$maxLines*this.lineHeight,i=Math.min(e,Math.max((this.$minLines||1)*this.lineHeight,t))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&i>this.$maxPixelHeight&&(i=this.$maxPixelHeight);var n=t>e;if(i!=this.desiredHeight||this.$size.height!=this.desiredHeight||n!=this.$vScroll){n!=this.$vScroll&&(this.$vScroll=n,this.scrollBarV.setVisible(n));var r=this.container.clientWidth;this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,i),this.desiredHeight=i,this._signal("autosize")}},this.$computeLayerConfig=function(){var t=this.session,e=this.$size,i=e.height<=2*this.lineHeight,n=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),o=!i&&(this.$hScrollBarAlwaysVisible||e.scrollerWidth-r-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=this.scrollTop%this.lineHeight,A=e.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(e.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;n+=c;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,n-e.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,r+2*this.$padding-e.scrollerWidth+h.right)));var d=!i&&(this.$vScrollBarAlwaysVisible||e.scrollerHeight-n+c<0||this.scrollTop>h.top),u=s!==d;u&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var p,g,f=Math.ceil(A/this.lineHeight)-1,m=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),y=m+f,b=this.lineHeight;m=t.screenToDocumentRow(m,0);var v=t.getFoldLine(m);v&&(m=v.start.row),p=t.documentToScreenRow(m,0),g=t.getRowLength(m)*b,y=Math.min(t.screenToDocumentRow(y,0),t.getLength()-1),A=e.scrollerHeight+t.getRowLength(y)*b+g,l=this.scrollTop-p*b;var E=0;return this.layerConfig.width!=r&&(E=this.CHANGE_H_SCROLL),(a||u)&&(E=this.$updateCachedSize(!0,this.gutterWidth,e.width,e.height),this._signal("scrollbarVisibilityChanged"),u&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:m,firstRowScreen:p,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:A,maxHeight:n,offset:l,gutterOffset:b?Math.max(0,Math.ceil((l+e.height-e.scrollerHeight)/b)):0,
height:this.$size.scrollerHeight},E},this.$updateLines=function(){var t=this.$changedLines.firstRow,e=this.$changedLines.lastRow;this.$changedLines=null;var i=this.layerConfig;if(!(t>i.lastRow+1||e<i.firstRow))return e===1/0?(this.$showGutter&&this.$gutterLayer.update(i),void this.$textLayer.update(i)):(this.$textLayer.updateLines(i,t,e),!0)},this.$getLongestLine=function(){var t=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(t+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(t*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(t,e){this.$gutterLayer.addGutterDecoration(t,e)},this.removeGutterDecoration=function(t,e){this.$gutterLayer.removeGutterDecoration(t,e)},this.updateBreakpoints=function(t){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(t){this.$gutterLayer.setAnnotations(t),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(t,e,i){this.scrollCursorIntoView(t,i),this.scrollCursorIntoView(e,i)},this.scrollCursorIntoView=function(t,e,i){if(0!==this.$size.scrollerHeight){var n=this.$cursorLayer.getPixelPosition(t),r=n.left,o=n.top,a=i&&i.top||0,s=i&&i.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(e&&l+a>o+this.lineHeight&&(o-=e*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-s<o+this.lineHeight&&(e&&l+this.$size.scrollerHeight-s<o-this.lineHeight&&(o+=e*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight-this.$size.scrollerHeight));var A=this.scrollLeft;A>r?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):A+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):A<=this.$padding&&r-A<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(t){this.session.setScrollTop(t*this.lineHeight)},this.alignCursor=function(t,e){"number"==typeof t&&(t={row:t,column:0});var i=this.$cursorLayer.getPixelPosition(t),n=this.$size.scrollerHeight-this.lineHeight,r=i.top-n*(e||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(t,e){var i,n,r=0,o=this.STEPS,a=[];for(r=0;r<o;++r)a.push((i=r/this.STEPS,n=t,(e-t)*(Math.pow(i-1,3)+1)+n));return a},this.scrollToLine=function(t,e,i,n){var r=this.$cursorLayer.getPixelPosition({row:t,column:0}).top;e&&(r-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(r),!1!==i&&this.animateScrolling(o,n)},this.animateScrolling=function(t,e){var i=this.scrollTop;if(this.$animatedScroll){var n=this;if(t!=i){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(t=r[0])==i)return}var o=n.$calcSteps(t,i);this.$scrollAnimation={from:t,to:i,steps:o},clearInterval(this.$timer),n.session.setScrollTop(o.shift()),n.session.$scrollTop=i,this.$timer=setInterval((function(){o.length?(n.session.setScrollTop(o.shift()),n.session.$scrollTop=i):null!=i?(n.session.$scrollTop=-1,n.session.setScrollTop(i),i=null):(n.$timer=clearInterval(n.$timer),n.$scrollAnimation=null,e&&e())}),10)}}},this.scrollToY=function(t){this.scrollTop!==t&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=t)},this.scrollToX=function(t){this.scrollLeft!==t&&(this.scrollLeft=t),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(t,e){this.session.setScrollTop(e),this.session.setScrollLeft(e)},this.scrollBy=function(t,e){e&&this.session.setScrollTop(this.session.getScrollTop()+e),t&&this.session.setScrollLeft(this.session.getScrollLeft()+t)},this.isScrollableBy=function(t,e){return e<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(e>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(t<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(t>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(t,e){var i=this.scroller.getBoundingClientRect(),n=(t+this.scrollLeft-i.left-this.$padding)/this.characterWidth,r=Math.floor((e+this.scrollTop-i.top)/this.lineHeight),o=Math.round(n);return{row:r,column:o,side:n-o>0?1:-1}},this.screenToTextCoordinates=function(t,e){var i=this.scroller.getBoundingClientRect(),n=Math.round((t+this.scrollLeft-i.left-this.$padding)/this.characterWidth),r=(e+this.scrollTop-i.top)/this.lineHeight;return this.session.screenToDocumentPosition(r,Math.max(n,0))},this.textToScreenCoordinates=function(t,e){var i=this.scroller.getBoundingClientRect(),n=this.session.documentToScreenPosition(t,e),r=this.$padding+Math.round(n.column*this.characterWidth),o=n.row*this.lineHeight;return{pageX:i.left+r-this.scrollLeft,pageY:i.top+o-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(t){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(t){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(t,e){function i(i){if(n.$themeId!=t)return e&&e();if(!i||!i.cssClass)throw new Error("couldn't load module "+t+" or it didn't call define");r.importCssString(i.cssText,i.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var o="padding"in i?i.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=i.cssClass,n.theme=i,r.addCssClass(n.container,i.cssClass),r.setCssClass(n.container,"ace_dark",i.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:i}),e&&e()}var n=this;if(this.$themeId=t,n._dispatchEvent("themeChange",{theme:t}),t&&"string"!=typeof t)i(t);else{var a=t||this.$options.theme.initialValue;o.loadModule(["theme",a],i)}},this.getTheme=function(){return this.$themeId},this.setStyle=function(t,e){r.setCssClass(this.container,t,!1!==e)},this.unsetStyle=function(t){r.removeCssClass(this.container,t)},this.setCursorStyle=function(t){this.scroller.style.cursor!=t&&(this.scroller.style.cursor=t)},this.setMouseCursor=function(t){this.scroller.style.cursor=t},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(f.prototype),o.defineOptions(f.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(t){this.$textLayer.setShowInvisibles(t)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(t){"number"==typeof t&&(this.$printMarginColumn=t),this.$showPrintMargin=!!t,this.$updatePrintMargin()},get:function(){
return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(t){this.$gutter.style.display=t?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(t){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",t)},initialValue:!1},showFoldWidgets:{set:function(t){this.$gutterLayer.setShowFoldWidgets(t)},initialValue:!0},showLineNumbers:{set:function(t){this.$gutterLayer.setShowLineNumbers(t),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(t){this.$textLayer.setDisplayIndentGuides(t)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(t){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=t?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(t){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(t){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(t){"number"==typeof t&&(t+="px"),this.container.style.fontSize=t,this.updateFontSize()},initialValue:12},fontFamily:{set:function(t){this.container.style.fontFamily=t,this.updateFontSize()}},maxLines:{set:function(t){this.updateFull()}},minLines:{set:function(t){this.updateFull()}},maxPixelHeight:{set:function(t){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(t){t=+t||0,this.$scrollPastEnd!=t&&(this.$scrollPastEnd=t,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(t){this.$gutterLayer.$fixedWidth=!!t,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(t){this.setTheme(t)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),e.VirtualRenderer=f})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(t,e,i){"use strict";function n(t){var e=function(t){var e="importScripts('"+o.qualifyURL(t)+"');";try{return new Blob([e],{type:"application/javascript"})}catch(t){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(e),i.getBlob("application/javascript")}}(t),i=(window.URL||window.webkitURL).createObjectURL(e);return new Worker(i)}var r=t("../lib/oop"),o=t("../lib/net"),a=t("../lib/event_emitter").EventEmitter,s=t("../config"),l=function(e,i,r,o,a){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),s.get("packaged")||!t.toUrl)o=o||s.moduleUrl(i,"worker");else{var l=this.$normalizePath;o=o||l(t.toUrl("ace/worker/worker.js",null,"_"));var A={};e.forEach((function(e){A[e]=l(t.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=n(o),a&&this.send("importScripts",a),this.$worker.postMessage({init:!0,tlns:A,module:i,classname:r}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,a),this.onMessage=function(t){var e=t.data;switch(e.type){case"event":this._signal(e.name,{data:e.data});break;case"call":var i=this.callbacks[e.id];i&&(i(e.data),delete this.callbacks[e.id]);break;case"error":this.reportError(e.data);break;case"log":window.console&&console.log&&console.log.apply(console,e.data)}},this.reportError=function(t){window.console&&console.error&&console.error(t)},this.$normalizePath=function(t){return o.qualifyURL(t)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(t,e){this.$worker.postMessage({command:t,args:e})},this.call=function(t,e,i){if(i){var n=this.callbackId++;this.callbacks[n]=i,e.push(n)}this.send(t,e)},this.emit=function(t,e){try{this.$worker.postMessage({event:t,data:{data:e.data}})}catch(t){console.error(t.stack)}},this.attachToDocument=function(t){this.$doc&&this.terminate(),this.$doc=t,this.call("setValue",[t.getValue()]),t.on("change",this.changeListener)},this.changeListener=function(t){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==t.action?this.deltaQueue.push(t.start,t.lines):this.deltaQueue.push(t.start,t.end)},this.$sendDeltaQueue=function(){var t=this.deltaQueue;t&&(this.deltaQueue=null,t.length>50&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(l.prototype);var A=function(t,e,i){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var n=null,r=!1,o=Object.create(a),l=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(t){l.messageBuffer.push(t),n&&(r?setTimeout(A):A())},this.setEmitSync=function(t){r=t};var A=function(){var t=l.messageBuffer.shift();t.command?n[t.command].apply(n,t.args):t.event&&o._signal(t.event,t.data)};o.postMessage=function(t){l.onMessage({data:t})},o.callback=function(t,e){this.postMessage({type:"call",id:e,data:t})},o.emit=function(t,e){this.postMessage({type:"event",name:t,data:e})},s.loadModule(["worker",e],(function(t){for(n=new t[i](o);l.messageBuffer.length;)A()}))};A.prototype=l.prototype,e.UIWorkerClient=A,e.WorkerClient=l,e.createWorker=n})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(t,e,i){"use strict";var n=t("./range").Range,r=t("./lib/event_emitter").EventEmitter,o=t("./lib/oop"),a=function(t,e,i,n,r,o){var a=this;this.length=e,this.session=t,this.doc=t.getDocument(),this.mainClass=r,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=i;var s=t.getUndoManager().$undoStack||t.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),t.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,r),this.setup=function(){var t=this,e=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=e.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=i.addMarker(new n(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(i){var n=e.createAnchor(i.row,i.column);n.$insertRight=!0,n.detach(),t.others.push(n)})),i.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,e=this;this.othersActive=!0,this.others.forEach((function(i){i.markerId=t.addMarker(new n(i.row,i.column,i.row,i.column+e.length),e.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var t=0;t<this.others.length;t++)this.session.removeMarker(this.others[t].markerId)}},this.onUpdate=function(t){if(this.$updating)return this.updateAnchors(t);var e=t;if(e.start.row===e.end.row&&e.start.row===this.pos.row){this.$updating=!0;var i="insert"===t.action?e.end.column-e.start.column:e.start.column-e.end.column,r=e.start.column>=this.pos.column&&e.start.column<=this.pos.column+this.length+1,o=e.start.column-this.pos.column;if(this.updateAnchors(t),r&&(this.length+=i),r&&!this.session.$fromUndo)if("insert"===t.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+o};this.doc.insertMergedLines(s,t.lines)}else if("remove"===t.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+o}
;this.doc.remove(new n(s.row,s.column,s.row,s.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(t){this.pos.onChange(t);for(var e=this.others.length;e--;)this.others[e].onChange(t);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var t=this,e=this.session,i=function(i,r){e.removeMarker(i.markerId),i.markerId=e.addMarker(new n(i.row,i.column,i.row,i.column+t.length),r,null,!1)};i(this.pos,this.mainClass);for(var r=this.others.length;r--;)i(this.others[r],this.othersClass)}},this.onCursorChange=function(t){if(!this.$updating&&this.session){var e=this.session.selection.getCursor();e.row===this.pos.row&&e.column>=this.pos.column&&e.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",t)):(this.hideOtherMarkers(),this._emit("cursorLeave",t))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var t=this.session.getUndoManager(),e=(t.$undoStack||t.$undostack).length-this.$undoStackDepth,i=0;i<e;i++)t.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(a.prototype),e.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,e,i){function n(t,e){return t.row==e.row&&t.column==e.column}var r=t("../lib/event"),o=t("../lib/useragent");e.onMouseDown=function(t){var e=t.domEvent,i=e.altKey,a=e.shiftKey,s=e.ctrlKey,l=t.getAccelKey(),A=t.getButton();if(s&&o.isMac&&(A=e.button),t.editor.inMultiSelectMode&&2==A)t.editor.textInput.onContextMenu(t.domEvent);else if(s||i||l){if(0===A){var c,h=t.editor,d=h.selection,u=h.inMultiSelectMode,p=t.getDocumentPosition(),g=d.getCursor(),f=t.inSelection()||d.isEmpty()&&n(p,g),m=t.x,y=t.y,b=h.session,v=h.renderer.pixelToScreenCoordinates(m,y),E=v;if(h.$mouseHandler.$enableJumpToDef)s&&i||l&&i?c=a?"block":"add":i&&h.$blockSelectEnabled&&(c="block");else if(l&&!i){if(c="add",!u&&a)return}else i&&h.$blockSelectEnabled&&(c="block");if(c&&o.isMac&&e.ctrlKey&&h.$mouseHandler.cancelContextMenu(),"add"==c){if(!u&&f)return;if(!u){var I=d.toOrientedRange();h.addSelectionMarker(I)}var C=d.rangeList.rangeAtPoint(p);h.$blockScrolling++,h.inVirtualSelectionMode=!0,a&&(C=null,I=d.ranges[0]||I,h.removeSelectionMarker(I)),h.once("mouseup",(function(){var t=d.toOrientedRange();C&&t.isEmpty()&&n(C.cursor,t.cursor)?d.substractPoint(t.cursor):(a?d.substractPoint(I.cursor):I&&(h.removeSelectionMarker(I),d.addRange(I)),d.addRange(t)),h.$blockScrolling--,h.inVirtualSelectionMode=!1}))}else if("block"==c){t.stop(),h.inVirtualSelectionMode=!0;var B,w=[];h.$blockScrolling++,u&&!l?d.toSingleRange():!u&&l&&(B=d.toOrientedRange(),h.addSelectionMarker(B)),a?v=b.documentToScreenPosition(d.lead):d.moveToPosition(p),h.$blockScrolling--,E={row:-1,column:-1};var x=function(){var t=h.renderer.pixelToScreenCoordinates(m,y),e=b.screenToDocumentPosition(t.row,t.column);n(E,t)&&n(e,d.lead)||(E=t,h.$blockScrolling++,h.selection.moveToPosition(e),h.renderer.scrollCursorIntoView(),h.removeSelectionMarkers(w),w=d.rectangularRangeBlock(E,v),h.$mouseHandler.$clickSelection&&1==w.length&&w[0].isEmpty()&&(w[0]=h.$mouseHandler.$clickSelection.clone()),w.forEach(h.addSelectionMarker,h),h.updateSelectionMarkers(),h.$blockScrolling--)};r.capture(h.container,(function(t){m=t.clientX,y=t.clientY}),(function(t){clearInterval(Q),h.removeSelectionMarkers(w),w.length||(w=[d.toOrientedRange()]),h.$blockScrolling++,B&&(h.removeSelectionMarker(B),d.toSingleRange(B));for(var e=0;e<w.length;e++)d.addRange(w[e]);h.inVirtualSelectionMode=!1,h.$mouseHandler.$clickSelection=null,h.$blockScrolling--}));var Q=setInterval((function(){x()}),20);return t.preventDefault()}}}else 0===A&&t.editor.inMultiSelectMode&&t.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(t,e,i){e.defaultCommands=[{name:"addCursorAbove",exec:function(t){t.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(t){t.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(t){t.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(t){t.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(t){t.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(t){t.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(t){t.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(t){t.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(t){t.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(t){t.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(t){t.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],e.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(t){t.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(t){return t&&t.inMultiSelectMode}}];var n=t("../keyboard/hash_handler").HashHandler;e.keyboardHandler=new n(e.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(t,e,i){function n(t,e){return t.row==e.row&&t.column==e.column}function r(t){t.$multiselectOnSessionChange||(t.$onAddRange=t.$onAddRange.bind(t),t.$onRemoveRange=t.$onRemoveRange.bind(t),t.$onMultiSelect=t.$onMultiSelect.bind(t),t.$onSingleSelect=t.$onSingleSelect.bind(t),t.$multiselectOnSessionChange=e.onSessionChange.bind(t),t.$checkMultiselectChange=t.$checkMultiselectChange.bind(t),t.$multiselectOnSessionChange(t),t.on("changeSession",t.$multiselectOnSessionChange),t.on("mousedown",l),t.commands.addCommands(h.defaultCommands),function(t){function e(e){n&&(t.renderer.setMouseCursor(""),n=!1)}var i=t.textInput.getElement(),n=!1;A.addListener(i,"keydown",(function(i){var r=18==i.keyCode&&!(i.ctrlKey||i.shiftKey||i.metaKey);t.$blockSelectEnabled&&r?n||(t.renderer.setMouseCursor("crosshair"),n=!0):n&&e()})),A.addListener(i,"keyup",e),A.addListener(i,"blur",e)}(t))}var o=t("./range_list").RangeList,a=t("./range").Range,s=t("./selection").Selection,l=t("./mouse/multi_select_handler").onMouseDown,A=t("./lib/event"),c=t("./lib/lang"),h=t("./commands/multi_select_commands");e.commands=h.defaultCommands.concat(h.multiSelectCommands);var d=new(0,t("./search").Search),u=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(t,e){if(t){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(t),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),e||this.fromOrientedRange(t);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}t.cursor||(t.cursor=t.end);var n=this.rangeList.add(t);return this.$onAddRange(t),
n.length&&this.$onRemoveRange(n),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),e||this.fromOrientedRange(t)}},this.toSingleRange=function(t){t=t||this.ranges[0];var e=this.rangeList.removeAll();e.length&&this.$onRemoveRange(e),t&&this.fromOrientedRange(t)},this.substractPoint=function(t){var e=this.rangeList.substractPoint(t);if(e)return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var t=this.rangeList.merge();t.length?this.$onRemoveRange(t):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(t){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(t),this._signal("addRange",{range:t})},this.$onRemoveRange=function(t){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var e=this.rangeList.ranges.pop();t.push(e),this.rangeCount=0}for(var i=t.length;i--;){var n=this.ranges.indexOf(t[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:t}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(e=e||this.ranges[0])&&!e.isEqual(this.getRange())&&this.fromOrientedRange(e)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var t=this.rangeList.ranges,e=t[t.length-1],i=a.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(i,e.cursor==e.start)}else{i=this.getRange();var n=this.isBackwards(),r=i.start.row,o=i.end.row;if(r==o){if(n)var s=i.end,l=i.start;else s=i.start,l=i.end;return this.addRange(a.fromPoints(l,l)),void this.addRange(a.fromPoints(s,s))}var A=[],c=this.getLineRange(r,!0);c.start.column=i.start.column,A.push(c);for(var h=r+1;h<o;h++)A.push(this.getLineRange(h,!0));(c=this.getLineRange(o,!0)).end.column=i.end.column,A.push(c),A.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var t=this.rangeList.ranges,e=t[t.length-1],i=a.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(i,e.cursor==e.start)}else{var n=this.session.documentToScreenPosition(this.selectionLead),r=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(n,r).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(t,e,i){var r=[],o=t.column<e.column;if(o)var s=t.column,l=e.column;else s=e.column,l=t.column;var A=t.row<e.row;if(A)var c=t.row,h=e.row;else c=e.row,h=t.row;s<0&&(s=0),c<0&&(c=0),c==h&&(i=!0);for(var d=c;d<=h;d++){var u=a.fromPoints(this.session.screenToDocumentPosition(d,s),this.session.screenToDocumentPosition(d,l));if(u.isEmpty()){if(p&&n(u.end,p))break;var p=u.end}u.cursor=o?u.start:u.end,r.push(u)}if(A&&r.reverse(),!i){for(var g=r.length-1;r[g].isEmpty()&&g>0;)g--;if(g>0)for(var f=0;r[f].isEmpty();)f++;for(var m=g;m>=f;m--)r[m].isEmpty()&&r.splice(m,1)}return r}}.call(s.prototype);var p=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(t){t.cursor||(t.cursor=t.end);var e=this.getSelectionStyle();return t.marker=this.session.addMarker(t,"ace_selection",e),this.session.$selectionMarkers.push(t),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,t},this.removeSelectionMarker=function(t){if(t.marker){this.session.removeMarker(t.marker);var e=this.session.$selectionMarkers.indexOf(t);-1!=e&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(t){for(var e=this.session.$selectionMarkers,i=t.length;i--;){var n=t[i];if(n.marker){this.session.removeMarker(n.marker);var r=e.indexOf(n);-1!=r&&e.splice(r,1)}}this.session.selectionMarkerCount=e.length},this.$onAddRange=function(t){this.addSelectionMarker(t.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(t){this.removeSelectionMarkers(t.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(t){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(h.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(t){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(h.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(t){var e=t.command,i=t.editor;if(i.multiSelect){if(e.multiSelectAction)"forEach"==e.multiSelectAction?n=i.forEachSelection(e,t.args):"forEachLine"==e.multiSelectAction?n=i.forEachSelection(e,t.args,!0):"single"==e.multiSelectAction?(i.exitMultiSelectMode(),n=e.exec(i,t.args||{})):n=e.multiSelectAction(i,t.args||{});else{var n=e.exec(i,t.args||{});i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()}return n}},this.forEachSelection=function(t,e,i){if(!this.inVirtualSelectionMode){var n,r=i&&i.keepOrder,o=1==i||i&&i.$byLines,a=this.session,l=this.selection,A=l.rangeList,c=(r?l:A).ranges;if(!c.length)return t.exec?t.exec(this,e||{}):t(this,e||{});var h=l._eventRegistry;l._eventRegistry={};var d=new s(a);this.inVirtualSelectionMode=!0;for(var u=c.length;u--;){if(o)for(;u>0&&c[u].start.row==c[u-1].end.row;)u--;d.fromOrientedRange(c[u]),d.index=u,this.selection=a.selection=d;var p=t.exec?t.exec(this,e||{}):t(this,e||{});!n&&void 0!==p&&(n=p),d.toOrientedRange(c[u])}d.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=h,l.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var t="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var e=this.multiSelect.rangeList.ranges,i=[],n=0;n<e.length;n++)i.push(this.session.getTextRange(e[n]));var r=this.session.getDocument().getNewLineCharacter();(t=i.join(r)).length==(i.length-1)*r.length&&(t="")}else this.selection.isEmpty()||(t=this.session.getTextRange(this.getSelectionRange()));return t},this.$checkMultiselectChange=function(t,e){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var i=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&e==this.multiSelect.anchor)return;var n=e==this.multiSelect.anchor?i.cursor==i.start?i.end:i.start:i.cursor;(n.row!=e.row||this.session.$clipPositionToDocument(n.row,n.column).column!=e.column)&&this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(t,e,i){if((e=e||{}).needle=t||e.needle,null==e.needle){var n=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();e.needle=this.session.getTextRange(n)}this.$search.set(e);var r=this.$search.findAll(this.session);if(!r.length)return 0;this.$blockScrolling+=1;var o=this.multiSelect;i||o.toSingleRange(r[0]);for(var a=r.length;a--;)o.addRange(r[a],!0);return n&&o.rangeList.rangeAtPoint(n.start)&&o.addRange(n,!0),this.$blockScrolling-=1,r.length},this.selectMoreLines=function(t,e){var i=this.selection.toOrientedRange(),n=i.cursor==i.end,r=this.session.documentToScreenPosition(i.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var o,s=this.session.screenToDocumentPosition(r.row+t,r.column)
;if(i.isEmpty())A=s;else var l=this.session.documentToScreenPosition(n?i.end:i.start),A=this.session.screenToDocumentPosition(l.row+t,l.column);n?(o=a.fromPoints(s,A)).cursor=o.start:(o=a.fromPoints(A,s)).cursor=o.end;if(o.desiredColumn=r.column,this.selection.inMultiSelectMode){if(e)var c=i.cursor}else this.selection.addRange(i);this.selection.addRange(o),c&&this.selection.substractPoint(c)},this.transposeSelections=function(t){for(var e=this.session,i=e.multiSelect,n=i.ranges,r=n.length;r--;){if((s=n[r]).isEmpty()){var o=e.getWordRange(s.start.row,s.start.column);s.start.row=o.start.row,s.start.column=o.start.column,s.end.row=o.end.row,s.end.column=o.end.column}}i.mergeOverlappingRanges();var a=[];for(r=n.length;r--;){var s=n[r];a.unshift(e.getTextRange(s))}t<0?a.unshift(a.pop()):a.push(a.shift());for(r=n.length;r--;){o=(s=n[r]).clone();e.replace(s,a[r]),s.start.row=o.start.row,s.start.column=o.start.column}},this.selectMore=function(t,e,i){var n=this.session,r=n.multiSelect.toOrientedRange();if(!r.isEmpty()||((r=n.getWordRange(r.start.row,r.start.column)).cursor=-1==t?r.start:r.end,this.multiSelect.addRange(r),!i)){var o=n.getTextRange(r),a=function(t,e,i){return d.$options.wrap=!0,d.$options.needle=e,d.$options.backwards=-1==i,d.find(t)}(n,o,t);a&&(a.cursor=-1==t?a.start:a.end,this.$blockScrolling+=1,this.session.unfold(a),this.multiSelect.addRange(a),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),e&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var t=this.session,e=t.multiSelect,i=e.ranges,n=-1,r=i.filter((function(t){if(t.cursor.row==n)return!0;n=t.cursor.row}));if(i.length&&r.length!=i.length-1){r.forEach((function(t){e.substractPoint(t.cursor)}));var o=0,s=1/0,l=i.map((function(e){var i=e.cursor,n=t.getLine(i.row).substr(i.column).search(/\S/g);return-1==n&&(n=0),i.column>o&&(o=i.column),n<s&&(s=n),n}));i.forEach((function(e,i){var n=e.cursor,r=o-n.column,A=l[i]-s;r>A?t.insert(n,c.stringRepeat(" ",r-A)):t.remove(new a(n.row,n.column,n.row,n.column-r+A)),e.start.column=e.end.column=o,e.start.row=e.end.row=n.row,e.cursor=e.end})),e.fromOrientedRange(i[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var A=this.selection.getRange(),h=A.start.row,d=A.end.row,u=h==d;if(u){var p,g=this.session.getLength();do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&++d<g);do{p=this.session.getLine(h)}while(/[=:]/.test(p)&&--h>0);h<0&&(h=0),d>=g&&(d=g-1)}var f=this.session.removeFullLines(h,d);f=this.$reAlignText(f,u),this.session.insert({row:h,column:0},f.join("\n")+"\n"),u||(A.start.column=0,A.end.column=f[f.length-1].length),this.selection.setRange(A)}},this.$reAlignText=function(t,e){function i(t){return c.stringRepeat(" ",t)}function n(t){return t[2]?i(r)+t[2]+i(o-t[2].length+a)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}var r,o,a,s=!0,l=!0;return t.map((function(t){var e=t.match(/(\s*)(.*?)(\s*)([=:].*)/);return e?null==r?(r=e[1].length,o=e[2].length,a=e[3].length,e):(r+o+a!=e[1].length+e[2].length+e[3].length&&(l=!1),r!=e[1].length&&(s=!1),r>e[1].length&&(r=e[1].length),o<e[2].length&&(o=e[2].length),a>e[3].length&&(a=e[3].length),e):[t]})).map(e?n:s?l?function(t){return t[2]?i(r+o-t[2].length)+t[2]+i(a)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}:n:function(t){return t[2]?i(r)+t[2]+i(a)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]})}}).call(p.prototype),e.onSessionChange=function(t){var e=t.session;e&&!e.multiSelect&&(e.$selectionMarkers=[],e.selection.$initRangeList(),e.multiSelect=e.selection),this.multiSelect=e&&e.multiSelect;var i=t.oldSession;i&&(i.multiSelect.off("addRange",this.$onAddRange),i.multiSelect.off("removeRange",this.$onRemoveRange),i.multiSelect.off("multiSelect",this.$onMultiSelect),i.multiSelect.off("singleSelect",this.$onSingleSelect),i.multiSelect.lead.off("change",this.$checkMultiselectChange),i.multiSelect.anchor.off("change",this.$checkMultiselectChange)),e&&(e.multiSelect.on("addRange",this.$onAddRange),e.multiSelect.on("removeRange",this.$onRemoveRange),e.multiSelect.on("multiSelect",this.$onMultiSelect),e.multiSelect.on("singleSelect",this.$onSingleSelect),e.multiSelect.lead.on("change",this.$checkMultiselectChange),e.multiSelect.anchor.on("change",this.$checkMultiselectChange)),e&&this.inMultiSelectMode!=e.selection.inMultiSelectMode&&(e.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},e.MultiSelect=r,t("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(t){r(this),t?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",l)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",l))},value:!0},enableBlockSelect:{set:function(t){this.$blockSelectEnabled=t},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(t,e,i){"use strict";var n=t("../../range").Range,r=e.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(t,e,i){var n=t.getLine(i);return this.foldingStartMarker.test(n)?"start":"markbeginend"==e&&this.foldingStopMarker&&this.foldingStopMarker.test(n)?"end":""},this.getFoldWidgetRange=function(t,e,i){return null},this.indentationBlock=function(t,e,i){var r=/\S/,o=t.getLine(e),a=o.search(r);if(-1!=a){for(var s=i||o.length,l=t.getLength(),A=e,c=e;++e<l;){var h=t.getLine(e).search(r);if(-1!=h){if(h<=a)break;c=e}}if(c>A){var d=t.getLine(c).length;return new n(A,s,c,d)}}},this.openingBracketBlock=function(t,e,i,r,o){var a={row:i,column:r+1},s=t.$findClosingBracket(e,a,o);if(s){var l=t.foldWidgets[s.row];return null==l&&(l=t.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=t.getLine(s.row).length),n.fromPoints(a,s)}},this.closingBracketBlock=function(t,e,i,r,o){var a={row:i,column:r},s=t.$findOpeningBracket(e,a);if(s)return s.column++,a.column--,n.fromPoints(s,a)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(t,e,i){"use strict";e.isDark=!1,e.cssClass="ace-tm",
e.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t("../lib/dom").importCssString(e.cssText,e.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(t,e,i){"use strict";function n(t){this.session=t,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}t("./lib/oop");var r=t("./lib/dom");t("./range").Range;(function(){this.getRowLength=function(t){var e;return e=this.lineWidgets&&this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0,this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1+e:1+e},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach((function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)})),t},this.$onChangeEditor=function(t){this.attach(t.editor)},this.attach=function(t){t&&t.widgetManager&&t.widgetManager!=this&&t.widgetManager.detach(),this.editor!=t&&(this.detach(),this.editor=t,t&&(t.widgetManager=this,t.renderer.on("beforeRender",this.measureWidgets),t.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(t){var e=this.editor;if(e){this.editor=null,e.widgetManager=null,e.renderer.off("beforeRender",this.measureWidgets),e.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach((function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))}))}},this.updateOnFold=function(t,e){var i=e.lineWidgets;if(i&&t.action){for(var n=t.data,r=n.start.row,o=n.end.row,a="add"==t.action,s=r+1;s<o;s++)i[s]&&(i[s].hidden=a);i[o]&&(a?i[r]?i[o].hidden=a:i[r]=i[o]:(i[r]==i[o]&&(i[r]=void 0),i[o].hidden=a))}},this.updateOnChange=function(t){var e=this.session.lineWidgets;if(e){var i=t.start.row,n=t.end.row-i;if(0!==n)if("remove"==t.action){e.splice(i+1,n).forEach((function(t){t&&this.removeLineWidget(t)}),this),this.$updateRows()}else{var r=new Array(n);r.unshift(i,0),e.splice.apply(e,r),this.$updateRows()}}},this.$updateRows=function(){var t=this.session.lineWidgets;if(t){var e=!0;t.forEach((function(t,i){if(t)for(e=!1,t.row=i;t.$oldWidget;)t.$oldWidget.row=i,t=t.$oldWidget})),e&&(this.session.lineWidgets=null)}},this.addLineWidget=function(t){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var e=this.session.lineWidgets[t.row];e&&(t.$oldWidget=e,e.el&&e.el.parentNode&&(e.el.parentNode.removeChild(e.el),e._inDocument=!1)),this.session.lineWidgets[t.row]=t,t.session=this.session;var i=this.editor.renderer;t.html&&!t.el&&(t.el=r.createElement("div"),t.el.innerHTML=t.html),t.el&&(r.addCssClass(t.el,"ace_lineWidgetContainer"),t.el.style.position="absolute",t.el.style.zIndex=5,i.container.appendChild(t.el),t._inDocument=!0),t.coverGutter||(t.el.style.zIndex=3),null==t.pixelHeight&&(t.pixelHeight=t.el.offsetHeight),null==t.rowCount&&(t.rowCount=t.pixelHeight/i.layerConfig.lineHeight);var n=this.session.getFoldAt(t.row,0);if(t.$fold=n,n){var o=this.session.lineWidgets;t.row!=n.end.row||o[n.start.row]?t.hidden=!0:o[n.start.row]=t}return this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows(),this.renderWidgets(null,i),this.onWidgetChanged(t),t},this.removeLineWidget=function(t){if(t._inDocument=!1,t.session=null,t.el&&t.el.parentNode&&t.el.parentNode.removeChild(t.el),t.editor&&t.editor.destroy)try{t.editor.destroy()}catch(t){}if(this.session.lineWidgets){var e=this.session.lineWidgets[t.row];if(e==t)this.session.lineWidgets[t.row]=t.$oldWidget,t.$oldWidget&&this.onWidgetChanged(t.$oldWidget);else for(;e;){if(e.$oldWidget==t){e.$oldWidget=t.$oldWidget;break}e=e.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(t){for(var e=this.session.lineWidgets,i=e&&e[t],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(t){this.session._changedWidgets.push(t),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(t,e){var i=this.session._changedWidgets,n=e.layerConfig;if(i&&i.length){for(var r=1/0,o=0;o<i.length;o++){var a=i[o];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,e.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/n.characterWidth));var s=a.h/n.lineHeight;a.coverLine&&((s-=this.session.getRowLineCount(a.row))<0&&(s=0)),a.rowCount!=s&&(a.rowCount=s,a.row<r&&(r=a.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(t,e){var i=e.layerConfig,n=this.session.lineWidgets;if(n){for(var r=Math.min(this.firstRow,i.firstRow),o=Math.max(this.lastRow,i.lastRow,n.length);r>0&&!n[r];)r--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,e.$cursorLayer.config=i;for(var a=r;a<=o;a++){var s=n[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,e.container.appendChild(s.el));var l=e.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=i.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-i.offset+"px";var A=s.coverGutter?0:e.gutterWidth;s.fixedWidth||(A-=e.scrollLeft),s.el.style.left=A+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=i.width+2*i.padding+"px"),
s.fixedWidth?s.el.style.right=e.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(n.prototype),e.LineWidgets=n})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(t,e,i){"use strict";var n=t("../line_widgets").LineWidgets,r=t("../lib/dom"),o=t("../range").Range;e.showErrorMarker=function(t,e){var i=t.session;i.widgetManager||(i.widgetManager=new n(i),i.widgetManager.attach(t));var a=t.getCursorPosition(),s=a.row,l=i.widgetManager.getWidgetsAtRow(s).filter((function(t){return"errorMarker"==t.type}))[0];l?l.destroy():s-=e;var A,c=function(t,e,i){var n=t.getAnnotations().sort(o.comparePoints);if(n.length){var r=function(t,e,i){for(var n=0,r=t.length-1;n<=r;){var o=n+r>>1,a=i(e,t[o]);if(a>0)n=o+1;else{if(!(a<0))return o;r=o-1}}return-(n+1)}(n,{row:e,column:-1},o.comparePoints);r<0&&(r=-r-1),r>=n.length?r=i>0?0:n.length-1:0===r&&i<0&&(r=n.length-1);var a=n[r];if(a&&i){if(a.row===e){do{a=n[r+=i]}while(a&&a.row===e);if(!a)return n.slice()}var s=[];e=a.row;do{s[i<0?"unshift":"push"](a),a=n[r+=i]}while(a&&a.row==e);return s.length&&s}}}(i,s,e);if(c){var h=c[0];a.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,a.row=h.row,A=t.renderer.$gutterLayer.$annotations[a.row]}else{if(l)return;A={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(a.row),t.selection.moveToPosition(a);var d={row:a.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},u=d.el.appendChild(r.createElement("div")),p=d.el.appendChild(r.createElement("div"));p.className="error_widget_arrow "+A.className;var g=t.renderer.$cursorLayer.getPixelPosition(a).left;p.style.left=g+t.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",u.className="error_widget "+A.className,u.innerHTML=A.text.join("<br>"),u.appendChild(r.createElement("div"));var f=function(t,e,i){if(0===e&&("esc"===i||"return"===i))return d.destroy(),{command:"null"}};d.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(f),i.widgetManager.removeLineWidget(d),t.off("changeSelection",d.destroy),t.off("changeSession",d.destroy),t.off("mouseup",d.destroy),t.off("change",d.destroy))},t.keyBinding.addKeyboardHandler(f),t.on("changeSelection",d.destroy),t.on("changeSession",d.destroy),t.on("mouseup",d.destroy),t.on("change",d.destroy),t.session.widgetManager.addLineWidget(d),d.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},r.importCssString("    .error_widget_wrapper {        background: inherit;        color: inherit;        border:none    }    .error_widget {        border-top: solid 2px;        border-bottom: solid 2px;        margin: 5px 0;        padding: 10px 40px;        white-space: pre-wrap;    }    .error_widget.ace_error, .error_widget_arrow.ace_error{        border-color: #ff5a5a    }    .error_widget.ace_warning, .error_widget_arrow.ace_warning{        border-color: #F1D817    }    .error_widget.ace_info, .error_widget_arrow.ace_info{        border-color: #5a5a5a    }    .error_widget.ace_ok, .error_widget_arrow.ace_ok{        border-color: #5aaa5a    }    .error_widget_arrow {        position: absolute;        border: solid 5px;        border-top-color: transparent!important;        border-right-color: transparent!important;        border-left-color: transparent!important;        top: -5px;    }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(t,e,n){"use strict";t("./lib/fixoldbrowsers");var r=t("./lib/dom"),o=t("./lib/event"),a=t("./editor").Editor,s=t("./edit_session").EditSession,l=t("./undomanager").UndoManager,A=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),e.config=t("./config"),e.require=t,e.define=i.amdD,e.edit=function(t){if("string"==typeof t){var i=t;if(!(t=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(t&&t.env&&t.env.editor instanceof a)return t.env.editor;var n="";if(t&&/input|textarea/i.test(t.tagName)){var s=t;n=s.value,t=r.createElement("pre"),s.parentNode.replaceChild(t,s)}else t&&(n=r.getInnerText(t),t.innerHTML="");var l=e.createEditSession(n),c=new a(new A(t));c.setSession(l);var h={document:l,editor:c,onResize:c.resize.bind(c,null)};return s&&(h.textarea=s),o.addListener(window,"resize",h.onResize),c.on("destroy",(function(){o.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),c.container.env=c.env=h,c},e.createEditSession=function(t,e){var i=new s(t,e);return i.setUndoManager(new l),i},e.EditSession=s,e.UndoManager=l,e.version="1.2.7"})),ace.require(["ace/ace"],(function(t){for(var e in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(e)&&(window.ace[e]=t[e])}))},10523:function(){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(t,e,i){"use strict";var n=t("./lib/oop"),r=t("./lib/event_emitter").EventEmitter,o=t("./lib/lang"),a=t("./range").Range,s=t("./anchor").Anchor,l=t("./keyboard/hash_handler").HashHandler,A=t("./tokenizer").Tokenizer,c=a.comparePoints,h=function(){this.snippetMap={},this.snippetNameMap={}};(function(){n.implement(this,r),this.getTokenizer=function(){function t(t,e,i){return t=t.substr(1),/^\d+$/.test(t)&&!i.inFormatString?[{tabstopId:parseInt(t,10)}]:[{text:t}]}function e(t){return"(?:[^\\\\"+t+"]|\\\\.)"}return h.$tokenizer=new A({start:[{regex:/:/,onMatch:function(t,e,i){return i.length&&i[0].expectIf?(i[0].expectIf=!1,i[0].elseBranch=i[0],[i[0]]):":"}},{regex:/\\./,onMatch:function(t,e,i){var n=t[1];return"}"==n&&i.length||-1!="`$\\".indexOf(n)?t=n:i.inFormatString&&("n"==n||"t"==n?t="\n":-1!="ulULE".indexOf(n)&&(t={changeCase:n,local:n>"a"})),[t]}},{regex:/}/,onMatch:function(t,e,i){return[i.length?i.shift():t]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,i,n){var r=t(e.substr(1),0,n);return n.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+e("\\|")+"*\\|",onMatch:function(t,e,i){i[0].choices=t.slice(1,-1).split(",")},next:"start"},{regex:"/("+e("/")+"+)/(?:("+e("/")+"*)/)(\\w*):?",onMatch:function(t,e,i){var n=i[0];return n.fmtString=t,t=this.splitRegex.exec(t),n.guard=t[1],n.fmt=t[2],n.flag=t[3],""},next:"start"},{regex:"`"+e("`")+"*`",onMatch:function(t,e,i){return i[0].code=t.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(t,e,i){i[0]&&(i[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+e("/")+"+)/",token:"regex"},{regex:"",onMatch:function(t,e,i){i.inFormatString=!0},next:"start"}]}),h.prototype.getTokenizer=function(){return h.$tokenizer},h.$tokenizer},this.tokenizeTmSnippet=function(t,e){return this.getTokenizer().getLineTokens(t,e).tokens.map((function(t){return t.value||t}))},this.$getDefaultValue=function(t,e){if(/^[A-Z]\d+$/.test(e)){var i=e.substr(1);return(this.variables[e[0]+"__"]||{})[i]}if(/^\d+$/.test(e))return(this.variables.__||{})[e];if(e=e.replace(/^TM_/,""),t){var n=t.session;switch(e){case"CURRENT_WORD":var r=n.getWordRange();case"SELECTION":case"SELECTED_TEXT":return n.getTextRange(r);case"CURRENT_LINE":return n.getLine(t.getCursorPosition().row);case"PREV_LINE":return n.getLine(t.getCursorPosition().row-1);case"LINE_INDEX":return t.getCursorPosition().column;case"LINE_NUMBER":return t.getCursorPosition().row+1;case"SOFT_TABS":return n.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return n.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(t,e){
return this.variables.hasOwnProperty(e)?this.variables[e](t,e)||"":this.$getDefaultValue(t,e)||""},this.tmStrFormat=function(t,e,i){var n=e.flag||"",r=e.guard;r=new RegExp(r,n.replace(/[^gi]/,""));var o=this.tokenizeTmSnippet(e.fmt,"formatString"),a=this,s=t.replace(r,(function(){a.variables.__=arguments;for(var t=a.resolveVariables(o,i),e="E",n=0;n<t.length;n++){var r=t[n];if("object"==typeof r)if(t[n]="",r.changeCase&&r.local){var s=t[n+1];s&&"string"==typeof s&&("u"==r.changeCase?t[n]=s[0].toUpperCase():t[n]=s[0].toLowerCase(),t[n+1]=s.substr(1))}else r.changeCase&&(e=r.changeCase);else"U"==e?t[n]=r.toUpperCase():"L"==e&&(t[n]=r.toLowerCase())}return t.join("")}));return this.variables.__=null,s},this.resolveVariables=function(t,e){function i(e){var i=t.indexOf(e,r+1);-1!=i&&(r=i)}for(var n=[],r=0;r<t.length;r++){var o=t[r];if("string"==typeof o)n.push(o);else{if("object"!=typeof o)continue;if(o.skip)i(o);else{if(o.processed<r)continue;if(o.text){var a=this.getVariableValue(e,o.text);a&&o.fmtString&&(a=this.tmStrFormat(a,o)),o.processed=r,null==o.expectIf?a&&(n.push(a),i(o)):a?o.skip=o.elseBranch:i(o)}else(null!=o.tabstopId||null!=o.changeCase)&&n.push(o)}}}return n},this.insertSnippetForSelection=function(t,e){function i(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if("object"==typeof n){if(A[n.tabstopId])continue;n=e[t.lastIndexOf(n,i-1)]||{tabstopId:n.tabstopId}}e[i]=n}return e}var n=t.getCursorPosition(),r=t.session.getLine(n.row),o=t.session.getTabString(),a=r.match(/^\s*/)[0];n.column<a.length&&(a=a.slice(0,n.column)),e=e.replace(/\r/g,"");var s=this.tokenizeTmSnippet(e);s=(s=this.resolveVariables(s,t)).map((function(t){return"\n"==t?t+a:"string"==typeof t?t.replace(/\t/g,o):t}));var l=[];s.forEach((function(t,e){if("object"==typeof t){var i=t.tabstopId,n=l[i];if(n||((n=l[i]=[]).index=i,n.value=""),-1===n.indexOf(t)){n.push(t);var r=s.indexOf(t,e+1);if(-1!==r){var o=s.slice(e+1,r);o.some((function(t){return"object"==typeof t}))&&!n.value?n.value=o:o.length&&(!n.value||"string"!=typeof n.value)&&(n.value=o.join(""))}}}})),l.forEach((function(t){t.length=0}));for(var A={},c=0;c<s.length;c++){var h=s[c];if("object"==typeof h){var u=h.tabstopId,p=s.indexOf(h,c+1);if(A[u])A[u]===h&&(A[u]=null);else{var g=l[u],f="string"==typeof g.value?[g.value]:i(g.value);f.unshift(c+1,Math.max(0,p-c)),f.push(h),A[u]=h,s.splice.apply(s,f),-1===g.indexOf(h)&&g.push(h)}}}var m=0,y=0,b="";s.forEach((function(t){if("string"==typeof t){var e=t.split("\n");e.length>1?(y=e[e.length-1].length,m+=e.length-1):y+=t.length,b+=t}else t.start?t.end={row:m,column:y}:t.start={row:m,column:y}}));var v=t.getSelectionRange(),E=t.session.replace(v,b),I=new d(t),C=t.inVirtualSelectionMode&&t.selection.index;I.addTabstops(l,v.start,E,C)},this.insertSnippet=function(t,e){var i=this;if(t.inVirtualSelectionMode)return i.insertSnippetForSelection(t,e);t.forEachSelection((function(){i.insertSnippetForSelection(t,e)}),null,{keepOrder:!0}),t.tabstopManager&&t.tabstopManager.tabNext()},this.$getScope=function(t){var e=t.session.$mode.$id||"";if("html"===(e=e.split("/").pop())||"php"===e){"php"===e&&!t.session.$mode.inlinePhp&&(e="html");var i=t.getCursorPosition(),n=t.session.getState(i.row);"object"==typeof n&&(n=n[0]),n.substring&&("js-"==n.substring(0,3)?e="javascript":"css-"==n.substring(0,4)?e="css":"php-"==n.substring(0,4)&&(e="php"))}return e},this.getActiveScopes=function(t){var e=this.$getScope(t),i=[e],n=this.snippetMap;return n[e]&&n[e].includeScopes&&i.push.apply(i,n[e].includeScopes),i.push("_"),i},this.expandWithTab=function(t,e){var i=this,n=t.forEachSelection((function(){return i.expandSnippetForSelection(t,e)}),null,{keepOrder:!0});return n&&t.tabstopManager&&t.tabstopManager.tabNext(),n},this.expandSnippetForSelection=function(t,e){var i,n=t.getCursorPosition(),r=t.session.getLine(n.row),o=r.substring(0,n.column),a=r.substr(n.column),s=this.snippetMap;return this.getActiveScopes(t).some((function(t){var e=s[t];return e&&(i=this.findMatchingSnippet(e,o,a)),!!i}),this),!!i&&(e&&e.dryRun||(t.session.doc.removeInLine(n.row,n.column-i.replaceBefore.length,n.column+i.replaceAfter.length),this.variables.M__=i.matchBefore,this.variables.T__=i.matchAfter,this.insertSnippetForSelection(t,i.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(t,e,i){for(var n=t.length;n--;){var r=t[n];if((!r.startRe||r.startRe.test(e))&&((!r.endRe||r.endRe.test(i))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(e):[""],r.matchAfter=r.endRe?r.endRe.exec(i):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(e)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(i)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(t,e){function i(t){return t&&!/^\^?\(.*\)\$?$|^\\b$/.test(t)&&(t="(?:"+t+")"),t||""}function n(t,e,n){return t=i(t),e=i(e),n?(t=e+t)&&"$"!=t[t.length-1]&&(t+="$"):(t+=e)&&"^"!=t[0]&&(t="^"+t),new RegExp(t)}function r(t){t.scope||(t.scope=e||"_"),e=t.scope,a[e]||(a[e]=[],s[e]={});var i=s[e];if(t.name){var r=i[t.name];r&&l.unregister(r),i[t.name]=t}a[e].push(t),t.tabTrigger&&!t.trigger&&(!t.guard&&/^\w/.test(t.tabTrigger)&&(t.guard="\\b"),t.trigger=o.escapeRegExp(t.tabTrigger)),(t.trigger||t.guard||t.endTrigger||t.endGuard)&&(t.startRe=n(t.trigger,t.guard,!0),t.triggerRe=new RegExp(t.trigger,"",!0),t.endRe=n(t.endTrigger,t.endGuard,!0),t.endTriggerRe=new RegExp(t.endTrigger,"",!0))}var a=this.snippetMap,s=this.snippetNameMap,l=this;t||(t=[]),t&&t.content?r(t):Array.isArray(t)&&t.forEach(r),this._signal("registerSnippets",{scope:e})},this.unregister=function(t,e){function i(t){var i=r[t.scope||e];if(i&&i[t.name]){delete i[t.name];var o=n[t.scope||e],a=o&&o.indexOf(t);a>=0&&o.splice(a,1)}}var n=this.snippetMap,r=this.snippetNameMap;t.content?i(t):Array.isArray(t)&&t.forEach(i)},this.parseSnippetFile=function(t){t=t.replace(/\r/g,"");for(var e,i=[],n={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;e=r.exec(t);){if(e[1])try{n=JSON.parse(e[1]),i.push(n)}catch(t){}if(e[4])n.content=e[4].replace(/^\t/gm,""),i.push(n),n={};else{var o=e[2],a=e[3];if("regex"==o){var s=/\/((?:[^\/\\]|\\.)*)|$/g;n.guard=s.exec(a)[1],n.trigger=s.exec(a)[1],n.endTrigger=s.exec(a)[1],n.endGuard=s.exec(a)[1]}else"snippet"==o?(n.tabTrigger=a.match(/^\S*/)[0],n.name||(n.name=a)):n[o]=a}}return i},this.getSnippetByName=function(t,e){var i,n=this.snippetNameMap;return this.getActiveScopes(e).some((function(e){var r=n[e];return r&&(i=r[t]),!!i}),this),i}}).call(h.prototype);var d=function(t){if(t.tabstopManager)return t.tabstopManager;t.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(t)};(function(){this.attach=function(t){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=t,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(t){var e="r"==t.action[0],i=t.start,n=t.end,r=i.row,o=n.row-r,a=n.column-i.column;if(e&&(o=-o,a=-a),!this.$inChange&&e){var s=this.selectedTabstop;if(s&&!s.some((function(t){return c(t.start,i)<=0&&c(t.end,n)>=0})))return this.detach()}for(var l=this.ranges,A=0;A<l.length;A++){var h=l[A];h.end.row<i.row||(e&&c(i,h.start)<0&&c(n,h.end)>0?(this.removeRange(h),
A--):(h.start.row==r&&h.start.column>i.column&&(h.start.column+=a),h.end.row==r&&h.end.column>=i.column&&(h.end.column+=a),h.start.row>=r&&(h.start.row+=o),h.end.row>=r&&(h.end.row+=o),c(h.start,h.end)>0&&this.removeRange(h)))}l.length||this.detach()},this.updateLinkedFields=function(){var t=this.selectedTabstop;if(t&&t.hasLinkedRanges){this.$inChange=!0;for(var i=this.editor.session,n=i.getTextRange(t.firstNonLinked),r=t.length;r--;){var o=t[r];if(o.linked){var a=e.snippetManager.tmStrFormat(n,o.original);i.replace(o,a)}}this.$inChange=!1}},this.onAfterExec=function(t){t.command&&!t.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var t=this.editor.selection.lead,e=this.editor.selection.anchor,i=this.editor.selection.isEmpty(),n=this.ranges.length;n--;)if(!this.ranges[n].linked){var r=this.ranges[n].contains(t.row,t.column),o=i||this.ranges[n].contains(e.row,e.column);if(r&&o)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(t){var e=this.tabstops.length,i=this.index+(t||1);(i=Math.min(Math.max(i,1),e))==e&&(i=0),this.selectTabstop(i),0===i&&this.detach()},this.selectTabstop=function(t){this.$openTabstops=null;var e=this.tabstops[this.index];if(e&&this.addTabstopMarkers(e),this.index=t,(e=this.tabstops[this.index])&&e.length){if(this.selectedTabstop=e,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(e.firstNonLinked);else{var i=this.editor.multiSelect;i.toSingleRange(e.firstNonLinked.clone());for(var n=e.length;n--;)e.hasLinkedRanges&&e[n].linked||i.addRange(e[n].clone(),!0);i.ranges[0]&&i.addRange(i.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(t,e,i){if(this.$openTabstops||(this.$openTabstops=[]),!t[0]){var n=a.fromPoints(i,i);g(n.start,e),g(n.end,e),t[0]=[n],t[0].index=0}var r=[this.index+1,0],o=this.ranges;t.forEach((function(t,i){for(var n=this.$openTabstops[i]||t,s=t.length;s--;){var l=t[s],A=a.fromPoints(l.start,l.end||l.start);p(A.start,e),p(A.end,e),A.original=l,A.tabstop=n,o.push(A),n!=t?n.unshift(A):n[s]=A,l.fmtString?(A.linked=!0,n.hasLinkedRanges=!0):n.firstNonLinked||(n.firstNonLinked=A)}n.firstNonLinked||(n.hasLinkedRanges=!1),n===t&&(r.push(n),this.$openTabstops[i]=n),this.addTabstopMarkers(n)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(t){var e=this.editor.session;t.forEach((function(t){t.markerId||(t.markerId=e.addMarker(t,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(t){var e=this.editor.session;t.forEach((function(t){e.removeMarker(t.markerId),t.markerId=null}))},this.removeRange=function(t){var e=t.tabstop.indexOf(t);t.tabstop.splice(e,1),e=this.ranges.indexOf(t),this.ranges.splice(e,1),this.editor.session.removeMarker(t.markerId),t.tabstop.length||(-1!=(e=this.tabstops.indexOf(t.tabstop))&&this.tabstops.splice(e,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(t){e.snippetManager&&e.snippetManager.expandWithTab(t)||t.tabstopManager.tabNext(1)},"Shift-Tab":function(t){t.tabstopManager.tabNext(-1)},Esc:function(t){t.tabstopManager.detach()},Return:function(t){return!1}})}).call(d.prototype);var u={};u.onChange=s.prototype.onChange,u.setPosition=function(t,e){this.pos.row=t,this.pos.column=e},u.update=function(t,e,i){this.$insertRight=i,this.pos=t,this.onChange(e)};var p=function(t,e){0==t.row&&(t.column+=e.column),t.row+=e.row},g=function(t,e){t.row==e.row&&(t.column-=e.column),t.row-=e.row};t("./lib/dom").importCssString(".ace_snippet-marker {    -moz-box-sizing: border-box;    box-sizing: border-box;    background: rgba(194, 193, 208, 0.09);    border: 1px dotted rgba(211, 208, 235, 0.62);    position: absolute;}"),e.snippetManager=new h;var f=t("./editor").Editor;(function(){this.insertSnippet=function(t,i){return e.snippetManager.insertSnippet(this,t,i)},this.expandSnippet=function(t){return e.snippetManager.expandWithTab(this,t)}}).call(f.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(t,e,i){"use strict";var n=t("../virtual_renderer").VirtualRenderer,r=t("../editor").Editor,o=t("../range").Range,a=t("../lib/event"),s=t("../lib/lang"),l=t("../lib/dom"),A=function(t){var e=new n(t);e.$maxLines=4;var i=new r(e);return i.setHighlightActiveLine(!1),i.setShowPrintMargin(!1),i.renderer.setShowGutter(!1),i.renderer.setHighlightGutterLine(!1),i.$mouseHandler.$focusWaitTimout=0,i.$highlightTagPending=!0,i};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #CAD6FA;    z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid #abbffe;    margin-top: -1px;    background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover {    position: absolute;    z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller {   background: none;   border: none;   box-shadow: none;}.ace_rightAlignedText {    color: gray;    display: inline-block;    position: absolute;    right: 4px;    text-align: right;    z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #000;    text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete {    width: 280px;    z-index: 200000;    background: #fbfbfb;    color: #444;    border: 1px lightgray solid;    position: fixed;    box-shadow: 2px 3px 5px rgba(0,0,0,.2);    line-height: 1.4;}"),e.AcePopup=function(t){var e=l.createElement("div"),i=new A(e);t&&t.appendChild(e),e.style.display="none",i.renderer.content.style.cursor="default",i.renderer.setStyle("ace_autocomplete"),i.setOption("displayIndentGuides",!1),i.setOption("dragDelay",150);var n=function(){};i.focus=n,i.$isFocused=!0,i.renderer.$cursorLayer.restartTimer=n,i.renderer.$cursorLayer.element.style.opacity=0,i.renderer.$maxLines=8,i.renderer.$keepTextAreaAtCursor=!1,i.setHighlightActiveLine(!1),i.session.highlight(""),i.session.$searchHighlight.clazz="ace_highlight-marker",i.on("mousedown",(function(t){var e=t.getDocumentPosition();i.selection.moveToPosition(e),h.start.row=h.end.row=e.row,t.stop()}));var r,c=new o(-1,0,-1,1/0),h=new o(-1,0,-1,1/0);h.id=i.session.addMarker(h,"ace_active-line","fullLine"),i.setSelectOnHover=function(t){t?c.id&&(i.session.removeMarker(c.id),c.id=null):c.id=i.session.addMarker(c,"ace_line-hover","fullLine")},i.setSelectOnHover(!1),i.on("mousemove",(function(t){if(r){if(r.x!=t.x||r.y!=t.y){(r=t).scrollTop=i.renderer.scrollTop;var e=r.getDocumentPosition().row;c.start.row!=e&&(c.id||i.setRow(e),u(e))}}else r=t})),i.renderer.on("beforeRender",(function(){if(r&&-1!=c.start.row){r.$pos=null;var t=r.getDocumentPosition().row;c.id||i.setRow(t),u(t,!0)}})),i.renderer.on("afterRender",(function(){var t=i.getRow(),e=i.renderer.$textLayer,n=e.element.childNodes[t-e.config.firstRow];n!=e.selectedNode&&(e.selectedNode&&l.removeCssClass(e.selectedNode,"ace_selected"),e.selectedNode=n,n&&l.addCssClass(n,"ace_selected"))}));var d=function(){u(-1)},u=function(t,e){t!==c.start.row&&(c.start.row=c.end.row=t,e||i.session._emit("changeBackMarker"),i._emit("changeHoverMarker"))};i.getHoveredRow=function(){return c.start.row},a.addListener(i.container,"mouseout",d),i.on("hide",d),i.on("changeSelection",d),i.session.doc.getLength=function(){return i.data.length},i.session.doc.getLine=function(t){var e=i.data[t];return"string"==typeof e?e:e&&e.value||""};var p=i.session.bgTokenizer;return p.$tokenizeRow=function(t){var e=i.data[t],n=[];if(!e)return n;"string"==typeof e&&(e={value:e}),e.caption||(e.caption=e.value||e.name);for(var r,o,a=-1,s=0;s<e.caption.length;s++)o=e.caption[s],a!==(r=e.matchMask&1<<s?1:0)?(n.push({type:e.className||(r?"completion-highlight":""),value:o}),a=r):n[n.length-1].value+=o;if(e.meta){var l=i.renderer.$size.scrollerWidth/i.renderer.layerConfig.characterWidth,A=e.meta;A.length+e.caption.length>l-2&&(A=A.substr(0,l-e.caption.length-3)+"…"),n.push({type:"rightAlignedText",value:A})}return n},p.$updateOnChange=n,p.start=n,
i.session.$computeWidth=function(){return this.screenWidth=0},i.$blockScrolling=1/0,i.isOpen=!1,i.isTopdown=!1,i.autoSelect=!0,i.data=[],i.setData=function(t){i.setValue(s.stringRepeat("\n",t.length),-1),i.data=t||[],i.setRow(0)},i.getData=function(t){return i.data[t]},i.getRow=function(){return h.start.row},i.setRow=function(t){t=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,t)),h.start.row!=t&&(i.selection.clearSelection(),h.start.row=h.end.row=t||0,i.session._emit("changeBackMarker"),i.moveCursorTo(t||0,0),i.isOpen&&i._signal("select"))},i.on("changeSelection",(function(){i.isOpen&&i.setRow(i.selection.lead.row),i.renderer.scrollCursorIntoView()})),i.hide=function(){this.container.style.display="none",this._signal("hide"),i.isOpen=!1},i.show=function(t,e,n){var o=this.container,a=window.innerHeight,s=window.innerWidth,l=this.renderer,A=l.$maxLines*e*1.4,c=t.top+this.$borderSize;c>a/2&&!n&&c+e+A>a?(l.$maxPixelHeight=c-2*this.$borderSize,o.style.top="",o.style.bottom=a-c+"px",i.isTopdown=!1):(c+=e,l.$maxPixelHeight=a-c-.2*e,o.style.top=c+"px",o.style.bottom="",i.isTopdown=!0),o.style.display="",this.renderer.$textLayer.checkForSizeChanges();var h=t.left;h+o.offsetWidth>s&&(h=s-o.offsetWidth),o.style.left=h+"px",this._signal("show"),r=null,i.isOpen=!0},i.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},i.$imageSize=0,i.$borderSize=1,i}})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(t,e,i){"use strict";e.parForEach=function(t,e,i){var n=0,r=t.length;0===r&&i();for(var o=0;o<r;o++)e(t[o],(function(t,e){++n===r&&i(t,e)}))};var n=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;e.retrievePrecedingIdentifier=function(t,e,i){i=i||n;for(var r=[],o=e-1;o>=0&&i.test(t[o]);o--)r.push(t[o]);return r.reverse().join("")},e.retrieveFollowingIdentifier=function(t,e,i){i=i||n;for(var r=[],o=e;o<t.length&&i.test(t[o]);o++)r.push(t[o]);return r},e.getCompletionPrefix=function(t){var e,i=t.getCursorPosition(),n=t.session.getLine(i.row);return t.completers.forEach(function(t){t.identifierRegexps&&t.identifierRegexps.forEach(function(t){!e&&t&&(e=this.retrievePrecedingIdentifier(n,i.column,t))}.bind(this))}.bind(this)),e||this.retrievePrecedingIdentifier(n,i.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(t,e,i){"use strict";var n=t("./keyboard/hash_handler").HashHandler,r=t("./autocomplete/popup").AcePopup,o=t("./autocomplete/util"),a=(t("./lib/event"),t("./lib/lang")),s=t("./lib/dom"),l=t("./snippets").snippetManager,A=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new n,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new r(document.body||document.documentElement),this.popup.on("click",function(t){this.insertMatch(),t.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(t,e,i){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),t.keyBinding.addKeyboardHandler(this.keyboardHandler);var n=t.renderer;if(this.popup.setRow(this.autoSelect?0:-1),i)i&&!e&&this.detach();else{this.popup.setTheme(t.getTheme()),this.popup.setFontSize(t.getFontSize());var r=n.layerConfig.lineHeight,o=n.$cursorLayer.getPixelPosition(this.base,!0);o.left-=this.popup.getTextLeftOffset();var a=t.container.getBoundingClientRect();o.top+=a.top-n.layerConfig.offset,o.left+=a.left-t.renderer.scrollLeft,o.left+=n.gutterWidth,this.popup.show(o,r)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(t){var e=this.editor.selection.lead;(e.row!=this.base.row||e.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(t){var e=document.activeElement,i=this.editor.textInput.getElement(),n=t.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(t.relatedTarget),r=this.popup&&this.popup.container;e!=i&&e.parentNode!=r&&!n&&e!=this.tooltipNode&&t.relatedTarget!=i&&this.detach()},this.mousedownListener=function(t){this.detach()},this.mousewheelListener=function(t){this.detach()},this.goTo=function(t){var e=this.popup.getRow(),i=this.popup.session.getLength()-1;switch(t){case"up":e=e<=0?i:e-1;break;case"down":e=e>=i?-1:e+1;break;case"start":e=0;break;case"end":e=i}this.popup.setRow(e)},this.insertMatch=function(t,e){if(t||(t=this.popup.getData(this.popup.getRow())),!t)return!1;if(t.completer&&t.completer.insertMatch)t.completer.insertMatch(this.editor,t);else{if(this.completions.filterText)for(var i,n=this.editor.selection.getAllRanges(),r=0;i=n[r];r++)i.start.column-=this.completions.filterText.length,this.editor.session.remove(i);t.snippet?l.insertSnippet(this.editor,t.snippet):this.editor.execCommand("insertstring",t.value||t)}this.detach()},this.commands={Up:function(t){t.completer.goTo("up")},Down:function(t){t.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(t){t.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(t){t.completer.goTo("end")},Esc:function(t){t.completer.detach()},Return:function(t){return t.completer.insertMatch()},"Shift-Return":function(t){t.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(t){var e=t.completer.insertMatch();if(e||t.tabstopManager)return e;t.completer.goTo("down")},PageUp:function(t){t.completer.popup.gotoPageUp()},PageDown:function(t){t.completer.popup.gotoPageDown()}},this.gatherCompletions=function(t,e){var i=t.getSession(),n=t.getCursorPosition(),r=o.getCompletionPrefix(t);this.base=i.doc.createAnchor(n.row,n.column-r.length),this.base.$insertRight=!0;var a=[],s=t.completers.length;return t.completers.forEach((function(l,A){l.getCompletions(t,i,n,r,(function(i,n){!i&&n&&(a=a.concat(n)),e(null,{prefix:o.getCompletionPrefix(t),matches:a,finished:0==--s})}))})),!0},this.showPopup=function(t){this.editor&&this.detach(),this.activated=!0,this.editor=t,t.completer!=this&&(t.completer&&t.completer.detach(),t.completer=this),t.on("changeSelection",this.changeListener),t.on("blur",this.blurListener),t.on("mousedown",this.mousedownListener),t.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(t){if(t&&this.base&&this.completions){var e=this.editor.getCursorPosition(),i=this.editor.session.getTextRange({start:this.base,end:e});if(i==this.completions.filterText)return;return this.completions.setFilter(i),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=i||this.completions.filtered[0].snippet?void this.openPopup(this.editor,i,t):this.detach():this.detach()}var n=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(e,i){var r=function(){if(i.finished)return this.detach()}.bind(this),o=i.prefix,a=i&&i.matches;if(!a||!a.length)return r();if(0===o.indexOf(i.prefix)&&n==this.gatherCompletionsId){this.completions=new c(a),
this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(o);var s=this.completions.filtered;return s.length&&(1!=s.length||s[0].value!=o||s[0].snippet)?this.autoInsert&&1==s.length&&i.finished?this.insertMatch(s[0]):void this.openPopup(this.editor,o,t):r()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var t=this.popup,e=t.data,i=e&&(e[t.getHoveredRow()]||e[t.getRow()]),n=null;return i&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(t){return t.getDocTooltip&&(n=t.getDocTooltip(i)),n})),n||(n=i),"string"==typeof n&&(n={docText:n}),n&&(n.docHTML||n.docText)?void this.showDocTooltip(n):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(t){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var e=this.tooltipNode;t.docHTML?e.innerHTML=t.docHTML:t.docText&&(e.textContent=t.docText),e.parentNode||document.body.appendChild(e);var i=this.popup,n=i.container.getBoundingClientRect();e.style.top=i.container.style.top,e.style.bottom=i.container.style.bottom,window.innerWidth-n.right<320?(e.style.right=window.innerWidth-n.left+"px",e.style.left=""):(e.style.left=n.right+1+"px",e.style.right=""),e.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var t=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==t&&this.editor.focus(),this.tooltipNode=null,t.parentNode&&t.parentNode.removeChild(t)}},this.onTooltipClick=function(t){for(var e=t.target;e&&e!=this.tooltipNode;){if("A"==e.nodeName&&e.href){e.rel="noreferrer",e.target="_blank";break}e=e.parentNode}}}).call(A.prototype),A.startCommand={name:"startAutocomplete",exec:function(t){t.completer||(t.completer=new A),t.completer.autoInsert=!1,t.completer.autoSelect=!0,t.completer.showPopup(t),t.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var c=function(t,e){this.all=t,this.filtered=t,this.filterText=e||"",this.exactMatch=!1};(function(){this.setFilter=function(t){if(t.length>this.filterText&&0===t.lastIndexOf(this.filterText,0))var e=this.filtered;else e=this.all;this.filterText=t,e=(e=this.filterCompletions(e,this.filterText)).sort((function(t,e){return e.exactMatch-t.exactMatch||e.score-t.score}));var i=null;e=e.filter((function(t){var e=t.snippet||t.caption||t.value;return e!==i&&(i=e,!0)})),this.filtered=e},this.filterCompletions=function(t,e){var i=[],n=e.toUpperCase(),r=e.toLowerCase();t:for(var o,a=0;o=t[a];a++){var s=o.value||o.caption||o.snippet;if(s){var l,A,c=-1,h=0,d=0;if(this.exactMatch){if(e!==s.substr(0,e.length))continue t}else for(var u=0;u<e.length;u++){var p=s.indexOf(r[u],c+1),g=s.indexOf(n[u],c+1);if((l=p>=0&&(g<0||p<g)?p:g)<0)continue t;(A=l-c-1)>0&&(-1===c&&(d+=10),d+=A),h|=1<<l,c=l}o.matchMask=h,o.exactMatch=d?0:1,o.score=(o.score||0)-d,i.push(o)}}return i}}).call(c.prototype),e.Autocomplete=A,e.FilteredList=c})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(t,e,i){function n(t,e){var i=function(t,e){return t.getTextRange(r.fromPoints({row:0,column:0},e)).split(o).length-1}(t,e),n=t.getValue().split(o),a=Object.create(null),s=n[i];return n.forEach((function(t,e){if(t&&t!==s){var r=Math.abs(i-e),o=n.length-r;a[t]?a[t]=Math.max(o,a[t]):a[t]=o}})),a}var r=t("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;e.getCompletions=function(t,e,i,r,o){var a=n(e,i);o(null,Object.keys(a).map((function(t){return{caption:t,value:t,score:a[t],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(t,e,i){"use strict";var n=t("../snippets").snippetManager,r=t("../autocomplete").Autocomplete,o=t("../config"),a=t("../lib/lang"),s=t("../autocomplete/util"),l=t("../autocomplete/text_completer"),A={getCompletions:function(t,e,i,n,r){if(e.$mode.completer)return e.$mode.completer.getCompletions(t,e,i,n,r);var o=t.session.getState(i.row);r(null,e.$mode.getCompletions(o,e,i,n))}},c={getCompletions:function(t,e,i,r,o){var a=n.snippetMap,s=[];n.getActiveScopes(t).forEach((function(t){for(var e=a[t]||[],i=e.length;i--;){var n=e[i],r=n.name||n.tabTrigger;r&&s.push({caption:r,snippet:n.content,meta:n.tabTrigger&&!n.name?n.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),o(null,s)},getDocTooltip:function(t){"snippet"==t.type&&!t.docHTML&&(t.docHTML=["<b>",a.escapeHTML(t.caption),"</b>","<hr></hr>",a.escapeHTML(t.snippet)].join(""))}},h=[c,l,A];e.setCompleters=function(t){h.length=0,t&&h.push.apply(h,t)},e.addCompleter=function(t){h.push(t)},e.textCompleter=l,e.keyWordCompleter=A,e.snippetCompleter=c;var d={name:"expandSnippet",exec:function(t){return n.expandWithTab(t)},bindKey:"Tab"},u=function(t,e){p(e.session.$mode)},p=function(t){var e=t.$id;n.files||(n.files={}),g(e),t.modes&&t.modes.forEach(p)},g=function(t){if(t&&!n.files[t]){var e=t.replace("mode","snippets");n.files[t]={},o.loadModule(e,(function(e){e&&(n.files[t]=e,!e.snippets&&e.snippetText&&(e.snippets=n.parseSnippetFile(e.snippetText)),n.register(e.snippets||[],e.scope),e.includeScopes&&(n.snippetMap[e.scope].includeScopes=e.includeScopes,e.includeScopes.forEach((function(t){g("ace/mode/"+t)}))))}))}},f=function(t){var e=t.editor,i=e.completer&&e.completer.activated;if("backspace"===t.command.name)i&&!s.getCompletionPrefix(e)&&e.completer.detach();else if("insertstring"===t.command.name){s.getCompletionPrefix(e)&&!i&&(e.completer||(e.completer=new r),e.completer.autoInsert=!1,e.completer.showPopup(e))}},m=t("../editor").Editor;t("../config").defineOptions(m.prototype,"editor",{enableBasicAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:h),this.commands.addCommand(r.startCommand)):this.commands.removeCommand(r.startCommand)},value:!1},enableLiveAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:h),this.commands.on("afterExec",f)):this.commands.removeListener("afterExec",f)},value:!1},enableSnippets:{set:function(t){t?(this.commands.addCommand(d),this.on("changeMode",u),u(0,this)):(this.commands.removeCommand(d),this.off("changeMode",u))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(){}))},47168:function(){ace.define("ace/mode/bas_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(t,e,i){"use strict";var n=t("../lib/oop"),r=t("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"constant.numeric.hex",regex:/0[xX][\da-fA-F]+/},{token:"constant.numeric.time",regex:/(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)ms|(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)s(?:(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)ms)?|(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)m(?:(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)s)?(?:(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)ms)?|(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)h(?:(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)m)?(?:(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)s)?(?:(?:\d*\.?\d+(?:[eE][\+\-]?\d+)?)ms)?/},{token:"constant.numeric.percent_number",regex:/(?:\+|\-)?\d*\.?\d+(?:[eE][\-]?\d+)?%/},{token:"constant.numeric.number",regex:/(?:\+|\-)?\d*\.?\d+(?:[eE][\-]?\d+)?/},{token:"keyword.operator",regex:/=|\.|,/},{token:"keyword",regex:/def/,next:"keyword.class"},{token:"keyword",regex:/set/,next:"variable.id.name"},{token:"keyword",regex:/then/},{token:"variable.id",regex:/[a-zA-Z_$@]+[a-zA-Z_$@\d]*/},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",
regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],"keyword.class":[{token:"constant.language.class",regex:/text|button|tween/,next:"variable.id.name"},{token:"text.class",regex:/[a-zA-Z_$@]+[a-zA-Z_$@\d]*/,next:"variable.id.name"}],"variable.id.name":[{token:"variable.id.name",regex:/[a-zA-Z_$@]+[a-zA-Z_$@\d]*/,next:"start"}]}};n.inherits(o,r),e.BasHighlightRules=o})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(t,e,i){"use strict";var n=t("../range").Range,r=function(){};(function(){this.checkOutdent=function(t,e){return!!/^\s+$/.test(t)&&/^\s*\}/.test(e)},this.autoOutdent=function(t,e){var i=t.getLine(e).match(/^(\s*\})/);if(!i)return 0;var r=i[1].length,o=t.findMatchingBracket({row:e,column:r});if(!o||o.row==e)return 0;var a=this.$getIndent(t.getLine(o.row));t.replace(new n(e,0,e,r-1),a)},this.$getIndent=function(t){return t.match(/^\s*/)[0]}}).call(r.prototype),e.MatchingBraceOutdent=r})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(t,e,i){"use strict";var n=t("../../lib/oop"),r=t("../../range").Range,o=t("./fold_mode").FoldMode,a=e.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};n.inherits(a,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,e,i){var n=t.getLine(i);if(this.singleLineBlockCommentRe.test(n)&&!this.startRegionRe.test(n)&&!this.tripleStarBlockCommentRe.test(n))return"";var r=this._getFoldWidgetBase(t,e,i);return!r&&this.startRegionRe.test(n)?"start":r},this.getFoldWidgetRange=function(t,e,i,n){var r,o=t.getLine(i);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(t,o,i);if(r=o.match(this.foldingStartMarker)){var a=r.index;if(r[1])return this.openingBracketBlock(t,r[1],i,a);var s=t.getCommentFoldRange(i,a+r[0].length,1);return s&&!s.isMultiLine()&&(n?s=this.getSectionRange(t,i):"all"!=e&&(s=null)),s}if("markbegin"!==e&&(r=o.match(this.foldingStopMarker))){a=r.index+r[0].length;return r[1]?this.closingBracketBlock(t,r[1],i,a):t.getCommentFoldRange(i,a,-1)}},this.getSectionRange=function(t,e){for(var i=t.getLine(e),n=i.search(/\S/),o=e,a=i.length,s=e+=1,l=t.getLength();++e<l;){var A=(i=t.getLine(e)).search(/\S/);if(-1!==A){if(n>A)break;var c=this.getFoldWidgetRange(t,"all",e);if(c){if(c.start.row<=o)break;if(c.isMultiLine())e=c.end.row;else if(n==A)break}s=e}}return new r(o,a,s,t.getLine(s).length)},this.getCommentRegionBlock=function(t,e,i){for(var n=e.search(/\s*$/),o=t.getLength(),a=i,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++i<o;){e=t.getLine(i);var A=s.exec(e);if(A&&(A[1]?l--:l++,!l))break}if(i>a)return new r(a,n,i,e.length)}}.call(a.prototype)})),ace.define("ace/mode/bas_completions",["require","exports","module"],(function(t,e,i){"use strict";var n=["def","text","set","linear","ease","ease-in","ease-out","ease-in-out","then","button","path"],r=["content","x","y","alpha","color","bold","textShadow","strokeWidth","strokeColor","anchorX","anchorY","zIndex","rotateX","rotateY","rotateZ","parent","fontSize","fontFamily","text","textColor","textAlpha","fillColor","fillAlpha","duration","target","av","bangumi","seek","page","time","seasonId","episodeId","d","scale","borderWidth","borderColor","borderAlpha","viewBox","width","height"],o=["0x000000","0xffffff","av","bangumi","seek"],a=function(){};(function(){this.getCompletions=function(t,e,i,n){if(!e.getTokenAt(i.row,i.column))return[];var r=e.getLine(i.row).substr(0,i.column),o=e.getLines(0,i.row-1).join("")+r;return/=(.*)*$/.test(r)?this.getPropertyValueCompletions(t,e,i,n):/{[^}]*$/.test(o)?this.getPropertyCompletions(t,e,i,n):this.getKeyWordCompletions(t,e,i,n)},this.getPropertyValueCompletions=function(t,e,i,n){return o.map((function(t){return{caption:t,snippet:t,meta:"property value",score:Number.MAX_VALUE}}))},this.getPropertyCompletions=function(t,e,i,n){return r.map((function(t){return{caption:t,snippet:t+" = ",meta:"property",score:Number.MAX_VALUE}}))},this.getKeyWordCompletions=function(t,e,i,r){return n.map((function(t){return{caption:t,snippet:t+" ",meta:"keyword",score:Number.MAX_VALUE}}))}}).call(a.prototype),e.BasCompletions=a})),ace.define("ace/mode/bas",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/bas_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/bas_completions","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(t,e,i){"use strict";var n=t("../lib/oop"),r=t("./text").Mode,o=t("./bas_highlight_rules").BasHighlightRules,a=t("./matching_brace_outdent").MatchingBraceOutdent,s=(t("../worker/worker_client").WorkerClient,t("./bas_completions").BasCompletions),l=t("./behaviour/cstyle").CstyleBehaviour,A=t("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new l,this.$completer=new s,this.foldingRules=new A};n.inherits(c,r),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(t,e,i){var n=this.$getIndent(e);"start"==t&&(e.match(/^.*[\{\(\[]\s*$/)&&(n+=i));return n},this.checkOutdent=function(t,e,i){return this.$outdent.checkOutdent(e,i)},this.autoOutdent=function(t,e,i){this.$outdent.autoOutdent(e,i)},this.getCompletions=function(t,e,i,n){return this.$completer.getCompletions(t,e,i,n)},this.createWorker=function(){},this.$id="ace/mode/bas"}.call(c.prototype),e.Mode=c}))},64832:function(){ace.define("ace/snippets/bas",["require","exports","module"],(function(t,e,i){"use strict";e.snippetText="",e.scope="bas"}))},57400:function(){ace.define("ace/snippets/text",["require","exports","module"],(function(t,e,i){"use strict";e.snippetText=void 0,e.scope="text"}))},73706:function(){ace.define("ace/theme/crimson_editor",["require","exports","module","ace/lib/dom"],(function(t,e,i){e.isDark=!1,
e.cssText='.ace-crimson-editor .ace_gutter {background: #ebebeb;color: #333;overflow : hidden;}.ace-crimson-editor .ace_gutter-layer {width: 100%;text-align: right;}.ace-crimson-editor .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-crimson-editor {background-color: #FFFFFF;color: rgb(64, 64, 64);}.ace-crimson-editor .ace_cursor {color: black;}.ace-crimson-editor .ace_invisible {color: rgb(191, 191, 191);}.ace-crimson-editor .ace_identifier {color: black;}.ace-crimson-editor .ace_keyword {color: blue;}.ace-crimson-editor .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-crimson-editor .ace_constant.ace_language {color: rgb(255, 156, 0);}.ace-crimson-editor .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-crimson-editor .ace_invalid {text-decoration: line-through;color: rgb(224, 0, 0);}.ace-crimson-editor .ace_fold {}.ace-crimson-editor .ace_support.ace_function {color: rgb(192, 0, 0);}.ace-crimson-editor .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-crimson-editor .ace_support.ace_type,.ace-crimson-editor .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-crimson-editor .ace_keyword.ace_operator {color: rgb(49, 132, 149);}.ace-crimson-editor .ace_string {color: rgb(128, 0, 128);}.ace-crimson-editor .ace_comment {color: rgb(76, 136, 107);}.ace-crimson-editor .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-crimson-editor .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-crimson-editor .ace_constant.ace_numeric {color: rgb(0, 0, 64);}.ace-crimson-editor .ace_variable {color: rgb(0, 64, 128);}.ace-crimson-editor .ace_xml-pe {color: rgb(104, 104, 91);}.ace-crimson-editor .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-crimson-editor .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-crimson-editor .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-crimson-editor .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-crimson-editor .ace_marker-layer .ace_active-line {background: rgb(232, 242, 254);}.ace-crimson-editor .ace_gutter-active-line {background-color : #dcdcdc;}.ace-crimson-editor .ace_meta.ace_tag {color:rgb(28, 2, 255);}.ace-crimson-editor .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-crimson-editor .ace_string.ace_regex {color: rgb(192, 0, 192);}.ace-crimson-editor .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e.cssClass="ace-crimson-editor",t("../lib/dom").importCssString(e.cssText,e.cssClass)}))},46792:function(t,e,i){"use strict";i.r(e),i.d(e,{LoudnessMeterMode:function(){return I},meterFactory:function(){return C}});var n=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,A=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;function c(t){if("createIIRFilter"in t){const e=function(t){const e=.7071752369554196,i=Math.tan(1681.974450955533*Math.PI/t),n=Math.pow(10,.19999219269866736),r=Math.pow(n,.4996667741545416),o=1+i/e+i*i;return{numerators:[(n+r*i/e+i*i)/o,2*(i*i-n)/o,(n-r*i/e+i*i)/o],denominators:[1,2*(i*i-1)/o,(1-i/e+i*i)/o]}}(t.sampleRate);return t.createIIRFilter(e.numerators,e.denominators)}{const e=t.createBiquadFilter();return e.type="highshelf",e.frequency.value=1500,e.gain.value=4,e}}function h(t){if("createIIRFilter"in t){const e=function(t){const e=.5003270373238773,i=Math.tan(38.13547087602444*Math.PI/t);return{numerators:[1,-2,1],denominators:[1,2*(i*i-1)/(1+i/e+i*i),(1-i/e+i*i)/(1+i/e+i*i)]}}(t.sampleRate);return t.createIIRFilter(e.numerators,e.denominators)}{const e=t.createBiquadFilter();return e.type="highpass",e.frequency.value=38,e.Q.value=-6,e}}var d={on:function(t,e){(this._listeners[t]=this._listeners[t]||[]).push(e)},off:function(t,e){t?e?this._listeners[t]=(this._listeners[t]||[]).filter((t=>t!==e)):delete this._listeners[t]:this._listeners={}},trigger:function(t,e){(this._listeners[t]||[]).forEach((i=>{i({type:t,data:e})}))}};class u{constructor(t,e,i){this.source=t.source,this.context=this.source.context,this.name=e,this.uri=i,this.node.then((e=>{e.port.onmessage=function(e){t.trigger(e.data.type,e.data)}}))}get node(){return this._node||(this._node=new Promise(((t,e)=>this.context.audioWorklet.addModule(this.uri).then((()=>t(new AudioWorkletNode(this.context,this.name)))).catch((t=>{console.error("Failed to add audio worklet module",t),e(t)}))))),this._node}message(t){this.node.then((e=>{e.port.postMessage(t)}))}}class p{constructor(t,e){this.source=t.source,this.context=this.source.context,this.worker=new Worker(e),this.worker.onmessage=e=>{t.trigger(e.data.type,e.data)}}message(t){this.worker.postMessage(t)}get node(){return this._node||(this._node=new Promise(((t,e)=>{t(this.context.createGain())}))),this._node}}function g({context:t,source:e,controller:i}){const n=function(t){if(t.offline)return new p(t,t.workerUri);if("AudioWorkletNode"in window)return new u(t,"loudness-lufs-worklet",t.workletUri);throw new Error("not support workletNode")}(i);return n.node.then((t=>{e.connect(t)})),n}class f extends Error{constructor(t){super(t),this.name="InvalidStateError"}}const m=window.OfflineAudioContext||window.webkitOfflineAudioContext;class y{constructor(t){this.state="inactive",this._listeners={},Object.assign(this,d),this.workerUri=t.workerUri,this.workletUri=t.workletUri,this.source=t.source,this.weightedSource=t.weightedSource,this.context=this.source.context,this.offline=this.context instanceof m,this.workerAdapter.message({type:"initialize",attributes:{sampleRate:this.context.sampleRate,modes:t.modes}})}get workerAdapter(){return this._workerAdapter=this._workerAdapter||new g({controller:this,context:this.context,source:this.weightedSource||this.source})}input(t){const e=t.length,i=t.numberOfChannels;this.offline&&this.workerAdapter.message({type:"set",key:"duration",value:1e3*t.duration});for(var n=0;n<e;n+=16384){const e=[];for(var r=0;r<i;r++)e[r]=new Float32Array(16384),t.copyFromChannel(e[r],r,n);this.workerAdapter.message({type:"process",input:e})}}start(){"inactive"!==this.state&&this._throwInvalidStateErrorFor("start"),this.state="recording",this.workerAdapter.message({type:"record"}),this.offline&&(this.source.start(),this._startRendering().then((t=>this.input(t))))}pause(){"inactive"===this.state&&this._throwInvalidStateErrorFor("pause"),this.state="paused",this.workerAdapter.message({type:"pause"})}resume(){"inactive"===this.state&&this._throwInvalidStateErrorFor("resume"),this.state="recording",this.workerAdapter.message({type:"resume"})}stop(){"inactive"===this.state&&this._throwInvalidStateErrorFor("stop"),this.state="inactive",this.workerAdapter.message({type:"stop"})}reset(){this.workerAdapter.message({type:"reset"})}isRunning(){return"recording"===this.state||"paused"===this.state}reconnect(){this._preFilter&&this.source.connect(this._preFilter)}destroy(){this.stop(),this.workerAdapter.message({type:"destroy"}),this._listeners={}}_startRendering(){return new Promise(((t,e)=>{this.context.startRendering(),this.context.addEventListener("complete",(e=>{t(e.renderedBuffer)}))}))}_throwInvalidStateErrorFor(t){throw new f(`Failed to execute '${t}' on 'Needles': The Needles's state is '${this.state}'.`)}}function b(t){t.modes=t.modes||["momentary","short-term","integrated"];const e=t.source.context,i=c(e),n=h(e);t.source.connect(i),i.connect(n);const d=new y(((t,e)=>r(t,o(e)))(((t,e)=>{for(var i in e||(e={}))s.call(e,i)&&A(t,i,e[i]);if(a)for(var i of a(e))l.call(e,i)&&A(t,i,e[i]);return t})({},t),{weightedSource:n}));return d._preFilter=i,d}var v=i(61891),E=i.n(v),I=(t=>(t.Momentary="momentary",t.ShortTerm="short-term",t.Integrated="integrated",t))(I||{});const C={createLufsMeter:function(t){if(!t.sourceNode)throw new Error("sourceNode is required");return b({workletUri:E(),source:t.sourceNode,modes:t.modes})}}},58927:function(t,e,i){"use strict";i.r(e),i.d(e,{
default:function(){return T}});var n=i(50282),r=i.n(n),o=i(75572),a=i.n(o),s=i(64423),l=i.n(s),A=i(52182),c=i.n(A),h=i(73632),d=i.n(h),u=i(40100),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals;var g={extend:(t,e)=>{const i={};for(const e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);for(const t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i},escapeSpecialChars:t=>t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\f/g,"\\f"),nowTime:()=>performance?performance.now():+new Date,string2DOM:t=>{const e=document.createRange();return e.createContextualFragment.bind(e)(t).childNodes[0]},colorFromInt:function(t){return"#"+("00000"+t.toString(16)).slice(-6)},rgbaFormat:function(t,e){const i=("00000"+t.toString(16)).slice(-6);return`rgba(${parseInt(i.slice(0,2),16)},${parseInt(i.slice(2,4),16)},${parseInt(i.slice(4,6),16)},${e})`},htmlEncode:function(t,e,i){return i||(t=t.replace(/&/g,"").replace(/</g,"").replace(/>/g,"").replace(/"/g,"").replace(/'/g,"").replace(/\//g,"").replace(/:/g,"").replace(/;/g,"")),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2f;").replace(/ /g,e?" ":"&nbsp;").replace(/\n/g,"<br>")},browser:{get version(){const t=navigator.userAgent.toLowerCase(),e=/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(t),i=/(chrome)[ \/]([\w.]+)/.exec(t)||"",n={browser:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0"};let r=0;return n.browser&&(r=parseInt(n.version,10)),{browser:n.browser,version:r,linux:/Linux/i.test(t),webKit:/AppleWebKit/i.test(t),gecko:/Gecko/i.test(t)&&!/KHTML/i.test(t),trident:/Trident/i.test(t),presto:/Presto/i.test(t),mobile:/AppleWebKit.*Mobile.*/i.test(t),iOS:/Mac OS X[\s_\-\/](\d+[.\-_]\d+[.\-_]?\d*)/i.test(t),iPhone:/iPhone/i.test(t),iPad:/iPad/i.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,webApp:!/Safari/i.test(t),android:/Android/i.test(t),windowsPhone:/Windows Phone/i.test(t),microMessenger:/MicroMessenger/i.test(t),msie:/msie [\w.]+/i.test(t),edge:/edge/i.test(t),edgeBuild16299:/(\s|^)edge\/16.16299(\s|$)/i.test(t),safari:e,safariSupportMSE:e&&/Version\/1\d/i.test(t)}}}};var f=class{constructor(t){this.prefix=["","-webkit-"],this.endProgress={},this.xProportion=t.container.offsetWidth/100,this.yProportion=t.container.offsetHeight/100,this.container=t.container,this.dm=t.dm,this.percentObj2Num(this.dm),this.defs=this.dm.defs,this.sets=this.dm.sets,this.startTime=t.startTime,this.options=t,this.init()}init(){const t=this.itemsTemplate();if(t){const e=100*this.xProportion/2/Math.tan(Math.PI/180*27.5);this.ele=g.string2DOM(`<div class="bas-danmaku-item-wrap" style="perspective:${e}px;-webkit-perspective:${e}px;">${this.animationTemplate()}${t}</div>`);for(let t=0;t<this.defs.length;t++){const e=this.defs[t].name;this.endProgress[e]=0,this.transience(e)}this.bindEvents(this.ele)}}animationCallback(t){const e=t.animationName.split("-")[2];this.endProgress[e]?this.endProgress[e]++:this.endProgress[e]=1,this.transience(e),this.options.animationEndCallback(this),this.endProgress[e]!==this.dm.def2set[e].length&&"duration"!==t.animationName.split("-")[3]||(t.target.parentNode.removeChild(t.target),0===this.ele.getElementsByClassName("bas-danmaku-item").length&&this.container.removeChild(this.ele))}transience(t){const e=this.endProgress[t],i=this.dm.def2set[t][e];if(i&&i.valueEnd&&(i.valueEnd.content&&(this.ele.querySelector(`.bas-danmaku-item--${t} .bas-danmaku-item-inner`).innerHTML=i.valueEnd.content),i.valueEnd.text&&(this.ele.querySelector(`.bas-danmaku-item--${t} .bas-danmaku-item-inner`).innerHTML=i.valueEnd.text),i.valueEnd.fontSize)){const e=i.valueEnd.fontSize;e>=12?this.ele.querySelector(`.bas-danmaku-item--${t} .bas-danmaku-item-inner`).style.fontSize=`${e}px`:(this.ele.querySelector(`.bas-danmaku-item--${t} .bas-danmaku-item-inner`).style.fontSize="12px",this.ele.querySelector(`.bas-danmaku-item--${t} .bas-danmaku-item-inner`).style.transform=`scale(${e/12})`)}}percentObj2Num(t){const e=t=>{for(const e in t)if(t.hasOwnProperty(e))if(void 0===t[e])delete t[e];else{let i;if(t[e].numType)i=t[e];else{if(!t[e].value||!t[e].value.numType)continue;i=t[e].value}if("number"===i.numType)switch(e){case"x":i=i.value/this.xProportion;break;case"y":i=i.value/this.yProportion;break;default:i=i.value}else if("percent"===i.numType)switch(e){case"fontSize":case"width":i=i.value*this.xProportion;break;case"height":i=i.value*this.yProportion;break;default:i=i.value}t[e].numType?t[e]=i:t[e].value&&t[e].value.numType&&(t[e].value=i)}};for(let i=0;i<t.defs.length;i++)e(t.defs[i].attrs);for(let i=0;i<t.sets.length;i++)if(t.sets[i].items)for(let n=0;n<t.sets[i].items.length;n++)e(t.sets[i].items[n].attrs);else e(t.sets[i].attrs);for(const i in t.def2set)if({}.hasOwnProperty.call(t.def2set,i))for(let n=0;n<t.def2set[i].length;n++)e(t.def2set[i][n].valueEnd),e(t.def2set[i][n].valueStart)}itemsTemplate(){let t="";for(let e=0;e<this.defs.length;e++)this.defs[e].attrs.parent||(t+=this.itemsTemplateOne(this.defs[e]));return t}itemsTemplateOne(t,e=this.xProportion,i=this.yProportion){const n=(t,e)=>{let i="";for(let n=0;n<t.length;n++)i+="duration"===e?t[n][e]+"s":"delay"===e?t[n][e]-this.startTime+"s":t[n][e],n!==t.length-1&&(i+=",");return i},r=t.attrs,o=this.dm.def2set[t.name];let a,s=`${this.prefixCSS("animation-name",n(o,"name"))}${this.prefixCSS("animation-duration",n(o,"duration"))}${this.prefixCSS("animation-timing-function",n(o,"easing"))}${this.prefixCSS("animation-delay",n(o,"delay"))}`;for(const t in r)r.hasOwnProperty(t)&&(s+=this.getStyleOut(t,r[t]));switch(t.type){case"DefText":let n=this.setRotate(r);s+=`transform:translate(${r.x*e}px, ${r.y*i}px)${n} scale(${r.scale});`,a=this.getStyleIn(r);let o="";for(let e=0;e<this.defs.length;e++)this.defs[e].attrs.parent===t.name&&(this.defSize(t),o+=this.itemsTemplateOne(this.defs[e],t.attrs.width/100,t.attrs.height/100));return`<div class="bas-danmaku-item bas-danmaku-item-text bas-danmaku-item--${t.name}" style="${s}"><div class="bas-danmaku-item-inner" style="${a}">${r.content}${o}</div></div>`;case"DefButton":return s+=`transform:translate(${r.x*e}px, ${r.y*i}px) scale(${r.scale});color:${g.rgbaFormat(r.textColor,r.textAlpha)};background-color:${g.rgbaFormat(r.fillColor,r.fillAlpha)};`,a=this.getStyleIn(r),`<div class="bas-danmaku-item bas-danmaku-item-button bas-danmaku-item--${t.name}" style="${s}"><div class="bas-danmaku-item-inner" style="${a}">${r.text}</div></div>`;case"DefPath":let l=this.setRotate(r);s+=`transform:translate(${r.x*e}px, ${r.y*i}px)${l};`,a=this.getStyleIn(r);let A,c="";for(let e=0;e<this.defs.length;e++)this.defs[e].attrs.parent===t.name&&(this.defSize(t),c+=this.itemsTemplateOne(this.defs[e],t.attrs.width/100,t.attrs.height/100));r.viewBox?A=r.width||r.height?`viewBox="${r.viewBox}" ${r.width?`width="${r.width*(r.scale||1)}"`:""} ${r.height?`height="${r.height*(r.scale||1)}"`:""}`:`viewBox="${r.viewBox}" width="${parseInt(r.viewBox.split(" ")[2],10)*(r.scale||1)}"`:r.scale&&(A=`style="transform:scale(${r.scale});transform-origin: 0 0;overflow:visible;"`);const h=`fill="${g.rgbaFormat(r.fillColor,r.fillAlpha)}" stroke="${g.rgbaFormat(r.borderColor,r.borderAlpha)}" stroke-dasharray=${r.strokeDasharray} stroke-dashoffset=${r.strokeDashoffset} stroke-width="${r.borderWidth}" d="${r.d}"`;return`<div class="bas-danmaku-item bas-danmaku-item-path bas-danmaku-item--${t.name}" style="${s}"><div class="bas-danmaku-item-inner" style="${a}"><svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" ${A}><path ${h}></svg>${c}</div></div>`}}setRotate(t){let e="";return t.rotateX&&(e+=` rotateX(${t.rotateX}deg)`),t.rotateY&&(e+=` rotateY(${t.rotateY}deg)`),t.rotateZ&&(e+=` rotateZ(${t.rotateZ}deg)`),e}findParent(t){for(let e=0;e<this.defs.length;e++)if(this.defs[e].name===t)return this.defs[e];return null}defSize(t){
!t||t.attrs.width&&t.attrs.height||(this.measureCanvas||(this.measureCanvas=document.createElement("canvas").getContext("2d")),this.measureCanvas.font=`${t.attrs.bold?"bold ":""} ${t.attrs.fontSize}px ${t.attrs.fontFamily}`,t.attrs.width=this.measureCanvas.measureText(t.attrs.content).width,t.attrs.height=t.attrs.fontSize)}getStyleIn(t){let e="",i="";return t.strokeWidth&&t.strokeColor&&(e+=`-webkit-text-stroke:${t.strokeWidth}px ${g.colorFromInt(t.strokeColor)};`),t.hasOwnProperty("fontFamily")&&(e+=`font-family:&quot;${t.fontFamily.split(",").join("&quot;,&quot;")}&quot;,sans-serif;`),t.hasOwnProperty("textShadow")&&(e+=`text-shadow:${t.textShadow?"rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) -1px 0px 1px":"none"};`),t.hasOwnProperty("bold")&&(e+=`font-weight:${t.bold?"bold":"normal"};`),t.hasOwnProperty("fontSize")&&(t.fontSize>=12?e+=`font-size:${t.fontSize}px;`:(e+="font-size:12px;",i+=`scale(${t.fontSize/12}) `)),t.hasOwnProperty("anchorX")&&t.hasOwnProperty("anchorY")&&(i+=`translate(${100*-t.anchorX}%,${100*-t.anchorY}%)`),i&&(e+=`transform:${i};`),e}getStyleOut(t,e){switch(t){case"alpha":return`opacity:${e};`;case"color":return`color:${g.colorFromInt(e)};`;case"zIndex":return`z-index:${e};`;default:return""}}animationTemplate(){let t="";for(let e=0;e<this.defs.length;e++){const i=this.dm.def2set[this.defs[e].name];for(let n=0;n<i.length;n++)if(this.defs[e].attrs.parent){const r=this.findParent(this.defs[e].attrs.parent);r&&(this.defSize(r),t+=this.keyframesTemplate(this.defs[e],i[n].name,i[n].valueStart,i[n].valueEnd,r.attrs.width/100,r.attrs.height/100))}else t+=this.keyframesTemplate(this.defs[e],i[n].name,i[n].valueStart,i[n].valueEnd)}return`<style>${t}</style>`}keyframesTemplate(t,e,i,n,r=this.xProportion,o=this.yProportion){let a="",s="";if(i&&(void 0!==i.x||void 0!==i.y||void 0!==i.rotateX||void 0!==i.rotateY||void 0!==i.rotateZ||void 0!==i.scale)||n&&(void 0!==n.x||void 0!==n.y||void 0!==n.rotateX||void 0!==n.rotateY||void 0!==n.rotateZ||void 0!==n.scale)){const e=e=>{let r;return r=n&&void 0!==n[e]?n[e]:i&&void 0!==i[e]?i[e]:t.attrs[e]?t.attrs[e]:0,r},l=e("x")*r,A=e("y")*o,c=e("rotateX"),h=e("rotateY"),d=e("rotateZ"),u="DefPath"===t.type?1:e("scale"),p=e=>{let n;return n=i&&void 0!==i[e]?i[e]:void 0!==t.attrs[e]?t.attrs[e]:0,n},g=p("x")*r,f=p("y")*o,m=p("rotateX"),y=p("rotateY"),b=p("rotateZ"),v="DefPath"===t.type?1:p("scale");switch(t.type){case"DefText":case"DefPath":a+=`transform:translate(${g}px, ${f}px) rotateX(${m}deg) rotateY(${y}deg) rotateZ(${b}deg) scale(${v});`,s+=`transform:translate(${l}px, ${A}px) rotateX(${c}deg) rotateY(${h}deg) rotateZ(${d}deg) scale(${u});`;break;case"DefButton":a+=`transform:translate(${g}px, ${f}px);`,s+=`transform:translate(${l}px, ${A}px);`}}for(const t in i)i.hasOwnProperty(t)&&(a+=this.getStyleOut(t,i[t]));for(const t in n)n.hasOwnProperty(t)&&(s+=this.getStyleOut(t,n[t]));return s||(s="line-height:1;"),a?`\n@-webkit-keyframes ${e} {\n    0% { ${a} }\n    100% { ${s} }\n}\n@keyframes ${e} {\n    0% { ${a} }\n    100% { ${s} }\n}`:`\n@-webkit-keyframes ${e} {\n    100% { ${s} }\n}\n@keyframes ${e} {\n    100% { ${s} }\n}`}prefixCSS(t,e){let i="";for(let n=0;n<this.prefix.length;n++)i+=`${this.prefix[n]}${t}:${e};`;return i}bindEvents(t){t.addEventListener("animationend",(t=>this.animationCallback(t))),t.addEventListener("webkitAnimationEnd",(t=>this.animationCallback(t)));for(let e=0;e<this.defs.length;e++)this.defs[e].attrs.target&&t.getElementsByClassName(`bas-danmaku-item--${this.defs[e].name}`)[0].addEventListener("click",(()=>{"av"===this.defs[e].attrs.target.objType?(window.open(`//www.bilibili.com/video/${this.defs[e].attrs.target.bvid?this.defs[e].attrs.target.bvid:"av"+this.defs[e].attrs.target.av}/?p=${this.defs[e].attrs.target.page||"1"}${this.defs[e].attrs.target.time?"&t="+this.defs[e].attrs.target.time/1e3:""}`),this.options.pauseFunc&&this.options.pauseFunc()):"bangumi"===this.defs[e].attrs.target.objType?(window.open(`//www.bilibili.com/bangumi/play/ss${this.defs[e].attrs.target.seasonId}${this.defs[e].attrs.target.time?"?t="+this.defs[e].attrs.target.time/1e3:""}#${this.defs[e].attrs.target.episodeId}`),this.options.pauseFunc&&this.options.pauseFunc()):"seek"===this.defs[e].attrs.target.objType&&this.options.seekFunc&&this.options.seekFunc(this.defs[e].attrs.target.time/1e3)}))}destroy(){}},m=(t,e)=>{const i={};for(const e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);for(const t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i},y=function(t,e,i){return i||(t=t.replace(/&/g,"").replace(/</g,"").replace(/>/g,"").replace(/"/g,"").replace(/'/g,"").replace(/\//g,"").replace(/:/g,"").replace(/;/g,"")),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2f;").replace(/ /g,e?" ":"&nbsp;").replace(/\n/g,"<br>")};class b{constructor(){this.class_names=["text","button","path"],this.variableTable={},this.varibaleRegOrder=0,this.templateTable={},this.tpl_name_id=0,this.obj_name_id=0,this.allowsVariable=[]}on_String_value(t){let e=[];for(let i of t)switch(i.type){case"char":{let t=null;switch(i.value.charAt(1)){case"n":t="\n";break;case"r":t="\r";break;case"t":t="\t";break;case"\\":t="\\";break;case"'":t="'";break;case'"':t='"';break;default:t=i.charAt(1)}e.push(t)}break;case"unicode":{let t=i.value.substr(2);e.push(String.fromCharCode(parseInt(t,16)))}break;case"ascii":{let t=i.value.substr(2);e.push(String.fromCharCode(parseInt(t,16)))}break;case"seg":e.push(i.value)}return new v({type:"String",value:e.join("")})}on_Num_value(t,e,i){return new v({type:"Num",value:{numType:(i="%"===i)?"percent":"number",value:(t="+"===t?1:-1)*parseFloat(e)}})}on_Time_value(t){let e=!0,i=0,n=0,r="",o=null;for(;o=e?t.match(/^(\d*\.?\d+(?:[eE][\+\-]?\d+)?)(.*)$/):t.match(/^([hms]+)(.*)$/),null!=o;){if(r=o[1],e)n=parseFloat(r);else switch(r){case"h":i+=3600*n*1e3;break;case"m":i+=60*n*1e3;break;case"s":i+=1e3*n;break;case"ms":i+=n}t=o[2],e=!e}return new v({type:"Time",value:i})}on_Hex_value(t){return new v({type:"Hex",value:parseInt(t.substr(2),16)})}on_Object_value(t,e){return new v({type:"Object",value:e})}on_Array_value(t){return new v({type:"Array",value:t})}on_Variable_value(t){return new v({type:"Variable",value:t})}on_KeyValue_list(t,e,i=null){return null==i&&(i=this.peek_allows_varable()),e}on_let_object_binding(t,e){let{obj_type:i,name:n}=e;return this.unregister_variable(n),e.name=t,this.register_variable(t,e),e}on_def_object(t,e,i){let n={type:"Def"+this.capitalization_str(t),obj_type:t,name:e,attrs:{}},r=this.on_KeyValue_list(t,i,!1);return this.fill_kv_obj(n.attrs,r),this.register_variable(e,n),n}on_def_template(t,e,i,n){let r={type:"template",obj_type:t,name:e,attrs:{},tpl_list:[]},o=this.on_KeyValue_list(t,n,!0);return this.check_variables_on_template_body(i,o),this.fill_kv_obj(r.attrs,n),r.tpl_list=i,this.register_template(e,r),r}on_object_modification(t,e){if(!this.has_variable_obj(t)){if(-1!==this.class_names.indexOf(t)){let i=this.new_variable_name_of_template_application(t);return this.on_def_object(t,i,e)}return null}let i=this.get_variable_obj(t),{obj_type:n}=i,r=this.new_variable_name_of_variable_modification(t),o={type:"Def"+this.capitalization_str(n),obj_type:n,name:r,attrs:{}},a=this.on_KeyValue_list(n,e,!1),s=this.merge_list(i.attrs,a);return this.fill_kv_obj(o.attrs,s),this.register_variable(r,o),o}on_tmp_object_modification(t,e){let{name:i}=t,n=this.on_object_modification(i,e);return this.unregister_variable(i),n}on_template_application(t,e){let i=this.get_template_obj(t);if(null==i)return null;let{obj_type:n}=i,r=this.new_variable_name_of_template_application(t),o={type:"Def"+this.capitalization_str(n),obj_type:n,name:r,attrs:{}},a=this.evaluation_template(i.attrs,i.tpl_list,e);return this.fill_kv_obj(o.attrs,a),this.register_variable(r,o),o}on_ArgList(t){let e=[],i=[];for(let[n,r]of t)null==n?e.push(r):i.push([n,r]);return{naked_params:e,named_params:i}}on_unit_set_expr(t,e,i){let[n,r]=i,o={type:"Unit",duration:n,default_easing:r,target_name:t,attrs:{}},a=this.get_variable_type(t),s=this.on_KeyValue_list(a,e,!1);return this.fill_kv_obj(o.attrs,s),o}
on_temporary_target_set_expr(t,e,i){let{obj_type:n,name:r}=t,[o,a]=i,s={type:"Unit",duration:o,default_easing:a,target_name:r,attrs:{}},l=this.on_KeyValue_list(n,e,!1);return this.fill_kv_obj(s.attrs,l),s}on_then_set_expr(t,e){return"Serial"===t.type?(t.items.push(e),t):{type:"Serial",items:[t,e]}}on_group_set_expr(t){return{type:"Parallel",items:t}}has_variable_obj(t){return this.variableTable.hasOwnProperty(t)}get_variable_obj(t){return this.variableTable.hasOwnProperty(t)?this.variableTable[t]:(console.error(`var ${t} is not defined.`),null)}get_template_obj(t){return this.templateTable.hasOwnProperty(t)?this.templateTable[t]:(console.error(`tpl ${t} is not defined.`),null)}get_variable_type(t){return this.get_variable_obj(t).obj_type}get_template_type(t){return this.get_template_obj(t).obj_type}fill_kv_obj(t,e){for(let[i,n]of e)t[i]=n}merge_list(t,e){let i={};this.fill_kv_obj(i,e);let n=[];for(let e in t)i.hasOwnProperty(e)?n.push([e,i[e]]):n.push([e,t[e]]);for(let[i,r]of e)t.hasOwnProperty(i)||n.push([i,r]);return n}evaluation_template(t,e,{naked_params:i,named_params:n}){let r={},o=e.map((([t,e],i)=>(r[t]=i,{key:t,matched:!1}))),a={};for(let[t,e]of n)a[t]=e,r.hasOwnProperty(t)?o[r[t]].matched=!0:console.error("看看命名参数是不是没有在定义参数里面..");let s=o.filter((({matched:t})=>!t));s.length<i.length&&console.error("参数太多了..");for(let t=0;t<i.length&&t<s.length;t++){let{key:e}=s[t];a[e]=i[t]}let l={};for(let[t,i]of e)a.hasOwnProperty(t)?l[t]=a[t]:l[t]=i;let A=[];for(let e in t){let i=t[e];if("Variable"===i.type){let t=i.value;l.hasOwnProperty(t)?A.push([e,l[t]]):console.error("eval template err: no variable named "+t+" is provided.")}else A.push([e,i])}return A}capitalization_str(t){return t.substr(0,1).toUpperCase()+t.substr(1)}new_variable_name_of_template_application(t){let e=`tpl_${t}_${this.tpl_name_id}`;return this.tpl_name_id+=1,e}new_variable_name_of_variable_modification(t){let e=`obj_${t}_${this.obj_name_id}`;return this.obj_name_id+=1,e}register_variable(t,e){this.variableTable.hasOwnProperty(t)&&console.log(`var ${t} is already exists, and will be shadowed.`),e._reg_order=this.varibaleRegOrder,this.variableTable[t]=e,this.varibaleRegOrder+=1}unregister_variable(t){delete this.variableTable[t]}register_template(t,e){this.templateTable.hasOwnProperty(t)&&console.log(`tpl ${t} is already exists, and will be shadowed.`),this.templateTable[t]=e}on_enter_scope(){}on_leave_scope(){}on_enter_tpl(){this.allowsVariable.push(!0)}on_leave_tpl(){this.allowsVariable.pop()}peek_allows_varable(){return this.allowsVariable.length>0&&this.allowsVariable[this.allowsVariable.length-1]}check_variables_on_template_body(t,e){let i={};this.fill_kv_obj(i,e);for(let[e,n]of t)if("Variable"===n.type){let t=n.value;i.hasOwnProperty(t)||console.error(`varibale ${t} in template's body is not present at arguments.`)}}on_Result(t){let e=[];for(let t in this.variableTable)e.push(this.variableTable[t]);return e.sort(((t,e)=>t.obj_name_id-e.obj_name_id)),{sets:t.filter((t=>"SetExpr"===t.type)).map((t=>t.params)),defs:e}}}class v{constructor(t){this.type=t.type,this.value=t.value}as_string(){if("String"===this.type)return this.value}as_integer(){return"Hex"===this.type?this.value:"Num"===this.type?Math.floor(this.value.value):void 0}as_number(){if("Num"===this.type)return this.value}as_time(){if("Time"===this.type)return this.value}as_object(){if("Object"===this.type)return this.value}}const E=4294967295,I=4294967295;class C{constructor(){
this.transTable=[[!1,[4294967295,2,1],[[0,42,0],[43,43,1],[44,44,2]]],[!1,[4294967295,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3],[[0,2,0],[3,3,1],[4,4,2],[5,5,3],[6,6,4],[7,7,5],[8,8,6],[9,9,7],[10,10,8],[11,11,9],[12,12,10],[13,13,11],[14,14,12],[15,15,13],[16,16,14],[17,17,15],[18,18,16],[19,19,17],[20,20,18],[21,21,19],[22,22,20],[23,37,21],[38,38,22],[39,39,23],[40,41,24],[42,42,25],[43,44,0]]],[!1,[30,28,29,4294967295],[[0,0,0],[1,20,1],[21,21,2],[22,39,1],[40,40,3],[41,42,1],[43,44,3]]],[!1,[4294967295,31],[[0,41,0],[42,42,1],[43,44,0]]],[!1,[4294967295,4],[[0,39,0],[40,41,1],[42,44,0]]],[!1,[4294967295,14,37,36,35,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,4],[35,35,5],[36,37,6],[38,38,7],[39,39,1],[40,44,0]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!1,[4294967295,7,39],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,40],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,14,37,36,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,6],[39,39,1],[40,44,0]]],[!1,[4294967295,7,41],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,31,1],[32,32,2],[33,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,42],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!1,[4294967295,7,43],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,44],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!0],[!1,[45,4294967295,47,46],[[0,0,0],[1,1,1],[2,2,0],[3,14,1],[15,15,0],[16,20,1],[21,21,0],[22,27,1],[28,28,2],[29,30,0],[31,33,1],[34,34,3],[35,44,1]]],[!1,[31,48,4294967295],[[0,39,0],[40,40,1],[41,42,0],[43,44,2]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49,50],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,53,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,37,0],[38,38,3],[39,39,1],[40,44,0]]],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,56],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,57,58],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,38,37,36,34,33],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,59],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,60],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,61],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,62],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,26,1],[27,27,2],[28,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,63],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,64],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,24,1],[25,25,2],[26,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,65],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,66],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,48],[[0,39,0],[40,40,1],[41,44,0]]],[!1,[4294967295,49,37,36,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,37,68,67,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,69],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,37,34,70,56],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,71],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,57,68,72,58],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,4],[39,39,1],[40,44,0]]],[!1,[4294967295,73],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,74],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,75],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,76],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,77],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,78],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,80],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,53],[[0,17,0],[18,18,1],[19,44,0]]],[!1,[4294967295,69,37,68,67],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,82],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,71,37,34,70],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,84],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,73,68,72],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,85],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,23,1],[24,24,2],[25,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,86],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,87],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,37,68],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,37,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,68],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,88],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0]],
this.finalTable={4:1,5:3,6:26,7:30,8:5,9:7,10:6,11:27,12:30,13:30,14:3,15:30,16:30,17:19,18:22,19:23,20:29,21:20,22:30,23:30,24:24,25:28,26:21,27:25,28:12,29:11,31:0,34:2,36:2,37:2,38:3,39:30,40:30,41:30,42:30,43:30,44:30,45:8,48:0,49:3,53:2,54:4,59:13,60:14,61:30,62:15,63:30,64:30,74:18,75:30,76:30,77:10,85:16,86:17,88:9},this.inputTable=[[0,8,1],[9,9,41],[10,10,40],[11,11,1],[12,12,41],[13,13,40],[14,31,1],[32,32,41],[33,33,1],[34,34,21],[35,35,1],[36,36,23],[37,37,10],[38,38,1],[39,39,2],[40,40,9],[41,41,4],[42,42,1],[43,43,22],[44,44,19],[45,45,20],[46,46,38],[47,47,42],[48,48,39],[49,57,16],[58,58,1],[59,59,5],[60,60,1],[61,61,13],[62,63,1],[64,64,23],[65,68,26],[69,69,37],[70,70,26],[71,87,23],[88,88,33],[89,90,23],[91,91,12],[92,92,0],[93,93,11],[94,94,1],[95,95,23],[96,96,1],[97,97,8],[98,98,26],[99,99,7],[100,100,14],[101,101,36],[102,102,27],[103,103,23],[104,104,32],[105,107,23],[108,108,17],[109,109,35],[110,110,30],[111,111,25],[112,112,31],[113,113,23],[114,114,29],[115,115,18],[116,116,15],[117,117,28],[118,119,23],[120,120,34],[121,121,24],[122,122,23],[123,123,6],[124,124,1],[125,125,3],[126,65535,1]],this.initialTable={STRING:1,INITIAL:2}}static lexSeq(t){const e=new C;e.source=t;const i=[];let n=e.token;for(;"<$>"!==n;)i.push({token:n,text:e.yytext,start:e.startIdx,end:e.endIdx}),e.advance(),n=e.token;return i}yyrestart(t=null){null!=t&&(this.sourceString=t),this.ended=!1,this.start=0,this.oldStart=0,this.line=1,this.col=0,this.advanced=!0,this.tokenNameString=null,this.yyObject={},this.initialState="INITIAL"}set source(t){this.sourceString=t,this.yyrestart()}get token(){return this.advanced&&(this.tokenNameString=this.next(),this.advanced=!1),this.tokenNameString}advance(){this.advanced=!0}get startIdx(){return this.oldStart}get endIdx(){return this.start}get position(){return[this.line,this.col]}get positionInfo(){return this.token+"@row:"+this.position.join("col:")}get yytext(){return this.yyText}get yyleng(){return this.endIdx-this.startIdx}set yytext(t){this.yyText=t}get yy(){return this.yyObject}get tokenName(){return this.tokenNameString}next(){let t,e,i,n,r,o,a,s,l;for(;;)for(t=null,e=null,i=0,n=this.start,r=this.start,o=I,s=E,l=this.start,a=this.transTable[0][1][this.initialInput];;){if(i=this.sourceString.charCodeAt(r),o!==I&&(13===i?(this.col=0,this.line++):10===i?13!==o&&(this.col=0,this.line++):this.col++),o=i,e=this.trans(a,i),e===E){if(n===l){if(this.start===this.sourceString.length){if(this.ended)throw new Error("已经到达末尾.");return this.ended=!0,"<$>"}throw new Error("意外的字符,line:"+this.position.join(",col:")+"of "+this.sourceString.substr(n,20))}switch(t=this.finalTable[s],this.start=l,this.oldStart=n,this.yyText=this.sourceString.substring(this.startIdx,this.endIdx),t){case 2:return"time";case 3:return"number";case 4:return"hex";case 5:return"+";case 6:return"-";case 7:return this.begin("STRING"),"str_start";case 8:return"str_esc_char";case 9:return"str_esc_unicode";case 10:return"str_esc_ascii";case 11:return this.begin("INITIAL"),"str_end";case 12:return"str_seg";case 13:return"set";case 14:return"let";case 15:return"def";case 16:return"apply";case 17:return"clone";case 18:return"then";case 19:return"=";case 20:return"(";case 21:return")";case 22:return"[";case 23:return"]";case 24:return"{";case 25:return"}";case 26:return".";case 27:return",";case 28:return";";case 29:return"%";case 30:return"id"}break}t=this.finalTable[e],null!=t&&(s=e,l=r+1),r+=1,a=e}}trans(t,e){if(isNaN(e))return E;if(e<this.inputTable[0][0]||e>this.inputTable[this.inputTable.length-1][1])throw new Error("输入超出有效范围,line:"+this.position.join(",col:"));if(!0===this.transTable[t][0])return E;const i=this.find(e,this.inputTable),n=this.find(i,this.transTable[t][2]);return this.transTable[t][1][n]}find(t,e){let i,n,r;for(i=0,n=e.length-1;;){if(r=i+n>>>1,e[r][0]<=t&&e[r][1]>=t)return e[r][2];e[r][0]>t?n=r-1:i=r+1}}begin(t=null){this.initialState=null!=t?t:"INITIAL"}get initialState(){return this.initialStateString}set initialState(t){if(void 0===this.initialTable[t])throw new Error("未定义的起始状态:"+t);this.initialStateString=t,this.initialInput=this.initialTable[t]}}var B=C;class w{constructor(){this.ast_helper=new b,this.actionTable=[null,{0:6,1:1,2:2,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:9,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:9,73:148,18:9,85:52,78:50,24:28,25:9,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:25,5:33,6:35,7:37,12:43,16:57,19:68,21:43,23:68,26:68,28:43,30:87,31:68,32:95,35:87,38:87,39:68,40:68,44:66,45:87,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,71:87,72:87,75:187,79:68,80:201,82:140,86:95,87:112,88:87,92:64,93:94,94:70,95:90,96:92,98:87,101:120,106:239,107:138,109:110,110:108,113:46,114:72,117:136,121:68,122:87},{0:6,2:11,67:54,4:22,69:20,70:16,8:4,9:8,10:10,11:41,68:36,13:49,14:11,73:148,18:11,20:65,77:32,78:50,124:150,24:28,25:11,90:150,27:81,92:161,29:18,33:135,34:30,91:229,36:26,74:44,85:52,76:12,41:150,89:14,43:36,101:120,46:161,47:104,112:40,115:34,99:161,120:56,116:38,125:42},{19:68,23:68,24:28,25:24,29:18,30:89,31:68,35:139,36:26,37:141,39:68,43:36,44:66,45:159,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,68:36,69:20,70:16,71:183,76:12,77:32,79:68,82:140,87:112,88:225,89:14,92:64,93:94,94:70,95:90,96:92,98:237,101:120,107:138,109:110,110:108,113:46,114:72,115:34,116:38,117:136,121:68,122:48,123:251},{0:6,2:13,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:13,73:148,18:13,85:52,78:50,24:28,25:13,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:27,20:67,21:45,27:83,12:45,28:45,15:55},{64:132,65:134,67:54,94:70,117:136,72:185,120:56,111:243,78:50,82:140,85:52,22:71,87:112,26:68,92:64,93:94,86:80,95:90,32:80,33:137,100:84,101:120,38:143,40:68,107:138,44:66,109:110,110:108,47:104,48:106,96:92,114:72,108:76,53:102,54:98,55:173,56:74,57:78,58:82,59:86,60:88,61:96,62:100},{36:39,69:20,70:16,10:39,43:36,76:12,77:32,47:104,115:34,116:38,68:36,101:120,24:39,89:14,29:18},{64:132,65:134,117:136,118:144,77:197,82:140,83:146,84:215,87:112,92:64,93:94,94:231,95:90,96:92,100:84,101:120,107:138,109:110,110:108,47:104,48:106,53:102,54:98,119:142,57:175,58:82,59:86,60:88,61:96,62:100},{0:6,2:15,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:17,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{17:59,42:153,46:163},{32:97,75:97,52:97,86:97,80:97,106:97,43:97,68:97},{32:99,80:99,106:99,75:99,52:99,86:99},{32:118,49:114,50:116,52:118,86:118,80:118,106:118,75:118,63:177},{87:221},{32:101,80:101,106:101,75:101,52:101,86:101},{32:103,80:103,106:103,75:103,52:103,86:103},{32:105,97:105,52:105,86:105,80:105,106:105,75:105},{104:126,81:205,105:128,51:130,102:122,103:124},{104:126,81:207,105:128,51:130,102:122,103:124},{104:126,81:209,105:128,51:130,102:122,103:124},{104:126,81:211,105:128,51:130,102:122,103:124},{104:126,81:213,105:128,51:130,102:122,103:124},{32:107,80:107,75:107,86:107},{101:120,118:144,109:110,110:108,47:104,48:106,83:146,52:167,53:102,54:98,87:112,84:217,61:96,62:100,119:142},{67:54,85:52,120:56,41:149,90:149,124:149,78:50}],this.gotoTable={64:{52:171},29:{0:5},30:{0:7},31:{2:19},32:{2:21},33:{25:75,18:61,2:23,14:51},34:{79:199,23:73,19:63,39:145,40:147,121:247,26:79,66:179,31:93},35:{68:181,43:155},36:{3:29},37:{4:31},38:{14:53},39:{25:77},40:{12:47,21:69,28:85},41:{32:109,75:109,52:109,86:109,80:109,106:109,43:157,68:157},42:{97:233},43:{32:111,97:235,52:111,86:111,80:111,106:111,75:111},44:{124:253,41:151,90:227},45:{113:245},46:{122:249},47:{32:113},49:{75:189},50:{88:91,98:91,35:91,38:91,71:91,72:91,122:91,45:91,30:91},51:{75:191},52:{32:115,86:219},53:{32:117,86:117},54:{32:119,80:203,86:119},55:{32:121,80:121,106:241,75:193,52:169,86:121},56:{32:123,80:123,75:195,
86:123},57:{32:125,80:125,106:125,75:125,52:125,86:125},58:{32:127,80:127,106:127,75:127,52:127,86:127},59:{32:129,80:129,106:129,75:129,52:129,86:129},60:{87:223},61:{51:165},62:{32:131,80:131,75:131,86:131},63:{32:133,80:133,75:133,86:133}},this.prodList=[[65,2],[29,1],[30,2],[30,0],[31,1],[31,1],[33,6],[33,6],[33,5],[33,3],[33,5],[37,0],[39,0],[38,2],[38,1],[36,3],[35,1],[35,3],[35,0],[42,1],[32,7],[32,12],[32,5],[45,0],[46,0],[40,4],[40,4],[40,3],[40,6],[48,3],[48,1],[48,0],[49,1],[34,2],[34,0],[50,3],[50,4],[47,1],[52,3],[52,1],[52,0],[53,1],[53,3],[54,1],[54,1],[51,1],[51,1],[51,1],[55,1],[55,1],[55,1],[55,1],[41,1],[58,1],[57,3],[60,1],[60,0],[59,1],[59,1],[59,0],[43,3],[61,2],[61,2],[61,2],[61,2],[61,0],[56,1],[56,1],[63,4],[62,3],[62,2],[64,3],[64,3],[64,1],[44,1],[44,0]],this.inputTable={"<$>":1,set:2,id:3,"{":4,"}":5,apply:6,"(":7,")":8,then:9,",":10,def:11,let:12,"=":13,time:14,hex:15,number:16,"%":17,"+":18,"-":19,str_start:20,str_end:21,str_esc_char:22,str_esc_unicode:23,str_esc_ascii:24,str_seg:25,"[":26,"]":27,";":28}}static parse(t){const e=new B;e.source=t;return(new w).parseLexer(e)}parseLexer(t){const e=[0],i=[];let n,r,o;for(;;){if(r=t.token,n=e[e.length-1],null==this.actionTable[this.inputTable[r]][n])throw new Error("Parse Error:"+t.positionInfo);if(o=this.actionTable[this.inputTable[r]][n],1===o)return i.pop();if(1&~o){if(!(1&o)){const r=o>>>1,a=this.prodList[r][1];let s=null;switch(a>0&&(s=i[i.length-a]),r){case 1:s=this.ast_helper.on_Result(i[i.length-1]);break;case 2:case 13:case 33:s=i[i.length-2],s.push(i[i.length-1]);break;case 3:case 18:case 31:case 34:case 40:case 65:s=[];break;case 4:case 19:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 55:case 56:case 57:case 58:case 66:case 67:case 74:case 75:break;case 5:s={type:"SetExpr",params:i[i.length-1]};break;case 6:s=this.ast_helper.on_unit_set_expr(i[i.length-5],i[i.length-3],i[i.length-1]);break;case 7:s=this.ast_helper.on_temporary_target_set_expr(i[i.length-5],i[i.length-3],i[i.length-1]);break;case 8:s={type:"ApplyExpr",params:[i[i.length-4],i[i.length-2]]};break;case 9:s=this.ast_helper.on_then_set_expr(i[i.length-3],i[i.length-1]);break;case 10:s=this.ast_helper.on_group_set_expr(i[i.length-3]);break;case 11:this.ast_helper.on_enter_scope();break;case 12:this.ast_helper.on_leave_scope();break;case 14:case 16:case 30:case 39:case 73:s=[i[i.length-1]];break;case 15:case 27:s=i[i.length-2];break;case 17:case 35:case 42:s=[i[i.length-3],i[i.length-1]];break;case 20:s=this.ast_helper.on_def_object(i[i.length-6],i[i.length-5],i[i.length-3]);break;case 21:s=this.ast_helper.on_def_template(i[i.length-11],i[i.length-10],i[i.length-8],i[i.length-4]);break;case 22:s=this.ast_helper.on_let_object_binding(i[i.length-4],i[i.length-2]);break;case 23:this.ast_helper.on_enter_tpl();break;case 24:this.ast_helper.on_leave_tpl();break;case 25:s=this.ast_helper.on_object_modification(i[i.length-4],i[i.length-2]);break;case 26:s=this.ast_helper.on_template_application(i[i.length-4],i[i.length-2]);break;case 28:s=this.ast_helper.on_tmp_object_modification(i[i.length-5],i[i.length-3]);break;case 29:case 71:case 72:s=i[i.length-3],s.push(i[i.length-1]);break;case 32:s=this.ast_helper.on_Variable_value(i[i.length-1]);break;case 36:s=[i[i.length-4],i[i.length-2]];break;case 37:s=this.ast_helper.on_ArgList(i[i.length-1]);break;case 38:s=i[i.length-1],s.unshift(i[i.length-3]);break;case 41:s=[null,i[i.length-1]];break;case 52:s=this.ast_helper.on_Time_value(i[i.length-1]);break;case 53:s=this.ast_helper.on_Hex_value(i[i.length-1]);break;case 54:s=this.ast_helper.on_Num_value(i[i.length-3],i[i.length-2],i[i.length-1]);break;case 59:s="+";break;case 60:s=this.ast_helper.on_String_value(i[i.length-2]);break;case 61:s=i[i.length-2],s.push({type:"char",value:i[i.length-1]});break;case 62:s=i[i.length-2],s.push({type:"unicode",value:i[i.length-1]});break;case 63:s=i[i.length-2],s.push({type:"ascii",value:i[i.length-1]});break;case 64:s=i[i.length-2],s.push({type:"seg",value:i[i.length-1]});break;case 68:s=this.ast_helper.on_Object_value(i[i.length-4],this.ast_helper.on_KeyValue_list(i[i.length-4],i[i.length-2]));break;case 69:s=this.ast_helper.on_Array_value(i[i.length-2]);break;case 70:s=this.ast_helper.on_Array_value([])}let l=0;for(;l<a;)e.pop(),i.pop(),l++;if(n=e[e.length-1],null==this.gotoTable[this.prodList[r][0]][n])throw new Error("Goto Error!"+t.positionInfo);o=this.gotoTable[this.prodList[r][0]][n],e.push((o>>>1)-1),i.push(s)}}else i.push(t.yytext),e.push((o>>>1)-1),t.advance()}}}var x=w;var Q=function(t,e=!0){const i={x:{numType:"number",value:0},y:{numType:"number",value:0},zIndex:{numType:"number",value:0},scale:{numType:"number",value:1},duration:void 0},n={content:"请输入内容",alpha:{numType:"number",value:1},color:16777215,anchorX:{numType:"number",value:0},anchorY:{numType:"number",value:0},fontSize:{numType:"number",value:25},fontFamily:"SimHei",bold:{numType:"number",value:1},textShadow:{numType:"number",value:1},strokeWidth:{numType:"number",value:0},strokeColor:16777215,rotateX:{numType:"number",value:0},rotateY:{numType:"number",value:0},rotateZ:{numType:"number",value:0},parent:void 0},r={text:"请输入内容",fontSize:{numType:"number",value:25},textColor:0,textAlpha:{numType:"number",value:1},fillColor:16777215,fillAlpha:{numType:"number",value:1},target:void 0},o={d:void 0,viewBox:void 0,borderColor:0,borderAlpha:{numType:"number",value:1},borderWidth:{numType:"number",value:0},fillColor:16777215,fillAlpha:{numType:"number",value:1}};function a(t){for(const e in t)if(t.hasOwnProperty(e))switch((void 0!==t[e].value&&void 0!==t[e].value.numType&&void 0===t[e].easing||void 0!==t[e].value&&void 0!==t[e].type)&&(t[e]=t[e].value),e){case"content":case"text":t[e]=y(t[e],!1,!0);break;case"fontFamily":case"d":case"viewBox":t[e]=y(t[e],!0,!1);break;case"parent":t[e]=y(t[e],!1,!1);break;default:"string"==typeof t[e]&&(t[e]=y(t[e],!1,!1))}}function s(t){a(t.attrs),t.duration=t.duration.value,t.defaultEasing=t.default_easing&&y(t.default_easing.value,!1,!1),t.targetName=t.target_name}try{const e=x.parse(t),l={};l.defs=e.defs;for(let t=0;t<l.defs.length;t++){if(a(l.defs[t].attrs),l.defs[t].attrs.target){const e={objType:"seek"};for(let i=0;i<l.defs[t].attrs.target.length;i++){const n=l.defs[t].attrs.target[i];"seasonId"===n[0]||"episodeId"===n[0]?e.objType="bangumi":"av"!==n[0]&&"page"!==n[0]||(e.objType="av"),n[1].value&&n[1].value.value?e[n[0]]=n[1].value.value:n[1].value&&(e[n[0]]=n[1].value)}l.defs[t].attrs.target=e}l.defs[t].attrs=m(i,e.defs[t].attrs),"DefText"===l.defs[t].type?l.defs[t].attrs=m(n,e.defs[t].attrs):"DefButton"===l.defs[t].type?l.defs[t].attrs=m(r,e.defs[t].attrs):"DefPath"===l.defs[t].type&&(l.defs[t].attrs=m(o,e.defs[t].attrs))}l.sets=e.sets;for(let t=0;t<l.sets.length;t++)if(l.sets[t].items)for(let e=0;e<l.sets[t].items.length;e++)l.sets[t].items[e].attrs&&s(l.sets[t].items[e]);else s(l.sets[t]);return l}catch(t){throw new Error(t.message)}},S=i(97294),k=i.n(S);function D(){
return k()('/*! @metadata nano: 4.9.85-96806e61 (2026-06-10T16:59:44+08:00) */!function(){"use strict";var e=(e,t)=>{const a={};for(const t in e)e.hasOwnProperty(t)&&(a[t]=e[t]);for(const e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);return a},t=function(e,t,a){return a||(e=e.replace(/&/g,"").replace(/</g,"").replace(/>/g,"").replace(/"/g,"").replace(/\'/g,"").replace(/\\//g,"").replace(/:/g,"").replace(/;/g,"")),e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/\'/g,"&#x27;").replace(/\\//g,"&#x2f;").replace(/ /g,t?" ":"&nbsp;").replace(/\\n/g,"<br>")};class a{constructor(){this.class_names=["text","button","path"],this.variableTable={},this.varibaleRegOrder=0,this.templateTable={},this.tpl_name_id=0,this.obj_name_id=0,this.allowsVariable=[]}on_String_value(e){let t=[];for(let a of e)switch(a.type){case"char":{let e=null;switch(a.value.charAt(1)){case"n":e="\\n";break;case"r":e="\\r";break;case"t":e="\\t";break;case"\\\\":e="\\\\";break;case"\'":e="\'";break;case\'"\':e=\'"\';break;default:e=a.charAt(1)}t.push(e)}break;case"unicode":{let e=a.value.substr(2);t.push(String.fromCharCode(parseInt(e,16)))}break;case"ascii":{let e=a.value.substr(2);t.push(String.fromCharCode(parseInt(e,16)))}break;case"seg":t.push(a.value)}return new r({type:"String",value:t.join("")})}on_Num_value(e,t,a){return new r({type:"Num",value:{numType:(a="%"===a)?"percent":"number",value:(e="+"===e?1:-1)*parseFloat(t)}})}on_Time_value(e){let t=!0,a=0,s=0,n="",l=null;for(;l=t?e.match(/^(\\d*\\.?\\d+(?:[eE][\\+\\-]?\\d+)?)(.*)$/):e.match(/^([hms]+)(.*)$/),null!=l;){if(n=l[1],t)s=parseFloat(n);else switch(n){case"h":a+=3600*s*1e3;break;case"m":a+=60*s*1e3;break;case"s":a+=1e3*s;break;case"ms":a+=s}e=l[2],t=!t}return new r({type:"Time",value:a})}on_Hex_value(e){return new r({type:"Hex",value:parseInt(e.substr(2),16)})}on_Object_value(e,t){return new r({type:"Object",value:t})}on_Array_value(e){return new r({type:"Array",value:e})}on_Variable_value(e){return new r({type:"Variable",value:e})}on_KeyValue_list(e,t,a=null){return null==a&&(a=this.peek_allows_varable()),t}on_let_object_binding(e,t){let{obj_type:a,name:r}=t;return this.unregister_variable(r),t.name=e,this.register_variable(e,t),t}on_def_object(e,t,a){let r={type:"Def"+this.capitalization_str(e),obj_type:e,name:t,attrs:{}},s=this.on_KeyValue_list(e,a,!1);return this.fill_kv_obj(r.attrs,s),this.register_variable(t,r),r}on_def_template(e,t,a,r){let s={type:"template",obj_type:e,name:t,attrs:{},tpl_list:[]},n=this.on_KeyValue_list(e,r,!0);return this.check_variables_on_template_body(a,n),this.fill_kv_obj(s.attrs,r),s.tpl_list=a,this.register_template(t,s),s}on_object_modification(e,t){if(!this.has_variable_obj(e)){if(-1!==this.class_names.indexOf(e)){let a=this.new_variable_name_of_template_application(e);return this.on_def_object(e,a,t)}return null}let a=this.get_variable_obj(e),{obj_type:r}=a,s=this.new_variable_name_of_variable_modification(e),n={type:"Def"+this.capitalization_str(r),obj_type:r,name:s,attrs:{}},l=this.on_KeyValue_list(r,t,!1),i=this.merge_list(a.attrs,l);return this.fill_kv_obj(n.attrs,i),this.register_variable(s,n),n}on_tmp_object_modification(e,t){let{name:a}=e,r=this.on_object_modification(a,t);return this.unregister_variable(a),r}on_template_application(e,t){let a=this.get_template_obj(e);if(null==a)return null;let{obj_type:r}=a,s=this.new_variable_name_of_template_application(e),n={type:"Def"+this.capitalization_str(r),obj_type:r,name:s,attrs:{}},l=this.evaluation_template(a.attrs,a.tpl_list,t);return this.fill_kv_obj(n.attrs,l),this.register_variable(s,n),n}on_ArgList(e){let t=[],a=[];for(let[r,s]of e)null==r?t.push(s):a.push([r,s]);return{naked_params:t,named_params:a}}on_unit_set_expr(e,t,a){let[r,s]=a,n={type:"Unit",duration:r,default_easing:s,target_name:e,attrs:{}},l=this.get_variable_type(e),i=this.on_KeyValue_list(l,t,!1);return this.fill_kv_obj(n.attrs,i),n}on_temporary_target_set_expr(e,t,a){let{obj_type:r,name:s}=e,[n,l]=a,i={type:"Unit",duration:n,default_easing:l,target_name:s,attrs:{}},o=this.on_KeyValue_list(r,t,!1);return this.fill_kv_obj(i.attrs,o),i}on_then_set_expr(e,t){return"Serial"===e.type?(e.items.push(t),e):{type:"Serial",items:[e,t]}}on_group_set_expr(e){return{type:"Parallel",items:e}}has_variable_obj(e){return this.variableTable.hasOwnProperty(e)}get_variable_obj(e){return this.variableTable.hasOwnProperty(e)?this.variableTable[e]:(console.error(`var ${e} is not defined.`),null)}get_template_obj(e){return this.templateTable.hasOwnProperty(e)?this.templateTable[e]:(console.error(`tpl ${e} is not defined.`),null)}get_variable_type(e){return this.get_variable_obj(e).obj_type}get_template_type(e){return this.get_template_obj(e).obj_type}fill_kv_obj(e,t){for(let[a,r]of t)e[a]=r}merge_list(e,t){let a={};this.fill_kv_obj(a,t);let r=[];for(let t in e)a.hasOwnProperty(t)?r.push([t,a[t]]):r.push([t,e[t]]);for(let[a,s]of t)e.hasOwnProperty(a)||r.push([a,s]);return r}evaluation_template(e,t,{naked_params:a,named_params:r}){let s={},n=t.map((([e,t],a)=>(s[e]=a,{key:e,matched:!1}))),l={};for(let[e,t]of r)l[e]=t,s.hasOwnProperty(e)?n[s[e]].matched=!0:console.error("看看命名参数是不是没有在定义参数里面..");let i=n.filter((({matched:e})=>!e));i.length<a.length&&console.error("参数太多了..");for(let e=0;e<a.length&&e<i.length;e++){let{key:t}=i[e];l[t]=a[e]}let o={};for(let[e,a]of t)l.hasOwnProperty(e)?o[e]=l[e]:o[e]=a;let h=[];for(let t in e){let a=e[t];if("Variable"===a.type){let e=a.value;o.hasOwnProperty(e)?h.push([t,o[e]]):console.error("eval template err: no variable named "+e+" is provided.")}else h.push([t,a])}return h}capitalization_str(e){return e.substr(0,1).toUpperCase()+e.substr(1)}new_variable_name_of_template_application(e){let t=`tpl_${e}_${this.tpl_name_id}`;return this.tpl_name_id+=1,t}new_variable_name_of_variable_modification(e){let t=`obj_${e}_${this.obj_name_id}`;return this.obj_name_id+=1,t}register_variable(e,t){this.variableTable.hasOwnProperty(e)&&console.log(`var ${e} is already exists, and will be shadowed.`),t._reg_order=this.varibaleRegOrder,this.variableTable[e]=t,this.varibaleRegOrder+=1}unregister_variable(e){delete this.variableTable[e]}register_template(e,t){this.templateTable.hasOwnProperty(e)&&console.log(`tpl ${e} is already exists, and will be shadowed.`),this.templateTable[e]=t}on_enter_scope(){}on_leave_scope(){}on_enter_tpl(){this.allowsVariable.push(!0)}on_leave_tpl(){this.allowsVariable.pop()}peek_allows_varable(){return this.allowsVariable.length>0&&this.allowsVariable[this.allowsVariable.length-1]}check_variables_on_template_body(e,t){let a={};this.fill_kv_obj(a,t);for(let[t,r]of e)if("Variable"===r.type){let e=r.value;a.hasOwnProperty(e)||console.error(`varibale ${e} in template\'s body is not present at arguments.`)}}on_Result(e){let t=[];for(let e in this.variableTable)t.push(this.variableTable[e]);return t.sort(((e,t)=>e.obj_name_id-t.obj_name_id)),{sets:e.filter((e=>"SetExpr"===e.type)).map((e=>e.params)),defs:t}}}class r{constructor(e){this.type=e.type,this.value=e.value}as_string(){if("String"===this.type)return this.value}as_integer(){return"Hex"===this.type?this.value:"Num"===this.type?Math.floor(this.value.value):void 0}as_number(){if("Num"===this.type)return this.value}as_time(){if("Time"===this.type)return this.value}as_object(){if("Object"===this.type)return this.value}}const s=4294967295,n=4294967295;class l{constructor(){\nthis.transTable=[[!1,[4294967295,2,1],[[0,42,0],[43,43,1],[44,44,2]]],[!1,[4294967295,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3],[[0,2,0],[3,3,1],[4,4,2],[5,5,3],[6,6,4],[7,7,5],[8,8,6],[9,9,7],[10,10,8],[11,11,9],[12,12,10],[13,13,11],[14,14,12],[15,15,13],[16,16,14],[17,17,15],[18,18,16],[19,19,17],[20,20,18],[21,21,19],[22,22,20],[23,37,21],[38,38,22],[39,39,23],[40,41,24],[42,42,25],[43,44,0]]],[!1,[30,28,29,4294967295],[[0,0,0],[1,20,1],[21,21,2],[22,39,1],[40,40,3],[41,42,1],[43,44,3]]],[!1,[4294967295,31],[[0,41,0],[42,42,1],[43,44,0]]],[!1,[4294967295,4],[[0,39,0],[40,41,1],[42,44,0]]],[!1,[4294967295,14,37,36,35,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,4],[35,35,5],[36,37,6],[38,38,7],[39,39,1],[40,44,0]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!1,[4294967295,7,39],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,40],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,14,37,36,34,33,32],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,6],[39,39,1],[40,44,0]]],[!1,[4294967295,7,41],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,31,1],[32,32,2],[33,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,42],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!1,[4294967295,7,43],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,44],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!0],[!0],[!0],[!0],[!0],[!1,[45,4294967295,47,46],[[0,0,0],[1,1,1],[2,2,0],[3,14,1],[15,15,0],[16,20,1],[21,21,0],[22,27,1],[28,28,2],[29,30,0],[31,33,1],[34,34,3],[35,44,1]]],[!1,[31,48,4294967295],[[0,39,0],[40,40,1],[41,42,0],[43,44,2]]],[!1,[4294967295,38],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49,50],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,53,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,37,0],[38,38,3],[39,39,1],[40,44,0]]],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,56],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,57,58],[[0,15,0],[16,16,1],[17,37,0],[38,38,2],[39,39,1],[40,44,0]]],[!1,[4294967295,38,37,36,34,33],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,37,5],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,59],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,60],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,2],[16,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,61],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,62],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,26,1],[27,27,2],[28,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,63],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,30,1],[31,31,2],[32,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,64],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,24,1],[25,25,2],[26,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,65],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,66],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,48],[[0,39,0],[40,40,1],[41,44,0]]],[!1,[4294967295,49,37,36,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,31,0],[32,32,3],[33,34,0],[35,35,4],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,49],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,51,37,68,67,52],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,69],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,54],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,55,37,34,70,56],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,5],[39,39,1],[40,44,0]]],[!1,[4294967295,71],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,57,68,72,58],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,4],[39,39,1],[40,44,0]]],[!1,[4294967295,73],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,74],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,75],[[0,6,0],[7,8,1],[9,13,0],[14,16,1],[17,17,2],[18,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,76],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,29,1],[30,30,2],[31,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,77],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,78],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,80],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,53],[[0,17,0],[18,18,1],[19,44,0]]],[!1,[4294967295,69,37,68,67],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,82],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,71,37,34,70],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,37,4],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,84],[[0,15,0],[16,16,1],[17,19,0],[20,20,2],[21,21,0],[22,22,2],[23,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,73,68,72],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,37,3],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,85],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,23,1],[24,24,2],[25,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7,86],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,35,1],[36,36,2],[37,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0],[!1,[4294967295,87],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79,37,68],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,79],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81,37,34],[[0,15,0],[16,16,1],[17,17,0],[18,18,2],[19,34,0],[35,35,3],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,81],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83,68],[[0,15,0],[16,16,1],[17,34,0],[35,35,2],[36,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,83],[[0,15,0],[16,16,1],[17,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,7],[[0,6,0],[7,8,1],[9,13,0],[14,18,1],[19,22,0],[23,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!1,[4294967295,88],[[0,6,0],[7,8,1],[9,13,0],[14,14,1],[15,15,0],[16,16,1],[17,25,0],[26,27,1],[28,35,0],[36,37,1],[38,38,0],[39,39,1],[40,44,0]]],[!0]],\nthis.finalTable={4:1,5:3,6:26,7:30,8:5,9:7,10:6,11:27,12:30,13:30,14:3,15:30,16:30,17:19,18:22,19:23,20:29,21:20,22:30,23:30,24:24,25:28,26:21,27:25,28:12,29:11,31:0,34:2,36:2,37:2,38:3,39:30,40:30,41:30,42:30,43:30,44:30,45:8,48:0,49:3,53:2,54:4,59:13,60:14,61:30,62:15,63:30,64:30,74:18,75:30,76:30,77:10,85:16,86:17,88:9},this.inputTable=[[0,8,1],[9,9,41],[10,10,40],[11,11,1],[12,12,41],[13,13,40],[14,31,1],[32,32,41],[33,33,1],[34,34,21],[35,35,1],[36,36,23],[37,37,10],[38,38,1],[39,39,2],[40,40,9],[41,41,4],[42,42,1],[43,43,22],[44,44,19],[45,45,20],[46,46,38],[47,47,42],[48,48,39],[49,57,16],[58,58,1],[59,59,5],[60,60,1],[61,61,13],[62,63,1],[64,64,23],[65,68,26],[69,69,37],[70,70,26],[71,87,23],[88,88,33],[89,90,23],[91,91,12],[92,92,0],[93,93,11],[94,94,1],[95,95,23],[96,96,1],[97,97,8],[98,98,26],[99,99,7],[100,100,14],[101,101,36],[102,102,27],[103,103,23],[104,104,32],[105,107,23],[108,108,17],[109,109,35],[110,110,30],[111,111,25],[112,112,31],[113,113,23],[114,114,29],[115,115,18],[116,116,15],[117,117,28],[118,119,23],[120,120,34],[121,121,24],[122,122,23],[123,123,6],[124,124,1],[125,125,3],[126,65535,1]],this.initialTable={STRING:1,INITIAL:2}}static lexSeq(e){const t=new l;t.source=e;const a=[];let r=t.token;for(;"<$>"!==r;)a.push({token:r,text:t.yytext,start:t.startIdx,end:t.endIdx}),t.advance(),r=t.token;return a}yyrestart(e=null){null!=e&&(this.sourceString=e),this.ended=!1,this.start=0,this.oldStart=0,this.line=1,this.col=0,this.advanced=!0,this.tokenNameString=null,this.yyObject={},this.initialState="INITIAL"}set source(e){this.sourceString=e,this.yyrestart()}get token(){return this.advanced&&(this.tokenNameString=this.next(),this.advanced=!1),this.tokenNameString}advance(){this.advanced=!0}get startIdx(){return this.oldStart}get endIdx(){return this.start}get position(){return[this.line,this.col]}get positionInfo(){return this.token+"@row:"+this.position.join("col:")}get yytext(){return this.yyText}get yyleng(){return this.endIdx-this.startIdx}set yytext(e){this.yyText=e}get yy(){return this.yyObject}get tokenName(){return this.tokenNameString}next(){let e,t,a,r,l,i,o,h,u;for(;;)for(e=null,t=null,a=0,r=this.start,l=this.start,i=n,h=s,u=this.start,o=this.transTable[0][1][this.initialInput];;){if(a=this.sourceString.charCodeAt(l),i!==n&&(13===a?(this.col=0,this.line++):10===a?13!==i&&(this.col=0,this.line++):this.col++),i=a,t=this.trans(o,a),t===s){if(r===u){if(this.start===this.sourceString.length){if(this.ended)throw new Error("已经到达末尾.");return this.ended=!0,"<$>"}throw new Error("意外的字符,line:"+this.position.join(",col:")+"of "+this.sourceString.substr(r,20))}switch(e=this.finalTable[h],this.start=u,this.oldStart=r,this.yyText=this.sourceString.substring(this.startIdx,this.endIdx),e){case 2:return"time";case 3:return"number";case 4:return"hex";case 5:return"+";case 6:return"-";case 7:return this.begin("STRING"),"str_start";case 8:return"str_esc_char";case 9:return"str_esc_unicode";case 10:return"str_esc_ascii";case 11:return this.begin("INITIAL"),"str_end";case 12:return"str_seg";case 13:return"set";case 14:return"let";case 15:return"def";case 16:return"apply";case 17:return"clone";case 18:return"then";case 19:return"=";case 20:return"(";case 21:return")";case 22:return"[";case 23:return"]";case 24:return"{";case 25:return"}";case 26:return".";case 27:return",";case 28:return";";case 29:return"%";case 30:return"id"}break}e=this.finalTable[t],null!=e&&(h=t,u=l+1),l+=1,o=t}}trans(e,t){if(isNaN(t))return s;if(t<this.inputTable[0][0]||t>this.inputTable[this.inputTable.length-1][1])throw new Error("输入超出有效范围,line:"+this.position.join(",col:"));if(!0===this.transTable[e][0])return s;const a=this.find(t,this.inputTable),r=this.find(a,this.transTable[e][2]);return this.transTable[e][1][r]}find(e,t){let a,r,s;for(a=0,r=t.length-1;;){if(s=a+r>>>1,t[s][0]<=e&&t[s][1]>=e)return t[s][2];t[s][0]>e?r=s-1:a=s+1}}begin(e=null){this.initialState=null!=e?e:"INITIAL"}get initialState(){return this.initialStateString}set initialState(e){if(void 0===this.initialTable[e])throw new Error("未定义的起始状态:"+e);this.initialStateString=e,this.initialInput=this.initialTable[e]}}var i=l;class o{constructor(){this.ast_helper=new a,this.actionTable=[null,{0:6,1:1,2:2,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:9,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:9,73:148,18:9,85:52,78:50,24:28,25:9,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:25,5:33,6:35,7:37,12:43,16:57,19:68,21:43,23:68,26:68,28:43,30:87,31:68,32:95,35:87,38:87,39:68,40:68,44:66,45:87,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,71:87,72:87,75:187,79:68,80:201,82:140,86:95,87:112,88:87,92:64,93:94,94:70,95:90,96:92,98:87,101:120,106:239,107:138,109:110,110:108,113:46,114:72,117:136,121:68,122:87},{0:6,2:11,67:54,4:22,69:20,70:16,8:4,9:8,10:10,11:41,68:36,13:49,14:11,73:148,18:11,20:65,77:32,78:50,124:150,24:28,25:11,90:150,27:81,92:161,29:18,33:135,34:30,91:229,36:26,74:44,85:52,76:12,41:150,89:14,43:36,101:120,46:161,47:104,112:40,115:34,99:161,120:56,116:38,125:42},{19:68,23:68,24:28,25:24,29:18,30:89,31:68,35:139,36:26,37:141,39:68,43:36,44:66,45:159,47:104,48:106,53:102,54:98,61:96,62:100,64:132,65:134,66:68,68:36,69:20,70:16,71:183,76:12,77:32,79:68,82:140,87:112,88:225,89:14,92:64,93:94,94:70,95:90,96:92,98:237,101:120,107:138,109:110,110:108,113:46,114:72,115:34,116:38,117:136,121:68,122:48,123:251},{0:6,2:13,67:54,4:22,69:20,70:16,8:4,9:8,10:10,76:12,77:32,14:13,73:148,18:13,85:52,78:50,24:28,25:13,90:150,74:44,29:18,68:36,89:14,36:26,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{3:27,20:67,21:45,27:83,12:45,28:45,15:55},{64:132,65:134,67:54,94:70,117:136,72:185,120:56,111:243,78:50,82:140,85:52,22:71,87:112,26:68,92:64,93:94,86:80,95:90,32:80,33:137,100:84,101:120,38:143,40:68,107:138,44:66,109:110,110:108,47:104,48:106,96:92,114:72,108:76,53:102,54:98,55:173,56:74,57:78,58:82,59:86,60:88,61:96,62:100},{36:39,69:20,70:16,10:39,43:36,76:12,77:32,47:104,115:34,116:38,68:36,101:120,24:39,89:14,29:18},{64:132,65:134,117:136,118:144,77:197,82:140,83:146,84:215,87:112,92:64,93:94,94:231,95:90,96:92,100:84,101:120,107:138,109:110,110:108,47:104,48:106,53:102,54:98,119:142,57:175,58:82,59:86,60:88,61:96,62:100},{0:6,2:15,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{0:6,2:17,67:54,68:36,69:20,70:16,8:4,9:8,10:10,76:12,77:32,78:50,73:148,74:44,85:52,89:14,90:150,29:18,101:120,41:150,43:36,47:104,112:40,115:34,116:38,120:56,124:150,125:42},{17:59,42:153,46:163},{32:97,75:97,52:97,86:97,80:97,106:97,43:97,68:97},{32:99,80:99,106:99,75:99,52:99,86:99},{32:118,49:114,50:116,52:118,86:118,80:118,106:118,75:118,63:177},{87:221},{32:101,80:101,106:101,75:101,52:101,86:101},{32:103,80:103,106:103,75:103,52:103,86:103},{32:105,97:105,52:105,86:105,80:105,106:105,75:105},{104:126,81:205,105:128,51:130,102:122,103:124},{104:126,81:207,105:128,51:130,102:122,103:124},{104:126,81:209,105:128,51:130,102:122,103:124},{104:126,81:211,105:128,51:130,102:122,103:124},{104:126,81:213,105:128,51:130,102:122,103:124},{32:107,80:107,75:107,86:107},{101:120,118:144,109:110,110:108,47:104,48:106,83:146,52:167,53:102,54:98,87:112,84:217,61:96,62:100,119:142},{67:54,85:52,120:56,41:149,90:149,124:149,78:50}],this.gotoTable={64:{52:171},29:{0:5},30:{0:7},31:{2:19},32:{2:21},33:{25:75,18:61,2:23,14:51},34:{79:199,23:73,19:63,39:145,40:147,121:247,26:79,66:179,31:93},35:{68:181,43:155},36:{3:29},37:{4:31},38:{14:53},39:{25:77},40:{12:47,21:69,28:85},41:{32:109,75:109,52:109,86:109,80:109,106:109,43:157,68:157},42:{97:233},43:{32:111,97:235,52:111,86:111,80:111,106:111,75:111},44:{124:253,41:151,90:227},45:{113:245},46:{122:249},47:{32:113},49:{75:189},50:{88:91,98:91,35:91,38:91,71:91,72:91,122:91,45:91,30:91},51:{75:191},52:{32:115,86:219},53:{32:117,86:117},54:{32:119,80:203,86:119},55:{32:121,80:121,106:241,75:193,52:169,86:121},56:{32:123,80:123,75:195,\n86:123},57:{32:125,80:125,106:125,75:125,52:125,86:125},58:{32:127,80:127,106:127,75:127,52:127,86:127},59:{32:129,80:129,106:129,75:129,52:129,86:129},60:{87:223},61:{51:165},62:{32:131,80:131,75:131,86:131},63:{32:133,80:133,75:133,86:133}},this.prodList=[[65,2],[29,1],[30,2],[30,0],[31,1],[31,1],[33,6],[33,6],[33,5],[33,3],[33,5],[37,0],[39,0],[38,2],[38,1],[36,3],[35,1],[35,3],[35,0],[42,1],[32,7],[32,12],[32,5],[45,0],[46,0],[40,4],[40,4],[40,3],[40,6],[48,3],[48,1],[48,0],[49,1],[34,2],[34,0],[50,3],[50,4],[47,1],[52,3],[52,1],[52,0],[53,1],[53,3],[54,1],[54,1],[51,1],[51,1],[51,1],[55,1],[55,1],[55,1],[55,1],[41,1],[58,1],[57,3],[60,1],[60,0],[59,1],[59,1],[59,0],[43,3],[61,2],[61,2],[61,2],[61,2],[61,0],[56,1],[56,1],[63,4],[62,3],[62,2],[64,3],[64,3],[64,1],[44,1],[44,0]],this.inputTable={"<$>":1,set:2,id:3,"{":4,"}":5,apply:6,"(":7,")":8,then:9,",":10,def:11,let:12,"=":13,time:14,hex:15,number:16,"%":17,"+":18,"-":19,str_start:20,str_end:21,str_esc_char:22,str_esc_unicode:23,str_esc_ascii:24,str_seg:25,"[":26,"]":27,";":28}}static parse(e){const t=new i;t.source=e;return(new o).parseLexer(t)}parseLexer(e){const t=[0],a=[];let r,s,n;for(;;){if(s=e.token,r=t[t.length-1],null==this.actionTable[this.inputTable[s]][r])throw new Error("Parse Error:"+e.positionInfo);if(n=this.actionTable[this.inputTable[s]][r],1===n)return a.pop();if(1&~n){if(!(1&n)){const s=n>>>1,l=this.prodList[s][1];let i=null;switch(l>0&&(i=a[a.length-l]),s){case 1:i=this.ast_helper.on_Result(a[a.length-1]);break;case 2:case 13:case 33:i=a[a.length-2],i.push(a[a.length-1]);break;case 3:case 18:case 31:case 34:case 40:case 65:i=[];break;case 4:case 19:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 55:case 56:case 57:case 58:case 66:case 67:case 74:case 75:break;case 5:i={type:"SetExpr",params:a[a.length-1]};break;case 6:i=this.ast_helper.on_unit_set_expr(a[a.length-5],a[a.length-3],a[a.length-1]);break;case 7:i=this.ast_helper.on_temporary_target_set_expr(a[a.length-5],a[a.length-3],a[a.length-1]);break;case 8:i={type:"ApplyExpr",params:[a[a.length-4],a[a.length-2]]};break;case 9:i=this.ast_helper.on_then_set_expr(a[a.length-3],a[a.length-1]);break;case 10:i=this.ast_helper.on_group_set_expr(a[a.length-3]);break;case 11:this.ast_helper.on_enter_scope();break;case 12:this.ast_helper.on_leave_scope();break;case 14:case 16:case 30:case 39:case 73:i=[a[a.length-1]];break;case 15:case 27:i=a[a.length-2];break;case 17:case 35:case 42:i=[a[a.length-3],a[a.length-1]];break;case 20:i=this.ast_helper.on_def_object(a[a.length-6],a[a.length-5],a[a.length-3]);break;case 21:i=this.ast_helper.on_def_template(a[a.length-11],a[a.length-10],a[a.length-8],a[a.length-4]);break;case 22:i=this.ast_helper.on_let_object_binding(a[a.length-4],a[a.length-2]);break;case 23:this.ast_helper.on_enter_tpl();break;case 24:this.ast_helper.on_leave_tpl();break;case 25:i=this.ast_helper.on_object_modification(a[a.length-4],a[a.length-2]);break;case 26:i=this.ast_helper.on_template_application(a[a.length-4],a[a.length-2]);break;case 28:i=this.ast_helper.on_tmp_object_modification(a[a.length-5],a[a.length-3]);break;case 29:case 71:case 72:i=a[a.length-3],i.push(a[a.length-1]);break;case 32:i=this.ast_helper.on_Variable_value(a[a.length-1]);break;case 36:i=[a[a.length-4],a[a.length-2]];break;case 37:i=this.ast_helper.on_ArgList(a[a.length-1]);break;case 38:i=a[a.length-1],i.unshift(a[a.length-3]);break;case 41:i=[null,a[a.length-1]];break;case 52:i=this.ast_helper.on_Time_value(a[a.length-1]);break;case 53:i=this.ast_helper.on_Hex_value(a[a.length-1]);break;case 54:i=this.ast_helper.on_Num_value(a[a.length-3],a[a.length-2],a[a.length-1]);break;case 59:i="+";break;case 60:i=this.ast_helper.on_String_value(a[a.length-2]);break;case 61:i=a[a.length-2],i.push({type:"char",value:a[a.length-1]});break;case 62:i=a[a.length-2],i.push({type:"unicode",value:a[a.length-1]});break;case 63:i=a[a.length-2],i.push({type:"ascii",value:a[a.length-1]});break;case 64:i=a[a.length-2],i.push({type:"seg",value:a[a.length-1]});break;case 68:i=this.ast_helper.on_Object_value(a[a.length-4],this.ast_helper.on_KeyValue_list(a[a.length-4],a[a.length-2]));break;case 69:i=this.ast_helper.on_Array_value(a[a.length-2]);break;case 70:i=this.ast_helper.on_Array_value([])}let o=0;for(;o<l;)t.pop(),a.pop(),o++;if(r=t[t.length-1],null==this.gotoTable[this.prodList[s][0]][r])throw new Error("Goto Error!"+e.positionInfo);n=this.gotoTable[this.prodList[s][0]][r],t.push((n>>>1)-1),a.push(i)}}else a.push(e.yytext),t.push((n>>>1)-1),e.advance()}}}var h=o;var u=function(a,r=!0){const s={x:{numType:"number",value:0},y:{numType:"number",value:0},zIndex:{numType:"number",value:0},scale:{numType:"number",value:1},duration:void 0},n={content:"请输入内容",alpha:{numType:"number",value:1},color:16777215,anchorX:{numType:"number",value:0},anchorY:{numType:"number",value:0},fontSize:{numType:"number",value:25},fontFamily:"SimHei",bold:{numType:"number",value:1},textShadow:{numType:"number",value:1},strokeWidth:{numType:"number",value:0},strokeColor:16777215,rotateX:{numType:"number",value:0},rotateY:{numType:"number",value:0},rotateZ:{numType:"number",value:0},parent:void 0},l={text:"请输入内容",fontSize:{numType:"number",value:25},textColor:0,textAlpha:{numType:"number",value:1},fillColor:16777215,fillAlpha:{numType:"number",value:1},target:void 0},i={d:void 0,viewBox:void 0,borderColor:0,borderAlpha:{numType:"number",value:1},borderWidth:{numType:"number",value:0},fillColor:16777215,fillAlpha:{numType:"number",value:1}};function o(e){for(const a in e)if(e.hasOwnProperty(a))switch((void 0!==e[a].value&&void 0!==e[a].value.numType&&void 0===e[a].easing||void 0!==e[a].value&&void 0!==e[a].type)&&(e[a]=e[a].value),a){case"content":case"text":e[a]=t(e[a],!1,!0);break;case"fontFamily":case"d":case"viewBox":e[a]=t(e[a],!0,!1);break;case"parent":e[a]=t(e[a],!1,!1);break;default:"string"==typeof e[a]&&(e[a]=t(e[a],!1,!1))}}function u(e){o(e.attrs),e.duration=e.duration.value,e.defaultEasing=e.default_easing&&t(e.default_easing.value,!1,!1),e.targetName=e.target_name}try{const t=h.parse(a),r={};r.defs=t.defs;for(let a=0;a<r.defs.length;a++){if(o(r.defs[a].attrs),r.defs[a].attrs.target){const e={objType:"seek"};for(let t=0;t<r.defs[a].attrs.target.length;t++){const s=r.defs[a].attrs.target[t];"seasonId"===s[0]||"episodeId"===s[0]?e.objType="bangumi":"av"!==s[0]&&"page"!==s[0]||(e.objType="av"),s[1].value&&s[1].value.value?e[s[0]]=s[1].value.value:s[1].value&&(e[s[0]]=s[1].value)}r.defs[a].attrs.target=e}r.defs[a].attrs=e(s,t.defs[a].attrs),"DefText"===r.defs[a].type?r.defs[a].attrs=e(n,t.defs[a].attrs):"DefButton"===r.defs[a].type?r.defs[a].attrs=e(l,t.defs[a].attrs):"DefPath"===r.defs[a].type&&(r.defs[a].attrs=e(i,t.defs[a].attrs))}r.sets=t.sets;for(let e=0;e<r.sets.length;e++)if(r.sets[e].items)for(let t=0;t<r.sets[e].items.length;t++)r.sets[e].items[t].attrs&&u(r.sets[e].items[t]);else u(r.sets[e]);return r}catch(e){throw new Error(e.message)}};const _=self;_.addEventListener("message",(e=>{const t=e.data;try{const e=u(t.text);t.defs=e.defs,t.sets=e.sets,_.postMessage(t)}catch(e){console.warn("Error in BAS parser: ",e),_.postMessage({error:e.message})}}))}();',"Worker",void 0,void 0)
}const _=g.browser.version,R=class{constructor(t={}){this.paused=!0,this.dmList=[],this.cdmList=[],this.cTime=0,this.pTime=0,this.time0=0,this.pauseTime=0,this.testId=0,this.testDanmakus=[],this.inited=!1;const e={container:document.getElementById("player"),easing:"linear",visible:!0,fontFamily:"",timeSyncFunc:null,pauseFunc:null,seekFunc:null};this.options=g.extend(e,t),this.container=this.options.container,this.paused=!0,this.inited=!1,this.dmList=[],this.cdmList=[],this.visibleStatus=this.options.visible,this.cTime=0,this.pTime=0,this.time0=0,this.pauseTime=0,this.startTime=(new Date).getTime(),this.testId=0}static parse(t){const e=t.danmaku;if(R.workerDisabled)try{const i=Q(e.text);e.defs=i.defs,e.sets=i.sets,t.success&&t.success(e)}catch(e){console.warn("Error in BAS parser: ",e),t.error&&t.error(e.message)}else{if(!R.workerIndex)for(let t=0;t<R.workerCount;t++)R.workers[t]=new D;const i=R.workers[R.workerIndex%R.workerCount];i.onmessage=e=>{e.data.error?t.error&&t.error(e.data.error):(e.data.defs=e.data.defs,e.data.sets=e.data.sets,t.success&&t.success(e.data))},i.postMessage(e),R.workerIndex++}}init(){if(!this.inited){let t,e;this.wrap=g.string2DOM(`<div class="bas-danmaku ${this.paused?"bas-danmaku-pause":""}"></div>`),this.container&&this.container.appendChild(this.wrap),this.inited=!0,this.resolutionWidth&&this.resolutionHeight&&this.resize(),this.animationFrame=window.requestAnimationFrame((()=>{this.render()}));const i=["webkit","moz","ms","o"];if("hidden"in document)t="hidden",e="visibilitychange";else for(let n=0;n<i.length;n++)i[n]+"Hidden"in document&&(t=i[n]+"Hidden",e=i[n]+"visibilitychange");document.addEventListener(e,(()=>{document[t]||"function"==typeof this.options.timeSyncFunc&&this.seek(this.options.timeSyncFunc()/1e3)}))}}add(t){if(t.dm instanceof Array){let e=0;t.dm.forEach((i=>{this.add({dm:i,parsed:t.parsed,test:t.test,noRefresh:!0,success:i=>{e++,e===t.dm.length&&(t.noRefresh||this.refresh())},error:()=>{e++,e===t.dm.length&&(t.noRefresh||this.refresh())}})}))}else{t.dm=JSON.parse(JSON.stringify(t.dm));const e=e=>{this.inited||this.init(),t.test?(this.pretreatDanmaku(e,!0),this.testDanmakus.push(e),this.drawDanmaku(e)):(this.pretreatDanmaku(e),-1===e.stime&&(this.cTime?e.stime=this.cTime/1e3+.1:e.stime=this.options.timeSyncFunc()/1e3+.1),this.dmList.push(e),1!==this.dmList.length||this.paused||this.play(),t.noRefresh||this.refresh())};t.parsed?(e(t.dm),t.success&&t.success(t.dm)):R.parse({danmaku:t.dm,success:i=>{e(i),t.success&&t.success(i)},error:()=>{t.error&&t.error()}})}}remove(t){this.dmList=this.dmList.filter((e=>e.dmid!==t)),this.refresh()}pretreatDanmaku(t,e=!1){e&&(t.dmid="test"+this.testId++,t.test=!0,t.stime=this.options.timeSyncFunc()/1e3),t.def2set={};for(let e=0;e<t.defs.length;e++){const i=t.defs[e].name;let n=0;t.def2set[i]=[];for(let e=0;e<t.sets.length;e++)switch(t.sets[e].type){case"Serial":let r=0;for(let o=0;o<t.sets[e].items.length;o++)t.sets[e].items[o].targetName===i&&(t.def2set[i].push({name:`bas-${t.dmid}-${i}-${n}`,valueStart:this.getValueStart(o,n,t.def2set[i]),valueEnd:g.extend(this.getValueStart(o,n,t.def2set[i]),t.sets[e].items[o].attrs),easing:t.sets[e].items[o].defaultEasing||this.options.easing||"linear",duration:t.sets[e].items[o].duration/1e3,delay:r/1e3,group:e}),n++),r+=t.sets[e].items[o].duration;break;case"Parallel":for(let r=0;r<t.sets[e].items.length;r++)t.sets[e].items[r].targetName===i&&(t.def2set[i].push({name:`bas-${t.dmid}-${i}-${n}`,valueEnd:g.extend(this.getValueStart(r,n,t.def2set[i]),t.sets[e].items[r].attrs),easing:t.sets[e].items[r].defaultEasing||this.options.easing||"linear",duration:t.sets[e].items[r].duration/1e3,delay:0,group:e}),n++);break;case"Unit":t.sets[e].targetName===i&&(t.def2set[i].push({name:`bas-${t.dmid}-${i}-${n}`,valueEnd:t.sets[e].attrs,easing:t.sets[e].defaultEasing||this.options.easing||"linear",duration:t.sets[e].duration/1e3,delay:0,group:e}),n++)}}for(const e in t.def2set)if({}.hasOwnProperty.call(t.def2set,e)){const i=t.defs.filter((t=>t.name===e))[0];i.attrs.duration?t.def2set[e].push({name:`bas-${t.dmid}-${e}-duration`,valueEnd:{},easing:"linear",duration:i.attrs.duration/1e3,delay:0,group:-1}):0===t.def2set[e].length&&t.def2set[e].push({name:`bas-${t.dmid}-${e}-0`,valueEnd:{},easing:"linear",duration:4,delay:0,group:-1})}t.duration=0;for(const e in t.def2set)if({}.hasOwnProperty.call(t.def2set,e)){t.setsIntervals={};let i=t.def2set[e].length;for(let n=0;n<i;n++)if(t.def2set[e][n]){const r=[parseFloat(t.def2set[e][n].delay.toFixed(10)),parseFloat((t.def2set[e][n].delay+t.def2set[e][n].duration).toFixed(10)),t.def2set[e][n].group];for(let o in t.def2set[e][n].valueEnd)if(t.def2set[e][n].valueEnd.hasOwnProperty(o))if(-1!==["x","y","rotateX","rotateY","rotateZ","scale"].indexOf(o)&&(o="transform"),t.setsIntervals[o]){let a=t.setsIntervals[o].length;for(let s=0;s<a;s++)if(t.setsIntervals[o][s]){const l=t.setsIntervals[o][s][2];t.def2set[e][n].group!==l&&(t.setsIntervals[o][s][0]>r[0]&&t.setsIntervals[o][s][0]<r[1]||t.setsIntervals[o][s][1]>r[0]&&t.setsIntervals[o][s][1]<r[1]||t.setsIntervals[o][s][0]<=r[0]&&t.setsIntervals[o][s][1]>=r[1]&&t.setsIntervals[o][s][0]!==t.setsIntervals[o][s][1])&&r[0]!==r[1]&&(console.warn(`BAS: attribute conflict, name: ${e} attr: ${o} time: ${r} ${t.setsIntervals[o][s]}`),t.setsIntervals[o]=t.setsIntervals[o].filter((t=>t[2]!==l)),t.def2set[e]=t.def2set[e].filter((t=>t.group!==l)),s-=a-t.setsIntervals[o].length,a=t.setsIntervals[o].length,n-=i-t.def2set[e].length,i=t.def2set[e].length)}t.setsIntervals[o].push(r)}else t.setsIntervals[o]=[r]}for(let i=0;i<t.def2set[e].length;i++){const n=t.def2set[e][i].delay+t.def2set[e][i].duration;n>t.duration&&(t.duration=n)}}}getValueStart(t,e,i){return t>=1&&e>=1?i[e-1].valueEnd&&Object.keys(i[e-1].valueEnd).length?i[e-1].valueEnd:this.getValueStart(t-1,e-1,i):null}render(){this.paused||(this.animationFrame=window.requestAnimationFrame((()=>{this.render()})),this.renderDanmaku())}renderDanmaku(){this.updateTime(),this.refreshCdmList(),this.drawDanmaku()}updateTime(){this.pTime=this.cTime;const t=(new Date).getTime();if(this.cTime=this.time0+t-this.startTime,"function"==typeof this.options.timeSyncFunc){const e=this.options.timeSyncFunc();(Math.abs(e-this.cTime)>1e3||isNaN(this.cTime))&&(this.cTime=e,this.pTime=e,this.time0=e,this.startTime=t,this.refresh())}}refreshCdmList(t){if(this.visibleStatus){if(t)this.refresh();else if(this.cdmList=[],Math.abs(this.cTime-this.pTime)<500)for(let t=0;t<this.dmList.length;t++)this.dmList[t].stime>=this.pTime/1e3&&this.dmList[t].stime<this.cTime/1e3&&this.cdmList.push(this.dmList[t])}else this.clear()}drawDanmaku(t=this.cdmList,e=0){if(this.visibleStatus)if(this.inited||this.init(),t instanceof Array)t.forEach((t=>{this.drawDanmaku(t)}));else{const i=JSON.parse(JSON.stringify(t)),n=new f({container:this.wrap,dm:i,startTime:e,animationEndCallback:t=>{t.dm.test&&(this.testDanmakus=this.testDanmakus.filter((e=>e.dmid!==t.dm.dmid)))},pauseFunc:this.options.pauseFunc,seekFunc:this.options.seekFunc});this.options.blockJudge&&this.options.blockJudge(n.dm)?n.ele.style.visibility="hidden":n.ele.style.visibility="",n.ele&&this.wrap.appendChild(n.ele)}}play(){this.time0=this.pauseTime,this.startTime=(new Date).getTime(),this.pauseTime=0,this.paused=!1,this.wrap&&this.wrap.classList.remove("bas-danmaku-pause"),this.dmList.length&&(this.inited||this.init(),this.render())}pause(){this.paused=!0,this.inited||this.init(),this.wrap.classList.add("bas-danmaku-pause");const t=(new Date).getTime();this.pauseTime=this.time0+t-this.startTime}toggle(){this.paused?this.play():this.pause()}seek(t,e=!0){this.testDanmakus=[],this.time0=1e3*t,this.startTime=(new Date).getTime(),this.inited||this.init(),this.dmList.length&&this.visibleStatus&&this.wrap&&(this.pTime=1e3*t,this.cTime=1e3*t,this.clear(),e&&this.refresh())}refresh(){this.clear();const t=this.pTime/1e3;for(let e=0;e<this.dmList.length;e++)this.dmList[e].stime<t&&this.dmList[e].stime+this.dmList[e].duration>t&&this.drawDanmaku(this.dmList[e],t-this.dmList[e].stime)
;for(let e=0;e<this.testDanmakus.length;e++)this.testDanmakus[e].stime<t&&this.testDanmakus[e].stime+this.testDanmakus[e].duration>t&&this.drawDanmaku(this.testDanmakus[e],t-this.testDanmakus[e].stime)}visible(t){t!==this.visibleStatus&&(t?(this.visibleStatus=!0,this.refresh(),this.render()):(this.visibleStatus=!1,this.clear()))}clear(){this.inited&&(this.cdmList=[],this.wrap&&(this.wrap.innerHTML=""))}resize(t=this.resolutionWidth,e=this.resolutionHeight){if(this.resolutionWidth=t,this.resolutionHeight=e,this.inited){const i=this.container.offsetWidth,n=this.container.offsetHeight;i/t>n/e?(this.wrap.style.width=n/e*t/i*100+"%",this.wrap.style.height="100%"):(this.wrap.style.width="100%",this.wrap.style.height=i/t*e/n*100+"%")}this.refresh()}reset(){this.animationFrame&&window.cancelAnimationFrame(this.animationFrame);for(let t=0;t<R.workers.length;t++)R.workers[t].terminate();R.workers=[],this.clear(),this.paused=!0,this.dmList=[],this.cdmList=[],this.cTime=0,this.pTime=0,this.time0=0,this.pauseTime=0,this.testId=0,this.testDanmakus=[],this.dmList=[],this.cdmList=[],this.startTime=(new Date).getTime(),R.workerIndex=0}destroy(){this.reset()}};let M=R;M.workerDisabled=_.safari&&!_.safariSupportMSE||!Worker||_.trident||_.edge||"chrome"===_.browser&&_.version<45,M.workerIndex=0,M.workerCount=2,M.workers=[];var T=M},48760:function(t,e,i){"use strict";function n(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}i.d(e,{Z:function(){return q}});const r="undefined"!=typeof window,o=r&&navigator.userAgent.toLowerCase(),a=o&&/wechatdevtools/.test(o),s=o&&o.indexOf("android")>0;function l(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function A(t,...e){for(let i=0;i<e.length;i++){let n=e[i];for(let e in n)t[e]=n[e]}return t}function c(t){return null==t}function h(t,e){return Math.sqrt(t*t+e*e)}let d=r&&document.createElement("div").style,u=(()=>{if(!r)return!1;let t={standard:"transform",webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform"};for(let e in t)if(void 0!==d[t[e]])return e;return!1})();function p(t){return!1!==u&&("standard"===u?"transitionEnd"===t?"transitionend":t:u+t.charAt(0).toUpperCase()+t.substr(1))}function g(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function f(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function m(t){let e=0,i=0;for(;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function y(t){let e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}const b=u&&"standard"!==u?"-"+u.toLowerCase()+"-":"";let v=p("transform"),E=p("transition");const I=r&&p("perspective")in d,C=r&&("ontouchstart"in window||a),B=!1!==v,w=r&&E in d,x={transform:v,transition:E,transitionTimingFunction:p("transitionTimingFunction"),transitionDuration:p("transitionDuration"),transitionDelay:p("transitionDelay"),transformOrigin:p("transformOrigin"),transitionEnd:p("transitionEnd")},Q={touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2};function S(t){if(t instanceof window.SVGElement){let e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function k(t,e){for(let i in e)if(e[i].test(t[i]))return!0;return!1}function D(t,e="click"){let i;"mouseup"===t.type||"mousecancel"===t.type?i=t:"touchend"!==t.type&&"touchcancel"!==t.type||(i=t.changedTouches[0]);let n,r={};i&&(r.screenX=i.screenX||0,r.screenY=i.screenY||0,r.clientX=i.clientX||0,r.clientY=i.clientY||0);const o=!0,a=!0;if("undefined"!=typeof MouseEvent)try{n=new MouseEvent(e,A({bubbles:o,cancelable:a},r))}catch(t){s()}else s();function s(){n=document.createEvent("Event"),n.initEvent(e,o,a),A(n,r)}n.forwardedTouchEvent=!0,n._constructed=!0,t.target.dispatchEvent(n)}function _(t,e){t.removeChild(e)}const R={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,minLen:30,interactive:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!1,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:3,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},HWCompositing:!0,useTransition:!1,useTransform:!0,bindToWrapper:!1,disableMouse:C,disableTouch:!C,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:{fade:!0,interactive:!0},pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:{speed:20,invert:!1,easeTime:0,hammer:!0},stopPropagation:!0,zoom:!1,infinity:!1,dblclick:!1};const M={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}};function T(t,e,i,n,r,o,a,s){let l=t-e,A=Math.abs(l)/i,{deceleration:c,itemHeight:h,swipeBounceTime:d,wheel:u,swipeTime:p}=a,g=p,f=u?4:15,m=t+A/c*(l<0?-1:1);return u&&h&&(m=s._findNearestValidWheel(m).y),m<n?(m=o?Math.max(n-o/4,n-o/f*A):n,g=d):m>r&&(m=o?Math.min(r+o/4,r+o/f*A):r,g=d),{destination:Math.round(m),duration:g}}const F=100/60;function L(){}const N=r?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||F)/2)}:L,P=r?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:L;function U(t){console.error(`[BScroll warn]: ${t}`)}function O(t,e){if(!t)throw new Error("[BScroll] "+e)}function G(t){let e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function H(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}H.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this.wrapper.classList.add("mousedown"),this._start(t),this.rect=window.frameElement&&window.frameElement.getBoundingClientRect();break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.wrapper.classList.remove("mousedown"),this._end(t)}},H.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},H.prototype.fade=function(t,e){if(e&&!this.visible)return;let i=t?250:500;t=t?"1":"0",this.wrapperStyle[x.transitionDuration]=i+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((()=>{this.wrapperStyle.opacity=t,this.visible=+t}),0)},H.prototype.updatePosition=function(){if("vertical"===this.direction){let t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);const e=Math.max(this.indicatorHeight+3*t,this.scroller.options.minLen);this.indicatorStyle.height=`${e}px`,t=0}else if(t>this.maxPosY){this.transitionTime(500);const e=Math.max(this.indicatorHeight-3*(t-this.maxPosY),this.scroller.options.minLen);this.indicatorStyle.height=`${e}px`,t=this.maxPosY+this.indicatorHeight-e}else this.indicatorStyle.height=`${this.indicatorHeight}px`;this.y=t,
this.scroller.options.useTransform?this.indicatorStyle[x.transform]=`translateY(${t}px)${this.scroller.translateZ}`:this.indicatorStyle.top=`${t}px`}else{let t=Math.round(this.sizeRatioX*this.scroller.x);if(t<0){this.transitionTime(500);const e=Math.max(this.indicatorWidth+3*t,this.scroller.options.minLen);this.indicatorStyle.width=`${e}px`,t=0}else if(t>this.maxPosX){this.transitionTime(500);const e=Math.max(this.indicatorWidth-3*(t-this.maxPosX),this.scroller.options.minLen);this.indicatorStyle.width=`${e}px`,t=this.maxPosX+this.indicatorWidth-e}else this.indicatorStyle.width=`${this.indicatorWidth}px`;this.x=t,this.scroller.options.useTransform?this.indicatorStyle[x.transform]=`translateX(${t}px)${this.scroller.translateZ}`:this.indicatorStyle.left=`${t}px`}},H.prototype.transitionTime=function(t=0){this.indicatorStyle[x.transitionDuration]=t+"ms"},H.prototype.transitionTimingFunction=function(t){this.indicatorStyle[x.transitionTimingFunction]=t},H.prototype.destroy=function(){var t,e;this._removeDOMEvents(),null==(e=null==(t=this.wrapper)?void 0:t.parentNode)||e.removeChild(this.wrapper)},H.prototype._start=function(t){let e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=l(),this._handleMoveEvents(g),this.scroller.trigger("beforeScrollStart")},H.prototype._move=function(t){let e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart");let i=e.pageX,n=e.pageY;window!==t.currentTarget&&(i-=this.rect&&this.rect.left||0,n-=this.rect&&this.rect.top||0),this.moved=!0;let r=i-this.lastPointX;this.lastPointX=i;let o=n-this.lastPointY;this.lastPointY=n;let a=this.x+r,s=this.y+o;this._pos(a,s)},H.prototype._end=function(t){if(!this.initiated)return;this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(f);const e=this.scroller.options.snap;if(e){let{speed:t,easing:i=M.bounce}=e,n=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),r=t||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-n.x),1e3),Math.min(Math.abs(this.scroller.y-n.y),1e3)),300);this.scroller.x===n.x&&this.scroller.y===n.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=n,this.scroller.scrollTo(n.x,n.y,r,i))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})},H.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},H.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},H.prototype._calculate=function(){if("vertical"===this.direction){let t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),this.scroller.options.minLen),this.indicatorStyle.height=`${this.indicatorHeight}px`,this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{let t=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(t*t/(this.scroller.scrollerWidth||t||1)),this.scroller.options.minLen),this.indicatorStyle.width=`${this.indicatorWidth}px`,this.maxPosX=t-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},H.prototype._addDOMEvents=function(){let t=g;this._handleDOMEvents(t)},H.prototype._removeDOMEvents=function(){let t=f;this._handleDOMEvents(t),this._handleMoveEvents(t)},H.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||(t(this.scroller.window,"touchmove",this),this.scroller.window!==window&&t(window,"touchmove",this)),this.scroller.options.disableMouse||(t(this.scroller.window,"mousemove",this),this.scroller.window!==window&&t(window,"mousemove",this))},H.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(this.scroller.window,"touchend",this),this.scroller.window!==window&&t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(this.scroller.window,"mouseup",this),this.scroller.window!==window&&t(window,"mouseup",this))};var V=i(2218),Y=i.n(V);const z=200;function W(t){if(t&&t.classList)return t.classList.contains("tombstone")}function Z(t,e){this.options=e,O("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),O("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),O("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.tombstonesAnimationHandlers=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("resize",(()=>{this.onResize()})),this.scroller.on("destroy",(()=>{this.destroy()})),this._onResizeHandler=setTimeout((()=>{this.onResize(),this.scroller.on("scroll",(()=>{this.onScroll()}))}))}function j(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||U("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||U("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(e)}Z.prototype.destroy=function(){clearTimeout(this._onResizeHandler),this.tombstonesAnimationHandlers.forEach((function(t){clearTimeout(t)})),this.tombstonesAnimationHandlers=null,this.items.forEach((t=>{t.node&&(this.scrollerEl.removeChild(t.node),t.node=null)})),this.scroller.infiniteScroller=null,this.scroller=null,this.wrapperEl=null,this.scrollerEl=null,this.items=null,this.tombstones=null},Z.prototype.onScroll=function(){const t=-this.scroller.y;let e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;let i=this._calculateAnchoredItem(this.anchorItem,this.scroller.wrapperHeight),n=this.anchorItem.index,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),this.maybeRequestContent()},Z.prototype.onResize=function(){let t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(let t=0;t<this.items.length;t++)this.items[t].height=this.items[t].width=0;this.onScroll()},Z.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},Z.prototype.maybeRequestContent=function(){if(this.requestInProgress||!this.hasMore)return;let t=this.lastAttachedItem-this.loadedItems;t<=0||(this.requestInProgress=!0,this.options.fetch(t).then((t=>{if(this.requestInProgress=!1,t)this.addContent(t);else{this.hasMore=!1;let t=this._removeTombstones(),e=0;this.anchorItem.index<=this.items.length?(e=this._fixScrollPosition(),this._setupAnimations({},e),this.scroller.resetPosition(this.scroller.options.bounceTime)):(this.anchorItem.index-=t,e=this._fixScrollPosition(),this._setupAnimations({},e),this.scroller.stop(),this.scroller.resetPosition(),this.onScroll())}})))},Z.prototype.addContent=function(t){for(let e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},Z.prototype.attachContent=function(){let t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();let i=this._fixScrollPosition();this._setupAnimations(e,i)},Z.prototype.resetMore=function(){
this.hasMore=!0},Z.prototype._removeTombstones=function(){let t,e=0,i=this.items.length;for(let e=0;e<i;e++){const i=this.items[e].node,n=this.items[e].data;i&&!W(i)||n||(void 0===t&&(t=e),i&&this.scrollerEl.removeChild(i))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},Z.prototype._collectUnusedNodes=function(){let t=[];for(let e=0;e<this.items.length;e++){if(e===this.firstAttachedItem){e=this.lastAttachedItem-1;continue}const i=this.items[e].node;i&&(W(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}return t},Z.prototype._createDOMNodes=function(t){let e={};for(let i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();const n=this.items[i].node,r=this.items[i].data;if(n){if(!W(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}let o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}return e},Z.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},Z.prototype._cacheNodeSize=function(){for(let t=this.firstAttachedItem;t<this.lastAttachedItem;t++){const e=this.items[t];if(e.data&&!e.height){const t=W(e.node);e.height=t?this.tombstoneHeight:e.node.offsetHeight,e.width=t?this.tombstoneWidth:e.node.offsetWidth}}},Z.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(let t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;let t=this.anchorScrollTop-this.anchorItem.offset,e=this.anchorItem.index;for(;e>this.firstAttachedItem;)t-=this.items[e-1].height||this.tombstoneHeight,e--;return t},Z.prototype._setupAnimations=function(t,e){for(let e in t){const i=t[e];this.items[e].node.style[x.transform]=`translateY(${this.anchorScrollTop+i[1]}px) scale(${this.tombstoneWidth/this.items[e].width}, ${this.tombstoneHeight/this.items[e].height})`,this.items[e].node.offsetTop,i[0].offsetTop,this.items[e].node.style[x.transition]=`${b}transform 200ms`}for(let i=this.firstAttachedItem;i<this.lastAttachedItem;i++){const n=t[i];if(n){const t=n[0];t.style[x.transition]=`${b}transform 200ms, opacity 200ms`,t.style[x.transform]=`translateY(${e}px) scale(${this.items[i].width/this.tombstoneWidth}, ${this.items[i].height/this.tombstoneHeight})`,t.style.opacity=0}e!==this.items[i].top&&(n||(this.items[i].node.style[x.transition]=""),this.items[i].node.style[x.transform]=`translateY(${e}px)`),this.items[i].top=e,e+=this.items[i].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.scroller.wrapperHeight+(this.hasMore?2e3:0));const i=setTimeout((()=>{for(let e in t){const i=t[e];i[0].style.display="none",this.tombstones.push(i[0])}}),z);this.tombstonesAnimationHandlers.push(i)},Z.prototype._getTombStone=function(){let t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style[x.transform]="",t.style[x.transition]="",t):this.options.createTombstone()},Z.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},Z.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;let i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,{index:i,offset:e-=n*this.tombstoneHeight}},function(t){t.prototype._init=function(t){this._handleOptions(t),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this.options.interactive&&this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=c(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=A({},R,t),this.translateZ=this.options.HWCompositing&&I?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&w,this.options.useTransform=this.options.useTransform&&B,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){let t=g;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){let t=f;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){let e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),C&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,x.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"!=typeof Object.defineProperty)return;let t=this,e=!1,i=this.options.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get(){return e},set(i){e=i;let n=t.scroller.children.length?t.scroller.children:[t.scroller],r=e&&!t.pulling?"none":"auto";for(let t=0;t<n.length;t++)n[t].style.pointerEvents=r}})},t.prototype._handleAutoBlur=function(){this.on("scrollStart",(()=>{let t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()}))},t.prototype._initDOMObserver=function(){if("undefined"!=typeof MutationObserver){let t,e=new MutationObserver((e=>{if(this._shouldNotRefresh())return;let i=!1,n=!1;for(let t=0;t<e.length;t++){const r=e[t];if("attributes"!==r.type){i=!0;break}if(r.target!==this.scroller){n=!0;break}}i?this.refresh():n&&(clearTimeout(t),t=setTimeout((()=>{this._shouldNotRefresh()||this.refresh()}),60))}));const i={attributes:!0,childList:!0,subtree:!0};e.observe(this.scroller,i),this.on("destroy",(()=>{e.disconnect()}))}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){let t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){let t=S(this.scroller),e=t.width,i=t.height;function n(){if(this.destroyed)return;t=S(this.scroller);let n=t.width,o=t.height;e===n&&i===o||this.refresh(),e=n,i=o,r.call(this)}function r(){setTimeout((()=>{n.call(this)}),1e3)}r.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":
this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(k(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":case"panup":case"pandown":this._onMouseWheel(t)}},t.prototype.refresh=function(){const t="static"===window.getComputedStyle(this.wrapper,null).position;let e=S(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;let i=S(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;const n=this.options.wheel;n?(this.items=this.scroller.children,this._checkWheelAllDisabled(),this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=m(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(j),function(t){t.prototype._start=function(t){let e=Q[t.type];if(1!==e&&0!==t.button)return;if(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)return;this.initiated=e,this.options.preventDefault&&!k(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=l(),this.options.wheel&&(this.target=t.target),this.stop();let i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")},t.prototype._move=function(t){if(!this.enabled||this.destroyed||Q[t.type]!==this.initiated)return;this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();let e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,n=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=n;let r=Math.abs(this.distX),o=Math.abs(this.distY),a=l();if(a-this.endTime>this.options.momentumLimitTime&&!this.moved&&o<this.options.momentumLimitDistance&&r<this.options.momentumLimitDistance)return;if(this.directionLocked||this.options.freeScroll||(r>o+this.options.directionLockThreshold?this.directionLocked="h":o>=r+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);n=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,n=this.hasVerticalScroll?n:0,this.movingDirectionX=i>0?-1:i<0?1:0,this.movingDirectionY=n>0?-1:n<0?1:0;let s=this.x+i,A=this.y+n,c=!1,h=!1,d=!1,u=!1;const p=this.options.bounce;!1!==p&&(c=void 0===p.top||p.top,h=void 0===p.bottom||p.bottom,d=void 0===p.left||p.left,u=void 0===p.right||p.right),(s>this.minScrollX||s<this.maxScrollX)&&(s=s>this.minScrollX&&d||s<this.maxScrollX&&u?this.x+i/3:s>this.minScrollX?this.minScrollX:this.maxScrollX),(A>this.minScrollY||A<this.maxScrollY)&&(A=A>this.minScrollY&&c||A<this.maxScrollY&&h?this.y+n/3:A>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(s,A),a-this.startTime>this.options.momentumLimitTime&&(this.startTime=a,this.startX=this.x,this.startY=this.y,1===this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>1&&this.trigger("scroll",{x:this.x,y:this.y});let g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,f=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,m=this.pointX-g,y=this.pointY-f;(m>document.documentElement.clientWidth-this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||y<this.options.momentumLimitDistance||y>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)},t.prototype._end=function(t){if(!this.enabled||this.destroyed||Q[t.type]!==this.initiated)return;this.initiated=!1,this.options.preventDefault&&!k(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;let e=Math.round(this.x),i=Math.round(this.y),n=e-this.absStartX,r=i-this.absStartY;if(this.directionX=n>0?-1:n<0?1:0,this.directionY=r>0?-1:r<0?1:0,this.options.pullDownRefresh&&this._checkPullDown())return;if(this._checkClick(t))return void this.trigger("scrollCancel");if(this.resetPosition(this.options.bounceTime,M.bounce))return;this._translate(e,i),this.endTime=l();let o=this.endTime-this.startTime,a=Math.abs(e-this.startX),s=Math.abs(i-this.startY);if(this._events.flick&&o<this.options.flickLimitTime&&a<this.options.flickLimitDistance&&s<this.options.flickLimitDistance)return void this.trigger("flick");let A=0;if(this.options.momentum&&o<this.options.momentumLimitTime&&(s>this.options.momentumLimitDistance||a>this.options.momentumLimitDistance)){let t=!1,n=!1,r=!1,a=!1;const s=this.options.bounce;!1!==s&&(t=void 0===s.top||s.top,n=void 0===s.bottom||s.bottom,r=void 0===s.left||s.left,a=void 0===s.right||s.right);const l=-1===this.directionX&&r||1===this.directionX&&a?this.wrapperWidth:0,c=-1===this.directionY&&t||1===this.directionY&&n?this.wrapperHeight:0;let h=this.hasHorizontalScroll?T(this.x,this.startX,o,this.maxScrollX,this.minScrollX,l,this.options,this):{destination:e,duration:0},d=this.hasVerticalScroll?T(this.y,this.startY,o,this.maxScrollY,this.minScrollY,c,this.options,this):{destination:i,duration:0};e=h.destination,i=d.destination,A=Math.max(h.duration,d.duration),this.isInTransition=!0}else this.options.wheel&&(i=this._findNearestValidWheel(i).y,A=this.options.wheel.adjustTime||400);let c=M.swipe;if(this.options.snap){let t=this._nearestSnap(e,i);this.currentPage=t,A=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-t.x),1e3),Math.min(Math.abs(i-t.y),1e3)),300),e=t.x,i=t.y,this.directionX=0,this.directionY=0,c=this.options.snap.easing||M.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(c=M.swipeBounce),void this.scrollTo(e,i,A,c);this.options.wheel&&(this.selectedIndex=this._findNearestValidWheel(this.y).index),this.trigger("scrollEnd",{x:this.x,y:this.y})},t.prototype._checkClick=function(t){let e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.className===this.options.wheel.wheelWrapperClass){
let t=this._findNearestValidWheel(this.y).index,e=Math.round((this.pointY+y(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[t+e]}let t=m(this.target).top,e=m(this.target).left;return t-=this.wrapperOffset.top,t-=Math.round(this.target.offsetHeight/2-this.wrapper.offsetHeight/2)||0,e-=this.wrapperOffset.left,e-=Math.round(this.target.offsetWidth/2-this.wrapper.offsetWidth/2)||0,t=this._findNearestValidWheel(t).y,this.scrollTo(e,t,this.options.wheel.adjustTime||400,M.swipe),!0}if(!e){const e=this.options.dblclick;let i=!1;if(e&&this.lastClickTime){const{delay:n=300}=e;l()-this.lastClickTime<n&&(i=!0,function(t){D(t,"dblclick")}(t))}return this.options.tap&&function(t,e){let i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}(t,this.options.tap),this.options.click&&!k(t.target,this.options.preventDefaultException)&&D(t),this.lastClickTime=i?null:l(),!0}return!1}return!1},t.prototype._resize=function(){this.enabled&&(s&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout((()=>{this.refresh()}),this.options.resizePolling))},t.prototype._startProbe=function(){P(this.probeTimer),this.probeTimer=N((function e(){let i=t.getComputedPosition();if(t.trigger("scroll",i),!t.isInTransition)return void t.trigger("scrollEnd",i);t.probeTimer=N(e)}));let t=this},t.prototype._transitionTime=function(t=0){if(this.scrollerStyle[x.transitionDuration]=t+"ms",this.options.wheel)for(let e=0;e<this.items.length;e++)this.items[e].style[x.transitionDuration]=t+"ms";if(this.indicators)for(let e=0;e<this.indicators.length;e++)this.indicators[e].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[x.transitionTimingFunction]=t,this.options.wheel)for(let e=0;e<this.items.length;e++)this.items[e].style[x.transitionTimingFunction]=t;if(this.indicators)for(let e=0;e<this.indicators.length;e++)this.indicators[e].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){if(t.target!==this.scroller||!this.isInTransition)return;this._transitionTime();(!this.pulling||1===this.movingDirectionY)&&!this.resetPosition(this.options.bounceTime,M.bounce)&&(this.isInTransition=!1,3!==this.options.probeType&&this.trigger("scrollEnd",{x:this.x,y:this.y}))},t.prototype._translate=function(t,e,i){if(O(!c(t)&&!c(e),"Translate x or y is null or undefined."),c(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[x.transform]=`translate(${t}px,${e}px) scale(${i})${this.translateZ}`:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=`${t}px`,this.scrollerStyle.top=`${e}px`),this.options.wheel){const{rotate:t=25}=this.options.wheel;for(let i=0;i<this.items.length;i++){let n=t*(e/this.itemHeight+i);this.items[i].style[x.transform]=`rotateX(${n}deg)`}}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(let t=0;t<this.indicators.length;t++)this.indicators[t].updatePosition()},t.prototype._animate=function(t,e,i,n){let r=this,o=this.x,a=this.y,s=this.lastScale,A=this.scale,c=l(),h=c+i;this.isAnimating=!0,P(this.animateTimer),function d(){let u=l();if(u>=h)return r.isAnimating=!1,r._translate(t,e,A),r.trigger("scroll",{x:r.x,y:r.y}),void(r.pulling||r.resetPosition(r.options.bounceTime)||r.trigger("scrollEnd",{x:r.x,y:r.y}));u=(u-c)/i;let p=n(u),g=(t-o)*p+o,f=(e-a)*p+a,m=(A-s)*p+s;r._translate(g,f,m),r.isAnimating&&(r.animateTimer=N(d)),3===r.options.probeType&&r.trigger("scroll",{x:r.x,y:r.y})}()},t.prototype.scrollBy=function(t,e,i=0,n=M.bounce){t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e,i=0,n=M.bounce,r){if(this.options.wheel&&(e=this._findNearestValidWheel(e).y),this.isInTransition=this.options.useTransition&&i>0&&(this.x!==t||this.y!==e),!i||this.options.useTransition){if(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&3===this.options.probeType&&this._startProbe(),!i&&!r){if(this.options.zoom)return;this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,M.bounce)||this.trigger("scrollEnd",{x:t,y:e})}this.options.wheel&&(this.selectedIndex=this._findNearestValidWheel(e).index)}else this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,r){if(!t)return;if(t=t.nodeType?t:this.scroller.querySelector(t),this.options.wheel&&!t.classList.contains(this.options.wheel.wheelItemClass))return;let o=m(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=this._findNearestValidWheel(o.top).y),this.scrollTo(o.left,o.top,e,r)},t.prototype.resetPosition=function(t=0,e=M.bounce){let i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);let r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,t,e),!0)},t.prototype.getComputedPosition=function(){let t,e,i=window.getComputedStyle(this.scroller,null);return this.options.useTransform?(i=i[x.transform].split(")")[0].split(", "),t=+(i[12]||i[4]),e=+(i[13]||i[5])):(t=+i.left.replace(/[^-\d.]/g,""),e=+i.top.replace(/[^-\d.]/g,"")),{x:t,y:e}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,P(this.probeTimer);let t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[this._findNearestValidWheel(t.y).index]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,P(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),this.options.useTransition?P(this.probeTimer):P(this.animateTimer),this._removeDOMEvents(),this._events={}}}(j),function(t){t.prototype.on=function(t,e,i=this){this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e,i=this){function n(){this.off(t,n),e.apply(i,arguments)}n.fn=e,this.on(t,n)},t.prototype.off=function(t,e){let i=this._events[t];if(!i)return;let r=i.length;for(;r--;)(i[r][0]===e||i[r][0]&&i[r][0].fn===e)&&n(i,r)},t.prototype.trigger=function(t){let e=this._events[t];if(!e)return;let i=e.length,n=[...e];for(let t=0;t<i;t++){let e=n[t],[i,r]=e;i&&i.apply(r,[].slice.call(arguments,1))}}}(j),function(t){t.prototype._initSnap=function(){this.currentPage={};const t=this.options.snap;if(t.loop){let e=this.scroller.children;e.length>1?(!function(t,e){e.firstChild?function(t,e){e.parentNode.insertBefore(t,e)}(t,e.firstChild):e.appendChild(t)}(e[e.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(e[1].cloneNode(!0))):t.loop=!1}let e=t.el;"string"==typeof e&&(e=this.scroller.querySelectorAll(e)),this.on("refresh",(()=>{if(this.pages=[],!(this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight))return;let i,n,r,o,a,s,l=t.stepX||this.wrapperWidth,A=t.stepY||this.wrapperHeight,c=0,h=0,d=0;if(e)for(o=e.length,a=-1;h<o;h++)s=S(e[h]),(0===h||s.left<=S(e[h-1]).left)&&(d=0,a++),this.pages[d]||(this.pages[d]=[]),c=Math.max(-s.left,this.maxScrollX),i=Math.max(-s.top,this.maxScrollY),n=c-Math.round(s.width/2),r=i-Math.round(s.height/2),this.pages[d][a]={x:c,y:i,width:s.width,height:s.height,cx:n,cy:r},c>this.maxScrollX&&d++;else for(n=Math.round(l/2),r=Math.round(A/2);c>-this.scrollerWidth;){for(this.pages[h]=[],o=0,i=0;i>-this.scrollerHeight;)this.pages[h][o]={x:Math.max(c,this.maxScrollX),y:Math.max(i,this.maxScrollY),width:l,height:A,cx:c-n,cy:i-r},i-=A,o++;c-=l,h++}this._checkSnapLoop();let u=t._loopX?1:0,p=t._loopY?1:0
;this._goToPage(this.currentPage.pageX||u,this.currentPage.pageY||p,0,void 0,!0);const g=t.threshold;g%1==0?(this.snapThresholdX=g,this.snapThresholdY=g):(this.snapThresholdX=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*g),this.snapThresholdY=Math.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*g))})),this.on("scrollEnd",(()=>{t.loop&&(t._loopX?(0===this.currentPage.pageX&&this._goToPage(this.pages.length-2,this.currentPage.pageY,0,void 0,!0),this.currentPage.pageX===this.pages.length-1&&this._goToPage(1,this.currentPage.pageY,0,void 0,!0)):(0===this.currentPage.pageY&&this._goToPage(this.currentPage.pageX,this.pages[0].length-2,0,void 0,!0),this.currentPage.pageY===this.pages[0].length-1&&this._goToPage(this.currentPage.pageX,1,0,void 0,!0)))})),!1!==t.listenFlick&&this.on("flick",(()=>{let e=t.speed||Math.max(Math.max(Math.min(Math.abs(this.x-this.startX),1e3),Math.min(Math.abs(this.y-this.startY),1e3)),300);this._goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,e)})),this.on("destroy",(()=>{if(t.loop){let t=this.scroller.children;t.length>2&&(_(this.scroller,t[t.length-1]),_(this.scroller,t[0]))}}))},t.prototype._checkSnapLoop=function(){const t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&U("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};let i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);let n=this.pages.length;for(;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;let r=0;for(;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t,e=0,i,n,r){const o=this.options.snap;if(!o||!this.pages||!this.pages.length)return;if(n=n||o.easing||M.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),!this.pages[t])return;e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);let a=this.pages[t][e].x,s=this.pages[t][e].y;i=void 0===i?o.speed||Math.max(Math.max(Math.min(Math.abs(a-this.x),1e3),Math.min(Math.abs(s-this.y),1e3)),300):i,this.currentPage={x:a,y:s,pageX:t,pageY:e},this.scrollTo(a,s,i,n,r)},t.prototype.goToPage=function(t,e,i,n){const r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){let i;r._loopX?(i=this.pages.length-2,t>=i?t=i-1:t<0&&(t=0),t+=1):(i=this.pages[0].length-2,e>=i?e=i-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(!this.options.snap)return;let i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)},t.prototype.prev=function(t,e){if(!this.options.snap)return;let i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)},t.prototype.getCurrentPage=function(){const t=this.options.snap;if(!t)return null;if(t.loop){let e;return e=t._loopX?A({},this.currentPage,{pageX:this.currentPage.pageX-1}):A({},this.currentPage,{pageY:this.currentPage.pageY-1}),e}return this.currentPage}}(j),function(t){t.prototype.wheelTo=function(t=0){if(this.options.wheel){const e=-t*this.itemHeight;this.scrollTo(0,e)}},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){const t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),t.wheelDisabledItemClass||(t.wheelDisabledItemClass="wheel-disabled-item"),void 0===t.selectedIndex&&(t.selectedIndex=0)},t.prototype._findNearestValidWheel=function(t){t=t>0?0:t<this.maxScrollY?this.maxScrollY:t;const e=this.options.wheel;let i=Math.abs(Math.round(-t/this.itemHeight));const n=i,r=this.items;for(;i>=0&&-1!==r[i].className.indexOf(e.wheelDisabledItemClass);)i--;if(i<0)for(i=n;i<=r.length-1&&-1!==r[i].className.indexOf(e.wheelDisabledItemClass);)i++;return i===r.length&&(i=n),{index:this.wheelItemsAllDisabled?-1:i,y:-i*this.itemHeight}},t.prototype._checkWheelAllDisabled=function(){const t=this.options.wheel,e=this.items;this.wheelItemsAllDisabled=!0;for(let i=0;i<e.length;i++)if(-1===e[i].className.indexOf(t.wheelDisabledItemClass)){this.wheelItemsAllDisabled=!1;break}}}(j),function(t){t.prototype._initScrollbar=function(){const{fade:t=!0,interactive:e=!1}=this.options.scrollbar;let i;this.indicators=[];try{this.window=window.parent&&window.parent.document?window.parent:window}catch(t){this.window=window}this.options.scrollX&&(i={el:G("horizontal"),direction:"horizontal",fade:t,interactive:e},this._insertScrollBar(i.el),this.indicators.push(new H(this,i))),this.options.scrollY&&(i={el:G("vertical"),direction:"vertical",fade:t,interactive:e},this._insertScrollBar(i.el),this.indicators.push(new H(this,i))),this.on("refresh",(()=>{for(let t=0;t<this.indicators.length;t++)this.indicators[t].refresh()})),t&&(this.on("scrollEnd",(()=>{for(let t=0;t<this.indicators.length;t++)this.indicators[t].fade()})),this.on("scrollCancel",(()=>{for(let t=0;t<this.indicators.length;t++)this.indicators[t].fade()})),this.on("scrollStart",(()=>{for(let t=0;t<this.indicators.length;t++)this.indicators[t].fade(!0)})),this.on("beforeScrollStart",(()=>{for(let t=0;t<this.indicators.length;t++)this.indicators[t].fade(!0,!0)}))),this.on("destroy",(()=>{this._removeScrollBars()}))},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(let t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(j),function(t){t.prototype._initPullDown=function(){this.options.probeType=3},t.prototype._checkPullDown=function(){const{threshold:t=90,stop:e=40}=this.options.pullDownRefresh;return!(-1!==this.directionY||this.y<t)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,e,this.options.bounceTime,M.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,M.bounce)},t.prototype.openPullDown=function(t=!0){this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1},t.prototype.autoPullDownRefresh=function(){const{threshold:t=90,stop:e=40}=this.options.pullDownRefresh;this.pulling||(this.pulling=!0,this.scrollTo(this.x,t),this.trigger("pullingDown"),this.scrollTo(this.x,e,this.options.bounceTime,M.bounce))}}(j),function(t){t.prototype._initPullUp=function(){this.options.probeType=3,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){const{threshold:e=0}=this.options.pullUpLoad;1===this.movingDirectionY&&t.y<=this.maxScrollY+e&&(this.once("scrollEnd",(()=>{this.pullupWatching=!1})),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){this.pullupWatching?this.once("scrollEnd",(()=>{this._watchPullUp()})):this._watchPullUp()},t.prototype.openPullUp=function(t=!0){this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(j),function(t){t.prototype._initMouseWheel=function(){this._handleMouseWheelEvent(g),this.on("destroy",(()=>{clearTimeout(this.mouseWheelTimer),clearTimeout(this.mouseWheelEndTimer),clearTimeout(this.mouseWheelEndPreTimer),this._handleMouseWheelEvent(f)})),
this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){if(t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this),this.options.mouseWheel.hammer){if(t===f)return void(this.hammerManager&&(this.hammerManager.destroy(),this.hammerManager=null));this.hammerManager=new(Y().Manager)(this.wrapper),this.hammerManager.add(new(Y().Pan)({direction:Y().DIRECTION_VERTICAL,threshold:20})),this.hammerManager.on("panstart",(t=>{"touch"===t.pointerType&&(this.trigger("scrollStart"),this.panDeltaX=0,this.panDeltaY=0)})),this.hammerManager.on("panup pandown",(t=>{"touch"===t.pointerType&&this.handleEvent(t)})),this.hammerManager.on("panend pancancel",(t=>{"touch"===t.pointerType&&this.trigger("scrollEnd",{x:this.x,y:this.y})}))}},t.prototype._onMouseWheel=function(t){if(!this.enabled)return;this.options.stopPropagation&&t.stopPropagation&&t.stopPropagation();const{speed:e=20,invert:i=!1,easeTime:n=300}=this.options.mouseWheel;let r,o;if("panup"===t.type||"pandown"===t.type)r=t.deltaX-this.panDeltaX,o=t.deltaY-this.panDeltaY,this.panDeltaX=t.deltaX,this.panDeltaY=t.deltaY;else switch(this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1,clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout((()=>{this.options.snap||n||this.trigger("scrollEnd",{x:this.x,y:this.y}),this.firstWheelOpreation=!0}),400),!0){case"deltaX"in t:1===t.deltaMode?(r=-t.deltaX*e,o=-t.deltaY*e):(r=-t.deltaX,o=-t.deltaY);break;case"wheelDeltaX"in t:r=t.wheelDeltaX/120*e,o=t.wheelDeltaY/120*e;break;case"wheelDelta"in t:r=o=t.wheelDelta/120*e;break;case"detail"in t:r=o=-t.detail/3*e;break;default:return}let a,s,l=i?-1:1;if(r*=l,o*=l,this.hasVerticalScroll||(r=o,o=0),this.options.snap)return a=this.currentPage.pageX,s=this.currentPage.pageY,r>0?a--:r<0&&a++,o>0?s--:o<0&&s++,void this._goToPage(a,s);a=this.x+Math.round(this.hasHorizontalScroll?r:0),s=this.y+Math.round(this.hasVerticalScroll?o:0),this.movingDirectionX=this.directionX=r>0?-1:r<0?1:0,this.movingDirectionY=this.directionY=o>0?-1:o<0?1:0,a>this.minScrollX?a=this.minScrollX:a<this.maxScrollX&&(a=this.maxScrollX),s>this.minScrollY?s=this.minScrollY:s<this.maxScrollY&&(s=this.maxScrollY);const A=this.y===s;this.scrollTo(a,s,n,M.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),clearTimeout(this.mouseWheelEndPreTimer),A?(!this.options.preventDefault&&this.mouseWheelEnded||t.preventDefault(),this.mouseWheelEndPreTimer=setTimeout((()=>{this.mouseWheelEnded=!0}),400),this.mouseWheelEndTimer=setTimeout((()=>{this.trigger("scrollEnd",{x:this.x,y:this.y})}),n)):(this.mouseWheelEnded=!1,t.preventDefault())}}(j),function(t){t.prototype._initZoom=function(){const{start:t=1,min:e=1,max:i=4}=this.options.zoom;this.scale=Math.min(Math.max(t,e),i),this.setScale(this.scale),this.scrollerStyle[x.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;const r=t/(n||this.scale);this.setScale(t),this.refresh();let o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){let{left:n,top:r}=y(this.wrapper),o=e+n-this.x,a=i+r-this.y;this._zoomTo(t,o,a)},t.prototype._zoomStart=function(t){const e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY);this.startDistance=h(n,r),this.startScale=this.scale;let{left:o,top:a}=y(this.wrapper);this.originX=Math.abs(e.pageX+i.pageX)/2+o-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+a-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(!this.enabled||this.destroyed||Q[t.type]!==this.initiated)return;this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();const e=t.touches[0],i=t.touches[1];let n=h(Math.abs(e.pageX-i.pageX),Math.abs(e.pageY-i.pageY))/this.startDistance*this.startScale;this.scaled=!0;const{min:r=1,max:o=4}=this.options.zoom;n<r?n=.5*r*Math.pow(2,n/r):n>o&&(n=2*o*Math.pow(.5,o/n));const a=n/this.startScale,s=this.startX-(this.originX-this.relativeX)*(a-1),l=this.startY-(this.originY-this.relativeY)*(a-1);this.setScale(n),this.scrollTo(s,l,0)},t.prototype._zoomEnd=function(t){if(!this.enabled||this.destroyed||Q[t.type]!==this.initiated)return;this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;const{min:e=1,max:i=4}=this.options.zoom,n=this.scale>i?i:this.scale<e?e:this.scale;this._zoomTo(n,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}(j),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-2e3,this.infiniteScroller=new Z(this,this.options.infinity)}}(j),j.Version="1.15.3";var q=j},91167:function(t){window,t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=17)}([function(t,e,i){"use strict";var n=function(){var t=void 0,e=[],i={},n={};function r(t,i){for(var n in e){var r=e[n];if(r.context===t&&r.name===i)return r.instance}return null}function o(t,e){return e[t]}function a(t,e,i){t in i&&(i[t]=e)}function s(e,i,n){var r=void 0,o=e.__dashjs_factory_name,a=i[o];if(a){var s=a.instance;if(!a.override)return s.apply({context:i,factory:t},n);for(var l in r=e.apply({context:i},n),s=s.apply({context:i,factory:t,parent:r},n))r.hasOwnProperty(l)&&(r[l]=s[l])}else r=e.apply({context:i},n);return r.getClassName=function(){return o},r}return t={extend:function(t,e,i,n){!n[t]&&e&&(n[t]={instance:e,override:i})},reset:function(){e.length=0},getSingletonInstance:r,setSingletonInstance:function(t,i,n){for(var r in e){var o=e[r];if(o.context===t&&o.name===i)return void(e[r].instance=n)}e.push({name:i,context:t,instance:n})},getSingletonFactory:function(t){var n=o(t.__dashjs_factory_name,i);return n||(n=function(i){var n=void 0;return void 0===i&&(i={}),{getInstance:function(){return n||(n=r(i,t.__dashjs_factory_name)),n||(n=s(t,i,arguments),e.push({name:t.__dashjs_factory_name,context:i,instance:n})),n}}},i[t.__dashjs_factory_name]=n),n},getSingletonFactoryByName:function(t){return o(t,i)},updateSingletonFactory:function(t,e){a(t,e,i)},getClassFactory:function(t){var e=o(t.__dashjs_factory_name,n);return e||(e=function(e){return void 0===e&&(e={}),{create:function(){return s(t,e,arguments)}}},n[t.__dashjs_factory_name]=e),e},getClassFactoryByName:function(t){return o(t,n)},updateClassFactory:function(t,e){a(t,e,n)}},t}();e.a=n},function(t,e,i){var n={parseBuffer:function(t){return new r(t).parse()},addBoxProcessor:function(t,e){"string"==typeof t&&"function"==typeof e&&(o.prototype._boxProcessors[t]=e)},createFile:function(){return new r},createBox:function(t,e,i){var n=o.create(t);return e&&e.append(n,i),n},createFullBox:function(t,e,i){var r=n.createBox(t,e,i);return r.version=0,r.flags=0,r},Utils:{}};n.Utils.dataViewToString=function(t,e){var i=e||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(i).decode(t);var n=[],r=0;if("utf-8"===i)for(;r<t.byteLength;){var o=t.getUint8(r++);o<128||(o<224?(o=(31&o)<<6,
o|=63&t.getUint8(r++)):o<240?(o=(15&o)<<12,o|=(63&t.getUint8(r++))<<6,o|=63&t.getUint8(r++)):(o=(7&o)<<18,o|=(63&t.getUint8(r++))<<12,o|=(63&t.getUint8(r++))<<6,o|=63&t.getUint8(r++))),n.push(String.fromCharCode(o))}else for(;r<t.byteLength;)n.push(String.fromCharCode(t.getUint8(r++)));return n.join("")},n.Utils.utf8ToByteArray=function(t){var e,i;if("undefined"!=typeof TextEncoder)e=(new TextEncoder).encode(t);else for(e=[],i=0;i<t.length;++i){var n=t.charCodeAt(i);n<128?e.push(n):n<2048?(e.push(192|n>>6),e.push(128|63&n)):n<65536?(e.push(224|n>>12),e.push(128|63&n>>6),e.push(128|63&n)):(e.push(240|n>>18),e.push(128|63&n>>12),e.push(128|63&n>>6),e.push(128|63&n))}return e},n.Utils.appendBox=function(t,e,i){if(e._offset=t._cursor.offset,e._root=t._root?t._root:t,e._raw=t._raw,e._parent=t,-1!==i)if(null!=i){var n,r=-1;if("number"==typeof i)r=i;else{if("string"==typeof i)n=i;else{if("object"!=typeof i||!i.type)return void t.boxes.push(e);n=i.type}for(var o=0;o<t.boxes.length;o++)if(n===t.boxes[o].type){r=o+1;break}}t.boxes.splice(r,0,e)}else t.boxes.push(e)},e.parseBuffer=n.parseBuffer,e.addBoxProcessor=n.addBoxProcessor,e.createFile=n.createFile,e.createBox=n.createBox,e.createFullBox=n.createFullBox,e.Utils=n.Utils,n.Cursor=function(t){this.offset=void 0===t?0:t};var r=function(t){this._cursor=new n.Cursor,this.boxes=[],t&&(this._raw=new DataView(t))};r.prototype.fetch=function(t){var e=this.fetchAll(t,!0);return e.length?e[0]:null},r.prototype.fetchAll=function(t,e){var i=[];return r._sweep.call(this,t,i,e),i},r.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var t=o.parse(this);if(void 0===t.type)break;this.boxes.push(t)}return this},r._sweep=function(t,e,i){for(var n in this.type&&this.type==t&&e.push(this),this.boxes){if(e.length&&i)return;r._sweep.call(this.boxes[n],t,e,i)}},r.prototype.write=function(){var t,e=0;for(t=0;t<this.boxes.length;t++)e+=this.boxes[t].getLength(!1);var i=new Uint8Array(e);for(this._rawo=new DataView(i.buffer),this.bytes=i,this._cursor.offset=0,t=0;t<this.boxes.length;t++)this.boxes[t].write();return i.buffer},r.prototype.append=function(t,e){n.Utils.appendBox(this,t,e)};var o=function(){this._cursor=new n.Cursor};o.parse=function(t){var e=new o;return e._offset=t._cursor.offset,e._root=t._root?t._root:t,e._raw=t._raw,e._parent=t,e._parseBox(),t._cursor.offset=e._raw.byteOffset+e._raw.byteLength,e},o.create=function(t){var e=new o;return e.type=t,e.boxes=[],e},o.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],o.prototype._boxProcessors={},o.prototype._procField=function(t,e,i){this._parsing?this[t]=this._readField(e,i):this._writeField(e,i,this[t])},o.prototype._procFieldArray=function(t,e,i,n){var r;if(this._parsing)for(this[t]=[],r=0;r<e;r++)this[t][r]=this._readField(i,n);else for(r=0;r<this[t].length;r++)this._writeField(i,n,this[t][r])},o.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},o.prototype._procEntries=function(t,e,i){var n;if(this._parsing)for(this[t]=[],n=0;n<e;n++)this[t].push({}),i.call(this,this[t][n]);else for(n=0;n<e;n++)i.call(this,this[t][n])},o.prototype._procSubEntries=function(t,e,i,n){var r;if(this._parsing)for(t[e]=[],r=0;r<i;r++)t[e].push({}),n.call(this,t[e][r]);else for(r=0;r<i;r++)n.call(this,t[e][r])},o.prototype._procEntryField=function(t,e,i,n){this._parsing?t[e]=this._readField(i,n):this._writeField(i,n,t[e])},o.prototype._procSubBoxes=function(t,e){var i;if(this._parsing)for(this[t]=[],i=0;i<e;i++)this[t].push(o.parse(this));else for(i=0;i<e;i++)this._rawo?this[t][i].write():this.size+=this[t][i].getLength()},o.prototype._readField=function(t,e){switch(t){case"uint":return this._readUint(e);case"int":return this._readInt(e);case"template":return this._readTemplate(e);case"string":return-1===e?this._readTerminatedString():this._readString(e);case"data":return this._readData(e);case"utf8":return this._readUTF8String();default:return-1}},o.prototype._readInt=function(t){var e=null,i=this._cursor.offset-this._raw.byteOffset;switch(t){case 8:e=this._raw.getInt8(i);break;case 16:e=this._raw.getInt16(i);break;case 32:e=this._raw.getInt32(i);break;case 64:var n=this._raw.getInt32(i),r=this._raw.getInt32(i+4);e=n*Math.pow(2,32)+r}return this._cursor.offset+=t>>3,e},o.prototype._readUint=function(t){var e,i,n=null,r=this._cursor.offset-this._raw.byteOffset;switch(t){case 8:n=this._raw.getUint8(r);break;case 16:n=this._raw.getUint16(r);break;case 24:n=((e=this._raw.getUint16(r))<<8)+(i=this._raw.getUint8(r+2));break;case 32:n=this._raw.getUint32(r);break;case 64:e=this._raw.getUint32(r),i=this._raw.getUint32(r+4),n=e*Math.pow(2,32)+i}return this._cursor.offset+=t>>3,n},o.prototype._readString=function(t){for(var e="",i=0;i<t;i++){var n=this._readUint(8);e+=String.fromCharCode(n)}return e},o.prototype._readTemplate=function(t){return this._readUint(t/2)+this._readUint(t/2)/Math.pow(2,t/2)},o.prototype._readTerminatedString=function(){for(var t="";this._cursor.offset-this._offset<this._raw.byteLength;){var e=this._readUint(8);if(0===e)break;t+=String.fromCharCode(e)}return t},o.prototype._readData=function(t){var e=t>0?t:this._raw.byteLength-(this._cursor.offset-this._offset);if(e>0){var i=new Uint8Array(this._raw.buffer,this._cursor.offset,e);return this._cursor.offset+=e,i}return null},o.prototype._readUTF8String=function(){var t=this._raw.byteLength-(this._cursor.offset-this._offset),e=null;return t>0&&(e=new DataView(this._raw.buffer,this._cursor.offset,t),this._cursor.offset+=t),e?n.Utils.dataViewToString(e):e},o.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},o.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},o.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(o.parse(this))},o.prototype.append=function(t,e){n.Utils.appendBox(this,t,e)},o.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var t=0;t<this.boxes.length;t++)this.size+=this.boxes[t].getLength();return this._data&&this._writeData(this._data),this.size},o.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),
this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var t=0;t<this.boxes.length;t++)this.boxes[t].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},o.prototype._writeInt=function(t,e){if(this._rawo){var i=this._cursor.offset-this._rawo.byteOffset;switch(t){case 8:this._rawo.setInt8(i,e);break;case 16:this._rawo.setInt16(i,e);break;case 32:this._rawo.setInt32(i,e);break;case 64:var n=Math.floor(e/Math.pow(2,32)),r=e-n*Math.pow(2,32);this._rawo.setUint32(i,n),this._rawo.setUint32(i+4,r)}this._cursor.offset+=t>>3}else this.size+=t>>3},o.prototype._writeUint=function(t,e){if(this._rawo){var i,n,r=this._cursor.offset-this._rawo.byteOffset;switch(t){case 8:this._rawo.setUint8(r,e);break;case 16:this._rawo.setUint16(r,e);break;case 24:i=(16776960&e)>>8,n=255&e,this._rawo.setUint16(r,i),this._rawo.setUint8(r+2,n);break;case 32:this._rawo.setUint32(r,e);break;case 64:n=e-(i=Math.floor(e/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(r,i),this._rawo.setUint32(r+4,n)}this._cursor.offset+=t>>3}else this.size+=t>>3},o.prototype._writeString=function(t,e){for(var i=0;i<t;i++)this._writeUint(8,e.charCodeAt(i))},o.prototype._writeTerminatedString=function(t){if(0!==t.length){for(var e=0;e<t.length;e++)this._writeUint(8,t.charCodeAt(e));this._writeUint(8,0)}},o.prototype._writeTemplate=function(t,e){var i=Math.floor(e),n=(e-i)*Math.pow(2,t/2);this._writeUint(t/2,i),this._writeUint(t/2,n)},o.prototype._writeData=function(t){if(t)if(this._rawo){if(t instanceof Array){for(var e=this._cursor.offset-this._rawo.byteOffset,i=0;i<t.length;i++)this._rawo.setInt8(e+i,t[i]);this._cursor.offset+=t.length}t instanceof Uint8Array&&(this._root.bytes.set(t,this._cursor.offset),this._cursor.offset+=t.length)}else this.size+=t.length},o.prototype._writeUTF8String=function(t){var e=n.Utils.utf8ToByteArray(t);if(this._rawo)for(var i=new DataView(this._rawo.buffer,this._cursor.offset,e.length),r=0;r<e.length;r++)i.setUint8(r,e[r]);else this.size+=e.length},o.prototype._writeField=function(t,e,i){switch(t){case"uint":this._writeUint(e,i);break;case"int":this._writeInt(e,i);break;case"template":this._writeTemplate(e,i);break;case"string":-1==e?this._writeTerminatedString(i):this._writeString(e,i);break;case"data":this._writeData(i);break;case"utf8":this._writeUTF8String(i)}},o.prototype._boxProcessors.avc1=o.prototype._boxProcessors.avc2=o.prototype._boxProcessors.avc3=o.prototype._boxProcessors.avc4=o.prototype._boxProcessors.hvc1=o.prototype._boxProcessors.hev1=o.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},o.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"segment_duration","uint",1===this.version?64:32),this._procEntryField(t,"media_time","int",1===this.version?64:32),this._procEntryField(t,"media_rate_integer","int",16),this._procEntryField(t,"media_rate_fraction","int",16)}))},o.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},o.prototype._boxProcessors.free=o.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},o.prototype._boxProcessors.ftyp=o.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var t=-1;this._parsing&&(t=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",t,"string",4)},o.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},o.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},o.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},o.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},o.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},o.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},o.prototype._boxProcessors.mp4a=o.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},o.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},o.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},o.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},o.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},o.prototype._boxProcessors.sdtp=function(){this._procFullBox();var t=-1;this._parsing&&(t=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",t,"uint",8)},o.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),
this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(t){this._parsing||(t.reference=(1&t.reference_type)<<31,t.reference|=2147483647&t.referenced_size,t.sap=(1&t.starts_with_SAP)<<31,t.sap|=(3&t.SAP_type)<<28,t.sap|=268435455&t.SAP_delta_time),this._procEntryField(t,"reference","uint",32),this._procEntryField(t,"subsegment_duration","uint",32),this._procEntryField(t,"sap","uint",32),this._parsing&&(t.reference_type=t.reference>>31&1,t.referenced_size=2147483647&t.reference,t.starts_with_SAP=t.sap>>31&1,t.SAP_type=t.sap>>28&7,t.SAP_delta_time=268435455&t.sap)}))},o.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},o.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(t){this._procEntryField(t,"ranges_count","uint",32),this._procSubEntries(t,"ranges",t.ranges_count,(function(t){this._procEntryField(t,"level","uint",8),this._procEntryField(t,"range_size","uint",24)}))}))},o.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},o.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"sample_delta","uint",32),this._procEntryField(t,"subsample_count","uint",16),this._procSubEntries(t,"subsamples",t.subsample_count,(function(t){this._procEntryField(t,"subsample_size","uint",1===this.version?32:16),this._procEntryField(t,"subsample_priority","uint",8),this._procEntryField(t,"discardable","uint",8),this._procEntryField(t,"codec_specific_parameters","uint",32)}))}))},o.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},o.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},o.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(t){this._procEntryField(t,"time","uint",1===this.version?64:32),this._procEntryField(t,"moof_offset","uint",1===this.version?64:32),this._procEntryField(t,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(t,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(t,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},o.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},o.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},o.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(t){256&this.flags&&this._procEntryField(t,"sample_duration","uint",32),512&this.flags&&this._procEntryField(t,"sample_size","uint",32),1024&this.flags&&this._procEntryField(t,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(t,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},o.prototype._boxProcessors["url "]=o.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},o.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},o.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},o.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},o.prototype._boxProcessors.vtte=function(){}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DISABLE_LOADER_TYPE=e.SPECIAL_AUDIO_TYPE=e.USER_CODEC_PREFER_TYPE=e.FILTER_VIDEO_URL_REASON=e.VIDEO_CODEC_ID=e.VIDEO_QN=e.ERROR_CODE=e.DOLBY_AUDIO_QN=e.DEF_CODEC_STRATEGY=e.DEFAULT_FAWKES_CONFIG=e.FLAC_QN=e.STRING=e.ERROR=e.EVENTS=void 0,e.EVENTS={SCRIPT_LOADED:"scripLoaded",VIDEO_INFO:"videoInfo",WARNING:"warning",AST_IN_FUTURE:"astInFuture",BUFFER_EMPTY:"bufferStalled",BUFFER_LOADED:"bufferLoaded",BUFFER_LEVEL_STATE_CHANGED:"bufferStateChanged",ERROR:"error",FRAGMENT_LOADING_COMPLETED:"fragmentLoadingCompleted",FRAGMENT_LOADING_HEADER_RECEIVED:"fragmentLoadingHeaderReceived",FRAGMENT_LOADING_PROGRESS:"fragmentLoadingProgress",FRAGMENT_LOADING_STARTED:"fragmentLoadingStarted",FRAGMENT_LOADING_ABANDONED:"fragmentLoadingAbandoned",FRAGMENT_LOADED_ERROR:"fragmentLoadedError",FRAGMENT_P2P_LOAD_INFO:"fragmentP2pLoadInfo",CDN_LOAD_INFO:"cdnLoadInfo",PCDN_LOADED_ERROR:"pcdnLoadedError",LOG:"log",MANIFEST_LOADED:"manifestLoaded",METRICS_CHANGED:"metricsChanged",METRIC_CHANGED:"metricChanged",METRIC_ADDED:"metricAdded",METRIC_UPDATED:"metricUpdated",PERIOD_SWITCH_COMPLETED:"periodSwitchCompleted",PERIOD_SWITCH_STARTED:"periodSwitchStarted",QUALITY_CHANGE_REQUESTED:"qualityChangeRequested",QUALITY_CHANGE_RENDERED:"qualityChangeRendered",TRACK_CHANGE_RENDERED:"trackChangeRendered",SOURCE_INITIALIZED:"sourceInitialized",STREAM_INITIALIZED:"streamInitialized",STREAM_TEARDOWN_COMPLETE:"streamTeardownComplete",TEXT_TRACKS_ADDED:"allTextTracksAdded",TEXT_TRACK_ADDED:"textTrackAdded",TTML_PARSED:"ttmlParsed",TTML_TO_PARSE:"ttmlToParse",CAN_PLAY:"canPlay",PLAYBACK_ENDED:"playbackEnded",PLAYBACK_ERROR:"playbackError",PLAYBACK_NOT_ALLOWED:"playbackNotAllowed",PLAYBACK_METADATA_LOADED:"playbackMetaDataLoaded",PLAYBACK_PAUSED:"playbackPaused",PLAYBACK_PLAYING:"playbackPlaying",PLAYBACK_PROGRESS:"playbackProgress",PLAYBACK_RATE_CHANGED:"playbackRateChanged",PLAYBACK_SEEKED:"playbackSeeked",PLAYBACK_SEEKING:"playbackSeeking",PLAYBACK_SEEK_ASKED:"playbackSeekAsked",PLAYBACK_STARTED:"playbackStarted",PLAYBACK_TIME_UPDATED:"playbackTimeUpdated",PLAYBACK_WAITING:"playbackWaiting",MANIFEST_VALIDITY_CHANGED:"manifestValidityChanged",KEY_ADDED:"public_keyAdded",KEY_ERROR:"public_keyError",
KEY_MESSAGE:"public_keyMessage",KEY_SESSION_CLOSED:"public_keySessionClosed",KEY_SESSION_CREATED:"public_keySessionCreated",KEY_SESSION_REMOVED:"public_keySessionRemoved",KEY_STATUSES_CHANGED:"public_keyStatusesChanged",KEY_SYSTEM_ACCESS_COMPLETE:"public_keySystemAccessComplete",KEY_SYSTEM_SELECTED:"public_keySystemSelected",LICENSE_REQUEST_COMPLETE:"public_licenseRequestComplete",PROTECTION_CREATED:"public_protectioncreated",PROTECTION_DESTROYED:"public_protectiondestroyed",DELAY_TO_APPEND_TO_BUFFER:"delayToAppendBuffer",QUALITY_CHANGE_DOWNLOADED:"qualityChangeDownloaded",QUOTA_EXCEEDED:"quotaExceeded",GET_NEXT_FRAGMENT:"getNextFragment",APPENDING_NEXT_SOURCE:"appendingNextSource",APPENDED_NEXT_SOURCE:"appendedNextSource",APPENDED_NEXT_SOURCE_DURATION_CHANGED:"appendedNextSourceDurationChanged",START_OFFSET_TIME_WARNING:"startOffsetTimeWarning",BUFFERING_OPTIMIZATION:"buffering_optimization",QUALITY_CHANGE_ABNORMAL:"qualityChangeAbnormal",SWITCH_AUDIO_TRACK_REQUEST:"switchAudioTrackRequest",SWITCH_AUDIO_TRACK_RENDERED:"switchAudioTrackRendered",REQUEST_RETRYED:"requestRetryed",PREDICT_SEEK:"predictSeek",JUMP_MEDIA_GAP:"jumpMediaGap",STREAM_BUFFERING_COMPLETED:"streamBufferingCompleted",SPLIT_GAP_AFTER_APPEND_CHUNK:"splitGapAfterAppendChunk",PADDING_FRAMES_SUCCESS:"paddingFramesSuccess",FIX_AV_SYNC:"fixAVSync",SOURCE_BUFFER_CHANGE_TYPE:"sourceBufferChangeType",SOURCE_BUFFER_CHANGE_TYPE_FAILED:"sourceBufferChangeTypeFailed",CODEC_STRATEGY_APPLIED:"codecStrategyApplied"},e.ERROR={INTERNAL_ERROR:-1,DURATION_IS_NOT_ALL_EQUAL:-2,DURATION_DEVIATION_IS_TOO_LARGE:-3,START_OFFSET_TIME_WARNING:-4,DOWNLOAD_ERROR:4,DOWNLOAD_MPD_ERROR:4001,DOWNLOAD_XINK_ERROR:4002,DOWNLOAD_INIT_SEGMENT_ERROR:4003,DOWNLOAD_MEDIA_SEGMENT_ERROR:4004,DOWNLOAD_INDEX_SEGMENT_ERROR:4005,DOWNLOAD_SWITCHING_SEGMENT_ERROR:4006,DOWNLOAD_OTHER_ERROR:4007,DOWNLOAD_FRAGMENT_ERROR:4101,DOWNLOAD_FRAGMENT_ERROR_RETRY_SUCCESS:4102,DOWNLOAD_FRAGMENT_ERROR_RETRY_FAILURE:4103,DOWNLOAD_FRAGMENT_ERROR_TIMEOUT:4105,CONNECT_FRAGMENT_ERROR_TIMEOUT:4106,CONNECT_FRAGMENT_ERROR_OFFLINE:4107,MANIFEST_ERROR:5,MANIFEST_TYPE_ERROR:5001,MANIFEST_RESOLVE_ERROR:5002,MEDIA_ERROR:6,MEDIA_ABORTED_ERROR:6001,MEDIA_NETWORK_ERROR:6002,MEDIA_DECODE_ERROR:6003,MEDIA_SUPPORTED_ERROR:6004,MEDIA_ENCRYPTED_ERROR:6005,MEDIA_FMP4_ERROR:6006,MEDIA_CHANGE_TYPE_ERROR:6007,MEDIA_UNKNOWN_ERROR:6e3};var n={VIDEO:"video",AUDIO:"audio",LOG:"log",WARNING:"warning",ERROR:"error",ABR_DYNAMIC:"abrDynamic",ABR_BOLA:"abrBola",ABR_THROUGHPUT:"abrThroughput",SWITCH_SOURCE_TRANSITION_ELEMENT_CLASS_NAME:"bilidp-switch-source-transition-canvas",DASH_CONFIG:"dash_config",PDN_ENABLE:"pdn_enable",BILIBILI_DECODE_ERROR_OBJ:"bilibili_decode_error_obj",AV1:"av1",AVC:"avc",HEVC:"hevc"};e.STRING=n,e.FLAC_QN=30251,e.DEFAULT_FAWKES_CONFIG={dash_config:{pdn_disable_qn_list:"[120, 125, 126, 127]",pdn_disable_codecid_list:"[13]",pdn_enable:"1",pdn_mid_black_list:"[]",nc_disable:"0",p2p_disable:"0",rp_disable:"0",wasm_off_list:"[]"},common_policy:{},data_policy:{},gray_policy:{},monitor:{},nc_box_policy:{},nc_new_push_policy:{},nc_policy:{},nc_sdk_policy:{},nc_tracker_policy:{},player_policy:{},reward_pcdn_loader_policy:{},reward_seeder_policy:{},self_test_policy:{},top_list_service_policy:{}};var r,o,a,s,l,A,c,h,d,u=[n.AV1,n.HEVC,n.AVC];e.DEF_CODEC_STRATEGY=u,(d=r||(r={}))[d.AUDIO=30255]="AUDIO",d[d.AMTOS=30250]="AMTOS",e.DOLBY_AUDIO_QN=r,function(t){t[t.SET_QUALITY_ERR=2e4]="SET_QUALITY_ERR",t[t.SET_QUALITY_VALUE_ERR=20001]="SET_QUALITY_VALUE_ERR",t[t.SET_QUALITY_TYPE_ERR=20002]="SET_QUALITY_TYPE_ERR",t[t.SET_QUALITY_APENDING_ERR=20003]="SET_QUALITY_APENDING_ERR",t[t.SET_QUALITY_SAME_VALUE=20004]="SET_QUALITY_SAME_VALUE",t[t.SET_QUALITY_TIME_OUT=20005]="SET_QUALITY_TIME_OUT",t[t.SET_QUALITY_RENDER_CHANGED=20006]="SET_QUALITY_RENDER_CHANGED",t[t.SET_QUALITY_MULTI_TRACK=20007]="SET_QUALITY_MULTI_TRACK",t[t.SET_QUALITY_ABR=20008]="SET_QUALITY_ABR",t[t.SWITCH_AUDIO_TRACK_ERR=3e4]="SWITCH_AUDIO_TRACK_ERR",t[t.SWITCH_AUDIO_TRACK_NOT_SUPPORT=30001]="SWITCH_AUDIO_TRACK_NOT_SUPPORT",t[t.SWITCH_AUDIO_TRACK_ID_NOT_CHANGED=30002]="SWITCH_AUDIO_TRACK_ID_NOT_CHANGED",t[t.SWITCH_AUDIO_TRACK_ID_NOT_EXIST=30003]="SWITCH_AUDIO_TRACK_ID_NOT_EXIST",t[t.SWITCH_SOURCE_ERR=4e4]="SWITCH_SOURCE_ERR",t[t.SWITCH_SOURCE_ABORT=40001]="SWITCH_SOURCE_ABORT",t[t.SWITCH_SOURCE_FAILED=40002]="SWITCH_SOURCE_FAILED",t[t.SWITCH_SOURCE_TIMEOUT=40003]="SWITCH_SOURCE_TIMEOUT"}(o||(o={})),e.ERROR_CODE=o,function(t){t[t.QN_8K=127]="QN_8K",t[t.QN_DOLBY_VISION=126]="QN_DOLBY_VISION",t[t.QN_HDR10=125]="QN_HDR10",t[t.QN_4K=120]="QN_4K",t[t.QN_1080P_60=116]="QN_1080P_60",t[t.QN_1080P_PLUS=112]="QN_1080P_PLUS",t[t.QN_1080P=80]="QN_1080P",t[t.QN_720P_60=74]="QN_720P_60",t[t.QN_720P=64]="QN_720P",t[t.QN_480P=32]="QN_480P",t[t.QN_360P=16]="QN_360P"}(a||(a={})),e.VIDEO_QN=a,function(t){t[t.AVC=7]="AVC",t[t.HEVC=12]="HEVC",t[t.AV1=13]="AV1"}(s||(s={})),e.VIDEO_CODEC_ID=s,function(t){t.USE_HEVC_INSTEADOF_AVC="USE_HEVC_INSTEADOF_AVC",t.FILTER_SPECIAL_VIDEO="FILTER_SPECIAL_VIDEO"}(l||(l={})),e.FILTER_VIDEO_URL_REASON=l,function(t){t[t.RECOMMEND=0]="RECOMMEND",t[t.HEVC=1]="HEVC",t[t.DISABLE=2]="DISABLE",t[t.AV1=3]="AV1"}(A||(A={})),e.USER_CODEC_PREFER_TYPE=A,function(t){t.DOLBY="dolby",t.FLAC="flac"}(c||(c={})),e.SPECIAL_AUDIO_TYPE=c,function(t){t[t.NONE=0]="NONE",t[t.DISABLE_NC=1]="DISABLE_NC",t[t.DISABLE_RP=2]="DISABLE_RP"}(h||(h={})),e.DISABLE_LOADER_TYPE=h},function(t,e,i){"use strict";var n=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};Object.defineProperty(e,"__esModule",{value:!0});var r,o,a=function(){function t(){}return t.getLocalStorage=function(t){var e="";try{e=window.localStorage.getItem(t)}catch(t){}return e},t.setLocalStorage=function(t,e){try{window.localStorage.setItem(t,e)}catch(t){}},t.removeStorage=function(t){try{window.localStorage.removeItem(t)}catch(t){}},t.getSessionStorage=function(t){var e="";try{e=window.sessionStorage.getItem(t)}catch(t){}return e},t.setSessionStorage=function(t,e){try{window.sessionStorage.setItem(t,e)}catch(t){}},t.toFixed=function(t,e){return void 0===e&&(e=2),parseFloat(null==t?void 0:t.toFixed(e))},t.atob=function(t){try{return window.atob(t)}catch(t){return null}},t.switchFawkesConfig=function(t){var e={};for(var i in t)if(RegExp(String.raw(r||(r=n(["^(.+).(.+)$"],["^(.+)\\.(.+)$"])))).test(i)){var a=i.match(RegExp(String.raw(o||(o=n(["^(.+).(.+)$"],["^(.+)\\.(.+)$"]))))),s=a[1],l=a[2];e[s]||(e[s]={}),e[s][l]=this.atob(t[i])}return e},t.getCookie=function(e){try{if(t.cookie)return t.cookie[e]||"";if(!document.cookie||""===document.cookie)return"";t.cookie={};for(var i=document.cookie.split(";"),n=0;n<i.length;n++){var r=i[n].split("="),o=r[0].trim(),a=r[1].trim();t.cookie[o]=a}return t.cookie[e]||""}catch(t){return""}},t.saveDecodeErrorMediaQualityNumber=function(t,e,i){try{var n=null;if(!(sessionStorage&&sessionStorage.setItem&&sessionStorage.getItem&&sessionStorage.removeItem))throw new Error("");var r=sessionStorage.getItem(i);null!==r&&""!==r?(n=JSON.parse(r))[t]&&Array.isArray(n[t])?!n[t].includes(e)&&n[t].push(e):(n[t]=[],n[t].push(e)):(n={audio:[],video:[]})[t].push(e),n&&sessionStorage.setItem(i,JSON.stringify(n))}catch(t){console.error(t)}},t.getDecodeErrorMediaQualityNumberListForType=function(t,e){try{if(sessionStorage&&sessionStorage.getItem){var i=sessionStorage.getItem(e);if(void 0!==i&&""!==i){var n=JSON.parse(i);return n[t]&&Array.isArray(n[t])?n[t]:[]}return[]}}catch(t){return[]}},t.isInSpareTime=function(){var t=(new Date).getHours();return![12,13,20,21].includes(t)},t.cookie=null,t}();e.default=a},function(t,e,i){"use strict";var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.extend=function(t,e){if(t){var i=!!e&&e.override,n=!!e&&e.publicOnly;for(var r in t)!t.hasOwnProperty(r)||this[r]&&!i||n&&-1===t[r].indexOf("public_")||(this[r]=t[r])}},t}();e.a=n},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),
e.BROWSER_TYPE=e.getGPUInfo=e.getCurrentBrowserInfo=e.getFireFoxInfo=e.getEdgeInfo=e.getSafariInfo=void 0;var r,o,a=n(i(3));(o=r||(r={})).Chrome="Chrome",o.ChromiumEdge="Edge",o.LegacyEdge="LegacyEdge",o.Firefox="FireFox",o.Safari="Safari",o.QQ="QQ",o.Sogou="Sogou",o.Other="Other",e.BROWSER_TYPE=r,e.getSafariInfo=function(t){var e,i;t||(t=null===(i=null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||void 0===i?void 0:i.toLowerCase());var n=t.indexOf("safari")>-1&&t.indexOf("chrom")<0,r=t.match(/version\/\d+/);return{isSafari:n,version:n&&(null==r?void 0:r.length)?+r[0].substr(8):-1}},e.getEdgeInfo=function(t){var e,i;t||(t=null===(i=null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||void 0===i?void 0:i.toLowerCase());var n=t.indexOf("edge/")>-1,r=t.match(/edge\/\d+/);return{isEdge:n,version:n&&(null==r?void 0:r.length)?+r[0].substr(5):-1}},e.getFireFoxInfo=function(t){var e,i;t||(t=null===(i=null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||void 0===i?void 0:i.toLowerCase());var n=t.indexOf("Firefox/")>-1,r=t.match(/Firefox\/\d+/);return{isFireFox:n,version:n&&(null==r?void 0:r.length)?+r[0].substr(8):-1}},e.getCurrentBrowserInfo=function(){var t,e,i=null===(e=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===e?void 0:e.toLowerCase(),n={type:r.Other,version:0};try{var o={Chrome:i.indexOf("chrome")>-1&&i.indexOf("safari")>-1,Firefox:i.indexOf("firefox")>-1,Safari:i.indexOf("safari")>-1&&-1===i.indexOf("chrome"),LegacyEdge:i.indexOf("edge")>-1,Edge:i.indexOf("edg/")>-1,QQ:i.indexOf("qqbrowser")>-1,Sogou:i.indexOf("se 2.x")>-1};for(var a in o)if(o[a]){var s="",l=null;"QQ"===a?(s=i.match(/chrome\/([\d.]+)/)[1],l=r.QQ):"Chrome"===a?(l=r.Chrome,s=i.match(/chrome\/([\d.]+)/)[1]):"Firefox"===a?(s=i.match(/firefox\/([\d.]+)/)[1],l=r.Firefox):"Safari"===a?(s=i.match(/version\/([\d.]+)/)[1],l=r.Safari):"Edge"===a?(s=i.match(/edg\/([\d.]+)/)[1],l=r.ChromiumEdge):"LegacyEdge"===a?(s=i.match(/edge\/([\d.]+)/)[1],l=r.LegacyEdge):"Sogou"===a&&(l=r.Sogou,s=i.match(/chrome\/([\d.]+)/)[1]),n.type=l,n.version=parseInt(s,10)}}catch(t){n.type=r.Other,n.version=0}return n},e.getGPUInfo=function(){return a.default.getLocalStorage("bilibili_player_gpu_renderer")||""}},function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n="2.7.0";function r(){return n}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[i]}})}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&r(e,t,i);return o(e,t),e},s=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},l=this&&this.__generator||function(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},A=this&&this.__spreadArrays||function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),r=0;for(e=0;e<i;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)n[r]=o[a];return n},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var h=i(19),d=i(12),u=i(8),p=c(i(3)),g=i(2),f=c(i(20)),m=a(i(14)),y=c(i(21)),b=i(13),v=i(5),E=c(i(22)),I=c(i(23)),C=function(){function t(e,i){if(this.switchSourcePromise={},this.initAbortController=null,this.id=++t.id,this.qnSwitchingInfo={video:{switching:!1,qn:NaN,resolve:null,reject:null,listener:null,oQn:NaN},audio:{switching:!1,qn:NaN,resolve:null,reject:null,listener:null,oQn:NaN}},this.lastVideoFrameDataUrl=null,this.config={scriptSrc:"https://static.hdslb.com/player/js/dash.mediaplayer.min.js",scriptMaxLoadTime:1e4,minQualityNumberMappingNumber:6,videoInfoScheduleTime:1e3},(null==i?void 0:i.hid)&&"string"==typeof i.hid&&(this.config.hid=i.hid),(null==i?void 0:i.mediaSourceLoader)&&"function"==typeof i.mediaSourceLoader&&(this.externalMediaLoader=i.mediaSourceLoader),this.state={defaultVideoQuality:0,defaultAudioQuality:0,setTheDefaultVideoQualityState:!1,stableBufferTime:60,isAutoPlay:!1,abrStrategy:g.STRING.ABR_THROUGHPUT,isAutoSwitch:{video:!1,audio:!1},autoSwitchTopQualityMap:{video:-1,audio:-1},autoSwitchLowestQualityMap:{video:-1,audio:-1},onScriptLoading:!1,initialized:!1,mpd:null,manifest:null,manifestInfo:{},currentQualityIndex:{video:0,audio:0},maxQualityIndex:{video:-1,audio:-1},qualityNumberMap:{video:{},audio:{}},segmentsInfoMap:{video:{},audio:{}},mediaInfo:{},statisticsInfo:{},autoSwitchStartTime:0,preloadData:null,startOffsetTime:0,enforceSSLStream:!1,latestPlayurlExpireTimeStamp:0,latestPlayurlErrorHTTPCode:0,fragmentLoadingInfo:{},appendingSourceState:!1,logHistory:[],networkWarningHistory:[],playbackState:m.BUFFERING.PLAYBACK.PLAYING,enableHEVC:!1,enableAV1:!1,enableSourceChangeType:!!i.enableSourceChangeType,codecStrategy:g.DEF_CODEC_STRATEGY,cdnInfo:{cdn:0,p2p:0,nc:0,pdn:0,ncBr:0,business:0,mcdn:0,bcache:0,vcache:0,ncFail:0,ncGotFail:0},cdnInfoDetail:{},requestedInfoRecordIndex:0,requestedInfoDetail:{},NCInfo:{},filterVideoInfo:{},protectionDataSet:null,ignoreEmeEncryptedEvent:i.ignoreEmeEncryptedEvent,enableMultiAudioTracks:!!i.enableMultiAudioTracks,playAt:i.playAt,decodeErrorLocalConfig:i.decodeErrorLocalConfig||{},enableExtraFrames:!!i.enableExtraFrames,enableFastSwitchQn:!!i.enableFastSwitchQn,audioOnlyStartup:!!i.audioOnlyStartup},this.timer={loadScript:0,videoInfoSchedule:0,removeSwitchSourceTransition:0,qnChangeTimeOutFlag:{video:-1,audio:-1},switchSourceTimer:-1,updateSourceTimer:-1,appendSourceTimer:-1,delayStartOffsetHackTimer:-1},this.events={},this.components={networkActivity:new f.default,bufferingInfo:new m.default(e),bufferingStrategy:new y.default,performanceInfo:new E.default(e),ncDisableStrategy:new I.default(this)},this.video=e,this.mixin(i),this.onVideoSwitchSourceEnded=this.onVideoSwitchSourceEnded.bind(this),!e||!(e instanceof HTMLVideoElement||window.__ENABLE_WASM_PLAYER__&&e instanceof window.BwpElement))throw new Error("Video parameter is not a HTMLVideoElement")}return t.isAudioCodec=function(e){return t.AUDIO_CODEC_PREFIXES.some((function(t){return e.startsWith(t)}))},t.checkCodecCapability=function(e){return s(this,void 0,void 0,(function(){return l(this,(function(i){return t.isAudioCodec(e.codec)?[2,u.checkAudioCapability(e)]:[2,u.checkVideoCapability(e)]}))}))},t.checkCodecCapabilities=function(e){return s(this,void 0,void 0,(function(){return l(this,(function(i){
return[2,Promise.all(e.map((function(e){return t.checkCodecCapability(e)})))]}))}))},t.clearAll=function(){window.dashjs&&window.dashjs.FactoryMaker&&"function"==typeof window.dashjs.FactoryMaker.reset&&window.dashjs.FactoryMaker.reset()},t.getFawkesConfigValue=function(e,i){if(!t.fawkesConfig){var r=JSON.parse(JSON.stringify(g.DEFAULT_FAWKES_CONFIG));t.fawkesConfig=r;try{var o=p.default.getLocalStorage("bilibili_player_dash_fawkes_config");if(o){var a=p.default.switchFawkesConfig(JSON.parse(o));Object.keys(a).forEach((function(e){t.fawkesConfig[e]=n(n({},t.fawkesConfig[e]),a[e])}))}}catch(t){}}return t.fawkesConfig[e]?i&&"string"==typeof i?t.fawkesConfig[e][i]||"":t.fawkesConfig[e]||"":""},t.getKVDashConfigValue=function(e){var i;if(!t.kvConfig)try{var n=p.default.getLocalStorage("bilibili_player_kv_config");n&&(t.kvConfig=(null===(i=JSON.parse(n))||void 0===i?void 0:i.dash_config)||{})}catch(t){}return t.kvConfig&&e&&"string"==typeof e&&t.kvConfig[e]||""},t.prototype.processManifest=function(t,e,i){return"string"!=typeof t&&this.processSpecialAudioItem(t,this.state.defaultAudioQuality),this.filterManifest({enableHEVC:e,enableAV1:i,manifest:t,state:this.state})},t.prototype.preload=function(){var t=this;this.detectDashJSExists()||this.loadDashPlayerScript().then((function(){t.fire(g.EVENTS.SCRIPT_LOADED)})).catch((function(e){t.error({msg:"Load dash player script error",detail:e})}))},t.prototype.initialize=function(t,e){return s(this,void 0,void 0,(function(){var i,n,r,o,a=this;return l(this,(function(s){switch(s.label){case 0:if(!t)throw new Error("Manifest parameter error, manifest: "+JSON.stringify(t));return this.initAbortController&&this.initAbortController.abort(),this.initAbortController=new AbortController,this.mixin(e),this.detectDashJSExists()?[3,3]:this.state.onScriptLoading?[4,new Promise((function(t){a.on(g.EVENTS.SCRIPT_LOADED,(function(){a.off(g.EVENTS.SCRIPT_LOADED),t()}))}))]:[3,2];case 1:return s.sent(),[3,3];case 2:throw new Error("Dash.js script not loaded yet, please call preload() first");case 3:return s.trys.push([3,5,,6]),this.createPlayer(),i=this.processManifest(t,this.state.enableHEVC,this.state.enableAV1),n=i.codecId,r=i.manifest,this.state.mpd=r,this.state.enableHEVC=n===g.VIDEO_CODEC_ID.HEVC,this.state.enableAV1=n===g.VIDEO_CODEC_ID.AV1,this.checkShouldResetLocalDecodeErr(),this.components.bufferingStrategy.setHEVCEnableFlag(this.state.enableHEVC).setOnOptimizingCallback(this.fire.bind(this)),this.buildManifestState(r),o=this.waitForStreamInitialized(),this.startPlayer(),[4,o];case 4:return s.sent(),[3,6];case 5:throw{msg:"Initialize error",detail:s.sent()};case 6:return[2]}}))}))},t.prototype.on=function(t,e){t&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e))},t.prototype.once=function(t,e){var i=this;this.on(t,(function(n){e(n),i.off(t,e)}))},t.prototype.off=function(t,e){if(t)if("function"==typeof e){if(this.events[t]&&this.events[t].length){var i=this.events[t].indexOf(e);i>=0&&this.events[t].splice(i,1)}}else this.events[t]=[]},t.prototype.fire=function(t,e){if(t){var i=this.events[t];i&&i.length&&i.forEach((function(t){"function"==typeof t&&t.call(null,e)}))}},t.prototype.play=function(){try{return this.player.play()}catch(t){this.error({msg:"Call play function error",detail:t})}},t.prototype.pause=function(){try{this.player.pause()}catch(t){this.error({msg:"Call pause function error",detail:t})}},t.prototype.getCurrentTime=function(t){void 0===t&&(t=!0);try{return this.player.time(void 0,t)}catch(t){this.error({type:g.STRING.WARNING,msg:"Call getCurrentTime function error",detail:t})}return 0},t.prototype.getBufferedTime=function(){this.getCurrentTime();var t=this.video;try{t.buffered}catch(t){this.error({msg:"Call getBufferedTime function error",detail:t})}return 0},t.prototype.getDuration=function(t){void 0===t&&(t=!0);try{return this.player.duration(t)}catch(t){this.error({msg:"Call getDuration function error",detail:t})}},t.prototype.seek=function(t,e){var i=this;return void 0===e&&(e=!1),new Promise((function(n,r){if(isNaN(parseInt(""+t,10))||t<0)r({msg:"Seek time value error, time: "+t});else if(i.state.appendingSourceState)r({msg:"Call seek function error while appending source, time: "+t});else try{var o=i.getCurrentTime(),a=Date.now();i.changePlaybackState(m.BUFFERING.PLAYBACK.SEEKING);var s=i.getStartOffsetTime();t<s&&(t=s+.3);var l=999999,A=i.state.segmentsInfoMap,c=parseInt(i.video.getAttribute("data-offset"),10)||0;if(A)for(var h in A)l=Math.min(A[h].realDuration+c,l);l=Math.min(i.state.manifest.mediaPresentationDuration,l),t>l-.6&&(t=l-.6),i.player.seek(t,e);var d=function(){i.changePlaybackState(m.BUFFERING.PLAYBACK.PLAYING).player.off(g.EVENTS.PLAYBACK_SEEKED,d),n({cost:Math.floor(Date.now()-a),currentTime:o,seekedTime:t,isRelative:e})};i.player.on(g.EVENTS.PLAYBACK_SEEKED,d)}catch(t){i.error({msg:"Call seek function error",detail:t})}}))},t.prototype.getCorePlayer=function(){return this.player},t.prototype.setVolume=function(t){if(isNaN(parseInt(""+t,10))||t<0||t>1)this.error({msg:"SetVolume value error, value: "+t});else try{this.player.setVolume(t)}catch(t){this.error({msg:"Call setVolume function error",detail:t})}},t.prototype.getVolume=function(){try{return this.player.getVolume()}catch(t){this.error({msg:"Call getVolume function error",detail:t})}},t.prototype.setPlaybackRate=function(t){try{this.player.setPlaybackRate(t)}catch(t){this.error({msg:"Call setPlaybackRate function error",detail:t})}},t.prototype.getPlaybackRate=function(){try{return this.player.getPlaybackRate()}catch(t){this.error({msg:"Call getPlaybackRate function error",detail:t})}},t.prototype.getAutoSwitchQualityFor=function(t){try{return this.player.getAutoSwitchQualityFor(t)}catch(t){this.error({msg:"Call getAutoSwitchQualityFor function error",detail:t})}},t.prototype.setAutoSwitchQualityFor=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!0);try{this.state.isAutoSwitch&&i&&(this.state.isAutoSwitch[t]=e),e||this.setMaxAllowedBitrateFor(t,0),this.player.setAutoSwitchQualityFor(t,e)}catch(t){this.error({msg:"Call setAutoSwitchQualityFor function error",detail:t})}return this},t.prototype.getAudioQuallityCanBeUsed=function(t){return t===g.DOLBY_AUDIO_QN.AUDIO||t===g.DOLBY_AUDIO_QN.AMTOS?this.checkAudioCodecCanUseByType(g.SPECIAL_AUDIO_TYPE.DOLBY)&&t||30280:t===g.FLAC_QN?this.checkAudioCodecCanUseByType(g.SPECIAL_AUDIO_TYPE.FLAC)&&t||30280:t},t.prototype.getQualityList=function(t){try{return this.player.getBitrateInfoListFor(t)}catch(t){return[]}},t.prototype.getHighestSmoothVideoQn=function(){var t=this.state.mpd;if(!t||"string"==typeof t||!Array.isArray(t.video)||!t.video.length)return 0;for(var e=0,i=0,n=t.video;i<n.length;i++){var r=n[i],o=u.checkVideoCapabilitySync({codec:r.codecs,width:r.width,height:r.height,bitrate:r.bandwidth,framerate:r.frame_rate?parseFloat(r.frame_rate):void 0});o.supported&&o.smooth&&r.id>e&&(e=r.id)}return e},Object.defineProperty(t.prototype,"supportsChangeType",{get:function(){try{return"1"!==p.default.getLocalStorage(t.LS_KEY_CHANGE_TYPE_DISABLED)&&!1!==this.state.enableSourceChangeType&&"function"==typeof SourceBuffer.prototype.changeType&&d.isBrowserChangeTypeAllowed()}catch(t){return!1}},enumerable:!1,configurable:!0}),t.prototype.getCodecStrategyResult=function(){var t=this.state.codecDetectionPerf,e=this.state.codecMap;return{enableSCT:!1!==this.state.enableSourceChangeType,supportSCT:this.supportsChangeType,defaultCodec:this.state.enableHEVC?g.VIDEO_CODEC_ID.HEVC:this.state.enableAV1?g.VIDEO_CODEC_ID.AV1:g.VIDEO_CODEC_ID.AVC,codecMap:e?Object.fromEntries(e):{},duration:t?+t.duration.toFixed(2):-1}},t.prototype.setDefaultQualityFor=function(t,e){void 0===e&&(e=0);var i=this.getQualityIndexFromQualityNumber(e,t);try{var n=this.state.mpd&&this.state.mpd[t];if(!n)return;var r=n.length;r&&(i=Math.min(i,r-1)),i>=0?(this.state.currentQualityIndex[t]=i,this.player.setDefaultQualityFor(t,i)):this.error({msg:"Call setDefaultQualityFor function error, quality: "+e})}catch(t){this.error({msg:"Call setDefaultQualityFor function error, quality: "+e+", qualityIndex = "+i,detail:t})}},t.prototype.setAutoSwitchTopQualityFor=function(t,e){var i=this
;try{if(!this.state.initialized){var n=function(){i.off(g.EVENTS.STREAM_INITIALIZED,n),i.setAutoSwitchTopQualityFor(t,e)};return void this.on(g.EVENTS.STREAM_INITIALIZED,n)}if(!e&&0!==e)return void this.setMaxAllowedBitrateFor(t,0);if(!this.state.isAutoSwitch||!this.state.isAutoSwitch[t])return;var r=this.getQualityIndexFromQualityNumber(e,t),o=this.getQualityList(t);if(!o)return;var a=o&&o[r],s=Math.floor(a.bitrate/1e3)+1;this.state.autoSwitchTopQualityMap[t]=r,this.setMaxAllowedBitrateFor(t,s)}catch(t){this.error({msg:"Call setAutoSwitchTopQualityFor function error",detail:t})}},t.prototype.setAutoSwitchLowestQualityFor=function(t,e){var i=this;try{if(!this.state.initialized){var n=function(){i.off(g.EVENTS.STREAM_INITIALIZED,n),i.setAutoSwitchLowestQualityFor(t,e)};return void this.on(g.EVENTS.STREAM_INITIALIZED,n)}if(!e&&0!==e)return void this.setMinAllowedBitrateFor(t,0);if(!this.state.isAutoSwitch||!this.state.isAutoSwitch[t])return;var r=this.getQualityIndexFromQualityNumber(e,t),o=this.getQualityList(t);if(!o)return;var a=o&&o[r],s=Math.floor(a.bitrate/1e3);this.state.autoSwitchLowestQualityMap[t]=r,this.setMinAllowedBitrateFor(t,s)}catch(t){this.error({msg:"Call setAutoSwitchLowestQualityFor function error",detail:t})}},t.prototype.setQualityFor=function(t,e,i){var n=this;return void 0===i&&(i=20),new Promise((function(r,o){if(isNaN(parseInt(""+e,10))||e<0)o({msg:"Set quality value error, quality: "+e,code:g.ERROR_CODE.SET_QUALITY_VALUE_ERR});else if(n.detectQualityTypeIsLegal(t))o({msg:"Set quality type error, type: "+t,code:g.ERROR_CODE.SET_QUALITY_TYPE_ERR});else if(n.state.appendingSourceState)o({msg:"Reject setQualityFor by appending next source.",code:g.ERROR_CODE.SET_QUALITY_APENDING_ERR});else if("audio"===t&&n.state.enableMultiAudioTracks)o({msg:"MultiAudioTrack disable change Qn",code:g.ERROR_CODE.SET_QUALITY_MULTI_TRACK});else if("audio"===t&&n.getAutoSwitchQualityFor("video"))o({msg:"abr disable change Qn",code:g.ERROR_CODE.SET_QUALITY_ABR});else try{var a=e;if((e=n.getQualityIndexFromQualityNumber(e,t))===n.state.currentQualityIndex[t])return void o({msg:"Set quality equal current quality, quality: "+e,code:g.ERROR_CODE.SET_QUALITY_SAME_VALUE,isChange:a!==n.getQualityNumberFromQualityIndex(e)&&e!==a});n.player.setQualityFor(t,e);var s=Date.now(),l=function(t){-1!==n.timer.qnChangeTimeOutFlag[t]&&(clearTimeout(n.timer.qnChangeTimeOutFlag[t]),n.timer.qnChangeTimeOutFlag[t]=-1),n.qnSwitchingInfo[t]={}};l(t);var A=1e3*i;n.timer.qnChangeTimeOutFlag[t]=window.setTimeout((function(){n.player.off(g.EVENTS.QUALITY_CHANGE_RENDERED,c),o({msg:"Call setQualityFor timeout",code:g.ERROR_CODE.SET_QUALITY_TIME_OUT}),l(t);var e=n.state.currentQualityIndex[t];n.player.setQualityFor(t,e)}),A);var c=function(i){if(i.mediaType===t){var A=i.newQuality;if(l(i.mediaType),n.player.off(g.EVENTS.QUALITY_CHANGE_RENDERED,c),A===e){var h=n.getQualityNumberFromQualityIndex(A,t);A!==a&&a!==h?(o({msg:"Quality rendered and quality is not "+a+" but "+h,code:g.ERROR_CODE.SET_QUALITY_RENDER_CHANGED,newQuality:A,newQnNumber:h}),n.fire(g.EVENTS.QUALITY_CHANGE_ABNORMAL,{type:g.EVENTS.QUALITY_CHANGE_ABNORMAL,mediaType:t,defaultQuality:a,currentIndex:A,qualityNumber:h})):r(n.getQualityChangedData(i,s))}}};n.qnSwitchingInfo[t]={switching:!0,oQn:a,qn:e,reject:o,resolve:r,listener:c},n.player.on(g.EVENTS.QUALITY_CHANGE_RENDERED,c)}catch(t){o({msg:"Call setQualityFor function error",code:g.ERROR_CODE.SET_QUALITY_ERR,detail:t})}}))},t.prototype.getQualityFor=function(t){try{return this.player.getQualityFor(t)}catch(t){return-1}},t.prototype.setStableBufferTime=function(t){void 0===t&&(t=60);try{this.player.setStableBufferTime(t),this.player.setBufferTimeAtTopQuality(t),this.player.setBufferTimeAtTopQualityLongForm(t),this.player.setBufferAheadToKeep(t+10)}catch(t){this.error({msg:"Call setStableBufferTime function error",detail:t})}},t.prototype.getStableBufferTime=function(){try{return this.player.getStableBufferTime()}catch(t){this.error({msg:"Call getStableBufferTime function error",detail:t})}},t.prototype.getBufferLength=function(t){try{return this.player.getBufferLength(t)}catch(t){this.error({msg:"Call getBufferLength function error",detail:t})}},t.prototype.disableVideo=function(t){try{if(t&&this.video.videoWidth&&this.video.videoHeight){var e=document.createElement("canvas");e.width=this.video.videoWidth,e.height=this.video.videoHeight,e.getContext("2d").drawImage(this.video,0,0,e.width,e.height),this.lastVideoFrameDataUrl=e.toDataURL("image/jpeg",.8)}this.player.removeVideoBuffer()}catch(t){this.error({msg:"Call disableVideo function error",detail:t})}},t.prototype.enableVideo=function(t){var e=this;try{if(t&&this.lastVideoFrameDataUrl){var i=document.createElement("img");i.src=this.lastVideoFrameDataUrl,i.style.zIndex="10",i.style.position="absolute",i.style.top="50%",i.style.left="50%",i.style.transform="translate(-50%, -50%)",i.style.width="100%",i.style.height="100%",i.style.objectFit="contain",i.className=g.STRING.SWITCH_SOURCE_TRANSITION_ELEMENT_CLASS_NAME,this.video.parentNode.appendChild(i),this.video.style.visibility="hidden",window.clearTimeout(this.timer.removeSwitchSourceTransition),this.timer.removeSwitchSourceTransition=window.setTimeout((function(){e.onVideoSwitchSourceEnded(),e.lastVideoFrameDataUrl=null}),1e4);var n=function(){e.video.removeEventListener("canplay",n),e.onVideoSwitchSourceEnded(),e.lastVideoFrameDataUrl=null};this.video.removeEventListener("canplay",this.onVideoSwitchSourceEnded),this.video.addEventListener("canplay",n)}this.player.recreateVideoBuffer()}catch(t){this.error({msg:"Call enableVideo function error",detail:t})}},t.prototype.getCurrentPlayURLFor=function(t){try{return this.player.getCurrentSegmentInfoFor(t).url||""}catch(t){return""}},t.prototype.getVideoInfo=function(){return{mediaInfo:this.state.mediaInfo,statisticsInfo:this.state.statisticsInfo}},t.prototype.getMpd=function(){var t;return null===(t=this.state)||void 0===t?void 0:t.mpd},t.prototype.getCurrentCodecID=function(t){var e;void 0===t&&(t=g.STRING.VIDEO);var i=0;if(t===g.STRING.VIDEO&&this.state){i=g.VIDEO_CODEC_ID.AVC;var n=null===(e=this.state.currentQualityIndex)||void 0===e?void 0:e[t],r=this.getQualityNumberFromQualityIndex(n,t),o=this.state.mpd&&"string"!=typeof this.state.mpd&&this.state.mpd.video;if(o&&o.length)for(var a=0;a<o.length;a++)if(o[a].id===r&&o[a].codecid){i=o[a].codecid;break}}return i},t.prototype.getAverageConnectionSpeed=function(t){void 0===t&&(t=g.STRING.VIDEO);try{return Number(this.player.getAverageThroughput(t))||0}catch(t){this.error({msg:"Call getAverageConnectionSpeed function error",detail:t})}},t.prototype.switchSource=function(t,e,i,n){var r,o,a,A;return s(this,void 0,void 0,(function(){var s,c,h,d,u,p,f,m,y,b,v,E,I,C,B,w,x=this;return l(this,(function(l){this.onDashJSLog({type:"switchsource",message:"start switchsource"+this.id}),"function"==typeof this.switchSourcePromise.reject&&this.switchSourcePromise.reject({code:g.ERROR_CODE.SWITCH_SOURCE_ABORT,msg:"abort switch source"}),this.player.off(g.EVENTS.STREAM_INITIALIZED,this.onSiwtchSourceInitialized,this),c=(s=n||{}).playAt,h=s.keepTransition,d=s.autoPlay,window.clearTimeout(this.timer.removeSwitchSourceTransition),window.clearTimeout(this.timer.switchSourceTimer),h||this.onVideoSwitchSourceEnded(),this.player&&this.player.setPlayAt(c||0),this.state&&(this.state.playAt=c);try{if(u=this.filterManifest({manifest:t,state:this.state}),t=u.manifest,this.state.mpd=t,e&&(this.shouldDropPreloadVideoByCodec(t,e)&&(e.video=null,e.videoid=void 0),"string"!=typeof e.videoid||"string"!=typeof e.audioid?this.error({type:g.STRING.WARNING,msg:"Preload data videoid/audioid value must be string type.",detail:e}):this.player&&this.player.setPreloadData(e)),!this.player)throw{code:g.ERROR_CODE.SWITCH_SOURCE_FAILED,msg:"switch source failed"};return["video","audio"].forEach((function(t){var e=x.qnSwitchingInfo[t];e&&e.switching?(clearTimeout(x.timer.qnChangeTimeOutFlag[t]),x.setDefaultQualityFor(t,e.qn),x.player.off(g.EVENTS.QUALITY_CHANGE_RENDERED,e.listener)):x.setDefaultQualityFor(t,x.state.currentQualityIndex[t])})),
this.state.defaultVideoQuality=this.state.currentQualityIndex.video,this.state.defaultAudioQuality=this.state.currentQualityIndex.audio,p=this.bindSwitchSourceEvents(1e4,d),i&&(this.getTransitionCanvas()&&h||(f=document.createElement("canvas"),m=this.video.offsetWidth,y=this.video.offsetHeight,b=this.video.videoWidth,v=this.video.videoHeight,E=b/v,I=m/y,f.width=b,f.height=v,f.style.zIndex="10",f.style.position="absolute",f.style.top="50%",f.style.left="50%",f.style.transform="translate(-50%, -50%)",f.className=g.STRING.SWITCH_SOURCE_TRANSITION_ELEMENT_CLASS_NAME,C=f.getContext("2d"),B=void 0,w=void 0,I>=E?(w=y,B=y/v*b):(B=m,w=m/b*v),f.style.width=(B/m*100).toFixed(2)+"%",f.style.height=(w/y*100).toFixed(2)+"%",C.fillRect(0,0,f.width,f.height),C.drawImage(this.video,0,0,f.width,f.height),this.video.parentNode.appendChild(f),this.video.style.visibility="hidden",f=null,C=null),this.timer.removeSwitchSourceTransition=window.setTimeout((function(){h||x.onVideoSwitchSourceEnded()}),1e4),this.video.removeEventListener("canplay",this.onVideoSwitchSourceEnded),this.video.addEventListener("canplay",this.onVideoSwitchSourceEnded)),this.player.switchSource(t),[2,p]}catch(t){throw{code:null!==(o=null===(r=t)||void 0===r?void 0:r.code)&&void 0!==o?o:g.ERROR_CODE.SWITCH_SOURCE_ERR,msg:null!==(A=null===(a=t)||void 0===a?void 0:a.msg)&&void 0!==A?A:t,detail:t}}return[2]}))}))},t.prototype.shouldDropPreloadVideoByCodec=function(t,e){if(!e||"number"!=typeof e.videoCodecId)return!1;if(!t||"string"==typeof t||!Array.isArray(t.video))return!1;var i=t.video.find((function(t){return String(t.id)===String(e.videoid)}));return!(!i||"number"!=typeof i.codecid)&&i.codecid!==e.videoCodecId},t.prototype.updateSource=function(t){return s(this,void 0,void 0,(function(){var e=this;return l(this,(function(i){try{if(t=this.filterManifest({manifest:t,state:this.state}).manifest,!this.player)throw{msg:"Player instance destroyed during updateSource"};return this.player.updateSource(t),[2,new Promise((function(t,i){e.timer.updateSourceTimer=window.setTimeout((function(){i({msg:"Update Source Timeout"})}),5e3);var n=function(){e.player.off(g.EVENTS.STREAM_INITIALIZED,n),clearTimeout(e.timer.updateSourceTimer),t(null)};e.player.on(g.EVENTS.STREAM_INITIALIZED,n)}))]}catch(t){throw{msg:"Call updateSource function error, "+JSON.stringify(t),detail:t}}return[2]}))}))},t.prototype.appendSource=function(t,e){return s(this,void 0,void 0,(function(){var i,n,r,o=this;return l(this,(function(a){if(this.state.appendingSourceState)throw new Error("Dash Player is Appending Next Source!");if(this.setAutoSwitchQualityFor("video",!1,!1),this.setAutoSwitchQualityFor("audio",!1,!1),i=this.state,n=Date.now(),e&&("string"!=typeof e.videoid||"string"!=typeof e.audioid?this.error({type:g.STRING.WARNING,msg:"Preload data videoid/audioid value must be string type.",detail:e}):this.player&&this.player.setPreloadData(e)),!this.player)throw{msg:"Missing dash player instance!"};try{for(r in this.state.currentQualityIndex)this.state.currentQualityIndex[r]>=0&&this.setDefaultQualityFor(r,this.state.currentQualityIndex[r]);if(t=this.filterManifest({manifest:t,state:this.state}).manifest,!this.player)throw{msg:"Player instance destroyed during appendSource"};return this.state.appendingSourceState=!0,this.player.setEndOfStreamState(!1),this.player.appendSource(t),[2,new Promise((function(t,e){var r=function(e){clearTimeout(o.timer.appendSourceTimer),o.player.off(g.EVENTS.APPENDED_NEXT_SOURCE,r),t({cost:Date.now()-n})},a=function(t){o.player.off(g.EVENTS.APPENDED_NEXT_SOURCE_DURATION_CHANGED,a),o.state.appendingSourceState=!1,i.autoSwitchTopQualityMap.video>=0&&o.setAutoSwitchTopQualityFor("video",i.autoSwitchTopQualityMap.video),i.autoSwitchLowestQualityMap.video>=0&&o.setAutoSwitchLowestQualityFor("video",i.autoSwitchLowestQualityMap.video),o.setAutoSwitchQualityFor("video",i.isAutoSwitch[g.STRING.VIDEO],!1),o.setAutoSwitchQualityFor("audio",i.isAutoSwitch[g.STRING.AUDIO],!1)};o.player.on(g.EVENTS.APPENDED_NEXT_SOURCE,r),o.player.on(g.EVENTS.APPENDED_NEXT_SOURCE_DURATION_CHANGED,a),o.timer.appendSourceTimer=window.setTimeout((function(){var t,i;o.state.appendingSourceState=!1,null===(t=o.player)||void 0===t||t.off(g.EVENTS.APPENDED_NEXT_SOURCE,r),null===(i=o.player)||void 0===i||i.off(g.EVENTS.APPENDED_NEXT_SOURCE_DURATION_CHANGED,a),e({msg:"Append source time out."})}),5e3)}))]}catch(t){throw this.state.appendingSourceState=!1,{msg:"Call appendSource function error, "+JSON.stringify(t),detail:t}}return[2]}))}))},t.prototype.getNextFragmentHistoryInfo=function(){var t="";try{var e=function(t){return t?1:0};if(this.state.getNextFragmentHistory){var i=function(i){var r=n.state.getNextFragmentHistory[i],o="";r.forEach((function(t){var i,n,r=[e(t.final),t.currentTime,t.bufferLevel.toFixed(3),(i=[t.bufferResetInProgress,t.isReplacement,t.switchTrack,t.hasTopQualityChanged,t.lastInitQuality,t.bufferLevelRule],n="",i.length&&i.forEach((function(t){n+=""+e(t)})),parseInt(n,2))];o+=r.join(",")+";"})),t+=i+":"+o+"!"},n=this;for(var r in this.state.getNextFragmentHistory)i(r)}}catch(t){}return t},t.prototype.isLoadingFragment=function(t){if(t)return!!this.state.fragmentLoadingInfo[t]},t.prototype.getNetworkActivity=function(){return this.components.networkActivity&&this.components.networkActivity.getNetworkActivity()},t.prototype.getNetworkActivityHistory=function(t){return void 0===t&&(t=0),this.components.networkActivity&&this.components.networkActivity.getNetworkActivityHistory(t)},t.prototype.setEndOfStreamState=function(t){void 0===t&&(t=!1);try{return this.player.setEndOfStreamState(t)}catch(t){this.error({msg:"Call setEndOfStreamState function error",detail:t})}},t.prototype.getLogHistory=function(){var t=this.state&&this.state.logHistory||[],e=t.join("\n");return{length:t.length,log:e,size:function(t){for(var e=[],i=[t],n=0;i.length;){var r=i.pop();if("boolean"==typeof r)n+=4;else if("string"==typeof r)n+=2*r.length;else if("number"==typeof r)n+=8;else if("object"==typeof r&&-1===e.indexOf(r))for(var o in e.push(r),r)i.push(r[o])}return n}(e)}},t.prototype.getPerformanceInfo=function(t){void 0===t&&(t=!1);var e=this.getDroppedFramesInfo();return this.components.performanceInfo.getInfo(e,t)},t.prototype.getDisableLoaderType=function(){return this.components.ncDisableStrategy.isUseNC?this.components.ncDisableStrategy.isUseP2P?g.DISABLE_LOADER_TYPE.NONE:g.DISABLE_LOADER_TYPE.DISABLE_RP:g.DISABLE_LOADER_TYPE.DISABLE_NC},t.prototype.getBufferingInfo=function(t){var e,i;void 0===t&&(t=!0);var r={type:-1};try{var o=this.state.currentQualityIndex.video,a=this.state.currentQualityIndex.audio;r=this.components.bufferingInfo&&this.components.bufferingInfo.getInfo({videoBufferLength:this.getBufferLength("video"),audioBufferLength:this.getBufferLength("audio"),videoCurrentIndex:o,audioCurrentIndex:a,videoCurrentQn:this.getQualityNumberFromQualityIndex(o,g.STRING.VIDEO),audioCurrentQn:this.getQualityNumberFromQualityIndex(a,g.STRING.AUDIO),videoSpeed:this.getAverageConnectionSpeed(g.STRING.VIDEO),audioSpeed:this.getAverageConnectionSpeed(g.STRING.AUDIO),networkActivity:this.getNetworkActivityHistory(5),playbackState:this.state.playbackState,latestPlayurlErrorHTTPCode:this.state.latestPlayurlErrorHTTPCode,fragmentLoadingInfo:this.state.fragmentLoadingInfo,networkWarningHistory:null===(e=this.state)||void 0===e?void 0:e.networkWarningHistory,startOffsetTime:this.state.startOffsetTime,retryTimes:this.player.getRetryTimes(),seekSpace:this.player.getSpaceUtilLastSeekInSec()}),r=n(n({},r),this.getPerformanceInfo(!0)),null===(i=this.components)||void 0===i||i.bufferingStrategy.push(r)}catch(t){throw new Error(t.message)}return t&&this.onDashJSLog({type:"videoBuffering",message:"[videoBuffering]:"+JSON.stringify(r)}),r},t.prototype.getCDNInfo=function(t){if(void 0===t&&(t=!1),this.state){var e=n({},this.state.cdnInfo);return t&&(this.state.cdnInfo={cdn:0,p2p:0,nc:0,pdn:0,ncBr:0,business:0,mcdn:0,bcache:0,vcache:0,ncFail:0,ncGotFail:0}),e}return{}},t.prototype.getCDNInfoDetail=function(t){if(void 0===t&&(t=!1),this.state){var e=n({},this.state.cdnInfoDetail);return t&&(this.state.cdnInfoDetail={}),e}return{}},
t.prototype.getRequestedInfoDetail=function(t){if(void 0===t&&(t=!1),this.state){var e=n({},this.state.requestedInfoDetail);return t&&(this.state.requestedInfoDetail={}),e}return{}},t.prototype.getNCInfo=function(t){if(void 0===t&&(t=!1),this.state){var e={};for(var i in this.state.NCInfo)e[i]=n({},this.state.NCInfo[i]);return t&&(this.state.NCInfo={}),e}return{}},t.prototype.switchAudioTrack=function(t){var e=this;return new Promise((function(i,n){try{var r=-1,o="";if(e.state.enableMultiAudioTracks?t===e.getCurrentAudioTrackId()&&(r=g.ERROR_CODE.SWITCH_AUDIO_TRACK_ID_NOT_CHANGED,o="the id which is going to be switched is equal to current"):(r=g.ERROR_CODE.SWITCH_AUDIO_TRACK_NOT_SUPPORT,o="not support multiple audio tracks"),-1!==r)return void n({code:r,msg:o});0!==e.player.switchAudioTrack(t)?n({code:r=g.ERROR_CODE.SWITCH_AUDIO_TRACK_ID_NOT_EXIST,msg:o="the id which is going to be switched is not exist"}):e.once(g.EVENTS.SWITCH_AUDIO_TRACK_RENDERED,(function(t){i(t)}))}catch(t){n({code:g.ERROR_CODE.SWITCH_AUDIO_TRACK_ERR,msg:"switch aduio track failed, "+(t&&t.message)})}}))},t.prototype.getCurrentAudioTrackId=function(){return this.player.getCurrentAudioTrackId()},t.prototype.getAudioTrackList=function(){try{return this.player.getAudioTrackList()}catch(t){return[]}},t.prototype.destroy=function(){try{this.player.off(g.EVENTS.FRAGMENT_LOADING_STARTED,this.onFragmentLoading,this),this.player.off(g.EVENTS.FRAGMENT_LOADING_PROGRESS,this.onFragmentLoading,this),this.player.off(g.EVENTS.FRAGMENT_LOADING_COMPLETED,this.onFragmentLoading,this),this.player.off(g.EVENTS.SWITCH_AUDIO_TRACK_REQUEST,this.onAudioTrackSwitchRequest,this),this.player.off(g.EVENTS.SWITCH_AUDIO_TRACK_RENDERED,this.onAudioTrackSwitchRendered,this),this.player.off(g.EVENTS.LOG,this.onDashJSLog,this),this.player.off(g.EVENTS.PREDICT_SEEK,this.onPredictSeek,this),this.player.off(g.EVENTS.JUMP_MEDIA_GAP,this.onJumpMediaGap,this),this.player.off(g.EVENTS.STREAM_INITIALIZED,this.onSiwtchSourceInitialized,this),this.player.off(g.EVENTS.SPLIT_GAP_AFTER_APPEND_CHUNK,this.onSplitGapAfterAppended,this),this.player.off(g.EVENTS.PADDING_FRAMES_SUCCESS,this.onPaddingFramesSuccess,this),this.player.off(g.EVENTS.FIX_AV_SYNC,this.onFixAVSyncSuccess,this),this.player.off(g.EVENTS.SOURCE_BUFFER_CHANGE_TYPE,this.onSourceBufferChangeType,this),this.player.off(g.EVENTS.SOURCE_BUFFER_CHANGE_TYPE_FAILED,this.onSourceBufferChangeTypeFailed,this),this.player&&this.player.reset(),this.onVideoSwitchSourceEnded(),this.switchSourcePromise=null,this.clearAllTimer(),this.events={},this.config=null,this.state=null,this.video=null,this.player=null,this.switchStartTime=null,this.destroyAllComponents(),this.externalMediaLoader=null,this.qnSwitchingInfo=null,this.initAbortController&&(this.initAbortController.abort(),this.initAbortController=null)}catch(t){this.error({msg:"Call destroy function error, "+(t&&t.message),detail:t})}},t.prototype.destroyAllComponents=function(){this.components.networkActivity.destroy(),this.components.networkActivity=null,this.components.bufferingInfo.destroy(),this.components.bufferingInfo=null,this.components.bufferingStrategy.destroy(),this.components.bufferingStrategy=null,this.components.performanceInfo.destroy(),this.components.performanceInfo=null,this.components.ncDisableStrategy.destroy(),this.components.ncDisableStrategy=null,this.components=null},t.prototype.clearAllTimer=function(){var t=this;this.timer&&(Object.keys(this.timer).forEach((function(e){"qnChangeTimeOutFlag"===e?(clearTimeout(t.timer.qnChangeTimeOutFlag.video),clearTimeout(t.timer.qnChangeTimeOutFlag.audio)):clearTimeout(t.timer[e])})),this.timer=null)},t.prototype.mixin=function(t){if(t&&t instanceof Object)for(var e in t)t.hasOwnProperty(e)&&this.state.hasOwnProperty(e)&&(this.state[e]=t[e]);this.state&&this.state.isAutoSwitch||(this.state.isAutoSwitch={video:!1,audio:!1})},t.prototype.loadDashPlayerScript=function(){var t=this,e=this.config.scriptSrc;return new Promise((function(i,n){try{var r=document.createElement("script");r.src=e,r.onload=function(){t.state.onScriptLoading=!1,clearTimeout(t.timer.loadScript),i()},r.onerror=function(i){t.state.onScriptLoading=!1,clearTimeout(t.timer.loadScript),n({msg:"Load dash player script error, src: "+e,detail:i})},document.body.appendChild(r),t.state.onScriptLoading=!0,t.timer.loadScript=window.setTimeout((function(){n({msg:"Call loadDashPlayerScript function timeout"})}),t.config.scriptMaxLoadTime)}catch(t){n({msg:"Call loadDashPlayerScript function error",detail:t})}}))},t.prototype.createPlayer=function(){var e=window.dashjs,i=this.state,n=e.MediaPlayer().create();n.setPlayerId(this.id),n.setEnableSupplyFrame(this.state.enableExtraFrames&&d.isSupportEncoder()),"function"==typeof n.setSupportsChangeType&&n.setSupportsChangeType(this.supportsChangeType),(null==i?void 0:i.protectionDataSet)&&"function"==typeof n.setProtectionData&&n.setProtectionData(i.protectionDataSet),this.player=n,this.setDebugLog(),this.state.logHistory.push("Dash player log history, "+JSON.stringify(t.CONFIG))},t.prototype.startPlayer=function(){var t,e,i=this.player,n=this.state;this.bindEvents(),n.preloadData&&i.setPreloadData(n.preloadData),n.playAt&&i.setPlayAt(n.playAt),n.audioOnlyStartup&&i.setAudioOnlyStartup(!0),i.initialize(this.video,n.mpd,n.isAutoPlay,n.enforceSSLStream,null===(t=this.config)||void 0===t?void 0:t.hid,this.externalMediaLoader,n.ignoreEmeEncryptedEvent,n.enableMultiAudioTracks),i.setABRStrategy(n.abrStrategy||g.STRING.ABR_THROUGHPUT),i.setAutoSwitchQualityFor(g.STRING.VIDEO,n.isAutoSwitch[g.STRING.VIDEO]),i.setAutoSwitchQualityFor(g.STRING.AUDIO,n.isAutoSwitch[g.STRING.AUDIO]),i.setFastSwitchEnabled(!0),i.setFastSwitchOptimized(n.enableFastSwitchQn),i.enableLastBitrateCaching(!1),i.setBufferPruningInterval(20),i.setUseNC(this.components.ncDisableStrategy.isUseNC),i.setUseP2P(this.components.ncDisableStrategy.isUseP2P),(null===(e=n.mpd)||void 0===e?void 0:e.interactive)&&i.setEndOfStreamState(!1),i.setJumpGaps(!0),this.setStableBufferTime(n.stableBufferTime)},t.prototype.waitForStreamInitialized=function(){var t=this;return new Promise((function(e){var i=function(){t.player.off(g.EVENTS.STREAM_INITIALIZED,i,t),t.state.initialized=!0,t.fire(g.EVENTS.STREAM_INITIALIZED),t.videoInfoSchedule(),t.detectDefaultQualityChangeAbnormal(),e()};t.player.on(g.EVENTS.STREAM_INITIALIZED,i,t)}))},t.prototype.bindEvents=function(){var t=this,e=this.player;e.on(g.EVENTS.MANIFEST_LOADED,this.parseManifestInfo,this),e.on(g.EVENTS.GET_NEXT_FRAGMENT,this.getNextFragmentInfo,this),e.on(g.EVENTS.FRAGMENT_LOADING_STARTED,this.onFragmentLoading,this),e.on(g.EVENTS.FRAGMENT_LOADING_PROGRESS,this.onFragmentLoading,this),e.on(g.EVENTS.FRAGMENT_LOADING_COMPLETED,this.onFragmentLoading,this),e.on(g.EVENTS.SWITCH_AUDIO_TRACK_REQUEST,this.onAudioTrackSwitchRequest,this),e.on(g.EVENTS.SWITCH_AUDIO_TRACK_RENDERED,this.onAudioTrackSwitchRendered,this),e.on(g.EVENTS.FRAGMENT_LOADED_ERROR,this.onFragmentLoadingError,this),e.on(g.EVENTS.REQUEST_RETRYED,this.onFragmentLoadingError,this),e.on(g.EVENTS.LOG,this.onDashJSLog,this),e.on(g.EVENTS.PREDICT_SEEK,this.onPredictSeek,this),e.on(g.EVENTS.JUMP_MEDIA_GAP,this.onJumpMediaGap,this),e.on(g.EVENTS.SPLIT_GAP_AFTER_APPEND_CHUNK,this.onSplitGapAfterAppended,this),e.on(g.EVENTS.PADDING_FRAMES_SUCCESS,this.onPaddingFramesSuccess,this),e.on(g.EVENTS.FIX_AV_SYNC,this.onFixAVSyncSuccess,this),e.on(g.EVENTS.SOURCE_BUFFER_CHANGE_TYPE,this.onSourceBufferChangeType,this),e.on(g.EVENTS.SOURCE_BUFFER_CHANGE_TYPE_FAILED,this.onSourceBufferChangeTypeFailed,this),e.onInitSegmentsLoaded(this.onInitSegmentsLoaded.bind(this)),e.on(g.EVENTS.DELAY_TO_APPEND_TO_BUFFER,(function(t){})),e.on(g.EVENTS.START_OFFSET_TIME_WARNING,(function(e){var i=e&&e.time;i&&i>t.state.startOffsetTime&&(t.error({type:g.STRING.WARNING,code:g.ERROR.START_OFFSET_TIME_WARNING,msg:"Start offset time is less than buffer.start(0), "+t.state.startOffsetTime+" < "+i}),t.state.startOffsetTime=i+.2)}));var i=function(){e.off(g.EVENTS.PLAYBACK_METADATA_LOADED,i),t.timer.delayStartOffsetHackTimer=window.setTimeout((function(){if(t.video){var i=t.video.buffered,n=i.length&&i.start(0),r=t.video.currentTime
;r<n&&(t.error({type:g.STRING.WARNING,code:g.ERROR.START_OFFSET_TIME_WARNING,msg:"Current offset time is less than buffer.start(0), "+r+" < "+n}),t.state.startOffsetTime=n+.2,e.seek(n+.2))}}),3e3)};e.on(g.EVENTS.PLAYBACK_METADATA_LOADED,i),this.bindDashCorePlayerEvents()},t.prototype.onAudioTrackSwitchRequest=function(t){this.fire(g.EVENTS.SWITCH_AUDIO_TRACK_REQUEST,t)},t.prototype.onAudioTrackSwitchRendered=function(t){this.fire(g.EVENTS.SWITCH_AUDIO_TRACK_RENDERED,t)},t.prototype.bindSwitchSourceEvents=function(t,e){var i=this;this.switchStartTime=Date.now();var n=new Promise((function(t,e){i.switchSourcePromise={resolve:t,reject:e}}));return this.timer.switchSourceTimer=window.setTimeout((function(){i.onVideoSwitchSourceEnded(),"function"==typeof i.switchSourcePromise.reject&&i.switchSourcePromise.reject({code:g.ERROR_CODE.SWITCH_SOURCE_TIMEOUT,msg:"Dash Player Switch Source timeout",cost:Date.now()-i.switchStartTime})}),t),this.player.on(g.EVENTS.STREAM_INITIALIZED,this.onSiwtchSourceInitialized,this),e&&this.player.once(g.EVENTS.CAN_PLAY,(function(){i.player.play()})),n},t.prototype.onSiwtchSourceInitialized=function(){var t=this;window.clearTimeout(this.timer.switchSourceTimer),this.player.off(g.EVENTS.STREAM_INITIALIZED,this.onSiwtchSourceInitialized,this),"function"==typeof this.switchSourcePromise.resolve&&(this.switchSourcePromise.resolve({cost:Date.now()-this.switchStartTime}),this.switchStartTime=1/0,["video","audio"].forEach((function(e){var i=t.qnSwitchingInfo[e];i&&i.switching&&(i.resolve(t.getQualityChangedData({mediaType:e,newQuality:i.qn,oldQuality:i.oQn})),t.qnSwitchingInfo[e]={})})))},t.prototype.error=function(t){t.code=t.code||g.ERROR.INTERNAL_ERROR,t.msg="[Dash] "+t.msg,t.type=t.type||g.STRING.ERROR,this.state&&this.state.logHistory.push("Dash player "+t.type+" - "+t.code+": "+t.msg),g.STRING.ERROR===t.type?this.fire(g.EVENTS.ERROR,t):this.fire(g.EVENTS.WARNING,t)},t.prototype.bindDashCorePlayerEvents=function(){var t=this,e=this.events;this.player.on(g.EVENTS.ERROR,(function(e){var i,n=null===(i=null==e?void 0:e.event)||void 0===i?void 0:i.request;n&&(n.code=e.httpCode||e.code),t.recordRequestedInfoDetail(null==n?void 0:n.mediaType,n),t.errorHandler(e)})),this.on(g.EVENTS.QUALITY_CHANGE_REQUESTED,(function(e){t.changePlaybackState(m.BUFFERING.PLAYBACK.SWITCHING_QUALITY),t.components.bufferingInfo&&t.components.bufferingInfo.setSwitchingInfo({mediaType:e.mediaType,newQuality:e.newQuality,oldQuality:e.oldQuality})})),this.on(g.EVENTS.QUALITY_CHANGE_RENDERED,(function(e){t.changePlaybackState(m.BUFFERING.PLAYBACK.PLAYING),t.components.bufferingInfo&&t.components.bufferingInfo.setSwitchingInfo(null),t.state.currentQualityIndex[e.mediaType]=e.newQuality})),[{key:g.EVENTS.QUALITY_CHANGE_REQUESTED,callbackQueue:function(){return e[g.EVENTS.QUALITY_CHANGE_REQUESTED]}},{key:g.EVENTS.QUALITY_CHANGE_RENDERED,callbackQueue:function(){return e[g.EVENTS.QUALITY_CHANGE_RENDERED]}},{key:g.EVENTS.QUALITY_CHANGE_DOWNLOADED,callbackQueue:function(){return e[g.EVENTS.QUALITY_CHANGE_DOWNLOADED]}}].forEach((function(e){t.player.on(e.key,(function(i){try{var n=e.callbackQueue();n&&n.forEach((function(e){"function"==typeof e&&e(t.getQualityChangedData(i))}))}catch(i){t.error({msg:"Call "+e.key+" callback queue error",detail:i,type:g.STRING.WARNING})}}))})),this.player.on(g.EVENTS.FRAGMENT_LOADED_ERROR,(function(e){if(e){if(!e.code)return;var i=g.STRING.WARNING;e.code===g.ERROR.DOWNLOAD_FRAGMENT_ERROR_RETRY_FAILURE&&(i=g.STRING.ERROR),t.saveNetworkWarningInfo(e),t.error({code:e.code,detail:e,msg:"Fragment Loaded Error, "+JSON.stringify(e),type:i})}})),this.player.on(g.EVENTS.PCDN_LOADED_ERROR,(function(e){if(e){if(!e.code)return;t.error({code:e.code,detail:e,msg:"Pcdn Loaded Error, "+JSON.stringify(e),type:g.STRING.WARNING})}})),this.player.on(g.EVENTS.CDN_LOAD_INFO,this.onDashCDNLoadInfo,this),this.player.on(g.EVENTS.QUOTA_EXCEEDED,(function(t){})),this.player.on(g.EVENTS.STREAM_BUFFERING_COMPLETED,(function(e){t.fire(g.EVENTS.STREAM_BUFFERING_COMPLETED,e)}))},t.prototype.checkShouldResetLocalDecodeErr=function(){if(this.state){var t=this.state,e=t.enableAV1,i=t.enableHEVC,n=e?"AV1":i?"HEVC":"AVC";if("AVC"!==n){var r=d.getLocalDecodeErrorInfo(n);if(r&&"number"==typeof r.reactivateTime){var o=(new Date).getTime();r.reactivateTime<=o&&d.rmLocalDecodeErrorInfo(n)}}}},t.prototype.errorHandler=function(t){var e=this;if(t)try{var i=t.code,n=t.error,r=t.event.message,o=t.decodeErrorType||null;switch(i){case g.ERROR.DOWNLOAD_ERROR:case g.ERROR.DOWNLOAD_MPD_ERROR:case g.ERROR.DOWNLOAD_XINK_ERROR:case g.ERROR.DOWNLOAD_INIT_SEGMENT_ERROR:case g.ERROR.DOWNLOAD_MEDIA_SEGMENT_ERROR:case g.ERROR.DOWNLOAD_INDEX_SEGMENT_ERROR:case g.ERROR.DOWNLOAD_SWITCHING_SEGMENT_ERROR:case g.ERROR.DOWNLOAD_OTHER_ERROR:var a=t.event.url,s=t.httpCode,l=!0;if(s&&s>=400){var A=0;if(a){var c=a.match(/expires=\d+/g),h=a.match(/deadline=\d+/g);A=c&&parseInt(c[0].substr(8),10)||h&&parseInt(h[0].substr(9),10)}A&&this.state.latestPlayurlExpireTimeStamp===A&&this.state.latestPlayurlErrorHTTPCode===s&&(l=!1),this.state.latestPlayurlExpireTimeStamp=A,this.state.latestPlayurlErrorHTTPCode=s}l&&this.error({code:i,msg:s+" downloadError - "+a,detail:t});break;case g.ERROR.MANIFEST_ERROR:case g.ERROR.MANIFEST_TYPE_ERROR:case g.ERROR.MANIFEST_RESOLVE_ERROR:this.error({code:i,msg:n+" - "+r,detail:t});break;case g.ERROR.MEDIA_ERROR:case g.ERROR.MEDIA_ABORTED_ERROR:case g.ERROR.MEDIA_NETWORK_ERROR:case g.ERROR.MEDIA_SUPPORTED_ERROR:case g.ERROR.MEDIA_ENCRYPTED_ERROR:case g.ERROR.MEDIA_UNKNOWN_ERROR:case g.ERROR.MEDIA_DECODE_ERROR:case g.ERROR.MEDIA_FMP4_ERROR:case g.ERROR.MEDIA_CHANGE_TYPE_ERROR:!function(){try{if("string"==typeof r&&/changeType/i.test(r))return;if(i===g.ERROR.MEDIA_DECODE_ERROR&&"audio"===o){var t=e.getQualityNumberFromQualityIndex(e.getQualityFor("audio"),"audio");p.default.saveDecodeErrorMediaQualityNumber("audio",t,g.STRING.BILIBILI_DECODE_ERROR_OBJ)}var n=e.state,a=n.enableAV1,s=n.enableHEVC,l=n.decodeErrorLocalConfig,A=a?"AV1":s?"HEVC":"AVC";if("AVC"===A)return;if(!o||"audio"!==o){var c="enable"+A+"Error";p.default.setSessionStorage(c,"1")}if(i===g.ERROR.MEDIA_FMP4_ERROR)return;if(l&&l[A]){var h=l[A],u=h.occurTimes,f=h.disableDuration,m=d.getLocalDecodeErrorInfo(A)||{occurTimes:0},y=m.occurTimes,b=m.reactivateTime;if(++y>=u&&!b){var v=f||6048e5;b=(new Date).getTime()+v}d.setLocalDecodeErrorInfo(A,{occurTimes:y,reactivateTime:b})}}catch(t){}}();var u=t.event,f=o?"[DecodeErrorType]"+o+";":n+" - "+u;this.error({code:i,msg:f,detail:t});break;default:var m="object"==typeof t.event?JSON.stringify(t.event,null,0).slice(0,200):String(t.event||"");this.error({msg:"Unhandled dash.js error, type: "+n+", code: "+i+", event: "+m,detail:t}),console.error(t)}}catch(e){var y=e instanceof Error?e.message:String(e),b=null==t?void 0:t.code,v=null==t?void 0:t.error;this.error({msg:"errorHandler catch: "+y+", original error: "+v+", code: "+b,detail:t})}},t.prototype.detectDashJSExists=function(){return!(!window.dashjs||!window.dashjs.MediaPlayer)},t.prototype.detectQualityTypeIsLegal=function(t){return!(t===g.STRING.VIDEO||t===g.STRING.AUDIO)},t.prototype.buildManifestState=function(t){if("string"!=typeof t&&Array.isArray(null==t?void 0:t.video)){var e={video:{},audio:{}};A(t.video).sort((function(t,e){return t.bandwidth-e.bandwidth})).forEach((function(t,i){e.video[t.id]=i})),Array.isArray(null==t?void 0:t.audio)&&A(t.audio).sort((function(t,e){return t.bandwidth-e.bandwidth})).forEach((function(t,i){e.audio[t.id]=i})),this.state.qualityNumberMap=e}},t.prototype.parseManifestInfo=function(t){return s(this,void 0,void 0,(function(){var e,i,n,r,o=this;return l(this,(function(a){try{e=t.data,this.state.manifest=e,e&&e.Period&&(i={baseUri:e.baseUri,representation:{video:[],audio:[]}},n={},(r=e.Period.AdaptationSet_asArray).length&&r.forEach((function(t){var e=t.Representation_asArray;e&&(e instanceof Array||(e=[e]),e.length&&(e.sort((function(t,e){return t.bandwidth-e.bandwidth})),e.forEach((function(e,r){var a,s,l=e.frameRate,A=e.mimeType||t.mimeType;try{if(l&&(""+l).indexOf("/")>-1){var c=l.split("/");l=(l=parseInt(c[0],10)/parseInt(c[1],10)).toFixed(3)}}catch(t){o.error({
msg:"Parse fps error, fps: "+l,detail:t})}var h="";if(A.indexOf(g.STRING.VIDEO)>-1?h=g.STRING.VIDEO:A.indexOf(g.STRING.AUDIO)>-1?h=g.STRING.AUDIO:o.error({msg:"Manifest missing mimeType",detail:e}),h){var d=e.id;void 0!==(null===(a=o.state.qualityNumberMap[h])||void 0===a?void 0:a[d])&&(n[h]=Math.max(null!==(s=n[h])&&void 0!==s?s:0,r),i.representation[h].push({id:d,baseURL:e.BaseURL,width:e.width,height:e.height,bandwidth:e.bandwidth,codecs:e.codecs,fps:l,mimeType:A,sar:e.sar,startWithSAP:e.startWithSAP,audioSamplingRate:e.audioSamplingRate}))}}))))})),Object.keys(n).forEach((function(t){o.state.maxQualityIndex[t]=n[t]})),this.state.manifestInfo=i,this.state.setTheDefaultVideoQualityState||(this.state.setTheDefaultVideoQualityState=!0,this.setDefaultQualityFor("video",this.state.defaultVideoQuality),this.setDefaultQualityFor("audio",this.state.defaultAudioQuality)))}catch(e){this.error({msg:"Parse dash player manifest error",detail:t})}return[2]}))}))},t.prototype.getQualityIndexFromQualityNumber=function(t,e){void 0===e&&(e=g.STRING.VIDEO);var i=0;"audio"===e&&(t=this.qualityNumberDowngrading("audio",t)),e===g.STRING.AUDIO&&[g.DOLBY_AUDIO_QN.AMTOS,g.DOLBY_AUDIO_QN.AUDIO,g.FLAC_QN].includes(t)&&(t=this.getAudioQuallityCanBeUsed(t));try{var n=this.state.qualityNumberMap[e];t=parseInt(""+t,10);var r=this.state.maxQualityIndex[e];if(n&&n[t]>=0&&t>=this.config.minQualityNumberMappingNumber){var o=n[t];o>=0&&(i=o)}else if(-1===r||t>=0&&t<=r)i=t;else if(n){for(var a in n)if(n.hasOwnProperty(a)){var s=parseInt(a,10);s<t&&(i=n[""+Math.max(i,s)])}this.error({msg:"Quality number or index is error, qn or index: "+t+",using lower quality number: "+this.getQualityNumberFromQualityIndex(i)+" with quality index: "+i,type:g.STRING.WARNING})}else this.error({msg:"Quality number or index is error, qn or index: "+t+", qn map: "+JSON.stringify(n)+", max quality index: "+r,type:g.STRING.WARNING})}catch(e){this.error({msg:"Call getQualityIndexFromQualityNumber error, qn: "+t,detail:e})}return i},t.prototype.getQualityNumberFromQualityIndex=function(t,e){void 0===e&&(e=g.STRING.VIDEO);try{var i=this.state.qualityNumberMap[e];if(t=parseInt(""+t,10),i)for(var n in i)if(i.hasOwnProperty(n)&&i[n]===t)return parseInt(n,10)}catch(e){this.error({msg:"Call getQualityNumberFromQualityIndex error, qn: "+t,detail:e})}return 32},t.prototype.getDroppedFramesInfo=function(){try{return this.player.getDroppedFramesInfo()||{}}catch(t){this.error({msg:"Call getDroppedFramesInfo function error",detail:t,type:g.STRING.WARNING})}},t.prototype.getCurrentTrackFor=function(t){try{return this.player.getCurrentTrackFor(t)||{}}catch(t){this.error({msg:"Call getCurrentTrackFor function error, "+(t&&t.message),detail:t,type:g.STRING.WARNING})}},t.prototype.getCurrentSegmentInfoFor=function(t){void 0===t&&(t=g.STRING.VIDEO);try{return this.player.getCurrentSegmentInfoFor(t)||{}}catch(t){this.error({msg:"Call getCurrentSegmentInfoFor function error",detail:t,type:g.STRING.WARNING})}},t.prototype.onInitSegmentsLoaded=function(t,e){try{if(this.state.segmentsInfoMap[t]=e,!e.isDurationAllEqual){var i=e.notEqualQualityIndex;this.error({code:g.ERROR.DURATION_IS_NOT_ALL_EQUAL,msg:"Segments duration is not all equal, type: "+t+", quality index switch: "+i.old+" => "+i.new+", segment index list: "+e.notEqualIndexList+" } "})}var n=this.state.segmentsInfoMap,r=this.state.appendingSourceState;if(n&&n.video&&n.audio&&!r){var o=n.video.realDuration,a=n.audio.realDuration,s=Math.abs(o-a);if(s>3){var l=this.getQualityNumberFromQualityIndex(n.video.qualityIndex,g.STRING.VIDEO),A=this.getQualityNumberFromQualityIndex(n.audio.qualityIndex,g.STRING.AUDIO),c=n.video.segments.length,h=n.audio.segments.length;this.error({type:g.STRING.WARNING,code:g.ERROR.DURATION_DEVIATION_IS_TOO_LARGE,msg:"Video / audio duration deviation is too large, deviation: "+s+"s. Video qn:"+l+", segments:"+c+", duration:"+o+". Audio qn:"+A+", segments:"+h+", duration:"+a})}}if(this.state.startOffsetTime<e.startOffsetTime&&(this.state.startOffsetTime=e.startOffsetTime,e.segments&&e.segments.length)){var d=e.segments[0],u=(d.duration,d.timescale,this.state.playAt||.1);this.state.startOffsetTime>u&&(this.player.seek(this.state.startOffsetTime+.2),this.error({type:g.STRING.WARNING,code:g.ERROR.START_OFFSET_TIME_WARNING,msg:t+" start offset time is greater than 0, "+this.state.startOffsetTime}))}}catch(t){this.error({msg:"Call onInitSegmentsLoaded function error",detail:t})}},t.prototype.setMaxAllowedBitrateFor=function(t,e){try{this.player.setMaxAllowedBitrateFor(t,e)}catch(t){this.error({msg:"Call setMaxAllowedBitrateFor function error",detail:t})}},t.prototype.setMinAllowedBitrateFor=function(t,e){try{this.player.setMinAllowedBitrateFor(t,e)}catch(t){this.error({msg:"Call setMinAllowedBitrateFor function error",detail:t})}},t.prototype.videoInfoSchedule=function(){var t=this,e={},i={};try{var n=this.state,r=n.manifestInfo,o=n.currentQualityIndex,a=r.representation[g.STRING.VIDEO][o[g.STRING.VIDEO]]||{},s=r.representation[g.STRING.AUDIO][o[g.STRING.AUDIO]]||{},l=a.mimeType+';codecs="'+a.codecs+'"',A=this.getCurrentSegmentInfoFor(g.STRING.VIDEO),c=s.mimeType+';codecs="'+s.codecs+'"',h=this.getCurrentSegmentInfoFor(g.STRING.AUDIO),d=this.getDroppedFramesInfo(),u=this.getCurrentCodecID(g.STRING.VIDEO),p=this.player.getMediaTimeInfo();e={width:a.width,height:a.height,sar:a.sar,mimeType:l+", "+c,fps:a.fps,videoDataRate:a.bandwidth,videoCodec:a.codecs,videoCodecID:u,audioDataRate:s.bandwidth,audioCodec:s.codecs,audioCodecID:0,audioSampleRate:s.audioSamplingRate||0,audioChannelCount:0,videoStartOffset:p.videoStartOffset,audioStartOffset:p.audioStartOffset,videoRealDuration:p.videoRealDuration,audioRealDuration:p.audioRealDuration},i={playerType:"DashPlayer",speed:Math.round(this.getAverageConnectionSpeed(g.STRING.VIDEO)),videoConnectionSpeed:Math.round(this.getAverageConnectionSpeed(g.STRING.VIDEO)),audioConnectionSpeed:Math.round(this.getAverageConnectionSpeed(g.STRING.AUDIO)),networkActivity:this.components.networkActivity&&this.components.networkActivity.getNetworkActivity(),videoBufferHealth:this.getBufferLength("video")||0,audioBufferHealth:this.getBufferLength("audio")||0,droppedFrames:d.droppedFrames||0,decodedFrames:d.totalFrames||0,audioURL:h.url||"",audioCurrentSegmentIndex:h.index||0,audioCurrentSegmentStartTime:h.startTime||0,audioCurrentSegmentDuration:h.duration||0,audioTotalSegmentCount:n.segmentsInfoMap[g.STRING.AUDIO].total||0,videoURL:A.url||"",videoCurrentSegmentIndex:A.index||0,videoCurrentSegmentStartTime:A.startTime||0,videoCurrentSegmentDuration:A.duration||0,videoTotalSegmentCount:n.segmentsInfoMap[g.STRING.VIDEO].total||0,useExtraFrames:this.player.getUseSupplyFrame()},this.state.mediaInfo=e,this.state.statisticsInfo=i,this.fire(g.EVENTS.VIDEO_INFO,{mediaInfo:e,statisticsInfo:i})}catch(t){}clearTimeout(this.timer&&this.timer.videoInfoSchedule),this.config&&this.config.videoInfoScheduleTime&&this.timer&&(this.timer.videoInfoSchedule=window.setTimeout((function(){t.videoInfoSchedule()}),this.config.videoInfoScheduleTime))},t.prototype.getQualityChangedData=function(t,e){var i={};try{var n=t.mediaType,r=t.type,o=t.newQuality,a=t.oldQuality,s=this.state.isAutoSwitch[n];i={mediaType:n,type:r,newQuality:o,newQualityNumber:this.getQualityNumberFromQualityIndex(o,n),oldQuality:a,oldQualityNumber:this.getQualityNumberFromQualityIndex(a,n),currentTime:this.getCurrentTime(),isAutoSwitch:s,dict:this.player.getThroughputDict("video"),reason:t.reason},g.EVENTS.QUALITY_CHANGE_RENDERED===r?((e=e||this.state.autoSwitchStartTime||0)&&(i.cost=Math.floor(Date.now()-e)),this.state.autoSwitchStartTime=0):g.EVENTS.QUALITY_CHANGE_REQUESTED===r&&(this.state.autoSwitchStartTime=Date.now())}catch(t){this.error({msg:"Call getQualityChangedData error",detail:t,type:g.STRING.WARNING})}return i},t.prototype.getTransitionCanvas=function(){try{if(this.video&&this.video.parentNode)return this.video.parentNode.querySelector("."+g.STRING.SWITCH_SOURCE_TRANSITION_ELEMENT_CLASS_NAME)}catch(t){return null}},t.prototype.onVideoSwitchSourceEnded=function(t){try{this.switchSourcePromise={},window.clearTimeout(this.timer.removeSwitchSourceTransition),
window.clearTimeout(this.timer.switchSourceTimer),this.video&&(this.video.style.visibility="",this.video.removeEventListener("canplay",this.onVideoSwitchSourceEnded));var e=void 0;if(t&&t.target){var i=t.target.parentElement;e=i&&i.querySelectorAll("."+g.STRING.SWITCH_SOURCE_TRANSITION_ELEMENT_CLASS_NAME)}else e=document.querySelectorAll("."+g.STRING.SWITCH_SOURCE_TRANSITION_ELEMENT_CLASS_NAME);e&&e.length&&e.forEach((function(t){t&&t.parentElement.removeChild(t)}))}catch(t){console.error("Remove transition canvas error.",t)}},t.prototype.getStartOffsetTime=function(){var t=0;try{var e=this.state.segmentsInfoMap;e&&(t=Math.max(e.video.startOffsetTime||0,e.audio.startOffsetTime||0))}catch(t){}return t},t.prototype.setDebugLog=function(){try{var t=location.href;t&&t.indexOf("debug=1")>0&&this.player.getDebug().setLogToBrowserConsole(!0)}catch(t){}},t.prototype.getNextFragmentInfo=function(t){if(t&&t.mediaType){var e=t.mediaType;this.state.getNextFragmentHistory||(this.state.getNextFragmentHistory={video:[],audio:[]});var i=!1,n=this.state.getNextFragmentHistory[e].length;if(n){var r=this.state.getNextFragmentHistory[e][this.state.getNextFragmentHistory[e].length-1];for(var o in r)if(r[o]!==t[o]){i=!0;break}}!i&&n||(n>=30&&this.state.getNextFragmentHistory[t.mediaType].splice(0,1),this.state.getNextFragmentHistory[t.mediaType].push(t))}},t.prototype.onFragmentLoading=function(t){var e,i;if(t&&t.type){var n=t.type,r=t.request,o=this.covertFragmentInfoObject(r);if(o.loadingType=n,n===g.EVENTS.FRAGMENT_LOADING_STARTED)this.state.fragmentLoadingInfo[o.mediaType]=o;else if(n===g.EVENTS.FRAGMENT_LOADING_COMPLETED){var a=this.state.fragmentLoadingInfo[o.mediaType];o.isError=!!t.error;var s=t.response&&t.response.byteLength||0,l=Number(r.firstByteDate)-Number(r.requestStartDate);l=l?Math.max(l,1):1;var A=Number(r.requestEndDate)-Number(r.firstByteDate);A=A?Math.max(A,1):1;var c=Number(r.requestEndDate)-Number(r.requestStartDate);c=c?Math.max(c,1):1;var h=Math.round(8*s/c);o.latencyTime=l,o.downloadTime=A,o.totalTime=c,o.downloadBytes=s,o.connectionSpeed=h,o.data=t.response,o.totalSize=this.state.segmentsInfoMap[o.mediaType].rangeEnd+1;var d=!0;for(var u in a)if(a[u]!==o[u]&&"loadingType"!==u&&!isNaN(a[u])){d=!1;break}d&&(this.state.fragmentLoadingInfo[o.mediaType]=null,this.fire(g.EVENTS.FRAGMENT_LOADING_COMPLETED,o)),this.bpNCSaveData(o);var p=r.mediaType;"video"!==p&&"audio"!==p||this.recordRequestedInfoDetail(p,{code:200,qn:null==o?void 0:o.qn,index:null==o?void 0:o.index,rType:null===(e=null==r?void 0:r.loadInfo)||void 0===e?void 0:e.rType,protocol:null===(i=null==r?void 0:r.loadInfo)||void 0===i?void 0:i.protocol,currentTime:this.getCurrentTime(),buffered:this.getBufferLength(p),now:Math.round(null===performance||void 0===performance?void 0:performance.now()),latencyTime:l,downloadTime:A,totalTime:c,connectionSpeed:h,totalSize:s,retryTimes:null==r?void 0:r.retry,url:null==r?void 0:r.url})}else this.state.fragmentLoadingInfo&&this.state.fragmentLoadingInfo[o.mediaType]&&!this.state.fragmentLoadingInfo[o.mediaType].loaderType&&(this.state.fragmentLoadingInfo[o.mediaType].loaderType=o.loaderType),this.components.networkActivity&&this.components.networkActivity.onFragmentLoadingProgess(t)}},t.prototype.onFragmentLoadingError=function(t){if(t){if(t.type===g.EVENTS.REQUEST_RETRYED&&(null==t?void 0:t.code)<4e3)return;var e=null==t?void 0:t.mediaType;"video"!==e&&"audio"!==e||this.recordRequestedInfoDetail(e,{code:null==t?void 0:t.code,qn:(null==t?void 0:t.id)||(null==t?void 0:t.qn),index:null==t?void 0:t.index,rType:t.rType,retryTimes:t.retryTimes,currentTime:this.getCurrentTime(),buffered:this.getBufferLength(e),now:Math.round(null===performance||void 0===performance?void 0:performance.now()),latencyTime:null==t?void 0:t.timeout,downloadTime:(null==t?void 0:t.downloadTime)||(null==t?void 0:t.timeout),totalTime:(null==t?void 0:t.totalTime)||(null==t?void 0:t.timeout),totalSize:null==t?void 0:t.received,url:null==t?void 0:t.url})}},t.prototype.recordRequestedInfoDetail=function(t,e){var i,n,r,o;if(e&&this.state){(null===(i=this.state)||void 0===i?void 0:i.requestedInfoDetail[t])||(this.state.requestedInfoDetail[t]={latestHost:"",list:[]}),this.state.requestedInfoDetail[t].list.length>1e3&&this.state.requestedInfoDetail[t].list.shift();var a="-",s="443";try{var l=((null==e?void 0:e.url)||"").match(/^(?:https?:\/\/)?([^\/\n:]+)(?::(\d+))?/);l[2]&&(s=l[2]);var A=null===(n=l[1])||void 0===n?void 0:n.split(".");a=A.splice(0,A.length-2).join("."),"443"!==s&&(a+=":"+s);var c=this.state.requestedInfoDetail[t].latestHost;c&&c===a||(this.state.requestedInfoDetail[t].latestHost=a)}catch(t){}var h=e.qn||e.representationId;if(h){var d={id:this.state.requestedInfoRecordIndex++,co:e.code,qn:parseInt(h.toString().substr(-3),10),in:e.index,rt:(e.rType||"-").substr(0,1),qr:(e.protocol||"-").substr(0,1),ct:p.default.toFixed(e.currentTime||0,2),bf:p.default.toFixed(e.buffered||0,2),lt:e.latencyTime||0,dt:e.downloadTime||0,cs:e.connectionSpeed||0,ts:e.totalSize||0,ry:e.retryTimes||0,ht:a};null===(o=null===(r=this.state)||void 0===r?void 0:r.requestedInfoDetail[t])||void 0===o||o.list.push([d.id,d.co,d.qn,d.in,{"-":0,X:1,N:2,P:3}[d.rt]||0,{"-":0,T:1,Q:2}[d.qr]||0,d.ct,d.bf,d.lt,d.dt,d.cs,d.ts,d.ry,d.ht])}}},t.prototype.bpNCSaveData=function(t){if(t&&t.url&&t.range&&t.data){var e=this.getBPNC();if(e&&"function"==typeof e.allowDPSaveDataByNC){var i=(""+t.url).split("?")[0].split("/"),n=i[i.length-1].split(".")[0].split("-").pop();if(n){var r=parseInt(n,10);if(!isNaN(r)&&e.allowDPSaveDataByNC({qn:r})){var o={url:t.url,range:t.range,data:t.data,totalSize:t.totalSize,token:e.getToken()};e.saveData(o)}}}}},t.prototype.getBPNC=function(){var t,e="bpNC";return(null===(t=this.config)||void 0===t?void 0:t.hid)&&(e+="_"+this.config.hid),window[e]},t.prototype.covertFragmentInfoObject=function(t){var e={};try{e={type:t.type,mediaType:t.mediaType,startTime:t.startTime,url:t.url,index:t.index,id:t.representationId,qn:this.getQualityNumberFromQualityIndex(t.quality,t.mediaType),range:t.range,duration:t.duration,isError:!1},t.startLoadFragmentTime?e.startDownloadTime=new Date(t.startLoadFragmentTime).getTime():e.startDownloadTime=(new Date).getTime(),t.loadInfo&&(e.loaderType=t.loadInfo.rType)}catch(t){}return e},t.prototype.onDashJSLog=function(t){this.state.logHistory||(this.state.logHistory=[]),this.state.logHistory.length>=2e4&&this.state.logHistory.shift(),t&&this.state.logHistory.push(t.message)},t.prototype.onPredictSeek=function(t){this.fire(g.EVENTS.PREDICT_SEEK,t)},t.prototype.onJumpMediaGap=function(t){this.fire(g.EVENTS.JUMP_MEDIA_GAP,t)},t.prototype.onSplitGapAfterAppended=function(t){this.fire(g.EVENTS.SPLIT_GAP_AFTER_APPEND_CHUNK,t)},t.prototype.onPaddingFramesSuccess=function(t){this.fire(g.EVENTS.PADDING_FRAMES_SUCCESS,t)},t.prototype.onFixAVSyncSuccess=function(t){this.fire(g.EVENTS.FIX_AV_SYNC,t)},t.prototype.onSourceBufferChangeType=function(t){this.fire(g.EVENTS.SOURCE_BUFFER_CHANGE_TYPE,t)},t.prototype.onSourceBufferChangeTypeFailed=function(e){try{p.default.setLocalStorage(t.LS_KEY_CHANGE_TYPE_DISABLED,"1")}catch(t){}this.state.enableSourceChangeType=!1;try{this.player&&"function"==typeof this.player.setSupportsChangeType&&this.player.setSupportsChangeType(!1)}catch(t){}try{this.onDashJSLog({type:"changetype-failed",message:"changeType failed; persistently disabled. oldCodec="+(e&&e.oldCodec||"")+" newCodec="+(e&&e.newCodec||"")+" err="+(e&&e.error||"")})}catch(t){}this.fire(g.EVENTS.SOURCE_BUFFER_CHANGE_TYPE_FAILED,e);try{this.error({code:g.ERROR.MEDIA_CHANGE_TYPE_ERROR,msg:"SourceBuffer changeType failed: "+(e&&e.error||"unknown")+" ("+(e&&e.oldCodec||"")+" → "+(e&&e.newCodec||"")+")",detail:e})}catch(t){}},t.prototype.onDashCDNLoadInfo=function(t){var e,i,n,r,o,a,s,l,A;if(null==t?void 0:t.loadInfo){var c=t.loadInfo,h=null==t?void 0:t.mediaInfo.id;for(var d in h&&!this.state.cdnInfoDetail[h]&&(this.state.cdnInfoDetail[h]={cdn:0,p2p:0,nc:0,ncBr:0,pdn:0,business:0,mcdn:0,bcache:0,vcache:0,ncFail:0,ncGotFail:0}),this.state.cdnInfo)c[d]&&(this.state.cdnInfo[d]+=c[d],h&&(this.state.cdnInfoDetail[h][d]+=c[d]));if("XHR"===c.rType&&c.url&&c.cdn){var u=c.url
;u.indexOf("upos-")>-1?(this.state.cdnInfo.business+=c.cdn,h&&(this.state.cdnInfoDetail[h].business+=c.cdn)):u.indexOf("os=mcdn")>-1?(this.state.cdnInfo.mcdn+=c.cdn,h&&(this.state.cdnInfoDetail[h].mcdn+=c.cdn)):u.indexOf("os=bcache")>-1?(this.state.cdnInfo.bcache+=c.cdn,h&&(this.state.cdnInfoDetail[h].bcache+=c.cdn)):u.indexOf("os=vcache")>-1&&(this.state.cdnInfo.vcache+=c.cdn,h&&(this.state.cdnInfoDetail[h].vcache+=c.cdn))}this.fire(g.EVENTS.CDN_LOAD_INFO,c)}if((null===(e=null==t?void 0:t.NCInfo)||void 0===e?void 0:e.responseData)&&this.state.NCInfo){var p=null==t?void 0:t.NCInfo,f=(h=p.qn,this.state.NCInfo[h]||{total:0,response:0,expect:0});if(9999===p.code){if(f.total++,p.range){var m=p.range.split("-"),y=parseInt(m[0],10),b=parseInt(m[1],10);b&&(f.expect+=b-y+1||0)}return void(this.state.NCInfo[h]=f)}if(f[p.code]||(f[p.code]={}),4999===p.code)return f[p.code].count=(null===(i=f[p.code])||void 0===i?void 0:i.count)+1||1,(null===(n=this.video)||void 0===n?void 0:n.seeking)&&(f[p.code].seeking=f[p.code].seeking+1||1),void(this.state.NCInfo[h]=f);var v=p.responseData,E=v.gotDataByte,I=v.getDataTime,C=v.usePeerSids,B=v.retryCount,w=v.originRange,x=v.gotDataByteFromBr;C=C||[],E=E||0,I=I||0,x=x||0,B=B||0,w&&w.hasOwnProperty("start")&&w.hasOwnProperty("end")||(w={start:0,end:0});var Q=Math.abs(w.end-w.start)+1,S=(null==C?void 0:C.length)||0;if(f.response++,f[p.code].count=(null===(r=f[p.code])||void 0===r?void 0:r.count)+1||1,f[p.code].bytes=(null===(o=f[p.code])||void 0===o?void 0:o.bytes)+E||E,f[p.code].time=(null===(a=f[p.code])||void 0===a?void 0:a.time)+I||I,f[p.code].peers=(null===(s=f[p.code])||void 0===s?void 0:s.peers)+S||S,f[p.code].retry=(null===(l=f[p.code])||void 0===l?void 0:l.retry)+B||B,f[p.code].expect=(null===(A=f[p.code])||void 0===A?void 0:A.expect)+Q||Q,4003!==p.code&&40003!==p.code||0!==E||(f[p.code].abnormal=f[p.code].abnormal+1||1),2e3===p.code||24e3===p.code){var k="peers_"+S;f[p.code][k]=f[p.code][k]+1||1}this.state.NCInfo[h]=f}},t.prototype.changePlaybackState=function(t){return this.state.playbackState=t,this},t.prototype.saveNetworkWarningInfo=function(t){this.state&&this.state.networkWarningHistory&&(this.state.networkWarningHistory||(this.state.networkWarningHistory=[]),this.state.networkWarningHistory.length>=100&&this.state.networkWarningHistory.shift(),this.state.networkWarningHistory.push(t))},t.prototype.detectDefaultQualityChangeAbnormal=function(){var t=this,e=this.state,i=e.defaultVideoQuality,n=e.defaultAudioQuality,r=e.currentQualityIndex,o=r.video,a=r.audio;return[{type:g.STRING.VIDEO,defaultQuality:i,currentIndex:o},{type:g.STRING.AUDIO,defaultQuality:n,currentIndex:a}].forEach((function(e){var i=t.getQualityNumberFromQualityIndex(e.currentIndex,e.type),n=e.defaultQuality,r=e.currentIndex;n>=0&&r>=0&&-1===[r,i].indexOf(n)&&t.fire(g.EVENTS.QUALITY_CHANGE_ABNORMAL,{type:g.EVENTS.QUALITY_CHANGE_ABNORMAL,mediaType:e.type,defaultQuality:n,currentIndex:r,qualityNumber:i})})),this},t.prototype.filterHEVCSpecialVideoUrl=function(t){var e=this;if("string"!=typeof t&&(null==t?void 0:t.video)){var i=this.state.defaultVideoQuality,n=[g.VIDEO_QN.QN_8K,g.VIDEO_QN.QN_DOLBY_VISION,g.VIDEO_QN.QN_HDR10],r=g.VIDEO_CODEC_ID.HEVC;if(!(((null==t?void 0:t.video)||[]).filter((function(t){return t.codecid===r})).length<=0))if(d.checkDisplayHDRCapability()||(t.video=t.video.filter((function(t){if(t.id!==g.VIDEO_QN.QN_HDR10&&t.id!==g.VIDEO_QN.QN_DOLBY_VISION)return!0;var i=e.state.filterVideoInfo,n=g.FILTER_VIDEO_URL_REASON.FILTER_SPECIAL_VIDEO;return void 0===i[n]&&(i[n]=[]),i[n].push(JSON.parse(JSON.stringify(t))),e.onDashJSLog({type:"filterSpecialVideo",message:"filter hdr/dolby video url by display capability, qn="+t.id+", codecid="+t.codecid+", codec="+t.codecs}),!1}))),n.includes(i));else{if(this.supportsChangeType)return;t.video=t.video.filter((function(t){if(!n.includes(t.id))return!0;var i=e.state.filterVideoInfo,r=g.FILTER_VIDEO_URL_REASON.FILTER_SPECIAL_VIDEO;return void 0===i[r]&&(i[r]=[]),i[r].push(JSON.parse(JSON.stringify(t))),e.onDashJSLog({type:"filterSpecialVideo",message:"filter hevc special video urls"}),!1}))}}},t.prototype.filterPdnUrl=function(e){if("string"!=typeof e&&e){var i=e.video,n=e.audio,r=function(t){return"string"==typeof t&&(t.includes("traceid")||t.includes(":8082"))},o=this.shouldFilterPdnUrl(),a=JSON.parse(t.getFawkesConfigValue(g.STRING.DASH_CONFIG,"pdn_disable_qn_list")),s=JSON.parse(t.getFawkesConfigValue(g.STRING.DASH_CONFIG,"pdn_disable_codecid_list")),l=!1,A=function(t){t&&t.length&&t.forEach((function(t){(r(t.baseUrl)||r(t.base_url))&&(o||a.includes(t.id)&&p.default.isInSpareTime()||s.includes(t.codecid)&&p.default.isInSpareTime())&&(l=!0,t.baseUrl&&t.backupUrl&&t.backupUrl.length&&(t.baseUrl=t.backupUrl.shift()),t.base_url&&t.backup_url&&t.backup_url.length&&(t.base_url=t.backup_url.shift()))}))};A(i),A(n),l&&this.onDashJSLog({type:"filterPdn",message:"["+Math.round(performance.now())+"] filter pdn, "+o+", qn list: "+a+", codec list: "+s})}},t.prototype.filterManifest=function(t){var e,i=t.manifest;t.log=this.onDashJSLog.bind(this),t.signal=null===(e=this.initAbortController)||void 0===e?void 0:e.signal,void 0===t.enableAV1&&(t.enableAV1=this.state.enableAV1),void 0===t.enableHEVC&&(t.enableHEVC=this.state.enableHEVC),i&&!i.video&&(this.onDashJSLog({type:"audio-only",message:"playing in audio-only"}),"string"!=typeof i&&(i.video=[]));var n=g.VIDEO_CODEC_ID.AVC;if(i&&i.video&&i.video instanceof Array){if(!this.externalMediaLoader){this.filterHEVCSpecialVideoUrl(t.manifest);var r=b.applyCodecStrategyWithPerf(t),o=r.result,a=r.duration;n=o.defaultCodec,this.state.codecMap=o.codecMap,this.state&&(this.state.codecDetectionPerf={duration:a,timestamp:Date.now()}),this.supportsChangeType&&o.codecMap.size>0?i.video=i.video.filter((function(t){var e=o.codecMap.get(t.id);return void 0===e?t.codecid===g.VIDEO_CODEC_ID.AVC:t.codecid===e&&(t.id!==g.VIDEO_QN.QN_4K||v.getCurrentBrowserInfo().type!==v.BROWSER_TYPE.Firefox||!!t.width&&!!t.height&&t.width<=4096&&t.height<=2160)})):i.video=i.video.filter((function(t){return t.codecid===n&&(t.id!==g.VIDEO_QN.QN_4K||v.getCurrentBrowserInfo().type!==v.BROWSER_TYPE.Firefox||!!t.width&&!!t.height&&t.width<=4096&&t.height<=2160)})),this.fire(g.EVENTS.CODEC_STRATEGY_APPLIED,{supportsChangeType:this.supportsChangeType,strategyResult:o,duration:a})}i=this.adjustManifestHack(i)}try{this.filterPdnUrl(i)}catch(t){}return{codecId:n,manifest:i}},t.prototype.shouldFilterPdnUrl=function(){try{var e=t.getFawkesConfigValue(g.STRING.DASH_CONFIG,"pdn_mid_black_list"),i=e&&JSON.parse(e)||[],n=p.default.getCookie("DedeUserID"),r=""===n?0:Number(n);if(Math.random()>Number(t.getFawkesConfigValue(g.STRING.DASH_CONFIG,g.STRING.PDN_ENABLE)))return!0;if(i.includes(r))return!0}catch(t){return!1}return!1},t.prototype.adjustManifestHack=function(t){var e;if((null===(e=null==t?void 0:t.video)||void 0===e?void 0:e.length)>1){var i=t.video,n=Math.max.apply(Math,i.map((function(t){return t.bandwidth}))),r=Math.min.apply(Math,i.map((function(t){return t.bandwidth})));if(Math.abs(n-r)<1e4){this.state&&this.state.logHistory.push("Adjust manifest hack, max: "+n+", min: "+r+", delta: "+Math.abs(n-r));for(var o=i.length-1;o>0;o--)i[o-1].bandwidth=Math.max(i[o-1].bandwidth,i[o].bandwidth+1e4)}}return t},t.prototype.processSpecialAudioItem=function(t,e){var i;void 0===e&&(e=30280),t.audio;var n=t.flac,r=t.dolby;if(n&&n.audio&&d.isFLACTypeSupported()&&e===g.FLAC_QN)return n.audio.codecs=n.audio.codecs.toLocaleLowerCase(),void(t.audio=[n.audio]);r&&(null===(i=null==r?void 0:r.audio)||void 0===i?void 0:i.length)&&d.isEC3DolbyATMOSTypeSupported()&&[g.DOLBY_AUDIO_QN.AMTOS,g.DOLBY_AUDIO_QN.AUDIO].includes(e)&&(t.audio=A(r.audio))},t.prototype.checkAudioCodecCanUseByType=function(t){var e=this.state.mpd&&this.state.mpd[g.STRING.AUDIO]?this.state.mpd[g.STRING.AUDIO]:this.state.manifest&&this.state.manifest.audio?this.state.manifest.audio:void 0;if(!e||!e.length)return!1;switch(t){case g.SPECIAL_AUDIO_TYPE.DOLBY:if(d.isEC3DolbyATMOSTypeSupported())return-1!==e.findIndex((function(t){return t.id===g.DOLBY_AUDIO_QN.AUDIO||t.id===g.DOLBY_AUDIO_QN.AMTOS}));break;case g.SPECIAL_AUDIO_TYPE.FLAC:
if(d.isFLACTypeSupported())return-1!==e.findIndex((function(t){return t.id===g.FLAC_QN}))}return!1},t.prototype.qualityNumberDowngrading=function(t,e){var i=p.default.getDecodeErrorMediaQualityNumberListForType(t,g.STRING.BILIBILI_DECODE_ERROR_OBJ),n=Object.keys(this.state.qualityNumberMap[t]).map(Number).reverse(),r=0;if(i.length>0){for(;i.includes(e)&&r<n.length;)e=n[r++];if(i.includes(e))return-1}return e},t.EVENTS=g.EVENTS,t.ERROR=g.ERROR,t.STRING=g.STRING,t.BUFFERING=m.BUFFERING,t.CONFIG=h.CONFIG,t.ERROR_CODE=g.ERROR_CODE,t.id=0,t.isHEVCTypeSupported=d.isHEVCTypeSupported,t.isBwpHEVCPrefSupported=d.isBwpHEVCPrefSupported,t.isHEVCHDR10TypeSupported=d.isHEVCHDR10TypeSupported,t.isEC3DolbyATMOSTypeSupported=d.isEC3DolbyATMOSTypeSupported,t.isHEVCDolbyVisionTypeSupported=d.isHEVCDolbyVisionTypeSupported,t.isHEVC8kTypeSupported=d.isHEVC8kTypeSupported,t.isAV1TypeSupported=d.isAV1TypeSupported,t.isAV18KTypeSupported=d.isAV18KTypeSupported,t.is8KTypeSupported=d.is8KTypeSupported,t.getSupportedVideoIdList=d.getSupportedVideoIdList,t.shouldUseHardwareDecodingAV1=d.shouldUseHardwareDecodingAV1,t.isFLACTypeSupported=d.isFLACTypeSupported,t.getVideoCodecStrategy=d.getVideoCodecStrategy,t.isMultiAudioTracksSupported=d.isMultiAudioTracksSupported,t.shouldUseNativeHEVCDecode=d.shouldUseNativeHEVCDecode,t.isSupportEncoder=d.isSupportEncoder,t.AUDIO_CODEC_PREFIXES=["mp4a","ec-3","ac-3","flac","opus","vorbis","dtsc","dtse","dtsh","dtsl"],t.LS_KEY_CHANGE_TYPE_DISABLED="bilibili_player_change_type_disabled",t.fawkesConfig=null,t.kvConfig=null,t}();e.default=C},function(t,e,i){"use strict";var n,r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},a=this&&this.__generator||function(t,e){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkAudioCapabilitySync=e.checkVideoCapabilitySync=e.checkMimeTypeSync=e.checkAudioCapability=e.checkVideoCapability=void 0;var l=i(5),A=s(i(3)),c=((n={})[l.BROWSER_TYPE.Chrome]={hevc:104,av1:70},n[l.BROWSER_TYPE.ChromiumEdge]={hevc:120,av1:79},n[l.BROWSER_TYPE.Safari]={hevc:13},n[l.BROWSER_TYPE.Firefox]={av1:67},n);function h(t,e){if(!e.supported)return e;var i=l.getCurrentBrowserInfo(),n=i.type,o=i.version,a=c[n];if(!a)return e;var s=/hev1|hvc1|dvh1|dvhe/.test(t),A=/av01/.test(t);return s&&void 0!==a.hevc&&o<a.hevc||A&&void 0!==a.av1&&o<a.av1?r(r({},e),{supported:!1,smooth:!1}):e}var d="bpcc_persisted",u=new Map,p=new Set;function g(t){var e=t.codec,i=t.width,n=void 0===i?0:i,r=t.height,o=void 0===r?0:r,a=t.framerate,s=void 0===a?0:a;return(n>=3840||o>=2160)&&s?"v:"+e+":"+n+"x"+o+"@"+5*Math.round(s/5):"v:"+e+":"+n+"x"+o}function f(t){var e=t.codec,i=t.samplerate,n=void 0===i?0:i,r=t.channels;return"a:"+e+":"+n+":"+(void 0===r?0:r)}var m=null;function y(){if(m)return m;var t=A.default.getLocalStorage(d),e=l.getCurrentBrowserInfo().version;if(t)try{var i=JSON.parse(t);if(i.browserVersion===e)return m=i,i}catch(t){}return m={browserVersion:e,entries:{}}}function b(t,e){y().entries[t]={supported:e.supported,smooth:e.smooth,powerEfficient:e.powerEfficient,source:e.source,timestamp:Date.now()},m&&A.default.setLocalStorage(d,JSON.stringify(m))}function v(t){if(u.has(t))return u.get(t);var e,i,n=(e=t,(i=y().entries[e])?Date.now()-i.timestamp>=864e5?null:{supported:i.supported,smooth:i.smooth,powerEfficient:i.powerEfficient,source:i.source}:null);return n?(u.set(t,n),n):null}function E(t,e){u.set(t,e),b(t,e)}var I=["dvhe","dvh1","dva1","dvav"];function C(t){return I.some((function(e){return t.includes(e)}))}function B(t){return t===l.BROWSER_TYPE.Chrome||t===l.BROWSER_TYPE.ChromiumEdge}function w(t){return o(this,void 0,void 0,(function(){var e,i,n,r;return a(this,(function(o){switch(o.label){case 0:if("function"!=typeof(null===navigator||void 0===navigator?void 0:navigator.requestMediaKeySystemAccess))return[2,!1];e=[{videoCapabilities:[{contentType:'video/mp4; codecs="'+t+'"'}]}],i=0,n=["com.microsoft.playready","com.apple.fps"],o.label=1;case 1:if(!(i<n.length))return[3,6];r=n[i],o.label=2;case 2:return o.trys.push([2,4,,5]),[4,navigator.requestMediaKeySystemAccess(r,e)];case 3:return o.sent(),[2,!0];case 4:return o.sent(),[3,5];case 5:return i++,[3,1];case 6:return[2,!1]}}))}))}function x(t){var e,i=l.getCurrentBrowserInfo(),n=i.type,o=i.version;if(B(n)){if(e=t.codec,!/\.0[89]\./.test(e))return{supported:!1,smooth:!1,powerEfficient:!1,source:"media-source"};if(o<(l.BROWSER_TYPE.Chrome,122))return{supported:!1,smooth:!1,powerEfficient:!1,source:"media-source"};var a=_(k(r(r({},t),{codec:"hev1.2.4.L120.90"}))).supported;return{supported:a,smooth:a,powerEfficient:a,source:"media-source"}}return _(k(t),t.codec)}function Q(t){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return B(l.getCurrentBrowserInfo().type)?[4,w(t.codec)]:[3,2];case 1:if(e.sent())return[2,{supported:!0,smooth:!0,powerEfficient:!1,source:"media-capabilities"}];e.label=2;case 2:return[2,x(t)]}}))}))}function S(t){return'video/mp4; codecs="'+t+'"'}function k(t){var e=S(t.codec);return t.width&&t.height&&(e+="; width="+t.width+"; height="+t.height),e}function D(t){return'audio/mp4; codecs="'+t.codec+'"'}function _(t,e){var i=window.MediaSource;if(i&&"function"==typeof i.isTypeSupported){var n={supported:r=i.isTypeSupported(t),smooth:r,powerEfficient:!1,source:"media-source"};return e?h(e,n):n}try{var r,o=document.createElement("video").canPlayType(t);return n={supported:r="probably"===o||"maybe"===o,smooth:r,powerEfficient:!1,source:"can-play-type"},e?h(e,n):n}catch(t){return{supported:!1,smooth:!1,powerEfficient:!1,source:"can-play-type"}}}function R(){return"undefined"!=typeof navigator&&!!navigator.mediaCapabilities&&"function"==typeof navigator.mediaCapabilities.decodingInfo}function M(t){return o(this,void 0,void 0,(function(){var e,i,n,r,o,s;return a(this,(function(a){switch(a.label){case 0:return e=t.width||1920,i=t.height||1080,n=t.bitrate||4e6,r=t.framerate||30,o={contentType:S(t.codec),width:e,height:i,bitrate:n,framerate:r},(t.colorGamut||t.hdrMetadataType||t.transferFunction)&&(o.colorGamut=t.colorGamut,o.hdrMetadataType=t.hdrMetadataType,o.transferFunction=t.transferFunction),[4,navigator.mediaCapabilities.decodingInfo({type:"media-source",video:o})];case 1:return[2,{supported:(s=a.sent()).supported,smooth:s.smooth,powerEfficient:s.powerEfficient,source:"media-capabilities"}]}}))}))}function T(t){var e,i,n;return o(this,void 0,void 0,(function(){var r,o;return a(this,(function(a){switch(a.label){case 0:return r={contentType:D(t),samplerate:null!==(e=t.samplerate)&&void 0!==e?e:48e3,
channels:String(null!==(i=t.channels)&&void 0!==i?i:2),bitrate:null!==(n=t.bitrate)&&void 0!==n?n:128e3},[4,navigator.mediaCapabilities.decodingInfo({type:"media-source",audio:r})];case 1:return[2,{supported:(o=a.sent()).supported,smooth:o.smooth,powerEfficient:o.powerEfficient,source:"media-capabilities"}]}}))}))}e.checkVideoCapability=function(t){return o(this,void 0,void 0,(function(){var e,i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return e=g(t),i=v(e),n=R(),!i||n&&"media-capabilities"!==i.source?C(t.codec)?[4,Q(t)]:[3,2]:[2,i];case 1:return o=a.sent(),E(e,o),[2,o];case 2:if(!R())return[3,7];a.label=3;case 3:return a.trys.push([3,5,,6]),[4,M(t)];case 4:return r=a.sent(),[3,6];case 5:return a.sent(),r=_(k(t),t.codec),[3,6];case 6:return[3,8];case 7:r=_(k(t),t.codec),a.label=8;case 8:return E(e,r),[2,r]}}))}))},e.checkAudioCapability=function(t){return o(this,void 0,void 0,(function(){var e,i,n,r,o;return a(this,(function(a){switch(a.label){case 0:if(e=f(t),i=v(e),n=R(),i&&(!n||"media-capabilities"===i.source))return[2,i];if(!R())return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,T(t)];case 2:return r=a.sent(),E(e,r),[2,r];case 3:return a.sent(),[3,4];case 4:return o=_(D(t)),E(e,o),[2,o]}}))}))},e.checkMimeTypeSync=function(t){var e=t.match(/codecs=["']?([^"';]+)/i);return _(t,e?e[1]:void 0)},e.checkVideoCapabilitySync=function(t){var e=g(t),i=v(e);if(i)return i;var n=C(t.codec)?x(t):_(k(t),t.codec);return u.set(e,n),function(t){var e=this,i=g(t);p.has(i)||(p.add(i),("function"==typeof window.requestIdleCallback?function(t){return window.requestIdleCallback(t,{timeout:3e3})}:function(t){return setTimeout(t,0)})((function(){return o(e,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,9,10]),e=void 0,C(t.codec)?[4,Q(t)]:[3,2];case 1:return e=n.sent(),[3,8];case 2:if(!R())return[3,7];n.label=3;case 3:return n.trys.push([3,5,,6]),[4,M(t)];case 4:return e=n.sent(),[3,6];case 5:return n.sent(),e=_(k(t),t.codec),[3,6];case 6:return[3,8];case 7:e=_(k(t),t.codec),n.label=8;case 8:return E(i,e),[3,10];case 9:return p.delete(i),[7];case 10:return[2]}}))}))})))}(t),n},e.checkAudioCapabilitySync=function(t){var e=f(t),i=v(e);if(i)return i;var n=_(D(t));return E(e,n),n}},function(t,e,i){"use strict";var n=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}return t.prototype.init=function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.FRAGMENTED_TEXT="fragmentedText",this.EMBEDDED_TEXT="embeddedText",this.MUXED="muxed",this.IMAGE="image",this.LOCATION="Location",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.UTF8="utf-8",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma"},t}()),r=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}return t.prototype.init=function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors"},t}()),o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}return t.prototype.init=function(){this.DOWNLOAD_ERROR=4,this.DOWNLOAD_MPD_ERROR=4001,this.DOWNLOAD_XINK_ERROR=4002,this.DOWNLOAD_INIT_SEGMENT_ERROR=4003,this.DOWNLOAD_MEDIA_SEGMENT_ERROR=4004,this.DOWNLOAD_INDEX_SEGMENT_ERROR=4005,this.DOWNLOAD_SWITCHING_SEGMENT_ERROR=4006,this.DOWNLOAD_OTHER_ERROR=4007,this.DOWNLOAD_FRAGMENT_ERROR=4101,this.DOWNLOAD_FRAGMENT_ERROR_RETRY_SUCCESS=4102,this.DOWNLOAD_FRAGMENT_ERROR_RETRY_FAILURE=4103,this.DOWNLOAD_FRAGMENT_ERROR_RANGE=4104,this.DOWNLOAD_FRAGMENT_ERROR_TIMEOUT=4105,this.CONNECT_FRAGMENT_ERROR_TIMEOUT=4106,this.CONNECT_FRAGMENT_ERROR_OFFLINE=4107,this.CONNECT_NC_FRAGMENT_ERROR_TIMEOUT=4108,this.DOWNLOAD_PCDN_SCRIPT_ERROR=4201,this.DOWNLOAD_PCDN_SCRIPT_TIMEOUT=4202,this.DOWNLOAD_PCDN_DISABLED=4203,this.MANIFEST_ERROR=5,this.MANIFEST_TYPE_ERROR=5001,this.MANIFEST_RESOLVE_ERROR=5002,this.MEDIA_ERROR=6,this.MEDIA_ABORTED_ERROR=6001,this.MEDIA_NETWORK_ERROR=6002,this.MEDIA_DECODE_ERROR=6003,this.MEDIA_SUPPORTED_ERROR=6004,this.MEDIA_ENCRYPTED_ERROR=6005,this.MEDIA_FMP4_ERROR=6006,this.MEDIA_UNKNOWN_ERROR=6e3,this.MEDIA_DECODE_ERROR_VIDEO="video",this.MEDIA_DECODE_ERROR_AUDIO="audio",this.MEDIA_DECODE_ERROR_UNKNOWN="unknown"},t}()),a=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.schemeIdUri="",this.value=""},s=i(0);function l(){var t={};function e(e,i,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!e)throw new Error("event type cannot be null or undefined");if(!i||"function"!=typeof i)throw new Error("listener must be a function: "+i);if(!(n(e,i,r)>=0)){t[e]=t[e]||[];var a={callback:i,scope:r,priority:o};t[e].some((function(i,n){if(i&&o>i.priority)return t[e].splice(n,0,a),!0}))||t[e].push(a)}}function i(e,i,r){if(e&&i&&t[e]){var o=n(e,i,r);o<0||(t[e][o]=null)}}function n(e,i,n){var r=-1;return t[e]?(t[e].some((function(t,e){if(t&&t.callback===i&&(!n||n===t.scope))return r=e,!0})),r):r}return{on:e,off:i,once:function(t,n,r){e(t,(function e(o){n.call(r,o),i(t,e,r)}),r)},trigger:function(e,i){if(e&&t[e]){if((i=i||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");i.type=e,t[e]=t[e].filter((function(t){return t})),t[e].forEach((function(t){return t&&t.callback.call(t.scope,i)}))}},reset:function(){t={}}}}l.__dashjs_factory_name="EventBus";var A=s.a.getSingletonFactory(l);A.EVENT_PRIORITY_LOW=0,A.EVENT_PRIORITY_HIGH=5e3,s.a.updateSingletonFactory(l.__dashjs_factory_name,A);var c=A,h=i(4),d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.BUFFERING_COMPLETED="bufferingCompleted",i.BUFFER_CLEARED="bufferCleared",i.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",i.BYTES_APPENDED="bytesAppended",i.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",i.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",i.CURRENT_TRACK_CHANGED="currentTrackChanged",i.DATA_UPDATE_COMPLETED="dataUpdateCompleted",i.DATA_UPDATE_STARTED="dataUpdateStarted",i.INITIALIZATION_LOADED="initializationLoaded",i.INIT_FRAGMENT_LOADED="initFragmentLoaded",i.INIT_REQUESTED="initRequested",i.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",i.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",
i.LOADING_COMPLETED="loadingCompleted",i.LOADING_PROGRESS="loadingProgress",i.LOADING_DATA_PROGRESS="loadingDataProgress",i.LOADING_ABANDONED="loadingAborted",i.MANIFEST_UPDATED="manifestUpdated",i.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",i.QUOTA_EXCEEDED="quotaExceeded",i.REPRESENTATION_UPDATED="representationUpdated",i.SEGMENTS_LOADED="segmentsLoaded",i.SERVICE_LOCATION_BLACKLIST_ADD="serviceLocationBlacklistAdd",i.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",i.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",i.STREAMS_COMPOSED="streamsComposed",i.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",i.STREAM_COMPLETED="streamCompleted",i.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",i.TIMED_TEXT_REQUESTED="timedTextRequested",i.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",i.URL_RESOLUTION_FAILED="urlResolutionFailed",i.VIDEO_CHUNK_RECEIVED="videoChunkReceived",i.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",i.XLINK_ELEMENT_LOADED="xlinkElementLoaded",i.XLINK_READY="xlinkReady",i.REQUEST_RETRYED="requestRetryed",i.BUFFER_CREATED="bufferCreated",i.VERIFY_SEGMENT_WARNING="verifySegmentWarning",i.INIT_HID="initHID",i.BIND_MEDIA_SOURCE_LOADER="bindMediaSourceLoader",i.SWITCH_AUDIO_TRACK_REQUEST="switchAudioTrackRequest",i.MULTI_AUDIO_TRACK_APPEND="multiAudioTrackAppend",i.SWITCH_AUDIO_TRACK_RENDERED="switchAudioTrackRendered",i.PREDICT_SEEK="predictSeek",i.JUMP_MEDIA_GAP="jumpMediaGap",i.SEGMENTS_LOADED_BEFORE_HANDLE="segmentsLoadedBeforeHandle",i.EXTRA_FRAMES_LOADING_FAILED="extraFramesLoadingFailed",i.SPLIT_GAP_AFTER_APPEND_CHUNK="splitGapAfterAppendChunk",i.PADDING_FRAMES_SUCCESS="paddingFramesSuccess",i.FIX_AV_SYNC="fixAVSync",i.SOURCE_BUFFER_CHANGE_TYPE="sourceBufferChangeType",i.SOURCE_BUFFER_CHANGE_TYPE_FAILED="sourceBufferChangeTypeFailed",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(h.a)),u=new d,p=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.action=t.ACTION_DOWNLOAD,this.startTime=NaN,this.mediaType=null,this.mediaInfo=null,this.type=null,this.duration=NaN,this.timescale=NaN,this.range=null,this.url=null,this.serviceLocation=null,this.requestStartDate=null,this.firstByteDate=null,this.requestEndDate=null,this.quality=NaN,this.index=NaN,this.availabilityStartTime=null,this.availabilityEndTime=null,this.wallStartTime=null,this.bytesLoaded=NaN,this.bytesTotal=NaN,this.delayLoadingTime=NaN,this.responseType="arraybuffer",this.representationId=null,this.timeout=1e4};p.ACTION_DOWNLOAD="download",p.ACTION_COMPLETE="complete";var g=p;function f(){var t,e=this.context,i=c(e).getInstance(),n=void 0,r=void 0,o=void 0,a=void 0,s=void 0;return t={log:function(){var t="",e=null;r&&(e=(new Date).getTime(),t+="["+(e-s)+"]"),o&&this&&this.getClassName&&(t+="["+this.getClassName()+"]",this.getType&&(t+="["+this.getType()+"]")),t.length>0&&(t+=" "),Array.apply(null,arguments).forEach((function(e){t+=e+" "})),n&&console.log(t),i.trigger(u.LOG,{message:t})},setLogTimestampVisible:function(t){r=t},setCalleeNameVisible:function(t){o=t},setLogToBrowserConsole:function(t){n=t},getLogToBrowserConsole:function(){return n},setABRLogVisible:function(t){a=t},getABRLogVisible:function(){return a||n}},n=!1,a=!1,r=!0,o=!1,s=(new Date).getTime(),t}f.__dashjs_factory_name="Debug";var m=s.a.getSingletonFactory(f),y="loading",b="executed",v="failed";function E(t){t=t||{};var e=this.context,i=m(e).getInstance().log,n=c(e).getInstance(),r=t.metricsModel,o=t.fragmentLoader,a={},s=void 0,l=void 0,A=void 0,h=void 0;function d(t){var e;return!!t&&(e=!1,A.some((function(i){if(o=t,a=i,!isNaN(o.index)&&o.startTime===a.startTime&&o.adaptationIndex===a.adaptationIndex&&o.type===a.type||(n=t,r=i,isNaN(n.index)&&isNaN(r.index)&&n.quality===r.quality)||function(t,e){return t.action===g.ACTION_COMPLETE&&t.action===e.action}(t,i))return e=!0;var n,r,o,a})),e)}function p(t){return isNaN(t.duration)?.25:t.duration/8}function f(t){A=A.filter((function(e){var i=p(e);return isNaN(e.startTime)||void 0!==t&&e.startTime>=t-i}))}function E(t,e){e<=t+.5||(A=A.filter((function(i){var n=p(i);return isNaN(i.startTime)||i.startTime>=e-n||isNaN(i.duration)||i.startTime+i.duration<=t+n})))}function I(t,e,i){for(var n=t.length-1;n>=0;n--){var r=t[n],o=r.startTime,a=o+r.duration;if(i=isNaN(i)?p(r):i,!isNaN(o)&&!isNaN(a)&&e+i>=o&&e-i<a||isNaN(o)&&isNaN(e))return r}return null}function C(t){var e=void 0;switch(t){case y:e=h;break;case b:e=A;break;default:e=[]}return e}function B(t,e){r.addSchedulingInfo(t.mediaType,new Date,t.type,t.startTime,t.availabilityStartTime,t.duration,t.quality,t.range,e),r.addRequestsQueue(t.mediaType,h,A)}function w(t){if(t.sender===o&&!t.error){if(h.splice(h.indexOf(t.request),1),t.response&&!t.error){var e=A&&A[A.length-1],r=l.getPlaybackController().getTime()||0,a=t.request,s=e&&(isNaN(e.index)||isNaN(e.startTime)&&isNaN(e.duration)),c=a&&(isNaN(a.index)||isNaN(a.startTime)&&isNaN(a.duration)),d=e&&(0===r||a.startTime-1<=r&&a.startTime+a.duration+1>=r),p=e&&a.index-e.index==1||A&&A.length&&A.filter((function(t){return a.index-t.index==1})).length||0===a.index;if(i("push",a.mediaType,JSON.stringify({index:a.index,isLastNaNRequest:s,isCurrentNaNRequest:c,isCurrentTimeInFirstRequest:d,isMediaRequest:p,currentTime:r,range:a.range})),!c&&d&&A.length>1&&!p&&A.splice(1,A.length-1),e&&!c&&!d&&!p)return void l.getScheduleController().start();A.push(t.request)}B(t.request,t.error?v:b),n.trigger(u.FRAGMENT_LOADING_COMPLETED,{request:t.request,response:t.response,error:t.error,sender:this}),t.request&&t.request.p2pLoadInfo&&"{}"!=JSON.stringify(t.request.p2pLoadInfo)&&n.trigger(u.FRAGMENT_P2P_LOAD_INFO,{p2pLoadInfo:t.request.p2pLoadInfo}),t.request&&t.request.loadInfo&&"{}"!=JSON.stringify(t.request.loadInfo)&&n.trigger(u.CDN_LOAD_INFO,{loadInfo:t.request.loadInfo,NCInfo:t.request.NCInfo,mediaInfo:{mediaType:t.request.mediaType,quality:t.request.quality,id:t.request.representationId}})}}function x(t){t.sender===o&&n.trigger(u.FRAGMENT_LOADING_PROGRESS,{request:t.request,response:t.response,error:t.error,sender:this})}function Q(t){if(t.sender===o&&(n.trigger(u.FRAGMENT_LOADING_ABANDONED,{streamProcessor:this.getStreamProcessor(),request:t.request,mediaType:t.mediaType}),t.request&&t.request.NCInfo&&"{}"!=JSON.stringify(t.request.NCInfo))){var e=t.request;if(Object.keys(a).length&&a.mediaType===e.mediaType&&a.quality===e.quality&&a.range===e.range&&a.delayLoadingTime===e.delayLoadingTime)return;a={mediaType:e.mediaType,quality:e.quality,range:e.range,delayLoadingTime:e.delayLoadingTime},n.trigger(u.CDN_LOAD_INFO,{NCInfo:t.request.NCInfo,mediaInfo:{mediaType:t.request.mediaType,quality:t.request.quality,id:t.request.representationId}})}}function S(){A=[],h=[]}return s={setStreamProcessor:function(t){l=t},getStreamProcessor:function(){return l},getRequests:function(t){var e=t?t.state instanceof Array?t.state:[t.state]:[],i=[];return e.forEach((function(e){var n,r,o=C(e);i=i.concat((n=o,(r=t).hasOwnProperty("time")?[I(n,r.time,r.threshold)]:n.filter((function(t){for(var e in r)if("state"!==e&&r.hasOwnProperty(e)&&t[e]!=r[e])return!1;return!0}))))})),i},isFragmentLoaded:d,isFragmentLoadedOrPending:function(t){var e=!1,i=0,n=void 0;if(!(e=d(t)))for(i=0;i<h.length;i++)n=h[i],t.url===n.url&&t.startTime===n.startTime&&(e=!0);return e},removeExecutedRequestsBeforeTime:f,removeExecutedRequestsAfterTime:function(t){A=A.filter((function(e){return isNaN(e.startTime)||void 0!==t&&e.startTime<=t}))},syncExecutedRequestsWithBufferedRange:function(t,e){if(t&&0!==t.length){for(var i=0,n=0,r=t.length;n<r;n++)E(i,t.start(n)),i=t.end(n);e>0&&E(i,e)}else f()},clearExecutedRequestBySeeking:function(){A=[]},abortRequests:function(){o.abort(),h=[]},executeRequest:function(t){switch(t.action){case g.ACTION_COMPLETE:A.push(t),B(t,b),
i("[FragmentModel] executeRequest trigger STREAM_COMPLETED"),n.trigger(u.STREAM_COMPLETED,{request:t,fragmentModel:this});break;case g.ACTION_DOWNLOAD:B(t,y),h.push(t),function(t){n.trigger(u.FRAGMENT_LOADING_STARTED,{sender:s,request:t});var e=l&&l.getBufferLevel();t.bufferLevel=e,t.startLoadFragmentTime=(new Date).getTime(),o.load(t)}(t);break;default:i("Unknown request action.")}},reset:function(){n.off(u.LOADING_COMPLETED,w,this),n.off(u.LOADING_DATA_PROGRESS,x,this),n.off(u.LOADING_ABANDONED,Q,this),o&&o.reset(),S()},addExecutedRequest:function(){},resetInitialSettings:S,getLastQnFragmentCompletedCnts:function(t){var e=0;if(A&&A.length>0)for(var i=A.length-1;i>=0&&t===A[i].quality;i--)e++;return e},resetPreloadData:function(){o&&o.resetPreloadData()},syncExecutedRequestsWithMultipleLevels:function(t,e){if(t&&0!==t.length){for(var i=0,n=0,r=t.length;n<r;n++){var o=t[n];E(i,o.start),i=o.end}e>0&&E(i,e)}else f()},getRequestsForState:C,getLoadingRequests:function(){return h}},S(),n.on(u.LOADING_COMPLETED,w,s),n.on(u.LOADING_DATA_PROGRESS,x,s),n.on(u.LOADING_ABANDONED,Q,s),s}E.__dashjs_factory_name="FragmentModel";var I=s.a.getClassFactory(E);I.FRAGMENT_MODEL_LOADING=y,I.FRAGMENT_MODEL_EXECUTED=b,I.FRAGMENT_MODEL_CANCELED="canceled",I.FRAGMENT_MODEL_FAILED=v,s.a.updateClassFactory(E.__dashjs_factory_name,I);var C=I,B=function t(e,i,n,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.code=e||null,this.message=i||null,this.data=n||null,this.errorCode=r||null,this.httpCode=o||null};function w(t,e,i){var n=this.context,r=m(n).getInstance().log,o=c(n).getInstance(),a=void 0,s=void 0,l=[],A=i;function h(){return a?a.buffered:[]}function d(){var t=this;if(l.length>0){s=!0;var e=l[0];l.splice(0,1);var i=[],n=function(){var n,r,a,c,p=h();n=t,a=p,c=e,(r=i)&&r.length>0&&r.length<a.length&&function(t,e){for(var i=0;i<t.length;i++){var n=Math.round(t.start(i)),r=Math.round(t.end(i));if(r===e.start||n===e.end||e.start>=n&&e.end<=r)return!0}return!1}(r,c)&&o.trigger(u.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:n,from:a.end(a.length-2),to:a.start(a.length-1),unintended:!0}),l.length>0?d.call(this):(s=!1,A&&A({chunk:e}))};try{0===e.bytes.length?n.call(this):(i=h(),a.appendBuffer?a.appendBuffer(e.bytes):a.append(e.bytes,e),p(a,n.bind(this)))}catch(t){r('SourceBuffer append failed "'+t+'"');var c="QuotaExceededError"===t.name||"QuotaExceeded"===t.name,g=t.code||(c?22:0);l.length>0?d():s=!1,A&&A({chunk:e,error:new B(g,t.message,null)})}}}function p(t,e){var i=void 0,n=function(){t.updating||(clearInterval(i),e())};if(t.updating)if("function"==typeof t.addEventListener)try{t.addEventListener("updateend",(function i(){t.updating||(t.removeEventListener("updateend",i,!1),e())}),!1)}catch(t){i=setInterval(n,50)}else i=setInterval(n,50);else e()}var g={getAllBufferRanges:h,getBuffer:function(){return a},append:function(t){l.push(t),s||p(a,d.bind(this))},remove:function(e,i,n){var r=this;p(a,(function(){try{e>=0&&i>e&&(n||"ended"!==t.readyState)&&a.remove(e,i),p(a,(function(){o.trigger(u.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:r,from:e,to:i,unintended:!1})}))}catch(t){o.trigger(u.SOURCEBUFFER_REMOVE_COMPLETED,{buffer:r,from:e,to:i,unintended:!1,error:new B(t.code,t.message,null)})}}))},abort:function(){try{("open"===t.readyState||a.setTextTrack&&"ended"===t.readyState)&&a.abort()}catch(t){r('SourceBuffer append abort failed: "'+t+'"')}l=[]},reset:function(){if(a){try{t.removeSourceBuffer(a)}catch(t){r("Failed to remove source buffer from media source.")}s=!1,a=null}l=[],A=null},changeType:function(t){return new Promise((function(e,i){p(a,(function(){try{a.changeType(t),e()}catch(t){i(t)}}))}))},setAppendWindowEnd:function e(i){i<=0||p(a,(function(){if("open"===t.readyState)a.appendWindowEnd=i;else var n=setTimeout((function(){clearTimeout(n),e(i)}),50)}))},updateTimestampOffset:function(t){a.timestampOffset===t||isNaN(t)||p(a,(function(){a.timestampOffset=t}))}};return function(){s=!1;var i=e.codec;try{if(i.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))throw new Error("not really supported");a=t.addSourceBuffer(i)}catch(t){throw t}}(),g}w.__dashjs_factory_name="SourceBufferSink";var x=s.a.getClassFactory(w);function Q(t){var e=this.context,i=m(e).getInstance().log,n=[],r=void 0,o=t;function a(t,e){n=n.filter((function(i){return!((isNaN(e)||i.start<e)&&(isNaN(t)||i.end>t))}))}return{getAllBufferRanges:function(){for(var t=[],e=0;e<n.length;e++){var i=n[e];0===t.length||i.start>t[t.length-1].end?t.push({start:i.start,end:i.end}):t[t.length-1].end=i.end}var r={start:function(e){return t[e].start},end:function(e){return t[e].end}};return Object.defineProperty(r,"length",{get:function(){return t.length}}),r},append:function(t){"InitializationSegment"!==t.segmentType?(n.push(t),n.sort((function(t,e){return t.start-e.start})),r=null):r=t,i("PreBufferSink appended chunk s: "+t.start+"; e: "+t.end),o&&o({chunk:t})},remove:a,abort:function(){},discharge:function(t,e){var i,o,s=(i=t,o=e,n.filter((function(t){return(isNaN(o)||t.start<o)&&(isNaN(i)||t.end>i)})));return r&&(s.push(r),r=null),a(t,e),s},reset:function(){n=[],r=null,o=null}}}Q.__dashjs_factory_name="PreBufferSink";var S=s.a.getClassFactory(Q),k={DEFAULT:.5,STRONG:1,WEAK:0};function D(t,e,i){var n,r,o;return n=void 0===t?-1:t,r=i,o=k.DEFAULT,r!==k.DEFAULT&&r!==k.STRONG&&r!==k.WEAK||(o=r),{quality:n,reason:void 0===e?null:e,priority:o}}D.__dashjs_factory_name="SwitchRequest";var _=s.a.getClassFactory(D);_.NO_CHANGE=-1,_.PRIORITY=k,s.a.updateClassFactory(D.__dashjs_factory_name,_);var R=_;function M(t){t=t||{};var e=this.context,i=m(e).getInstance().log,n=t.metricsModel;return{getMaxIndex:function(t){var r=R(e).create();if(!(t&&t.hasOwnProperty("getMediaInfo")&&t.hasOwnProperty("getMediaType")&&t.hasOwnProperty("useBufferOccupancyABR")&&t.hasOwnProperty("getAbrController")&&t.hasOwnProperty("getStreamProcessor")))return r;!function(){if(!n||!n.hasOwnProperty("getReadOnlyMetricsFor"))throw new Error("Missing config parameter(s)")}();var o=t.getMediaInfo(),a=t.getMediaType(),s=n.getReadOnlyMetricsFor(a),l=t.getStreamProcessor(),A=t.getAbrController(),c=t.getStreamInfo(),h=c&&c.manifestInfo?c.manifestInfo.isDynamic:null,d=A.getThroughputHistory(),u=d.getSafeAverageThroughput(a,h),p=d.getAverageLatency(a),g=s.BufferState.length>0?s.BufferState[s.BufferState.length-1]:null,f=t.useBufferOccupancyABR();return!s||isNaN(u)||!g||f||A.getAbandonmentStateFor(a)!==ot.ABANDON_LOAD&&(g||h)&&(r.quality=A.getQualityForBitrate(o,u,p),l.getScheduleController().setTimeToLoadDelay(0),i("ThroughputRule requesting switch to index: ",r.quality,"type: ",a,"Average throughput",Math.round(u),"kbps"),r.reason={throughput:u,latency:p}),r},reset:function(){}}}M.__dashjs_factory_name="ThroughputRule";var T=s.a.getClassFactory(M);function F(t){t=t||{};var e=this.context,i=m(e).getInstance().log,n=t.mediaPlayerModel,r=t.metricsModel,o=t.dashMetrics,a=void 0,s=void 0,l=void 0;function A(){a={},s={},l=[]}var c={shouldAbandon:function(t){var A=R(e).create(R.NO_CHANGE,{name:F.__dashjs_factory_name});if(!(t&&t.hasOwnProperty("getMediaInfo")&&t.hasOwnProperty("getMediaType")&&t.hasOwnProperty("getCurrentRequest")&&t.hasOwnProperty("getRepresentationInfo")&&t.hasOwnProperty("getAbrController")))return A;var c,h,d,u,p=t.getMediaInfo(),g=t.getMediaType(),f=t.getCurrentRequest();if(!isNaN(f.index)){c=g,h=f.index,a[c]=a[c]||{},a[c][h]=a[c][h]||{};var m=n.getStableBufferTime(),y=o.getCurrentBufferLevel(r.getReadOnlyMetricsFor(g));if(y>m)return A;var b=a[g][f.index];if(null===b||null===f.firstByteDate||s.hasOwnProperty(b.id))return A;if(void 0===b.firstByteTime&&(l[g]=[],b.firstByteTime=f.firstByteDate.getTime(),b.segmentDuration=f.duration,b.bytesTotal=f.bytesTotal,b.id=f.index),b.bytesLoaded=f.bytesLoaded,b.elapsedTime=(new Date).getTime()-b.firstByteTime,b.bytesLoaded>0&&b.elapsedTime>0&&(d=g,u=Math.round(8*b.bytesLoaded/b.elapsedTime),l[d]=l[d]||[],l[d].push(u)),l[g].length>=5&&b.elapsedTime>500&&b.bytesLoaded<b.bytesTotal){var v=l[g].reduce((function(t,e){return t+e}),0);b.measuredBandwidthInKbps=Math.round(v/l[g].length),
b.estimatedTimeOfDownload=+(8*b.bytesTotal/b.measuredBandwidthInKbps/1e3).toFixed(2);var E=b.estimatedTimeOfDownload;if(E<1.8*b.segmentDuration&&E<.8*y||0===t.getRepresentationInfo().quality)return A;if(!s.hasOwnProperty(b.id)){var I=t.getAbrController(),C=b.bytesTotal-b.bytesLoaded,B=I.getBitrateList(p),w=I.getQualityFor(g,p.streamInfo),x=function(t,e,i){var o=I.getQualityForBitrate(p,b.measuredBandwidthInKbps*n.getBandwidthSafetyFactor()),a=I.getMinAllowedIndexFor(g),s=r.getReadOnlyMetricsFor(g),l=s.BufferState.length>0?s.BufferState[s.BufferState.length-1]:null;return e>=.8*i&&o>t?t>0?t-1:t:i<1||l&&l.state===he.BUFFER_EMPTY?0:void 0!==a?Math.max(a,o):o}(w,E,y);C>b.bytesTotal*B[x].bitrate/B[w].bitrate&&x!==w&&(A.quality=x,A.reason.throughput=b.measuredBandwidthInKbps,A.reason.fragmentID=b.id,s[b.id]=b,i("AbandonRequestsRule ( ",g,"frag id",b.id,") is asking to abandon and switch to quality to ",x,"from quality "+w," measured bandwidth was",b.measuredBandwidthInKbps),delete a[g][b.id])}}else b.bytesLoaded===b.bytesTotal&&delete a[g][b.id]}return A},reset:A};return A(),c}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}F.__dashjs_factory_name="AbandonRequestsRule",s.a.getClassFactory(F);var N=function t(){L(this,t),this.tcpid=null,this.type=null,this.url=null,this.actualurl=null,this.range=null,this.trequest=null,this.tresponse=null,this.responsecode=null,this.interval=null,this.trace=[],this._stream=null,this._tfinish=null,this._mediaduration=null,this._responseHeaders=null,this._serviceLocation=null},P=function t(){L(this,t),this.s=null,this.d=null,this.b=[]};function U(t){t=t||{};var e=this.context,i=m(e).getInstance().log,n=t.dashMetrics,o=t.metricsModel,a=t.mediaPlayerModel,s=c(e).getInstance(),l=void 0,A=void 0;function h(t){var e={},i=t.getMediaInfo().bitrateList.map((function(t){return t.bandwidth})),n=i.map((function(t){return Math.log(t)}));n=n.map((function(t){return t-n[0]+1}));var r=a.getStableBufferTime(),o=function(t,e,i){var n=i.reduce((function(t,e,n){return e>i[t]?n:t}),0);if(0===n)return null;var r=Math.max(t,10+2*e.length),o=(i[n]-1)/(r/10-1);return{gp:o,Vp:10/o}}(r,i,n);return o?(e.state=1,e.bitrates=i,e.utilities=n,e.stableBufferTime=r,e.Vp=o.Vp,e.gp=3,e.lastQuality=0,d(e)):e.state=0,e}function d(t){t.placeholderBuffer=0,t.mostAdvancedSegmentStart=NaN,t.lastSegmentWasReplacement=!1,t.lastSegmentStart=NaN,t.lastSegmentDurationS=NaN,t.lastSegmentRequestTimeMs=NaN,t.lastSegmentFinishTimeMs=NaN}function p(){for(var t in A)if(A.hasOwnProperty(t)){var e=A[t];0!==e.state&&d(e)}}function g(){}function f(t,e){if(!isNaN(t.lastSegmentStart)&&!isNaN(t.lastSegmentRequestTimeMs)&&!isNaN(t.placeholderBuffer)){if(t.placeholderBuffer*=.99,!isNaN(t.lastSegmentFinishTimeMs)){var i=n.getCurrentBufferLevel(o.getReadOnlyMetricsFor(e))+.001*(t.lastSegmentFinishTimeMs-t.lastSegmentRequestTimeMs),r=(s=t,l=t.lastQuality,s.Vp*(s.utilities[l]+s.gp)),a=Math.max(0,r-i);t.placeholderBuffer=Math.min(a,t.placeholderBuffer)}t.lastSegmentWasReplacement&&!isNaN(t.lastSegmentDurationS)&&(t.placeholderBuffer+=t.lastSegmentDurationS),t.lastSegmentStart=NaN,t.lastSegmentRequestTimeMs=NaN}var s,l}function y(t){if(t&&t.chunk&&t.chunk.mediaInfo){var e=A[t.chunk.mediaInfo.type];if(e&&0!==e.state){var i=t.chunk.start;isNaN(e.mostAdvancedSegmentStart)||i>e.mostAdvancedSegmentStart?(e.mostAdvancedSegmentStart=i,e.lastSegmentWasReplacement=!1):e.lastSegmentWasReplacement=!0,e.lastSegmentStart=i,e.lastSegmentDurationS=t.chunk.duration,e.lastQuality=t.chunk.quality,f(e,t.chunk.mediaInfo.type)}}}function b(t){if(t&&t.metric===r.HTTP_REQUEST&&t.value&&t.value.type===N.MEDIA_SEGMENT_TYPE&&t.value.trace&&t.value.trace.length){var e=A[t.mediaType];e&&0!==e.state&&(e.lastSegmentRequestTimeMs=t.value.trequest.getTime(),e.lastSegmentFinishTimeMs=t.value._tfinish.getTime(),f(e,t.mediaType))}}function v(t){if(t){var e=A[t.mediaType];e&&0!==e.state&&(e.abrQuality=t.newQuality)}}function E(t){}function I(t,e,i,n){var r=t.getRealBufferLevel();return+(5*i[e].bandwidth/(1e3*n)).toFixed(2)>r-3}function C(){A={}}return l={getMaxIndex:function(t){var r=t.getMediaInfo(),s=t.getMediaType(),l=o.getReadOnlyMetricsFor(s),c=t.getStreamProcessor(),u=t.getStreamInfo(),p=t.getAbrController(),g=p.getThroughputHistory(),f=(u&&u.id,u&&u.manifestInfo&&u.manifestInfo.isDynamic),m=t.useBufferOccupancyABR(),y=R(e).create();if(y.reason=y.reason||{},!m)return y;c.getScheduleController().setTimeToLoadDelay(0);var b,v,E,C=(v=(b=t).getMediaType(),(E=A[v])||(E=h(b),A[v]=E),E);if(0===C.state)return y;var B=n.getCurrentBufferLevel(l),w=g.getAverageThroughput(s,f),x=g.getSafeAverageThroughput(s,f),Q=g.getAverageLatency(s),S=void 0;if(y.reason.state=C.state,y.reason.throughput=w,y.reason.latency=Q,isNaN(w))return y;var k=n.getCurrentHttpRequest(l);y.reason.cdn=k&&k.loadInfo&&k.loadInfo.rType||"";var D=a.getFastSwitchOptimized()?4.5:5;switch(C.state){case 1:if(B<D){y.reason.d="startup_buf",y.reason.bufferLevel=B;break}S=p.getQualityForBitrate(r,w,Q);var _=t.getCurrentValue();S!==_?C.changedAtStartup?(y.reason.d="startup_limited",S=_):(C.changedAtStartup=!0,y.reason.d="startup_switch"):y.reason.d="startup_hold",y.quality=S,y.reason.throughput=w,y.reason.latency=Q,y.reason.bufferLevel=B,y.reason.thQn=p.getQualityForBitrate(r,w,Q),y.reason.curQn=_,C.lastQuality=S,C.lastPredictQn=S,isNaN(C.lastSegmentDurationS),!isNaN(C.lastSegmentDurationS)&&p.getRealBufferLevel()>=2*C.lastSegmentDurationS&&(C.state=2),i("【bolaV2 "+s+"】use throughput qn is "+r.bitrateList[S].id);break;case 2:var M=p.getPlaybackRate(),T=p.getRealBufferLevel(),F=function(t,e,n,r,o){var a=e.bitrates.length,s=Math.min(1,n/(t/o)),l=NaN,A=NaN,c=e.utilities,h=e.gp,d=c[c.length-1];i("【bolaV2 getQn "+r+"】, efcBuf: "+t+", curBufLv: "+s+", high: "+d);for(var u=a-1;u>=0;u--){var p=s;u<e.lastQuality&&(p=Math.min(1,p+.1));var g=e.utilities[u],f=((g+h)/(d+h)-p)/g;(isNaN(A)||f>=A)&&(A=f,l=u)}return l}(p.getEffectiveBufferTime(),C,T,s,M),L=function(t,e,n,r){var o=0,s=n.getMediaInfo(),l=n.getMediaType(),A=n.getAbrController(),c=A.getThroughputHistory(),h=c.getAverageLatency(l),d=s.bitrateList,u=t,p="";if(t>r){var g=c.getMinThroughput(l),f=e;o=g*a.getFactorByBufferLevel(f),i("【bolaV2 cac "+l+"】 min throughput: "+g)}else o=c.getSafeAverageThroughput(l),i("【bolaV2 cac "+l+"】 avg throughput: "+c.getAverageThroughput(l));var m=A.getQualityForBitrate(s,o,h),y=!1;if(i("【bolaV2 adjust "+l+"】startQn: "+d[t].id+", curQn: "+d[r].id+", cache: "+e+", adapter: "+o+", latency: "+h+", thQn: "+d[m].id),t>r){var b=3,v=A.getHasChangedByABRStrategy(l),E=A.getLastQnFragmentCompletedCnts(l,r),C=A.getRealBufferLevel();m<r||v&&E<b||C<12?m<r&&I(A,r,d,o)?(t=m,y=!0,p="up_bad_net"):(t=r,p=m<r?"up_low_th":v&&E<b?"up_min_frag("+E+"/"+b+")":"up_low_buf("+C.toFixed(1)+")"):(t=m>t?t:m,p="up_capped")}else{var B=c.getDict(l),w=2;m>=r||!B||B.length<w?I(A,r,d,o)?(t=r,y=!0,p="dn_prevent_timeout"):(t=r,p="dn_prevent"):m>t?(t=m,p="dn_mitigated"):m<t&&I(A,t,d,o)?(t=m,y=!0,p="dn_deeper"):p="dn_bola"}var x=A.getLatencyDropInfo();return{quality:t,detail:{d:p,bolaQn:u,curQn:r,thQn:m,thAd:Math.round(o),lat:Math.round(h),latDrop:x.dropped,fragDur:x.fragmentDuration||0,bad:y}}}(F,T/M,t,C.lastPredictQn);S=L.quality,y.quality=S,y.reason.throughput=w,y.reason.latency=Q,y.reason.bufferLevel=T,y.reason.playbackRate=M,y.reason.bolaQn=F,y.reason.adjust=L.detail,C.lastQuality=S,C.lastPredictQn=S,i("【bolaV2 "+s+"】final qn is "+r.bitrateList[S].id);break;case 3:S=p.getQualityForBitrate(r,.5*x,Q),!isNaN(C.lastSegmentDurationS)&&B>=2*C.lastSegmentDurationS&&(C.state=2),y.quality=S,y.reason.throughput=w,y.reason.latency=Q,y.reason.bufferLevel=B,y.reason.d="seek",i("【bolaV2 "+s+"】seek use throughput qn is "+r.bitrateList[S].id);break;default:i("BOLA ABR rule invoked in bad state."),y.quality=p.getQualityForBitrate(r,x,Q),y.reason.state=C.state,y.reason.throughput=x,y.reason.latency=Q,y.reason.d="bad_state",C.state=1,d(C)}return y},reset:function(){C(),s.off(u.PLAYBACK_xING,p,l),s.off(u.PERIOD_SWITCH_STARTED,g,l),s.off(u.MEDIA_FRAGMENT_LOADED,y,l),s.off(u.METRIC_ADDED,b,l),s.off(u.QUALITY_CHANGE_REQUESTED,v,l),s.off(u.FRAGMENT_LOADING_ABANDONED,E,l)}},C(),
s.on(u.PLAYBACK_SEEKING,p,l),s.on(u.PERIOD_SWITCH_STARTED,g,l),s.on(u.MEDIA_FRAGMENT_LOADED,y,l),s.on(u.METRIC_ADDED,b,l),s.on(u.QUALITY_CHANGE_REQUESTED,v,l),s.on(u.FRAGMENT_LOADING_ABANDONED,E,l),l}N.GET="GET",N.HEAD="HEAD",N.MPD_TYPE="MPD",N.XLINK_EXPANSION_TYPE="XLinkExpansion",N.INIT_SEGMENT_TYPE="InitializationSegment",N.INDEX_SEGMENT_TYPE="IndexSegment",N.MEDIA_SEGMENT_TYPE="MediaSegment",N.BITSTREAM_SWITCHING_SEGMENT_TYPE="BitstreamSwitchingSegment",N.OTHER_TYPE="other",U.__dashjs_factory_name="BolaRuleV2";var O=s.a.getClassFactory(U),G="qualitySwitchRules",H="abandonFragmentRules";function V(t){t=t||{};var e=this.context,i=t.mediaPlayerModel,n=t.metricsModel,r=t.dashMetrics,o=void 0,a=void 0;function s(t){return t.filter((function(t){return t.quality>R.NO_CHANGE}))}function l(t){var i,n={},r={},o=void 0,a=void 0,s=void 0,l=void 0,A=void 0;if(0!==t.length){for(n[R.PRIORITY.STRONG]=R.NO_CHANGE,n[R.PRIORITY.WEAK]=R.NO_CHANGE,n[R.PRIORITY.DEFAULT]=R.NO_CHANGE,o=0,i=t.length;o<i;o+=1)(a=t[o]).quality!==R.NO_CHANGE&&(n[a.priority]>R.NO_CHANGE?a.quality<=n[a.priority]&&(n[a.priority]=a.quality,r[a.priority]=a.reason):(n[a.priority]=a.quality,r[a.priority]=a.reason));return n[R.PRIORITY.WEAK]!==R.NO_CHANGE&&(s=n[R.PRIORITY.WEAK],A=r[R.PRIORITY.WEAK]),n[R.PRIORITY.DEFAULT]!==R.NO_CHANGE&&(s=n[R.PRIORITY.DEFAULT],A=r[R.PRIORITY.DEFAULT]),n[R.PRIORITY.STRONG]!==R.NO_CHANGE&&(s=n[R.PRIORITY.STRONG],A=r[R.PRIORITY.STRONG]),s!==R.NO_CHANGE&&(l=s),R(e).create(l,A)}}return{initialize:function(){o=[],a=[],i.getUseDefaultABRRules()&&(o.push(O(e).create({metricsModel:n,dashMetrics:r,mediaPlayerModel:i})),o.push(T(e).create({metricsModel:n,dashMetrics:r}))),i.getABRCustomRules().forEach((function(t){t.type===G&&o.push(t.rule(e).create()),t.type===H&&a.push(t.rule(e).create())}))},reset:function(){[o,a].forEach((function(t){t&&t.length&&t.forEach((function(t){return t.reset&&t.reset()}))})),o=[],a=[]},getMaxQuality:function(t){return l(s(o.map((function(e){return e.getMaxIndex(t)}))))||R(e).create()},shouldAbandonFragment:function(t){return l(s(a.map((function(e){return e.shouldAbandon(t)}))))||R(e).create()}}}V.__dashjs_factory_name="ABRRulesCollection";var Y=s.a.getClassFactory(V);Y.QUALITY_SWITCH_RULES=G,Y.ABANDON_FRAGMENT_RULES=H,s.a.updateSingletonFactory(V.__dashjs_factory_name,Y);var z=Y,W=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mediaType=null,this.bitrate=null,this.width=null,this.height=null,this.scanType=null,this.qualityIndex=NaN,this.id=""};function Z(t){var e=(t=t||{}).abrController,i=t.streamProcessor,n=t.streamProcessor.getCurrentRepresentationInfo(),r=t.switchHistory,o=t.droppedFramesHistory,a=t.currentRequest,s=t.useBufferOccupancyABR,l=t.currentValue;return{getMediaType:function(){return n.mediaInfo.type},getMediaInfo:function(){return n.mediaInfo},getDroppedFramesHistory:function(){return o},getCurrentRequest:function(){return a},getSwitchHistory:function(){return r},getStreamInfo:function(){return n.mediaInfo.streamInfo},getStreamProcessor:function(){return i},getAbrController:function(){return e},getRepresentationInfo:function(){return n},useBufferOccupancyABR:function(){return s},getCurrentValue:function(){return l}}}Z.__dashjs_factory_name="RulesContext";var j=s.a.getClassFactory(Z);function q(){var t=[],e=[];return{push:function(i){i.newValue===R.NO_CHANGE&&(i.newValue=i.oldValue),t[i.oldValue]||(t[i.oldValue]={noDrops:0,drops:0,dropSize:0});var n=i.newValue-i.oldValue,r=n<0?1:0,o=r?-n:0,a=r?0:1;if(t[i.oldValue].drops+=r,t[i.oldValue].dropSize+=o,t[i.oldValue].noDrops+=a,e.push({idx:i.oldValue,noDrop:a,drop:r,dropSize:o}),e.length>8){var s=e.shift();t[s.idx].drops-=s.drop,t[s.idx].dropSize-=s.dropSize,t[s.idx].noDrops-=s.noDrop}},getSwitchRequests:function(){return t},reset:function(){t=[],e=[]}}}q.__dashjs_factory_name="SwitchRequestHistory";var J=s.a.getClassFactory(q);function K(){var t=[],e=0,i=0;return{push:function(n,r){var o=r&&r.droppedVideoFrames?r.droppedVideoFrames:0,a=r&&r.totalVideoFrames?r.totalVideoFrames:0,s=o-e;e=o;var l=a-i;i=a,isNaN(n)||(t[n]?(t[n].droppedVideoFrames+=s,t[n].totalVideoFrames+=l):t[n]={droppedVideoFrames:s,totalVideoFrames:l})},getFrameHistory:function(){return t},getFrameInfo:function(){return{droppedFrames:e,totalFrames:i}},reset:function(n){t=[],e=n.droppedVideoFrames,i=n.totalVideoFrames}}}K.__dashjs_factory_name="DroppedFramesHistory";var X=s.a.getClassFactory(K);function $(t){var e=(t=t||{}).mediaPlayerModel,i=void 0,r=void 0,o=void 0,a=void 0,s=void 0;function l(t,e,i,n){var r=Math.pow(.5,i/n.fast);t.fastEstimate=(1-r)*e+r*t.fastEstimate;var o=Math.pow(.5,i/n.slow);t.slowEstimate=(1-o)*e+o*t.slowEstimate,t.totalWeight+=i}function A(t,l,A){return e.getMovingAverageMethod()!==n.MOVING_AVERAGE_SLIDING_WINDOW?function(t,e){var i=t?s.throughputHalfLife:s.latencyHalfLife,n=t?o[e]:a[e];if(!n||n.totalWeight<=0)return NaN;var r=n.fastEstimate/(1-Math.pow(.5,n.totalWeight/i.fast)),l=n.slowEstimate/(1-Math.pow(.5,n.totalWeight/i.slow));return t?Math.min(r,l):Math.max(r,l)}(t,l):(d=function(t,e,n){var o=void 0,a=void 0;if(t?(o=i[e],a=n?3:4):(o=r[e],a=4),o){if(a>=o.length)a=o.length;else if(t)for(var s=1;s<a;++s){var l=o[s]/o[s-1];if((l>=1.3||l<=1/1.3)&&(a+=1)===o.length)break}}else a=0;return a}(c=t,h=l,A),u=(c?i:r)[h],0!==d&&u&&0!==u.length?(u=u.slice(-d)).reduce((function(t,e){return t+e}))/u.length:NaN);var c,h,d,u}function c(t,e){return A(!0,t,e)}function h(t){i[t]=i[t]||[],r[t]=r[t]||[],o[t]=o[t]||{fastEstimate:0,slowEstimate:0,totalWeight:0},a[t]=a[t]||{fastEstimate:0,slowEstimate:0,totalWeight:0}}function d(){i={},r={},o={},a={}}var u={push:function(t,A,c){if(A.trace&&A.trace.length){var d=A.tresponse.getTime()-A.trequest.getTime()||1,u=A._tfinish.getTime()-A.tresponse.getTime()||1,p=A.trace.reduce((function(t,e){return t+e.b[0]}),0),g=d+u,f=Math.round(8*p/g);if(!(p<1e4)){if(h(t),y=d,b=u,(m=t)===n.VIDEO?b+y<e.getCacheLoadThresholdForType(n.VIDEO):m===n.AUDIO?b+y<e.getCacheLoadThresholdForType(n.AUDIO):void 0){if(i[t].length>0&&!i[t].hasCachedEntries)return;i[t].hasCachedEntries=!0}else i[t]&&i[t].hasCachedEntries&&function(t){delete i[t],delete r[t],delete o[t],delete a[t],h(t)}(t);f>3e4&&(f=3e4),i[t].push(f),i[t].length>5&&i[t].shift(),r[t].push(d),r[t].length>5&&r[t].shift(),l(o[t],f,.001*u,s.throughputHalfLife),l(a[t],d,1,s.latencyHalfLife)}}var m,y,b},getAverageThroughput:c,getSafeAverageThroughput:function(t,i){var n=c(t,i);return isNaN(n)||(n*=e.getBandwidthSafetyFactor()),n},getAverageLatency:function(t){return A(!1,t)},getMinThroughput:function(t){return Math.min.apply(Math,function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(i[t]))},getDict:function(t){return{throughput:i[t],latency:r[t]}},onProgress:function(t,e){if(!e.requestStartDate&&!e.p2pLoadInfo||"video"!==t)return!1;var n=(new Date).getTime(),a=null;if(e.headersReceivedDate?a=e.headersReceivedDate.getTime():e.p2pLoadInfo.requestStartTime&&(a=e.p2pLoadInfo.requestStartTime.getTime()),a){var A=n-a||1,c=null;e.headersReceivedDate&&e.requestStartDate&&(c=e.headersReceivedDate.getTime()-e.requestStartDate.getTime());var d=A,u=e.bytesLoaded;if(u<76100)return!1;e.lastByte=u;var p=Math.round(8*u/d);return e.p2pLoadInfo&&e.p2pLoadInfo.requestStartTime,h(t),"number"!=typeof c||isNaN(c)||(r[t].push(c),r[t].length>5&&r[t].shift()),p>3e4&&(p=3e4),i[t].push(p),i[t].length>5&&i[t].shift(),l(o[t],p,.001*A,s.throughputHalfLife),!0}},reset:d};return s={throughputHalfLife:{fast:3,slow:8},latencyHalfLife:{fast:1,slow:2}},d(),u}$.__dashjs_factory_name="ThroughputHistory";var tt=s.a.getClassFactory($),et="abandonload",it="allowload";function nt(){var t=this.context,e=m(t).getInstance(),i=c(t).getInstance(),o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0,p=void 0,g=void 0,f=void 0,y=void 0,b=void 0,v=void 0,E=void 0,I=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0,M=void 0,T=void 0,F=void 0,L=void 0,P=void 0,U=void 0,O=void 0,G=void 0,H=void 0,V=void 0,Y={video:0,audio:0},Z={video:{},audio:{}};function q(t){var e=t.request.mediaType
;"MediaSegment"===t.request.type&&"video"===e&&L.onProgress(e,t.request,t.response)}function K(t){t||(A={video:!0,audio:!0}),h={},d={},p={},g={},y={},f={},T={},P={},v=!1,G=!1,E=!1,void 0===I&&(I=!1),M=void 0,F=void 0,L=void 0,clearTimeout(b),b=null,H={video:!1,audio:!1}}function $(t){t.mediaType===n.VIDEO&&(M=t.oldQuality,F.push(M,k.getPlaybackQuality()))}function nt(t){t.metric!==r.HTTP_REQUEST||!t.value||t.value.type!==N.MEDIA_SEGMENT_TYPE||t.mediaType!==n.AUDIO&&t.mediaType!==n.VIDEO||L.push(t.mediaType,t.value,G),t.metric!==r.BUFFER_LEVEL||t.mediaType!==n.AUDIO&&t.mediaType!==n.VIDEO||function(t,e){var i=D.getABRStrategy();if(i!==n.ABR_STRATEGY_BOLA)if(i!==n.ABR_STRATEGY_THROUGHPUT){var r=D.getStableBufferTime(),o=r,s=.5*r,l=P[t],A=e>(l?s:o);P[t]=A,A!==l&&a(A?"AbrController ("+t+") switching from throughput to buffer occupancy ABR rule (buffer: "+e.toFixed(3)+").":"AbrController ("+t+") switching from buffer occupancy to throughput ABR rule (buffer: "+e.toFixed(3)+").")}else P[t]=!1;else P[t]=!0}(t.mediaType,.001*t.value.level)}function rt(t,e){var i,r,o,a,s=void 0;return h[e]=h[e]||{},h[e].hasOwnProperty(t)||(h[e][t]=0),s=function(t,e){var i=t;if(!f[e])return i;var n=lt(e);void 0!==n&&(i=Math.max(t,n));var r=st(e);return void 0!==r&&(i=Math.min(i,r)),i}(h[e][t],t),i=s,r=t,o=h[e][t],a=At(r),s=function(t,e){if(e!==n.VIDEO||!v||!f[e])return t;I||bt();var i=x.getValue(),r=Q.getAdaptationForType(i,0,e).Representation,o=t;if(B>0&&w>0){for(;o>0&&r[o]&&B<r[o].width&&B-r[o-1].width<r[o].width-B;)o-=1;r.length-2>=o&&r[o].width===r[o+1].width&&(o=Math.min(t,o+1))}return o}(s=isNaN(a)||a>=1||a<0?i:Math.min(i,Math.round(o*a)),t),s}function ot(t){return p.hasOwnProperty("max")&&p.max.hasOwnProperty(t)?p.max[t]:NaN}function at(t){return p.hasOwnProperty("min")&&p.min.hasOwnProperty(t)?p.min[t]:NaN}function st(t){var e=ot(t);return e?gt(f[t].getMediaInfo(),e):void 0}function lt(t){var e=at(t);if(e){var i=ft(f[t].getMediaInfo()),n=gt(f[t].getMediaInfo(),e);return i[n]&&n<i.length-1&&i[n].bitrate<1e3*e&&n++,n}}function At(t){return g.hasOwnProperty("max")&&g.max.hasOwnProperty(t)?g.max[t]:1}function ct(t){return A[t]}function ht(t,e,i,n){var r=e.id,o=yt(t);if(null===i||isNaN(i)||i%1!=0)throw new Error("argument is not an integer");var a=rt(t,r);i!==o&&i>=0&&i<=a&&dt(t,o,i,a,n)}function dt(t,n,r,o,s){if(t&&f[t]){var l=f[t].getStreamInfo(),A=l?l.id:null;if(e.getABRLogVisible()){var c=O.getCurrentBufferLevel(U.getReadOnlyMetricsFor(t));a("AbrController ("+t+") switch from "+n+" to "+r+"/"+o+" (buffer: "+c+") "+(s?JSON.stringify(s):"."))}h=t,g=r,d[p=A]=d[p]||{},d[p][h]=g,i.trigger(u.QUALITY_CHANGE_REQUESTED,{mediaType:t,streamInfo:l,oldQuality:n,newQuality:r,reason:s})}var h,p,g}function ut(t,e){y[t].state=e,y[t].time=e===et?performance.now():NaN}var pt={dropped:!1,latency:0,fragmentDuration:0,thRaw:0,thAfterLat:0};function gt(t,e,i){if(pt.dropped=!1,pt.thRaw=Math.round(e),pt.thAfterLat=Math.round(e),G&&i&&f[t.type].getCurrentRepresentationInfo()&&f[t.type].getCurrentRepresentationInfo().fragmentDuration){i/=1e3;var n=f[t.type].getCurrentRepresentationInfo().fragmentDuration;i>n&&(pt.dropped=!0,pt.latency=Math.round(1e3*i),pt.fragmentDuration=n),e*=1-Math.min(i/n,.8),pt.thAfterLat=Math.round(e)}var r=ft(t);if(!r||0===r.length)return 0;for(var o=r.length-1;o>=0;o--)if(1e3*e>=r[o].bitrate)return o;return 0}function ft(t){if(!t||!t.bitrateList)return null;for(var e=t.bitrateList,i=t.type,n=[],r=void 0,o=0,a=e.length;o<a;o++)(r=new W).mediaType=i,r.qualityIndex=o,r.id=e[o].id,r.bitrate=e[o].bandwidth,r.width=e[o].width,r.height=e[o].height,r.scanType=e[o].scanType,n.push(r);return n}function mt(t){return P[t]}function yt(t){if(t&&f[t]){var e=f[t].getStreamInfo(),i=e?e.id:null;if(i)return d[i]=d[i]||{},d[i].hasOwnProperty(t)||(d[i][t]=Et(t,!1)||0),d[i][t]}return 0}function bt(){if(k){var t=E&&window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1;B=k.getClientWidth()*t,w=k.getClientHeight()*t}}function vt(e){var i=e.request.mediaType;if(ct(i)){var n=f[i];if(!n)return;var r=j(t).create({abrController:o,streamProcessor:n,currentRequest:e.request,useBufferOccupancyABR:mt(i)}),a=s.shouldAbandonFragment(r);if(a.quality>R.NO_CHANGE){var A=n.getFragmentModel();A.getRequests({state:C.FRAGMENT_MODEL_LOADING,index:e.request.index})[0]&&(A.abortRequests(),ut(i,et),T[i].reset(),T[i].push({oldValue:yt(i,l.getActiveStreamInfo()),newValue:a.quality,confidence:1,reason:a.reason}),ht(i,l.getActiveStreamInfo(),a.quality,a.reason),clearTimeout(b),b=setTimeout((function(){ut(i,it),b=null}),D.getAbandonLoadTimeout()))}}}function Et(t){if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var e=D.getPreloadData();if(e&&e[t+"id"])return f[t].getRepresentationController().getQualityForRepresentationId(e[t+"id"])}return Y[t]||0}return o={isPlayingAtTopQuality:function(t){var e=t.id,i=yt(n.AUDIO),r=yt(n.VIDEO);return i===rt(n.AUDIO,e)&&r===rt(n.VIDEO,e)},updateTopQualityIndex:function(t){var e,i,n,r=t.type,o=t.streamInfo.id,a=t.representationCount-1;return e=r,n=a,h[i=o]=h[i]||{},h[i][e]=n,a},getThroughputHistory:function(){return L},getBitrateList:ft,getQualityForBitrate:gt,getLatencyDropInfo:function(){return pt},getMaxAllowedBitrateFor:ot,getTopBitrateInfoFor:function(t){if(t&&f&&f[t]){var e=f[t].getStreamInfo();if(e.id){var i=rt(t,e.id),n=ft(f[t].getMediaInfo());return n[i]?n[i]:null}}return null},getMinAllowedBitrateFor:at,setMaxAllowedBitrateFor:function(t,e){p.max=p.max||{},p.max[t]=e},setMinAllowedBitrateFor:function(t,e){p.min=p.min||{},p.min[t]=e},getMaxAllowedIndexFor:st,getMinAllowedIndexFor:lt,getMaxAllowedRepresentationRatioFor:At,setMaxAllowedRepresentationRatioFor:function(t,e){g.max=g.max||{},g.max[t]=e},getInitialBitrateFor:function(t){var e=_.getSavedBitrateSettings(t);if(!p.hasOwnProperty(t))if(g.hasOwnProperty(t)){var i=x.getValue(),r=Q.getAdaptationForType(i,0,t).Representation;if(Array.isArray(r)){var o=Math.max(Math.round(r.length*g[t])-1,0);p[t]=r[o].bandwidth}else p[t]=0}else isNaN(e)?p[t]=t===n.VIDEO?1e3:100:p[t]=e;return p[t]},setInitialBitrateFor:function(t,e){p[t]=e},getInitialRepresentationRatioFor:function(t){return g.hasOwnProperty(t)?g[t]:null},setInitialRepresentationRatioFor:function(t,e){g[t]=e},setAutoSwitchBitrateFor:function(t,e){A[t]=e},getAutoSwitchBitrateFor:ct,getUseDeadTimeLatency:function(){return G},setUseDeadTimeLatency:function(t){G=t},setLimitBitrateByPortal:function(t){v=t},getLimitBitrateByPortal:function(){return v},getUsePixelRatioInLimitBitrateByPortal:function(){return E},setUsePixelRatioInLimitBitrateByPortal:function(t){E=t},getQualityFor:yt,getAbandonmentStateFor:function(t){return y[t]?y[t].state:null},setPlaybackQuality:ht,checkPlaybackQuality:function(i){if(i&&f&&f[i]){var n=f[i].getStreamInfo(),r=n?n.id:null,l=yt(i),A=j(t).create({abrController:o,streamProcessor:f[i],currentValue:l,switchHistory:T[i],droppedFramesHistory:F,useBufferOccupancyABR:mt(i)});if(F){var c=k.getPlaybackQuality();c&&F.push(M,c)}if(ct(i)){var h=lt(i),d=rt(i,r),u=s.getMaxQuality(A),p=u.quality;if(p===R.NO_CHANGE&&p!==l&&(p=l),void 0!==h&&p<h&&(p=h),p>d&&(p=d),T[i].push({oldValue:l,newValue:p}),p>R.NO_CHANGE&&p!=l){if(y[i].state===it||p>l)return H[i]=!0,dt(i,l,p,d,u.reason),!0}else if(e.getABRLogVisible()){var g=O.getCurrentBufferLevel(U.getReadOnlyMetricsFor(i));a("AbrController ("+i+") stay on "+l+"/"+d+" (buffer: "+g+")")}}}return!1},getTopQualityIndexFor:rt,setElementSize:bt,setWindowResizeEventCalled:function(t){I=t},createAbrRulesCollection:function(){(s=z(t).create({metricsModel:U,dashMetrics:O,mediaPlayerModel:D,videoModel:k,adapter:S})).initialize()},registerStreamType:function(e,r){T[e]=J(t).create(),f[e]=r,y[e]=y[e]||{},y[e].state=it,P[e]=!1,i.on(u.LOADING_PROGRESS,vt,this),i.on(u.FRAGMENT_LOADING_PROGRESS,q,this),e==n.VIDEO&&(i.on(u.QUALITY_CHANGE_RENDERED,$,this),F=X(t).create()),i.on(u.METRIC_ADDED,nt,this),L=tt(t).create({mediaPlayerModel:D})},unRegisterStreamType:function(t){delete f[t]},setDefaultQualityFor:function(t,e){Y[t]=Number(e)||0,a("Set default quality for "+t+" - "+Y[t])},getDefaultQualityFor:Et,getDroppedFramesInfo:function(){return F&&F.getFrameInfo&&F.getFrameInfo()||{}},
setCurrentSegmentInfoFor:function(t,e){Z[t]=e},getCurrentSegmentInfoFor:function(t){return Z[t]},getInitializeDate:function(){return V},getHasChangedByABRStrategy:function(t){return H[t]},setConfig:function(t){t&&(t.streamController&&(l=t.streamController),t.domStorage&&(_=t.domStorage),t.mediaPlayerModel&&(D=t.mediaPlayerModel),t.metricsModel&&(U=t.metricsModel),t.dashMetrics&&(O=t.dashMetrics),t.dashManifestModel&&(Q=t.dashManifestModel),t.adapter&&(S=t.adapter),t.manifestModel&&(x=t.manifestModel),t.videoModel&&(k=t.videoModel),t.initializeDate&&(V=t.initializeDate))},getLastQnFragmentCompletedCnts:function(t,e){var i=f[t];return i?i.getFragmentModel().getLastQnFragmentCompletedCnts(e):0},getEffectiveBufferTime:function(){var t=D.getStableBufferTime(),e=k.getTime(),i=k.getDuration()-e,n=0,r=(new Date).getTime(),o=D.getLastStartSeekTime(),s=D.getStartPlaybackTime(),l=(r-Math.max(o,s))/1e3;return n=l<10?Math.min(10,t):Math.min(Math.min(i,l),t),n=Math.min(n,30),a("【bolaV2 getEfc】max: "+t+", curTime: "+e+",playTime: "+l+", lseek: "+o+", efc: "+n),n},getPlaybackRate:function(){return k.getPlaybackRate()||1},reset:function(){K(!0),i.off(u.LOADING_PROGRESS,vt,this),i.off(u.FRAGMENT_LOADING_PROGRESS,q,this),i.off(u.QUALITY_CHANGE_RENDERED,$,this),i.off(u.METRIC_ADDED,nt,this),s&&s.reset()},shouldAbandon:function(t,e){var i=t.retry,n=t.retryTimes,r=t.bytesTotal,o=t.bytesLoaded;return i>0||n>0||+((r-o)/(1e3*L.getSafeAverageThroughput(e,!1))).toFixed(2)>O.getCurrentBufferLevel(U.getReadOnlyMetricsFor(e))-5},getRealBufferLevel:function(){var t=k.getVideoBufferRanges();if(!t||t.length<=0)return 0;var e=k.getTime();return t[t.length-1].end-e||0}},a=e.log.bind(o),K(),o}nt.__dashjs_factory_name="AbrController";var rt=s.a.getSingletonFactory(nt);rt.ABANDON_LOAD=et,rt.QUALITY_DEFAULT=0,s.a.updateSingletonFactory(nt.__dashjs_factory_name,rt);var ot=rt,at="neverReplace",st="alwaysReplace",lt="highestBitrate",At="widestRange",ct=lt;function ht(){var t,e=this.context,i=m(e).getInstance().log,r=c(e).getInstance(),o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=[st,at],d=[lt,At],p={video:0,audio:0};function g(t,e){if(!t||!e)return[];var i=e.id;return o[i]&&o[i][t]?o[i][t].list:[]}function f(t,e){return!t||!e||e&&!o[e.id]?null:o[e.id][t].current}function y(t){if(t){var e=t.type,i=t.streamInfo,n=i.id,a=f(e,i);if(o[n]&&o[n][e]&&(!a||!C(t,a))){o[n][e].current=t,a&&r.trigger(u.CURRENT_TRACK_CHANGED,{oldMediaInfo:a,newMediaInfo:t,switchMode:l[e]});var s=(h={lang:(c=t).lang,viewpoint:c.viewpoint,roles:c.roles,accessibility:c.accessibility,audioChannelConfiguration:c.audioChannelConfiguration}).lang||h.viewpoint||h.role&&h.role.length>0||h.accessibility&&h.accessibility.length>0||h.audioChannelConfiguration&&h.audioChannelConfiguration.length>0?h:null;s&&o[n][e].storeLastSettings&&(s.roles&&(s.role=s.roles[0],delete s.roles),s.accessibility&&(s.accessibility=s.accessibility[0]),s.audioChannelConfiguration&&(s.audioChannelConfiguration=s.audioChannelConfiguration[0]),A.setSavedMediaSettings(e,s))}}var c,h}function b(t,e){t&&e&&(a[t]=e)}function v(t){return t?a[t]:null}function E(){return s||ct}function I(t){return t===n.AUDIO||t===n.VIDEO||t===n.TEXT||t===n.FRAGMENTED_TEXT||t===n.IMAGE}function C(t,e){var i=t.id===e.id,n=t.viewpoint===e.viewpoint,r=t.lang===e.lang,o=t.roles.toString()===e.roles.toString(),a=t.accessibility.toString()===e.accessibility.toString(),s=t.audioChannelConfiguration.toString()===e.audioChannelConfiguration.toString();return i&&n&&r&&o&&a&&s}function B(){o={},a={audio:null,video:null},l={audio:st,video:at}}function w(t,e){var i=!t.lang||t.lang===e.lang,n=!t.viewpoint||t.viewpoint===e.viewpoint,r=!t.role||!!e.roles.filter((function(e){return e===t.role}))[0],o=!t.accessibility||!!e.accessibility.filter((function(e){return e===t.accessibility}))[0],a=!t.audioChannelConfiguration||!!e.audioChannelConfiguration.filter((function(e){return e===t.audioChannelConfiguration}))[0];return i&&n&&r&&o&&a}function x(t){var e=E(),n=[],r=function(t){var e=0,i=[],n=void 0;return t.forEach((function(t){(n=Math.max.apply(Math,t.bitrateList.map((function(t){return t.bandwidth}))))>e?(e=n,i=[t]):n===e&&i.push(t)})),i},o=function(t){var e=0,i=[],n=void 0;return t.forEach((function(t){(n=t.representationCount)>e?(e=n,i=[t]):n===e&&i.push(t)})),i};switch(e){case lt:(n=r(t)).length>1&&(n=o(n));break;case At:(n=o(t)).length>1&&(n=r(t));break;default:i("track selection mode is not supported: "+e)}return n[0]}return t={checkInitialMediaSettingsForType:function(t,e){var i=v(t),r=g(t,e),o=[];t!==n.FRAGMENTED_TEXT?(i||b(t,i=A.getSavedMediaSettings(t)),r&&0!==r.length&&(i&&r.forEach((function(t){w(i,t)&&o.push(t)})),0===o.length?y(x(r)):o.length>1?y(x(o)):y(o[0]))):y(r[0])},addTrack:function(t){if(t){var e=t.type;if(I(e)){var i=t.streamInfo.id;o[i]||(o[i]={audio:{list:[],storeLastSettings:!0,current:null},video:{list:[],storeLastSettings:!0,current:null},text:{list:[],storeLastSettings:!0,current:null},fragmentedText:{list:[],storeLastSettings:!0,current:null},image:{list:[],storeLastSettings:!0,current:null}});for(var n=o[i][e].list,r=0,a=n.length;r<a;++r)if(C(n[r],t))return;n.push(t);var s=v(e);s&&w(s,t)&&!f(e,t.streamInfo)&&y(t)}}},getTracksFor:g,getCurrentTrackFor:f,isCurrentTrack:function(t){var e=t.type,i=t.streamInfo.id;return o[i]&&o[i][e]&&C(o[i][e].current,t)},setTrack:y,setInitialSettings:b,getInitialSettings:v,setSwitchMode:function(t,e){-1!==h.indexOf(e)?l[t]=e:i("track switch mode is not supported: "+e)},getSwitchMode:function(t){return l[t]},setSelectionModeForInitialTrack:function(t){-1!==d.indexOf(t)?s=t:i("track selection mode is not supported: "+t)},getSelectionModeForInitialTrack:E,isMultiTrackSupportedByType:I,isTracksEqual:C,setStartOffsetTimeForType:function(t,e){t&&e>0&&(p[t]=e)},getStartOffsetTimeForType:function(t){return p[t]||0},setConfig:function(t){t&&(t.errHandler&&t.errHandler,t.domStorage&&(A=t.domStorage))},reset:B},B(),t}ht.__dashjs_factory_name="MediaController";var dt=s.a.getSingletonFactory(ht);dt.TRACK_SWITCH_MODE_NEVER_REPLACE=at,dt.TRACK_SWITCH_MODE_ALWAYS_REPLACE=st,dt.TRACK_SELECTION_MODE_HIGHEST_BITRATE=lt,dt.TRACK_SELECTION_MODE_WIDEST_RANGE=At,dt.DEFAULT_INIT_TRACK_SELECTION_MODE=ct,s.a.updateSingletonFactory(ht.__dashjs_factory_name,dt);var ut=dt,pt=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.offset=e._offset,this.type=e.type,this.size=e.size,this.boxes=[],e.boxes)for(var i=0;i<e.boxes.length;i++)this.boxes.push(new t(e.boxes[i]));switch(this.isComplete=!0,e.type){case"sidx":if(this.timescale=e.timescale,this.earliest_presentation_time=e.earliest_presentation_time,this.first_offset=e.first_offset,this.references=e.references,e.references){this.references=[];for(var n=0;n<e.references.length;n++){var r={reference_type:e.references[n].reference_type,referenced_size:e.references[n].referenced_size,subsegment_duration:e.references[n].subsegment_duration};this.references.push(r)}}break;case"emsg":this.id=e.id,this.value=e.value,this.timescale=e.timescale,this.scheme_id_uri=e.scheme_id_uri,this.presentation_time_delta=e.presentation_time_delta,this.event_duration=e.event_duration,this.message_data=e.message_data;break;case"mdhd":case"mvhd":this.timescale=e.timescale;break;case"mfhd":this.sequence_number=e.sequence_number;break;case"subs":this.entry_count=e.entry_count,this.entries=e.entries;break;case"tfhd":this.base_data_offset=e.base_data_offset,this.sample_description_index=e.sample_description_index,this.default_sample_duration=e.default_sample_duration,this.default_sample_size=e.default_sample_size,this.default_sample_flags=e.default_sample_flags,this.flags=e.flags;break;case"tfdt":this.version=e.version,this.baseMediaDecodeTime=e.baseMediaDecodeTime,this.flags=e.flags;break;case"trun":if(this.sample_count=e.sample_count,this.first_sample_flags=e.first_sample_flags,this.data_offset=e.data_offset,this.flags=e.flags,this.samples=e.samples,e.samples){this.samples=[];for(var o=0,a=e.samples.length;o<a;o++){var s={sample_size:e.samples[o].sample_size,sample_duration:e.samples[o].sample_duration,
sample_composition_time_offset:e.samples[o].sample_composition_time_offset};this.samples.push(s)}}break;case"elst":this.boxes=e.entries;break;case"exhd":this.entries=e.entries}}return t.prototype.getChildBox=function(t){for(var e=0;e<this.boxes.length;e++)if(this.boxes[e].type===t)return this.boxes[e]},t.prototype.getChildBoxes=function(t){for(var e=[],i=0;i<this.boxes.length;i++)this.boxes[i].type===t&&e.push(this.boxes[i]);return e},t}();function gt(){var t=void 0;function e(e){var n=[];if(!e||!t||"function"!=typeof t.fetchAll)return n;for(var r=t.fetchAll(e),o=void 0,a=0,s=r.length;a<s;a++)(o=i(r[a]))&&n.push(o);return n}function i(t){if(!t)return null;var e=new pt(t);return t.hasOwnProperty("_incomplete")&&(e.isComplete=!t._incomplete),e}return{getBox:function(e){return e&&t&&t.boxes&&0!==t.boxes.length&&"function"==typeof t.fetch?i(t.fetch(e)):null},getBoxes:e,setData:function(e){t=e},getLastBox:function(){if(!t||!t.boxes||!t.boxes.length)return null;var i=e(t.boxes[t.boxes.length-1].type);return i.length>0?i[i.length-1]:null}}}gt.__dashjs_factory_name="IsoFile";var ft=s.a.getClassFactory(gt),mt=i(1),yt=i.n(mt),bt=function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lastCompletedOffset=e,this.found=i,this.size=n},vt={EXHD:"exhd"};function Et(){var t=this.context;function e(t,e){return t[e+3]>>>0|t[e+2]<<8>>>0|t[e+1]<<16>>>0|t[e]<<24>>>0}function i(t,e){return String.fromCharCode(t[e++])+String.fromCharCode(t[e++])+String.fromCharCode(t[e++])+String.fromCharCode(t[e])}function n(t,e,i){var n=null,r=void 0,o=void 0;switch(e){case 8:n=t.getUint8(i);break;case 16:n=t.getUint16(i);break;case 24:n=((r=t.getUint16(i))<<8)+(o=t.getUint8(i+2));break;case 32:n=t.getUint32(i);break;case 64:r=t.getUint32(i),o=t.getUint32(i+4),n=r*Math.pow(2,32)+o}return n}return{parse:function(e){if(!e)return null;void 0===e.fileStart&&(e.fileStart=0);var i,r=(i=yt.a.parseBuffer(e))?(Object.values(vt).forEach((function(t){t===vt.EXHD&&function(t){var e=t.fetch("free");if(e&&e.data){var i=e.data,r=i.buffer,o=i.byteOffset,a=i.byteLength,s=new DataView(r,o,a),l=0,A=n(s,32,l);if(l+=4,!(A<0)){var c=String.fromCharCode(s.getUint8(l),s.getUint8(l+1),s.getUint8(l+2),s.getUint8(l+3)).toLocaleLowerCase();if(l+=4,c===vt.EXHD){1===A&&(A=n(s,64,l),l+=8);var h=n(s,32,l);l+=4;for(var d=[],u=0;u<h;u++){var p=n(s,32,l),g=n(s,64,l+=4),f=n(s,64,l+=8);l+=8;var m=r.slice(g,g+p);d.push({header_size:p,header_offset:g,media_offset:f,header_data:m})}e.boxes=e.boxes||[];var y=8,b=yt.a.createBox(c,e,0);b._offset=e._offset+y,b.entry_count=h,b.entries=d,b.size=A,b._raw=new DataView(r,o,A)}}}}(i)})),i):null,o=ft(t).create();return o.setData(r),o},findLastTopIsoBoxCompleted:function(t,n,r){if(void 0===r&&(r=0),!n||r+8>=n.byteLength)return new bt(0,!1);for(var o=n instanceof ArrayBuffer?new Uint8Array(n):n,a=void 0,s=0;r<o.byteLength;){var l=e(o,r),A=i(o,r+4);if(0===l)break;r+l<=o.byteLength&&(t.indexOf(A)>=0?a=new bt(r,!0,l):s=r+l),r+=l}return a||new bt(s,!1)},modifyTfdt:function(t,e){if(!t)return!1;var i=yt.a.parseBuffer(t).fetch("tfdt");if(!i)return!1;var n=i.version,r=i._offset+8+4,o=new DataView(t);if(1===n){var a=Math.floor(e/4294967296),s=e>>>0;o.setUint32(r,a),o.setUint32(r+4,s)}else o.setUint32(r,e);return!0},getTfdtBaseMediaDecodeTime:function(t){if(!t)return null;var e=yt.a.parseBuffer(t).fetch("tfdt");return e?e.baseMediaDecodeTime:null}}}Et.__dashjs_factory_name="BoxParser";var It=s.a.getSingletonFactory(Et);function Ct(){var t={},e={};return{save:function(e){var i=e.streamId,n=e.representationId;t[i]=t[i]||{},t[i][n]=e},saveExhdChunk:function(t){var i=t.streamId,n=t.representationId;e[i]=e[i]||{},e[i][n]=t},extractExhdChunk:function(t,i){return e&&e[t]&&e[t][i]?e[t][i]:null},extract:function(e,i){return t&&t[e]&&t[e][i]?t[e][i]:null},reset:function(){t={},e={}}}}Ct.__dashjs_factory_name="InitCache";var Bt=s.a.getSingletonFactory(Ct),wt="AudioTrackController",xt=[1,3,7];function Qt(t){t=t||{};var e=this.context,i=t.bufferController,r=t.mediaPlayerModel,o=c(e).getInstance(),a=1,s=void 0,l=void 0,A=void 0;function h(t){t.chunk.mediaInfo.type===n.AUDIO&&g(t.chunk.bytes)}function d(t){l&&t.sender.getType()===n.AUDIO&&(l=!1,o.trigger(u.SWITCH_AUDIO_TRACK_RENDERED,{id:r.getAudioTrackId(),index:t.index,startTime:t.startTime}))}function p(){return r.getAudioTrackId()!==a}function g(t){for(var e=yt.a.parseBuffer(t).fetchAll("tkhd"),i=[],n=0;n<e.length;n++){var o=e[n],s={id:o.track_ID,enabled:!1,flags:o.flags};xt.includes(o.flags)&&(a=o.track_ID,s.enabled=!0),i.push(s)}A("【"+wt+"】parse tkhd success, default tracks is "+a),r.setAudioTrackIds(i)}return s={AudioTrackControllerType:function(){return wt},shouldSwitchTrack:p,canUseNativeFomular:function(){var t=i.getBuffer(),e=t.getBuffer();return t&&e&&e.audioTracks&&!1},switchByAudioTracks:function(){var t=i.getBuffer().getBuffer().audioTracks,e=Object.values(t).find((function(t){return t.enabled=!0})),n=r.getAudioTrackId(),o=t.getTrackById(n),a=!0;e&&(e.enabled=!1),t.addEventListener("change",(function(){a&&o&&(o.enabled=!0),a=!1}))},switchByModifyTrackId:function(t){if(t&&p()){var e=t.bytes,i=yt.a.parseBuffer(e).fetchAll("tfhd");if(i&&i.length>1){var n=r.getAudioTrackId(),o=i.find((function(t){return t.track_ID===a})),s=i.find((function(t){return t.track_ID===n}));o&&s&&(o._raw.setUint32(12,n),s._raw.setUint32(12,a),t.trackSwitchInfo={id:n})}}},setDefaultTrackId:g,revertDefaultTrack:function(t){if(t&&t.trackSwitchInfo){var e=t.bytes,i=t.trackSwitchInfo.id,n=yt.a.parseBuffer(e).fetchAll("tfhd");if(n&&n.length>1){var r=n.find((function(t){return t.track_ID===a})),o=n.find((function(t){return t.track_ID===i}));r&&o&&(r._raw.setUint32(12,i),o._raw.setUint32(12,a),t.trackSwitchInfo=null)}}},setSwitchingState:function(t){l=t},initialize:function(){o.on(u.BYTES_APPENDED_END_FRAGMENT,d,this),o.on(u.INIT_FRAGMENT_LOADED,h,this)},reset:function(){l=!1,o.off(u.BYTES_APPENDED_END_FRAGMENT,d,this),o.off(u.INIT_FRAGMENT_LOADED,h,this)}},A=m(e).getInstance().log.bind(s),l=!1,s}Qt.__dashjs_factory_name="AudioTrackController";var St,kt=s.a.getClassFactory(Qt),Dt=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.availabilityIdx=NaN,this.wallStartTime=NaN,this.representation=null},_t=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),Rt=((St=Rt||{}).VIDEO="video",St.AUDIO="audio",St);function Mt(){return"undefined"!=typeof Worker}
const Tt=" ",Ft="undefined"!=typeof window&&window.Blob&&new Blob([(Lt=Tt,
Uint8Array.from(atob(Lt),(t=>t.charCodeAt(0))))],{type:"text/javascript;charset=utf-8"});var Lt;function Nt(t){let e;try{if(e=Ft&&(window.URL||window.webkitURL).createObjectURL(Ft),!e)throw"";const i=new Worker(e,{name:null==t?void 0:t.name});return i.addEventListener("error",(()=>{(window.URL||window.webkitURL).revokeObjectURL(e)})),i}catch(e){return new Worker("data:text/javascript;base64,"+Tt,{name:null==t?void 0:t.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}var Pt,Ut=(t=>(t.INIT="init",t.CANVAS="canvas",t.START="start",t.DATA="data",t.FRAME_ENCODE="frame_encode",t.ERROR="error",t.PAUSE="pause",t.RESUME="resume",t.STOP="stop",t.DETAILS_REQ="details_req",t.DETAILS_RSP="details_rsp",t.DESTROY="destroy",t))(Ut||{}),Ot={};function Gt(t,e,i){if(!i||typeof i.value!==Pt.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:Pt.boolTrue,get:function(){var t=i.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:Pt.boolTrue,writable:Pt.boolTrue}),t}}}Object.defineProperty(Ot,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(Pt||(Pt={})),Ot.bind=Gt;var Ht=Ot.default=Gt,Vt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor;const zt=class t{constructor(t){if(this.options=t,this.encodeDetails={},!t.mediaType)throw new Error("mediaType is required");if(!Mt())throw new Error("Worker is not supported");if(t.mediaType===Rt.VIDEO){if(!("VideoEncoder"in window))throw new Error("VideoEncoder is not supported")}else if(!("AudioEncoder"in window))throw new Error("AudioEncoder is not supported");this.init(t)}static isConfigSupported(t){return _t(this,null,(function*(){return!(!t.mediaType||!Mt())&&(t.mediaType===Rt.VIDEO?"VideoEncoder"in window&&VideoEncoder.isConfigSupported(t.parameter).then((t=>t.supported)):t.mediaType===Rt.AUDIO&&"AudioEncoder"in window&&AudioEncoder.isConfigSupported(t.parameter).then((t=>t.supported)))}))}init(t){this.encodeHandler=new Nt({name:"encode-worker"}),this.encodeHandler.addEventListener("message",this.onMessage);const e=JSON.parse(JSON.stringify(t)),i=t.parameter.source;e.parameter.source=i,this.sendMsg(Ut.INIT,{options:e},i&&[i])}sendMsg(t,e,i){var n;null==(n=this.encodeHandler)||n.postMessage({type:t,data:e},i)}onMessage(t){const{type:e,data:i}=t.data;switch(e){case Ut.ERROR:"function"==typeof this.options.onMuxerError?this.options.onMuxerError(i):console.error(i);break;case Ut.FRAME_ENCODE:this.encodeDetails=i,"function"==typeof this.options.onFrameEncoded&&this.options.onFrameEncoded();break;case Ut.DATA:"function"==typeof this.options.onFmp4Generated&&this.options.onFmp4Generated(i.data,i.position,i.isFinished)}}start(e){return _t(this,null,(function*(){const i=this.options=Object.assign({},this.options,e);try{if(!(yield t.isConfigSupported(i)))throw new Error("Codec is not supported: "+i.parameter.codec);this.sendMsg(Ut.START,{options:e})}catch(t){"function"==typeof i.onMuxerError?i.onMuxerError(t):console.error(t)}}))}pause(){this.sendMsg(Ut.PAUSE)}resume(){this.sendMsg(Ut.RESUME)}stop(){this.sendMsg(Ut.STOP)}getInfo(){return this.encodeDetails}destroy(){this.sendMsg(Ut.DESTROY),this.encodeHandler&&(this.encodeHandler.removeEventListener("message",this.onMessage),this.encodeHandler.terminate(),this.encodeHandler=null)}};((t,e,i)=>{for(var n,r=Yt(e,i),o=t.length-1;o>=0;o--)(n=t[o])&&(r=n(e,i,r)||r);r&&Vt(e,i,r)})([Ht],zt.prototype,"onMessage");let Wt=zt;var Zt=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function qt(t){t=t||{};var e,i=this.context,n=m(i).getInstance().log,r=c(i).getInstance(),o=t.mediaPlayerModel,a=Math.random().toString(36).substr(2),s=void 0,l=void 0,A=void 0;function h(t){!t.error&&t.segments&&t.segments.length&&(s[t.mediaType]=t,2===Object.keys(s).length&&function(t){var e,i,a,l=function(t,e){var i=Zt(e,2),n=i[0],r=i[1];return t>n&&t<r},A=function(t){return t.reduce((function(t,e){return t+e.duration/e.timescale}),0)},c=s.audio.segments,h=[1,5],d=A(s.video.segments),p=A(c),g=Math.abs(d-p),f=d>p?"audio":"video",m=s[f].segments,y=s[f].representation;if("video"!==f&&(i=(e=y).codecs,a=e.id,"video"===e.adaptation.type?["avc","hev"].some((function(t){return i.includes(t)}))&&+a<=120:i.includes("mp4a")&&+a<=30280)&&o.getEnableSupplyFrame()&&l(g,h)){o.setCanSupplyFrame(!0);var b=m[m.length-1],v=b.timescale,E=new Dt,I=(g+.1)*v|0;E.duration=I,E.startTime=b.startTime+b.duration,E.timescale=v;var C=b.mediaRange.split("-");E.mediaRange=+C[1]+1+"-Infinity",m.push(E);try{var B=(E.startTime+E.duration)/E.timescale;y.adaptation.period.min=B;var w=o.getCachedDurationOffset("offset");y.adaptation.period.duration=parseFloat((w+y.adaptation.period.min).toFixed(5)),y.adaptation.period.originalDuration="audio"===f?p:d,n("[Extra Frames] Set real min period duration "+y.adaptation.period.duration+" ( "+w+" )")}catch(e){o.setSupplyFrameFailed(!0),n("[Extra Frames] Set real period error "+f)}if(f!==t.mediaType){var x=jt({},s[f]);delete x.type,r.trigger(u.SEGMENTS_LOADED,jt({},x))}}}(t),delete t.type,r.trigger(u.SEGMENTS_LOADED,jt({},t)))}function d(t){var e=t.mediaType,i=t.representationId,n=(t.mediaInfo,s[e].representation);if(!n||n.id!==i)return null;var r=n.codecs;return"video"===e?{codec:r}:{format:"f32",codec:r,sampleRate:44100,numberOfChannels:2,silent:!0}}function p(t,e,i){if(l=!1,!t)return n("[Extra Frames] Process Padding Frames failed: "+i.message),o.setSupplyFrameFailed(!0),void e(i);var a=t.mediaType;if(s[a]){s[a].segments.pop();var A=s[a].representation,c=A.adaptation.period.originalDuration;A.adaptation.period.min=c;var h=o.getCachedDurationOffset("offset");A.adaptation.period.duration=parseFloat((h+A.adaptation.period.min).toFixed(5)),n("[Extra Frames] Process Extra Frames Error:"+A.id),o.setSupplyFrameFailed(!0),r.trigger(u.EXTRA_FRAMES_LOADING_FAILED,{request:t,duration:c,error:i}),e(i)}}return e={reset:function(){r.off(u.SEGMENTS_LOADED_BEFORE_HANDLE,h,this),s={},A={},l=!1},getExtraFrames:function(t,e,i){if(!l){var r=void 0;try{l=!0;var o=t.startTime,a=t.duration,s=t.mediaType,c=t.representationId,h=t.range;if(A[s]&&A[s][c+"-"+h])return l=!1,void e(A[s][c+"-"+h],null,!0);var u=[],g=d(t);if(!g)return;(r=new Wt({mediaType:s,parameter:g,onFmp4Generated:function(t,i,o){if(t&&(u.push(t),o)){for(var a=new Uint8Array(u.reduce((function(t,e){return t+e.byteLength}),0)),d=0,p=0;p<u.length;p++)a.set(new Uint8Array(u[p]),d),d+=u[p].byteLength;u.length=0,A[s]||(A[s]={}),c&&(A[s][c+"-"+h]=a.buffer),l=!1,n("[Extra Frames] Process Extra Frames Success:"+c),e(a.buffer,null,!0),r.destroy()}},onMuxerError:function(e){l=!1,r.destroy(),p(t,i,e)}})).start({startTime:o,endTime:o+a})}catch(e){r&&r.destroy(),p(t,i,e)}}},getId:function(){return a},getPaddingFrames:function(t,e,i){if(!l){var r=void 0;try{l=!0;var o=[],a=t.representationId,s=t.timeRanges,A=t.mediaType;r=new Wt({mediaType:A,parameter:d({mediaType:A,representationId:a}),onFmp4Generated:function(t,i,a){if(t&&(o.push(t),a)){for(var s=new Uint8Array(o.reduce((function(t,e){return t+e.byteLength}),0)),A=0,c=0;c<o.length;c++)s.set(new Uint8Array(o[c]),A),A+=o[c].byteLength;o.length=0,l=!1,n("[Extra Frames] Process Padding Frames Success"),e(s.buffer,null,!0),r.destroy()}},onMuxerError:function(t){l=!1,r.destroy(),p(null,i,t)}});var c=s.start,h=s.end;r.start({startTime:c,endTime:h})}catch(t){r&&r.destroy(),p(null,i,t)}}}},function(){s={},A={audio:{},video:{}},l=!1,r.on(u.SEGMENTS_LOADED_BEFORE_HANDLE,h,this)}(),e}qt.__dashjs_factory_name="ExtraFramesHandler";var Jt=s.a.getSingletonFactory(qt),Kt=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){
var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Xt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},$t="bufferLoaded",te="bufferStalled",ee=.5,ie=.01,ne="BufferController",re=/(?:dvhe|dvh1|dva1|dvav)\.0[89]\./i;function oe(t){return"string"==typeof t&&re.test(t)&&function(){if("undefined"==typeof navigator)return 0;var t=navigator.userAgent.match(/(?:Chrome|Edg)\/(\d+)/i);return t?parseInt(t[1],10):0}()>=122}function ae(t,e){if(!oe(t))return t;var i,n=(i="hev1.2.4.L120.90",t.replace(/codecs="[^"]+"/i,'codecs="'+i+'"')),r="undefined"!=typeof window&&window.MediaSource;return r&&"function"==typeof r.isTypeSupported&&!r.isTypeSupported(n)?(e&&e("[DolbyVision] compat codec not supported by MSE, keeping original: "+t),t):(e&&e("[DolbyVision] replacing codec for SourceBuffer: "+t+" → "+n),n)}function se(t){if("string"!=typeof t)return"";var e=t.split(".")[0];return e?e.toLowerCase():""}function le(t,e){return!(!t||!e||t===e||(i=t,n=e,r=se(i),o=se(n),r&&o&&(r===o||"hev1"===r&&"hvc1"===o||"hvc1"===r&&"hev1"===o||"avc1"===r&&"avc3"===o||"avc3"===r&&"avc1"===o)));var i,n,r,o}function Ae(t){t=t||{};var e=this.context,i=c(e).getInstance(),r=t.metricsModel,a=t.mediaPlayerModel,s=t.errHandler,l=t.streamController,A=t.mediaController,h=t.adapter,d=t.abrController,p=t.playbackController,f=t.type,y=t.streamProcessor,b=Jt(e).getInstance(),v=void 0,E=void 0,I=void 0,B=void 0,w=void 0,Q=void 0,k=void 0,D=void 0,_=void 0,R=void 0,M=void 0,T=void 0,F=void 0,L=void 0,P=void 0,U=void 0,O=void 0,G=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,W=void 0,Z=void 0,j=void 0,q=void 0,J=void 0,K=void 0,X=void 0,$=void 0,tt=void 0,et=void 0,it=void 0,nt=void 0,rt=void 0,at=void 0,st=void 0,lt=void 0,At=void 0,ct=void 0;function ht(t){var e=t.time;if(R&&R.getBuffer()&&tt.length){var i=R.getBuffer().buffered;if(i&&i.length>=1&&i.end(i.length-1)-e<=.5){var n=tt.shift();n&&(K.switchByModifyTrackId(n),bt(n))}}}function dt(){if(K.setSwitchingState(!0),F){var t=p.getTime();F.end-t>2&&(!K.shouldSwitchTrack()&&F.trackSwitchInfo?K.revertDefaultTrack(F):(F.trackSwitchInfo&&K.revertDefaultTrack(F),K.switchByModifyTrackId(F)),bt(F,!0))}}function pt(){var t=p.getTime(),e=_t();0===e.length&&Lt().length>0&&(e=[{start:Lt().start(0)}]),e.length<=0||(e[e.length-1].end=t-1,e.forEach((function(t){t.force=!0})),Vt(e))}function gt(t){if(!O||!t||!y)return null;if(ct)return null;if(k)try{var n=y.getRepresentationInfoForQuality(I),r=ae(n&&n.codec,E),a=r?Object.assign({},t,{codec:r}):t;try{R=x(e).create(k,a,xt.bind(this)),lt=a.codec||null}catch(i){if(!r||r===t.codec)throw i;E("Rep-level codec failed ("+r+"), falling back to adaptation codec: "+t.codec),R=x(e).create(k,t,xt.bind(this)),lt=t.codec||null}"function"==typeof R.getBuffer().initialize&&R.getBuffer().initialize(f,y),i.trigger(u.BUFFER_CREATED,{mediaType:t.type})}catch(t){E("Caught error on create SourceBuffer: "+t),s.mediaSourceError("Error creating "+f+" source buffer.",o.MEDIA_SUPPORTED_ERROR,f)}else R=S(e).create(xt.bind(this));var l=y.getRepresentationInfoForQuality(I).MSETimeOffset||j;y.getRepresentationInfoForQuality(I)&&Wt(l)}function ft(t,i){var n,r=It(e).getInstance().parse(t.bytes).getBox(vt.EXHD);if(r){var o=r.entries;if(o&&o.length>0){void 0===i&&(i=o[0].media_offset);var a=(n=i,o.reduce((function(t,e,i){return e.media_offset<=n?i:t}),-1));if(-1!==a){var s=o[a];return Xt({},t,{chunkIndex:a,bytes:s.header_data})}}}return t}function mt(t){if(t.fragmentModel===y.getFragmentModel()){try{var r=It(e).getInstance().parse(t.chunk.bytes),o=r.getBox("elst"),s=r.getBox("mdhd"),l=r.getBox("mvhd"),A=s?s.timescale:1,c=l?l.timescale:1;if(o&&o.boxes&&o.boxes.length>1&&(o.boxes.forEach((function(t,e){var i=(t.segment_duration/(c||1)*1e3).toFixed(2),n=t.media_time>=0?(t.media_time/A*1e3).toFixed(2):"empty";E("  entry["+e+"]: segment_duration="+t.segment_duration+" ("+i+"ms), media_time="+t.media_time+" ("+n+"ms)")})),f===n.VIDEO)){var h=o.boxes.find((function(t){return t.media_time>0}));h?(st=h.media_time,at=st/A*1e3):st=0}}catch(t){}var d=ft(t.chunk);if("number"==typeof d.chunkIndex&&(it=!0,O.saveExhdChunk(t.chunk),E("【Variable Resolution】save exhd chunk for "+t.chunk.streamId+"-"+t.chunk.representationId+"-"+t.chunk.quality+"-"+t.chunk.index)),E("Init fragment finished loading saving to",f+"'s init cache"),O.save(d),E("Append Init fragment",f," with representationId:",t.chunk.representationId," and quality:",t.chunk.quality),f===n.VIDEO&&st>0){var p=at/1e3,g=/firefox/i.test(navigator.userAgent);if(R&&R.getBuffer()){var m=R.getBuffer().timestampOffset-p;R.updateTimestampOffset(g?Math.max(m,0):m)}else{var b=(j||0)-p;j=g?Math.max(b,0):b}rt||(rt=!0,i.trigger(u.FIX_AV_SYNC,{media:f,offset:at}))}R?R.setAppendWindowEnd(a.getCachedDurationOffset("duration")):J=function(){var t=a.getCachedDurationOffset("duration");R.setAppendWindowEnd(t)},bt(d)}}function yt(t){if(t.fragmentModel===y.getFragmentModel()){var r=t.chunk,o=r.bytes,s=r.quality,l=y.getRepresentationInfoForQuality(s),A=h.getEventsFor(l.mediaInfo,y),c=h.getEventsFor(l,y),d=a.getEnableMultipleAudioTracks();if(A&&A.length>0||c&&c.length>0){var g=function(t,i,n,r){for(var o=Math.max(!i||isNaN(i.startTime)?0:i.startTime,0),a=[],s=[],l=n.concat(r),A=0,c=l.length;A<c;A++)a[l[A].schemeIdUri]=l[A];for(var d=It(e).getInstance().parse(t).getBoxes("emsg"),u=0,p=d.length;u<p;u++){var g=h.getEvent(d[u],a,o);g&&s.push(g)}return s}(o,y.getFragmentModel().getRequests({state:C.FRAGMENT_MODEL_EXECUTED,quality:s,index:r.index})[0],A,c);y.getEventController().addInbandEvents(g)}if(z){W=r;var m=R&&Lt();m&&m.length>0&&p.getTimeToStreamEnd()>ee&&(E("Clearing buffer because track changed - "+(m.end(m.length-1)+.5)),Vt([{start:0,end:m.end(m.length-1)+.5,force:!0}]))}else if(f===n.AUDIO&&r.mediaInfo.type===n.AUDIO&&d)!function(t){var e;if(e=p.getTime(),0===t.index||t.start<=e&&e<=t.end)E("【Multi Audio】append multi audio chunk: "+t.index+"-"+t.start+"-"+t.end),K.switchByModifyTrackId(t),bt(t);else{var n={sender:v,index:t.index},r=tt.findIndex((function(e){return e.index===t.index}));if(-1!==r)return E("【Multi Audio】multi audio identical chunk emerged, replacing it: "+t.index),void(tt[r]=t);tt.push(t),t.fromMulti=!0,i.trigger(u.MULTI_AUDIO_TRACK_APPEND,n)}}(r);else{var b=function(t){if(!(it&&f===n.VIDEO&&t&&t.streamId&&t.representationId))return null;var e=t.streamId,i=t.representationId,r=t.quality,o=t.index,a=O.extract(e,i),s=O.extractExhdChunk(e,i);if(!a||!s)return null;var l=y.getFragmentModel().getRequests({state:C.FRAGMENT_MODEL_EXECUTED,quality:r,index:o})[0];if(!l||!l.range)return null;var A=y.getRepresentationInfoForQuality(r);if(!A||!A.indexRange)return null;var c=+A.indexRange.split("-")[1]+1;if(isNaN(c))return null;var h=+l.range.split("-")[0];if(isNaN(h))return null;var d=a.chunkIndex,u=ft(s,h-c);return u&&"number"==typeof u.chunkIndex&&u.chunkIndex!==d?(E("【Variable Resolution】find init chunk for "+e+"-"+i+"-"+r+"-"+o),u):null}(r);b&&(O.save(b),E("【Variable Resolution】save init chunk for "+r.streamId+"-"+r.representationId+"-"+r.quality+"-"+r.index),bt(b,!0)),bt(r)}}}function bt(t,e){if(At&&"InitializationSegment"!==t.segmentType)Y.push(t);else{if("video"===f&&"InitializationSegment"===t.segmentType&&R){var r=y.getRepresentationInfoForQuality(t.quality),o=ae(r&&r.codec,E);if((!a.getSupportsChangeType||!1!==a.getSupportsChangeType())&&"function"==typeof R.changeType&&o&&lt&&le(lt,o)){var s=lt;return At=!0,void R.changeType(o).then((function(){lt=o,At=!1,i.trigger(u.SOURCE_BUFFER_CHANGE_TYPE,Et("success",s,o,t)),bt(t,e)})).catch((function(e){var n=Et("failed",s,o,t,e);i.trigger(u.SOURCE_BUFFER_CHANGE_TYPE,Object.assign({},n)),i.trigger(u.SOURCE_BUFFER_CHANGE_TYPE_FAILED,Object.assign({},n)),E("SourceBuffer changeType failed: "+e),At=!1,Y.length&&(E("Discarding "+Y.length+" pending media chunks queued during changeType."),Y=[]),P=!1}))}
o&&(lt&&o!==lt&&E("changeType skipped (same family or disabled): "+lt+" → "+o),lt=o)}!P||e?(P=!0,F=t,t.startOffsetTime=A.getStartOffsetTimeForType(t.mediaInfo.type),R?R.append(t):Z.push(t),t.mediaInfo.type===n.VIDEO&&i.trigger(u.VIDEO_CHUNK_RECEIVED,{chunk:t})):Y.push(t)}}function Et(t,e,i,n,r){var o=Y.length>0?Y[0]:null;return{mediaType:f,status:t,oldCodec:e,newCodec:i,quality:n&&n.quality,representationId:n&&Number(n.representationId),index:o?o.index:D+1,segmentType:n&&n.segmentType,pendingMediaSegments:Y.length,error:r&&(r.message||r.name||String(r))}}function Ct(t){if(t.mediaType===f&&(J&&(J(),J=null),Z.length))for(var e=Date.now(),n=t.mediaType,r=d.getInitializeDate(),o=0;o<Z.length;o++){var s=Z[o];s&&s.mediaInfo.type===n&&R&&R.append&&(Z[o]=null,j&&(Wt(j),j=0),R.append(s),i.trigger(u.DELAY_TO_APPEND_TO_BUFFER,{mediaType:n,appendTime:e-r,createdTime:Date.now()-r,isPreload:!!a.getPreloadData()}))}}function wt(){if(!R)return null;var t=Lt();if(!t||t.length<2)return null;for(var e=p.getTime(),i=0;i<t.length-1;i++){var n=t.end(i),r=t.start(i+1),o=r-n;if(!(o<=ie||n<e))return{start:n,end:r,size:o}}return null}function xt(t){if(t.error){if(22===t.error.code&&(Q=.8*he(),E("Quota exceeded for type: "+f+", Critical Buffer: "+Q),Q>0)){var e=Math.max(.1*Q,1),r=Q-e;a.setBufferToKeep(parseFloat(e).toFixed(5)),a.setBufferAheadToKeep(parseFloat(r).toFixed(5))}return 22!==t.error.code&&de()||(E("Clearing playback buffer to overcome quota exceed situation for type: "+f),i.trigger(u.QUOTA_EXCEEDED,{sender:v,criticalBufferLevel:Q,mediaType:f}),Dt(),P=!1),void(t.chunk&&t.chunk.paddingFrames&&(E("[Extra Frames] Append padding frames failed for type: "+f),a.setSupplyFrameFailed(!0)))}if(t.chunk.paddingFrames){null===wt()&&(E("[Extra Frames] Append padding frames succeeded for type: "+f),i.trigger(u.PADDING_FRAMES_SUCCESS,{start:t.chunk.paddingRanges.start,end:t.chunk.paddingRanges.end,mediaType:f,message:"Padding frames succeeded for type: "+f}));var o=O.extract(y.getStreamInfo().id,y.getRepresentationInfoForQuality(I).id);o&&bt(o,!0),0===Y.length?P=!1:bt(Y.shift(),!0)}else{(F=t.chunk)&&!isNaN(F.index)&&(D=Math.max(F.index,D),Ut(),$=F.isSupplyChunk?F.start+"-"+F.end:"");var s=Lt();if(F.segmentType===N.MEDIA_SEGMENT_TYPE)Rt();else if(z){var l=p.getTime();E("[BufferController][",f,"] appendToBuffer seek target should be "+l),y.getScheduleController().setSeekTarget(l),h.setIndexHandlerTime(y,l)}var A={sender:v,quality:F.quality,startTime:F.start,index:F.index,fromMulti:F.fromMulti,bufferedRanges:s};F&&!F.endFragment?i.trigger(u.BYTES_APPENDED,A):F&&i.trigger(u.BYTES_APPENDED_END_FRAGMENT,A);try{var c=wt();if(c){c.size<=5&&c.end!==nt&&(nt=c.end,E("Gap detected after append for type: "+f+", from: "+c.start+", to: "+c.end),i.trigger(u.SPLIT_GAP_AFTER_APPEND_CHUNK,{from:c.start,to:c.end,mediaType:f,index:t.chunk.index}));var d=function(){if(f!==n.AUDIO||!R||et||!a.getEnableSupplyFrame())return null;var t=wt();if(!t)return null;var e=p.getTime();return t.size>5||e+3>t.start?null:(E("Buffer has gap, padding frames for type: "+f),a.setCanSupplyFrame(!0),{start:t.start,end:t.end})}();if(a.ableToSupplyFrame()&&d)return et=!0,void b.getPaddingFrames({timeRanges:d,mediaType:f,representationId:F.representationId},(function(t){var e={bytes:t,paddingFrames:!0,paddingRanges:d,mediaInfo:{type:f}};E("Padding frames for type: "+f+", start: "+d.start+", end: "+d.end),bt(e,!0),et=!1}),(function(){et=!1,E("Padding frames failed for type: "+f),0===Y.length?P=!1:bt(Y.shift(),!0)}))}}catch(t){E("Error while checking gap after append: "+t.message),et=!1}0===Y.length?P=!1:bt(Y.shift(),!0)}}function Qt(t){I!==t.newQuality&&f===t.mediaType&&y.getStreamInfo().id===t.streamInfo.id&&(Wt(y.getRepresentationInfoForQuality(t.newQuality).MSETimeOffset),I=t.newQuality)}function St(){if(B&&(H=!0,B=!1,_=Number.POSITIVE_INFINITY),Y=[],P=!1,f!==n.FRAGMENTED_TEXT){var t=Lt(),e=a.getEnableMultipleAudioTracks(),i=!0;if(t&&t.length>0){var r=p.getTime();if($){var o=$.split("-"),s=Kt(o,2),l=s[0];if(s[1],r<l){var A=O.extract(y.getStreamInfo().id,y.getRepresentationInfoForQuality(I).id);A&&bt(A)}}for(var c=0,h=t.length;c<h;c++)r>=t.start(c)&&r<=t.end(c)-1&&(i=!1)}i?(f===n.AUDIO&&e&&function(t){if(tt.length>0){var e=tt.findIndex((function(e){return e.start<=t&&e.end>t}));if(-1!==e){var i=tt[e],n=tt.slice(e+1);tt=n,i&&(E("【Multi Audio】find multi audio chunk in buffer list after seeking: "+i.index),K.switchByModifyTrackId(i),bt(i))}else tt.length=0}}(p.getTime()),y.getFragmentModel().clearExecutedRequestBySeeking(),Dt()):Rt()}else Rt();G=void 0}function Dt(){var t=_t();t&&0!==t.length||Rt(),Vt(t)}function _t(){var t=[],e=Lt();if(!e||0===e.length)return t;var i=p.getTime(),n=e.end(e.length-1)+.5,r=y.getFragmentModel().getRequests({state:C.FRAGMENT_MODEL_EXECUTED,time:i,threshold:ie})[0];if(r){var o={start:0,end:r.startTime-ee},a=y.getFragmentModel().getRequests({state:C.FRAGMENT_MODEL_EXECUTED,time:r.startTime-r.duration/2,threshold:ie})[0];a&&a.startTime!=r.startTime&&(o.end=a.startTime),o.start<o.end&&o.end>e.start(0)&&t.push(o);var s={start:r.startTime+r.duration+ee,end:n},l=y.getFragmentModel().getRequests({state:C.FRAGMENT_MODEL_EXECUTED,time:r.startTime+r.duration+ee,threshold:ie})[0];l&&l.startTime!==r.startTime&&(s.start=l.startTime+l.duration+ee),s.start<s.end&&s.start<n&&t.push(s)}else E("getAllRangesWithSafetyFactor for",f,"- No request found in current time position, removing full buffer 0 -",n),t.push({start:0,end:n});return t}function Rt(){z||(Nt(),Pt())}function Mt(){Ot()}function Tt(){Ot()}function Ft(t,e){var i=R&&Lt(),n=0,r=0,o=null,a=null,s=0,l=void 0,A=void 0,c=e||.15;if(null!=i){for(A=0,l=i.length;A<l;A++)if(n=i.start(A),r=i.end(A),null===o)s=Math.abs(n-t),(t>=n&&t<r||s<=c)&&(o=n,a=r);else{if(!((s=n-a)<=c))break;a=r}if(null!==o)return{start:o,end:a}}return null}function Lt(){if(!R)return[];var t=R.getAllBufferRanges();if(0===t.length)return[];for(var e=t.start(0),i=t.start(0),n=[],r=0;r<t.length;r++)Math.abs(t.start(r)-i)<=.5||Math.abs(t.start(r)-i-5)<=.1?(i=t.end(r),Math.abs(t.start(r)-i-5)<=.1&&(E("Browser has dropped five seconds buffer from "+i+"s to "+t.start(r)+"s"),y.getFragmentModel().removeExecutedRequestsInTimeRange(i,t.start(r)),h.setIndexHandlerTime(y,i))):(i>e&&n.push({start:e,end:i}),e=t.start(r),i=t.end(r));return i>e&&n.push({start:e,end:i}),{length:n.length,start:function(t){return n[t].start},end:function(t){return n[t].end}}}function Nt(){var t,e,n;p&&(t=function(){var t=p.getTime();if(G){var e=Lt();e&&e.length&&(t=Math.max(e.start(0),G))}return t}()||0,w=null===(n=Ft(t,e))?0:n.end-t,i.trigger(u.BUFFER_LEVEL_UPDATED,{sender:v,bufferLevel:w}),Ot())}function Pt(){y&&l&&y.getStreamInfo().id===l.getActiveStreamInfo().id&&(r.addBufferState(f,T,y.getScheduleController().getBufferTarget()),r.addBufferLevel(f,new Date,1e3*w))}function Ut(){D>=_-1&&!B&&void 0===R.discharge&&(B=!0,E("[BufferController]["+f+"] checkIfBufferingCompleted trigger BUFFERING_COMPLETED"),i.trigger(u.BUFFERING_COMPLETED,{sender:v,streamInfo:y.getStreamInfo()}))}function Ot(){if("audio"===f||"video"===f){var t=p.getTimeToStreamEnd()-w;if(H&&!B&&p&&t<.5)if(p.getTimeToStreamEnd()>.5){for(var e=h.getIndexHandlerTime(y),n=y.getIndexHandler(),r=y.getCurrentRepresentationInfo(),o=n.getIndex(),s=h.getFragmentRequestForTime(y,r,e,{keepIdx:!1});s&&s.action!==g.ACTION_COMPLETE&&y.getFragmentModel().isFragmentLoaded(s);)s=h.getNextFragmentRequest(y,r);n.setIndex(o),s&&s.action===g.ACTION_COMPLETE?(B=!0,H=!1,E("[BufferController]["+f+"] checkIfSufficientBuffer trigger BUFFERING_COMPLETED"),i.trigger(u.BUFFERING_COMPLETED,{sender:v,streamInfo:y.getStreamInfo()})):B=!1}else E("[BufferController]["+f+"] handle the fragment which duration may be less than 0.5s");w<ee&&!B?Gt(te):(B||w>=a.getStableBufferTime())&&Gt($t)}}function Gt(t){T===t||t===te&&0===p.getTime()||(T=t,Pt(),i.trigger(u.BUFFER_LEVEL_STATE_CHANGED,{sender:v,state:t,mediaType:f,streamInfo:y.getStreamInfo()}),i.trigger(t===$t?u.BUFFER_LOADED:u.BUFFER_EMPTY,{mediaType:f}),E(t===$t?"Got enough buffer to start for "+f:"Waiting for more buffer before starting playback for "+f))}function Ht(){R&&f!==n.FRAGMENTED_TEXT&&(B||Vt(function(){var t=[],e=Lt()
;if(!e||0===e.length)return t;var i=p.getTime(),n={start:Math.max(0,i-a.getBufferToKeep()),end:i+a.getBufferAheadToKeep()},r=y.getFragmentModel().getRequests({state:C.FRAGMENT_MODEL_EXECUTED,time:i,threshold:ie})[0];if(r)n.start=Math.min(r.startTime,n.start),n.end=Math.max(r.startTime+r.duration,n.end);else if(0===i&&p.getIsDynamic())return[];if(e.start(0)<=n.start){for(var o={start:0,end:n.start},s=0;s<e.length&&e.end(s)<=n.start;s++)o.end=e.end(s);o.start<o.end&&t.push(o)}if(e.end(e.length-1)>=n.end){var l={start:n.end,end:e.end(e.length-1)+ie};l.start<l.end&&t.push(l)}return t}()))}function Vt(t){t&&R&&0!==t.length&&(V.push.apply(V,t),U||Yt())}function Yt(){if(0===V.length||!R)return E("Nothing to prune, halt pruning"),V=[],void(U=!1);var t=R.getBuffer();if(!t||!t.buffered||0===t.buffered.length)return E("SourceBuffer is empty (or does not exist), halt pruning"),V=[],void(U=!1);var e=V.shift();E("Removing",f,"buffer from:",e.start,"to",e.end),U=!0;var i=p.getTime();i<e.end&&(B=!1,D=0,z||(y.getScheduleController().setSeekTarget(i),h.setIndexHandlerTime(y,i)));var n=l.getDuration()-1;n&&0===e.start&&e.end>=n&&(e.force=!0),R.remove(e.start,e.end,e.force)}function zt(t){R===t.buffer&&(E("[BufferController][",f,"] onRemoved buffer from:",t.from,"to",t.to),0===V.length&&(U=!1),t.unintended&&(E("[BufferController][",f,"] detected unintended removal from:",t.from,"to",t.to,"setting index handler time to",t.from),h.setIndexHandlerTime(y,t.from)),U?Yt():(z?(z=!1,W&&bt(W)):(E("onRemoved : call updateBufferLevel"),Nt()),i.trigger(u.BUFFER_CLEARED,{sender:v,from:t.from,to:t.to,unintended:t.unintended,hasEnoughSpaceToAppend:de()})))}function Wt(t){0!==t&&(R&&R.updateTimestampOffset?R.updateTimestampOffset(t):j=t)}function Zt(t){if(t.sender.getStreamProcessor()===y&&!t.error){var e=0;try{e=t.currentRepresentation.segmentAvailabilityRange.start}catch(t){}Wt(e)}}function jt(t){t.fragmentModel===y.getFragmentModel()&&(_=t.request.index,Ut())}function qt(t){var e=R&&Lt();e&&t.newMediaInfo.type===f&&t.newMediaInfo.streamInfo.id===y.getStreamInfo().id&&(E("[BufferController]["+f+"] track change asked"),A.getSwitchMode(f)===ut.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&e&&e.length>0&&p.getTimeToStreamEnd()>ee&&(B=!1,_=Number.POSITIVE_INFINITY))}function re(){++L*(a.getWallclockTimeUpdateInterval()/1e3)>=a.getBufferPruningInterval()&&(L=0,Ht())}function oe(){Ot()}function se(t){t.request.mediaType===f&&(_=t.request.index-1,Ut())}function Ae(){if(a.getAppendingSourceState()){B=!1,_=Number.POSITIVE_INFINITY,O.reset();var t=a.getCachedDurationOffset("offset");h.setIndexHandlerTime(y,t),y.resetPreloadData(),y.getFragmentModel().resetInitialSettings()}}function ce(t,e){k=t,R&&e&&"function"==typeof R.discharge&&(M=R,gt(e))}function he(){var t,e=Lt(),i=0,n=void 0;if(!e)return i;for(n=0,t=e.length;n<t;n++)i+=e.end(n)-e.start(n);return i}function de(){return he()<Q}function ue(t){Q=Number.POSITIVE_INFINITY,T=void 0,I=ot.QUALITY_DEFAULT,_=Number.POSITIVE_INFINITY,D=0,F=null,B=!1,P=!1,U=!1,H=!1,w=0,L=0,V=[],Z=[],st=0,lt=null,At=!1,R&&(t||R.abort(),R.reset(),R=null),z=!1,tt=[],nt=null}return v={getBufferControllerType:function(){return ne},initialize:function(t){ce(t),I=d.getQualityFor(f,y.getStreamInfo()),i.on(u.DATA_UPDATE_COMPLETED,Zt,this),i.on(u.INIT_FRAGMENT_LOADED,mt,this),i.on(u.MEDIA_FRAGMENT_LOADED,yt,this),i.on(u.QUALITY_CHANGE_REQUESTED,Qt,this),i.on(u.STREAM_COMPLETED,jt,this),i.on(u.PLAYBACK_PLAYING,Tt,this),i.on(u.PLAYBACK_PROGRESS,Rt,this),i.on(u.PLAYBACK_TIME_UPDATED,Rt,this),i.on(u.PLAYBACK_RATE_CHANGED,oe,this),i.on(u.PLAYBACK_SEEKING,St,this),i.on(u.PLAYBACK_STALLED,Mt,this),i.on(u.WALLCLOCK_TIME_UPDATED,re,this),i.on(u.CURRENT_TRACK_CHANGED,qt,this,c.EVENT_PRIORITY_HIGH),i.on(u.SOURCEBUFFER_REMOVE_COMPLETED,zt,this),i.on(u.BUFFER_CREATED,Ct,this),i.on(u.APPENDING_NEXT_SOURCE,Ae,this),i.on(u.EXTRA_FRAMES_LOADING_FAILED,se,this),f===n.AUDIO&&a.getEnableMultipleAudioTracks()&&(i.on(u.SWITCH_AUDIO_TRACK_REQUEST,dt,this),i.on(u.SWITCH_AUDIO_TRACK_RENDERED,pt,this),i.on(u.PLAYBACK_TIME_UPDATED,ht,this))},createBuffer:gt,removeBuffer:function(){if(R){E("[BufferController]["+f+"] removeBuffer start readyState="+(k&&k.readyState)+" isBufferRemoved="+!!ct);try{if("function"==typeof R.reset)R.reset();else{if(R.abort)try{R.abort()}catch(t){console.error("removeBuffer abort error: "+t.message)}var t=R.getBuffer();!t||"open"!==k.readyState&&"ended"!==k.readyState||(Array.from(k.sourceBuffers).includes(t)?(E("[BufferController]["+f+"] removeBuffer calling mediaSource.removeSourceBuffer"),k.removeSourceBuffer(t)):(E("[BufferController]["+f+"] removeBuffer skip removeSourceBuffer because SourceBuffer already detached"),console.warn("SourceBuffer for "+f+" was not found in MediaSource.sourceBuffers list. Skipping removal.")))}}catch(t){console.error("removeBuffer error: "+t.message+" name: "+t.name)}finally{R=null,B=!1,H=!1,E("[BufferController]["+f+"] removeBuffer completed isBufferRemoved="+!!(ct=!0))}}},dischargePreBuffer:function(){if(R&&M&&"function"==typeof M.discharge){var t=M.getAllBufferRanges();if(t.length>0){for(var e="Beginning "+f+"PreBuffer discharge, adding buffer for:",i=0;i<t.length;i++)e+=" start: "+t.start(i)+", end: "+t.end(i)+";";E(e)}else E("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");for(var n=M.discharge(),r=null,o=0;o<n.length;o++){var a=n[o],s=O.extract(a.streamId,a.representationId);s&&(r!==s&&(R.append(s),r=s),R.append(a))}M.reset(),M=null}},getType:function(){return f},getStreamProcessor:function(){return y},setSeekStartTime:function(t){G=t},getBuffer:function(){return R},getBufferLevel:function(){return w},getRangeAt:Ft,setMediaSource:ce,getMediaSource:function(){return k},getIsBufferingCompleted:function(){return B},switchInitData:function(t,e,n){var r=O.extract(t,e);if(z=!0===n&&n,q=a.getAppendingSourceState(),r&&!q){var o=y.getRepresentationInfoForQuality(r.quality),s=ae(o&&o.codec,E),l=!a.getSupportsChangeType||!1!==a.getSupportsChangeType();if("video"===f&&R&&l&&"function"==typeof R.changeType&&s&&lt&&le(lt,s)){var A=lt;At=!0,R.changeType(s).then((function(){lt=s,At=!1,i.trigger(u.SOURCE_BUFFER_CHANGE_TYPE,Et("success",A,s,r)),E("Append Init fragment",f," with representationId:",r.representationId," and quality:",r.quality),bt(ft(r))})).catch((function(t){var e=Et("failed",A,s,r,t);i.trigger(u.SOURCE_BUFFER_CHANGE_TYPE,Object.assign({},e)),i.trigger(u.SOURCE_BUFFER_CHANGE_TYPE_FAILED,Object.assign({},e)),E("SourceBuffer changeType failed: "+t),At=!1,Y.length&&(E("Discarding "+Y.length+" pending media chunks queued during changeType."),Y=[]),P=!1}))}else"video"===f&&s&&(lt&&s!==lt&&E("changeType skipped (same family or disabled): "+lt+" → "+s),lt=s),E("Append Init fragment",f," with representationId:",r.representationId," and quality:",r.quality),bt(ft(r))}else q&&(q=!1,z=!1),i.trigger(u.INIT_REQUESTED,{sender:v})},getIsPruningInProgress:function(){return U},reset:function(t){i.off(u.DATA_UPDATE_COMPLETED,Zt,this),i.off(u.QUALITY_CHANGE_REQUESTED,Qt,this),i.off(u.INIT_FRAGMENT_LOADED,mt,this),i.off(u.MEDIA_FRAGMENT_LOADED,yt,this),i.off(u.STREAM_COMPLETED,jt,this),i.off(u.CURRENT_TRACK_CHANGED,qt,this),i.off(u.PLAYBACK_PLAYING,Tt,this),i.off(u.PLAYBACK_PROGRESS,Rt,this),i.off(u.PLAYBACK_TIME_UPDATED,Rt,this),i.off(u.PLAYBACK_RATE_CHANGED,oe,this),i.off(u.PLAYBACK_SEEKING,St,this),i.off(u.PLAYBACK_STALLED,Mt,this),i.off(u.WALLCLOCK_TIME_UPDATED,re,this),i.off(u.SOURCEBUFFER_REMOVE_COMPLETED,zt,this),i.off(u.BUFFER_CREATED,Ct,this),i.off(u.APPENDING_NEXT_SOURCE,Ae,this),i.off(u.EXTRA_FRAMES_LOADING_FAILED,se,this),f===n.AUDIO&&a.getEnableMultipleAudioTracks()&&(i.off(u.SWITCH_AUDIO_TRACK_REQUEST,dt,this),i.off(u.SWITCH_AUDIO_TRACK_RENDERED,pt,this),i.off(u.PLAYBACK_TIME_UPDATED,ht,this),K&&(K.reset(),K=null)),clearInterval(X),X=-1,ue(t)},getStoreBufferLevel:function(){if(tt.length){var t=p.getTime();return tt[tt.length-1].end-t}return 0},getMultiBufferRanges:function(){for(var t=Lt(),e=[],i=0;i<t.length;i++)e.push({start:t.start(i),end:t.end(i)});if(tt&&tt.length>0){var n=e.length,r=tt[tt.length-1].end;e.length>0?e[n-1].end=r:e.push({start:tt[0].start,end:r})}return e},getBufferRanges:Lt},
E=m(e).getInstance().log.bind(v),O=Bt(e).getInstance(),Y=[],Z=[],j=0,$="",et=!1,rt=!1,at=0,f===n.AUDIO&&a.getEnableMultipleAudioTracks()&&(E("【Multi Audio】enable multiple audio tracks and init audio track controller"),(K=kt(e).create({bufferController:v,mediaPlayerModel:a,playbackController:p})).initialize(),X=setInterval((function(){ht({time:p.getTime()})}),50)),ue(),v}Ae.__dashjs_factory_name=ne;var ce=s.a.getClassFactory(Ae);ce.BUFFER_LOADED=$t,ce.BUFFER_EMPTY=te,s.a.updateClassFactory(Ae.__dashjs_factory_name,ce);var he=ce,de=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null,this.r=null};function ue(){var t=void 0;return{initialize:function(e){if(t=new de,!e)return null;var i=e.indexOf("#");if(-1!==i)for(var n=e.substr(i+1).split("&"),r=0,o=n.length;r<o;++r){var a=n[r],s=a.indexOf("=");if(-1!==s){var l=a.substring(0,s);t.hasOwnProperty(l)&&(t[l]=a.substr(s+1))}}},getURIFragmentData:function(){return t}}}ue.__dashjs_factory_name="URIFragmentModel";var pe=s.a.getSingletonFactory(ue);function ge(){var t,e=this.context,i=m(e).getInstance().log,r=c(e).getInstance(),o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0,p=void 0,g=void 0,f=void 0,y=void 0,b=void 0,v=void 0,E=void 0,I=void 0,C=void 0,B=void 0,w=void 0;function x(t){!E&&t.fromStreamInfo&&void 0!==f[t.fromStreamInfo.id]&&(delete b[t.fromStreamInfo.id],delete f[t.fromStreamInfo.id])}function Q(){var t=U(!0),e=E?t-v.start:0;return parseFloat((t+(v.duration-e)-M()).toFixed(5))}function S(){if(v&&d&&d.getElement())return d.play();C=!0}function k(){return v&&d?d.isPaused():null}function D(){v&&d&&d.pause()}function _(){return v&&d?d.isSeeking():null}function R(t){if(v&&d){r.trigger(u.PLAYBACK_SEEK_ASKED);var e=M();i("Requesting seek to time: "+t+" from "+e),d.setCurrentTime(t)}}function M(){return v&&d?d.getTime():null}function T(){return v&&d?d.getPlaybackRate():null}function F(){return v&&d?d.getEnded():null}function L(){return E}function N(){p=NaN,C=!1,f={},y=0,w=0,b={},d&&(r.off(u.DATA_UPDATE_COMPLETED,V,this),r.off(u.BUFFER_LEVEL_STATE_CHANGED,rt,this),r.off(u.BYTES_APPENDED_END_FRAGMENT,nt,this),r.off(u.PERIOD_SWITCH_STARTED,x,this),G(),d.removeEventListener("canplay",Y),d.removeEventListener("play",z),d.removeEventListener("waiting",W),d.removeEventListener("playing",Z),d.removeEventListener("pause",j),d.removeEventListener("error",it),d.removeEventListener("seeking",q),d.removeEventListener("seeked",J),d.removeEventListener("timeupdate",K),d.removeEventListener("progress",X),d.removeEventListener("ratechange",$),d.removeEventListener("loadedmetadata",tt),d.removeEventListener("ended",et),d.removeEventListener("stalled",ot)),d=null,v=null,E=null,g=null}function P(){var t=pe(e).getInstance().getURIFragmentData(),i=void 0;if(t){i={};var n=parseInt(t.r,10);n>=0&&v&&n<v.manifestInfo.DVRWindowSize&&null===t.t&&(t.t=Math.floor(Date.now()/1e3)-v.manifestInfo.DVRWindowSize+n),i.fragS=parseInt(t.s,10),i.fragT=parseInt(t.t,10)}return i}function U(t,e){var i=void 0,n=NaN,r=P();if(n=r?t?v.start||I.getPlayAt():isNaN(r.fragS)?r.fragT:r.fragS:I.getPlayAt()||0,E)isNaN(n)||((i=n-v.manifestInfo.availableFrom.getTime()/1e3)>p||i<(isNaN(e)?NaN:e-v.manifestInfo.DVRWindowSize))&&(i=null),i=i||p;else if(!isNaN(n)&&n<Math.max(v.manifestInfo.duration,v.duration)&&n>=0)i=n;else{var o=f[v.id];i=void 0!==o?Math.max(void 0!==o.audio?o.audio:0,void 0!==o.video?o.video:0,v.start):v.start}return i}function O(){null===g&&(g=setInterval((function(){var t;r.trigger(u.WALLCLOCK_TIME_UPDATED,{isDynamic:E,time:new Date}),L()&&k()&&(t=Date.now(),(!B||t>B+500)&&(B=t,K()))}),I.getWallclockTimeUpdateInterval()))}function G(){clearInterval(g),g=null}function H(){if(!k()&&E&&0!==d.getReadyState()){var t=M(),e=function(t){var e=a.getReadOnlyMetricsFor(n.VIDEO)||a.getReadOnlyMetricsFor(n.AUDIO),i=s.getCurrentDVRInfo(e),r=i?i.range:null,o=void 0;if(!r)return NaN;if(t>r.end)o=Math.max(r.end-2*v.manifestInfo.minBufferTime,r.start);else{if(!(t+.25<r.start))return t;o=r.start}return o}(t);!isNaN(e)&&e!==t&&R(e)}}function V(t){if(!t.error){var e=h.convertDataToRepresentationInfo(t.currentRepresentation).mediaInfo.streamInfo;v.id===e.id&&(v=e,H())}}function Y(){r.trigger(u.CAN_PLAY)}function z(){i("Native video element event: play"),I.getStartPlaybackTime()||I.setStartPlaybackTime((new Date).getTime()),H(),O(),r.trigger(u.PLAYBACK_STARTED,{startTime:M()})}function W(){i("Native video element event: waiting"),r.trigger(u.PLAYBACK_WAITING,{playingTime:M()})}function Z(){i("Native video element event: playing"),r.trigger(u.PLAYBACK_PLAYING,{playingTime:M()})}function j(){i("Native video element event: pause"),r.trigger(u.PLAYBACK_PAUSED,{ended:F()})}function q(){var t=M();i("Seeking to: "+t),O(),I&&I.setLastStartSeekTime((new Date).getTime()),r.trigger(u.PLAYBACK_SEEKING,{seekTime:t})}function J(){i("Native video element event: seeked"),r.trigger(u.PLAYBACK_SEEKED)}function K(){var t=M();r.trigger(u.PLAYBACK_TIME_UPDATED,{timeToEnd:Q(),time:t})}function X(){r.trigger(u.PLAYBACK_PROGRESS)}function $(){var t=T();i("Native video element event: ratechange: "+t+" currentTime: "+M()),r.trigger(u.PLAYBACK_RATE_CHANGED,{playbackRate:t})}function tt(){i("Native video element event: loadedmetadata"),r.trigger(u.PLAYBACK_METADATA_LOADED),O()}function et(){i("Native video element event: ended"),D(),G(),r.trigger(u.PLAYBACK_ENDED,{isNativeEnded:!0})}function it(t){var e=t.target||t.srcElement;r.trigger(u.PLAYBACK_ERROR,{error:e.error})}function nt(t){var e,n=void 0,r=t.bufferedRanges;if(r&&r.length&&(!f[v.id]||!0!==f[v.id].started)){var a=t.sender.getType();void 0===b[v.id]&&(b[v.id]=[]),b[v.id][a]=r,void 0===f[v.id]&&(f[v.id]=[],f[v.id].started=!1),void 0===f[v.id][a]&&(f[v.id][a]=Math.max(r.start(0),v.start));var s=o.isVideoTrackPresent(),l=o.isAudioTrackPresent();if(e=U(!1),l&&s){if(!isNaN(f[v.id].audio)&&!isNaN(f[v.id].video)&&(f[v.id].audio<f[v.id].video?(n=f[v.id].video>e?f[v.id].video:e,r=b[v.id].audio):(n=f[v.id].audio>e?f[v.id].audio:e,r=b[v.id].video),function(t,e){if(e&&e.length>0)for(var i=0,n=e.length;i<n;i++)if(t>=e.start(i)&&t<e.end(i))return!0;return!1}(n,r))){var A=M();!_()&&0!==n&&n>A&&(R(n+.2),i("Playback controller seek hack",n+.2)),f[v.id].started=!0}}else f[v.id][a]&&(n=f[v.id][a]>e?f[v.id][a]:e,_()||R(n),f[v.id].started=!0)}}function rt(t){t.streamInfo.id===v.id&&d.setStallState(t.mediaType,t.state===he.BUFFER_EMPTY)}function ot(t){i("Native video element event: stalled",t),r.trigger(u.PLAYBACK_STALLED,{e:t})}return t={initialize:function(t){v=t,d.addEventListener("canplay",Y),d.addEventListener("play",z),d.addEventListener("waiting",W),d.addEventListener("playing",Z),d.addEventListener("pause",j),d.addEventListener("error",it),d.addEventListener("seeking",q),d.addEventListener("seeked",J),d.addEventListener("timeupdate",K),d.addEventListener("progress",X),d.addEventListener("ratechange",$),d.addEventListener("loadedmetadata",tt),d.addEventListener("ended",et),d.addEventListener("stalled",ot),E=v.manifestInfo.isDynamic,p=v.start,r.on(u.DATA_UPDATE_COMPLETED,V,this),r.on(u.BYTES_APPENDED_END_FRAGMENT,nt,this),r.on(u.BUFFER_LEVEL_STATE_CHANGED,rt,this),r.on(u.PERIOD_SWITCH_STARTED,x,this),C&&(C=!1,S())},setConfig:function(t){t&&(t.streamController&&(o=t.streamController),t.metricsModel&&(a=t.metricsModel),t.dashMetrics&&(s=t.dashMetrics),t.manifestModel&&(l=t.manifestModel),t.dashManifestModel&&(A=t.dashManifestModel),t.mediaPlayerModel&&(I=t.mediaPlayerModel),t.adapter&&(h=t.adapter),t.videoModel&&(d=t.videoModel))},getStartTimeFromUriParameters:P,getStreamStartTime:U,getTimeToStreamEnd:Q,getTime:M,getPlaybackRate:T,getPlayedRanges:function(){return v&&d?d.getPlayedRanges():null},getEnded:F,getIsDynamic:L,getStreamController:function(){return o},setLiveStartTime:function(t){p=t},getLiveStartTime:function(){return p},computeLiveDelay:function(t,e){var i=A.getMpd(l.getValue()),r=void 0,o=void 0
;if(r=I.getUseSuggestedPresentationDelay()&&i.hasOwnProperty(n.SUGGESTED_PRESENTATION_DELAY)?i.suggestedPresentationDelay:I.getLowLatencyEnabled()?0:I.getLiveDelay()?I.getLiveDelay():isNaN(t)?2*v.manifestInfo.minBufferTime:t*I.getLiveDelayFragmentCount(),i.availabilityStartTime&&(w=i.availabilityStartTime.getTime()),e>0){var a=Math.max(e-10,e/2);o=Math.min(r,a)}else o=r;return y=o,o},getLiveDelay:function(){return y},getCurrentLiveLatency:function(){if(!E||isNaN(w))return NaN;var t=M();return isNaN(t)||0===t?0:(Math.round((new Date).getTime()-(1e3*t+w))/1e3).toFixed(3)},play:S,isPaused:k,pause:D,isSeeking:_,seek:R,getDuration:function(){return d.getElement().duration},reset:N},N(),t}ge.__dashjs_factory_name="PlaybackController";var fe=s.a.getSingletonFactory(ge);function me(t){var e=(t=t||{}).timelineConverter,i=t.streamProcessor;return{getLiveEdge:function(){!function(){if(!(e&&e.hasOwnProperty("getExpectedLiveEdge")&&i&&i.hasOwnProperty("getCurrentRepresentationInfo")))throw new Error("Missing config parameter(s)")}();var t=i.getCurrentRepresentationInfo(),n=t.DVRWindow.end;return t.useCalculatedLiveEdgeTime&&(n=e.getExpectedLiveEdge(),e.setClientTimeOffset(n-t.DVRWindow.end)),n},reset:function(){e=null,i=null}}}me.__dashjs_factory_name="LiveEdgeFinder";var ye=s.a.getClassFactory(me);function be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var ve=function t(){be(this,t),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]};ve.INITIAL_PLAYOUT_START_REASON="initial_playout",ve.SEEK_START_REASON="seek",ve.RESUME_FROM_PAUSE_START_REASON="resume",ve.METRICS_COLLECTION_START_REASON="metrics_collection_start";var Ee=function t(){be(this,t),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null};function Ie(t){t=t||{};var e=!1,i=this.context,r=c(i).getInstance(),o=t.dashMetrics,a=t.metricsModel,s=t.mediaPlayerModel,l=t.abrController;function A(t,i,r){var A=NaN,c=t.getCurrentRepresentationInfo();if(i===n.FRAGMENTED_TEXT);else if(i===n.AUDIO&&r){var h=o.getCurrentBufferLevel(a.getReadOnlyMetricsFor(n.VIDEO));A=isNaN(c.fragmentDuration)?h:Math.max(h,c.fragmentDuration),e&&(A=Math.min(A,s.getStableBufferTime()))}else{var d=c.mediaInfo.streamInfo;A=l.isPlayingAtTopQuality(d)&&!e?d.manifestInfo.duration>=s.getLongFormContentDurationThreshold()?s.getBufferTimeAtTopQualityLongForm():s.getBufferTimeAtTopQuality():s.getStableBufferTime()}return A}function h(){e=!0}var d={execute:function(t,e,i,n){return(n&&n+o.getCurrentBufferLevel(a.getReadOnlyMetricsFor(e))||o.getCurrentBufferLevel(a.getReadOnlyMetricsFor(e)))<A(t,e,i)},getBufferTarget:A};return function(){r.on(u.QUOTA_EXCEEDED,h,this)}(),d}Ee.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",Ee.REBUFFERING_REASON="rebuffering",Ee.USER_REQUEST_STOP_REASON="user_request",Ee.END_OF_PERIOD_STOP_REASON="end_of_period",Ee.END_OF_CONTENT_STOP_REASON="end_of_content",Ee.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",Ee.FAILURE_STOP_REASON="failure",Ie.__dashjs_factory_name="BufferLevelRule";var Ce=s.a.getClassFactory(Ie);function Be(t){t=t||{};var e=this.context,i=m(e).getInstance().log,n=t.adapter;return{execute:function(t,e){var r=t.getCurrentRepresentationInfo(),o=r.mediaInfo.type,a=t.getScheduleController(),s=a.getSeekTarget(),l=!isNaN(s),A=t.getBufferController(),c=l?s:n.getIndexHandlerTime(t);if(isNaN(c))return null;if(l&&a.setSeekTarget(NaN),A){var h=A.getRangeAt(c);null===h||l||(i("Prior to making a request for time, NextFragmentRequestRule is aligning index handler's currentTime with bufferedRange.end for",o,".",c,"was changed to",h.end),c=h.end)}var d=void 0;if(e)c=e.startTime+e.duration/2,d=n.getFragmentRequestForTime(t,r,c,{timeThreshold:0,ignoreIsFinished:!0});else{for(d=n.getFragmentRequestForTime(t,r,c,{keepIdx:!l});d&&d.action!==g.ACTION_COMPLETE&&t.getFragmentModel().isFragmentLoaded(d);)d=n.getNextFragmentRequest(t,r);d&&(isNaN(d.startTime+d.duration)||n.setIndexHandlerTime(t,d.startTime+d.duration),d.delayLoadingTime=(new Date).getTime()+a.getTimeToLoadDelay(),a.setTimeToLoadDelay(0))}return d}}}Be.__dashjs_factory_name="NextFragmentRequestRule";var we=s.a.getClassFactory(Be);function xe(t){t=t||{};var e=this.context,i=c(e).getInstance(),r=t.metricsModel,o=t.adapter,a=t.dashMetrics,s=t.dashManifestModel,l=t.timelineConverter,A=t.mediaPlayerModel,h=t.abrController,d=t.playbackController,p=t.streamController,g=t.type,f=t.streamProcessor,y=t.mediaController,b=void 0,v=void 0,E=void 0,I=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0,R=void 0,M=void 0,T=void 0,F=void 0,L=void 0,N=void 0,P=void 0,U=void 0,O=void 0,G=void 0,H=void 0,V=void 0,Y={video:-1,audio:-1};function z(){I&&!f.isBufferingCompleted()?(v("[ScheduleController][",g,"] start"),Bt(),w=!1,B&&(B=!1),K(!1),q(0)):v("[ScheduleController][",g,"] start denied")}function W(){w||(v("[ScheduleController][",g,"] stop"),w=!0,clearTimeout(_))}function Z(t,e){N[e]=N[e]||{};var i=h.getTopQualityIndexFor(t,e);return N[e][t]!=i&&(v("Top quality "+t+" index has changed from "+N[e][t]+" to "+i),N[e][t]=i,!0)}function j(){var t=f.getBufferController();if(w||k||d.isPaused()&&!F)v("[ScheduleController][",g,"] - schedule stop!");else if(t.getIsBufferingCompleted())v("Schedule stop because buffering is completed!");else{!function(){var t=I.fragmentDuration||5,e=f.getBufferLevel(),i=function(t,e){if(!A.getFastSwitchOptimized())return 1.5*t;var i=1.5*t,n=h.getThroughputHistory();if(!n)return i;var r=f.getStreamInfo(),o=!(!r||!r.manifestInfo)&&r.manifestInfo.isDynamic,a=n.getSafeAverageThroughput(g,o);if(!isNaN(a)&&a>0&&I.bandwidth){var s=I.bandwidth/1e3*t/a;s<.5*e?i=1*t:s<.8*e&&(i=1.2*t)}return i}(t,e),n=E.getRequests({state:C.FRAGMENT_MODEL_EXECUTED,time:d.getTime()+i,threshold:0})[0];if(n&&-1===U.indexOf(n)&&!s.getIsTextTrack(g)){var r=A.getFastSwitchEnabled(),o=h.getAbandonmentStateFor(g);n.mediaType&&h.setCurrentSegmentInfoFor(n.mediaType,{index:n.index,startTime:n.startTime,duration:n.duration,url:n.url});var a=!y.isCurrentTrack(n.mediaInfo)&&y.getSwitchMode(n.mediaInfo.type)===ut.TRACK_SWITCH_MODE_NEVER_REPLACE,l=n.quality!==I.quality;r&&(a||l)&&e>=i&&o!==ot.ABANDON_LOAD?(tt(n),v("Reloading outdated fragment at index: ",n.index)):n.quality>I.quality&&(v("The buffer has better quality it in then what we would request so set append point to end of buffer!!"),Et(d.getTime()+f.getBufferLevel()))}}();var e=U.length>0,n=f.getStreamInfo();G||isNaN(P)||O||e||Z(I.mediaInfo.type,n.id)||M.execute(f,g,p.isVideoTrackPresent(),t.getStoreBufferLevel())?(K(!0),e||O||h.checkPlaybackQuality(g),function(){i.trigger(u.GET_NEXT_FRAGMENT,{mediaType:g,currentTime:f.getPlaybackController().getTime(),bufferLevel:f.getBufferLevel(),bufferResetInProgress:G,lastInitQuality:isNaN(P),switchTrack:O,isReplacement:e,hasTopQualityChanged:Z(I.mediaInfo.type,n.id),bufferLevelRule:M.execute(f,g,p.isVideoTrackPresent(),t.getStoreBufferLevel()),final:G||isNaN(P)||O||e||Z(I.mediaInfo.type,n.id)||M.execute(f,g,p.isVideoTrackPresent(),t.getStoreBufferLevel())});var r=f.getFragmentController();if(I.quality!==P)v("ScheduleController - "+g+" - quality has changed at "+d.getTime()+", get init request for representationid = "+I.id),P=I.quality,f.switchInitData(I.id);else if(O)v("ScheduleController - "+g+" - switch track has been asked, get init request for "+g+" with representationid = "+I.id),G=y.getSwitchMode(g)===ut.TRACK_SWITCH_MODE_ALWAYS_REPLACE,f.switchInitData(I.id,G),P=I.quality,O=!1;else{var o=U.shift();if(r.isInitializationRequest(o))f.switchInitData(o.representationId);else{var a=void 0;f.getBufferController().getIsPruningInProgress()||!(a=T.execute(f,o))&&n.manifestInfo&&n.manifestInfo.isDynamic&&v("getNextFragment - "+g+" - Playing at the bleeding live edge and frag is not available yet"),a?(v("ScheduleController - "+g+" - getNextFragment - request is "+a.url),"video"===g&&h.getAutoSwitchBitrateFor(g)&&Object.keys(Y).forEach((function(t){-1!==Y[t]&&(a.isSwitchingQn=!0)})),E.executeRequest(a)):(K(!1),q(300))}}}()):q(300)}}function q(t){clearTimeout(_),_=setTimeout(j,t)}function J(t){
t.sender&&t.sender.getStreamProcessor()===f&&X(I.quality)}function K(t){k!==t?k=t:v("[ScheduleController][",g,"] isFragmentProcessingInProgress is already equal to",t)}function X(t){var e=o.getInitRequest(f,t);e&&(e.mediaType&&h.setCurrentSegmentInfoFor(e.mediaType,{index:e.index,startTime:e.startTime,duration:e.duration,url:e.url}),K(!0),E.executeRequest(e))}function $(){O=!0}function tt(t){U.push(t)}function et(t){if(g===t.mediaType&&f.getStreamInfo().id===t.streamInfo.id){if(null==(I=f.getRepresentationInfoForQuality(t.newQuality)))throw new Error("Unexpected error! - currentRepresentationInfo is null or undefined");Y[g]=t.newQuality,Ct(new Date,Ee.REPRESENTATION_SWITCH_STOP_REASON),Bt(),d.isPaused()&&(V={type:g,oldQuality:t.oldQuality});var e=f.getBufferLevel(),i=I.fragmentDuration||5;A.getFastSwitchOptimized()&&e<2*i&&!k&&q(0)}}function it(t){if(d&&E){var e=E.getRequests({state:C.FRAGMENT_MODEL_EXECUTED,time:d.getTime(),threshold:0})[0];e&&d.getTime()>=e.startTime&&((!L.mediaInfo||e.mediaInfo.type===L.mediaInfo.type&&e.mediaInfo.id!==L.mediaInfo.id)&&t&&i.trigger(u.TRACK_CHANGE_RENDERED,{mediaType:g,oldMediaInfo:L.mediaInfo,newMediaInfo:e.mediaInfo}),e.quality===L.quality&&e.adaptationIndex===L.adaptationIndex||!t||Y[g]===e.quality&&(i.trigger(u.QUALITY_CHANGE_RENDERED,{mediaType:g,oldQuality:L.quality,newQuality:e.quality}),Y[g]=-1,V=null),L={mediaInfo:e.mediaInfo,quality:e.quality,adaptationIndex:e.adaptationIndex})}}function nt(t){t.error||t.sender.getStreamProcessor()!==f||(I=o.convertDataToRepresentationInfo(t.currentRepresentation),A.getAppendingSourceState()&&$())}function rt(t){if(!t.error&&f.getStreamInfo().id===t.streamInfo.id){if(I=f.getCurrentRepresentationInfo(),B){var e=A.getRecreateSeekTime();null!==e?(R=e,f.getBufferController().setSeekStartTime(R)):d.getIsDynamic()?(l.setTimeSyncCompleted(!0),function(){var t=f.getLiveEdgeFinder();if(t){var e=t.getLiveEdge(),i=I.mediaInfo.streamInfo.manifestInfo.DVRWindowSize/2,s=e-d.computeLiveDelay(I.fragmentDuration,i),c=o.getFragmentRequestForTime(f,I,s,{ignoreIsFinished:!0});if(A.getLowLatencyEnabled()){var h=c.duration<A.getLiveDelay()?c.startTime:c.startTime+c.duration-A.getLiveDelay();d.setLiveStartTime(h)}else d.setLiveStartTime(c.startTime);(R=d.getStreamStartTime(!1,e))>I.mediaInfo.streamInfo.start+I.mediaInfo.streamInfo.duration&&d.seek(R);var u=a.getCurrentManifestUpdate(r.getMetricsFor(n.STREAM));r.updateManifestUpdateInfo(u,{currentTime:R,presentationStartTime:e,latency:e-R,clientTimeOffset:l.getClientTimeOffset()})}}()):(R=d.getStreamStartTime(!1),f.getBufferController().setSeekStartTime(R))}w&&z()}}function at(t){t.fragmentModel===E&&(W(),K(!1),v("[ScheduleController] Stream is complete"),A.getAppendingSourceState()&&z())}function st(t){t.sender===E&&(v("[ScheduleController][",g,"] - onFragmentLoadingCompleted"),s.getIsTextTrack(g)&&K(!1),t.error&&t.request.serviceLocation&&!w&&K(!1),G&&(H=t.request),d.isPaused()&&V&&t.request.quality===Y[g]&&(i.trigger(u.QUALITY_CHANGE_RENDERED,{mediaType:g,oldQuality:L.quality||V.oldQuality,newQuality:t.request.quality}),Y[g]=-1,V=null))}function lt(){it(!0)}function At(t){t.sender.getStreamProcessor()!==f||t.fromMulti||(G&&!isNaN(t.startTime)&&(G=!1,E.addExecutedRequest(H)),K(!1),q(0))}function ct(t){t.streamProcessor===f&&(v("[ScheduleController][onFragmentLoadingAbandoned] for "+g+", request: "+t.request.url+" has been aborted"),d.isSeeking()||O||(v("[ScheduleController][onFragmentLoadingAbandoned] for "+g+", request: "+t.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),tt(t.request)),K(!1),q(0))}function ht(t){t.sender.getStreamProcessor()===f&&W()}function dt(t){t.sender.getStreamProcessor()===f&&(t.unintended?f.getFragmentModel().removeExecutedRequestsAfterTime(t.from,f.getStreamInfo().duration):g===n.AUDIO&&A.getEnableMultipleAudioTracks()?f.getFragmentModel().syncExecutedRequestsWithMultipleLevels(f.getBufferController().getMultiBufferRanges(),f.getStreamInfo().duration):f.getFragmentModel().syncExecutedRequestsWithBufferedRange(f.getBufferController().getBuffer().getAllBufferRanges(),f.getStreamInfo().duration),t.hasEnoughSpaceToAppend&&w&&z())}function pt(t){t.sender.getStreamProcessor()!==f||t.state!==he.BUFFER_EMPTY||d.isSeeking()||(v("[ScheduleController][",g,"] - Buffer is empty! Stalling!"),Ct(new Date,Ee.REBUFFERING_REASON))}function gt(t){t.sender.getStreamProcessor()===f&&(W(),K(!1))}function ft(){E.abortRequests(),W()}function mt(t){t.sender.getStreamProcessor()===f&&X(t.index)}function yt(){!w&&F||z()}function bt(t){R=t.seekTime,It(0);var e=f.getBufferController().getBuffer();if(g!==n.VIDEO||e){w&&z();var i=a.getCurrentManifestUpdate(r.getMetricsFor(n.STREAM)),s=I.DVRWindow&&d?I.DVRWindow.end-d.getTime():NaN;r.updateManifestUpdateInfo(i,{latency:s}),k?function(){var t=R,e=E.getLoadingRequests(),i=f.getBufferController().getBufferRanges(),n=!1;if(!t||e.length>1||0===e.length)return!0;var r=e[0];if(r&&(isNaN(r.index)||isNaN(r.startTime)&&isNaN(r.duration)))return!0;for(var o=0;o<i.length;o++){var a=i.start(o),s=i.end(o);if(t>=a-.5&&t<=s+.5){n=!0;break}}if(n){if(r.startTime>t)return v("[ScheduleController][onPlaybackSeeking] seekTime is inside the range and less then the startTime of loadingRequest",t,r),!1}else if(t>=r.startTime&&t<r.startTime+r.duration)return v("[ScheduleController][onPlaybackSeeking] seekTime is outside the range but inside the time range of loadingRequest",t,r),!1;return!0}()?(v("[ScheduleController][onPlaybackSeeking] for "+g+", call fragmentModel.abortRequests in order to seek quicker"),E.abortRequests(),Y[g]>=0&&(o.setIndexHandlerTime(f,R),f.switchInitData(I.id)),K(!1),q(30)):v("[ScheduleController][onPlaybackSeeking] process the next schedule"):q(0)}}function vt(t){Q&&(Q.playbackspeed=t.playbackRate.toString())}function Et(t){R=t}function It(t){D=t}function Ct(t,e){if(x&&!1===S){var i=Q.start,n=t.getTime()-i.getTime();Q.duration=n,Q.stopreason=e,x.trace.push(Q),S=!0}}function Bt(){x&&!0===S&&I&&(S=!1,(Q=new Ee).representationid=I.id,Q.start=new Date,Q.mstart=1e3*d.getTime(),Q.playbackspeed=d.getPlaybackRate().toString())}function wt(){P=NaN}function xt(){k=!1,D=0,R=NaN,x=null,Q=null,S=!0,B=!0,P=NaN,L={mediaInfo:void 0,quality:NaN,adaptationIndex:NaN},N={},U=[],w=!0,O=!1,G=!1,H=null}return b={initialize:function(){E=f.getFragmentModel(),F=A.getScheduleWhilePaused(),M=Ce(e).create({abrController:h,dashMetrics:a,metricsModel:r,mediaPlayerModel:A}),T=we(e).create({adapter:o}),s.getIsTextTrack(g)&&i.on(u.TIMED_TEXT_REQUESTED,mt,this),i.on(u.QUALITY_CHANGE_REQUESTED,et,this),i.on(u.DATA_UPDATE_STARTED,ht,this),i.on(u.DATA_UPDATE_COMPLETED,nt,this),i.on(u.FRAGMENT_LOADING_COMPLETED,st,this),i.on(u.STREAM_COMPLETED,at,this),i.on(u.STREAM_INITIALIZED,rt,this),i.on(u.BUFFER_LEVEL_STATE_CHANGED,pt,this),i.on(u.BUFFER_CLEARED,dt,this),i.on(u.BYTES_APPENDED_END_FRAGMENT,At,this),i.on(u.INIT_REQUESTED,J,this),i.on(u.QUOTA_EXCEEDED,gt,this),i.on(u.PLAYBACK_SEEKING,bt,this),i.on(u.PLAYBACK_STARTED,yt,this),i.on(u.PLAYBACK_RATE_CHANGED,vt,this),i.on(u.PLAYBACK_TIME_UPDATED,lt,this),i.on(u.URL_RESOLUTION_FAILED,ft,this),i.on(u.FRAGMENT_LOADING_ABANDONED,ct,this),i.on(u.MANIFEST_UPDATED,wt,this),g===n.AUDIO&&A.getEnableMultipleAudioTracks()&&i.on(u.MULTI_AUDIO_TRACK_APPEND,At,this)},getType:function(){return g},getSeekTarget:function(){return R},setSeekTarget:Et,setTimeToLoadDelay:It,getTimeToLoadDelay:function(){return D},replaceRequest:tt,switchTrackAsked:$,isStarted:function(){return!1===w},start:z,stop:W,reset:function(){i.off(u.DATA_UPDATE_STARTED,ht,this),i.off(u.DATA_UPDATE_COMPLETED,nt,this),i.off(u.BUFFER_LEVEL_STATE_CHANGED,pt,this),i.off(u.QUALITY_CHANGE_REQUESTED,et,this),i.off(u.FRAGMENT_LOADING_COMPLETED,st,this),i.off(u.STREAM_COMPLETED,at,this),i.off(u.STREAM_INITIALIZED,rt,this),i.off(u.QUOTA_EXCEEDED,gt,this),i.off(u.BYTES_APPENDED_END_FRAGMENT,At,this),i.off(u.BUFFER_CLEARED,dt,this),i.off(u.INIT_REQUESTED,J,this),i.off(u.PLAYBACK_RATE_CHANGED,vt,this),i.off(u.PLAYBACK_SEEKING,bt,this),i.off(u.PLAYBACK_STARTED,yt,this),i.off(u.PLAYBACK_TIME_UPDATED,lt,this),i.off(u.URL_RESOLUTION_FAILED,ft,this),i.off(u.FRAGMENT_LOADING_ABANDONED,ct,this),
i.off(u.MANIFEST_UPDATED,wt,this),s.getIsTextTrack(g)&&i.off(u.TIMED_TEXT_REQUESTED,mt,this),W(),it(!1),xt()},setPlayList:function(t){x=t},getBufferTarget:function(){return M.getBufferTarget(f,g,p.isVideoTrackPresent())},finalisePlayList:function(t,e){Ct(t,e),x=null}},v=m(e).getInstance().log.bind(b),xt(),b}xe.__dashjs_factory_name="ScheduleController";var Qe=s.a.getClassFactory(xe),Se=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}return t.prototype.init=function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.INBAND_EVENT_STREAM="InbandEventStream",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.ROLE_ASARRAY="Role_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.INTERACTIVE="interactive",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight"},t}()),ke=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.index=-1,this.adaptation=null,this.segmentInfoType=null,this.initialization=null,this.codecs=null,this.codecPrivateData=null,this.segmentDuration=NaN,this.timescale=1,this.startNumber=1,this.indexRange=null,this.range=null,this.presentationTimeOffset=0,this.MSETimeOffset=NaN,this.segmentAvailabilityRange=null,this.availableSegmentsNumber=0,this.bandwidth=NaN,this.width=NaN,this.height=NaN,this.scanType=null,this.maxPlayoutRate=NaN,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0}return t.hasInitialization=function(t){return null!==t.initialization||null!==t.range},t.hasSegments=function(t){return t.segmentInfoType!==Se.BASE_URL&&t.segmentInfoType!==Se.SEGMENT_BASE&&!t.indexRange},t}();function De(){var t=this.context,e=c(t).getInstance(),i=void 0,r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0,p=void 0,g=void 0,f=void 0,m=void 0,y=void 0,b=void 0,v=void 0,E=[];function I(){return a}function C(){return l}function w(){r=null,o=-1,a=!0,s=[],A=null,d=null,p=null,g=null,f=null,m=null,y=null}function x(){var t=new Date,e=C(),i=1e3*d.getTime();p.addRepresentationSwitch(e.adaptation.type,t,i,e.id)}function Q(){var t=b.getStreamInfo(),e=t?t.manifestInfo:null,i=e?e.isDynamic:null,n=f.calcSegmentAvailabilityRange(l,i);p.addDVRInfo(b.getType(),d.getTime(),e,n)}function S(t){return s[t]}function k(t){return s.indexOf(t)}function D(t){var n=t;a=!1,e.trigger(u.AST_IN_FUTURE,{delay:n}),setTimeout((function(){if(!I()){a=!0,e.trigger(u.DATA_UPDATE_STARTED,{sender:i}),s.forEach((function(t){t.segmentAvailabilityRange=null}));for(var t=0;t<s.length;t++)h.updateRepresentation(s[t],!0)}}),n)}function _(t){if(t.sender.getStreamProcessor()===b&&I()){var i=t.representation,o=p.getMetricsFor(n.STREAM),c=C().adaptation.type,h=p.getMetricsFor(C().adaptation.type),g=y.getCurrentManifestUpdate(o),f=!1,m=0,v=void 0,E=void 0;if(i.adaptation.period.mpd.manifest.type===Se.DYNAMIC&&!i.adaptation.period.mpd.manifest.ignorePostponeTimePeriod){var w=i.segmentAvailabilityRange.end-i.segmentAvailabilityRange.start;m=1e3*(d.computeLiveDelay(l.segmentDuration,b.getStreamInfo().manifestInfo.DVRWindowSize)-w)}if(m>0)return Q(),D(m),E=new B(1,"Segments update failed",null),void e.trigger(u.DATA_UPDATE_COMPLETED,{sender:this,data:r,currentRepresentation:l,error:E});if(g){for(var S=0;S<g.representationInfo.length;S++)if((v=g.representationInfo[S]).index===i.index&&v.mediaType===b.getType()){f=!0;break}f||p.addManifestUpdateRepresentationInfo(g,i.id,i.index,i.adaptation.period.index,b.getType(),i.presentationTimeOffset,i.startNumber,i.segmentInfoType)}(function(t){var e=A.getQualityFor(t),i=b.getStreamInfo(),n=A.getTopQualityIndexFor(t,i.id),r=A.getMinAllowedIndexFor(t);void 0!==r&&e<r&&(e=r),e>n&&(e=n);for(var o=e;o<1;o++){var a=s[o].segmentInfoType;if(null===s[o].segmentAvailabilityRange||!ke.hasInitialization(s[o])||(a===Se.SEGMENT_BASE||a===Se.BASE_URL)&&!s[o].segments)return!1}return!0})(c)&&(a=!1,A.setPlaybackQuality(b.getType(),b.getStreamInfo(),k(l)),p.updateManifestUpdateInfo(g,{latency:l.segmentAvailabilityRange.end-d.getTime()}),y.getCurrentRepresentationSwitch(h)||x(),e.trigger(u.DATA_UPDATE_COMPLETED,{sender:this,data:r,currentRepresentation:l}))}}function R(t){t.isDynamic&&function(t){for(var e=void 0,i=0,n=s.length;i<n;i++)(e=s[i]).segmentAvailabilityRange=f.calcSegmentAvailabilityRange(e,t)}(t.isDynamic)}function M(t){t.sender.getStreamProcessor()===b&&(v.getValue().doNotUpdateDVRWindowOnBufferUpdated||Q())}function T(t){if(t.mediaType===b.getType()&&b.getStreamInfo().id===t.streamInfo.id&&t.oldQuality!==t.newQuality){var e=t.newQuality;E[e]||(E[e]=!0,h.updateRepresentation(s[e],!0)),l=S(t.newQuality);var i=A.getThroughputHistory().getAverageThroughput(t.mediaType);isNaN(i)||g.setSavedBitrateSettings(t.mediaType,i),x()}}function F(t){if(t.newDuration){var e=C();e&&e.adaptation.period&&(e.adaptation.period.duration=t.newDuration)}}return i={initialize:function(){h=b.getIndexHandler()},setConfig:function(t){t.abrController&&(A=t.abrController),t.domStorage&&(g=t.domStorage),t.metricsModel&&(p=t.metricsModel),t.dashMetrics&&(y=t.dashMetrics),t.dashManifestModel&&(m=t.dashManifestModel),t.playbackController&&(d=t.playbackController),t.timelineConverter&&(f=t.timelineConverter),t.manifestModel&&(v=t.manifestModel),
t.streamProcessor&&(b=t.streamProcessor)},getData:function(){return r},getDataIndex:function(){return o},isUpdating:I,updateData:function(t,i,c){var d,p=b.getStreamInfo(),g=A.getTopQualityIndexFor(c,p.id),f=A.getMinAllowedIndexFor(c),y=void 0;if(a=!0,e.trigger(u.DATA_UPDATE_STARTED,{sender:this}),d=i,o=m.getIndexForAdaptation(r,d.period.mpd.manifest,d.period.index),s=m.getRepresentationsForAdaptation(d),null!==r&&r.id==t.id||c===n.FRAGMENTED_TEXT||A.getThroughputHistory().getAverageThroughput(c)||A.getInitialBitrateFor(c,p),y=A.getQualityFor(c),void 0!==f&&y<f&&(y=f),y>g&&(y=g),l=S(y),r=t,c!==n.VIDEO&&c!==n.AUDIO&&c!==n.FRAGMENTED_TEXT)return a=!1,void e.trigger(u.DATA_UPDATE_COMPLETED,{sender:this,data:r,currentRepresentation:l});(E=[])[y]=!0,h.updateRepresentation(s[y],!0)},getStreamProcessor:function(){return b},getCurrentRepresentation:C,getRepresentationForQuality:S,getQualityForRepresentationId:function(t){return k(s.find((function(e){return e.id===t})))},reset:function(){e.off(u.QUALITY_CHANGE_REQUESTED,T,i),e.off(u.REPRESENTATION_UPDATED,_,i),e.off(u.WALLCLOCK_TIME_UPDATED,R,i),e.off(u.BUFFER_LEVEL_UPDATED,M,i),e.off(u.MANIFEST_VALIDITY_CHANGED,F,i),w(),E=[]}},w(),e.on(u.QUALITY_CHANGE_REQUESTED,T,i),e.on(u.REPRESENTATION_UPDATED,_,i),e.on(u.WALLCLOCK_TIME_UPDATED,R,i),e.on(u.BUFFER_LEVEL_UPDATED,M,i),e.on(u.MANIFEST_VALIDITY_CHANGED,F,i),i}De.__dashjs_factory_name="RepresentationController";var _e=s.a.getClassFactory(De);function Re(){var t=void 0,e=/^[a-z][a-z0-9+\-.]*:/i,i=/^https?:\/\//i,n=/^https:\/\//i,r=/^([a-z][a-z0-9+\-.]*:\/\/[^\/]+)\/?/i,o=function(t,e){try{return new window.URL(t,e).toString()}catch(e){return t}},a=function(t,e){var i=s;if(!e)return t;if(!c(t))return t;h(t)&&(i=l),d(t)&&(i=A);var n=i(e),r="/"!==n.charAt(n.length-1)&&"/"!==t.charAt(0)?"/":"";return[n,t].join(r)};function s(t){var e=t.indexOf("/"),i=t.lastIndexOf("/");return-1!==e?i===e+1?t:(-1!==t.indexOf("?")&&(t=t.substring(0,t.indexOf("?"))),t.substring(0,i+1)):""}function l(t){var e=t.match(r);return e?e[1]:""}function A(t){var i=t.match(e);return i?i[0]:""}function c(t){return!e.test(t)}function h(t){return c(t)&&"/"===t.charAt(0)}function d(t){return 0===t.indexOf("//")}return function(){try{new window.URL("x","http://y"),t=o}catch(t){}finally{t=t||a}}(),{parseBaseUrl:s,parseOrigin:l,parseScheme:A,isRelative:c,isPathAbsolute:h,isSchemeRelative:d,isHTTPURL:function(t){return i.test(t)},isHTTPS:function(t){return n.test(t)},resolve:function(e,i){return t(e,i)}}}Re.__dashjs_factory_name="URLUtils";var Me=s.a.getSingletonFactory(Re);function Te(t,e){for(;t.length<e;)t="0"+t;return t}function Fe(t,e){return t.representation.startNumber+e}function Le(t,e,i){var n=void 0,r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,A=e.length;if(!t)return t;for(;;){if((n=t.indexOf("$"+e))<0)return t;if((r=t.indexOf("$",n+A))<0)return t;if((o=t.indexOf("%0",n+A))>n&&o<r)switch(a=t.charAt(r-1),s=parseInt(t.substring(o+2,r-1),10),a){case"d":case"i":case"u":l=Te(i.toString(),s);break;case"x":l=Te(i.toString(16),s);break;case"X":l=Te(i.toString(16),s).toUpperCase();break;case"o":l=Te(i.toString(8),s);break;default:return t}else l=i;t=t.substring(0,n)+l+t.substring(r+1)}}function Ne(t,e,i,n){var r,o,a=void 0,s=void 0;return s=i.segmentDuration,isNaN(s)&&(s=i.adaptation.period.duration),r=parseFloat((i.adaptation.period.start+n*s).toFixed(5)),o=parseFloat((r+s).toFixed(5)),(a=new Dt).representation=i,a.duration=s,a.presentationStartTime=r,a.mediaStartTime=t.calcMediaTimeFromPresentationTime(a.presentationStartTime,i),a.availabilityStartTime=t.calcAvailabilityStartTimeFromPresentationTime(a.presentationStartTime,i.adaptation.period.mpd,e),a.availabilityEndTime=t.calcAvailabilityEndTimeFromPresentationTime(o,i.adaptation.period.mpd,e),a.wallStartTime=t.calcWallTimeForSegment(a,e),a.replacementNumber=Fe(a,n),a.availabilityIdx=n,a}function Pe(t,e,i,n,r,o,a,s,l,A){var c,h,d=n/o,u=Math.min(r/o,i.adaptation.period.mpd.maxSegmentDuration),p=void 0;return h=(c=t.calcPresentationTimeFromMediaTime(d,i))+u,(p=new Dt).representation=i,p.duration=u,p.mediaStartTime=d,p.presentationStartTime=c,p.availabilityStartTime=i.adaptation.period.mpd.manifest.loadedTime,p.availabilityEndTime=t.calcAvailabilityEndTimeFromPresentationTime(h,i.adaptation.period.mpd,e),p.wallStartTime=t.calcWallTimeForSegment(p,e),p.replacementTime=A||n,p.replacementNumber=Fe(p,l),a=Le(a,"Number",p.replacementNumber),a=Le(a,"Time",p.replacementTime),p.media=a,p.mediaRange=s,p.availabilityIdx=l,p}function Ue(t,e){if(!e||!e.segments)return null;var i=e.segments.length,n=void 0,r=void 0;if(t<i&&(n=e.segments[t])&&n.availabilityIdx===t)return n;for(r=0;r<i;r++)if((n=e.segments[r])&&n.availabilityIdx===t)return n;return null}function Oe(t,e,i,n,r,o){var a=i.segmentDuration,s=i.adaptation.period.mpd.manifest.minBufferTime,l=i.segmentAvailabilityRange,A={start:t.calcPeriodRelativeTimeFromMpdRelativeTime(i,l.start),end:t.calcPeriodRelativeTimeFromMpdRelativeTime(i,l.end)},c=i.segments,h=2*a,d=o||Math.max(2*s,10*a),u=NaN,p=null,g=void 0;return A.start=Math.max(A.start,0),e&&!t.isTimeSyncCompleted()?{start:g=Math.floor(A.start/a),end:Math.floor(A.end/a)}:(u=c&&c.length>0?(p=Ue(r,i))?t.calcPeriodRelativeTimeFromMpdRelativeTime(i,p.presentationStartTime):r>0?r*a:t.calcPeriodRelativeTimeFromMpdRelativeTime(i,n):r>0?r*a:e?A.end:A.start,{start:g=Math.floor(Math.max(u-h,A.start)/a),end:Math.floor(Math.min(g+d/a,A.end/a))})}function Ge(t,e){var i=(t=t||{}).timelineConverter;return{getSegments:function(t,n,r,o){if(function(){if(!(i&&i.hasOwnProperty("calcMediaTimeFromPresentationTime")&&i.hasOwnProperty("calcSegmentAvailabilityRange")&&i.hasOwnProperty("calcMediaTimeFromPresentationTime")))throw new Error("Missing config parameter(s)")}(),!t)throw new Error("no representation");void 0===n&&(n=null);var a=t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index].Representation_asArray[t.index].SegmentTemplate||t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index].Representation_asArray[t.index].SegmentList,s=a.SegmentTimeline,l=a.SegmentURL_asArray,A=t.availableSegmentsNumber>0,c=void 0;c=o||(r>-1||null!==n?10:1/0);var h,d,u,p=0,g=0,f=-1,m=[],y=null,b=void 0,v=void 0,E=void 0,I=void 0,C=void 0,B=void 0,w=void 0,x=void 0,Q=function(n,r){var o=a.media,s=n.mediaRange;return l&&(o=l[r].media||"",s=l[r].mediaRange),Pe(i,e,t,p,n.d,x,o,s,f,n.tManifest)};for(x=t.timescale,h=s.S_asArray,u=r,null!==n&&(y=i.calcMediaTimeFromPresentationTime(n,t)),v=0,d=h.length;v<d;v++){if(I=0,(b=h[v]).hasOwnProperty("r")&&(I=b.r),b.hasOwnProperty("t")&&(g=(p=b.t)/x),I<0){if((B=h[v+1])&&B.hasOwnProperty("t"))C=B.t/x;else{var S=t.segmentAvailabilityRange?t.segmentAvailabilityRange.end:i.calcSegmentAvailabilityRange(t,e).end;C=i.calcMediaTimeFromPresentationTime(S,t),t.segmentDuration=b.d/x}I=Math.ceil((C-g)/(b.d/x))-1}if(w){if(A)break;f+=I+1}else for(E=0;E<=I;E++)if(f++,m.length>c){if(w=!0,A)break}else null!==y?g>=y-b.d/x*1.5&&m.push(Q(b,f)):f>=u&&m.push(Q(b,f)),g=(p+=b.d)/x}return A||(t.availableSegmentsNumber=f+1),m}}}Ge.__dashjs_factory_name="TimelineSegmentsGetter";var He=s.a.getClassFactory(Ge);function Ve(t,e){var i=t.timelineConverter;return{getSegments:function(t,n,r,o){var a,s,l,A=t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index].Representation_asArray[t.index].SegmentTemplate,c=t.segmentDuration,h=t.segmentAvailabilityRange,d=[],u=null,p=null,g=void 0,f=void 0;for(l=t.startNumber,a=(g=isNaN(c)&&!e?{start:l,end:l}:Oe(i,e,t,n,r,o)).start,s=g.end,f=a;f<=s;f++)(p=Ne(i,e,t,f)).replacementTime=(l+f-1)*t.segmentDuration,u=Le(u=A.media,"Number",p.replacementNumber),u=Le(u,"Time",p.replacementTime),p.media=u,d.push(p),p=null;return isNaN(c)?t.availableSegmentsNumber=1:t.availableSegmentsNumber=Math.ceil((h.end-h.start)/c),d}}}Ve.__dashjs_factory_name="TemplateSegmentsGetter";var Ye=s.a.getClassFactory(Ve);function ze(t,e){var i=(t=t||{}).timelineConverter;return{getSegments:function(t,n,r,o){
var a,s,l,A,c=t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index].Representation_asArray[t.index].SegmentList,h=c.SegmentURL_asArray.length,d=[],u=void 0,p=void 0,g=void 0;for(A=t.startNumber,a=Oe(i,e,t,n,r,o),s=Math.max(a.start,0),l=Math.min(a.end,c.SegmentURL_asArray.length-1),u=s;u<=l;u++)g=c.SegmentURL_asArray[u],(p=Ne(i,e,t,u)).replacementTime=(A+u-1)*t.segmentDuration,p.media=g.media?g.media:"",p.mediaRange=g.mediaRange,p.index=g.index,p.indexRange=g.indexRange,d.push(p),p=null;return t.availableSegmentsNumber=h,d}}}ze.__dashjs_factory_name="ListSegmentsGetter";var We=s.a.getClassFactory(ze);function Ze(t,e){var i,n=this.context,r=void 0,o=void 0,a=void 0;return i={getSegments:function(t,e,i,n,s){var l,A,c,h,d,u=void 0,p=t.segmentInfoType;p!==Se.SEGMENT_BASE&&p!==Se.BASE_URL&&(l=i,A=t.segments,c=!1,h=void 0,d=void 0,A&&0!==A.length?(d=A[0].availabilityIdx,h=A[A.length-1].availabilityIdx,c=l<d||l>h):c=!0,c)?(p===Se.SEGMENT_TIMELINE?u=r.getSegments(t,e,i,s):p===Se.SEGMENT_TEMPLATE?u=o.getSegments(t,e,i,s):p===Se.SEGMENT_LIST&&(u=a.getSegments(t,e,i,s)),n&&n(t,u)):u=t.segments}},r=He(n).create(t,e),o=Ye(n).create(t,e),a=We(n).create(t,e),i}Ze.__dashjs_factory_name="SegmentsGetter";var je=s.a.getClassFactory(Ze);function qe(){return{modifyRequestURL:function(t){return t},modifyRequestHeader:function(t){return t}}}qe.__dashjs_factory_name="RequestModifier";var Je=s.a.getSingletonFactory(qe);function Ke(t){var e=(t=t||{}).requestModifier;return{load:function(t){var i=new Date,n=t.request,r=new XMLHttpRequest;r.open(t.method,t.url,!0),n.responseType&&(r.responseType=n.responseType),n.range&&r.setRequestHeader("Range","bytes="+n.range),n.requestStartDate||(n.requestStartDate=i),e&&(r=e.modifyRequestHeader(r)),r.withCredentials=t.withCredentials,t.request.loadInfo={rType:"XHR",cdn:0,pdn:0,protocol:"TCP"},r.onload=t.onload,r.onloadend=t.onend,r.onerror=t.onerror,r.timeout=t.timeout,r.ontimeout=t.ontimeout,r.onprogress=t.progress,r.onabort=t.onabort,r.onNcFail=t.onNcFail,r.onreadystatechange=function(){if(2===r.readyState)t.onHeadersReceived();else if(4===r.readyState)try{var e=r.getAllResponseHeaders&&r.getAllResponseHeaders();e&&e.indexOf("quic")>-1&&t.request&&t.request.loadInfo&&(t.request.loadInfo.protocol="QUIC")}catch(t){}},r.send(),t.response=r},abort:function(t){t&&t.response&&t.response.abort()},getP2pType:function(){return""}}}Ke.__dashjs_factory_name="XHRLoader";var Xe=s.a.getClassFactory(Ke);function $e(t){var e=void 0,i={cdn:0,p2p:0},n=void 0,r=(t=t||{}).p2pType,o=!1,a=m(this.context).getInstance().log,s="[P2PLoader]";return{load:function(l){n=l;var A=l.request;e||(e=new t.supplier(l.url,t.video,A.mediaType),a(s,"["+r+"] new sdk loader ["+A.mediaType+"]")),e.onDataArrival=function(t){var n=e&&e.loadInfo();n&&(A.p2pLoadInfo||(A.p2pLoadInfo={cdn:0,p2p:0}),A.p2pLoadInfo.url=n.url),l.progress&&l.progress(null,t,n&&{cdn:n.cdn-i.cdn,p2p:n.p2p-i.p2p,rType:"PCDN"}),i=n||i},e.onError=function(t,e){a(s,"["+r+"] error, status:"+t+", msg:"+e+", type:"+A.mediaType),l.response={status:t,statusText:e},o=!1,l.onerror(),l.onend()},e.onComplete=function(){a(s,"["+r+"] onComplete, type:"+n.request.mediaType),o=!1,l.onload(),l.onend()};var c=void 0;if(A.range){var h=A.range.split("-");c={from:parseInt(h[0]),to:parseInt(h[1]||"-1")}}else c={from:0,to:-1};a(s,"["+r+"] load "+A.mediaType+" url:"+l.url+", range: "+c.from+"-"+c.to),e.load(c,l.withCredentials);var d=e.loadInfo();d&&(A.p2pLoadInfo||(A.p2pLoadInfo={cdn:0,p2p:0}),A.p2pLoadInfo.url=d.url),o=!0},abort:function(){o=!1,e&&(e.abort(),e.onDataArrival=void 0,e.onError=void 0,e.onComplete=void 0),n.onabort(),n.onend(),a(s,"["+r+"] abort sdk ["+n.request.mediaType+"]")},destroySdk:function(){var t=function(){o=!1,e&&(e.destroy(),e=void 0,a(s,"["+r+"] destroy sdk ["+n.request.mediaType+"]")),i={cdn:0,p2p:0}};o?(e.onError=function(e,i){a(s,"["+r+"] error, status:"+e+", msg:"+i+", type:"+n.request.mediaType),n.response={status:e,statusText:i},n.onerror(),n.onend(),t()},e.onComplete=function(){a(s,"["+r+"] detroy sdk onComplete, type:"+n.request.mediaType),n.onload(),n.onend(),t()}):t()},getUrl:function(){return n.url||""},getP2pType:function(){return r}}}$e.__dashjs_factory_name="P2PLoader";var ti=s.a.getClassFactory($e);function ei(t){var e,i=void 0,n=void 0;e=(t=t||{}).hid;var r=!1;if(window.localStorage&&localStorage.getItem)try{var o=JSON.parse(localStorage.getItem("bp_nc_config"));o&&1===o.showLog&&(r=!0)}catch(t){}function a(){var t="bpNC";return e&&(t+="_"+e),window[t]}return m(this.context).getInstance().log,{load:function(t){i=t;var e=t.request,o=a();o&&(n=o.getToken(),o.getData({url:e.url,range:e.range,token:n,bitrate:e.bitrate||0,latency:e.latency||5e3}).then((function(i){if(r){var n=0,o="";i&&i.responseData&&(i.responseData.getDataTime&&(n=Math.round(8*i.responseData.gotDataByte/1e3/(i.responseData.getDataTime/1e3))),i.responseData.path&&(o=i.responseData.path),i.peers=i.responseData.usePeerSids&&i.responseData.usePeerSids.length||0),console.log("--\x3e "+o+" nc success, speed is",n,"Kbps, res:",i)}t.progress&&t.progress(null,i.responseData.data,{nc:i.responseData.data.byteLength,cdn:0,rType:"NC",url:e.url,ncBr:i.responseData.gotDataByteFromBr}),t.onNCInfo&&t.onNCInfo(i),t.onload&&t.onload(),t.onend&&t.onend()}),(function(i){if(r){var n=0,o="";i&&i.responseData&&(i.responseData.getDataTime&&(n=Math.round(8*i.responseData.gotDataByte/1e3/(i.responseData.getDataTime/1e3))),i.responseData.path&&(o=i.responseData.path),i.peers=i.responseData.usePeerSids&&i.responseData.usePeerSids.length||0),console.log("--\x3e "+o+" nc fail, speed is",n,"Kbps, res:",i)}if(t.onNCFail&&i.responseData){var a=i.responseData.data?i.responseData.data.byteLength:0,s=i.responseData.gotDataByte?i.responseData.gotDataByte:0;t.onNCFail({ncFail:a,nc:s,ncGotFail:s,cdn:0,rType:"NC",url:e.url,ncBr:i.responseData.gotDataByteFromBr||0})}t.onNCInfo&&t.onNCInfo(i),t.onerror&&t.onerror()})))},abort:function(t){var e=a();e&&n&&e.abortGetData(n),i&&(i.onNCInfo&&i.onNCInfo({code:4999,qn:parseInt(t.representationId,10)||0,responseData:{}}),i&&i.onabort&&i.onabort(),i&&i.onend&&i.onend())},getP2pType:function(){return""},disableRP:function(){var t=a();t&&"function"==typeof t.disableRP&&t.disableRP()}}}ei.__dashjs_factory_name="NCLoader";var ii=s.a.getClassFactory(ei);function ni(t){var e=(t=t||{}).requestModifier;function i(t,e){t.reader.read().then(e).catch((function(){}))}return{load:function(t){var n=new Date,r=t.request,o=new Headers;r.range&&o.append("Range","bytes="+r.range),r.requestStartDate||(r.requestStartDate=n),e&&e.modifyRequestHeader({setRequestHeader:function(t,e){o.append(t,e)}});var a=void 0;"function"==typeof window.AbortController&&(a=new AbortController,t.abortController=a);var s={method:t.method,headers:o,credentials:t.withCredentials?"include":void 0,signal:a?a.signal:void 0};fetch(t.url,s).then((function(e){t.response||(t.response={}),t.response.status=e.status,t.response.statusText=e.statusText,t.response.responseURL=e.url,e.ok||t.onerror();var n="",r=!0,o=!1,a=void 0;try{for(var s,l=e.headers.keys()[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var A=s.value;n+=A+": "+e.headers.get(A)+"\n"}}catch(t){o=!0,a=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}if(t.response.responseHeaders=n,t.onHeadersReceived(),!e.body)return e.arrayBuffer().then((function(e){t.response.response=e;var i={loaded:e.byteLength,total:e.byteLength};t.progress(i),t.onload(),t.onend()}));var c=parseInt(e.headers.get("Content-Length"),10),h=0,d=!1,u=new Uint8Array,p=0;t.reader=e.body.getReader(),i(t,(function e(n){var r=n.value;if(n.done)return u&&(t.progress({loaded:h,total:isNaN(c)?h:c,lengthComputable:!0}),t.response.response=u.buffer),t.onload(),void t.onend();if(r&&r.length>0){u=function(t,e){if(0===t.length)return e;var i=new Uint8Array(t.length+e.length);return i.set(t),i.set(e,t.length),i}(u,r),h+=r.length;var o=It().getInstance().findLastTopIsoBoxCompleted(["moov","mdat"],u,p);if(o.found){var a=o.lastCompletedOffset+o.size,s=void 0;a===u.length?(s=u,u=new Uint8Array):(s=new Uint8Array(u.subarray(0,a)),u=u.subarray(a)),t.progress({data:s.buffer,
lengthComputable:!1,noTrace:!0}),p=0}else p=o.lastCompletedOffset,d||(t.progress({lengthComputable:!1,noTrace:!0}),d=!0)}i(t,e)}))})).catch((function(e){t.onerror&&t.onerror(e)}))},abort:function(t){if(t.abortController)t.abortController.abort();else if(t.reader)try{t.reader.cancel()}catch(t){}}}}ni.__dashjs_factory_name="FetchLoader";var ri=s.a.getClassFactory(ni);function oi(){var t=this.context,e=c(t).getInstance();return{capabilityError:function(t){e.trigger(u.ERROR,{error:"capability",event:t})},downloadError:function(t,i,n,r,o){e.trigger(u.ERROR,{error:"download",event:{id:t,url:i,request:n},code:r,httpCode:o})},manifestError:function(t,i,n,r,o,a){e.trigger(u.ERROR,{error:"manifestError",event:{message:t,id:i,manifest:n,event:r},code:o,httpCode:a})},timedTextError:function(t,i,n){e.trigger(u.ERROR,{error:"cc",event:{message:t,id:i,cc:n}})},mediaSourceError:function(t,i,n){e.trigger(u.ERROR,{error:"mediasource",event:t,code:i,decodeErrorType:n})},mediaKeySessionError:function(t){e.trigger(u.ERROR,{error:"key_session",event:t})},mediaKeyMessageError:function(t){e.trigger(u.ERROR,{error:"key_message",event:t})},mssError:function(t){e.trigger(u.ERROR,{error:"mssError",event:t})}}}oi.__dashjs_factory_name="ErrorHandler";var ai=s.a.getSingletonFactory(oi);ai.CAPABILITY_ERROR_MEDIASOURCE="mediasource",ai.CAPABILITY_ERROR_MEDIAKEYS="mediakeys",ai.DOWNLOAD_ERROR_ID_MANIFEST="manifest",ai.DOWNLOAD_ERROR_ID_SIDX="SIDX",ai.DOWNLOAD_ERROR_ID_CONTENT="content",ai.DOWNLOAD_ERROR_ID_INITIALIZATION="initialization",ai.DOWNLOAD_ERROR_ID_XLINK="xlink",ai.DOWNLOAD_ERROR_ID_PCDN_SDK="pcdnsdk",ai.MANIFEST_ERROR_ID_CODEC="codec",ai.MANIFEST_ERROR_ID_PARSE="parse",ai.MANIFEST_ERROR_ID_NOSTREAMS="nostreams",ai.TIMED_TEXT_ERROR_ID_PARSE="parse",s.a.updateSingletonFactory(oi.__dashjs_factory_name,ai);var si=ai;function li(){return{arraybuffer2string:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))},base642ab:function(t){t=window.atob(t);for(var e=new ArrayBuffer(t.length),i=new Uint8Array(e),n=0,r=t.length;n<r;n++)i[n]=t.charCodeAt(n);return e},concat:function(t,e){var i=new Uint8Array(t),n=new Uint8Array(e),r=new Uint8Array(i.length+n.length);return r.set(i),r.set(n,i.length),r.buffer}}}li.__dashjs_factory_name="ArrayBufferHandler";var Ai=s.a.getSingletonFactory(li);function ci(t){t=t||{};var e=void 0,i=m(this.context).getInstance().log,n="[ExternalMediaSourceLoader]",r=t.loader;return{load:function(t){e=t;var o,a=t.request;if(r&&"function"==typeof r){var s=(o=a.url).match(/[^/]+.m4s/gi)&&o.match(/[^/]+.m4s/gi)[0];i(n+" start to get "+s+", range is "+a.range),t.request.loadInfo={rType:"exld",url:a.url},r({filename:s,range:a.range,url:a.url}).then((function(e){return function(t,e){0===t.code?(e.progress&&e.progress(null,t.data,null),e.onload&&e.onload(),e.onend&&e.onend()):(i(n+" Get data error, err code is "+t.code),this.onError("Get data error "+t.code,e))}(e,t)})).catch((function(e){return r=t,i(n+" Get data error, err is "+e),void(r.onerror&&r.onerror());var r}))}},abort:function(){e&&e.onabort&&e.onabort(),e&&e.onend&&e.onend()}}}ci.__dashjs_factory_name="ExternalMediaSourceLoader";var hi=s.a.getClassFactory(ci);function di(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var ui={video:null,audio:null};function pi(t){t=t||{};var e,i,r=this.context,a=c(r).getInstance(),s=t.errHandler,l=t.videoModel,A=t.metricsModel,h=t.mediaPlayerModel,d=t.requestModifier,p=t.useFetch||!1,g=t.dashMetrics,f=t.abrController,y=(i=G(),H()?i?1:2:i?2:3),b=function(){var t=G();return H()?t?30:20:t?20:15}(),v=m(r).getInstance().log,E=void 0,I=void 0,C=void 0,B=void 0,w=[],x=void 0,Q={},S=Ai(r).getInstance(),k=[],D=0,_=void 0,R=void 0,M=void 0,T=void 0,F=-1,L=0,P=[],U=void 0,O=t.preloadData;function G(){return f&&f.getAutoSwitchBitrateFor(n.VIDEO)}function H(){var t=(new Date).getHours();return![12,13,20,21].includes(t)}function V(t){t&&t.beforeSeekingRange&&(t.range=t.beforeSeekingRange,t.beforeSeekingRange=null,v("[HTTPLoader] Clear Seek More Bytes"))}function Y(t){var e,i,n,r,o,a=l.getPlaybackRate()||1,s=t.request,A=t.useNC,c=t.modifiedUrl,h=t.retryTimes,d=t.connectMaxTime,u=t.bitrate,p=d+1e3*h+50,g=s.timeout+3e3*h;if((A||c&&c.includes("traceid"))&&(e=s.bufferLevel,n=1e4,r=5e3,e<((i=5e3)+(o=1e4))/1e3?r=i:e<(n+o)/1e3?r=1e3*parseInt(e-o/1e3,10):e>(n+o)/1e3&&(r=n),r=Math.min(r,n),r=Math.max(r,i),v("NCLoader latency, bufferLevel: "+e+", latencyTimeout: "+r),p=r,s.bitrate=u,s.latency=p,g=p+200),isNaN(s.bufferLevel)||!a||!s.bufferLevel)return{latencyTimeout:p,timeout:g};var f=s.bufferLevel/a*1e3,m=A?5e3:2e3,y=A?.6:.2,b=Math.max,E=Math.min;return{latencyTimeout:0|b(E(p,f*y),m),timeout:0|b(E(g,.6*f),5e3)}}function z(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=t.request,f="",m=0,E=0,k=0;if(V(c),c.range){var G=c.range.split("-");if(m=parseInt(G[0]),E=parseInt(G[1]),c.mediaType&&c.representationId&&O&&O[c.mediaType+"id"]===c.representationId+""&&O[c.mediaType]){if(v("[HTTPLoader] Use Preload Data"),E<O[c.mediaType].byteLength)return E+1===O[c.mediaType].byteLength&&(c.preloadEnd=1),void t.success(O[c.mediaType].slice(m,E+1));m<O[c.mediaType].byteLength&&(f=O[c.mediaType].slice(m,E+1),c.range=O[c.mediaType].byteLength+"-"+E,c.preloadEnd=1)}try{var Z=!(!t.params||"boolean"!=typeof t.params.disableSeekDownloadMore)&&t.params.disableSeekDownloadMore;if(l&&!Z){var j,q=l.getElement(),J=l.isSeeking(),K=l.getPlaybackRate()||1,X=q&&q.currentTime||0,$=(c.startTime+c.duration-X)/K,tt="video"===c.mediaType?+c.representationId:0,et=-1;if(q.buffered&&q.buffered.length&&(et=q.buffered.end(0)),j=et-X,tt&&tt<125&&J&&c.index>=2&&j<=0&&$<2.5&&$>=0){var it=Math.min(1-$/5,.6);c.beforeSeekingRange=c.range;var nt=c.range.split("-");m=parseInt(nt[0]),E=parseInt(nt[1]);var rt=null,ot=0;if(U&&U[c.mediaType]&&(rt=U[c.mediaType].find((function(t,e){return e>c.index})))){var at=rt.mediaRange.split("-");ot=at.length&&+at[1]-+at[0]||0}var st=Math.round(ot*it);c.range=m+"-"+(E+st),v("[HTTPLoader] Seeking Download More "+st+" Bytes")}}}catch(Gt){}}var lt=l.getElement();c.currentTime=lt&&lt.currentTime,c.firstByteDate=null;var At=[],ct=c.representationId,ht=!0,dt=!0,ut=new Date,pt=ut,gt=0,ft=void 0,mt=Q[ct]||0,yt=!1,bt=1,vt=0,Et=void 0,It=-1;if(c.urls&&c.urls.length>1&&mt&&(c.url=c.urls[mt],t.url=c.urls[mt]),!d||!A||!s)throw new Error("config object is not correct or missing");var Ct=d.modifyRequestURL(c.url),Bt=!(!t.params||"boolean"!=typeof t.params.canUseNC)&&t.params.canUseNC,wt=l&&l.getElement()&&l.getElement().playbackRate||1,xt=(c.bufferLevel||0)/wt,Qt=function(t){var e=0;try{var i=t&&t.mediaInfo&&t.mediaInfo.bitrateList,n=t&&t.representationId;if(n&&i&&i.length){var r=i.filter((function(t){return t.id===n}));r&&r.length&&(e=r[0].bandwidth)}}catch(t){}return e}(c);if(Qt>1048576){var St=parseInt(Qt/1024/1024,10),kt=Math.min(10,2+1.5*St);xt=Math.max(0,xt-kt)}else xt=Math.max(0,xt-2);var Dt=function(t){if(!h.getUseNC())return!1;var e=t.canUseNC,i=t.rangeStart,n=t.mediaUrl,r=t.bufferLevel,o=t.bitrate,a=t.originBufferLevel,s=t.isSwitchingQn;if(isNaN(i)||i<0||!n||s)return!1;var A,c=(A="bpNC",_&&(A+="_"+_),window[A]);if(!e||!c||"function"!=typeof c.allowDPGetDataByNC)return!1;var d=(""+n).split("?")[0].split("/"),u=d[d.length-1].split(".")[0].split("-").pop();if(!u)return!1;var p=parseInt(u,10);if(isNaN(p))return!1;var g=NaN,f=!1,m=1;if(l&&l.getElement()){var E=l.getElement(),I=E.currentTime,C=0;E.buffered&&E.buffered.length&&(C=E.buffered.end(0)),g=C-I,f=E&&E.seeking,m=E&&E.playbackRate||1}return!isNaN(g)&&!(!r||a/m<=function(){var t=P.length;return t&&P.reduce((function(t,e){return t+e}))/t/1e3||0}())&&(L>=y&&r/m<b?(v("[disableNc] cause ncLoaderFailedConstantlyTimes is "+L),!1):("audio"!==t.mediaType||30251!==parseInt(t.representationId,10))&&(v("Is Use NCLoader, "+c.allowDPGetDataByNC({rangeStart:i,qn:p,bufferRemaining:g,bufferLevel:r,isSeeking:f,bitrate:o,originBufferLevel:a})+","+JSON.stringify({rangeStart:i,qn:p,bufferRemaining:g,bufferLevel:r,isSeeking:f,bitrate:o,originBufferLevel:a})),c.allowDPGetDataByNC({rangeStart:i,qn:p,bufferRemaining:g,bufferLevel:r,isSeeking:f,bitrate:o,originBufferLevel:a})))}({
canUseNC:Bt,rangeStart:m,mediaUrl:Ct,bufferLevel:xt,bitrate:Qt,originBufferLevel:c&&c.bufferLevel||0,isSwitchingQn:!(!c||!c.isSwitchingQn),mediaType:c&&c.mediaType,representationId:c&&c.representationId||0});Dt&&V(c);try{if(function(t,e){var i=t.url;if(!i||!i.includes("traceid="))return!1;if(e||t.urls.length<2)return!1;if(isNaN(t.index)||t.index<=2&&H())return!0;var n=l&&l.getElement(),r=n&&n.seeking,o=n&&n.currentTime||0,a=0;return n.buffered&&n.buffered.length&&(a=n.buffered.end(0)),!r&&a-o<7}(c,Dt)){if(!i&&c.urls.length){var _t=c.urls[1]||c.url;_t&&(Ct=c.url=_t)}It=1}}catch(Gt){}var Rt=function(t){dt=!1;var e,i=new Date;if(c.requestStartDate=ut,c.requestEndDate=i,c.firstByteDate=c.firstByteDate||i,V(c),function(t){if(t.p2pLoadInfo&&t.loadInfo){var e=function(t){for(var e in t)["url","rType"].indexOf(t)>-1||(i[e]=(i[e]||0)+(t[e]||0))},i={};e(t.p2pLoadInfo),e(t.loadInfo),i.rType="XHR",i.url=t.loadInfo.url||t.p2pLoadInfo.url||"",t.loadInfo=i}else t.loadInfo=t.p2pLoadInfo||t.loadInfo||{};"XHR"===t.loadInfo.rType&&(t.url&&t.url.indexOf("traceid=")>-1?t.loadInfo.pdn=t.bytesTotal||t.bytesLoaded||0:t.loadInfo.cdn=t.bytesTotal||t.bytesLoaded||0,t.loadInfo.url=t.url)}(c),t){if(Dt||!Dt&&c&&c.p2pLoadInfo&&c.p2pLoadInfo.nc){Dt&&(L=0);var n=c.requestEndDate,r=c.startLoadFragmentTime;r&&n&&(e=n.getTime()-new Date(r).getTime(),P.length>5&&P.shift(),P.push(e))}}else if(Dt&&c&&c.mediaType){var o=F,a=c.index;c.p2pLoadInfo&&(isNaN(a)||a-o!=1&&-1!==o||L++),F=a}if(!c.checkExistenceOnly){var s=A.addHttpRequest(c.mediaType,null,c.type,c.url,ft.response?ft.response.responseURL:null,c.serviceLocation||null,c.range||null,c.requestStartDate,c.firstByteDate,c.requestEndDate,ft.response?ft.response.status:null,c.duration,ft.response&&ft.response.getAllResponseHeaders?ft.response.getAllResponseHeaders():ft.response?ft.response.responseHeaders:null,t?At:null);s&&c.loadInfo&&(s.loadInfo=c.loadInfo)}},Mt=function(){if(clearTimeout(vt),-1!==I.indexOf(ft)){I.splice(I.indexOf(ft),1),Et=!1;var r=ft&&ft.response&&ft.response.status;if(dt)if(Rt(!1),t.params&&(t.params.canUseNC=!1),(p=c.NCInfo)&&p.responseData&&p.responseData.missingData&&p.responseData.missingData.length>0&&t.params&&(t.params.disableSeekDownloadMore=!0),e>0){var l=0,d=0;Date.now()-ut<50&&(d=!c.index||c.index<=2||performance&&performance.now&&performance.now()<1e4?1e3*(i+1)/100:1e3*(i+1),k=o.CONNECT_FRAGMENT_ERROR_OFFLINE),(r>=400&&r<500||r>=600)&&(d=0,l=0),Dt&&(d=0,l=0),D=setTimeout((function(){var s;h.setRetryTimes(i+1),Dt||i++;var c=ft.request,d=ft.request&&ft.request&&ft.request.NCInfo;if(c.retryTimes=i,a.trigger(u.REQUEST_RETRYED,(di(s={retryTimes:i,representationId:ct,status:ft.response&&ft.response.status,url:c.url,mediaType:c.mediaType,range:c.range,rType:Dt?"NC":"XHR",code:(Dt?d&&d.code:ft.response&&ft.response.status)||k,index:c&&c.index,id:c&&c.representationId},"url",c&&c.url),di(s,"timeout",c.timeout),di(s,"latencyTime",c.latency),di(s,"downloadTime",(c.requestEndDate&&c.requestEndDate.getTime())-(c.requestStartDate&&c.requestStartDate.getTime())),s)),h.getP2pPermission()&&4203===r&&(a.trigger(u.PCDN_LOADED_ERROR,{code:o.DOWNLOAD_PCDN_DISABLED,from:1}),h.setP2pPermission(!1)),t.request.urls&&t.request.urls.length>1){var p=i%c.urls.length;c.urls&&c.urls.length&&c.urls[0].includes("traceid=")&&(It>0?p=(i+1)%c.urls.length:Dt?(function(t){if(g)return-1!==[n.VIDEO,n.AUDIO,n.FRAGMENTED_TEXT].indexOf(t)&&g.getCurrentBufferLevel(A.getReadOnlyMetricsFor(t))||NaN}(c.mediaType)||0)<30&&(p=(i+1)%c.urls.length):p===Q[ct]&&(p=(p+1)%c.urls.length)),Q[ct]=p,mt=Q[ct],t.request.url=c.urls[mt],t.url=c.urls[mt],e--,B.push(setTimeout((function(){v("[HTTPLoader] internalLoad failure retry, useNC: "+Dt),z(t,e,i)}),l))}else e--,B.push(setTimeout((function(){v("[HTTPLoader] internalLoad failure retry, useNC: "+Dt),z(t,e,i)}),l))}),d)}else s.downloadError(x[c.type].type,c.url,c,x[c.type].code,ft.response&&ft.response.status),t.error&&t.error(c,"error",ft.response&&ft.response.statusText,ft.response&&ft.response.status),t.complete&&t.complete(c,ft.response&&ft.response.statusText),W(c.mediaType)}var p},Tt=Y({request:c,useNC:Dt,modifiedUrl:Ct,retryTimes:i,connectMaxTime:2e3,bitrate:Qt}),Ft=Tt.latencyTimeout,Lt=Tt.timeout;vt=setTimeout((function(){h.getP2pPermission()&&"function"==typeof Et.getP2pType&&Et.getP2pType()&&h.addP2pSDKErrorCount(),yt=!0,Et.abort(ft),w.push(4106),t.connectTimeout&&t.connectTimeout(c,Ft,Dt),Mt()}),Ft);var Nt,Pt,Ut,Ot,Gt,Ht=new Uint8Array,Vt=function(t,e){var i=e||t.response.response,n=t.request;if(n&&n.beforeSeekingRange){var r=n.beforeSeekingRange.split("-"),o=parseInt(r[0]),a=parseInt(r[1]),s=new Uint8Array(i.slice(0,a-o+1));return n.range=n.beforeSeekingRange,n.beforeSeekingRange=null,s.buffer}return i},Yt=(Gt=T||h.getExternalMediaLoader(),v("[getMediaSourceLoader] use media source loader is ",!!Gt),Gt);if(Yt&&"function"==typeof Yt)Et=hi(r).create({requestModifier:d,loader:Yt});else if(Dt)Et=ii(r).create({requestModifier:d,hid:_}),h.getUseP2P()||Et.disableRP(),a.trigger(u.CDN_LOAD_INFO,{NCInfo:{code:9999,qn:parseInt(c.representationId,10)||0,range:c.range,responseData:{}}});else if(p&&window.fetch&&"arraybuffer"===c.responseType)Et=ri(r).create({requestModifier:d});else{var zt=window.__DASH_P2P_TYPE__,Wt={yf:window.YFDashIO,xl:window.xyvp&&window.xyvp.Loader,ks:window.KSLoader,pear:window.PearDownloader,bili:window.DIYSdk},Zt=void 0,jt=void 0,qt=void 0;if(zt&&h.getP2pPermission()){var Jt=zt.match(/([a-z]+)-([a-z0-9]+)/);Jt&&(Zt=Wt[Jt[1]],qt="cg2"===Jt[2],jt="eg"===Jt[2]),Zt||delete window.__DASH_P2P_TYPE__}jt&&Zt&&c.index>=0?ui[c.mediaType]&&ui[c.mediaType].getP2pType()&&(Nt=ui[c.mediaType].getUrl(),Pt=Ct,Ut=Nt.match(/^.+\/([a-zA-Z0-9_\-\.]+)\??[^\/]+$/)&&Nt.match(/^.+\/([a-zA-Z0-9_\-\.]+)\??[^\/]+$/)[1],Ot=Pt.match(/^.+\/([a-zA-Z0-9_\-\.]+)\??[^\/]+$/)&&Pt.match(/^.+\/([a-zA-Z0-9_\-\.]+)\??[^\/]+$/)[1],Ut&&Ot&&Ut===Ot)?Et=ui[c.mediaType]:(W(c.mediaType),Et=ti(r).create({video:l.getElement(),p2pType:zt,supplier:Zt}),ui[c.mediaType]=Et):qt&&Zt&&"video"===c.mediaType&&Ct!==M&&(M=Ct,R&&R.destroy(),R=new Zt(Ct,l.getElement(),"watch")),Et||(W(c.mediaType),Et=Xe(r).create({requestModifier:d}))}var Kt=c.checkExistenceOnly?N.HEAD:N.GET,Xt=h.getXHRWithCredentialsForType(c.type);ft={url:Ct,method:Kt,withCredentials:Xt,timeout:Lt,request:c,onload:function(){if(ft.response){if(ft.response.status>=200&&ft.response.status<=299){var e=Vt(ft);f&&(e=S.concat(f,e),c.range=m+"-"+E),Rt(!0),t.success&&t.success(e,ft.response.statusText,ft.response.responseURL),t.complete&&t.complete(c,ft.response.statusText)}}else{var i=Vt(ft,Ht);f&&(i=S.concat(f,i),c.range=m+"-"+E),Rt(!0),t.success&&t.success(i,"",Ct),t.complete&&t.complete(c,"")}},onend:Mt,onerror:Mt,ontimeout:function(){w.push(4105),t.timeout&&t.timeout(c,bt,Lt),Mt()},progress:function(e,i,n){var r=new Date;if(n){for(var o in c.p2pLoadInfo||(c.p2pLoadInfo={}),n)["p2p","cdn","nc","ncBr","pdn"].indexOf(o)>-1?c.p2pLoadInfo[o]=(c.p2pLoadInfo[o]||0)+n[o]:c.p2pLoadInfo[o]=n[o];c.p2pLoadInfo.requestStartTime=ut}if(!e){if(e={lengthComputable:!1,total:0,loaded:0},i&&(Ht=S.concat(Ht,i),e.loaded=Ht.byteLength),c.range){var a=c.range.split("-"),s=parseInt(a[0]),l=parseInt(a[1]);l&&(e.total=l-s+1)}e.loaded&&e.total&&(e.lengthComputable=!0)}ht&&(ht=!1,(bt=r-ut)<2e3&&clearTimeout(vt),(!e.lengthComputable||e.lengthComputable&&e.total!==e.loaded)&&(c.firstByteDate=r)),e.lengthComputable&&(c.bytesLoaded=e.loaded,c.bytesTotal=e.total),e.noTrace||(At.push({s:pt,d:r.getTime()-pt.getTime(),b:[e.loaded?e.loaded-gt:0]}),pt=r,gt=e.loaded),t.progress&&e.loaded&&t.progress(e.loaded)},onabort:function(){clearTimeout(vt),clearTimeout(D),t.abort&&!yt&&t.abort(c)},onHeadersReceived:function(){c.headersReceivedDate=new Date,t.headersReceived&&t.headersReceived(ft.response&&ft.response.getAllResponseHeaders&&ft.response.getAllResponseHeaders())},onNCFail:function(t){if(t){for(var e in c.p2pLoadInfo||(c.p2pLoadInfo={}),t)["p2p","cdn","nc","ncFail","ncGotFail","ncBr","pdn"].indexOf(e)>-1?c.p2pLoadInfo[e]=(c.p2pLoadInfo[e]||0)+t[e]:c.p2pLoadInfo[e]=t[e];c.p2pLoadInfo.requestStartTime=ut}},onNCInfo:function(t){t.qn=parseInt(c.representationId,10)||0,c.NCInfo=t},loader:Et}
;var $t=(new Date).getTime();if(isNaN(c.delayLoadingTime)||$t>=c.delayLoadingTime)I.push(ft),Et.load(ft);else{var te={httpRequest:ft};C.push(te),te.delayTimeout=setTimeout((function(){if(-1!==C.indexOf(te)){C.splice(C.indexOf(te),1);try{pt=ut=new Date,I.push(te.httpRequest),Et.load(te.httpRequest)}catch(t){te.httpRequest.onerror()}}}),c.delayLoadingTime-$t)}}function W(t){ui[t]&&ui[t].destroySdk&&(ui[t].destroySdk(),ui[t]=null)}function Z(t){t&&t.hid&&(_=t.hid)}function j(t){t&&t.loader&&!T&&(T=t.loader,a.off(u.BIND_MEDIA_SOURCE_LOADER,j,E))}return O&&(O.video&&"string"==typeof O.video&&(O.video=S.base642ab(O.video)),O.audio&&"string"==typeof O.audio&&(O.audio=S.base642ab(O.audio))),E={load:function(t){t.request&&(h.setRetryTimes(0),z(t,h.getRetryAttemptsForType(t.request.type),0))},abort:function(){R&&(R.destroy(),R=void 0,M=void 0),T&&(T=null),clearTimeout(D),k.forEach((function(t){return clearTimeout(t)})),B.forEach((function(t){return clearTimeout(t)})),B=[],C.forEach((function(t){return clearTimeout(t.delayTimeout)})),C=[],I.forEach((function(t){t&&t.request&&isNaN(t.request.index)||(t.onloadend=t.onerror=t.onprogress=void 0,t.loader.abort(t),t.onabort())})),I=[],a.off(u.INIT_HID,Z,E),a.off(u.BIND_MEDIA_SOURCE_LOADER,j,E)},setPreloadData:function(t){(O=t)&&(O.video&&"string"==typeof O.video&&(O.video=S.base642ab(O.video)),O.audio&&"string"==typeof O.audio&&(O.audio=S.base642ab(O.audio)))},setSegmentsInfo:function(t){t&&t.segments&&(U||(U={}),U[t.mediaType]=t.segments)}},a.on(u.INIT_HID,Z,E),a.on(u.BIND_MEDIA_SOURCE_LOADER,j,E),I=[],C=[],B=[],di(e={},N.MPD_TYPE,{type:si.DOWNLOAD_ERROR_ID_MANIFEST,code:o.DOWNLOAD_MPD_ERROR}),di(e,N.XLINK_EXPANSION_TYPE,{type:si.DOWNLOAD_ERROR_ID_XLINK,code:o.DOWNLOAD_XINK_ERROR}),di(e,N.INIT_SEGMENT_TYPE,{type:si.DOWNLOAD_ERROR_ID_INITIALIZATION,code:o.DOWNLOAD_INIT_SEGMENT_ERROR}),di(e,N.MEDIA_SEGMENT_TYPE,{type:si.DOWNLOAD_ERROR_ID_CONTENT,code:o.DOWNLOAD_MEDIA_SEGMENT_ERROR}),di(e,N.INDEX_SEGMENT_TYPE,{type:si.DOWNLOAD_ERROR_ID_CONTENT,code:o.DOWNLOAD_INDEX_SEGMENT_ERROR}),di(e,N.BITSTREAM_SWITCHING_SEGMENT_TYPE,{type:si.DOWNLOAD_ERROR_ID_CONTENT,code:o.DOWNLOAD_SWITCHING_SEGMENT_ERROR}),di(e,N.OTHER_TYPE,{type:si.DOWNLOAD_ERROR_ID_CONTENT,code:o.DOWNLOAD_OTHER_ERROR}),x=e,E}pi.__dashjs_factory_name="HTTPLoader";var gi=s.a.getClassFactory(pi);function fi(){var t=this.context,e=m(t).getInstance().log,i=c(t).getInstance(),n=void 0,r=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0;function p(){if(!d||!d.hasOwnProperty("resolve"))throw new Error("setConfig function has to be called previously")}function f(t){if(t.url){var e=new g;return e.type=t.init?N.INIT_SEGMENT_TYPE:N.MEDIA_SEGMENT_TYPE,e.url=t.url,e.urls=t.urls,e.range=t.range.start+"-"+t.range.end,e.representationId=t.representationId,e.mediaType=t.mediaType,e}}function y(t,e,n){t?i.trigger(u.SEGMENTS_LOADED_BEFORE_HANDLE,{segments:t,representation:e,mediaType:n}):i.trigger(u.SEGMENTS_LOADED_BEFORE_HANDLE,{segments:null,representation:e,mediaType:n,error:new B(null,"error loading segments",null)})}return{setConfig:function(t){t.baseURLController&&(d=t.baseURLController),t.metricsModel&&(l=t.metricsModel),t.mediaPlayerModel&&(A=t.mediaPlayerModel),t.errHandler&&(n=t.errHandler),t.videoModel&&(r=t.videoModel)},initialize:function(){a=It(t).getInstance(),s=Je(t).getInstance(),h=gi(t).create({errHandler:n,videoModel:r,metricsModel:l,mediaPlayerModel:A,requestModifier:s,preloadData:A.getPreloadData()})},loadInitialization:function t(n,r){p();var o=null,s=null,l=d.resolve(n.path),A=r||{init:!0,url:l?l.url:void 0,range:{start:0,end:1500},searching:!1,bytesLoaded:0,bytesToLoad:1500};e("Start searching for initialization.");var c=f(A);h.load({request:c,success:function(r){var l,c,h,d,p,g;A.bytesLoaded=A.range.end,s=a.parse(r),c=(l=s).getBox("ftyp"),h=l.getBox("moov"),d=null,p=void 0,g=void 0,e("Searching for initialization."),h&&h.isComplete&&(p=c?c.offset:h.offset,g=h.offset+h.size-1,e("Found the initialization.  Range: "+(d=p+"-"+g))),(o=d)?(n.range=o,i.trigger(u.INITIALIZATION_LOADED,{representation:n})):(A.range.end=A.bytesLoaded+A.bytesToLoad,t(n,A))},error:function(){i.trigger(u.INITIALIZATION_LOADED,{representation:n})}}),e("Perform init search: "+A.url)},loadSegments:function t(i,r,s,l,c){if(p(),s&&(void 0===s.start||void 0===s.end)){var u=s?s.toString().split("-"):null;s=u?{start:parseFloat(u[0]),end:parseFloat(u[1])}:null}s.start=0,c=c||y;var g=null,m=null,b=!!s,v=d.resolve(i.path),E={init:!1,url:v?v.url:void 0,urls:v.urls,range:b?s:{start:0,end:1500},searching:!b,bytesLoaded:l?l.bytesLoaded:0,bytesToLoad:1500,representationId:i.id,mediaType:i.adaptation.type},I=f(E),C=function(){c(null,i,r)};h.load({request:I,success:function(s){if(E.bytesLoaded=E.range.end-E.range.start,g=a.parse(s),(m=g.getBox("sidx"))&&m.isComplete){var l=m.references,h=void 0,d=void 0;if(null!=l&&l.length>0&&(h=1===l[0].reference_type),h){e("Initiate multiple SIDX load."),E.range.end=E.range.start+m.size;var u=void 0,p=void 0,f=void 0,y=void 0,b=[],v=0,I=(m.offset||E.range.start)+m.size,B=function(t){t?(b=b.concat(t),++v>=p&&c(b,i,r)):c(null,i,r)};for(u=0,p=l.length;u<p;u++)f=I,y=I+l[u].referenced_size-1,I+=l[u].referenced_size,t(i,null,{start:f,end:y},E,B)}else{if(e("Parsing segments from SIDX."),!(d=function(t,i){for(var n=t.references,r=n.length,o=t.timescale,a=t.earliest_presentation_time,s=i.range.start+t.offset+t.first_offset+t.size,l=[],A=void 0,c=void 0,h=void 0,d=void 0,u=0;u<r;u++){if(h=n[u].subsegment_duration,!(d=n[u].referenced_size)||0===d)return e("No size found for segment "+u+" in SIDX Box"),[];(A=new Dt).duration=h,A.startTime=a,A.timescale=o,c=s+d-1,A.mediaRange=s+"-"+c,l.push(A),a+=h,s+=d}return l}(m,E))||0===d.length)return C(),void n.mediaSourceError("Parsing Sidx Error",o.MEDIA_FMP4_ERROR,r);try{var w=d[d.length-1],x=(w.duration+w.startTime)/w.timescale;i.adaptation.period.min?i.adaptation.period.min=Math.min(i.adaptation.period.min,x):i.adaptation.period.min=x;var Q=A.getCachedDurationOffset("offset");i.adaptation.period.duration=parseFloat((Q+i.adaptation.period.min).toFixed(5)),e("Set real min period duration "+i.adaptation.period.duration+" ( "+Q+" )")}catch(t){e("Set real period error "+r)}c(d,i,r)}}else C(),n.mediaSourceError("Error parsing "+r+" response.",o.MEDIA_FMP4_ERROR)},error:C}),e("Perform SIDX load: "+E.url)},resetPreloadData:function(){h&&h.setPreloadData(A.getPreloadData())},reset:function(){h.abort(),h=null,n=null,a=null,s=null}}}fi.__dashjs_factory_name="SegmentBaseLoader";var mi=s.a.getSingletonFactory(fi);function yi(t){t=t||{};var e=this.context,i=c(e).getInstance(),r=Me(e).getInstance(),o=void 0,a=t.timelineConverter,s=t.dashMetrics,l=t.metricsModel,A=t.mediaPlayerModel,h=t.errHandler,d=t.baseURLController,p=void 0,f=void 0,y=void 0,b=void 0,v=void 0,E=void 0,I=void 0,C=void 0,w=void 0;function x(){y=-1,v=0,E=NaN,b=null,I=null,C=null}function Q(t,e,i){var n=d.resolve(i.path),o=void 0,a=void 0,s=void 0;return n&&e!==n.url&&r.isRelative(e)?(o=n.url,a=n.urls||[],s=n.serviceLocation,e&&(o=r.resolve(e,o))):a=[o=e],!r.isRelative(o)&&(t.url=o,t.urls=a,t.serviceLocation=s,!0)}function S(t){var e=!1,i=I?I.getStreamInfo().manifestInfo.isDynamic:null;if(i||y!==t.availableSegmentsNumber){var n=Ue(y,t);if(n){var r=parseFloat((n.presentationStartTime-t.adaptation.period.start).toFixed(5)),o=A.getCachedDurationOffset("duration"),a=o?Math.min(t.adaptation.period.duration,o):t.adaptation.period.duration;a=t.adaptation.period.duration,f(t.segmentInfoType+": "+r+" / "+a),e=(t.segmentInfoType!==Se.SEGMENT_TIMELINE||!i)&&r>=a}else f("isMediaFinished - no segment found")}else e=!0;return e}function k(t){C.getSegments(t,b,y,D)}function D(t,e){var i=I?I.getStreamInfo().manifestInfo.isDynamic:null;if(t.segments=e,e&&e.length>0&&(E=isNaN(E)?e[0].presentationStartTime:Math.min(e[0].presentationStartTime,E),i&&isNaN(a.getExpectedLiveEdge()))){var r=e[e.length-1].presentationStartTime,o=l.getMetricsFor(n.STREAM);a.setExpectedLiveEdge(r),l.updateManifestUpdateInfo(s.getCurrentManifestUpdate(o),{presentationStartTime:r})}}function _(t){if(!t)throw new Error("no representation");t.segments=null,k(t)}function R(t,e,i){
var n=e.segments,r=n?n.length:null,o=-1,a=void 0,s=void 0,l=void 0,c=void 0,h=void 0;if(n&&r>0){for(i=null==i?A.getSegmentOverlapToleranceTime():i,h=0;h<r;h++)if(l=(s=n[h]).presentationStartTime,c=s.duration,t+(a=null==i?c/2:i)>=l&&t-a<l+c){o=s.availabilityIdx;break}0===t&&n[0].presentationStartTime>0&&(o=0)}return o}function M(t){if(null==t)return null;var e,i=new g,n=t.representation,r=n.adaptation.period.mpd.manifest.Period_asArray[n.adaptation.period.index].AdaptationSet_asArray[n.adaptation.index].Representation_asArray[n.index].bandwidth,o=t.media,a=I?I.getType():null;return o=Le(o,"Number",t.replacementNumber),o=Le(o,"Time",t.replacementTime),e=o=function(t,e){if(!e||!t||-1===t.indexOf("$RepresentationID$"))return t;var i=e.toString();return t.split("$RepresentationID$").join(i)}(o=Le(o,"Bandwidth",r),n.id),o=e?e.split("$$").join("$"):e,i.mediaType=a,i.type=N.MEDIA_SEGMENT_TYPE,i.range=t.mediaRange,i.startTime=t.presentationStartTime,i.duration=t.duration,i.timescale=n.timescale,i.availabilityStartTime=t.availabilityStartTime,i.availabilityEndTime=t.availabilityEndTime,i.wallStartTime=t.wallStartTime,i.quality=n.index,i.index=t.availabilityIdx,i.mediaInfo=I.getMediaInfo(),i.adaptationIndex=n.adaptation.index,i.representationId=n.id,Q(i,o,n)?i:void 0}function T(t,e,i){var n=void 0,r=I?I.getType():null,o=I?I.getStreamInfo().manifestInfo.isDynamic:null,a=y,s=!!i&&i.keepIdx,l=i?i.timeThreshold:null,A=!(!i||!i.ignoreIsFinished);return t?(b!==e&&(b=e,f("Getting the request for "+r+" time : "+e)),k(t),(y=R(e,t,l))<0&&(k(t),y=R(e,t,l)),y>0&&f("Index for "+r+" time "+e+" is "+y),!A&&S(t)?((n=new g).action=g.ACTION_COMPLETE,n.index=y,n.mediaType=r,n.mediaInfo=I.getMediaInfo(),f("Signal complete in getSegmentRequestForTime -",r)):n=M(Ue(y,t)),s&&a>=0&&(y=t.segmentInfoType===Se.SEGMENT_TIMELINE&&o?y:a),n):null}function F(t){var e=t.representation;e.segments&&i.trigger(u.REPRESENTATION_UPDATED,{sender:this,representation:e})}function L(t){var e=I?I.getType():null,n=I?I.getStreamInfo().manifestInfo.isDynamic:null;if(!t.error&&e===t.mediaType){var r,o=t.segments,s=t.representation,l=[],c=0,h=void 0,d=void 0,p=void 0,g=0;for(A.getAppendingSourceState()&&(w=A.getCachedDurationOffset("offset"),g=o[0].startTime,y=0),h=0,r=o.length;h<r;h++)d=o[h],p=Pe(a,n,s,d.startTime+w*d.timescale-g,d.duration,d.timescale,d.media,d.mediaRange,c),l.push(p),p=null,c++;s.segmentAvailabilityRange={start:l[0].presentationStartTime,end:l[r-1].presentationStartTime},s.availableSegmentsNumber=r,D(s,l),ke.hasInitialization(s)&&i.trigger(u.REPRESENTATION_UPDATED,{sender:this,representation:s})}}return p={initialize:function(i){var n=(I=i)?I.getStreamInfo().manifestInfo.isDynamic:null;o.initialize(),C=je(e).create(t,n)},getStreamProcessor:function(){return I},getInitRequest:function(t){var e=I?I.getType():null;return t?function(t,e){var i=new g,n=t.adaptation.period,r=n.start,o=I?I.getStreamInfo().manifestInfo.isDynamic:null;if(i.mediaType=e,i.type=N.INIT_SEGMENT_TYPE,i.range=t.range,i.availabilityStartTime=a.calcAvailabilityStartTimeFromPresentationTime(r,n.mpd,o),i.availabilityEndTime=a.calcAvailabilityEndTimeFromPresentationTime(r+n.duration,n.mpd,o),i.quality=t.index,i.mediaInfo=I?I.getMediaInfo():null,i.representationId=t.id,Q(i,t.initialization,t))return i}(t,e):null},getSegmentRequestForTime:T,getNextSegmentRequest:function(t){var e=void 0,i=void 0,n=I?I.getType():null,r=I?I.getStreamInfo().manifestInfo.isDynamic:null;return t&&-1!==y?(b=null,y++,f("Getting the next request at index: "+y+", type: "+n),!Ue(y,t)&&r?(f("No segment found at index: "+y+". Wait for next loop"),k(t),y--,null):(S(t)?((e=new g).action=g.ACTION_COMPLETE,e.index=y,e.mediaType=n,e.mediaInfo=I.getMediaInfo(),f("Signal complete -",n)):(k(t),e=M(i=Ue(y,t)),!i&&r&&y--),e)):null},generateSegmentRequestForTime:function(t,e){var i=(t.segmentAvailabilityRange.end-t.segmentAvailabilityRange.start)/2;return t.segments=null,t.segmentAvailabilityRange={start:e-i,end:e+i},T(t,e,{keepIdx:!1,ignoreIsFinished:!0})},updateRepresentation:function(t,e){var n=ke.hasInitialization(t),r=ke.hasSegments(t),s=I?I.getType():null,l=I?I.getStreamInfo().manifestInfo.isDynamic:null,A=void 0;if(t.segmentDuration||t.segments||_(t),t.segmentAvailabilityRange=a.calcSegmentAvailabilityRange(t,l),t.segmentAvailabilityRange.end<t.segmentAvailabilityRange.start&&!t.useCalculatedLiveEdgeTime)return A=new B(1,"no segments are available yet",{availabilityDelay:t.segmentAvailabilityRange.start-t.segmentAvailabilityRange.end}),void i.trigger(u.REPRESENTATION_UPDATED,{sender:this,representation:t,error:A});e||(y=-1),t.segmentDuration&&_(t),n||o.loadInitialization(t),r||o.loadSegments(t,s,t.indexRange),n&&r&&i.trigger(u.REPRESENTATION_UPDATED,{sender:this,representation:t})},updateSegmentList:_,setCurrentTime:function(t){A.getCachedDurationOffset("duration")&&(t=Math.min(A.getCachedDurationOffset("duration"),t)),v=t},getCurrentTime:function(){return v},getEarliestTime:function(){return E},resetPreloadData:function(){o&&o.resetPreloadData()},reset:function(){x(),i.off(u.INITIALIZATION_LOADED,F,p),i.off(u.SEGMENTS_LOADED,L,p)},getIndex:function(){return y},setIndex:function(t){y=t}},f=m(e).getInstance().log.bind(p),x(),(o=mi(e).getInstance()).setConfig({baseURLController:d,metricsModel:l,mediaPlayerModel:A,videoModel:t.videoModel,errHandler:h}),w=0,i.on(u.INITIALIZATION_LOADED,F,p),i.on(u.SEGMENTS_LOADED,L,p),p}yi.__dashjs_factory_name="DashHandler";var bi=s.a.getClassFactory(yi);bi.SEGMENTS_UNAVAILABLE_ERROR_CODE=1,s.a.updateClassFactory(yi.__dashjs_factory_name,bi);var vi=bi;function Ei(t){t=t||{};var e=this.context,i=void 0,r=t.type,o=t.errHandler,a=t.mimeType,s=t.timelineConverter,l=t.adapter,A=t.manifestModel,c=t.mediaPlayerModel,h=t.stream,d=t.abrController,u=t.playbackController,p=t.streamController,g=t.mediaController,f=t.domStorage,y=t.metricsModel,b=t.dashMetrics,v=t.dashManifestModel,E=m(e).getInstance(),I=void 0,C=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0;function R(){_=[]}function M(){w=[],B=null,R()}function T(){return h?h.getStreamInfo():null}function F(){return B}return I={initialize:function(m){var E,C;(i=vi(e).create({mimeType:a,timelineConverter:s,dashMetrics:b,metricsModel:y,mediaPlayerModel:c,baseURLController:t.baseURLController,videoModel:t.videoModel,errHandler:o})).initialize(I),d.registerStreamType(r,I),(D=h.getFragmentController().getModel(r)).setStreamProcessor(I),C=null,(E=r)!==n.VIDEO&&E!==n.AUDIO||(C=he(e).create({type:E,metricsModel:y,mediaPlayerModel:c,manifestModel:A,errHandler:o,streamController:p,mediaController:g,adapter:l,abrController:d,playbackController:u,streamProcessor:I})),x=C,Q=Qe(e).create({type:r,metricsModel:y,adapter:l,dashMetrics:b,dashManifestModel:v,timelineConverter:s,mediaPlayerModel:c,abrController:d,playbackController:u,streamController:p,streamProcessor:I,mediaController:g}),(k=_e(e).create()).setConfig({abrController:d,domStorage:f,metricsModel:y,dashMetrics:b,dashManifestModel:v,manifestModel:A,playbackController:u,timelineConverter:s,streamProcessor:I}),x.initialize(m),Q.initialize(),k.initialize()},isUpdating:function(){return!!k&&k.isUpdating()},getType:function(){return r},getBufferController:function(){return x},getFragmentModel:function(){return D},getScheduleController:function(){return Q},getLiveEdgeFinder:function(){return S},getEventController:function(){return h?h.getEventController():null},getFragmentController:function(){return h?h.getFragmentController():null},getRepresentationController:function(){return k},getIndexHandler:function(){return i},getCurrentRepresentationInfo:function(){return l.getCurrentRepresentationInfo(k)},getRepresentationInfoForQuality:function(t){return l.getRepresentationInfoForQuality(k,t)},getBufferLevel:function(){return x.getBufferLevel()},switchInitData:function(t,e){x&&x.switchInitData(T().id,t,e)},isBufferingCompleted:function(){return!!x&&x.getIsBufferingCompleted()},createBuffer:function(){return x.getBuffer()||x.createBuffer(B)},getStreamInfo:T,updateMediaInfo:function(t){if(!(t===B||t&&B&&t.type!==B.type)){var e=(B=t).bitrateList.map((function(t){return{id:t.id,bandwidth:t.bandwidth}}))
;C("[mediaInfo] type: "+B.type+", bitrateList: "+JSON.stringify(e))}-1===w.indexOf(t)&&w.push(t),l.updateData(this)},switchTrackAsked:function(){Q.switchTrackAsked()},getMediaInfoArr:function(){return w},getMediaInfo:F,getMediaSource:function(){return x.getMediaSource()},setMediaSource:function(t){x.setMediaSource(t,F())},dischargePreBuffer:function(){x.dischargePreBuffer()},getBuffer:function(){return x.getBuffer()},setBuffer:function(t){x.setBuffer(t)},registerExternalController:function(t){_.push(t)},unregisterExternalController:function(t){var e=_.indexOf(t);-1!==e&&_.splice(e,1)},getExternalControllers:function(){return _},unregisterAllExternalController:R,getPlaybackController:function(){return u},resetPreloadData:function(){D.resetPreloadData(),i.resetPreloadData()},reset:function(t){i.reset(),x&&(x.reset(t),x=null),Q&&(Q.reset(),Q=null),k&&(k.reset(),k=null),d&&d.unRegisterStreamType(r),_.forEach((function(t){t.reset()})),M(),r=null,h=null,S&&(S.reset(),S=null)}},u&&u.getIsDynamic()&&(S=ye(e).create({timelineConverter:s,streamProcessor:I})),C=E.log.bind(I),M(),I}Ei.__dashjs_factory_name="StreamProcessor";var Ii=s.a.getClassFactory(Ei);function Ci(){var t,e="urn:mpeg:dash:event:2012",i=this.context,n=m(i).getInstance().log,r=c(i).getInstance(),o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0,p=void 0,g=void 0,f=void 0;function y(){f=!1,o={},a={},s={},l=null,h=(A=100)/1e3}function b(){if(!d||!p||!g)throw new Error("setConfig function has to be called previously")}function v(){null!==l&&f&&(clearInterval(l),l=null,f=!1)}function E(t){if(1==t.eventStream.value){var e=t.eventStream.timescale||1,i=t.presentationTime/e,o=void 0;o=4294967295==t.presentationTime?NaN:(t.presentationTime+t.duration)/e,n("Manifest validity changed: Valid until: "+i+"; remaining duration: "+o),r.trigger(u.MANIFEST_VALIDITY_CHANGED,{id:t.id,validUntil:i,newDuration:o,newManifestValidAfter:NaN})}}function I(){B(a),B(o),function(){if(s)for(var t=g.getTime(),e=Object.keys(s),i=0;i<e.length;i++){var r=e[i],o=s[r];null!==o&&(o.duration+o.presentationTime)/o.eventStream.timescale<t&&(n("Remove Event "+r+" at time "+t),o=null,delete s[r])}}()}function C(){b(),p.refreshManifest()}function B(t){var i,o=g.getTime();if(t)for(var a=Object.keys(t),l=0;l<a.length;l++){var A=a[l],c=t[A];void 0!==c&&(0==(i=c.presentationTime/c.eventStream.timescale)||i<=o&&i+h>o)&&(n("Start Event "+A+" at "+o),c.duration>0&&(s[A]=c),c.eventStream.schemeIdUri==e&&1==c.eventStream.value?0===c.duration&&0===c.presentationTimeDelta||C():r.trigger(c.eventStream.schemeIdUri,{event:c}),delete t[A])}}return t={addInlineEvents:function(t){if(b(),o={},t)for(var e=0;e<t.length;e++){var i=t[e];o[i.id]=i,n("Add inline event with id "+i.id)}n("Added "+t.length+" inline events")},addInbandEvents:function(t){b();for(var i=0;i<t.length;i++){var r=t[i];r.id in a?n("Repeated event with id "+r.id):(r.eventStream.schemeIdUri===e&&void 0===a[r.id]&&E(r),a[r.id]=r,n("Add inband event with id "+r.id))}},stop:v,start:function(){b(),n("Start Event Controller"),f||isNaN(A)||(f=!0,l=setInterval(I,A))},setConfig:function(t){t&&(t.manifestModel&&(d=t.manifestModel),t.manifestUpdater&&(p=t.manifestUpdater),t.playbackController&&(g=t.playbackController))},reset:function(){v(),y()}},y(),t}Ci.__dashjs_factory_name="EventController";var Bi=s.a.getClassFactory(Ci),wi=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null},xi=function(t){function e(i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return n.url=i||null,n.checkForExistenceOnly=!0,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(g);function Qi(){return{verify:function(t){if(!t)return{verified:!1};var e=yt.a.parseBuffer(t),i=e.fetchAll("moof"),n=e.fetchAll("mdat"),r=e.fetchAll("trun"),o=t.byteLength,a="",s=i.length>0&&i.length===n.length&&r.length>=i.length,l=!0,A=0,c=!0;if(s){for(var h=0,d=i.length;h<d;h++){var u=i[h],p=n[h],g=u._parent,f=g&&g.boxes||null;Array.isArray(f)?f.forEach((function(t){A+=t.size})):A+=u.size+p.size,p.size!==p._raw.byteLength&&(c=!1,a+="The index "+h+" mdat box size error, decoded: "+p.size+", actually: "+p._raw.byteLength+". ")}o!==A&&(l=!1,c&&(a="Size error, decoded: "+A+", actually: "+o))}else a="Missing moof box and mdat box.";return{size:o,moofBoxesCount:i.length,isSizeCorrect:l,areAllBoxesInPairs:s,areAllMdatBoxesSizeCorrect:c,verified:l&&s&&c,msg:a}}}}Qi.__dashjs_factory_name="VerifySegment";var Si=s.a.getSingletonFactory(Qi),ki=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Di="request timeout";function _i(t){t=t||{};var e=this.context,i=c(e).getInstance(),n=Si(e).getInstance(),r=Jt(e).getInstance(),a=m(e).getInstance().log,s=void 0,l=void 0,A=void 0;function h(t){l.setSegmentsInfo(t)}return s={checkForExistence:function(t){var e=function(e){i.trigger(u.CHECK_FOR_EXISTENCE_COMPLETED,{request:t,exists:e})};if(t){var n=new xi(t.url);l.load({request:n,success:function(){e(!0)},error:function(){e(!1)}})}else e(!1)},load:function e(A,c){c?c.hasOwnProperty("canUseNC")||(c.canUseNC=!0):c={canUseNC:!0};var h,d,p,g,f,m=function(e,n,r){if(!n&&(A.isSupplyFramesRequest=r,i.trigger(u.LOADING_COMPLETED,{request:A,response:e||null,error:n||null,sender:s}),A.preloadEnd)){t.mediaPlayerModel.setPreloadData(null);var o=t.abrController.getDefaultQualityFor(A.mediaType,!1);t.abrController.setPlaybackQuality(A.mediaType,t.streamController.getActiveStreamInfo(),o)}};if(A){if(t.mediaPlayerModel.ableToSupplyFrame()&&(d=m,p=function(){i.trigger(u.LOADING_ABANDONED,{request:A,mediaType:A.mediaType,sender:s})},g=(h=A).range,(f=g&&g.split("-"))&&2===f.length&&"Infinity"===f[1]&&(r.getExtraFrames(h,d,p),1)))return;if(void 0===A.retry&&(A.retry=1),A.range&&!function(t){var e=t.range&&t.range.split("-").map(Number),i=ki(e,2),n=i[0],r=i[1];return!(isNaN(n)||isNaN(r)||n<0||r<0||n>=r||n===1/0||r===1/0)}(A))return;l.load({request:A,progress:function(t){i.trigger(u.LOADING_PROGRESS,{request:A}),t&&i.trigger(u.LOADING_DATA_PROGRESS,{request:A,response:t||null,error:null,sender:s})},success:function(r){try{if(A.completeNCMissingRange){a("CompleteNCMissingRange, "+A.range+" -> "+A.originRange),A.completeNCMissingRange=!1,A.NCInfo.responseData.missingData=[];var s=A.range.split("-"),l=A.originRange.split("-"),h=parseInt(s[0]),d=parseInt(s[1]),p=parseInt(l[0]),g=parseInt(l[1]),f=A.NCInfo.responseData.availableData;f.push({start:h,end:d,data:r}),f.sort((function(t,e){return t.start-e.start}));try{for(var y=new Uint8Array(g-p+1),b=0;b<f.length;b++)y.set(new Uint8Array(f[b].data),f[b].start-f[0].start);r=y.buffer,a("CompleteNCMissingRange, success")}catch(t){r=new Uint8Array(0).buffer,a("CompleteNCMissingRange, 0000"+JSON.stringify(t))}A.range=A.originRange}var v=void 0;if(A.range){var E=A.range&&A.range.split("-");v=E[1]-E[0]+1}var I={mediaType:A.mediaType,id:A.representationId,index:A.index,range:A.range,received:r&&r.byteLength||0,url:A.url,startTime:A.startTime,duration:A.duration,p2pLoadInfo:A.p2pLoadInfo,rType:c&&c.canUseNC?"NC":"XHR",retryTimes:A.retryTimes,timeout:A.timeout};r&&r.byteLength>3e7&&(I.code=o.DOWNLOAD_FRAGMENT_ERROR_RANGE,
i.trigger(u.FRAGMENT_LOADED_ERROR,I));var C=function(t,e){try{if(t&&e){if(isNaN(t.index)||"MediaSegment"!==t.type)return{verified:!0};var r=n.verify(e);return r.mediaType=t.mediaType,r.quality=t.quality,r.index=t.index,r.id=t.representationId,r&&!r.verified&&(a("VERIFY_SEGMENT_WARNING: "+JSON.stringify(r)),i.trigger(u.VERIFY_SEGMENT_WARNING,r)),r}}catch(t){}return{verified:!1}}(A,r);if(r&&(r.byteLength===v||!v)&&C&&C.verified)1===A.retry||(I.code=o.DOWNLOAD_FRAGMENT_ERROR_RETRY_SUCCESS,i.trigger(u.FRAGMENT_LOADED_ERROR,I)),m(r);else if(I&&I.hasOwnProperty("type")&&delete I.type,C.verified||(r.byteLength===v?I.verifiedType=1:I.verifiedType=2),A.retry&&A.retry>0){if(I.code=o.DOWNLOAD_FRAGMENT_ERROR,i.trigger(u.FRAGMENT_LOADED_ERROR,I),A.retry--,A.urls&&A.urls.length>1){var B=A.urls.indexOf(A.url);-1===B&&(B=0),B=(B+1)%A.urls.length,A.url=A.urls[B]}e(A,{canUseNC:!1,disableSeekDownloadMore:!0})}else{if(!C.verified)return void t.errHandler.mediaSourceError("Verify "+A.mediaType+" FMP4 Error",o.MEDIA_FMP4_ERROR,A.mediaType);I.code=o.DOWNLOAD_FRAGMENT_ERROR_RETRY_FAILURE,i.trigger(u.FRAGMENT_LOADED_ERROR,I)}}catch(t){console.error("FragmentLoader Load Error: ",t)}},timeout:function(t,e,n){var r={mediaType:t.mediaType,id:t.representationId,index:t.index,range:t.range,received:t.bytesLoaded,url:t.url,startTime:t.startTime,duration:t.duration,total:t.bytesTotal,latency:e,timeout:n,p2pLoadInfo:t.p2pLoadInfo,rType:c&&c.canUseNC?"NC":"XHR",retryTimes:t.retryTimes};r.code=o.DOWNLOAD_FRAGMENT_ERROR_TIMEOUT,i.trigger(u.FRAGMENT_LOADED_ERROR,r),m(void 0,new B(1,Di))},error:function(t,e,i){m(void 0,new B(1,i,e))},abort:function(t){t&&i.trigger(u.LOADING_ABANDONED,{request:t,mediaType:t.mediaType,sender:s})},connectTimeout:function(t,e,n){if(t){var r={mediaType:t.mediaType,id:t.representationId,index:t.index,range:t.range,received:t.bytesLoaded||0,url:t.url,startTime:t.startTime,duration:t.duration,total:t.bytesTotal,timeout:e,p2pLoadInfo:t.p2pLoadInfo,rType:n?"NC":"XHR",retryTimes:t.retryTimes};r.code=o.CONNECT_FRAGMENT_ERROR_TIMEOUT,n&&(r.code=o.CONNECT_NC_FRAGMENT_ERROR_TIMEOUT),i.trigger(u.FRAGMENT_LOADED_ERROR,r),m(void 0,new B(1,Di))}},headersReceived:function(t){i.trigger(u.FRAGMENT_LOADING_HEADER_RECEIVED,{request:A,headers:t})},failedQuicklyReport:function(t,e){if(t){var n={mediaType:t.mediaType,id:t.representationId,index:t.index,range:t.range,received:t.bytesLoaded||0,url:t.url,startTime:t.startTime,duration:t.duration,total:t.bytesTotal,rType:e?"NC":"XHR",retryTimes:t.retryTimes};n.code=o.CONNECT_FRAGMENT_ERROR_OFFLINE,i.trigger(u.FRAGMENT_LOADED_ERROR,n)}},params:c})}else m(void 0,new B(2,"request is null"))},abort:function(){l&&l.abort()},reset:function(){l&&(l.abort(),l=null),i.off(u.SEGMENTS_LOADED,h,s)},resetPreloadData:function(){A=t.mediaPlayerModel.getPreloadData(),l.setPreloadData(A)}},A=t.mediaPlayerModel.getPreloadData(),l=gi(e).create({errHandler:t.errHandler,videoModel:t.videoModel,metricsModel:t.metricsModel,mediaPlayerModel:t.mediaPlayerModel,requestModifier:t.requestModifier,useFetch:t.mediaPlayerModel.getLowLatencyEnabled(),dashMetrics:t.dashMetrics,preloadData:A,abrController:t.abrController}),i.on(u.SEGMENTS_LOADED,h,s),s}_i.__dashjs_factory_name="FragmentLoader";var Ri=s.a.getClassFactory(_i);Ri.FRAGMENT_LOADER_ERROR_LOADING_FAILURE=1,Ri.FRAGMENT_LOADER_ERROR_NULL_REQUEST=2,s.a.updateClassFactory(_i.__dashjs_factory_name,Ri);var Mi=Ri;function Ti(t){t=t||{};var e=this.context,i=m(e).getInstance().log,r=c(e).getInstance(),o=t.errHandler,a=t.mediaPlayerModel,s=t.metricsModel,l=t.abrController,A=t.streamController,h=t.videoModel,d=void 0,p=void 0;function g(t){return t&&t.type&&t.type===N.INIT_SEGMENT_TYPE}function f(){for(var t in p)p[t].reset();p={}}function y(t){if(p[t.request.mediaType]===t.sender){var e=t.request,o=t.response,a=g(e),s=e.mediaInfo.streamInfo,l=e.isSupplyFramesRequest;if(t.error&&(t.request.mediaType!==n.AUDIO&&t.request.mediaType!==n.VIDEO&&t.request.mediaType!==n.FRAGMENTED_TEXT||r.trigger(u.SERVICE_LOCATION_BLACKLIST_ADD,{entry:t.request.serviceLocation})),o&&s){var A=(c=o,h=e,d=s.id,f=t.type!==u.FRAGMENT_LOADING_PROGRESS,(m=new wi).streamId=d,m.mediaInfo=h.mediaInfo,m.segmentType=h.type,m.start=h.startTime,m.duration=h.duration,m.end=m.start+m.duration,m.bytes=c,m.index=h.index,m.quality=h.quality,m.representationId=h.representationId,m.endFragment=f,m);A.isSupplyChunk=!!l,r.trigger(a?u.INIT_FRAGMENT_LOADED:u.MEDIA_FRAGMENT_LOADED,{chunk:A,fragmentModel:t.sender})}else i("No "+e.mediaType+" bytes to push or stream is inactive.")}var c,h,d,f,m}return d={getModel:function(i){var n=p[i];return n||(n=C(e).create({metricsModel:s,fragmentLoader:Mi(e).create({metricsModel:s,videoModel:h,mediaPlayerModel:a,errHandler:o,requestModifier:Je(e).getInstance(),dashMetrics:t.dashMetrics,abrController:l,streamController:A})}),p[i]=n),n},isInitializationRequest:g,reset:function(){r.off(u.FRAGMENT_LOADING_COMPLETED,y,this),f()}},f(),r.on(u.FRAGMENT_LOADING_COMPLETED,y,d),d}Ti.__dashjs_factory_name="FragmentController";var Fi=s.a.getClassFactory(Ti);function Li(t){t=t||{};var e=this.context,i=m(e).getInstance().log,r=c(e).getInstance(),o=t.manifestModel,a=t.dashManifestModel,s=t.mediaPlayerModel,l=t.manifestUpdater,A=t.adapter,h=t.capabilities,d=t.errHandler,p=t.timelineConverter,g=t.metricsModel,f=t.abrController,y=t.playbackController,b=t.mediaController,v=t.videoModel,E=t.streamController,I=void 0,C=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0,R=void 0;function M(){for(var t=C?C.length:0,e=0;e<t;e++)C[e].getFragmentModel().removeExecutedRequestsBeforeTime(N()+L()),C[e].reset();C=[],B=!1,w=!1,r.off(u.CURRENT_TRACK_CHANGED,H,I)}function T(){M(),x=null,Q={},S=!1}function F(){y&&y.pause(),D&&(D.reset(),D=null),_&&(_.reset(),_=null),T(),i=null,r.off(u.DATA_UPDATE_COMPLETED,Z,I),r.off(u.BUFFERING_COMPLETED,W,I),r.off(u.KEY_ERROR,U,I),r.off(u.SERVER_CERTIFICATE_UPDATED,U,I),r.off(u.LICENSE_REQUEST_COMPLETE,U,I),r.off(u.KEY_SYSTEM_SELECTED,U,I),r.off(u.KEY_SESSION_CREATED,U,I),r.off(u.KEY_STATUSES_CHANGED,U,I)}function L(){return x?x.duration:NaN}function N(){return x?x.start:NaN}function P(){if(!(f&&f.hasOwnProperty("getBitrateList")&&A&&A.hasOwnProperty("getAllMediaInfoForType")&&A.hasOwnProperty("getEventsFor")))throw new Error("Missing config parameter(s)")}function U(t){t.error&&(d.mediaKeySessionError(t.error),i(t.error),F())}function O(t){return t.type===n.TEXT?t.mimeType:t.type}function G(t){var e=t.type;if(e===n.MUXED&&t){var r="Multiplexed representations are intentionally not supported, as they are not compliant with the DASH-AVC/264 guidelines";return i(r),d.manifestError(r,"multiplexedrep",o.getValue()),!1}return e===n.TEXT||e===n.FRAGMENTED_TEXT||e===n.EMBEDDED_TEXT||e===n.IMAGE||t.contentProtection&&!h.supportsEncryptedMedia()&&d.capabilityError("encryptedmedia"),!0}function H(t){if(t.newMediaInfo.streamInfo.id===x.id){var e=j(t.oldMediaInfo);if(e){var r=y.getTime();i("Stream -  Process track changed at current time "+r);var a=t.newMediaInfo,s=o.getValue();i("Stream -  Update stream controller"),s.refreshManifestOnSwitchTrack?(i("Stream -  Refreshing manifest for switch track"),R=t,l.refreshManifest()):(e.updateMediaInfo(a),a.type!==n.FRAGMENTED_TEXT&&(f.updateTopQualityIndex(a),e.switchTrackAsked(),e.getFragmentModel().abortRequests()))}}}function V(r,l){var c=A.getAllMediaInfoForType(x,r),h=null;if(c&&0!==c.length){for(var u=0,m=c.length;u<m;u++)if(h=c[u],r===n.EMBEDDED_TEXT);else{if(!G(h))continue;b.addTrack(h)}r!==n.EMBEDDED_TEXT&&0!==b.getTracksFor(r,x).length&&(b.checkInitialMediaSettingsForType(r,x),function(i,r,l,c){var h=Ii(e).create({type:O(i),mimeType:i.mimeType,timelineConverter:p,adapter:A,manifestModel:o,dashManifestModel:a,mediaPlayerModel:s,metricsModel:g,dashMetrics:t.dashMetrics,baseURLController:t.baseURLController,stream:I,abrController:f,domStorage:t.domStorage,playbackController:y,mediaController:b,streamController:E,videoModel:v,errHandler:d});if(h.initialize(l),f.updateTopQualityIndex(i),c?(h.setBuffer(c.buffer),h.getIndexHandler().setCurrentTime(c.currentTime),C[c.replaceIdx]=h):C.push(h),
!c||!c.ignoreMediaInfo)if(i.type===n.TEXT||i.type===n.FRAGMENTED_TEXT){for(var u=void 0,m=0;m<r.length;m++)r[m].index===i.index&&(u=m),h.updateMediaInfo(r[m]);i.type===n.FRAGMENTED_TEXT&&h.updateMediaInfo(r[u])}else h.updateMediaInfo(i)}(b.getCurrentTrackFor(r,x),c,l))}else i("No "+r+" data.")}function Y(){for(var t=C.length,e=Q.audio||Q.video?new Error(1,"Data update failed",null):null,i=0;i<t;i++)if(C[i].isUpdating()||S)return;if(w){if(k)for(var o=0;o<t&&C[o];o++)C[o].getType()!==n.AUDIO&&C[o].getType()!==n.VIDEO&&C[o].getType()!==n.FRAGMENTED_TEXT||k.initializeForMedia(C[o].getMediaInfo());r.trigger(u.STREAM_INITIALIZED,{streamInfo:x,error:e})}}function z(){for(var t=0,e=C.length;t<e;t++)C[t].createBuffer()}function W(t){if(t.streamInfo===x){var e=q(),o=e.length;if(0!==o){for(var a=0;a<o;a++){var s=e[a].getBufferController();if((s&&s.getBuffer()||e[a].getType()!==n.VIDEO)&&!e[a].isBufferingCompleted()&&(e[a].getType()===n.AUDIO||e[a].getType()===n.VIDEO))return void i("[Stream] onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because streamProcessor "+e[a].getType()+" is not buffering completed")}i("[Stream] onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED"),r.trigger(u.STREAM_BUFFERING_COMPLETED,{streamInfo:x})}else i("[Stream] onBufferingCompleted - can't trigger STREAM_BUFFERING_COMPLETED because no streamProcessor is defined")}}function Z(t){var e=t.sender.getStreamProcessor();e.getStreamInfo()===x&&(Q[e.getType()]=t.error,Y())}function j(t){return!!t&&q().filter((function(e){return e.getType()===t.type}))[0]}function q(){for(var t=C.length,e=[],i=void 0,r=void 0,o=0;o<t;o++)(i=(r=C[o]).getType())!==n.AUDIO&&i!==n.VIDEO&&i!==n.FRAGMENTED_TEXT||e.push(r);return e}return I={initialize:function(t,e){x=t,(k=e)&&(r.on(u.KEY_ERROR,U,I),r.on(u.SERVER_CERTIFICATE_UPDATED,U,I),r.on(u.LICENSE_REQUEST_COMPLETE,U,I),r.on(u.KEY_SYSTEM_SELECTED,U,I),r.on(u.KEY_SESSION_CREATED,U,I),r.on(u.KEY_STATUSES_CHANGED,U,I))},activate:function(t){B||(r.on(u.CURRENT_TRACK_CHANGED,H,I),function(t){P();var r=void 0,a=v.getElement();if(_||((_=Bi(e).create()).setConfig({manifestModel:o,manifestUpdater:l,playbackController:y}),r=A.getEventsFor(x),_.addInlineEvents(r)),S=!0,(null===a||a&&("VIDEO"===a.nodeName||"BWP-VIDEO"===a.nodeName))&&(s.getAudioOnlyStartup()||V(n.VIDEO,t)),V(n.AUDIO,t),"open"!==t.readyState?(t.addEventListener("sourceopen",z,!1),t.addEventListener("webkitsourceopen",z,!1)):z(),w=!0,S=!1,0===C.length){var c="No streams to play.";d.manifestError(c,"nostreams",o.getValue()),i(c)}else Y()}(t),B=!0)},deactivate:M,getDuration:L,getStartTime:N,getId:function(){return x?x.id:NaN},getStreamInfo:function(){return x},getFragmentController:function(){return D},getEventController:function(){return _},getBitrateListFor:function(t){P();var e=function(t){for(var e=C.length,i=null,n=0;n<e;n++)if((i=C[n]).getType()===t)return i.getMediaInfo();return null}(t);return f.getBitrateList(e)},startEventController:function(){_&&_.start()},stopEventController:function(){_&&_.stop()},updateData:function(t){if(i("Manifest updated... updating data system wide."),B=!1,S=!0,x=t,_){var e=A.getEventsFor(x);_.addInlineEvents(e)}for(var n=0,r=C.length;n<r;n++){var o=C[n],a=A.getMediaInfoForType(x,o.getType());f.updateTopQualityIndex(a),o.updateMediaInfo(a)}if(R&&"fragmentedText"!==R.newMediaInfo.type){var s=j(R.oldMediaInfo);if(!s)return;s.switchTrackAsked(),R=void 0}S=!1,Y()},reset:F,getProcessors:q,setMediaSource:function(t){for(var e=0;e<C.length;)G(C[e].getMediaInfo())?(C[e].setMediaSource(t),e++):(C[e].reset(),C.splice(e,1));for(var n=0;n<C.length;n++)C[n].dischargePreBuffer();if(0===C.length){var r="No streams to play.";d.manifestError(r,"nostreams",o.getValue()),i(r)}}},T(),D=Fi(e).create({mediaPlayerModel:s,videoModel:v,metricsModel:g,errHandler:d,dashMetrics:t.dashMetrics,abrController:f,streamController:E}),r.on(u.BUFFERING_COMPLETED,W,I),r.on(u.DATA_UPDATE_COMPLETED,Z,I),I}Li.__dashjs_factory_name="Stream";var Ni=s.a.getClassFactory(Li);function Pi(){var t=this.context,e=m(t).getInstance().log,i=c(t).getInstance(),n=void 0,r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0;function p(){n=NaN,a=!1,o=!0,g()}function g(){null!==r&&(clearInterval(r),r=null)}function f(t){g(),isNaN(t)&&!isNaN(n)&&(t=1e3*n),isNaN(t)||(e("Refresh manifest in "+t+" milliseconds."),r=setTimeout(v,t))}function y(){a=!0;var t=l.getValue(),e=t.url,i=A.getLocation(t);i&&(e=i),s.load(e)}function b(t){if(h.getAppendingSourceState()){var r=h.getCachedDurationOffset("offset");t.mediaPresentationDuration+=r,t.Period.duration+=r,t.Period_asArray.duration+=r}l.setValue(t);var a=new Date,s=(a.getTime()-t.loadedTime.getTime())/1e3;1e3*(n=A.getManifestUpdatePeriod(t,s))>2147483647&&(n=2147483.647),i.trigger(u.MANIFEST_UPDATED,{manifest:t}),e("Manifest has been refreshed at "+a+"["+a.getTime()/1e3+"] "),o||f()}function v(){o&&!h.getScheduleWhilePaused()||(a?f(h.getManifestUpdateRetryInterval()):y())}function E(t){t.error?d.manifestError(t.error.message,t.error.code,"","",t.error.errorCode,t.error.httpCode):b(t.manifest)}function I(){o=!1,f()}function C(){o=!0,g()}function B(){a=!1}return{initialize:function(){p(),i.on(u.STREAMS_COMPOSED,B,this),i.on(u.PLAYBACK_STARTED,I,this),i.on(u.PLAYBACK_PAUSED,C,this),i.on(u.INTERNAL_MANIFEST_LOADED,E,this)},setManifest:function(t){b(t)},refreshManifest:y,setConfig:function(t){t&&(t.manifestModel&&(l=t.manifestModel),t.dashManifestModel&&(A=t.dashManifestModel),t.mediaPlayerModel&&(h=t.mediaPlayerModel),t.manifestLoader&&(s=t.manifestLoader),t.errHandler&&(d=t.errHandler))},reset:function(){i.off(u.PLAYBACK_STARTED,I,this),i.off(u.PLAYBACK_PAUSED,C,this),i.off(u.STREAMS_COMPOSED,B,this),i.off(u.INTERNAL_MANIFEST_LOADED,E,this),p()}}}Pi.__dashjs_factory_name="ManifestUpdater";var Ui=s.a.getClassFactory(Pi);function Oi(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Gi=1e3;function Hi(){var t,e=void 0,i=void 0,r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,c=void 0,h=void 0,d=void 0,u=void 0,p=void 0,g=void 0,f=void 0,m=void 0,y=void 0,b=void 0,v=void 0,E=void 0,I=void 0,C=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0,R=void 0,M=void 0,T=void 0,F=void 0,L=void 0,P=void 0,U=void 0,O=void 0,G=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,W=void 0,Z=void 0,j=void 0,q=void 0,J=void 0,K=void 0,X=void 0,$=void 0,tt=void 0,et=void 0,it=void 0,nt=void 0,rt=void 0,ot=void 0;function at(t){var e=void 0;for(e=0;e<S.length;e++)if(S[e].rulename===t)return e;return-1}function st(t){O=t}var lt,At,ct=null;return t={setPlayerId:function(t){tt=t},getPlayerId:function(){return tt},setABRStrategy:function(t){C=t},getABRStrategy:function(){return C},setUseDefaultABRRules:function(t){B=t},getUseDefaultABRRules:function(){return B},getABRCustomRules:function(){return S},addABRCustomRule:function(t,e,i){var n=at(e);-1===n?S.push({type:t,rulename:e,rule:i}):(S[n].type=t,S[n].rule=i)},removeABRCustomRule:function(t){var e=at(t);-1!==e&&S.splice(e,1)},removeAllABRCustomRule:function(){S=[]},setBandwidthSafetyFactor:function(t){y=t},getBandwidthSafetyFactor:function(){return y},setAbandonLoadTimeout:function(t){b=t},getAbandonLoadTimeout:function(){return b},setLastBitrateCachingInfo:function(t,e){h.enabled=t,void 0===e||isNaN(e)||"number"!=typeof e||(h.ttl=e)},getLastBitrateCachingInfo:function(){return h},setLastMediaSettingsCachingInfo:function(t,e){d.enabled=t,void 0===e||isNaN(e)||"number"!=typeof e||(d.ttl=e)},getLastMediaSettingsCachingInfo:function(){return d},setStableBufferTime:function(t){u=t},getStableBufferTime:function(){return isNaN(u)?x?20:12:u},setBufferTimeAtTopQuality:function(t){p=t},getBufferTimeAtTopQuality:function(){return p},setBufferTimeAtTopQualityLongForm:function(t){g=t},getBufferTimeAtTopQualityLongForm:function(){return g},setLongFormContentDurationThreshold:function(t){f=t},getLongFormContentDurationThreshold:function(){return f},setSegmentOverlapToleranceTime:function(t){m=t},getSegmentOverlapToleranceTime:function(){return m},getCacheLoadThresholdForType:function(t){return D[t]},
setCacheLoadThresholdForType:function(t,e){D[t]=e},setBufferToKeep:function(t){l=t},getBufferToKeep:function(){return l},setBufferAheadToKeep:function(t){A=t},getBufferAheadToKeep:function(){return A},setBufferPruningInterval:function(t){c=t},getBufferPruningInterval:function(){return c},setFragmentRetryAttempts:function(t){v[N.MEDIA_SEGMENT_TYPE]=t},getFragmentRetryAttempts:function(){return v[N.MEDIA_SEGMENT_TYPE]},setManifestRetryAttempts:function(t){v[N.MPD_TYPE]=t},getManifestRetryAttempts:function(){return v[N.MPD_TYPE]},setRetryAttemptsForType:function(t,e){v[t]=e},getRetryAttemptsForType:function(t){return v[t]},setFragmentRetryInterval:function(t){E[N.MEDIA_SEGMENT_TYPE]=t},getFragmentRetryInterval:function(){return E[N.MEDIA_SEGMENT_TYPE]},setManifestRetryInterval:function(t){E[N.MPD_TYPE]=t},getManifestRetryInterval:function(){return E[N.MPD_TYPE]},setRetryIntervalForType:function(t,e){E[t]=e},getRetryIntervalForType:function(t){return E[t]},setWallclockTimeUpdateInterval:function(t){I=t},getWallclockTimeUpdateInterval:function(){return I},setScheduleWhilePaused:function(t){s=t},getScheduleWhilePaused:function(){return s},getUseSuggestedPresentationDelay:function(){return i},setUseSuggestedPresentationDelay:function(t){i=t},setLiveDelayFragmentCount:function(t){o=t},getLiveDelayFragmentCount:function(){return o},getLiveDelay:function(){return M?a||3:a},setLiveDelay:function(t){a=t},setUseManifestDateHeaderTimeSource:function(t){e=t},getUseManifestDateHeaderTimeSource:function(){return e},setUTCTimingSources:function(t){r=t},getUTCTimingSources:function(){return r},setXHRWithCredentialsForType:function t(e,i){e?w[e]=!!i:Object.keys(w).forEach((function(e){t(e,i)}))},getXHRWithCredentialsForType:function(t){var e=w[t];return void 0===e?w.default:e},setFastSwitchEnabled:function(t){x=t},getFastSwitchEnabled:function(){return x},setFastSwitchOptimized:function(t){Q=t},getFastSwitchOptimized:function(){return Q},setMovingAverageMethod:function(t){k=t},getMovingAverageMethod:function(){return k},setJumpGaps:function(t){_=t},getJumpGaps:function(){return _},setSmallGapLimit:function(t){R=t},getSmallGapLimit:function(){return R},getLowLatencyEnabled:function(){return M},setLowLatencyEnabled:function(t){M=t},getPreloadData:function(){return T},setPreloadData:function(t){T=t},setManifestUpdateRetryInterval:function(t){F=t},getManifestUpdateRetryInterval:function(){return F},setAppendingSourceState:function(t){t!==L&&(L=t)},getAppendingSourceState:function(){return L},setCachedDurationOffset:function(t,e){e=parseFloat(e.toFixed(5)),P[t]=e},getCachedDurationOffset:function(t){return t?P[t]:P},clearCachedDruationOffset:function(){P={offset:0,duration:0}},setEndOfStreamState:function(t){U=t},getEndOfStreamState:function(){return U},setP2pPermission:st,getP2pPermission:function(){return O},addP2pSDKErrorCount:function(){(G+=1)>12&&st(!1)},getP2pSDKErrorCount:function(){return G},addBufferingCount:function(){H+=1},getBufferingCount:function(){return H},setExternalMediaLoader:function(t){X=t},getExternalMediaLoader:function(){return X},getFactorByBufferLevel:function(t){return.7},setLastStartSeekTime:function(t){V=t},getLastStartSeekTime:function(){return V},getStartPlaybackTime:function(){return Y},setStartPlaybackTime:function(t){Y=t},resetStartAndSeekTime:function(){V=0,Y=0},reset:function(){},getAudioTrackId:function(){return z},setAudioTrackId:function(t){z=t},getEnableMultipleAudioTracks:function(){return W},setEnableMultipleAudioTracks:function(t){W=t},getSupportsChangeType:function(){return j},setSupportsChangeType:function(t){j=!!t},getAudioTrackIds:function(){return Z},setAudioTrackIds:function(t){t&&Array.isArray(t)&&(Z=t)},setDeviationReset:function(t){q=t},getDeviationReset:function(t){return q},setRetryTimes:function(t){J=t},getRetryTimes:function(){return J},setPlayAt:function(t){K=t},getPlayAt:function(){return K},getUseNC:function(){return $},setUseNC:function(t){$=t},getUseP2P:function(){return rt},setUseP2P:function(t){rt=t},setEnableSupplyFrame:function(t){et=t},getEnableSupplyFrame:function(){return et},ableToSupplyFrame:function(){return it&&et&&!nt},setCanSupplyFrame:function(t){it=t},getCanSupplyFrame:function(){return it},setSupplyFrameFailed:function(t){nt=t},getSupplyFrameFailed:function(){return nt},setRecreateSeekTime:function(t){ct=t},getRecreateSeekTime:function(){return ct},setAudioOnlyStartup:function(t){ot=t},getAudioOnlyStartup:function(){return ot}},r=[],i=!1,e=!0,s=!0,C=n.ABR_STRATEGY_DYNAMIC,B=!0,x=!1,Q=!1,h={enabled:!0,ttl:36e4},d={enabled:!0,ttl:36e4},o=4,a=void 0,l=20,A=80,c=10,u=NaN,p=30,g=60,f=600,m=.2,y=.8,b=1e4,I=50,_=!1,R=1.8,F=100,w={default:!1},S=[],k=n.MOVING_AVERAGE_SLIDING_WINDOW,M=!1,L=!1,q=!1,nt=!1,it=!1,P={time:0,duration:0,offset:0},Oi(lt={},N.MPD_TYPE,3),Oi(lt,N.XLINK_EXPANSION_TYPE,1),Oi(lt,N.MEDIA_SEGMENT_TYPE,3),Oi(lt,N.INIT_SEGMENT_TYPE,3),Oi(lt,N.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),Oi(lt,N.INDEX_SEGMENT_TYPE,3),Oi(lt,N.OTHER_TYPE,3),v=lt,Oi(At={},N.MPD_TYPE,500),Oi(At,N.XLINK_EXPANSION_TYPE,500),Oi(At,N.MEDIA_SEGMENT_TYPE,Gi),Oi(At,N.INIT_SEGMENT_TYPE,Gi),Oi(At,N.BITSTREAM_SWITCHING_SEGMENT_TYPE,Gi),Oi(At,N.INDEX_SEGMENT_TYPE,Gi),Oi(At,N.OTHER_TYPE,Gi),E=At,(D={})[n.VIDEO]=25,D[n.AUDIO]=5,U=!0,O=!0,G=0,H=0,V=0,Y=0,X=null,z=1,W=!1,Z=[],j=!1,J=0,K=0,$=!0,rt=!0,ot=!1,t}Hi.__dashjs_factory_name="MediaPlayerModel";var Vi=s.a.getSingletonFactory(Hi);Vi.DEFAULT_UTC_TIMING_SOURCE={scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"http://time.akamai.com/?iso"},s.a.updateSingletonFactory(Hi.__dashjs_factory_name,Vi);var Yi=Vi,zi=new(function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.AST_IN_FUTURE="astInFuture",i.BUFFER_EMPTY="bufferStalled",i.BUFFER_LOADED="bufferLoaded",i.BUFFER_LEVEL_STATE_CHANGED="bufferStateChanged",i.ERROR="error",i.FRAGMENT_LOADING_COMPLETED="fragmentLoadingCompleted",i.FRAGMENT_LOADING_HEADER_RECEIVED="fragmentLoadingHeaderReceived",i.FRAGMENT_LOADING_PROGRESS="fragmentLoadingProgress",i.FRAGMENT_LOADING_STARTED="fragmentLoadingStarted",i.FRAGMENT_P2P_LOAD_INFO="fragmentP2pLoadInfo",i.CDN_LOAD_INFO="cdnLoadInfo",i.FRAGMENT_LOADING_ABANDONED="fragmentLoadingAbandoned",i.FRAGMENT_LOADED_ERROR="fragmentLoadedError",i.PCDN_LOADED_ERROR="pcdnLoadedError",i.LOG="log",i.MANIFEST_LOADED="manifestLoaded",i.METRICS_CHANGED="metricsChanged",i.METRIC_CHANGED="metricChanged",i.METRIC_ADDED="metricAdded",i.METRIC_UPDATED="metricUpdated",i.PERIOD_SWITCH_COMPLETED="periodSwitchCompleted",i.PERIOD_SWITCH_STARTED="periodSwitchStarted",i.QUALITY_CHANGE_REQUESTED="qualityChangeRequested",i.QUALITY_CHANGE_DOWNLOADED="qualityChangeDownloaded",i.QUALITY_CHANGE_RENDERED="qualityChangeRendered",i.SOURCE_BUFFER_CHANGE_TYPE="sourceBufferChangeType",i.SOURCE_BUFFER_CHANGE_TYPE_FAILED="sourceBufferChangeTypeFailed",i.TRACK_CHANGE_RENDERED="trackChangeRendered",i.SOURCE_INITIALIZED="sourceInitialized",i.STREAM_INITIALIZED="streamInitialized",i.STREAM_TEARDOWN_COMPLETE="streamTeardownComplete",i.TEXT_TRACKS_ADDED="allTextTracksAdded",i.TEXT_TRACK_ADDED="textTrackAdded",i.TTML_PARSED="ttmlParsed",i.TTML_TO_PARSE="ttmlToParse",i.CAN_PLAY="canPlay",i.PLAYBACK_ENDED="playbackEnded",i.PLAYBACK_ERROR="playbackError",i.PLAYBACK_NOT_ALLOWED="playbackNotAllowed",i.PLAYBACK_METADATA_LOADED="playbackMetaDataLoaded",i.PLAYBACK_PAUSED="playbackPaused",i.PLAYBACK_PLAYING="playbackPlaying",i.PLAYBACK_PROGRESS="playbackProgress",i.PLAYBACK_RATE_CHANGED="playbackRateChanged",i.PLAYBACK_SEEKED="playbackSeeked",i.PLAYBACK_SEEKING="playbackSeeking",i.PLAYBACK_SEEK_ASKED="playbackSeekAsked",i.PLAYBACK_STALLED="playbackStalled",i.PLAYBACK_STARTED="playbackStarted",i.PLAYBACK_TIME_UPDATED="playbackTimeUpdated",i.PLAYBACK_WAITING="playbackWaiting",i.MANIFEST_VALIDITY_CHANGED="manifestValidityChanged",i.DELAY_TO_APPEND_TO_BUFFER="delayToAppendBuffer",i.GET_NEXT_FRAGMENT="getNextFragment",i.APPENDING_NEXT_SOURCE="appendingNextSource",
i.APPENDED_NEXT_SOURCE="appendedNextSource",i.APPENDED_NEXT_SOURCE_DURATION_CHANGED="appendedNextSourceDurationChanged",i.START_OFFSET_TIME_WARNING="startOffsetTimeWarning",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(h.a));function Wi(){var t=this.context,e=m(t).getInstance().log,i=c(t).getInstance(),r=Me(t).getInstance(),o=void 0,a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0;function p(t){a=t}function g(t){}function f(t){o=t}function y(t){var e,i,n,r=Date.parse(t);return isNaN(r)&&(e=void 0,i=void 0,n=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+\-])([0-9]{2})([0-9]{2}))?/.exec(t),e=Date.UTC(parseInt(n[1],10),parseInt(n[2],10)-1,parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10),n[6]&&(parseInt(n[6],10)||0),n[7]&&1e3*parseFloat(n[7])||0),n[9]&&n[10]&&(i=60*parseInt(n[9],10)+parseInt(n[10],10),e+=("+"===n[8]?-1:1)*i*60*1e3),r=new Date(e).getTime()),r}function b(t){return Date.parse(t)}function v(t){return Date.parse(t)}function E(t,e,i){i()}function I(t,e,i){var n=y(t);isNaN(n)?i():e(n)}function C(t,e,i,n,o){var a,s,l=!1,A=new XMLHttpRequest,c=o?N.HEAD:N.GET,h=e.match(/\S+/g);if(e=h.shift(),a=function(){l||(l=!0,h.length?C(t,h.join(" "),i,n,o):n())},s=function(){var e=void 0,n=void 0;200===A.status&&(e=o?A.getResponseHeader("Date"):A.response,n=t(e),isNaN(n)||(i(n),l=!0))},r.isRelative(e)){var u=d.resolve();u&&(e=r.resolve(e,u.url))}A.open(c,e),A.timeout=5e3,A.onload=s,A.onloadend=a,A.send()}function w(t,e,i){C(v,t,e,i,!0)}function x(t,e,n){p(!1),i.trigger(u.TIME_SYNCHRONIZATION_COMPLETED,{time:e,offset:n,error:t?new B(1):null})}function Q(t,i){var r=i||0,a=t[r],c=function(t,e){var i,r,a,l=!t||!e;l&&s?(i=A.getReadOnlyMetricsFor(n.STREAM),a=null!==(r=h.getLatestMPDRequestHeaderValueByID(i,"Date"))?new Date(r).getTime():Number.NaN,isNaN(a)?x(!0):(f(a-(new Date).getTime()),x(!1,a/1e3,o))):x(l,t,e)};p(!0),a?l.hasOwnProperty(a.schemeIdUri)?l[a.schemeIdUri](a.value,(function(t){var i=(new Date).getTime(),n=t-i;f(n),e("Local time:      "+new Date(i)),e("Server time:     "+new Date(t)),e("Difference (ms): "+n),c(t,n)}),(function(){Q(t,r+1)})):Q(t,r+1):(f(0),c())}return{initialize:function(t,e){s=e,o=0,a=!1,l={"urn:mpeg:dash:utc:http-head:2014":w,"urn:mpeg:dash:utc:http-xsdate:2014":C.bind(null,y),"urn:mpeg:dash:utc:http-iso:2014":C.bind(null,b),"urn:mpeg:dash:utc:direct:2014":I,"urn:mpeg:dash:utc:http-head:2012":w,"urn:mpeg:dash:utc:http-xsdate:2012":C.bind(null,y),"urn:mpeg:dash:utc:http-iso:2012":C.bind(null,b),"urn:mpeg:dash:utc:direct:2012":I,"urn:mpeg:dash:utc:http-ntp:2014":E,"urn:mpeg:dash:utc:ntp:2014":E,"urn:mpeg:dash:utc:sntp:2014":E},a||(Q(t),g(!0))},getOffsetToDeviceTimeMs:function(){return o},setConfig:function(t){t&&(t.metricsModel&&(A=t.metricsModel),t.dashMetrics&&(h=t.dashMetrics),t.baseURLController&&(d=t.baseURLController))},reset:function(){g(!1),p(!1)}}}Wi.__dashjs_factory_name="TimeSyncController";var Zi=s.a.getSingletonFactory(Wi);Zi.TIME_SYNC_FAILED_ERROR_CODE=1,Zi.HTTP_TIMEOUT_MS=5e3,s.a.updateSingletonFactory(Wi.__dashjs_factory_name,Zi);var ji=Zi,qi=i(15),Ji=i.n(qi);function Ki(){return{areEqual:function(t,e){return Ji()(t,e)}}}Ki.__dashjs_factory_name="ObjectUtils";var Xi=s.a.getSingletonFactory(Ki),$i=NaN,tn=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data={baseUrls:e||null,selectedIdx:i||$i},this.children=[]};function en(){var t,e=void 0,i=void 0,n=this.context,r=Xi(n).getInstance();function o(t,e,n){var o=i.getBaseURLsFromElement(n);t[e]?r.areEqual(o,t[e].data.baseUrls)||(t[e].data.baseUrls=o,t[e].data.selectedIdx=$i):t[e]=new tn(o)}function a(t,i){var n=i||e;t(n.data),n.children&&n.children.forEach((function(e){return a(t,e)}))}function s(){e=new tn}return t={reset:s,update:function(t){var n,a;n=t,a=i.getBaseURLsFromElement(n),r.areEqual(a,e.data.baseUrls)||(e.data.baseUrls=a,e.data.selectedIdx=$i),n.Period_asArray&&n.Period_asArray.forEach((function(t,n){o(e.children,n,t),t.AdaptationSet_asArray&&t.AdaptationSet_asArray.forEach((function(t,r){o(e.children[n].children,r,t),t.Representation_asArray&&t.Representation_asArray.sort(i.getRepresentationSortFunction()).forEach((function(t,i){o(e.children[n].children[r].children,i,t)}))}))}))},getForPath:function(t){var i=e,n=[i.data];return t&&t.forEach((function(t){(i=i.children[t])&&n.push(i.data)})),n.filter((function(t){return t.baseUrls.length}))},invalidateSelectedIndexes:function(t){a((function(e){isNaN(e.selectedIdx)||t===e.baseUrls[e.selectedIdx].serviceLocation&&(e.selectedIdx=$i)}))},setConfig:function(t){t.dashManifestModel&&(i=t.dashManifestModel)}},s(),t}en.__dashjs_factory_name="BaseURLTreeModel";var nn=s.a.getClassFactory(en);function rn(t){return t=t||{},{select:function(t){return t&&function(t){var e=0,i=[],n=0,r=void 0,o=void 0;if((o=t.sort((function(t,e){var i=t.dvb_priority-e.dvb_priority;return isNaN(i)?0:i})).filter((function(t,e,i){return!e||i[0].dvb_priority&&t.dvb_priority&&i[0].dvb_priority===t.dvb_priority}))).length)return o.length>1&&(o.forEach((function(t){e+=t.dvb_weight,i.push(e)})),r=Math.floor(Math.random()*(e-1)),i.every((function(t,e){return n=e,!(r<t)}))),o[n]}((e=[],t.filter((function(){return!0})).filter((function(t){return!e.length||!t.dvb_priority||-1===e.indexOf(t.dvb_priority)}))));var e}}}rn.__dashjs_factory_name="DVBSelector";var on=s.a.getClassFactory(rn);function an(t){return t=t||{},{select:function(t){var e=0,i=void 0;return t&&t.some((function(t,i){return e=i,!0}))&&(i=t[e]),i}}}an.__dashjs_factory_name="BasicSelector";var sn=s.a.getClassFactory(an),ln="Failed to resolve a valid URL";function An(){var t,e=this.context,i=c(e).getInstance(),n=void 0,r=void 0,o=void 0,a=void 0;function s(){}return t={chooseSelectorFromManifest:function(t){!function(){if(!n||!n.hasOwnProperty("getIsDVB"))throw new Error("Missing config parameter(s)")}(),a=n.getIsDVB(t)?o:r},select:function(t){var e=t.baseUrls,n=t.selectedIdx;if(!isNaN(n))return e[n];var r=a.select(e);if(r)return t.selectedIdx=e.indexOf(r),r;i.trigger(u.URL_RESOLUTION_FAILED,{error:new Error(1,ln)})},reset:s,setConfig:function(t){t.selector&&(a=t.selector),t.dashManifestModel&&(n=t.dashManifestModel)}},r=sn(e).create({}),o=on(e).create({}),a=r,t}An.__dashjs_factory_name="BaseURLSelector";var cn=s.a.getClassFactory(An);cn.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=1,cn.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE=ln,s.a.updateClassFactory(An.__dashjs_factory_name,cn);var hn=cn,dn=function t(e,i,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.url=e||"",this.serviceLocation=i||e||"",this.dvb_priority=n||1,this.dvb_weight=r||1,this.availabilityTimeOffset=0,this.availabilityTimeComplete=!0};dn.DEFAULT_DVB_PRIORITY=1,dn.DEFAULT_DVB_WEIGHT=1;var un=dn;function pn(){var t=void 0,e=void 0,i=this.context,n=c(i).getInstance(),r=Me(i).getInstance(),o=void 0,a=void 0;function s(t){o.invalidateSelectedIndexes(t.entry)}return t={reset:function(){o.reset(),a.reset()},initialize:function(t){var i;o.setConfig({dashManifestModel:e}),a.setConfig({dashManifestModel:e}),i=t,o.update(i),a.chooseSelectorFromManifest(i)},resolve:function(t){var e=o.getForPath(t).reduce((function(t,e){var i=a.select(e);return i?(r.isRelative(i.url)?t.url=r.resolve(i.url,t.url):(t.url=i.url,t.serviceLocation=i.serviceLocation),t.urls=i.urls,t.availabilityTimeOffset=i.availabilityTimeOffset,t.availabilityTimeComplete=i.availabilityTimeComplete,t):new un}),new un);if(!r.isRelative(e.url))return e},setConfig:function(t){t.baseURLTreeModel&&(o=t.baseURLTreeModel),t.baseURLSelector&&(a=t.baseURLSelector),t.dashManifestModel&&(e=t.dashManifestModel)}},o=nn(i).create(),a=hn(i).create(),n.on(u.SERVICE_LOCATION_BLACKLIST_CHANGED,s,t),t}pn.__dashjs_factory_name="BaseURLController";var gn=s.a.getSingletonFactory(pn);function fn(){var t;return t={
createMediaSource:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t&&window.BwpElement&&t instanceof window.BwpElement&&window.BwpMediaSource)return new BwpMediaSource;var e="WebKitMediaSource"in window;return"MediaSource"in window?new MediaSource:e?new WebKitMediaSource:null},attachMediaSource:function(t,e){var i=void 0;return i=window.BwpMediaSource&&t instanceof window.BwpMediaSource&&t.createObjectURL?t.createObjectURL():window.URL.createObjectURL(t),e.setSource(i),i},detachMediaSource:function(t){t.setSource(null)},setDuration:function t(e,i){return e.duration!=i&&function(t,e){var i=void 0,n=50,r=function(){for(var e=!1,i=0;i<t.length;i++)t[i].updating&&(e=!0);return e};if(t.length&&r()){var o=function(){r()||(clearInterval(i),e())},a=function t(){this.removeEventListener("updateend",t,!1),this.removeEventListener("abort",t,!1),this.removeEventListener("error",t,!1),r()||e()};if("function"==typeof t[0].addEventListener)try{for(var s=0;s<t.length;s++)t[s].updating&&(t[s].addEventListener("updateend",a,!1),t[s].addEventListener("abort",a,!1),t[s].addEventListener("error",a,!1))}catch(t){i=setInterval(o,n)}else i=setInterval(o,n)}else e()}(e.sourceBuffers,(function(){if("open"===e.readyState)e.duration=i;else var n=setTimeout((function(){clearTimeout(n),t(e,i)}),50)})),e.duration},setSeekable:function(t,e,i){t&&"function"==typeof t.setLiveSeekableRange&&"function"==typeof t.clearLiveSeekableRange&&"open"===t.readyState&&e>=0&&e<i&&(t.clearLiveSeekableRange(),t.setLiveSeekableRange(e,i))},signalEndOfStream:function(t){var e=t.sourceBuffers,i=e.length;if("open"===t.readyState){for(var n=0;n<i;n++){if(e[n].updating)return;if(0===e[n].buffered.length)return}t.endOfStream()}}},t}fn.__dashjs_factory_name="MediaSourceController";var mn=s.a.getSingletonFactory(fn);function yn(){var t=this.context,e=m(t).getInstance().log,i=c(t).getInstance(),a=void 0,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0,p=void 0,g=void 0,f=void 0,y=void 0,b=void 0,v=void 0,E=void 0,I=void 0,C=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0,R=void 0,M=void 0,T=void 0,F=void 0,L=void 0,N=void 0,P=void 0,U=void 0,O=void 0,G=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,W=void 0,Z=void 0,j=void 0,q=void 0,J=void 0;function K(t){var e=t.duration;ht(e-.1),dt(e-.1)}function X(){if(ft()){var t=N.getPlaybackQuality();if(t&&g.addDroppedFrames(n.VIDEO,t),!U.getJumpGaps()||!k||0===k.getProcessors().length||P.isSeeking()||O||M||T||F)return;!function(){var t=.5,n=1,r=P.getTime(),o=N.getEnded(),a=N.getVideoBufferRanges(),s=!1,l=void 0;if(!(a.length<=0||o)&&1!==a.length){for(var A=0;A<a.length;A++)if(r>=a[A].start&&r<=a[A].end){l=A,s=!0;break}for(var c=k.getProcessors(),h=[],d=0;d<c.length;d++){var p=c[d].getBuffer(),g=p&&p.getAllBufferRanges&&p.getAllBufferRanges();if(g&&g.length>1){var f=c[d].getMediaInfo().type;h.push(f)}}if(s){var m=a.slice(l);if(m[0].end-r<t){if(1===m.length)return;for(var y=1;y<m.length;y++)if(m[y].end-m[y].start>=n)return e("Gap has been prdiected,seek from ",r," to ",m[y].start),P.seek(m[y].start),void i.trigger(u.PREDICT_SEEK,{currentTime:r,bufferRanges:a,destination:m[y].start,mediaTypes:h.join(",")});P.seek(m[m.length-1].start)}}}}()}}function $(){if(!(!U.getJumpGaps()||!k||0===k.getProcessors().length||P.isSeeking()||O||M||T||F)&&++Z>=2){var t=P.getTime();J===t?function(t){for(var n=k.getProcessors(),r=U.getSmallGapLimit(),o=void 0,a=0;a<n.length;a++){var s=n[a].getBuffer(),l=s&&s.getAllBufferRanges&&s.getAllBufferRanges(),A=void 0;if(l&&!(l.length<=1)){for(var c=0;c<l.length;c++)if(t<l.start(c)){A=l.start(c);break}if(A>0){var h=A-t;h>0&&h<=r&&(void 0===o||A>o)&&(o=A)}}}var d=P.getTimeToStreamEnd();if(void 0===o&&!isNaN(d)&&d<r&&(o=t+d),o>0)if(!isNaN(d)&&o>=t+d){e("Jumping media gap (discontinuity) at time ",t,". Jumping to end of the stream");var p=N.getVideoBufferRanges();if(p&&p.length){var g=p[p.length-1].end;!g||j||N.getEnded()||(j=!0,P.seek(g+1),i.trigger(u.JUMP_MEDIA_GAP,{time:t,seekToPosition:g+1,toEnd:!0}),e("Stuck in ending. Jumping to end of the stream."))}}else i.trigger(u.JUMP_MEDIA_GAP,{time:t,seekToPosition:o,toEnd:!1}),e("Jumping media gap (discontinuity) at time ",t,". Jumping to time position",o),P.seek(o)}(t):J=t,Z=0}}function tt(t){var e=at(t.seekTime);W&&(nt(),z=!1),e&&e!==k?(yt(Ee.END_OF_PERIOD_STOP_REASON),lt(k,e,t.seekTime)):yt(Ee.USER_REQUEST_STOP_REASON),bt(ve.SEEK_START_REASON)}function et(){e("[StreamController][onPlaybackStarted]"),G?(G=!1,bt(ve.INITIAL_PLAYOUT_START_REASON)):O&&(O=!1,bt(ve.RESUME_FROM_PAUSE_START_REASON),rt())}function it(t){e("[StreamController][onPlaybackPaused]"),t.ended||(O=!0,yt(Ee.USER_REQUEST_STOP_REASON),rt())}function nt(){e("[StreamController][toggleEndPeriodTimer] stop end period timer."),clearTimeout(W),W=void 0}function rt(){if(z)if(W)nt();else{var t=P.getTimeToStreamEnd(),n=t>0?1e3*t:0;e("[StreamController][toggleEndPeriodTimer] start-up of timer to notify PLAYBACK_ENDED event. It will be triggered in "+n+" milliseconds"),W=setTimeout((function(){i.trigger(u.PLAYBACK_ENDED)}),n)}}function ot(){var t=Et().isLast,i=U.getEndOfStreamState();L&&t?(e("[StreamController][onStreamBufferingCompleted] calls signalEndOfStream of mediaSourceController."),i&&y.signalEndOfStream(L)):L&&void 0===W&&(e("[StreamController][onStreamBufferingCompleted] end of period detected"),z=!0,!1===O&&rt())}function at(t){var e=0,i=null,n=S.length;n>0&&(e+=S[0].getStartTime());for(var r=0;r<n;r++)if(i=S[r],t<(e=parseFloat((e+i.getDuration()).toFixed(5))))return i;return null}function st(t){var i=function(){if(k){var t=k.getStreamInfo().start,e=k.getStreamInfo().duration;return S.filter((function(i){return i.getStreamInfo().start===parseFloat((t+e).toFixed(5))}))[0]}}();i?(Y=void 0,V=void 0,lt(k,i,NaN)):e("StreamController no next stream found"),yt(i?Ee.END_OF_PERIOD_STOP_REASON:Ee.END_OF_CONTENT_STOP_REASON),W=void 0,z=!1;try{if(U.getEndOfStreamState()){var n=St("video"),r=St("audio");isNaN(n)&&isNaN(r)||(P.seek(P.getTime()-.3),y.signalEndOfStream(L))}}catch(t){console.error("Hack PLAYBACK_END trigger native ended event error",t)}}function lt(t,e,n){!M&&e&&t!==e&&(M=!0,i.trigger(u.PERIOD_SWITCH_STARTED,{fromStreamInfo:t?t.getStreamInfo():null,toStreamInfo:e.getStreamInfo()}),t&&(t.stopEventController(),t.deactivate()),k=e,P.initialize(k.getStreamInfo()),N.getElement()?At(n,t,!1):ct(n))}function At(t,n,r){var o=void 0;function a(){L&&(e("MediaSource is open!"),window.URL.revokeObjectURL(o),L.removeEventListener("sourceopen",a),L.removeEventListener("webkitsourceopen",a),ht(),n||i.trigger(u.SOURCE_INITIALIZED),r&&k.setMediaSource(L))}L?y.detachMediaSource(N):L=y.createMediaSource(N.getElement()),ct(t),L.addEventListener("sourceopen",a,!1),L.addEventListener("webkitsourceopen",a,!1),o=y.attachMediaSource(L,N),e("MediaSource attached to element.  Waiting on open...")}function ct(t){if(k.activate(L),Y=mt(n.AUDIO),V=mt(n.VIDEO),!G)if(isNaN(t)){var e=P.getStreamStartTime(!0);k.getProcessors().forEach((function(t){p.setIndexHandlerTime(t,e)}))}else P.seek(t);k.startEventController(),!R&&G||P.play(),M=!1,i.trigger(u.PERIOD_SWITCH_COMPLETED,{toStreamInfo:k.getStreamInfo()})}function ht(t){var i=t||k.getStreamInfo().manifestInfo.duration,n=y.setDuration(L,i);e("Duration successfully set to: "+n)}function dt(t){if(t)for(var e=k.getProcessors(),i=0;i<e.length;i++){var n=e[i].getBuffer();n&&n.setAppendWindowEnd(t)}}function ut(t){for(var e=0,i=S.length;e<i;e++)if(S[e].getId()===t.id)return S[e];return null}function pt(){var e=h.getValue();D&&(i.trigger(u.PROTECTION_CREATED,{controller:D,manifest:e}),D.setMediaElement(N.getElement()),_&&D.setProtectionData(_)),function(){try{var e=p.getStreamsInfo();if(0===e.length)throw new Error("There are no streams");var r=f.getCurrentManifestUpdate(g.getMetricsFor(n.STREAM));g.updateManifestUpdateInfo(r,{currentTime:P.getTime(),buffered:N.getBufferRange(),presentationStartTime:e[0].start,clientTimeOffset:Q.getClientTimeOffset()});for(var o=0,A=e.length;o<A;o++){var c=e[o],m=ut(c);m?m.updateData(c):(m=Ni(t).create({manifestModel:h,dashManifestModel:d,mediaPlayerModel:U,metricsModel:g,dashMetrics:f,manifestUpdater:l,adapter:p,
timelineConverter:Q,capabilities:s,errHandler:x,baseURLController:v,domStorage:E,abrController:I,playbackController:P,mediaController:C,videoModel:N,streamController:a}),S.push(m),m.initialize(c,D)),g.addManifestUpdateStreamInfo(r,c.id,c.index,c.start,c.duration)}if(!k){var y=P.getStartTimeFromUriParameters(),b=null;y&&(b=at(isNaN(y.fragS)?y.fragT:y.fragS)),lt(null,null!==b?b:S[0],NaN)}i.trigger(u.STREAMS_COMPOSED)}catch(t){x.manifestError(t.message,"nostreamscomposed",h.getValue()),F=!0,xt()}}()}function gt(t){if(t.error)F=!0,xt();else{var i=t.manifest;U.getAppendingSourceState()&&ht(i.mediaPresentationDuration),p.updatePeriods(i);var r=p.getStreamsInfo(void 0,1)[0],o=p.getMediaInfoForType(r,n.VIDEO)||p.getMediaInfoForType(r,n.AUDIO),a=void 0;o&&(a=d.getUseCalculatedLiveEdgeTimeForAdaptation(p.getDataForMedia(o)))&&(e("SegmentTimeline detected using calculated Live Edge Time"),U.setUseManifestDateHeaderTimeSource(!1));var s=d.getUTCTimingSources(t.manifest),l=!d.getIsDynamic(i)||a?s:s.concat(U.getUTCTimingSources()),A=w.isHTTPS(t.manifest.url);l.forEach((function(t){t.value.replace(/.*?:\/\//g,"")===Yi.DEFAULT_UTC_TIMING_SOURCE.value.replace(/.*?:\/\//g,"")&&(t.value=t.value.replace(A?new RegExp(/^(http:)?\/\//i):new RegExp(/^(https:)?\/\//i),A?"https://":"http://"),e("Matching default timing source protocol to manifest protocol: ",t.value))})),v.initialize(i),b.setConfig({metricsModel:g,dashMetrics:f,baseURLController:v}),b.initialize(l,U.getUseManifestDateHeaderTimeSource())}}function ft(){return V}function mt(t){var e=!1;return k&&k.getProcessors().forEach((function(i){i.getMediaInfo().type===t&&(e=!0)})),e}function yt(t,e){e=e||new Date,H&&(k&&k.getProcessors().forEach((function(i){var n=i.getScheduleController();n&&n.finalisePlayList(e,t)})),g.addPlayList(H),H=null)}function bt(t){(H=new ve).start=new Date,H.mstart=1e3*P.getTime(),H.starttype=t,k&&k.getProcessors().forEach((function(t){var e=t.getScheduleController();e&&e.setPlayList(H)}))}function vt(t){if(t.error){var i="",n=o.MEDIA_ERROR,r=void 0;switch(this.MEDIA_DOWNLOAD_ERROR=5001,t.error.code){case 1:i="MEDIA_ERR_ABORTED",n=o.MEDIA_ABORTED_ERROR;break;case 2:i="MEDIA_ERR_NETWORK",n=o.MEDIA_NETWORK_ERROR;break;case 3:i="MEDIA_ERR_DECODE",n=o.MEDIA_DECODE_ERROR,a=t.error.message,s=o.MEDIA_DECODE_ERROR_UNKNOWN,String.prototype.includes.call(a,"video")?s=o.MEDIA_DECODE_ERROR_VIDEO:String.prototype.includes.call(a,"audio")&&(s=o.MEDIA_DECODE_ERROR_AUDIO),r=s;break;case 4:i="MEDIA_ERR_SRC_NOT_SUPPORTED",n=o.MEDIA_SUPPORTED_ERROR;break;case 5:i="MEDIA_ERR_ENCRYPTED",n=o.MEDIA_ENCRYPTED_ERROR;break;default:i="UNKNOWN",n=o.MEDIA_UNKNOWN_ERROR}t.errorCode=n,T=!0,t.error.message&&(i+=" ("+t.error.message+")"),t.error.msExtendedCode&&(i+=" (0x"+(t.error.msExtendedCode>>>0).toString(16).toUpperCase()+")"),e("Video Element Error: "+i),t.error&&e(t.error),x.mediaSourceError(i,n,r),xt()}var a,s}function Et(){return k?k.getStreamInfo():null}function It(){if(!(A&&A.hasOwnProperty("load")&&Q&&Q.hasOwnProperty("initialize")&&Q.hasOwnProperty("reset")&&Q.hasOwnProperty("getClientTimeOffset")))throw new Error("setConfig function has to be called previously")}function Ct(t){isNaN(t.newDuration)||ht(t.newDuration)}function wt(){S=[],D=null,M=!1,k=null,T=!1,F=!1,V=void 0,Y=void 0,G=!0,O=!1,R=!0,H=null,W=void 0,z=!1,Z=0,j=!1}function xt(){It(),q&&(clearTimeout(q),q=null),b.reset(),yt(T||F?Ee.FAILURE_STOP_REASON:Ee.USER_REQUEST_STOP_REASON);for(var t=0,e=S?S.length:0;t<e;t++)S[t].reset(T);i.off(u.PLAYBACK_TIME_UPDATED,X,this),i.off(u.BYTES_APPENDED_END_FRAGMENT,X,this),i.off(u.PLAYBACK_SEEKING,tt,this),i.off(u.PLAYBACK_ERROR,vt,this),i.off(u.PLAYBACK_STARTED,et,this),i.off(u.PLAYBACK_PAUSED,it,this),i.off(u.PLAYBACK_ENDED,st,this),i.off(u.MANIFEST_UPDATED,gt,this),i.off(u.STREAM_BUFFERING_COMPLETED,ot,this),i.off(zi.METRIC_ADDED,Qt,this),i.off(u.MANIFEST_VALIDITY_CHANGED,Ct,this),i.off(u.EXTRA_FRAMES_LOADING_FAILED,K,this),v.reset(),l.reset(),g.clearAllCurrentMetrics(),h.setValue(null),A.reset(),Q.reset(),B.reset(),L&&(y.detachMediaSource(N),L=null),N=null,D&&(D.setMediaElement(null),D=null,_=null,h.getValue()&&i.trigger(u.PROTECTION_DESTROYED,{data:h.getValue().url})),i.trigger(u.STREAM_TEARDOWN_COMPLETE),wt()}function Qt(t){t.metric===r.DVR_INFO&&t.mediaType===n.AUDIO&&y.setSeekable(L,t.value.range.start,t.value.range.end)}function St(t){return-1!==[n.VIDEO,n.AUDIO,n.FRAGMENTED_TEXT].indexOf(t)?f.getCurrentBufferLevel(g.getReadOnlyMetricsFor(t))||NaN:(e("Warning  - getBufferLength requested for invalid type"),NaN)}return a={initialize:function(e,n){It(),R=e,_=n,Q.initialize(),(l=Ui(t).create()).setConfig({manifestModel:h,dashManifestModel:d,mediaPlayerModel:U,manifestLoader:A,errHandler:x}),l.initialize(),v.setConfig({dashManifestModel:d}),i.on(u.TIME_SYNCHRONIZATION_COMPLETED,pt,this),i.on(u.PLAYBACK_SEEKING,tt,this),i.on(u.PLAYBACK_TIME_UPDATED,X,this),i.on(u.BYTES_APPENDED_END_FRAGMENT,X,this),i.on(u.PLAYBACK_ENDED,st,this),i.on(u.PLAYBACK_ERROR,vt,this),i.on(u.PLAYBACK_STARTED,et,this),i.on(u.PLAYBACK_PAUSED,it,this),i.on(u.MANIFEST_UPDATED,gt,this),i.on(u.STREAM_BUFFERING_COMPLETED,ot,this),i.on(u.MANIFEST_VALIDITY_CHANGED,Ct,this),i.on(u.WALLCLOCK_TIME_UPDATED,$,this),i.on(u.EXTRA_FRAMES_LOADING_FAILED,K,this),i.on(zi.METRIC_ADDED,Qt,this)},getActiveStreamInfo:Et,isVideoTrackPresent:ft,setVideoTrackDetected:function(t){V=t},isAudioTrackPresent:function(){return Y},switchToVideoElement:function(t){P.initialize(k.getStreamInfo()),At(t,null,!0)},getStreamById:function(t){return S.filter((function(e){return e.getId()===t}))[0]},getStreamForTime:at,getDuration:function(){if(k)return k.getStreamInfo().duration},getTimeRelativeToStreamId:function(t,e){for(var i=null,n=0,r=0,o=null,a=S.length,s=0;s<a;s++){if(r=(i=S[s]).getStartTime(),o=i.getDuration(),Number.isFinite(r)&&(n=r),i.getId()===e)return t-n;Number.isFinite(o)&&(n+=o)}return null},load:function(t,e,i){It(),A.load(t,e,i)},loadWithManifest:function(t){!function(){if(!l||!l.hasOwnProperty("setManifest"))throw new Error("initialize function has to be called previously")}(),l.setManifest(t)},getActiveStreamProcessors:function(){return k?k.getProcessors():[]},setConfig:function(t){t&&(t.capabilities&&(s=t.capabilities),t.manifestLoader&&(A=t.manifestLoader),t.manifestModel&&(h=t.manifestModel),t.dashManifestModel&&(d=t.dashManifestModel),t.mediaPlayerModel&&(U=t.mediaPlayerModel),t.protectionController&&(D=t.protectionController),t.adapter&&(p=t.adapter),t.metricsModel&&(g=t.metricsModel),t.dashMetrics&&(f=t.dashMetrics),t.errHandler&&(x=t.errHandler),t.timelineConverter&&(Q=t.timelineConverter),t.videoModel&&(N=t.videoModel),t.playbackController&&(P=t.playbackController),t.domStorage&&(E=t.domStorage),t.abrController&&(I=t.abrController),t.mediaController&&(C=t.mediaController))},setProtectionData:function(t){_=t},setMediaDuration:ht,setAppendWindowEnd:dt,reset:xt},b=ji(t).getInstance(),v=gn(t).getInstance(),y=mn(t).getInstance(),B=Bt(t).getInstance(),w=Me(t).getInstance(),wt(),a}yn.__dashjs_factory_name="StreamController";var bn=s.a.getSingletonFactory(yn),vn=function(t){function e(i,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return o.url=i||null,o.type=r||null,o.mediaType=n.STREAM,o.responseType="",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(g);function En(t){t=t||{};var e=this.context,i=c(e).getInstance(),n=gi(e).create({errHandler:t.errHandler,videoModel:t.videoModel,metricsModel:t.metricsModel,mediaPlayerModel:t.mediaPlayerModel,requestModifier:t.requestModifier});return{load:function(t,e,r){var o=function(n,o){e.resolved=!0,e.resolvedContent=n||null,i.trigger(u.XLINK_ELEMENT_LOADED,{element:e,resolveObject:r,
error:n||o?null:new B(1,"Failed loading Xlink element: "+t)})};if("urn:mpeg:dash:resolve-to-zero:2013"===t)o(null,!0);else{var a=new vn(t,N.XLINK_TYPE);n.load({request:a,success:function(t){o(t)},error:function(){o(null)}})}},reset:function(){n&&(n.abort(),n=null)}}}En.__dashjs_factory_name="XlinkLoader";var In=s.a.getClassFactory(En);In.XLINK_LOADER_ERROR_LOADING_FAILURE=1,s.a.updateClassFactory(En.__dashjs_factory_name,In);var Cn=In,Bn=function(t){void 0===(t=t||{}).escapeMode&&(t.escapeMode=!0),void 0===t.attributePrefix&&(t.attributePrefix="_"),t.arrayAccessForm=t.arrayAccessForm||"none",t.emptyNodeForm=t.emptyNodeForm||"text",void 0===t.enableToStringFunc&&(t.enableToStringFunc=!0),t.arrayAccessFormPaths=t.arrayAccessFormPaths||[],void 0===t.skipEmptyTextNodesForObj&&(t.skipEmptyTextNodesForObj=!0),void 0===t.stripWhitespaces&&(t.stripWhitespaces=!0),t.datetimeAccessFormPaths=t.datetimeAccessFormPaths||[],void 0===t.useDoubleQuotes&&(t.useDoubleQuotes=!1),t.xmlElementsFilter=t.xmlElementsFilter||[],t.jsonPropertiesFilter=t.jsonPropertiesFilter||[],void 0===t.keepCData&&(t.keepCData=!1),void 0===t.ignoreRoot&&(t.ignoreRoot=!1);var e=1,i=3,n=4,r=8,o=9;function a(t){var e=t.localName;return null==e&&(e=t.baseName),null!=e&&""!=e||(e=t.nodeName),e}function s(t){return"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):t}function l(t,e,i,n){for(var r=0;r<t.length;r++){var o=t[r];if("string"==typeof o){if(o==n)break}else if(o instanceof RegExp){if(o.test(n))break}else if("function"==typeof o&&o(e,i,n))break}return r!=t.length}function A(e,i,n){"property"===t.arrayAccessForm&&(e[i]instanceof Array?e[i+"_asArray"]=e[i]:e[i+"_asArray"]=[e[i]]),!(e[i]instanceof Array)&&t.arrayAccessFormPaths.length>0&&l(t.arrayAccessFormPaths,e,i,n)&&(e[i]=[e[i]])}function c(t){var e=t.split(/[-T:+Z]/g),i=new Date(e[0],e[1]-1,e[2]),n=e[5].split(".");if(i.setHours(e[3],e[4],n[0]),n.length>1&&i.setMilliseconds(n[1]),e[6]&&e[7]){var r=60*e[6]+Number(e[7]);r=0+("-"==(/\d\d-\d\d:\d\d$/.test(t)?"-":"+")?-1*r:r),i.setMinutes(i.getMinutes()-r-i.getTimezoneOffset())}else-1!==t.indexOf("Z",t.length-1)&&(i=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds())));return i}function h(i,n,r,o){return!(n==e&&t.xmlElementsFilter.length>0)||l(t.xmlElementsFilter,i,r,o)}function d(s,u){if(s.nodeType==o){for(var p=new Object,g=s.childNodes,f=0;f<g.length;f++)(y=g[f]).nodeType==e&&(t.ignoreRoot?p=d(y):(p={})[b=a(y)]=d(y));return p}if(s.nodeType==e){(p=new Object).__cnt=0;var m=[];for(g=s.childNodes,f=0;f<g.length;f++){var y,b=a(y=g[f]);if(y.nodeType!=r){var v=u+"."+b;if(h(p,y.nodeType,b,v))if(p.__cnt++,null==p[b]){var E=d(y,v);("#text"!=b||/[^\s]/.test(E))&&((I={})[b]=E,m.push(I)),p[b]=E,A(p,b,v)}else{var I;null!=p[b]&&(p[b]instanceof Array||(p[b]=[p[b]],A(p,b,v))),E=d(y,v),("#text"!=b||/[^\s]/.test(E))&&((I={})[b]=E,m.push(I)),p[b][p[b].length]=E}}}p.__children=m;for(var C=a(s),B=0;B<s.attributes.length;B++){var w=s.attributes[B];p.__cnt++;for(var x=w.value,Q=0,S=t.matchers.length;Q<S;Q++){var k=t.matchers[Q];k.test(w,C)&&(x=k.converter(w.value))}p[t.attributePrefix+w.name]=x}var D=s.prefix;return null!=D&&""!=D&&(p.__cnt++,p.__prefix=D),null!=p["#text"]&&(p.__text=p["#text"],p.__text instanceof Array&&(p.__text=p.__text.join("\n")),t.stripWhitespaces&&(p.__text=p.__text.trim()),delete p["#text"],"property"==t.arrayAccessForm&&delete p["#text_asArray"],p.__text=function(e,i,n){if(t.datetimeAccessFormPaths.length>0){var r=n.split(".#")[0];return l(t.datetimeAccessFormPaths,e,i,r)?c(e):e}return e}(p.__text,b,u+"."+b)),null!=p["#cdata-section"]&&(p.__cdata=p["#cdata-section"],delete p["#cdata-section"],"property"==t.arrayAccessForm&&delete p["#cdata-section_asArray"]),0==p.__cnt&&"text"==t.emptyNodeForm?p="":1==p.__cnt&&null!=p.__text?p=p.__text:1!=p.__cnt||null==p.__cdata||t.keepCData?p.__cnt>1&&null!=p.__text&&t.skipEmptyTextNodesForObj&&(t.stripWhitespaces&&""==p.__text||""==p.__text.trim())&&delete p.__text:p=p.__cdata,delete p.__cnt,!t.enableToStringFunc||null==p.__text&&null==p.__cdata||(p.toString=function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),p}if(s.nodeType==i||s.nodeType==n)return s.nodeValue}function u(e,i,n,r){var o="<"+(null!=e&&null!=e.__prefix?e.__prefix+":":"")+i;if(null!=n)for(var a=0;a<n.length;a++){var l=n[a],A=e[l];t.escapeMode&&(A=s(A)),o+=" "+l.substr(t.attributePrefix.length)+"=",t.useDoubleQuotes?o+='"'+A+'"':o+="'"+A+"'"}return o+(r?"/>":">")}function p(t,e){return"</"+(null!=t.__prefix?t.__prefix+":":"")+e+">"}function g(e,i){return"property"==t.arrayAccessForm&&(r="_asArray",-1!==(n=i.toString()).indexOf(r,n.length-r.length))||0==i.toString().indexOf(t.attributePrefix)||0==i.toString().indexOf("__")||e[i]instanceof Function;var n,r}function f(t){var e=0;if(t instanceof Object)for(var i in t)g(t,i)||e++;return e}function m(e,i,n){return 0==t.jsonPropertiesFilter.length||""==n||l(t.jsonPropertiesFilter,e,i,n)}function y(e){var i=[];if(e instanceof Object)for(var n in e)-1==n.toString().indexOf("__")&&0==n.toString().indexOf(t.attributePrefix)&&i.push(n);return i}function b(e){var i,n,r="";return e instanceof Object?r+=(n="",null!=(i=e).__cdata&&(n+="<![CDATA["+i.__cdata+"]]>"),null!=i.__text&&(t.escapeMode?n+=s(i.__text):n+=i.__text),n):null!=e&&(t.escapeMode?r+=s(e):r+=e),r}function v(t,e){return""===t?e:t+"."+e}function E(t,e,i,n){var r="";if(0==t.length)r+=u(t,e,i,!0);else for(var o=0;o<t.length;o++)r+=u(t[o],e,y(t[o]),!1),r+=I(t[o],v(n,e)),r+=p(t[o],e);return r}function I(t,e){var i="";if(f(t)>0)for(var n in t)if(!g(t,n)&&(""==e||m(t,n,v(e,n)))){var r=t[n],o=y(r);null==r||null==r?i+=u(r,n,o,!0):r instanceof Object?r instanceof Array?i+=E(r,n,o,e):r instanceof Date?(i+=u(r,n,o,!1),i+=r.toISOString(),i+=p(r,n)):f(r)>0||null!=r.__text||null!=r.__cdata?(i+=u(r,n,o,!1),i+=I(r,v(e,n)),i+=p(r,n)):i+=u(r,n,o,!0):(i+=u(r,n,o,!1),i+=b(r),i+=p(r,n))}return i+b(t)}this.parseXmlString=function(t){var e;if(window.ActiveXObject||window,void 0===t)return null;if(window.DOMParser){var i=new window.DOMParser;try{(e=i.parseFromString(t,"text/xml")).getElementsByTagNameNS("*","parsererror").length>0&&(e=null)}catch(t){e=null}}else 0==t.indexOf("<?")&&(t=t.substr(t.indexOf("?>")+2)),(e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t);return e},this.asArray=function(t){return void 0===t||null==t?[]:t instanceof Array?t:[t]},this.toXmlDateTime=function(t){return t instanceof Date?t.toISOString():"number"==typeof t?new Date(t).toISOString():null},this.asDateTime=function(t){return"string"==typeof t?c(t):t},this.xml2json=function(t){return d(t)},this.xml_str2json=function(t){var e=this.parseXmlString(t);return null!=e?this.xml2json(e):null},this.json2xml_str=function(t){return I(t,"")},this.json2xml=function(t){var e=this.json2xml_str(t);return this.parseXmlString(e)},this.getVersion=function(){return"1.2.0"}},wn="onLoad",xn="Period",Qn="AdaptationSet",Sn="EventStream";function kn(t){t=t||{};var e=this.context,i=c(e).getInstance(),n=Me(e).getInstance(),r=void 0,o=void 0,a=void 0,s=void 0,l=void 0,A=void 0;function h(t,e,i){var r={},o=void 0,a=void 0;r.elements=t,r.type=e,r.resolveType=i,0===r.elements.length&&p(r);for(var s=0;s<r.elements.length;s++)o=r.elements[s],a=n.isHTTPURL(o.url)?o.url:o.originalContent.BaseURL+o.url,A.load(a,o,r)}function d(t){var e,i=void 0,n="";if(i=t.element,e=t.resolveObject,i.resolvedContent){var r=0;0===i.resolvedContent.indexOf("<?xml")&&(r=i.resolvedContent.indexOf("?>")+2),n=i.resolvedContent.substr(0,r)+"<response>"+i.resolvedContent.substr(r)+"</response>",i.resolvedContent=l.xml_str2json(n)}(function(t){var e=void 0;for(e=0;e<t.elements.length;e++)if(!1===t.elements[e].resolved)return!1;return!0})(e)&&p(e)}function p(t){var e=[],n=void 0,r=void 0;if(function(t){var e=[],i=void 0,n=void 0,r=void 0,o=void 0,l=void 0,A=void 0;for(o=t.elements.length-1;o>=0;o--){if(n=(i=t.elements[o]).type+"_asArray",!i.resolvedContent||m())delete i.originalContent["xlink:actuate"],delete i.originalContent["xlink:href"],
e.push(i.originalContent);else if(i.resolvedContent)for(l=0;l<i.resolvedContent[n].length;l++)r=i.resolvedContent[n][l],e.push(r);for(i.parentElement[n].splice(i.index,1),A=0;A<e.length;A++)i.parentElement[n].splice(i.index+A,0,e[A]);e=[]}t.elements.length>0&&a.run(s)}(t),"onActuate"===t.resolveType&&i.trigger(u.XLINK_READY,{manifest:s}),t.resolveType===wn)switch(t.type){case xn:for(n=0;n<s[xn+"_asArray"].length;n++)(r=s[xn+"_asArray"][n]).hasOwnProperty(Qn+"_asArray")&&(e=e.concat(g(r[Qn+"_asArray"],r,Qn,wn))),r.hasOwnProperty(Sn+"_asArray")&&(e=e.concat(g(r[Sn+"_asArray"],r,Sn,wn)));h(e,Qn,wn);break;case Qn:i.trigger(u.XLINK_READY,{manifest:s})}}function g(t,e,i,n){var r=[],o=void 0,a=void 0,s=void 0;for(a=t.length-1;a>=0;a--)(o=t[a]).hasOwnProperty("xlink:href")&&"urn:mpeg:dash:resolve-to-zero:2013"===o["xlink:href"]&&t.splice(a,1);for(a=0;a<t.length;a++)(o=t[a]).hasOwnProperty("xlink:href")&&o.hasOwnProperty("xlink:actuate")&&o["xlink:actuate"]===n&&(s=f(o["xlink:href"],e,i,a,n,o),r.push(s));return r}function f(t,e,i,n,r,o){return{url:t,parentElement:e,type:i,index:n,resolveType:r,originalContent:o,resolvedContent:null,resolved:!1}}function m(){return!1}return r={resolveManifestOnLoad:function(t){l=new Bn({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:o}),h(g((s=t).Period_asArray,s,xn,wn),xn,wn)},setMatchers:function(t){t&&(o=t)},setIron:function(t){t&&(a=t)},reset:function(){i.off(u.XLINK_ELEMENT_LOADED,d,r),A&&(A.reset(),A=null)}},i.on(u.XLINK_ELEMENT_LOADED,d,r),A=Cn(e).create({errHandler:t.errHandler,videoModel:t.videoModel,metricsModel:t.metricsModel,mediaPlayerModel:t.mediaPlayerModel,requestModifier:t.requestModifier}),r}kn.__dashjs_factory_name="XlinkController";var Dn=s.a.getClassFactory(kn),_n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function Rn(t){function e(t,e){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}function i(t,i,n){for(var r=0,o=t.length;r<o;++r){var a=t[r];if(i[a.name])if(n[a.name]){if(a.merge){var s=i[a.name],l=n[a.name];"object"===(void 0===s?"undefined":_n(s))&&"object"===(void 0===l?"undefined":_n(l))?e(s,l):n[a.name]=s+l}}else n[a.name]=i[a.name]}}function n(t,e){for(var r=0,o=t.children.length;r<o;++r){var a=t.children[r],s=e[a.name+"_asArray"];if(s)for(var l=0,A=s.length;l<A;++l){var c=s[l];i(t.properties,e,c),n(a,c)}}}return{run:function(e){if(null===e||"object"!==(void 0===e?"undefined":_n(e)))return e;if("period"in t)for(var i=t.period,r=e.Period_asArray,o=0,a=r.length;o<a;++o){var s=r[o];if(n(i,s),"adaptationset"in t){var l=s.AdaptationSet_asArray;if(l)for(var A=t.adaptationset,c=0,h=l.length;c<h;++c)n(A,l[c])}}return e}}}Rn.__dashjs_factory_name="ObjectIron";var Mn=s.a.getClassFactory(Rn),Tn=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),Fn=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._test=e,this._converter=i}return Tn(t,[{key:"test",get:function(){return this._test}},{key:"converter",get:function(){return this._converter}}]),t}();function Ln(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Nn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,(function(t,e){var i,n=(Ln(i={},Se.MPD,[Se.ID,Se.PROFILES]),Ln(i,Se.PERIOD,[Se.ID]),Ln(i,Se.BASE_URL,[Se.SERVICE_LOCATION,Se.BYTE_RANGE]),Ln(i,Se.SEGMENT_BASE,[Se.INDEX_RANGE]),Ln(i,Se.INITIALIZATION,[Se.RANGE]),Ln(i,Se.REPRESENTATION_INDEX,[Se.RANGE]),Ln(i,Se.SEGMENT_LIST,[Se.INDEX_RANGE]),Ln(i,Se.BITSTREAM_SWITCHING,[Se.RANGE]),Ln(i,Se.SEGMENT_URL,[Se.MEDIA_RANGE,Se.INDEX_RANGE]),Ln(i,Se.SEGMENT_TEMPLATE,[Se.INDEX_RANGE,Se.MEDIA,Se.INDEX,Se.INITIALIZATION_MINUS,Se.BITSTREAM_SWITCHING_MINUS]),Ln(i,Se.ASSET_IDENTIFIER,[Se.VALUE,Se.ID]),Ln(i,Se.EVENT_STREAM,[Se.VALUE]),Ln(i,Se.ADAPTATION_SET,[Se.PROFILES,Se.MIME_TYPE,Se.SEGMENT_PROFILES,Se.CODECS,Se.CONTENT_TYPE]),Ln(i,Se.FRAME_PACKING,[Se.VALUE,Se.ID]),Ln(i,Se.AUDIO_CHANNEL_CONFIGURATION,[Se.VALUE,Se.ID]),Ln(i,Se.CONTENT_PROTECTION,[Se.VALUE,Se.ID]),Ln(i,Se.ESSENTIAL_PROPERTY,[Se.VALUE,Se.ID]),Ln(i,Se.SUPPLEMENTAL_PROPERTY,[Se.VALUE,Se.ID]),Ln(i,Se.INBAND_EVENT_STREAM,[Se.VALUE,Se.ID]),Ln(i,Se.ACCESSIBILITY,[Se.VALUE,Se.ID]),Ln(i,Se.ROLE,[Se.VALUE,Se.ID]),Ln(i,Se.RATING,[Se.VALUE,Se.ID]),Ln(i,Se.VIEWPOINT,[Se.VALUE,Se.ID]),Ln(i,Se.CONTENT_COMPONENT,[Se.CONTENT_TYPE]),Ln(i,Se.REPRESENTATION,[Se.ID,Se.DEPENDENCY_ID,Se.MEDIA_STREAM_STRUCTURE_ID]),Ln(i,Se.SUBSET,[Se.ID]),Ln(i,Se.METRICS,[Se.METRICS_MINUS]),Ln(i,Se.REPORTING,[Se.VALUE,Se.ID]),i);if(n.hasOwnProperty(e)){var r=n[e];return void 0!==r&&r.indexOf(t.name)>=0}return!1}),(function(t){return String(t)})))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Fn),Pn=/^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/,Un=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,(function(t){for(var e=[Se.MIN_BUFFER_TIME,Se.MEDIA_PRESENTATION_DURATION,Se.MINIMUM_UPDATE_PERIOD,Se.TIMESHIFT_BUFFER_DEPTH,Se.MAX_SEGMENT_DURATION,Se.MAX_SUBSEGMENT_DURATION,n.SUGGESTED_PRESENTATION_DELAY,Se.START,n.START_TIME,Se.DURATION],i=e.length,r=0;r<i;r++)if(t.nodeName===e[r])return Pn.test(t.value);return!1}),(function(t){var e=Pn.exec(t),i=31536e3*parseFloat(e[2]||0)+2592e3*parseFloat(e[4]||0)+86400*parseFloat(e[6]||0)+3600*parseFloat(e[8]||0)+60*parseFloat(e[10]||0)+parseFloat(e[12]||0);return void 0!==e[1]&&(i=-i),i})))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Fn),On=/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/,Gn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,(function(t){return On.test(t.value)}),(function(t){var e=On.exec(t),i=void 0;if(i=Date.UTC(parseInt(e[1],10),parseInt(e[2],10)-1,parseInt(e[3],10),parseInt(e[4],10),parseInt(e[5],10),e[6]&&parseInt(e[6],10)||0,e[7]&&1e3*parseFloat(e[7])||0),e[9]&&e[10]){var n=60*parseInt(e[9],10)+parseInt(e[10],10);i+=("+"===e[8]?-1:1)*n*60*1e3}return new Date(i)})))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Fn),Hn=/^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/,Vn=function(t){function e(){return function(t,e){
if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,(function(t){return Hn.test(t.value)}),(function(t){return parseFloat(t)})))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Fn),Yn=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),zn=function(){function t(e){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e,this._merge=(i=e)&&i.length&&i.charAt(0)===i.charAt(0).toUpperCase()}return Yn(t,[{key:"name",get:function(){return this._name}},{key:"merge",get:function(){return this._merge}}]),t}(),Wn=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),Zn=function(){function t(e,i,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._name=e||"",this._properties=[],this._children=n||[],Array.isArray(i)&&i.forEach((function(t){r._properties.push(new zn(t))}))}return Wn(t,[{key:"name",get:function(){return this._name}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}]),t}(),jn=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=[Se.PROFILES,Se.WIDTH,Se.HEIGHT,Se.SAR,Se.FRAMERATE,Se.AUDIO_SAMPLING_RATE,Se.MIME_TYPE,Se.SEGMENT_PROFILES,Se.CODECS,Se.MAXIMUM_SAP_PERIOD,Se.START_WITH_SAP,Se.MAX_PLAYOUT_RATE,Se.CODING_DEPENDENCY,Se.SCAN_TYPE,Se.FRAME_PACKING,Se.AUDIO_CHANNEL_CONFIGURATION,Se.CONTENT_PROTECTION,Se.ESSENTIAL_PROPERTY,Se.SUPPLEMENTAL_PROPERTY,Se.INBAND_EVENT_STREAM];return function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,Se.ADAPTATION_SET,i,[new Zn(Se.REPRESENTATION,i,[new Zn(Se.SUB_REPRESENTATION,i)])]))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Zn),qn=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=[Se.SEGMENT_BASE,Se.SEGMENT_TEMPLATE,Se.SEGMENT_LIST];return function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,Se.PERIOD,i,[new Zn(Se.ADAPTATION_SET,i,[new Zn(Se.REPRESENTATION,i)])]))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(Zn);function Jn(){var t,e=this.context,i=m(e).getInstance().log,n=void 0,r=void 0,o=void 0;return t={parse:function(t){var e,n=window.performance.now();if(!(e=r.xml_str2json(t)))throw new Error("parsing the manifest failed");var a=window.performance.now();o.run(e);var s=window.performance.now();return i("Parsing complete: ( xml2json: "+(a-n).toPrecision(3)+"ms, objectiron: "+(s-a).toPrecision(3)+"ms, total: "+((s-n)/1e3).toPrecision(3)+"s)"),e},getMatchers:function(){return n},getIron:function(){return o}},n=[new Un,new Gn,new Vn,new Nn],r=new Bn({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:n}),o=Mn(e).create({adaptationset:new jn,period:new qn}),t}Jn.__dashjs_factory_name="DashParser";var Kn=s.a.getClassFactory(Jn),Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function $n(){var t,e=this.context,i=m(e).getInstance().log,n=void 0;function r(t,e){return e?t&&t.replace(/http:\/\//g,"https://"):t}return t={parse:function(t,e){var n={},o=window.performance.now(),a=function(t){var e=t&&(t.ContentProtection||t.content_protection);return e?e.pssh?{schemeIdUri:e.schemeIdUri||e.scheme_id_uri,value:e.value,pssh:e.pssh}:{schemeIdUri:e.schemeIdUri||e.scheme_id_uri,value:e.value}:null};try{t=function t(e){var i={};if(e instanceof Object){var n=function(n){var r=n.replace(/[\x41-\x5A]/g,(function(t,e){var i=String.fromCharCode(t.charCodeAt(0)+32);return e?"_"+i:i}));"[object Array]"===Object.prototype.toString.call(e[n])?(i[r]=[],e[n].forEach((function(e){i[r].push(t(e))}))):"[object Object]"===Object.prototype.toString.call(e[n])?i[r]=t(e[n]):i[r]=e[n]};for(var r in e)n(r)}else i=e;return i}(t)}catch(t){throw new Error("Convert bilibili mpd failed, "+t)}if(n.ProgramInformation={Title:""},n.loadedTime=new Date,n.mediaPresentationDuration=t.duration,n.minBufferTime=t.min_buffer_time,n.profiles="urn:mpeg:dash:profile:isoff-on-demand:2011",n.xmlns="urn:mpeg:dash:profile:isoff-on-demand:2011",n.type="static",n.interactive="interactive"===t.type,n.originalUrl=location.href,n.url=location.href,n.Period={duration:t.duration,AdaptationSet:[]},t.video&&(n.Period.AdaptationSet[0]={},n.Period.AdaptationSet[0].Representation=t.video.map((function(t){var i=a(t),o={__text:r(t.base_url,e)};return t.backup_url&&t.backup_url.forEach((function(t,i){o["backupUrl"+(i+1)]=r(t,e)})),i&&!n.Period.AdaptationSet[0].ContentProtection&&(n.Period.AdaptationSet[0].ContentProtection=i),{BaseURL:o,ContentProtection:i,SegmentBase:{Initialization:{range:t.segment_base.initialization},indexRange:t.segment_base.index_range,indexRangeExact:"true"},bandwidth:t.bandwidth,codecs:t.codecs,frameRate:t.frame_rate,height:t.height,width:t.width,id:t.id+"",mimeType:t.mime_type,sar:t.sar,startWithSAP:t.start_with_sap}}))),t.audio&&(n.Period.AdaptationSet[1]={},n.Period.AdaptationSet[1].Representation=t.audio.map((function(t){var i=a(t),o={__text:r(t.base_url,e)};return t.backup_url&&t.backup_url.forEach((function(t,i){o["backupUrl"+(i+1)]=r(t,e)})),i&&!n.Period.AdaptationSet[1].ContentProtection&&(n.Period.AdaptationSet[1].ContentProtection=i),{BaseURL:o,ContentProtection:i,SegmentBase:{Initialization:{range:t.segment_base.initialization},indexRange:t.segment_base.index_range,indexRangeExact:"true"},bandwidth:t.bandwidth,codecs:t.codecs,id:t.id+"",mimeType:t.mime_type}}))),n.ProgramInformation={Title:""},function t(e){var i="[object Array]"!==Object.prototype.toString.call(e);for(var n in e)"object"===Xn(e[n])&&(t(e[n]),i&&(e[n+"_asArray"]="[object Array]"===Object.prototype.toString.call(e[n])?e[n]:[e[n]]))}(n),!n)throw new Error("parsing the manifest failed");var s=window.performance.now(),l=window.performance.now();return i("Parsing complete: ( xml2json: "+(s-o).toPrecision(3)+"ms, objectiron: "+(l-s).toPrecision(3)+"ms, total: "+((l-o)/1e3).toPrecision(3)+"s)"),n},getMatchers:function(){return null},getIron:function(){return n}},n=Mn(e).create({adaptationset:new jn,period:new qn}),t}$n.__dashjs_factory_name="DashBilibiliParser";var tr=s.a.getClassFactory($n);function er(t){t=t||{}
;var e=this.context,i=c(e).getInstance(),r=Me(e).getInstance(),a=m(e).getInstance().log,s=void 0,l=void 0,A=void 0,h=void 0,d=void 0,p=t.mssHandler,g=t.errHandler;function f(t){i.trigger(u.INTERNAL_MANIFEST_LOADED,{manifest:t.manifest})}function y(t,s,l,c){if(A){var g=void 0,f=void 0,m=void 0;if(window.location&&window.location&&"https:"===window.location.protocol&&(d=!0),c&&c!==t?(f=r.parseBaseUrl(c),g=c):(r.isRelative(t)&&(t=r.resolve(t,window.location.href)),f=r.parseBaseUrl(t)),null===h&&(b=null,h=(y=s).video||y.audio?tr(e).create():y.indexOf("SmoothStreamingMedia")>-1?(p&&(b=p.createMssParser(),p.registerEvents()),b):y.indexOf("MPD")>-1?Kn(e).create():b),null!==h){A.setMatchers(h.getMatchers()),A.setIron(h.getIron());try{m=h.parse(s,d)}catch(e){return void i.trigger(u.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new B(1,"Failed parsing manifest : "+(c?t:"MPD String"),null,o.MANIFEST_RESOLVE_ERROR)})}m?(m.url=g||t,m.originalUrl||(m.originalUrl=m.url),m.hasOwnProperty(n.LOCATION)&&(f=r.parseBaseUrl(m.Location_asArray[0]),a("BaseURI set by Location to: "+f)),m.baseUri=function(t,e){return e?t&&t.replace(/http:\/\//g,"https://"):t}(f,d),m.loadedTime=new Date,A.resolveManifestOnLoad(m)):i.trigger(u.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new B(1,"parsing failed",null,o.MANIFEST_ERROR)})}else i.trigger(u.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new B(1,"Failed detecting manifest type or manifest type unsupported : "+(c?t:"MPD String"),null,o.MANIFEST_TYPE_ERROR)})}var y,b}return s={load:function(t,e){if(d=e,!t||"string"!=typeof t||0!==t.indexOf("http")&&0!==t.indexOf("/"))y("",t,"OK","");else{var n=new vn(t,N.MPD_TYPE);l.load({request:n,success:function(e,i,n){y(t,e,i,n)},error:function(e,n,r,a){i.trigger(u.INTERNAL_MANIFEST_LOADED,{manifest:null,error:new B(2,"Failed loading manifest: "+t+", "+r,null,o.MANIFEST_DOWNLOAD_ERROR,a)})}})}},reset:function(){i.off(u.XLINK_READY,f,s),A&&(A.reset(),A=null),l&&(l.abort(),l=null),p&&p.reset()}},i.on(u.XLINK_READY,f,s),l=gi(e).create({errHandler:g,videoModel:t.videoModel,metricsModel:t.metricsModel,mediaPlayerModel:t.mediaPlayerModel,requestModifier:t.requestModifier}),A=Dn(e).create({errHandler:g,videoModel:t.videoModel,metricsModel:t.metricsModel,mediaPlayerModel:t.mediaPlayerModel,requestModifier:t.requestModifier}),h=null,s}er.__dashjs_factory_name="ManifestLoader";var ir=s.a.getClassFactory(er);ir.MANIFEST_LOADER_ERROR_PARSING_FAILURE=1,ir.MANIFEST_LOADER_ERROR_LOADING_FAILURE=2,s.a.updateClassFactory(er.__dashjs_factory_name,ir);var nr=ir;function rr(){var t,e=void 0;return t={supportsMediaSource:function(){var t="WebKitMediaSource"in window,e="MediaSource"in window;return t||e},supportsEncryptedMedia:function(){return e},supportsCodec:function(t){return!(!("MediaSource"in window)||!MediaSource.isTypeSupported(t))||!(!("WebKitMediaSource"in window)||!WebKitMediaSource.isTypeSupported(t))||!!(window.__ENABLE_WASM_PLAYER__&&"BwpMediaSource"in window&&BwpMediaSource.isTypeSupported(t))},setEncryptedMediaSupported:function(t){e=t}},e=!1,t}rr.__dashjs_factory_name="Capabilities";var or=s.a.getSingletonFactory(rr);function ar(){var t=this.context,e=c(t).getInstance(),i=void 0;return{getValue:function(){return i},setValue:function(t){i=t,t&&e.trigger(u.MANIFEST_LOADED,{data:t})}}}ar.__dashjs_factory_name="ManifestModel";var sr=s.a.getSingletonFactory(ar),lr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]},Ar=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tcpid=null,this.dest=null,this.topen=null,this.tclose=null,this.tconnect=null},cr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.t=null,this.mt=null,this.to=null,this.lto=null},hr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.t=null,this.level=null},dr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=null,this.state=he.BUFFER_EMPTY},ur=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.time=null,this.range=null,this.manifestInfo=null},pr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.time=null,this.droppedFrames=null};function gr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var fr=function t(){gr(this,t),this.mediaType=null,this.type=null,this.requestTime=null,this.fetchTime=null,this.availabilityStartTime=null,this.presentationStartTime=0,this.clientTimeOffset=0,this.currentTime=null,this.buffered=null,this.latency=0,this.streamInfo=[],this.representationInfo=[]},mr=function t(){gr(this,t),this.id=null,this.index=null,this.start=null,this.duration=null},yr=function t(){gr(this,t),this.id=null,this.index=null,this.mediaType=null,this.streamIndex=null,this.presentationTimeOffset=null,this.startNumber=null,this.fragmentInfoType=null},br=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.mediaType=null,this.t=null,this.type=null,this.startTime=null,this.availabilityStartTime=null,this.duration=null,this.quality=null,this.range=null,this.state=null},vr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.loadingRequests=[],this.executedRequests=[]};function Er(){var t,e=this.context,i=c(e).getInstance(),o=void 0;function a(){i.trigger(u.METRICS_CHANGED)}function s(t){i.trigger(u.METRIC_CHANGED,{mediaType:t}),a()}function l(t,e,n){i.trigger(u.METRIC_UPDATED,{mediaType:t,metric:e,value:n}),s(t)}function A(t,e,n){i.trigger(u.METRIC_ADDED,{mediaType:t,metric:e,value:n}),s(t)}function h(t){var e=void 0;return o.hasOwnProperty(t)?e=o[t]:(e=new lr,o[t]=e),e}function d(t,e,i){var n=h(t);n[e].push(i),n[e].length>1e3&&n[e].shift()}function p(t,e,i){d(t,e,i),A(t,e,i)}return t={clearCurrentMetricsForType:function(t){delete o[t],s(t)},clearAllCurrentMetrics:function(){o={},a()},getReadOnlyMetricsFor:function(t){return o.hasOwnProperty(t)?o[t]:null},getMetricsFor:h,addTcpConnection:function(t,e,i,n,o,a){var s=new Ar;return s.tcpid=e,s.dest=i,s.topen=n,s.tclose=o,s.tconnect=a,p(t,r.TCP_CONNECTION,s),s},addHttpRequest:function t(e,i,n,o,a,s,l,A,c,h,d,u,g,f){var m=new N;return a&&a!==o&&(t(e,null,n,o,null,null,l,A,null,null,null,u,null,null),m.actualurl=a),m.tcpid=i,m.type=n,m.url=o,m.range=l,m.trequest=A,m.tresponse=c,m.responsecode=d,m._tfinish=h,m._stream=e,m._mediaduration=u,m._responseHeaders=g,m._serviceLocation=s,f?f.forEach((function(t){var e,i,n,r,o;e=m,i=t.s,n=t.d,r=t.b,(o=new P).s=i,o.d=n,o.b=r,e.trace.push(o),e.interval||(e.interval=0),e.interval+=n})):(delete m.interval,delete m.trace),p(e,r.HTTP_REQUEST,m),m},addRepresentationSwitch:function(t,e,i,n,o){var a=new cr;return a.t=e,a.mt=i,a.to=n,o?a.lto=o:delete a.lto,p(t,r.TRACK_SWITCH,a),a},addBufferLevel:function(t,e,i){var n=new hr;return n.t=e,n.level=i,p(t,r.BUFFER_LEVEL,n),n},addBufferState:function(t,e,i){var n=new dr;return n.target=i,n.state=e,p(t,r.BUFFER_STATE,n),n},addDVRInfo:function(t,e,i,n){var o=new ur;return o.time=e,o.range=n,o.manifestInfo=i,p(t,r.DVR_INFO,o),o},addDroppedFrames:function(t,e){var i=new pr,n=h(t).DroppedFrames;return i.time=e.creationTime,i.droppedFrames=e.droppedVideoFrames,n.length>0&&n[n.length-1]==i?n[n.length-1]:(p(t,r.DROPPED_FRAMES,i),i)},addSchedulingInfo:function(t,e,i,n,o,a,s,l,A){var c=new br;return c.mediaType=t,c.t=e,c.type=i,c.startTime=n,c.availabilityStartTime=o,c.duration=a,c.quality=s,c.range=l,c.state=A,p(t,r.SCHEDULING_INFO,c),c},addRequestsQueue:function(t,e,i){var n=new vr;n.loadingRequests=e,n.executedRequests=i,h(t).RequestsQueue=n,
A(t,r.REQUESTS_QUEUE,n)},addManifestUpdate:function(t,e,i,o,a,s,l,c,h,u){var p=new fr;return p.mediaType=t,p.type=e,p.requestTime=i,p.fetchTime=o,p.availabilityStartTime=a,p.presentationStartTime=s,p.clientTimeOffset=l,p.currentTime=c,p.buffered=h,p.latency=u,d(n.STREAM,r.MANIFEST_UPDATE,p),A(t,r.MANIFEST_UPDATE,p),p},updateManifestUpdateInfo:function(t,e){if(t){for(var i in e)t[i]=e[i];l(t.mediaType,r.MANIFEST_UPDATE,t)}},addManifestUpdateStreamInfo:function(t,e,i,n,o){if(t){var a=new mr;return a.id=e,a.index=i,a.start=n,a.duration=o,t.streamInfo.push(a),l(t.mediaType,r.MANIFEST_UPDATE_STREAM_INFO,t),a}return null},addManifestUpdateRepresentationInfo:function(t,e,i,n,o,a,s,A){if(t){var c=new yr;return c.id=e,c.index=i,c.streamIndex=n,c.mediaType=o,c.startNumber=s,c.fragmentInfoType=A,c.presentationTimeOffset=a,t.representationInfo.push(c),l(t.mediaType,r.MANIFEST_UPDATE_TRACK_INFO,t),c}return null},addPlayList:function(t){var e=n.STREAM;return t.trace&&Array.isArray(t.trace)?t.trace.forEach((function(t){t.hasOwnProperty("subreplevel")&&!t.subreplevel&&delete t.subreplevel})):delete t.trace,p(e,r.PLAY_LIST,t),t},addDVBErrors:function(t){return p(n.STREAM,r.DVB_ERRORS,t),t},setConfig:function(t){t&&t.adapter&&t.adapter}},o={},t}Er.__dashjs_factory_name="MetricsModel";var Ir=s.a.getSingletonFactory(Er);function Cr(){var t=void 0,e=void 0,i=void 0,n=void 0,r=this.context,o=m(r).getInstance().log,a=c(r).getInstance(),s=[];function l(){t&&(t.playbackRate=n||1,t.removeEventListener("canplay",l))}function A(){return s.length>0}function h(e){var i,r=s.indexOf(e),o=void 0;null!==e&&(-1!==r&&s.splice(r,1),t&&!1===A()&&0===t.playbackRate&&(i=n||1,t&&(t.readyState<=2&&i>0?t.addEventListener("canplay",l):t.playbackRate=i),t.paused||((o=document.createEvent("Event")).initEvent("playing",!0,!1),t.dispatchEvent(o))))}function d(){if(t&&A()&&0===t.playbackRate){var e=document.createEvent("Event");e.initEvent("waiting",!0,!1),t.dispatchEvent(e)}}function p(){return t?t.buffered:null}return{initialize:function(){a.on(u.PLAYBACK_PLAYING,d,this)},setCurrentTime:function(e){if(t){if(t.currentTime==e)return;try{t.currentTime=e}catch(i){0===t.readyState&&i.code===i.INVALID_STATE_ERR&&setTimeout((function(){t.currentTime=e}),400)}}},play:function(){if(t){t.autoplay=!0;var e=t.play();return e&&"undefined"!=typeof Promise&&e instanceof Promise&&e.catch((function(t){"NotAllowedError"===t.name&&a.trigger(u.PLAYBACK_NOT_ALLOWED),o("Caught pending play exception - continuing ("+t+")")})),e}},isPaused:function(){return t?t.paused:null},pause:function(){t&&(t.pause(),t.autoplay=!1)},isSeeking:function(){return t?t.seeking:null},getTime:function(){return t?t.currentTime:null},getPlaybackRate:function(){return t?t.playbackRate:null},getPlayedRanges:function(){return t?t.played:null},getEnded:function(){return t?t.ended:null},setStallState:function(e,i){var r,o,a;r=e,i?(a=void 0,null===(o=r)||t.seeking||-1!==s.indexOf(o)||(s.push(o),t&&1===s.length&&((a=document.createEvent("Event")).initEvent("waiting",!0,!1),n=t.playbackRate,t.dispatchEvent(a)))):h(r)},getElement:function(){return t},setElement:function(e){if(null!=e&&(!e||!e.nodeName||"VIDEO"!==e.nodeName&&"AUDIO"!==e.nodeName&&"BWP-VIDEO"!==e.nodeName))throw"element is not video or audio DOM type!";(t=e)&&(t.preload="auto")},setSource:function(e){t&&(e?t.src=e:(t.removeAttribute("src"),t.load()))},getSource:function(){return t?t.src:null},getVideoContainer:function(){return i},setVideoContainer:function(t){i=t},getTTMLRenderingDiv:function(){return e},setTTMLRenderingDiv:function(t){(e=t).style.position="absolute",e.style.display="flex",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.top=0,e.style.left=0},getPlaybackQuality:function(){if(!t)return null;var e="webkitDroppedFrameCount"in t&&"webkitDecodedFrameCount"in t,i=null;return"getVideoPlaybackQuality"in t?i=t.getVideoPlaybackQuality():e&&(i={droppedVideoFrames:t.webkitDroppedFrameCount,totalVideoFrames:t.webkitDroppedFrameCount+t.webkitDecodedFrameCount,creationTime:new Date}),i},addEventListener:function(e,i){t&&t.addEventListener(e,i)},removeEventListener:function(e,i){t&&t.removeEventListener(e,i)},getReadyState:function(){return t?t.readyState:NaN},getBufferRange:p,getClientWidth:function(){return t?t.clientWidth:NaN},getClientHeight:function(){return t?t.clientHeight:NaN},getTextTracks:function(){return t?t.textTracks:[]},getTextTrack:function(e,i,n,r,o){if(t)for(var a=0;a<t.textTracks.length;a++)if(t.textTracks[a].kind===e&&(!i||t.textTracks[a].label==i)&&t.textTracks[a].language===n&&t.textTracks[a].isTTML===r&&t.textTracks[a].isEmbedded===o)return t.textTracks[a];return null},addTextTrack:function(e,i,n){return t?t.addTextTrack(e,i,n):null},appendChild:function(e){t&&(t.appendChild(e),void 0!==e.isTTML&&(t.textTracks[t.textTracks.length-1].isTTML=e.isTTML,t.textTracks[t.textTracks.length-1].isEmbedded=e.isEmbedded))},removeChild:function(e){t&&t.removeChild(e)},getVideoWidth:function(){return t?t.videoWidth:NaN},getVideoHeight:function(){return t?t.videoHeight:NaN},getVideoRelativeOffsetTop:function(){return t&&t.parentNode?t.getBoundingClientRect().top-t.parentNode.getBoundingClientRect().top:NaN},getVideoRelativeOffsetLeft:function(){return t&&t.parentNode?t.getBoundingClientRect().left-t.parentNode.getBoundingClientRect().left:NaN},setDataOffsetAttr:function(e){t&&t.setAttribute("data-offset",e)},getDuration:function(){return t?t.duration:null},getVideoBufferRanges:function(){var t=p();if(t){for(var e=[],i=t.length,n=0;n<i;n++)e.push({start:t.start(n),end:t.end(n)});return e}return[]},reset:function(){a.off(u.PLAYBACK_PLAYING,d,this)}}}Cr.__dashjs_factory_name="VideoModel";var Br=s.a.getSingletonFactory(Cr),wr=[{oldKey:"dashjs_vbitrate",newKey:"dashjs_video_bitrate"},{oldKey:"dashjs_abitrate",newKey:"dashjs_audio_bitrate"},{oldKey:"dashjs_vsettings",newKey:"dashjs_video_settings"},{oldKey:"dashjs_asettings",newKey:"dashjs_audio_settings"}],xr="dashjs_?_bitrate",Qr="dashjs_?_settings",Sr="localStorage",kr="LastBitrate",Dr="LastMediaSettings";function _r(t){t=t||{};var e,i=this.context,n=m(i).getInstance().log,r=t.mediaPlayerModel,o=void 0;function a(t){if(void 0!==o)return o;o=!1;var e=void 0;try{"undefined"!=typeof window&&(e=window[t])}catch(t){return n("Warning: DOMStorage access denied: "+t.message),o}if(!e||t!==Sr&&"sessionStorage"!==t)return o;try{e.setItem("1","1"),e.removeItem("1"),o=!0}catch(t){n("Warning: DOMStorage is supported, but cannot be used: "+t.message)}return o}function s(){var t=6e5;return Math.round((new Date).getTime()/t)*t}function l(t,e){return a(t)&&r["get"+e+"CachingInfo"]().enabled}function A(){if(!r||!r.hasOwnProperty("getLastMediaSettingsCachingInfo"))throw new Error("Missing config parameter(s)")}return e={getSavedBitrateSettings:function(t){var e=NaN;if(A(),l(Sr,kr)){var i=xr.replace(/\?/,t);try{var o=JSON.parse(localStorage.getItem(i))||{},a=(new Date).getTime()-parseInt(o.timestamp,10)>=r.getLastMediaSettingsCachingInfo().ttl||!1,s=parseFloat(o.bitrate);isNaN(s)||a?a&&localStorage.removeItem(i):(e=s,n("Last saved bitrate for "+t+" was "+s))}catch(t){return null}}return e},setSavedBitrateSettings:function(t,e){if(l(Sr,kr)&&e){var i=xr.replace(/\?/,t);try{localStorage.setItem(i,JSON.stringify({bitrate:e.toFixed(3),timestamp:s()}))}catch(t){n(t.message)}}},getSavedMediaSettings:function(t){if(A(),!l(Sr,Dr))return null;var e=null,i=Qr.replace(/\?/,t);try{var n=JSON.parse(localStorage.getItem(i))||{},o=(new Date).getTime()-parseInt(n.timestamp,10)>=r.getLastMediaSettingsCachingInfo().ttl||!1;e=n.settings,o&&(localStorage.removeItem(i),e=null)}catch(t){return null}return e},setSavedMediaSettings:function(t,e){if(l(Sr,Dr)){var i=Qr.replace(/\?/,t);try{localStorage.setItem(i,JSON.stringify({settings:e,timestamp:s()}))}catch(t){n(t.message)}}}},a(Sr)&&wr.forEach((function(t){var e=localStorage.getItem(t.oldKey);if(e){localStorage.removeItem(t.oldKey);try{localStorage.setItem(t.newKey,e)}catch(t){n(t.message)}}})),e}_r.__dashjs_factory_name="DOMStorage";var Rr=s.a.getSingletonFactory(_r),Mr=i(6),Tr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),
this.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null,this.indexRange=null,this.codec=null},Fr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null},Lr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0},Nr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null},Pr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN},Ur=i(16),Or=i.n(Ur);function Gr(){var t,e=void 0,i=void 0,r=void 0;function o(t,e){return e&&t?e.getRepresentationForQuality(t.quality):null}function a(t){return t&&t.streamInfo&&void 0!==t.streamInfo.id&&r[t.streamInfo.id]?r[t.streamInfo.id][t.index]:null}function s(t,e){for(var i=e.length,n=0;n<i;n++){var r=e[n];if(t.id===r.id)return r}return null}function l(t){var i=new Tr,n=t.adaptation.period.mpd.manifest.Period_asArray[t.adaptation.period.index].AdaptationSet_asArray[t.adaptation.index],r=e.getRepresentationFor(t.index,n);if(i.id=t.id,i.quality=t.index,i.bandwidth=e.getBandwidth(r),i.DVRWindow=t.segmentAvailabilityRange,i.fragmentDuration=t.segmentDuration||(t.segments&&t.segments.length>0?t.segments[0].duration:NaN),i.MSETimeOffset=t.MSETimeOffset,i.useCalculatedLiveEdgeTime=t.useCalculatedLiveEdgeTime,i.mediaInfo=A(t.adaptation),t.codecs&&i.mediaInfo){var o=i.mediaInfo.mimeType||i.mediaInfo.codec&&i.mediaInfo.codec.split(";")[0]||"";i.codec=o?o+';codecs="'+t.codecs+'"':null}return i.indexRange=t.indexRange,i}function A(t){var i,n=new Fr,r=t.period.mpd.manifest.Period_asArray[t.period.index].AdaptationSet_asArray[t.index];return n.id=t.id,n.index=t.index,n.type=t.type,n.streamInfo=d(t.period),n.representationCount=e.getRepresentationCount(r),n.lang=e.getLanguageForAdaptation(r),i=e.getViewpointForAdaptation(r),n.viewpoint=i?i.value:void 0,n.accessibility=e.getAccessibilityForAdaptation(r).map((function(t){var e=t.value,i=e;return t.schemeIdUri&&t.schemeIdUri.search("cea-608")>=0&&void 0!==Or.a&&(i=e?"cea-608:"+e:"cea-608",n.embeddedCaptions=!0),i})),n.audioChannelConfiguration=e.getAudioChannelConfigurationForAdaptation(r).map((function(t){return t.value})),n.roles=e.getRolesForAdaptation(r).map((function(t){return t.value})),n.codec=e.getCodec(r),n.mimeType=e.getMimeType(r),n.contentProtection=e.getContentProtectionData(r),n.bitrateList=e.getBitrateListForAdaptation(r),n.contentProtection&&n.contentProtection.forEach((function(t){t.KID=e.getKID(t)})),n.isText=e.getIsTextTrack(n.mimeType),n}function c(t,e,i){t.id=e,t.index=100+parseInt(e.substring(2,3)),t.type=n.EMBEDDED_TEXT,t.codec="cea-608-in-SEI",t.isText=!0,t.isEmbedded=!0,t.lang=i,t.roles=["caption"]}function h(t){t.type=n.IMAGE}function d(t){var i,n,r=new Lr;return r.id=t.id,r.index=t.index,r.start=t.start,r.duration=t.duration,r.manifestInfo=(i=t.mpd,(n=new Nr).DVRWindowSize=i.timeShiftBufferDepth,n.loadedTime=i.manifest.loadedTime,n.availableFrom=i.availabilityStartTime,n.minBufferTime=i.manifest.minBufferTime,n.maxFragmentDuration=i.maxSegmentDuration,n.duration=e.getDuration(i.manifest),n.isDynamic=e.getIsDynamic(i.manifest),n),r.isLast=1===t.mpd.manifest.Period_asArray.length||Math.abs(r.start+r.duration-r.manifestInfo.duration)<1,r}function u(){if(!e||!e.hasOwnProperty("getMpd")||!e.hasOwnProperty("getRegularPeriods"))throw new Error("setConfig function has to be called previously")}function p(t){if(!(t&&t.hasOwnProperty("getRepresentationController")&&t.hasOwnProperty("getIndexHandler")&&t.hasOwnProperty("getMediaInfo")&&t.hasOwnProperty("getType")&&t.hasOwnProperty("getStreamInfo")))throw new Error("streamProcessor parameter is missing or malformed!")}function g(t){if(!t||!t.hasOwnProperty("getRepresentationForQuality")||!t.hasOwnProperty("getCurrentRepresentation"))throw new Error("representationController parameter is missing or malformed!")}function f(t){if(null===t||isNaN(t)||t%1!=0)throw new Error("quality argument is not an integer")}function m(){i=[],r={}}return t={convertDataToRepresentationInfo:l,getDataForMedia:a,getStreamsInfo:function(t,n){var r=[],o=i;if(t){u();var a=e.getMpd(t);o=e.getRegularPeriods(a)}n||(n=o.length);for(var s=0;s<n;s++)r.push(d(o[s]));return r},getMediaInfoForType:function(t,n){if(0===i.length)return null;var o=i[0].mpd.manifest,a=e.getAdaptationForType(o,t.index,n,t);if(!a)return null;var l=s(t,i),c=l.id,h=e.getIndexForAdaptation(a,o,t.index);return r[c]=r[c]||e.getAdaptationsForPeriod(l),A(r[c][h])},getAllMediaInfoForType:function(t,o,a){var l,d=i,p=a,g=[],f=void 0,m=void 0,y=void 0,b=void 0,v=void 0;if(p){u();var E=e.getMpd(p);d=e.getRegularPeriods(E)}else{if(!(i.length>0))return g;p=i[0].mpd.manifest}var I=s(t,d),C=I.id,B=e.getAdaptationsForType(p,t.index,o!==n.EMBEDDED_TEXT?o:n.VIDEO);if(!B)return g;for(r[C]=r[C]||e.getAdaptationsForPeriod(I),b=0,l=B.length;b<l;b++)if(f=B[b],y=e.getIndexForAdaptation(f,p,t.index),m=A(r[C][y]),o===n.EMBEDDED_TEXT){var w=m.accessibility.length;for(v=0;v<w;v++)if(m){var x=m.accessibility[v];if(0===x.indexOf("cea-608:")){var Q=x.substring(8).split(";");if("CC"===Q[0].substring(0,2))for(v=0;v<Q.length;v++)m||(m=A.call(this,r[C][y])),c(m,Q[v].substring(0,3),Q[v].substring(4)),g.push(m),m=null;else for(v=0;v<Q.length;v++)m||(m=A.call(this,r[C][y])),c(m,"CC"+(v+1),Q[v]),g.push(m),m=null}else 0===x.indexOf("cea-608")&&(c(m,n.CC1,"eng"),g.push(m),m=null)}}else o===n.IMAGE?(h(m),g.push(m),m=null):m&&g.push(m);return g},getCurrentRepresentationInfo:function(t){g(t);var e=t.getCurrentRepresentation();return e?l(e):null},getRepresentationInfoForQuality:function(t,e){g(t),f(e);var i=t.getRepresentationForQuality(e);return i?l(i):null},updateData:function(t){p(t);var n,r=s(t.getStreamInfo(),i),o=t.getMediaInfo(),l=a(o),A=t.getType(),c=void 0;n=o?o.id:null,i.length>0&&(c=n?e.getAdaptationForId(n,i[0].mpd.manifest,r.index):e.getAdaptationForIndex(o.index,i[0].mpd.manifest,r.index),t.getRepresentationController().updateData(c,l,A))},getInitRequest:function(t,e){var i,n=void 0,r=void 0;return p(t),f(e),n=t.getRepresentationController(),r=t.getIndexHandler(),i=n?n.getRepresentationForQuality(e):null,r?r.getInitRequest(i):null},getNextFragmentRequest:function(t,e){var i,n=void 0;return p(t),i=o(e,t.getRepresentationController()),(n=t.getIndexHandler())?n.getNextSegmentRequest(i):null},getFragmentRequestForTime:function(t,e,i,n){var r,a=void 0;return p(t),r=o(e,t.getRepresentationController()),(a=t.getIndexHandler())?a.getSegmentRequestForTime(r,i,n):null},generateFragmentRequestForTime:function(t,e,i){var n,r=void 0;return p(t),n=o(e,t.getRepresentationController()),(r=t.getIndexHandler())?r.generateSegmentRequestForTime(n,i):null},getIndexHandlerTime:function(t){p(t);var e=t.getIndexHandler();return e?e.getCurrentTime():NaN},setIndexHandlerTime:function(t,e){p(t);var i=t.getIndexHandler();i&&i.setCurrentTime(e)},getEventsFor:function(t,n){var r=[];if(0===i.length)return r;var l=i[0].mpd.manifest;return t instanceof Lr?r=e.getEventsForPeriod(s(t,i)):t instanceof Fr?r=e.getEventStreamForAdaptationSet(l,a(t)):t instanceof Tr&&(r=e.getEventStreamForRepresentation(l,o(t,n.getRepresentationController()))),r},getEvent:function(t,e,i){if(!t||!e)return null;var n=new Pr,r=t.scheme_id_uri,o=t.value,a=t.timescale,s=t.presentation_time_delta,l=t.event_duration,A=t.id,c=t.message_data,h=i*a+s
;return e[r]?(n.eventStream=e[r],n.eventStream.value=o,n.eventStream.timescale=a,n.duration=l,n.id=A,n.presentationTime=h,n.messageData=c,n.presentationTimeDelta=s,n):null},setConfig:function(t){t&&t.dashManifestModel&&(e=t.dashManifestModel)},updatePeriods:function(t){if(!t)return null;u();var n=e.getMpd(t);i=e.getRegularPeriods(n),r={}},reset:m},m(),t}Gr.__dashjs_factory_name="DashAdapter";var Hr=s.a.getSingletonFactory(Gr),Vr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.period=null,this.index=-1,this.type=null},Yr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=null,this.index=-1,this.duration=NaN,this.start=NaN,this.mpd=null};Yr.DEFAULT_ID="defaultId";var zr=Yr,Wr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.manifest=null,this.suggestedPresentationDelay=0,this.availabilityStartTime=null,this.availabilityEndTime=Number.POSITIVE_INFINITY,this.timeShiftBufferDepth=Number.POSITIVE_INFINITY,this.maxSegmentDuration=Number.POSITIVE_INFINITY,this.minimumUpdatePeriod=NaN,this.mediaPresentationDuration=NaN},Zr=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.adaptionSet=null,this.representation=null,this.period=null,this.timescale=1,this.value="",this.schemeIdUri=""};function jr(t){t=t||{};var e,i=this.context,r=Me(i).getInstance(),o=t.mediaController,s=t.timelineConverter,l=t.adapter,A=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function c(t,e){var i=void 0,r=void 0,o=void 0,a=void 0,s=void 0,l=!1,A=!1;if(!t)throw new Error("adaptation is not defined");if(!e)throw new Error("type is not defined");if(t.hasOwnProperty("ContentComponent_asArray")&&t.ContentComponent_asArray,a=e!==n.TEXT?new RegExp(e):new RegExp("(vtt|ttml)"),t.Representation_asArray&&t.Representation_asArray.length&&t.Representation_asArray.length>0&&t.Representation_asArray[0].hasOwnProperty(Se.CODECS)&&(0===(s=t.Representation_asArray[0].codecs).search(n.STPP)||0===s.search(n.WVTT)))return e===n.FRAGMENTED_TEXT;if(t.hasOwnProperty(Se.MIME_TYPE)&&(l=a.test(t.mimeType),A=!0),!A)for(i=0,r=t.Representation_asArray&&t.Representation_asArray.length?t.Representation_asArray.length:0;!A&&i<r;)(o=t.Representation_asArray[i]).hasOwnProperty(Se.MIME_TYPE)&&(l=a.test(o.mimeType),A=!0),i++;return l}function h(t){return c(t,n.AUDIO)}function d(t){return c(t,n.VIDEO)}function u(t){return c(t,n.FRAGMENTED_TEXT)}function p(t){return c(t,n.MUXED)}function g(t){return c(t,n.IMAGE)}function f(t){return"text/vtt"===t||"application/ttml+xml"===t}function m(t){return t&&t.hasOwnProperty(Se.ROLE_ASARRAY)?t.Role_asArray:[]}function y(t){return m(t).filter((function(t){return t.value===Se.MAIN}))[0]}function b(){return function(t,e){return t.bandwidth-e.bandwidth}}function v(t){return t&&void 0!==t.Representation_asArray&&null!==t.Representation_asArray&&t.Representation_asArray.sort((function(t,e){return t.bandwidth-e.bandwidth})),t}function E(t,e,i){var n,r=t&&t.Period_asArray&&A(e)&&t.Period_asArray[e]?t.Period_asArray[e].AdaptationSet_asArray:[],o=void 0,a=[];for(o=0,n=r.length;o<n;o++)c(r[o],i)&&a.push(v(r[o]));return a}function I(t){var e=!1;return t&&t.hasOwnProperty("type")&&(e=t.type===Se.DYNAMIC),e}function C(t){return t&&t.EssentialProperty_asArray&&t.EssentialProperty_asArray.length?t.EssentialProperty_asArray.map((function(t){return{schemeIdUri:t.schemeIdUri,value:t.value}})):null}function B(t){if(t&&t.period&&A(t.period.index)){var e=t.period.mpd.manifest.Period_asArray[t.period.index];if(e&&e.AdaptationSet_asArray&&A(t.index))return v(e.AdaptationSet_asArray[t.index])}}function w(t){var e=t.S_asArray[t.S_asArray.length-1];return!e.hasOwnProperty("r")||e.r>=0}function x(t,e){if(!t)throw new Error("Period cannot be null or undefined");var i=zr.DEFAULT_ID+"_"+e;return t.hasOwnProperty(Se.ID)&&t.id.length>0&&"__proto__"!==t.id&&(i=t.id),i}function Q(t,e){var i=[],r=void 0;if(!t)return i;for(r=0;r<t.length;r++){var o=new Zr;if(o.timescale=1,o.representation=e,!t[r].hasOwnProperty(n.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");o.schemeIdUri=t[r].schemeIdUri,t[r].hasOwnProperty(Se.TIMESCALE)&&(o.timescale=t[r].timescale),t[r].hasOwnProperty(Se.VALUE)&&(o.value=t[r].value),i.push(o)}return i}function S(t){var e=[],i=t.BaseURL_asArray||[t.baseUri],n=!1;return i.some((function(i){if(i){var o=new un,a=i.__text||i;r.isRelative(a)&&(n=!0,t.baseUri&&(a=r.resolve(a,t.baseUri))),o.url=a;for(var s=[],l=1;i["backupUrl"+l];l++)s.push(i["backupUrl"+l]);return o.urls=[o.url].concat(s),i.hasOwnProperty(Se.SERVICE_LOCATION)&&i.serviceLocation.length?o.serviceLocation=i.serviceLocation:o.serviceLocation=a,i.hasOwnProperty(Se.DVB_PRIORITY)&&(o.dvb_priority=i[Se.DVB_PRIORITY]),i.hasOwnProperty(Se.DVB_WEIGHT)&&(o.dvb_weight=i[Se.DVB_WEIGHT]),i.hasOwnProperty(Se.AVAILABILITY_TIME_OFFSET)&&(o.availabilityTimeOffset=i[Se.AVAILABILITY_TIME_OFFSET]),i.hasOwnProperty(Se.AVAILABILITY_TIME_COMPLETE)&&(o.availabilityTimeComplete="false"!==i[Se.AVAILABILITY_TIME_COMPLETE]),e.push(o),n}})),e}return e={getIsTypeOf:c,getIsAudio:h,getIsVideo:d,getIsText:function(t){return c(t,n.TEXT)},getIsMuxed:p,getIsTextTrack:f,getIsFragmentedText:u,getIsImage:g,getIsMain:y,getLanguageForAdaptation:function(t){var e="";return t&&t.hasOwnProperty(Se.LANG)&&(e=t.lang.replace(/[^A-Za-z0-9-]/g,"")),e},getViewpointForAdaptation:function(t){return t&&t.hasOwnProperty(Se.VIEWPOINT)?t.Viewpoint:null},getRolesForAdaptation:m,getAccessibilityForAdaptation:function(t){return t&&t.hasOwnProperty(Se.ACCESSIBILITY_ASARRAY)?t.Accessibility_asArray:[]},getAudioChannelConfigurationForAdaptation:function(t){return t&&t.hasOwnProperty(Se.AUDIOCHANNELCONFIGURATION_ASARRAY)?t.AudioChannelConfiguration_asArray:[]},getAdaptationForIndex:function(t,e,i){var n=e&&e.Period_asArray&&A(i)&&e.Period_asArray[i]?e.Period_asArray[i].AdaptationSet_asArray:null;return n&&A(t)?n[t]:null},getIndexForAdaptation:function(t,e,n){var r=e&&e.Period_asArray&&A(n)&&e.Period_asArray[n]?e.Period_asArray[n].AdaptationSet_asArray:[],o=r.length;if(t)for(var a=0;a<o;a++)if(Xi(i).getInstance().areEqual(r[a],t))return a;return-1},getAdaptationForId:function(t,e,i){var n,r=e&&e.Period_asArray&&A(i)&&e.Period_asArray[i]?e.Period_asArray[i].AdaptationSet_asArray:[],o=void 0;for(o=0,n=r.length;o<n;o++)if(r[o].hasOwnProperty(Se.ID)&&r[o].id===t)return r[o];return null},getAdaptationsForType:E,getAdaptationForType:function(t,e,i,n){var r=E(t,e,i);if(!r||0===r.length)return null;if(r.length>1&&n){var a=o.getCurrentTrackFor(i,n),s=l.getAllMediaInfoForType(n,i);if(a)for(var A=0,c=r.length;A<c;A++)if(o.isTracksEqual(a,s[A]))return r[A];for(var h=0,d=r.length;h<d;h++)if(y(r[h]))return r[h]}return r[0]},getCodec:function(t,e,i){if(t&&t.Representation_asArray&&t.Representation_asArray.length>0){var n=A(e)&&e>=0&&e<t.Representation_asArray.length?t.Representation_asArray[e]:t.Representation_asArray[0],r=n.mimeType+';codecs="'+n.codecs+'"';return i&&void 0!==n.width&&(r+=';width="'+n.width+'";height="'+n.height+'"'),r}return null},getMimeType:function(t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0?t.Representation_asArray[0].mimeType:null},getKID:function(t){return t&&t.hasOwnProperty(Se.CENC_DEFAULT_KID)?t[Se.CENC_DEFAULT_KID]:null},getContentProtectionData:function(t){return t&&t.hasOwnProperty(Se.CONTENTPROTECTION_ASARRAY)&&0!==t.ContentProtection_asArray.length?t.ContentProtection_asArray:null},getIsDynamic:I,getIsDVB:function(t){return i="urn:dvb:dash:profile:dvb-dash:2014",n=!1,(e=t)&&e.profiles&&e.profiles.length>0&&(n=-1!==e.profiles.indexOf(i)),n;var e,i,n},getDuration:function(t){return t&&t.hasOwnProperty(Se.MEDIA_PRESENTATION_DURATION)?t.mediaPresentationDuration:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE},getBandwidth:function(t){return t&&t.bandwidth?t.bandwidth:NaN},getManifestUpdatePeriod:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=NaN
;return t&&t.hasOwnProperty(Se.MINIMUM_UPDATE_PERIOD)&&(i=t.minimumUpdatePeriod),isNaN(i)?i:Math.max(i-e,1)},getRepresentationCount:function(t){return t&&t.Representation_asArray&&t.Representation_asArray.length?t.Representation_asArray.length:0},getBitrateListForAdaptation:function(t){return t&&t.Representation_asArray&&t.Representation_asArray.length?v(t).Representation_asArray.map((function(t){return{id:t.id||"",bandwidth:t.bandwidth,width:t.width||0,height:t.height||0,scanType:t.scanType||null}})):null},getRepresentationFor:function(t,e){return e&&e.Representation_asArray&&e.Representation_asArray.length>0&&A(t)?e.Representation_asArray[t]:null},getRepresentationsForAdaptation:function(t){var e=[],i=B(t),n=void 0,r=void 0;if(t&&t.period&&A(t.period.index)){var o=S(t.period.mpd.manifest);o&&(r=o[0])}if(i&&i.Representation_asArray)for(var a=0,l=i.Representation_asArray.length;a<l;++a){var c=i.Representation_asArray[a],h=new ke;if(h.index=a,h.adaptation=t,c.hasOwnProperty(Se.ID)&&(h.id=c.id),c.hasOwnProperty(Se.CODECS)&&(h.codecs=c.codecs),c.hasOwnProperty(Se.CODEC_PRIVATE_DATA)&&(h.codecPrivateData=c.codecPrivateData),c.hasOwnProperty(Se.BANDWITH)&&(h.bandwidth=c.bandwidth),c.hasOwnProperty(Se.WIDTH)&&(h.width=c.width),c.hasOwnProperty(Se.HEIGHT)&&(h.height=c.height),c.hasOwnProperty(Se.SCAN_TYPE)&&(h.scanType=c.scanType),c.hasOwnProperty(Se.MAX_PLAYOUT_RATE)&&(h.maxPlayoutRate=c.maxPlayoutRate),c.hasOwnProperty(Se.SEGMENT_BASE)?(n=c.SegmentBase,h.segmentInfoType=Se.SEGMENT_BASE):c.hasOwnProperty(Se.SEGMENT_LIST)?(n=c.SegmentList).hasOwnProperty(Se.SEGMENT_TIMELINE)?(h.segmentInfoType=Se.SEGMENT_TIMELINE,h.useCalculatedLiveEdgeTime=w(n.SegmentTimeline)):(h.segmentInfoType=Se.SEGMENT_LIST,h.useCalculatedLiveEdgeTime=!0):c.hasOwnProperty(Se.SEGMENT_TEMPLATE)?((n=c.SegmentTemplate).hasOwnProperty(Se.SEGMENT_TIMELINE)?(h.segmentInfoType=Se.SEGMENT_TIMELINE,h.useCalculatedLiveEdgeTime=w(n.SegmentTimeline)):h.segmentInfoType=Se.SEGMENT_TEMPLATE,n.hasOwnProperty(Se.INITIALIZATION_MINUS)&&(h.initialization=n.initialization.split("$Bandwidth$").join(c.bandwidth).split("$RepresentationID$").join(c.id))):h.segmentInfoType=Se.BASE_URL,h.essentialProperties=C(c),n){if(n.hasOwnProperty(Se.INITIALIZATION)){var d=n.Initialization;d.hasOwnProperty(Se.SOURCE_URL)?h.initialization=d.sourceURL:d.hasOwnProperty(Se.RANGE)&&(h.range=d.range)}else c.hasOwnProperty(Se.MIME_TYPE)&&f(c.mimeType)&&(h.range=0);n.hasOwnProperty(Se.TIMESCALE)&&(h.timescale=n.timescale),n.hasOwnProperty(Se.DURATION)&&(h.segmentDuration=n.duration/h.timescale),n.hasOwnProperty(Se.MEDIA)&&(h.media=n.media),n.hasOwnProperty(Se.START_NUMBER)&&(h.startNumber=n.startNumber),n.hasOwnProperty(Se.INDEX_RANGE)&&(h.indexRange=n.indexRange),n.hasOwnProperty(Se.PRESENTATION_TIME_OFFSET)&&(h.presentationTimeOffset=n.presentationTimeOffset/h.timescale),n.hasOwnProperty(Se.AVAILABILITY_TIME_OFFSET)?h.availabilityTimeOffset=n.availabilityTimeOffset:r&&void 0!==r.availabilityTimeOffset&&(h.availabilityTimeOffset=r.availabilityTimeOffset),n.hasOwnProperty(Se.AVAILABILITY_TIME_COMPLETE)?h.availabilityTimeComplete="false"!==n.availabilityTimeComplete:r&&void 0!==r.availabilityTimeComplete&&(h.availabilityTimeComplete=r.availabilityTimeComplete)}h.MSETimeOffset=s.calcMSETimeOffset(h),h.path=[t.period.index,t.index,a],e.push(h)}return e},getAdaptationsForPeriod:function(t){var e=t&&A(t.index)?t.mpd.manifest.Period_asArray[t.index]:null,i=[],r=void 0,o=void 0,a=void 0;if(e&&e.AdaptationSet_asArray)for(a=0;a<e.AdaptationSet_asArray.length;a++)o=e.AdaptationSet_asArray[a],r=new Vr,o.hasOwnProperty(Se.ID)&&(r.id=o.id),r.index=a,r.period=t,p(o)?r.type=n.MUXED:h(o)?r.type=n.AUDIO:d(o)?r.type=n.VIDEO:u(o)?r.type=n.FRAGMENTED_TEXT:g(o)?r.type=n.IMAGE:r.type=n.TEXT,i.push(r);return i},getRegularPeriods:function(t){var e,i=!!t&&I(t.manifest),n=[],r=null,o=null,a=null,s=null,l=void 0;for(l=0,e=t&&t.manifest&&t.manifest.Period_asArray?t.manifest.Period_asArray.length:0;l<e;l++)(o=t.manifest.Period_asArray[l]).hasOwnProperty(Se.START)?(s=new zr).start=o.start:null!==r&&o.hasOwnProperty(Se.DURATION)&&null!==a?((s=new zr).start=parseFloat((a.start+a.duration).toFixed(5)),s.duration=o.duration):0!==l||i||((s=new zr).start=0),null!==a&&isNaN(a.duration)&&(a.duration=parseFloat((s.start-a.start).toFixed(5))),null!==s&&(s.id=x(o,l)),null!==s&&o.hasOwnProperty(Se.DURATION)&&(s.duration=o.duration),null!==s&&(s.index=l,s.mpd=t,n.push(s),r=o,a=s),o=null,s=null;return 0===n.length||null!==a&&isNaN(a.duration)&&(a.duration=parseFloat((function(t){var e=I(t.mpd.manifest),i=void 0;if(t.mpd.manifest.mediaPresentationDuration)i=t.mpd.manifest.mediaPresentationDuration;else if(t.duration)i=t.duration;else{if(!e)throw new Error("Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.");i=Number.POSITIVE_INFINITY}return i}(a)-a.start).toFixed(5))),n},getMpd:function(t){var e=new Wr;return t&&(e.manifest=t,t.hasOwnProperty(Se.AVAILABILITY_START_TIME)?e.availabilityStartTime=new Date(t.availabilityStartTime.getTime()):e.availabilityStartTime=new Date(t.loadedTime.getTime()),t.hasOwnProperty(Se.AVAILABILITY_END_TIME)&&(e.availabilityEndTime=new Date(t.availabilityEndTime.getTime())),t.hasOwnProperty(Se.MINIMUM_UPDATE_PERIOD)&&(e.minimumUpdatePeriod=t.minimumUpdatePeriod),t.hasOwnProperty(Se.MEDIA_PRESENTATION_DURATION)&&(e.mediaPresentationDuration=t.mediaPresentationDuration),t.hasOwnProperty(n.SUGGESTED_PRESENTATION_DELAY)&&(e.suggestedPresentationDelay=t.suggestedPresentationDelay),t.hasOwnProperty(Se.TIMESHIFT_BUFFER_DEPTH)&&(e.timeShiftBufferDepth=t.timeShiftBufferDepth),t.hasOwnProperty(Se.MAX_SEGMENT_DURATION)&&(e.maxSegmentDuration=t.maxSegmentDuration)),e},getEventsForPeriod:function(t){var e=t&&t.mpd&&t.mpd.manifest?t.mpd.manifest:null,i=e?e.Period_asArray:null,r=i&&t&&A(t.index)?i[t.index].EventStream_asArray:null,o=[],a=void 0,s=void 0;if(r)for(a=0;a<r.length;a++){var l=new Zr;if(l.period=t,l.timescale=1,!r[a].hasOwnProperty(n.SCHEME_ID_URI))throw new Error("Invalid EventStream. SchemeIdUri has to be set");for(l.schemeIdUri=r[a].schemeIdUri,r[a].hasOwnProperty(Se.TIMESCALE)&&(l.timescale=r[a].timescale),r[a].hasOwnProperty(Se.VALUE)&&(l.value=r[a].value),s=0;s<r[a].Event_asArray.length;s++){var c=new Pr;c.presentationTime=0,c.eventStream=l,r[a].Event_asArray[s].hasOwnProperty(Se.PRESENTATION_TIME)&&(c.presentationTime=r[a].Event_asArray[s].presentationTime),r[a].Event_asArray[s].hasOwnProperty(Se.DURATION)&&(c.duration=r[a].Event_asArray[s].duration),r[a].Event_asArray[s].hasOwnProperty(Se.ID)&&(c.id=r[a].Event_asArray[s].id),o.push(c)}}return o},getEventStreamForAdaptationSet:function(t,e){var i=void 0,n=void 0,r=void 0;return t&&t.Period_asArray&&e&&e.period&&A(e.period.index)&&(n=t.Period_asArray[e.period.index])&&n.AdaptationSet_asArray&&A(e.index)&&(r=n.AdaptationSet_asArray[e.index])&&(i=r.InbandEventStream_asArray),Q(i,null)},getEventStreamForRepresentation:function(t,e){var i=void 0,n=void 0,r=void 0,o=void 0;return t&&t.Period_asArray&&e&&e.adaptation&&e.adaptation.period&&A(e.adaptation.period.index)&&(n=t.Period_asArray[e.adaptation.period.index])&&n.AdaptationSet_asArray&&A(e.adaptation.index)&&(r=n.AdaptationSet_asArray[e.adaptation.index])&&r.Representation_asArray&&A(e.index)&&(o=r.Representation_asArray[e.index])&&(i=o.InbandEventStream_asArray),Q(i,e)},getUTCTimingSources:function(t){var e=I(t),i=!!t&&t.hasOwnProperty(Se.AVAILABILITY_START_TIME),r=t?t.UTCTiming_asArray:null,o=[];return(e||i)&&r&&r.forEach((function(t){var e=new a;t.hasOwnProperty(n.SCHEME_ID_URI)&&(e.schemeIdUri=t.schemeIdUri,t.hasOwnProperty(Se.VALUE)&&(e.value=t.value.toString(),o.push(e)))})),o},getBaseURLsFromElement:S,getRepresentationSortFunction:b,getLocation:function(t){if(t&&t.hasOwnProperty(n.LOCATION))return t.Location=t.Location_asArray[0],t.Location},getUseCalculatedLiveEdgeTimeForAdaptation:function(t){var e=B(t).Representation_asArray[0],i=void 0;return e.hasOwnProperty(Se.SEGMENT_LIST)?!(i=e.SegmentList).hasOwnProperty(Se.SEGMENT_TIMELINE)||w(i.SegmentTimeline):!(!e.hasOwnProperty(Se.SEGMENT_TEMPLATE)||!(i=e.SegmentTemplate).hasOwnProperty(Se.SEGMENT_TIMELINE))&&w(i.SegmentTimeline)}},e}
jr.__dashjs_factory_name="DashManifestModel";var qr=s.a.getSingletonFactory(jr),Jr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.round10=function(t,e){return i="round",n=t,void 0===(r=e)||0==+r?Math[i](n):(r=+r,null===(n=+n)||isNaN(n)||"number"!=typeof r||r%1!=0?NaN:(n=n.toString().split("e"),+((n=(n=Math[i](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"))[0]+"e"+(n[1]?+n[1]+r:r))));var i,n,r},t}();function Kr(t){var e=(t=t||{}).dashManifestModel,i=t.manifestModel;function n(t){return s(t,r.BUFFER_LEVEL)}function o(t){if(!t)return null;var e=t.HttpList,i=null,n=void 0;if(!e||e.length<=0)return null;for(n=e.length-1;n>=0;){if(e[n].responsecode){i=e[n];break}n--}return i}function a(t){return t&&t.HttpList?t.HttpList:[]}function s(t,e){if(!t)return null;var i=t[e];if(!i)return null;var n=i.length;return n<=0?null:i[n-1]}function l(t){var e={};if(!t)return e;for(var i=t.trim().split("\r\n"),n=0,r=i.length;n<r;n++){var o=i[n],a=o.indexOf(": ");a>0&&(e[o.substring(0,a)]=o.substring(a+2))}return e}function A(t,e,i){var n=void 0,r=void 0,o=void 0,a=void 0,s=void 0;if(t)for(n=t.AdaptationSet_asArray,a=0;a<n.length;a+=1)for(o=n[a].Representation_asArray,s=0;s<o.length;s+=1)if(e===(r=o[s]).id)return i?s:r;return null}function c(t,i){return e.getIsTypeOf(t,i)}return{getBandwidthForRepresentation:function(t,e){var n;return null===(n=A(i.getValue().Period_asArray[e],t))?null:n.bandwidth},getIndexForRepresentation:function(t,e){return n=i.getValue().Period_asArray[e],null!==(r=A(n,t,!0))?r:-1;var n,r},getMaxIndexForBufferType:function(t,e){var n=i.getValue();return n?function(t,e){var i=void 0,n=void 0,r=void 0,o=void 0;if(!t||!e)return-1;for(n=t.AdaptationSet_asArray,o=0;o<n.length;o+=1)if(r=(i=n[o]).Representation_asArray,c(i,e))return r.length;return-1}(n.Period_asArray[e],t):-1},getCurrentRepresentationSwitch:function(t){return s(t,r.TRACK_SWITCH)},getLatestBufferLevelVO:n,getCurrentBufferLevel:function(t){var e=n(t);return e?Jr.round10(e.level/1e3,-3):0},getCurrentHttpRequest:o,getHttpRequests:a,getCurrentDroppedFrames:function(t){return s(t,r.DROPPED_FRAMES)},getCurrentSchedulingInfo:function(t){return s(t,r.SCHEDULING_INFO)},getCurrentDVRInfo:function(t){return s(t,r.DVR_INFO)},getCurrentManifestUpdate:function(t){return s(t,r.MANIFEST_UPDATE)},getLatestFragmentRequestHeaderValueByID:function(t,e){var i={},n=o(t);return n&&(i=l(n._responseHeaders)),void 0===i[e]?null:i[e]},getLatestMPDRequestHeaderValueByID:function(t,e){var i,n={},r=void 0,o=void 0;for(o=(i=a(t)).length-1;o>=0;o--)if((r=i[o]).type===N.MPD_TYPE){n=l(r._responseHeaders);break}return void 0===n[e]?null:n[e]},getRequestsQueue:function(t){return t?t.RequestsQueue:null}}}Kr.__dashjs_factory_name="DashMetrics";var Xr=s.a.getSingletonFactory(Kr);function $r(){var t=this.context,e=c(t).getInstance(),i=void 0,n=void 0,r=void 0;function o(t){i=t}function a(t,e,n,r){return r?n&&e.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(e.availabilityStartTime.getTime()+1e3*(t+e.timeShiftBufferDepth)):e.availabilityEndTime:n?new Date(e.availabilityStartTime.getTime()+1e3*(t-i)):e.availabilityStartTime}function s(t,e){return(t.getTime()-e.mpd.availabilityStartTime.getTime()+1e3*i)/1e3}function l(t){n||void 0!==t.offset&&(o(t.offset/1e3),n=!0)}function A(){i=0,n=!1,r=NaN}return{initialize:function(){A(),e.on(u.TIME_SYNCHRONIZATION_COMPLETED,l,this)},isTimeSyncCompleted:function(){return n},setTimeSyncCompleted:function(t){n=t},getClientTimeOffset:function(){return i},setClientTimeOffset:o,getExpectedLiveEdge:function(){return r},setExpectedLiveEdge:function(t){r=t},calcAvailabilityStartTimeFromPresentationTime:function(t,e,i){return a.call(this,t,e,i)},calcAvailabilityEndTimeFromPresentationTime:function(t,e,i){return a.call(this,t,e,i,!0)},calcPresentationTimeFromWallTime:s,calcPresentationTimeFromMediaTime:function(t,e){return t+(e.adaptation.period.start-e.presentationTimeOffset)},calcPeriodRelativeTimeFromMpdRelativeTime:function(t,e){return e-t.adaptation.period.start},calcMediaTimeFromPresentationTime:function(t,e){return t-e.adaptation.period.start+e.presentationTimeOffset},calcSegmentAvailabilityRange:function(t,e){var i=t.adaptation.period,r={start:i.start,end:i.start+i.duration};if(!e)return r;if(!n&&t.segmentAvailabilityRange)return t.segmentAvailabilityRange;var o=t.segmentDuration||(t.segments&&t.segments.length?t.segments[t.segments.length-1].duration:0),a=s(new Date,i),l=i.start+i.duration;r.start=Math.max(a-i.mpd.timeShiftBufferDepth,i.start);var A=void 0!==t.availabilityTimeOffset&&t.availabilityTimeOffset<o?o-t.availabilityTimeOffset:o;return r.end=a>=l&&a-A<l?l:a-A,r},calcWallTimeForSegment:function(t,e){var i=void 0,n=void 0,r=void 0;return e&&(i=t.representation.adaptation.period.mpd.suggestedPresentationDelay,n=t.presentationStartTime+i,r=new Date(t.availabilityStartTime.getTime()+1e3*n)),r},calcMSETimeOffset:function(t){var e=t.presentationTimeOffset;return t.adaptation.period.start-e},reset:function(){e.off(u.TIME_SYNCHRONIZATION_COMPLETED,l,this),A()}}}$r.__dashjs_factory_name="TimelineConverter";var to=s.a.getSingletonFactory($r),eo=i(10),io=i.n(eo),no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function ro(){var t="You must first call initialize() and set a source before calling this method",e="You must first call initialize() and set a valid source and view before calling this method",i="You must first call attachView() to set the video element before calling this method",l="You must first call attachSource() with a valid source before calling this method",A="MediaPlayer not initialized!",h=this.context,d=c(h).getInstance(),p=m(h).getInstance(),g=p.log,f=NaN,y=void 0,b=void 0,v=void 0,E=void 0,I=void 0,C=void 0,B=void 0,w=void 0,x=void 0,Q=void 0,S=void 0,k=void 0,D=void 0,_=void 0,R=void 0,M=void 0,T=void 0,F=void 0,L=void 0,P=void 0,U=void 0,O=void 0,G=void 0,H=void 0,V=void 0,Y=void 0,z=void 0,W=void 0,Z=void 0,j=void 0,q=void 0,J=void 0,K=void 0,X=void 0,$=void 0,tt=void 0,et={video:{},audio:{}},it={min:0,video:0,audio:0},nt=null,rt={};function at(){if(it.min&&P&&P.getDuration()>it.min&&Math.abs(P.getDuration()-it.min)>=1&&L)try{var t=+("0."+((it.min+"").split(".")[1]||0)),e=t<.1?0:t>=.1?.1:+(t-.03).toFixed(2);e&&e>0&&!isNaN(e)&&(L.setMediaDuration(it.min-e),L.setAppendWindowEnd(it.min-e),M.setDeviationReset(!0))}catch(t){}}function st(){return!!b&&!!H.getElement()}function lt(){return Object(Mr.a)()}function At(){if(!C)throw e;if(!B||ct()&&C)return P.play()}function ct(){if(!C)throw e;return P.isPaused()}function ht(t,i){if(!C)throw e;if("number"!=typeof t||isNaN(t))throw"MediaPlayer Invalid Arguments!";var n=P.getIsDynamic()?pt(t):t;i&&(n+=M.getCachedDurationOffset("time")),P.seek(n)}function dt(t){var e=[n.VIDEO,n.AUDIO,n.FRAGMENTED_TEXT];if(t)return-1!==e.indexOf(t)?It().getCurrentBufferLevel(Ct(t))||NaN:(g("Warning  - getBufferLength requested for invalid type"),NaN);var i=e.map((function(t){return xt(t).length>0?It().getCurrentBufferLevel(Ct(t)):Number.MAX_VALUE})).reduce((function(t,e){return Math.min(t,e)}));return i===Number.MAX_VALUE?NaN:i}function pt(t){var e=Rt(),i=P.getLiveDelay();if(!e)return 0;var n=e.range.start+t;return n>e.range.end-i&&(n=e.range.end-i),n}function gt(t,i){if(!C)throw e;var n=Bt().currentTime;if(void 0!==t)n=L.getTimeRelativeToStreamId(n,t);else if(P.getIsDynamic()){var r=Rt();n=null===r?0:ft()-(r.range.end-r.time)}var o=M.getCachedDurationOffset("time");return i&&n-o>0&&(n-=o,n=Math.min(n,ft(void 0))),parseFloat(n.toFixed(5))}function ft(t){if(!C)throw e;var i=Bt().duration;if(P.getIsDynamic()){var n,r=Rt();if(!r)return 0;i=(n=r.range.end-r.range.start)<r.manifestInfo.DVRWindowSize?n:r.manifestInfo.DVRWindowSize}if(t){var o=Bt().currentTime,a=M.getCachedDurationOffset("time"),s=M.getCachedDurationOffset("offset");a?o>a&&(i=o<s?s-a:i-s):i=s?Math.min(i,s):i,i=parseFloat(i.toFixed(5))}return i}function mt(t){B=t}function bt(t,e){vt(t,e);var i=new a;i.schemeIdUri=t,i.value=e,
M.getUTCTimingSources().push(i)}function vt(t,e){var i=M.getUTCTimingSources();i.forEach((function(n,r){n.schemeIdUri===t&&n.value===e&&i.splice(r,1)}))}function Et(){bt(Yi.DEFAULT_UTC_TIMING_SOURCE.scheme,Yi.DEFAULT_UTC_TIMING_SOURCE.value)}function It(){return U}function Ct(t){return R.getReadOnlyMetricsFor(t)}function Bt(){if(!H.getElement())throw i;return H.getElement()}function wt(t){if(!E)throw A;H.setElement(t),t&&(_t(),function(){if(!k){var t=dashjs.MetricsReporting;if("function"==typeof t){var e=t(h).create();k=e.createMetricsReporting({log:g,eventBus:d,mediaElement:Bt(),dashManifestModel:O,metricsModel:R,events:u,constants:n,metricsConstants:r})}}}(),function(){if(!D){var t=dashjs.MssHandler;"function"==typeof t&&(D=t(h).create({eventBus:d,mediaPlayerModel:M,metricsModel:R,playbackController:P,protectionController:S,errHandler:T,events:u,constants:n,log:g,initSegmentType:N.INIT_SEGMENT_TYPE,BASE64:io.a,ISOBoxer:yt.a}))}}(),L&&L.switchToVideoElement()),C&&kt(),Ft()}function xt(e){if(!I)throw t;var i=L.getActiveStreamInfo();return i?Q.getTracksFor(e,i):[]}function Qt(t){if(!E)throw A;"string"==typeof t&&pe(h).getInstance().initialize(t),et.video={},et.audio={},b=t,(I||C)&&kt(),st()&&Ft()}function St(t){if(!E)throw A;if(!I||!L)return Qt(t);"string"==typeof t&&pe(h).getInstance().initialize(t),et.video={},et.audio={},b=t,g("[MediaPlayer] attachSourceLite start sourceType="+(void 0===t?"undefined":no(t))+" streamingInitialized="+!!I),I=!1,L.reset(),st()&&(g("[MediaPlayer] attachSourceLite reinitialize playback"),Ft())}function kt(){C=!1,I=!1,_.reset(),L.reset(),P.reset(),w.reset(),Q.reset(),S&&(S.reset(),S=null,_t())}function Dt(){return nr(h).create({errHandler:T,videoModel:H,metricsModel:R,mediaPlayerModel:M,requestModifier:Je(h).getInstance(),mssHandler:D})}function _t(){if(S)return S;var t=dashjs.Protection;if("function"==typeof t){var e=t(h).create();return u.extend(t.events),zi.extend(t.events,{publicOnly:!0}),F||(F=or(h).getInstance()),S=e.createProtectionSystem({log:g,errHandler:T,videoModel:H,capabilities:F,eventBus:d,events:u,BASE64:io.a,constants:n,ignoreEmeEncryptedEvent:tt})}return null}function Rt(){var t=R.getReadOnlyMetricsFor(n.VIDEO)||R.getReadOnlyMetricsFor(n.AUDIO);return U.getCurrentDVRInfo(t)}function Mt(t){var e=Rt();return e?t+(e.manifestInfo.availableFrom.getTime()/1e3+e.range.start):0}function Tt(){if(!I)throw t;var e=L.getActiveStreamInfo();return e?L.getStreamById(e.id):null}function Ft(){var t;!I&&b&&(I=!0,g("Streaming Initialized"),t=Dt(),L||(L=bn(h).getInstance()),Q.setConfig({errHandler:T,domStorage:V}),L.setConfig({capabilities:F,manifestLoader:t,manifestModel:G,dashManifestModel:O,mediaPlayerModel:M,protectionController:S,adapter:_,metricsModel:R,dashMetrics:U,errHandler:T,timelineConverter:x,videoModel:H,playbackController:P,domStorage:V,abrController:w,mediaController:Q}),P.setConfig({streamController:L,metricsModel:R,dashMetrics:U,manifestModel:G,mediaPlayerModel:M,dashManifestModel:O,adapter:_,videoModel:H}),w.setConfig({streamController:L,domStorage:V,mediaPlayerModel:M,metricsModel:R,dashMetrics:U,dashManifestModel:O,manifestModel:G,videoModel:H,adapter:_,initializeDate:Ot()}),w.createAbrRulesCollection(),L.initialize(B,v),b.video||b.audio||"string"==typeof b?L.load(b,Y):L.loadWithManifest(b,Y)),!C&&st()&&(C=!0,g("Playback Initialized"))}function Lt(t){var e=M.getCachedDurationOffset("offset");e&&t.time>=e&&J&&(M.setCachedDurationOffset("time",e),J=!1,H.setDataOffsetAttr(e),d.trigger(u.APPENDED_NEXT_SOURCE_DURATION_CHANGED,{offset:e,totalTime:t.time,totalDuration:ft(),time:gt(void 0,!0),duration:it.min||ft(!0)}))}function Nt(t){try{if(t&&t.mediaType&&t.segments){var e=t.mediaType,i=et[e],n=t.segments,r=t.representation&&t.representation.index,o=!0,a=[],s={},l=0,A=0;if(i.total&&i.total===n.length&&(i.segments.forEach((function(t,e){t.duration&&t.duration!==n[e].duration&&e<i.total-1&&Math.ceil(1e3*Math.abs(t.duration/t.timescale-n[e].duration/n[e].timescale))>100&&a.push(e)})),a.length)){o=!1,s={old:i.qualityIndex,new:r};var c=H.getTime(),h=Math.floor(c/5);-1===a.indexOf(h)&&-1===a.indexOf(h+1)&&-1===a.indexOf(h+2)&&(o=!0)}var d=0,u=t.segments&&t.segments[t.segments.length-1];u&&(d=(u.duration+u.startTime)/u.timescale,it[e]=d,(!it.min||it.min>0&&it.min>d)&&(it.min=d));var p=0;if(n&&n.length&&(p=n[0].startTime/n[0].timescale,Q.setStartOffsetTimeForType(e,p),l=parseInt(n[0].mediaRange.split("-")[0],10),A=parseInt(n[n.length-1].mediaRange.split("-")[1],10),K=Math.max(K,p)),it.video&&it.audio){var g=it.video,f=it.audio,m=it.min;g>m&&f>m&&(it.min=Math.min(g,f))}it.min===d&&M.getCachedDurationOffset("duration")&&p>0&&(it.min-=p),M.setCachedDurationOffset("duration",it.min+W);var y={total:n&&n.length,segments:n,isDurationAllEqual:o,qualityIndex:r,realDuration:d,startOffsetTime:p,rangeStart:l,rangeEnd:A};o||(y.notEqualIndexList=a,y.notEqualQualityIndex=s),et[t.mediaType]=y,"function"==typeof nt&&nt(e,y)}}catch(t){throw new Error("Parse segment loaded error, "+t)}}function Pt(){Z=!0;var t=H.getBufferRange(),e=H.getElement().duration,i=t&&t.length&&t.end(t.length-1),n=H.getTime(),r=[e,i,n+dt("video"),n+dt("audio")],o=r.filter((function(t){return!isNaN(t)})),a=o.reduce((function(t,e){return t+e}))/o.length,s=Math.min.apply(null,o);if(g("onStreamBufferingCompleted",W,r,M.getAppendingSourceState(),j),Math.abs(s-a)<1&&(W=parseFloat(s.toFixed(5)),j.length)){var l=j.splice(0,1)[0];g("Appending delay next source",l),Gt(l.manifest,l.preloadData)}}function Ut(t){if(P.getEnded()&&M.getAppendingSourceState()){var e=t.sender.getType();if(rt[e]=t.bufferLevel,rt.audio>0&&rt.video>0){var i=H.getBufferRange(),n=i&&i.length&&i.end(i.length-1),r=P.getTime();n>r+.01&&(console.log("Playing next appending source after prev playback ended.",rt),P.seek(r+.01),P.play())}}if(M.getAppendingSourceState()&&q){for(var o=M.getCachedDurationOffset("offset"),a=H.getBufferRange(),s=P.getTime(),l=0,A=0;A<a.length;A++)a.start(A)<s&&a.end(A)>=s&&(l=a.end(A));o>0&&l>o+1&&(M.setAppendingSourceState(!1),g("Appended Next Source, currentTime: "+s+" , buffered end: "+l),q=!1,d.trigger(u.APPENDED_NEXT_SOURCE,{time:s,ended:l}))}if(!X){var c=H.getBufferRange(),h=P.getTime(),p=c&&c.length&&c.start(0),f=M.getPlayAt();c&&c.length&&p>=K&&(X=!0,(f||h)<p&&d.trigger(u.START_OFFSET_TIME_WARNING,{time:p}))}}function Ot(){return f}function Gt(t,e){if(g("Append Next Source",H.getTime(),H.isSeeking()),!E)throw A;if("string"==typeof t&&pe(h).getInstance().initialize(t),H.isSeeking())d.on(u.PLAYBACK_SEEKED,(function e(){g("Seeked to append next source"),d.off(u.PLAYBACK_SEEKED,e),Gt(t)}));else{if(!Z)return g("Stream buffering is not completed, delay to append!"),void(j=[{manifest:t,preloadData:e}]);M.setAppendingSourceState(!0),M.setCachedDurationOffset("offset",W),d.trigger(u.APPENDING_NEXT_SOURCE,{manifest:t,time:P.getTime(),offset:W}),q=!0,J=!0,Z=!1,et.video={},et.audio={},b=t,it.min=0,it.video=0,it.audio=0,L.load(t,!0,!0)}}return y={initialize:function(t,e,i,n,r,o,a,s){var l;M.setExternalMediaLoader(o),M.setEnableMultipleAudioTracks(s),Y=!!n,f=new Date,tt=a,delete window.__DASH_P2P_TYPE__,F||(F=or(h).getInstance()),T=si(h).getInstance(),F.supportsMediaSource()?E||(E=!0,x=to(h).getInstance(),w||(w=ot(h).getInstance()),P||(P=fe(h).getInstance()),Q||(Q=ut(h).getInstance()),$||($=Jt(h).getInstance({mediaPlayerModel:M})),_=Hr(h).getInstance(),O=qr(h).getInstance({mediaController:Q,timelineConverter:x,adapter:_}),G=sr(h).getInstance(),U=Xr(h).getInstance({manifestModel:G,dashManifestModel:O}),R=Ir(h).getInstance(),V=Rr(h).getInstance({mediaPlayerModel:M}),_.setConfig({dashManifestModel:O,mediaPlayerModel:M}),R.setConfig({adapter:_}),Et(),mt(void 0===i||i),t&&wt(t),e&&Qt(e),o&&(l=o,d.trigger(u.BIND_MEDIA_SOURCE_LOADER,{loader:l})),d.trigger(u.INIT_HID,{hid:r}),g("[dash.js "+lt()+"] MediaPlayer has been initialized")):T.capabilityError("mediasource")},setConfig:function(t){t&&(t.capabilities&&(F=t.capabilities),t.streamController&&(L=t.streamController),t.playbackController&&(P=t.playbackController),t.mediaPlayerModel&&(M=t.mediaPlayerModel),t.abrController&&(w=t.abrController),t.mediaController&&(Q=t.mediaController))},on:function(t,e,i){d.on(t,e,i)},
once:function(t,e,i){d.once(t,e,i)},off:function(t,e,i){d.off(t,e,i)},extend:function(t,e,i){s.a.extend(t,e,i,h)},attachView:wt,attachSource:Qt,attachSourceLite:St,isReady:st,preload:function(){if(H.getElement()||I)return!1;if(!b)throw l;Ft()},play:At,isPaused:ct,pause:function(){if(!C)throw e;P.pause()},isSeeking:function(){if(!C)throw e;return P.isSeeking()},isDynamic:function(){if(!C)throw e;return P.getIsDynamic()},seek:ht,setPlaybackRate:function(t){if(!H.getElement())throw i;Bt().playbackRate=t},getPlaybackRate:function(){if(!H.getElement())throw i;return Bt().playbackRate},setMute:function(t){if(!H.getElement())throw i;Bt().muted=t},isMuted:function(){if(!H.getElement())throw i;return Bt().muted},setVolume:function(t){if(!H.getElement())throw i;Bt().volume=t},getVolume:function(){if(!H.getElement())throw i;return Bt().volume},time:gt,duration:ft,timeAsUTC:function(){if(!C)throw e;return gt()<0?NaN:Mt(gt())},durationAsUTC:function(){if(!C)throw e;return Mt(ft())},getActiveStream:Tt,getDVRWindowSize:function(){var t=Rt();return t?t.manifestInfo.DVRWindowSize:0},getDVRSeekOffset:pt,convertToTimeCode:function(t){t=Math.max(t,0);var e=Math.floor(t/3600),i=Math.floor(t%3600/60),n=Math.floor(t%3600%60);return(0===e?"":e<10?"0"+e.toString()+":":e.toString()+":")+(i<10?"0"+i.toString():i.toString())+":"+(n<10?"0"+n.toString():n.toString())},formatUTC:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=new Date(1e3*t),o=r.toLocaleDateString(e),a=r.toLocaleTimeString(e,{hour12:i});return n?a+" "+o:a},getVersion:lt,getDebug:function(){return p},getBufferLength:dt,getVideoContainer:function(){return H?H.getVideoContainer():null},getTTMLRenderingDiv:function(){return H?H.getTTMLRenderingDiv():null},getVideoElement:Bt,getSource:function(){if(!b)throw l;return b},setLiveDelayFragmentCount:function(t){M.setLiveDelayFragmentCount(t)},setLiveDelay:function(t){M.setLiveDelay(t)},getLiveDelay:function(){return M.getLiveDelay()},getCurrentLiveLatency:function(){if(!E)throw A;return C?P.getCurrentLiveLatency():NaN},useSuggestedPresentationDelay:function(t){M.setUseSuggestedPresentationDelay(t)},enableLastBitrateCaching:function(t,e){M.setLastBitrateCachingInfo(t,e)},enableLastMediaSettingsCaching:function(t,e){M.setLastMediaSettingsCachingInfo(t,e)},setMaxAllowedBitrateFor:function(t,e){w.setMaxAllowedBitrateFor(t,e)},getMaxAllowedBitrateFor:function(t){return w.getMaxAllowedBitrateFor(t)},getTopBitrateInfoFor:function(e){if(!I)throw t;return w.getTopBitrateInfoFor(e)},setMinAllowedBitrateFor:function(t,e){w.setMinAllowedBitrateFor(t,e)},getMinAllowedBitrateFor:function(t){return w.getMinAllowedBitrateFor(t)},setMaxAllowedRepresentationRatioFor:function(t,e){w.setMaxAllowedRepresentationRatioFor(t,e)},getMaxAllowedRepresentationRatioFor:function(t){return w.getMaxAllowedRepresentationRatioFor(t)},setAutoPlay:mt,getAutoPlay:function(){return B},setScheduleWhilePaused:function(t){M.setScheduleWhilePaused(t)},getScheduleWhilePaused:function(){return M.getScheduleWhilePaused()},getDashMetrics:It,getMetricsFor:Ct,getQualityFor:function(e){if(!I)throw t;return w.getQualityFor(e,L.getActiveStreamInfo())},setQualityFor:function(e,i){if(!I)throw t;w.setPlaybackQuality(e,L.getActiveStreamInfo(),i)},updatePortalSize:function(){w.setElementSize(),w.setWindowResizeEventCalled(!0)},getLimitBitrateByPortal:function(){return w.getLimitBitrateByPortal()},setLimitBitrateByPortal:function(t){w.setLimitBitrateByPortal(t)},getUsePixelRatioInLimitBitrateByPortal:function(){return w.getUsePixelRatioInLimitBitrateByPortal()},setUsePixelRatioInLimitBitrateByPortal:function(t){w.setUsePixelRatioInLimitBitrateByPortal(t)},getBitrateInfoListFor:function(e){if(!I)throw t;var i=Tt();return i?i.getBitrateListFor(e):[]},setInitialBitrateFor:function(t,e){w.setInitialBitrateFor(t,e)},getInitialBitrateFor:function(e){if(!I)throw t;return w.getInitialBitrateFor(e)},setInitialRepresentationRatioFor:function(t,e){w.setInitialRepresentationRatioFor(t,e)},getInitialRepresentationRatioFor:function(t){return w.getInitialRepresentationRatioFor(t)},getStreamsFromManifest:function(e){if(!I)throw t;return _.getStreamsInfo(e)},getTracksFor:xt,getTracksForTypeFromManifest:function(e,i,n){if(!I)throw t;return(n=n||_.getStreamsInfo(i,1)[0])?_.getAllMediaInfoForType(n,e,i):[]},getCurrentTrackFor:function(e){if(!I)throw t;var i=L.getActiveStreamInfo();return i?Q.getCurrentTrackFor(e,i):null},setInitialMediaSettingsFor:function(t,e){if(!E)throw A;Q.setInitialSettings(t,e)},getInitialMediaSettingsFor:function(t){if(!E)throw A;return Q.getInitialSettings(t)},setCurrentTrack:function(e){if(!I)throw t;Q.setTrack(e)},getTrackSwitchModeFor:function(t){if(!E)throw A;return Q.getSwitchMode(t)},setTrackSwitchModeFor:function(t,e){if(!E)throw A;Q.setSwitchMode(t,e)},setSelectionModeForInitialTrack:function(t){if(!E)throw A;Q.setSelectionModeForInitialTrack(t)},getSelectionModeForInitialTrack:function(){if(!E)throw A;return Q.getSelectionModeForInitialTrack()},setFastSwitchEnabled:function(t){M.setFastSwitchEnabled(t)},getFastSwitchEnabled:function(){return M.getFastSwitchEnabled()},setFastSwitchOptimized:function(t){M.setFastSwitchOptimized(t)},getFastSwitchOptimized:function(){return M.getFastSwitchOptimized()},setMovingAverageMethod:function(t){t===n.MOVING_AVERAGE_SLIDING_WINDOW||t===n.MOVING_AVERAGE_EWMA?M.setMovingAverageMethod(t):g("Warning: Ignoring setMovingAverageMethod("+t+") - unknown value.")},getMovingAverageMethod:function(){return M.getMovingAverageMethod()},getAutoSwitchQualityFor:function(t){return w.getAutoSwitchBitrateFor(t)},setAutoSwitchQualityFor:function(t,e){w.setAutoSwitchBitrateFor(t,e)},setABRStrategy:function(t){t===n.ABR_STRATEGY_DYNAMIC||t===n.ABR_STRATEGY_BOLA||t===n.ABR_STRATEGY_THROUGHPUT?M.setABRStrategy(t):g("Warning: Ignoring setABRStrategy("+t+") - unknown value.")},getABRStrategy:function(){return M.getABRStrategy()},useDefaultABRRules:function(t){M.setUseDefaultABRRules(t)},addABRCustomRule:function(t,e,i){M.addABRCustomRule(t,e,i)},removeABRCustomRule:function(t){M.removeABRCustomRule(t)},removeAllABRCustomRule:function(){M.removeAllABRCustomRule()},setBandwidthSafetyFactor:function(t){M.setBandwidthSafetyFactor(t)},getBandwidthSafetyFactor:function(){return M.getBandwidthSafetyFactor()},getAverageThroughput:function(t){var e=w.getThroughputHistory();return e?e.getAverageThroughput(t):0},setAbandonLoadTimeout:function(t){M.setAbandonLoadTimeout(t)},retrieveManifest:function(t,e){var i=Dt(),n=this;d.on(u.INTERNAL_MANIFEST_LOADED,(function t(r){r.error?e(null,r.error):e(r.manifest),d.off(u.INTERNAL_MANIFEST_LOADED,t,n),i.reset()}),n),pe(h).getInstance().initialize(t),i.load(t,Y)},addUTCTimingSource:bt,removeUTCTimingSource:vt,clearDefaultUTCTimingSources:function(){M.setUTCTimingSources([])},restoreDefaultUTCTimingSources:Et,setBufferToKeep:function(t){M.setBufferToKeep(t)},setBufferAheadToKeep:function(t){M.setBufferAheadToKeep(t)},setBufferPruningInterval:function(t){M.setBufferPruningInterval(t)},setStableBufferTime:function(t){M.setStableBufferTime(t)},removeVideoBuffer:function(){g("[MediaPlayer] removeVideoBuffer start");for(var t=L.getActiveStreamProcessors(),e=0;e<t.length;e++)t[e].getType()===n.VIDEO&&(g("[MediaPlayer] removeVideoBuffer stop schedule and remove buffer for processor index="+e),t[e].getScheduleController().stop(),t[e].getBufferController().removeBuffer());L.setVideoTrackDetected(!1),g("[MediaPlayer] removeVideoBuffer completed videoTrackDetected=false")},setAudioOnlyStartup:function(t){M.setAudioOnlyStartup(t)},getAudioOnlyStartup:function(){return M.getAudioOnlyStartup()},recreateVideoBuffer:function(){if(b){M.setAudioOnlyStartup(!1),L.setVideoTrackDetected(!0);var t=Bt(),e=t&&t.currentTime||0;g("[MediaPlayer] recreateVideoBuffer start currentTime="+e),M.setRecreateSeekTime(e),St(b),e>0?d.on(u.STREAM_INITIALIZED,(function t(){d.off(u.STREAM_INITIALIZED,t,self),M.setRecreateSeekTime(null);try{g("[MediaPlayer] recreateVideoBuffer restore seek currentTime="+e),ht(e),At()}catch(t){console.warn("[MediaPlayer] Could not seek after reload:",t)}}),self):M.setRecreateSeekTime(null)
}else console.error("[MediaPlayer] Cannot reload video: no source attached")},getStableBufferTime:function(){return M.getStableBufferTime()},setBufferTimeAtTopQuality:function(t){M.setBufferTimeAtTopQuality(t)},getBufferTimeAtTopQuality:function(){return M.getBufferTimeAtTopQuality()},setBufferTimeAtTopQualityLongForm:function(t){M.setBufferTimeAtTopQualityLongForm(t)},getBufferTimeAtTopQualityLongForm:function(){return M.getBufferTimeAtTopQualityLongForm()},setFragmentLoaderRetryAttempts:function(t){M.setFragmentRetryAttempts(t)},setFragmentLoaderRetryInterval:function(t){M.setFragmentRetryInterval(t)},setManifestLoaderRetryAttempts:function(t){M.setManifestRetryAttempts(t)},setManifestLoaderRetryInterval:function(t){M.setManifestRetryInterval(t)},setXHRWithCredentialsForType:function(t,e){M.setXHRWithCredentialsForType(t,e)},getXHRWithCredentialsForType:function(t){return M.getXHRWithCredentialsForType(t)},setJumpGaps:function(t){M.setJumpGaps(t)},getJumpGaps:function(){return M.getJumpGaps()},setSmallGapLimit:function(t){M.setSmallGapLimit(t)},getSmallGapLimit:function(){return M.getSmallGapLimit()},getLowLatencyEnabled:function(){return M.getLowLatencyEnabled()},setLowLatencyEnabled:function(t){return M.setLowLatencyEnabled(t)},setPreloadData:function(t){return M.setPreloadData(t)},setManifestUpdateRetryInterval:function(t){M.setManifestUpdateRetryInterval(t)},getManifestUpdateRetryInterval:function(){return M.getManifestUpdateRetryInterval()},setLongFormContentDurationThreshold:function(t){M.setLongFormContentDurationThreshold(t)},setSegmentOverlapToleranceTime:function(t){M.setSegmentOverlapToleranceTime(t)},setCacheLoadThresholdForType:function(t,e){M.setCacheLoadThresholdForType(t,e)},getProtectionController:function(){return _t()},attachProtectionController:function(t){S=t},setProtectionData:function(t){v=t,L&&L.setProtectionData(v)},enableManifestDateHeaderTimeSource:function(t){M.setUseManifestDateHeaderTimeSource(t)},attachVideoContainer:function(t){if(!H.getElement())throw i;H.setVideoContainer(t)},attachTTMLRenderingDiv:function(t){if(!H.getElement())throw i;H.setTTMLRenderingDiv(t)},getUseDeadTimeLatencyForAbr:function(){return w.getUseDeadTimeLatency()},setUseDeadTimeLatencyForAbr:function(t){w.setUseDeadTimeLatency(t)},getThumbnail:function(t){if(t<0)return null;var e=P.getIsDynamic()?pt(t):t,i=L.getStreamForTime(e);if(null===i)return null;var n=i.getThumbnailController(),r=i.getStreamInfo();if(!n||!r)return null;var o=L.getTimeRelativeToStreamId(e,i.getId());return n.get(o)},setDefaultQualityFor:function(t,e){w||(w=ot(h).getInstance()),w.setDefaultQualityFor(t,e)},getDefaultQualityFor:function(t){return w.getDefaultQualityFor(t)},getDroppedFramesInfo:function(){return w.getDroppedFramesInfo()},getCurrentSegmentInfoFor:function(t){return w.getCurrentSegmentInfoFor(t)},onInitSegmentsLoaded:function(t){nt=t},getThroughputDict:function(t){var e=w.getThroughputHistory();return e?e.getDict(t):{}},getInitializeDate:Ot,updateSource:function(t){if(!E)throw A;"string"==typeof t&&pe(h).getInstance().initialize(t),et.video={},et.audio={},b=t,L.load(b,Y)},switchSource:function(t){if(!E)throw A;"string"==typeof t&&pe(h).getInstance().initialize(t),et.video={},et.audio={},it.min=0,it.video=0,it.audio=0,b=t,W=0,H.setDataOffsetAttr(0),M.setCachedDurationOffset("offset",0),M.setCachedDurationOffset("time",0),M.setCachedDurationOffset("duration",0),M.setAppendingSourceState(!1),M.resetStartAndSeekTime(),J=!1,j=[],(I||C)&&kt(),st()&&Ft()},appendSource:Gt,setEndOfStreamState:function(t){M&&M.setEndOfStreamState(t)},setP2pPermission:function(t){t||M.addBufferingCount()},setP2pType:function(t,e){var i,n=!1;switch(t){case"yf-eg":case"yf-cg2":window.YFDashIO&&(n=!0);break;case"xl-eg":case"xl-cg2":window.xyvp&&(n=!0);break;case"ks-eg":case"ks-cg2":window.KSLoader&&(n=!0);break;case"bili-eg":case"bili-cg2":window.DIYSdk&&(n=!0);break;case"pear-eg":case"pear-cg2":window.PearDownloader&&(n=!0)}n?window.__DASH_P2P_TYPE__=t:e?(i=e,new Promise((function(t,e){var n=document.createElement("script");n.src=i,n.onload=function(){window.clearTimeout(z),t()},n.onerror=function(){window.clearTimeout(z),e(),d.trigger(u.PCDN_LOADED_ERROR,{code:o.DOWNLOAD_PCDN_SCRIPT_ERROR,url:i})},document.body.appendChild(n),z=window.setTimeout((function(){e(),d.trigger(u.PCDN_LOADED_ERROR,{code:o.DOWNLOAD_PCDN_SCRIPT_TIMEOUT,url:i})}),2e3)}))).then((function(){window.__DASH_P2P_TYPE__=t,g("[MediaPlayer] p2p Sdk Scripts Loaded")})).catch((function(){console.warn("load p2p sdk scripts failed")})):console.warn("lack p2p sdk scripts")},setUseNC:function(t){M&&M.setUseNC(t)},setUseP2P:function(t){M&&M.setUseP2P(t)},switchAudioTrack:function(t){return M.getAudioTrackIds().find((function(e){return e.id===t}))?(M.setAudioTrackId(t),d.trigger(u.SWITCH_AUDIO_TRACK_REQUEST,{id:t}),0):-1},getCurrentAudioTrackId:function(){return M.getAudioTrackId()},getAudioTrackList:function(){return M.getAudioTrackIds()},getRetryTimes:function(){return M.getRetryTimes()},getSpaceUtilLastSeekInSec:function(){return((new Date).getTime()-M.getLastStartSeekTime())/1e3},setPlayAt:function(t){return M.setPlayAt(t)},reset:function(){Qt(null),wt(null),v=null,q=!1,J=!1,W=0,j=[],S&&(S.reset(),S=null),k&&(k.reset(),k=null),P&&(P.reset(),P=null),$&&($.reset(),$=null),d.off(u.SEGMENTS_LOADED,Nt,y),d.off(u.BUFFER_LEVEL_UPDATED,Ut,y),d.off(u.PLAYBACK_ENDED,Pt,this),d.off(u.STREAM_BUFFERING_COMPLETED,Pt,this),d.off(u.PLAYBACK_TIME_UPDATED,Lt,this),d.off(u.PLAYBACK_METADATA_LOADED,at,this)},setQualityMap:function(t){},setPlayerId:function(t){M.setPlayerId(t)},getMediaTimeInfo:function(){return{videoRealDuration:it.video,audioRealDuration:it.audio,videoStartOffset:Q.getStartOffsetTimeForType("video"),audioStartOffset:Q.getStartOffsetTimeForType("audio")}},setEnableSupplyFrame:function(t){M&&(g("Set enable supply frame",t),M.setEnableSupplyFrame(t))},setSupportsChangeType:function(t){M&&(g("Set supportsChangeType",t),M.setSupportsChangeType(t))},getUseSupplyFrame:function(){return{enableExtFrame:M.getEnableSupplyFrame(),canUseExtFrame:M.getCanSupplyFrame(),extFrameFailed:M.getSupplyFrameFailed()}}},function(){E=!1,C=!1,I=!1,B=!0,S=null,v=null,_=null,u.extend(zi),M=Yi(h).getInstance(),H=Br(h).getInstance(),W=0,Z=!1,j=[],rt={video:0,audio:0},K=0,d.on(u.SEGMENTS_LOADED,Nt,y),d.on(u.BUFFER_LEVEL_UPDATED,Ut,y),d.on(u.PLAYBACK_ENDED,Pt,this),d.on(u.STREAM_BUFFERING_COMPLETED,Pt,this),d.on(u.PLAYBACK_TIME_UPDATED,Lt,this),d.on(u.PLAYBACK_METADATA_LOADED,at,this)}(),y}ro.__dashjs_factory_name="MediaPlayer";var oo=s.a.getClassFactory(ro);oo.events=zi,s.a.updateClassFactory(ro.__dashjs_factory_name,oo),e.a=oo},function(t,e,i){var n,r,o,l,A,c={encode:function(t){for(var e=[],i=0;i<t.length;++i){var n=t.charCodeAt(i);n<128?e.push(n):n<2048?(e.push(192|n>>6),e.push(128|63&n)):n<65536?(e.push(224|n>>12),e.push(128|63&n>>6),e.push(128|63&n)):(e.push(240|n>>18),e.push(128|63&n>>12),e.push(128|63&n>>6),e.push(128|63&n))}return e},decode:function(t){for(var e=[],i=0;i<t.length;){var n=t[i++];n<128||(n<224?(n=(31&n)<<6,n|=63&t[i++]):n<240?(n=(15&n)<<12,n|=(63&t[i++])<<6,n|=63&t[i++]):(n=(7&n)<<18,n|=(63&t[i++])<<12,n|=(63&t[i++])<<6,n|=63&t[i++])),e.push(String.fromCharCode(n))}return e.join("")}},h={};n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=function(t){for(var e=0,i=[],r=0|t.length/3;0<r--;){var o=(t[e]<<16)+(t[e+1]<<8)+t[e+2];e+=3,i.push(n.charAt(63&o>>18)),i.push(n.charAt(63&o>>12)),i.push(n.charAt(63&o>>6)),i.push(n.charAt(63&o))}return 2==t.length-e?(o=(t[e]<<16)+(t[e+1]<<8),i.push(n.charAt(63&o>>18)),i.push(n.charAt(63&o>>12)),i.push(n.charAt(63&o>>6)),i.push("=")):1==t.length-e&&(o=t[e]<<16,i.push(n.charAt(63&o>>18)),i.push(n.charAt(63&o>>12)),i.push("==")),i.join("")},o=function(){for(var t=[],e=0;e<64;++e)t[n.charCodeAt(e)]=e;return t["=".charCodeAt(0)]=0,t}(),l=function(t){for(var e=0,i=[],n=0|t.length/4;0<n--;){var r=(o[t.charCodeAt(e)]<<18)+(o[t.charCodeAt(e+1)]<<12)+(o[t.charCodeAt(e+2)]<<6)+o[t.charCodeAt(e+3)];i.push(255&r>>16),i.push(255&r>>8),i.push(255&r),e+=4}return i&&("="==t.charAt(e-2)?(i.pop(),i.pop()):"="==t.charAt(e-1)&&i.pop()),i},A={encode:function(t){
for(var e=[],i=0;i<t.length;++i)e.push(t.charCodeAt(i));return e},decode:function(t){for(var e=0;e<s.length;++e)a[e]=String.fromCharCode(a[e]);return a.join("")}},h.decodeArray=function(t){var e=l(t);return new Uint8Array(e)},h.encodeASCII=function(t){var e=A.encode(t);return r(e)},h.decodeASCII=function(t){var e=l(t);return A.decode(e)},h.encode=function(t){var e=c.encode(t);return r(e)},h.decode=function(t){var e=l(t);return c.decode(e)},e.decode=h.decode,e.decodeArray=h.decodeArray,e.encode=h.encode,e.encodeASCII=h.encodeASCII},function(t,e,i){"use strict";(function(t){var n=i(9);i.d(e,"a",(function(){return n.a}));var r=i(0),o=i(6),a="undefined"!=typeof window&&window||t,s=a.dashjs;s||(s=a.dashjs={}),s.MediaPlayer=n.a,s.FactoryMaker=r.a,s.Version=Object(o.a)()}).call(this,i(18))},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserChangeTypeAllowed=e.isSupportEncoder=e.rmLocalDecodeErrorInfo=e.setLocalDecodeErrorInfo=e.getLocalDecodeErrorInfo=e.getCPULogicCount=e.getOS=e.shouldUseNativeHEVCDecode=e.isMultiAudioTracksSupported=e.getVideoCodecStrategy=e.isFLACTypeSupported=e.shouldUseHardwareDecodingAV1=e.isBrowserSupportHardwareDecodeAV1=e.getSupportedVideoIdList=e.is8KTypeSupported=e.isAV18KTypeSupported=e.isBrowserSupportAV1=e.isMIMETypeSupported=e.isAV1TypeSupported=e.isHEVC8kTypeSupported=e.isHEVCDolbyVisionTypeSupported=e.isEC3DolbyATMOSTypeSupported=e.checkDisplayHDRCapability=e.isHEVCHDR10TypeSupported=e.isBwpHEVCPrefSupported=e.isHEVCTypeSupported=void 0;var r=n(i(7)),o=i(2),a=i(5),s=n(i(3)),l=i(13),A=i(8);e.isHEVCTypeSupported=function(){return"1"!==s.default.getSessionStorage("enableHEVCError")&&(!!window.__ENABLE_WASM_PLAYER__||window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="hev1.1.6.L120.90"'))},e.isBwpHEVCPrefSupported=function(){if("1"===s.default.getSessionStorage("enableHEVCError"))return!1;switch(l.getUserCodecPreferType()){case o.USER_CODEC_PREFER_TYPE.HEVC:return!0;case o.USER_CODEC_PREFER_TYPE.AV1:case o.USER_CODEC_PREFER_TYPE.DISABLE:return!1;default:var t=parseInt(s.default.getLocalStorage("bilibili_player_codec_prefer_strategy"),10);return o.USER_CODEC_PREFER_TYPE.DISABLE!==t}};var c=function(){var t,e,i;return!!(parseInt(s.default.getLocalStorage("bilibili_player_force_hdr"),10)||(null===(t=window.matchMedia("(dynamic-range: high)"))||void 0===t?void 0:t.matches)||(null===(e=window.matchMedia("(video-dynamic-range: high)"))||void 0===e?void 0:e.matches)||(null===(i=window.matchMedia("(color-gamut: p3)"))||void 0===i?void 0:i.matches))};e.checkDisplayHDRCapability=c;var h=3840,d=2160,u=function(t){if("1"===s.default.getSessionStorage("enableHEVCError"))return!1;var e=(null==t?void 0:t.codec)||"hev1.2.4.H150.90";return!!A.checkVideoCapabilitySync({codec:e,width:h,height:d}).supported&&c()};e.isHEVCHDR10TypeSupported=u;var p=function(t){return A.checkMimeTypeSync(t).supported};e.isMIMETypeSupported=p;var g=function(t){return"1"!==s.default.getSessionStorage("enableHEVCError")&&!!((null==t?void 0:t.codec)?A.checkVideoCapabilitySync({codec:t.codec,width:h,height:d}).supported:A.checkVideoCapabilitySync({codec:"hev1.1.6.L153.90",width:h,height:d}).supported&&A.checkVideoCapabilitySync({codec:"dvh1.05.06",width:h,height:d}).supported)&&c()};e.isHEVCDolbyVisionTypeSupported=g,e.isEC3DolbyATMOSTypeSupported=function(){var t,e;if(!A.checkAudioCapabilitySync({codec:"ec-3",samplerate:48e3,channels:6}).supported)return!1;var i=null===(e=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===e?void 0:e.toLowerCase(),n=a.getSafariInfo(i),r=a.getEdgeInfo(i);return n.isSafari&&n.version>=13||r.isEdge};var f=function(t){var e,i=(null==t?void 0:t.codec)||"hev1.1.6.L180.90",n=(null==t?void 0:t.width)||7680,r=(null==t?void 0:t.height)||4320;if(!A.checkVideoCapabilitySync({codec:i,width:n,height:r}).supported)return!1;if(parseInt(s.default.getLocalStorage("bilibili_player_force_8k"),10))return!0;var o=a.getCurrentBrowserInfo(),l=o.type,c=o.version;return!!((e={})[a.BROWSER_TYPE.Safari]=c>=13,e[a.BROWSER_TYPE.ChromiumEdge]=c>=120,e[a.BROWSER_TYPE.Chrome]=c>=104,e)[l]};e.isHEVC8kTypeSupported=f;var m=function(t){var e=a.getCurrentBrowserInfo(),i=e.type,n=e.version;return t="number"==typeof t?t:4e3,!(i===a.BROWSER_TYPE.QQ&&n>=70&&t>4e3)};e.isBrowserSupportAV1=m,e.isAV1TypeSupported=function(t){return!!m()&&A.checkVideoCapabilitySync({codec:"av01.0.08M.08.0.110.01.01.01.0",width:null==t?void 0:t.width,height:null==t?void 0:t.height}).supported};var y=function(t){var e=(null==t?void 0:t.codec)||"av01.0.16M.08.0.110.01.01.01.0",i=(null==t?void 0:t.width)||7680,n=(null==t?void 0:t.height)||4320;return!!A.checkVideoCapabilitySync({codec:e,width:i,height:n}).supported&&(!!parseInt(s.default.getLocalStorage("bilibili_player_force_8k"),10)||m())};e.isAV18KTypeSupported=y,e.is8KTypeSupported=function(){return y()||f()},e.getSupportedVideoIdList=function(t,e,i){try{var n=[],r="boolean"!=typeof(null==e?void 0:e.enableHEVC)||e.enableHEVC,a="boolean"!=typeof(null==e?void 0:e.enableAV1)||e.enableAV1,s=function(t){return t.includes("av01")?o.VIDEO_CODEC_ID.AV1:["hev","dvh","hvc"].some((function(e){return t.includes(e)}))?o.VIDEO_CODEC_ID.HEVC:o.VIDEO_CODEC_ID.AVC},l=function(t){return t&&t instanceof Array&&t.length>0},A=function(t,e,i,n){for(var r=n[0],a=n[1],l=0,A=t;l<A.length;l++){var c=A[l],h=s(c);if(h===o.VIDEO_CODEC_ID.AV1&&a&&y({codec:c})){e.push(i);break}if(h===o.VIDEO_CODEC_ID.HEVC&&r&&f({codec:c})){e.push(i);break}}},c=function(t,e,i,n){for(var r=0,o=t;r<o.length;r++)if(n({codec:o[r]})){e.push(i);break}};if(!l(t))return n;var h="number"==typeof i?i:0,d=t.filter((function(t){return t.quality>h}));if(d.length<=0)return n;for(var m=0,b=d;m<b.length;m++){var v=b[m],E=v.quality,I=v.codecs;if(l(I))if([o.VIDEO_QN.QN_DOLBY_VISION,o.VIDEO_QN.QN_HDR10,o.VIDEO_QN.QN_8K].includes(E))if(o.VIDEO_QN.QN_8K===E)(r||a)&&A(I,n,E,[r,a]);else{if(!r)continue;c(I,n,E,o.VIDEO_QN.QN_DOLBY_VISION===E?g:u)}else for(var C=0,B=I;C<B.length;C++){var w=B[C];if(p('video/mp4;codecs="'+w+'";')){n.push(E);break}}else n.push(E)}return n}catch(t){return[]}};var b=function(){var t=a.getCurrentBrowserInfo(),e=t.type,i=t.version;return e===a.BROWSER_TYPE.ChromiumEdge&&i>=79||e===a.BROWSER_TYPE.Chrome&&i>=70};e.isBrowserSupportHardwareDecodeAV1=b;var v=[/rtx [3-9]\d{3}/,/m1 (max|ultra)/,/m[2-9]( pro| max| ultra)?/];e.shouldUseHardwareDecodingAV1=function(){if(!b())return!1;var t=a.getGPUInfo().toLowerCase();if(v.some((function(e){return e.test(t)})))return!0;var e=r.default.getKVDashConfigValue("av1_4k_enable_gpu_list");return!(!e||!Array.isArray(e))&&e.some((function(e){try{var i=e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(i).test(t)}catch(t){return!1}}))},e.isFLACTypeSupported=function(){var t,e,i=null===(e=null===(t=window.navigator)||void 0===t?void 0:t.userAgent)||void 0===e?void 0:e.toLowerCase(),n=a.getSafariInfo(i),r=A.checkAudioCapabilitySync({codec:"flac"}).supported;return!!r&&(n.isSafari&&n.version>=13||r)},e.getVideoCodecStrategy=function(t){return l.applyCodecStrategy(t)},e.isMultiAudioTracksSupported=function(){var t=a.getCurrentBrowserInfo(),e=t.type,i=t.version;return e===a.BROWSER_TYPE.ChromiumEdge&&i>=79||e===a.BROWSER_TYPE.Chrome&&i>=69||e===a.BROWSER_TYPE.Firefox&&i>=67||e===a.BROWSER_TYPE.QQ&&i>=69||e===a.BROWSER_TYPE.Safari&&i>=13||e===a.BROWSER_TYPE.Sogou},e.getOS=function(){var t=window.navigator.userAgent,e=window.navigator.platform,i=null;return-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(e)?i="Mac OS":-1!==["iPhone","iPad","iPod"].indexOf(e)?i="iOS":-1!==["Win32","Win64","Windows","WinCE"].indexOf(e)?i="Windows":/Android/.test(t)?i="Android":!i&&/Linux/.test(e)&&(i="Linux"),i};var E=function(){return navigator.hardwareConcurrency||0};e.getCPULogicCount=E,e.shouldUseNativeHEVCDecode=function(){var t=a.getCurrentBrowserInfo(),e=(t.type,t.version,A.checkVideoCapabilitySync({codec:"hev1.1.6.L120.90"}).supported);return a.BROWSER_TYPE.ChromiumEdge,e},e.getLocalDecodeErrorInfo=function(t){
var e="decode"+t+"Error",i=s.default.getLocalStorage(e);return i?JSON.parse(i):null},e.setLocalDecodeErrorInfo=function(t,e){var i="decode"+t+"Error";s.default.setLocalStorage(i,JSON.stringify(e))},e.rmLocalDecodeErrorInfo=function(t){var e="decode"+t+"Error";s.default.removeStorage(e)},e.isSupportEncoder=function(){if(!window)return!1;if(!["VideoEncoder","AudioEncoder","VideoFrame","AudioData","Worker"].every((function(t){return window[t]})))return!1;if(E()<8)return!1;var t=a.getCurrentBrowserInfo(),e=[a.BROWSER_TYPE.Chrome,a.BROWSER_TYPE.ChromiumEdge],i=t.type,n=t.version;return!!(e.includes(i)&&n>=120)},e.isBrowserChangeTypeAllowed=function(){try{var t=a.getCurrentBrowserInfo(),e=t.type,i=t.version;switch(e){case a.BROWSER_TYPE.Chrome:case a.BROWSER_TYPE.ChromiumEdge:case a.BROWSER_TYPE.QQ:case a.BROWSER_TYPE.Sogou:return i>=120;case a.BROWSER_TYPE.Firefox:return i>=102;case a.BROWSER_TYPE.Safari:return i>=15;case a.BROWSER_TYPE.LegacyEdge:default:return!1}}catch(t){return!1}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getUserCodecPreferType=e.applyCodecStrategyWithPerf=e.applyCodecStrategy=void 0;var o=i(2),a=i(5),s=r(i(3)),l=i(12),A=i(8),c="bilibili_player_codec_prefer_type",h={HARDWARE:o.VIDEO_QN.QN_4K,SOFTWARE:o.VIDEO_QN.QN_1080P_60},d=[o.VIDEO_QN.QN_8K],u={HARDWARE:o.VIDEO_QN.QN_4K,SOFTWARE:o.VIDEO_QN.QN_1080P_PLUS,WASM:o.VIDEO_QN.QN_1080P_60},p=[o.VIDEO_QN.QN_HDR10,o.VIDEO_QN.QN_DOLBY_VISION,o.VIDEO_QN.QN_8K];function g(t,e){return e?t+":"+[e.supported?"S":"N",e.smooth?"s":"",e.powerEfficient?"p":""].join("")+"@"+function(t){switch(t){case"media-capabilities":return"mc";case"media-source":return"ms";case"can-play-type":return"cpt";default:return t||"-"}}(e.source):""}function f(t){var e,i,r,a,s=t.state,l=t.manifest,c=t.enableAV1,h=t.enableHEVC,d=t.log,u=t.defaultVideoQn,p=t.signal,f=o.VIDEO_CODEC_ID.HEVC,m=o.VIDEO_CODEC_ID.AV1,b=o.VIDEO_CODEC_ID.AVC,E=s?s.defaultVideoQuality:u;E=E||0;var I,C=new Map,B=0,w=0,x=l.video,Q=l.duration;if(x&&x.length)for(var S=0,k=x;S<k.length;S++){var D=k[S];if(null==p?void 0:p.aborted)return{defaultCodec:b,codecMap:new Map};var _=C.get(D.id)||{};if(D.codecid!==b){if(D.codecid===m||D.codecid===f){var R=A.checkVideoCapabilitySync({codec:D.codecs,width:D.width,height:D.height,bitrate:D.bandwidth,framerate:D.frame_rate?parseFloat(D.frame_rate):void 0});D.codecid===m&&(_.av1=_.av1?n(n({},_.av1),{smooth:_.av1.smooth&&R.smooth,supported:_.av1.supported&&R.supported}):R,R.supported&&R.smooth&&D.id>B&&(B=D.id)),D.codecid===f&&(_.hevc=_.hevc?n(n({},_.hevc),{smooth:_.hevc.smooth&&R.smooth,supported:_.hevc.supported&&R.supported}):R,R.supported&&R.smooth&&D.id>w&&(w=D.id)),C.set(D.id,_)}}else _.avc=!0,C.set(D.id,_)}if(null==p?void 0:p.aborted)return{defaultCodec:b,codecMap:new Map};d&&d({type:"UA",message:""+(null===(i=null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||void 0===i?void 0:i.toLowerCase())}),d&&d({type:"abilityDetect",message:"[0]Ability: av1MaxSmoothQn="+B+", hevcMaxSmoothQn="+w+", caps(S/s/p@mc/ms/cpt): "+(I=C,Array.from(I).map((function(t){var e=t[0],i=t[1],n=[];return i.avc&&n.push("avc"),i.hevc&&n.push(g("hevc",i.hevc)),i.av1&&n.push(g("av1",i.av1)),e+"{"+n.join(",")+"}"})).join(";"))});for(var M=(null===(r=t.state)||void 0===r?void 0:r.codecStrategy)||o.DEF_CODEC_STRATEGY,T=new Map,F=0,L=Array.from(C.keys());F<L.length;F++){for(var N=L[F],P=!!(_=C.get(N)).av1,U=!!_.hevc,O=null,G=0,H=M;G<H.length;G++){var V=H[G];if(V===o.STRING.AV1&&P){if(_.av1.supported&&y(c,s,Q,d,N,_.av1,B)){O=m;break}}else if(V===o.STRING.HEVC&&U){var Y=!!window.__ENABLE_WASM_PLAYER__;if((_.hevc.supported||Y)&&v(h,s,d,N,_.hevc,w)){O=f;break}}else if(V===o.STRING.AVC&&_.avc){O=b;break}}null!==O&&T.set(N,O)}var z=Array.from(T.values()),W=null!==(a=T.get(E))&&void 0!==a?a:z.indexOf(b)>-1?b:z[0]||b;return d&&d({type:"codecStrategy",message:"[2]Result: defaultCodec: "+W+", codecMap: "+JSON.stringify(Array.from(T))}),{defaultCodec:W,codecMap:T}}function m(){return parseInt(s.default.getLocalStorage(c),10)||o.USER_CODEC_PREFER_TYPE.RECOMMEND}function y(t,e,i,n,r,A,c){var u=t;if(u){var p=0;e&&e.defaultVideoQuality?p=e.defaultVideoQuality:"number"==typeof r&&(p=r);var g=h.HARDWARE,f=h.SOFTWARE;switch(("number"==typeof r?r:p)>(c>0?Math.max(c,f):l.shouldUseHardwareDecodingAV1()?g:f)&&(u=!1),m()){case o.USER_CODEC_PREFER_TYPE.AV1:u=!0;break;case o.USER_CODEC_PREFER_TYPE.DISABLE:case o.USER_CODEC_PREFER_TYPE.HEVC:u=!1}var y=l.getLocalDecodeErrorInfo("AV1"),b=(new Date).getTime();y&&(y.reactivateTime||0)>b&&(u=!1);var v="number"==typeof r?r:p;if(d.includes(v))u=!0;else{var E=a.getGPUInfo();/Vulkan/i.test(E)&&(u=!1)}l.isBrowserSupportAV1(i)||(u=!1),+s.default.getSessionStorage("enableAV1Error")&&(u=!1)}return u}function b(){return new Promise((function(t,e){var i="bilibili_player_codec_prefer_reset",n="1.5.2";s.default.getLocalStorage(i)!==n?(s.default.setLocalStorage(i,n),t()):e()}))}function v(t,e,i,n,r,A){var h=t;if(h){var d=navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase(),g=d.indexOf("edge/")>-1,f=e&&e.defaultVideoQuality||n,y=u.SOFTWARE,v=u.HARDWARE,E=u.WASM,I=a.getCurrentBrowserInfo(),C=I.type,B=I.version,w=C===a.BROWSER_TYPE.Chrome&&B>108&&l.getCPULogicCount()>=8?v:y,x=A>0?Math.min(A,v):v,Q=f>(A>0?Math.min(A,w):w)&&!g&&d.indexOf("chrome/")>0,S=f>x,k=!!+s.default.getSessionStorage("enableHEVCError"),D=parseInt(s.default.getLocalStorage("bilibili_player_codec_prefer_strategy"),10);window.__ENABLE_WASM_PLAYER__?f>E&&(h=!1):(Q||S)&&(h=!1);var _=m();o.USER_CODEC_PREFER_TYPE.HEVC===_?h=!0:o.USER_CODEC_PREFER_TYPE.DISABLE===_||o.USER_CODEC_PREFER_TYPE.AV1===_?(h=!1,b().then((function(){s.default.setLocalStorage(c,""+o.USER_CODEC_PREFER_TYPE.RECOMMEND)})).catch((function(){}))):(b().catch((function(){})),o.USER_CODEC_PREFER_TYPE.DISABLE===D&&(h=!1));var R=l.getLocalDecodeErrorInfo("HEVC"),M=(new Date).getTime();R&&(R.reactivateTime||0)>M&&(h=!1);var T="number"==typeof n?n:f;p.includes(T)&&(h=!0),C===a.BROWSER_TYPE.ChromiumEdge&&B<120&&(h=!1),k&&(h=!1)}return h}e.getUserCodecPreferType=m,e.applyCodecStrategy=function(t){return f(t)},e.applyCodecStrategyWithPerf=function(t){var e=performance.now();return{result:f(t),duration:performance.now()-e}}},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.BUFFERING=void 0;var r=i(2);e.BUFFERING={PLAYBACK:{PLAYING:1,SEEKING:2,SWITCHING_QUALITY:3,SWITCHING_SOURCE:4,UPDATING_SOURCE:5,APPENDING_SOURCE:6},TYPE:{UNKNOWN:0,SEEKING:10,SEEKING_INSIDE_BUFFERED:11,SEEKING_OUTSIDE_BUFFERED:12,NETWORK:20,NETWORK_CONNECT_TIMEOUT:21,NETWORK_READING_TIMEOUT:22,NETWORK_DOWNLOAD_TIMEOUT:23,NETWORK_DOWNLOAD_ERROR:24,NETWORK_POOR:25,NETWORK_POOR_UNDER_PLAYBACKRATE:26,NETWORK_DOWNLOAD_TOO_LONG:27,MEDIA:30,MEDIA_ERR_ABORTED:31,MEDIA_ERR_NETWORK:32,MEDIA_ERR_DECODE:33,MEDIA_ERR_SRC_NOT_SUPPORTED:34,MEDIA_DECODING_PERFORMANCE:35,GAP:40,GAP_BEFORE_CURRENT:41,GAP_AFTER_CURRENT:42,PERFORMANCE:50,PERFORMANCE_UNKNOWN:51,INTERNAL:60,INTERNAL_STARTING:61,INTERNAL_ENDING:62,INTERNAL_UNNORMAL_RANGES:63,INTERNAL_VIDEO_RANGES:64,INTERNAL_AUDIO_RANGES:65}};var o=function(){function t(t){this.video=t,this.swichingInfo=null,this.downloadInfo=null}return t.prototype.destroy=function(){this.swichingInfo=null,this.downloadInfo=null,this.video=null},t.prototype.setSwitchingInfo=function(t){if(this.swichingInfo=t,t&&this.video&&this.video.buffered&&this.video.buffered.length>0){var e=this.video.buffered.end(this.video.buffered.length-1),i=this.video.currentTime,n=Math.floor(1e3*(e-i))/1e3;this.swichingInfo.bufferLen=n}},t.prototype.getInfo=function(t){var i={type:-1};if(!t)return i;try{
var r=this.video,o=r.currentTime,a=r.duration,s=r.readyState,l=r.buffered,A=l&&l.length,c=r.seeking,h=r.playbackRate,d=e.BUFFERING.TYPE.UNKNOWN,u=t.playbackState||e.BUFFERING.PLAYBACK.PLAYING;if(!c||u!==e.BUFFERING.PLAYBACK.PLAYING&&u!==e.BUFFERING.PLAYBACK.SWITCHING_QUALITY||(u=e.BUFFERING.PLAYBACK.SEEKING),i={type:d,isSeeking:c,cTime:o,duration:a,rState:s,nRanges:A,vLength:t.videoBufferLength,aLength:t.audioBufferLength,activity:t.networkActivity,vSpeed:Math.round(t.videoSpeed),aSpeed:Math.round(t.audioSpeed),playbackRate:h,vQn:t.videoCurrentQn,aQn:t.audioCurrentQn,retryTimes:t.retryTimes,seekSpace:t.seekSpace},u===e.BUFFERING.PLAYBACK.SEEKING)d=0===A?e.BUFFERING.TYPE.SEEKING_OUTSIDE_BUFFERED:e.BUFFERING.TYPE.SEEKING_INSIDE_BUFFERED;else{var p=this.checkGapInfo(),g=p.nativeBufferLength;if(i.nLength=g,i.cRange=p.start+"-"+p.end,p.hasGap)d=p.type,i.gap=p.gapStart+"-"+p.gapEnd,i.gapLength=p.gapLength;else if(g<1){var f=this.checkLackOfBufferInfo(t);d=f.type,i.vCode=f.videoErrorCode,i.aCode=f.audioErrorCode}else d=s>=3?e.BUFFERING.TYPE.PERFORMANCE:e.BUFFERING.TYPE.PERFORMANCE_UNKNOWN}var m=this.checkNativeErrorInfo();m.type&&(d=m.type,i.nCode=m.code);var y=t.fragmentLoadingInfo;if(y&&y.video){var b=y.video;i.vFragment=b.id+"-"+b.index,t.latestPlayurlErrorHTTPCode&&(i.hCode=t.latestPlayurlErrorHTTPCode)}y&&y.audio&&(b=y.audio,i.aFragment=b.id+"-"+b.index,t.latestPlayurlErrorHTTPCode&&(i.hCode=t.latestPlayurlErrorHTTPCode)),i.type=""+u+(d||"00")}catch(t){throw new Error(t.message)}return this.swichingInfo&&(i=n(n({},i),this.swichingInfo)),this.downloadInfo&&(i=n(n({},i),this.downloadInfo)),i},t.prototype.checkGapInfo=function(){var t=this.video,i=t.currentTime,n=t.buffered,r=n&&n.length,o=0,a=!1,s=0,l=0,A={start:0,end:0},c=0,h=e.BUFFERING.TYPE.UNKNOWN;if(r&&r>1)for(var d=0;d<r;d++){var u=n.start(d),p=n.end(d);u<=i&&p>=i&&(o=Math.floor(1e3*(p-i))/1e3,A={start:u,end:p},h===e.BUFFERING.TYPE.GAP_BEFORE_CURRENT?l=u:s=p),u>i&&u-i<=1&&h!==e.BUFFERING.TYPE.GAP_BEFORE_CURRENT&&(a=!0,h=e.BUFFERING.TYPE.GAP_AFTER_CURRENT,l=l?Math.min(l,u):u,s=A.end),i-p<3&&i-p>=0&&(a=!0,h=e.BUFFERING.TYPE.GAP_BEFORE_CURRENT,s=p,l=A.start)}else 1===r&&(p=n.end(0),A={start:n.start(0),end:p},o=Math.floor(1e3*(p-i))/1e3);return a&&(c=Math.round(1e3*(l-s))/1e3),{type:h,start:A.start,end:A.end,nativeBufferLength:o,hasGap:a,gapStart:s,gapEnd:l,gapLength:c}},t.prototype.checkLackOfBufferInfo=function(t){var i=e.BUFFERING.TYPE.UNKNOWN,n=this.video,r=n.currentTime,o=n.buffered,a=n.duration,s=n.readyState,l=0,A=0;if(o&&o.length)if(a&&a-r<1)i=e.BUFFERING.TYPE.INTERNAL_ENDING;else{var c=this.checkNetworkInfo(t);i=c.type,l=c.videoErrorCode,A=c.audioErrorCode}else i=r<=t.startOffsetTime&&s<=1?e.BUFFERING.TYPE.INTERNAL_STARTING:(t.networkActivity.length&&t.networkActivity.reduce((function(t,e){return t+e})))<100?e.BUFFERING.TYPE.NETWORK_POOR:t.videoBufferLength?t.audioBufferLength?e.BUFFERING.TYPE.INTERNAL_UNNORMAL_RANGES:e.BUFFERING.TYPE.INTERNAL_AUDIO_RANGES:e.BUFFERING.TYPE.INTERNAL_VIDEO_RANGES;return{type:i,videoErrorCode:l,audioErrorCode:A}},t.prototype.checkNetworkInfo=function(t){var i=this,n=e.BUFFERING.TYPE.UNKNOWN,o=this.video.currentTime,a=t.videoBufferLength||0,s=t.audioBufferLength||0,l=t.networkWarningHistory,A=this.getCurrentNetworkWarningInfo({mediaType:r.STRING.VIDEO,currentQn:t.videoCurrentQn,networkWarningHistory:l,warningTime:o+a,bufferLength:a},1),c=this.getCurrentNetworkWarningInfo({mediaType:r.STRING.AUDIO,currentQn:t.audioCurrentQn,networkWarningHistory:l,warningTime:o+s,bufferLength:s},1),h=A.code,d=c.code,u=this.getBufferingTypeByPoorNetwork(h),p=this.getBufferingTypeByPoorNetwork(d);if(u||p)n=u||"00",p&&(n=""+n+p);else if(this.video.playbackRate>1)n=e.BUFFERING.TYPE.NETWORK_POOR_UNDER_PLAYBACKRATE;else{var g=t.fragmentLoadingInfo,f=function(t){if(!t)return!1;var e=t.startDownloadTime,n=t.loaderType,r=t.qn,o=t.index,a=((new Date).getTime()-e)/1e3;return i.downloadInfo||(i.downloadInfo={}),i.downloadInfo[t.mediaType]={downloadTime:a,loaderType:n,qn:r,index:o},a>5};if(g){var m=g.video,y=g.audio,b=f(m),v=f(y);n=b||v?e.BUFFERING.TYPE.NETWORK_DOWNLOAD_TOO_LONG:e.BUFFERING.TYPE.NETWORK}else n=e.BUFFERING.TYPE.NETWORK}return{type:n,videoErrorCode:h,audioErrorCode:d,videoBufferLength:a,audioBufferLength:s}},t.prototype.checkNativeErrorInfo=function(){var t=this.video.error,i=t&&t.code||0,n=e.BUFFERING.TYPE.UNKNOWN;if(t&&i)switch(i){case 1:n=e.BUFFERING.TYPE.MEDIA_ERR_ABORTED;break;case 2:n=e.BUFFERING.TYPE.MEDIA_ERR_NETWORK;break;case 3:n=e.BUFFERING.TYPE.MEDIA_ERR_DECODE;break;case 4:n=e.BUFFERING.TYPE.MEDIA_ERR_SRC_NOT_SUPPORTED;break;default:n=e.BUFFERING.TYPE.MEDIA}return{type:n,code:i}},t.prototype.getCurrentNetworkWarningInfo=function(t,e){if(void 0===e&&(e=1),!t)return{code:0};var i=t.mediaType,n={code:0,type:"",mediaType:t.mediaType},r=t.networkWarningHistory,o=t.warningTime,a=t.bufferLength,s=t.currentQn;if(r.length&&a<e){o+=e;try{var l=r.filter((function(t){return t.mediaType===i&&t.startTime<=o+e&&t.startTime+t.duration>=o&&t.id===s.toString()}));l.length&&(n=l[l.length-1])}catch(t){throw new Error("getCurrentNetworkWarningInfo error, "+JSON.stringify(t))}}return n},t.prototype.getBufferingTypeByPoorNetwork=function(t){var i=e.BUFFERING.TYPE.UNKNOWN;if(t)switch(t){case r.ERROR.CONNECT_FRAGMENT_ERROR_TIMEOUT:i=e.BUFFERING.TYPE.NETWORK_CONNECT_TIMEOUT;break;case r.ERROR.DOWNLOAD_FRAGMENT_ERROR_TIMEOUT:i=e.BUFFERING.TYPE.NETWORK_DOWNLOAD_TIMEOUT;break;case r.ERROR.DOWNLOAD_FRAGMENT_ERROR:i=e.BUFFERING.TYPE.NETWORK_DOWNLOAD_ERROR}return i},t}();e.default=o},function(t,e,i){"use strict";t.exports=function t(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var n,r,o;if(Array.isArray(e)){if((n=e.length)!=i.length)return!1;for(r=n;0!=r--;)if(!t(e[r],i[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(i,o[r]))return!1;for(r=n;0!=r--;){var a=o[r];if(!t(e[a],i[a]))return!1}return!0}return e!=e&&i!=i}},function(t,e,i){!function(t){"use strict";var e={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},i=function(t){var i=t;return e.hasOwnProperty(t)&&(i=e[t]),String.fromCharCode(i)},n=15,r=32,o={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},a={17:2,18:4,21:6,22:8,23:10,19:13,20:15},s={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},l={25:2,26:4,29:6,30:8,31:10,27:13,28:15},A=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],c={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(t){this.time=t},log:function(t,e){var i=this.verboseFilter[t];this.verboseLevel>=i&&console.log(this.time+" ["+t+"] "+e)}},h=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].toString(16));return e},d=function(t,e,i,n,r){this.foreground=t||"white",this.underline=e||!1,this.italics=i||!1,this.background=n||"black",this.flash=r||!1};d.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(t){for(var e=["foreground","underline","italics","background","flash"],i=0;i<e.length;i++){var n=e[i];t.hasOwnProperty(n)&&(this[n]=t[n])}},isDefault:function(){
return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},copy:function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var u=function(t,e,i,n,r,o){this.uchar=t||" ",this.penState=new d(e,i,n,r,o)};u.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(t,e){this.uchar=t,this.penState.copy(e)},setPenState:function(t){this.penState.copy(t)},equals:function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},copy:function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var p=function(){this.chars=[];for(var t=0;t<r;t++)this.chars.push(new u);this.pos=0,this.currPenState=new d};p.prototype={equals:function(t){for(var e=!0,i=0;i<r;i++)if(!this.chars[i].equals(t.chars[i])){e=!1;break}return e},copy:function(t){for(var e=0;e<r;e++)this.chars[e].copy(t.chars[e])},isEmpty:function(){for(var t=!0,e=0;e<r;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},setCursor:function(t){this.pos!==t&&(this.pos=t),this.pos<0?(c.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>r&&(c.log("ERROR","Too large cursor position "+this.pos),this.pos=r)},moveCursor:function(t){var e=this.pos+t;if(t>1)for(var i=this.pos+1;i<e+1;i++)this.chars[i].setPenState(this.currPenState);this.setCursor(e)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(t){t>=144&&this.backSpace();var e=i(t);this.pos>=r?c.log("ERROR","Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},clearFromPos:function(t){var e;for(e=t;e<r;e++)this.chars[e].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var t=[],e=!0,i=0;i<r;i++){var n=this.chars[i].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},setPenStyles:function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)}};var g=function(){this.rows=[];for(var t=0;t<n;t++)this.rows.push(new p);this.currRow=14,this.nrRollUpRows=null,this.reset()};g.prototype={reset:function(){for(var t=0;t<n;t++)this.rows[t].clear();this.currRow=14},equals:function(t){for(var e=!0,i=0;i<n;i++)if(!this.rows[i].equals(t.rows[i])){e=!1;break}return e},copy:function(t){for(var e=0;e<n;e++)this.rows[e].copy(t.rows[e])},isEmpty:function(){for(var t=!0,e=0;e<n;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(t){this.rows[this.currRow].insertChar(t)},setPen:function(t){this.rows[this.currRow].setPenStyles(t)},moveCursor:function(t){this.rows[this.currRow].moveCursor(t)},setCursor:function(t){c.log("INFO","setCursor: "+t),this.rows[this.currRow].setCursor(t)},setPAC:function(t){c.log("INFO","pacData = "+JSON.stringify(t));var e=t.row-1;this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.currRow=e;var i=this.rows[this.currRow];if(null!==t.indent){var n=t.indent,r=Math.max(n-1,0);i.setCursor(t.indent),t.color=i.chars[r].penState.foreground}var o={foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1};this.setPen(o)},setBkgData:function(t){c.log("INFO","bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},setRollUpRows:function(t){this.nrRollUpRows=t},rollUp:function(){if(null!==this.nrRollUpRows){c.log("TEXT",this.getDisplayText());var t=this.currRow+1-this.nrRollUpRows,e=this.rows.splice(t,1)[0];e.clear(),this.rows.splice(this.currRow,0,e),c.log("INFO","Rolling up")}else c.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(t){t=t||!1;for(var e=[],i="",r=-1,o=0;o<n;o++){var a=this.rows[o].getTextString();a&&(r=o+1,t?e.push("Row "+r+': "'+a+'"'):e.push(a.trim()))}return e.length>0&&(i=t?"["+e.join(" | ")+"]":e.join("\n")),i},getTextAndFormat:function(){return this.rows}};var f=function(t,e){this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new g,this.nonDisplayedMemory=new g,this.lastOutputScreen=new g,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};f.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(t){this.outputFilter=t},setPAC:function(t){this.writeScreen.setPAC(t)},setBkgData:function(t){this.writeScreen.setBkgData(t)},setMode:function(t){t!==this.mode&&(this.mode=t,c.log("INFO","MODE="+t),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},insertChars:function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var i=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";c.log("INFO",i+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(c.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){c.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){c.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){c.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(t){c.log("INFO","RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},cc_FON:function(){c.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){c.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){c.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){c.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){c.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){c.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){c.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(c.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,c.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(t){c.log("INFO","TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},cc_MIDROW:function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var i=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][i]}c.log("INFO","MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},outputDataUpdate:function(){var t=c.time;null!==t&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(t,this.displayedMemory),
null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}};var m=function(t,e,i){this.field=t||1,this.outputs=[e,i],this.channels=[new f(1,e),new f(2,i)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};m.prototype={getHandler:function(t){return this.channels[t].getHandler()},setHandler:function(t,e){this.channels[t].setHandler(e)},addData:function(t,e){var i,n,r,o=!1;this.lastTime=t,c.setTime(t);for(var a=0;a<e.length;a+=2)n=127&e[a],r=127&e[a+1],n>=16&&n<=31&&n===this.lastCmdA&&r===this.lastCmdB?(this.lastCmdA=null,this.lastCmdB=null,c.log("DEBUG","Repeated command ("+h([n,r])+") is dropped")):0!==n||0!==r?(c.log("DATA","["+h([e[a],e[a+1]])+"] -> ("+h([n,r])+")"),(i=this.parseCmd(n,r))||(i=this.parseMidrow(n,r)),i||(i=this.parsePAC(n,r)),i||(i=this.parseBackgroundAttributes(n,r)),i||(o=this.parseChars(n,r))&&(this.currChNr&&this.currChNr>=0?this.channels[this.currChNr-1].insertChars(o):c.log("WARNING","No channel found yet. TEXT-MODE?")),i?this.dataCounters.cmd+=2:o?this.dataCounters.char+=2:(this.dataCounters.other+=2,c.log("WARNING","Couldn't parse cleaned data "+h([n,r])+" orig: "+h([e[a],e[a+1]])))):this.dataCounters.padding+=2},parseCmd:function(t,e){var i=null;if(!((20===t||21===t||28===t||29===t)&&32<=e&&e<=47||(23===t||31===t)&&33<=e&&e<=35))return!1;i=20===t||21===t||23===t?1:2;var n=this.channels[i-1];return 20===t||21===t||28===t||29===t?32===e?n.cc_RCL():33===e?n.cc_BS():34===e?n.cc_AOF():35===e?n.cc_AON():36===e?n.cc_DER():37===e?n.cc_RU(2):38===e?n.cc_RU(3):39===e?n.cc_RU(4):40===e?n.cc_FON():41===e?n.cc_RDC():42===e?n.cc_TR():43===e?n.cc_RTD():44===e?n.cc_EDM():45===e?n.cc_CR():46===e?n.cc_ENM():47===e&&n.cc_EOC():n.cc_TO(e-32),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=i,!0},parseMidrow:function(t,e){var i=null;if((17===t||25===t)&&32<=e&&e<=47){if((i=17===t?1:2)!==this.currChNr)return c.log("ERROR","Mismatch channel in midrow parsing"),!1;var n=this.channels[i-1];return n.insertChars([32]),n.cc_MIDROW(e),c.log("DEBUG","MIDROW ("+h([t,e])+")"),this.lastCmdA=t,this.lastCmdB=e,!0}return!1},parsePAC:function(t,e){var i,n=null;if(!((17<=t&&t<=23||25<=t&&t<=31)&&64<=e&&e<=127||(16===t||24===t)&&64<=e&&e<=95))return!1;i=t<=23?1:2,n=64<=e&&e<=95?1===i?o[t]:s[t]:1===i?a[t]:l[t];var r=this.interpretPAC(n,e);return this.channels[i-1].setPAC(r),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=i,!0},interpretPAC:function(t,e){var i=e,n={color:null,italics:!1,indent:null,underline:!1,row:t};return i=e>95?e-96:e-64,n.underline=!(1&~i),i<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(i/2)]:i<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((i-16)/2),n},parseChars:function(t,e){var n=null,r=null,o=null;if(t>=25?(n=2,o=t-8):(n=1,o=t),17<=o&&o<=19){var a=e;a=17===o?e+80:18===o?e+112:e+144,c.log("INFO","Special char '"+i(a)+"' in channel "+n),r=[a],this.lastCmdA=t,this.lastCmdB=e}else 32<=t&&t<=127&&(r=0===e?[t]:[t,e],this.lastCmdA=null,this.lastCmdB=null);if(r){var s=h(r);c.log("DEBUG","Char codes =  "+s.join(","))}return r},parseBackgroundAttributes:function(t,e){var i,n,r;return((16===t||24===t)&&32<=e&&e<=47||(23===t||31===t)&&45<=e&&e<=47)&&(i={},16===t||24===t?(n=Math.floor((e-32)/2),i.background=A[n],e%2==1&&(i.background=i.background+"_semi")):45===e?i.background="transparent":(i.foreground="black",47===e&&(i.underline=!0)),r=t<24?1:2,this.channels[r-1].setBkgData(i),this.lastCmdA=t,this.lastCmdB=e,!0)},reset:function(){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(t){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].cueSplitAtTime(t)}},t.logger=c,t.PenState=d,t.CaptionScreen=g,t.Cea608Parser=m,t.findCea608Nalus=function(t,e,i){for(var n=0,r=e,o=[],a=function(t,e,i,n){if(4!==t||e<8)return null;var r=i.getUint8(n),o=i.getUint16(n+1),a=i.getUint32(n+3),s=i.getUint8(n+7);return 181==r&&49==o&&1195456820==a&&3==s};r<e+i;){if(n=t.getUint32(r),6==(31&t.getUint8(r+4)))for(var s=r+5,l=-1;s<r+4+n-1;){l=0;for(var A=255;255===A;)l+=A=t.getUint8(s),s++;var c=0;for(A=255;255===A;)c+=A=t.getUint8(s),s++;a(l,c,t,s)&&o.push([s,c]),s+=c}r+=n+4}return o},t.extractCea608DataFromRange=function(t,e){var i=e[0],n=[[],[]];i+=8;var r=31&t.getUint8(i);i+=2;for(var o=0;o<r;o++){var a=t.getUint8(i),s=4&a,l=3&a;i++;var A=t.getUint8(i);i++;var c=t.getUint8(i);i++,s&&(127&A)+(127&c)!=0&&(0===l?(n[0].push(A),n[0].push(c)):1===l&&(n[1].push(A),n[1].push(c)))}return n}}(e)},function(t,e,i){var n=i(24).default,r=i(7).default;window.dashjs=n,t.exports=r},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONFIG=void 0;var n={version:"1.15.52",gitHash:"16c54603",build:359,release:"2026-06-09T03:12:27.663Z",mode:"production"};e.CONFIG=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.state={runningInterval:1e3,maxCacheLength:200,fragmentLoadingProgressInfo:{},networkActivityLoadedList:[],networkActivityHistory:[],networkActivityLatestTraceTime:0},this.initalize()}return t.prototype.onFragmentLoadingProgess=function(t){var e=t.request,i=0,n=Math.floor(performance.now()),r=e.quality+"-"+e.index+"-"+e.ts,o=!1;if(this.state.fragmentLoadingProgressInfo[e.mediaType]&&this.state.fragmentLoadingProgressInfo[e.mediaType][r]){var a=this.state.fragmentLoadingProgressInfo[e.mediaType][r],s=!1;for(var l in a)if("bytesLoaded"!==l&&a[l]!==e[l])s=!0;else if(a.bytesLoaded===e.bytesLoaded)return;i=s?e.bytesLoaded:e.bytesLoaded-a.bytesLoaded}else this.state.fragmentLoadingProgressInfo[e.mediaType]||(this.state.fragmentLoadingProgressInfo[e.mediaType]={}),i=e.bytesLoaded;e.bytesLoaded===e.bytesTotal&&(o=!0),o?delete this.state.fragmentLoadingProgressInfo[e.mediaType][r]:this.state.fragmentLoadingProgressInfo[e.mediaType][r]={bytesLoaded:e.bytesLoaded,bytesTotal:e.bytesTotal,quality:e.quality,index:e.index,mediaType:e.mediaType,range:e.range},this.state.networkActivityLoadedList.length>=this.state.maxCacheLength&&this.state.networkActivityLoadedList.splice(0,1),i&&this.state.networkActivityLoadedList.push({time:n,loaded:Math.max(i,0)})},t.prototype.getNetworkActivity=function(){return this.state.networkActivityHistory.length?this.state.networkActivityHistory[this.state.networkActivityHistory.length-1]:0},t.prototype.getNetworkActivityHistory=function(t){return void 0===t&&(t=0),t?this.state.networkActivityHistory.slice(this.state.networkActivityHistory.length-t):this.state.networkActivityHistory},t.prototype.destroy=function(){clearTimeout(this.state&&this.state.networkActivityTimer),this.state.networkActivityLoadedList.length=0,this.state.networkActivityHistory.length=0,this.state=null},t.prototype.initalize=function(){this.runNewWorkActivityTimer()},t.prototype.runNewWorkActivityTimer=function(){var t=this;this.runNetworkActivity(),clearTimeout(this.state.networkActivityTimer),this.state.networkActivityTimer=window.setTimeout((function(){t.runNewWorkActivityTimer()}),this.state.runningInterval)},t.prototype.runNetworkActivity=function(){var t=this.state.runningInterval,e=Math.floor(performance.now()),i=this.state.networkActivityLatestTraceTime,n=this.state.networkActivityLoadedList.filter((function(n){return e-n.time<t&&e>i}));this.state.networkActivityLatestTraceTime=e;var r=0;n&&n.length&&n.forEach((function(t){return r+=t.loaded})),
this.state.networkActivityHistory.length>=this.state.maxCacheLength&&this.state.networkActivityHistory.splice(0,1),this.state.networkActivityHistory.push(Math.max(r,0))},t}();e.default=n},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=i(2),o=i(14),a=n(i(3)),s="hevcPerf",l=function(){function t(){this.bufferingHistory=[],this.state={enableHEVC:!1}}return t.prototype.destroy=function(){this.state=null,this.bufferingHistory.length=0},t.prototype.setHEVCEnableFlag=function(t){return void 0===t&&(t=!1),this.state.enableHEVC=t,this},t.prototype.push=function(t){this.bufferingHistory.length>=this.MAX_HISTORY_LENGTH&&this.bufferingHistory.shift(),t.timestamp=this.getNow(),this.bufferingHistory.push(t),this.optimize()},t.prototype.setOnOptimizingCallback=function(t){this.state.onOptimizingCallback=t},t.prototype.onOptimzing=function(t,e){"function"==typeof this.state.onOptimizingCallback&&this.state.onOptimizingCallback(t,e)},t.prototype.optimize=function(){var t=this.getNow(),e=this.bufferingHistory.filter((function(e){return t-e.timestamp<=2e4}));if(this.state.enableHEVC){var i=""+o.BUFFERING.PLAYBACK.PLAYING+o.BUFFERING.TYPE.PERFORMANCE,n=e.filter((function(t){return i===t.type}));n&&n.length>=10&&(this.state.enableHEVC=!1,this.disableHEVCFlag())}},t.prototype.disableHEVCFlag=function(){1!==parseInt(a.default.getLocalStorage("bilibili_player_codec_prefer_type"),10)&&(a.default.setLocalStorage("bilibili_player_codec_prefer_strategy","2"),this.onOptimzing(r.EVENTS.BUFFERING_OPTIMIZATION,{type:s}))},t.prototype.getNow=function(){var t;return(null===(t=window.performance)||void 0===t?void 0:t.now())||Date.now()},t}();e.default=l},function(t,e,i){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.video=t,this.frameCount=0,this.totalFrameCnt=0,this.fpsArr=[],this.lows=[],this.lastFPSTime=0,this.battery=null,this.chargingState=1,this.rafId=-1,this.hiddenCnt=0}return t.prototype.getInfo=function(t,e){void 0===e&&(e=!1);var i=+("visible"===document.visibilityState),r=this.chargingState,o=navigator.hardwareConcurrency||0,a=e?1:5,s=this.getLastXMinutesFPS(a);return n({viState:i,fps:this.getFPS(),oneLowFps:this.get1PercentLowFPS(),stdDev:this.getStandardDeviation(),charging:r,coreNum:o,totalRFrames:this.totalFrameCnt,fpsArr:s,hiddenCnt:this.hiddenCnt},t)},t.prototype.destroy=function(){this.fpsArr.length=0,this.lows.length=0,this.removePageEvent(),window.cancelAnimationFrame(this.rafId),this.battery&&(this.battery.removeEventListener("chargingchange",this.onChargingStateChange),this.battery=null),this.video.removeEventListener("canplay",this.start),this.video=null},t.prototype.start=function(){this.pageVisible()&&-1===this.rafId&&(this.video.removeEventListener("canplay",this.start),this.runFPSDetect()),this.addPageEvent(),this.runBatteryStateDetect()},t.prototype.stopFPSDetect=function(){window.cancelAnimationFrame(this.rafId),this.rafId=-1,this.frameCount=1,this.lastFPSTime=0},t.prototype.onVisibilityChange=function(){this.pageVisible()?-1===this.rafId&&this.runFPSDetect():(this.hiddenCnt++,this.stopFPSDetect())},t.prototype.addPageEvent=function(){this.onVisibilityChange=this.onVisibilityChange.bind(this),document.addEventListener("visibilitychange",this.onVisibilityChange)},t.prototype.removePageEvent=function(){document.removeEventListener("visibilitychange",this.onVisibilityChange)},t.prototype.pageVisible=function(){return"visible"===document.visibilityState},t.prototype.getFPS=function(){return this.fpsArr.length?Math.floor(this.fpsArr.reduce((function(t,e){return t+e}),0)/this.fpsArr.length):0},t.prototype.get1PercentLowFPS=function(){if(!this.lows.length||this.lows.length<1500)return 0;var t=this.lows.slice().sort((function(t,e){return t-e})),e=Math.ceil(.01*t.length),i=t.slice(1,e);return Math.floor(i.reduce((function(t,e){return t+e}),0)/i.length)||1},t.prototype.getLastXMinutesFPS=function(t){if(t<=0)return[];var e=60*t,i=this.fpsArr.length-e,n=Math.max(i,0);return this.fpsArr.slice(n)},t.prototype.getStandardDeviation=function(){var t=this.fpsArr.slice(),e=t.length;if(!e)return 0;var i=t.reduce((function(t,e){return t+e}),0)/e,n=t.reduce((function(t,e){return t+Math.pow(e-i,2)}),0)/e;return+Math.sqrt(n).toFixed(1)},t.prototype.getTime=function(){return performance.now()||(new Date).getTime()},t.prototype.runFPSDetect=function(){var t=this;"function"!=typeof window.requestAnimationFrame&&(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.oRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},window.cancelAnimationFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){clearTimeout(t)});var e=0,i=function(n){t.frameCount++,t.totalFrameCnt++;var r=t.getTime();t.lastFPSTime||(t.lastFPSTime=r);var o=r-t.lastFPSTime,a=n-e;if(a>0){var s=1e3/a;t.lows.length>=43200&&t.lows.shift(),t.lows.push(s)}e=n,o>=1e3&&(s=t.frameCount/o*1e3,t.frameCount=1,t.lastFPSTime=r,t.fpsArr.length>=7200&&t.fpsArr.shift(),t.fpsArr.push(Math.floor(s)||1)),t.rafId=requestAnimationFrame(i)};this.rafId=requestAnimationFrame(i)},t.prototype.onChargingStateChange=function(){this.chargingState=+this.battery.charging},t.prototype.runBatteryStateDetect=function(){var t=this;"function"==typeof navigator.getBattery&&(this.onChargingStateChange=this.onChargingStateChange.bind(this),navigator.getBattery().then((function(e){t.battery=e,t.chargingState=+e.charging,e.addEventListener("chargingchange",t.onChargingStateChange)})))},t}();e.default=r},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(7)),o=i(2),a=function(){function t(t){this.player=t,this.ncGrayPercentage=Math.random(),this.p2pGrayPercentage=Math.random(),this.ncDisable=this.getDisableValue("nc_disable"),this.p2pDisable=this.getDisableValue("rp_disable")}return Object.defineProperty(t.prototype,"isUseNC",{get:function(){return this.ncGrayPercentage>=this.ncDisable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUseP2P",{get:function(){return this.p2pGrayPercentage>=this.p2pDisable},enumerable:!1,configurable:!0}),t.prototype.getDisableValue=function(t){var e=0,i=r.default.getFawkesConfigValue(o.STRING.DASH_CONFIG,t);return""!==i&&(e=Number(i)),e},t.prototype.destroy=function(){this.player=null},t}();e.default=a},function(t,e,i){"use strict";i.r(e),i.d(e,"MediaPlayer",(function(){return n.a})),i.d(e,"Protection",(function(){return ot}));var n=i(11),r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.findCencContentProtection=function(t){for(var e=null,i=0;i<t.length;++i){var n=t[i];"urn:mpeg:dash:mp4protection:2011"===n.schemeIdUri.toLowerCase()&&"cenc"===n.value.toLowerCase()&&(e=n)}return e},t.getPSSHData=function(t){var e=8,i=new DataView(t),n=i.getUint8(e);return e+=20,n>0&&(e+=4+16*i.getUint32(e)),e+=4,t.slice(e)},t.getPSSHForKeySystem=function(e,i){var n=t.parsePSSHList(i);return n.hasOwnProperty(e.uuid.toLowerCase())?n[e.uuid.toLowerCase()]:null},t.parseInitDataFromContentProtection=function(t,e){return"pssh"in t?e.decodeArray(t.pssh.__text).buffer:null},t.parsePSSHList=function(t){if(null===t)return[];for(var e=new DataView(t.buffer||t),i={},n=0;;){var r,o,a=void 0,s=n;if(n>=e.buffer.byteLength)break;if(r=n+e.getUint32(n),n+=4,1886614376===e.getUint32(n))if(n+=4,0===(o=e.getUint8(n))||1===o){n++,n+=3,a="";var l=void 0,A=void 0;for(l=0;l<4;l++)a+=1===(A=e.getUint8(n+l).toString(16)).length?"0"+A:A;for(n+=4,a+="-",l=0;l<2;l++)a+=1===(A=e.getUint8(n+l).toString(16)).length?"0"+A:A;for(n+=2,
a+="-",l=0;l<2;l++)a+=1===(A=e.getUint8(n+l).toString(16)).length?"0"+A:A;for(n+=2,a+="-",l=0;l<2;l++)a+=1===(A=e.getUint8(n+l).toString(16)).length?"0"+A:A;for(n+=2,a+="-",l=0;l<6;l++)a+=1===(A=e.getUint8(n+l).toString(16)).length?"0"+A:A;n+=6,a=a.toLowerCase(),e.getUint32(n),n+=4,i[a]=e.buffer.slice(s,r),n=r}else n=r;else n=r}return i},t}(),o=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.contentType=e,this.robustness=i},a=function t(e,i,n,r,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initDataTypes=["cenc"],e&&e.length&&(this.audioCapabilities=e),i&&i.length&&(this.videoCapabilities=i),this.distinctiveIdentifier=n,this.persistentState=r,this.sessionTypes=o},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function l(t){var e,i=(t=t||{}).protectionKeyController,n=t.protectionModel,l=t.eventBus,A=t.events,c=t.log,h=t.BASE64,d=t.constants,u=t.ignoreEmeEncryptedEvent,p=void 0,g=void 0,f=void 0,m=void 0,y=void 0,b=void 0;function v(t,e){var o=r.getPSSHForKeySystem(b,t),a=C(b);if(o){for(var s=n.getAllInitData(),h=0;h<s.length;h++)if(i.initDataEquals(o,s[h]))return void c("DRM: Ignoring initData because we have already seen it!");try{n.createKeySession(o,a,w(b),e)}catch(t){l.trigger(A.KEY_SESSION_CREATED,{data:null,error:"Error creating key session! "+t.message})}}else t?n.createKeySession(t,a,w(b),e):l.trigger(A.KEY_SESSION_CREATED,{data:null,error:"Selected key system is "+b.systemString+".  needkey/encrypted event contains no initData corresponding to that key system!"})}function E(t,e){n.loadKeySession(t,e,w(b))}function I(t){t?(n.setMediaElement(t),l.on(A.NEED_KEY,D,this)):null===t&&(n.setMediaElement(t),l.off(A.NEED_KEY,D,this))}function C(t){var e=null;if(t){var i=t.systemString;f&&(e=i in f?f[i]:null)}return e}function B(t){var e=C(t),i=[],n=[],r=e&&e.audioRobustness&&e.audioRobustness.length>0?e.audioRobustness:y,s=e&&e.videoRobustness&&e.videoRobustness.length>0?e.videoRobustness:y,l=w(t);return g.forEach((function(t){t.type===d.AUDIO?i.push(new o(t.codec,r)):t.type===d.VIDEO&&n.push(new o(t.codec,s))})),new a(i,n,"optional","temporary"===l?"optional":"required",[l])}function w(t){var e=C(t);return e&&e.sessionType?e.sessionType:m}function x(t,e){var r=this,o=[];t=t.sort((function(e,i){return(f&&f[e.ks.systemString]&&f[e.ks.systemString].priority>=0?f[e.ks.systemString].priority:t.length)-(f&&f[i.ks.systemString]&&f[i.ks.systemString].priority>=0?f[i.ks.systemString].priority:t.length)}));var a=void 0;if(b)for(a=0;a<t.length&&(b!==t[a].ks||"break"!=(o.push({ks:t[a].ks,configs:[B(b)]}),l.on(A.KEY_SYSTEM_ACCESS_COMPLETE,(function i(n){l.off(A.KEY_SYSTEM_ACCESS_COMPLETE,i,r),n.error?e||l.trigger(A.KEY_SYSTEM_SELECTED,{error:"DRM: KeySystem Access Denied! -- "+n.error}):(c("DRM: KeySystem Access Granted"),l.trigger(A.KEY_SYSTEM_SELECTED,{data:n.data}),t[a].sessionId?E(t[a].sessionId,t[a].initData):t[a].initData&&v(t[a].initData,t[a].cdmData))}),r),n.requestKeySystemAccess(o),"break"));a++);else if(void 0===b){b=null,p.push(t);for(var s=0;s<t.length;s++)o.push({ks:t[s].ks,configs:[B(t[s].ks)]});var d=void 0,u=function t(i){l.off(A.KEY_SYSTEM_ACCESS_COMPLETE,t,r),i.error?(b=void 0,l.off(A.INTERNAL_KEY_SYSTEM_SELECTED,g,r),e||l.trigger(A.KEY_SYSTEM_SELECTED,{data:null,error:"DRM: KeySystem Access Denied! -- "+i.error})):(d=i.data,c("DRM: KeySystem Access Granted ("+d.keySystem.systemString+")!  Selecting key system..."),n.selectKeySystem(d))},g=function t(o){if(l.off(A.INTERNAL_KEY_SYSTEM_SELECTED,t,r),l.off(A.KEY_SYSTEM_ACCESS_COMPLETE,u,r),o.error)b=void 0,e||l.trigger(A.KEY_SYSTEM_SELECTED,{data:null,error:"DRM: Error selecting key system! -- "+o.error});else{b=n.getKeySystem(),l.trigger(A.KEY_SYSTEM_SELECTED,{data:d});var s=C(b);s&&s.serverCertificate&&s.serverCertificate.length>0&&n.setServerCertificate(h.decodeArray(s.serverCertificate).buffer);for(var c=0;c<p.length;c++)for(a=0;a<p[c].length;a++)if(b===p[c][a].ks){if(i.isClearKey(b)&&s&&s.hasOwnProperty("clearkeys")){var g={kids:Object.keys(s.clearkeys)};p[c][a].initData=(new TextEncoder).encode(JSON.stringify(g))}p[c][a].sessionId?E(p[c][a].sessionId,p[c][a].initData):null!==p[c][a].initData&&v(p[c][a].initData,p[c][a].cdmData);break}}};l.on(A.INTERNAL_KEY_SYSTEM_SELECTED,g,r),l.on(A.KEY_SYSTEM_ACCESS_COMPLETE,u,r),n.requestKeySystemAccess(o)}else p.push(t)}function Q(t,e){l.trigger(A.LICENSE_REQUEST_COMPLETE,{data:t,error:e})}function S(t){t.error?l.trigger(A.KEY_STATUSES_CHANGED,{data:null,error:"DRM: KeyStatusChange error! -- "+t.error}):c("DRM: key status = "+t.status)}function k(t){if(c("DRM: onKeyMessage"),t.error)c(t.error);else{var e=t.data;l.trigger(A.KEY_MESSAGE,{data:e});var o=e.messageType?e.messageType:"license-request",a=e.message,h=e.sessionToken,d=C(b),u=b?b.systemString:null,p=i.getLicenseServer(b,d,o),g={sessionToken:h,messageType:o};if(a&&0!==a.byteLength){if(!p)return c("DRM: License server request not required for this message (type = "+t.data.messageType+").  Session ID = "+h.getSessionID()),void Q(g);if(i.isClearKey(b)){var f=i.processClearKeyLicenseRequest(b,d,a);if(f)return c("DRM: ClearKey license request handled by application!"),Q(g),void n.updateKeySession(h,f)}var m=new XMLHttpRequest,y=null;if(d&&d.serverURL){var v=d.serverURL;"string"==typeof v&&""!==v?y=v:"object"===(void 0===v?"undefined":s(v))&&v.hasOwnProperty(o)&&(y=v[o])}else d&&d.laURL&&""!==d.laURL?y=d.laURL:(y=b.getLicenseServerURLFromInitData(r.getPSSHData(h.initData)))||(y=t.data.laURL);if(y=p.getServerURLFromMessage(y,a,o)){var E=function(t,e,i,n){var r=t.response?p.getErrorResponse(t.response,i,n):"NONE";Q(e,"DRM: "+i+' update, XHR complete. status is "'+t.statusText+'" ('+t.status+"), readyState is "+t.readyState+".  Response is "+r)};m.open(p.getHTTPMethod(o),y,!0),m.responseType=p.getResponseType(u,o),m.onload=function(){if(200==this.status){var t=p.getLicenseMessage(this.response,u,o);null!==t?(Q(g),n.updateKeySession(h,t)):E(this,g,u,o)}else E(this,g,u,o)},m.onabort=function(){Q(g,"DRM: "+u+' update, XHR aborted. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)},m.onerror=function(){Q(g,"DRM: "+u+' update, XHR error. status is "'+this.statusText+'" ('+this.status+"), readyState is "+this.readyState)};var I=function(t){if(t)for(var e in t)"authorization"===e.toLowerCase()&&(m.withCredentials=!0),m.setRequestHeader(e,t[e])};d&&I(d.httpRequestHeaders),I(b.getRequestHeadersFromMessage(a)),d&&"boolean"==typeof d.withCredentials&&(m.withCredentials=d.withCredentials),m.send(b.getLicenseRequestFromMessage(a))}else Q(g,"DRM: No license server URL specified!")}else Q(g,"DRM: Empty key message from CDM")}}function D(t){if(!u){if(c("DRM: onNeedKey"),"cenc"!==t.key.initDataType)return void c("DRM:  Only 'cenc' initData is supported!  Ignoring initData of type: "+t.key.initDataType);var e=t.key.initData;if(ArrayBuffer.isView(e)&&(e=e.buffer),b){var o=r.getPSSHForKeySystem(b,e);if(o)for(var a=n.getAllInitData(),s=0;s<a.length;s++)if(i.initDataEquals(o,a[s]))return void c("DRM: Ignoring initData because we have already seen it!")}c("DRM: initData:",String.fromCharCode.apply(null,new Uint8Array(e)));var l=i.getSupportedKeySystems(e,f);if(0===l.length)return void c("DRM: Received needkey event with initData, but we don't support any of the key systems!");x(l,!1)}}return e={initializeForMedia:function(t){if(!t)throw new Error("mediaInfo can not be null or undefined");!function(){if(!(l&&l.hasOwnProperty("on")&&i&&i.hasOwnProperty("getSupportedKeySystemsFromContentProtection")))throw new Error("Missing config parameter(s)")}(),l.on(A.INTERNAL_KEY_MESSAGE,k,this),l.on(A.INTERNAL_KEY_STATUS_CHANGED,S,this),g.push(t);var e=i.getSupportedKeySystemsFromContentProtection(t.contentProtection);e&&e.length>0&&x(e,!0)},createKeySession:v,loadKeySession:E,removeKeySession:function(t){n.removeKeySession(t)},closeKeySession:function(t){n.closeKeySession(t)},
setServerCertificate:function(t){n.setServerCertificate(t)},setMediaElement:I,setSessionType:function(t){m=t},setRobustnessLevel:function(t){y=t},setProtectionData:function(t){f=t,i.setProtectionData(t)},getSupportedKeySystemsFromContentProtection:function(t){return i.getSupportedKeySystemsFromContentProtection(t)},getKeySystems:function(){return i?i.getKeySystems():[]},reset:function(){l.off(A.INTERNAL_KEY_MESSAGE,k,this),l.off(A.INTERNAL_KEY_STATUS_CHANGED,S,this),I(null),b=void 0,n&&(n.reset(),n=null),g=[]}},p=[],g=[],m="temporary",y="",e}l.__dashjs_factory_name="ProtectionController";var A=dashjs.FactoryMaker.getClassFactory(l),c=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.keyID=e,this.key=i},h=function(){function t(e,i){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i&&"persistent"!==i&&"temporary"!==i)throw new Error("Invalid ClearKey key set type!  Must be one of 'persistent' or 'temporary'");this.keyPairs=e,this.type=i}return t.prototype.toJWK=function(){var t=void 0,e=this.keyPairs.length,i={keys:[]};for(t=0;t<e;t++){var n={kty:"oct",alg:"A128KW",kid:this.keyPairs[t].keyID,k:this.keyPairs[t].key};i.keys.push(n)}this.type&&(i.type=this.type);var r=JSON.stringify(i),o=r.length,a=new ArrayBuffer(o),s=new Uint8Array(a);for(t=0;t<o;t++)s[t]=r.charCodeAt(t);return a},t}(),d=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.init()}return t.prototype.init=function(){this.CLEARKEY_KEYSTEM_STRING="org.w3.clearkey",this.WIDEVINE_KEYSTEM_STRING="com.widevine.alpha",this.PLAYREADY_KEYSTEM_STRING="com.microsoft.playready"},t}()),u="e2719d58-a985-b3c9-781a-b030af78d30e",p=d.CLEARKEY_KEYSTEM_STRING,g="urn:uuid:"+u;function f(t){var e=(t=t||{}).BASE64;return{uuid:u,schemeIdURI:g,systemString:p,getInitData:function(t){return r.parseInitDataFromContentProtection(t,e)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(t){return new Uint8Array(t)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getSessionId:function(){return null},getClearKeysFromProtectionData:function(t,e){var i=null;if(t){for(var n=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e))),r=[],o=0;o<n.kids.length;o++){var a=n.kids[o],s=t.clearkeys&&t.clearkeys.hasOwnProperty(a)?t.clearkeys[a]:null;if(!s)throw new Error("DRM: ClearKey keyID ("+a+") is not known!");r.push(new c(a,s))}i=new h(r)}return i}}}f.__dashjs_factory_name="KeySystemClearKey";var m=dashjs.FactoryMaker.getSingletonFactory(f),y="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",b=d.CLEARKEY_KEYSTEM_STRING,v="urn:uuid:"+y;function E(t){var e=t.BASE64,i=t.log;return{uuid:y,schemeIdURI:v,systemString:b,getInitData:function(t){return r.parseInitDataFromContentProtection(t,e)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(t){return new Uint8Array(t)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getSessionId:function(){return null},getClearKeysFromProtectionData:function(t,e){var n=null;if(t){for(var r=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e))),o=[],a=0;a<r.kids.length;a++){var s=r.kids[a],l=t.clearkeys&&t.clearkeys.hasOwnProperty(s)?t.clearkeys[s]:null;if(!l)throw new Error("DRM: ClearKey keyID ("+s+") is not known!");o.push(new c(s,l))}n=new h(o),i("Warning: ClearKey schemeIdURI is using W3C Common PSSH systemID (1077efec-c0b2-4d02-ace3-3c1e52e2fb4b) in Content Protection. See DASH-IF IOP v4.1 section 7.6.2.4")}return n}}}E.__dashjs_factory_name="KeySystemW3CClearKey";var I=dashjs.FactoryMaker.getSingletonFactory(E),C="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",B=d.WIDEVINE_KEYSTEM_STRING,w="urn:uuid:"+C;function x(t){var e=null,i=(t=t||{}).BASE64;return{uuid:C,schemeIdURI:w,systemString:B,init:function(t){t&&(e=t)},getInitData:function(t){return r.parseInitDataFromContentProtection(t,i)},getRequestHeadersFromMessage:function(){return null},getLicenseRequestFromMessage:function(t){return new Uint8Array(t)},getLicenseServerURLFromInitData:function(){return null},getCDMData:function(){return null},getSessionId:function(t){return e&&e.sessionId?e.sessionId:t&&t.sessionId?t.sessionId:null}}}x.__dashjs_factory_name="KeySystemWidevine";var Q=dashjs.FactoryMaker.getSingletonFactory(x),S="9a04f079-9840-4286-ab92-e65be0885f95",k=d.PLAYREADY_KEYSTEM_STRING,D="urn:uuid:"+S,_=void 0;function R(t){var e="utf16",i=(t=t||{}).BASE64;function n(){if(!i||!i.hasOwnProperty("decodeArray")||!i.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}return{uuid:S,schemeIdURI:D,systemString:k,getInitData:function(t){var e,o,a,s=new Uint8Array([112,115,115,104,0,0,0,0]),l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),A=0,c=null,h=void 0,d=void 0;if(n(),"pssh"in t)return r.parseInitDataFromContentProtection(t,i);if("pro"in t)c=i.decodeArray(t.pro.__text);else{if(!("prheader"in t))return null;c=i.decodeArray(t.prheader.__text)}return e=c.length,o=4+s.length+l.length+4+e,a=new ArrayBuffer(o),h=new Uint8Array(a),(d=new DataView(a)).setUint32(A,o),A+=4,h.set(s,A),A+=s.length,h.set(l,A),A+=l.length,d.setUint32(A,e),A+=4,h.set(c,A),A+=e,h.buffer},getRequestHeadersFromMessage:function(t){var i,n=void 0,r={},o=new DOMParser,a="utf16"===e?new Uint16Array(t):new Uint8Array(t);i=String.fromCharCode.apply(null,a);for(var s=(n=o.parseFromString(i,"application/xml")).getElementsByTagName("name"),l=n.getElementsByTagName("value"),A=0;A<s.length;A++)r[s[A].childNodes[0].nodeValue]=l[A].childNodes[0].nodeValue;return r.hasOwnProperty("Content")&&(r["Content-Type"]=r.Content,delete r.Content),r.hasOwnProperty("Content-Type")||(r["Content-Type"]="text/xml; charset="+e),r},getLicenseRequestFromMessage:function(t){var r=null,o=new DOMParser,a="utf16"===e?new Uint16Array(t):new Uint8Array(t);n();var s=String.fromCharCode.apply(null,a),l=o.parseFromString(s,"application/xml");if(l.getElementsByTagName("Challenge")[0]){var A=l.getElementsByTagName("Challenge")[0].childNodes[0].nodeValue;A&&(r=i.decode(A))}else if(l.getElementsByTagName("parsererror").length)return t;return r},getLicenseServerURLFromInitData:function(t){if(t)for(var e=new DataView(t),i=e.getUint16(4,!0),n=6,r=new DOMParser,o=0;o<i;o++){var a=e.getUint16(n,!0);n+=2;var s=e.getUint16(n,!0);if(n+=2,1===a){var l=t.slice(n,n+s),A=String.fromCharCode.apply(null,new Uint16Array(l)),c=r.parseFromString(A,"application/xml");if(c.getElementsByTagName("LA_URL")[0]){var h=c.getElementsByTagName("LA_URL")[0].childNodes[0].nodeValue;if(h)return h}if(c.getElementsByTagName("LUI_URL")[0]){var d=c.getElementsByTagName("LUI_URL")[0].childNodes[0].nodeValue;if(d)return d}}else n+=s}return null},getCDMData:function(){var t=void 0,e=void 0,r=void 0,o=void 0;if(n(),_&&_.cdmData){for(t=[],o=0;o<_.cdmData.length;++o)t.push(_.cdmData.charCodeAt(o)),t.push(0);for(t=String.fromCharCode.apply(null,t),t=i.encode(t),e='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="false"><CustomData encoding="base64encoded">%CUSTOMDATA%</CustomData></LicenseAcquisition></PlayReadyCDMData>'.replace("%CUSTOMDATA%",t),r=[],o=0;o<e.length;++o)r.push(e.charCodeAt(o)),r.push(0);return new Uint8Array(r).buffer}return null},getSessionId:function(){return null},setPlayReadyMessageFormat:function(t){if("utf8"!==t&&"utf16"!==t)throw new Error("Illegal PlayReady message format! -- "+t);e=t},init:function(t){t&&(_=t)}}}R.__dashjs_factory_name="KeySystemPlayReady";var M=dashjs.FactoryMaker.getSingletonFactory(R);function T(t){var e=(t=t||{}).BASE64,i={};return i[d.WIDEVINE_KEYSTEM_STRING]={responseType:"json",getLicenseMessage:function(t){return e.decodeArray(t.license)},getErrorResponse:function(t){return t}},i[d.PLAYREADY_KEYSTEM_STRING]={responseType:"arraybuffer",getLicenseMessage:function(t){return t},getErrorResponse:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}},{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){
return"POST"},getResponseType:function(t){return i[t].responseType},getLicenseMessage:function(t,n){return function(){if(!e||!e.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}(),i[n].getLicenseMessage(t)},getErrorResponse:function(t,e){return i[e].getErrorResponse(t)}}}T.__dashjs_factory_name="DRMToday";var F=dashjs.FactoryMaker.getSingletonFactory(T);function L(){var t="http://schemas.xmlsoap.org/soap/envelope/";function e(t){var e=String.fromCharCode.apply(null,new Uint8Array(t));return decodeURIComponent(escape(e))}function i(i){if(window.DOMParser){var n=e(i),r=(new window.DOMParser).parseFromString(n,"text/xml"),o=r?r.getElementsByTagNameNS(t,"Envelope")[0]:null,a=o?o.getElementsByTagNameNS(t,"Body")[0]:null;if(a&&a.getElementsByTagNameNS(t,"Fault")[0])return null}return i}function n(i){var n="",r="",o="",a=-1,s=-1;if(window.DOMParser){var l=e(i),A=(new window.DOMParser).parseFromString(l,"text/xml"),c=A?A.getElementsByTagNameNS(t,"Envelope")[0]:null,h=c?c.getElementsByTagNameNS(t,"Body")[0]:null,d=h?h.getElementsByTagNameNS(t,"Fault")[0]:null,u=d?d.getElementsByTagName("detail")[0]:null,p=u?u.getElementsByTagName("Exception")[0]:null,g=null;if(null===d)return l;n=(g=d.getElementsByTagName("faultstring")[0].firstChild)?g.nodeValue:null,null!==p&&(r=(g=p.getElementsByTagName("StatusCode")[0])?g.firstChild.nodeValue:null,a=(o=(g=p.getElementsByTagName("Message")[0])?g.firstChild.nodeValue:null)?o.lastIndexOf("[")+1:-1,s=o?o.indexOf("]"):-1,o=o?o.substring(a,s):"")}var f="code: "+r+", name: "+n;return o&&(f+=", message: "+o),f}return{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(t){return i.call(this,t)},getErrorResponse:function(t){return n.call(this,t)}}}L.__dashjs_factory_name="PlayReady";var N=dashjs.FactoryMaker.getSingletonFactory(L);function P(){return{getServerURLFromMessage:function(t){return t},getHTTPMethod:function(){return"POST"},getResponseType:function(){return"arraybuffer"},getLicenseMessage:function(t){return t},getErrorResponse:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}}}P.__dashjs_factory_name="Widevine";var U=dashjs.FactoryMaker.getSingletonFactory(P);function O(){return{getServerURLFromMessage:function(t,e){var i=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(e)));t+="/?";for(var n=0;n<i.kids.length;n++)t+=i.kids[n]+"&";return t.substring(0,t.length-1)},getHTTPMethod:function(){return"GET"},getResponseType:function(){return"json"},getLicenseMessage:function(t){if(!t.hasOwnProperty("keys"))return null;for(var e=[],i=0;i<t.keys.length;i++){var n=t.keys[i],r=n.kid.replace(/=/g,""),o=n.k.replace(/=/g,"");e.push(new c(r,o))}return new h(e)},getErrorResponse:function(t){return String.fromCharCode.apply(null,new Uint8Array(t))}}}O.__dashjs_factory_name="ClearKey";var G=dashjs.FactoryMaker.getSingletonFactory(O);function H(){var t=this.context,e=void 0,i=void 0,n=void 0,o=void 0,a=void 0;return{initialize:function(){i=[];var r=void 0;r=M(t).getInstance({BASE64:n}),i.push(r),r=Q(t).getInstance({BASE64:n}),i.push(r),r=m(t).getInstance({BASE64:n}),i.push(r),o=r,r=I(t).getInstance({BASE64:n,log:e}),i.push(r),a=r},setProtectionData:function(t){for(var e=function(e){var i=null;return t&&(i=e in t?t[e]:null),i},n=0;n<i.length;n++){var r=i[n];r.hasOwnProperty("init")&&r.init(e(r.systemString))}},isClearKey:function(t){return t===o||t===a},initDataEquals:function(t,e){if(t.byteLength===e.byteLength){for(var i=new Uint8Array(t),n=new Uint8Array(e),r=0;r<i.length;r++)if(i[r]!==n[r])return!1;return!0}return!1},getKeySystems:function(){return i},getKeySystemBySystemString:function(t){for(var e=0;e<i.length;e++)if(i[e].systemString===t)return i[e];return null},getSupportedKeySystemsFromContentProtection:function(t){var e=void 0,n=void 0,r=void 0,o=void 0,a=[];if(t)for(r=0;r<i.length;++r)for(n=i[r],o=0;o<t.length;++o)(e=t[o]).schemeIdUri.toLowerCase()===n.schemeIdURI&&a.push({ks:n,initData:n.getInitData(e),cdmData:n.getCDMData(),sessionId:n.getSessionId(e)});return a},getSupportedKeySystems:function(t,e){for(var n=[],o=r.parsePSSHList(t),a=void 0,s=void 0,l=void 0,A=0;A<i.length;++A)s=(a=i[A]).systemString,l=!e||s in e,a.uuid in o&&l&&n.push({ks:a,initData:o[a.uuid],cdmData:a.getCDMData(),sessionId:a.getSessionId()});return n},getLicenseServer:function(e,i,r){if("license-release"===r||"individualization-request"===r)return null;var o=null;return i&&i.hasOwnProperty("drmtoday")?o=F(t).getInstance({BASE64:n}):e.systemString===d.WIDEVINE_KEYSTEM_STRING?o=U(t).getInstance():e.systemString===d.PLAYREADY_KEYSTEM_STRING?o=N(t).getInstance():e.systemString===d.CLEARKEY_KEYSTEM_STRING&&(o=G(t).getInstance()),o},processClearKeyLicenseRequest:function(t,i,n){try{return t.getClearKeysFromProtectionData(i,n)}catch(t){return e("Failed to retrieve clearkeys from ProtectionData"),null}},setConfig:function(t){t&&(t.log&&(e=t.log),t.BASE64&&(n=t.BASE64))}}}H.__dashjs_factory_name="ProtectionKeyController";var V=dashjs.FactoryMaker.getSingletonFactory(H),Y=new(function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return i.INTERNAL_KEY_MESSAGE="internalKeyMessage",i.INTERNAL_KEY_SYSTEM_SELECTED="internalKeySystemSelected",i.INTERNAL_KEY_STATUS_CHANGED="internalkeyStatusChanged",i.KEY_ADDED="public_keyAdded",i.KEY_ERROR="public_keyError",i.KEY_MESSAGE="public_keyMessage",i.KEY_SESSION_CLOSED="public_keySessionClosed",i.KEY_SESSION_CREATED="public_keySessionCreated",i.KEY_SESSION_REMOVED="public_keySessionRemoved",i.KEY_STATUSES_CHANGED="public_keyStatusesChanged",i.KEY_SYSTEM_ACCESS_COMPLETE="public_keySystemAccessComplete",i.KEY_SYSTEM_SELECTED="public_keySystemSelected",i.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",i.NEED_KEY="needkey",i.PROTECTION_CREATED="public_protectioncreated",i.PROTECTION_DESTROYED="public_protectiondestroyed",i.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",i.TEARDOWN_COMPLETE="protectionTeardownComplete",i.VIDEO_ELEMENT_SELECTED="videoElementSelected",i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i(4).a)),z=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initData=e,this.initDataType=i},W=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sessionToken=e,this.error=i},Z=function t(e,i,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sessionToken=e,this.message=i,this.defaultURL=n,this.messageType=r||"license-request"},j=function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.keySystem=e,this.ksConfiguration=i};function q(t){t=t||{};var e,i=this.context,n=t.eventBus,r=t.events,o=t.log,a=void 0,s=void 0,l=void 0,A=void 0,c=void 0,h=void 0;function u(t,e){var i,o,a;void 0!==navigator.requestMediaKeySystemAccess&&"function"==typeof navigator.requestMediaKeySystemAccess?(o=t[i=e].ks,a=t[i].configs,navigator.requestMediaKeySystemAccess(o.systemString,a).then((function(t){var e="function"==typeof t.getConfiguration?t.getConfiguration():null,i=new j(o,e);i.mksa=t,n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{data:i})})).catch((function(e){++i<t.length?u(t,i):n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! "+e.message})}))):n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Insecure origins are not allowed"})}function p(t){var e=t.session;return e.removeEventListener("keystatuseschange",t),
e.removeEventListener("message",t),e.close()}function g(t){for(var e=0;e<A.length;e++)if(A[e]===t){A.splice(e,1);break}}function f(t,e,i,a){var s={session:t,initData:e,sessionId:a,handleEvent:function(t){switch(t.type){case"keystatuseschange":n.trigger(r.KEY_STATUSES_CHANGED,{data:this}),t.target.keyStatuses.forEach((function(){var t=void 0,e=void 0;arguments&&arguments.length>0&&(arguments[0]&&("string"==typeof arguments[0]?t=arguments[0]:e=arguments[0]),arguments[1]&&("string"==typeof arguments[1]?t=arguments[1]:e=arguments[1])),"expired"===t?n.trigger(r.INTERNAL_KEY_STATUS_CHANGED,{error:"License has expired"}):n.trigger(r.INTERNAL_KEY_STATUS_CHANGED,{status:t,keyId:e})}));break;case"message":var e=ArrayBuffer.isView(t.message)?t.message.buffer:t.message;n.trigger(r.INTERNAL_KEY_MESSAGE,{data:new Z(this,e,void 0,t.messageType)})}},getSessionID:function(){return t.sessionId},getExpirationTime:function(){return t.expiration},getKeyStatuses:function(){return t.keyStatuses},getSessionType:function(){return i}};return t.addEventListener("keystatuseschange",s),t.addEventListener("message",s),t.closed.then((function(){g(s),o("DRM: Session closed.  SessionID = "+s.getSessionID()),n.trigger(r.KEY_SESSION_CLOSED,{data:s.getSessionID()})})),A.push(s),s}return e={getAllInitData:function(){for(var t=[],e=0;e<A.length;e++)A[e].initData&&t.push(A[e].initData);return t},requestKeySystemAccess:function(t){u(t,0)},getKeySystem:function(){return a},selectKeySystem:function(t){t.mksa.createMediaKeys().then((function(e){a=t.keySystem,l=e,s?s.setMediaKeys(l).then((function(){n.trigger(r.INTERNAL_KEY_SYSTEM_SELECTED)})):n.trigger(r.INTERNAL_KEY_SYSTEM_SELECTED)})).catch((function(){n.trigger(r.INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+t.keySystem.systemString+")! Could not create MediaKeys -- TODO"})}))},setMediaElement:function(t){s!==t&&(s&&(s.removeEventListener("encrypted",c),s.setMediaKeys&&s.setMediaKeys(null)),(s=t)&&(s.addEventListener("encrypted",c),s.setMediaKeys&&l&&s.setMediaKeys(l)))},setServerCertificate:function(t){if(!a||!l)throw new Error("Can not set server certificate until you have selected a key system");l.setServerCertificate(t).then((function(){o("DRM: License server certificate successfully updated."),n.trigger(r.SERVER_CERTIFICATE_UPDATED)})).catch((function(t){n.trigger(r.SERVER_CERTIFICATE_UPDATED,{error:"Error updating server certificate -- "+t.name})}))},createKeySession:function(t,e,i){if(!a||!l)throw new Error("Can not create sessions until you have selected a key system");var s=l.createSession(i),A=f(s,t,i),c=this.getKeySystem().systemString===d.CLEARKEY_KEYSTEM_STRING&&e&&e.clearkeys?"keyids":"cenc";s.generateRequest(c,t).then((function(){o("DRM: Session created.  SessionID = "+A.getSessionID()),n.trigger(r.KEY_SESSION_CREATED,{data:A})})).catch((function(t){g(A),n.trigger(r.KEY_SESSION_CREATED,{data:null,error:"Error generating key request -- "+t.name})}))},updateKeySession:function(t,e){var i=t.session;h.isClearKey(a)&&(e=e.toJWK()),i.update(e).catch((function(i){var a=function(t){try{return String.fromCharCode.apply(null,new Uint8Array(t))}catch(t){return o("DRM: Error converting ArrayBuffer to string! "+t.message),""}}(e),s="Error sending update() message! "+i.name+" - "+a;n.trigger(r.KEY_ERROR,{data:new W(t,s)})}))},loadKeySession:function(t,e,i){if(!a||!l)throw new Error("Can not load sessions until you have selected a key system");for(var s=0;s<A.length;s++)if(t===A[s].sessionId)return void o("DRM: Ignoring session ID because we have already seen it!");var c=l.createSession(i),h=f(c,e,i,t);c.load(t).then((function(e){e?(o("DRM: Session loaded.  SessionID = "+h.getSessionID()),n.trigger(r.KEY_SESSION_CREATED,{data:h})):(g(h),n.trigger(r.KEY_SESSION_CREATED,{data:null,error:"Could not load session! Invalid Session ID ("+t+")"}))})).catch((function(e){g(h),n.trigger(r.KEY_SESSION_CREATED,{data:null,error:"Could not load session ("+t+")! "+e.name})}))},removeKeySession:function(t){t.session.remove().then((function(){o("DRM: Session removed.  SessionID = "+t.getSessionID()),n.trigger(r.KEY_SESSION_REMOVED,{data:t.getSessionID()})}),(function(e){n.trigger(r.KEY_SESSION_REMOVED,{data:null,error:"Error removing session ("+t.getSessionID()+"). "+e.name})}))},closeKeySession:function(t){p(t).catch((function(e){g(t),n.trigger(r.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+t.getSessionID()+") "+e.name})}))},reset:function(){var t=A.length,e=void 0;0!==t?function(){for(var i=function(t){g(t),0===A.length&&(s?(s.removeEventListener("encrypted",c),s.setMediaKeys(null).then((function(){n.trigger(r.TEARDOWN_COMPLETE)}))):n.trigger(r.TEARDOWN_COMPLETE))},o=0;o<t;o++)!function(t){e.session.closed.then((function(){i(t)})),p(e).catch((function(){i(t)}))}(e=A[o])}():n.trigger(r.TEARDOWN_COMPLETE)}},a=null,s=null,l=null,A=[],h=V(i).getInstance(),c={handleEvent:function(t){if("encrypted"===t.type&&t.initData){var e=ArrayBuffer.isView(t.initData)?t.initData.buffer:t.initData;n.trigger(r.NEED_KEY,{key:new z(e,t.initDataType)})}}},e}q.__dashjs_factory_name="ProtectionModel_21Jan2015";var J=dashjs.FactoryMaker.getClassFactory(q);function K(t){t=t||{};var e,i=this.context,n=t.eventBus,r=t.events,o=t.log,s=t.api,l=void 0,A=void 0,c=void 0,h=void 0,d=void 0,u=void 0,p=void 0;function g(t){var e=t.session;e.removeEventListener(s.error,t),e.removeEventListener(s.message,t),e.removeEventListener(s.ready,t),e.removeEventListener(s.close,t);for(var i=0;i<d.length;i++)if(d[i]===t){d.splice(i,1);break}e[s.release]()}function f(){var t=null,e=function(){l.removeEventListener("loadedmetadata",t),l[s.setMediaKeys](c),n.trigger(r.VIDEO_ELEMENT_SELECTED)};l.readyState>=1?e():(t=e.bind(this),l.addEventListener("loadedmetadata",t))}return e={getAllInitData:function(){for(var t=[],e=0;e<d.length;e++)t.push(d[e].initData);return t},requestKeySystemAccess:function(t){for(var e=!1,i=0;i<t.length;i++)for(var o=t[i].ks.systemString,l=t[i].configs,A=null,c=null,h=0;h<l.length;h++){var d=l[h].audioCapabilities,u=l[h].videoCapabilities;if(d&&0!==d.length){A=[];for(var g=0;g<d.length;g++)window[s.MediaKeys].isTypeSupported(o,d[g].contentType)&&A.push(d[g])}if(u&&0!==u.length){c=[];for(var f=0;f<u.length;f++)window[s.MediaKeys].isTypeSupported(o,u[f].contentType)&&c.push(u[f])}if(!(!A&&!c||A&&0===A.length||c&&0===c.length)){e=!0;var m=new a(A,c),y=p.getKeySystemBySystemString(o);n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{data:new j(y,m)});break}}e||n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})},getKeySystem:function(){return A},selectKeySystem:function(t){try{c=t.mediaKeys=new window[s.MediaKeys](t.keySystem.systemString),A=t.keySystem,h=t,l&&f(),n.trigger(r.INTERNAL_KEY_SYSTEM_SELECTED)}catch(t){n.trigger(r.INTERNAL_KEY_SYSTEM_SELECTED,{error:"Error selecting keys system ("+A.systemString+")! Could not create MediaKeys -- TODO"})}},setMediaElement:function(t){l!==t&&(l&&l.removeEventListener(s.needkey,u),(l=t)&&(l.addEventListener(s.needkey,u),c&&f()))},createKeySession:function(t,e,i,a){if(!A||!c||!h)throw new Error("Can not create sessions until you have selected a key system");var l=null;if(null!==h.ksConfiguration.videoCapabilities&&h.ksConfiguration.videoCapabilities.length>0&&(l=h.ksConfiguration.videoCapabilities[0]),null===l&&null!==h.ksConfiguration.audioCapabilities&&h.ksConfiguration.audioCapabilities.length>0&&(l=h.ksConfiguration.audioCapabilities[0]),null===l)throw new Error("Can not create sessions for unknown content types.");var u=l.contentType,p=c.createSession(u,new Uint8Array(t),a?new Uint8Array(a):null),g={session:p,initData:t,getSessionID:function(){return this.session.sessionId},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"},handleEvent:function(t){switch(t.type){case s.error:var e="KeyError";n.trigger(r.KEY_ERROR,{data:new W(this,e)});break;case s.message:var i=ArrayBuffer.isView(t.message)?t.message.buffer:t.message;n.trigger(r.INTERNAL_KEY_MESSAGE,{data:new Z(this,i,t.destinationURL)});break;case s.ready:o("DRM: Key added."),n.trigger(r.KEY_ADDED);break;case s.close:
o("DRM: Session closed.  SessionID = "+this.getSessionID()),n.trigger(r.KEY_SESSION_CLOSED,{data:this.getSessionID()})}}};p.addEventListener(s.error,g),p.addEventListener(s.message,g),p.addEventListener(s.ready,g),p.addEventListener(s.close,g),d.push(g),o("DRM: Session created.  SessionID = "+g.getSessionID()),n.trigger(r.KEY_SESSION_CREATED,{data:g})},updateKeySession:function(t,e){var i=t.session;p.isClearKey(A)?i.update(new Uint8Array(e.toJWK())):i.update(new Uint8Array(e))},closeKeySession:g,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},reset:function(){try{for(var t=0;t<d.length;t++)g(d[t]);l&&l.removeEventListener(s.needkey,u),n.trigger(r.TEARDOWN_COMPLETE)}catch(t){n.trigger(r.TEARDOWN_COMPLETE,{error:"Error tearing down key sessions and MediaKeys! -- "+t.message})}}},l=null,A=null,c=null,h=null,d=[],p=V(i).getInstance(),u={handleEvent:function(t){if(t.type===s.needkey&&t.initData){var e=ArrayBuffer.isView(t.initData)?t.initData.buffer:t.initData;n.trigger(r.NEED_KEY,{key:new z(e,"cenc")})}}},e}K.__dashjs_factory_name="ProtectionModel_3Feb2014";var X=dashjs.FactoryMaker.getClassFactory(K);function $(t){t=t||{};var e,i=this.context,n=t.eventBus,r=t.events,o=t.log,s=t.api,l=t.errHandler,A=void 0,c=void 0,h=void 0,d=void 0,u=void 0,p=void 0,g=void 0;function f(t){try{A[s.cancelKeyRequest](c.systemString,t.sessionID)}catch(e){n.trigger(r.KEY_SESSION_CLOSED,{data:null,error:"Error closing session ("+t.sessionID+") "+e.message})}}function m(t,e){if(e&&t){for(var i=t.length,n=0;n<i;n++)if(t[n].sessionID==e)return t[n];return null}return null}function y(){A.removeEventListener(s.keyerror,g),A.removeEventListener(s.needkey,g),A.removeEventListener(s.keymessage,g),A.removeEventListener(s.keyadded,g)}return e={getAllInitData:function(){for(var t=[],e=0;e<d.length;e++)t.push(d[e].initData);for(var i=0;i<u.length;i++)t.push(u[i].initData);return t},requestKeySystemAccess:function(t){var e=A;e||(e=document.createElement("video"));for(var i=!1,o=0;o<t.length;o++)for(var s=t[o].ks.systemString,l=t[o].configs,c=null,d=null,u=0;u<l.length;u++){var p=l[u].videoCapabilities;if(p&&0!==p.length){d=[];for(var g=0;g<p.length;g++)""!==e.canPlayType(p[g].contentType,s)&&d.push(p[g])}if(d&&(!d||0!==d.length)){i=!0;var f=new a(c,d),m=h.getKeySystemBySystemString(s);n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{data:new j(m,f)});break}}i||n.trigger(r.KEY_SYSTEM_ACCESS_COMPLETE,{error:"Key system access denied! -- No valid audio/video content configurations detected!"})},getKeySystem:function(){return c},selectKeySystem:function(t){c=t.keySystem,n.trigger(r.INTERNAL_KEY_SYSTEM_SELECTED)},setMediaElement:function(t){A!==t&&(A&&y(),(A=t)&&(A.addEventListener(s.keyerror,g),A.addEventListener(s.needkey,g),A.addEventListener(s.keymessage,g),A.addEventListener(s.keyadded,g),n.trigger(r.VIDEO_ELEMENT_SELECTED)))},createKeySession:function(t){if(!c)throw new Error("Can not create sessions until you have selected a key system");if(p||0===u.length){var e={sessionID:null,initData:t,getSessionID:function(){return this.sessionID},getExpirationTime:function(){return NaN},getSessionType:function(){return"temporary"}};return d.push(e),A[s.generateKeyRequest](c.systemString,new Uint8Array(t)),e}throw new Error("Multiple sessions not allowed!")},updateKeySession:function(t,e){var i=t.sessionID;if(h.isClearKey(c))for(var n=0;n<e.keyPairs.length;n++)A[s.addKey](c.systemString,e.keyPairs[n].key,e.keyPairs[n].keyID,i);else A[s.addKey](c.systemString,new Uint8Array(e),new Uint8Array(t.initData),i)},closeKeySession:f,setServerCertificate:function(){},loadKeySession:function(){},removeKeySession:function(){},reset:function(){A&&y();for(var t=0;t<u.length;t++)f(u[t]);n.trigger(r.TEARDOWN_COMPLETE)}},A=null,c=null,d=[],u=[],h=V(i).getInstance(),g={handleEvent:function(t){var e=null;switch(t.type){case s.needkey:var i=ArrayBuffer.isView(t.initData)?t.initData.buffer:t.initData;n.trigger(r.NEED_KEY,{key:new z(i,"cenc")});break;case s.keyerror:if((e=m(u,t.sessionId))||(e=m(d,t.sessionId)),e){var a="";switch(t.errorCode.code){case 1:a+="MEDIA_KEYERR_UNKNOWN - An unspecified error occurred. This value is used for errors that don't match any of the other codes.";break;case 2:a+="MEDIA_KEYERR_CLIENT - The Key System could not be installed or updated.";break;case 3:a+="MEDIA_KEYERR_SERVICE - The message passed into update indicated an error from the license service.";break;case 4:a+="MEDIA_KEYERR_OUTPUT - There is no available output device with the required characteristics for the content protection system.";break;case 5:a+="MEDIA_KEYERR_HARDWARECHANGE - A hardware configuration change caused a content protection error.";break;case 6:a+="MEDIA_KEYERR_DOMAIN - An error occurred in a multi-device domain licensing configuration. The most common error is a failure to join the domain."}a+="  System Code = "+t.systemCode,n.trigger(r.KEY_ERROR,{data:new W(e,a)})}else o("No session token found for key error");break;case s.keyadded:(e=m(u,t.sessionId))||(e=m(d,t.sessionId)),e?(o("DRM: Key added."),n.trigger(r.KEY_ADDED,{data:e})):o("No session token found for key added");break;case s.keymessage:if((p=null!==t.sessionId&&void 0!==t.sessionId)?!(e=m(u,t.sessionId))&&d.length>0&&(e=d.shift(),u.push(e),e.sessionID=t.sessionId,n.trigger(r.KEY_SESSION_CREATED,{data:e})):d.length>0&&(e=d.shift(),u.push(e),0!==d.length&&l.mediaKeyMessageError("Multiple key sessions were creates with a user-agent that does not support sessionIDs!! Unpredictable behavior ahead!")),e){var A=ArrayBuffer.isView(t.message)?t.message.buffer:t.message;e.keyMessage=A,n.trigger(r.INTERNAL_KEY_MESSAGE,{data:new Z(e,A,t.defaultURL)})}else o("No session token found for key message")}}},e}$.__dashjs_factory_name="ProtectionModel_01b";var tt=dashjs.FactoryMaker.getClassFactory($),et=[{generateKeyRequest:"generateKeyRequest",addKey:"addKey",cancelKeyRequest:"cancelKeyRequest",needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],it=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];function nt(){var t=this.context;function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];if("function"==typeof t[n[Object.keys(n)[0]]])return n}return null}return{createProtectionSystem:function(i){var n=null,r=V(t).getInstance();r.setConfig({log:i.log,BASE64:i.BASE64}),r.initialize();var o,a,s,l,c,h=(a=(o=i).log,s=o.eventBus,l=o.errHandler,(c=o.videoModel?o.videoModel.getElement():null)&&void 0===c.onencrypted||c&&void 0===c.mediaKeys?e(c,it)?(a("EME detected on this user agent! (ProtectionModel_3Feb2014)"),X(t).create({log:a,eventBus:s,events:o.events,api:e(c,it)})):e(c,et)?(a("EME detected on this user agent! (ProtectionModel_01b)"),tt(t).create({log:a,eventBus:s,errHandler:l,events:o.events,api:e(c,et)})):(a("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"),null):(a("EME detected on this user agent! (ProtectionModel_21Jan2015)"),J(t).create({log:a,eventBus:s,events:o.events})));return!n&&h&&(n=A(t).create({protectionModel:h,protectionKeyController:r,eventBus:i.eventBus,log:i.log,events:i.events,BASE64:i.BASE64,constants:i.constants,ignoreEmeEncryptedEvent:i.ignoreEmeEncryptedEvent}),i.capabilities.setEncryptedMediaSupported(!0)),n}}}nt.__dashjs_factory_name="Protection";var rt=dashjs.FactoryMaker.getClassFactory(nt);rt.events=Y,dashjs.FactoryMaker.updateClassFactory(nt.__dashjs_factory_name,rt);var ot=rt;dashjs.Protection=ot,e.default=dashjs}])},78781:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return xt}});class n{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},
Object.assign=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");let e=Object(t);for(let t=1;t<arguments.length;t++){let i=arguments[t];if(null!=i)for(let t in i)i.hasOwnProperty(t)&&(e[t]=i[t])}return e},"function"!=typeof self.Promise&&i(72632)}}n.install();var r=n,o=i(94864),a=i.n(o);class s{static e(t,e){t&&!s.FORCE_GLOBAL_TAG||(t=s.GLOBAL_TAG);let i=`[${t}] > ${e}`;s.ENABLE_CALLBACK&&s.emitter.emit("log","error",i),s.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}static i(t,e){t&&!s.FORCE_GLOBAL_TAG||(t=s.GLOBAL_TAG);let i=`[${t}] > ${e}`;s.ENABLE_CALLBACK&&s.emitter.emit("log","info",i),s.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}static w(t,e){t&&!s.FORCE_GLOBAL_TAG||(t=s.GLOBAL_TAG);let i=`[${t}] > ${e}`;s.ENABLE_CALLBACK&&s.emitter.emit("log","warn",i),s.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}static d(t,e){t&&!s.FORCE_GLOBAL_TAG||(t=s.GLOBAL_TAG);let i=`[${t}] > ${e}`;s.ENABLE_CALLBACK&&s.emitter.emit("log","debug",i),s.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}static v(t,e){t&&!s.FORCE_GLOBAL_TAG||(t=s.GLOBAL_TAG);let i=`[${t}] > ${e}`;s.ENABLE_CALLBACK&&s.emitter.emit("log","verbose",i),s.ENABLE_VERBOSE&&console.log(i)}}s.GLOBAL_TAG="flv.js",s.FORCE_GLOBAL_TAG=!1,s.ENABLE_ERROR=!0,s.ENABLE_INFO=!0,s.ENABLE_WARN=!0,s.ENABLE_DEBUG=!0,s.ENABLE_VERBOSE=!0,s.ENABLE_CALLBACK=!1,s.emitter=new(a());var l=s;const A="other_events_polymer";var c={ERROR:"error",CREATE_LOADER:"create_loader",LOADING_STARTED:"loading_started",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",STATISTICS_INFO:"statistics_info",HTTP_REQUEST_ENDED:"http_request_ended",P2P_REQUEST_ENDED:"p2p_request_ended",HTTP_HEADER_RECEIVED:"http_header_received",AUDIO_FRAME_DECODED:"audio_frame_decoded",VIDEO_FRAME_DECODED:"video_frame_decoded",CTS_WARNING:"cts_warning",FLV_DATA_ABNORMAL:"flv_data_abnormal"};var h=class{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._p2pLoadedBytes=0,this._CDNLoadedBytes=0,this._backupLoaderLoadedBytes=0,this._lastSecondBytes=0,this._emitter=new(a()),self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}destroy(){this._emitter.removeAllListeners(),this._emitter=null}reset(){this._emitter.emit(c.HTTP_REQUEST_ENDED,this._totalBytes),this._CDNLoadedBytes+this._p2pLoadedBytes+this._backupLoaderLoadedBytes>0&&this._emitter.emit(c.P2P_REQUEST_ENDED,this._CDNLoadedBytes,this._p2pLoadedBytes,this._backupLoaderLoadedBytes),this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0,this._p2pLoadedBytes=0,this._CDNLoadedBytes=0,this._backupLoaderLoadedBytes=0}addBytes(t,e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=t,this._totalBytes+=t):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=t,this._totalBytes+=t):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=t,this._totalBytes+=t,this._lastCheckpoint=this._now()),e&&(this._CDNLoadedBytes+=e.cdn?e.cdn:0,this._p2pLoadedBytes+=e.p2p?e.p2p:0,this._backupLoaderLoadedBytes+=e.backup?e.backup:0)}get currentKBps(){this.addBytes(0);let t=(this._now()-this._lastCheckpoint)/1e3;return 0==t&&(t=1),this._intervalBytes/t/1024}get lastSecondKBps(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let t=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/t/1024}on(t,e){this._emitter.addListener(t,e)}off(t,e){this._emitter.removeListener(t,e)}};class d{constructor(t){this._message=t}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class u extends d{constructor(t){super(t)}get name(){return"IllegalStateException"}}class p extends d{constructor(t){super(t)}get name(){return"InvalidArgumentException"}}class g extends d{constructor(t){super(t)}get name(){return"NotImplementedException"}}const f=0,m=1,y=2,b=3,v=4,E="Exception",I="HttpStatusCodeInvalid",C="ConnectingTimeout",B="EarlyEof",w="UnrecoverableEarlyEof",x="StatusChange";class Q{constructor(t){this._type=t||"undefined",this._status=f,this._needStash=!1,this._onHeaderReceived=null,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onStarted=null,this._onComplete=null,this._emitter=new(a())}destroy(){this.status=f,this._onHeaderReceived=null,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onStarted=null,this._onComplete=null,this._emitter.removeAllListeners(),this._emitter=null}isWorking(){return this.status===m||this.status===y}get type(){return this._type}get status(){return this._status}set status(t){this._status!==t&&(this._emitter?this._emitter.emit(x,this._status,this._status=t):(this._status=t,l.w("StatusChange","Status has been set, but instance had been destroyed")))}get needStashBuffer(){return this._needStash}get onHeaderReceived(){return this._onHeaderReceived}set onHeaderReceived(t){this._onHeaderReceived=t}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(t){this._onContentLengthKnown=t}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(t){this._onURLRedirect=t}get onDataArrival(){return this._onDataArrival}set onDataArrival(t){this._onDataArrival=t}get onError(){return this._onError}set onError(t){this._onError=t}get onStarted(){return this._onStarted}set onStarted(t){this._onStarted=t}get onComplete(){return this._onComplete}set onComplete(t){this._onComplete=t}open(t,e){throw new g("Unimplemented abstract function!")}abort(){throw new g("Unimplemented abstract function!")}on(t,e){this._emitter.addListener(t,e)}off(t,e){this._emitter.removeListener(t,e)}}let S={};!function(){let t=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(t)||/(opr)[\/]([\w.]+)/.exec(t)||/(chrome)[ \/]([\w.]+)/.exec(t)||/(iemobile)[\/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(t)||[],i=/(ipad)/.exec(t)||/(ipod)/.exec(t)||/(windows phone)/.exec(t)||/(iphone)/.exec(t)||/(kindle)/.exec(t)||/(android)/.exec(t)||/(windows)/.exec(t)||/(mac)/.exec(t)||/(linux)/.exec(t)||/(cros)/.exec(t)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:i[0]||""},r={};if(n.browser){r[n.browser]=!0;let t=n.majorVersion.split(".");r.version={major:parseInt(n.majorVersion,10),string:n.version},t.length>1&&(r.version.minor=parseInt(t[1],10)),t.length>2&&(r.version.build=parseInt(t[2],10))}if(n.platform&&(r[n.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;let t="msie";n.browser=t,r[t]=!0}if(r.edge){delete r.edge;let t="msedge";n.browser=t,r[t]=!0}if(r.opr){let t="opera";n.browser=t,r[t]=!0}if(r.safari&&r.android){let t="android";n.browser=t,r[t]=!0}r.name=n.browser,r.platform=n.platform;for(let t in S)S.hasOwnProperty(t)&&delete S[t];Object.assign(S,r)}();var k=S;let D=0;var _=class extends Q{static isSupported(){try{let t=k.msedge&&k.version.minor>=15048,e=!k.msedge||t;return self.fetch&&self.ReadableStream&&e}catch(t){return!1}}constructor(t,e){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=t,this._config=e,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(t,e,i=3){this._dataSource=t,this._range=e;let n=t.url;if(t.backupURL&&t.backupURL.length>0&&D){const e=D%(t.backupURL.length+1);0!==e&&(n=t.backupURL[e-1])}
this._config.reuseRedirectedURL&&null!=t.redirectedURL&&(n=t.redirectedURL);let r=this._seekHandler.getConfig(n,e),o=new self.Headers;if("object"==typeof r.headers){let t=r.headers;for(let e in t)t.hasOwnProperty(e)&&o.append(e,t[e])}let a={method:"GET",headers:o,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};!1===t.cors&&(a.mode="same-origin"),t.withCredentials&&(a.credentials="include"),t.referrerPolicy&&(a.referrerPolicy=t.referrerPolicy),this.status=m,self.fetch(r.url,a).then((n=>{if(this._requestAbort)this._requestAbort=!1;else{if(this.onHeaderReceived&&this.onHeaderReceived(n.headers),n.ok&&n.status>=200&&n.status<=299){if(n.url!==r.url&&this._onURLRedirect){let t=this._seekHandler.removeURLParameters(n.url);this._onURLRedirect(t)}let t=n.headers.get("Content-Length");return null!=t&&(this._contentLength=parseInt(t),0!==this._contentLength&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,n.body.getReader())}if(i>0)D++,this.open(t,e,i-1);else{if(this.status=b,!this._onError)throw new d("FetchStreamLoader: Http code invalid, "+n.status+" "+n.statusText);this._onError(I,{code:n.status,msg:n.statusText})}}})).catch((n=>{if(i>0)D++,this.open(t,e,i-1);else{if(this.status=b,!this._onError)throw n;this._onError(E,{code:-1,msg:n.message})}})),this.onStarted&&this.onStarted(Date.now())}abort(){this._requestAbort=!0,this.status=v}_pump(t){return t.read().then((e=>{if(e.done)if(null!==this._contentLength&&this._receivedLength<this._contentLength){this.status=b;let t=B,e={code:-1,msg:"Fetch stream meet Early-EOF"};if(!this._onError)throw new d(e.msg);this._onError(t,e)}else this.status=v,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(!0===this._requestAbort)return this._requestAbort=!1,t.cancel();this.status=y;let i=e.value.buffer,n=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,n,this._receivedLength),this._pump(t)}})).catch((t=>{if(11===t.code&&k.msedge)return;this.status=b;let e=0,i=null;if(19!==t.code&&"network error"!==t.message||!(null===this._contentLength||null!==this._contentLength&&this._receivedLength<this._contentLength)?(e=E,i={code:t.code,msg:t.message}):(e=B,i={code:t.code,msg:"Fetch stream meet Early-EOF"}),!this._onError)throw new d(i.msg);this._onError(e,i)}))}};var R=class extends Q{static isSupported(){try{let t=new XMLHttpRequest;return t.open("GET","https://example.com",!0),t.responseType="moz-chunked-arraybuffer","moz-chunked-arraybuffer"===t.responseType}catch(t){return l.w("MozChunkedLoader",t.message),!1}}constructor(t,e){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=t,this._config=e,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(t,e){this._dataSource=t,this._range=e;let i=t.url;this._config.reuseRedirectedURL&&null!=t.redirectedURL&&(i=t.redirectedURL);let n=this._seekHandler.getConfig(i,e);this._requestURL=n.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",n.url,!0),r.responseType="moz-chunked-arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onloadend=this._onLoadEnd.bind(this),r.onerror=this._onXhrError.bind(this),t.withCredentials&&r.withCredentials&&(r.withCredentials=!0),"object"==typeof n.headers){let t=n.headers;for(let e in t)t.hasOwnProperty(e)&&r.setRequestHeader(e,t[e])}this.status=m,r.send(),this.onStarted&&this.onStarted(Date.now())}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this.status=v}_onReadyStateChange(t){let e=t.target;if(2===e.readyState){if(this.onHeaderReceived&&this.onHeaderReceived(e.getAllResponseHeaders()),null!=e.responseURL&&e.responseURL!==this._requestURL&&this._onURLRedirect){let t=this._seekHandler.removeURLParameters(e.responseURL);this._onURLRedirect(t)}if(0!==e.status&&(e.status<200||e.status>299)){if(this.status=b,!this._onError)throw new d("MozChunkedLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(I,{code:e.status,msg:e.statusText})}else this.status=y}}_onProgress(t){if(this.status===b)return;null===this._contentLength&&null!==t.total&&0!==t.total&&(this._contentLength=t.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let e=t.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=e.byteLength,this._onDataArrival&&this._onDataArrival(e,i,this._receivedLength)}_onLoadEnd(t){!0!==this._requestAbort?this.status!==b&&(this.status=v,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}_onXhrError(t){this.status=b;let e=0,i=null;if(this._contentLength&&t.loaded<this._contentLength?(e=B,i={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(e=E,i={code:-1,msg:t.constructor.name+" "+t.type}),!this._onError)throw new d(i.msg);this._onError(e,i)}};var M=class extends Q{static isSupported(){try{let t=new XMLHttpRequest;return t.open("GET","https://example.com",!0),t.responseType="arraybuffer","arraybuffer"===t.responseType}catch(t){return l.w("RangeLoader",t.message),!1}}constructor(t,e){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=t,this._config=e,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new h,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy(),this._speedSampler.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(t,e){this._dataSource=t,this._range=e,this.status=m;let i=!1;null!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(i=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||i?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})),this.onStarted&&this.onStarted(Date.now())}_openSubRange(){let t=1024*this._currentChunkSizeKB,e=this._range.from+this._receivedLength,i=e+t;null!=this._contentLength&&i-this._range.from>=this._contentLength&&(i=this._range.from+this._contentLength-1),this._currentRequestRange={from:e,to:i},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(t,e){this._lastTimeLoaded=0;let i=t.url;this._config.reuseRedirectedURL&&(null!=this._currentRedirectedURL?i=this._currentRedirectedURL:null!=t.redirectedURL&&(i=t.redirectedURL));let n=this._seekHandler.getConfig(i,e);this._currentRequestURL=n.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",n.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),t.withCredentials&&r.withCredentials&&(r.withCredentials=!0),"object"==typeof n.headers){let t=n.headers;for(let e in t)t.hasOwnProperty(e)&&r.setRequestHeader(e,t[e])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this.status=v}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(t){let e=t.target;if(2===e.readyState){if(this.onHeaderReceived&&this.onHeaderReceived(e.getAllResponseHeaders()),null!=e.responseURL){let t=this._seekHandler.removeURLParameters(e.responseURL)
;e.responseURL!==this._currentRequestURL&&t!==this._currentRedirectedURL&&(this._currentRedirectedURL=t,this._onURLRedirect&&this._onURLRedirect(t))}if(e.status>=200&&e.status<=299){if(this._waitForTotalLength)return;this.status=y}else{if(this.status=b,!this._onError)throw new d("RangeLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(I,{code:e.status,msg:e.statusText})}}}_onProgress(t){if(this.status===b)return;if(null===this._contentLength){let e=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,e=!0;let i=t.total;this._internalAbort(),null!=i&0!==i&&(this._totalLength=i)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,e)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let e=t.loaded-this._lastTimeLoaded;this._lastTimeLoaded=t.loaded,this._speedSampler.addBytes(e)}_normalizeSpeed(t){let e=this._chunkSizeKBList,i=e.length-1,n=0,r=0,o=i;if(t<e[0])return e[0];for(;r<=o;){if(n=r+Math.floor((o-r)/2),n===i||t>=e[n]&&t<e[n+1])return e[n];e[n]<t?r=n+1:o=n-1}}_onLoad(t){if(this.status===b)return;if(this._waitForTotalLength)return void(this._waitForTotalLength=!1);this._lastTimeLoaded=0;let e=this._speedSampler.lastSecondKBps;if(0===e&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(e=this._speedSampler.currentKBps)),0!==e){let t=this._normalizeSpeed(e);this._currentSpeedNormalized!==t&&(this._currentSpeedNormalized=t,this._currentChunkSizeKB=t)}let i=t.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;let r=!1;null!=this._contentLength&&this._receivedLength<this._contentLength?this._openSubRange():r=!0,this._onDataArrival&&this._onDataArrival(i,n,this._receivedLength),r&&(this.status=v,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(t){this.status=b;let e=0,i=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(e=B,i={code:-1,msg:"RangeLoader meet Early-Eof"}):(e=E,i={code:-1,msg:t.constructor.name+" "+t.type}),!this._onError)throw new d(i.msg);this._onError(e,i)}},T=i(80967);var F=class extends Q{static isSupported(){return!0}constructor(t,e,i,n){super("yf-loader"),this.TAG="YFLoader",this._requestAbort=!1,this._receivedLength=0,this._needStash=!1,this._p2pIO=null,this._dataSource=null,this._mediaElement=i,this._bNewSlice=n||!1,this._loadInfo={cdnloaded:0,scdnloaded:0},this._stashSize=0,this._backupLoader=null,this._noResource=!1}setBackupLoader(t){this._backupLoader=t,this._backupLoader.onComplete=this._onBackupLoaderComplete.bind(this),this._backupLoader.onDataArrival=this._onBackupLoaderLoad.bind(this)}destroy(){this.abort(),this._destroyP2pIO(),this._backupLoader.destroy(),this._backupLoader=null,this._dataSource=null,this._mediaElement=null,this._loadInfo={cdnloaded:0,scdnloaded:0},this._stashSize=0,this._noResource=!1,this._bNewSlice=!1,super.destroy()}open(t,e){this._dataSource=t;try{this._range=e,this._p2pIO&&this._destroyP2pIO(),window.YFCloudIO&&!this._noResource?(this._createP2pIO(),this._p2pConfig.domain="upos-hz-mirrorks3u.acgvideo.com",this._p2pIO.init(this._mediaElement,t.url,this._p2pConfig),this._p2pIO.load(e,this._bNewSlice,this._stashSize)):(this.onNeedStashBuffer&&this.onNeedStashBuffer(this._backupLoader.needStashBuffer),this._backupLoader.open(this._dataSource,e)),this.status=m,this.onStarted&&this.onStarted(Date.now())}catch(t){this.status=b;let e={code:t.code,msg:t.message};if(!this._onError)throw new d(e.msg);this._onError(E,e)}}abort(){let t=this._p2pIO;t&&0==this._requestAbort&&t.pause(),this._backupLoader.abort(),this._requestAbort=!0,this.status=v}resume(t){this._p2pIO&&(this._requestAbort=!1,this._p2pIO.seek(t),this.status=m,this.onStarted&&this.onStarted(Date.now()))}setStashSize(t){this._stashSize!==t&&(this._stashSize=t,this._p2pIO&&this._p2pIO.setThreshold(this._stashSize))}get noResource(){return this._noResource}set noResource(t){this._noResource=t}useP2pIO(){return null!=this._p2pIO}_switchIO(){this._destroyP2pIO(),this.onNeedStashBuffer&&this.onNeedStashBuffer(this._backupLoader.needStashBuffer);let t=Object.assign({},this._range);t.from=this._range.from+this._receivedLength,this._backupLoader.open(this._dataSource,t)}_createP2pIO(){let t=window.YFCloudIO;this._p2pIO=new t,this._p2pIO.onLoadError=this._onLoaderError.bind(this),this._p2pIO.onDataArrive=this._onLoad.bind(this),this._p2pIO.onIOComplete=this._onLoaderComplete.bind(this),this._p2pIO.noResources=this._onNoResources.bind(this),this.onURLRedirect&&(this._p2pIO.onURLRedirect=this.onURLRedirect.bind(this)),this._p2pConfig={limitBufferLength:150,taccesskey:"b0c2a0fef8cf47608ec06008e089b87f3d4a965b",tokenid:"b048975020d226f7bb64eff579a5751f6738367c"},this.onNeedStashBuffer&&this.onNeedStashBuffer(!1)}_destroyP2pIO(){this._p2pIO&&(this._p2pIO.pause(),this._p2pIO.destroy(),this._p2pIO=null,this._p2pConfig=null)}_onLoad(t,e){if(this._status===b)return;if(null==this._p2pIO)return;let i=T.lW.from(t).buffer;this._receivedLength+=i.byteLength;let n=this._p2pIO.loadedInfo();this._onDataArrival&&(this._onDataArrival(i,e,this._receivedLength,{cdn:n.cdnloaded-this._loadInfo.cdnloaded,p2p:n.scdnloaded-this._loadInfo.scdnloaded,backup:0}),this._loadInfo=n),this._noResource&&!this._bNewSlice?this._switchIO():!0===this._bNewSlice&&(this._bNewSlice=!1)}_onBackupLoaderLoad(t,e,i){this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,e,this._receivedLength,{cdn:0,p2p:0,backup:t.byteLength})}_onLoaderComplete(){this._status!==b&&this._range&&this._status!=v&&(this.status=v,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onBackupLoaderComplete(t,e){this._status!==b&&this._range&&this._status!=v&&(this.status=v,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onLoaderError(t){l.w(this.TAG,"YFIOError: code-"+String(t)),this._switchIO()}_onNoResources(){this._noResource=!0}};var L=class extends Q{static isSupported(){try{let t=Browser.msedge&&Browser.version.minor>=15048,e=!Browser.msedge||t;return self.fetch&&self.ReadableStream&&e}catch(t){return!1}}constructor(t,e,i){super("xyvod-loader"),this.TAG="XLLoader",this._seekHandler=t,this._config=e,this._needStash=!0,this._mediaElement=i,this._dataSource=null,this._receivedLength=0,this._xyvod=null,this._loadInfo={cdnBytes:0,p2pBytes:0},this._backupLoader=null}setBackupLoader(t){this._backupLoader=t,this._backupLoader.onComplete=this._onBackupLoaderComplete.bind(this),this._backupLoader.onDataArrival=this._onBackupLoaderLoad.bind(this)}destroy(){this.abort(),this._mediaElement=null,this._destroyP2pIO(),this._dataSource=null,this._backupLoader&&(this._backupLoader.destroy(),this._backupLoader=null),this._loadInfo={cdnBytes:0,p2pBytes:0},super.destroy()}open(t,e){if(this._range=e,this._receivedLength=0,this.status=m,this._dataSource=t,window.xyflv){let{XYVOD:i,XYVODEvent:n}=window.xyflv;null===this._xyvod&&(this._xyvod=new i({url:t.url,media:this._mediaElement}),this._xyvod.on(n.DATA,(({buffer:t,offset:e})=>{this._receivedLength+=t.byteLength;let i=this._xyvod.info;this._onDataArrival&&(this._onDataArrival(t,e,this._receivedLength,{cdn:i.cdnBytes-this._loadInfo.cdnBytes,p2p:i.p2pBytes-this._loadInfo.p2pBytes}),this._loadInfo=i)})),this._xyvod.on(n.END,(()=>{this.status=v,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)})),this._xyvod.on(n.ERROR,(t=>{this._onLoaderError()})));try{this._xyvod.open(this._range.from)}catch(i){l.e(this.TAG,`xyvod-loader error:${i}`),this._backupLoader.open(t,e)}this.status=y}else this._backupLoader.open(t,e);this.onStarted&&this.onStarted(Date.now())}abort(){this.isWorking()&&(this._xyvod&&this._xyvod.close(),this._backupLoader.abort(),this.status=v)}_onBackupLoaderLoad(t,e,i){this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,e,this._receivedLength,{backup:t.byteLength})}_onBackupLoaderComplete(t,e){this._status!==b&&this._range&&this._status!=v&&(this.status=v,
this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onLoaderError(t){l.w(this.TAG,"XYIOError: code-"+String(t)),this._switchIO()}_switchIO(){this._destroyP2pIO(),this.onNeedStashBuffer&&this.onNeedStashBuffer(this._backupLoader.needStashBuffer);let t=Object.assign({},this._range);t.from=this._range.from+this._receivedLength,this._backupLoader.open(this._dataSource,t)}_destroyP2pIO(){this._xyvod&&(this._xyvod.dispose(),this._xyvod=null)}};var N=class extends Q{static isSupported(){try{return void 0!==self.WebSocket}catch(t){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(t){try{let e=this._ws=new self.WebSocket(t.url);e.binaryType="arraybuffer",e.onopen=this._onWebSocketOpen.bind(this),e.onclose=this._onWebSocketClose.bind(this),e.onmessage=this._onWebSocketMessage.bind(this),e.onerror=this._onWebSocketError.bind(this),this.status=m}catch(t){this.status=b;let e={code:t.code,msg:t.message};if(!this._onError)throw new d(e.msg);this._onError(E,e)}this.onStarted&&this.onStarted(Date.now())}abort(){let t=this._ws;!t||0!==t.readyState&&1!==t.readyState||(this._requestAbort=!0,t.close()),this._ws=null,this.status=v}_onWebSocketOpen(t){this.status=y}_onWebSocketClose(t){!0!==this._requestAbort?(this.status=v,this._onComplete&&this._onComplete(0,this._receivedLength-1)):this._requestAbort=!1}_onWebSocketMessage(t){if(t.data instanceof ArrayBuffer)this._dispatchArrayBuffer(t.data);else if(t.data instanceof Blob){let e=new FileReader;e.onload=()=>{this._dispatchArrayBuffer(e.result)},e.readAsArrayBuffer(t.data)}else{this.status=b;let e={code:-1,msg:"Unsupported WebSocket message type: "+t.data.constructor.name};if(!this._onError)throw new d(e.msg);this._onError(E,e)}}_dispatchArrayBuffer(t){let e=t,i=this._receivedLength;this._receivedLength+=e.byteLength,this._onDataArrival&&this._onDataArrival(e,i,this._receivedLength)}_onWebSocketError(t){this.status=b;let e={code:t.code,msg:t.message};if(!this._onError)throw new d(e.msg);this._onError(E,e)}};var P=class{constructor(t){this._zeroStart=t||!1}getConfig(t,e){let i={};if(0!==e.from||-1!==e.to){let t;t=-1!==e.to?`bytes=${e.from.toString()}-${e.to.toString()}`:`bytes=${e.from.toString()}-`,i.Range=t}else this._zeroStart&&(i.Range="bytes=0-");return{url:t,headers:i}}removeURLParameters(t){return t}};var U=class{constructor(t,e){this._startName=t,this._endName=e}getConfig(t,e){let i=t;if(0!==e.from||-1!==e.to){let t=!0;-1===i.indexOf("?")&&(i+="?",t=!1),t&&(i+="&"),i+=`${this._startName}=${e.from.toString()}`,-1!==e.to&&(i+=`&${this._endName}=${e.to.toString()}`)}return{url:i,headers:{}}}removeURLParameters(t){let e,i=t.split("?")[0],n=t.indexOf("?");-1!==n&&(e=t.substring(n+1));let r="";if(null!=e&&e.length>0){let t=e.split("&");for(let e=0;e<t.length;e++){let i=t[e].split("="),n=e>0;i[0]!==this._startName&&i[0]!==this._endName&&(n&&(r+="&"),r+=t[e])}}return 0===r.length?i:i+"?"+r}};var O=class{constructor(t,e,i,n,r){this.TAG="IOController",this._config=e,this._extraData=i,this._mediaElement=n,this._emitter=new(a()),this._stashInitialSize=393216,null!=e.stashInitialSize&&e.stashInitialSize>0&&(this._stashInitialSize=e.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===e.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=t,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(t.url),this._refTotalLength=t.filesize?t.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._requestStartTime=null,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._bNewSlice=r,this._selectSeekHandler(),this._selectLoader(),this._createLoader(r),this._onPerRequestReceivedBytesEvent()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._backupLoaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._requestStartTime=null,this._emitter.removeAllListeners(),this._emitter=null,this._extraData=null,this._speedSampler.destroy(),this._speedSampler=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(t){this._extraData=t}get onDataArrival(){return this._onDataArrival}set onDataArrival(t){this._onDataArrival=t}get onSeeked(){return this._onSeeked}set onSeeked(t){this._onSeeked=t}get onError(){return this._onError}set onError(t){this._onError=t}get onComplete(){return this._onComplete}set onComplete(t){this._onComplete=t}get onRedirect(){return this._onRedirect}set onRedirect(t){this._onRedirect=t}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(t){this._onRecoveredEarlyEof=t}get currentURL(){return this._dataSource.url}get hasRedirect(){return null!=this._redirectedURL||null!=this._dataSource.redirectedURL}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===M?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let t=this._config;if("range"===t.seekType)this._seekHandler=new P(this._config.rangeLoadZeroStart);else if("param"===t.seekType){let e=t.seekParamStart||"bstart",i=t.seekParamEnd||"bend";this._seekHandler=new U(e,i)}else{if("custom"!==t.seekType)throw new p(`Invalid seekType in config: ${t.seekType}`);if("function"!=typeof t.customSeekHandler)throw new p("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new t.customSeekHandler}}_selectLoader(){if(this._loaderClass=null,this._config.p2pType=window.__FLV_P2P_TYPE__,this._config.p2pType){switch(this._config.p2pType){case"yf-eg":this._loaderClass=F;break;case"xl-eg":this._loaderClass=L}if(null!==this._loaderClass&&_.isSupported())return void(this._backupLoaderClass=_)}if(this._isWebSocketURL)this._loaderClass=N;else if(_.isSupported())this._loaderClass=_;else if(R.isSupported())this._loaderClass=R;else{if(!M.isSupported())throw new d("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=M}}_createLoader(t){if(this._loader=new this._loaderClass(this._seekHandler,this._config,this._mediaElement,t),!1===this._loader.needStashBuffer&&(this._enableStash=!1),"yf-loader"==this.loaderType||"xyvod-loader"==this.loaderType){let e=new this._backupLoaderClass(this._seekHandler,this._config,this._mediaElement,t);e.onHeaderReceived=this._onHeaderReceived.bind(this),e.onContentLengthKnown=this._onContentLengthKnown.bind(this),e.onURLRedirect=this._onURLRedirect.bind(this),e.onError=this._onLoaderError.bind(this),this._loader.setBackupLoader(e)}this._loader.onHeaderReceived=this._onHeaderReceived.bind(this),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onStarted=this._onLoaderStarted.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this),this._loader.onNeedStashBuffer=this._onNeedStashBuffer.bind(this),this._loader.on(x,this._onLoaderStatusChange.bind(this))}
_onPerRequestReceivedBytesEvent(){this._speedSampler.on(c.HTTP_REQUEST_ENDED,(t=>{this._emitter.emit(A,{eventName:c.HTTP_REQUEST_ENDED,eventParams:[t,this._dataSource.url]})})),this._speedSampler.on(c.P2P_REQUEST_ENDED,((t,e,i)=>{this._emitter.emit(A,{eventName:c.P2P_REQUEST_ENDED,eventParams:[t,e,i,this._dataSource.url,this._config.p2pType]})}))}open(t){this._emitter.emit(A,{eventName:c.CREATE_LOADER,eventParams:[this.loaderType]}),this._currentRange={from:0,to:-1},t&&(this._currentRange.from=t),t||(this._fullRequestFlag=!0),this._updateLoaderStashSize(),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let t=this._resumeFrom;this._resumeFrom=0,this._internalSeek(t,!0,!0)}}seek(t){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(t,!0)}_internalSeek(t,e,i){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(e);let n={from:t,to:-1};if(this._currentRange={from:n.from,to:-1},i&&"yf-loader"===this.loaderType&&this._loader.useP2pIO())return this._loader.resume(n),void(this._onSeeked&&this._onSeeked());let r=!(!i||!this._loader.noResource);this._loader.destroy(),this._loader=null,this._stashSize=this._stashInitialSize,this._selectLoader(),this._createLoader(),this._updateLoaderStashSize(),r&&void 0!==this._loader.noResource&&(this._loader.noResource=!0),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}updateUrl(t){if(!t||"string"!=typeof t||0===t.length)throw new p("Url must be a non-empty string!");this._dataSource.url=t}_expandBuffer(t){let e=this._stashSize;for(;e+1048576<t;)e*=2;if(e+=1048576,e===this._bufferSize)return;let i=new ArrayBuffer(e);if(this._stashUsed>0){let t=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(i,0,e).set(t,0)}this._stashBuffer=i,this._bufferSize=e}_normalizeSpeed(t){let e=this._speedNormalizeList,i=e.length-1,n=0,r=0,o=i;if(t<e[0])return e[0];for(;r<=o;){if(n=r+Math.floor((o-r)/2),n===i||t>=e[n]&&t<e[n+1])return e[n];e[n]<t?r=n+1:o=n-1}}_adjustStashSize(t){let e=0;if(e=this._config.isLive||t<512?t:t>=512&&t<=1024?Math.floor(1.5*t):2*t,"yf-loader"===this.loaderType){let t=this._mediaElement.buffered;(t.length<1||t.end(0)-this._mediaElement.currentTime<=10)&&e>512&&(e=512),e>2048&&(e=2048)}e>8192&&(e=8192);let i=1024*e+1048576;this._bufferSize<i&&this._expandBuffer(i),this._stashSize=1024*e,this._updateLoaderStashSize()}_dispatchChunks(t,e){return this._currentRange.to=e+t.byteLength-1,this._onDataArrival(t,e)}_onURLRedirect(t){this._redirectedURL=t,this._onRedirect&&this._onRedirect(t)}_onHeaderReceived(t){this._emitter.emit(A,{eventName:c.HTTP_HEADER_RECEIVED,eventParams:[Date.now()-this._requestStartTime,this._dataSource.url,t]})}_onContentLengthKnown(t){t&&this._fullRequestFlag&&(this._totalLength=t,this._fullRequestFlag=!1)}_onLoaderChunkArrival(t,e,i,n){if(!this._onDataArrival)throw new u("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(t.byteLength,n);let r=this._speedSampler.lastSecondKBps;if(0!==r){let t=this._normalizeSpeed(r);this._speedNormalized!==t&&(this._speedNormalized=t,this._adjustStashSize(t))}if(this._enableStash)if(0===this._stashUsed&&0===this._stashByteStart&&(this._stashByteStart=e),this._stashUsed+t.byteLength<=this._stashSize){new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength}else{let i=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let e=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(e,this._stashByteStart);if(n<e.byteLength){if(n>0){let t=new Uint8Array(e,n);i.set(t,0),this._stashUsed=t.byteLength,this._stashByteStart+=n}}else this._stashUsed=0,this._stashByteStart+=n;this._stashUsed+t.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+t.byteLength),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength}else{let n=this._dispatchChunks(t,e);if(n<t.byteLength){let r=t.byteLength-n;r>this._bufferSize&&(this._expandBuffer(r),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(t,n),0),this._stashUsed+=r,this._stashByteStart=e+n}}}else if(0===this._stashUsed){let i=this._dispatchChunks(t,e);if(i<t.byteLength){let n=t.byteLength-i;n>this._bufferSize&&this._expandBuffer(n),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(t,i),0),this._stashUsed+=n,this._stashByteStart=e+i}}else{this._stashUsed+t.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+t.byteLength);let e=new Uint8Array(this._stashBuffer,0,this._bufferSize);e.set(new Uint8Array(t),this._stashUsed),this._stashUsed+=t.byteLength;let i=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(i<this._stashUsed&&i>0){let t=new Uint8Array(this._stashBuffer,i);e.set(t,0)}this._stashUsed-=i,this._stashByteStart+=i}}_flushStashBuffer(t){if(this._stashUsed>0){let e=this._stashBuffer.slice(0,this._stashUsed),i=this._dispatchChunks(e,this._stashByteStart),n=e.byteLength-i;if(i<e.byteLength){if(!t){if(i>0){let t=new Uint8Array(this._stashBuffer,0,this._bufferSize),n=new Uint8Array(e,i);t.set(n,0),this._stashUsed=n.byteLength,this._stashByteStart+=i}return 0}l.w(this.TAG,`${n} bytes unconsumed data remain when flush buffer, dropped`)}return this._stashUsed=0,this._stashByteStart=0,n}return 0}_onLoaderStarted(t){this._emitter.emit(A,{eventName:c.LOADING_STARTED,eventParams:[t]})}_onLoaderComplete(t,e){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData,t,e,this._dataSource&&this._dataSource.url)}_onLoaderError(t,e){if(l.e(this.TAG,`Loader error, code = ${e.code}, msg = ${e.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,t=w),t===B){if(!this._config.isLive&&this._totalLength){let t=this._currentRange.to+1;return void(t<this._totalLength&&(l.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(t,!1)))}t=w}if(!this._onError)throw new d("IOException: "+e.msg);this._onError(t,e)}_onLoaderStatusChange(t,e){e!==b&&e!==v||this._speedSampler.reset(),e===m&&(this._requestStartTime=Date.now())}_onNeedStashBuffer(t){this._enableStash=t}_updateLoaderStashSize(){this._loader&&this._loader.setStashSize&&this._loader.setStashSize(this._stashSize)}on(t,e){this._emitter.addListener(t,e)}off(t,e){this._emitter.removeListener(t,e)}};const G={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:180,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:180,autoCleanupMinBackwardDuration:120,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1};function H(){return Object.assign({},G)}class V{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let t=new O({},H()),e=t.loaderType;return t.destroy(),"fetch-stream-loader"==e||"xhr-moz-chunked-loader"==e}static getNetworkLoaderTypeName(){let t=new O({},H()),e=t.loaderType;return t.destroy(),e}static supportNativeMediaPlayback(t){null==V.videoElement&&(V.videoElement=window.document.createElement("video"));let e=V.videoElement.canPlayType(t);return"probably"===e||"maybe"==e}static getFeatureList(){let t={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,
nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return t.mseFlvPlayback=V.supportMSEH264Playback(),t.networkStreamIO=V.supportNetworkStreamIO(),t.networkLoaderName=V.getNetworkLoaderTypeName(),t.mseLiveFlvPlayback=t.mseFlvPlayback&&t.networkStreamIO,t.nativeMP4H264Playback=V.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),t.nativeWebmVP8Playback=V.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),t.nativeWebmVP9Playback=V.supportNativeMediaPlayback('video/webm; codecs="vp9"'),t}}var Y=V;class z{static get forceGlobalTag(){return l.FORCE_GLOBAL_TAG}static set forceGlobalTag(t){l.FORCE_GLOBAL_TAG=t,z._notifyChange()}static get globalTag(){return l.GLOBAL_TAG}static set globalTag(t){l.GLOBAL_TAG=t,z._notifyChange()}static get enableAll(){return l.ENABLE_VERBOSE&&l.ENABLE_DEBUG&&l.ENABLE_INFO&&l.ENABLE_WARN&&l.ENABLE_ERROR}static set enableAll(t){l.ENABLE_VERBOSE=t,l.ENABLE_DEBUG=t,l.ENABLE_INFO=t,l.ENABLE_WARN=t,l.ENABLE_ERROR=t,z._notifyChange()}static get enableDebug(){return l.ENABLE_DEBUG}static set enableDebug(t){l.ENABLE_DEBUG=t,z._notifyChange()}static get enableVerbose(){return l.ENABLE_VERBOSE}static set enableVerbose(t){l.ENABLE_VERBOSE=t,z._notifyChange()}static get enableInfo(){return l.ENABLE_INFO}static set enableInfo(t){l.ENABLE_INFO=t,z._notifyChange()}static get enableWarn(){return l.ENABLE_WARN}static set enableWarn(t){l.ENABLE_WARN=t,z._notifyChange()}static get enableError(){return l.ENABLE_ERROR}static set enableError(t){l.ENABLE_ERROR=t,z._notifyChange()}static getConfig(){return{globalTag:l.GLOBAL_TAG,forceGlobalTag:l.FORCE_GLOBAL_TAG,enableVerbose:l.ENABLE_VERBOSE,enableDebug:l.ENABLE_DEBUG,enableInfo:l.ENABLE_INFO,enableWarn:l.ENABLE_WARN,enableError:l.ENABLE_ERROR,enableCallback:l.ENABLE_CALLBACK}}static applyConfig(t){l.GLOBAL_TAG=t.globalTag,l.FORCE_GLOBAL_TAG=t.forceGlobalTag,l.ENABLE_VERBOSE=t.enableVerbose,l.ENABLE_DEBUG=t.enableDebug,l.ENABLE_INFO=t.enableInfo,l.ENABLE_WARN=t.enableWarn,l.ENABLE_ERROR=t.enableError,l.ENABLE_CALLBACK=t.enableCallback}static _notifyChange(){let t=z.emitter;if(t.listenerCount("change")>0){let e=z.getConfig();t.emit("change",e)}}static registerListener(t){z.emitter.addListener("change",t)}static removeListener(t){z.emitter.removeListener("change",t)}static addLogListener(t){l.emitter.addListener("log",t),l.emitter.listenerCount("log")>0&&(l.ENABLE_CALLBACK=!0,z._notifyChange())}static removeLogListener(t){l.emitter.removeListener("log",t),0===l.emitter.listenerCount("log")&&(l.ENABLE_CALLBACK=!1,z._notifyChange())}}z.emitter=new(a());var W=z;var Z=class{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let t=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,e=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&t&&e}isSeekable(){return!0===this.hasKeyframesIndex}getNearestKeyframe(t){if(null==this.keyframesIndex)return null;let e=this.keyframesIndex,i=this._search(e.times,t);return{index:i,milliseconds:e.times[i],fileposition:e.filepositions[i]}}_search(t,e){let i=0,n=t.length-1,r=0,o=0,a=n;for(e<t[0]&&(i=0,o=a+1);o<=a;){if(r=o+Math.floor((a-o)/2),r===n||e>=t[r]&&e<t[r+1]){i=r;break}t[r]<e?o=r+1:a=r-1}return i}};function j(t,e,i){let n=t;if(e+i<n.length){for(;i--;)if(128!=(192&n[++e]))return!1;return!0}return!1}var q=function(t){let e=[],i=t,n=0,r=t.length;for(;n<r;)if(i[n]<128)e.push(String.fromCharCode(i[n])),++n;else{if(i[n]<192);else if(i[n]<224){if(j(i,n,1)){let t=(31&i[n])<<6|63&i[n+1];if(t>=128){e.push(String.fromCharCode(65535&t)),n+=2;continue}}}else if(i[n]<240){if(j(i,n,2)){let t=(15&i[n])<<12|(63&i[n+1])<<6|63&i[n+2];if(t>=2048&&55296!=(63488&t)){e.push(String.fromCharCode(65535&t)),n+=3;continue}}}else if(i[n]<248&&j(i,n,3)){let t=(7&i[n])<<18|(63&i[n+1])<<12|(63&i[n+2])<<6|63&i[n+3];if(t>65536&&t<1114112){t-=65536,e.push(String.fromCharCode(t>>>10|55296)),e.push(String.fromCharCode(1023&t|56320)),n+=4;continue}}e.push(String.fromCharCode(65533)),++n}return e.join("")};let J=function(){let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]}();class K{static parseScriptData(t,e,i){let n={};try{let r=K.parseValue(t,e,i),o=K.parseValue(t,e+r.size,i-r.size);n[r.data]=o.data}catch(t){l.e("AMF",t.toString())}return n}static parseObject(t,e,i){if(i<3)throw new u("Data not enough when parse ScriptDataObject");let n=K.parseString(t,e,i),r=K.parseValue(t,e+n.size,i-n.size),o=r.objectEnd;return{data:{name:n.data,value:r.data},size:n.size+r.size,objectEnd:o}}static parseVariable(t,e,i){return K.parseObject(t,e,i)}static parseString(t,e,i){if(i<2)throw new u("Data not enough when parse String");let n,r=new DataView(t,e,i).getUint16(0,!J);return n=r>0?q(new Uint8Array(t,e+2,r)):"",{data:n,size:2+r}}static parseLongString(t,e,i){if(i<4)throw new u("Data not enough when parse LongString");let n,r=new DataView(t,e,i).getUint32(0,!J);return n=r>0?q(new Uint8Array(t,e+4,r)):"",{data:n,size:4+r}}static parseDate(t,e,i){if(i<10)throw new u("Data size invalid when parse Date");let n=new DataView(t,e,i),r=n.getFloat64(0,!J);return r+=60*n.getInt16(8,!J)*1e3,{data:new Date(r),size:10}}static parseValue(t,e,i){if(i<1)throw new u("Data not enough when parse Value");let n,r=new DataView(t,e,i),o=1,a=r.getUint8(0),s=!1;try{switch(a){case 0:n=r.getFloat64(1,!J),o+=8;break;case 1:n=!!r.getUint8(1),o+=1;break;case 2:{let r=K.parseString(t,e+1,i-1);n=r.data,o+=r.size;break}case 3:{n={};let a=0;for(9==(16777215&r.getUint32(i-4,!J))&&(a=3);o<i-4;){let r=K.parseObject(t,e+o,i-o-a);if(r.objectEnd)break;n[r.data.name]=r.data.value,o+=r.size}if(o<=i-3){9===(16777215&r.getUint32(o-1,!J))&&(o+=3)}break}case 8:{n={},o+=4;let a=0;for(9==(16777215&r.getUint32(i-4,!J))&&(a=3);o<i-8;){let r=K.parseVariable(t,e+o,i-o-a);if(r.objectEnd)break;n[r.data.name]=r.data.value,o+=r.size}if(o<=i-3){9===(16777215&r.getUint32(o-1,!J))&&(o+=3)}break}case 9:n=void 0,o=1,s=!0;break;case 10:{n=[];let a=r.getUint32(1,!J);o+=4;for(let r=0;r<a;r++){let r=K.parseValue(t,e+o,i-o);n.push(r.data),o+=r.size}break}case 11:{let r=K.parseDate(t,e+1,i-1);n=r.data,o+=r.size;break}case 12:{let r=K.parseString(t,e+1,i-1);n=r.data,o+=r.size;break}default:o=i,l.w("AMF","Unsupported AMF value type "+a)}}catch(t){l.e("AMF",t.toString())}return{data:n,size:o,objectEnd:s}}}var X=K;var $=class{constructor(t){this.TAG="ExpGolomb",this._buffer=t,this._buffer_index=0,this._total_bytes=t.byteLength,this._total_bits=8*t.byteLength,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let t=this._total_bytes-this._buffer_index;if(t<=0)throw new u("ExpGolomb: _fillCurrentWord() but no bytes available");let e=Math.min(4,t),i=new Uint8Array(4);i.set(this._buffer.subarray(this._buffer_index,this._buffer_index+e)),this._current_word=new DataView(i.buffer).getUint32(0,!1),this._buffer_index+=e,this._current_word_bits_left=8*e}readBits(t){if(t>32)throw new p("ExpGolomb: readBits() bits exceeded max 32bits!");if(t<=this._current_word_bits_left){let e=this._current_word>>>32-t;return this._current_word<<=t,this._current_word_bits_left-=t,e}let e=this._current_word_bits_left?this._current_word:0;e>>>=32-this._current_word_bits_left;let i=t-this._current_word_bits_left;this._fillCurrentWord();let n=Math.min(i,this._current_word_bits_left),r=this._current_word>>>32-n;return this._current_word<<=n,this._current_word_bits_left-=n,e=e<<n|r,e}readBool(){
return 1===this.readBits(1)}readByte(){return this.readBits(8)}_skipLeadingZero(){let t;for(t=0;t<this._current_word_bits_left;t++)if(this._current_word&2147483648>>>t)return this._current_word<<=t,this._current_word_bits_left-=t,t;return this._fillCurrentWord(),t+this._skipLeadingZero()}readUEG(){let t=this._skipLeadingZero();return this.readBits(t+1)-1}readSEG(){let t=this.readUEG();return 1&t?t+1>>>1:-1*(t>>>1)}};class tt{static _ebsp2rbsp(t){let e=t,i=e.byteLength,n=new Uint8Array(i),r=0;for(let t=0;t<i;t++)t>=2&&3===e[t]&&0===e[t-1]&&0===e[t-2]||(n[r]=e[t],r++);return new Uint8Array(n.buffer,0,r)}static parseSPS(t){let e=tt._ebsp2rbsp(t),i=new $(e);i.readByte();let n=i.readByte();i.readByte();let r=i.readByte();i.readUEG();let o=tt.getProfileString(n),a=tt.getLevelString(r),s=1,l=420,A=[0,420,422,444],c=8;if((100===n||110===n||122===n||244===n||44===n||83===n||86===n||118===n||128===n||138===n||144===n)&&(s=i.readUEG(),3===s&&i.readBits(1),s<=3&&(l=A[s]),c=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool())){let t=3!==s?8:12;for(let e=0;e<t;e++)i.readBool()&&(e<6?tt._skipScalingList(i,16):tt._skipScalingList(i,64))}i.readUEG();let h=i.readUEG();if(0===h)i.readUEG();else if(1===h){i.readBits(1),i.readSEG(),i.readSEG();let t=i.readUEG();for(let e=0;e<t;e++)i.readSEG()}i.readUEG(),i.readBits(1);let d=i.readUEG(),u=i.readUEG(),p=i.readBits(1);0===p&&i.readBits(1),i.readBits(1);let g=0,f=0,m=0,y=0;i.readBool()&&(g=i.readUEG(),f=i.readUEG(),m=i.readUEG(),y=i.readUEG());let b=1,v=1,E=0,I=!0,C=0,B=0;if(i.readBool()){if(i.readBool()){let t=i.readByte();t>0&&t<16?(b=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][t-1],v=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][t-1]):255===t&&(b=i.readByte()<<8|i.readByte(),v=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){let t=i.readBits(32),e=i.readBits(32);I=i.readBool(),C=e,B=2*t,E=C/B}}let w=1;1===b&&1===v||(w=b/v);let x=0,Q=0;if(0===s)x=1,Q=2-p;else{x=3===s?1:2,Q=(1===s?2:1)*(2-p)}let S=16*(d+1),k=16*(u+1)*(2-p);S-=(g+f)*x,k-=(m+y)*Q;let D=Math.ceil(S*w);return i.destroy(),i=null,{profile_string:o,level_string:a,bit_depth:c,chroma_format:l,chroma_format_string:tt.getChromaFormatString(l),frame_rate:{fixed:I,fps:E,fps_den:B,fps_num:C},sar_ratio:{width:b,height:v},codec_size:{width:S,height:k},present_size:{width:D,height:k}}}static _skipScalingList(t,e){let i=8,n=8,r=0;for(let o=0;o<e;o++)0!==n&&(r=t.readSEG(),n=(i+r+256)%256),i=0===n?i:n}static getProfileString(t){switch(t){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(t){return(t/10).toFixed(1)}static getChromaFormatString(t){switch(t){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var et=tt;var it={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};class nt{static cloneDeep(t,e){if(null===t||"object"!=typeof t)return t;let i;if(nt.isTypedArray(t)&&"function"==typeof t.slice)return i=t.slice(),i;i=Array.isArray(t)?[]:{};for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];i[n]=e&&"object"==typeof r?this.cloneDeep(r,e):r}return i}static isTypedArray(t){return!!(t&&t.buffer instanceof ArrayBuffer&&t.BYTES_PER_ELEMENT)}static downloadFile(t,e){let i=document.createElement("a"),n=e.slice&&"data:"===e.slice(0,5),r=e.lastIndexOf&&e.lastIndexOf(".")>-1;i.download=t,i.style.display="none",i.href=r||n?e:URL.createObjectURL(new Blob([e])),document.body.appendChild(i),i.click(),document.body.removeChild(i)}static concatArrayBuffer(t,e){if(!t)return e;if(!e)return t;let i=new Uint8Array(t.byteLength+e.byteLength);return i.set(new Uint8Array(t),0),i.set(new Uint8Array(e),t.byteLength),i.buffer}static concatUint8Array(t,e){if(!t)return e;if(!e)return t;let i=new Uint8Array(t.byteLength+e.byteLength);return i.set(t,0),i.set(e,t.byteLength),i}}var rt=nt;class ot{constructor(t,e){this.TAG="FLVDemuxer",this._config=e,this._onError=null,this._onMediaInfo=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._onFlvFrameDecoded=null,this._onCtsWarning=null,this._onFLVDataAbnormal=null,this._dataOffset=t.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=t.hasAudioTrack,this._hasVideo=t.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._ctsWarning=!1,this._flvDataAbnormal=!1,this._hasKeyframe=!1,this._mediaInfo=new Z,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._onFlvFrameDecoded=null,this._onCtsWarning=null,this._onFLVDataAbnormal=null,this._ctsWarning=!1,this._flvDataAbnormal=!1,this._hasKeyframe=!1}static probe(t){let e=new Uint8Array(t),i={match:!1};if(70!==e[0]||76!==e[1]||86!==e[2]||1!==e[3])return i;let n=(4&e[4])>>>2!=0,r=!!(1&e[4]),o=(a=e)[s=5]<<24|a[s+1]<<16|a[s+2]<<8|a[s+3];var a,s;return o<9?i:{match:!0,consumed:o,dataOffset:o,hasAudioTrack:n,hasVideoTrack:r}}bindDataSource(t){return t.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(t){this._onTrackMetadata=t}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(t){this._onMediaInfo=t}get onError(){return this._onError}set onError(t){this._onError=t}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(t){this._onDataAvailable=t}get onFlvFrameDecoded(){return this._onFlvFrameDecoded}set onFlvFrameDecoded(t){this._onFlvFrameDecoded=t}get onCtsWarning(){return this._onCtsWarning}set onCtsWarning(t){this._onCtsWarning=t}get onFLVDataAbnormal(){return this._onFLVDataAbnormal}set onFLVDataAbnormal(t){this._onFLVDataAbnormal=t}get timestampBase(){return this._timestampBase}set timestampBase(t){this._timestampBase=t}get overridedDuration(){return this._duration}set overridedDuration(t){this._durationOverrided=!0,this._duration=t,this._mediaInfo.duration=t}set overridedHasAudio(t){this._hasAudioFlagOverrided=!0,this._hasAudio=t,this._mediaInfo.hasAudio=t}set overridedHasVideo(t){this._hasVideoFlagOverrided=!0,this._hasVideo=t,this._mediaInfo.hasVideo=t}resetMediaInfo(){this._mediaInfo=new Z}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}parseChunks(t,e){
if(!(this._onError&&this._onMediaInfo&&this._onTrackMetadata&&this._onDataAvailable))throw new u("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let i=0,n=this._littleEndian;if(0===e){if(!(t.byteLength>13))return 0;i=ot.probe(t).dataOffset}if(this._firstParse){this._firstParse=!1,e+i!==this._dataOffset&&l.w(this.TAG,"First time parsing but chunk byteStart invalid!"),0!==new DataView(t,i).getUint32(0,!n)&&l.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4}for(;i<t.byteLength;){this._dispatch=!0;let r=new DataView(t,i);if(i+11+4>t.byteLength)break;let o=r.getUint8(0),a=16777215&r.getUint32(0,!n);if(i+11+a+4>t.byteLength)break;if(8!==o&&9!==o&&18!==o){l.w(this.TAG,`Unsupported tag type ${o}, skipped`),i+=11+a+4;continue}let s=r.getUint8(4),A=r.getUint8(5),c=r.getUint8(6)|A<<8|s<<16|r.getUint8(7)<<24;0!==(16777215&r.getUint32(7,!n))&&l.w(this.TAG,"Meet tag which has StreamID != 0!");let h=i+11;switch(o){case 8:this._parseAudioData(t,h,a,c);break;case 9:this._parseVideoData(t,h,a,c,e+i);break;case 18:this._parseScriptData(t,h,a)}let d=r.getUint32(11+a,!n);d!==11+a&&l.w(this.TAG,`Invalid PrevTagSize ${d}`),i+=11+a+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}_parseScriptData(t,e,i){let n=X.parseScriptData(t,e,i);if(n.hasOwnProperty("onMetaData")){if(null==n.onMetaData||"object"!=typeof n.onMetaData)return void l.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&l.w(this.TAG,"Found another onMetaData tag!"),this._metadata=n;let t=this._metadata.onMetaData;if("boolean"==typeof t.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=t.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"==typeof t.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=t.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"==typeof t.audiodatarate&&(this._mediaInfo.audioDataRate=t.audiodatarate),"number"==typeof t.videodatarate&&(this._mediaInfo.videoDataRate=t.videodatarate),"number"==typeof t.width&&(this._mediaInfo.width=t.width),"number"==typeof t.height&&(this._mediaInfo.height=t.height),"number"==typeof t.duration){if(!this._durationOverrided){let e=Math.floor(t.duration*this._timescale);this._duration=e,this._mediaInfo.duration=e}}else this._mediaInfo.duration=0;if("number"==typeof t.framerate){let e=Math.floor(1e3*t.framerate);if(e>0){let t=e/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=t,this._referenceFrameRate.fps_num=e,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=t}}if("object"==typeof t.keyframes){this._mediaInfo.hasKeyframesIndex=!0;let e=t.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(e),t.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=t,l.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}}_parseKeyframesIndex(t){let e=[],i=[];for(let n=1;n<t.times.length;n++){let r=this._timestampBase+Math.floor(1e3*t.times[n]);e.push(r),i.push(t.filepositions[n])}return{times:e,filepositions:i}}_parseAudioData(t,e,i,n){if(i<=1)return void l.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");if(!0===this._hasAudioFlagOverrided&&!1===this._hasAudio)return;this._littleEndian;let r=new DataView(t,e,i).getUint8(0),o=r>>>4;if(2!==o&&10!==o)return void this._onError(it.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+o);let a=0,s=(12&r)>>>2;if(!(s>=0&&s<=4))return void this._onError(it.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+s);a=this._flvSoundRateTable[s];let A=1&r,h=this._audioMetadata,d=this._audioTrack;if(h||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),h=this._audioMetadata={},h.type="audio",h.id=d.id,h.timescale=this._timescale,h.duration=this._duration,h.audioSampleRate=a,h.channelCount=0===A?1:2),10===o){let r=this._parseAACAudioData(t,e+1,i-1);if(null==r)return;if(0===r.packetType){h.config&&l.w(this.TAG,"Found another AudioSpecificConfig!");let t=r.data;h.audioSampleRate=t.samplingRate,h.channelCount=t.channelCount,h.codec=t.codec,h.originalCodec=t.originalCodec,h.config=t.config,h.refSampleDuration=1024/h.audioSampleRate*h.timescale,l.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",h);let e=this._mediaInfo;e.audioCodec=h.originalCodec,e.audioSampleRate=h.audioSampleRate,e.audioChannelCount=h.channelCount,e.hasVideo?null!=e.videoCodec&&(e.mimeType='video/x-flv; codecs="'+e.videoCodec+","+e.audioCodec+'"'):e.mimeType='video/x-flv; codecs="'+e.audioCodec+'"',e.isComplete()&&this._onMediaInfo(e)}else if(1===r.packetType){let t=this._timestampBase+n,e={unit:r.data,dts:t,pts:t};d.samples.push(e),d.length+=r.data.length}else l.e(this.TAG,`Flv: Unsupported AAC data type ${r.packetType}`)}else if(2===o){if(!h.codec){let n=this._parseMP3AudioData(t,e+1,i-1,!0);if(null==n)return;h.audioSampleRate=n.samplingRate,h.channelCount=n.channelCount,h.codec=n.codec,h.originalCodec=n.originalCodec,h.refSampleDuration=1152/h.audioSampleRate*h.timescale,l.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",h);let r=this._mediaInfo;r.audioCodec=h.codec,r.audioSampleRate=h.audioSampleRate,r.audioChannelCount=h.channelCount,r.audioDataRate=n.bitRate,r.hasVideo?null!=r.videoCodec&&(r.mimeType='video/x-flv; codecs="'+r.videoCodec+","+r.audioCodec+'"'):r.mimeType='video/x-flv; codecs="'+r.audioCodec+'"',r.isComplete()&&this._onMediaInfo(r)}let r=this._parseMP3AudioData(t,e+1,i-1,!1);if(null==r)return;let o=this._timestampBase+n,a={unit:r,dts:o,pts:o};d.samples.push(a),d.length+=r.length}this._onFlvFrameDecoded&&this._onFlvFrameDecoded(c.AUDIO_FRAME_DECODED,Date.now())}_parseAACAudioData(t,e,i){if(i<=1)return void l.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");let n={},r=new Uint8Array(t,e,i);return n.packetType=r[0],0===r[0]?n.data=this._parseAACAudioSpecificConfig(t,e+1,i-1):n.data=r.subarray(1),n}_parseAACAudioSpecificConfig(t,e,i){let n=new Uint8Array(t,e,i),r=null,o=0,a=0,s=null,l=0,A=null;if(o=a=n[0]>>>3,l=(7&n[0])<<1|n[1]>>>7,l<0||l>=this._mpegSamplingRates.length)return void this._onError(it.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");let c=this._mpegSamplingRates[l],h=(120&n[1])>>>3;if(h<0||h>=8)return void this._onError(it.FORMAT_ERROR,"Flv: AAC invalid channel configuration");5===o&&(A=(7&n[1])<<1|n[2]>>>7,s=(124&n[2])>>>2);let d=self.navigator.userAgent.toLowerCase();return-1!==d.indexOf("firefox")?l>=6?(o=5,r=new Array(4),A=l-3):(o=2,r=new Array(2),A=l):-1!==d.indexOf("android")?(o=2,r=new Array(2),A=l):(o=5,A=l,r=new Array(4),l>=6?A=l-3:1===h&&(o=2,r=new Array(2),A=l)),r[0]=o<<3,r[0]|=(15&l)>>>1,r[1]=(15&l)<<7,r[1]|=(15&h)<<3,5===o&&(r[1]|=(15&A)>>>1,r[2]=(1&A)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:c,channelCount:h,codec:"mp4a.40."+o,originalCodec:"mp4a.40."+a}}_parseMP3AudioData(t,e,i,n){if(i<4)return void l.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");this._littleEndian;let r=new Uint8Array(t,e,i),o=null;if(n){if(255!==r[0])return;let t=r[1]>>>3&3,e=(6&r[1])>>1,i=(240&r[2])>>>4,n=(12&r[2])>>>2,a=3!==(r[3]>>>6&3)?2:1,s=0,l=0,A=34,c="mp3";switch(t){case 0:s=this._mpegAudioV25SampleRateTable[n];break;case 2:s=this._mpegAudioV20SampleRateTable[n];break;case 3:s=this._mpegAudioV10SampleRateTable[n]}switch(e){case 1:A=34,i<this._mpegAudioL3BitRateTable.length&&(l=this._mpegAudioL3BitRateTable[i]);break;case 2:A=33,i<this._mpegAudioL2BitRateTable.length&&(l=this._mpegAudioL2BitRateTable[i]);break;case 3:A=32,i<this._mpegAudioL1BitRateTable.length&&(l=this._mpegAudioL1BitRateTable[i])}o={bitRate:l,samplingRate:s,channelCount:a,codec:c,originalCodec:c}}else o=r;return o}_parseVideoData(t,e,i,n,r){if(i<=1)return void l.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!")
;if(!0===this._hasVideoFlagOverrided&&!1===this._hasVideo)return;let o=new Uint8Array(t,e,i)[0],a=(240&o)>>>4,s=15&o;7===s?(this._parseAVCVideoPacket(t,e+1,i-1,n,r,a),this._onFlvFrameDecoded&&this._onFlvFrameDecoded(c.VIDEO_FRAME_DECODED,Date.now())):this._onError(it.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${s}`)}_parseAVCVideoPacket(t,e,i,n,r,o){if(i<4)return void l.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");let a=this._littleEndian,s=new DataView(t,e,i),A=s.getUint8(0),h=(16777215&s.getUint32(0,!a))<<8>>8;if(!1===this._ctsWarning&&(h>500||h<0)&&this._onCtsWarning){this._ctsWarning=!0;let t={cts:h,dts:this.timestampBase+n};this._onCtsWarning(c.CTS_WARNING,t)}if(0===A)this._parseAVCDecoderConfigurationRecord(t,e+4,i-4);else if(1===A)this._parseAVCVideoData(t,e+4,i-4,n,r,o,h);else if(2!==A)return void this._onError(it.FORMAT_ERROR,`Flv: Invalid video packet type ${A}`)}_parseAVCDecoderConfigurationRecord(t,e,i){if(i<7)return void l.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");let n=this._videoMetadata,r=this._videoTrack,o=this._littleEndian,a=new DataView(t,e,i);n?void 0!==n.avcc&&l.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),n=this._videoMetadata={},n.type="video",n.id=r.id,n.timescale=this._timescale,n.duration=this._duration);let s=a.getUint8(0),A=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1!==s||0===A)return void this._onError(it.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");this._naluLengthSize=1+(3&a.getUint8(4));let c=31&a.getUint8(5);if(0===c)return void this._onError(it.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");c>1&&l.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${c}`);let h=6;for(let i=0;i<c;i++){let r=a.getUint16(h,!o);if(h+=2,0===r)continue;let s=new Uint8Array(t,e+h,r);h+=r;let l=et.parseSPS(s);if(0!==i)continue;n.codecWidth=l.codec_size.width,n.codecHeight=l.codec_size.height,n.presentWidth=l.present_size.width,n.presentHeight=l.present_size.height,n.profile=l.profile_string,n.level=l.level_string,n.bitDepth=l.bit_depth,n.chromaFormat=l.chroma_format,n.sarRatio=l.sar_ratio,n.frameRate=l.frame_rate,!1!==l.frame_rate.fixed&&0!==l.frame_rate.fps_num&&0!==l.frame_rate.fps_den||(n.frameRate=this._referenceFrameRate);let A=n.frameRate.fps_den,c=n.frameRate.fps_num;n.refSampleDuration=n.timescale*(A/c);let d=s.subarray(1,4),u="avc1.";for(let t=0;t<3;t++){let e=d[t].toString(16);e.length<2&&(e="0"+e),u+=e}n.codec=u;let p=this._mediaInfo;p.width=n.codecWidth,p.height=n.codecHeight,p.fps=n.frameRate.fps,p.profile=n.profile,p.level=n.level,p.chromaFormat=l.chroma_format_string,p.sarNum=n.sarRatio.width,p.sarDen=n.sarRatio.height,p.videoCodec=u,p.hasAudio?null!=p.audioCodec&&(p.mimeType='video/x-flv; codecs="'+p.videoCodec+","+p.audioCodec+'"'):p.mimeType='video/x-flv; codecs="'+p.videoCodec+'"',p.isComplete()&&this._onMediaInfo(p)}let d=a.getUint8(h);if(0!==d){d>1&&l.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${d}`),h++;for(let t=0;t<d;t++){let t=a.getUint16(h,!o);h+=2,0!==t&&(h+=t)}n.avcc=new Uint8Array(i),n.avcc.set(new Uint8Array(t,e,i),0),l.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",n)}else this._onError(it.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS")}_parseAVCVideoData(t,e,i,n,r,o,a){let s=this._littleEndian,A=new DataView(t,e,i),h=[],d=0,u=0;const p=this._naluLengthSize;let g=this._timestampBase+n,f=1===o;for(;u<i;){if(u+4>=i){l.w(this.TAG,`Malformed Nalu near timestamp ${g}, offset = ${u}, dataSize = ${i}`);break}let n=A.getUint32(u,!s);if(p<4&&(n>>>=8*(4-p)),n>i-p)return void l.w(this.TAG,`Malformed Nalus near timestamp ${g}, NaluSize > DataSize!`);let r=31&A.getUint8(u+p);5===r&&(f=!0);let o=new Uint8Array(t,e+u,p+n);if(k.safari&&p<4){const t=new Uint8Array(4-p);o=rt.concatUint8Array(t,o)}let a={type:r,data:o};h.push(a),d+=o.byteLength,u+=p+n}if(h.length){let t=this._videoTrack,e={units:h,length:d,isKeyframe:f,dts:g,cts:a,pts:g+a};if(f&&(e.fileposition=r),t.samples.push(e),t.length+=d,!this._flvDataAbnormal&&this._onFLVDataAbnormal)if(this._hasKeyframe||1!==o){if(2===o&&h.length>1)for(let t=0;t<h.length;t++)if(5===h[t].type){this._flvDataAbnormal=!0;let t={type:2,dts:g};this._onFLVDataAbnormal(c.FLV_DATA_ABNORMAL,t);break}}else for(let t=0;t<h.length&&5!==h[t].type;t++)if(t===h.length-1){this._flvDataAbnormal=!0;let t={type:1,dts:g};this._onFLVDataAbnormal(c.FLV_DATA_ABNORMAL,t)}f&&(this._hasKeyframe=!0)}}}var at=ot;class st{static init(){st.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in st.types)st.types.hasOwnProperty(t)&&(st.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let t=st.constants={};t.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),t.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),t.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSC=t.STCO=t.STTS,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),t.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),t.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(t){let e=8,i=null,n=Array.prototype.slice.call(arguments,1),r=n.length;for(let t=0;t<r;t++)e+=n[t].byteLength;i=new Uint8Array(e),i[0]=e>>>24&255,i[1]=e>>>16&255,i[2]=e>>>8&255,i[3]=255&e,i.set(t,4);let o=8;for(let t=0;t<r;t++)i.set(n[t],o),o+=n[t].byteLength;return i}static generateInitSegment(t){let e=st.box(st.types.ftyp,st.constants.FTYP),i=st.moov(t),n=new Uint8Array(e.byteLength+i.byteLength);return n.set(e,0),n.set(i,e.byteLength),n}static moov(t){let e=st.mvhd(t.timescale,t.duration),i=st.trak(t),n=st.mvex(t);return st.box(st.types.moov,e,i,n)}static mvhd(t,e){return st.box(st.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(t){return st.box(st.types.trak,st.tkhd(t),st.mdia(t))}static tkhd(t){let e=t.id,i=t.duration,n=t.presentWidth,r=t.presentHeight;return st.box(st.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>>8&255,255&n,0,0,r>>>8&255,255&r,0,0]))}static mdia(t){return st.box(st.types.mdia,st.mdhd(t),st.hdlr(t),st.minf(t))}static mdhd(t){let e=t.timescale,i=t.duration;return st.box(st.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}static hdlr(t){let e=null;return e="audio"===t.type?st.constants.HDLR_AUDIO:st.constants.HDLR_VIDEO,st.box(st.types.hdlr,e)}static minf(t){let e=null;return e="audio"===t.type?st.box(st.types.smhd,st.constants.SMHD):st.box(st.types.vmhd,st.constants.VMHD),st.box(st.types.minf,e,st.dinf(),st.stbl(t))}static dinf(){return st.box(st.types.dinf,st.box(st.types.dref,st.constants.DREF))}static stbl(t){
return st.box(st.types.stbl,st.stsd(t),st.box(st.types.stts,st.constants.STTS),st.box(st.types.stsc,st.constants.STSC),st.box(st.types.stsz,st.constants.STSZ),st.box(st.types.stco,st.constants.STCO))}static stsd(t){return"audio"===t.type?"mp3"===t.codec?st.box(st.types.stsd,st.constants.STSD_PREFIX,st.mp3(t)):st.box(st.types.stsd,st.constants.STSD_PREFIX,st.mp4a(t)):st.box(st.types.stsd,st.constants.STSD_PREFIX,st.avc1(t))}static mp3(t){let e=t.channelCount,i=t.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return st.box(st.types[".mp3"],n)}static mp4a(t){let e=t.channelCount,i=t.audioSampleRate,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return st.box(st.types.mp4a,n,st.esds(t))}static esds(t){let e=t.config||[],i=e.length,n=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(e).concat([6,1,2]));return st.box(st.types.esds,n)}static avc1(t){let e=t.avcc,i=t.codecWidth,n=t.codecHeight,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,n>>>8&255,255&n,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return st.box(st.types.avc1,r,st.box(st.types.avcC,e))}static mvex(t){return st.box(st.types.mvex,st.trex(t))}static trex(t){let e=t.id,i=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return st.box(st.types.trex,i)}static moof(t,e){return st.box(st.types.moof,st.mfhd(t.sequenceNumber),st.traf(t,e))}static mfhd(t){let e=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return st.box(st.types.mfhd,e)}static traf(t,e){let i=t.id,n=st.box(st.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),r=st.box(st.types.tfdt,new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])),o=st.sdtp(t),a=st.trun(t,o.byteLength+16+16+8+16+8+8);return st.box(st.types.traf,n,r,a,o)}static sdtp(t){let e=t.samples||[],i=e.length,n=new Uint8Array(4+i);for(let t=0;t<i;t++){let i=e[t].flags;n[t+4]=i.isLeading<<6|i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy}return st.box(st.types.sdtp,n)}static trun(t,e){let i=t.samples||[],n=i.length,r=12+16*n,o=new Uint8Array(r);e+=8+r,o.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,255&n,e>>>24&255,e>>>16&255,e>>>8&255,255&e],0);for(let t=0;t<n;t++){let e=i[t].duration,n=i[t].size,r=i[t].flags,a=i[t].cts;o.set([e>>>24&255,e>>>16&255,e>>>8&255,255&e,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.isNonSync,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a],12+16*t)}return st.box(st.types.trun,o)}static mdat(t){return st.box(st.types.mdat,t)}}st.init();var lt=st;var At=class{static getSilentFrame(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}};class ct{constructor(t,e,i,n,r){this.dts=t,this.pts=e,this.duration=i,this.originalDts=n,this.isSyncPoint=r,this.fileposition=null}}class ht{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(t){t.isSyncPoint=!0,this.syncPoints.push(t)}}class dt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(t){let e=this._list;0!==t.length&&(e.length>0&&t[0].originalDts<e[e.length-1].originalDts&&this.clear(),Array.prototype.push.apply(e,t))}getLastSyncPointBeforeDts(t){if(0==this._list.length)return null;let e=this._list,i=0,n=e.length-1,r=0,o=0,a=n;for(t<e[0].dts&&(i=0,o=a+1);o<=a;){if(r=o+Math.floor((a-o)/2),r===n||t>=e[r].dts&&t<e[r+1].dts){i=r;break}e[r].dts<t?o=r+1:a=r-1}return this._list[i]}}class ut{constructor(t){this._type=t,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return 0===this._list.length}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(t){let e=this._list;if(0===e.length)return-2;let i=e.length-1,n=0,r=0,o=i,a=0;if(t<e[0].originalBeginDts)return a=-1,a;for(;r<=o;){if(n=r+Math.floor((o-r)/2),n===i||t>e[n].lastSample.originalDts&&t<e[n+1].originalBeginDts){a=n;break}e[n].originalBeginDts<t?r=n+1:o=n-1}return a}_searchNearestSegmentAfter(t){return this._searchNearestSegmentBefore(t)+1}append(t){let e=this._list,i=t,n=this._lastAppendLocation,r=0;-1!==n&&n<e.length&&i.originalBeginDts>=e[n].lastSample.originalDts&&(n===e.length-1||n<e.length-1&&i.originalBeginDts<e[n+1].originalBeginDts)?r=n+1:e.length>0&&(r=this._searchNearestSegmentBefore(i.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,0,i)}getLastSegmentBefore(t){let e=this._searchNearestSegmentBefore(t);return e>=0?this._list[e]:null}getLastSampleBefore(t){let e=this.getLastSegmentBefore(t);return null!=e?e.lastSample:null}getLastSyncPointBefore(t){let e=this._searchNearestSegmentBefore(t),i=this._list[e].syncPoints;for(;0===i.length&&e>0;)e--,i=this._list[e].syncPoints;return i.length>0?i[i.length-1]:null}}var pt=class{constructor(t){this.TAG="MP4Remuxer",this._config=t,this._isLive=!0===t.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ut("audio"),this._videoSegmentInfoList=new ut("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!k.chrome||!(k.version.major<50||50===k.version.major&&k.version.build<2661)),this._fillSilentAfterSeek=k.msedge||k.msie,this._mp3UseMpegAudio=!k.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(t){return t.onDataAvailable=this.remux.bind(this),t.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(t){this._onInitSegment=t}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(t){this._onMediaSegment=t}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(t){this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(t,e){if(!this._onMediaSegment)throw new u("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(t,e),this._remuxVideo(e),this._remuxAudio(t)}_onTrackMetadataReceived(t,e){let i=null,n="mp4",r=e.codec;if("audio"===t)this._audioMeta=e,"mp3"===e.codec&&this._mp3UseMpegAudio?(n="mpeg",r="",i=new Uint8Array):i=lt.generateInitSegment(e);else{if("video"!==t)return;this._videoMeta=e,i=lt.generateInitSegment(e)}if(!this._onInitSegment)throw new u("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(t,{type:t,data:i.buffer,codec:r,container:`${t}/${n}`,
mediaDuration:e.duration})}_calculateDtsBase(t,e){this._dtsBaseInited||(t.samples&&t.samples.length&&(this._audioDtsBase=t.samples[0].dts),e.samples&&e.samples.length&&(this._videoDtsBase=e.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}_remuxAudio(t){if(null==this._audioMeta)return;let e,i=t,n=i.samples,r=-1,o=-1,a=this._audioMeta.refSampleDuration,s="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,A=this._dtsBaseInited&&void 0===this._audioNextDts,c=!1;if(!n||0===n.length)return;let h=0,d=null,u=0;s?(h=0,u=i.length):(h=8,u=8+i.length);let p=n[0].dts-this._dtsBase;if(this._audioNextDts)e=p-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())e=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(c=!0);else{let t=this._audioSegmentInfoList.getLastSampleBefore(p);if(null!=t){let i=p-(t.originalDts+t.duration);i<=3&&(i=0),e=p-(t.dts+t.duration+i)}else e=0}if(c){let t=p-e,i=this._videoSegmentInfoList.getLastSegmentBefore(p);if(null!=i&&i.beginDts<t){let e=At.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(e){let r=i.beginDts,o=t-i.beginDts;l.v(this.TAG,`InsertPrefixSilentAudio: dts: ${r}, duration: ${o}`),n.unshift({unit:e,dts:r,pts:r}),u+=e.byteLength}}else c=!1}let g=[];for(let t=0;t<n.length;t++){let i=n[t],o=i.unit,s=i.dts-this._dtsBase,A=s-e;-1===r&&(r=A);let c=0;if(t!==n.length-1){c=n[t+1].dts-this._dtsBase-e-A}else c=g.length>=1?g[g.length-1].duration:Math.floor(a);let h=!1,d=null;if(c>1.5*a&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!k.safari){h=!0;let t=Math.abs(c-a),e=Math.ceil(t/a),i=A+a;l.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\ndts: ${A+c} ms, expected: ${A+Math.round(a)} ms, delta: ${Math.round(t)} ms, generate: ${e} frames`);let n=At.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==n&&(l.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),n=o),d=[];for(let t=0;t<e;t++){let t=Math.round(i);if(d.length>0){let e=d[d.length-1];e.duration=t-e.dts}let e={dts:t,pts:t,cts:0,unit:n,size:n.byteLength,duration:0,originalDts:s,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};d.push(e),u+=o.byteLength,i+=a}let r=d[d.length-1];r.duration=A+c-r.dts,c=Math.round(a)}g.push({dts:A,pts:A,cts:0,unit:i.unit,size:i.unit.byteLength,duration:c,originalDts:s,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),h&&g.push.apply(g,d)}s?d=new Uint8Array(u):(d=new Uint8Array(u),d[0]=u>>>24&255,d[1]=u>>>16&255,d[2]=u>>>8&255,d[3]=255&u,d.set(lt.types.mdat,4));for(let t=0;t<g.length;t++){let e=g[t].unit;d.set(e,h),h+=e.byteLength}let f=g[g.length-1];o=f.dts+f.duration,this._audioNextDts=o;let m=new ht;m.beginDts=r,m.endDts=o,m.beginPts=r,m.endPts=o,m.originalBeginDts=g[0].originalDts,m.originalEndDts=f.originalDts+f.duration,m.firstSample=new ct(g[0].dts,g[0].pts,g[0].duration,g[0].originalDts,!1),m.lastSample=new ct(f.dts,f.pts,f.duration,f.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(m),i.samples=g,i.sequenceNumber++;let y=null;y=s?new Uint8Array:lt.moof(i,r),i.samples=[],i.length=0;let b={type:"audio",data:this._mergeBoxes(y,d).buffer,sampleCount:g.length,info:m};s&&A&&(b.timestampOffset=r),this._onMediaSegment("audio",b)}_remuxVideo(t){if(null==this._videoMeta)return;let e,i=t,n=i.samples,r=-1,o=-1,a=-1,s=-1;if(!n||0===n.length)return;let l=8,A=8+t.length,c=new Uint8Array(A);c[0]=A>>>24&255,c[1]=A>>>16&255,c[2]=A>>>8&255,c[3]=255&A,c.set(lt.types.mdat,4);let h=n[0].dts-this._dtsBase;if(this._videoNextDts)e=h-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())e=0;else{let t=this._videoSegmentInfoList.getLastSampleBefore(h);if(null!=t){let i=h-(t.originalDts+t.duration);i<=3&&(i=0),e=h-(t.dts+t.duration+i)}else e=0}let d=new ht,u=[];for(let t=0;t<n.length;t++){let i=n[t],o=i.dts-this._dtsBase,s=i.isKeyframe,l=o-e,A=i.cts,c=l+A;-1===r&&(r=l,a=c);let h=0;if(t!==n.length-1){h=n[t+1].dts-this._dtsBase-e-l}else h=u.length>=1?u[u.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(s){let t=new ct(l,c,h,i.dts,!0);t.fileposition=i.fileposition,d.appendSyncPoint(t)}u.push({dts:l,pts:c,cts:A,units:i.units,size:i.length,isKeyframe:s,duration:h,originalDts:o,flags:{isLeading:0,dependsOn:s?2:1,isDependedOn:s?1:0,hasRedundancy:0,isNonSync:s?0:1}})}for(let t=0;t<u.length;t++){let e=u[t].units;for(;e.length;){let t=e.shift().data;c.set(t,l),l+=t.byteLength}}let p=u[u.length-1];if(o=p.dts+p.duration,s=p.pts+p.duration,this._videoNextDts=o,d.beginDts=r,d.endDts=o,d.beginPts=a,d.endPts=s,d.originalBeginDts=u[0].originalDts,d.originalEndDts=p.originalDts+p.duration,d.firstSample=new ct(u[0].dts,u[0].pts,u[0].duration,u[0].originalDts,u[0].isKeyframe),d.lastSample=new ct(p.dts,p.pts,p.duration,p.originalDts,p.isKeyframe),this._isLive||this._videoSegmentInfoList.append(d),i.samples=u,i.sequenceNumber++,this._forceFirstIDR){let t=u[0].flags;t.dependsOn=2,t.isNonSync=0}let g=lt.moof(i,r);i.samples=[],i.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(g,c).buffer,sampleCount:u.length,info:d})}_mergeBoxes(t,e){let i=new Uint8Array(t.byteLength+e.byteLength);return i.set(t,0),i.set(e,t.byteLength),i}};var gt={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};var ft=class{constructor(t,e,i){this.TAG="TransmuxingController",this._emitter=new(a()),this._config=e,this._mediaElement=i,t.segments||(t.segments=[{duration:t.duration,filesize:t.filesize,url:t.url}]),"boolean"!=typeof t.cors&&(t.cors=!0),"boolean"!=typeof t.withCredentials&&(t.withCredentials=!1),this._mediaDataSource=t,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach((i=>{i.timestampBase=n,n+=i.duration,i.cors=t.cors,i.withCredentials=t.withCredentials,e.referrerPolicy&&(i.referrerPolicy=e.referrerPolicy)})),isNaN(n)||this._mediaDataSource.duration===n||(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(t,e){this._emitter.addListener(t,e)}off(t,e){this._emitter.removeListener(t,e)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(t,e,i){this._currentSegmentIndex=t;let n=this._mediaDataSource.segments[t],r=this._ioctl=new O(n,this._config,t,this._mediaElement,i);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),r.on(A,(t=>this._emitter.emit(A,t))),e?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(e)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(t){if(null==this._mediaInfo||!this._mediaInfo.isSeekable())return;let e=this._searchSegmentIndexContains(t);if(e===this._currentSegmentIndex){let i=this._mediaInfo.segments[e];if(null==i)this._pendingSeekTime=t;else{let e=i.getNearestKeyframe(t);this._remuxer.seek(e.milliseconds),this._ioctl.seek(e.fileposition),
this._pendingResolveSeekPoint=e.milliseconds}}else{let i=this._mediaInfo.segments[e];if(null==i)this._pendingSeekTime=t,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(e,void 0,!0);else{let n=i.getNearestKeyframe(t);this._internalAbort(),this._remuxer.seek(t),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[e].timestampBase,this._loadSegment(e,n.fileposition),this._pendingResolveSeekPoint=n.milliseconds,this._reportSegmentMediaInfo(e)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(t){let e=this._mediaDataSource.segments,i=e.length-1;for(let n=0;n<e.length;n++)if(t<e[n].timestampBase){i=n-1;break}return i}_onInitChunkArrival(t,e){let i=null,n=0;if(e>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,n=this._demuxer.parseChunks(t,e);else if((i=at.probe(t)).match){this._demuxer=new at(i,this._config),this._remuxer||(this._remuxer=new pt(this._config));let r=this._mediaDataSource;null==r.duration||isNaN(r.duration)||(this._demuxer.overridedDuration=r.duration),"boolean"==typeof r.hasAudio&&(this._demuxer.overridedHasAudio=r.hasAudio),"boolean"==typeof r.hasVideo&&(this._demuxer.overridedHasVideo=r.hasVideo),this._demuxer.timestampBase=r.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onFlvFrameDecoded=this._onFlvFrameDecoded.bind(this),this._demuxer.onCtsWarning=this._onCtsWarning.bind(this),this._demuxer.onFLVDataAbnormal=this._onFLVDataAbnormal.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),n=this._demuxer.parseChunks(t,e)}else i=null,l.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((()=>{this._internalAbort()})),this._emitter.emit(gt.DEMUX_ERROR,it.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),n=0;return n}_onFlvFrameDecoded(t,e){this._emitter.emit(A,{eventName:t,eventParams:[e]})}_onCtsWarning(t,e){this._emitter.emit(A,{eventName:t,eventParams:[e]})}_onFLVDataAbnormal(t,e){this._emitter.emit(A,{eventName:t,eventParams:[e]})}_onMediaInfo(t){null==this._mediaInfo&&(this._mediaInfo=Object.assign({},t),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Z.prototype));let e=Object.assign({},t);Object.setPrototypeOf(e,Z.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=e,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((()=>{let t=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(t)}))}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(t,e,i,n){let r=t+1;r<this._mediaDataSource.segments.length?(this._internalAbort(),this._loadSegment(r,void 0,!0)):(this._emitter.emit(gt.LOADING_COMPLETE,e,i,n),this._disableStatisticsReporter())}_onIORedirect(t){let e=this._ioctl.extraData;this._mediaDataSource.segments[e].redirectedURL=t}_onIORecoveredEarlyEof(){this._emitter.emit(gt.RECOVERED_EARLY_EOF)}_onIOException(t,e){l.e(this.TAG,`IOException: type = ${t}, code = ${e.code}, msg = ${e.msg}`),this._emitter.emit(gt.IO_ERROR,t,e),this._disableStatisticsReporter()}_onDemuxException(t,e){l.e(this.TAG,`DemuxException: type = ${t}, info = ${e}`),this._emitter.emit(gt.DEMUX_ERROR,t,e)}_onRemuxerInitSegmentArrival(t,e){this._emitter.emit(gt.INIT_SEGMENT,t,e)}_onRemuxerMediaSegmentArrival(t,e){if(null==this._pendingSeekTime&&(this._emitter.emit(gt.MEDIA_SEGMENT,t,e),null!=this._pendingResolveSeekPoint&&"video"===t)){let t=e.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,k.safari&&t.length>0&&t[0].originalDts===i&&(i=t[0].pts),this._emitter.emit(gt.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(t){let e=this._mediaInfo.segments[t],i=Object.assign({},e);i.duration=this._mediaInfo.duration,i.segmentCount=this._mediaInfo.segmentCount,delete i.segments,delete i.keyframesIndex,this._emitter.emit(gt.MEDIA_INFO,i)}_reportStatisticsInfo(){let t={};t.url=this._ioctl.currentURL,t.hasRedirect=this._ioctl.hasRedirect,t.hasRedirect&&(t.redirectedURL=this._ioctl.currentRedirectedURL),t.speed=this._ioctl.currentSpeed,t.loaderType=this._ioctl.loaderType,t.currentSegmentIndex=this._currentSegmentIndex,t.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(gt.STATISTICS_INFO,t)}};var mt=function(t){let e=null,i=function(e,i){t.postMessage({msg:"logcat_callback",data:{type:e,logcat:i}})}.bind(this);function n(e){t.postMessage({msg:A,data:e})}function o(e,i){let n={msg:gt.INIT_SEGMENT,data:{type:e,data:i}};t.postMessage(n,[i.data])}function a(e,i){let n={msg:gt.MEDIA_SEGMENT,data:{type:e,data:i}};t.postMessage(n,[i.data])}function s(e,i,n){let r={msg:gt.LOADING_COMPLETE,data:{requestUrl:n,from:e,to:i}};t.postMessage(r)}function l(){let e={msg:gt.RECOVERED_EARLY_EOF};t.postMessage(e)}function c(e){let i={msg:gt.MEDIA_INFO,data:e};t.postMessage(i)}function h(e){let i={msg:gt.STATISTICS_INFO,data:e};t.postMessage(i)}function d(e,i){t.postMessage({msg:gt.IO_ERROR,data:{type:e,info:i}})}function u(e,i){t.postMessage({msg:gt.DEMUX_ERROR,data:{type:e,info:i}})}function p(e){t.postMessage({msg:gt.RECOMMEND_SEEKPOINT,data:e})}r.install(),t.addEventListener("message",(function(r){switch(r.data.cmd){case"init":e=new ft(r.data.param[0],r.data.param[1],r.data.param[2]),e.on(gt.IO_ERROR,d.bind(this)),e.on(gt.DEMUX_ERROR,u.bind(this)),e.on(gt.INIT_SEGMENT,o.bind(this)),e.on(gt.MEDIA_SEGMENT,a.bind(this)),e.on(gt.LOADING_COMPLETE,s.bind(this)),e.on(gt.RECOVERED_EARLY_EOF,l.bind(this)),e.on(gt.MEDIA_INFO,c.bind(this)),e.on(gt.STATISTICS_INFO,h.bind(this)),e.on(gt.RECOMMEND_SEEKPOINT,p.bind(this)),e.on(A,n.bind(this));break;case"destroy":e&&(e.destroy(),e=null),t.postMessage({msg:"destroyed"});break;case"start":e.start();break;case"stop":e.stop();break;case"seek":e.seek(r.data.param);break;case"pause":e.pause();break;case"resume":e.resume();break;case"logging_config":{let t=r.data.param;W.applyConfig(t),!0===t.enableCallback?W.addLogListener(i):W.removeLogListener(i);break}}}))};var yt=class{constructor(t,e,n){if(this.TAG="Transmuxer",this._emitter=new(a()),this._mediaElement=n,e.enableWorker&&"undefined"!=typeof Worker)try{let n=i(94095);this._worker=n(mt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[t,e,this._mediaElement]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},W.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:W.getConfig()})}catch(i){l.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ft(t,e,this._mediaElement)}else this._controller=new ft(t,e,this._mediaElement);if(this._controller){let t=this._controller;t.on(gt.IO_ERROR,this._onIOError.bind(this)),t.on(gt.DEMUX_ERROR,this._onDemuxError.bind(this)),t.on(gt.INIT_SEGMENT,this._onInitSegment.bind(this)),t.on(gt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),t.on(gt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),t.on(gt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),t.on(gt.MEDIA_INFO,this._onMediaInfo.bind(this)),t.on(gt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),t.on(gt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this)),t.on(A,(t=>this._emitter.emit(A,t)))}}destroy(){
this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),W.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(t,e){this._emitter.addListener(t,e)}off(t,e){this._emitter.removeListener(t,e)}hasWorker(){return null!=this._worker}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(t){this._worker?this._worker.postMessage({cmd:"seek",param:t}):this._controller.seek(t)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(t,e){Promise.resolve().then((()=>{this._emitter.emit(gt.INIT_SEGMENT,t,e)}))}_onMediaSegment(t,e){Promise.resolve().then((()=>{this._emitter.emit(gt.MEDIA_SEGMENT,t,e)}))}_onLoadingComplete(t,e,i){Promise.resolve().then((()=>{this._emitter.emit(gt.LOADING_COMPLETE,t,e,i)}))}_onRecoveredEarlyEof(){Promise.resolve().then((()=>{this._emitter.emit(gt.RECOVERED_EARLY_EOF)}))}_onMediaInfo(t){Promise.resolve().then((()=>{this._emitter.emit(gt.MEDIA_INFO,t)}))}_onStatisticsInfo(t){Promise.resolve().then((()=>{this._emitter.emit(gt.STATISTICS_INFO,t)}))}_onIOError(t,e){Promise.resolve().then((()=>{this._emitter.emit(gt.IO_ERROR,t,e)}))}_onDemuxError(t,e){Promise.resolve().then((()=>{this._emitter.emit(gt.DEMUX_ERROR,t,e)}))}_onRecommendSeekpoint(t){Promise.resolve().then((()=>{this._emitter.emit(gt.RECOMMEND_SEEKPOINT,t)}))}_onLoggingConfigChanged(t){this._worker&&this._worker.postMessage({cmd:"logging_config",param:t})}_onWorkerMessage(t){let e=t.data,i=e.data;if("destroyed"===e.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(e.msg){case A:this._emitter.emit(A,i);break;case gt.INIT_SEGMENT:case gt.MEDIA_SEGMENT:this._emitter.emit(e.msg,i.type,i.data);break;case gt.LOADING_COMPLETE:this._emitter.emit(e.msg,i.from,i.to,i.requestUrl);break;case gt.RECOVERED_EARLY_EOF:this._emitter.emit(e.msg);break;case gt.MEDIA_INFO:Object.setPrototypeOf(i,Z.prototype),this._emitter.emit(e.msg,i);break;case gt.STATISTICS_INFO:this._emitter.emit(e.msg,i);break;case gt.IO_ERROR:case gt.DEMUX_ERROR:this._emitter.emit(e.msg,i.type,i.info);break;case gt.RECOMMEND_SEEKPOINT:this._emitter.emit(e.msg,i);break;case"logcat_callback":l.emitter.emit("log",i.type,i.logcat)}}};var bt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};var vt=class{constructor(t){this.TAG="MSEController",this._config=t,this._emitter=new(a()),this._config.isLive&&null==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new dt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(t,e){this._emitter.addListener(t,e)}off(t,e){this._emitter.removeListener(t,e)}attachMediaElement(t){if(this._mediaSource)throw new u("MediaSource has been attached to an HTMLMediaElement!");let e=this._mediaSource=new window.MediaSource;e.addEventListener("sourceopen",this.e.onSourceOpen),e.addEventListener("sourceended",this.e.onSourceEnded),e.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=t,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),t.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let t=this._mediaSource;for(let e in this._sourceBuffers){let i=this._pendingSegments[e];i.splice(0,i.length),this._pendingSegments[e]=null,this._pendingRemoveRanges[e]=null,this._lastInitSegments[e]=null;let n=this._sourceBuffers[e];n&&("closed"!==t.readyState&&(t.removeSourceBuffer(n),n.removeEventListener("error",this.e.onSourceBufferError),n.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)),this._mimeTypes[e]=null,this._sourceBuffers[e]=null)}if("open"===t.readyState)try{t.endOfStream()}catch(t){l.e(this.TAG,t.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(t,e){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(t),void this._pendingSegments[t.type].push(t);let i=t,n=`${i.container}`;i.codec&&i.codec.length>0&&(n+=`;codecs=${i.codec}`);let r=!1;if(l.v(this.TAG,"Received Initialization Segment, mimeType: "+n),this._lastInitSegments[i.type]=i,n!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])l.v(this.TAG,`Notice: ${i.type} mimeType changed, origin: ${this._mimeTypes[i.type]}, target: ${n}`);else{r=!0;try{let t=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(n);t.addEventListener("error",this.e.onSourceBufferError),t.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(t){return l.e(this.TAG,t.message),void this._emitter.emit(bt.ERROR,{code:t.code,msg:t.message})}}this._mimeTypes[i.type]=n}e||this._pendingSegments[i.type].push(i),r||this._sourceBuffers[i.type]&&!this._sourceBuffers[i.type].updating&&this._doAppendSegments(),k.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(t){let e=t;this._pendingSegments[e.type].push(e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let i=this._sourceBuffers[e.type];!i||i.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}seek(t){for(let t in this._sourceBuffers){if(!this._sourceBuffers[t])continue;let e=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{e.abort()}catch(t){l.e(this.TAG,t.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),"closed"!==this._mediaSource.readyState){for(let i=0;i<e.buffered.length;i++){let n=e.buffered.start(i),r=e.buffered.end(i);this._pendingRemoveRanges[t].push({start:n,end:r})}if(e.updating||this._doRemoveRanges(),k.safari){let i=this._lastInitSegments[t];i&&(this._pendingSegments[t].push(i),e.updating||this._doAppendSegments())}}}}endOfStream(){let t=this._mediaSource,e=this._sourceBuffers;if(t&&"open"===t.readyState)return window.__FLV_P2P_TYPE__&&this._hasPendingSegments()?(this._doAppendSegments(),void(this._hasPendingEos=!0)):void(e.video&&e.video.updating||e.audio&&e.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,t.endOfStream()));t&&"closed"===t.readyState&&this._hasPendingSegments()&&(this._hasPendingEos=!0)}getNearestKeyframe(t){return this._idrList.getLastSyncPointBeforeDts(t)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let t=this._mediaElement.currentTime;for(let e in this._sourceBuffers){let i=this._sourceBuffers[e];if(i){let e=i.buffered;if(e.length>=1&&t-e.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}
_doCleanupSourceBuffer(){let t=this._mediaElement.currentTime;for(let e in this._sourceBuffers){let i=this._sourceBuffers[e];if(i){let n=i.buffered,r=!1;for(let i=0;i<n.length;i++){let o=n.start(i),a=n.end(i);if(o<=t&&t<a+3){if(t-o>=this._config.autoCleanupMaxBackwardDuration){r=!0;let i=t-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[e].push({start:o,end:i})}}else a<t&&(r=!0,this._pendingRemoveRanges[e].push({start:o,end:a}))}r&&!i.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let t=this._sourceBuffers;if(0===this._mediaElement.readyState||"open"!==this._mediaSource.readyState)return;if(t.video&&t.video.updating||t.audio&&t.audio.updating)return;let e=this._mediaSource.duration,i=this._pendingMediaDuration;i>0&&(isNaN(e)||i>e)&&(l.v(this.TAG,`Update MediaSource duration from ${e} to ${i}`),this._mediaSource.duration=i),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let t in this._pendingRemoveRanges){if(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)continue;let e=this._sourceBuffers[t],i=this._pendingRemoveRanges[t];for(;i.length&&!e.updating;){let t=i.shift();e.remove(t.start,t.end)}}}_doAppendSegments(){let t=this._pendingSegments;for(let e in t)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating&&t[e].length>0){let i=t[e].shift();if(i.timestampOffset){let t=this._sourceBuffers[e].timestampOffset,n=i.timestampOffset/1e3;Math.abs(t-n)>.1&&(l.v(this.TAG,`Update MPEG audio timestampOffset from ${t} to ${n}`),this._sourceBuffers[e].timestampOffset=n),delete i.timestampOffset}if(!i.data||0===i.data.byteLength)continue;try{this._sourceBuffers[e].appendBuffer(i.data),this._isBufferFull=!1,"video"===e&&i.hasOwnProperty("info")&&this._idrList.appendArray(i.info.syncPoints)}catch(t){this._pendingSegments[e].unshift(i),22===t.code?(this._isBufferFull||this._emitter.emit(bt.BUFFER_FULL),this._isBufferFull=!0):(l.e(this.TAG,t.message),this._emitter.emit(bt.ERROR,{code:t.code,msg:t.message}))}}}_onSourceOpen(){if(l.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let t=this._pendingSourceBufferInit;for(;t.length;){let e=t.shift();this.appendInitSegment(e,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(bt.SOURCE_OPEN)}_onSourceEnded(){l.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){l.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let t=this._pendingSegments;return t.video.length>0||t.audio.length>0}_hasPendingRemoveRanges(){let t=this._pendingRemoveRanges;return t.video.length>0||t.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(bt.UPDATE_END)}_onSourceBufferError(t){l.e(this.TAG,`SourceBuffer Error: ${t}`)}};const Et={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},It={NETWORK_EXCEPTION:E,NETWORK_STATUS_CODE_INVALID:I,NETWORK_TIMEOUT:C,NETWORK_UNRECOVERABLE_EARLY_EOF:w,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:it.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:it.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:it.CODEC_UNSUPPORTED,ABNORMAL_SEGMENT_BYTELENGTH:"AbnormalSegmentBytelength"};var Ct=class{constructor(t,e){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(a()),this._createdTime=Date.now(),this._config=H(),"object"==typeof e&&Object.assign(this._config,e),"flv"!==t.type.toLowerCase())throw new p("FlvPlayer requires an flv MediaDataSource input!");!0===t.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=t,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let i=k.chrome&&(k.version.major<50||50===k.version.major&&k.version.build<2661);this._alwaysSeekKeyframe=!!(i||k.msedge||k.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1),delete window.__FLV_P2P_TYPE__}destroy(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(t,e){t===c.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((()=>{this._emitter.emit(c.MEDIA_INFO,this.mediaInfo)})):t===c.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((()=>{this._emitter.emit(c.STATISTICS_INFO,this.statisticsInfo)})),this._emitter.addListener(t,e)}one(t,e){this._emitter.once(t,e)}off(t,e){this._emitter.removeListener(t,e)}attachMediaElement(t){if(this._mediaElement=t,t.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),t.addEventListener("seeking",this.e.onvSeeking),t.addEventListener("canplay",this.e.onvCanPlay),t.addEventListener("stalled",this.e.onvStalled),t.addEventListener("progress",this.e.onvProgress),this._msectl=new vt(this._config),this._msectl.on(bt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(bt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(bt.SOURCE_OPEN,(()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())})),this._msectl.on(bt.ERROR,(t=>{this._emitter.emit(c.ERROR,Et.MEDIA_ERROR,It.MEDIA_MSE_ERROR,t)})),this._msectl.attachMediaElement(t),null!=this._pendingSeekTime)try{t.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new u("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new u("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new yt(this._mediaDataSource,this._config,this._mediaElement),this._transmuxer.on(gt.INIT_SEGMENT,((t,e)=>{this._msectl.appendInitSegment(e)})),this._transmuxer.on(gt.MEDIA_SEGMENT,((t,e)=>{if(this._msectl.appendMediaSegment(e),this._config.lazyLoad&&!this._config.isLive){let t=this._mediaElement.currentTime;e.info.endDts>=1e3*(t+this._config.lazyLoadMaxDuration)&&null==this._progressChecker&&(l.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}})),this._transmuxer.on(gt.LOADING_COMPLETE,((t,e,i)=>{this._msectl.endOfStream(),this._emitter.emit(c.LOADING_COMPLETE,{requestUrl:i,metadata:this._mediaInfo?this._mediaInfo.metadata:null,from:t,to:e});try{const t=this._mediaInfo.metadata.filesize;t&&e&&t!==e+1&&this._emitter.emit(c.ERROR,Et.OTHER_ERROR,It.ABNORMAL_SEGMENT_BYTELENGTH,{code:-1,msg:"Abnormal segment bytelength"})}catch(t){}
})),this._transmuxer.on(gt.RECOVERED_EARLY_EOF,(()=>{this._emitter.emit(c.RECOVERED_EARLY_EOF)})),this._transmuxer.on(gt.IO_ERROR,((t,e)=>{this._emitter.emit(c.ERROR,Et.NETWORK_ERROR,t,e)})),this._transmuxer.on(gt.DEMUX_ERROR,((t,e)=>{this._emitter.emit(c.ERROR,Et.MEDIA_ERROR,t,{code:-1,msg:e})})),this._transmuxer.on(gt.MEDIA_INFO,(t=>{this._mediaInfo=t,this._emitter.emit(c.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(gt.STATISTICS_INFO,(t=>{this._statisticsInfo=this._fillStatisticsInfo(t),this._emitter.emit(c.STATISTICS_INFO,Object.assign({},this._statisticsInfo))})),this._transmuxer.on(gt.RECOMMEND_SEEKPOINT,(t=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=t/1e3)})),this._transmuxer.on(A,(t=>{this._emitter.emit(t.eventName,...t.eventParams)})),this._transmuxer.open()))}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(t){this._mediaElement.volume=t}get muted(){return this._mediaElement.muted}set muted(t){this._mediaElement.muted=t}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(t){this._mediaElement?this._internalSeek(t):this._pendingSeekTime=t}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}get createdTime(){return this._createdTime}setP2pType(t,e){let i=!1;switch(t){case"yf-eg":window.YFCloudIO&&(i=!0),this._config.p2pSdkSrc=e;break;case"xl-eg":window.xyflv&&(i=!0),this._config.p2pSdkSrc=e;break;default:this._config.p2pSdkSrc=void 0}i?(window.__FLV_P2P_TYPE__=t,this._config.p2pType=t):this._config.p2pSdkSrc&&this._loadP2pSdkScripts().then((()=>{l.v(this.TAG,"p2p Sdk Scripts Loaded"),window.__FLV_P2P_TYPE__=t,this._config.p2pType=t})).catch((()=>{l.w(this.TAG,"load p2p sdk scripts failed")}))}_fillStatisticsInfo(t){if(t.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return t;let e=!0,i=0,n=0;if(this._mediaElement.getVideoPlaybackQuality){let t=this._mediaElement.getVideoPlaybackQuality();i=t.totalVideoFrames,n=t.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,n=this._mediaElement.webkitDroppedFrameCount):e=!1;return e&&(t.decodedFrames=i,t.droppedFrames=n),t}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let t=this._mediaElement.buffered,e=this._mediaElement.currentTime,i=0,n=0;for(let r=0;r<t.length;r++){let o=t.start(r),a=t.end(r);if(o<=e&&e<a){i=o,n=a;break}}n>=e+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(l.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){l.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let t=this._mediaElement.currentTime,e=this._mediaElement.buffered,i=!1;for(let n=0;n<e.length;n++){let r=e.start(n),o=e.end(n);if(t>=r&&t<o){t>=o-this._config.lazyLoadRecoverDuration&&(i=!0);break}}i&&(window.clearInterval(this._progressChecker),this._progressChecker=null,i&&(l.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(t){let e=this._mediaElement.buffered;for(let i=0;i<e.length;i++){let n=e.start(i),r=e.end(i);if(t>=n&&t<r)return!0}return!1}_internalSeek(t){let e=this._isTimepointBuffered(t),i=!1,n=0;if(t<1&&this._mediaElement.buffered.length>0){let e=this._mediaElement.buffered.start(0);(e<1&&t<e||k.safari)&&(i=!0,n=k.safari?.1:e)}if(i)this._requestSetTime=!0,this._mediaElement.currentTime=n;else if(e){if(this._alwaysSeekKeyframe){let e=this._msectl.getNearestKeyframe(Math.floor(1e3*t));this._requestSetTime=!0,this._mediaElement.currentTime=null!=e?e.dts/1e3:t}else this._requestSetTime=!0,this._mediaElement.currentTime=t;null!=this._progressChecker&&this._checkProgressAndResume()}else null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(t),this._transmuxer.seek(Math.floor(1e3*t)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=t)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let t=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(t)||(null!=this._progressChecker&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(t),this._transmuxer.seek(Math.floor(1e3*t)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=t))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(t){let e=this._mediaElement;if(t||!this._receivedCanPlay||e.readyState<2){let t=e.buffered;t.length>0&&e.currentTime<t.start(0)&&(l.w(this.TAG,`Playback seems stuck at ${e.currentTime}, seek to ${t.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=t.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(t){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(t){let e=this._mediaElement.currentTime,i=this._mediaElement.buffered;if(this._requestSetTime)this._requestSetTime=!1;else{if(e<1&&i.length>0){let t=i.start(0);if(t<1&&e<t||k.safari)return this._requestSetTime=!0,void(this._mediaElement.currentTime=k.safari?.1:t)}if(this._isTimepointBuffered(e)){if(this._alwaysSeekKeyframe){let t=this._msectl.getNearestKeyframe(Math.floor(1e3*e));null!=t&&(this._requestSetTime=!0,this._mediaElement.currentTime=t.dts/1e3)}null!=this._progressChecker&&this._checkProgressAndResume()}else this._seekpointRecord={seekPoint:e,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}}_onvCanPlay(t){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(t){this._checkAndResumeStuckPlayback(!0)}_onvProgress(t){this._checkAndResumeStuckPlayback()}_loadP2pSdkScripts(){return new Promise(((t,e)=>{const i=document.createElement("script");i.src=this._config.p2pSdkSrc,i.onload=()=>{window.clearTimeout(this._p2pSdkSrcTimer),t()},i.onerror=t=>{window.clearTimeout(this._p2pSdkSrcTimer),e()},document.body.appendChild(i),this._p2pSdkSrcTimer=window.setTimeout((()=>{e()}),2e3)}))}};var Bt=class{constructor(t,e){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(a()),this._createdTime=Date.now(),this._config=H(),"object"==typeof e&&Object.assign(this._config,e),"flv"===t.type.toLowerCase())throw new p("NativePlayer does't support flv MediaDataSource input!");if(t.hasOwnProperty("segments"))throw new p(`NativePlayer(${t.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=t,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(t,e){t===c.MEDIA_INFO?null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((()=>{this._emitter.emit(c.MEDIA_INFO,this.mediaInfo)
})):t===c.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then((()=>{this._emitter.emit(c.STATISTICS_INFO,this.statisticsInfo)})),this._emitter.addListener(t,e)}one(t,e){this._emitter.once(t,e)}off(t,e){this._emitter.removeListener(t,e)}attachMediaElement(t){if(this._mediaElement=t,t.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{t.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new u("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(t){this._mediaElement.volume=t}get muted(){return this._mediaElement.muted}set muted(t){this._mediaElement.muted=t}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(t){this._mediaElement?this._mediaElement.currentTime=t:this._pendingSeekTime=t}get mediaInfo(){let t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let t={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return t;let e=!0,i=0,n=0;if(this._mediaElement.getVideoPlaybackQuality){let t=this._mediaElement.getVideoPlaybackQuality();i=t.totalVideoFrames,n=t.droppedVideoFrames}else null!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,n=this._mediaElement.webkitDroppedFrameCount):e=!1;return e&&(t.decodedFrames=i,t.droppedFrames=n),t}get createdTime(){return this._createdTime}_onvLoadedMetadata(t){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(c.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(c.STATISTICS_INFO,this.statisticsInfo)}};r.install();let wt={createPlayer:function(t,e){let i=t;if(null==i||"object"!=typeof i)throw new p("MediaDataSource must be an javascript object!");if(!i.hasOwnProperty("type"))throw new p("MediaDataSource must has type field to indicate video file type!");return"flv"===i.type?new Ct(i,e):new Bt(i,e)},isSupported:function(){return Y.supportMSEH264Playback()},getFeatureList:function(){return Y.getFeatureList()}};wt.Events=c,wt.ErrorTypes=Et,wt.ErrorDetails=It,wt.FlvPlayer=Ct,wt.NativePlayer=Bt,wt.LoggingControl=W,Object.defineProperty(wt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var xt=wt},72927:function(t,e,i){"use strict";i.d(e,{RB:function(){return s},dN:function(){return A},kA:function(){return l}});var n=i(92452),r=i(47614),o=i(55391),a=i.n(o),s=(t=>(t[t.DmMaskWallBizTypeUnknown=0]="DmMaskWallBizTypeUnknown",t[t.DmMaskWallBizTypeOGV=1]="DmMaskWallBizTypeOGV",t[t.DmMaskWallBizTypeBizPic=2]="DmMaskWallBizTypeBizPic",t[t.DmMaskWallBizTypeMute=3]="DmMaskWallBizTypeMute",t[t.DmMaskWallBizTypeRecord=4]="DmMaskWallBizTypeRecord",t))(s||{}),l=(t=>(t[t.DmMaskWallContentTypeUnknown=0]="DmMaskWallContentTypeUnknown",t[t.DmMaskWallContentTypeText=1]="DmMaskWallContentTypeText",t[t.DmMaskWallContentTypePic=2]="DmMaskWallContentTypePic",t))(l||{});class A extends n.eV{constructor(){super(...arguments),this.tag="HttpDanmaku",this.retried=0}dmSettingEmptyFill(t){t.aiLevel=t.aiLevel||0,t.aiSwitch=t.aiSwitch||!1,t.bold=t.bold||!1,t.dmSwitch=t.dmSwitch||!1,t.dmask=t.dmask||!1,t.fontborder=t.fontborder||0,t.fontfamily=t.fontfamily||"SimHei, 'Microsoft JhengHei'",t.fontsize=t.fontsize||0,t.fullscreensync=t.fullscreensync||!1,t.opacity=t.opacity?Number(t.opacity.toFixed(2)):0,t.preventshade=t.preventshade||!1,t.seniorModeSwitch=t.seniorModeSwitch||0,t.speedplus=t.speedplus?Number(t.speedplus.toFixed(2)):0,t.speedsync=t.speedsync||!1,t.typeColor=t.typeColor||!1,t.typeSpecial=t.typeSpecial||!1,t.typeTopBottom=t.typeTopBottom||!1,t.dmarea=t.dmarea||0,t.dmdensity=t.dmdensity||1,t.typeScroll=t.typeScroll||!1}initPb(){this.pb2Json=this.pb2Json||new r.Z({protocols:"proto",protobuf:a()})}r(t,e){return i=this,n=null,r=function*(){return this.initPb(),this.config=Object.assign({url:null,retryCount:3,retryInterval:500,withCredentials:!0,type:"dm"},e),this.getRemoteResponse().then((t=>{var e;const i=this.pb2Json.toJson(new Uint8Array(t.data),{type:this.config.type})||{};return i.dmSetting&&this.dmSettingEmptyFill(i.dmSetting),{error:null,details:i,size:(null==(e=t.data)?void 0:e.byteLength)||0}})).catch((t=>({error:t,details:null,size:0})))},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}getRemoteResponse(){return"function"==typeof this.config.getDataFromLocalCache?this.config.getDataFromLocalCache():this.request({url:this.config.url,withCredentials:this.config.withCredentials,responseType:"arraybuffer"}).catch((t=>!n.eV.isCanceled(t)&&!n.eV.isGaiaFailed(t)&&this.config.retryCount>this.retried?new Promise(((t,e)=>{this.timer=window.setTimeout((()=>{this.retried++,this.getRemoteResponse().then(t,e),this.log.i(`Retry: ${this.retried}/${this.config.retryCount}`)}),this.config.retryInterval)})):Promise.reject(t)))}dispose(t){super.dispose(t),clearTimeout(this.timer)}getArrayBufferCode(t){var e,i;return(null==(i=null==(e=null==t?void 0:t.config)?void 0:e.url)?void 0:i.includes("//api.bilibili.com/x/v2/dm/wbi/web/seg.so"))?0:super.getArrayBufferCode(t)}}},35692:function(t,e,i){"use strict";i.d(e,{U:function(){return n}});var n=(t=>(t.Section="SECTION",t.Episodes="EPISODES",t.Item="ITEM",t))(n||{})},83370:function(t,e,i){"use strict";i.d(e,{C$:function(){return b},H$:function(){return y},JC:function(){return I},Qv:function(){return w},Vp:function(){return E},ZX:function(){return B},bU:function(){return m},d9:function(){return v},eH:function(){return C},xL:function(){return x}});var n=i(92452),r=i(43122),o=i(51102),a=i(54981),s=i(95999),l=i(745),A=Object.defineProperty,c=Object.defineProperties,h=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,g=(t,e,i)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,f=(t,e)=>{for(var i in e||(e={}))u.call(e,i)&&g(t,i,e[i]);if(d)for(var i of d(e))p.call(e,i)&&g(t,i,e[i]);return t},m=(t=>(t[t.Anime=1]="Anime",t[t.Movie=2]="Movie",t[t.Documentary=3]="Documentary",t[t.CHN=4]="CHN",t[t.Tv=5]="Tv",t[t.Var=7]="Var",t))(m||{}),y=(t=>(t.HDR10="10",t.HDR_VIVID="vivid",t.HDR_Dolby="dolby",t.SDR_ENHANCED="sdr_enhanced",t.AI_ENHANCED="ai_enhanced",t))(y||{}),b=(t=>(t[t.CICC_HOME_NETWORK=2]="CICC_HOME_NETWORK",t))(b||{}),v=(t=>(t.HIGH_QUALITY="高清优先",t))(v||{}),E=(t=>(t[t.Done=0]="Done",t[t.Uni_NeedPay=87005]="Uni_NeedPay",t[t.Pugv_NeedPay=-403]="Pugv_NeedPay",t[t.Charing_NeedPay=87008]="Charing_NeedPay",t[t.Old_Charing_NeedPay=87007]="Old_Charing_NeedPay",
t))(E||{}),I=(t=>(t[t.DEFAULT=0]="DEFAULT",t))(I||{}),C=(t=>(t[t.None=0]="None",t[t.FairPlay=1]="FairPlay",t[t.Widevine=2]="Widevine",t[t.BiliSelf=3]="BiliSelf",t))(C||{}),B=(t=>(t[t.Initialize=0]="Initialize",t[t.Switch_Quality=1]="Switch_Quality",t[t.Failed_Retry=2]="Failed_Retry",t[t.DRM_Fallback=3]="DRM_Fallback",t[t.LanguageSwitch=4]="LanguageSwitch",t[t.Reload_Access=5]="Reload_Access",t))(B||{});class w{static getUrl(t){return{[a.HR.Ugc]:"api.bilibili.com/x/player/wbi/playurl",[a.HR.Pgc]:"api.bilibili.com/pgc/player/web/v2/playurl",[a.HR.Manager]:"manager.bilibili.co/v2/playurl",[a.HR.Pugv]:"api.bilibili.com/pugv/player/web/playurl",[a.HR.Oneself]:"member.bilibili.com/x/web/archive/video/playurl"}[t]}static getPlayUrlBody(t){return t?t.data&&"object"==typeof t.data?t.data:t.result&&"object"==typeof t.result?t.result.video_info:t:t}static getFragmentVideoList(t){return t?t.result&&"object"==typeof t.result&&t.result.fragment_videos&&"object"==typeof t.result.fragment_videos?t.result.fragment_videos:t.data&&t.data.fragment_videos?t.data.fragment_videos:void 0:t}static getPlayConfInfo(t){return t?t.data&&"object"==typeof t.data?t.data.play_conf:null:t}static getPlayUrlViewInfo(t){return t?t.result&&"object"==typeof t.result?t.result.view_info:t.data&&"object"==typeof t.data?t.data.view_info:null:t}static getPlayViewBusinessInfo(t){return t?t.result&&"object"==typeof t.result?t.result.play_view_business_info:t.data?t.data.play_view_business_info:void 0:t}static replaceUrlProtocol(t){return Array.isArray(t)?t.map((t=>(t.base_url&&(t.baseUrl=t.base_url.replace(/http:\/\//g,"https://")),Array.isArray(t.backup_url)&&(t.backupUrl=t.backup_url.map((t=>t.replace(/http:\/\//g,"https://")))),t))):t}static setContentProtection(t){return Array.isArray(t)?t.map((t=>(t&&(t.ContentProtection={schemeIdUri:"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e",value:"ClearKey1.0"}),t))):t}static setContentProtectionPSSH(t){return Array.isArray(t)?t.map((t=>(t&&t.widevine_pssh&&(t.ContentProtection={schemeIdUri:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",pssh:{__prefix:"cenc",__text:t.widevine_pssh}}),t))):t}static normalize(t){return t&&(t.quality&&(t.quality=r.nJ.normalize(t.quality)),Array.isArray(t.acceptQuality)&&(t.acceptQuality=t.acceptQuality.map((t=>r.nJ.normalize(t))))),t}}class x extends n.eV{constructor(){super(...arguments),this.tag="HttpPlayUrl",this.retried=0}static get reqCacheKey(){return"__REQ_INFO__"}static getFnVal(t){let e=1;return t&&t.mseSupported&&(e=16,t.enableHEVC&&(e=2e3),t.enableAV1&&(e=4048)),e}static checkPrefetch(t,e,i,n){const r=w.getPlayUrlBody(t),o=t&&t[x.reqCacheKey];if(r&&"object"==typeof r){if(o&&i){if(["qn","fnver","fnval"].some((t=>o[t]&&i[t]&&o[t]!==i[t])))return!1}const t=r.format&&r.format.indexOf("mp4")>-1;return e?!t||n:t}return!1}static parseFragmentVideoInfoList(t,e){const i=[];return Array.isArray(t)&&t.length>0?(t.forEach((t=>{const n=t.fragment_info,o=t.playable_status,a=t.video_info;let s={fragmentInfo:n,playStatus:o};if(a){const t={},i=a.dash,n=a.timelength||a.time_length,o=a.accept_quality||[2],l=a.accept_description;let A="http";if(t.type=a.dash.type,t.duration=n||0,t.url=i,t.type="dash",e.enableSSLStream&&(A="https"),e.enableSSLStream&&t.url){const e=t.url;e.video=w.replaceUrlProtocol(e.video),e.audio=w.replaceUrlProtocol(e.audio)}const c=x.parseLoudnessParams(a);s=Object.assign({},s,{timelength:n,acceptQuality:o,acceptDescription:l,mediaDataSource:t,loudnessParams:c}),Array.isArray(s.acceptQuality)&&(s.acceptQuality=s.acceptQuality.map((t=>r.nJ.normalize(t))))}i.push(s)})),i):[]}static parseStrategyTrialInfo(t){return{enabled:!0,trialProgressEnd:t.time_length,promptText:t.prompt_text,autoSwitch:t.auto_switch,stuuid:t.st_uuid}}static parseViewInfo(t){const e={};return t.qn_trial_info&&(e.qnTrialInfo=t.qn_trial_info),t.ai_repair_qn_trial_info&&(e.aiRepairQnTrialInfo=t.ai_repair_qn_trial_info),t.strategy_trial_info&&(e.strategyTrialInfo=x.parseStrategyTrialInfo(t.strategy_trial_info)),t.sponsor&&(e.sponsor=t.sponsor),e}static parsePlayConf(t){const e={isNewDescription:!1};return t&&t.is_new_description&&(e.isNewDescription=t.is_new_description),e}static parsePlayViewBusinessInfo(t){const e={episodeInfo:null,userStatus:{vip_info:null,pay_info:null},seasonInfo:null},i=t.episode_info,n=t.user_status,r=t.season_info;if(i&&(e.episodeInfo=i),r&&(e.seasonInfo=r),n){const t=e.userStatus;t.vip_info=n.vip_info,t.pay_info=n.pay_info,n.watch_progress?t.watch_progress={lastEpId:n.watch_progress.last_ep_id,lastEpIndex:n.watch_progress.last_ep_index,lastTime:n.watch_progress.last_time,currentWatchProgress:n.watch_progress.current_watch_progress}:t.watch_progress={lastEpId:0,lastEpIndex:0,lastTime:0,currentWatchProgress:0}}return e}static parseLanguageInfo(t){if(!t||!t.language||!t.language.support)return null;if(t.language){const e=t.language,i=e.items.map((t=>({lang:t.lang,type:t.production_type||s.$.AI_VOICE,subtitleLang:t.subtitle_lang,mouthChange:t.video_mouth_shape_change,title:t.title,deText:t.video_detext}))),n=e.bubble||{};return{langList:i,bubble:{title:n.title||"试试AI原声翻译",type:n.type||2},support:e.support,listTitle:e.list_title,openToast:e.open_toast,closeToast:e.close_toast,defaultTitle:e.default_title}}return null}static parseLoudnessParams(t){if(t.volume&&t.volume.measured_i&&t.volume.multi_scene_args){const e=t.volume,i=e.multi_scene_args,n=+e.measured_i,r=+i.undersized_target_i;if(n>=r)return{measuredI:e.measured_i,targetI:e.target_i,measuredTp:e.measured_tp,targetTp:e.target_tp,multiSceneArgs:{highDynamicTargetI:+i.high_dynamic_target_i,normalTargetI:+i.normal_target_i,undersizedTargetI:r}}}return null}static parse(t,e,i){var r,a,A,d;const u={raw:t,error:null,body:null},p=(e,n,r)=>(u.error={code:m,errType:e,message:n||y,srcUrl:i,playPermissionDenied:r,raw:(0,l.Z)({},t)},u);if(!t)return p(n.oo.E_Resolve,"Invalid response");const g=(0,l.Z)({},t),m=g.code,y=g.message,b=g.session;if(g.result&&g.result.play_check&&"PLAY_NONE"===g.result.play_check.play_detail)return p(n.oo.E_Resolve,"play permission denied",!0);const v={},E=w.getPlayUrlBody(g),I=w.getFragmentVideoList(g),C=x.parseFragmentVideoInfoList(I,e),B=w.getPlayUrlViewInfo(g);let Q;B&&(Q=x.parseViewInfo(B));const S=w.getPlayViewBusinessInfo(g);let k,D,_;if(S&&(_=x.parsePlayViewBusinessInfo(S),null==(r=null==_?void 0:_.userStatus)?void 0:r.watch_progress)){const{lastEpId:t,currentWatchProgress:e}=_.userStatus.watch_progress;k=e,D=t}const R=w.getPlayConfInfo(g),M=x.parsePlayConf(R);switch(m){case 87005:case-403:return p(n.oo.E_Resolve,y||"付费稿件未付费不可观看");case 87008:case 87007:return p(n.oo.E_Resolve,y||"充电专属稿件未开启充电不可观看")}if(null!=m&&0!==m)return p(n.oo.E_Resolve,`${m}:${y}`);if(!E)return p(n.oo.E_Resolve,"Invalid body");const T=E.accept_quality||[2],F=E.accept_description,L=E.format,N=E.timelength,P=E.drm_tech_type,U=E.durl,O=E.dash?"dash":L&&L.indexOf("mp4")>-1?"mp4":"flv";if(!("dash"===O||Array.isArray(U)&&U.length))return p(n.oo.E_Resolve,"Invalid durl");let G=E.quality,H="http";switch(v.type=O,v.duration=0,O){case"dash":if(v.duration=N||0,v.url=E.dash,e.enableSSLStream&&(H="https"),e.enableSSLStream&&v.url)if("string"==typeof v.url)v.url=v.url.replace(/http:\/\//g,"https://");else{const t=v.url;if(t.video=w.replaceUrlProtocol(t.video),t.audio=w.replaceUrlProtocol(t.audio),3===P?(t.video=w.setContentProtection(t.video),t.audio=w.setContentProtection(t.audio)):2===P&&(t.video=w.setContentProtectionPSSH(t.video),t.audio=w.setContentProtectionPSSH(t.audio)),(null==e?void 0:e.fromLocalCache)&&(null==t||delete t.flac,null==t||delete t.dolby),120===G&&o.X.gecko.alike)for(let e=0;e<t.video.length;e++){const i=t.video[e];if(G===i.id&&7===i.codecid){const t=document.createElement("video");t&&t.canPlayType&&t.canPlayType(`video/mp4; codecs="${i.codecs}, mp4a.40.2"`)||(F.splice(0,1),T.splice(0,1),G=T[0],E.quality=T[0]);break}}}break;case"mp4":{const t=U&&U[0];let i=t&&t.url;const n=[];e.enableSSLStream&&"string"==typeof i&&(H="https",i=i.replace(/http:\/\//g,"https://")),Array.isArray(t.backup_url)&&t.backup_url.forEach((t=>{e.enableSSLStream&&"string"==typeof t&&(H="https",t=t.replace(/http:\/\//g,"https://")),n.push(t)})),v.url=i,v.backupURL=n,
v.duration=t.length;break}default:v.segments=[],v.duration=0,Array.isArray(U)&&U.forEach((t=>{let i=t.url;const n={},r=[];e.enableSSLStream&&"string"==typeof i&&(H="https",i=i.replace(/http:\/\//g,"https://")),Array.isArray(t.backup_url)&&t.backup_url.forEach((t=>{e.enableSSLStream&&"string"==typeof t&&(H="https",t=t.replace(/http:\/\//g,"https://")),r.push(t)})),n.duration=t.length,n.filesize=t.size,n.url=i,n.backupURL=r,v.duration+=t.length,v.segments&&v.segments.push(n)}))}const V=E.clip_info_list,Y=E.is_drm,z=E.abtid,W=E.dm_offset,Z=E.is_preview,j=E.last_play_cid,q=[],J={items:[],groups:{items:[],type:"format_group"}},K=t=>((t,e)=>c(t,h(e)))(f({},{}),{canWatchQnReason:t.can_watch_qn_reason,limitWatchQnReason:t.limit_watch_qn_reason,report:t.report}),X=E.record_info;let $;k=E.last_play_time||k,X&&Object.values(X).some((t=>!!t))&&($={record:X.record,recordIcon:X.record_icon}),E.format_panel&&E.format_panel.items&&Array.isArray(E.format_panel.items)&&E.format_panel.items.forEach((t=>{if("format_group"===t.type&&t.format_group.formats.forEach((t=>{J.groups.items.push(f({quality:t.quality,codecs:t.codecs,format:t.format,title:t.title,hasPreview:t.has_preview,formatTag:t.format_tag?{hdrTag:t.format_tag.hdr_tag,resolutionTag:t.format_tag.resolution_tag,frameTag:t.format_tag.frame_tag,isVipVision:t.format_tag.is_vip_vision}:void 0,needLogin:t.need_login},K(t)))})),"format"===t.type){const e=t.format;J.items.push(f({quality:e.quality,codecs:e.codecs,format:e.format,title:e.title,hasPreview:e.has_preview,needLogin:e.need_login},K(e)))}})),Array.isArray(E.support_formats)&&E.support_formats.forEach((t=>{q.push(f({displayDesc:t.display_desc,superscript:t.superscript,needLogin:t.need_login,format:t.format,description:t.description,needVip:t.need_vip,quality:t.quality,newDescription:t.new_description,codecs:t.codecs,has_preview:!!t.has_preview,subtitle:t.subtitle},K(t)))}));const tt=x.parseLoudnessParams(E),et=x.parseLanguageInfo(E),it=E.cur_language||"",nt=E.cur_production_type||(""===it?s.$.DEFAULT:s.$.AI_VOICE),rt=(null==(a=E.auto_qn_resp)?void 0:a.dyeid)||E.dyeid||"";let ot=null;if(null==(A=E.auto_qn_resp)?void 0:A.qn_feature){ot=(null==(d=E.auto_qn_resp)?void 0:d.qn_feature).quality_tag}u.error=null,u.body={format:L,quality:G,timelength:N,streamType:H,acceptQuality:T,acceptDescription:F,mediaDataSource:v,supportFormats:q,clipInfoList:V,isPreview:Z,abTestId:z,dmOffset:W,session:b,isDrm:Y,drmTechType:P,lastPlayCid:j,lastPlayTime:k,recordInfo:$,loudnessParams:tt,viewInfo:Q,playViewBusinessInfo:_,lastPlayEpid:D,playConf:M,formatPanel:J,curLanguage:it,languageType:nt,languageInfo:et,videoDyeId:rt,qualityTag:ot},u.body=w.normalize(u.body),C.forEach((t=>{for(let e in u.body)u.body.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=u.body[e])}));const at=C.filter((t=>{var e;return"PRE"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&!0===(null==t?void 0:t.playStatus)})),st=C.filter((t=>{var e;return"POST"===(null==(e=null==t?void 0:t.fragmentInfo)?void 0:e.fragment_position)&&!0===(null==t?void 0:t.playStatus)}));return u.body.parsedReportFragmentVideoInfoList=C,u.body.parsedFragmentVideoInfoList=at.concat([u.body],st),u}get retryInterval(){return("hidden"===document.visibilityState?6e3:4e3)+(1e3*(this.retried+1)+1e3*Math.random())|0}abortRetry(){this.retryTimer&&clearTimeout(this.retryTimer),this.retryTimer=null}r(t,e){return i=this,n=null,r=function*(){var i;if(this.retried=0,this.params=t,this.config=Object.assign({retryCount:3},e,{enableSSLStream:!0,enableSSLResolve:!0}),this.fragmentUrl=w.getUrl(this.config.kind),!this.config.fromPrefetch&&x.checkPrefetch(e.preloadPlayUrl,this.config.mseSupported,this.params,null==(i=this.config)?void 0:i.isOutsideReload)||e.fromLocalCache){const t=this.parse(e.preloadPlayUrl,this.config);if(t.error){if(this.log.w("prefetch error",t.error.message),e.fromLocalCache)throw t.error;return this.getRemoteResponse(this.config.retryCount)}return this.log.i("prefetch succeed"),Promise.resolve({raw:e.preloadPlayUrl,body:t.body,response:null,retries:-1})}return this.getRemoteResponse(this.config.retryCount)},new Promise(((t,e)=>{var o=t=>{try{s(r.next(t))}catch(t){e(t)}},a=t=>{try{s(r.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(i,n)).next())}));var i,n,r}getRemoteResponse(t,e){var i,r,o;const a=e?`http://${this.fragmentUrl}`:`//${this.fragmentUrl}`;return(null!=(o=null==(r=(i=this.config).requestFunc)?void 0:r.call(i,this.params,this.config))?o:this.request({url:a,params:this.params,withCredentials:!0},{isManualDeleteCache:!0})).then((t=>{var e;try{const i=null==(e=t.headers)?void 0:e["x-bili-trace-id"];i&&this.log.i("[PlayUrl] trace-id:",i)}catch(t){}if(this.config.fromPrefetch)return{raw:t.data,body:null,response:t,retries:this.retried};const i=this.parse(t.data,this.config,a);if(i.error){if(i.error.raw=t.data,i.error.retries=this.retried,this.log.e("parse error",i.error.message),!i.error.playPermissionDenied){const t=Object.assign({},{cancelToken:this.cancelSource.token},{url:a,params:this.params,withCredentials:!0});this.delHttpCache(this.getUrlWithParams(t))}return Promise.reject(i.error)}return{raw:t.data,body:i.body,response:t,retries:this.retried}}),(i=>{if(n.eV.isCanceled(i))return Promise.reject(i);if(n.eV.isGaiaFailed(i))return Promise.reject(i);if(i)switch(i.code){case 87005:case-403:case 87008:case 87007:return Promise.reject(i)}return(/^https:/.test(a)||/^\/\//.test(a)&&"https:"===location.protocol)&&(t||"http:"===location.protocol)?(this.abortRetry(),new Promise(((i,n)=>{this.retryTimer=window.setTimeout((()=>{this.retried++,this.retryTimer=null,this.log.i(`Retry: ${this.retried}/${this.config.retryCount}`),t?this.getRemoteResponse(--t,e).then(i).catch(n):this.getRemoteResponse(0,!0).then(i).catch(n)}),this.retryInterval)}))):Promise.reject({code:i.code||n.oo.E_Network,errType:n.oo.E_Network,message:i.response&&i.response.status&&i.response.status.toString()||"",url:a,retries:this.retried})}))}parse(t,e,i){return this.isIllegal(t,!0),x.parse(t,e,i)}dispose(t){super.dispose(t),this.abortRetry()}}},67644:function(t,e,i){"use strict";i.d(e,{E:function(){return r}});var n=i(92452);class r extends n.eV{constructor(){super(...arguments),this.tag="HttpShareForbid",this.url="//api.bilibili.com/x/polymer/web-player/v1/fc-macth"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,params:t,withCredentials:!0}).then((t=>{var e,i;return t&&t.data&&t.data.data?t.data.data:Promise.reject({code:null==(e=null==t?void 0:t.data)?void 0:e.code,message:null==(i=null==t?void 0:t.data)?void 0:i.message})}))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}},84433:function(t,e,i){"use strict";i.d(e,{h:function(){return o}});var n=i(92452),r=i(44127);class o extends n.eV{constructor(){super(...arguments),this.tag="HttpStatsLog",this.url="//data.bilibili.com/log/web"}sendBeacon(t){window.navigator&&"function"==typeof window.navigator.sendBeacon?window.navigator.sendBeacon(this.getSerializedUrl(t)):this.r(t).catch(r.Z)}r(t){return e=this,i=null,n=function*(){return this.request({url:this.getSerializedUrl(t),withCredentials:!0})},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}getSerializedUrl(t){if("string"==typeof t)return`${this.url}?${t}`;const e=[t.ctime,t.fid,t.ver,t.eventId,t.eventParam,t.displayId,t.seasonId,t.episodeId,t.aid,t.cid,t.part,t.currentTime,t.readyState,t.statue,t.handover,t.sourceType,t.quality,t.realtime,t.srcUrl,t.exParam,t.abVer,t.label].join("|");return`${this.url}?${t.logId}${Date.now()}${e}`}}},43426:function(t,e,i){"use strict";i.d(e,{I:function(){return r}});var n=i(92452);class r extends n.eV{constructor(){super(...arguments),this.tag="HttpSubtitleIssue",this.url="//api.bilibili.com/x/v2/dm/subtitle/report/v2/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,method:"POST",data:t,
withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}},65214:function(t,e,i){"use strict";i.d(e,{m:function(){return r}});var n=i(92452);class r extends n.eV{constructor(){super(...arguments),this.tag="HttpSubtitle"}r(t,e=0,i=0){return n=this,r=null,o=function*(){return this.request({url:t,responseType:"json"}).then((t=>({body:this.parse(t.data,e,i),response:t})))},new Promise(((t,e)=>{var i=t=>{try{s(o.next(t))}catch(t){e(t)}},a=t=>{try{s(o.throw(t))}catch(t){e(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,a);s((o=o.apply(n,r)).next())}));var n,r,o}parse(t,e,i){if(!t)return null;const n=t.body.map((t=>({to:t.to,from:t.from,content:t.content,location:t.location,sid:t.sid,type:e,ai_type:i})));return n.sort(((t,e)=>t.from-e.from)),{list:n,stroke:t.Stroke,fontSize:t.font_size,fontColor:t.font_color,backgroundAlpha:t.background_alpha,backgroundColor:t.background_color}}}},55537:function(t,e,i){"use strict";i.d(e,{YR:function(){return a},dd:function(){return r},gC:function(){return o}});var n=i(92452),r=(t=>(t[t.Add_Attention=1]="Add_Attention",t[t.Cancel_Attention=2]="Cancel_Attention",t[t.Quiet_Add_Attenyion=3]="Quiet_Add_Attenyion",t[t.Quiet_Cancel_Attention=4]="Quiet_Cancel_Attention",t[t.Add_Block=5]="Add_Block",t[t.Cancel_Block=6]="Cancel_Block",t[t.Delete_Fans=7]="Delete_Fans",t))(r||{}),o=(t=>(t[t.Player_Top_Follow=164]="Player_Top_Follow",t[t.Player_Ending_Follow=17]="Player_Ending_Follow",t[t.Player_Popup_Follow=245]="Player_Popup_Follow",t))(o||{});class a extends n.eV{constructor(){super(...arguments),this.tag="HttpUpFollow",this.url="//api.bilibili.com/x/relation/modify"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}},46740:function(t,e,i){"use strict";i.d(e,{M:function(){return r},d:function(){return o}});var n=i(92452),r=(t=>(t.ReduceCnt="reduce_cnt",t.Close="close",t))(r||{});class o extends n.eV{constructor(){super(...arguments),this.tag="HttpVipTrial",this.url="//api.bilibili.com/x/vip/hd/trial_modify"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}},80457:function(t,e,i){"use strict";i.d(e,{c:function(){return r}});var n=i(92452);class r extends n.eV{constructor(){super(...arguments),this.tag="HttpWatchlaterAdd",this.url="//api.bilibili.com/x/v2/history/toview/add"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0,responseType:"json"}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}},89715:function(t,e,i){"use strict";i.d(e,{G:function(){return r}});var n=i(92452);class r extends n.eV{constructor(){super(...arguments),this.tag="HttpWatchlaterDelete",this.url="//api.bilibili.com/x/v2/history/toview/del"}r(t){return e=this,i=null,n=function*(){return this.request({url:this.url,data:t,method:"post",withCredentials:!0,responseType:"json"}).then((t=>({body:t.data,response:t})))},new Promise(((t,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,i)).next())}));var e,i,n}}},92452:function(t,e,i){"use strict";i.d(e,{eV:function(){return pi},oo:function(){return Ai}});var n=i(70811);const{Axios:r,AxiosError:o,CanceledError:a,isCancel:s,CancelToken:l,VERSION:A,all:c,Cancel:h,isAxiosError:d,spread:u,toFormData:p,AxiosHeaders:g,HttpStatusCode:f,formToJSON:m,mergeConfig:y}=n.Z;var b=i(8776),v=i.n(b);var E=i(1291),I=i(416),C=i.n(I);function B(t){if(t||window.__NanoStaticHttpKey){return`https://i0.hdslb.com/bfs/wbi/${"5a6f002d0bb14fc9848fc64157648ad4"}.png`}}function w(t){if(t||window.__NanoStaticHttpKey){return`https://i0.hdslb.com/bfs/wbi/${"0503a77b29d7409d9548fb44fe9daa1a"}.png`}}function x(t,e,i){if(t.web_location=1315873,e=e||B()||(0,E.tv)("wbi_img_url"),i=i||w()||(0,E.tv)("wbi_sub_url"),e&&i||(e=B(!0),i=w(!0)),e&&i){const n=function(t){const e=[];return[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52].forEach((i=>{t.charAt(i)&&e.push(t.charAt(i))})),e.join("").slice(0,32)}(e.substring(e.lastIndexOf("/")+1,e.length).split(".")[0]+i.substring(i.lastIndexOf("/")+1,i.length).split(".")[0]),r=Math.round(Date.now()/1e3),o=Object.assign({},t,{wts:r}),a=Object.keys(o).sort(),s=[];for(let t=0;t<a.length;t++){const e=a[t],i=o[e];null!=i&&s.push(`${encodeURIComponent(e)}=${encodeURIComponent(i)}`)}const l=s.join("&"),A=C()(l+n);return Object.assign(t,{w_rid:A,wts:r.toString()})}}class Q{static loadScript(t,e){return new Promise(((i,n)=>{const r=e||window;if(r.CaptchaLoader)i();else{const e=r.document.createElement("script");e.onload=function(){i()},e.onerror=()=>{n()},e.src=t.url,r.document.head.appendChild(e)}}))}static loadValidateSDK(t){Q.scriptPromise=Q.scriptPromise||Q.loadScript({url:"https://s1.hdslb.com/bfs/seed/jinkela/risk-captcha-sdk/CaptchaLoader.js"});const{v_voucher:e}=t;function i(){return t=this,i=null,n=function*(){const t={riskParams:{v_voucher:e},onInit:()=>{}},i=yield window.CaptchaLoader.load();return yield i(t)},new Promise(((e,r)=>{var o=t=>{try{s(n.next(t))}catch(t){r(t)}},a=t=>{try{s(n.throw(t))}catch(t){r(t)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(o,a);s((n=n.apply(t,i)).next())}));var t,i,n}return Q.scriptPromise.then((()=>Q.tokenPromise=Q.tokenPromise||i())).then((t=>(setTimeout((()=>{Q.tokenPromise=null}),6e4),t?{token:t}:{token:""}))).catch((t=>(Q.tokenPromise=null,{token:""})))}}var S=i(26929),k=i(44127),D=Object.defineProperty,_=Object.defineProperties,R=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,L=(t,e,i)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,N=(t,e)=>{for(var i in e||(e={}))T.call(e,i)&&L(t,i,e[i]);if(M)for(var i of M(e))F.call(e,i)&&L(t,i,e[i]);return t},P=(t,e,i)=>(L(t,"symbol"!=typeof e?e+"":e,i),i),U=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const O=class{constructor(t){let e,i;P(this,"whitelist",[]),P(this,"blacklist",[]),P(this,"handler",(()=>Promise.resolve("Please set a handler for middleware"))),"function"==typeof t?e=t:(this.whitelist=(null==t?void 0:t.whitelist)||[],this.blacklist=(null==t?void 0:t.blacklist)||[],e=null==t?void 0:t.handler,(null==t?void 0:t.payload)&&(i=t.payload)),this.handler=(t,n,r)=>U(this,null,(function*(){if(!0===(null==r?void 0:r.disabled))return yield n();{const e=t.config.url;if(this.whitelist.length){if(!this.match(e,this.whitelist))return yield n()}else if(this.blacklist.length&&this.match(e,this.blacklist))return yield n()}return yield(e||this.handler).bind(this)(t,n,O.mergeConfig(r,i))}))}match(t,e){let i=!1;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1){i=!0;break}return i}};let G=O;P(G,"handler"),P(G,"mergeConfig",((t,e)=>((t,e)=>_(t,R(e)))(N({},t||{}),{payload:N(N({},(null==t?void 0:t.payload)||{}),e||{})})));const H=(t,e,i)=>U(void 0,null,(function*(){if("undefined"!=typeof window)return yield e()
;const{url:n,headers:r,com2co:o,sign:a,internal:s}=(null==i?void 0:i.payload)||{};if(!t.request)return yield e();if(r){const e=N({},r);delete e.host,delete e["accept-encoding"],t.request.headers=N(N({Accept:"application/json, text/plain, */*"},e),t.request.headers)}s&&a?(t.request.url=t.request.url.replace(".com/x/",".co/x/internal/"),t.request.params=a(N({},t.request.params||{}))):n?t.request.url=n:!1!==o&&(t.request.url=t.request.url.replace(".com",".co")),yield e()}));function V(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}P(class extends G{constructor(t){super({handler:H,payload:{sign:t}}),P(this,"name","SERVER_SIDE")}},"handler",H);var Y,z,W={exports:{}},Z={exports:{}};Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&z.rotl(t,8)|4278255360&z.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=z.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],i=0,n=0;i<t.length;i++,n+=8)e[n>>>5]|=t[i]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i<t.length;i++)e.push((t[i]>>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i<t.length;i+=2)e.push(parseInt(t.substr(i,2),16));return e},bytesToBase64:function(t){for(var e=[],i=0;i<t.length;i+=3)for(var n=t[i]<<16|t[i+1]<<8|t[i+2],r=0;r<4;r++)8*i+6*r<=8*t.length?e.push(Y.charAt(n>>>6*(3-r)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,n=0;i<t.length;n=++i%4)0!=n&&e.push((Y.indexOf(t.charAt(i-1))&Math.pow(2,-2*n+8)-1)<<2*n|Y.indexOf(t.charAt(i))>>>6-2*n);return e}},Z.exports=z;var j,q,J,K,X,$=Z.exports,tt={utf8:{stringToBytes:function(t){return tt.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(tt.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],i=0;i<t.length;i++)e.push(255&t.charCodeAt(i));return e},bytesToString:function(t){for(var e=[],i=0;i<t.length;i++)e.push(String.fromCharCode(t[i]));return e.join("")}}},et=tt,it=function(t){return null!=t&&(nt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&nt(t.slice(0,0))}(t)||!!t._isBuffer)};function nt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}j=$,q=et.utf8,J=it,K=et.bin,(X=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?K.stringToBytes(t):q.stringToBytes(t):J(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var i=j.bytesToWords(t),n=8*t.length,r=1732584193,o=-271733879,a=-1732584194,s=271733878,l=0;l<i.length;l++)i[l]=16711935&(i[l]<<8|i[l]>>>24)|4278255360&(i[l]<<24|i[l]>>>8);i[n>>>5]|=128<<n%32,i[14+(n+64>>>9<<4)]=n;var A=X._ff,c=X._gg,h=X._hh,d=X._ii;for(l=0;l<i.length;l+=16){var u=r,p=o,g=a,f=s;r=A(r,o,a,s,i[l+0],7,-680876936),s=A(s,r,o,a,i[l+1],12,-389564586),a=A(a,s,r,o,i[l+2],17,606105819),o=A(o,a,s,r,i[l+3],22,-1044525330),r=A(r,o,a,s,i[l+4],7,-176418897),s=A(s,r,o,a,i[l+5],12,1200080426),a=A(a,s,r,o,i[l+6],17,-1473231341),o=A(o,a,s,r,i[l+7],22,-45705983),r=A(r,o,a,s,i[l+8],7,1770035416),s=A(s,r,o,a,i[l+9],12,-1958414417),a=A(a,s,r,o,i[l+10],17,-42063),o=A(o,a,s,r,i[l+11],22,-1990404162),r=A(r,o,a,s,i[l+12],7,1804603682),s=A(s,r,o,a,i[l+13],12,-40341101),a=A(a,s,r,o,i[l+14],17,-1502002290),r=c(r,o=A(o,a,s,r,i[l+15],22,1236535329),a,s,i[l+1],5,-165796510),s=c(s,r,o,a,i[l+6],9,-1069501632),a=c(a,s,r,o,i[l+11],14,643717713),o=c(o,a,s,r,i[l+0],20,-373897302),r=c(r,o,a,s,i[l+5],5,-701558691),s=c(s,r,o,a,i[l+10],9,38016083),a=c(a,s,r,o,i[l+15],14,-660478335),o=c(o,a,s,r,i[l+4],20,-405537848),r=c(r,o,a,s,i[l+9],5,568446438),s=c(s,r,o,a,i[l+14],9,-1019803690),a=c(a,s,r,o,i[l+3],14,-187363961),o=c(o,a,s,r,i[l+8],20,1163531501),r=c(r,o,a,s,i[l+13],5,-1444681467),s=c(s,r,o,a,i[l+2],9,-51403784),a=c(a,s,r,o,i[l+7],14,1735328473),r=h(r,o=c(o,a,s,r,i[l+12],20,-1926607734),a,s,i[l+5],4,-378558),s=h(s,r,o,a,i[l+8],11,-2022574463),a=h(a,s,r,o,i[l+11],16,1839030562),o=h(o,a,s,r,i[l+14],23,-35309556),r=h(r,o,a,s,i[l+1],4,-1530992060),s=h(s,r,o,a,i[l+4],11,1272893353),a=h(a,s,r,o,i[l+7],16,-155497632),o=h(o,a,s,r,i[l+10],23,-1094730640),r=h(r,o,a,s,i[l+13],4,681279174),s=h(s,r,o,a,i[l+0],11,-358537222),a=h(a,s,r,o,i[l+3],16,-722521979),o=h(o,a,s,r,i[l+6],23,76029189),r=h(r,o,a,s,i[l+9],4,-640364487),s=h(s,r,o,a,i[l+12],11,-421815835),a=h(a,s,r,o,i[l+15],16,530742520),r=d(r,o=h(o,a,s,r,i[l+2],23,-995338651),a,s,i[l+0],6,-198630844),s=d(s,r,o,a,i[l+7],10,1126891415),a=d(a,s,r,o,i[l+14],15,-1416354905),o=d(o,a,s,r,i[l+5],21,-57434055),r=d(r,o,a,s,i[l+12],6,1700485571),s=d(s,r,o,a,i[l+3],10,-1894986606),a=d(a,s,r,o,i[l+10],15,-1051523),o=d(o,a,s,r,i[l+1],21,-2054922799),r=d(r,o,a,s,i[l+8],6,1873313359),s=d(s,r,o,a,i[l+15],10,-30611744),a=d(a,s,r,o,i[l+6],15,-1560198380),o=d(o,a,s,r,i[l+13],21,1309151649),r=d(r,o,a,s,i[l+4],6,-145523070),s=d(s,r,o,a,i[l+11],10,-1120210379),a=d(a,s,r,o,i[l+2],15,718787259),o=d(o,a,s,r,i[l+9],21,-343485551),r=r+u>>>0,o=o+p>>>0,a=a+g>>>0,s=s+f>>>0}return j.endian([r,o,a,s])})._ff=function(t,e,i,n,r,o,a){var s=t+(e&i|~e&n)+(r>>>0)+a;return(s<<o|s>>>32-o)+e},X._gg=function(t,e,i,n,r,o,a){var s=t+(e&n|i&~n)+(r>>>0)+a;return(s<<o|s>>>32-o)+e},X._hh=function(t,e,i,n,r,o,a){var s=t+(e^i^n)+(r>>>0)+a;return(s<<o|s>>>32-o)+e},X._ii=function(t,e,i,n,r,o,a){var s=t+(i^(e|~n))+(r>>>0)+a;return(s<<o|s>>>32-o)+e},X._blocksize=16,X._digestsize=16,W.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var i=j.wordsToBytes(X(t,e));return e&&e.asBytes?i:e&&e.asString?K.bytesToString(i):j.bytesToHex(i)};const rt=V(W.exports),ot=t=>{let e="";for(let i=0;i<t.length;i++)e+=String.fromCharCode(t.charCodeAt(i)-1);return e},at="wbi_img_urls";function st(t,e){e||(e={});const{imgKey:i,subKey:n}=function(t){var e;if(t.useAssignKey)return{imgKey:t.wbiImgKey,subKey:t.wbiSubKey};const i=(null==(e=function(t){try{return localStorage.getItem(t)}catch(t){return null}}(at))?void 0:e.split("-"))||[],n=i[0],r=i[1],o=n?lt(n):t.wbiImgKey,a=r?lt(r):t.wbiSubKey;return{imgKey:o,subKey:a}}(e);if(i&&n){const e=function(t){const e=[];return[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52].forEach((i=>{t.charAt(i)&&e.push(t.charAt(i))})),e.join("").slice(0,32)}(i+n),r=Math.round(Date.now()/1e3),o=Object.assign({},t,{wts:r}),a=Object.keys(o).sort(),s=[],l=/[!'()*]/g;for(let t=0;t<a.length;t++){const e=a[t];let i=o[e];i&&"string"==typeof i&&(i=i.replace(l,"")),null!=i&&s.push(`${encodeURIComponent(e)}=${encodeURIComponent(i)}`)}const A=s.join("&");return{w_rid:rt(A+e),wts:r.toString()}}return null}function lt(t){return t.substring(t.lastIndexOf("/")+1,t.length).split(".")[0]}const At="d569546b86c252:db:9bc7e99c5d71e5",ct="557251g796:g54:f:ee94g8fg969e2de",ht=(t,e,i)=>U(void 0,null,(function*(){var n;if("undefined"==typeof window)return yield e();if(!t.request)return yield e();const r=st(t.request.params||{},(null==(n=null==i?void 0:i.payload)?void 0:n.encWbiKeys)||{wbiImgKey:ot(At),wbiSubKey:ot(ct)});if(!r)return yield e();t.request.params=Object.assign({},t.request.params,r),yield e()}));class dt extends G{constructor(){super(...arguments),P(this,"handler",ht),P(this,"name","WBI_ENCODE")}}P(dt,"handler",ht);var ut=Object.defineProperty,pt=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,bt=(t,e,i)=>e in t?ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,vt=(t,e)=>{for(var i in e||(e={}))mt.call(e,i)&&bt(t,i,e[i]);if(ft)for(var i of ft(e))yt.call(e,i)&&bt(t,i,e[i]);return t
},Et=(t,e)=>pt(t,gt(e)),It=(t,e,i)=>(bt(t,"symbol"!=typeof e?e+"":e,i),i),Ct=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const Bt=t=>`BUILT_IN_${t}`,wt=(t,e)=>{var i;const n=new Error(e||`Request Error: ${(null==(i=t.response)?void 0:i.status)||"unknow status"}`);return n.config=t.request,t.response&&(n.response=t.response,t.response.ok||(n.code=t.response.status)),n},xt=t=>!(!t.name||!t.handler),Qt="undefined"==typeof window,St=t=>"[object Object]"===Object.prototype.toString.call(t),kt=t=>encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]"),Dt=(t,e)=>{const i=[];Object.keys(e).forEach((t=>{let n=e[t];null!=n&&((t=>"[object Array]"===toString.call(t))(n)?t+="[]":n=[n],n.forEach((e=>{(t=>"[object Date]"===toString.call(t))(e)?e=e.toString():(t=>null!==t&&"object"==typeof t)(e)&&(e=JSON.stringify(e)),i.push(kt(t)+"="+kt(e))})))}));const n=i.join("&");if(n){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t},_t="Content-Type",Rt=t=>(null==t?void 0:t[_t])||(null==t?void 0:t["content-type"]),Mt=(t,e)=>{e&&(t[_t]=e)},Tt=function(t,e){return Ct(this,null,(function*(){if(!t.request)return e();const{baseURL:i,headers:n,params:r,data:o,credentials:a="include"}=t.config;let s=t.config.url;const l=t.request.method,{url:A,params:c}=(t=>{const[e,i]=t.split("?");if(i){const t=i.split("&");if(t.length){const i={};for(const e of t){const[t,n]=e.split("=");t&&void 0!==n&&(i[t]=n)}return{url:e,params:i}}}return{url:t}})(s);if(c?(s=t.request.url=A,t.request.params=vt(vt({},c),r||{})):(t.request.url=s,t.request.params=vt({},r||{})),i&&!1===/^(https?:)?\/\//.test(s)&&(t.request.url=`${i}${s}`),t.request.headers=vt({},n||{}),"POST"===l&&o)if("object"==typeof o)if("undefined"!=typeof FormData&&o instanceof FormData){const e=new FormData;for(const[t,i]of o.entries())e.append(t,i);t.request.data=e}else Object.keys(o)&&(t.request.data=JSON.parse(JSON.stringify(o)));else t.request.data=o;return t.request.credentials=a,yield e()}))};class Ft extends G{constructor(){super(...arguments),It(this,"handler",Tt),It(this,"name",Bt("INIT_CTX"))}}It(Ft,"handler",Tt);var Lt="__butils_cache",Nt=/^(https?:)?(\/\/)?(((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)|([0-9a-z_!~*'()-]+\.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\.[a-z]{2,6})(:[0-9]{1-6})?([-0-9a-zA-Z+&@#/%=~_|?!:,.;]*)?$/;function Pt(t,e){var i="number"==typeof t;return e?i:i&&!Number.isNaN(t)&&Number.isFinite(t)}function Ut(t,e){e||(e={});for(var i=!1===e.decode,n=e.template||document.cookie,r={},o=(i?n:decodeURIComponent(n)).split(";"),a=!0===t,s=0;s<o.length;s++){for(var l=o[s];" "===l.charAt(0);)l=l.substring(1);var A=l.split("="),c=A[0],h=A[1];if(r[c]=h,t===c)return r[t]}return a?r:""}function Ot(t,e,i){return new Promise((function(n){e=!1!==e;var r=i?"__butils_styles":"__butils_scripts",o=function(t){var e=window[Lt]||{};return e.hasOwnProperty(t)?e[t]:null}(r)||[];if(!e&&o.indexOf(t)>-1)return n(!0);var a=document.querySelector("#".concat(t));return a&&a.parentNode.removeChild(a),(o=o.filter((function(e){return e!==t}))).push(t),function(t,e){var i=window[Lt]||{};window[Lt]=i,i[t]=e}(r,o),n(!1)}))}function Gt(t,e){return new Promise((function(i,n){if(r=t,!Nt.test(r))return n(new Error("src不是一个正确的url地址！"));var r,o="bs_url_".concat(function(t){var e=0,i=-1;if(0===t.length)return e;for(;++i<t.length;)e=(e<<5)-e+t.charCodeAt(i),e|=0;return 10*Math.abs(e)+t.length%10}(t));Ot(o,e,!1).then((function(e){if(e)return i();var n=document.createElement("script");n.id=o,n.type="text/JavaScript",n.src=t,n.onload=function(){return i()},n.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||i()},document.querySelector("head").appendChild(n)}))})).then()}const Ht=function(t,e){return Ct(this,null,(function*(){let i=t.config.timeout;if(Pt(t.config.timeout)||(i=Qt?350:1e4),!t.abortController&&i&&"undefined"!=typeof AbortController){const n=new AbortController;t.abortController=n,t.timeoutId=setTimeout((()=>{n.abort()}),i),yield e(),clearTimeout(t.timeoutId)}else yield e()}))};class Vt extends G{constructor(){super(Ht),It(this,"name",Bt("TIMEOUT"))}}It(Vt,"handler",Ht);var Yt=(t=>(t.JSON="application/json",t.Form="application/x-www-form-urlencoded",t.FormData="multipart/form-data",t))(Yt||{});const zt=(t,e)=>!!e&&e.indexOf(t)>-1,Wt=(t,e,i)=>{if(t.request)if(t.request.data=JSON.stringify(e),t.request.headers)i||Mt(t.request.headers,"application/json");else{const e={};Mt(e,"application/json"),t.request.headers=e}},Zt=function(t,e,i){return Ct(this,null,(function*(){var n;if(!t.request)return e();const{method:r,params:o,headers:a}=t.request;if(t.request.url=Dt(t.request.url,o||{}),"POST"===r){if(!("[object Object]"!==Object.prototype.toString.call(t.request.data))){const r=Rt(a),o=t.request.data;if(null==(n=null==i?void 0:i.payload)?void 0:n.stringify)return Wt(t,o,r),yield e();if(zt("application/x-www-form-urlencoded",r)&&(t.request.data=Dt("",o).slice(1)),zt("application/json",r||"application/json")&&Wt(t,o,r),zt("multipart/form-data",r)){const e=Object.keys(o);e.length&&(t.request.data=e.reduce(((t,e)=>(t.append(e,o[e]),t)),new FormData))}}}return yield e()}))};class jt extends G{constructor(){super(Zt),It(this,"name",Bt("BODY"))}}It(jt,"handler",Zt);const qt=function(t,e,i){return Ct(this,null,(function*(){if(!t.request)return e();const{method:n,data:r,headers:o}=t.request,a=(null==i?void 0:i.payload)||{};let s="",l=!1;const A=a.key||"csrf",c=e=>{var i;if((()=>{if(!s&&!l)try{s=Ut("bili_jct",Qt?{template:(null==o?void 0:o.cookie)||(null==o?void 0:o.Cookie)||"_",decode:!1}:{decode:!1}),l=!0}catch(t){Qt||console.warn(t)}})(),s&&t.request)if("params"!==e){if(r)switch(!0){case i=r,"undefined"!=typeof FormData&&i instanceof FormData:r.append(A,s);break;case St(r):r[A]=s}}else t.request.params?t.request.params[A]=s:t.request.params={[A]:s}};if("GET"===n)!0===a.params&&c("params");else if("POST"===n){const e=Rt(o)||"";void 0===a.data&&void 0===a.params?e?zt(Yt.JSON,e)?c("params"):c("data"):void 0===r||St(r)?c("params"):c("data"):(a.params&&c("params"),a.data&&(void 0===r&&(zt(Yt.FormData,e)?t.request.data=new FormData:t.request.data={}),c("data")))}return yield e()}))};class Jt extends G{constructor(){super(qt),It(this,"name",Bt("CSRF"))}}It(Jt,"handler",qt);const Kt=(t,e)=>Ct(void 0,null,(function*(){var i;if(Qt)throw new Error("When you are in a Node environment, please use server-side fetch middleware.");if(!window.fetch)throw new Error("When you are in a non-modern browser, please manually polyfill fetch.");if(!t.request)return yield e();if(t.response)return yield e();const{url:n,method:r,headers:o,credentials:a}=t.request,s=t.request.data;return t.response=yield window.fetch(n,{method:r,body:s,headers:o,credentials:a,signal:null==(i=t.abortController)?void 0:i.signal}),yield e()}));class Xt extends G{constructor(){super(...arguments),It(this,"handler",Kt),It(this,"name",Bt("FETCH"))}}It(Xt,"handler",Kt);const $t=function(t,e,i){return Ct(this,null,(function*(){var n,r;if(yield e(),(null==(n=t.response)?void 0:n.ok)&&void 0===t.response.data)try{const e=(null==(r=null==i?void 0:i.payload)?void 0:r.type)||"json";t.response.data=yield t.response[e]()}catch(t){console.warn(t)}}))};class te extends G{constructor(){super($t),It(this,"name",Bt("RES_DATA"))}}It(te,"handler",$t);class ee extends G{constructor(t,e){super(),It(this,"name",Bt("SPRAY")),this.handler=(i,n)=>Ct(this,null,(function*(){return yield t(i,n,{payload:e})}))}}It(ee,"handler",((t,e)=>Ct(void 0,null,(function*(){yield e()}))));const ie=(t,e,i)=>Ct(void 0,null,(function*(){var n;const r=null==(n=t.request)?void 0:n.function,{times:o,condition:a,onRetry:s}=(null==i?void 0:i.payload)||{times:0},l=()=>!o||t.retry===o,A=e=>Ct(void 0,null,(function*(){var n;if(!r)throw wt(t,"Missing request function");if(l()&&!(null==(n=null==i?void 0:i.payload)?void 0:n.runtimeShortCircuit))throw wt(t);t.retry=t.retry?t.retry+1:1;try{if(s){
const i=yield s(t.config,e);i&&(t.config=i)}t.response&&delete t.response,yield r(t)}catch(e){throw wt(t,e.message)}}));try{yield e()}catch(e){if(l())throw wt(t,null==e?void 0:e.message);return void(yield A())}if(a){const e=yield a(t.response);if(e)return void(yield A(e))}t.response&&t.response.ok||(yield A())}));class ne extends G{constructor(){super(...arguments),It(this,"name",Bt("RETRY")),It(this,"handler",ie)}}It(ne,"handler",ie);let re=!1;const oe="bili_ticket",ae="bili_ticket_expires",se="wbi_img_urls",le=()=>{const t=Ut(ae,{decode:!1}),e=(new Date).getTime();return 1e3*t-e<=18e5||1e3*t<e},Ae=(t,e,i)=>{var n;(null==(n=null==window?void 0:window.biliBridgePc)?void 0:n.callNative)?window.biliBridgePc.callNative("auth/setCookies",[{name:t,value:e,expirationDate:i,isExpiredRemove:!0}]):function(t,e,i){var n="",r=0;if(!1!==(i=i||{}).encode&&(e=encodeURIComponent(e)),Pt(i.exMinuts)&&(r+=6e4*i.exMinuts),Pt(i.exDays)&&(r+=864e5*i.exDays),r){var o=new Date;o.setTime(o.getTime()+r),n=";expires=".concat(o.toUTCString())}var a=function(t){return"string"==typeof t}(i.domain)?";domain=".concat(i.domain):"";document.cookie="".concat(t,"=").concat(e).concat(n,";path=/").concat(a)}(t,e,{domain:".bilibili.com",exMinuts:i/60})},ce=t=>{const{ticket:e,nav:i,ttl:n,created_at:r}=t;Ae(oe,e,n),Ae(ae,String(r+n),n),window.UNIFY_HTTP_WBI_CONFIG=`${i.img}-${i.sub}`,localStorage.setItem(se,`${i.img}-${i.sub}`)},he=()=>Ct(void 0,null,(function*(){const t=Math.floor((new Date).getTime()/1e3);if(yield Gt("//s1.hdslb.com/bfs/static/jinkela/long/unify-http-request/forticket.min.js"),!window.CryptoJS)throw new Error("CryptoJS is not found");if(!window.CryptoJS.HmacSHA256)throw new Error("CryptoJS.HmacSHA256 is not found");if(!window.CryptoJS.enc)throw new Error("CryptoJS.enc is not found");const e=window.CryptoJS.HmacSHA256(`ts${t}`,(t=>{let e="";for(let i=0;i<t.length;i++)e+=String.fromCharCode(t.charCodeAt(i)-1);return e})("YhxToH[2q")),i=window.CryptoJS.enc.Hex.stringify(e);return yield Dt("//api.bilibili.com/bapis/bilibili.api.ticket.v1.Ticket/GenWebTicket",{key_id:"ec02",hexsign:i,"context[ts]":t,csrf:Ut("bili_jct",{decode:!1})})})),de=(t,e)=>Ct(void 0,null,(function*(){var i;if("undefined"==typeof window)return yield e();if(t.request){const{method:e,params:n}=t.request;(null==n?void 0:n.web_location)||"GET"!==e||(t.request.params=Et(vt({},t.request.params||{}),{web_location:(null==(i=document.getElementsByTagName("meta").spm_prefix)?void 0:i.content)||"0.0"}))}try{(t=>{Ct(void 0,null,(function*(){var e;const i=Ut(oe,{decode:!1});let n="",r="";if((null==window?void 0:window.UNIFY_HTTP_WBI_CONFIG)?[n,r]=(null==(e=window.UNIFY_HTTP_WBI_CONFIG)?void 0:e.split("-"))||[]:[n,r]=(localStorage.getItem(se)||"").split("-"),le()||!i||!n||!r){if(re)return;t.useAsyncRequest((t=>Ct(void 0,null,(function*(){var e,i;try{re=!0;const n=yield he(),r=yield t({url:n,method:"POST",credentials:"include"});0===(null==r?void 0:r.code)&&(null==(e=r.data)?void 0:e.ticket)&&(null==(i=r.data)?void 0:i.nav)&&ce(r.data)}finally{re=!1}}))))}}))})(t)}catch(t){console.log("[updateTicketAndWbi]",t)}yield e()}));class ue extends G{constructor(){super(de),It(this,"name",Bt("TICKET_WBI"))}}It(ue,"handler",de);const pe=(t,e,i)=>Ct(void 0,null,(function*(){var n;if(!t.request||"GET"!==t.request.method)return yield e();if(!(null==i?void 0:i.payload))return yield e();const{store:r,extra:o}=i.payload;let a=i.payload.key;if(!a||!r)return yield e();var s,l;"string"!=typeof a&&(s=t.request.url,l=a,a=Object.keys(l).sort().reduce(((t,e)=>t+`_${e}:${l[e]}`),`api:${s}`));const A=r.get(a,o);A?(t.response=new Response(JSON.stringify(A),{status:200,statusText:`Cache:${a}`}),yield e()):(yield e(),(null==(n=t.response)?void 0:n.data)&&r.set(a,t.response.data,o))}));It(class extends G{constructor(t){super({handler:pe,payload:{store:t}}),It(this,"name",Bt("CACHE"))}},"handler",pe);class ge{constructor(t){this.httpSvc=t}}class fe extends ge{provide(t={}){const e={inject:(i,n)=>(this.inject(t,i,n),e),disable:i=>(this.disable(t,i),e),get:()=>t};return e}inject(t,e,i){t[e]=i}disable(t,e){t[e]=Et(vt({},t[e]||{}),{disabled:!0})}get(t,e){return t[e]||{}}}const me={INIT_CTX:Bt("INIT_CTX"),TIMEOUT:Bt("TIMEOUT"),BODY:Bt("BODY"),CSRF:Bt("CSRF"),FETCH:Bt("FETCH"),RETRY:Bt("RETRY"),SPRAY:Bt("SPRAY"),RES_DATA:Bt("RES_DATA"),RES_EXTRACT:Bt("RES_EXTRACT"),TICKET_WBI:Bt("TICKET_WBI"),LOG:Bt("LOG"),CACHE:Bt("CACHE")},ye="$ORDER_";class be{constructor(t){It(this,"middlewares",[]),It(this,"middlewareConfigCtxProvider"),this.control=t,this.middlewareConfigCtxProvider=this.control.httpSvc.configCtrl.provide()}with(t,e){return t?("string"==typeof t?(this.middlewares.push({name:`${ye}${t}`,handler:ee.handler}),e&&this.inject(t,e)):"function"==typeof t?this.middlewares.push(new ee(t,e)):xt(t)&&(this.middlewares.push(t),e&&this.inject(t.name,e)),this):this}inject(t,e){return this.middlewareConfigCtxProvider.inject(t,{payload:e}),this}disable(t){return this.middlewareConfigCtxProvider.disable(t),this}request(t){const e=this.control.compose(this.middlewares);return this.control.httpSvc.requestCtrl.request(t,this.middlewareConfigCtxProvider.get(),e)}}class ve extends ge{constructor(){super(...arguments),It(this,"middlewares",[])}alreadyExistsIdx(t){return this.middlewares.findIndex((e=>e.name===t))}register(t){if(Array.isArray(t)){let e=!1;t.forEach((t=>{if(xt(t)){e=!0;const i=this.alreadyExistsIdx(t.name);i>-1?this.middlewares[i]=t:this.middlewares.push(t)}})),e&&this.httpSvc.requestCtrl.reset()}}setup(){return new be(this)}disable(t){return this.setup().disable(t)}with(t,e){return this.setup().with(t,e)}compose(t){const e=[...this.middlewares],i=[],n={[me.RETRY]:null,[me.BODY]:null,[me.RES_DATA]:null},r=Object.keys(n),o={};(t||[]).forEach((t=>{if(xt(t)){let a=t.name;if(r.includes(a))n[a]||(n[a]=t);else if(a.startsWith(ye)){if(a=a.substring(7),!o[a]&&!(a in n)){const t=e.findIndex((t=>t.name===a));if(t>-1){const n=e[t];e.splice(t,1),o[a]=n,i.push(n)}}}else me.SPRAY===a?i.push(t):o[a]||(o[a]=t,i.push(t))}}));const a=[];e.forEach((t=>{r.includes(t.name)?n[t.name]||(n[t.name]=t):o[t.name]||a.push(t)})),a.push(...i);const s=[n[me.RETRY]||new ne,new Ft,...a,n[me.RES_DATA]||new te,n[me.BODY]||new jt,new Vt,this.httpSvc.fetch];return t=>Ct(this,null,(function*(){var e,i;let n=-1;const r=this.httpSvc.configCtrl,o=r.get(t.middleware,"DEBUG").payload;if(yield function e(i){return Ct(this,null,(function*(){if(i===s.length)return;if(i<=n)throw wt(t,"The next() called multiple times");n=i;const o=s[n];if(!o)throw wt(t,"Middleware is not exist");yield o.handler(t,e.bind(null,i+1),r.get(t.middleware,o.name))}))}(0),o)return t;return!r.get(t.middleware,me.RES_EXTRACT).disabled&&(null==(e=t.response)?void 0:e.ok)?(null==(i=t.response)?void 0:i.data)||null:t.response}))}}class Ee extends ge{constructor(){super(...arguments),It(this,"fn",null)}request(t){return Ct(this,arguments,(function*(t,e={},i){return i||(this.fn||this.generateRequestFunction(),i=this.fn),yield i(this.createContext(t,e,i))}))}generateRequestFunction(){this.fn=this.httpSvc.assembleCtrl.compose()}reset(){this.fn=null}get useAsyncRequest(){return(t,e)=>{const i=this.httpSvc.create(e);t(i.request.bind(i))}}createContext(t,e={},i){const{url:n,method:r}=t;return{config:vt({baseURL:this.httpSvc.baseURL},t),useAsyncRequest:this.useAsyncRequest,middleware:e,request:{url:n,method:(r||"get").toUpperCase(),function:i}}}}class Ie{constructor(t){if(It(this,"fetch"),It(this,"assembleCtrl",new ve(this)),It(this,"configCtrl",new fe(this)),It(this,"requestCtrl",new Ee(this)),It(this,"baseURL","//api.domain.com"),t)if(Array.isArray(t))this.fetch=new Xt,this.register(t);else{const{middlewares:e,fetch:i,baseURL:n}=t;this.fetch=i||new Xt,this.register(e||[]),n&&(this.baseURL=n)}else this.fetch=new Xt,this.register([])}register(t){this.assembleCtrl.register(t)}request(t){return this.requestCtrl.request(t)}disable(t){return this.assembleCtrl.disable(t)}with(t,e){return this.assembleCtrl.with(t,e)}setFetch(t){this.fetch=t,this.requestCtrl.reset()}create(t){return new Ie(vt({fetch:this.fetch},t||{}))}}class Ce extends Ie{constructor(t){const e="//api.bilibili.com",i=[new ue,new Jt];if(t){
const n=[],r=Array.isArray(t);(r?t:t.middlewares||[]).forEach((t=>{const e=i.findIndex((e=>t.name===e.name));e>-1&&i.splice(e,1),n.push(t)})),super({fetch:r?void 0:t.fetch,baseURL:!r&&t.baseURL||e,middlewares:[...i,...n]})}else super({baseURL:e,middlewares:[...i]})}}var Be=Object.defineProperty,we=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,De=(t,e,i)=>e in t?Be(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_e=(t,e)=>{for(var i in e||(e={}))Se.call(e,i)&&De(t,i,e[i]);if(Qe)for(var i of Qe(e))ke.call(e,i)&&De(t,i,e[i]);return t},Re=(t,e)=>we(t,xe(e)),Me=(t,e,i)=>(De(t,"symbol"!=typeof e?e+"":e,i),i),Te=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())})),Fe=function(t){"undefined"!=typeof window&&window.__BILI_X_ENGINE_SCRIPT_CACHE__&&void 0!==window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]&&delete window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]},Le=function(t,e){if("undefined"==typeof window)return Promise.reject(new Error("window is not defined"));var i,n=t=t.replace(/^https?:\/\//,"//"),r=(i=n,"undefined"==typeof window?null:window.__BILI_X_ENGINE_SCRIPT_CACHE__&&window.__BILI_X_ENGINE_SCRIPT_CACHE__[i]||null);if(null!=r&&r.promise)return r.promise;var o=new Promise((function(i,n){var r=document.createElement("script");r.src=t,null!=e&&e.behavior&&r.setAttribute(e.behavior,""),r.onload=function(){var r=window;if(e.lib)return r[e.lib]?i(r[e.lib]):n(new Error('Failed to access library "'+e.lib+'" from '+t));i(null)},r.onerror=function(){n(new Error("Failed to load "+t)),document.head.removeChild(r)},document.head.appendChild(r)}));return function(t,e){"undefined"!=typeof window&&(window.__BILI_X_ENGINE_SCRIPT_CACHE__||(window.__BILI_X_ENGINE_SCRIPT_CACHE__={}),window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]=e)}(n,{promise:o,lib:null==e?void 0:e.lib}),o.then((function(){!1===(null==e?void 0:e.cache)&&Fe(n)})).catch((function(){!1===(null==e?void 0:e.cache)&&Fe(n)})),o},Ne=function(t){return Promise.resolve(function(){try{return window.KvSDK?Promise.resolve(window.KvSDK):Promise.resolve(Le("//s1.hdslb.com/bfs/seed/jinkela/kv-sdk/index.js",{lib:"KvSDK"}))}catch(t){return Promise.reject(t)}}()).then((function(e){return new e(t)}))};const Pe=()=>Te(void 0,null,(function*(){const t=yield(e="user_log",Te(void 0,null,(function*(){if(window.__riskUserLogConfig__)return window.__riskUserLogConfig__;try{const t=yield Ne({appKey:"333.1339",apiURL:"//api.bilibili.com",strict:1,nscode:9}),i=yield t.getGroup(e);return window.__riskUserLogConfig__=i,i}catch(t){return console.error("fetchConfig error:",t),{payload_log:"0"}}})));var e;return"1"===(null==t?void 0:t.payload_log)})),Ue=(t,e,i)=>Te(void 0,null,(function*(){var n;if("undefined"==typeof window)return yield e();try{if(yield Pe())if(yield function(t){try{return window.__biliUserFp__?Promise.resolve(window.__biliUserFp__):(window.__USER_FP_CONFIG__=t,Promise.resolve(Le("//s1.hdslb.com/bfs/seed/jinkela/short/user-fingerprint/bili-user-fingerprint.min.js",{lib:"__biliUserFp__"})))}catch(t){return Promise.reject(t)}}(null!=(n=window.__USER_FP_CONFIG__)?n:{}),window.__biliUserFp__){const{query:e={},target:n}=(null==i?void 0:i.payload)||{},[r,o,a,s]=window.__biliUserFp__.queryUserLog(Re(_e({},e),{target:n}));t.request&&(t.request.params=Re(_e({},t.request.params),{dm_img_list:r,dm_img_str:o,dm_cover_img_str:a,dm_img_inter:s}))}else console.error("__biliUserFp__ is not found");else t.request&&(t.request.params=Re(_e({},t.request.params),{dm_img_switch:"0"}))}catch(t){console.error("http-svc-risk-user-log:",t)}return yield e()}));class Oe extends G{constructor(t){super({handler:Ue,payload:t}),Me(this,"name","RISK_USER_LOG")}}Me(Oe,"handler",Ue);var Ge=Object.defineProperty,He=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ze=(t,e,i)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,je=(t,e)=>{for(var i in e||(e={}))ze.call(e,i)&&Ze(t,i,e[i]);if(Ye)for(var i of Ye(e))We.call(e,i)&&Ze(t,i,e[i]);return t},qe=(t,e)=>He(t,Ve(e)),Je=(t,e,i)=>(Ze(t,"symbol"!=typeof e?e+"":e,i),i),Ke=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const Xe="undefined"==typeof window,$e="RISK_CAPTCHA",ti="x-bili-gaia-vtoken",ei=()=>Ke(void 0,null,(function*(){let t=window.CaptchaLoader;return t||(yield(e="//s1.hdslb.com/bfs/seed/jinkela/risk-captcha-sdk/CaptchaLoader.js",new Promise(((t,i)=>{const n=document.createElement("script");n.src=e,n.onload=()=>{t()},n.onerror=()=>{i(new Error(`Failed to load script: ${e}`))},document.body.appendChild(n)}))),window.CaptchaLoader);var e})),ii=(t,e)=>i=>Ke(void 0,null,(function*(){var n,r,o,a,s,l;if(Xe)return!1;try{let A={};const{code:c}=i.data||{};if(-352===c){const t={},e=i.headers.get("x-bili-gaia-vvoucher");if(e?t.v_voucher=e:Object.assign(t,(null==(n=i.data)?void 0:n.data)||{}),0===Object.keys(t).length)return!1;A.riskParams=t}else if(-401===c){if(!(null==(o=null==(r=i.data)?void 0:r.data)?void 0:o.ga_data))return!1;A=null==(s=null==(a=i.data)?void 0:a.data)?void 0:s.ga_data}else{if(!t)return!1;const e=t(i.data);if(!e)return!1;A=e}const h=yield(l=qe(je({},A),{fromSpmid:e}),Ke(void 0,null,(function*(){try{const t=yield ei(),e=yield t.load();return(yield e(l))||Promise.reject(new Error("verify captcha error: no token"))}catch(t){return Promise.reject(t)}})));return{event:$e,data:h}}catch(t){console.warn(t)}return!1})),ni=(t,e,i)=>Ke(void 0,null,(function*(){const{getToken:n,getCaptchaOptionsFromData:r,fromSpmid:o,inApp:a,times:s,condition:l,onRetry:A}=(null==i?void 0:i.payload)||{},c={times:s||0,condition(e){return Ke(this,null,(function*(){try{if(!t.retry){const t=yield ii(r,o)(e);if(t)return c.times||(c.runtimeShortCircuit=!0),t}return!!l&&(yield l(e))}catch(t){return!1}}))},onRetry(e,i){return Ke(this,null,(function*(){var r;if("object"==typeof i&&(null==i?void 0:i.event)===$e){delete c.runtimeShortCircuit;const o=i.data;if(yield null==n?void 0:n(o),t&&t.response&&t.response.data){const{code:i}=t.response.data;-401===i&&(e.params=qe(je({},e.params||{}),{token:o,gaia_vtoken:o})),-352===i&&(e.params=qe(je({},e.params||{}),{gaia_vtoken:o}),(a||(null==(r=((t,e)=>{var i;return(null==(i=t.middleware[e])?void 0:i.payload)||{}})(t,"APP_RUNTIME"))?void 0:r.version))&&(e.headers=qe(je({},e.headers||{}),{[ti]:o})))}return e}return A?yield A(e,i):e}))}};yield ne.handler(t,e,{payload:c})}));class ri extends G{constructor(t){super({handler:ni,payload:t}),Je(this,"name",me.RETRY)}}Je(ri,"handler",ni);var oi=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const ai=-352,si=(t,e,i)=>oi(void 0,null,(function*(){var r;const{url:a,method:s,headers:l,params:A}=t.request;try{const[e,o]=a.split("?");let c={};(null==(r=null==i?void 0:i.payload)?void 0:r.config)&&(c=Object.assign(c,i.payload.config)),c=Object.assign(c,{url:e,method:s,headers:l,params:A});const h=yield(0,n.Z)(c),d=new Headers;Object.keys(h.headers).forEach((t=>{const e=h.headers[t];d.append(t,e)})),t.response={ok:!0,url:a,status:h.status,headers:d,statusText:h.statusText,data:h.data,config:c};"string"!=typeof t.response.data&&(t.response.data.__Raw__=h,t.response.data.__IsUnified__=!0)}catch(e){if(!(e instanceof o&&t))throw e;{if(pi.isCanceled(e))throw e;const{response:i}=e;t.response={ok:!1,status:null==i?void 0:i.status,headers:null==i?void 0:i.headers,statusText:null==i?void 0:i.statusText,data:null==i?void 0:i.data}}}return yield e()}));class li extends G{constructor(){super(...arguments),this.handler=si,this.name="AXIOS_REQUEST"}}li.handler=si;var Ai=(t=>(t[t.E_Network=0]="E_Network",t[t.E_Resolve=1]="E_Resolve",
t[t.E_Renewal=2]="E_Renewal",t))(Ai||{});const ci=["api.bilibili.com/x/player/wbi/playurl","api.bilibili.com/x/player/wbi/v2","api.bilibili.com/x/web-interface/wbi/view/detail","api.bilibili.com/x/v2/dm/post"],hi=class{static set(t,e,i){i&&t&&"object"==typeof t&&hi.rsCache.set(t,e)}static get(t){if(t&&"object"==typeof t)return hi.rsCache.get(t)}};let di=hi;di.rsCache=new WeakMap;const ui=class{constructor(t,e){this.httpCacheSeconds=900,this.httpCacheInvalidParams=["w_rid","wts","gaia_source","gaia_vtoken"],this.baseParam=t,this.httpCaches=t.httpCaches,this.baseConfig=Object.assign({},e),this.cancelSource=n.Z.CancelToken.source(),t.httpCacheSeconds>0&&(this.httpCacheSeconds=Math.ceil(t.httpCacheSeconds)),t.httpRequests&&!this.baseConfig.noStore&&t.httpRequests.add(this)}get log(){if(!this._cachedLog){const t=this.baseParam.log;this._cachedLog=this.tag?t.getLogger(this.tag):t}return this._cachedLog}get persistent(){return this.baseConfig.persistent}static isCanceled(t){return n.Z.isCancel(t)}static isGaiaFailed(t){return(null==t?void 0:t.message)===ui.GAIA_RISK_HIT}request(t,e){const i=Object.assign({cancelToken:this.cancelSource.token},t),r=this.getUrlWithParams(i),a=!i.method||/^GET$/i.test(i.method);if(a&&this.baseConfig.memCache){const t=this.getHttpCache(r);if(t)return this.log.i("[hit]",r),t}!this.baseConfig.noStore&&this.log.i("request start",r);const s=this.generateRequest(i,e).then((t=>{if((null==t?void 0:t.__IsUnified__)&&t.code===ai)throw new o(ui.GAIA_RISK_HIT,ai+"");if(t=(null==t?void 0:t.__Raw__)||t,!this.baseConfig.noStore&&this.log.i("request done",t.status,t.statusText,t.config.url),di.set(t.data,r,a),this.isIllegal(t.data,!0,r)){const e=new Error("response.data is invalid");throw e.response=t,e.config=t.config,e.request=t.request,e.isAxiosError=!1,e.toJSON=()=>t,e}return t})).catch((t=>{var i,o,a;if(!this.baseConfig.noStore&&t&&this.log.w("request fail",null==(i=t.response)?void 0:i.status,null==(o=t.response)?void 0:o.statusText,null==(a=t.config)?void 0:a.url,t.code,t.message),(null==e?void 0:e.isManualDeleteCache)||this.delHttpCache(r),t&&!this.baseConfig.throwLifecycle){if(n.Z.isCancel(t))return ui.PENDING_PROMISE;if(t.message===ui.LIFECYCLE_TOKEN)return ui.PENDING_PROMISE}return Promise.reject(t)}));return this.setHttpCache(r,s,a),s}generateRequest(t,e){if(this.canUseUnifedRequest(null==t?void 0:t.url)){let e=new Ce({fetch:new li});t.params?t.params.web_location=1315873:t.params={web_location:1315873};let i=null;i=e.with("AXIOS_REQUEST",{config:t}).with(new Oe).with(new dt,{encWbiKeys:{wbiImgKey:"5a6f002d0bb14fc9848fc64157648ad4",wbiSubKey:"0503a77b29d7409d9548fb44fe9daa1a"}}).with(((t,e)=>oi(this,null,(function*(){var i;if(yield e(),t.config.url.includes("api.bilibili.com/x/player/wbi/playurl")){const e=null==(i=null==t?void 0:t.response)?void 0:i.data;0===(null==e?void 0:e.code)&&(null==e?void 0:e.data.v_voucher)&&(e.code=ai)}})))).with(new ri);return i.request({url:t.url,params:t.params,method:t.method,headers:t.headers})}return this.getGaiaRisk(t,e)}canUseUnifedRequest(t){return!!t&&ci.find((e=>t.includes(e)))}getGaiaRisk(t,e){const i={};if(t.url.includes("/wbi/")||(null==e?void 0:e.wbi)){t.params=t.params||{};const{pureUrl:e,queryParams:n}=function(t){if(t.includes("?")){const e=t.split("?");let i=e[0],n=e[1];return{pureUrl:i,queryParams:v().parse(n,{ignoreQueryPrefix:!0})}}return{pureUrl:t,queryParams:{}}}(t.url);t.url=e,Object.assign(t.params,n),Object.assign(i,t.params);const r=x(t.params);r&&(t.params=r)}return(0,n.Z)(t).then((e=>oi(this,null,(function*(){var r,a;let s="";const{data:l,headers:A}=e,c=(0===(null==l?void 0:l.code)||(null==l?void 0:l.code)===ai)&&(null==(r=null==l?void 0:l.data)?void 0:r.v_voucher),h=this.getArrayBufferCode(e)===ai&&A["x-bili-gaia-vvoucher"];if(s=c?null==(a=null==l?void 0:l.data)?void 0:a.v_voucher:h?A["x-bili-gaia-vvoucher"]:"",s){if(!this.canPopupVerifyCom())throw this.log.w("screen too small for validation",t.url),new o(ui.GAIA_RISK_HIT,ai+"");const e=yield Q.loadValidateSDK({v_voucher:s});if(e.token)return t.params=Object.assign({},i,{gaia_vtoken:e.token}),t.params=x(t.params),(0,n.Z)(t);throw this.log.w("failed to get token",t.url),new o(ui.GAIA_RISK_HIT,ai+"")}return e}))))}getArrayBufferCode(t){try{if("arraybuffer"===t.config.responseType){const e=new TextDecoder("utf-8"),i=new Uint8Array(t.data);return JSON.parse(e.decode(i)).code}}catch(t){this.log.w("[ParseError]",null==t?void 0:t.message)}return 0}isIllegal(t,e,i){if(null==t)return this.log.e("Response: falsely"),this.delHttpCache(i||di.get(t)),!0;if(e)return!1;if(0===t.code)return!1;try{this.log.w("Response",JSON.stringify(t))}catch(t){this.log.w("Unexpected",t&&t.message)}return this.delHttpCache(i||di.get(t)),!0}getUrlWithParams(t){return(0,S.qx)(n.Z.create().getUri(t),this.httpCacheInvalidParams)}setHttpCache(t,e,i){i&&this.httpCaches&&t&&!this.baseConfig.noStore&&(e.__CreationTime__=Date.now(),this.httpCaches.set(t,e))}getHttpCache(t){if(this.baseConfig.memCache&&this.httpCaches){const e=this.httpCaches.get(t);if(e){const i=e.__CreationTime__,n=(Date.now()-i)/1e3;if(i&&n<this.httpCacheSeconds)return e;this.delHttpCache(t)}}}delHttpCache(t){this.httpCaches&&this.httpCaches.delete(t)}canPopupVerifyCom(){if(this.baseParam.isEmbed&&"function"==typeof this.baseParam.getDimension){const t=this.baseParam.getDimension();return 0===t.height||t.height>465}return!0}dispose(t){this.log.i("[Dispose]",t),this.cancelSource.cancel(t)}};let pi=ui;pi.PENDING_PROMISE=new Promise(k.Z),pi.LIFECYCLE_TOKEN="__LifecycleCanceled__",pi.GAIA_RISK_HIT="__GaiaRiskHit__"},68063:function(t,e,i){"use strict";function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(n=function(){return!!t})()}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return function(t,e,i){if(n())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(t.bind.apply(t,r));return i&&o(a,i.prototype),a}(t,arguments,r(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,t)},a(t)}var s,l;i.d(e,{Z:function(){return L}}),(l=s||(s={})).TEST="test",l.PROD="prod";var A,c="undefined"!=typeof window;function h(){return"undefined"==typeof global?"undefined"==typeof window?{}:window:global}!function(t){t.NS_DATA="/x/kv-frontend/namespace/data",t.APP_UPDATES="/x/kv-frontend/app/batchupdates"}(A||(A={}));var d=function(){function t(){this.storage={}}var e=t.prototype;return e.set=function(t,e,i){this.storage[t]={value:e,ttl:Date.now()+1e3*i}},e.get=function(t){var e=this.storage[t];return e?e.value:null},e.has=function(t){var e=this.storage[t];return e&&Date.now()<=e.ttl},t}(),u=h(),p=u._KV_CORE_CACHE_||new d;u._KV_CORE_CACHE_=p;var g=function(t){try{return f(A.NS_DATA,{appKey:t.appKey,nscode:t.nscode||0,versionId:t.versionId},t)}catch(t){return Promise.reject(t)}},f=function(t,e,i){try{var n=function(t,e){if(t)return t;var i=c?""+window.location.protocol:"http:",n="api.YmlsaWJpbGk=.com".split(".").map((function(t,e){return 1===e?(i=t,"undefined"!=typeof window?window.atob(i):Buffer.from(i,"base64").toString()):t;var i})).join(".");return e===s.PROD?n=n.replace(/^(?:pre-|uat-)/,""):e===s.TEST&&/^api/.test(n)&&(n="pre-"+n),i+"//"+n}(i.apiURL,i.env),r=Object.keys(e).map((function(t){var i=e[t];if(void 0!==i)return t+"="+encodeURIComponent(i)})).filter((function(t){return t})).join("&");return Promise.resolve(function(t,e){return new Promise(((i,n)=>{let r=new XMLHttpRequest;function o(){if(!r)return;const t=r.responseType,e=function(t){
const e=t.trim().split(/[\r\n]+/),i={};return e.forEach((t=>{const e=t.split(": "),n=e.shift(),r=e.join(": ");n&&(i[n]=r)})),i}(r.getAllResponseHeaders());!r.status||r.status>=200&&r.status<=299?i({data:t&&"text"!==t?r.response:r.responseText,status:r.status,statusText:r.statusText,headers:e}):n(new Error(`Request Error: ${r.status} ${r.statusText}`)),r=null}if(r.open((null==e?void 0:e.method)||"GET",t,!0),r.timeout=(null==e?void 0:e.timeout)||2e3,r.responseType=(null==e?void 0:e.responseType)||"json",r.onreadystatechange=function(){r&&4===r.readyState&&(0!==r.status||r.responseURL&&0===r.responseURL.indexOf("file:"))&&setTimeout(o)},r.onabort=function(){r&&(n(new Error(`Request aborted: ${t}`)),r=null)},r.onerror=function(){n(new Error(`Network Error: ${t}`)),r=null},r.ontimeout=function(){n(null!=e&&e.timeout?`Timeout exceeded: ${e.timeout}`:"Timeout exceeded"),r=null},r.withCredentials=(null==e?void 0:e.withCredentials)||!1,null!=e&&e.headers)for(const t in e.headers)r.setRequestHeader(t,e.headers[t]);r.send((null==e?void 0:e.data)||null)}))}(""+n+t+"?"+r,{timeout:c?2e3:700})).then((function(t){if(0===t.data.code)return t.data.data;throw new b(t.data.message,t.data.code)}))}catch(t){return Promise.reject(t)}},m=h(),y=m._KV_CORE_REQUEST_QUEUE_||{};m._KV_CORE_REQUEST_QUEUE_=y;var b=function(t){var e,i;function n(e,i){var n;return(n=t.call(this,e)||this).code=void 0,n.code=i,n}return i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,o(e,i),n}(a(Error)),v=function(t){"undefined"!=typeof window&&window.__BILI_X_ENGINE_SCRIPT_CACHE__&&void 0!==window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]&&delete window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]},E=function(t,e){if("undefined"==typeof window)return Promise.reject(new Error("window is not defined"));var i,n=t=t.replace(/^https?:\/\//,"//"),r=(i=n,"undefined"==typeof window?null:window.__BILI_X_ENGINE_SCRIPT_CACHE__&&window.__BILI_X_ENGINE_SCRIPT_CACHE__[i]||null);if(null!=r&&r.promise)return r.promise;var o=new Promise((function(i,n){var r=document.createElement("script");r.src=t,null!=e&&e.behavior&&r.setAttribute(e.behavior,""),r.onload=function(){var r=window;if(null!=e&&e.lib)return r[e.lib]?i(r[e.lib]):n(new Error('Failed to access library "'+e.lib+'" from '+t));i(null)},r.onerror=function(){n(new Error("Failed to load "+t)),document.head.removeChild(r)},document.head.appendChild(r)}));return function(t,e){"undefined"!=typeof window&&(window.__BILI_X_ENGINE_SCRIPT_CACHE__||(window.__BILI_X_ENGINE_SCRIPT_CACHE__={}),window.__BILI_X_ENGINE_SCRIPT_CACHE__[t]=e)}(n,{promise:o,lib:null==e?void 0:e.lib}),o.then((function(){!1===(null==e?void 0:e.cache)&&v(n)})).catch((function(){!1===(null==e?void 0:e.cache)&&v(n)})),o};var I=function(t){return Promise.resolve(function(){try{return window.ReporterPb?Promise.resolve(window.ReporterPb):Promise.resolve(E("//s1.hdslb.com/bfs/seed/jinkela/short/reporter-pb/index.js",{lib:"ReporterPb"}))}catch(t){return Promise.reject(t)}}()).then((function(e){return new e(t)}))};function C(){return C=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},C.apply(this,arguments)}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var w,x,Q,S,k,D=2592e6;(k=w||(w={}))[k.NON_STRICT=0]="NON_STRICT",k[k.STRICT=1]="STRICT",function(t){t.TEST="test",t.PROD="prod"}(x||(x={})),function(t){t.KEY="key",t.GROUP="group",t.APP="app"}(Q||(Q={})),function(t){t.PV="333.1334.kv-init.pv",t.ERROR="333.1334.kv-init.error",t.VERSION="333.1334.kv-version.pv"}(S||(S={}));var _=new(function(){function t(){this.queue=[],this.reporter=void 0,this.loading=!1}var e=t.prototype;return e.init=function(){try{var t=this;return Promise.resolve(function(e,i){try{var n=function(){if(!t.reporter&&"undefined"!=typeof window&&!t.loading)return t.loading=!0,Promise.resolve(I({spmPrefix:"333.1334",sampleRate:1,autoPv:!1,retry:!1,feature:{tech:!0}})).then((function(e){t.reporter=e,t.loading=!1,t.reportQueue()}))}()}catch(t){return i(t)}return n&&n.then?n.then(void 0,i):n}(0,(function(e){t.loading=!1,console.error(e)})))}catch(t){return Promise.reject(t)}},e.reportQueue=function(){if(this.reporter)for(var t,e=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return B(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?B(t,e):void 0}}(t))){e&&(t=e);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.queue);!(t=e()).done;){var i=t.value;this.report(i.event,i.value)}},e.report=function(t,e){void 0===e&&(e={});try{if(!this.reporter)return this.queue.push({event:t,value:e}),void this.init();var i=C({type:t===S.ERROR?"error":"custom"},e);this.reporter.tech(t,i)}catch(t){console.error(t)}},t}()),R="KV_CONFIG_SDK",M=function(){function t(t){var e=t.appKey,i=t.nscode,n=t.env;this.appKey=void 0,this.appKeyStorageName=void 0,this.appKey=e,this.appKeyStorageName=n===s.TEST?e+"_"+i+"_test":e+"_"+i,this.checkLocalStorage()}var e=t.prototype;return e.checkLocalStorage=function(){var e=t.getLocalStorage();if(e){for(var i in e){var n=(new Date).getTime();e[i].timestamp+e[i].expires<n&&delete e[i]}Object.keys(e).length>40&&Object.keys(e).sort((function(t,i){return e[t].lastUsed-e[i].lastUsed})).slice(40).forEach((function(t){delete e[t]})),t.setLocalStorage(e)}},e.getAppKey=function(){var e=t.getLocalStorage()||{};return e[this.appKeyStorageName]?(e[this.appKeyStorageName].lastUsed=(new Date).getTime(),t.setLocalStorage(e),e[this.appKeyStorageName]||{}):{}},e.setAppkey=function(e){var i=C({timestamp:(new Date).getTime(),lastUsed:(new Date).getTime()},e),n=t.getLocalStorage()||{};n[this.appKeyStorageName]=i,t.setLocalStorage(n)},t.getLocalStorage=function(){var t;try{(t=localStorage.getItem(R))&&(t=JSON.parse(t))}catch(e){console.error("从本地获取"+R+"的时候异常",e),t=void 0,_.report(S.ERROR,{message:"从本地获取"+R+"的时候异常"+(e.message||"")})}return t},t.setLocalStorage=function(t){try{localStorage.setItem(R,JSON.stringify(t))}catch(t){!function(t){var e=!1;if(t)if(t.code)switch(t.code){case 22:e=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===t.name&&(e=!0)}else-2147024882===t.number&&(e=!0);return e}(t)?(console.log("storage 更新失败",t),_.report(S.ERROR,{message:"storage 更新失败"+(t.message||"")})):(console.log("storage 超出浏览器限制",t),_.report(S.ERROR,{message:"storage 超出浏览器限制"+(t.message||"")}))}},t}();function T(t,e){try{var i=t()}catch(t){return e(t)}return i&&i.then?i.then(void 0,e):i}var F=function(){function t(t){this.options={appKey:"",apiURL:"",nscode:0,expires:D,strict:w.STRICT},this.storage=void 0,this.fetchPromise=void 0,this.flattenValue={},this.nestedValue={},this.versionId=void 0;var e=t.appKey,i=t.expires,n=void 0===i?D:i;if(!e)return _.report(S.ERROR,{message:"no appkey passed"}),void console.warn("appKey is required");this.options=C({},this.options,t,{expires:Math.min(n,D)}),this.storage=new M({appKey:e,nscode:this.options.nscode,env:this.options.env});var r=this.storage.getAppKey(),o=r.value,a=r.versionId;this.versionId=a,this.updateValue(o||{}),(this.options.strict!==w.NON_STRICT||t.autoFetch)&&(this.fetchPromise=this.fetchAppKey(a)),this.report(S.PV)}var e=t.prototype;return e.getAll=function(){try{return Promise.resolve(this.getBase(Q.APP))}catch(t){return Promise.reject(t)}},e.getGroup=function(t){try{return Promise.resolve(this.getBase(Q.GROUP,t))}catch(t){return Promise.reject(t)}},e.get=function(t){try{return Promise.resolve(this.getBase(Q.KEY,t))}catch(t){return Promise.reject(t)}},e.getAllSync=function(){return this.getBaseSync(Q.APP)},e.getGroupSync=function(t){return this.getBaseSync(Q.GROUP,t)},e.getSync=function(t){return this.getBaseSync(Q.KEY,t)
},e.getBaseSync=function(t,e){if(void 0===e&&(e=""),t===Q.APP)return this.nestedValue;if(t===Q.GROUP)return this.nestedValue[e]||{};var i=e.split("."),n=i[0];return this.nestedValue[n]?this.nestedValue[n][i[1]]:""},e.getBase=function(t,e){void 0===e&&(e="");try{var i=this;return Promise.resolve(i.options.strict===w.NON_STRICT?i.getBaseSync(t,e):i.fetchPromise.then((function(){return i.getBaseSync(t,e)})))}catch(t){return Promise.reject(t)}},e.fetchAppKey=function(t){try{var e=this,i=e.options,n=i.appKey,r=i.nscode,o=i.env,a=T((function(){return Promise.resolve(g({appKey:n,versionId:t,nscode:r,env:o})).then((function(t){e.storage.setAppkey({value:t.data,versionId:t.versionId,appVersionId:t.appVersionId,nscode:r,appKey:e.options.appKey,expires:e.options.expires}),e.versionId=t.versionId,e.updateValue(t.data)}))}),(function(t){-304!==t.code&&e.report(S.ERROR,{message:t.message||t.msg||"获取失败"})}));return Promise.resolve(a&&a.then?a.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},t.updateLocalAppKey=function(t){try{return Promise.resolve(T((function(){var e=t.appKey,i=t.appVersionId,n=M.getLocalStorage();if(n){var r=Object.keys(n).filter((function(t){return n[t].appKey===e&&n[t].appVersionId!==i})).map((function(t){return n[t]}));if(r.length)return Promise.resolve(function(t){try{return f(A.APP_UPDATES,{appKey:t.appKey,batches:JSON.stringify(t.batches)},t)}catch(t){return Promise.reject(t)}}({appKey:e,batches:r.map((function(t){return{appVersionId:t.appVersionId,nscode:t.nscode}}))})).then((function(t){var i=M.getLocalStorage()||{};t.forEach((function(t){var n=e+"_"+t.nscode;if(t.deleted)delete i[n];else if(t.updated){var r={timestamp:(new Date).getTime(),value:t.data,versionId:t.versionId,appVersionId:t.appVersionId,nscode:t.nscode,appKey:e};i[n]=C({},i[n]||{},r)}})),M.setLocalStorage(i)}))}}),(function(t){-304!==t.code&&console.error(t)})))}catch(t){return Promise.reject(t)}},e.updateValue=function(t){var e=this;this.flattenValue=t;var i={};Object.keys(this.flattenValue).forEach((function(t){var n=t.split("."),r=n[0],o=n[1];i[r]||(i[r]={}),i[r][o]=e.flattenValue[t]})),this.nestedValue=i},e.report=function(t,e){void 0===e&&(e={}),_.report(t,C({appKey:this.options.appKey,nscode:this.options.nscode,sdkVersion:"1.3.10"},e))},t}();class L{constructor(t){this.namespace=t,this.configSDK=new F({appKey:"457.19",nscode:this.namespace||0,strict:w.STRICT})}getConfig(t,e){return t||e?t&&!e?this.configSDK.getGroupSync(t):t&&e?this.configSDK.getSync(`${t}.${e}`):{}:this.configSDK.getAllSync()}getConfigByPromise(t,e){return t||e?t&&!e?this.configSDK.getGroup(t):t&&e?this.configSDK.get(`${t}.${e}`):Promise.resolve({}):this.configSDK.getAll()}destory(){this.configSDK=null}}},22378:function(t,e,i){"use strict";i.d(e,{Z:function(){return L}});var n=i(50282),r=i.n(n),o=i(75572),a=i.n(o),s=i(64423),l=i.n(s),A=i(52182),c=i.n(A),h=i(73632),d=i.n(h),u=i(53913),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals;const g=[{value:300,title:"播放卡顿"},{value:304,title:"出现浮窗广告"},{value:301,title:"拖动进度条失败"},{value:305,title:"视频无法播放/黑屏"},{value:354,title:"校园网无法访问"},{value:302,title:"音画不同步"},{value:303,title:"弹幕无法显示"},{value:311,title:"视频花屏 / 绿屏"},{value:312,title:"画质不清晰"},{value:307,title:"其他"}],f={close:"player_feedback_close",store:"player_feedback_edition",forum:"player_feedback_bbs",selfhelp:"player_feedback_help",networkspeed:"player_feedback_networkspeed",test:"player_feedback_test",submit:"player_feedback_submit"};function m(t){return/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t)}function y(t){return/^[1-9]\d{4,11}$/.test(t)}var b=i(23574),v=i(57012),E=i(25360),I=i.n(E),C=Object.defineProperty,B=Object.defineProperties,w=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,k=(t,e,i)=>e in t?C(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class D{constructor(t){this.config=t,this.options={},this.alreadySubmitTimes=0,this.container=this.config.container,this.prefix=this.config.prefix,this.showClass=`${this.prefix}-show`}showPanel(){this.inited||this.init(),this.getClient(),this.reset(),this.show(this.templete.panel)}hidePanel(){var t;this.inited&&(this.hide(this.templete.panel),null==(t=this.circleProgress)||t.cancelAnimation())}directFeedback(t){this.once||(this.resetDate(),this.once=!0,this.data.tag_id=307,this.playInfo=this.config.getPlayInfo(),this.playInfo.showBv?delete this.data.aid:delete this.data.bvid,this.submitRequest({data:this.data,success:e=>{t(0===e)},error:()=>{t(!1)}}))}destroy(){this.inited&&(this.inited=!1,this.container.removeChild(this.templete.panel),this.hide(this.templete.submit))}resetDate(){this.data={tag_id:0,content:"",jsonp:"jsonp",aid:this.config.aid,bvid:this.config.bvid},this.once=!1}reset(){this.resetDate(),this.templete.otherInput.value="",this.templete.contact.value="",this.templete.title.textContent="播放器问题反馈",this.hideCurrent(),this.hide(document.querySelector(`.${this.prefix}-tabmenu-list.${this.showClass}`)),this.hide(this.templete.other),this.hide(this.templete.submit),this.show(this.templete.context)}init(){this.inited=!0;const t=this.prefix;this.container.insertAdjacentHTML("beforeend",this.tpl()),this.templete={panel:document.querySelector(`.${t}-panel`),title:document.querySelector(`.${t}-title-content`),context:document.querySelector(`.${t}-content-default`),other:document.querySelector(`.${t}-content-input`),otherInput:document.querySelector(`.${t}-content-input .${t}-input`),otherErr:document.querySelector(`.${t}-input-overrange`),contact:document.querySelector(`.${t}-contact-information-input`),typeErr:document.querySelector(`.${t}-type-error`),submit:document.querySelector(`.${t}-submit`),close:document.querySelector(`.${t}-panel-close`)},this.events()}events(){this.templete.otherInput.addEventListener("keyup",(t=>{this.templete.otherInput.value.length>=100?this.show(this.templete.otherErr):this.hide(this.templete.otherErr)})),this.templete.panel.addEventListener("click",(t=>{var e;t.stopPropagation();const i=t.target,n=null==(e=null==i?void 0:i.dataset)?void 0:e.val,r=i.getAttribute("href");switch(n&&r&&"function"==typeof this.config.openWindow&&(t.preventDefault(),this.config.openWindow(r)),n){case"close":this.hidePanel(),"function"==typeof this.config.closeCb&&this.config.closeCb();break;case"presubmit":this.beforeSubmit();break;case"submit":this.submit();break;case"qq":this.hide(this.templete.typeErr);break;case"test":this.showTestSuc();break;default:this.tabmenu(Number(n),t.target)}if(f[n]){const{tag_id:t,content:e}=this.data||{};this.config.track(f[n],JSON.stringify({tag_id:t,content:e}))}}))}tabmenu(t,e){t&&this.data.tag_id!==t&&(307===t?this.show(this.templete.other):this.hide(this.templete.other),this.show(this.templete.submit),this.hide(document.querySelector(`.${this.prefix}-tabmenu-list.${this.showClass}`)),this.show(e),this.data.tag_id=t)}beforeSubmit(){if(!this.data.tag_id)return this.createToolTip("你还没选反馈理由噢 > <");const t=this.templete.contact.value;if(!this.contactInformationCheck(t))return!1;switch(m(t)?this.data.email=t:y(t)&&(this.data.qq=t),this.playInfo=this.config.getPlayInfo(),this.playInfo.showBv?delete this.data.aid:delete this.data.bvid,this.data.content="",this.data.tag_id){case 307:const t=this.templete.otherInput.value;if(!t)return this.createToolTip("请描述具体的问题噢 > <");if((null==t?void 0:t.length)>=100)return;this.data.content=t;break;case 300:case 301:case 305:if(this.playInfo.url)return this.config.track("player_feedback_confirm"),void this.showTest()}this.submit()}submit(){var t;this.alreadySubmitTimes>=this.config.submitLimit?this.showSuccess():(this.config.track("player_feedback_report",{tag_id:String(this.data.tag_id),msg:"player_feedback_report"}),this.data.other=JSON.stringify({cache_info:null==(t=this.options.header)?void 0:t.HTTP_X_CACHE_SERVER,dns_info:this.options.dns,progress:this.playInfo.progress,cid:this.playInfo.cid,speed:this.options.speed,speedDetails:this.options.speedDetails,
tagInfo:g.find((t=>t.value===this.data.tag_id)).title}),this.submitRequest({data:this.data,success:t=>{0===t?(this.alreadySubmitTimes++,this.showSuccess()):18003===t?(this.showFail("","你今天已经提交太多次啦 > <"),this.hide(document.querySelector(`.${this.prefix}-fail-resubmit`))):this.showFail(`:${t}`)},error:()=>{this.showFail(""),this.show(document.querySelector(`.${this.prefix}-fail-resubmit`))}}))}submitRequest(t){this.config.submit(t.data),t.success(0)}showSuccess(){this.templete.success||(this.templete.success=document.querySelector(`.${this.prefix}-content-success`),this.templete.success.innerHTML=this.successTpl()),this.hideCurrent(),this.show(this.templete.success),this.templete.title.textContent="反馈提交成功"}showFail(t,e){this.templete.fail||(this.templete.fail=document.querySelector(`.${this.prefix}-content-fail`),this.templete.fail.innerHTML=this.failTpl()),this.hideCurrent(),this.show(this.templete.fail),document.querySelector(`.${this.prefix}-content-fail-title-code`).textContent=t,this.templete.title.textContent=null!=e?e:"反馈提交失败"}showTest(){this.templete.test||(this.templete.test=document.querySelector(`.${this.prefix}-content-test`),this.templete.test.innerHTML=this.testTpl()),this.hideCurrent(),this.show(this.templete.test)}showTestSuc(){this.templete.testSuc||(this.templete.testSuc=document.querySelector(`.${this.prefix}-content-test-success`),this.templete.testSuc.innerHTML=this.testSuccessTpl(),this.circleProgress=new v.mZ(document.querySelector(`.${this.prefix}-content-test-success-circle-wrap`),{})),this.circleProgress.start(),this.hideCurrent(),this.show(this.templete.testSuc),this.startTest()}startTest(){const t=new b.Z({timeout:5e3,url:this.playInfo.url,defaultData:1048576,onProgress:(e,i,n)=>{this.options.speed=t.trans(n)}});t.start().then((e=>{var i;e&&(this.options.speedDetails=e),e.length&&e[0].speed?(this.options.speed=t.trans(e[0].speed),null==(i=this.circleProgress)||i.value(String(this.options.speed))):(this.showTestFail(),this.options.speed=0)})).catch((()=>{this.showTestFail(),this.options.speed=0}))}showTestFail(){this.templete.testFail||(this.templete.testFail=document.querySelector(`.${this.prefix}-content-test-fail`),this.templete.testFail.innerHTML=this.testFailTpl()),this.hideCurrent(),this.show(this.templete.testFail)}getClient(){var t;return this.clientPromise=(t={url:"//api.bilibili.com/client_info?type=json",withCredentials:!0,responseType:"json"},new Promise(((e,i)=>{var n,r,o;const a=t.method?t.method.toUpperCase():"GET",s=null==(n=t.async)||n,l=new XMLHttpRequest;if(l.withCredentials=null==(r=t.withCredentials)||r,l.responseType=null!=(o=t.responseType)?o:"",l.addEventListener("load",(()=>{e(l.response)})),l.addEventListener("error",(()=>{i(l)})),l.addEventListener("abort",(()=>{i(l)})),"POST"===a)l.open(a,t.url,s),l.setRequestHeader("Content-type",t.contentType||"application/x-www-form-urlencoded"),l.send(t.data);else if("GET"===a){const e=t.data?`?${function(t){let e="";for(let i in t)e+=`${i}=${t[i]}&`;return e.slice(0,-1)}(t.data)}`:"",i=`${t.url}${e}`;l.open(a,i,s),l.send()}else l.open(a,t.url),l.send()}))).then((t=>{const e=(null==t?void 0:t.data)||{};this.options=((t,e)=>B(t,w(e)))(((t,e)=>{for(var i in e||(e={}))Q.call(e,i)&&k(t,i,e[i]);if(x)for(var i of x(e))S.call(e,i)&&k(t,i,e[i]);return t})({},this.options),{ip:e.ip,dns:e.dns,uuid:window.uid||"",ua:navigator.userAgent,header:e.header,speed:"",reason:""})})),this.clientPromise}createToolTip(t){this.templete.tooltip||(this.templete.tooltip=document.createElement("div"),this.templete.tooltip.className=`${this.prefix}-tooltip`,this.templete.panel.appendChild(this.templete.tooltip)),this.templete.tooltip.textContent=t,this.show(this.templete.tooltip),setTimeout((()=>{this.hide(this.templete.tooltip)}),3e3)}show(t){null==t||t.classList.add(this.showClass)}hide(t){null==t||t.classList.remove(this.showClass)}hideCurrent(){this.hide(document.querySelector(`.${this.prefix}-content>.${this.showClass}`))}contactInformationCheck(t){return!t||m(t)||y(t)?(this.hide(this.templete.typeErr),!0):(this.show(this.templete.typeErr),!1)}tabmenuTPL(){let t="";for(let e=0;e<g.length;e++)t+=`<div class="${this.prefix}-tabmenu-list" data-val="${g[e].value}">${g[e].title}</div>`;return t}tpl(){const t=this.prefix,e=this.config.bvid?`bvid=${this.config.bvid}`:`avid=${this.config.aid}`;return`<div class="${t}-panel">\n                    <div class="${t}-title">\n                        <span class="${t}-title-content"></span>\n                        <span class="${t}-panel-close" data-val="close">${I()}</span>\n                    </div>\n                    <div class="${t}-content">\n                        <div class="${t}-content-default ${this.showClass}">\n                            <div class="${t}-content-tabmenu">${this.tabmenuTPL()}</div>\n                            <div class="${t}-content-input">\n                                <input type="text" class="${t}-input" placeholder="问题描述，限100字以内">\n                                <div class="${t}-input-overrange">超出100字</div>\n                            </div>\n                            <div class="${t}-contact-information">\n                                <span class="${t}-contact-information-tip">联系方式</span>\n                                <input type="text" class="${t}-contact-information-input" placeholder="留下QQ/邮箱，便于进一步解决问题" data-val="qq">\n                                <div class="${t}-type-error">请输入正确的联系方式</div>\n                            </div>\n                            <div class="${t}-submit-wrap">\n                                <div class="${t}-submit disable" data-val="presubmit">确定</div>\n                            </div>\n                            <div class="${t}-version-wrap">\n                                <a href="//www.bilibili.com/blackboard/webplayer_history.html#html5" target="_blank" class="${t}-version-store" data-val="store">版本记录</a>\n                                <a href="//www.bilibili.com/blackboard/help.html#/?qid=31912cc2c4b3420f8d1f4c5239427c4f&pid=426d68c10ea94f67958847e4ba26e72f" target="_blank" class="${t}-version-selfhelp" data-val="selfhelp">自救方法</a>\n                                <a href="//www.bilibili.com/blackboard/video-diagnostics.html?${e}&cid=${this.config.cid}" target="_blank" class="${t}-version-networkspeed" data-val="networkspeed">播放测速</a>\n                            </div>\n                        </div>\n                        <div class="${this.prefix}-content-success"></div>\n                        <div class="${this.prefix}-content-fail"></div>\n                        <div class="${this.prefix}-content-test"></div>\n                        <div class="${this.prefix}-content-test-success"></div>\n                        <div class="${this.prefix}-content-test-fail"></div>\n                    </div>\n                </div>`}successTpl(){const t=`${this.prefix}-content-success`;return`<div class="${t}-image"></div>\n        <div class="${t}-title">反馈已收到我们会持续跟进,大感谢!</div>\n        <div class="${t}-tips-wrap">\n            <div class="${t}-tips">播放器问题反馈邮箱: <a href="mailto:feedback@bilibili.com">feedback@bilibili.com</a></div>\n            <div class="${t}-tips">QQ反馈群: 418984413</div>\n        </div>`}failTpl(){const t=`${this.prefix}-content-fail`;return`<div class="${t}-title">啊哦，提交失败啦> <<span class="${t}-title-code">404</span></div>\n        <div class="${t}-image"></div>\n        <div class="${t}-tips-wrap">\n            <div class="${t}-tips">播放器问题反馈邮箱: <a href="mailto:feedback@bilibili.com">feedback@bilibili.com</a></div>\n            <div class="${t}-tips">QQ反馈群: 418984413</div>\n        </div>\n        <div class="${t}-resubmit ${this.showClass}" data-val="submit">重新提交</div>`}testTpl(){const t=`${this.prefix}-content-test`;return`<div class="${t}-title">距离反馈递交就差一步啦 (ฅ>ω<*ฅ)</div>\n        <div class="${t}-image"></div>\n        <div class="${t}-tips">（非必需）上报网络速度，以帮助我们更好定位问题</div>\n        <div class="${t}-btn-wrap">\n            <div class="${t}-speedtest" data-val="test">一键测速</div>\n            <div class="${t}-submit" data-val="submit">提交</div>\n        </div>`}testSuccessTpl(){const t=`${this.prefix}-content-test-success`
;return`<div class="${t}-title">距离反馈递交就差一步啦 (ฅ>ω<*ฅ)</div>\n        <div class="${t}-circle-wrap"></div>\n        <div class="${t}-submit" data-val="submit">提交</div>`}testFailTpl(){const t=`${this.prefix}-content-test-fail`;return`<div class="${t}-image"></div>\n        <div class="${t}-title">测速失败啦，如果亲赶时间，可以选择直接提交啦> <</div>\n        <div class="${t}-btn-wrap">\n           <div class="${t}-speedtest" data-val="test">重新测速</div>\n            <div class="${t}-submit" data-val="submit">提交</div>\n        </div>`}}var _=Object.defineProperty,R=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,F=(t,e,i)=>e in t?_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class L{constructor(t){this.config=((t,e)=>{for(var i in e||(e={}))M.call(e,i)&&F(t,i,e[i]);if(R)for(var i of R(e))T.call(e,i)&&F(t,i,e[i]);return t})({container:document.createElement("div"),theme:"blue",prefix:"b-back",version:"0",track:(t,e)=>{},closeCb:()=>{},getPlayInfo:()=>{},submitLimit:3,openWindow:null},t)}show(){this.panel||(this.panel=new D(this.config)),this.panel.showPanel()}directFeedback(t){this.panel||(this.panel=new D(this.config)),this.panel.directFeedback(t)}hide(){var t;null==(t=this.panel)||t.hidePanel()}reset(){var t;null==(t=this.panel)||t.resetDate()}destroy(){var t;null==(t=this.panel)||t.destroy()}}},78489:function(t,e,i){"use strict";i.r(e),i.d(e,{PanoramaRenderer:function(){return hA}});const n=100,r=101,o=102,a=200,s=201,l=202,A=203,c=204,h=205,d=206,u=207,p=208,g=209,f=210,m=301,y=302,b=306,v=307,E=1e3,I=1001,C=1002,B=1003,w=1004,x=1005,Q=1006,S=1007,k=1008,D=1009,_=1012,R=1014,M=1015,T=1016,F=1020,L=1022,N=1023,P=1026,U=1027,O=2300,G=2301,H=2302,V=2400,Y=2401,z=2402,W=2500,Z=3e3,j=3001,q=3007,J=3002,K=7680,X=35044,$=35048,tt="300 es";function et(){}Object.assign(et.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});const i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(e)&&i[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;const i=this._listeners;return void 0!==i[t]&&-1!==i[t].indexOf(e)},removeEventListener:function(t,e){if(void 0===this._listeners)return;const i=this._listeners[t];if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},dispatchEvent:function(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const i=e.slice(0);for(let e=0,n=i.length;e<n;e++)i[e].call(this,t)}}});const it=[];for(let t=0;t<256;t++)it[t]=(t<16?"0":"")+t.toString(16);let nt=1234567;const rt={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,i=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return(it[255&t]+it[t>>8&255]+it[t>>16&255]+it[t>>24&255]+"-"+it[255&e]+it[e>>8&255]+"-"+it[e>>16&15|64]+it[e>>24&255]+"-"+it[63&i|128]+it[i>>8&255]+"-"+it[i>>16&255]+it[i>>24&255]+it[255&n]+it[n>>8&255]+it[n>>16&255]+it[n>>24&255]).toUpperCase()},clamp:function(t,e,i){return Math.max(e,Math.min(i,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,i,n,r){return n+(t-e)*(r-n)/(i-e)},lerp:function(t,e,i){return(1-i)*t+i*e},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){return void 0!==t&&(nt=t%2147483647),nt=16807*nt%2147483647,(nt-1)/2147483646},degToRad:function(t){return t*rt.DEG2RAD},radToDeg:function(t){return t*rt.RAD2DEG},isPowerOfTwo:function(t){return!(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,e,i,n,r){const o=Math.cos,a=Math.sin,s=o(i/2),l=a(i/2),A=o((e+n)/2),c=a((e+n)/2),h=o((e-n)/2),d=a((e-n)/2),u=o((n-e)/2),p=a((n-e)/2);switch(r){case"XYX":t.set(s*c,l*h,l*d,s*A);break;case"YZY":t.set(l*d,s*c,l*h,s*A);break;case"ZXZ":t.set(l*h,l*d,s*c,s*A);break;case"XZX":t.set(s*c,l*p,l*u,s*A);break;case"YXY":t.set(l*u,s*c,l*p,s*A);break;case"ZYZ":t.set(l*p,l*u,s*c,s*A);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}};class ot{constructor(t=0,e=0){Object.defineProperty(this,"isVector2",{value:!0}),this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,i=this.y,n=t.elements;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y;return e*e+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this}toArray(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,i){return void 0!==i&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const i=Math.cos(e),n=Math.sin(e),r=this.x-t.x,o=this.y-t.y
;return this.x=r*i-o*n+t.x,this.y=r*n+o*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}}class at{constructor(){Object.defineProperty(this,"isMatrix3",{value:!0}),this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,i,n,r,o,a,s,l){const A=this.elements;return A[0]=t,A[1]=n,A[2]=a,A[3]=e,A[4]=r,A[5]=s,A[6]=i,A[7]=o,A[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}clone(){return(new this.constructor).fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}extractBasis(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,n=e.elements,r=this.elements,o=i[0],a=i[3],s=i[6],l=i[1],A=i[4],c=i[7],h=i[2],d=i[5],u=i[8],p=n[0],g=n[3],f=n[6],m=n[1],y=n[4],b=n[7],v=n[2],E=n[5],I=n[8];return r[0]=o*p+a*m+s*v,r[3]=o*g+a*y+s*E,r[6]=o*f+a*b+s*I,r[1]=l*p+A*m+c*v,r[4]=l*g+A*y+c*E,r[7]=l*f+A*b+c*I,r[2]=h*p+d*m+u*v,r[5]=h*g+d*y+u*E,r[8]=h*f+d*b+u*I,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],A=t[8];return e*o*A-e*a*l-i*r*A+i*a*s+n*r*l-n*o*s}getInverse(t,e){void 0!==e&&console.warn("THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate.");const i=t.elements,n=this.elements,r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],A=i[5],c=i[6],h=i[7],d=i[8],u=d*l-A*h,p=A*c-d*s,g=h*s-l*c,f=r*u+o*p+a*g;if(0===f)return this.set(0,0,0,0,0,0,0,0,0);const m=1/f;return n[0]=u*m,n[1]=(a*h-d*o)*m,n[2]=(A*o-a*l)*m,n[3]=p*m,n[4]=(d*r-a*c)*m,n[5]=(a*s-A*r)*m,n[6]=g*m,n[7]=(o*c-h*r)*m,n[8]=(l*r-o*s)*m,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).getInverse(this).transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,i,n,r,o,a){const s=Math.cos(r),l=Math.sin(r);this.set(i*s,i*l,-i*(s*o+l*a)+o+t,-n*l,n*s,-n*(-l*o+s*a)+a+e,0,0,1)}scale(t,e){const i=this.elements;return i[0]*=t,i[3]*=t,i[6]*=t,i[1]*=e,i[4]*=e,i[7]*=e,this}rotate(t){const e=Math.cos(t),i=Math.sin(t),n=this.elements,r=n[0],o=n[3],a=n[6],s=n[1],l=n[4],A=n[7];return n[0]=e*r+i*s,n[3]=e*o+i*l,n[6]=e*a+i*A,n[1]=-i*r+e*s,n[4]=-i*o+e*l,n[7]=-i*a+e*A,this}translate(t,e){const i=this.elements;return i[0]+=t*i[2],i[3]+=t*i[5],i[6]+=t*i[8],i[1]+=e*i[2],i[4]+=e*i[5],i[7]+=e*i[8],this}equals(t){const e=this.elements,i=t.elements;for(let t=0;t<9;t++)if(e[t]!==i[t])return!1;return!0}fromArray(t,e){void 0===e&&(e=0);for(let i=0;i<9;i++)this.elements[i]=t[i+e];return this}toArray(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}}let st;const lt={getDataURL:function(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===st&&(st=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),st.width=t.width,st.height=t.height;const i=st.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=st}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}};let At=0;function ct(t,e,i,n,r,o,a,s,l,A){Object.defineProperty(this,"id",{value:At++}),this.uuid=rt.generateUUID(),this.name="",this.image=void 0!==t?t:ct.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:ct.DEFAULT_MAPPING,this.wrapS=void 0!==i?i:I,this.wrapT=void 0!==n?n:I,this.magFilter=void 0!==r?r:Q,this.minFilter=void 0!==o?o:k,this.anisotropy=void 0!==l?l:1,this.format=void 0!==a?a:N,this.internalFormat=null,this.type=void 0!==s?s:D,this.offset=new ot(0,0),this.repeat=new ot(1,1),this.center=new ot(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new at,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==A?A:Z,this.version=0,this.onUpdate=null}ct.DEFAULT_IMAGE=void 0,ct.DEFAULT_MAPPING=300,ct.prototype=Object.assign(Object.create(et.prototype),{constructor:ct,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const i={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){const n=this.image;if(void 0===n.uuid&&(n.uuid=rt.generateUUID()),!e&&void 0===t.images[n.uuid]){let e;if(Array.isArray(n)){e=[];for(let t=0,i=n.length;t<i;t++)e.push(lt.getDataURL(n[t]))}else e=lt.getDataURL(n);t.images[n.uuid]={uuid:n.uuid,url:e}}i.image=n.uuid}return e||(t.textures[this.uuid]=i),i},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case E:t.x=t.x-Math.floor(t.x);break;case I:t.x=t.x<0?0:1;break;case C:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case E:t.y=t.y-Math.floor(t.y);break;case I:t.y=t.y<0?0:1;break;case C:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(ct.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}});class ht{constructor(t=0,e=0,i=0,n=1){Object.defineProperty(this,"isVector4",{value:!0}),this.x=t,this.y=e,this.z=i,this.w=n}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,
this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,i=this.y,n=this.z,r=this.w,o=t.elements;return this.x=o[0]*e+o[4]*i+o[8]*n+o[12]*r,this.y=o[1]*e+o[5]*i+o[9]*n+o[13]*r,this.z=o[2]*e+o[6]*i+o[10]*n+o[14]*r,this.w=o[3]*e+o[7]*i+o[11]*n+o[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,i,n,r;const o=.01,a=.1,s=t.elements,l=s[0],A=s[4],c=s[8],h=s[1],d=s[5],u=s[9],p=s[2],g=s[6],f=s[10];if(Math.abs(A-h)<o&&Math.abs(c-p)<o&&Math.abs(u-g)<o){if(Math.abs(A+h)<a&&Math.abs(c+p)<a&&Math.abs(u+g)<a&&Math.abs(l+d+f-3)<a)return this.set(1,0,0,0),this;e=Math.PI;const t=(l+1)/2,s=(d+1)/2,m=(f+1)/2,y=(A+h)/4,b=(c+p)/4,v=(u+g)/4;return t>s&&t>m?t<o?(i=0,n=.707106781,r=.707106781):(i=Math.sqrt(t),n=y/i,r=b/i):s>m?s<o?(i=.707106781,n=0,r=.707106781):(n=Math.sqrt(s),i=y/n,r=v/n):m<o?(i=.707106781,n=.707106781,r=0):(r=Math.sqrt(m),i=b/r,n=v/r),this.set(i,n,r,e),this}let m=Math.sqrt((g-u)*(g-u)+(c-p)*(c-p)+(h-A)*(h-A));return Math.abs(m)<.001&&(m=1),this.x=(g-u)/m,this.y=(c-p)/m,this.z=(h-A)/m,this.w=Math.acos((l+d+f-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this.w=t.w+(e.w-t.w)*i,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,i){return void 0!==i&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}}function dt(t,e,i){this.width=t,this.height=e,this.scissor=new ht(0,0,t,e),this.scissorTest=!1,this.viewport=new ht(0,0,t,e),i=i||{},this.texture=new ct(void 0,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.image={},this.texture.image.width=t,this.texture.image.height=e,this.texture.generateMipmaps=void 0!==i.generateMipmaps&&i.generateMipmaps,this.texture.minFilter=void 0!==i.minFilter?i.minFilter:Q,this.depthBuffer=void 0===i.depthBuffer||i.depthBuffer,this.stencilBuffer=void 0!==i.stencilBuffer&&i.stencilBuffer,this.depthTexture=void 0!==i.depthTexture?i.depthTexture:null}function ut(t,e,i){dt.call(this,t,e,i),this.samples=4}dt.prototype=Object.assign(Object.create(et.prototype),{constructor:dt,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.texture.image.width=t,this.texture.image.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),ut.prototype=Object.assign(Object.create(dt.prototype),{constructor:ut,isWebGLMultisampleRenderTarget:!0,copy:function(t){return dt.prototype.copy.call(this,t),this.samples=t.samples,this}});class pt{constructor(t=0,e=0,i=0,n=1){Object.defineProperty(this,"isQuaternion",{value:!0}),this._x=t,this._y=e,this._z=i,this._w=n}static slerp(t,e,i,n){return i.copy(t).slerp(e,n)}static slerpFlat(t,e,i,n,r,o,a){let s=i[n+0],l=i[n+1],A=i[n+2],c=i[n+3];const h=r[o+0],d=r[o+1],u=r[o+2],p=r[o+3];if(c!==p||s!==h||l!==d||A!==u){let t=1-a;const e=s*h+l*d+A*u+c*p,i=e>=0?1:-1,n=1-e*e;if(n>Number.EPSILON){const r=Math.sqrt(n),o=Math.atan2(r,e*i);t=Math.sin(t*o)/r,a=Math.sin(a*o)/r}const r=a*i;if(s=s*t+h*r,l=l*t+d*r,A=A*t+u*r,c=c*t+p*r,t===1-a){const t=1/Math.sqrt(s*s+l*l+A*A+c*c);s*=t,l*=t,A*=t,c*=t}}t[e]=s,t[e+1]=l,t[e+2]=A,t[e+3]=c}static multiplyQuaternionsFlat(t,e,i,n,r,o){const a=i[n],s=i[n+1],l=i[n+2],A=i[n+3],c=r[o],h=r[o+1],d=r[o+2],u=r[o+3];return t[e]=a*u+A*c+s*d-l*h,t[e+1]=s*u+A*h+l*c-a*d,t[e+2]=l*u+A*d+a*h-s*c,t[e+3]=A*u-a*c-s*h-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const i=t._x,n=t._y,r=t._z,o=t._order,a=Math.cos,s=Math.sin,l=a(i/2),A=a(n/2),c=a(r/2),h=s(i/2),d=s(n/2),u=s(r/2);switch(o){case"XYZ":this._x=h*A*c+l*d*u,this._y=l*d*c-h*A*u,this._z=l*A*u+h*d*c,this._w=l*A*c-h*d*u;break;case"YXZ":this._x=h*A*c+l*d*u,this._y=l*d*c-h*A*u,this._z=l*A*u-h*d*c,this._w=l*A*c+h*d*u;break;case"ZXY":
this._x=h*A*c-l*d*u,this._y=l*d*c+h*A*u,this._z=l*A*u+h*d*c,this._w=l*A*c-h*d*u;break;case"ZYX":this._x=h*A*c-l*d*u,this._y=l*d*c+h*A*u,this._z=l*A*u-h*d*c,this._w=l*A*c+h*d*u;break;case"YZX":this._x=h*A*c+l*d*u,this._y=l*d*c+h*A*u,this._z=l*A*u-h*d*c,this._w=l*A*c-h*d*u;break;case"XZY":this._x=h*A*c-l*d*u,this._y=l*d*c-h*A*u,this._z=l*A*u+h*d*c,this._w=l*A*c+h*d*u;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const i=e/2,n=Math.sin(i);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],n=e[4],r=e[8],o=e[1],a=e[5],s=e[9],l=e[2],A=e[6],c=e[10],h=i+a+c;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(A-s)*t,this._y=(r-l)*t,this._z=(o-n)*t}else if(i>a&&i>c){const t=2*Math.sqrt(1+i-a-c);this._w=(A-s)/t,this._x=.25*t,this._y=(n+o)/t,this._z=(r+l)/t}else if(a>c){const t=2*Math.sqrt(1+a-i-c);this._w=(r-l)/t,this._x=(n+o)/t,this._y=.25*t,this._z=(s+A)/t}else{const t=2*Math.sqrt(1+c-i-a);this._w=(o-n)/t,this._x=(r+l)/t,this._y=(s+A)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let i=t.dot(e)+1;return i<1e-6?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(rt.clamp(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(0===i)return this;const n=Math.min(1,e/i);return this.slerp(t,n),this}identity(){return this.set(0,0,0,1)}inverse(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const i=t._x,n=t._y,r=t._z,o=t._w,a=e._x,s=e._y,l=e._z,A=e._w;return this._x=i*A+o*a+n*l-r*s,this._y=n*A+o*s+r*a-i*l,this._z=r*A+o*l+i*s-n*a,this._w=o*A-i*a-n*s-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const i=this._x,n=this._y,r=this._z,o=this._w;let a=o*t._w+i*t._x+n*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=i,this._y=n,this._z=r,this;const s=1-a*a;if(s<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*i+e*this._x,this._y=t*n+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(s),A=Math.atan2(l,a),c=Math.sin((1-e)*A)/l,h=Math.sin(e*A)/l;return this._w=o*c+this._w*h,this._x=i*c+this._x*h,this._y=n*c+this._y*h,this._z=r*c+this._z*h,this._onChangeCallback(),this}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}class gt{constructor(t=0,e=0,i=0){Object.defineProperty(this,"isVector3",{value:!0}),this.x=t,this.y=e,this.z=i}set(t,e,i){return void 0===i&&(i=this.z),this.x=t,this.y=e,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(mt.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(mt.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,i=this.y,n=this.z,r=t.elements;return this.x=r[0]*e+r[3]*i+r[6]*n,this.y=r[1]*e+r[4]*i+r[7]*n,this.z=r[2]*e+r[5]*i+r[8]*n,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,i=this.y,n=this.z,r=t.elements,o=1/(r[3]*e+r[7]*i+r[11]*n+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*n+r[12])*o,this.y=(r[1]*e+r[5]*i+r[9]*n+r[13])*o,this.z=(r[2]*e+r[6]*i+r[10]*n+r[14])*o,this}applyQuaternion(t){const e=this.x,i=this.y,n=this.z,r=t.x,o=t.y,a=t.z,s=t.w,l=s*e+o*n-a*i,A=s*i+a*e-r*n,c=s*n+r*i-o*e,h=-r*e-o*i-a*n;return this.x=l*s+h*-r+A*-a-c*-o,this.y=A*s+h*-o+c*-r-l*-a,this.z=c*s+h*-a+l*-o-A*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,i=this.y,n=this.z,r=t.elements;return this.x=r[0]*e+r[4]*i+r[8]*n,this.y=r[1]*e+r[5]*i+r[9]*n,this.z=r[2]*e+r[6]*i+r[10]*n,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),
this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const i=t.x,n=t.y,r=t.z,o=e.x,a=e.y,s=e.z;return this.x=n*s-r*a,this.y=r*o-i*s,this.z=i*a-n*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return ft.copy(this).projectOnVector(t),this.sub(ft)}reflect(t){return this.sub(ft.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(rt.clamp(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y,n=this.z-t.z;return e*e+i*i+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,i){const n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=n,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,i){return void 0!==i&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}}const ft=new gt,mt=new pt;class yt{constructor(t,e){Object.defineProperty(this,"isBox3",{value:!0}),this.min=void 0!==t?t:new gt(1/0,1/0,1/0),this.max=void 0!==e?e:new gt(-1/0,-1/0,-1/0)}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,i=1/0,n=1/0,r=-1/0,o=-1/0,a=-1/0;for(let s=0,l=t.length;s<l;s+=3){const l=t[s],A=t[s+1],c=t[s+2];l<e&&(e=l),A<i&&(i=A),c<n&&(n=c),l>r&&(r=l),A>o&&(o=A),c>a&&(a=c)}return this.min.set(e,i,n),this.max.set(r,o,a),this}setFromBufferAttribute(t){let e=1/0,i=1/0,n=1/0,r=-1/0,o=-1/0,a=-1/0;for(let s=0,l=t.count;s<l;s++){const l=t.getX(s),A=t.getY(s),c=t.getZ(s);l<e&&(e=l),A<i&&(i=A),c<n&&(n=c),l>r&&(r=l),A>o&&(o=A),c>a&&(a=c)}return this.min.set(e,i,n),this.max.set(r,o,a),this}setFromPoints(t){this.makeEmpty();for(let e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const i=Et.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}setFromObject(t){return this.makeEmpty(),this.expandByObject(t)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return void 0===t&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new gt),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return void 0===t&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new gt),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t){t.updateWorldMatrix(!1,!1);const e=t.geometry;void 0!==e&&(null===e.boundingBox&&e.computeBoundingBox(),It.copy(e.boundingBox),It.applyMatrix4(t.matrixWorld),this.union(It));const i=t.children;for(let t=0,e=i.length;t<e;t++)this.expandByObject(i[t]);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return void 0===e&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new gt),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,Et),Et.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(kt),Dt.subVectors(this.max,kt),Ct.subVectors(t.a,kt),Bt.subVectors(t.b,kt),wt.subVectors(t.c,kt),xt.subVectors(Bt,Ct),Qt.subVectors(wt,Bt),St.subVectors(Ct,wt);let e=[0,-xt.z,xt.y,0,-Qt.z,Qt.y,0,-St.z,St.y,xt.z,0,-xt.x,Qt.z,0,-Qt.x,St.z,0,-St.x,-xt.y,xt.x,0,-Qt.y,Qt.x,0,-St.y,St.x,0];return!!bt(e,Ct,Bt,wt,Dt)&&(e=[1,0,0,0,1,0,0,0,1],!!bt(e,Ct,Bt,wt,Dt)&&(_t.crossVectors(xt,Qt),e=[_t.x,_t.y,_t.z],bt(e,Ct,Bt,wt,Dt)))}clampPoint(t,e){return void 0===e&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new gt),e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return Et.copy(t).clamp(this.min,this.max).sub(t).length()}getBoundingSphere(t){return void 0===t&&console.error("THREE.Box3: .getBoundingSphere() target is now required"),this.getCenter(t.center),t.radius=.5*this.getSize(Et).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(vt[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),vt[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),vt[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),vt[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),vt[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),vt[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),vt[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),vt[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(vt)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}function bt(t,e,i,n,r){for(let o=0,a=t.length-3;o<=a;o+=3){Rt.fromArray(t,o);const a=r.x*Math.abs(Rt.x)+r.y*Math.abs(Rt.y)+r.z*Math.abs(Rt.z),s=e.dot(Rt),l=i.dot(Rt),A=n.dot(Rt)
;if(Math.max(-Math.max(s,l,A),Math.min(s,l,A))>a)return!1}return!0}const vt=[new gt,new gt,new gt,new gt,new gt,new gt,new gt,new gt],Et=new gt,It=new yt,Ct=new gt,Bt=new gt,wt=new gt,xt=new gt,Qt=new gt,St=new gt,kt=new gt,Dt=new gt,_t=new gt,Rt=new gt,Mt=new yt;class Tt{constructor(t,e){this.center=void 0!==t?t:new gt,this.radius=void 0!==e?e:-1}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const i=this.center;void 0!==e?i.copy(e):Mt.setFromPoints(t).getCenter(i);let n=0;for(let e=0,r=t.length;e<r;e++)n=Math.max(n,i.distanceToSquared(t[e]));return this.radius=Math.sqrt(n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const i=this.center.distanceToSquared(t);return void 0===e&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new gt),e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return void 0===t&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new yt),this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}}const Ft=new gt,Lt=new gt,Nt=new gt,Pt=new gt,Ut=new gt,Ot=new gt,Gt=new gt;class Ht{constructor(t,e){this.origin=void 0!==t?t:new gt,this.direction=void 0!==e?e:new gt(0,0,-1)}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return void 0===e&&(console.warn("THREE.Ray: .at() target is now required"),e=new gt),e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Ft)),this}closestPointToPoint(t,e){void 0===e&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new gt),e.subVectors(t,this.origin);const i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(i).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Ft.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Ft.copy(this.direction).multiplyScalar(e).add(this.origin),Ft.distanceToSquared(t))}distanceSqToSegment(t,e,i,n){Lt.copy(t).add(e).multiplyScalar(.5),Nt.copy(e).sub(t).normalize(),Pt.copy(this.origin).sub(Lt);const r=.5*t.distanceTo(e),o=-this.direction.dot(Nt),a=Pt.dot(this.direction),s=-Pt.dot(Nt),l=Pt.lengthSq(),A=Math.abs(1-o*o);let c,h,d,u;if(A>0)if(c=o*s-a,h=o*a-s,u=r*A,c>=0)if(h>=-u)if(h<=u){const t=1/A;c*=t,h*=t,d=c*(c+o*h+2*a)+h*(o*c+h+2*s)+l}else h=r,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+l;else h=-r,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+l;else h<=-u?(c=Math.max(0,-(-o*r+a)),h=c>0?-r:Math.min(Math.max(-r,-s),r),d=-c*c+h*(h+2*s)+l):h<=u?(c=0,h=Math.min(Math.max(-r,-s),r),d=h*(h+2*s)+l):(c=Math.max(0,-(o*r+a)),h=c>0?r:Math.min(Math.max(-r,-s),r),d=-c*c+h*(h+2*s)+l);else h=o>0?-r:r,c=Math.max(0,-(o*h+a)),d=-c*c+h*(h+2*s)+l;return i&&i.copy(this.direction).multiplyScalar(c).add(this.origin),n&&n.copy(Nt).multiplyScalar(h).add(Lt),d}intersectSphere(t,e){Ft.subVectors(t.center,this.origin);const i=Ft.dot(this.direction),n=Ft.dot(Ft)-i*i,r=t.radius*t.radius;if(n>r)return null;const o=Math.sqrt(r-n),a=i-o,s=i+o;return a<0&&s<0?null:a<0?this.at(s,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}intersectPlane(t,e){const i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let i,n,r,o,a,s;const l=1/this.direction.x,A=1/this.direction.y,c=1/this.direction.z,h=this.origin;return l>=0?(i=(t.min.x-h.x)*l,n=(t.max.x-h.x)*l):(i=(t.max.x-h.x)*l,n=(t.min.x-h.x)*l),A>=0?(r=(t.min.y-h.y)*A,o=(t.max.y-h.y)*A):(r=(t.max.y-h.y)*A,o=(t.min.y-h.y)*A),i>o||r>n?null:((r>i||i!=i)&&(i=r),(o<n||n!=n)&&(n=o),c>=0?(a=(t.min.z-h.z)*c,s=(t.max.z-h.z)*c):(a=(t.max.z-h.z)*c,s=(t.min.z-h.z)*c),i>s||a>n?null:((a>i||i!=i)&&(i=a),(s<n||n!=n)&&(n=s),n<0?null:this.at(i>=0?i:n,e)))}intersectsBox(t){return null!==this.intersectBox(t,Ft)}intersectTriangle(t,e,i,n,r){Ut.subVectors(e,t),Ot.subVectors(i,t),Gt.crossVectors(Ut,Ot);let o,a=this.direction.dot(Gt);if(a>0){if(n)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}Pt.subVectors(this.origin,t);const s=o*this.direction.dot(Ot.crossVectors(Pt,Ot));if(s<0)return null;const l=o*this.direction.dot(Ut.cross(Pt));if(l<0)return null;if(s+l>a)return null;const A=-o*Pt.dot(Gt);return A<0?null:this.at(A/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}class Vt{constructor(){Object.defineProperty(this,"isMatrix4",{value:!0}),this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,i,n,r,o,a,s,l,A,c,h,d,u,p,g){const f=this.elements;return f[0]=t,f[4]=e,f[8]=i,f[12]=n,f[1]=r,f[5]=o,f[9]=a,f[13]=s,f[2]=l,f[6]=A,f[10]=c,f[14]=h,f[3]=d,f[7]=u,f[11]=p,f[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Vt).fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}copyPosition(t){const e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}extractBasis(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,i=t.elements,n=1/Yt.setFromMatrixColumn(t,0).length(),r=1/Yt.setFromMatrixColumn(t,1).length(),o=1/Yt.setFromMatrixColumn(t,2).length();return e[0]=i[0]*n,e[1]=i[1]*n,e[2]=i[2]*n,e[3]=0,e[4]=i[4]*r,e[5]=i[5]*r,e[6]=i[6]*r,e[7]=0,e[8]=i[8]*o,e[9]=i[9]*o,e[10]=i[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,i=t.x,n=t.y,r=t.z,o=Math.cos(i),a=Math.sin(i),s=Math.cos(n),l=Math.sin(n),A=Math.cos(r),c=Math.sin(r);if("XYZ"===t.order){const t=o*A,i=o*c,n=a*A,r=a*c;e[0]=s*A,e[4]=-s*c,e[8]=l,e[1]=i+n*l,e[5]=t-r*l,e[9]=-a*s,e[2]=r-t*l,e[6]=n+i*l,e[10]=o*s}else if("YXZ"===t.order){const t=s*A,i=s*c,n=l*A,r=l*c;e[0]=t+r*a,e[4]=n*a-i,e[8]=o*l,e[1]=o*c,e[5]=o*A,e[9]=-a,e[2]=i*a-n,e[6]=r+t*a,e[10]=o*s}else if("ZXY"===t.order){const t=s*A,i=s*c,n=l*A,r=l*c;e[0]=t-r*a,e[4]=-o*c,e[8]=n+i*a,e[1]=i+n*a,e[5]=o*A,e[9]=r-t*a,e[2]=-o*l,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){const t=o*A,i=o*c,n=a*A,r=a*c;e[0]=s*A,e[4]=n*l-i,e[8]=t*l+r,e[1]=s*c,e[5]=r*l+t,e[9]=i*l-n,e[2]=-l,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){const t=o*s,i=o*l,n=a*s,r=a*l;e[0]=s*A,e[4]=r-t*c,e[8]=n*c+i,
e[1]=c,e[5]=o*A,e[9]=-a*A,e[2]=-l*A,e[6]=i*c+n,e[10]=t-r*c}else if("XZY"===t.order){const t=o*s,i=o*l,n=a*s,r=a*l;e[0]=s*A,e[4]=-c,e[8]=l*A,e[1]=t*c+r,e[5]=o*A,e[9]=i*c-n,e[2]=n*c-i,e[6]=a*A,e[10]=r*c+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Wt,t,Zt)}lookAt(t,e,i){const n=this.elements;return Jt.subVectors(t,e),0===Jt.lengthSq()&&(Jt.z=1),Jt.normalize(),jt.crossVectors(i,Jt),0===jt.lengthSq()&&(1===Math.abs(i.z)?Jt.x+=1e-4:Jt.z+=1e-4,Jt.normalize(),jt.crossVectors(i,Jt)),jt.normalize(),qt.crossVectors(Jt,jt),n[0]=jt.x,n[4]=qt.x,n[8]=Jt.x,n[1]=jt.y,n[5]=qt.y,n[9]=Jt.y,n[2]=jt.z,n[6]=qt.z,n[10]=Jt.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,n=e.elements,r=this.elements,o=i[0],a=i[4],s=i[8],l=i[12],A=i[1],c=i[5],h=i[9],d=i[13],u=i[2],p=i[6],g=i[10],f=i[14],m=i[3],y=i[7],b=i[11],v=i[15],E=n[0],I=n[4],C=n[8],B=n[12],w=n[1],x=n[5],Q=n[9],S=n[13],k=n[2],D=n[6],_=n[10],R=n[14],M=n[3],T=n[7],F=n[11],L=n[15];return r[0]=o*E+a*w+s*k+l*M,r[4]=o*I+a*x+s*D+l*T,r[8]=o*C+a*Q+s*_+l*F,r[12]=o*B+a*S+s*R+l*L,r[1]=A*E+c*w+h*k+d*M,r[5]=A*I+c*x+h*D+d*T,r[9]=A*C+c*Q+h*_+d*F,r[13]=A*B+c*S+h*R+d*L,r[2]=u*E+p*w+g*k+f*M,r[6]=u*I+p*x+g*D+f*T,r[10]=u*C+p*Q+g*_+f*F,r[14]=u*B+p*S+g*R+f*L,r[3]=m*E+y*w+b*k+v*M,r[7]=m*I+y*x+b*D+v*T,r[11]=m*C+y*Q+b*_+v*F,r[15]=m*B+y*S+b*R+v*L,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[4],n=t[8],r=t[12],o=t[1],a=t[5],s=t[9],l=t[13],A=t[2],c=t[6],h=t[10],d=t[14];return t[3]*(+r*s*c-n*l*c-r*a*h+i*l*h+n*a*d-i*s*d)+t[7]*(+e*s*d-e*l*h+r*o*h-n*o*d+n*l*A-r*s*A)+t[11]*(+e*l*c-e*a*d-r*o*c+i*o*d+r*a*A-i*l*A)+t[15]*(-n*a*A-e*s*c+e*a*h+n*o*c-i*o*h+i*s*A)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,i){const n=this.elements;return t.isVector3?(n[12]=t.x,n[13]=t.y,n[14]=t.z):(n[12]=t,n[13]=e,n[14]=i),this}getInverse(t,e){void 0!==e&&console.warn("THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate.");const i=this.elements,n=t.elements,r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],A=n[5],c=n[6],h=n[7],d=n[8],u=n[9],p=n[10],g=n[11],f=n[12],m=n[13],y=n[14],b=n[15],v=u*y*h-m*p*h+m*c*g-A*y*g-u*c*b+A*p*b,E=f*p*h-d*y*h-f*c*g+l*y*g+d*c*b-l*p*b,I=d*m*h-f*u*h+f*A*g-l*m*g-d*A*b+l*u*b,C=f*u*c-d*m*c-f*A*p+l*m*p+d*A*y-l*u*y,B=r*v+o*E+a*I+s*C;if(0===B)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const w=1/B;return i[0]=v*w,i[1]=(m*p*s-u*y*s-m*a*g+o*y*g+u*a*b-o*p*b)*w,i[2]=(A*y*s-m*c*s+m*a*h-o*y*h-A*a*b+o*c*b)*w,i[3]=(u*c*s-A*p*s-u*a*h+o*p*h+A*a*g-o*c*g)*w,i[4]=E*w,i[5]=(d*y*s-f*p*s+f*a*g-r*y*g-d*a*b+r*p*b)*w,i[6]=(f*c*s-l*y*s-f*a*h+r*y*h+l*a*b-r*c*b)*w,i[7]=(l*p*s-d*c*s+d*a*h-r*p*h-l*a*g+r*c*g)*w,i[8]=I*w,i[9]=(f*u*s-d*m*s-f*o*g+r*m*g+d*o*b-r*u*b)*w,i[10]=(l*m*s-f*A*s+f*o*h-r*m*h-l*o*b+r*A*b)*w,i[11]=(d*A*s-l*u*s-d*o*h+r*u*h+l*o*g-r*A*g)*w,i[12]=C*w,i[13]=(d*m*a-f*u*a+f*o*p-r*m*p-d*o*y+r*u*y)*w,i[14]=(f*A*a-l*m*a-f*o*c+r*m*c+l*o*y-r*A*y)*w,i[15]=(l*u*a-d*A*a+d*o*c-r*u*c-l*o*p+r*A*p)*w,this}scale(t){const e=this.elements,i=t.x,n=t.y,r=t.z;return e[0]*=i,e[4]*=n,e[8]*=r,e[1]*=i,e[5]*=n,e[9]*=r,e[2]*=i,e[6]*=n,e[10]*=r,e[3]*=i,e[7]*=n,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}makeTranslation(t,e,i){return this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const i=Math.cos(e),n=Math.sin(e),r=1-i,o=t.x,a=t.y,s=t.z,l=r*o,A=r*a;return this.set(l*o+i,l*a-n*s,l*s+n*a,0,l*a+n*s,A*a+i,A*s-n*o,0,l*s-n*a,A*s+n*o,r*s*s+i,0,0,0,0,1),this}makeScale(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,e,i){return this.set(1,e,i,0,t,1,i,0,t,e,1,0,0,0,0,1),this}compose(t,e,i){const n=this.elements,r=e._x,o=e._y,a=e._z,s=e._w,l=r+r,A=o+o,c=a+a,h=r*l,d=r*A,u=r*c,p=o*A,g=o*c,f=a*c,m=s*l,y=s*A,b=s*c,v=i.x,E=i.y,I=i.z;return n[0]=(1-(p+f))*v,n[1]=(d+b)*v,n[2]=(u-y)*v,n[3]=0,n[4]=(d-b)*E,n[5]=(1-(h+f))*E,n[6]=(g+m)*E,n[7]=0,n[8]=(u+y)*I,n[9]=(g-m)*I,n[10]=(1-(h+p))*I,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this}decompose(t,e,i){const n=this.elements;let r=Yt.set(n[0],n[1],n[2]).length();const o=Yt.set(n[4],n[5],n[6]).length(),a=Yt.set(n[8],n[9],n[10]).length();this.determinant()<0&&(r=-r),t.x=n[12],t.y=n[13],t.z=n[14],zt.copy(this);const s=1/r,l=1/o,A=1/a;return zt.elements[0]*=s,zt.elements[1]*=s,zt.elements[2]*=s,zt.elements[4]*=l,zt.elements[5]*=l,zt.elements[6]*=l,zt.elements[8]*=A,zt.elements[9]*=A,zt.elements[10]*=A,e.setFromRotationMatrix(zt),i.x=r,i.y=o,i.z=a,this}makePerspective(t,e,i,n,r,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,s=2*r/(e-t),l=2*r/(i-n),A=(e+t)/(e-t),c=(i+n)/(i-n),h=-(o+r)/(o-r),d=-2*o*r/(o-r);return a[0]=s,a[4]=0,a[8]=A,a[12]=0,a[1]=0,a[5]=l,a[9]=c,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,i,n,r,o){const a=this.elements,s=1/(e-t),l=1/(i-n),A=1/(o-r),c=(e+t)*s,h=(i+n)*l,d=(o+r)*A;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-c,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*A,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,i=t.elements;for(let t=0;t<16;t++)if(e[t]!==i[t])return!1;return!0}fromArray(t,e){void 0===e&&(e=0);for(let i=0;i<16;i++)this.elements[i]=t[i+e];return this}toArray(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}const Yt=new gt,zt=new Vt,Wt=new gt(0,0,0),Zt=new gt(1,1,1),jt=new gt,qt=new gt,Jt=new gt;class Kt{constructor(t=0,e=0,i=0,n=Kt.DefaultOrder){Object.defineProperty(this,"isEuler",{value:!0}),this._x=t,this._y=e,this._z=i,this._order=n}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._order=n||this._order,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e,i){const n=rt.clamp,r=t.elements,o=r[0],a=r[4],s=r[8],l=r[1],A=r[5],c=r[9],h=r[2],d=r[6],u=r[10];switch(e=e||this._order){case"XYZ":this._y=Math.asin(n(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,u),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(d,A),this._z=0);break;case"YXZ":this._x=Math.asin(-n(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(s,u),this._z=Math.atan2(l,A)):(this._y=Math.atan2(-h,o),this._z=0);break;case"ZXY":this._x=Math.asin(n(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,u),this._z=Math.atan2(-a,A)):(this._y=0,this._z=Math.atan2(l,o));break;case"ZYX":this._y=Math.asin(-n(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,u),this._z=Math.atan2(l,o)):(this._x=0,this._z=Math.atan2(-a,A));break;case"YZX":this._z=Math.asin(n(l,-1,1)),
Math.abs(l)<.9999999?(this._x=Math.atan2(-c,A),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(s,u));break;case"XZY":this._z=Math.asin(-n(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(d,A),this._y=Math.atan2(s,o)):(this._x=Math.atan2(-c,u),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!1!==i&&this._onChangeCallback(),this}setFromQuaternion(t,e,i){return Xt.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Xt,e,i)}setFromVector3(t,e){return this.set(t.x,t.y,t.z,e||this._order)}reorder(t){return $t.setFromEuler(this),this.setFromQuaternion($t,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}toVector3(t){return t?t.set(this._x,this._y,this._z):new gt(this._x,this._y,this._z)}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}Kt.DefaultOrder="XYZ",Kt.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];const Xt=new Vt,$t=new pt;class te{constructor(){this.mask=1}set(t){this.mask=1<<t}enable(t){this.mask|=1<<t}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t}disable(t){this.mask&=~(1<<t)}disableAll(){this.mask=0}test(t){return!!(this.mask&t.mask)}}let ee=0;const ie=new gt,ne=new pt,re=new Vt,oe=new gt,ae=new gt,se=new gt,le=new pt,Ae=new gt(1,0,0),ce=new gt(0,1,0),he=new gt(0,0,1),de={type:"added"},ue={type:"removed"};function pe(){Object.defineProperty(this,"id",{value:ee++}),this.uuid=rt.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=pe.DefaultUp.clone();const t=new gt,e=new Kt,i=new pt,n=new gt(1,1,1);e._onChange((function(){i.setFromEuler(e,!1)})),i._onChange((function(){e.setFromQuaternion(i,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new Vt},normalMatrix:{value:new at}}),this.matrix=new Vt,this.matrixWorld=new Vt,this.matrixAutoUpdate=pe.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new te,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}pe.DefaultUp=new gt(0,1,0),pe.DefaultMatrixAutoUpdate=!0,pe.prototype=Object.assign(Object.create(et.prototype),{constructor:pe,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:function(t,e){return ne.setFromAxisAngle(t,e),this.quaternion.multiply(ne),this},rotateOnWorldAxis:function(t,e){return ne.setFromAxisAngle(t,e),this.quaternion.premultiply(ne),this},rotateX:function(t){return this.rotateOnAxis(Ae,t)},rotateY:function(t){return this.rotateOnAxis(ce,t)},rotateZ:function(t){return this.rotateOnAxis(he,t)},translateOnAxis:function(t,e){return ie.copy(t).applyQuaternion(this.quaternion),this.position.add(ie.multiplyScalar(e)),this},translateX:function(t){return this.translateOnAxis(Ae,t)},translateY:function(t){return this.translateOnAxis(ce,t)},translateZ:function(t){return this.translateOnAxis(he,t)},localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(t){return t.applyMatrix4(re.getInverse(this.matrixWorld))},lookAt:function(t,e,i){t.isVector3?oe.copy(t):oe.set(t,e,i);const n=this.parent;this.updateWorldMatrix(!0,!1),ae.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?re.lookAt(ae,oe,this.up):re.lookAt(oe,ae,this.up),this.quaternion.setFromRotationMatrix(re),n&&(re.extractRotation(n.matrixWorld),ne.setFromRotationMatrix(re),this.quaternion.premultiply(ne.inverse()))},add:function(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(de)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(ue)),this},attach:function(t){return this.updateWorldMatrix(!0,!1),re.getInverse(this.matrixWorld),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),re.multiply(t.parent.matrixWorld)),t.applyMatrix4(re),t.updateWorldMatrix(!1,!1),this.add(t),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(let i=0,n=this.children.length;i<n;i++){const n=this.children[i].getObjectByProperty(t,e);if(void 0!==n)return n}},getWorldPosition:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new gt),this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),t=new pt),this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ae,t,se),t},getWorldScale:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),t=new gt),this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ae,le,t),t},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new gt),this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);const e=this.children;for(let i=0,n=e.length;i<n;i++)e[i].traverse(t)},traverseVisible:function(t){if(!1===this.visible)return;t(this);const e=this.children;for(let i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)},traverseAncestors:function(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){const i=this.parent;if(!0===t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)}},toJSON:function(t){const e=void 0===t||"string"==typeof t,i={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},i.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const n={};function r(e,i){return void 0===e[i.uuid]&&(e[i.uuid]=i.toJSON(t)),i.uuid}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),!0===this.castShadow&&(n.castShadow=!0),!0===this.receiveShadow&&(n.receiveShadow=!0),!1===this.visible&&(n.visible=!1),!1===this.frustumCulled&&(n.frustumCulled=!1),
0!==this.renderOrder&&(n.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON()),this.isMesh||this.isLine||this.isPoints){n.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const i=e.shapes;if(Array.isArray(i))for(let e=0,n=i.length;e<n;e++){const n=i[e];r(t.shapes,n)}else r(t.shapes,i)}}if(void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let i=0,n=this.material.length;i<n;i++)e.push(r(t.materials,this.material[i]));n.material=e}else n.material=r(t.materials,this.material);if(this.children.length>0){n.children=[];for(let e=0;e<this.children.length;e++)n.children.push(this.children[e].toJSON(t).object)}if(e){const e=o(t.geometries),n=o(t.materials),r=o(t.textures),a=o(t.images),s=o(t.shapes);e.length>0&&(i.geometries=e),n.length>0&&(i.materials=n),r.length>0&&(i.textures=r),a.length>0&&(i.images=a),s.length>0&&(i.shapes=s)}return i.object=n,i;function o(t){const e=[];for(const i in t){const n=t[i];delete n.metadata,e.push(n)}return e}},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e<t.children.length;e++){const i=t.children[e];this.add(i.clone())}return this}});const ge=new gt,fe=new gt,me=new at;class ye{constructor(t,e){Object.defineProperty(this,"isPlane",{value:!0}),this.normal=void 0!==t?t:new gt(1,0,0),this.constant=void 0!==e?e:0}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,i){const n=ge.subVectors(i,e).cross(fe.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(n,t),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return void 0===e&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new gt),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){void 0===e&&(console.warn("THREE.Plane: .intersectLine() target is now required"),e=new gt);const i=t.delta(ge),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(t.start)?e.copy(t.start):void 0;const r=-(t.start.dot(this.normal)+this.constant)/n;return r<0||r>1?void 0:e.copy(i).multiplyScalar(r).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return e<0&&i>0||i<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return void 0===t&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new gt),t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const i=e||me.getNormalMatrix(t),n=this.coplanarPoint(ge).applyMatrix4(t),r=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}const be=new gt,ve=new gt,Ee=new gt,Ie=new gt,Ce=new gt,Be=new gt,we=new gt,xe=new gt,Qe=new gt,Se=new gt;class ke{constructor(t,e,i){this.a=void 0!==t?t:new gt,this.b=void 0!==e?e:new gt,this.c=void 0!==i?i:new gt}static getNormal(t,e,i,n){void 0===n&&(console.warn("THREE.Triangle: .getNormal() target is now required"),n=new gt),n.subVectors(i,e),be.subVectors(t,e),n.cross(be);const r=n.lengthSq();return r>0?n.multiplyScalar(1/Math.sqrt(r)):n.set(0,0,0)}static getBarycoord(t,e,i,n,r){be.subVectors(n,e),ve.subVectors(i,e),Ee.subVectors(t,e);const o=be.dot(be),a=be.dot(ve),s=be.dot(Ee),l=ve.dot(ve),A=ve.dot(Ee),c=o*l-a*a;if(void 0===r&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),r=new gt),0===c)return r.set(-2,-1,-1);const h=1/c,d=(l*s-a*A)*h,u=(o*A-a*s)*h;return r.set(1-d-u,u,d)}static containsPoint(t,e,i,n){return this.getBarycoord(t,e,i,n,Ie),Ie.x>=0&&Ie.y>=0&&Ie.x+Ie.y<=1}static getUV(t,e,i,n,r,o,a,s){return this.getBarycoord(t,e,i,n,Ie),s.set(0,0),s.addScaledVector(r,Ie.x),s.addScaledVector(o,Ie.y),s.addScaledVector(a,Ie.z),s}static isFrontFacing(t,e,i,n){return be.subVectors(i,e),ve.subVectors(t,e),be.cross(ve).dot(n)<0}set(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}setFromPointsAndIndices(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return be.subVectors(this.c,this.b),ve.subVectors(this.a,this.b),.5*be.cross(ve).length()}getMidpoint(t){return void 0===t&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new gt),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return ke.getNormal(this.a,this.b,this.c,t)}getPlane(t){return void 0===t&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new ye),t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return ke.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,i,n,r){return ke.getUV(t,this.a,this.b,this.c,e,i,n,r)}containsPoint(t){return ke.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return ke.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){void 0===e&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),e=new gt);const i=this.a,n=this.b,r=this.c;let o,a;Ce.subVectors(n,i),Be.subVectors(r,i),xe.subVectors(t,i);const s=Ce.dot(xe),l=Be.dot(xe);if(s<=0&&l<=0)return e.copy(i);Qe.subVectors(t,n);const A=Ce.dot(Qe),c=Be.dot(Qe);if(A>=0&&c<=A)return e.copy(n);const h=s*c-A*l;if(h<=0&&s>=0&&A<=0)return o=s/(s-A),e.copy(i).addScaledVector(Ce,o);Se.subVectors(t,r);const d=Ce.dot(Se),u=Be.dot(Se);if(u>=0&&d<=u)return e.copy(r);const p=d*l-s*u;if(p<=0&&l>=0&&u<=0)return a=l/(l-u),e.copy(i).addScaledVector(Be,a);const g=A*u-d*c;if(g<=0&&c-A>=0&&d-u>=0)return we.subVectors(r,n),a=(c-A)/(c-A+(d-u)),e.copy(n).addScaledVector(we,a);const f=1/(g+p+h);return o=p*f,a=h*f,e.copy(i).addScaledVector(Ce,o).addScaledVector(Be,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}const De={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,
dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_e={h:0,s:0,l:0},Re={h:0,s:0,l:0};function Me(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}function Te(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Fe(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class Le{constructor(t,e,i){return Object.defineProperty(this,"isColor",{value:!0}),void 0===e&&void 0===i?this.set(t):this.setRGB(t,e,i)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this}setRGB(t,e,i){return this.r=t,this.g=e,this.b=i,this}setHSL(t,e,i){if(t=rt.euclideanModulo(t,1),e=rt.clamp(e,0,1),i=rt.clamp(i,0,1),0===e)this.r=this.g=this.b=i;else{const n=i<=.5?i*(1+e):i+e-i*e,r=2*i-n;this.r=Me(r,n,t+1/3),this.g=Me(r,n,t),this.b=Me(r,n,t-1/3)}return this}setStyle(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){let t;const n=i[1],r=i[2];switch(n){case"rgb":case"rgba":if(t=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(r))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,e(t[5]),this;if(t=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(r))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,e(t[5]),this;break;case"hsl":case"hsla":if(t=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(r)){const i=parseFloat(t[1])/360,n=parseInt(t[2],10)/100,r=parseInt(t[3],10)/100;return e(t[5]),this.setHSL(i,n,r)}}}else if(i=/^\#([A-Fa-f0-9]+)$/.exec(t)){const t=i[1],e=t.length;if(3===e)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===e)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this}setColorName(t){const e=De[t];return void 0!==e?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copyGammaToLinear(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this}copyLinearToGamma(t,e){void 0===e&&(e=2);const i=e>0?1/e:1;return this.r=Math.pow(t.r,i),this.g=Math.pow(t.g,i),this.b=Math.pow(t.b,i),this}convertGammaToLinear(t){return this.copyGammaToLinear(this,t),this}convertLinearToGamma(t){return this.copyLinearToGamma(this,t),this}copySRGBToLinear(t){return this.r=Te(t.r),this.g=Te(t.g),this.b=Te(t.b),this}copyLinearToSRGB(t){return this.r=Fe(t.r),this.g=Fe(t.g),this.b=Fe(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(t){void 0===t&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});const e=this.r,i=this.g,n=this.b,r=Math.max(e,i,n),o=Math.min(e,i,n);let a,s;const l=(o+r)/2;if(o===r)a=0,s=0;else{const t=r-o;switch(s=l<=.5?t/(r+o):t/(2-r-o),r){case e:a=(i-n)/t+(i<n?6:0);break;case i:a=(n-e)/t+2;break;case n:a=(e-i)/t+4}a/=6}return t.h=a,t.s=s,t.l=l,t}getStyle(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}offsetHSL(t,e,i){return this.getHSL(_e),_e.h+=t,_e.s+=e,_e.l+=i,this.setHSL(_e.h,_e.s,_e.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpHSL(t,e){this.getHSL(_e),t.getHSL(Re);const i=rt.lerp(_e.h,Re.h,e),n=rt.lerp(_e.s,Re.s,e),r=rt.lerp(_e.l,Re.l,e);return this.setHSL(i,n,r),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e){return void 0===e&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}Le.NAMES=De,Le.prototype.r=1,Le.prototype.g=1,Le.prototype.b=1;class Ne{constructor(t,e,i,n,r,o){this.a=t,this.b=e,this.c=i,this.normal=n&&n.isVector3?n:new gt,this.vertexNormals=Array.isArray(n)?n:[],this.color=r&&r.isColor?r:new Le,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=void 0!==o?o:0}clone(){return(new this.constructor).copy(this)}copy(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(let e=0,i=t.vertexNormals.length;e<i;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(let e=0,i=t.vertexColors.length;e<i;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}let Pe=0;function Ue(){Object.defineProperty(this,"id",{value:Pe++}),this.uuid=rt.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.blending=1,this.side=0,this.flatShading=!1,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=n,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=K,this.stencilZFail=K,this.stencilZPass=K,this.stencilWrite=!1,
this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0}function Oe(t){Ue.call(this),this.type="MeshBasicMaterial",this.color=new Le(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.setValues(t)}Ue.prototype=Object.assign(Object.create(et.prototype),{constructor:Ue,isMaterial:!0,onBeforeCompile:function(){},customProgramCacheKey:function(){return this.onBeforeCompile.toString()},setValues:function(t){if(void 0!==t)for(const e in t){const i=t[e];if(void 0===i){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===i;continue}const n=this[e];void 0!==n?n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}},toJSON:function(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const i={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function n(t){const e=[];for(const i in t){const n=t[i];delete n.metadata,e.push(n)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),this.sheen&&this.sheen.isColor&&(i.sheen=this.sheen.getHex()),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,i.reflectivity=this.reflectivity,i.refractionRatio=this.refractionRatio,void 0!==this.combine&&(i.combine=this.combine),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(i.size=this.size),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),!0===this.flatShading&&(i.flatShading=this.flatShading),0!==this.side&&(i.side=this.side),this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,i.stencilWrite=this.stencilWrite,i.stencilWriteMask=this.stencilWriteMask,i.stencilFunc=this.stencilFunc,i.stencilRef=this.stencilRef,i.stencilFuncMask=this.stencilFuncMask,i.stencilFail=this.stencilFail,i.stencilZFail=this.stencilZFail,i.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(i.morphTargets=!0),!0===this.morphNormals&&(i.morphNormals=!0),!0===this.skinning&&(i.skinning=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),e){const e=n(t.textures),r=n(t.images);e.length>0&&(i.textures=e),r.length>0&&(i.images=r)}return i},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let i=null;if(null!==e){const t=e.length;i=new Array(t);for(let n=0;n!==t;++n)i[n]=e[n].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(Ue.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Oe.prototype=Object.create(Ue.prototype),Oe.prototype.constructor=Oe,
Oe.prototype.isMeshBasicMaterial=!0,Oe.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this};const Ge=new gt,He=new ot;function Ve(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===i,this.usage=X,this.updateRange={offset:0,count:-1},this.version=0}function Ye(t,e,i){Ve.call(this,new Int8Array(t),e,i)}function ze(t,e,i){Ve.call(this,new Uint8Array(t),e,i)}function We(t,e,i){Ve.call(this,new Uint8ClampedArray(t),e,i)}function Ze(t,e,i){Ve.call(this,new Int16Array(t),e,i)}function je(t,e,i){Ve.call(this,new Uint16Array(t),e,i)}function qe(t,e,i){Ve.call(this,new Int32Array(t),e,i)}function Je(t,e,i){Ve.call(this,new Uint32Array(t),e,i)}function Ke(t,e,i){Ve.call(this,new Float32Array(t),e,i)}function Xe(t,e,i){Ve.call(this,new Float64Array(t),e,i)}Object.defineProperty(Ve.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Ve.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this},copyAt:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(let n=0,r=this.itemSize;n<r;n++)this.array[t+n]=e.array[i+n];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",n),r=new Le),e[i++]=r.r,e[i++]=r.g,e[i++]=r.b}return this},copyVector2sArray:function(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",n),r=new ot),e[i++]=r.x,e[i++]=r.y}return this},copyVector3sArray:function(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",n),r=new gt),e[i++]=r.x,e[i++]=r.y,e[i++]=r.z}return this},copyVector4sArray:function(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",n),r=new ht),e[i++]=r.x,e[i++]=r.y,e[i++]=r.z,e[i++]=r.w}return this},applyMatrix3:function(t){if(2===this.itemSize)for(let e=0,i=this.count;e<i;e++)He.fromBufferAttribute(this,e),He.applyMatrix3(t),this.setXY(e,He.x,He.y);else if(3===this.itemSize)for(let e=0,i=this.count;e<i;e++)Ge.fromBufferAttribute(this,e),Ge.applyMatrix3(t),this.setXYZ(e,Ge.x,Ge.y,Ge.z);return this},applyMatrix4:function(t){for(let e=0,i=this.count;e<i;e++)Ge.x=this.getX(e),Ge.y=this.getY(e),Ge.z=this.getZ(e),Ge.applyMatrix4(t),this.setXYZ(e,Ge.x,Ge.y,Ge.z);return this},applyNormalMatrix:function(t){for(let e=0,i=this.count;e<i;e++)Ge.x=this.getX(e),Ge.y=this.getY(e),Ge.z=this.getZ(e),Ge.applyNormalMatrix(t),this.setXYZ(e,Ge.x,Ge.y,Ge.z);return this},transformDirection:function(t){for(let e=0,i=this.count;e<i;e++)Ge.x=this.getX(e),Ge.y=this.getY(e),Ge.z=this.getZ(e),Ge.transformDirection(t),this.setXYZ(e,Ge.x,Ge.y,Ge.z);return this},set:function(t,e){return void 0===e&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this},setXYZW:function(t,e,i,n,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=r,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)},toJSON:function(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized}}}),Ye.prototype=Object.create(Ve.prototype),Ye.prototype.constructor=Ye,ze.prototype=Object.create(Ve.prototype),ze.prototype.constructor=ze,We.prototype=Object.create(Ve.prototype),We.prototype.constructor=We,Ze.prototype=Object.create(Ve.prototype),Ze.prototype.constructor=Ze,je.prototype=Object.create(Ve.prototype),je.prototype.constructor=je,qe.prototype=Object.create(Ve.prototype),qe.prototype.constructor=qe,Je.prototype=Object.create(Ve.prototype),Je.prototype.constructor=Je,Ke.prototype=Object.create(Ve.prototype),Ke.prototype.constructor=Ke,Xe.prototype=Object.create(Ve.prototype),Xe.prototype.constructor=Xe;class $e{constructor(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingBox=null,this.boundingSphere=null,this.verticesNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1}computeGroups(t){const e=[];let i,n,r;const o=t.faces;for(n=0;n<o.length;n++){const t=o[n];t.materialIndex!==r&&(r=t.materialIndex,void 0!==i&&(i.count=3*n-i.start,e.push(i)),i={start:3*n,materialIndex:r})}void 0!==i&&(i.count=3*n-i.start,e.push(i)),this.groups=e}fromGeometry(t){const e=t.faces,i=t.vertices,n=t.faceVertexUvs,r=n[0]&&n[0].length>0,o=n[1]&&n[1].length>0,a=t.morphTargets,s=a.length;let l;if(s>0){l=[];for(let t=0;t<s;t++)l[t]={name:a[t].name,data:[]};this.morphTargets.position=l}const A=t.morphNormals,c=A.length;let h;if(c>0){h=[];for(let t=0;t<c;t++)h[t]={name:A[t].name,data:[]};this.morphTargets.normal=h}const d=t.skinIndices,u=t.skinWeights,p=d.length===i.length,g=u.length===i.length;i.length>0&&0===e.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(let t=0;t<e.length;t++){const f=e[t];this.vertices.push(i[f.a],i[f.b],i[f.c]);const m=f.vertexNormals;if(3===m.length)this.normals.push(m[0],m[1],m[2]);else{const t=f.normal;this.normals.push(t,t,t)}const y=f.vertexColors;if(3===y.length)this.colors.push(y[0],y[1],y[2]);else{const t=f.color;this.colors.push(t,t,t)}if(!0===r){const e=n[0][t];void 0!==e?this.uvs.push(e[0],e[1],e[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",t),this.uvs.push(new ot,new ot,new ot))}if(!0===o){const e=n[1][t];void 0!==e?this.uvs2.push(e[0],e[1],e[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",t),this.uvs2.push(new ot,new ot,new ot))}for(let t=0;t<s;t++){const e=a[t].vertices;l[t].data.push(e[f.a],e[f.b],e[f.c])}for(let e=0;e<c;e++){const i=A[e].vertexNormals[t];h[e].data.push(i.a,i.b,i.c)}p&&this.skinIndices.push(d[f.a],d[f.b],d[f.c]),g&&this.skinWeights.push(u[f.a],u[f.b],u[f.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this}}function ti(t){
if(0===t.length)return-1/0;let e=t[0];for(let i=1,n=t.length;i<n;++i)t[i]>e&&(e=t[i]);return e}let ei=1;const ii=new Vt,ni=new pe,ri=new gt,oi=new yt,ai=new yt,si=new gt;function li(){Object.defineProperty(this,"id",{value:ei+=2}),this.uuid=rt.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}li.prototype=Object.assign(Object.create(et.prototype),{constructor:li,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){return Array.isArray(t)?this.index=new(ti(t)>65535?Je:je)(t,1):this.index=t,this},getAttribute:function(t){return this.attributes[t]},setAttribute:function(t,e){return this.attributes[t]=e,this},deleteAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,i){this.groups.push({start:t,count:e,materialIndex:void 0!==i?i:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix4:function(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const i=this.attributes.normal;if(void 0!==i){const e=(new at).getNormalMatrix(t);i.applyNormalMatrix(e),i.needsUpdate=!0}const n=this.attributes.tangent;return void 0!==n&&(n.transformDirection(t),n.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(t){return ii.makeRotationX(t),this.applyMatrix4(ii),this},rotateY:function(t){return ii.makeRotationY(t),this.applyMatrix4(ii),this},rotateZ:function(t){return ii.makeRotationZ(t),this.applyMatrix4(ii),this},translate:function(t,e,i){return ii.makeTranslation(t,e,i),this.applyMatrix4(ii),this},scale:function(t,e,i){return ii.makeScale(t,e,i),this.applyMatrix4(ii),this},lookAt:function(t){return ni.lookAt(t),ni.updateMatrix(),this.applyMatrix4(ni.matrix),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(ri).negate(),this.translate(ri.x,ri.y,ri.z),this},setFromObject:function(t){const e=t.geometry;if(t.isPoints||t.isLine){const t=new Ke(3*e.vertices.length,3),i=new Ke(3*e.colors.length,3);if(this.setAttribute("position",t.copyVector3sArray(e.vertices)),this.setAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){const t=new Ke(e.lineDistances.length,1);this.setAttribute("lineDistance",t.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push(n.x,n.y,n.z||0)}return this.setAttribute("position",new Ke(e,3)),this},updateFromObject:function(t){let e=t.geometry;if(t.isMesh){let t=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(t=void 0,e.elementsNeedUpdate=!1),void 0===t)return this.fromGeometry(e);t.verticesNeedUpdate=e.verticesNeedUpdate,t.normalsNeedUpdate=e.normalsNeedUpdate,t.colorsNeedUpdate=e.colorsNeedUpdate,t.uvsNeedUpdate=e.uvsNeedUpdate,t.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=t}if(!0===e.verticesNeedUpdate){const t=this.attributes.position;void 0!==t&&(t.copyVector3sArray(e.vertices),t.needsUpdate=!0),e.verticesNeedUpdate=!1}if(!0===e.normalsNeedUpdate){const t=this.attributes.normal;void 0!==t&&(t.copyVector3sArray(e.normals),t.needsUpdate=!0),e.normalsNeedUpdate=!1}if(!0===e.colorsNeedUpdate){const t=this.attributes.color;void 0!==t&&(t.copyColorsArray(e.colors),t.needsUpdate=!0),e.colorsNeedUpdate=!1}if(e.uvsNeedUpdate){const t=this.attributes.uv;void 0!==t&&(t.copyVector2sArray(e.uvs),t.needsUpdate=!0),e.uvsNeedUpdate=!1}if(e.lineDistancesNeedUpdate){const t=this.attributes.lineDistance;void 0!==t&&(t.copyArray(e.lineDistances),t.needsUpdate=!0),e.lineDistancesNeedUpdate=!1}return e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new $e).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){const e=new Float32Array(3*t.vertices.length);if(this.setAttribute("position",new Ve(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){const e=new Float32Array(3*t.normals.length);this.setAttribute("normal",new Ve(e,3).copyVector3sArray(t.normals))}if(t.colors.length>0){const e=new Float32Array(3*t.colors.length);this.setAttribute("color",new Ve(e,3).copyColorsArray(t.colors))}if(t.uvs.length>0){const e=new Float32Array(2*t.uvs.length);this.setAttribute("uv",new Ve(e,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){const e=new Float32Array(2*t.uvs2.length);this.setAttribute("uv2",new Ve(e,2).copyVector2sArray(t.uvs2))}this.groups=t.groups;for(const e in t.morphTargets){const i=[],n=t.morphTargets[e];for(let t=0,e=n.length;t<e;t++){const e=n[t],r=new Ke(3*e.data.length,3);r.name=e.name,i.push(r.copyVector3sArray(e.data))}this.morphAttributes[e]=i}if(t.skinIndices.length>0){const e=new Ke(4*t.skinIndices.length,4);this.setAttribute("skinIndex",e.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){const e=new Ke(4*t.skinWeights.length,4);this.setAttribute("skinWeight",e.copyVector4sArray(t.skinWeights))}return null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new yt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new gt(-1/0,-1/0,-1/0),new gt(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let t=0,i=e.length;t<i;t++){const i=e[t];oi.setFromBufferAttribute(i),this.morphTargetsRelative?(si.addVectors(this.boundingBox.min,oi.min),this.boundingBox.expandByPoint(si),si.addVectors(this.boundingBox.max,oi.max),this.boundingBox.expandByPoint(si)):(this.boundingBox.expandByPoint(oi.min),this.boundingBox.expandByPoint(oi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new Tt);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new gt,1/0);if(t){const i=this.boundingSphere.center;if(oi.setFromBufferAttribute(t),e)for(let t=0,i=e.length;t<i;t++){const i=e[t];ai.setFromBufferAttribute(i),this.morphTargetsRelative?(si.addVectors(oi.min,ai.min),oi.expandByPoint(si),si.addVectors(oi.max,ai.max),oi.expandByPoint(si)):(oi.expandByPoint(ai.min),oi.expandByPoint(ai.max))}oi.getCenter(i);let n=0;for(let e=0,r=t.count;e<r;e++)si.fromBufferAttribute(t,e),n=Math.max(n,i.distanceToSquared(si));if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r],a=this.morphTargetsRelative;for(let e=0,r=o.count;e<r;e++)si.fromBufferAttribute(o,e),a&&(ri.fromBufferAttribute(t,e),si.add(ri)),n=Math.max(n,i.distanceToSquared(si))}this.boundingSphere.radius=Math.sqrt(n),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeVertexNormals:function(){
const t=this.index,e=this.getAttribute("position");if(void 0!==e){let i=this.getAttribute("normal");if(void 0===i)i=new Ve(new Float32Array(3*e.count),3),this.setAttribute("normal",i);else for(let t=0,e=i.count;t<e;t++)i.setXYZ(t,0,0,0);const n=new gt,r=new gt,o=new gt,a=new gt,s=new gt,l=new gt,A=new gt,c=new gt;if(t)for(let h=0,d=t.count;h<d;h+=3){const d=t.getX(h+0),u=t.getX(h+1),p=t.getX(h+2);n.fromBufferAttribute(e,d),r.fromBufferAttribute(e,u),o.fromBufferAttribute(e,p),A.subVectors(o,r),c.subVectors(n,r),A.cross(c),a.fromBufferAttribute(i,d),s.fromBufferAttribute(i,u),l.fromBufferAttribute(i,p),a.add(A),s.add(A),l.add(A),i.setXYZ(d,a.x,a.y,a.z),i.setXYZ(u,s.x,s.y,s.z),i.setXYZ(p,l.x,l.y,l.z)}else for(let t=0,a=e.count;t<a;t+=3)n.fromBufferAttribute(e,t+0),r.fromBufferAttribute(e,t+1),o.fromBufferAttribute(e,t+2),A.subVectors(o,r),c.subVectors(n,r),A.cross(c),i.setXYZ(t+0,A.x,A.y,A.z),i.setXYZ(t+1,A.x,A.y,A.z),i.setXYZ(t+2,A.x,A.y,A.z);this.normalizeNormals(),i.needsUpdate=!0}},merge:function(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const i=this.attributes;for(const n in i){if(void 0===t.attributes[n])continue;const r=i[n].array,o=t.attributes[n],a=o.array,s=o.itemSize*e,l=Math.min(a.length,r.length-s);for(let t=0,e=s;t<l;t++,e++)r[e]=a[t]}return this},normalizeNormals:function(){const t=this.attributes.normal;for(let e=0,i=t.count;e<i;e++)si.fromBufferAttribute(t,e),si.normalize(),t.setXYZ(e,si.x,si.y,si.z)},toNonIndexed:function(){function t(t,e){const i=t.array,n=t.itemSize,r=t.normalized,o=new i.constructor(e.length*n);let a=0,s=0;for(let t=0,r=e.length;t<r;t++){a=e[t]*n;for(let t=0;t<n;t++)o[s++]=i[a++]}return new Ve(o,n,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;const e=new li,i=this.index.array,n=this.attributes;for(const r in n){const o=t(n[r],i);e.setAttribute(r,o)}const r=this.morphAttributes;for(const n in r){const o=[],a=r[n];for(let e=0,n=a.length;e<n;e++){const n=t(a[e],i);o.push(n)}e.morphAttributes[n]=o}e.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let t=0,i=o.length;t<i;t++){const i=o[t];e.addGroup(i.start,i.count,i.materialIndex)}return e},toJSON:function(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const i=this.attributes;for(const e in i){const n=i[e],r=n.toJSON(t.data);""!==n.name&&(r.name=n.name),t.data.attributes[e]=r}const n={};let r=!1;for(const e in this.morphAttributes){const i=this.morphAttributes[e],o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],r=n.toJSON(t.data);""!==n.name&&(r.name=n.name),o.push(r)}o.length>0&&(n[e]=o,r=!0)}r&&(t.data.morphAttributes=n,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t},clone:function(){return(new li).copy(this)},copy:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const i=t.index;null!==i&&this.setIndex(i.clone(e));const n=t.attributes;for(const t in n){const i=n[t];this.setAttribute(t,i.clone(e))}const r=t.morphAttributes;for(const t in r){const i=[],n=r[t];for(let t=0,r=n.length;t<r;t++)i.push(n[t].clone(e));this.morphAttributes[t]=i}this.morphTargetsRelative=t.morphTargetsRelative;const o=t.groups;for(let t=0,e=o.length;t<e;t++){const e=o[t];this.addGroup(e.start,e.count,e.materialIndex)}const a=t.boundingBox;null!==a&&(this.boundingBox=a.clone());const s=t.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});const Ai=new Vt,ci=new Ht,hi=new Tt,di=new gt,ui=new gt,pi=new gt,gi=new gt,fi=new gt,mi=new gt,yi=new gt,bi=new gt,vi=new gt,Ei=new ot,Ii=new ot,Ci=new ot,Bi=new gt,wi=new gt;function xi(t,e){pe.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new li,this.material=void 0!==e?e:new Oe,this.updateMorphTargets()}function Qi(t,e,i,n,r,o,a,s){let l;if(l=1===e.side?n.intersectTriangle(a,o,r,!0,s):n.intersectTriangle(r,o,a,2!==e.side,s),null===l)return null;wi.copy(s),wi.applyMatrix4(t.matrixWorld);const A=i.ray.origin.distanceTo(wi);return A<i.near||A>i.far?null:{distance:A,point:wi.clone(),object:t}}function Si(t,e,i,n,r,o,a,s,l,A,c,h){di.fromBufferAttribute(r,A),ui.fromBufferAttribute(r,c),pi.fromBufferAttribute(r,h);const d=t.morphTargetInfluences;if(e.morphTargets&&o&&d){yi.set(0,0,0),bi.set(0,0,0),vi.set(0,0,0);for(let t=0,e=o.length;t<e;t++){const e=d[t],i=o[t];0!==e&&(gi.fromBufferAttribute(i,A),fi.fromBufferAttribute(i,c),mi.fromBufferAttribute(i,h),a?(yi.addScaledVector(gi,e),bi.addScaledVector(fi,e),vi.addScaledVector(mi,e)):(yi.addScaledVector(gi.sub(di),e),bi.addScaledVector(fi.sub(ui),e),vi.addScaledVector(mi.sub(pi),e)))}di.add(yi),ui.add(bi),pi.add(vi)}t.isSkinnedMesh&&(t.boneTransform(A,di),t.boneTransform(c,ui),t.boneTransform(h,pi));const u=Qi(t,e,i,n,di,ui,pi,Bi);if(u){s&&(Ei.fromBufferAttribute(s,A),Ii.fromBufferAttribute(s,c),Ci.fromBufferAttribute(s,h),u.uv=ke.getUV(Bi,di,ui,pi,Ei,Ii,Ci,new ot)),l&&(Ei.fromBufferAttribute(l,A),Ii.fromBufferAttribute(l,c),Ci.fromBufferAttribute(l,h),u.uv2=ke.getUV(Bi,di,ui,pi,Ei,Ii,Ci,new ot));const t=new Ne(A,c,h);ke.getNormal(di,ui,pi,t.normal),u.face=t}return u}xi.prototype=Object.assign(Object.create(pe.prototype),{constructor:xi,isMesh:!0,copy:function(t){return pe.prototype.copy.call(this,t),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,i=Object.keys(e);if(i.length>0){const t=e[i[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,i=t.length;e<i;e++){const i=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[i]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(t,e){const i=this.geometry,n=this.material,r=this.matrixWorld;if(void 0===n)return;if(null===i.boundingSphere&&i.computeBoundingSphere(),hi.copy(i.boundingSphere),hi.applyMatrix4(r),!1===t.ray.intersectsSphere(hi))return;if(Ai.getInverse(r),ci.copy(t.ray).applyMatrix4(Ai),null!==i.boundingBox&&!1===ci.intersectsBox(i.boundingBox))return;let o;if(i.isBufferGeometry){const r=i.index,a=i.attributes.position,s=i.morphAttributes.position,l=i.morphTargetsRelative,A=i.attributes.uv,c=i.attributes.uv2,h=i.groups,d=i.drawRange;if(null!==r)if(Array.isArray(n))for(let i=0,u=h.length;i<u;i++){const u=h[i],p=n[u.materialIndex];for(let i=Math.max(u.start,d.start),n=Math.min(u.start+u.count,d.start+d.count);i<n;i+=3){const n=r.getX(i),h=r.getX(i+1),d=r.getX(i+2);o=Si(this,p,t,ci,a,s,l,A,c,n,h,d),o&&(o.faceIndex=Math.floor(i/3),o.face.materialIndex=u.materialIndex,e.push(o))}}else{for(let i=Math.max(0,d.start),h=Math.min(r.count,d.start+d.count);i<h;i+=3){const h=r.getX(i),d=r.getX(i+1),u=r.getX(i+2);o=Si(this,n,t,ci,a,s,l,A,c,h,d,u),
o&&(o.faceIndex=Math.floor(i/3),e.push(o))}}else if(void 0!==a)if(Array.isArray(n))for(let i=0,r=h.length;i<r;i++){const r=h[i],u=n[r.materialIndex];for(let i=Math.max(r.start,d.start),n=Math.min(r.start+r.count,d.start+d.count);i<n;i+=3){o=Si(this,u,t,ci,a,s,l,A,c,i,i+1,i+2),o&&(o.faceIndex=Math.floor(i/3),o.face.materialIndex=r.materialIndex,e.push(o))}}else{for(let i=Math.max(0,d.start),r=Math.min(a.count,d.start+d.count);i<r;i+=3){o=Si(this,n,t,ci,a,s,l,A,c,i,i+1,i+2),o&&(o.faceIndex=Math.floor(i/3),e.push(o))}}}else if(i.isGeometry){const r=Array.isArray(n),a=i.vertices,s=i.faces;let l;const A=i.faceVertexUvs[0];A.length>0&&(l=A);for(let i=0,A=s.length;i<A;i++){const A=s[i],c=r?n[A.materialIndex]:n;if(void 0===c)continue;const h=a[A.a],d=a[A.b],u=a[A.c];if(o=Qi(this,c,t,ci,h,d,u,Bi),o){if(l&&l[i]){const t=l[i];Ei.copy(t[0]),Ii.copy(t[1]),Ci.copy(t[2]),o.uv=ke.getUV(Bi,h,d,u,Ei,Ii,Ci,new ot)}o.face=A,o.faceIndex=i,e.push(o)}}}}});class ki extends li{constructor(t=1,e=1,i=1,n=1,r=1,o=1){super(),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:o};const a=this;n=Math.floor(n),r=Math.floor(r),o=Math.floor(o);const s=[],l=[],A=[],c=[];let h=0,d=0;function u(t,e,i,n,r,o,u,p,g,f,m){const y=o/g,b=u/f,v=o/2,E=u/2,I=p/2,C=g+1,B=f+1;let w=0,x=0;const Q=new gt;for(let o=0;o<B;o++){const a=o*b-E;for(let s=0;s<C;s++){const h=s*y-v;Q[t]=h*n,Q[e]=a*r,Q[i]=I,l.push(Q.x,Q.y,Q.z),Q[t]=0,Q[e]=0,Q[i]=p>0?1:-1,A.push(Q.x,Q.y,Q.z),c.push(s/g),c.push(1-o/f),w+=1}}for(let t=0;t<f;t++)for(let e=0;e<g;e++){const i=h+e+C*t,n=h+e+C*(t+1),r=h+(e+1)+C*(t+1),o=h+(e+1)+C*t;s.push(i,n,o),s.push(n,r,o),x+=6}a.addGroup(d,x,m),d+=x,h+=w}u("z","y","x",-1,-1,i,e,t,o,r,0),u("z","y","x",1,-1,i,e,-t,o,r,1),u("x","z","y",1,1,t,i,e,n,o,2),u("x","z","y",1,-1,t,i,-e,n,o,3),u("x","y","z",1,-1,t,e,i,n,r,4),u("x","y","z",-1,-1,t,e,-i,n,r,5),this.setIndex(s),this.setAttribute("position",new Ke(l,3)),this.setAttribute("normal",new Ke(A,3)),this.setAttribute("uv",new Ke(c,2))}}function Di(t){const e={};for(const i in t){e[i]={};for(const n in t[i]){const r=t[i][n];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture)?e[i][n]=r.clone():Array.isArray(r)?e[i][n]=r.slice():e[i][n]=r}}return e}function _i(t){const e={};for(let i=0;i<t.length;i++){const n=Di(t[i]);for(const t in n)e[t]=n[t]}return e}const Ri={clone:Di,merge:_i};function Mi(t){Ue.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function Ti(){pe.call(this),this.type="Camera",this.matrixWorldInverse=new Vt,this.projectionMatrix=new Vt,this.projectionMatrixInverse=new Vt}function Fi(t,e,i,n){Ti.call(this),this.type="PerspectiveCamera",this.fov=void 0!==t?t:50,this.zoom=1,this.near=void 0!==i?i:.1,this.far=void 0!==n?n:2e3,this.focus=10,this.aspect=void 0!==e?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}Mi.prototype=Object.create(Ue.prototype),Mi.prototype.constructor=Mi,Mi.prototype.isShaderMaterial=!0,Mi.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Di(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this},Mi.prototype.toJSON=function(t){const e=Ue.prototype.toJSON.call(this,t);e.glslVersion=this.glslVersion,e.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i].value;n&&n.isTexture?e.uniforms[i]={type:"t",value:n.toJSON(t).uuid}:n&&n.isColor?e.uniforms[i]={type:"c",value:n.getHex()}:n&&n.isVector2?e.uniforms[i]={type:"v2",value:n.toArray()}:n&&n.isVector3?e.uniforms[i]={type:"v3",value:n.toArray()}:n&&n.isVector4?e.uniforms[i]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?e.uniforms[i]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?e.uniforms[i]={type:"m4",value:n.toArray()}:e.uniforms[i]={value:n}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const i={};for(const t in this.extensions)!0===this.extensions[t]&&(i[t]=!0);return Object.keys(i).length>0&&(e.extensions=i),e},Ti.prototype=Object.assign(Object.create(pe.prototype),{constructor:Ti,isCamera:!0,copy:function(t,e){return pe.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new gt),this.updateMatrixWorld(!0);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){pe.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},updateWorldMatrix:function(t,e){pe.prototype.updateWorldMatrix.call(this,t,e),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}}),Fi.prototype=Object.assign(Object.create(Ti.prototype),{constructor:Fi,isPerspectiveCamera:!0,copy:function(t,e){return Ti.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){const e=.5*this.getFilmHeight()/t;this.fov=2*rt.RAD2DEG*Math.atan(e),this.updateProjectionMatrix()},getFocalLength:function(){const t=Math.tan(.5*rt.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*rt.RAD2DEG*Math.atan(Math.tan(.5*rt.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,i,n,r,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){const t=this.near;let e=t*Math.tan(.5*rt.DEG2RAD*this.fov)/this.zoom,i=2*e,n=this.aspect*i,r=-.5*n;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,a=o.fullHeight;r+=o.offsetX*n/t,e-=o.offsetY*i/a,n*=o.width/t,i*=o.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+n,e,e-i,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){const e=pe.prototype.toJSON.call(this,t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}});const Li=90;function Ni(t,e,i){if(pe.call(this),this.type="CubeCamera",
!0!==i.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=i;const n=new Fi(Li,1,t,e);n.layers=this.layers,n.up.set(0,-1,0),n.lookAt(new gt(1,0,0)),this.add(n);const r=new Fi(Li,1,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new gt(-1,0,0)),this.add(r);const o=new Fi(Li,1,t,e);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(new gt(0,1,0)),this.add(o);const a=new Fi(Li,1,t,e);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new gt(0,-1,0)),this.add(a);const s=new Fi(Li,1,t,e);s.layers=this.layers,s.up.set(0,-1,0),s.lookAt(new gt(0,0,1)),this.add(s);const l=new Fi(Li,1,t,e);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new gt(0,0,-1)),this.add(l),this.update=function(t,e){null===this.parent&&this.updateMatrixWorld();const A=t.xr.enabled,c=t.getRenderTarget();t.xr.enabled=!1;const h=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,t.setRenderTarget(i,0),t.render(e,n),t.setRenderTarget(i,1),t.render(e,r),t.setRenderTarget(i,2),t.render(e,o),t.setRenderTarget(i,3),t.render(e,a),t.setRenderTarget(i,4),t.render(e,s),i.texture.generateMipmaps=h,t.setRenderTarget(i,5),t.render(e,l),t.setRenderTarget(c),t.xr.enabled=A},this.clear=function(t,e,n,r){const o=t.getRenderTarget();for(let o=0;o<6;o++)t.setRenderTarget(i,o),t.clear(e,n,r);t.setRenderTarget(o)}}function Pi(t,e,i,n,r,o,a,s,l,A){t=void 0!==t?t:[],e=void 0!==e?e:m,a=void 0!==a?a:L,ct.call(this,t,e,i,n,r,o,a,s,l,A),this.flipY=!1,this._needsFlipEnvMap=!0}function Ui(t,e,i){Number.isInteger(e)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),e=i),dt.call(this,t,t,e),e=e||{},this.texture=new Pi(void 0,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture._needsFlipEnvMap=!1}function Oi(t,e,i,n,r,o,a,s,l,A,c,h){ct.call(this,null,o,a,s,l,A,n,r,c,h),this.image={data:t||null,width:e||1,height:i||1},this.magFilter=void 0!==l?l:B,this.minFilter=void 0!==A?A:B,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.needsUpdate=!0}Ni.prototype=Object.create(pe.prototype),Ni.prototype.constructor=Ni,Pi.prototype=Object.create(ct.prototype),Pi.prototype.constructor=Pi,Pi.prototype.isCubeTexture=!0,Object.defineProperty(Pi.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),Ui.prototype=Object.create(dt.prototype),Ui.prototype.constructor=Ui,Ui.prototype.isWebGLCubeRenderTarget=!0,Ui.prototype.fromEquirectangularTexture=function(t,e){this.texture.type=e.type,this.texture.format=N,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t#include <begin_vertex>\n\t\t\t\t#include <project_vertex>\n\n\t\t\t}\n\t\t",fragmentShader:"\n\n\t\t\tuniform sampler2D tEquirect;\n\n\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t}\n\t\t"},n=new ki(5,5,5),r=new Mi({name:"CubemapFromEquirect",uniforms:Di(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:1,blending:0});r.uniforms.tEquirect.value=e;const o=new xi(n,r),a=e.minFilter;e.minFilter===k&&(e.minFilter=Q);return new Ni(1,10,this).update(t,o),e.minFilter=a,o.geometry.dispose(),o.material.dispose(),this},Oi.prototype=Object.create(ct.prototype),Oi.prototype.constructor=Oi,Oi.prototype.isDataTexture=!0;const Gi=new Tt,Hi=new gt;class Vi{constructor(t,e,i,n,r,o){this.planes=[void 0!==t?t:new ye,void 0!==e?e:new ye,void 0!==i?i:new ye,void 0!==n?n:new ye,void 0!==r?r:new ye,void 0!==o?o:new ye]}set(t,e,i,n,r,o){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(i),a[3].copy(n),a[4].copy(r),a[5].copy(o),this}clone(){return(new this.constructor).copy(this)}copy(t){const e=this.planes;for(let i=0;i<6;i++)e[i].copy(t.planes[i]);return this}setFromProjectionMatrix(t){const e=this.planes,i=t.elements,n=i[0],r=i[1],o=i[2],a=i[3],s=i[4],l=i[5],A=i[6],c=i[7],h=i[8],d=i[9],u=i[10],p=i[11],g=i[12],f=i[13],m=i[14],y=i[15];return e[0].setComponents(a-n,c-s,p-h,y-g).normalize(),e[1].setComponents(a+n,c+s,p+h,y+g).normalize(),e[2].setComponents(a+r,c+l,p+d,y+f).normalize(),e[3].setComponents(a-r,c-l,p-d,y-f).normalize(),e[4].setComponents(a-o,c-A,p-u,y-m).normalize(),e[5].setComponents(a+o,c+A,p+u,y+m).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Gi.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Gi)}intersectsSprite(t){return Gi.center.set(0,0,0),Gi.radius=.7071067811865476,Gi.applyMatrix4(t.matrixWorld),this.intersectsSphere(Gi)}intersectsSphere(t){const e=this.planes,i=t.center,n=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(i)<n)return!1}return!0}intersectsBox(t){const e=this.planes;for(let i=0;i<6;i++){const n=e[i];if(Hi.x=n.normal.x>0?t.max.x:t.min.x,Hi.y=n.normal.y>0?t.max.y:t.min.y,Hi.z=n.normal.z>0?t.max.z:t.min.z,n.distanceToPoint(Hi)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let i=0;i<6;i++)if(e[i].distanceToPoint(t)<0)return!1;return!0}}function Yi(){let t=null,e=!1,i=null,n=null;function r(e,o){i(e,o),n=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==i&&(n=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(t){i=t},setContext:function(e){t=e}}}function zi(t,e){const i=e.isWebGL2,n=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),n.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const i=n.get(e);i&&(t.deleteBuffer(i.buffer),n.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){var o=n.get(e);return void((!o||o.version<e.version)&&n.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version}))}e.isInterleavedBufferAttribute&&(e=e.data);const a=n.get(e);void 0===a?n.set(e,function(e,i){const n=e.array,r=e.usage,o=t.createBuffer();t.bindBuffer(i,o),t.bufferData(i,n,r),e.onUploadCallback();let a=5126;return n instanceof Float32Array?a=5126:n instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):n instanceof Uint16Array?a=5123:n instanceof Int16Array?a=5122:n instanceof Uint32Array?a=5125:n instanceof Int32Array?a=5124:n instanceof Int8Array?a=5120:n instanceof Uint8Array&&(a=5121),{buffer:o,type:a,bytesPerElement:n.BYTES_PER_ELEMENT,version:e.version}}(e,r)):a.version<e.version&&(!function(e,n,r){const o=n.array,a=n.updateRange;t.bindBuffer(r,e),-1===a.count?t.bufferSubData(r,0,o):(i?t.bufferSubData(r,a.offset*o.BYTES_PER_ELEMENT,o,a.offset,a.count):t.bufferSubData(r,a.offset*o.BYTES_PER_ELEMENT,o.subarray(a.offset,a.offset+a.count)),a.count=-1)}(a.buffer,e,r),a.version=e.version)}}}class Wi extends li{constructor(t,e,i,n){super(),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n};const r=(t=t||1)/2,o=(e=e||1)/2,a=Math.floor(i)||1,s=Math.floor(n)||1,l=a+1,A=s+1,c=t/a,h=e/s,d=[],u=[],p=[],g=[];for(let t=0;t<A;t++){const e=t*h-o;for(let i=0;i<l;i++){const n=i*c-r;u.push(n,-e,0),p.push(0,0,1),g.push(i/a),g.push(1-t/s)}}for(let t=0;t<s;t++)for(let e=0;e<a;e++){const i=e+l*t,n=e+l*(t+1),r=e+1+l*(t+1),o=e+1+l*t;d.push(i,n,o),d.push(n,r,o)}this.setIndex(d),this.setAttribute("position",new Ke(u,3)),this.setAttribute("normal",new Ke(p,3)),this.setAttribute("uv",new Ke(g,2))}}const Zi={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",
alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",
bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif",
bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor.xyz *= color.xyz;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",
cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}",
envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",
lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",
lights_toon_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif",
lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",
lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",
morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif",normal_fragment_begin:"#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\tbitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\tvec3 N = normalize( surf_norm );\n\t\tmat3 tsn = mat3( S, T, N );\n\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\treturn normalize( tsn * mapN );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",
shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",
shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmissionmap_fragment:"#ifdef USE_TRANSMISSIONMAP\n\ttotalTransmission *= texture2D( transmissionMap, vUv ).r;\n#endif",
transmissionmap_pars_fragment:"#ifdef USE_TRANSMISSIONMAP\n\tuniform sampler2D transmissionMap;\n#endif",uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",
meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",
meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",
meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n\t#define TRANSMISSION\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef TRANSMISSION\n\tuniform float transmission;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <transmissionmap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#ifdef TRANSMISSION\n\t\tfloat totalTransmission = transmission;\n\t#endif\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <transmissionmap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#ifdef TRANSMISSION\n\t\tdiffuseColor.a *= mix( saturate( 1. - totalTransmission + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) ), 1.0, metalness );\n\t#endif\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",
shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}"},ji={common:{diffuse:{value:new Le(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new at},uv2Transform:{value:new at},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new ot(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Le(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Le(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new at}},sprite:{diffuse:{value:new Le(15658734)},opacity:{value:1},center:{value:new ot(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new at}}},qi={basic:{uniforms:_i([ji.common,ji.specularmap,ji.envmap,ji.aomap,ji.lightmap,ji.fog]),vertexShader:Zi.meshbasic_vert,fragmentShader:Zi.meshbasic_frag},lambert:{uniforms:_i([ji.common,ji.specularmap,ji.envmap,ji.aomap,ji.lightmap,ji.emissivemap,ji.fog,ji.lights,{emissive:{value:new Le(0)}}]),vertexShader:Zi.meshlambert_vert,fragmentShader:Zi.meshlambert_frag},phong:{uniforms:_i([ji.common,ji.specularmap,ji.envmap,ji.aomap,ji.lightmap,ji.emissivemap,ji.bumpmap,ji.normalmap,ji.displacementmap,ji.fog,ji.lights,{emissive:{value:new Le(0)},specular:{value:new Le(1118481)},shininess:{value:30}}]),vertexShader:Zi.meshphong_vert,fragmentShader:Zi.meshphong_frag},standard:{uniforms:_i([ji.common,ji.envmap,ji.aomap,ji.lightmap,ji.emissivemap,ji.bumpmap,ji.normalmap,ji.displacementmap,ji.roughnessmap,ji.metalnessmap,ji.fog,ji.lights,{emissive:{value:new Le(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Zi.meshphysical_vert,fragmentShader:Zi.meshphysical_frag},toon:{uniforms:_i([ji.common,ji.aomap,ji.lightmap,ji.emissivemap,ji.bumpmap,ji.normalmap,ji.displacementmap,ji.gradientmap,ji.fog,ji.lights,{emissive:{value:new Le(0)}}]),vertexShader:Zi.meshtoon_vert,fragmentShader:Zi.meshtoon_frag},matcap:{uniforms:_i([ji.common,ji.bumpmap,ji.normalmap,ji.displacementmap,ji.fog,{matcap:{value:null}}]),vertexShader:Zi.meshmatcap_vert,fragmentShader:Zi.meshmatcap_frag},points:{uniforms:_i([ji.points,ji.fog]),vertexShader:Zi.points_vert,fragmentShader:Zi.points_frag},dashed:{uniforms:_i([ji.common,ji.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Zi.linedashed_vert,fragmentShader:Zi.linedashed_frag},depth:{uniforms:_i([ji.common,ji.displacementmap]),vertexShader:Zi.depth_vert,fragmentShader:Zi.depth_frag},normal:{uniforms:_i([ji.common,ji.bumpmap,ji.normalmap,ji.displacementmap,{opacity:{value:1}}]),vertexShader:Zi.normal_vert,fragmentShader:Zi.normal_frag},sprite:{uniforms:_i([ji.sprite,ji.fog]),vertexShader:Zi.sprite_vert,fragmentShader:Zi.sprite_frag},background:{uniforms:{uvTransform:{value:new at},t2D:{value:null}},vertexShader:Zi.background_vert,fragmentShader:Zi.background_frag},cube:{uniforms:_i([ji.envmap,{opacity:{value:1}}]),vertexShader:Zi.cube_vert,fragmentShader:Zi.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Zi.equirect_vert,fragmentShader:Zi.equirect_frag},distanceRGBA:{uniforms:_i([ji.common,ji.displacementmap,{referencePosition:{value:new gt},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Zi.distanceRGBA_vert,fragmentShader:Zi.distanceRGBA_frag},shadow:{uniforms:_i([ji.lights,ji.fog,{color:{value:new Le(0)},opacity:{value:1}}]),vertexShader:Zi.shadow_vert,fragmentShader:Zi.shadow_frag}};function Ji(t,e,i,n,r){const o=new Le(0);let a,s,l=0,A=null,c=0,h=null;function d(t,e){i.buffers.color.setClear(t.r,t.g,t.b,e,r)}return{getClearColor:function(){return o},setClearColor:function(t,e){o.set(t),l=void 0!==e?e:1,d(o,l)},getClearAlpha:function(){return l},setClearAlpha:function(t){l=t,d(o,l)},render:function(i,r,u,p){let g=!0===r.isScene?r.background:null;g&&g.isTexture&&(g=e.get(g))
;const f=t.xr,m=f.getSession&&f.getSession();m&&"additive"===m.environmentBlendMode&&(g=null),null===g?d(o,l):g&&g.isColor&&(d(g,1),p=!0),(t.autoClear||p)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),g&&(g.isCubeTexture||g.isWebGLCubeRenderTarget||g.mapping===b)?(void 0===s&&(s=new xi(new ki(1,1,1),new Mi({name:"BackgroundCubeMaterial",uniforms:Di(qi.cube.uniforms),vertexShader:qi.cube.vertexShader,fragmentShader:qi.cube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),s.geometry.deleteAttribute("uv"),s.onBeforeRender=function(t,e,i){this.matrixWorld.copyPosition(i.matrixWorld)},Object.defineProperty(s.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),n.update(s)),g.isWebGLCubeRenderTarget&&(g=g.texture),s.material.uniforms.envMap.value=g,s.material.uniforms.flipEnvMap.value=g.isCubeTexture&&g._needsFlipEnvMap?-1:1,A===g&&c===g.version&&h===t.toneMapping||(s.material.needsUpdate=!0,A=g,c=g.version,h=t.toneMapping),i.unshift(s,s.geometry,s.material,0,0,null)):g&&g.isTexture&&(void 0===a&&(a=new xi(new Wi(2,2),new Mi({name:"BackgroundMaterial",uniforms:Di(qi.background.uniforms),vertexShader:qi.background.vertexShader,fragmentShader:qi.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),a.geometry.deleteAttribute("normal"),Object.defineProperty(a.material,"map",{get:function(){return this.uniforms.t2D.value}}),n.update(a)),a.material.uniforms.t2D.value=g,!0===g.matrixAutoUpdate&&g.updateMatrix(),a.material.uniforms.uvTransform.value.copy(g.matrix),A===g&&c===g.version&&h===t.toneMapping||(a.material.needsUpdate=!0,A=g,c=g.version,h=t.toneMapping),i.unshift(a,a.geometry,a.material,0,0,null))}}}function Ki(t,e,i,n){const r=t.getParameter(34921),o=n.isWebGL2?null:e.get("OES_vertex_array_object"),a=n.isWebGL2||null!==o,s={},l=d(null);let A=l;function c(e){return n.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function h(e){return n.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function d(t){const e=[],i=[],n=[];for(let t=0;t<r;t++)e[t]=0,i[t]=0,n[t]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:i,attributeDivisors:n,object:t,attributes:{},index:null}}function u(){const t=A.newAttributes;for(let e=0,i=t.length;e<i;e++)t[e]=0}function p(t){g(t,0)}function g(i,r){const o=A.newAttributes,a=A.enabledAttributes,s=A.attributeDivisors;if(o[i]=1,0===a[i]&&(t.enableVertexAttribArray(i),a[i]=1),s[i]!==r){(n.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[n.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](i,r),s[i]=r}}function f(){const e=A.newAttributes,i=A.enabledAttributes;for(let n=0,r=i.length;n<r;n++)i[n]!==e[n]&&(t.disableVertexAttribArray(n),i[n]=0)}function m(e,i,r,o,a,s){!0!==n.isWebGL2||5124!==r&&5125!==r?t.vertexAttribPointer(e,i,r,o,a,s):t.vertexAttribIPointer(e,i,r,a,s)}function y(){b(),A!==l&&(A=l,c(A.object))}function b(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(r,l,h,y,b){let v=!1;if(a){const e=function(e,i,r){const a=!0===r.wireframe;let l=s[e.id];void 0===l&&(l={},s[e.id]=l);let A=l[i.id];void 0===A&&(A={},l[i.id]=A);let c=A[a];void 0===c&&(c=d(n.isWebGL2?t.createVertexArray():o.createVertexArrayOES()),A[a]=c);return c}(y,h,l);A!==e&&(A=e,c(A.object)),v=function(t,e){const i=A.attributes,n=t.attributes;if(Object.keys(i).length!==Object.keys(n).length)return!0;for(const t in n){const e=i[t],r=n[t];if(void 0===e)return!0;if(e.attribute!==r)return!0;if(e.data!==r.data)return!0}return A.index!==e}(y,b),v&&function(t,e){const i={},n=t.attributes;for(const t in n){const e=n[t],r={};r.attribute=e,e.data&&(r.data=e.data),i[t]=r}A.attributes=i,A.index=e}(y,b)}else{const t=!0===l.wireframe;A.geometry===y.id&&A.program===h.id&&A.wireframe===t||(A.geometry=y.id,A.program=h.id,A.wireframe=t,v=!0)}!0===r.isInstancedMesh&&(v=!0),null!==b&&i.update(b,34963),v&&(!function(r,o,a,s){if(!1===n.isWebGL2&&(r.isInstancedMesh||s.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;u();const l=s.attributes,A=a.getAttributes(),c=o.defaultAttributeValues;for(const e in A){const n=A[e];if(n>=0){const o=l[e];if(void 0!==o){const e=o.normalized,r=o.itemSize,a=i.get(o);if(void 0===a)continue;const l=a.buffer,A=a.type,c=a.bytesPerElement;if(o.isInterleavedBufferAttribute){const i=o.data,a=i.stride,h=o.offset;i&&i.isInstancedInterleavedBuffer?(g(n,i.meshPerAttribute),void 0===s._maxInstanceCount&&(s._maxInstanceCount=i.meshPerAttribute*i.count)):p(n),t.bindBuffer(34962,l),m(n,r,A,e,a*c,h*c)}else o.isInstancedBufferAttribute?(g(n,o.meshPerAttribute),void 0===s._maxInstanceCount&&(s._maxInstanceCount=o.meshPerAttribute*o.count)):p(n),t.bindBuffer(34962,l),m(n,r,A,e,0,0)}else if("instanceMatrix"===e){const e=i.get(r.instanceMatrix);if(void 0===e)continue;const o=e.buffer,a=e.type;g(n+0,1),g(n+1,1),g(n+2,1),g(n+3,1),t.bindBuffer(34962,o),t.vertexAttribPointer(n+0,4,a,!1,64,0),t.vertexAttribPointer(n+1,4,a,!1,64,16),t.vertexAttribPointer(n+2,4,a,!1,64,32),t.vertexAttribPointer(n+3,4,a,!1,64,48)}else if("instanceColor"===e){const e=i.get(r.instanceColor);if(void 0===e)continue;const o=e.buffer,a=e.type;g(n,1),t.bindBuffer(34962,o),t.vertexAttribPointer(n,3,a,!1,12,0)}else if(void 0!==c){const i=c[e];if(void 0!==i)switch(i.length){case 2:t.vertexAttrib2fv(n,i);break;case 3:t.vertexAttrib3fv(n,i);break;case 4:t.vertexAttrib4fv(n,i);break;default:t.vertexAttrib1fv(n,i)}}}}f()}(r,l,h,y),null!==b&&t.bindBuffer(34963,i.get(b).buffer))},reset:y,resetDefaultState:b,dispose:function(){y();for(const t in s){const e=s[t];for(const t in e){const i=e[t];for(const t in i)h(i[t].object),delete i[t];delete e[t]}delete s[t]}},releaseStatesOfGeometry:function(t){if(void 0===s[t.id])return;const e=s[t.id];for(const t in e){const i=e[t];for(const t in i)h(i[t].object),delete i[t];delete e[t]}delete s[t.id]},releaseStatesOfProgram:function(t){for(const e in s){const i=s[e];if(void 0===i[t.id])continue;const n=i[t.id];for(const t in n)h(n[t].object),delete n[t];delete i[t.id]}},initAttributes:u,enableAttribute:p,disableUnusedAttributes:f}}function Xi(t,e,i,n){const r=n.isWebGL2;let o;this.setMode=function(t){o=t},this.render=function(e,n){t.drawArrays(o,e,n),i.update(n,o,1)},this.renderInstances=function(n,a,s){if(0===s)return;let l,A;if(r)l=t,A="drawArraysInstanced";else if(l=e.get("ANGLE_instanced_arrays"),A="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[A](o,n,a,s),i.update(a,o,s)}}function $i(t,e,i){let n;function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const o="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let a=void 0!==i.precision?i.precision:"highp";const s=r(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);const l=!0===i.logarithmicDepthBuffer,A=t.getParameter(34930),c=t.getParameter(35660),h=t.getParameter(3379),d=t.getParameter(34076),u=t.getParameter(34921),p=t.getParameter(36347),g=t.getParameter(36348),f=t.getParameter(36349),m=c>0,y=o||!!e.get("OES_texture_float");return{isWebGL2:o,getMaxAnisotropy:function(){if(void 0!==n)return n;const i=e.get("EXT_texture_filter_anisotropic");return n=null!==i?t.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0,n},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:l,maxTextures:A,maxVertexTextures:c,maxTextureSize:h,maxCubemapSize:d,maxAttributes:u,maxVertexUniforms:p,maxVaryings:g,maxFragmentUniforms:f,vertexTextures:m,floatFragmentTextures:y,floatVertexTextures:m&&y,maxSamples:o?t.getParameter(36183):0}}function tn(t){const e=this;let i=null,n=0,r=!1,o=!1;const a=new ye,s=new at,l={value:null,needsUpdate:!1};function A(){l.value!==i&&(l.value=i,l.needsUpdate=n>0),
e.numPlanes=n,e.numIntersection=0}function c(t,i,n,r){const o=null!==t?t.length:0;let A=null;if(0!==o){if(A=l.value,!0!==r||null===A){const e=n+4*o,r=i.matrixWorldInverse;s.getNormalMatrix(r),(null===A||A.length<e)&&(A=new Float32Array(e));for(let e=0,i=n;e!==o;++e,i+=4)a.copy(t[e]).applyMatrix4(r,s),a.normal.toArray(A,i),A[i+3]=a.constant}l.value=A,l.needsUpdate=!0}return e.numPlanes=o,e.numIntersection=0,A}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,o){const a=0!==t.length||e||0!==n||r;return r=e,i=c(t,o,0),n=t.length,a},this.beginShadows=function(){o=!0,c(null)},this.endShadows=function(){o=!1,A()},this.setState=function(e,a,s){const h=e.clippingPlanes,d=e.clipIntersection,u=e.clipShadows,p=t.get(e);if(!r||null===h||0===h.length||o&&!u)o?c(null):A();else{const t=o?0:n,e=4*t;let r=p.clippingState||null;l.value=r,r=c(h,a,e,s);for(let t=0;t!==e;++t)r[t]=i[t];p.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function en(t){let e=new WeakMap;function i(t,e){return 303===e?t.mapping=m:304===e&&(t.mapping=y),t}return{get:function(n){if(n&&n.isTexture){const r=n.mapping;if(303===r||304===r){if(e.has(n)){return i(e.get(n).texture,n.mapping)}{const r=n.image;if(r&&r.height>0){const o=t.getRenderList(),a=t.getRenderTarget(),s=t.getRenderState(),l=new Ui(r.height/2);return l.fromEquirectangularTexture(t,n),e.set(n,l),t.setRenderTarget(a),t.setRenderList(o),t.setRenderState(s),i(l.texture,n.mapping)}return null}}}return n},dispose:function(){e=new WeakMap}}}function nn(t){const e={};return{has:function(i){if(void 0!==e[i])return null!==e[i];let n;switch(i){case"WEBGL_depth_texture":n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i)}return e[i]=n,null!==n},get:function(t){return this.has(t)||console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e[t]}}}function rn(t,e,i,n){const r=new WeakMap,o=new WeakMap;function a(t){const s=t.target,l=r.get(s);null!==l.index&&e.remove(l.index);for(const t in l.attributes)e.remove(l.attributes[t]);s.removeEventListener("dispose",a),r.delete(s);const A=o.get(l);A&&(e.remove(A),o.delete(l)),n.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,i.memory.geometries--}function s(t){const i=[],n=t.index,r=t.attributes.position;let a=0;if(null!==n){const t=n.array;a=n.version;for(let e=0,n=t.length;e<n;e+=3){const n=t[e+0],r=t[e+1],o=t[e+2];i.push(n,r,r,o,o,n)}}else{const t=r.array;a=r.version;for(let e=0,n=t.length/3-1;e<n;e+=3){const t=e+0,n=e+1,r=e+2;i.push(t,n,n,r,r,t)}}const s=new(ti(i)>65535?Je:je)(i,1);s.version=a;const l=o.get(t);l&&e.remove(l),o.set(t,s)}return{get:function(t,e){let n=r.get(e);return n||(e.addEventListener("dispose",a),e.isBufferGeometry?n=e:e.isGeometry&&(void 0===e._bufferGeometry&&(e._bufferGeometry=(new li).setFromObject(t)),n=e._bufferGeometry),r.set(e,n),i.memory.geometries++,n)},update:function(t){const i=t.attributes;for(const t in i)e.update(i[t],34962);const n=t.morphAttributes;for(const t in n){const i=n[t];for(let t=0,n=i.length;t<n;t++)e.update(i[t],34962)}},getWireframeAttribute:function(t){const e=o.get(t);if(e){const i=t.index;null!==i&&e.version<i.version&&s(t)}else s(t);return o.get(t)}}}function on(t,e,i,n){const r=n.isWebGL2;let o,a,s;this.setMode=function(t){o=t},this.setIndex=function(t){a=t.type,s=t.bytesPerElement},this.render=function(e,n){t.drawElements(o,n,a,e*s),i.update(n,o,1)},this.renderInstances=function(n,l,A){if(0===A)return;let c,h;if(r)c=t,h="drawElementsInstanced";else if(c=e.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===c)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");c[h](o,l,a,n*s,A),i.update(l,o,A)}}function an(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,i,n){switch(e.calls++,i){case 4:e.triangles+=n*(t/3);break;case 1:e.lines+=n*(t/2);break;case 3:e.lines+=n*(t-1);break;case 2:e.lines+=n*t;break;case 0:e.points+=n*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i)}}}}function sn(t,e){return t[0]-e[0]}function ln(t,e){return Math.abs(e[1])-Math.abs(t[1])}function An(t){const e={},i=new Float32Array(8),n=[];for(let t=0;t<8;t++)n[t]=[t,0];return{update:function(r,o,a,s){const l=r.morphTargetInfluences,A=void 0===l?0:l.length;let c=e[o.id];if(void 0===c){c=[];for(let t=0;t<A;t++)c[t]=[t,0];e[o.id]=c}for(let t=0;t<A;t++){const e=c[t];e[0]=t,e[1]=l[t]}c.sort(ln);for(let t=0;t<8;t++)t<A&&c[t][1]?(n[t][0]=c[t][0],n[t][1]=c[t][1]):(n[t][0]=Number.MAX_SAFE_INTEGER,n[t][1]=0);n.sort(sn);const h=a.morphTargets&&o.morphAttributes.position,d=a.morphNormals&&o.morphAttributes.normal;let u=0;for(let t=0;t<8;t++){const e=n[t],r=e[0],a=e[1];r!==Number.MAX_SAFE_INTEGER&&a?(h&&o.getAttribute("morphTarget"+t)!==h[r]&&o.setAttribute("morphTarget"+t,h[r]),d&&o.getAttribute("morphNormal"+t)!==d[r]&&o.setAttribute("morphNormal"+t,d[r]),i[t]=a,u+=a):(h&&void 0!==o.getAttribute("morphTarget"+t)&&o.deleteAttribute("morphTarget"+t),d&&void 0!==o.getAttribute("morphNormal"+t)&&o.deleteAttribute("morphNormal"+t),i[t]=0)}const p=o.morphTargetsRelative?1:1-u;s.getUniforms().setValue(t,"morphTargetBaseInfluence",p),s.getUniforms().setValue(t,"morphTargetInfluences",i)}}}function cn(t,e,i,n){let r=new WeakMap;return{update:function(t){const o=n.render.frame,a=t.geometry,s=e.get(t,a);return r.get(s)!==o&&(a.isGeometry&&s.updateFromObject(t),e.update(s),r.set(s,o)),t.isInstancedMesh&&(i.update(t.instanceMatrix,34962),null!==t.instanceColor&&i.update(t.instanceColor,34962)),s},dispose:function(){r=new WeakMap}}}function hn(t,e,i,n){ct.call(this,null),this.image={data:t||null,width:e||1,height:i||1,depth:n||1},this.magFilter=B,this.minFilter=B,this.wrapR=I,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}function dn(t,e,i,n){ct.call(this,null),this.image={data:t||null,width:e||1,height:i||1,depth:n||1},this.magFilter=B,this.minFilter=B,this.wrapR=I,this.generateMipmaps=!1,this.flipY=!1,this.needsUpdate=!0}qi.physical={uniforms:_i([qi.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new ot(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new Le(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:Zi.meshphysical_vert,fragmentShader:Zi.meshphysical_frag},hn.prototype=Object.create(ct.prototype),hn.prototype.constructor=hn,hn.prototype.isDataTexture2DArray=!0,dn.prototype=Object.create(ct.prototype),dn.prototype.constructor=dn,dn.prototype.isDataTexture3D=!0;const un=new ct,pn=new hn,gn=new dn,fn=new Pi,mn=[],yn=[],bn=new Float32Array(16),vn=new Float32Array(9),En=new Float32Array(4);function In(t,e,i){const n=t[0];if(n<=0||n>0)return t;const r=e*i;let o=mn[r];if(void 0===o&&(o=new Float32Array(r),mn[r]=o),0!==e){n.toArray(o,0);for(let n=1,r=0;n!==e;++n)r+=i,t[n].toArray(o,r)}return o}function Cn(t,e){if(t.length!==e.length)return!1;for(let i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function Bn(t,e){for(let i=0,n=e.length;i<n;i++)t[i]=e[i]}function wn(t,e){let i=yn[e];void 0===i&&(i=new Int32Array(e),yn[e]=i);for(let n=0;n!==e;++n)i[n]=t.allocateTextureUnit();return i}function xn(t,e){const i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}
function Qn(t,e){const i=this.cache;if(void 0!==e.x)i[0]===e.x&&i[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y);else{if(Cn(i,e))return;t.uniform2fv(this.addr,e),Bn(i,e)}}function Sn(t,e){const i=this.cache;if(void 0!==e.x)i[0]===e.x&&i[1]===e.y&&i[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z);else if(void 0!==e.r)i[0]===e.r&&i[1]===e.g&&i[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b);else{if(Cn(i,e))return;t.uniform3fv(this.addr,e),Bn(i,e)}}function kn(t,e){const i=this.cache;if(void 0!==e.x)i[0]===e.x&&i[1]===e.y&&i[2]===e.z&&i[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w);else{if(Cn(i,e))return;t.uniform4fv(this.addr,e),Bn(i,e)}}function Dn(t,e){const i=this.cache,n=e.elements;if(void 0===n){if(Cn(i,e))return;t.uniformMatrix2fv(this.addr,!1,e),Bn(i,e)}else{if(Cn(i,n))return;En.set(n),t.uniformMatrix2fv(this.addr,!1,En),Bn(i,n)}}function _n(t,e){const i=this.cache,n=e.elements;if(void 0===n){if(Cn(i,e))return;t.uniformMatrix3fv(this.addr,!1,e),Bn(i,e)}else{if(Cn(i,n))return;vn.set(n),t.uniformMatrix3fv(this.addr,!1,vn),Bn(i,n)}}function Rn(t,e){const i=this.cache,n=e.elements;if(void 0===n){if(Cn(i,e))return;t.uniformMatrix4fv(this.addr,!1,e),Bn(i,e)}else{if(Cn(i,n))return;bn.set(n),t.uniformMatrix4fv(this.addr,!1,bn),Bn(i,n)}}function Mn(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.safeSetTexture2D(e||un,r)}function Tn(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.setTexture2DArray(e||pn,r)}function Fn(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.setTexture3D(e||gn,r)}function Ln(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.safeSetTextureCube(e||fn,r)}function Nn(t,e){const i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function Pn(t,e){const i=this.cache;Cn(i,e)||(t.uniform2iv(this.addr,e),Bn(i,e))}function Un(t,e){const i=this.cache;Cn(i,e)||(t.uniform3iv(this.addr,e),Bn(i,e))}function On(t,e){const i=this.cache;Cn(i,e)||(t.uniform4iv(this.addr,e),Bn(i,e))}function Gn(t,e){const i=this.cache;i[0]!==e&&(t.uniform1ui(this.addr,e),i[0]=e)}function Hn(t,e){t.uniform1fv(this.addr,e)}function Vn(t,e){t.uniform1iv(this.addr,e)}function Yn(t,e){t.uniform2iv(this.addr,e)}function zn(t,e){t.uniform3iv(this.addr,e)}function Wn(t,e){t.uniform4iv(this.addr,e)}function Zn(t,e){const i=In(e,this.size,2);t.uniform2fv(this.addr,i)}function jn(t,e){const i=In(e,this.size,3);t.uniform3fv(this.addr,i)}function qn(t,e){const i=In(e,this.size,4);t.uniform4fv(this.addr,i)}function Jn(t,e){const i=In(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,i)}function Kn(t,e){const i=In(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,i)}function Xn(t,e){const i=In(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,i)}function $n(t,e,i){const n=e.length,r=wn(i,n);t.uniform1iv(this.addr,r);for(let t=0;t!==n;++t)i.safeSetTexture2D(e[t]||un,r[t])}function tr(t,e,i){const n=e.length,r=wn(i,n);t.uniform1iv(this.addr,r);for(let t=0;t!==n;++t)i.safeSetTextureCube(e[t]||fn,r[t])}function er(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=function(t){switch(t){case 5126:return xn;case 35664:return Qn;case 35665:return Sn;case 35666:return kn;case 35674:return Dn;case 35675:return _n;case 35676:return Rn;case 5124:case 35670:return Nn;case 35667:case 35671:return Pn;case 35668:case 35672:return Un;case 35669:case 35673:return On;case 5125:return Gn;case 35678:case 36198:case 36298:case 36306:case 35682:return Mn;case 35679:case 36299:case 36307:return Fn;case 35680:case 36300:case 36308:case 36293:return Ln;case 36289:case 36303:case 36311:case 36292:return Tn}}(e.type)}function ir(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return Hn;case 35664:return Zn;case 35665:return jn;case 35666:return qn;case 35674:return Jn;case 35675:return Kn;case 35676:return Xn;case 5124:case 35670:return Vn;case 35667:case 35671:return Yn;case 35668:case 35672:return zn;case 35669:case 35673:return Wn;case 35678:case 36198:case 36298:case 36306:case 35682:return $n;case 35680:case 36300:case 36308:case 36293:return tr}}(e.type)}function nr(t){this.id=t,this.seq=[],this.map={}}ir.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),Bn(e,t)},nr.prototype.setValue=function(t,e,i){const n=this.seq;for(let r=0,o=n.length;r!==o;++r){const o=n[r];o.setValue(t,e[o.id],i)}};const rr=/([\w\d_]+)(\])?(\[|\.)?/g;function or(t,e){t.seq.push(e),t.map[e.id]=e}function ar(t,e,i){const n=t.name,r=n.length;for(rr.lastIndex=0;;){const o=rr.exec(n),a=rr.lastIndex;let s=o[1];const l="]"===o[2],A=o[3];if(l&&(s|=0),void 0===A||"["===A&&a+2===r){or(i,void 0===A?new er(s,t,e):new ir(s,t,e));break}{let t=i.map[s];void 0===t&&(t=new nr(s),or(i,t)),i=t}}}function sr(t,e){this.seq=[],this.map={};const i=t.getProgramParameter(e,35718);for(let n=0;n<i;++n){const i=t.getActiveUniform(e,n);ar(i,t.getUniformLocation(e,i.name),this)}}function lr(t,e,i){const n=t.createShader(e);return t.shaderSource(n,i),t.compileShader(n),n}sr.prototype.setValue=function(t,e,i,n){const r=this.map[e];void 0!==r&&r.setValue(t,i,n)},sr.prototype.setOptional=function(t,e,i){const n=e[i];void 0!==n&&this.setValue(t,i,n)},sr.upload=function(t,e,i,n){for(let r=0,o=e.length;r!==o;++r){const o=e[r],a=i[o.id];!1!==a.needsUpdate&&o.setValue(t,a.value,n)}},sr.seqWithValue=function(t,e){const i=[];for(let n=0,r=t.length;n!==r;++n){const r=t[n];r.id in e&&i.push(r)}return i};let Ar=0;function cr(t){switch(t){case Z:return["Linear","( value )"];case j:return["sRGB","( value )"];case J:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case q:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case 3003:return["LogLuv","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}function hr(t,e,i){const n=t.getShaderParameter(e,35713),r=t.getShaderInfoLog(e).trim();if(n&&""===r)return"";return"THREE.WebGLShader: gl.getShaderInfoLog() "+i+"\n"+r+function(t){const e=t.split("\n");for(let t=0;t<e.length;t++)e[t]=t+1+": "+e[t];return e.join("\n")}(t.getShaderSource(e))}function dr(t,e){const i=cr(e);return"vec4 "+t+"( vec4 value ) { return "+i[0]+"ToLinear"+i[1]+"; }"}function ur(t,e){const i=cr(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+i[0]+i[1]+"; }"}function pr(t,e){let i;switch(e){case 1:i="Linear";break;case 2:i="Reinhard";break;case 3:i="OptimizedCineon";break;case 4:i="ACESFilmic";break;case 5:i="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),i="Linear"}return"vec3 "+t+"( vec3 color ) { return "+i+"ToneMapping( color ); }"}function gr(t){return""!==t}function fr(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function mr(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const yr=/^[ \t]*#include +<([\w\d./]+)>/gm;function br(t){return t.replace(yr,vr)}function vr(t,e){const i=Zi[e];if(void 0===i)throw new Error("Can not resolve #include <"+e+">");return br(i)}const Er=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Ir=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Cr(t){return t.replace(Ir,wr).replace(Er,Br)}function Br(t,e,i,n){
return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),wr(t,e,i,n)}function wr(t,e,i,n){let r="";for(let t=parseInt(e);t<parseInt(i);t++)r+=n.replace(/\[\s*i\s*\]/g,"[ "+t+" ]").replace(/UNROLLED_LOOP_INDEX/g,t);return r}function xr(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function Qr(t,e,i,n){const r=t.getContext(),o=i.defines;let a=i.vertexShader,s=i.fragmentShader;const l=function(t){let e="SHADOWMAP_TYPE_BASIC";return 1===t.shadowMapType?e="SHADOWMAP_TYPE_PCF":2===t.shadowMapType?e="SHADOWMAP_TYPE_PCF_SOFT":3===t.shadowMapType&&(e="SHADOWMAP_TYPE_VSM"),e}(i),A=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case m:case y:e="ENVMAP_TYPE_CUBE";break;case b:case v:e="ENVMAP_TYPE_CUBE_UV"}return e}(i),c=function(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case y:case v:e="ENVMAP_MODE_REFRACTION"}return e}(i),h=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case 0:e="ENVMAP_BLENDING_MULTIPLY";break;case 1:e="ENVMAP_BLENDING_MIX";break;case 2:e="ENVMAP_BLENDING_ADD"}return e}(i),d=t.gammaFactor>0?t.gammaFactor:1,u=i.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUV||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(gr).join("\n")}(i),p=function(t){const e=[];for(const i in t){const n=t[i];!1!==n&&e.push("#define "+i+" "+n)}return e.join("\n")}(o),g=r.createProgram();let f,E,I=i.glslVersion?"#version "+i.glslVersion+"\n":"";i.isRawShaderMaterial?(f=[p].filter(gr).join("\n"),f.length>0&&(f+="\n"),E=[u,p].filter(gr).join("\n"),E.length>0&&(E+="\n")):(f=[xr(i),"#define SHADER_NAME "+i.shaderName,p,i.instancing?"#define USE_INSTANCING":"",i.instancingColor?"#define USE_INSTANCING_COLOR":"",i.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+d,"#define MAX_BONES "+i.maxBones,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp2?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+c:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.normalMap&&i.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",i.normalMap&&i.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",i.clearcoatMap?"#define USE_CLEARCOATMAP":"",i.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",i.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",i.displacementMap&&i.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.transmissionMap?"#define USE_TRANSMISSIONMAP":"",i.vertexTangents?"#define USE_TANGENT":"",i.vertexColors?"#define USE_COLOR":"",i.vertexUvs?"#define USE_UV":"",i.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",i.flatShading?"#define FLAT_SHADED":"",i.skinning?"#define USE_SKINNING":"",i.useVertexTexture?"#define BONE_TEXTURE":"",i.morphTargets?"#define USE_MORPHTARGETS":"",i.morphNormals&&!1===i.flatShading?"#define USE_MORPHNORMALS":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"",i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+l:"",i.sizeAttenuation?"#define USE_SIZEATTENUATION":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&i.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#ifdef USE_COLOR","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(gr).join("\n"),E=[u,xr(i),"#define SHADER_NAME "+i.shaderName,p,i.alphaTest?"#define ALPHATEST "+i.alphaTest+(i.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+d,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp2?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.matcap?"#define USE_MATCAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+A:"",i.envMap?"#define "+c:"",i.envMap?"#define "+h:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.normalMap&&i.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",i.normalMap&&i.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",i.clearcoatMap?"#define USE_CLEARCOATMAP":"",i.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",i.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.sheen?"#define USE_SHEEN":"",i.transmissionMap?"#define USE_TRANSMISSIONMAP":"",i.vertexTangents?"#define USE_TANGENT":"",i.vertexColors||i.instancingColor?"#define USE_COLOR":"",i.vertexUvs?"#define USE_UV":"",i.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",i.gradientMap?"#define USE_GRADIENTMAP":"",i.flatShading?"#define FLAT_SHADED":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"",i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+l:"",i.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",i.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&i.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(i.extensionShaderTextureLOD||i.envMap)&&i.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==i.toneMapping?"#define TONE_MAPPING":"",0!==i.toneMapping?Zi.tonemapping_pars_fragment:"",0!==i.toneMapping?pr("toneMapping",i.toneMapping):"",i.dithering?"#define DITHERING":"",Zi.encodings_pars_fragment,i.map?dr("mapTexelToLinear",i.mapEncoding):"",i.matcap?dr("matcapTexelToLinear",i.matcapEncoding):"",i.envMap?dr("envMapTexelToLinear",i.envMapEncoding):"",i.emissiveMap?dr("emissiveMapTexelToLinear",i.emissiveMapEncoding):"",i.lightMap?dr("lightMapTexelToLinear",i.lightMapEncoding):"",ur("linearToOutputTexel",i.outputEncoding),i.depthPacking?"#define DEPTH_PACKING "+i.depthPacking:"","\n"].filter(gr).join("\n")),a=br(a),a=fr(a,i),a=mr(a,i),s=br(s),s=fr(s,i),s=mr(s,i),a=Cr(a),s=Cr(s),i.isWebGL2&&!0!==i.isRawShaderMaterial&&(I="#version 300 es\n",
f=["#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+f,E=["#define varying in",i.glslVersion===tt?"":"out highp vec4 pc_fragColor;",i.glslVersion===tt?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+E);const C=I+E+s,B=lr(r,35633,I+f+a),w=lr(r,35632,C);if(r.attachShader(g,B),r.attachShader(g,w),void 0!==i.index0AttributeName?r.bindAttribLocation(g,0,i.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(g,0,"position"),r.linkProgram(g),t.debug.checkShaderErrors){const t=r.getProgramInfoLog(g).trim(),e=r.getShaderInfoLog(B).trim(),i=r.getShaderInfoLog(w).trim();let n=!0,o=!0;if(!1===r.getProgramParameter(g,35714)){n=!1;const e=hr(r,B,"vertex"),i=hr(r,w,"fragment");console.error("THREE.WebGLProgram: shader error: ",r.getError(),"35715",r.getProgramParameter(g,35715),"gl.getProgramInfoLog",t,e,i)}else""!==t?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",t):""!==e&&""!==i||(o=!1);o&&(this.diagnostics={runnable:n,programLog:t,vertexShader:{log:e,prefix:f},fragmentShader:{log:i,prefix:E}})}let x,Q;return r.deleteShader(B),r.deleteShader(w),this.getUniforms=function(){return void 0===x&&(x=new sr(r,g)),x},this.getAttributes=function(){return void 0===Q&&(Q=function(t,e){const i={},n=t.getProgramParameter(e,35721);for(let r=0;r<n;r++){const n=t.getActiveAttrib(e,r).name;i[n]=t.getAttribLocation(e,n)}return i}(r,g)),Q},this.destroy=function(){n.releaseStatesOfProgram(this),r.deleteProgram(g),this.program=void 0},this.name=i.shaderName,this.id=Ar++,this.cacheKey=e,this.usedTimes=1,this.program=g,this.vertexShader=B,this.fragmentShader=w,this}function Sr(t,e,i,n,r,o){const a=[],s=n.isWebGL2,l=n.logarithmicDepthBuffer,A=n.floatVertexTextures,c=n.maxVertexUniforms,h=n.vertexTextures;let d=n.precision;const u={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},p=["precision","isWebGL2","supportsVertexTextures","outputEncoding","instancing","instancingColor","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","envMapCubeUV","lightMap","lightMapEncoding","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","tangentSpaceNormalMap","clearcoatMap","clearcoatRoughnessMap","clearcoatNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexTangents","vertexUvs","uvsVertexOnly","fog","useFog","fogExp2","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","maxMorphTargets","maxMorphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","numDirLightShadows","numPointLightShadows","numSpotLightShadows","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering","sheen","transmissionMap"];function g(t){let e;return t?t.isTexture?e=t.encoding:t.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),e=t.texture.encoding):e=Z,e}return{getParameters:function(r,a,p,f,m){const y=f.fog,E=r.isMeshStandardMaterial?f.environment:null,I=e.get(r.envMap||E),C=u[r.type],B=m.isSkinnedMesh?function(t){const e=t.skeleton.bones;if(A)return 1024;{const t=c,i=Math.floor((t-20)/4),n=Math.min(i,e.length);return n<e.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+e.length+" bones. This GPU supports "+n+"."),0):n}}(m):0;let w,x;if(null!==r.precision&&(d=n.getMaxPrecision(r.precision),d!==r.precision&&console.warn("THREE.WebGLProgram.getParameters:",r.precision,"not supported, using",d,"instead.")),C){const t=qi[C];w=t.vertexShader,x=t.fragmentShader}else w=r.vertexShader,x=r.fragmentShader;const Q=t.getRenderTarget();return{isWebGL2:s,shaderID:C,shaderName:r.type,vertexShader:w,fragmentShader:x,defines:r.defines,isRawShaderMaterial:!0===r.isRawShaderMaterial,glslVersion:r.glslVersion,precision:d,instancing:!0===m.isInstancedMesh,instancingColor:!0===m.isInstancedMesh&&null!==m.instanceColor,supportsVertexTextures:h,outputEncoding:null!==Q?g(Q.texture):t.outputEncoding,map:!!r.map,mapEncoding:g(r.map),matcap:!!r.matcap,matcapEncoding:g(r.matcap),envMap:!!I,envMapMode:I&&I.mapping,envMapEncoding:g(I),envMapCubeUV:!!I&&(I.mapping===b||I.mapping===v),lightMap:!!r.lightMap,lightMapEncoding:g(r.lightMap),aoMap:!!r.aoMap,emissiveMap:!!r.emissiveMap,emissiveMapEncoding:g(r.emissiveMap),bumpMap:!!r.bumpMap,normalMap:!!r.normalMap,objectSpaceNormalMap:1===r.normalMapType,tangentSpaceNormalMap:0===r.normalMapType,clearcoatMap:!!r.clearcoatMap,clearcoatRoughnessMap:!!r.clearcoatRoughnessMap,clearcoatNormalMap:!!r.clearcoatNormalMap,displacementMap:!!r.displacementMap,roughnessMap:!!r.roughnessMap,metalnessMap:!!r.metalnessMap,specularMap:!!r.specularMap,alphaMap:!!r.alphaMap,gradientMap:!!r.gradientMap,sheen:!!r.sheen,transmissionMap:!!r.transmissionMap,combine:r.combine,vertexTangents:r.normalMap&&r.vertexTangents,vertexColors:r.vertexColors,vertexUvs:!!(r.map||r.bumpMap||r.normalMap||r.specularMap||r.alphaMap||r.emissiveMap||r.roughnessMap||r.metalnessMap||r.clearcoatMap||r.clearcoatRoughnessMap||r.clearcoatNormalMap||r.displacementMap||r.transmissionMap),uvsVertexOnly:!(r.map||r.bumpMap||r.normalMap||r.specularMap||r.alphaMap||r.emissiveMap||r.roughnessMap||r.metalnessMap||r.clearcoatNormalMap||r.transmissionMap||!r.displacementMap),fog:!!y,useFog:r.fog,fogExp2:y&&y.isFogExp2,flatShading:r.flatShading,sizeAttenuation:r.sizeAttenuation,logarithmicDepthBuffer:l,skinning:r.skinning&&B>0,maxBones:B,useVertexTexture:A,morphTargets:r.morphTargets,morphNormals:r.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:a.directional.length,numPointLights:a.point.length,numSpotLights:a.spot.length,numRectAreaLights:a.rectArea.length,numHemiLights:a.hemi.length,numDirLightShadows:a.directionalShadowMap.length,numPointLightShadows:a.pointShadowMap.length,numSpotLightShadows:a.spotShadowMap.length,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:r.dithering,shadowMapEnabled:t.shadowMap.enabled&&p.length>0,shadowMapType:t.shadowMap.type,toneMapping:r.toneMapped?t.toneMapping:0,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:r.premultipliedAlpha,alphaTest:r.alphaTest,doubleSided:2===r.side,flipSided:1===r.side,depthPacking:void 0!==r.depthPacking&&r.depthPacking,index0AttributeName:r.index0AttributeName,extensionDerivatives:r.extensions&&r.extensions.derivatives,extensionFragDepth:r.extensions&&r.extensions.fragDepth,extensionDrawBuffers:r.extensions&&r.extensions.drawBuffers,extensionShaderTextureLOD:r.extensions&&r.extensions.shaderTextureLOD,rendererExtensionFragDepth:s||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:s||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:s||i.has("EXT_shader_texture_lod"),customProgramCacheKey:r.customProgramCacheKey()}},getProgramCacheKey:function(e){const i=[];if(e.shaderID?i.push(e.shaderID):(i.push(e.fragmentShader),i.push(e.vertexShader)),void 0!==e.defines)for(const t in e.defines)i.push(t),i.push(e.defines[t]);if(!1===e.isRawShaderMaterial){for(let t=0;t<p.length;t++)i.push(e[p[t]]);i.push(t.outputEncoding),i.push(t.gammaFactor)}
return i.push(e.customProgramCacheKey),i.join()},getUniforms:function(t){const e=u[t.type];let i;if(e){const t=qi[e];i=Ri.clone(t.uniforms)}else i=t.uniforms;return i},acquireProgram:function(e,i){let n;for(let t=0,e=a.length;t<e;t++){const e=a[t];if(e.cacheKey===i){n=e,++n.usedTimes;break}}return void 0===n&&(n=new Qr(t,i,e,r),a.push(n)),n},releaseProgram:function(t){if(0==--t.usedTimes){const e=a.indexOf(t);a[e]=a[a.length-1],a.pop(),t.destroy()}},programs:a}}function kr(){let t=new WeakMap;return{get:function(e){let i=t.get(e);return void 0===i&&(i={},t.set(e,i)),i},remove:function(e){t.delete(e)},update:function(e,i,n){t.get(e)[i]=n},dispose:function(){t=new WeakMap}}}function Dr(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function _r(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Rr(t){const e=[];let i=0;const n=[],r=[],o={id:-1};function a(n,r,a,s,l,A){let c=e[i];const h=t.get(a);return void 0===c?(c={id:n.id,object:n,geometry:r,material:a,program:h.program||o,groupOrder:s,renderOrder:n.renderOrder,z:l,group:A},e[i]=c):(c.id=n.id,c.object=n,c.geometry=r,c.material=a,c.program=h.program||o,c.groupOrder=s,c.renderOrder=n.renderOrder,c.z=l,c.group=A),i++,c}return{opaque:n,transparent:r,init:function(){i=0,n.length=0,r.length=0},push:function(t,e,i,o,s,l){const A=a(t,e,i,o,s,l);(!0===i.transparent?r:n).push(A)},unshift:function(t,e,i,o,s,l){const A=a(t,e,i,o,s,l);(!0===i.transparent?r:n).unshift(A)},finish:function(){for(let t=i,n=e.length;t<n;t++){const i=e[t];if(null===i.id)break;i.id=null,i.object=null,i.geometry=null,i.material=null,i.program=null,i.group=null}},sort:function(t,e){n.length>1&&n.sort(t||Dr),r.length>1&&r.sort(e||_r)}}}function Mr(t){let e=new WeakMap;return{get:function(i,n){const r=e.get(i);let o;return void 0===r?(o=new Rr(t),e.set(i,new WeakMap),e.get(i).set(n,o)):(o=r.get(n),void 0===o&&(o=new Rr(t),r.set(n,o))),o},dispose:function(){e=new WeakMap}}}function Tr(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let i;switch(e.type){case"DirectionalLight":i={direction:new gt,color:new Le};break;case"SpotLight":i={position:new gt,direction:new gt,color:new Le,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":i={position:new gt,color:new Le,distance:0,decay:0};break;case"HemisphereLight":i={direction:new gt,skyColor:new Le,groundColor:new Le};break;case"RectAreaLight":i={color:new Le,position:new gt,halfWidth:new gt,halfHeight:new gt}}return t[e.id]=i,i}}}let Fr=0;function Lr(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function Nr(){const t=new Tr,e=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let i;switch(e.type){case"DirectionalLight":case"SpotLight":i={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ot};break;case"PointLight":i={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ot,shadowCameraNear:1,shadowCameraFar:1e3}}return t[e.id]=i,i}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let t=0;t<9;t++)i.probe.push(new gt);const n=new gt,r=new Vt,o=new Vt;return{setup:function(a,s,l){let A=0,c=0,h=0;for(let t=0;t<9;t++)i.probe[t].set(0,0,0);let d=0,u=0,p=0,g=0,f=0,m=0,y=0,b=0;const v=l.matrixWorldInverse;a.sort(Lr);for(let s=0,l=a.length;s<l;s++){const l=a[s],E=l.color,I=l.intensity,C=l.distance,B=l.shadow&&l.shadow.map?l.shadow.map.texture:null;if(l.isAmbientLight)A+=E.r*I,c+=E.g*I,h+=E.b*I;else if(l.isLightProbe)for(let t=0;t<9;t++)i.probe[t].addScaledVector(l.sh.coefficients[t],I);else if(l.isDirectionalLight){const r=t.get(l);if(r.color.copy(l.color).multiplyScalar(l.intensity),r.direction.setFromMatrixPosition(l.matrixWorld),n.setFromMatrixPosition(l.target.matrixWorld),r.direction.sub(n),r.direction.transformDirection(v),l.castShadow){const t=l.shadow,n=e.get(l);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,i.directionalShadow[d]=n,i.directionalShadowMap[d]=B,i.directionalShadowMatrix[d]=l.shadow.matrix,m++}i.directional[d]=r,d++}else if(l.isSpotLight){const r=t.get(l);if(r.position.setFromMatrixPosition(l.matrixWorld),r.position.applyMatrix4(v),r.color.copy(E).multiplyScalar(I),r.distance=C,r.direction.setFromMatrixPosition(l.matrixWorld),n.setFromMatrixPosition(l.target.matrixWorld),r.direction.sub(n),r.direction.transformDirection(v),r.coneCos=Math.cos(l.angle),r.penumbraCos=Math.cos(l.angle*(1-l.penumbra)),r.decay=l.decay,l.castShadow){const t=l.shadow,n=e.get(l);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,i.spotShadow[p]=n,i.spotShadowMap[p]=B,i.spotShadowMatrix[p]=l.shadow.matrix,b++}i.spot[p]=r,p++}else if(l.isRectAreaLight){const e=t.get(l);e.color.copy(E).multiplyScalar(I),e.position.setFromMatrixPosition(l.matrixWorld),e.position.applyMatrix4(v),o.identity(),r.copy(l.matrixWorld),r.premultiply(v),o.extractRotation(r),e.halfWidth.set(.5*l.width,0,0),e.halfHeight.set(0,.5*l.height,0),e.halfWidth.applyMatrix4(o),e.halfHeight.applyMatrix4(o),i.rectArea[g]=e,g++}else if(l.isPointLight){const n=t.get(l);if(n.position.setFromMatrixPosition(l.matrixWorld),n.position.applyMatrix4(v),n.color.copy(l.color).multiplyScalar(l.intensity),n.distance=l.distance,n.decay=l.decay,l.castShadow){const t=l.shadow,n=e.get(l);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,i.pointShadow[u]=n,i.pointShadowMap[u]=B,i.pointShadowMatrix[u]=l.shadow.matrix,y++}i.point[u]=n,u++}else if(l.isHemisphereLight){const e=t.get(l);e.direction.setFromMatrixPosition(l.matrixWorld),e.direction.transformDirection(v),e.direction.normalize(),e.skyColor.copy(l.color).multiplyScalar(I),e.groundColor.copy(l.groundColor).multiplyScalar(I),i.hemi[f]=e,f++}}g>0&&(i.rectAreaLTC1=ji.LTC_1,i.rectAreaLTC2=ji.LTC_2),i.ambient[0]=A,i.ambient[1]=c,i.ambient[2]=h;const E=i.hash;E.directionalLength===d&&E.pointLength===u&&E.spotLength===p&&E.rectAreaLength===g&&E.hemiLength===f&&E.numDirectionalShadows===m&&E.numPointShadows===y&&E.numSpotShadows===b||(i.directional.length=d,i.spot.length=p,i.rectArea.length=g,i.point.length=u,i.hemi.length=f,i.directionalShadow.length=m,i.directionalShadowMap.length=m,i.pointShadow.length=y,i.pointShadowMap.length=y,i.spotShadow.length=b,i.spotShadowMap.length=b,i.directionalShadowMatrix.length=m,i.pointShadowMatrix.length=y,i.spotShadowMatrix.length=b,E.directionalLength=d,E.pointLength=u,E.spotLength=p,E.rectAreaLength=g,E.hemiLength=f,E.numDirectionalShadows=m,E.numPointShadows=y,E.numSpotShadows=b,i.version=Fr++)},state:i}}function Pr(){const t=new Nr,e=[],i=[];return{init:function(){e.length=0,i.length=0},state:{lightsArray:e,shadowsArray:i,lights:t},setupLights:function(n){t.setup(e,i,n)},pushLight:function(t){e.push(t)},pushShadow:function(t){i.push(t)}}}function Ur(){let t=new WeakMap;return{get:function(e,i){let n;return!1===t.has(e)?(n=new Pr,t.set(e,new WeakMap),t.get(e).set(i,n)):!1===t.get(e).has(i)?(n=new Pr,t.get(e).set(i,n)):n=t.get(e).get(i),n},dispose:function(){t=new WeakMap}}}function Or(t){Ue.call(this),this.type="MeshDepthMaterial",this.depthPacking=3200,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(t)}function Gr(t){Ue.call(this),this.type="MeshDistanceMaterial",
this.referencePosition=new gt,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(t)}Or.prototype=Object.create(Ue.prototype),Or.prototype.constructor=Or,Or.prototype.isMeshDepthMaterial=!0,Or.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},Gr.prototype=Object.create(Ue.prototype),Gr.prototype.constructor=Gr,Gr.prototype.isMeshDistanceMaterial=!0,Gr.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this};function Hr(t,e,i){let n=new Vi;const r=new ot,o=new ot,a=new ht,s=[],l=[],A={},c={0:1,1:0,2:2},h=new Mi({defines:{SAMPLE_RATE:2/8,HALF_SAMPLE_RATE:1/8},uniforms:{shadow_pass:{value:null},resolution:{value:new ot},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),d=h.clone();d.defines.HORIZONAL_PASS=1;const u=new li;u.setAttribute("position",new Ve(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const p=new xi(u,h),g=this;function f(i,n){const r=e.update(p);h.uniforms.shadow_pass.value=i.map.texture,h.uniforms.resolution.value=i.mapSize,h.uniforms.radius.value=i.radius,t.setRenderTarget(i.mapPass),t.clear(),t.renderBufferDirect(n,null,r,h,p,null),d.uniforms.shadow_pass.value=i.mapPass.texture,d.uniforms.resolution.value=i.mapSize,d.uniforms.radius.value=i.radius,t.setRenderTarget(i.map),t.clear(),t.renderBufferDirect(n,null,r,d,p,null)}function m(t,e,i){const n=t|e<<1|i<<2;let r=s[n];return void 0===r&&(r=new Or({depthPacking:3201,morphTargets:t,skinning:e}),s[n]=r),r}function y(t,e,i){const n=t|e<<1|i<<2;let r=l[n];return void 0===r&&(r=new Gr({morphTargets:t,skinning:e}),l[n]=r),r}function b(e,i,n,r,o,a,s){let l=null,h=m,d=e.customDepthMaterial;if(!0===r.isPointLight&&(h=y,d=e.customDistanceMaterial),void 0===d){let t=!1;!0===n.morphTargets&&(t=i.morphAttributes&&i.morphAttributes.position&&i.morphAttributes.position.length>0);let r=!1;!0===e.isSkinnedMesh&&(!0===n.skinning?r=!0:console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",e));l=h(t,r,!0===e.isInstancedMesh)}else l=d;if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){const t=l.uuid,e=n.uuid;let i=A[t];void 0===i&&(i={},A[t]=i);let r=i[e];void 0===r&&(r=l.clone(),i[e]=r),l=r}return l.visible=n.visible,l.wireframe=n.wireframe,l.side=3===s?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:c[n.side],l.clipShadows=n.clipShadows,l.clippingPlanes=n.clippingPlanes,l.clipIntersection=n.clipIntersection,l.wireframeLinewidth=n.wireframeLinewidth,l.linewidth=n.linewidth,!0===r.isPointLight&&!0===l.isMeshDistanceMaterial&&(l.referencePosition.setFromMatrixPosition(r.matrixWorld),l.nearDistance=o,l.farDistance=a),l}function v(i,r,o,a,s){if(!1===i.visible)return;if(i.layers.test(r.layers)&&(i.isMesh||i.isLine||i.isPoints)&&(i.castShadow||i.receiveShadow&&3===s)&&(!i.frustumCulled||n.intersectsObject(i))){i.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,i.matrixWorld);const n=e.update(i),r=i.material;if(Array.isArray(r)){const e=n.groups;for(let l=0,A=e.length;l<A;l++){const A=e[l],c=r[A.materialIndex];if(c&&c.visible){const e=b(i,n,c,a,o.near,o.far,s);t.renderBufferDirect(o,null,n,e,i,A)}}}else if(r.visible){const e=b(i,n,r,a,o.near,o.far,s);t.renderBufferDirect(o,null,n,e,i,null)}}const l=i.children;for(let t=0,e=l.length;t<e;t++)v(l[t],r,o,a,s)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(e,s,l){if(!1===g.enabled)return;if(!1===g.autoUpdate&&!1===g.needsUpdate)return;if(0===e.length)return;const A=t.getRenderTarget(),c=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),d=t.state;d.setBlending(0),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(let A=0,c=e.length;A<c;A++){const c=e[A],h=c.shadow;if(void 0===h){console.warn("THREE.WebGLShadowMap:",c,"has no shadow.");continue}if(!1===h.autoUpdate&&!1===h.needsUpdate)continue;r.copy(h.mapSize);const u=h.getFrameExtents();if(r.multiply(u),o.copy(h.mapSize),(r.x>i||r.y>i)&&(r.x>i&&(o.x=Math.floor(i/u.x),r.x=o.x*u.x,h.mapSize.x=o.x),r.y>i&&(o.y=Math.floor(i/u.y),r.y=o.y*u.y,h.mapSize.y=o.y)),null===h.map&&!h.isPointLightShadow&&3===this.type){const t={minFilter:Q,magFilter:Q,format:N};h.map=new dt(r.x,r.y,t),h.map.texture.name=c.name+".shadowMap",h.mapPass=new dt(r.x,r.y,t),h.camera.updateProjectionMatrix()}if(null===h.map){const t={minFilter:B,magFilter:B,format:N};h.map=new dt(r.x,r.y,t),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}t.setRenderTarget(h.map),t.clear();const p=h.getViewportCount();for(let t=0;t<p;t++){const e=h.getViewport(t);a.set(o.x*e.x,o.y*e.y,o.x*e.z,o.y*e.w),d.viewport(a),h.updateMatrices(c,t),n=h.getFrustum(),v(s,l,h.camera,c,this.type)}h.isPointLightShadow||3!==this.type||f(h,l),h.needsUpdate=!1}g.needsUpdate=!1,t.setRenderTarget(A,c,h)}}function Vr(t,e,i){const m=i.isWebGL2;const y=new function(){let e=!1;const i=new ht;let n=null;const r=new ht(0,0,0,0);return{setMask:function(i){n===i||e||(t.colorMask(i,i,i,i),n=i)},setLocked:function(t){e=t},setClear:function(e,n,o,a,s){!0===s&&(e*=a,n*=a,o*=a),i.set(e,n,o,a),!1===r.equals(i)&&(t.clearColor(e,n,o,a),r.copy(i))},reset:function(){e=!1,n=null,r.set(-1,0,0,0)}}},b=new function(){let e=!1,i=null,n=null,r=null;return{setTest:function(t){t?Z(2929):j(2929)},setMask:function(n){i===n||e||(t.depthMask(n),i=n)},setFunc:function(e){if(n!==e){if(e)switch(e){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:default:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517)}else t.depthFunc(515);n=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,i=null,n=null,r=null}}},v=new function(){let e=!1,i=null,n=null,r=null,o=null,a=null,s=null,l=null,A=null;return{setTest:function(t){e||(t?Z(2960):j(2960))},setMask:function(n){i===n||e||(t.stencilMask(n),i=n)},setFunc:function(e,i,a){n===e&&r===i&&o===a||(t.stencilFunc(e,i,a),n=e,r=i,o=a)},setOp:function(e,i,n){a===e&&s===i&&l===n||(t.stencilOp(e,i,n),a=e,s=i,l=n)},setLocked:function(t){e=t},setClear:function(e){A!==e&&(t.clearStencil(e),A=e)},reset:function(){e=!1,i=null,n=null,r=null,o=null,a=null,s=null,l=null,A=null}}}
;let E={},I=null,C=null,B=null,w=null,x=null,Q=null,S=null,k=null,D=null,_=!1,R=null,M=null,T=null,F=null,L=null;const N=t.getParameter(35661);let P=!1,U=0;const O=t.getParameter(7938);-1!==O.indexOf("WebGL")?(U=parseFloat(/^WebGL\ ([0-9])/.exec(O)[1]),P=U>=1):-1!==O.indexOf("OpenGL ES")&&(U=parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(O)[1]),P=U>=2);let G=null,H={};const V=new ht,Y=new ht;function z(e,i,n){const r=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;e<n;e++)t.texImage2D(i+e,0,6408,1,1,0,6408,5121,r);return o}const W={};function Z(e){!0!==E[e]&&(t.enable(e),E[e]=!0)}function j(e){!1!==E[e]&&(t.disable(e),E[e]=!1)}W[3553]=z(3553,3553,1),W[34067]=z(34067,34069,6),y.setClear(0,0,0,1),b.setClear(1),v.setClear(0),Z(2929),b.setFunc(3),X(!1),$(1),Z(2884),K(0);const q={[n]:32774,[r]:32778,[o]:32779};if(m)q[103]=32775,q[104]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(q[103]=t.MIN_EXT,q[104]=t.MAX_EXT)}const J={[a]:0,[s]:1,[l]:768,[c]:770,[f]:776,[p]:774,[d]:772,[A]:769,[h]:771,[g]:775,[u]:773};function K(e,i,r,o,a,s,l,A){if(0!==e){if(C||(Z(3042),C=!0),5===e)a=a||i,s=s||r,l=l||o,i===w&&a===S||(t.blendEquationSeparate(q[i],q[a]),w=i,S=a),r===x&&o===Q&&s===k&&l===D||(t.blendFuncSeparate(J[r],J[o],J[s],J[l]),x=r,Q=o,k=s,D=l),B=e,_=null;else if(e!==B||A!==_){if(w===n&&S===n||(t.blendEquation(32774),w=n,S=n),A)switch(e){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,0,769,771);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFunc(0,769);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}x=null,Q=null,k=null,D=null,B=e,_=A}}else C&&(j(3042),C=!1)}function X(e){R!==e&&(e?t.frontFace(2304):t.frontFace(2305),R=e)}function $(e){0!==e?(Z(2884),e!==M&&(1===e?t.cullFace(1029):2===e?t.cullFace(1028):t.cullFace(1032))):j(2884),M=e}function tt(e,i,n){e?(Z(32823),F===i&&L===n||(t.polygonOffset(i,n),F=i,L=n)):j(32823)}function et(e){void 0===e&&(e=33984+N-1),G!==e&&(t.activeTexture(e),G=e)}return{buffers:{color:y,depth:b,stencil:v},enable:Z,disable:j,useProgram:function(e){return I!==e&&(t.useProgram(e),I=e,!0)},setBlending:K,setMaterial:function(t,e){2===t.side?j(2884):Z(2884);let i=1===t.side;e&&(i=!i),X(i),1===t.blending&&!1===t.transparent?K(0):K(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),b.setFunc(t.depthFunc),b.setTest(t.depthTest),b.setMask(t.depthWrite),y.setMask(t.colorWrite);const n=t.stencilWrite;v.setTest(n),n&&(v.setMask(t.stencilWriteMask),v.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),v.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),tt(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)},setFlipSided:X,setCullFace:$,setLineWidth:function(e){e!==T&&(P&&t.lineWidth(e),T=e)},setPolygonOffset:tt,setScissorTest:function(t){t?Z(3089):j(3089)},activeTexture:et,bindTexture:function(e,i){null===G&&et();let n=H[G];void 0===n&&(n={type:void 0,texture:void 0},H[G]=n),n.type===e&&n.texture===i||(t.bindTexture(e,i||W[e]),n.type=e,n.texture=i)},unbindTexture:function(){const e=H[G];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===V.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),V.copy(e))},viewport:function(e){!1===Y.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),Y.copy(e))},reset:function(){E={},G=null,H={},I=null,B=null,R=null,M=null,y.reset(),b.reset(),v.reset()}}}function Yr(t,e,i,n,r,o,a){const s=r.isWebGL2,l=r.maxTextures,A=r.maxCubemapSize,c=r.maxTextureSize,h=r.maxSamples,d=new WeakMap;let u,p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(t){}function g(t,e){return p?new OffscreenCanvas(t,e):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function f(t,e,i,n){let r=1;if((t.width>n||t.height>n)&&(r=n/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const n=e?rt.floorPowerOfTwo:Math.floor,o=n(r*t.width),a=n(r*t.height);void 0===u&&(u=g(o,a));const s=i?g(o,a):u;s.width=o,s.height=a;return s.getContext("2d").drawImage(t,0,0,o,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+a+")."),s}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function m(t){return rt.isPowerOfTwo(t.width)&&rt.isPowerOfTwo(t.height)}function y(t,e){return t.generateMipmaps&&e&&t.minFilter!==B&&t.minFilter!==Q}function b(e,i,r,o){t.generateMipmap(e);n.get(i).__maxMipLevel=Math.log(Math.max(r,o))*Math.LOG2E}function v(i,n,r){if(!1===s)return n;if(null!==i){if(void 0!==t[i])return t[i];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+i+"'")}let o=n;return 6403===n&&(5126===r&&(o=33326),5131===r&&(o=33325),5121===r&&(o=33321)),6407===n&&(5126===r&&(o=34837),5131===r&&(o=34843),5121===r&&(o=32849)),6408===n&&(5126===r&&(o=34836),5131===r&&(o=34842),5121===r&&(o=32856)),33325!==o&&33326!==o&&34842!==o&&34836!==o||e.get("EXT_color_buffer_float"),o}function D(t){return t===B||t===w||t===x?9728:9729}function O(e){const i=e.target;i.removeEventListener("dispose",O),function(e){const i=n.get(e);if(void 0===i.__webglInit)return;t.deleteTexture(i.__webglTexture),n.remove(e)}(i),i.isVideoTexture&&d.delete(i),a.memory.textures--}function G(e){const i=e.target;i.removeEventListener("dispose",G),function(e){const i=n.get(e),r=n.get(e.texture);if(!e)return;void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(i.__webglFramebuffer[e]),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer[e]);else t.deleteFramebuffer(i.__webglFramebuffer),i.__webglDepthbuffer&&t.deleteRenderbuffer(i.__webglDepthbuffer),i.__webglMultisampledFramebuffer&&t.deleteFramebuffer(i.__webglMultisampledFramebuffer),i.__webglColorRenderbuffer&&t.deleteRenderbuffer(i.__webglColorRenderbuffer),i.__webglDepthRenderbuffer&&t.deleteRenderbuffer(i.__webglDepthRenderbuffer);n.remove(e.texture),n.remove(e)}(i),a.memory.textures--}let H=0;function V(t,e){const r=n.get(t);if(t.isVideoTexture&&function(t){const e=a.render.frame;d.get(t)!==e&&(d.set(t,e),t.update())}(t),t.version>0&&r.__version!==t.version){const i=t.image;if(void 0===i)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==i.complete)return void q(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}i.activeTexture(33984+e),i.bindTexture(3553,r.__webglTexture)}function Y(e,r){const a=n.get(e);e.version>0&&a.__version!==e.version?function(e,n,r){if(6!==n.image.length)return;j(e,n),i.activeTexture(33984+r),i.bindTexture(34067,e.__webglTexture),t.pixelStorei(37440,n.flipY);const a=n&&(n.isCompressedTexture||n.image[0].isCompressedTexture),l=n.image[0]&&n.image[0].isDataTexture,c=[];for(let t=0;t<6;t++)c[t]=a||l?l?n.image[t].image:n.image[t]:f(n.image[t],!1,!0,A);const h=c[0],d=m(h)||s,u=o.convert(n.format),p=o.convert(n.type),g=v(n.internalFormat,u,p);let E;if(Z(34067,n,d),a){for(let t=0;t<6;t++){E=c[t].mipmaps;for(let e=0;e<E.length;e++){const r=E[e]
;n.format!==N&&n.format!==L?null!==u?i.compressedTexImage2D(34069+t,e,g,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):i.texImage2D(34069+t,e,g,r.width,r.height,0,u,p,r.data)}}e.__maxMipLevel=E.length-1}else{E=n.mipmaps;for(let t=0;t<6;t++)if(l){i.texImage2D(34069+t,0,g,c[t].width,c[t].height,0,u,p,c[t].data);for(let e=0;e<E.length;e++){const n=E[e].image[t].image;i.texImage2D(34069+t,e+1,g,n.width,n.height,0,u,p,n.data)}}else{i.texImage2D(34069+t,0,g,u,p,c[t]);for(let e=0;e<E.length;e++){const n=E[e];i.texImage2D(34069+t,e+1,g,u,p,n.image[t])}}e.__maxMipLevel=E.length}y(n,d)&&b(34067,n,h.width,h.height);e.__version=n.version,n.onUpdate&&n.onUpdate(n)}(a,e,r):(i.activeTexture(33984+r),i.bindTexture(34067,a.__webglTexture))}const z={[E]:10497,[I]:33071,[C]:33648},W={[B]:9728,[w]:9984,[x]:9986,[Q]:9729,[S]:9985,[k]:9987};function Z(i,o,a){a?(t.texParameteri(i,10242,z[o.wrapS]),t.texParameteri(i,10243,z[o.wrapT]),32879!==i&&35866!==i||t.texParameteri(i,32882,z[o.wrapR]),t.texParameteri(i,10240,W[o.magFilter]),t.texParameteri(i,10241,W[o.minFilter])):(t.texParameteri(i,10242,33071),t.texParameteri(i,10243,33071),32879!==i&&35866!==i||t.texParameteri(i,32882,33071),o.wrapS===I&&o.wrapT===I||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(i,10240,D(o.magFilter)),t.texParameteri(i,10241,D(o.minFilter)),o.minFilter!==B&&o.minFilter!==Q&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."));const l=e.get("EXT_texture_filter_anisotropic");if(l){if(o.type===M&&null===e.get("OES_texture_float_linear"))return;if(o.type===T&&null===(s||e.get("OES_texture_half_float_linear")))return;(o.anisotropy>1||n.get(o).__currentAnisotropy)&&(t.texParameterf(i,l.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),n.get(o).__currentAnisotropy=o.anisotropy)}}function j(e,i){void 0===e.__webglInit&&(e.__webglInit=!0,i.addEventListener("dispose",O),e.__webglTexture=t.createTexture(),a.memory.textures++)}function q(e,n,r){let a=3553;n.isDataTexture2DArray&&(a=35866),n.isDataTexture3D&&(a=32879),j(e,n),i.activeTexture(33984+r),i.bindTexture(a,e.__webglTexture),t.pixelStorei(37440,n.flipY),t.pixelStorei(37441,n.premultiplyAlpha),t.pixelStorei(3317,n.unpackAlignment);const l=function(t){return!s&&(t.wrapS!==I||t.wrapT!==I||t.minFilter!==B&&t.minFilter!==Q)}(n)&&!1===m(n.image),A=f(n.image,l,!1,c),h=m(A)||s,d=o.convert(n.format);let u,p=o.convert(n.type),g=v(n.internalFormat,d,p);Z(a,n,h);const E=n.mipmaps;if(n.isDepthTexture)g=6402,s?g=n.type===M?36012:n.type===R?33190:n.type===F?35056:33189:n.type===M&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),n.format===P&&6402===g&&n.type!==_&&n.type!==R&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),n.type=_,p=o.convert(n.type)),n.format===U&&6402===g&&(g=34041,n.type!==F&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),n.type=F,p=o.convert(n.type))),i.texImage2D(3553,0,g,A.width,A.height,0,d,p,null);else if(n.isDataTexture)if(E.length>0&&h){for(let t=0,e=E.length;t<e;t++)u=E[t],i.texImage2D(3553,t,g,u.width,u.height,0,d,p,u.data);n.generateMipmaps=!1,e.__maxMipLevel=E.length-1}else i.texImage2D(3553,0,g,A.width,A.height,0,d,p,A.data),e.__maxMipLevel=0;else if(n.isCompressedTexture){for(let t=0,e=E.length;t<e;t++)u=E[t],n.format!==N&&n.format!==L?null!==d?i.compressedTexImage2D(3553,t,g,u.width,u.height,0,u.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):i.texImage2D(3553,t,g,u.width,u.height,0,d,p,u.data);e.__maxMipLevel=E.length-1}else if(n.isDataTexture2DArray)i.texImage3D(35866,0,g,A.width,A.height,A.depth,0,d,p,A.data),e.__maxMipLevel=0;else if(n.isDataTexture3D)i.texImage3D(32879,0,g,A.width,A.height,A.depth,0,d,p,A.data),e.__maxMipLevel=0;else if(E.length>0&&h){for(let t=0,e=E.length;t<e;t++)u=E[t],i.texImage2D(3553,t,g,d,p,u);n.generateMipmaps=!1,e.__maxMipLevel=E.length-1}else i.texImage2D(3553,0,g,d,p,A),e.__maxMipLevel=0;y(n,h)&&b(a,n,A.width,A.height),e.__version=n.version,n.onUpdate&&n.onUpdate(n)}function J(e,r,a,s){const l=o.convert(r.texture.format),A=o.convert(r.texture.type),c=v(r.texture.internalFormat,l,A);i.texImage2D(s,0,c,r.width,r.height,0,l,A,null),t.bindFramebuffer(36160,e),t.framebufferTexture2D(36160,a,s,n.get(r.texture).__webglTexture,0),t.bindFramebuffer(36160,null)}function K(e,i,n){if(t.bindRenderbuffer(36161,e),i.depthBuffer&&!i.stencilBuffer){let r=33189;if(n){const e=i.depthTexture;e&&e.isDepthTexture&&(e.type===M?r=36012:e.type===R&&(r=33190));const n=$(i);t.renderbufferStorageMultisample(36161,n,r,i.width,i.height)}else t.renderbufferStorage(36161,r,i.width,i.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(i.depthBuffer&&i.stencilBuffer){if(n){const e=$(i);t.renderbufferStorageMultisample(36161,e,35056,i.width,i.height)}else t.renderbufferStorage(36161,34041,i.width,i.height);t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=o.convert(i.texture.format),r=o.convert(i.texture.type),a=v(i.texture.internalFormat,e,r);if(n){const e=$(i);t.renderbufferStorageMultisample(36161,e,a,i.width,i.height)}else t.renderbufferStorage(36161,a,i.width,i.height)}t.bindRenderbuffer(36161,null)}function X(e){const i=n.get(e),r=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture){if(r)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,i){if(i&&i.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(36160,e),!i.depthTexture||!i.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");n.get(i.depthTexture).__webglTexture&&i.depthTexture.image.width===i.width&&i.depthTexture.image.height===i.height||(i.depthTexture.image.width=i.width,i.depthTexture.image.height=i.height,i.depthTexture.needsUpdate=!0),V(i.depthTexture,0);const r=n.get(i.depthTexture).__webglTexture;if(i.depthTexture.format===P)t.framebufferTexture2D(36160,36096,3553,r,0);else{if(i.depthTexture.format!==U)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(36160,33306,3553,r,0)}}(i.__webglFramebuffer,e)}else if(r){i.__webglDepthbuffer=[];for(let n=0;n<6;n++)t.bindFramebuffer(36160,i.__webglFramebuffer[n]),i.__webglDepthbuffer[n]=t.createRenderbuffer(),K(i.__webglDepthbuffer[n],e,!1)}else t.bindFramebuffer(36160,i.__webglFramebuffer),i.__webglDepthbuffer=t.createRenderbuffer(),K(i.__webglDepthbuffer,e,!1);t.bindFramebuffer(36160,null)}function $(t){return s&&t.isWebGLMultisampleRenderTarget?Math.min(h,t.samples):0}let tt=!1,et=!1;this.allocateTextureUnit=function(){const t=H;return t>=l&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+l),H+=1,t},this.resetTextureUnits=function(){H=0},this.setTexture2D=V,this.setTexture2DArray=function(t,e){const r=n.get(t);t.version>0&&r.__version!==t.version?q(r,t,e):(i.activeTexture(33984+e),i.bindTexture(35866,r.__webglTexture))},this.setTexture3D=function(t,e){const r=n.get(t);t.version>0&&r.__version!==t.version?q(r,t,e):(i.activeTexture(33984+e),i.bindTexture(32879,r.__webglTexture))},this.setTextureCube=Y,this.setupRenderTarget=function(e){const r=n.get(e),l=n.get(e.texture);e.addEventListener("dispose",G),l.__webglTexture=t.createTexture(),a.memory.textures++;const A=!0===e.isWebGLCubeRenderTarget,c=!0===e.isWebGLMultisampleRenderTarget,h=m(e)||s;if(!s||e.texture.format!==L||e.texture.type!==M&&e.texture.type!==T||(e.texture.format=N,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")),A){r.__webglFramebuffer=[];for(let e=0;e<6;e++)r.__webglFramebuffer[e]=t.createFramebuffer()}else if(r.__webglFramebuffer=t.createFramebuffer(),c)if(s){
r.__webglMultisampledFramebuffer=t.createFramebuffer(),r.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,r.__webglColorRenderbuffer);const i=o.convert(e.texture.format),n=o.convert(e.texture.type),a=v(e.texture.internalFormat,i,n),s=$(e);t.renderbufferStorageMultisample(36161,s,a,e.width,e.height),t.bindFramebuffer(36160,r.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,r.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(r.__webglDepthRenderbuffer=t.createRenderbuffer(),K(r.__webglDepthRenderbuffer,e,!0)),t.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(A){i.bindTexture(34067,l.__webglTexture),Z(34067,e.texture,h);for(let t=0;t<6;t++)J(r.__webglFramebuffer[t],e,36064,34069+t);y(e.texture,h)&&b(34067,e.texture,e.width,e.height),i.bindTexture(34067,null)}else i.bindTexture(3553,l.__webglTexture),Z(3553,e.texture,h),J(r.__webglFramebuffer,e,36064,3553),y(e.texture,h)&&b(3553,e.texture,e.width,e.height),i.bindTexture(3553,null);e.depthBuffer&&X(e)},this.updateRenderTargetMipmap=function(t){const e=t.texture;if(y(e,m(t)||s)){const r=t.isWebGLCubeRenderTarget?34067:3553,o=n.get(e).__webglTexture;i.bindTexture(r,o),b(r,e,t.width,t.height),i.bindTexture(r,null)}},this.updateMultisampleRenderTarget=function(e){if(e.isWebGLMultisampleRenderTarget)if(s){const i=n.get(e);t.bindFramebuffer(36008,i.__webglMultisampledFramebuffer),t.bindFramebuffer(36009,i.__webglFramebuffer);const r=e.width,o=e.height;let a=16384;e.depthBuffer&&(a|=256),e.stencilBuffer&&(a|=1024),t.blitFramebuffer(0,0,r,o,0,0,r,o,a,9728),t.bindFramebuffer(36160,i.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")},this.safeSetTexture2D=function(t,e){t&&t.isWebGLRenderTarget&&(!1===tt&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),tt=!0),t=t.texture),V(t,e)},this.safeSetTextureCube=function(t,e){t&&t.isWebGLCubeRenderTarget&&(!1===et&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),et=!0),t=t.texture),Y(t,e)}}function zr(t,e,i){const n=i.isWebGL2;return{convert:function(t){let i;if(t===D)return 5121;if(1017===t)return 32819;if(1018===t)return 32820;if(1019===t)return 33635;if(1010===t)return 5120;if(1011===t)return 5122;if(t===_)return 5123;if(1013===t)return 5124;if(t===R)return 5125;if(t===M)return 5126;if(t===T)return n?5131:(i=e.get("OES_texture_half_float"),null!==i?i.HALF_FLOAT_OES:null);if(1021===t)return 6406;if(t===L)return 6407;if(t===N)return 6408;if(1024===t)return 6409;if(1025===t)return 6410;if(t===P)return 6402;if(t===U)return 34041;if(1028===t)return 6403;if(1029===t)return 36244;if(1030===t)return 33319;if(1031===t)return 33320;if(1032===t)return 36248;if(1033===t)return 36249;if(33776===t||33777===t||33778===t||33779===t){if(i=e.get("WEBGL_compressed_texture_s3tc"),null===i)return null;if(33776===t)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(33777===t)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(33778===t)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(33779===t)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(35840===t||35841===t||35842===t||35843===t){if(i=e.get("WEBGL_compressed_texture_pvrtc"),null===i)return null;if(35840===t)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(35841===t)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===t)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===t)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===t)return i=e.get("WEBGL_compressed_texture_etc1"),null!==i?i.COMPRESSED_RGB_ETC1_WEBGL:null;if((37492===t||37496===t)&&(i=e.get("WEBGL_compressed_texture_etc"),null!==i)){if(37492===t)return i.COMPRESSED_RGB8_ETC2;if(37496===t)return i.COMPRESSED_RGBA8_ETC2_EAC}return 37808===t||37809===t||37810===t||37811===t||37812===t||37813===t||37814===t||37815===t||37816===t||37817===t||37818===t||37819===t||37820===t||37821===t||37840===t||37841===t||37842===t||37843===t||37844===t||37845===t||37846===t||37847===t||37848===t||37849===t||37850===t||37851===t||37852===t||37853===t?(i=e.get("WEBGL_compressed_texture_astc"),null!==i?t:null):36492===t?(i=e.get("EXT_texture_compression_bptc"),null!==i?t:null):t===F?n?34042:(i=e.get("WEBGL_depth_texture"),null!==i?i.UNSIGNED_INT_24_8_WEBGL:null):void 0}}}function Wr(t){Fi.call(this),this.cameras=t||[]}function Zr(){pe.call(this),this.type="Group"}function jr(){this._targetRay=null,this._grip=null,this._hand=null}function qr(t,e){const i=this;let n=null,r=1,o=null,a="local-floor",s=null;const l=[],A=new Map,c=new Fi;c.layers.enable(1),c.viewport=new ht;const h=new Fi;h.layers.enable(2),h.viewport=new ht;const d=[c,h],u=new Wr;u.layers.enable(1),u.layers.enable(2);let p=null,g=null;function f(t){const e=A.get(t.inputSource);e&&e.dispatchEvent({type:t.type,data:t.inputSource})}function m(){A.forEach((function(t,e){t.disconnect(e)})),A.clear(),t.setFramebuffer(null),t.setRenderTarget(t.getRenderTarget()),B.stop(),i.isPresenting=!1,i.dispatchEvent({type:"sessionend"})}function y(t){o=t,B.setContext(n),B.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}function b(t){const e=n.inputSources;for(let t=0;t<l.length;t++)A.set(e[t],l[t]);for(let e=0;e<t.removed.length;e++){const i=t.removed[e],n=A.get(i);n&&(n.dispatchEvent({type:"disconnected",data:i}),A.delete(i))}for(let e=0;e<t.added.length;e++){const i=t.added[e],n=A.get(i);n&&n.dispatchEvent({type:"connected",data:i})}}this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=l[t];return void 0===e&&(e=new jr,l[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=l[t];return void 0===e&&(e=new jr,l[t]=e),e.getGripSpace()},this.getHand=function(t){let e=l[t];return void 0===e&&(e=new jr,l[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){r=t,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return o},this.getSession=function(){return n},this.setSession=function(t){if(n=t,null!==n){n.addEventListener("select",f),n.addEventListener("selectstart",f),n.addEventListener("selectend",f),n.addEventListener("squeeze",f),n.addEventListener("squeezestart",f),n.addEventListener("squeezeend",f),n.addEventListener("end",m);const t=e.getContextAttributes();!0!==t.xrCompatible&&e.makeXRCompatible();const i={antialias:t.antialias,alpha:t.alpha,depth:t.depth,stencil:t.stencil,framebufferScaleFactor:r},o=new XRWebGLLayer(n,e,i);n.updateRenderState({baseLayer:o}),n.requestReferenceSpace(a).then(y),n.addEventListener("inputsourceschange",b)}};const v=new gt,E=new gt;function I(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.getInverse(t.matrixWorld)}this.getCamera=function(t){u.near=h.near=c.near=t.near,u.far=h.far=c.far=t.far,p===u.near&&g===u.far||(n.updateRenderState({depthNear:u.near,depthFar:u.far}),p=u.near,g=u.far);const e=t.parent,i=u.cameras;I(u,e);for(let t=0;t<i.length;t++)I(i[t],e);t.matrixWorld.copy(u.matrixWorld);const r=t.children;for(let t=0,e=r.length;t<e;t++)r[t].updateMatrixWorld(!0);return 2===i.length?function(t,e,i){v.setFromMatrixPosition(e.matrixWorld),E.setFromMatrixPosition(i.matrixWorld);const n=v.distanceTo(E),r=e.projectionMatrix.elements,o=i.projectionMatrix.elements,a=r[14]/(r[10]-1),s=r[14]/(r[10]+1),l=(r[9]+1)/r[5],A=(r[9]-1)/r[5],c=(r[8]-1)/r[0],h=(o[8]+1)/o[0],d=a*c,u=a*h,p=n/(-c+h),g=p*-c;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(g),t.translateZ(p),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.getInverse(t.matrixWorld);const f=a+p,m=s+p,y=d-g,b=u+(n-g),I=l*s/m*f,C=A*s/m*f;t.projectionMatrix.makePerspective(y,b,I,C,f,m)}(u,c,h):u.projectionMatrix.copy(c.projectionMatrix),u};let C=null;const B=new Yi
;B.setAnimationLoop((function(e,i){if(s=i.getViewerPose(o),null!==s){const e=s.views,i=n.renderState.baseLayer;t.setFramebuffer(i.framebuffer);let r=!1;e.length!==u.cameras.length&&(u.cameras.length=0,r=!0);for(let t=0;t<e.length;t++){const n=e[t],o=i.getViewport(n),a=d[t];a.matrix.fromArray(n.transform.matrix),a.projectionMatrix.fromArray(n.projectionMatrix),a.viewport.set(o.x,o.y,o.width,o.height),0===t&&u.matrix.copy(a.matrix),!0===r&&u.cameras.push(a)}}const r=n.inputSources;for(let t=0;t<l.length;t++){const e=l[t],n=r[t];e.update(n,i,o)}C&&C(e,i)})),this.setAnimationLoop=function(t){C=t},this.dispose=function(){}}function Jr(t){function e(e,i){e.opacity.value=i.opacity,i.color&&e.diffuse.value.copy(i.color),i.emissive&&e.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(e.map.value=i.map),i.alphaMap&&(e.alphaMap.value=i.alphaMap),i.specularMap&&(e.specularMap.value=i.specularMap);const n=t.get(i).envMap;if(n){e.envMap.value=n,e.flipEnvMap.value=n.isCubeTexture&&n._needsFlipEnvMap?-1:1,e.reflectivity.value=i.reflectivity,e.refractionRatio.value=i.refractionRatio;const r=t.get(n).__maxMipLevel;void 0!==r&&(e.maxMipLevel.value=r)}let r,o;i.lightMap&&(e.lightMap.value=i.lightMap,e.lightMapIntensity.value=i.lightMapIntensity),i.aoMap&&(e.aoMap.value=i.aoMap,e.aoMapIntensity.value=i.aoMapIntensity),i.map?r=i.map:i.specularMap?r=i.specularMap:i.displacementMap?r=i.displacementMap:i.normalMap?r=i.normalMap:i.bumpMap?r=i.bumpMap:i.roughnessMap?r=i.roughnessMap:i.metalnessMap?r=i.metalnessMap:i.alphaMap?r=i.alphaMap:i.emissiveMap?r=i.emissiveMap:i.clearcoatMap?r=i.clearcoatMap:i.clearcoatNormalMap?r=i.clearcoatNormalMap:i.clearcoatRoughnessMap&&(r=i.clearcoatRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),e.uvTransform.value.copy(r.matrix)),i.aoMap?o=i.aoMap:i.lightMap&&(o=i.lightMap),void 0!==o&&(o.isWebGLRenderTarget&&(o=o.texture),!0===o.matrixAutoUpdate&&o.updateMatrix(),e.uv2Transform.value.copy(o.matrix))}function i(e,i){e.roughness.value=i.roughness,e.metalness.value=i.metalness,i.roughnessMap&&(e.roughnessMap.value=i.roughnessMap),i.metalnessMap&&(e.metalnessMap.value=i.metalnessMap),i.emissiveMap&&(e.emissiveMap.value=i.emissiveMap),i.bumpMap&&(e.bumpMap.value=i.bumpMap,e.bumpScale.value=i.bumpScale,1===i.side&&(e.bumpScale.value*=-1)),i.normalMap&&(e.normalMap.value=i.normalMap,e.normalScale.value.copy(i.normalScale),1===i.side&&e.normalScale.value.negate()),i.displacementMap&&(e.displacementMap.value=i.displacementMap,e.displacementScale.value=i.displacementScale,e.displacementBias.value=i.displacementBias);t.get(i).envMap&&(e.envMapIntensity.value=i.envMapIntensity)}return{refreshFogUniforms:function(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)},refreshMaterialUniforms:function(t,n,r,o){n.isMeshBasicMaterial?e(t,n):n.isMeshLambertMaterial?(e(t,n),function(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}(t,n)):n.isMeshToonMaterial?(e(t,n),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap);e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,1===e.side&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),1===e.side&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,n)):n.isMeshPhongMaterial?(e(t,n),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,1===e.side&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),1===e.side&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,n)):n.isMeshStandardMaterial?(e(t,n),n.isMeshPhysicalMaterial?function(t,e){i(t,e),t.reflectivity.value=e.reflectivity,t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.sheen&&t.sheen.value.copy(e.sheen);e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap);e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap);e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,1===e.side&&t.clearcoatNormalScale.value.negate());t.transmission.value=e.transmission,e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap)}(t,n):i(t,n)):n.isMeshMatcapMaterial?(e(t,n),function(t,e){e.matcap&&(t.matcap.value=e.matcap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,1===e.side&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),1===e.side&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,n)):n.isMeshDepthMaterial?(e(t,n),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,n)):n.isMeshDistanceMaterial?(e(t,n),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias);t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(t,n)):n.isMeshNormalMaterial?(e(t,n),function(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,1===e.side&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),1===e.side&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(t,n)):n.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}(t,n),n.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,n)):n.isPointsMaterial?function(t,e,i,n){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*i,t.scale.value=.5*n,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);let r;e.map?r=e.map:e.alphaMap&&(r=e.alphaMap);void 0!==r&&(!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix))}(t,n,r,o):n.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);let i;e.map?i=e.map:e.alphaMap&&(i=e.alphaMap);void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uvTransform.value.copy(i.matrix))}(t,n):n.isShadowMaterial?(t.color.value.copy(n.color),t.opacity.value=n.opacity):n.isShaderMaterial&&(n.uniformsNeedUpdate=!1)}}}function Kr(t){const e=void 0!==(t=t||{}).canvas?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),i=void 0!==t.context?t.context:null,n=void 0!==t.alpha&&t.alpha,r=void 0===t.depth||t.depth,o=void 0===t.stencil||t.stencil,a=void 0!==t.antialias&&t.antialias,s=void 0===t.premultipliedAlpha||t.premultipliedAlpha,l=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,A=void 0!==t.powerPreference?t.powerPreference:"default",c=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let h=null,d=null;this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.outputEncoding=Z,this.physicallyCorrectLights=!1,this.toneMapping=0,this.toneMappingExposure=1,this.maxMorphTargets=8,
this.maxMorphNormals=4;const u=this;let p=!1,g=null,f=0,m=0,y=null,b=null,v=-1,E=null,I=null;const C=new ht,B=new ht;let w=null,x=e.width,Q=e.height,S=1,k=null,_=null;const R=new ht(0,0,x,Q),F=new ht(0,0,x,Q);let L=!1;const P=new Vi;let U=!1,O=!1;const G=new Vt,H=new gt,V={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function Y(){return null===y?S:1}let z,W,j,q,J,K,X,$,tt,et,it,nt,at,st,lt,At,ct,dt,ut,pt,ft,mt=i;function yt(t,i){for(let n=0;n<t.length;n++){const r=t[n],o=e.getContext(r,i);if(null!==o)return o}return null}try{const t={alpha:n,depth:r,stencil:o,antialias:a,premultipliedAlpha:s,preserveDrawingBuffer:l,powerPreference:A,failIfMajorPerformanceCaveat:c};if(e.addEventListener("webglcontextlost",It,!1),e.addEventListener("webglcontextrestored",Ct,!1),null===mt){const e=["webgl2","webgl","experimental-webgl"];if(!0===u.isWebGL1Renderer&&e.shift(),mt=yt(e,t),null===mt)throw yt(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===mt.getShaderPrecisionFormat&&(mt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){throw console.error("THREE.WebGLRenderer: "+t.message),t}function bt(){z=new nn(mt),W=new $i(mt,z,t),!1===W.isWebGL2&&(z.get("WEBGL_depth_texture"),z.get("OES_texture_float"),z.get("OES_texture_half_float"),z.get("OES_texture_half_float_linear"),z.get("OES_standard_derivatives"),z.get("OES_element_index_uint"),z.get("OES_vertex_array_object"),z.get("ANGLE_instanced_arrays")),z.get("OES_texture_float_linear"),pt=new zr(mt,z,W),j=new Vr(mt,z,W),j.scissor(B.copy(F).multiplyScalar(S).floor()),j.viewport(C.copy(R).multiplyScalar(S).floor()),q=new an(mt),J=new kr,K=new Yr(mt,z,j,J,W,pt,q),X=new en(u),$=new zi(mt,W),ft=new Ki(mt,z,$,W),tt=new rn(mt,$,q,ft),et=new cn(mt,tt,$,q),ct=new An(mt),lt=new tn(J),it=new Sr(u,X,z,W,ft,lt),nt=new Jr(J),at=new Mr(J),st=new Ur,At=new Ji(u,X,j,et,s),dt=new Xi(mt,z,q,W),ut=new on(mt,z,q,W),q.programs=it.programs,u.capabilities=W,u.extensions=z,u.properties=J,u.renderLists=at,u.state=j,u.info=q}bt();const vt=new qr(u,mt);this.xr=vt;const Et=new Hr(u,et,W.maxTextureSize);function It(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),p=!0}function Ct(){console.log("THREE.WebGLRenderer: Context Restored."),p=!1,bt()}function Bt(t){const e=t.target;e.removeEventListener("dispose",Bt),function(t){wt(t),J.remove(t)}(e)}function wt(t){const e=J.get(t).program;void 0!==e&&it.releaseProgram(e)}this.shadowMap=Et,this.getContext=function(){return mt},this.getContextAttributes=function(){return mt.getContextAttributes()},this.forceContextLoss=function(){const t=z.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=z.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return S},this.setPixelRatio=function(t){void 0!==t&&(S=t,this.setSize(x,Q,!1))},this.getSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),t=new ot),t.set(x,Q)},this.setSize=function(t,i,n){vt.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(x=t,Q=i,e.width=Math.floor(t*S),e.height=Math.floor(i*S),!1!==n&&(e.style.width=t+"px",e.style.height=i+"px"),this.setViewport(0,0,t,i))},this.getDrawingBufferSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),t=new ot),t.set(x*S,Q*S).floor()},this.setDrawingBufferSize=function(t,i,n){x=t,Q=i,S=n,e.width=Math.floor(t*n),e.height=Math.floor(i*n),this.setViewport(0,0,t,i)},this.getCurrentViewport=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),t=new ht),t.copy(C)},this.getViewport=function(t){return t.copy(R)},this.setViewport=function(t,e,i,n){t.isVector4?R.set(t.x,t.y,t.z,t.w):R.set(t,e,i,n),j.viewport(C.copy(R).multiplyScalar(S).floor())},this.getScissor=function(t){return t.copy(F)},this.setScissor=function(t,e,i,n){t.isVector4?F.set(t.x,t.y,t.z,t.w):F.set(t,e,i,n),j.scissor(B.copy(F).multiplyScalar(S).floor())},this.getScissorTest=function(){return L},this.setScissorTest=function(t){j.setScissorTest(L=t)},this.setOpaqueSort=function(t){k=t},this.setTransparentSort=function(t){_=t},this.getClearColor=function(){return At.getClearColor()},this.setClearColor=function(){At.setClearColor.apply(At,arguments)},this.getClearAlpha=function(){return At.getClearAlpha()},this.setClearAlpha=function(){At.setClearAlpha.apply(At,arguments)},this.clear=function(t,e,i){let n=0;(void 0===t||t)&&(n|=16384),(void 0===e||e)&&(n|=256),(void 0===i||i)&&(n|=1024),mt.clear(n)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",It,!1),e.removeEventListener("webglcontextrestored",Ct,!1),at.dispose(),st.dispose(),J.dispose(),X.dispose(),et.dispose(),ft.dispose(),vt.dispose(),Qt.stop()},this.renderBufferImmediate=function(t,e){ft.initAttributes();const i=J.get(t);t.hasPositions&&!i.position&&(i.position=mt.createBuffer()),t.hasNormals&&!i.normal&&(i.normal=mt.createBuffer()),t.hasUvs&&!i.uv&&(i.uv=mt.createBuffer()),t.hasColors&&!i.color&&(i.color=mt.createBuffer());const n=e.getAttributes();t.hasPositions&&(mt.bindBuffer(34962,i.position),mt.bufferData(34962,t.positionArray,35048),ft.enableAttribute(n.position),mt.vertexAttribPointer(n.position,3,5126,!1,0,0)),t.hasNormals&&(mt.bindBuffer(34962,i.normal),mt.bufferData(34962,t.normalArray,35048),ft.enableAttribute(n.normal),mt.vertexAttribPointer(n.normal,3,5126,!1,0,0)),t.hasUvs&&(mt.bindBuffer(34962,i.uv),mt.bufferData(34962,t.uvArray,35048),ft.enableAttribute(n.uv),mt.vertexAttribPointer(n.uv,2,5126,!1,0,0)),t.hasColors&&(mt.bindBuffer(34962,i.color),mt.bufferData(34962,t.colorArray,35048),ft.enableAttribute(n.color),mt.vertexAttribPointer(n.color,3,5126,!1,0,0)),ft.disableUnusedAttributes(),mt.drawArrays(4,0,t.count),t.count=0},this.renderBufferDirect=function(t,e,i,n,r,o){null===e&&(e=V);const a=r.isMesh&&r.matrixWorld.determinant()<0,s=Rt(t,e,n,r);j.setMaterial(n,a);let l=i.index;const A=i.attributes.position;if(null===l){if(void 0===A||0===A.count)return}else if(0===l.count)return;let c,h=1;!0===n.wireframe&&(l=tt.getWireframeAttribute(i),h=2),(n.morphTargets||n.morphNormals)&&ct.update(r,i,n,s),ft.setup(r,n,s,i,l);let d=dt;null!==l&&(c=$.get(l),d=ut,d.setIndex(c));const u=null!==l?l.count:A.count,p=i.drawRange.start*h,g=i.drawRange.count*h,f=null!==o?o.start*h:0,m=null!==o?o.count*h:1/0,y=Math.max(p,f),b=Math.min(u,p+g,f+m)-1,v=Math.max(0,b-y+1);if(0!==v){if(r.isMesh)!0===n.wireframe?(j.setLineWidth(n.wireframeLinewidth*Y()),d.setMode(1)):d.setMode(4);else if(r.isLine){let t=n.linewidth;void 0===t&&(t=1),j.setLineWidth(t*Y()),r.isLineSegments?d.setMode(1):r.isLineLoop?d.setMode(2):d.setMode(3)}else r.isPoints?d.setMode(0):r.isSprite&&d.setMode(4);if(r.isInstancedMesh)d.renderInstances(y,v,r.count);else if(i.isInstancedBufferGeometry){const t=Math.min(i.instanceCount,i._maxInstanceCount);d.renderInstances(y,v,t)}else d.render(y,v)}},this.compile=function(t,e){d=st.get(t,e),d.init(),t.traverse((function(t){t.isLight&&(d.pushLight(t),t.castShadow&&d.pushShadow(t))})),d.setupLights(e);const i=new WeakMap;t.traverse((function(e){const n=e.material;if(n)if(Array.isArray(n))for(let r=0;r<n.length;r++){const o=n[r];!1===i.has(o)&&(_t(o,t,e),i.set(o))}else!1===i.has(n)&&(_t(n,t,e),i.set(n))}))};let xt=null;const Qt=new Yi;function St(t,e,i,n){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)i=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)d.pushLight(t),t.castShadow&&d.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||P.intersectsSprite(t)){n&&H.setFromMatrixPosition(t.matrixWorld).applyMatrix4(G);const e=et.update(t),r=t.material;r.visible&&h.push(t,e,r,i,H.z,null)}}else if(t.isImmediateRenderObject)n&&H.setFromMatrixPosition(t.matrixWorld).applyMatrix4(G),
h.push(t,null,t.material,i,H.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==q.render.frame&&(t.skeleton.update(),t.skeleton.frame=q.render.frame),!t.frustumCulled||P.intersectsObject(t))){n&&H.setFromMatrixPosition(t.matrixWorld).applyMatrix4(G);const e=et.update(t),r=t.material;if(Array.isArray(r)){const n=e.groups;for(let o=0,a=n.length;o<a;o++){const a=n[o],s=r[a.materialIndex];s&&s.visible&&h.push(t,e,s,i,H.z,a)}}else r.visible&&h.push(t,e,r,i,H.z,null)}const r=t.children;for(let t=0,o=r.length;t<o;t++)St(r[t],e,i,n)}function kt(t,e,i){const n=!0===e.isScene?e.overrideMaterial:null;for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.object,s=o.geometry,l=null===n?o.material:n,A=o.group;if(i.isArrayCamera){I=i;const t=i.cameras;for(let i=0,n=t.length;i<n;i++){const n=t[i];a.layers.test(n.layers)&&(j.viewport(C.copy(n.viewport)),d.setupLights(n),Dt(a,e,n,s,l,A))}}else I=null,Dt(a,e,i,s,l,A)}}function Dt(t,e,i,n,r,o){if(t.onBeforeRender(u,e,i,n,r,o),d=st.get(e,I||i),t.modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){const n=Rt(i,e,r,t);j.setMaterial(r),ft.reset(),function(t,e){t.render((function(t){u.renderBufferImmediate(t,e)}))}(t,n)}else u.renderBufferDirect(i,e,n,r,t,o);t.onAfterRender(u,e,i,n,r,o),d=st.get(e,I||i)}function _t(t,e,i){!0!==e.isScene&&(e=V);const n=J.get(t),r=d.state.lights,o=d.state.shadowsArray,a=r.state.version,s=it.getParameters(t,r.state,o,e,i),l=it.getProgramCacheKey(s);let A=n.program,c=!0;if(void 0===A)t.addEventListener("dispose",Bt);else if(A.cacheKey!==l)wt(t);else if(n.lightsStateVersion!==a)c=!1;else{if(void 0!==s.shaderID){const i=t.isMeshStandardMaterial?e.environment:null;return void(n.envMap=X.get(t.envMap||i))}c=!1}c&&(s.uniforms=it.getUniforms(t),t.onBeforeCompile(s,u),A=it.acquireProgram(s,l),n.program=A,n.uniforms=s.uniforms,n.outputEncoding=s.outputEncoding);const h=n.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(n.numClippingPlanes=lt.numPlanes,n.numIntersection=lt.numIntersection,h.clippingPlanes=lt.uniform),n.environment=t.isMeshStandardMaterial?e.environment:null,n.fog=e.fog,n.envMap=X.get(t.envMap||n.environment),n.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),n.lightsStateVersion=a,n.needsLights&&(h.ambientLightColor.value=r.state.ambient,h.lightProbe.value=r.state.probe,h.directionalLights.value=r.state.directional,h.directionalLightShadows.value=r.state.directionalShadow,h.spotLights.value=r.state.spot,h.spotLightShadows.value=r.state.spotShadow,h.rectAreaLights.value=r.state.rectArea,h.ltc_1.value=r.state.rectAreaLTC1,h.ltc_2.value=r.state.rectAreaLTC2,h.pointLights.value=r.state.point,h.pointLightShadows.value=r.state.pointShadow,h.hemisphereLights.value=r.state.hemi,h.directionalShadowMap.value=r.state.directionalShadowMap,h.directionalShadowMatrix.value=r.state.directionalShadowMatrix,h.spotShadowMap.value=r.state.spotShadowMap,h.spotShadowMatrix.value=r.state.spotShadowMatrix,h.pointShadowMap.value=r.state.pointShadowMap,h.pointShadowMatrix.value=r.state.pointShadowMatrix);const p=n.program.getUniforms(),g=sr.seqWithValue(p.seq,h);n.uniformsList=g}function Rt(t,e,i,n){!0!==e.isScene&&(e=V),K.resetTextureUnits();const r=e.fog,o=i.isMeshStandardMaterial?e.environment:null,a=null===y?u.outputEncoding:y.texture.encoding,s=X.get(i.envMap||o),l=J.get(i),A=d.state.lights;if(!0===U&&(!0===O||t!==E)){const e=t===E&&i.id===v;lt.setState(i,t,e)}i.version===l.__version?i.fog&&l.fog!==r||l.environment!==o||l.needsLights&&l.lightsStateVersion!==A.state.version?_t(i,e,n):void 0===l.numClippingPlanes||l.numClippingPlanes===lt.numPlanes&&l.numIntersection===lt.numIntersection?(l.outputEncoding!==a||l.envMap!==s)&&_t(i,e,n):_t(i,e,n):(_t(i,e,n),l.__version=i.version);let c=!1,h=!1,p=!1;const g=l.program,f=g.getUniforms(),m=l.uniforms;if(j.useProgram(g.program)&&(c=!0,h=!0,p=!0),i.id!==v&&(v=i.id,h=!0),c||E!==t){if(f.setValue(mt,"projectionMatrix",t.projectionMatrix),W.logarithmicDepthBuffer&&f.setValue(mt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),E!==t&&(E=t,h=!0,p=!0),i.isShaderMaterial||i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshStandardMaterial||i.envMap){const e=f.map.cameraPosition;void 0!==e&&e.setValue(mt,H.setFromMatrixPosition(t.matrixWorld))}(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&f.setValue(mt,"isOrthographic",!0===t.isOrthographicCamera),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial||i.isShadowMaterial||i.skinning)&&f.setValue(mt,"viewMatrix",t.matrixWorldInverse)}if(i.skinning){f.setOptional(mt,n,"bindMatrix"),f.setOptional(mt,n,"bindMatrixInverse");const t=n.skeleton;if(t){const e=t.bones;if(W.floatVertexTextures){if(void 0===t.boneTexture){let i=Math.sqrt(4*e.length);i=rt.ceilPowerOfTwo(i),i=Math.max(i,4);const n=new Float32Array(i*i*4);n.set(t.boneMatrices);const r=new Oi(n,i,i,N,M);t.boneMatrices=n,t.boneTexture=r,t.boneTextureSize=i}f.setValue(mt,"boneTexture",t.boneTexture,K),f.setValue(mt,"boneTextureSize",t.boneTextureSize)}else f.setOptional(mt,t,"boneMatrices")}}var b,I;return(h||l.receiveShadow!==n.receiveShadow)&&(l.receiveShadow=n.receiveShadow,f.setValue(mt,"receiveShadow",n.receiveShadow)),h&&(f.setValue(mt,"toneMappingExposure",u.toneMappingExposure),l.needsLights&&(I=p,(b=m).ambientLightColor.needsUpdate=I,b.lightProbe.needsUpdate=I,b.directionalLights.needsUpdate=I,b.directionalLightShadows.needsUpdate=I,b.pointLights.needsUpdate=I,b.pointLightShadows.needsUpdate=I,b.spotLights.needsUpdate=I,b.spotLightShadows.needsUpdate=I,b.rectAreaLights.needsUpdate=I,b.hemisphereLights.needsUpdate=I),r&&i.fog&&nt.refreshFogUniforms(m,r),nt.refreshMaterialUniforms(m,i,S,Q),sr.upload(mt,l.uniformsList,m,K)),i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(sr.upload(mt,l.uniformsList,m,K),i.uniformsNeedUpdate=!1),i.isSpriteMaterial&&f.setValue(mt,"center",n.center),f.setValue(mt,"modelViewMatrix",n.modelViewMatrix),f.setValue(mt,"normalMatrix",n.normalMatrix),f.setValue(mt,"modelMatrix",n.matrixWorld),g}Qt.setAnimationLoop((function(t){vt.isPresenting||xt&&xt(t)})),"undefined"!=typeof window&&Qt.setContext(window),this.setAnimationLoop=function(t){xt=t,vt.setAnimationLoop(t),null===t?Qt.stop():Qt.start()},this.render=function(t,e){let i,n;if(void 0!==arguments[2]&&(console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."),i=arguments[2]),void 0!==arguments[3]&&(console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."),n=arguments[3]),void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===p)return;ft.resetDefaultState(),v=-1,E=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===vt.enabled&&!0===vt.isPresenting&&(e=vt.getCamera(e)),!0===t.isScene&&t.onBeforeRender(u,t,e,i||y),d=st.get(t,e),d.init(),G.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),P.setFromProjectionMatrix(G),O=this.localClippingEnabled,U=lt.init(this.clippingPlanes,O,e),h=at.get(t,e),h.init(),St(t,e,0,u.sortObjects),h.finish(),!0===u.sortObjects&&h.sort(k,_),!0===U&&lt.beginShadows();const r=d.state.shadowsArray;Et.render(r,t,e),d.setupLights(e),!0===U&&lt.endShadows(),!0===this.info.autoReset&&this.info.reset(),void 0!==i&&this.setRenderTarget(i),At.render(h,t,e,n);const o=h.opaque,a=h.transparent;o.length>0&&kt(o,t,e),a.length>0&&kt(a,t,e),!0===t.isScene&&t.onAfterRender(u,t,e),null!==y&&(K.updateRenderTargetMipmap(y),K.updateMultisampleRenderTarget(y)),j.buffers.depth.setTest(!0),j.buffers.depth.setMask(!0),j.buffers.color.setMask(!0),j.setPolygonOffset(!1),h=null,d=null},this.setFramebuffer=function(t){g!==t&&null===y&&mt.bindFramebuffer(36160,t),g=t},
this.getActiveCubeFace=function(){return f},this.getActiveMipmapLevel=function(){return m},this.getRenderList=function(){return h},this.setRenderList=function(t){h=t},this.getRenderState=function(){return d},this.setRenderState=function(t){d=t},this.getRenderTarget=function(){return y},this.setRenderTarget=function(t,e=0,i=0){y=t,f=e,m=i,t&&void 0===J.get(t).__webglFramebuffer&&K.setupRenderTarget(t);let n=g,r=!1;if(t){const i=J.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(n=i[e],r=!0):n=t.isWebGLMultisampleRenderTarget?J.get(t).__webglMultisampledFramebuffer:i,C.copy(t.viewport),B.copy(t.scissor),w=t.scissorTest}else C.copy(R).multiplyScalar(S).floor(),B.copy(F).multiplyScalar(S).floor(),w=L;if(b!==n&&(mt.bindFramebuffer(36160,n),b=n),j.viewport(C),j.scissor(B),j.setScissorTest(w),r){const n=J.get(t.texture);mt.framebufferTexture2D(36160,36064,34069+e,n.__webglTexture,i)}},this.readRenderTargetPixels=function(t,e,i,n,r,o,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=J.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){let a=!1;s!==b&&(mt.bindFramebuffer(36160,s),a=!0);try{const a=t.texture,s=a.format,l=a.type;if(s!==N&&pt.convert(s)!==mt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(l===D||pt.convert(l)===mt.getParameter(35738)||l===M&&(W.isWebGL2||z.get("OES_texture_float")||z.get("WEBGL_color_buffer_float"))||l===T&&(W.isWebGL2?z.get("EXT_color_buffer_float"):z.get("EXT_color_buffer_half_float"))))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===mt.checkFramebufferStatus(36160)?e>=0&&e<=t.width-n&&i>=0&&i<=t.height-r&&mt.readPixels(e,i,n,r,pt.convert(s),pt.convert(l),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{a&&mt.bindFramebuffer(36160,b)}}},this.copyFramebufferToTexture=function(t,e,i){void 0===i&&(i=0);const n=Math.pow(2,-i),r=Math.floor(e.image.width*n),o=Math.floor(e.image.height*n),a=pt.convert(e.format);K.setTexture2D(e,0),mt.copyTexImage2D(3553,i,a,t.x,t.y,r,o,0),j.unbindTexture()},this.copyTextureToTexture=function(t,e,i,n){void 0===n&&(n=0);const r=e.image.width,o=e.image.height,a=pt.convert(i.format),s=pt.convert(i.type);K.setTexture2D(i,0),mt.pixelStorei(37440,i.flipY),mt.pixelStorei(37441,i.premultiplyAlpha),mt.pixelStorei(3317,i.unpackAlignment),e.isDataTexture?mt.texSubImage2D(3553,n,t.x,t.y,r,o,a,s,e.image.data):e.isCompressedTexture?mt.compressedTexSubImage2D(3553,n,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):mt.texSubImage2D(3553,n,t.x,t.y,a,s,e.image),0===n&&i.generateMipmaps&&mt.generateMipmap(3553),j.unbindTexture()},this.initTexture=function(t){K.setTexture2D(t,0),j.unbindTexture()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function Xr(t){Kr.call(this,t)}Wr.prototype=Object.assign(Object.create(Fi.prototype),{constructor:Wr,isArrayCamera:!0}),Zr.prototype=Object.assign(Object.create(pe.prototype),{constructor:Zr,isGroup:!0}),Object.assign(jr.prototype,{constructor:jr,getHandSpace:function(){if(null===this._hand&&(this._hand=new Zr,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints=[],this._hand.inputState={pinching:!1},window.XRHand))for(let t=0;t<=window.XRHand.LITTLE_PHALANX_TIP;t++){const t=new Zr;t.matrixAutoUpdate=!1,t.visible=!1,this._hand.joints.push(t),this._hand.add(t)}return this._hand},getTargetRaySpace:function(){return null===this._targetRay&&(this._targetRay=new Zr,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1),this._targetRay},getGripSpace:function(){return null===this._grip&&(this._grip=new Zr,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1),this._grip},dispatchEvent:function(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this},disconnect:function(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this},update:function(t,e,i){let n=null,r=null,o=null;const a=this._targetRay,s=this._grip,l=this._hand;if(t)if(l&&t.hand){o=!0;for(let n=0;n<=window.XRHand.LITTLE_PHALANX_TIP;n++)if(t.hand[n]){const r=e.getJointPose(t.hand[n],i),o=l.joints[n];null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.jointRadius=r.radius),o.visible=null!==r;const a=l.joints[window.XRHand.INDEX_PHALANX_TIP],s=l.joints[window.XRHand.THUMB_PHALANX_TIP],A=a.position.distanceTo(s.position),c=.02,h=.005;l.inputState.pinching&&A>c+h?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&A<=c-h&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}}else null!==a&&(n=e.getPose(t.targetRaySpace,i),null!==n&&(a.matrix.fromArray(n.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale))),null!==s&&t.gripSpace&&(r=e.getPose(t.gripSpace,i),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale)));return null!==a&&(a.visible=null!==n),null!==s&&(s.visible=null!==r),null!==l&&(l.visible=null!==o),this}}),Object.assign(qr.prototype,et.prototype),Xr.prototype=Object.assign(Object.create(Kr.prototype),{constructor:Xr,isWebGL1Renderer:!0});class $r extends pe{constructor(){super(),Object.defineProperty(this,"isScene",{value:!0}),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.background&&(e.object.background=this.background.toJSON(t)),null!==this.environment&&(e.object.environment=this.environment.toJSON(t)),null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}function to(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=X,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=rt.generateUUID()}Object.defineProperty(to.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(to.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(t){return this.usage=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this},copyAt:function(t,e,i){t*=this.stride,i*=e.stride;for(let n=0,r=this.stride;n<r;n++)this.array[t+n]=e.array[i+n];return this},set:function(t,e){return void 0===e&&(e=0),this.array.set(t,e),this},clone:function(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=rt.generateUUID()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new to(new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),this.stride);return e.setUsage(this.usage),e},onUpload:function(t){return this.onUploadCallback=t,this},toJSON:function(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=rt.generateUUID()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{
uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});const eo=new gt;function io(t,e,i,n){this.name="",this.data=t,this.itemSize=e,this.offset=i,this.normalized=!0===n}function no(t){Ue.call(this),this.type="SpriteMaterial",this.color=new Le(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(t)}let ro;Object.defineProperties(io.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}},needsUpdate:{set:function(t){this.data.needsUpdate=t}}}),Object.assign(io.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(t){for(let e=0,i=this.data.count;e<i;e++)eo.x=this.getX(e),eo.y=this.getY(e),eo.z=this.getZ(e),eo.applyMatrix4(t),this.setXYZ(e,eo.x,eo.y,eo.z);return this},setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this},setXYZ:function(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this},setXYZW:function(t,e,i,n,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=r,this},clone:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const i=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[i+e])}return new Ve(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new io(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const i=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[i+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}),no.prototype=Object.create(Ue.prototype),no.prototype.constructor=no,no.prototype.isSpriteMaterial=!0,no.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this};const oo=new gt,ao=new gt,so=new gt,lo=new ot,Ao=new ot,co=new Vt,ho=new gt,uo=new gt,po=new gt,go=new ot,fo=new ot,mo=new ot;function yo(t){if(pe.call(this),this.type="Sprite",void 0===ro){ro=new li;const t=new to(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);ro.setIndex([0,1,2,0,2,3]),ro.setAttribute("position",new io(t,3,0,!1)),ro.setAttribute("uv",new io(t,2,3,!1))}this.geometry=ro,this.material=void 0!==t?t:new no,this.center=new ot(.5,.5)}function bo(t,e,i,n,r,o){lo.subVectors(t,i).addScalar(.5).multiply(n),void 0!==r?(Ao.x=o*lo.x-r*lo.y,Ao.y=r*lo.x+o*lo.y):Ao.copy(lo),t.copy(e),t.x+=Ao.x,t.y+=Ao.y,t.applyMatrix4(co)}yo.prototype=Object.assign(Object.create(pe.prototype),{constructor:yo,isSprite:!0,raycast:function(t,e){null===t.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),ao.setFromMatrixScale(this.matrixWorld),co.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),so.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&ao.multiplyScalar(-so.z);const i=this.material.rotation;let n,r;0!==i&&(r=Math.cos(i),n=Math.sin(i));const o=this.center;bo(ho.set(-.5,-.5,0),so,o,ao,n,r),bo(uo.set(.5,-.5,0),so,o,ao,n,r),bo(po.set(.5,.5,0),so,o,ao,n,r),go.set(0,0),fo.set(1,0),mo.set(1,1);let a=t.ray.intersectTriangle(ho,uo,po,!1,oo);if(null===a&&(bo(uo.set(-.5,.5,0),so,o,ao,n,r),fo.set(0,1),a=t.ray.intersectTriangle(ho,po,uo,!1,oo),null===a))return;const s=t.ray.origin.distanceTo(oo);s<t.near||s>t.far||e.push({distance:s,point:oo.clone(),uv:ke.getUV(oo,ho,uo,po,go,fo,mo,new ot),face:null,object:this})},copy:function(t){return pe.prototype.copy.call(this,t),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}});const vo=new gt,Eo=new gt;function Io(){pe.call(this),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}}),this.autoUpdate=!0}function Co(t,e){t&&t.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead."),xi.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Vt,this.bindMatrixInverse=new Vt}Io.prototype=Object.assign(Object.create(pe.prototype),{constructor:Io,isLOD:!0,copy:function(t){pe.prototype.copy.call(this,t,!1);const e=t.levels;for(let t=0,i=e.length;t<i;t++){const i=e[t];this.addLevel(i.object.clone(),i.distance)}return this.autoUpdate=t.autoUpdate,this},addLevel:function(t,e){void 0===e&&(e=0),e=Math.abs(e);const i=this.levels;let n;for(n=0;n<i.length&&!(e<i[n].distance);n++);return i.splice(n,0,{distance:e,object:t}),this.add(t),this},getCurrentLevel:function(){return this._currentLevel},getObjectForDistance:function(t){const e=this.levels;if(e.length>0){let i,n;for(i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object}return null},raycast:function(t,e){if(this.levels.length>0){vo.setFromMatrixPosition(this.matrixWorld);const i=t.ray.origin.distanceTo(vo);this.getObjectForDistance(i).raycast(t,e)}},update:function(t){const e=this.levels;if(e.length>1){vo.setFromMatrixPosition(t.matrixWorld),Eo.setFromMatrixPosition(this.matrixWorld);const i=vo.distanceTo(Eo)/t.zoom;let n,r;for(e[0].object.visible=!0,n=1,r=e.length;n<r&&i>=e[n].distance;n++)e[n-1].object.visible=!1,e[n].object.visible=!0;for(this._currentLevel=n-1;n<r;n++)e[n].object.visible=!1}},toJSON:function(t){const e=pe.prototype.toJSON.call(this,t);!1===this.autoUpdate&&(e.object.autoUpdate=!1),e.object.levels=[];const i=this.levels;for(let t=0,n=i.length;t<n;t++){const n=i[t];e.object.levels.push({object:n.object.uuid,distance:n.distance})}return e}}),Co.prototype=Object.assign(Object.create(xi.prototype),{constructor:Co,isSkinnedMesh:!0,copy:function(t){return xi.prototype.copy.call(this,t),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this},bind:function(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){const t=new ht,e=this.geometry.attributes.skinWeight;for(let i=0,n=e.count;i<n;i++){t.x=e.getX(i),t.y=e.getY(i),t.z=e.getZ(i),t.w=e.getW(i);const n=1/t.manhattanLength();n!==1/0?t.multiplyScalar(n):t.set(1,0,0,0),e.setXYZW(i,t.x,t.y,t.z,t.w)}},updateMatrixWorld:function(t){xi.prototype.updateMatrixWorld.call(this,t),
"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},boneTransform:function(){const t=new gt,e=new ht,i=new ht,n=new gt,r=new Vt;return function(o,a){const s=this.skeleton,l=this.geometry;e.fromBufferAttribute(l.attributes.skinIndex,o),i.fromBufferAttribute(l.attributes.skinWeight,o),t.fromBufferAttribute(l.attributes.position,o).applyMatrix4(this.bindMatrix),a.set(0,0,0);for(let o=0;o<4;o++){const l=i.getComponent(o);if(0!==l){const i=e.getComponent(o);r.multiplyMatrices(s.bones[i].matrixWorld,s.boneInverses[i]),a.addScaledVector(n.copy(t).applyMatrix4(r),l)}}return a.applyMatrix4(this.bindMatrixInverse)}}()});const Bo=new Vt,wo=new Vt;function xo(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),this.frame=-1,void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[];for(let t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new Vt)}}function Qo(){pe.call(this),this.type="Bone"}Object.assign(xo.prototype,{calculateInverses:function(){this.boneInverses=[];for(let t=0,e=this.bones.length;t<e;t++){const e=new Vt;this.bones[t]&&e.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(e)}},pose:function(){for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&e.matrixWorld.getInverse(this.boneInverses[t])}for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&(e.parent&&e.parent.isBone?(e.matrix.getInverse(e.parent.matrixWorld),e.matrix.multiply(e.matrixWorld)):e.matrix.copy(e.matrixWorld),e.matrix.decompose(e.position,e.quaternion,e.scale))}},update:function(){const t=this.bones,e=this.boneInverses,i=this.boneMatrices,n=this.boneTexture;for(let n=0,r=t.length;n<r;n++){const r=t[n]?t[n].matrixWorld:wo;Bo.multiplyMatrices(r,e[n]),Bo.toArray(i,16*n)}void 0!==n&&(n.needsUpdate=!0)},clone:function(){return new xo(this.bones,this.boneInverses)},getBoneByName:function(t){for(let e=0,i=this.bones.length;e<i;e++){const i=this.bones[e];if(i.name===t)return i}},dispose:function(){this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=void 0)}}),Qo.prototype=Object.assign(Object.create(pe.prototype),{constructor:Qo,isBone:!0});const So=new Vt,ko=new Vt,Do=[],_o=new xi;function Ro(t,e,i){xi.call(this,t,e),this.instanceMatrix=new Ve(new Float32Array(16*i),16),this.instanceColor=null,this.count=i,this.frustumCulled=!1}function Mo(t){Ue.call(this),this.type="LineBasicMaterial",this.color=new Le(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.morphTargets=!1,this.setValues(t)}Ro.prototype=Object.assign(Object.create(xi.prototype),{constructor:Ro,isInstancedMesh:!0,copy:function(t){return xi.prototype.copy.call(this,t),this.instanceMatrix.copy(t.instanceMatrix),this.count=t.count,this},setColorAt:function(t,e){null===this.instanceColor&&(this.instanceColor=new Ve(new Float32Array(3*this.count),3)),e.toArray(this.instanceColor.array,3*t)},getMatrixAt:function(t,e){e.fromArray(this.instanceMatrix.array,16*t)},raycast:function(t,e){const i=this.matrixWorld,n=this.count;if(_o.geometry=this.geometry,_o.material=this.material,void 0!==_o.material)for(let r=0;r<n;r++){this.getMatrixAt(r,So),ko.multiplyMatrices(i,So),_o.matrixWorld=ko,_o.raycast(t,Do);for(let t=0,i=Do.length;t<i;t++){const i=Do[t];i.instanceId=r,i.object=this,e.push(i)}Do.length=0}},setMatrixAt:function(t,e){e.toArray(this.instanceMatrix.array,16*t)},updateMorphTargets:function(){}}),Mo.prototype=Object.create(Ue.prototype),Mo.prototype.constructor=Mo,Mo.prototype.isLineBasicMaterial=!0,Mo.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.morphTargets=t.morphTargets,this};const To=new gt,Fo=new gt,Lo=new Vt,No=new Ht,Po=new Tt;function Uo(t,e,i){1===i&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),pe.call(this),this.type="Line",this.geometry=void 0!==t?t:new li,this.material=void 0!==e?e:new Mo,this.updateMorphTargets()}Uo.prototype=Object.assign(Object.create(pe.prototype),{constructor:Uo,isLine:!0,copy:function(t){return pe.prototype.copy.call(this,t),this.material=t.material,this.geometry=t.geometry,this},computeLineDistances:function(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,i=[0];for(let t=1,n=e.count;t<n;t++)To.fromBufferAttribute(e,t-1),Fo.fromBufferAttribute(e,t),i[t]=i[t-1],i[t]+=To.distanceTo(Fo);t.setAttribute("lineDistance",new Ke(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(t.isGeometry){const e=t.vertices,i=t.lineDistances;i[0]=0;for(let t=1,n=e.length;t<n;t++)i[t]=i[t-1],i[t]+=e[t-1].distanceTo(e[t])}return this},raycast:function(t,e){const i=this.geometry,n=this.matrixWorld,r=t.params.Line.threshold;if(null===i.boundingSphere&&i.computeBoundingSphere(),Po.copy(i.boundingSphere),Po.applyMatrix4(n),Po.radius+=r,!1===t.ray.intersectsSphere(Po))return;Lo.getInverse(n),No.copy(t.ray).applyMatrix4(Lo);const o=r/((this.scale.x+this.scale.y+this.scale.z)/3),a=o*o,s=new gt,l=new gt,A=new gt,c=new gt,h=this.isLineSegments?2:1;if(i.isBufferGeometry){const n=i.index,r=i.attributes.position;if(null!==n){const i=n.array;for(let n=0,o=i.length-1;n<o;n+=h){const o=i[n],h=i[n+1];s.fromBufferAttribute(r,o),l.fromBufferAttribute(r,h);if(No.distanceSqToSegment(s,l,c,A)>a)continue;c.applyMatrix4(this.matrixWorld);const d=t.ray.origin.distanceTo(c);d<t.near||d>t.far||e.push({distance:d,point:A.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else for(let i=0,n=r.count-1;i<n;i+=h){s.fromBufferAttribute(r,i),l.fromBufferAttribute(r,i+1);if(No.distanceSqToSegment(s,l,c,A)>a)continue;c.applyMatrix4(this.matrixWorld);const n=t.ray.origin.distanceTo(c);n<t.near||n>t.far||e.push({distance:n,point:A.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}else if(i.isGeometry){const n=i.vertices,r=n.length;for(let i=0;i<r-1;i+=h){if(No.distanceSqToSegment(n[i],n[i+1],c,A)>a)continue;c.applyMatrix4(this.matrixWorld);const r=t.ray.origin.distanceTo(c);r<t.near||r>t.far||e.push({distance:r,point:A.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,i=Object.keys(e);if(i.length>0){const t=e[i[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,i=t.length;e<i;e++){const i=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[i]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}});const Oo=new gt,Go=new gt;function Ho(t,e){Uo.call(this,t,e),this.type="LineSegments"}function Vo(t,e){Uo.call(this,t,e),this.type="LineLoop"}function Yo(t){Ue.call(this),this.type="PointsMaterial",this.color=new Le(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.setValues(t)}Ho.prototype=Object.assign(Object.create(Uo.prototype),{constructor:Ho,isLineSegments:!0,computeLineDistances:function(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,i=[];for(let t=0,n=e.count;t<n;t+=2)Oo.fromBufferAttribute(e,t),Go.fromBufferAttribute(e,t+1),i[t]=0===t?0:i[t-1],i[t+1]=i[t]+Oo.distanceTo(Go);t.setAttribute("lineDistance",new Ke(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(t.isGeometry){const e=t.vertices,i=t.lineDistances;for(let t=0,n=e.length;t<n;t+=2)Oo.copy(e[t]),Go.copy(e[t+1]),i[t]=0===t?0:i[t-1],i[t+1]=i[t]+Oo.distanceTo(Go)}
return this}}),Vo.prototype=Object.assign(Object.create(Uo.prototype),{constructor:Vo,isLineLoop:!0}),Yo.prototype=Object.create(Ue.prototype),Yo.prototype.constructor=Yo,Yo.prototype.isPointsMaterial=!0,Yo.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this};const zo=new Vt,Wo=new Ht,Zo=new Tt,jo=new gt;function qo(t,e){pe.call(this),this.type="Points",this.geometry=void 0!==t?t:new li,this.material=void 0!==e?e:new Yo,this.updateMorphTargets()}function Jo(t,e,i,n,r,o,a){const s=Wo.distanceSqToPoint(t);if(s<i){const i=new gt;Wo.closestPointToPoint(t,i),i.applyMatrix4(n);const l=r.ray.origin.distanceTo(i);if(l<r.near||l>r.far)return;o.push({distance:l,distanceToRay:Math.sqrt(s),point:i,index:e,face:null,object:a})}}function Ko(t,e,i,n,r,o,a,s,l){ct.call(this,t,e,i,n,r,o,a,s,l),this.format=void 0!==a?a:L,this.minFilter=void 0!==o?o:Q,this.magFilter=void 0!==r?r:Q,this.generateMipmaps=!1;const A=this;"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback((function e(){A.needsUpdate=!0,t.requestVideoFrameCallback(e)}))}function Xo(t,e,i,n,r,o,a,s,l,A,c,h){ct.call(this,null,o,a,s,l,A,n,r,c,h),this.image={width:e,height:i},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function $o(t,e,i,n,r,o,a,s,l){ct.call(this,t,e,i,n,r,o,a,s,l),this.needsUpdate=!0}function ta(t,e,i,n,r,o,a,s,l,A){if((A=void 0!==A?A:P)!==P&&A!==U)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===i&&A===P&&(i=_),void 0===i&&A===U&&(i=F),ct.call(this,null,n,r,o,a,s,A,i,l),this.image={width:t,height:e},this.magFilter=void 0!==a?a:B,this.minFilter=void 0!==s?s:B,this.flipY=!1,this.generateMipmaps=!1}qo.prototype=Object.assign(Object.create(pe.prototype),{constructor:qo,isPoints:!0,copy:function(t){return pe.prototype.copy.call(this,t),this.material=t.material,this.geometry=t.geometry,this},raycast:function(t,e){const i=this.geometry,n=this.matrixWorld,r=t.params.Points.threshold;if(null===i.boundingSphere&&i.computeBoundingSphere(),Zo.copy(i.boundingSphere),Zo.applyMatrix4(n),Zo.radius+=r,!1===t.ray.intersectsSphere(Zo))return;zo.getInverse(n),Wo.copy(t.ray).applyMatrix4(zo);const o=r/((this.scale.x+this.scale.y+this.scale.z)/3),a=o*o;if(i.isBufferGeometry){const r=i.index,o=i.attributes.position;if(null!==r){const i=r.array;for(let r=0,s=i.length;r<s;r++){const s=i[r];jo.fromBufferAttribute(o,s),Jo(jo,s,a,n,t,e,this)}}else for(let i=0,r=o.count;i<r;i++)jo.fromBufferAttribute(o,i),Jo(jo,i,a,n,t,e,this)}else{const r=i.vertices;for(let i=0,o=r.length;i<o;i++)Jo(r[i],i,a,n,t,e,this)}},updateMorphTargets:function(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,i=Object.keys(e);if(i.length>0){const t=e[i[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,i=t.length;e<i;e++){const i=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[i]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}),Ko.prototype=Object.assign(Object.create(ct.prototype),{constructor:Ko,isVideoTexture:!0,update:function(){const t=this.image;!1==="requestVideoFrameCallback"in t&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),Xo.prototype=Object.create(ct.prototype),Xo.prototype.constructor=Xo,Xo.prototype.isCompressedTexture=!0,$o.prototype=Object.create(ct.prototype),$o.prototype.constructor=$o,$o.prototype.isCanvasTexture=!0,ta.prototype=Object.create(ct.prototype),ta.prototype.constructor=ta,ta.prototype.isDepthTexture=!0;let ea=0;const ia=new Vt,na=new pe,ra=new gt;function oa(){Object.defineProperty(this,"id",{value:ea+=2}),this.uuid=rt.generateUUID(),this.name="",this.type="Geometry",this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}oa.prototype=Object.assign(Object.create(et.prototype),{constructor:oa,isGeometry:!0,applyMatrix4:function(t){const e=(new at).getNormalMatrix(t);for(let e=0,i=this.vertices.length;e<i;e++){this.vertices[e].applyMatrix4(t)}for(let t=0,i=this.faces.length;t<i;t++){const i=this.faces[t];i.normal.applyMatrix3(e).normalize();for(let t=0,n=i.vertexNormals.length;t<n;t++)i.vertexNormals[t].applyMatrix3(e).normalize()}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(t){return ia.makeRotationX(t),this.applyMatrix4(ia),this},rotateY:function(t){return ia.makeRotationY(t),this.applyMatrix4(ia),this},rotateZ:function(t){return ia.makeRotationZ(t),this.applyMatrix4(ia),this},translate:function(t,e,i){return ia.makeTranslation(t,e,i),this.applyMatrix4(ia),this},scale:function(t,e,i){return ia.makeScale(t,e,i),this.applyMatrix4(ia),this},lookAt:function(t){return na.lookAt(t),na.updateMatrix(),this.applyMatrix4(na.matrix),this},fromBufferGeometry:function(t){const e=this,i=null!==t.index?t.index:void 0,n=t.attributes;if(void 0===n.position)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),this;const r=n.position,o=n.normal,a=n.color,s=n.uv,l=n.uv2;void 0!==l&&(this.faceVertexUvs[1]=[]);for(let t=0;t<r.count;t++)e.vertices.push((new gt).fromBufferAttribute(r,t)),void 0!==a&&e.colors.push((new Le).fromBufferAttribute(a,t));function A(t,i,n,r){const A=void 0===a?[]:[e.colors[t].clone(),e.colors[i].clone(),e.colors[n].clone()],c=void 0===o?[]:[(new gt).fromBufferAttribute(o,t),(new gt).fromBufferAttribute(o,i),(new gt).fromBufferAttribute(o,n)],h=new Ne(t,i,n,c,A,r);e.faces.push(h),void 0!==s&&e.faceVertexUvs[0].push([(new ot).fromBufferAttribute(s,t),(new ot).fromBufferAttribute(s,i),(new ot).fromBufferAttribute(s,n)]),void 0!==l&&e.faceVertexUvs[1].push([(new ot).fromBufferAttribute(l,t),(new ot).fromBufferAttribute(l,i),(new ot).fromBufferAttribute(l,n)])}const c=t.groups;if(c.length>0)for(let t=0;t<c.length;t++){const e=c[t],n=e.start;for(let t=n,r=n+e.count;t<r;t+=3)void 0!==i?A(i.getX(t),i.getX(t+1),i.getX(t+2),e.materialIndex):A(t,t+1,t+2,e.materialIndex)}else if(void 0!==i)for(let t=0;t<i.count;t+=3)A(i.getX(t),i.getX(t+1),i.getX(t+2));else for(let t=0;t<r.count;t+=3)A(t,t+1,t+2);return this.computeFaceNormals(),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(ra).negate(),this.translate(ra.x,ra.y,ra.z),this},normalize:function(){this.computeBoundingSphere();const t=this.boundingSphere.center,e=this.boundingSphere.radius,i=0===e?1:1/e,n=new Vt;return n.set(i,0,0,-i*t.x,0,i,0,-i*t.y,0,0,i,-i*t.z,0,0,0,1),this.applyMatrix4(n),this},computeFaceNormals:function(){const t=new gt,e=new gt;for(let i=0,n=this.faces.length;i<n;i++){const n=this.faces[i],r=this.vertices[n.a],o=this.vertices[n.b],a=this.vertices[n.c];t.subVectors(a,o),e.subVectors(r,o),t.cross(e),t.normalize(),n.normal.copy(t)}},computeVertexNormals:function(t){void 0===t&&(t=!0);const e=new Array(this.vertices.length);for(let t=0,i=this.vertices.length;t<i;t++)e[t]=new gt;if(t){const t=new gt,i=new gt;for(let n=0,r=this.faces.length;n<r;n++){const r=this.faces[n],o=this.vertices[r.a],a=this.vertices[r.b],s=this.vertices[r.c];t.subVectors(s,a),i.subVectors(o,a),t.cross(i),e[r.a].add(t),e[r.b].add(t),e[r.c].add(t)}}else{this.computeFaceNormals();for(let t=0,i=this.faces.length;t<i;t++){const i=this.faces[t];e[i.a].add(i.normal),e[i.b].add(i.normal),e[i.c].add(i.normal)}}for(let t=0,i=this.vertices.length;t<i;t++)e[t].normalize()
;for(let t=0,i=this.faces.length;t<i;t++){const i=this.faces[t],n=i.vertexNormals;3===n.length?(n[0].copy(e[i.a]),n[1].copy(e[i.b]),n[2].copy(e[i.c])):(n[0]=e[i.a].clone(),n[1]=e[i.b].clone(),n[2]=e[i.c].clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){this.computeFaceNormals();for(let t=0,e=this.faces.length;t<e;t++){const e=this.faces[t],i=e.vertexNormals;3===i.length?(i[0].copy(e.normal),i[1].copy(e.normal),i[2].copy(e.normal)):(i[0]=e.normal.clone(),i[1]=e.normal.clone(),i[2]=e.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){for(let t=0,e=this.faces.length;t<e;t++){const e=this.faces[t];e.__originalFaceNormal?e.__originalFaceNormal.copy(e.normal):e.__originalFaceNormal=e.normal.clone(),e.__originalVertexNormals||(e.__originalVertexNormals=[]);for(let t=0,i=e.vertexNormals.length;t<i;t++)e.__originalVertexNormals[t]?e.__originalVertexNormals[t].copy(e.vertexNormals[t]):e.__originalVertexNormals[t]=e.vertexNormals[t].clone()}const t=new oa;t.faces=this.faces;for(let e=0,i=this.morphTargets.length;e<i;e++){if(!this.morphNormals[e]){this.morphNormals[e]={},this.morphNormals[e].faceNormals=[],this.morphNormals[e].vertexNormals=[];const t=this.morphNormals[e].faceNormals,i=this.morphNormals[e].vertexNormals;for(let e=0,n=this.faces.length;e<n;e++){const e=new gt,n={a:new gt,b:new gt,c:new gt};t.push(e),i.push(n)}}const i=this.morphNormals[e];t.vertices=this.morphTargets[e].vertices,t.computeFaceNormals(),t.computeVertexNormals();for(let t=0,e=this.faces.length;t<e;t++){const e=this.faces[t],n=i.faceNormals[t],r=i.vertexNormals[t];n.copy(e.normal),r.a.copy(e.vertexNormals[0]),r.b.copy(e.vertexNormals[1]),r.c.copy(e.vertexNormals[2])}}for(let t=0,e=this.faces.length;t<e;t++){const e=this.faces[t];e.normal=e.__originalFaceNormal,e.vertexNormals=e.__originalVertexNormals}},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new yt),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new Tt),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,i){if(!t||!t.isGeometry)return void console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);let n;const r=this.vertices.length,o=this.vertices,a=t.vertices,s=this.faces,l=t.faces,A=this.colors,c=t.colors;void 0===i&&(i=0),void 0!==e&&(n=(new at).getNormalMatrix(e));for(let t=0,i=a.length;t<i;t++){const i=a[t].clone();void 0!==e&&i.applyMatrix4(e),o.push(i)}for(let t=0,e=c.length;t<e;t++)A.push(c[t].clone());for(let t=0,e=l.length;t<e;t++){const e=l[t];let o,a;const A=e.vertexNormals,c=e.vertexColors,h=new Ne(e.a+r,e.b+r,e.c+r);h.normal.copy(e.normal),void 0!==n&&h.normal.applyMatrix3(n).normalize();for(let t=0,e=A.length;t<e;t++)o=A[t].clone(),void 0!==n&&o.applyMatrix3(n).normalize(),h.vertexNormals.push(o);h.color.copy(e.color);for(let t=0,e=c.length;t<e;t++)a=c[t],h.vertexColors.push(a.clone());h.materialIndex=e.materialIndex+i,s.push(h)}for(let e=0,i=t.faceVertexUvs.length;e<i;e++){const i=t.faceVertexUvs[e];void 0===this.faceVertexUvs[e]&&(this.faceVertexUvs[e]=[]);for(let t=0,n=i.length;t<n;t++){const n=i[t],r=[];for(let t=0,e=n.length;t<e;t++)r.push(n[t].clone());this.faceVertexUvs[e].push(r)}}},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){const t={},e=[],i=[],n=Math.pow(10,4);for(let r=0,o=this.vertices.length;r<o;r++){const o=this.vertices[r],a=Math.round(o.x*n)+"_"+Math.round(o.y*n)+"_"+Math.round(o.z*n);void 0===t[a]?(t[a]=r,e.push(this.vertices[r]),i[r]=e.length-1):i[r]=i[t[a]]}const r=[];for(let t=0,e=this.faces.length;t<e;t++){const e=this.faces[t];e.a=i[e.a],e.b=i[e.b],e.c=i[e.c];const n=[e.a,e.b,e.c];for(let e=0;e<3;e++)if(n[e]===n[(e+1)%3]){r.push(t);break}}for(let t=r.length-1;t>=0;t--){const e=r[t];this.faces.splice(e,1);for(let t=0,i=this.faceVertexUvs.length;t<i;t++)this.faceVertexUvs[t].splice(e,1)}const o=this.vertices.length-e.length;return this.vertices=e,o},setFromPoints:function(t){this.vertices=[];for(let e=0,i=t.length;e<i;e++){const i=t[e];this.vertices.push(new gt(i.x,i.y,i.z||0))}return this},sortFacesByMaterialIndex:function(){const t=this.faces,e=t.length;for(let i=0;i<e;i++)t[i]._id=i;t.sort((function(t,e){return t.materialIndex-e.materialIndex}));const i=this.faceVertexUvs[0],n=this.faceVertexUvs[1];let r,o;i&&i.length===e&&(r=[]),n&&n.length===e&&(o=[]);for(let a=0;a<e;a++){const e=t[a]._id;r&&r.push(i[e]),o&&o.push(n[e])}r&&(this.faceVertexUvs[0]=r),o&&(this.faceVertexUvs[1]=o)},toJSON:function(){const t={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),void 0!==this.parameters){const e=this.parameters;for(const i in e)void 0!==e[i]&&(t[i]=e[i]);return t}const e=[];for(let t=0;t<this.vertices.length;t++){const i=this.vertices[t];e.push(i.x,i.y,i.z)}const i=[],n=[],r={},o=[],a={},s=[],l={};for(let t=0;t<this.faces.length;t++){const e=this.faces[t],n=!0,r=!1,o=void 0!==this.faceVertexUvs[0][t],a=e.normal.length()>0,s=e.vertexNormals.length>0,l=1!==e.color.r||1!==e.color.g||1!==e.color.b,u=e.vertexColors.length>0;let p=0;if(p=A(p,0,0),p=A(p,1,n),p=A(p,2,r),p=A(p,3,o),p=A(p,4,a),p=A(p,5,s),p=A(p,6,l),p=A(p,7,u),i.push(p),i.push(e.a,e.b,e.c),i.push(e.materialIndex),o){const e=this.faceVertexUvs[0][t];i.push(d(e[0]),d(e[1]),d(e[2]))}if(a&&i.push(c(e.normal)),s){const t=e.vertexNormals;i.push(c(t[0]),c(t[1]),c(t[2]))}if(l&&i.push(h(e.color)),u){const t=e.vertexColors;i.push(h(t[0]),h(t[1]),h(t[2]))}}function A(t,e,i){return i?t|1<<e:t&~(1<<e)}function c(t){const e=t.x.toString()+t.y.toString()+t.z.toString();return void 0!==r[e]||(r[e]=n.length/3,n.push(t.x,t.y,t.z)),r[e]}function h(t){const e=t.r.toString()+t.g.toString()+t.b.toString();return void 0!==a[e]||(a[e]=o.length,o.push(t.getHex())),a[e]}function d(t){const e=t.x.toString()+t.y.toString();return void 0!==l[e]||(l[e]=s.length/2,s.push(t.x,t.y)),l[e]}return t.data={},t.data.vertices=e,t.data.normals=n,o.length>0&&(t.data.colors=o),s.length>0&&(t.data.uvs=[s]),t.data.faces=i,t},clone:function(){return(new oa).copy(this)},copy:function(t){this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;const e=t.vertices;for(let t=0,i=e.length;t<i;t++)this.vertices.push(e[t].clone());const i=t.colors;for(let t=0,e=i.length;t<e;t++)this.colors.push(i[t].clone());const n=t.faces;for(let t=0,e=n.length;t<e;t++)this.faces.push(n[t].clone());for(let e=0,i=t.faceVertexUvs.length;e<i;e++){const i=t.faceVertexUvs[e];void 0===this.faceVertexUvs[e]&&(this.faceVertexUvs[e]=[]);for(let t=0,n=i.length;t<n;t++){const n=i[t],r=[];for(let t=0,e=n.length;t<e;t++){const e=n[t];r.push(e.clone())}this.faceVertexUvs[e].push(r)}}const r=t.morphTargets;for(let t=0,e=r.length;t<e;t++){const e={};if(e.name=r[t].name,void 0!==r[t].vertices){e.vertices=[];for(let i=0,n=r[t].vertices.length;i<n;i++)e.vertices.push(r[t].vertices[i].clone())}if(void 0!==r[t].normals){e.normals=[];for(let i=0,n=r[t].normals.length;i<n;i++)e.normals.push(r[t].normals[i].clone())}this.morphTargets.push(e)}const o=t.morphNormals;for(let t=0,e=o.length;t<e;t++){const e={};if(void 0!==o[t].vertexNormals){e.vertexNormals=[];for(let i=0,n=o[t].vertexNormals.length;i<n;i++){const n=o[t].vertexNormals[i],r={};r.a=n.a.clone(),r.b=n.b.clone(),r.c=n.c.clone(),e.vertexNormals.push(r)}}if(void 0!==o[t].faceNormals){e.faceNormals=[];for(let i=0,n=o[t].faceNormals.length;i<n;i++)e.faceNormals.push(o[t].faceNormals[i].clone())}this.morphNormals.push(e)}const a=t.skinWeights;for(let t=0,e=a.length;t<e;t++)this.skinWeights.push(a[t].clone());const s=t.skinIndices;for(let t=0,e=s.length;t<e;t++)this.skinIndices.push(s[t].clone());const l=t.lineDistances;for(let t=0,e=l.length;t<e;t++)this.lineDistances.push(l[t])
;const A=t.boundingBox;null!==A&&(this.boundingBox=A.clone());const c=t.boundingSphere;return null!==c&&(this.boundingSphere=c.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});new gt,new gt,new gt,new ke;const aa=function(t,e,i){i=i||2;const n=e&&e.length,r=n?e[0]*i:t.length;let o=sa(t,0,r,i,!0);const a=[];if(!o||o.next===o.prev)return a;let s,l,A,c,h,d,u;if(n&&(o=function(t,e,i,n){const r=[];let o,a,s,l,A;for(o=0,a=e.length;o<a;o++)s=e[o]*n,l=o<a-1?e[o+1]*n:t.length,A=sa(t,s,l,n,!1),A===A.next&&(A.steiner=!0),r.push(ya(A));for(r.sort(pa),o=0;o<r.length;o++)ga(r[o],i),i=la(i,i.next);return i}(t,e,o,i)),t.length>80*i){s=A=t[0],l=c=t[1];for(let e=i;e<r;e+=i)h=t[e],d=t[e+1],h<s&&(s=h),d<l&&(l=d),h>A&&(A=h),d>c&&(c=d);u=Math.max(A-s,c-l),u=0!==u?1/u:0}return Aa(o,a,i,s,l,u),a};function sa(t,e,i,n,r){let o,a;if(r===function(t,e,i,n){let r=0;for(let o=e,a=i-n;o<i;o+=n)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}(t,e,i,n)>0)for(o=e;o<i;o+=n)a=Sa(o,t[o],t[o+1],a);else for(o=i-n;o>=e;o-=n)a=Sa(o,t[o],t[o+1],a);return a&&Ia(a,a.next)&&(ka(a),a=a.next),a}function la(t,e){if(!t)return t;e||(e=t);let i,n=t;do{if(i=!1,n.steiner||!Ia(n,n.next)&&0!==Ea(n.prev,n,n.next))n=n.next;else{if(ka(n),n=e=n.prev,n===n.next)break;i=!0}}while(i||n!==e);return e}function Aa(t,e,i,n,r,o,a){if(!t)return;!a&&o&&function(t,e,i,n){let r=t;do{null===r.z&&(r.z=ma(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){let e,i,n,r,o,a,s,l,A=1;do{for(i=t,t=null,o=null,a=0;i;){for(a++,n=i,s=0,e=0;e<A&&(s++,n=n.nextZ,n);e++);for(l=A;s>0||l>0&&n;)0!==s&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,s--):(r=n,n=n.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;i=n}o.nextZ=null,A*=2}while(a>1)}(r)}(t,n,r,o);let s,l,A=t;for(;t.prev!==t.next;)if(s=t.prev,l=t.next,o?ha(t,n,r,o):ca(t))e.push(s.i/i),e.push(t.i/i),e.push(l.i/i),ka(t),t=l.next,A=l.next;else if((t=l)===A){a?1===a?Aa(t=da(la(t),e,i),e,i,n,r,o,2):2===a&&ua(t,e,i,n,r,o):Aa(la(t),e,i,n,r,o,1);break}}function ca(t){const e=t.prev,i=t,n=t.next;if(Ea(e,i,n)>=0)return!1;let r=t.next.next;for(;r!==t.prev;){if(ba(e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y)&&Ea(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function ha(t,e,i,n){const r=t.prev,o=t,a=t.next;if(Ea(r,o,a)>=0)return!1;const s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,l=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,A=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,c=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,h=ma(s,l,e,i,n),d=ma(A,c,e,i,n);let u=t.prevZ,p=t.nextZ;for(;u&&u.z>=h&&p&&p.z<=d;){if(u!==t.prev&&u!==t.next&&ba(r.x,r.y,o.x,o.y,a.x,a.y,u.x,u.y)&&Ea(u.prev,u,u.next)>=0)return!1;if(u=u.prevZ,p!==t.prev&&p!==t.next&&ba(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Ea(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;u&&u.z>=h;){if(u!==t.prev&&u!==t.next&&ba(r.x,r.y,o.x,o.y,a.x,a.y,u.x,u.y)&&Ea(u.prev,u,u.next)>=0)return!1;u=u.prevZ}for(;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&ba(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Ea(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function da(t,e,i){let n=t;do{const r=n.prev,o=n.next.next;!Ia(r,o)&&Ca(r,n,n.next,o)&&xa(r,o)&&xa(o,r)&&(e.push(r.i/i),e.push(n.i/i),e.push(o.i/i),ka(n),ka(n.next),n=t=o),n=n.next}while(n!==t);return la(n)}function ua(t,e,i,n,r,o){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&va(a,t)){let s=Qa(a,t);return a=la(a,a.next),s=la(s,s.next),Aa(a,e,i,n,r,o),void Aa(s,e,i,n,r,o)}t=t.next}a=a.next}while(a!==t)}function pa(t,e){return t.x-e.x}function ga(t,e){if(e=function(t,e){let i=e;const n=t.x,r=t.y;let o,a=-1/0;do{if(r<=i.y&&r>=i.next.y&&i.next.y!==i.y){const t=i.x+(r-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(t<=n&&t>a){if(a=t,t===n){if(r===i.y)return i;if(r===i.next.y)return i.next}o=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!o)return null;if(n===a)return o;const s=o,l=o.x,A=o.y;let c,h=1/0;i=o;do{n>=i.x&&i.x>=l&&n!==i.x&&ba(r<A?n:a,r,l,A,r<A?a:n,r,i.x,i.y)&&(c=Math.abs(r-i.y)/(n-i.x),xa(i,t)&&(c<h||c===h&&(i.x>o.x||i.x===o.x&&fa(o,i)))&&(o=i,h=c)),i=i.next}while(i!==s);return o}(t,e),e){const i=Qa(e,t);la(e,e.next),la(i,i.next)}}function fa(t,e){return Ea(t.prev,t,e.prev)<0&&Ea(e.next,t,t.next)<0}function ma(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function ya(t){let e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next}while(e!==t);return i}function ba(t,e,i,n,r,o,a,s){return(r-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(n-s)-(i-a)*(e-s)>=0&&(i-a)*(o-s)-(r-a)*(n-s)>=0}function va(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&Ca(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(xa(t,e)&&xa(e,t)&&function(t,e){let i=t,n=!1;const r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&r<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)&&(Ea(t.prev,t,e.prev)||Ea(t,e.prev,e))||Ia(t,e)&&Ea(t.prev,t,t.next)>0&&Ea(e.prev,e,e.next)>0)}function Ea(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function Ia(t,e){return t.x===e.x&&t.y===e.y}function Ca(t,e,i,n){const r=wa(Ea(t,e,i)),o=wa(Ea(t,e,n)),a=wa(Ea(i,n,t)),s=wa(Ea(i,n,e));return r!==o&&a!==s||(!(0!==r||!Ba(t,i,e))||(!(0!==o||!Ba(t,n,e))||(!(0!==a||!Ba(i,t,n))||!(0!==s||!Ba(i,e,n)))))}function Ba(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function wa(t){return t>0?1:t<0?-1:0}function xa(t,e){return Ea(t.prev,t,t.next)<0?Ea(t,e,t.next)>=0&&Ea(t,t.prev,e)>=0:Ea(t,e,t.prev)<0||Ea(t,t.next,e)<0}function Qa(t,e){const i=new Da(t.i,t.x,t.y),n=new Da(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,o.next=n,n.prev=o,n}function Sa(t,e,i,n){const r=new Da(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function ka(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Da(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}const _a={area:function(t){const e=t.length;let i=0;for(let n=e-1,r=0;r<e;n=r++)i+=t[n].x*t[r].y-t[r].x*t[n].y;return.5*i},isClockWise:function(t){return _a.area(t)<0},triangulateShape:function(t,e){const i=[],n=[],r=[];Ra(t),Ma(i,t);let o=t.length;e.forEach(Ra);for(let t=0;t<e.length;t++)n.push(o),o+=e[t].length,Ma(i,e[t]);const a=aa(i,n);for(let t=0;t<a.length;t+=3)r.push(a.slice(t,t+3));return r}};function Ra(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function Ma(t,e){for(let i=0;i<e.length;i++)t.push(e[i].x),t.push(e[i].y)}class Ta extends li{constructor(t,e){super(),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const i=this,n=[],r=[];for(let e=0,i=t.length;e<i;e++){o(t[e])}function o(t){const o=[],a=void 0!==e.curveSegments?e.curveSegments:12,s=void 0!==e.steps?e.steps:1;let l=void 0!==e.depth?e.depth:100,A=void 0===e.bevelEnabled||e.bevelEnabled,c=void 0!==e.bevelThickness?e.bevelThickness:6,h=void 0!==e.bevelSize?e.bevelSize:c-2,d=void 0!==e.bevelOffset?e.bevelOffset:0,u=void 0!==e.bevelSegments?e.bevelSegments:3;const p=e.extrudePath,g=void 0!==e.UVGenerator?e.UVGenerator:Fa;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=e.amount);let f,m,y,b,v,E=!1;p&&(f=p.getSpacedPoints(s),E=!0,A=!1,m=p.computeFrenetFrames(s,!1),y=new gt,b=new gt,v=new gt),A||(u=0,c=0,h=0,d=0);const I=t.extractPoints(a);let C=I.shape;const B=I.holes;if(!_a.isClockWise(C)){C=C.reverse();for(let t=0,e=B.length;t<e;t++){const e=B[t];_a.isClockWise(e)&&(B[t]=e.reverse())}}const w=_a.triangulateShape(C,B),x=C;for(let t=0,e=B.length;t<e;t++){
const e=B[t];C=C.concat(e)}function Q(t,e,i){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(i).add(t)}const S=C.length,k=w.length;function D(t,e,i){let n,r,o;const a=t.x-e.x,s=t.y-e.y,l=i.x-t.x,A=i.y-t.y,c=a*a+s*s,h=a*A-s*l;if(Math.abs(h)>Number.EPSILON){const h=Math.sqrt(c),d=Math.sqrt(l*l+A*A),u=e.x-s/h,p=e.y+a/h,g=((i.x-A/d-u)*A-(i.y+l/d-p)*l)/(a*A-s*l);n=u+a*g-t.x,r=p+s*g-t.y;const f=n*n+r*r;if(f<=2)return new ot(n,r);o=Math.sqrt(f/2)}else{let t=!1;a>Number.EPSILON?l>Number.EPSILON&&(t=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(t=!0):Math.sign(s)===Math.sign(A)&&(t=!0),t?(n=-s,r=a,o=Math.sqrt(c)):(n=a,r=s,o=Math.sqrt(c/2))}return new ot(n/o,r/o)}const _=[];for(let t=0,e=x.length,i=e-1,n=t+1;t<e;t++,i++,n++)i===e&&(i=0),n===e&&(n=0),_[t]=D(x[t],x[i],x[n]);const R=[];let M,T=_.concat();for(let t=0,e=B.length;t<e;t++){const e=B[t];M=[];for(let t=0,i=e.length,n=i-1,r=t+1;t<i;t++,n++,r++)n===i&&(n=0),r===i&&(r=0),M[t]=D(e[t],e[n],e[r]);R.push(M),T=T.concat(M)}for(let t=0;t<u;t++){const e=t/u,i=c*Math.cos(e*Math.PI/2),n=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=x.length;t<e;t++){const e=Q(x[t],_[t],n);N(e.x,e.y,-i)}for(let t=0,e=B.length;t<e;t++){const e=B[t];M=R[t];for(let t=0,r=e.length;t<r;t++){const r=Q(e[t],M[t],n);N(r.x,r.y,-i)}}}const F=h+d;for(let t=0;t<S;t++){const e=A?Q(C[t],T[t],F):C[t];E?(b.copy(m.normals[0]).multiplyScalar(e.x),y.copy(m.binormals[0]).multiplyScalar(e.y),v.copy(f[0]).add(b).add(y),N(v.x,v.y,v.z)):N(e.x,e.y,0)}for(let t=1;t<=s;t++)for(let e=0;e<S;e++){const i=A?Q(C[e],T[e],F):C[e];E?(b.copy(m.normals[t]).multiplyScalar(i.x),y.copy(m.binormals[t]).multiplyScalar(i.y),v.copy(f[t]).add(b).add(y),N(v.x,v.y,v.z)):N(i.x,i.y,l/s*t)}for(let t=u-1;t>=0;t--){const e=t/u,i=c*Math.cos(e*Math.PI/2),n=h*Math.sin(e*Math.PI/2)+d;for(let t=0,e=x.length;t<e;t++){const e=Q(x[t],_[t],n);N(e.x,e.y,l+i)}for(let t=0,e=B.length;t<e;t++){const e=B[t];M=R[t];for(let t=0,r=e.length;t<r;t++){const r=Q(e[t],M[t],n);E?N(r.x,r.y+f[s-1].y,f[s-1].x+i):N(r.x,r.y,l+i)}}}function L(t,e){let i=t.length;for(;--i>=0;){const n=i;let r=i-1;r<0&&(r=t.length-1);for(let t=0,i=s+2*u;t<i;t++){const i=S*t,o=S*(t+1);U(e+n+i,e+r+i,e+r+o,e+n+o)}}}function N(t,e,i){o.push(t),o.push(e),o.push(i)}function P(t,e,r){O(t),O(e),O(r);const o=n.length/3,a=g.generateTopUV(i,n,o-3,o-2,o-1);G(a[0]),G(a[1]),G(a[2])}function U(t,e,r,o){O(t),O(e),O(o),O(e),O(r),O(o);const a=n.length/3,s=g.generateSideWallUV(i,n,a-6,a-3,a-2,a-1);G(s[0]),G(s[1]),G(s[3]),G(s[1]),G(s[2]),G(s[3])}function O(t){n.push(o[3*t+0]),n.push(o[3*t+1]),n.push(o[3*t+2])}function G(t){r.push(t.x),r.push(t.y)}!function(){const t=n.length/3;if(A){let t=0,e=S*t;for(let t=0;t<k;t++){const i=w[t];P(i[2]+e,i[1]+e,i[0]+e)}t=s+2*u,e=S*t;for(let t=0;t<k;t++){const i=w[t];P(i[0]+e,i[1]+e,i[2]+e)}}else{for(let t=0;t<k;t++){const e=w[t];P(e[2],e[1],e[0])}for(let t=0;t<k;t++){const e=w[t];P(e[0]+S*s,e[1]+S*s,e[2]+S*s)}}i.addGroup(t,n.length/3-t,0)}(),function(){const t=n.length/3;let e=0;L(x,e),e+=x.length;for(let t=0,i=B.length;t<i;t++){const i=B[t];L(i,e),e+=i.length}i.addGroup(t,n.length/3-t,1)}()}this.setAttribute("position",new Ke(n,3)),this.setAttribute("uv",new Ke(r,2)),this.computeVertexNormals()}toJSON(){const t=li.prototype.toJSON.call(this);return function(t,e,i){if(i.shapes=[],Array.isArray(t))for(let e=0,n=t.length;e<n;e++){const n=t[e];i.shapes.push(n.uuid)}else i.shapes.push(t.uuid);void 0!==e.extrudePath&&(i.options.extrudePath=e.extrudePath.toJSON());return i}(this.parameters.shapes,this.parameters.options,t)}}const Fa={generateTopUV:function(t,e,i,n,r){const o=e[3*i],a=e[3*i+1],s=e[3*n],l=e[3*n+1],A=e[3*r],c=e[3*r+1];return[new ot(o,a),new ot(s,l),new ot(A,c)]},generateSideWallUV:function(t,e,i,n,r,o){const a=e[3*i],s=e[3*i+1],l=e[3*i+2],A=e[3*n],c=e[3*n+1],h=e[3*n+2],d=e[3*r],u=e[3*r+1],p=e[3*r+2],g=e[3*o],f=e[3*o+1],m=e[3*o+2];return Math.abs(s-c)<.01?[new ot(a,1-l),new ot(A,1-h),new ot(d,1-p),new ot(g,1-m)]:[new ot(s,1-l),new ot(c,1-h),new ot(u,1-p),new ot(f,1-m)]}};class La extends oa{constructor(t,e){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new Ta(t,e)),this.mergeVertices()}toJSON(){const t=super.toJSON();return function(t,e,i){if(i.shapes=[],Array.isArray(t))for(let e=0,n=t.length;e<n;e++){const n=t[e];i.shapes.push(n.uuid)}else i.shapes.push(t.uuid);void 0!==e.extrudePath&&(i.options.extrudePath=e.extrudePath.toJSON());return i}(this.parameters.shapes,this.parameters.options,t)}}function Na(t,e,i){li.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:i};const n=[],r=[],o=[],a=[],s=1e-5,l=new gt,A=new gt,c=new gt,h=new gt,d=new gt;t.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");const u=e+1;for(let n=0;n<=i;n++){const u=n/i;for(let i=0;i<=e;i++){const n=i/e;t(n,u,A),r.push(A.x,A.y,A.z),n-s>=0?(t(n-s,u,c),h.subVectors(A,c)):(t(n+s,u,c),h.subVectors(c,A)),u-s>=0?(t(n,u-s,c),d.subVectors(A,c)):(t(n,u+s,c),d.subVectors(c,A)),l.crossVectors(h,d).normalize(),o.push(l.x,l.y,l.z),a.push(n,u)}}for(let t=0;t<i;t++)for(let i=0;i<e;i++){const e=t*u+i,r=t*u+i+1,o=(t+1)*u+i+1,a=(t+1)*u+i;n.push(e,r,a),n.push(r,o,a)}this.setIndex(n),this.setAttribute("position",new Ke(r,3)),this.setAttribute("normal",new Ke(o,3)),this.setAttribute("uv",new Ke(a,2))}function Pa(t,e,i){oa.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:i},this.fromBufferGeometry(new Na(t,e,i)),this.mergeVertices()}Na.prototype=Object.create(li.prototype),Na.prototype.constructor=Na,Pa.prototype=Object.create(oa.prototype),Pa.prototype.constructor=Pa;class Ua extends li{constructor(t,e){super(),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;const i=[],n=[],r=[],o=[];let a=0,s=0;if(!1===Array.isArray(t))l(t);else for(let e=0;e<t.length;e++)l(t[e]),this.addGroup(a,s,e),a+=s,s=0;function l(t){const a=n.length/3,l=t.extractPoints(e);let A=l.shape;const c=l.holes;!1===_a.isClockWise(A)&&(A=A.reverse());for(let t=0,e=c.length;t<e;t++){const e=c[t];!0===_a.isClockWise(e)&&(c[t]=e.reverse())}const h=_a.triangulateShape(A,c);for(let t=0,e=c.length;t<e;t++){const e=c[t];A=A.concat(e)}for(let t=0,e=A.length;t<e;t++){const e=A[t];n.push(e.x,e.y,0),r.push(0,0,1),o.push(e.x,e.y)}for(let t=0,e=h.length;t<e;t++){const e=h[t],n=e[0]+a,r=e[1]+a,o=e[2]+a;i.push(n,r,o),s+=3}}this.setIndex(i),this.setAttribute("position",new Ke(n,3)),this.setAttribute("normal",new Ke(r,3)),this.setAttribute("uv",new Ke(o,2))}toJSON(){const t=li.prototype.toJSON.call(this);return function(t,e){if(e.shapes=[],Array.isArray(t))for(let i=0,n=t.length;i<n;i++){const n=t[i];e.shapes.push(n.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}}class Oa extends oa{constructor(t,e){super(),this.type="ShapeGeometry","object"==typeof e&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new Ua(t,e)),this.mergeVertices()}toJSON(){const t=oa.prototype.toJSON.call(this);return function(t,e){if(e.shapes=[],Array.isArray(t))for(let i=0,n=t.length;i<n;i++){const n=t[i];e.shapes.push(n.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}}class Ga extends li{constructor(t,e,i,n,r,o,a){super(),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:r,thetaStart:o,thetaLength:a},t=t||1,e=Math.max(3,Math.floor(e)||8),i=Math.max(2,Math.floor(i)||6),n=void 0!==n?n:0,r=void 0!==r?r:2*Math.PI,o=void 0!==o?o:0,a=void 0!==a?a:Math.PI;const s=Math.min(o+a,Math.PI);let l=0;const A=[],c=new gt,h=new gt,d=[],u=[],p=[],g=[];for(let d=0;d<=i;d++){const f=[],m=d/i;let y=0;0==d&&0==o?y=.5/e:d==i&&s==Math.PI&&(y=-.5/e);for(let i=0;i<=e;i++){const s=i/e;c.x=-t*Math.cos(n+s*r)*Math.sin(o+m*a),c.y=t*Math.cos(o+m*a),c.z=t*Math.sin(n+s*r)*Math.sin(o+m*a),u.push(c.x,c.y,c.z),h.copy(c).normalize(),p.push(h.x,h.y,h.z),g.push(s+y,1-m),f.push(l++)}A.push(f)}for(let t=0;t<i;t++)for(let n=0;n<e;n++){const e=A[t][n+1],r=A[t][n],a=A[t+1][n],l=A[t+1][n+1]
;(0!==t||o>0)&&d.push(e,r,l),(t!==i-1||s<Math.PI)&&d.push(r,a,l)}this.setIndex(d),this.setAttribute("position",new Ke(u,3)),this.setAttribute("normal",new Ke(p,3)),this.setAttribute("uv",new Ke(g,2))}}function Ha(t){Ue.call(this),this.type="ShadowMaterial",this.color=new Le(0),this.transparent=!0,this.setValues(t)}function Va(t){Mi.call(this,t),this.type="RawShaderMaterial"}function Ya(t){Ue.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Le(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Le(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new ot(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.vertexTangents=!1,this.setValues(t)}function za(t){Ya.call(this),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoat=0,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new ot(1,1),this.clearcoatNormalMap=null,this.reflectivity=.5,Object.defineProperty(this,"ior",{get:function(){return(1+.4*this.reflectivity)/(1-.4*this.reflectivity)},set:function(t){this.reflectivity=rt.clamp(2.5*(t-1)/(t+1),0,1)}}),this.sheen=null,this.transmission=0,this.transmissionMap=null,this.setValues(t)}function Wa(t){Ue.call(this),this.type="MeshPhongMaterial",this.color=new Le(16777215),this.specular=new Le(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Le(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new ot(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function Za(t){Ue.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Le(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Le(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new ot(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function ja(t){Ue.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new ot(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function qa(t){Ue.call(this),this.type="MeshLambertMaterial",this.color=new Le(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Le(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function Ja(t){Ue.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Le(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new ot(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function Ka(t){Mo.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}Ha.prototype=Object.create(Ue.prototype),Ha.prototype.constructor=Ha,Ha.prototype.isShadowMaterial=!0,Ha.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this},Va.prototype=Object.create(Mi.prototype),Va.prototype.constructor=Va,Va.prototype.isRawShaderMaterial=!0,Ya.prototype=Object.create(Ue.prototype),Ya.prototype.constructor=Ya,Ya.prototype.isMeshStandardMaterial=!0,Ya.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.vertexTangents=t.vertexTangents,this},za.prototype=Object.create(Ya.prototype),za.prototype.constructor=za,za.prototype.isMeshPhysicalMaterial=!0,za.prototype.copy=function(t){return Ya.prototype.copy.call(this,t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.reflectivity=t.reflectivity,t.sheen?this.sheen=(this.sheen||new Le).copy(t.sheen):this.sheen=null,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this},Wa.prototype=Object.create(Ue.prototype),Wa.prototype.constructor=Wa,Wa.prototype.isMeshPhongMaterial=!0,Wa.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Za.prototype=Object.create(Ue.prototype),Za.prototype.constructor=Za,
Za.prototype.isMeshToonMaterial=!0,Za.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},ja.prototype=Object.create(Ue.prototype),ja.prototype.constructor=ja,ja.prototype.isMeshNormalMaterial=!0,ja.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},qa.prototype=Object.create(Ue.prototype),qa.prototype.constructor=qa,qa.prototype.isMeshLambertMaterial=!0,qa.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ja.prototype=Object.create(Ue.prototype),Ja.prototype.constructor=Ja,Ja.prototype.isMeshMatcapMaterial=!0,Ja.prototype.copy=function(t){return Ue.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ka.prototype=Object.create(Mo.prototype),Ka.prototype.constructor=Ka,Ka.prototype.isLineDashedMaterial=!0,Ka.prototype.copy=function(t){return Mo.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var Xa=Object.freeze({__proto__:null,ShadowMaterial:Ha,SpriteMaterial:no,RawShaderMaterial:Va,ShaderMaterial:Mi,PointsMaterial:Yo,MeshPhysicalMaterial:za,MeshStandardMaterial:Ya,MeshPhongMaterial:Wa,MeshToonMaterial:Za,MeshNormalMaterial:ja,MeshLambertMaterial:qa,MeshDepthMaterial:Or,MeshDistanceMaterial:Gr,MeshBasicMaterial:Oe,MeshMatcapMaterial:Ja,LineDashedMaterial:Ka,LineBasicMaterial:Mo,Material:Ue});const $a={arraySlice:function(t,e,i){return $a.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==i?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){const e=t.length,i=new Array(e);for(let t=0;t!==e;++t)i[t]=t;return i.sort((function(e,i){return t[e]-t[i]})),i},sortedArray:function(t,e,i){const n=t.length,r=new t.constructor(n);for(let o=0,a=0;a!==n;++o){const n=i[o]*e;for(let i=0;i!==e;++i)r[a++]=t[n+i]}return r},flattenJSON:function(t,e,i,n){let r=1,o=t[0];for(;void 0!==o&&void 0===o[n];)o=t[r++];if(void 0===o)return;let a=o[n];if(void 0!==a)if(Array.isArray(a))do{a=o[n],void 0!==a&&(e.push(o.time),i.push.apply(i,a)),o=t[r++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[n],void 0!==a&&(e.push(o.time),a.toArray(i,i.length)),o=t[r++]}while(void 0!==o);else do{a=o[n],void 0!==a&&(e.push(o.time),i.push(a)),o=t[r++]}while(void 0!==o)},subclip:function(t,e,i,n,r){r=r||30;const o=t.clone();o.name=e;const a=[];for(let t=0;t<o.tracks.length;++t){const e=o.tracks[t],s=e.getValueSize(),l=[],A=[];for(let t=0;t<e.times.length;++t){const o=e.times[t]*r;if(!(o<i||o>=n)){l.push(e.times[t]);for(let i=0;i<s;++i)A.push(e.values[t*s+i])}}0!==l.length&&(e.times=$a.convertArray(l,e.times.constructor),e.values=$a.convertArray(A,e.values.constructor),a.push(e))}o.tracks=a;let s=1/0;for(let t=0;t<o.tracks.length;++t)s>o.tracks[t].times[0]&&(s=o.tracks[t].times[0]);for(let t=0;t<o.tracks.length;++t)o.tracks[t].shift(-1*s);return o.resetDuration(),o},makeClipAdditive:function(t,e,i,n){void 0===e&&(e=0),void 0===i&&(i=t),(void 0===n||n<=0)&&(n=30);const r=i.tracks.length,o=e/n;for(let e=0;e<r;++e){const n=i.tracks[e],r=n.ValueTypeName;if("bool"===r||"string"===r)continue;const a=t.tracks.find((function(t){return t.name===n.name&&t.ValueTypeName===r}));if(void 0===a)continue;let s=0;const l=n.getValueSize();n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=l/3);let A=0;const c=a.getValueSize();a.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(A=c/3);const h=n.times.length-1;let d;if(o<=n.times[0]){const t=s,e=l-s;d=$a.arraySlice(n.values,t,e)}else if(o>=n.times[h]){const t=h*l+s,e=t+l-s;d=$a.arraySlice(n.values,t,e)}else{const t=n.createInterpolant(),e=s,i=l-s;t.evaluate(o),d=$a.arraySlice(t.resultBuffer,e,i)}if("quaternion"===r){(new pt).fromArray(d).normalize().conjugate().toArray(d)}const u=a.times.length;for(let t=0;t<u;++t){const e=t*c+A;if("quaternion"===r)pt.multiplyQuaternionsFlat(a.values,e,d,0,a.values,e);else{const t=c-2*A;for(let i=0;i<t;++i)a.values[e+i]-=d[i]}}}return t.blendMode=2501,t}};function ts(t,e,i,n){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==n?n:new e.constructor(i),this.sampleValues=e,this.valueSize=i}function es(t,e,i,n){ts.call(this,t,e,i,n),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function is(t,e,i,n){ts.call(this,t,e,i,n)}function ns(t,e,i,n){ts.call(this,t,e,i,n)}function rs(t,e,i,n){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=$a.convertArray(e,this.TimeBufferType),this.values=$a.convertArray(i,this.ValueBufferType),this.setInterpolation(n||this.DefaultInterpolation)}function os(t,e,i){rs.call(this,t,e,i)}function as(t,e,i,n){rs.call(this,t,e,i,n)}function ss(t,e,i,n){rs.call(this,t,e,i,n)}function ls(t,e,i,n){ts.call(this,t,e,i,n)}function As(t,e,i,n){rs.call(this,t,e,i,n)}function cs(t,e,i,n){rs.call(this,t,e,i,n)}function hs(t,e,i,n){rs.call(this,t,e,i,n)}function ds(t,e,i,n){this.name=t,this.tracks=i,this.duration=void 0!==e?e:-1,this.blendMode=void 0!==n?n:W,this.uuid=rt.generateUUID(),this.duration<0&&this.resetDuration()}function us(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return ss;case"vector":case"vector2":case"vector3":case"vector4":return hs;case"color":return as;case"quaternion":return As;case"bool":case"boolean":return os;case"string":return cs}
throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){const e=[],i=[];$a.flattenJSON(t.keys,e,i,"value"),t.times=e,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}Object.assign(ts.prototype,{evaluate:function(t){const e=this.parameterPositions;let i=this._cachedIndex,n=e[i],r=e[i-1];t:{e:{let o;i:{n:if(!(t<n)){for(let o=i+2;;){if(void 0===n){if(t<r)break n;return i=e.length,this._cachedIndex=i,this.afterEnd_(i-1,t,r)}if(i===o)break;if(r=n,n=e[++i],t<n)break e}o=e.length;break i}if(t>=r)break t;{const a=e[1];t<a&&(i=2,r=a);for(let o=i-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(i===o)break;if(n=r,r=e[--i-1],t>=r)break e}o=i,i=0}}for(;i<o;){const n=i+o>>>1;t<e[n]?o=n:i=n+1}if(n=e[i],r=e[i-1],void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,n);if(void 0===n)return i=e.length,this._cachedIndex=i,this.afterEnd_(i-1,r,t)}this._cachedIndex=i,this.intervalChanged_(i,r,n)}return this.interpolate_(i,r,t,n)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){const e=this.resultBuffer,i=this.sampleValues,n=this.valueSize,r=t*n;for(let t=0;t!==n;++t)e[t]=i[r+t];return e},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(ts.prototype,{beforeStart_:ts.prototype.copySampleValue_,afterEnd_:ts.prototype.copySampleValue_}),es.prototype=Object.assign(Object.create(ts.prototype),{constructor:es,DefaultSettings_:{endingStart:V,endingEnd:V},intervalChanged_:function(t,e,i){const n=this.parameterPositions;let r=t-2,o=t+1,a=n[r],s=n[o];if(void 0===a)switch(this.getSettings_().endingStart){case Y:r=t,a=2*e-i;break;case z:r=n.length-2,a=e+n[r]-n[r+1];break;default:r=t,a=i}if(void 0===s)switch(this.getSettings_().endingEnd){case Y:o=t,s=2*i-e;break;case z:o=1,s=i+n[1]-n[0];break;default:o=t-1,s=e}const l=.5*(i-e),A=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(s-i),this._offsetPrev=r*A,this._offsetNext=o*A},interpolate_:function(t,e,i,n){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,A=this._offsetPrev,c=this._offsetNext,h=this._weightPrev,d=this._weightNext,u=(i-e)/(n-e),p=u*u,g=p*u,f=-h*g+2*h*p-h*u,m=(1+h)*g+(-1.5-2*h)*p+(-.5+h)*u+1,y=(-1-d)*g+(1.5+d)*p+.5*u,b=d*g-d*p;for(let t=0;t!==a;++t)r[t]=f*o[A+t]+m*o[l+t]+y*o[s+t]+b*o[c+t];return r}}),is.prototype=Object.assign(Object.create(ts.prototype),{constructor:is,interpolate_:function(t,e,i,n){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,A=(i-e)/(n-e),c=1-A;for(let t=0;t!==a;++t)r[t]=o[l+t]*c+o[s+t]*A;return r}}),ns.prototype=Object.assign(Object.create(ts.prototype),{constructor:ns,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(rs,{toJSON:function(t){const e=t.constructor;let i;if(void 0!==e.toJSON)i=e.toJSON(t);else{i={name:t.name,times:$a.convertArray(t.times,Array),values:$a.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(i.interpolation=e)}return i.type=t.ValueTypeName,i}}),Object.assign(rs.prototype,{constructor:rs,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:G,InterpolantFactoryMethodDiscrete:function(t){return new ns(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new is(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new es(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){let e;switch(t){case O:e=this.InterpolantFactoryMethodDiscrete;break;case G:e=this.InterpolantFactoryMethodLinear;break;case H:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return O;case this.InterpolantFactoryMethodLinear:return G;case this.InterpolantFactoryMethodSmooth:return H}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t){const e=this.times;for(let i=0,n=e.length;i!==n;++i)e[i]+=t}return this},scale:function(t){if(1!==t){const e=this.times;for(let i=0,n=e.length;i!==n;++i)e[i]*=t}return this},trim:function(t,e){const i=this.times,n=i.length;let r=0,o=n-1;for(;r!==n&&i[r]<t;)++r;for(;-1!==o&&i[o]>e;)--o;if(++o,0!==r||o!==n){r>=o&&(o=Math.max(o,1),r=o-1);const t=this.getValueSize();this.times=$a.arraySlice(i,r,o),this.values=$a.arraySlice(this.values,r*t,o*t)}return this},validate:function(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const i=this.times,n=this.values,r=i.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let e=0;e!==r;e++){const n=i[e];if("number"==typeof n&&isNaN(n)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,n),t=!1;break}if(null!==o&&o>n){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,n,o),t=!1;break}o=n}if(void 0!==n&&$a.isTypedArray(n))for(let e=0,i=n.length;e!==i;++e){const i=n[e];if(isNaN(i)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,i),t=!1;break}}return t},optimize:function(){const t=$a.arraySlice(this.times),e=$a.arraySlice(this.values),i=this.getValueSize(),n=this.getInterpolation()===H,r=t.length-1;let o=1;for(let a=1;a<r;++a){let r=!1;const s=t[a];if(s!==t[a+1]&&(1!==a||s!==s[0]))if(n)r=!0;else{const t=a*i,n=t-i,o=t+i;for(let a=0;a!==i;++a){const i=e[t+a];if(i!==e[n+a]||i!==e[o+a]){r=!0;break}}}if(r){if(a!==o){t[o]=t[a];const n=a*i,r=o*i;for(let t=0;t!==i;++t)e[r+t]=e[n+t]}++o}}if(r>0){t[o]=t[r];for(let t=r*i,n=o*i,a=0;a!==i;++a)e[n+a]=e[t+a];++o}return o!==t.length?(this.times=$a.arraySlice(t,0,o),this.values=$a.arraySlice(e,0,o*i)):(this.times=t,this.values=e),this},clone:function(){const t=$a.arraySlice(this.times,0),e=$a.arraySlice(this.values,0),i=new(0,this.constructor)(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}),os.prototype=Object.assign(Object.create(rs.prototype),{constructor:os,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:O,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),as.prototype=Object.assign(Object.create(rs.prototype),{constructor:as,ValueTypeName:"color"}),ss.prototype=Object.assign(Object.create(rs.prototype),{constructor:ss,ValueTypeName:"number"}),ls.prototype=Object.assign(Object.create(ts.prototype),{constructor:ls,interpolate_:function(t,e,i,n){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(i-e)/(n-e);let l=t*a;for(let t=l+a;l!==t;l+=4)pt.slerpFlat(r,0,o,l-a,o,l,s);return r}}),As.prototype=Object.assign(Object.create(rs.prototype),{constructor:As,ValueTypeName:"quaternion",DefaultInterpolation:G,InterpolantFactoryMethodLinear:function(t){return new ls(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),cs.prototype=Object.assign(Object.create(rs.prototype),{constructor:cs,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:O,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),hs.prototype=Object.assign(Object.create(rs.prototype),{constructor:hs,ValueTypeName:"vector"}),Object.assign(ds,{parse:function(t){const e=[],i=t.tracks,n=1/(t.fps||1);for(let t=0,r=i.length;t!==r;++t)e.push(us(i[t]).scale(n));return new ds(t.name,t.duration,e,t.blendMode)},toJSON:function(t){const e=[],i=t.tracks,n={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,n=i.length;t!==n;++t)e.push(rs.toJSON(i[t]));return n},CreateFromMorphTargetSequence:function(t,e,i,n){const r=e.length,o=[];for(let t=0;t<r;t++){let a=[],s=[];a.push((t+r-1)%r,t,(t+1)%r),s.push(0,1,0)
;const l=$a.getKeyframeOrder(a);a=$a.sortedArray(a,1,l),s=$a.sortedArray(s,1,l),n||0!==a[0]||(a.push(r),s.push(s[0])),o.push(new ss(".morphTargetInfluences["+e[t].name+"]",a,s).scale(1/i))}return new ds(t,-1,o)},findByName:function(t,e){let i=t;if(!Array.isArray(t)){const e=t;i=e.geometry&&e.geometry.animations||e.animations}for(let t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null},CreateClipsFromMorphTargetSequences:function(t,e,i){const n={},r=/^([\w-]*?)([\d]+)$/;for(let e=0,i=t.length;e<i;e++){const i=t[e],o=i.name.match(r);if(o&&o.length>1){const t=o[1];let e=n[t];e||(n[t]=e=[]),e.push(i)}}const o=[];for(const t in n)o.push(ds.CreateFromMorphTargetSequence(t,n[t],e,i));return o},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(t,e,i,n,r){if(0!==i.length){const o=[],a=[];$a.flattenJSON(i,o,a,n),0!==o.length&&r.push(new t(e,o,a))}},n=[],r=t.name||"default",o=t.fps||30,a=t.blendMode;let s=t.length||-1;const l=t.hierarchy||[];for(let t=0;t<l.length;t++){const r=l[t].keys;if(r&&0!==r.length)if(r[0].morphTargets){const t={};let e;for(e=0;e<r.length;e++)if(r[e].morphTargets)for(let i=0;i<r[e].morphTargets.length;i++)t[r[e].morphTargets[i]]=-1;for(const i in t){const t=[],o=[];for(let n=0;n!==r[e].morphTargets.length;++n){const n=r[e];t.push(n.time),o.push(n.morphTarget===i?1:0)}n.push(new ss(".morphTargetInfluence["+i+"]",t,o))}s=t.length*(o||1)}else{const o=".bones["+e[t].name+"]";i(hs,o+".position",r,"pos",n),i(As,o+".quaternion",r,"rot",n),i(hs,o+".scale",r,"scl",n)}}if(0===n.length)return null;return new ds(r,s,n,a)}}),Object.assign(ds.prototype,{resetDuration:function(){let t=0;for(let e=0,i=this.tracks.length;e!==i;++e){const i=this.tracks[e];t=Math.max(t,i.times[i.times.length-1])}return this.duration=t,this},trim:function(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this},clone:function(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new ds(this.name,this.duration,t,this.blendMode)}});const ps={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};function gs(t,e,i){const n=this;let r,o=!1,a=0,s=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=i,this.itemStart=function(t){s++,!1===o&&void 0!==n.onStart&&n.onStart(t,a,s),o=!0},this.itemEnd=function(t){a++,void 0!==n.onProgress&&n.onProgress(t,a,s),a===s&&(o=!1,void 0!==n.onLoad&&n.onLoad())},this.itemError=function(t){void 0!==n.onError&&n.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,i=l.length;e<i;e+=2){const i=l[e],n=l[e+1];if(i.global&&(i.lastIndex=0),i.test(t))return n}return null}}const fs=new gs;function ms(t){this.manager=void 0!==t?t:fs,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}Object.assign(ms.prototype,{load:function(){},loadAsync:function(t,e){const i=this;return new Promise((function(n,r){i.load(t,n,e,r)}))},parse:function(){},setCrossOrigin:function(t){return this.crossOrigin=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}});const ys={};function bs(t){ms.call(this,t)}function vs(t){ms.call(this,t)}function Es(t){ms.call(this,t)}function Is(t){ms.call(this,t)}function Cs(t){ms.call(this,t)}function Bs(t){ms.call(this,t)}function ws(t){ms.call(this,t)}function xs(){this.type="Curve",this.arcLengthDivisions=200}function Qs(t,e,i,n,r,o,a,s){xs.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=i||1,this.yRadius=n||1,this.aStartAngle=r||0,this.aEndAngle=o||2*Math.PI,this.aClockwise=a||!1,this.aRotation=s||0}function Ss(t,e,i,n,r,o){Qs.call(this,t,e,i,i,n,r,o),this.type="ArcCurve"}function ks(){let t=0,e=0,i=0,n=0;function r(r,o,a,s){t=r,e=a,i=-3*r+3*o-2*a-s,n=2*r-2*o+a+s}return{initCatmullRom:function(t,e,i,n,o){r(e,i,o*(i-t),o*(n-e))},initNonuniformCatmullRom:function(t,e,i,n,o,a,s){let l=(e-t)/o-(i-t)/(o+a)+(i-e)/a,A=(i-e)/a-(n-e)/(a+s)+(n-i)/s;l*=a,A*=a,r(e,i,l,A)},calc:function(r){const o=r*r;return t+e*r+i*o+n*(o*r)}}}bs.prototype=Object.assign(Object.create(ms.prototype),{constructor:bs,load:function(t,e,i,n){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,o=ps.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;if(void 0!==ys[t])return void ys[t].push({onLoad:e,onProgress:i,onError:n});const a=t.match(/^data:(.*?)(;base64)?,(.*)$/);let s;if(a){const i=a[1],o=!!a[2];let s=a[3];s=decodeURIComponent(s),o&&(s=atob(s));try{let n;const o=(this.responseType||"").toLowerCase();switch(o){case"arraybuffer":case"blob":const t=new Uint8Array(s.length);for(let e=0;e<s.length;e++)t[e]=s.charCodeAt(e);n="blob"===o?new Blob([t.buffer],{type:i}):t.buffer;break;case"document":const e=new DOMParser;n=e.parseFromString(s,i);break;case"json":n=JSON.parse(s);break;default:n=s}setTimeout((function(){e&&e(n),r.manager.itemEnd(t)}),0)}catch(e){setTimeout((function(){n&&n(e),r.manager.itemError(t),r.manager.itemEnd(t)}),0)}}else{ys[t]=[],ys[t].push({onLoad:e,onProgress:i,onError:n}),s=new XMLHttpRequest,s.open("GET",t,!0),s.addEventListener("load",(function(e){const i=this.response,n=ys[t];if(delete ys[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),ps.add(t,i);for(let t=0,e=n.length;t<e;t++){const e=n[t];e.onLoad&&e.onLoad(i)}r.manager.itemEnd(t)}else{for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onError&&i.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}}),!1),s.addEventListener("progress",(function(e){const i=ys[t];for(let t=0,n=i.length;t<n;t++){const n=i[t];n.onProgress&&n.onProgress(e)}}),!1),s.addEventListener("error",(function(e){const i=ys[t];delete ys[t];for(let t=0,n=i.length;t<n;t++){const n=i[t];n.onError&&n.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}),!1),s.addEventListener("abort",(function(e){const i=ys[t];delete ys[t];for(let t=0,n=i.length;t<n;t++){const n=i[t];n.onError&&n.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}),!1),void 0!==this.responseType&&(s.responseType=this.responseType),void 0!==this.withCredentials&&(s.withCredentials=this.withCredentials),s.overrideMimeType&&s.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain");for(const t in this.requestHeader)s.setRequestHeader(t,this.requestHeader[t]);s.send(null)}return r.manager.itemStart(t),s},setResponseType:function(t){return this.responseType=t,this},setMimeType:function(t){return this.mimeType=t,this}}),vs.prototype=Object.assign(Object.create(ms.prototype),{constructor:vs,load:function(t,e,i,n){const r=this,o=new bs(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(i){try{e(r.parse(JSON.parse(i)))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}}),i,n)},parse:function(t){const e=[];for(let i=0;i<t.length;i++){const n=ds.parse(t[i]);e.push(n)}return e}}),Es.prototype=Object.assign(Object.create(ms.prototype),{constructor:Es,load:function(t,e,i,n){const r=this,o=[],a=new Xo;a.image=o;const s=new bs(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(r.withCredentials);let l=0;function A(A){s.load(t[A],(function(t){const i=r.parse(t,!0);o[A]={width:i.width,height:i.height,
format:i.format,mipmaps:i.mipmaps},l+=1,6===l&&(1===i.mipmapCount&&(a.minFilter=Q),a.format=i.format,a.needsUpdate=!0,e&&e(a))}),i,n)}if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)A(e);else s.load(t,(function(t){const i=r.parse(t,!0);if(i.isCubemap){const t=i.mipmaps.length/i.mipmapCount;for(let e=0;e<t;e++){o[e]={mipmaps:[]};for(let t=0;t<i.mipmapCount;t++)o[e].mipmaps.push(i.mipmaps[e*i.mipmapCount+t]),o[e].format=i.format,o[e].width=i.width,o[e].height=i.height}}else a.image.width=i.width,a.image.height=i.height,a.mipmaps=i.mipmaps;1===i.mipmapCount&&(a.minFilter=Q),a.format=i.format,a.needsUpdate=!0,e&&e(a)}),i,n);return a}}),Is.prototype=Object.assign(Object.create(ms.prototype),{constructor:Is,load:function(t,e,i,n){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,o=ps.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;const a=document.createElementNS("http://www.w3.org/1999/xhtml","img");function s(){a.removeEventListener("load",s,!1),a.removeEventListener("error",l,!1),ps.add(t,this),e&&e(this),r.manager.itemEnd(t)}function l(e){a.removeEventListener("load",s,!1),a.removeEventListener("error",l,!1),n&&n(e),r.manager.itemError(t),r.manager.itemEnd(t)}return a.addEventListener("load",s,!1),a.addEventListener("error",l,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a}}),Cs.prototype=Object.assign(Object.create(ms.prototype),{constructor:Cs,load:function(t,e,i,n){const r=new Pi,o=new Is(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);let a=0;function s(i){o.load(t[i],(function(t){r.images[i]=t,a++,6===a&&(r.needsUpdate=!0,e&&e(r))}),void 0,n)}for(let e=0;e<t.length;++e)s(e);return r}}),Bs.prototype=Object.assign(Object.create(ms.prototype),{constructor:Bs,load:function(t,e,i,n){const r=this,o=new Oi,a=new bs(this.manager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.setWithCredentials(r.withCredentials),a.load(t,(function(t){const i=r.parse(t);i&&(void 0!==i.image?o.image=i.image:void 0!==i.data&&(o.image.width=i.width,o.image.height=i.height,o.image.data=i.data),o.wrapS=void 0!==i.wrapS?i.wrapS:I,o.wrapT=void 0!==i.wrapT?i.wrapT:I,o.magFilter=void 0!==i.magFilter?i.magFilter:Q,o.minFilter=void 0!==i.minFilter?i.minFilter:Q,o.anisotropy=void 0!==i.anisotropy?i.anisotropy:1,void 0!==i.format&&(o.format=i.format),void 0!==i.type&&(o.type=i.type),void 0!==i.mipmaps&&(o.mipmaps=i.mipmaps,o.minFilter=k),1===i.mipmapCount&&(o.minFilter=Q),o.needsUpdate=!0,e&&e(o,i))}),i,n),o}}),ws.prototype=Object.assign(Object.create(ms.prototype),{constructor:ws,load:function(t,e,i,n){const r=new ct,o=new Is(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,(function(i){r.image=i;const n=t.search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/);r.format=n?L:N,r.needsUpdate=!0,void 0!==e&&e(r)}),i,n),r}}),Object.assign(xs.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){const i=this.getUtoTmapping(t);return this.getPoint(i,e)},getPoints:function(t){void 0===t&&(t=5);const e=[];for(let i=0;i<=t;i++)e.push(this.getPoint(i/t));return e},getSpacedPoints:function(t){void 0===t&&(t=5);const e=[];for(let i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e},getLength:function(){const t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let i,n=this.getPoint(0),r=0;e.push(0);for(let o=1;o<=t;o++)i=this.getPoint(o/t),r+=i.distanceTo(n),e.push(r),n=i;return this.cacheArcLengths=e,e},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){const i=this.getLengths();let n=0;const r=i.length;let o;o=e||t*i[r-1];let a,s=0,l=r-1;for(;s<=l;)if(n=Math.floor(s+(l-s)/2),a=i[n]-o,a<0)s=n+1;else{if(!(a>0)){l=n;break}l=n-1}if(n=l,i[n]===o)return n/(r-1);const A=i[n];return(n+(o-A)/(i[n+1]-A))/(r-1)},getTangent:function(t,e){const i=1e-4;let n=t-i,r=t+i;n<0&&(n=0),r>1&&(r=1);const o=this.getPoint(n),a=this.getPoint(r),s=e||(o.isVector2?new ot:new gt);return s.copy(a).sub(o).normalize(),s},getTangentAt:function(t,e){const i=this.getUtoTmapping(t);return this.getTangent(i,e)},computeFrenetFrames:function(t,e){const i=new gt,n=[],r=[],o=[],a=new gt,s=new Vt;for(let e=0;e<=t;e++){const i=e/t;n[e]=this.getTangentAt(i,new gt),n[e].normalize()}r[0]=new gt,o[0]=new gt;let l=Number.MAX_VALUE;const A=Math.abs(n[0].x),c=Math.abs(n[0].y),h=Math.abs(n[0].z);A<=l&&(l=A,i.set(1,0,0)),c<=l&&(l=c,i.set(0,1,0)),h<=l&&i.set(0,0,1),a.crossVectors(n[0],i).normalize(),r[0].crossVectors(n[0],a),o[0].crossVectors(n[0],r[0]);for(let e=1;e<=t;e++){if(r[e]=r[e-1].clone(),o[e]=o[e-1].clone(),a.crossVectors(n[e-1],n[e]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(rt.clamp(n[e-1].dot(n[e]),-1,1));r[e].applyMatrix4(s.makeRotationAxis(a,t))}o[e].crossVectors(n[e],r[e])}if(!0===e){let e=Math.acos(rt.clamp(r[0].dot(r[t]),-1,1));e/=t,n[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let i=1;i<=t;i++)r[i].applyMatrix4(s.makeRotationAxis(n[i],e*i)),o[i].crossVectors(n[i],r[i])}return{tangents:n,normals:r,binormals:o}},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Qs.prototype=Object.create(xs.prototype),Qs.prototype.constructor=Qs,Qs.prototype.isEllipseCurve=!0,Qs.prototype.getPoint=function(t,e){const i=e||new ot,n=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const o=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=n;for(;r>n;)r-=n;r<Number.EPSILON&&(r=o?0:n),!0!==this.aClockwise||o||(r===n?r=-n:r-=n);const a=this.aStartAngle+t*r;let s=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),i=s-this.aX,n=l-this.aY;s=i*t-n*e+this.aX,l=i*e+n*t+this.aY}return i.set(s,l)},Qs.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Qs.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Qs.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Ss.prototype=Object.create(Qs.prototype),Ss.prototype.constructor=Ss,Ss.prototype.isArcCurve=!0;const Ds=new gt,_s=new ks,Rs=new ks,Ms=new ks;function Ts(t,e,i,n){xs.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=i||"centripetal",this.tension=void 0!==n?n:.5}function Fs(t,e,i,n,r){const o=.5*(n-e),a=.5*(r-i),s=t*t;return(2*i-2*n+o+a)*(t*s)+(-3*i+3*n-2*o-a)*s+o*t+i}function Ls(t,e,i,n){return function(t,e){const i=1-t;return i*i*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,i)+function(t,e){return t*t*e}(t,n)}function Ns(t,e,i,n,r){return function(t,e){const i=1-t;return i*i*i*e}(t,e)+function(t,e){const i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,n)+function(t,e){return t*t*t*e}(t,r)}function Ps(t,e,i,n){xs.call(this),this.type="CubicBezierCurve",this.v0=t||new ot,this.v1=e||new ot,this.v2=i||new ot,this.v3=n||new ot}function Us(t,e,i,n){xs.call(this),this.type="CubicBezierCurve3",this.v0=t||new gt,
this.v1=e||new gt,this.v2=i||new gt,this.v3=n||new gt}function Os(t,e){xs.call(this),this.type="LineCurve",this.v1=t||new ot,this.v2=e||new ot}function Gs(t,e){xs.call(this),this.type="LineCurve3",this.v1=t||new gt,this.v2=e||new gt}function Hs(t,e,i){xs.call(this),this.type="QuadraticBezierCurve",this.v0=t||new ot,this.v1=e||new ot,this.v2=i||new ot}function Vs(t,e,i){xs.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new gt,this.v1=e||new gt,this.v2=i||new gt}function Ys(t){xs.call(this),this.type="SplineCurve",this.points=t||[]}Ts.prototype=Object.create(xs.prototype),Ts.prototype.constructor=Ts,Ts.prototype.isCatmullRomCurve3=!0,Ts.prototype.getPoint=function(t,e){const i=e||new gt,n=this.points,r=n.length,o=(r-(this.closed?0:1))*t;let a,s,l=Math.floor(o),A=o-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===A&&l===r-1&&(l=r-2,A=1),this.closed||l>0?a=n[(l-1)%r]:(Ds.subVectors(n[0],n[1]).add(n[0]),a=Ds);const c=n[l%r],h=n[(l+1)%r];if(this.closed||l+2<r?s=n[(l+2)%r]:(Ds.subVectors(n[r-1],n[r-2]).add(n[r-1]),s=Ds),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(a.distanceToSquared(c),t),i=Math.pow(c.distanceToSquared(h),t),n=Math.pow(h.distanceToSquared(s),t);i<1e-4&&(i=1),e<1e-4&&(e=i),n<1e-4&&(n=i),_s.initNonuniformCatmullRom(a.x,c.x,h.x,s.x,e,i,n),Rs.initNonuniformCatmullRom(a.y,c.y,h.y,s.y,e,i,n),Ms.initNonuniformCatmullRom(a.z,c.z,h.z,s.z,e,i,n)}else"catmullrom"===this.curveType&&(_s.initCatmullRom(a.x,c.x,h.x,s.x,this.tension),Rs.initCatmullRom(a.y,c.y,h.y,s.y,this.tension),Ms.initCatmullRom(a.z,c.z,h.z,s.z,this.tension));return i.set(_s.calc(A),Rs.calc(A),Ms.calc(A)),i},Ts.prototype.copy=function(t){xs.prototype.copy.call(this,t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push(i.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Ts.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);t.points=[];for(let e=0,i=this.points.length;e<i;e++){const i=this.points[e];t.points.push(i.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},Ts.prototype.fromJSON=function(t){xs.prototype.fromJSON.call(this,t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push((new gt).fromArray(i))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Ps.prototype=Object.create(xs.prototype),Ps.prototype.constructor=Ps,Ps.prototype.isCubicBezierCurve=!0,Ps.prototype.getPoint=function(t,e){const i=e||new ot,n=this.v0,r=this.v1,o=this.v2,a=this.v3;return i.set(Ns(t,n.x,r.x,o.x,a.x),Ns(t,n.y,r.y,o.y,a.y)),i},Ps.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Ps.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Ps.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Us.prototype=Object.create(xs.prototype),Us.prototype.constructor=Us,Us.prototype.isCubicBezierCurve3=!0,Us.prototype.getPoint=function(t,e){const i=e||new gt,n=this.v0,r=this.v1,o=this.v2,a=this.v3;return i.set(Ns(t,n.x,r.x,o.x,a.x),Ns(t,n.y,r.y,o.y,a.y),Ns(t,n.z,r.z,o.z,a.z)),i},Us.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Us.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Us.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Os.prototype=Object.create(xs.prototype),Os.prototype.constructor=Os,Os.prototype.isLineCurve=!0,Os.prototype.getPoint=function(t,e){const i=e||new ot;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i},Os.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Os.prototype.getTangent=function(t,e){const i=e||new ot;return i.copy(this.v2).sub(this.v1).normalize(),i},Os.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Os.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Os.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Gs.prototype=Object.create(xs.prototype),Gs.prototype.constructor=Gs,Gs.prototype.isLineCurve3=!0,Gs.prototype.getPoint=function(t,e){const i=e||new gt;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i},Gs.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Gs.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Gs.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Gs.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Hs.prototype=Object.create(xs.prototype),Hs.prototype.constructor=Hs,Hs.prototype.isQuadraticBezierCurve=!0,Hs.prototype.getPoint=function(t,e){const i=e||new ot,n=this.v0,r=this.v1,o=this.v2;return i.set(Ls(t,n.x,r.x,o.x),Ls(t,n.y,r.y,o.y)),i},Hs.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Hs.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Hs.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Vs.prototype=Object.create(xs.prototype),Vs.prototype.constructor=Vs,Vs.prototype.isQuadraticBezierCurve3=!0,Vs.prototype.getPoint=function(t,e){const i=e||new gt,n=this.v0,r=this.v1,o=this.v2;return i.set(Ls(t,n.x,r.x,o.x),Ls(t,n.y,r.y,o.y),Ls(t,n.z,r.z,o.z)),i},Vs.prototype.copy=function(t){return xs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Vs.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Vs.prototype.fromJSON=function(t){return xs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Ys.prototype=Object.create(xs.prototype),Ys.prototype.constructor=Ys,Ys.prototype.isSplineCurve=!0,Ys.prototype.getPoint=function(t,e){const i=e||new ot,n=this.points,r=(n.length-1)*t,o=Math.floor(r),a=r-o,s=n[0===o?o:o-1],l=n[o],A=n[o>n.length-2?n.length-1:o+1],c=n[o>n.length-3?n.length-1:o+2];return i.set(Fs(a,s.x,l.x,A.x,c.x),Fs(a,s.y,l.y,A.y,c.y)),i},Ys.prototype.copy=function(t){xs.prototype.copy.call(this,t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push(i.clone())}return this},Ys.prototype.toJSON=function(){const t=xs.prototype.toJSON.call(this);t.points=[];for(let e=0,i=this.points.length;e<i;e++){const i=this.points[e];t.points.push(i.toArray())}return t},Ys.prototype.fromJSON=function(t){xs.prototype.fromJSON.call(this,t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push((new ot).fromArray(i))}return this};var zs=Object.freeze({__proto__:null,ArcCurve:Ss,CatmullRomCurve3:Ts,CubicBezierCurve:Ps,CubicBezierCurve3:Us,EllipseCurve:Qs,LineCurve:Os,LineCurve3:Gs,QuadraticBezierCurve:Hs,QuadraticBezierCurve3:Vs,SplineCurve:Ys});function Ws(){xs.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Zs(t){Ws.call(this),this.type="Path",this.currentPoint=new ot,t&&this.setFromPoints(t)}function js(t){Zs.call(this,t),
this.uuid=rt.generateUUID(),this.type="Shape",this.holes=[]}function qs(t,e){pe.call(this),this.type="Light",this.color=new Le(t),this.intensity=void 0!==e?e:1}function Js(t,e,i){qs.call(this,t,i),this.type="HemisphereLight",this.position.copy(pe.DefaultUp),this.updateMatrix(),this.groundColor=new Le(e)}function Ks(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.mapSize=new ot(512,512),this.map=null,this.mapPass=null,this.matrix=new Vt,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Vi,this._frameExtents=new ot(1,1),this._viewportCount=1,this._viewports=[new ht(0,0,1,1)]}function Xs(){Ks.call(this,new Fi(50,1,.5,500)),this.focus=1}function $s(t,e,i,n,r,o){qs.call(this,t,e),this.type="SpotLight",this.position.copy(pe.DefaultUp),this.updateMatrix(),this.target=new pe,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/Math.PI}}),this.distance=void 0!==i?i:0,this.angle=void 0!==n?n:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==o?o:1,this.shadow=new Xs}function tl(){Ks.call(this,new Fi(90,1,.5,500)),this._frameExtents=new ot(4,2),this._viewportCount=6,this._viewports=[new ht(2,1,1,1),new ht(0,1,1,1),new ht(3,1,1,1),new ht(1,1,1,1),new ht(3,0,1,1),new ht(1,0,1,1)],this._cubeDirections=[new gt(1,0,0),new gt(-1,0,0),new gt(0,0,1),new gt(0,0,-1),new gt(0,1,0),new gt(0,-1,0)],this._cubeUps=[new gt(0,1,0),new gt(0,1,0),new gt(0,1,0),new gt(0,1,0),new gt(0,0,1),new gt(0,0,-1)]}function el(t,e,i,n){qs.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==i?i:0,this.decay=void 0!==n?n:1,this.shadow=new tl}function il(t,e,i,n,r,o){Ti.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=void 0!==t?t:-1,this.right=void 0!==e?e:1,this.top=void 0!==i?i:1,this.bottom=void 0!==n?n:-1,this.near=void 0!==r?r:.1,this.far=void 0!==o?o:2e3,this.updateProjectionMatrix()}function nl(){Ks.call(this,new il(-5,5,5,-5,.5,500))}function rl(t,e){qs.call(this,t,e),this.type="DirectionalLight",this.position.copy(pe.DefaultUp),this.updateMatrix(),this.target=new pe,this.shadow=new nl}function ol(t,e){qs.call(this,t,e),this.type="AmbientLight"}function al(t,e,i,n){qs.call(this,t,e),this.type="RectAreaLight",this.width=void 0!==i?i:10,this.height=void 0!==n?n:10}Ws.prototype=Object.assign(Object.create(xs.prototype),{constructor:Ws,add:function(t){this.curves.push(t)},closePath:function(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new Os(e,t))},getPoint:function(t){const e=t*this.getLength(),i=this.getCurveLengths();let n=0;for(;n<i.length;){if(i[n]>=e){const t=i[n]-e,r=this.curves[n],o=r.getLength(),a=0===o?0:1-t/o;return r.getPointAt(a)}n++}return null},getLength:function(){const t=this.getCurveLengths();return t[t.length-1]},updateArcLengths:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t,t},getSpacedPoints:function(t){void 0===t&&(t=40);const e=[];for(let i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;const e=[];let i;for(let n=0,r=this.curves;n<r.length;n++){const o=r[n],a=o&&o.isEllipseCurve?2*t:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?t*o.points.length:t,s=o.getPoints(a);for(let t=0;t<s.length;t++){const n=s[t];i&&i.equals(n)||(e.push(n),i=n)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e},copy:function(t){xs.prototype.copy.call(this,t),this.curves=[];for(let e=0,i=t.curves.length;e<i;e++){const i=t.curves[e];this.curves.push(i.clone())}return this.autoClose=t.autoClose,this},toJSON:function(){const t=xs.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(let e=0,i=this.curves.length;e<i;e++){const i=this.curves[e];t.curves.push(i.toJSON())}return t},fromJSON:function(t){xs.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,i=t.curves.length;e<i;e++){const i=t.curves[e];this.curves.push((new zs[i.type]).fromJSON(i))}return this}}),Zs.prototype=Object.assign(Object.create(Ws.prototype),{constructor:Zs,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(let e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y);return this},moveTo:function(t,e){return this.currentPoint.set(t,e),this},lineTo:function(t,e){const i=new Os(this.currentPoint.clone(),new ot(t,e));return this.curves.push(i),this.currentPoint.set(t,e),this},quadraticCurveTo:function(t,e,i,n){const r=new Hs(this.currentPoint.clone(),new ot(t,e),new ot(i,n));return this.curves.push(r),this.currentPoint.set(i,n),this},bezierCurveTo:function(t,e,i,n,r,o){const a=new Ps(this.currentPoint.clone(),new ot(t,e),new ot(i,n),new ot(r,o));return this.curves.push(a),this.currentPoint.set(r,o),this},splineThru:function(t){const e=new Ys([this.currentPoint.clone()].concat(t));return this.curves.push(e),this.currentPoint.copy(t[t.length-1]),this},arc:function(t,e,i,n,r,o){const a=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(t+a,e+s,i,n,r,o),this},absarc:function(t,e,i,n,r,o){return this.absellipse(t,e,i,i,n,r,o),this},ellipse:function(t,e,i,n,r,o,a,s){const l=this.currentPoint.x,A=this.currentPoint.y;return this.absellipse(t+l,e+A,i,n,r,o,a,s),this},absellipse:function(t,e,i,n,r,o,a,s){const l=new Qs(t,e,i,n,r,o,a,s);if(this.curves.length>0){const t=l.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(l);const A=l.getPoint(1);return this.currentPoint.copy(A),this},copy:function(t){return Ws.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){const t=Ws.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Ws.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),js.prototype=Object.assign(Object.create(Zs.prototype),{constructor:js,getPointsHoles:function(t){const e=[];for(let i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){Zs.prototype.copy.call(this,t),this.holes=[];for(let e=0,i=t.holes.length;e<i;e++){const i=t.holes[e];this.holes.push(i.clone())}return this},toJSON:function(){const t=Zs.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(let e=0,i=this.holes.length;e<i;e++){const i=this.holes[e];t.holes.push(i.toJSON())}return t},fromJSON:function(t){Zs.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(let e=0,i=t.holes.length;e<i;e++){const i=t.holes[e];this.holes.push((new Zs).fromJSON(i))}return this}}),qs.prototype=Object.assign(Object.create(pe.prototype),{constructor:qs,isLight:!0,copy:function(t){return pe.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){const e=pe.prototype.toJSON.call(this,t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}),Js.prototype=Object.assign(Object.create(qs.prototype),{constructor:Js,isHemisphereLight:!0,copy:function(t){return qs.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Ks.prototype,{_projScreenMatrix:new Vt,_lightPositionWorld:new gt,_lookTarget:new gt,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(t){
const e=this.camera,i=this.matrix,n=this._projScreenMatrix,r=this._lookTarget,o=this._lightPositionWorld;o.setFromMatrixPosition(t.matrixWorld),e.position.copy(o),r.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(r),e.updateMatrixWorld(),n.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(n),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(e.projectionMatrix),i.multiply(e.matrixWorldInverse)},getViewport:function(t){return this._viewports[t]},getFrameExtents:function(){return this._frameExtents},copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),Xs.prototype=Object.assign(Object.create(Ks.prototype),{constructor:Xs,isSpotLightShadow:!0,updateMatrices:function(t){const e=this.camera,i=2*rt.RAD2DEG*t.angle*this.focus,n=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;i===e.fov&&n===e.aspect&&r===e.far||(e.fov=i,e.aspect=n,e.far=r,e.updateProjectionMatrix()),Ks.prototype.updateMatrices.call(this,t)}}),$s.prototype=Object.assign(Object.create(qs.prototype),{constructor:$s,isSpotLight:!0,copy:function(t){return qs.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),tl.prototype=Object.assign(Object.create(Ks.prototype),{constructor:tl,isPointLightShadow:!0,updateMatrices:function(t,e){void 0===e&&(e=0);const i=this.camera,n=this.matrix,r=this._lightPositionWorld,o=this._lookTarget,a=this._projScreenMatrix;r.setFromMatrixPosition(t.matrixWorld),i.position.copy(r),o.copy(i.position),o.add(this._cubeDirections[e]),i.up.copy(this._cubeUps[e]),i.lookAt(o),i.updateMatrixWorld(),n.makeTranslation(-r.x,-r.y,-r.z),a.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(a)}}),el.prototype=Object.assign(Object.create(qs.prototype),{constructor:el,isPointLight:!0,copy:function(t){return qs.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),il.prototype=Object.assign(Object.create(Ti.prototype),{constructor:il,isOrthographicCamera:!0,copy:function(t,e){return Ti.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this},setViewOffset:function(t,e,i,n,r,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2;let r=i-t,o=i+t,a=n+e,s=n-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,o=r+t*this.view.width,a-=e*this.view.offsetY,s=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,s,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){const e=pe.prototype.toJSON.call(this,t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}),nl.prototype=Object.assign(Object.create(Ks.prototype),{constructor:nl,isDirectionalLightShadow:!0,updateMatrices:function(t){Ks.prototype.updateMatrices.call(this,t)}}),rl.prototype=Object.assign(Object.create(qs.prototype),{constructor:rl,isDirectionalLight:!0,copy:function(t){return qs.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),ol.prototype=Object.assign(Object.create(qs.prototype),{constructor:ol,isAmbientLight:!0}),al.prototype=Object.assign(Object.create(qs.prototype),{constructor:al,isRectAreaLight:!0,copy:function(t){return qs.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){const e=qs.prototype.toJSON.call(this,t);return e.object.width=this.width,e.object.height=this.height,e}});class sl{constructor(){Object.defineProperty(this,"isSphericalHarmonics3",{value:!0}),this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new gt)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const i=t.x,n=t.y,r=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.282095),e.addScaledVector(o[1],.488603*n),e.addScaledVector(o[2],.488603*r),e.addScaledVector(o[3],.488603*i),e.addScaledVector(o[4],i*n*1.092548),e.addScaledVector(o[5],n*r*1.092548),e.addScaledVector(o[6],.315392*(3*r*r-1)),e.addScaledVector(o[7],i*r*1.092548),e.addScaledVector(o[8],.546274*(i*i-n*n)),e}getIrradianceAt(t,e){const i=t.x,n=t.y,r=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.886227),e.addScaledVector(o[1],1.023328*n),e.addScaledVector(o[2],1.023328*r),e.addScaledVector(o[3],1.023328*i),e.addScaledVector(o[4],.858086*i*n),e.addScaledVector(o[5],.858086*n*r),e.addScaledVector(o[6],.743125*r*r-.247708),e.addScaledVector(o[7],.858086*i*r),e.addScaledVector(o[8],.429043*(i*i-n*n)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let i=0;i<9;i++)this.coefficients[i].addScaledVector(t.coefficients[i],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let i=0;i<9;i++)this.coefficients[i].lerp(t.coefficients[i],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(t,e){void 0===e&&(e=0);const i=this.coefficients;for(let n=0;n<9;n++)i[n].fromArray(t,e+3*n);return this}toArray(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);const i=this.coefficients;for(let n=0;n<9;n++)i[n].toArray(t,e+3*n);return t}static getBasisAt(t,e){const i=t.x,n=t.y,r=t.z;e[0]=.282095,e[1]=.488603*n,e[2]=.488603*r,e[3]=.488603*i,e[4]=1.092548*i*n,e[5]=1.092548*n*r,e[6]=.315392*(3*r*r-1),e[7]=1.092548*i*r,e[8]=.546274*(i*i-n*n)}}function ll(t,e){qs.call(this,void 0,e),this.type="LightProbe",this.sh=void 0!==t?t:new sl}function Al(t){ms.call(this,t),this.textures={}}ll.prototype=Object.assign(Object.create(qs.prototype),{constructor:ll,isLightProbe:!0,copy:function(t){return qs.prototype.copy.call(this,t),this.sh.copy(t.sh),this},fromJSON:function(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this},toJSON:function(t){const e=qs.prototype.toJSON.call(this,t);return e.object.sh=this.sh.toArray(),e}}),Al.prototype=Object.assign(Object.create(ms.prototype),{constructor:Al,load:function(t,e,i,n){const r=this,o=new bs(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(i){try{e(r.parse(JSON.parse(i)))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}}),i,n)},parse:function(t){const e=this.textures;function i(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}const n=new Xa[t.type];if(void 0!==t.uuid&&(n.uuid=t.uuid),void 0!==t.name&&(n.name=t.name),void 0!==t.color&&n.color.setHex(t.color),void 0!==t.roughness&&(n.roughness=t.roughness),
void 0!==t.metalness&&(n.metalness=t.metalness),void 0!==t.sheen&&(n.sheen=(new Le).setHex(t.sheen)),void 0!==t.emissive&&n.emissive.setHex(t.emissive),void 0!==t.specular&&n.specular.setHex(t.specular),void 0!==t.shininess&&(n.shininess=t.shininess),void 0!==t.clearcoat&&(n.clearcoat=t.clearcoat),void 0!==t.clearcoatRoughness&&(n.clearcoatRoughness=t.clearcoatRoughness),void 0!==t.fog&&(n.fog=t.fog),void 0!==t.flatShading&&(n.flatShading=t.flatShading),void 0!==t.blending&&(n.blending=t.blending),void 0!==t.combine&&(n.combine=t.combine),void 0!==t.side&&(n.side=t.side),void 0!==t.opacity&&(n.opacity=t.opacity),void 0!==t.transparent&&(n.transparent=t.transparent),void 0!==t.alphaTest&&(n.alphaTest=t.alphaTest),void 0!==t.depthTest&&(n.depthTest=t.depthTest),void 0!==t.depthWrite&&(n.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(n.colorWrite=t.colorWrite),void 0!==t.stencilWrite&&(n.stencilWrite=t.stencilWrite),void 0!==t.stencilWriteMask&&(n.stencilWriteMask=t.stencilWriteMask),void 0!==t.stencilFunc&&(n.stencilFunc=t.stencilFunc),void 0!==t.stencilRef&&(n.stencilRef=t.stencilRef),void 0!==t.stencilFuncMask&&(n.stencilFuncMask=t.stencilFuncMask),void 0!==t.stencilFail&&(n.stencilFail=t.stencilFail),void 0!==t.stencilZFail&&(n.stencilZFail=t.stencilZFail),void 0!==t.stencilZPass&&(n.stencilZPass=t.stencilZPass),void 0!==t.wireframe&&(n.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(n.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(n.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(n.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(n.rotation=t.rotation),1!==t.linewidth&&(n.linewidth=t.linewidth),void 0!==t.dashSize&&(n.dashSize=t.dashSize),void 0!==t.gapSize&&(n.gapSize=t.gapSize),void 0!==t.scale&&(n.scale=t.scale),void 0!==t.polygonOffset&&(n.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(n.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(n.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.skinning&&(n.skinning=t.skinning),void 0!==t.morphTargets&&(n.morphTargets=t.morphTargets),void 0!==t.morphNormals&&(n.morphNormals=t.morphNormals),void 0!==t.dithering&&(n.dithering=t.dithering),void 0!==t.vertexTangents&&(n.vertexTangents=t.vertexTangents),void 0!==t.visible&&(n.visible=t.visible),void 0!==t.toneMapped&&(n.toneMapped=t.toneMapped),void 0!==t.userData&&(n.userData=t.userData),void 0!==t.vertexColors&&("number"==typeof t.vertexColors?n.vertexColors=t.vertexColors>0:n.vertexColors=t.vertexColors),void 0!==t.uniforms)for(const e in t.uniforms){const r=t.uniforms[e];switch(n.uniforms[e]={},r.type){case"t":n.uniforms[e].value=i(r.value);break;case"c":n.uniforms[e].value=(new Le).setHex(r.value);break;case"v2":n.uniforms[e].value=(new ot).fromArray(r.value);break;case"v3":n.uniforms[e].value=(new gt).fromArray(r.value);break;case"v4":n.uniforms[e].value=(new ht).fromArray(r.value);break;case"m3":n.uniforms[e].value=(new at).fromArray(r.value);break;case"m4":n.uniforms[e].value=(new Vt).fromArray(r.value);break;default:n.uniforms[e].value=r.value}}if(void 0!==t.defines&&(n.defines=t.defines),void 0!==t.vertexShader&&(n.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(n.fragmentShader=t.fragmentShader),void 0!==t.extensions)for(const e in t.extensions)n.extensions[e]=t.extensions[e];if(void 0!==t.shading&&(n.flatShading=1===t.shading),void 0!==t.size&&(n.size=t.size),void 0!==t.sizeAttenuation&&(n.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(n.map=i(t.map)),void 0!==t.matcap&&(n.matcap=i(t.matcap)),void 0!==t.alphaMap&&(n.alphaMap=i(t.alphaMap)),void 0!==t.bumpMap&&(n.bumpMap=i(t.bumpMap)),void 0!==t.bumpScale&&(n.bumpScale=t.bumpScale),void 0!==t.normalMap&&(n.normalMap=i(t.normalMap)),void 0!==t.normalMapType&&(n.normalMapType=t.normalMapType),void 0!==t.normalScale){let e=t.normalScale;!1===Array.isArray(e)&&(e=[e,e]),n.normalScale=(new ot).fromArray(e)}return void 0!==t.displacementMap&&(n.displacementMap=i(t.displacementMap)),void 0!==t.displacementScale&&(n.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(n.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(n.roughnessMap=i(t.roughnessMap)),void 0!==t.metalnessMap&&(n.metalnessMap=i(t.metalnessMap)),void 0!==t.emissiveMap&&(n.emissiveMap=i(t.emissiveMap)),void 0!==t.emissiveIntensity&&(n.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(n.specularMap=i(t.specularMap)),void 0!==t.envMap&&(n.envMap=i(t.envMap)),void 0!==t.envMapIntensity&&(n.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(n.reflectivity=t.reflectivity),void 0!==t.refractionRatio&&(n.refractionRatio=t.refractionRatio),void 0!==t.lightMap&&(n.lightMap=i(t.lightMap)),void 0!==t.lightMapIntensity&&(n.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(n.aoMap=i(t.aoMap)),void 0!==t.aoMapIntensity&&(n.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(n.gradientMap=i(t.gradientMap)),void 0!==t.clearcoatMap&&(n.clearcoatMap=i(t.clearcoatMap)),void 0!==t.clearcoatRoughnessMap&&(n.clearcoatRoughnessMap=i(t.clearcoatRoughnessMap)),void 0!==t.clearcoatNormalMap&&(n.clearcoatNormalMap=i(t.clearcoatNormalMap)),void 0!==t.clearcoatNormalScale&&(n.clearcoatNormalScale=(new ot).fromArray(t.clearcoatNormalScale)),void 0!==t.transmission&&(n.transmission=t.transmission),void 0!==t.transmissionMap&&(n.transmissionMap=i(t.transmissionMap)),n},setTextures:function(t){return this.textures=t,this}});const cl=function(t){const e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)};function hl(){li.call(this),this.type="InstancedBufferGeometry",this.instanceCount=1/0}function dl(t,e,i,n){"number"==typeof i&&(n=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),Ve.call(this,t,e,i),this.meshPerAttribute=n||1}function ul(t){ms.call(this,t)}hl.prototype=Object.assign(Object.create(li.prototype),{constructor:hl,isInstancedBufferGeometry:!0,copy:function(t){return li.prototype.copy.call(this,t),this.instanceCount=t.instanceCount,this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){const t=li.prototype.toJSON.call(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}),dl.prototype=Object.assign(Object.create(Ve.prototype),{constructor:dl,isInstancedBufferAttribute:!0,copy:function(t){return Ve.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},toJSON:function(){const t=Ve.prototype.toJSON.call(this);return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}}),ul.prototype=Object.assign(Object.create(ms.prototype),{constructor:ul,load:function(t,e,i,n){const r=this,o=new bs(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(i){try{e(r.parse(JSON.parse(i)))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}}),i,n)},parse:function(t){const e={},i={};function n(t,n){if(void 0!==e[n])return e[n];const r=t.interleavedBuffers[n],o=function(t,e){if(void 0!==i[e])return i[e];const n=t.arrayBuffers,r=n[e],o=new Uint32Array(r).buffer;return i[e]=o,o}(t,r.buffer),a=new to(new pl[r.type](o),r.stride);return a.uuid=r.uuid,e[n]=a,a}const r=t.isInstancedBufferGeometry?new hl:new li,o=t.data.index;if(void 0!==o){const t=new pl[o.type](o.array);r.setIndex(new Ve(t,1))}const a=t.data.attributes;for(const e in a){const i=a[e];let o;if(i.isInterleavedBufferAttribute){o=new io(n(t.data,i.data),i.itemSize,i.offset,i.normalized)}else{const t=new pl[i.type](i.array);o=new(i.isInstancedBufferAttribute?dl:Ve)(t,i.itemSize,i.normalized)}void 0!==i.name&&(o.name=i.name),r.setAttribute(e,o)}const s=t.data.morphAttributes;if(s)for(const e in s){const i=s[e],o=[];for(let e=0,r=i.length;e<r;e++){const r=i[e];let a;if(r.isInterleavedBufferAttribute){a=new io(n(t.data,r.data),r.itemSize,r.offset,r.normalized)}else{a=new Ve(new pl[r.type](r.array),r.itemSize,r.normalized)}void 0!==r.name&&(a.name=r.name),o.push(a)}r.morphAttributes[e]=o}t.data.morphTargetsRelative&&(r.morphTargetsRelative=!0)
;const l=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==l)for(let t=0,e=l.length;t!==e;++t){const e=l[t];r.addGroup(e.start,e.count,e.materialIndex)}const A=t.data.boundingSphere;if(void 0!==A){const t=new gt;void 0!==A.center&&t.fromArray(A.center),r.boundingSphere=new Tt(t,A.radius)}return t.name&&(r.name=t.name),t.userData&&(r.userData=t.userData),r}});const pl={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function gl(t){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),ms.call(this,t),this.options={premultiplyAlpha:"none"}}function fl(){this.type="ShapePath",this.color=new Le,this.subPaths=[],this.currentPath=null}function ml(t){this.type="Font",this.data=t}function yl(t,e,i,n,r){const o=r.glyphs[t]||r.glyphs["?"];if(!o)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+r.familyName+".");const a=new fl;let s,l,A,c,h,d,u,p;if(o.o){const t=o._cachedOutline||(o._cachedOutline=o.o.split(" "));for(let r=0,o=t.length;r<o;){switch(t[r++]){case"m":s=t[r++]*e+i,l=t[r++]*e+n,a.moveTo(s,l);break;case"l":s=t[r++]*e+i,l=t[r++]*e+n,a.lineTo(s,l);break;case"q":A=t[r++]*e+i,c=t[r++]*e+n,h=t[r++]*e+i,d=t[r++]*e+n,a.quadraticCurveTo(h,d,A,c);break;case"b":A=t[r++]*e+i,c=t[r++]*e+n,h=t[r++]*e+i,d=t[r++]*e+n,u=t[r++]*e+i,p=t[r++]*e+n,a.bezierCurveTo(h,d,u,p,A,c)}}}return{offsetX:o.ha*e,path:a}}function bl(t){ms.call(this,t)}let vl;gl.prototype=Object.assign(Object.create(ms.prototype),{constructor:gl,isImageBitmapLoader:!0,setOptions:function(t){return this.options=t,this},load:function(t,e,i,n){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,o=ps.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",fetch(t,a).then((function(t){return t.blob()})).then((function(t){return createImageBitmap(t,r.options)})).then((function(i){ps.add(t,i),e&&e(i),r.manager.itemEnd(t)})).catch((function(e){n&&n(e),r.manager.itemError(t),r.manager.itemEnd(t)})),r.manager.itemStart(t)}}),Object.assign(fl.prototype,{moveTo:function(t,e){return this.currentPath=new Zs,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e),this},lineTo:function(t,e){return this.currentPath.lineTo(t,e),this},quadraticCurveTo:function(t,e,i,n){return this.currentPath.quadraticCurveTo(t,e,i,n),this},bezierCurveTo:function(t,e,i,n,r,o){return this.currentPath.bezierCurveTo(t,e,i,n,r,o),this},splineThru:function(t){return this.currentPath.splineThru(t),this},toShapes:function(t,e){function i(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i],r=new js;r.curves=n.curves,e.push(r)}return e}function n(t,e){const i=e.length;let n=!1;for(let r=i-1,o=0;o<i;r=o++){let i=e[r],a=e[o],s=a.x-i.x,l=a.y-i.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(i=e[o],s=-s,a=e[r],l=-l),t.y<i.y||t.y>a.y)continue;if(t.y===i.y){if(t.x===i.x)return!0}else{const e=l*(t.x-i.x)-s*(t.y-i.y);if(0===e)return!0;if(e<0)continue;n=!n}}else{if(t.y!==i.y)continue;if(a.x<=t.x&&t.x<=i.x||i.x<=t.x&&t.x<=a.x)return!0}}return n}const r=_a.isClockWise,o=this.subPaths;if(0===o.length)return[];if(!0===e)return i(o);let a,s,l;const A=[];if(1===o.length)return s=o[0],l=new js,l.curves=s.curves,A.push(l),A;let c=!r(o[0].getPoints());c=t?!c:c;const h=[],d=[];let u,p,g=[],f=0;d[f]=void 0,g[f]=[];for(let e=0,i=o.length;e<i;e++)s=o[e],u=s.getPoints(),a=r(u),a=t?!a:a,a?(!c&&d[f]&&f++,d[f]={s:new js,p:u},d[f].s.curves=s.curves,c&&f++,g[f]=[]):g[f].push({h:s,p:u[0]});if(!d[0])return i(o);if(d.length>1){let t=!1;const e=[];for(let t=0,e=d.length;t<e;t++)h[t]=[];for(let i=0,r=d.length;i<r;i++){const r=g[i];for(let o=0;o<r.length;o++){const a=r[o];let s=!0;for(let r=0;r<d.length;r++)n(a.p,d[r].p)&&(i!==r&&e.push({froms:i,tos:r,hole:o}),s?(s=!1,h[r].push(a)):t=!0);s&&h[i].push(a)}}e.length>0&&(t||(g=h))}for(let t=0,e=d.length;t<e;t++){l=d[t].s,A.push(l),p=g[t];for(let t=0,e=p.length;t<e;t++)l.holes.push(p[t].h)}return A}}),Object.assign(ml.prototype,{isFont:!0,generateShapes:function(t,e){void 0===e&&(e=100);const i=[],n=function(t,e,i){const n=Array.from?Array.from(t):String(t).split(""),r=e/i.resolution,o=(i.boundingBox.yMax-i.boundingBox.yMin+i.underlineThickness)*r,a=[];let s=0,l=0;for(let t=0;t<n.length;t++){const e=n[t];if("\n"===e)s=0,l-=o;else{const t=yl(e,r,s,l,i);s+=t.offsetX,a.push(t.path)}}return a}(t,e,this.data);for(let t=0,e=n.length;t<e;t++)Array.prototype.push.apply(i,n[t].toShapes());return i}}),bl.prototype=Object.assign(Object.create(ms.prototype),{constructor:bl,load:function(t,e,i,n){const r=this,o=new bs(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(t){let i;try{i=JSON.parse(t)}catch(e){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),i=JSON.parse(t.substring(65,t.length-2))}const n=r.parse(i);e&&e(n)}),i,n)},parse:function(t){return new ml(t)}});const El=function(){return void 0===vl&&(vl=new(window.AudioContext||window.webkitAudioContext)),vl};function Il(t){ms.call(this,t)}function Cl(t,e,i){ll.call(this,void 0,i);const n=(new Le).set(t),r=(new Le).set(e),o=new gt(n.r,n.g,n.b),a=new gt(r.r,r.g,r.b),s=Math.sqrt(Math.PI),l=s*Math.sqrt(.75);this.sh.coefficients[0].copy(o).add(a).multiplyScalar(s),this.sh.coefficients[1].copy(o).sub(a).multiplyScalar(l)}function Bl(t,e){ll.call(this,void 0,e);const i=(new Le).set(t);this.sh.coefficients[0].set(i.r,i.g,i.b).multiplyScalar(2*Math.sqrt(Math.PI))}Il.prototype=Object.assign(Object.create(ms.prototype),{constructor:Il,load:function(t,e,i,n){const r=this,o=new bs(r.manager);o.setResponseType("arraybuffer"),o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(i){try{const t=i.slice(0);El().decodeAudioData(t,(function(t){e(t)}))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}}),i,n)}}),Cl.prototype=Object.assign(Object.create(ll.prototype),{constructor:Cl,isHemisphereLightProbe:!0,copy:function(t){return ll.prototype.copy.call(this,t),this},toJSON:function(t){return ll.prototype.toJSON.call(this,t)}}),Bl.prototype=Object.assign(Object.create(ll.prototype),{constructor:Bl,isAmbientLightProbe:!0,copy:function(t){return ll.prototype.copy.call(this,t),this},toJSON:function(t){return ll.prototype.toJSON.call(this,t)}});const wl=new Vt,xl=new Vt;Object.assign(function(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Fi,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Fi,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}.prototype,{update:function(t){const e=this._cache;if(e.focus!==t.focus||e.fov!==t.fov||e.aspect!==t.aspect*this.aspect||e.near!==t.near||e.far!==t.far||e.zoom!==t.zoom||e.eyeSep!==this.eyeSep){e.focus=t.focus,e.fov=t.fov,e.aspect=t.aspect*this.aspect,e.near=t.near,e.far=t.far,e.zoom=t.zoom,e.eyeSep=this.eyeSep;const i=t.projectionMatrix.clone(),n=e.eyeSep/2,r=n*e.near/e.focus,o=e.near*Math.tan(rt.DEG2RAD*e.fov*.5)/e.zoom;let a,s;xl.elements[12]=-n,wl.elements[12]=n,a=-o*e.aspect+r,s=o*e.aspect+r,i.elements[0]=2*e.near/(s-a),i.elements[8]=(s+a)/(s-a),this.cameraL.projectionMatrix.copy(i),a=-o*e.aspect-r,s=o*e.aspect-r,i.elements[0]=2*e.near/(s-a),i.elements[8]=(s+a)/(s-a),this.cameraR.projectionMatrix.copy(i)}this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(xl),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(wl)}});class Ql extends pe{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,
this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t){if(void 0===t&&(t=0),!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this}setDetune(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}function Sl(t,e,i){let n,r,o;switch(this.binding=t,this.valueSize=i,e){case"quaternion":n=this._slerp,r=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*i),this._workIndex=5;break;case"string":case"bool":n=this._select,r=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*i);break;default:n=this._lerp,r=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*i)}this._mixBufferRegion=n,this._mixBufferRegionAdditive=r,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}Object.assign(Sl.prototype,{accumulate:function(t,e){const i=this.buffer,n=this.valueSize,r=t*n+n;let o=this.cumulativeWeight;if(0===o){for(let t=0;t!==n;++t)i[r+t]=i[t];o=e}else{o+=e;const t=e/o;this._mixBufferRegion(i,r,0,t,n)}this.cumulativeWeight=o},accumulateAdditive:function(t){const e=this.buffer,i=this.valueSize,n=i*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,n,0,t,i),this.cumulativeWeightAdditive+=t},apply:function(t){const e=this.valueSize,i=this.buffer,n=t*e+e,r=this.cumulativeWeight,o=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,r<1){const t=e*this._origIndex;this._mixBufferRegion(i,n,t,1-r,e)}o>0&&this._mixBufferRegionAdditive(i,n,this._addIndex*e,1,e);for(let t=e,r=e+e;t!==r;++t)if(i[t]!==i[t+e]){a.setValue(i,n);break}},saveOriginalState:function(){const t=this.binding,e=this.buffer,i=this.valueSize,n=i*this._origIndex;t.getValue(e,n);for(let t=i,r=n;t!==r;++t)e[t]=e[n+t%i];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0},restoreOriginalState:function(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)},_setAdditiveIdentityNumeric:function(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let i=t;i<e;i++)this.buffer[i]=0},_setAdditiveIdentityQuaternion:function(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1},_setAdditiveIdentityOther:function(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let i=0;i<this.valueSize;i++)this.buffer[e+i]=this.buffer[t+i]},_select:function(t,e,i,n,r){if(n>=.5)for(let n=0;n!==r;++n)t[e+n]=t[i+n]},_slerp:function(t,e,i,n){pt.slerpFlat(t,e,t,e,t,i,n)},_slerpAdditive:function(t,e,i,n,r){const o=this._workIndex*r;pt.multiplyQuaternionsFlat(t,o,t,e,t,i),pt.slerpFlat(t,e,t,e,t,o,n)},_lerp:function(t,e,i,n,r){const o=1-n;for(let a=0;a!==r;++a){const r=e+a;t[r]=t[r]*o+t[i+a]*n}},_lerpAdditive:function(t,e,i,n,r){for(let o=0;o!==r;++o){const r=e+o;t[r]=t[r]+t[i+o]*n}}});const kl="\\[\\]\\.:\\/",Dl=new RegExp("["+kl+"]","g"),_l="[^"+kl+"]",Rl="[^"+kl.replace("\\.","")+"]",Ml=/((?:WC+[\/:])*)/.source.replace("WC",_l),Tl=/(WCOD+)?/.source.replace("WCOD",Rl),Fl=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",_l),Ll=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",_l),Nl=new RegExp("^"+Ml+Tl+Fl+Ll+"$"),Pl=["material","materials","bones"];function Ul(t,e,i){const n=i||Ol.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,n)}function Ol(t,e,i){this.path=e,this.parsedPath=i||Ol.parseTrackName(e),this.node=Ol.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}Object.assign(Ul.prototype,{getValue:function(t,e){this.bind();const i=this._targetGroup.nCachedObjects_,n=this._bindings[i];void 0!==n&&n.getValue(t,e)},setValue:function(t,e){const i=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=i.length;n!==r;++n)i[n].setValue(t,e)},bind:function(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()},unbind:function(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}}),Object.assign(Ol,{Composite:Ul,create:function(t,e,i){return t&&t.isAnimationObjectGroup?new Ol.Composite(t,e,i):new Ol(t,e,i)},sanitizeNodeName:function(t){return t.replace(/\s/g,"_").replace(Dl,"")},parseTrackName:function(t){const e=Nl.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const i={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],
propertyIndex:e[6]},n=i.nodeName&&i.nodeName.lastIndexOf(".");if(void 0!==n&&-1!==n){const t=i.nodeName.substring(n+1);-1!==Pl.indexOf(t)&&(i.nodeName=i.nodeName.substring(0,n),i.objectName=t)}if(null===i.propertyName||0===i.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return i},findNode:function(t,e){if(!e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const i=t.skeleton.getBoneByName(e);if(void 0!==i)return i}if(t.children){const i=function(t){for(let n=0;n<t.length;n++){const r=t[n];if(r.name===e||r.uuid===e)return r;const o=i(r.children);if(o)return o}return null},n=i(t.children);if(n)return n}return null}}),Object.assign(Ol.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)t[e++]=i[n]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)i[n]=t[e++]},function(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){let t=this.node;const e=this.parsedPath,i=e.objectName,n=e.propertyName;let r=e.propertyIndex;if(t||(t=Ol.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(i){let n=e.objectIndex;switch(i){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===n){n=e;break}break;default:if(void 0===t[i])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[i]}if(void 0!==n){if(void 0===t[n])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[n]}}const o=t[n];if(void 0===o){const i=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+i+"."+n+" but it wasn't found.",t)}let a=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let s=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===n){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[r]&&(r=t.morphTargetDictionary[r])}s=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else void 0!==o.fromArray&&void 0!==o.toArray?(s=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(s=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=n;this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][a]},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(Ol.prototype,{_getValue_unbound:Ol.prototype.getValue,_setValue_unbound:Ol.prototype.setValue}),Object.assign(function(){this.uuid=rt.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const t={};this._indicesByUUID=t;for(let e=0,i=arguments.length;e!==i;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const e=this;this.stats={objects:{get total(){return e._objects.length},get inUse(){return this.total-e.nCachedObjects_}},get bindingsPerObject(){return e._bindings.length}}}.prototype,{isAnimationObjectGroup:!0,add:function(){const t=this._objects,e=this._indicesByUUID,i=this._paths,n=this._parsedPaths,r=this._bindings,o=r.length;let a,s=t.length,l=this.nCachedObjects_;for(let A=0,c=arguments.length;A!==c;++A){const c=arguments[A],h=c.uuid;let d=e[h];if(void 0===d){d=s++,e[h]=d,t.push(c);for(let t=0,e=o;t!==e;++t)r[t].push(new Ol(c,i[t],n[t]))}else if(d<l){a=t[d];const s=--l,A=t[s];e[A.uuid]=d,t[d]=A,e[h]=s,t[s]=c;for(let t=0,e=o;t!==e;++t){const e=r[t],o=e[s];let a=e[d];e[d]=o,void 0===a&&(a=new Ol(c,i[t],n[t])),e[s]=a}}else t[d]!==a&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=l},remove:function(){const t=this._objects,e=this._indicesByUUID,i=this._bindings,n=i.length;let r=this.nCachedObjects_;for(let o=0,a=arguments.length;o!==a;++o){const a=arguments[o],s=a.uuid,l=e[s];if(void 0!==l&&l>=r){const o=r++,A=t[o];e[A.uuid]=l,t[l]=A,e[s]=o,t[o]=a;for(let t=0,e=n;t!==e;++t){const e=i[t],n=e[o],r=e[l];e[l]=n,e[o]=r}}}this.nCachedObjects_=r},uncache:function(){const t=this._objects,e=this._indicesByUUID,i=this._bindings,n=i.length;let r=this.nCachedObjects_,o=t.length;for(let a=0,s=arguments.length;a!==s;++a){const s=arguments[a].uuid,l=e[s];if(void 0!==l)if(delete e[s],l<r){const a=--r,s=t[a],A=--o,c=t[A];e[s.uuid]=l,t[l]=s,e[c.uuid]=a,t[a]=c,t.pop();for(let t=0,e=n;t!==e;++t){const e=i[t],n=e[a],r=e[A];e[l]=n,e[a]=r,e.pop()}}else{const r=--o,a=t[r];e[a.uuid]=l,t[l]=a,t.pop();for(let t=0,e=n;t!==e;++t){const e=i[t];e[l]=e[r],e.pop()}}}this.nCachedObjects_=r},subscribe_:function(t,e){const i=this._bindingsIndicesByPath;let n=i[t];const r=this._bindings;if(void 0!==n)return r[n];const o=this._paths,a=this._parsedPaths,s=this._objects,l=s.length,A=this.nCachedObjects_,c=new Array(l);n=r.length,i[t]=n,o.push(t),a.push(e),r.push(c);for(let i=A,n=s.length;i!==n;++i){const n=s[i];c[i]=new Ol(n,t,e)}return c},unsubscribe_:function(t){const e=this._bindingsIndicesByPath,i=e[t];if(void 0!==i){const n=this._paths,r=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a];e[t[a]]=i,o[i]=s,o.pop(),r[i]=r[a],r.pop(),n[i]=n[a],n.pop()}}});class Gl{constructor(t,e,i,n){this._mixer=t,this._clip=e,this._localRoot=i||null,this.blendMode=n||e.blendMode
;const r=e.tracks,o=r.length,a=new Array(o),s={endingStart:V,endingEnd:V};for(let t=0;t!==o;++t){const e=r[t].createInterpolant(null);a[t]=e,e.settings=s}this._interpolantSettings=s,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){const i=this._clip.duration,n=t._clip.duration,r=n/i,o=i/n;t.warp(1,r,e),this.warp(o,1,e)}return this}crossFadeTo(t,e,i){return t.crossFadeFrom(this,e,i)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,i){const n=this._mixer,r=n.time,o=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=n._lendControlInterpolant(),this._timeScaleInterpolant=a);const s=a.parameterPositions,l=a.sampleValues;return s[0]=r,s[1]=r+i,l[0]=t/o,l[1]=e/o,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,i,n){if(!this.enabled)return void this._updateWeight(t);const r=this._startTime;if(null!==r){const n=(t-r)*i;if(n<0||0===i)return;this._startTime=null,e=i*n}e*=this._updateTimeScale(t);const o=this._updateTime(e),a=this._updateWeight(t);if(a>0){const t=this._interpolants,e=this._propertyBindings;if(2501===this.blendMode)for(let i=0,n=t.length;i!==n;++i)t[i].evaluate(o),e[i].accumulateAdditive(a);else for(let i=0,r=t.length;i!==r;++i)t[i].evaluate(o),e[i].accumulate(n,a)}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const i=this._weightInterpolant;if(null!==i){const n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),0===n&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const i=this._timeScaleInterpolant;if(null!==i){e*=i.evaluate(t)[0],t>i.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,i=this.loop;let n=this.time+t,r=this._loopCount;const o=2202===i;if(0===t)return-1===r||!o||1&~r?n:e-n;if(2200===i){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(n>=e)n=e;else{if(!(n<0)){this.time=n;break t}n=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=n,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),n>=e||n<0){const i=Math.floor(n/e);n-=e*i,r+=Math.abs(i);const a=this.repetitions-r;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,n=t>0?e:0,this.time=n,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===a){const e=t<0;this._setEndings(e,!e,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this.time=n,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:i})}}else this.time=n;if(o&&!(1&~r))return e-n}return n}_setEndings(t,e,i){const n=this._interpolantSettings;i?(n.endingStart=Y,n.endingEnd=Y):(n.endingStart=t?this.zeroSlopeAtStart?Y:V:z,n.endingEnd=e?this.zeroSlopeAtEnd?Y:V:z)}_scheduleFading(t,e,i){const n=this._mixer,r=n.time;let o=this._weightInterpolant;null===o&&(o=n._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,s=o.sampleValues;return a[0]=r,s[0]=e,a[1]=r+t,s[1]=i,this}}function Hl(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}Hl.prototype=Object.assign(Object.create(et.prototype),{constructor:Hl,_bindAction:function(t,e){const i=t._localRoot||this._root,n=t._clip.tracks,r=n.length,o=t._propertyBindings,a=t._interpolants,s=i.uuid,l=this._bindingsByRootAndName;let A=l[s];void 0===A&&(A={},l[s]=A);for(let t=0;t!==r;++t){const r=n[t],l=r.name;let c=A[l];if(void 0!==c)o[t]=c;else{if(c=o[t],void 0!==c){null===c._cacheIndex&&(++c.referenceCount,this._addInactiveBinding(c,s,l));continue}const n=e&&e._propertyBindings[t].binding.parsedPath;c=new Sl(Ol.create(i,l,n),r.ValueTypeName,r.getValueSize()),++c.referenceCount,this._addInactiveBinding(c,s,l),o[t]=c}a[t].resultBuffer=c.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}const e=t._propertyBindings;for(let t=0,i=e.length;t!==i;++t){const i=e[t];0==i.useCount++&&(this._lendBinding(i),i.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,i=e.length;t!==i;++t){const i=e[t];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions},_addInactiveAction:function(t,e,i){const n=this._actions,r=this._actionsByClip;let o=r[e];if(void 0===o)o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=o;else{const e=o.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=n.length,n.push(t),o.actionByRoot[i]=t},_removeInactiveAction:function(t){const e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null;const r=t._clip.uuid,o=this._actionsByClip,a=o[r],s=a.knownActions,l=s[s.length-1],A=t._byClipCacheIndex;l._byClipCacheIndex=A,s[A]=l,s.pop(),t._byClipCacheIndex=null;delete a.actionByRoot[(t._localRoot||this._root).uuid],0===s.length&&delete o[r],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){const e=t._propertyBindings;for(let t=0,i=e.length;t!==i;++t){const i=e[t];0==--i.referenceCount&&this._removeInactiveBinding(i)}},_lendAction:function(t){const e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r},_takeBackAction:function(t){const e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,r=e[n]
;t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r},_addInactiveBinding:function(t,e,i){const n=this._bindingsByRootAndName,r=this._bindings;let o=n[e];void 0===o&&(o={},n[e]=o),o[i]=t,t._cacheIndex=r.length,r.push(t)},_removeInactiveBinding:function(t){const e=this._bindings,i=t.binding,n=i.rootNode.uuid,r=i.path,o=this._bindingsByRootAndName,a=o[n],s=e[e.length-1],l=t._cacheIndex;s._cacheIndex=l,e[l]=s,e.pop(),delete a[r],0===Object.keys(a).length&&delete o[n]},_lendBinding:function(t){const e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r},_takeBackBinding:function(t){const e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r},_lendControlInterpolant:function(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let i=t[e];return void 0===i&&(i=new is(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),i.__cacheIndex=e,t[e]=i),i},_takeBackControlInterpolant:function(t){const e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,r=e[n];t.__cacheIndex=n,e[n]=t,r.__cacheIndex=i,e[i]=r},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e,i){const n=e||this._root,r=n.uuid;let o="string"==typeof t?ds.findByName(n,t):t;const a=null!==o?o.uuid:t,s=this._actionsByClip[a];let l=null;if(void 0===i&&(i=null!==o?o.blendMode:W),void 0!==s){const t=s.actionByRoot[r];if(void 0!==t&&t.blendMode===i)return t;l=s.knownActions[0],null===o&&(o=l._clip)}if(null===o)return null;const A=new Gl(this,o,e,i);return this._bindAction(A,l),this._addInactiveAction(A,a,r),A},existingAction:function(t,e){const i=e||this._root,n=i.uuid,r="string"==typeof t?ds.findByName(i,t):t,o=r?r.uuid:t,a=this._actionsByClip[o];return void 0!==a&&a.actionByRoot[n]||null},stopAllAction:function(){const t=this._actions;for(let e=this._nActiveActions-1;e>=0;--e)t[e].stop();return this},update:function(t){t*=this.timeScale;const e=this._actions,i=this._nActiveActions,n=this.time+=t,r=Math.sign(t),o=this._accuIndex^=1;for(let a=0;a!==i;++a){e[a]._update(n,t,r,o)}const a=this._bindings,s=this._nActiveBindings;for(let t=0;t!==s;++t)a[t].apply(o);return this},setTime:function(t){this.time=0;for(let t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(t)},getRoot:function(){return this._root},uncacheClip:function(t){const e=this._actions,i=t.uuid,n=this._actionsByClip,r=n[i];if(void 0!==r){const t=r.knownActions;for(let i=0,n=t.length;i!==n;++i){const n=t[i];this._deactivateAction(n);const r=n._cacheIndex,o=e[e.length-1];n._cacheIndex=null,n._byClipCacheIndex=null,o._cacheIndex=r,e[r]=o,e.pop(),this._removeInactiveBindingsForAction(n)}delete n[i]}},uncacheRoot:function(t){const e=t.uuid,i=this._actionsByClip;for(const t in i){const n=i[t].actionByRoot[e];void 0!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}const n=this._bindingsByRootAndName[e];if(void 0!==n)for(const t in n){const e=n[t];e.restoreOriginalState(),this._removeInactiveBinding(e)}},uncacheAction:function(t,e){const i=this.existingAction(t,e);null!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}});class Vl{constructor(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new Vl(void 0===this.value.clone?this.value:this.value.clone())}}function Yl(t,e,i){to.call(this,t,e),this.meshPerAttribute=i||1}function zl(t,e,i,n,r){this.buffer=t,this.type=e,this.itemSize=i,this.elementSize=n,this.count=r,this.version=0}function Wl(t,e,i,n){this.ray=new Ht(t,e),this.near=i||0,this.far=n||1/0,this.camera=null,this.layers=new te,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})}function Zl(t,e){return t.distance-e.distance}function jl(t,e,i,n){if(t.layers.test(e.layers)&&t.raycast(e,i),!0===n){const n=t.children;for(let t=0,r=n.length;t<r;t++)jl(n[t],e,i,!0)}}Yl.prototype=Object.assign(Object.create(to.prototype),{constructor:Yl,isInstancedInterleavedBuffer:!0,copy:function(t){return to.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},clone:function(t){const e=to.prototype.clone.call(this,t);return e.meshPerAttribute=this.meshPerAttribute,e},toJSON:function(t){const e=to.prototype.toJSON.call(this,t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}),Object.defineProperty(zl.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(zl.prototype,{isGLBufferAttribute:!0,setBuffer:function(t){return this.buffer=t,this},setType:function(t,e){return this.type=t,this.elementSize=e,this},setItemSize:function(t){return this.itemSize=t,this},setCount:function(t){return this.count=t,this}}),Object.assign(Wl.prototype,{set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,i){const n=i||[];return jl(t,this,n,e),n.sort(Zl),n},intersectObjects:function(t,e,i){const n=i||[];if(!1===Array.isArray(t))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),n;for(let i=0,r=t.length;i<r;i++)jl(t[i],this,n,e);return n.sort(Zl),n}});const ql=new ot;function Jl(t){pe.call(this),this.material=t,this.render=function(){},this.hasPositions=!1,this.hasNormals=!1,this.hasColors=!1,this.hasUvs=!1,this.positionArray=null,this.normalArray=null,this.colorArray=null,this.uvArray=null,this.count=0}Jl.prototype=Object.create(pe.prototype),Jl.prototype.constructor=Jl,Jl.prototype.isImmediateRenderObject=!0;const Kl=new gt,Xl=new Vt,$l=new Vt;function tA(t){const e=[];t&&t.isBone&&e.push(t);for(let i=0;i<t.children.length;i++)e.push.apply(e,tA(t.children[i]));return e}Math.pow(2,8);const eA=[.125,.215,.35,.446,.526,.582],iA=5+eA.length,{_lodPlanes:nA,_sizeLods:rA,_sigmas:oA}=aA();Math.sqrt(5);function aA(){const t=[],e=[],i=[];let n=8;for(let r=0;r<iA;r++){const o=Math.pow(2,n);e.push(o);let a=1/o;r>4?a=eA[r-8+4-1]:0==r&&(a=0),i.push(a);const s=1/(o-1),l=-s/2,A=1+s/2,c=[l,l,A,l,A,A,l,l,A,A,l,A],h=6,d=6,u=3,p=2,g=1,f=new Float32Array(u*d*h),m=new Float32Array(p*d*h),y=new Float32Array(g*d*h);for(let t=0;t<h;t++){const e=t%3*2/3-1,i=t>2?0:-1,n=[e,i,0,e+2/3,i,0,e+2/3,i+1,0,e,i,0,e+2/3,i+1,0,e,i+1,0];f.set(n,u*d*t),m.set(c,p*d*t);const r=[t,t,t,t,t,t];y.set(r,g*d*t)}const b=new li;b.setAttribute("position",new Ve(f,u)),b.setAttribute("uv",new Ve(m,p)),b.setAttribute("faceIndex",new Ve(y,g)),t.push(b),n>4&&n--}return{_lodPlanes:t,_sizeLods:e,_sigmas:i}}function sA(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),Ts.call(this,t),this.type="catmullrom"}xs.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(xs.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Ws.prototype,{createPointsGeometry:function(t){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");const e=this.getPoints(t);return this.createGeometry(e)},createSpacedPointsGeometry:function(t){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");const e=this.getSpacedPoints(t);return this.createGeometry(e)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");const e=new oa;for(let i=0,n=t.length;i<n;i++){const n=t[i]
;e.vertices.push(new gt(n.x,n.y,n.z||0))}return e}}),Object.assign(Zs.prototype,{fromPoints:function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Object.create(Ts.prototype),Object.create(Ts.prototype),sA.prototype=Object.create(Ts.prototype),Object.assign(sA.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}}),class extends Ho{constructor(t,e,i,n){t=t||10,e=e||10,i=new Le(void 0!==i?i:4473924),n=new Le(void 0!==n?n:8947848);const r=e/2,o=t/e,a=t/2,s=[],l=[];for(let t=0,A=0,c=-a;t<=e;t++,c+=o){s.push(-a,0,c,a,0,c),s.push(c,0,-a,c,0,a);const e=t===r?i:n;e.toArray(l,A),A+=3,e.toArray(l,A),A+=3,e.toArray(l,A),A+=3,e.toArray(l,A),A+=3}const A=new li;A.setAttribute("position",new Ke(s,3)),A.setAttribute("color",new Ke(l,3));super(A,new Mo({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}}.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},class extends Ho{constructor(t){const e=tA(t),i=new li,n=[],r=[],o=new Le(0,0,1),a=new Le(0,1,0);for(let t=0;t<e.length;t++){const i=e[t];i.parent&&i.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),r.push(o.r,o.g,o.b),r.push(a.r,a.g,a.b))}i.setAttribute("position",new Ke(n,3)),i.setAttribute("color",new Ke(r,3));super(i,new Mo({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,i=this.geometry,n=i.getAttribute("position");$l.getInverse(this.root.matrixWorld);for(let t=0,i=0;t<e.length;t++){const r=e[t];r.parent&&r.parent.isBone&&(Xl.multiplyMatrices($l,r.matrixWorld),Kl.setFromMatrixPosition(Xl),n.setXYZ(i,Kl.x,Kl.y,Kl.z),Xl.multiplyMatrices($l,r.parent.matrixWorld),Kl.setFromMatrixPosition(Xl),n.setXYZ(i+1,Kl.x,Kl.y,Kl.z),i+=2)}i.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}}.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(ms.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),cl(t)}}),ms.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Object.assign(class{constructor(t,e){Object.defineProperty(this,"isBox2",{value:!0}),this.min=void 0!==t?t:new ot(1/0,1/0),this.max=void 0!==e?e:new ot(-1/0,-1/0)}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const i=ql.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(t){return void 0===t&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new ot),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return void 0===t&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new ot),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return void 0===e&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new ot),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return void 0===e&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new ot),e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return ql.copy(t).clamp(this.min,this.max).sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(yt.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(Tt.prototype,{empty:function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()}}),Vi.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)},Object.assign(rt,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),rt.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),rt.ceilPowerOfTwo(t)}}),Object.assign(at.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBufferAttribute:function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Vt.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){
return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new gt).setFromMatrixColumn(this,3)},setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBufferAttribute:function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,i,n,r,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,n,i,r,o)}}),ye.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},pt.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(Ht.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(ke.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(ke,{barycoordFromPoint:function(t,e,i,n,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),ke.getBarycoord(t,e,i,n,r)},normal:function(t,e,i,n){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),ke.getNormal(t,e,i,n)}}),Object.assign(js.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new La(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Oa(this,t)}}),Object.assign(ot.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(gt.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,i){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(ht.prototype,{fromAttribute:function(t,e,i){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,i)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(oa.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")},applyMatrix:function(t){return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)}}),Object.assign(pe.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},applyMatrix:function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)}}),Object.defineProperties(pe.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),
this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.assign(xi.prototype,{setDrawMode:function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}),Object.defineProperties(xi.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),Object.defineProperties(Io.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(xo.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Co.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(xs.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),Fi.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(qs.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(Ve.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===$},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage($)}}}),Object.assign(Ve.prototype,{setDynamic:function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?$:X),this},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},setArray:function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(li.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addAttribute:function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new Ve(arguments[1],arguments[2])))},addDrawCall:function(t,e,i){void 0!==i&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},removeAttribute:function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)},applyMatrix:function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)}}),Object.defineProperties(li.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(hl.prototype,{maxInstancedCount:{get:function(){return console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount},set:function(t){console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount."),this.instanceCount=t}}}),Object.defineProperties(Wl.prototype,{linePrecision:{get:function(){return console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold},set:function(t){console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead."),this.params.Line.threshold=t}}}),Object.defineProperties(to.prototype,{dynamic:{get:function(){return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.usage===$},set:function(t){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."),this.setUsage(t)}}}),Object.assign(to.prototype,{setDynamic:function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?$:X),this},setArray:function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}}),Object.assign(Ta.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.assign($r.prototype,{dispose:function(){console.error("THREE.Scene: .dispose() has been removed.")}}),Object.defineProperties(Vl.prototype,{dynamic:{
set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this}}}),Object.defineProperties(Ue.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Le}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===t}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}}}),Object.defineProperties(Wa.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(za.prototype,{transparency:{get:function(){return console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission},set:function(t){console.warn("THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission."),this.transmission=t}}}),Object.defineProperties(Mi.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(Kr.prototype,{clearTarget:function(t,e,i,n){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,i,n)},animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},getCurrentRenderTarget:function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},getMaxAnisotropy:function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},getPrecision:function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},allocTextureUnit:function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},setTexture:function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},setTexture2D:function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()}}),Object.defineProperties(Kr.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===t?j:Z}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}}),Object.defineProperties(Hr.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){
console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(dt.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(Ql.prototype,{load:{value:function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this;return(new Il).load(t,(function(t){e.setBuffer(t)})),this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}}),Ni.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)};lt.crossOrigin=void 0,lt.loadTexture=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const r=new ws;r.setCrossOrigin(this.crossOrigin);const o=r.load(t,i,void 0,n);return e&&(o.mapping=e),o},lt.loadTextureCube=function(t,e,i,n){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const r=new Cs;r.setCrossOrigin(this.crossOrigin);const o=r.load(t,i,void 0,n);return e&&(o.mapping=e),o},lt.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},lt.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"121"}}));const lA=90,AA=0,cA=0;class hA{constructor(t){this.domAppended=!1,this.container=t||document.documentElement,this.viewport={w:this.container.clientWidth,h:this.container.clientHeight},this.internalAttitude={yaw:AA,pitch:cA},this.renderer.setSize(this.viewport.w,this.viewport.h),1!==window.devicePixelRatio&&this.renderer.setPixelRatio(window.devicePixelRatio)}get scene(){return this.initThreeJsConfig().scene}get camera(){return this.initThreeJsConfig().camera}get renderer(){return this.initThreeJsConfig().renderer}get geometry(){return this.initThreeJsConfig().geometry}get material(){return this.initThreeJsConfig().material}get mesh(){return this.initThreeJsConfig().mesh}initThreeJsConfig(){if(this.threeJsConfig)return this.threeJsConfig;const t=new $r,e=new Fi(lA,this.viewport.w/this.viewport.h,.001,1e3),i=new Kr,n=new Ga(128,360,180,-Math.PI/2),r=new Oe,o=new xi(n,r);return n.scale(1,1,-1),t.add(e,o),this.threeJsConfig={scene:t,camera:e,renderer:i,geometry:n,material:r,mesh:o},{scene:t,camera:e,renderer:i,geometry:n,material:r,mesh:o}}get renderDom(){return this.renderer.domElement}get fov(){return this.camera.fov}set fov(t){t!==this.camera.fov&&(this.camera.fov=t,this.camera.updateProjectionMatrix(),this.render())}get attitude(){return Object.assign({},this.internalAttitude)}set attitude(t){var e,i;let n=null!=(e=t.pitch)?e:this.internalAttitude.pitch,r=null!=(i=t.yaw)?i:this.internalAttitude.yaw;n===this.internalAttitude.pitch&&r===this.internalAttitude.yaw||this.updateCameraAttitude({pitch:n,yaw:r})}attachTexture(t){var e;null==(e=this.texture)||e.dispose(),this.texture=new Ko(t),this.texture.needsUpdate=!0,this.material.map=this.texture,this.mesh.material=this.material,this.render(),this.domAppended||(this.container.appendChild(this.renderDom),this.domAppended=!0)}updateCameraAttitude(t){const e=new gt(1,0,0),i=new gt(0,-1,0),n=new pt,r=new pt;r.setFromAxisAngle(i,this.internalAttitude.pitch*Math.PI/180),r.multiply(n.setFromAxisAngle(e,this.internalAttitude.yaw*Math.PI/180));const o=new pt;let a=new pt;o.setFromAxisAngle(i,t.pitch*Math.PI/180),o.multiply(n.setFromAxisAngle(e,t.yaw*Math.PI/180)),a=r.inverse().multiply(o),this.camera.quaternion.multiply(a),this.render(),this.internalAttitude=t}render(){this.renderer.render(this.scene,this.camera)}resize(t){const e=t.w||this.container.clientWidth,i=t.h||this.container.clientHeight;this.viewport.w===e&&this.viewport.h===i||(this.viewport.w=e,this.viewport.h=i,this.renderer.setSize(e,i))}reset(){this.fov=lA,this.attitude={pitch:cA,yaw:AA}}dispose(){var t;this.renderer.dispose(),this.geometry.dispose(),this.material.dispose(),null==(t=this.texture)||t.dispose()}}},23574:function(t,e,i){"use strict";i.d(e,{Z:function(){return n}});class n{constructor(t){this.config=t,this.urlList=[],this.reportList=[],this.index=0,this.urlList.push({type:"video",url:t.url,bandWidth:0,id:0,range:`0-${this.config.defaultData}`})}trans(t){if(t<=0||isNaN(Number(t))||!isFinite(Number(t)))return"-";const e=["bps","Kbps","Mbps","Gbps","Tbps"],i=Math.floor(Math.log(t)/Math.log(1024));return 0===i?`${t.toFixed(1)} ${e[i]}`:`${(t/Math.pow(1024,i)).toFixed(1)} ${e[i]}`}start(){return this.starting?new Promise(((t,e)=>{e()})):(this.starting=!0,this.config&&this.config.timeout&&(this.timer=window.setTimeout((()=>{this.abort()}),this.config.timeout)),new Promise(((t,e)=>{this.runTester(t,e)})))}runTester(t,e){const i=this.urlList[this.index];i?this.tester(i).then((n=>{const r={connectionTime:n.connectTime,downloadTime:n.downloadTime,speed:Math.floor(n.speed),bandWidth:i.bandWidth||0,url:i.url,id:i.id,range:i.range,
message:`[SpeedTest] > type: ${i.type}, id: ${i.id}, host: ${i.url?i.url.split("/")[2]:""}, connectionTime: ${n.connectTime} ms, downloadTime: ${n.downloadTime} ms, speed: ${this.trans(n.speed)}, bandWidth: ${this.trans(i.bandWidth)}, range: ${i.range}, url: ${i.url}. \r\n`};this.reportList.push(r),this.aborting?t(this.reportList):(this.index++,this.config&&this.config.onProgress(this.index,this.urlList.length,r.speed),this.runTester(t,e))})).catch((()=>{this.aborting?t(this.reportList):(this.index++,this.config&&this.config.onProgress(this.index,this.urlList.length,0),this.runTester(t,e))})):t(this.reportList)}tester(t){return new Promise(((e,i)=>{const n=(new Date).getTime();let r=0,o=0,a=0;this.xhr=new XMLHttpRequest,this.xhr.open("GET",t.url,!0),this.xhr.setRequestHeader("Range","bytes="+t.range),this.xhr.timeout=2e3,this.xhr.onreadystatechange=()=>{2===this.xhr.readyState&&(r=(new Date).getTime()-n,o=(new Date).getTime())};const s=t=>{if(0===this.xhr.status||this.xhr.status>200&&this.xhr.status<=299){o&&(a=(new Date).getTime()-o);const i=t.loaded;e({connectTime:r,downloadTime:a,speed:8*i/a*1e3||0})}else i()};this.xhr.onerror=()=>{i()},this.xhr.onload=s.bind(this),this.xhr.ontimeout=s.bind(this),this.xhr.onabort=s.bind(this),this.xhr.send()}))}abort(){this.aborting=!0,this.xhr&&this.xhr.abort()}destroy(){clearTimeout(this.timer),delete this.config,delete this.urlList,delete this.reportList,delete this.xhr,delete this.index,delete this.aborting}}},57012:function(t,e,i){"use strict";i.d(e,{zx:function(){return Zl},XZ:function(){return Fs},mZ:function(){return YA},PZ:function(){return $A},UO:function(){return ps},zH:function(){return ul},ne:function(){return ns},Vq:function(){return CA},Lt:function(){return Pl},II:function(){return zs},GT:function(){return MA},s_:function(){return Bl},Ex:function(){return Na},Y8:function(){return ws},Ph:function(){return nl},iR:function(){return Qa},tq:function(){return nA},rs:function(){return Za},mQ:function(){return Yl},ZP:function(){return tc}});var n={};i.r(n),i.d(n,{add:function(){return m()},aiBack:function(){return sa()},aiIcon:function(){return ea()},aiQuestion:function(){return na()},aiTitle:function(){return ao()},aiWink:function(){return oa()},aspectOff:function(){return uo()},aspectOn:function(){return go()},authO:function(){return b()},authP:function(){return E()},auto:function(){return Ve()},autoClose:function(){return ze()},back:function(){return C()},ban:function(){return Zo()},barrage_setting_new:function(){return Lr()},beta:function(){return Ln()},bigvip:function(){return ro()},bilibili:function(){return rr()},blacklist:function(){return zo()},bubbleL:function(){return zi()},bubbleM:function(){return Zi()},chargePink:function(){return $o()},charging:function(){return jr()},chase:function(){return k()},check:function(){return _e()},checkHover:function(){return Fe()},checkboxDefault:function(){return ui()},checkboxSelected:function(){return gi()},clockIn:function(){return Pn()},close:function(){return _()},closeButtonSvg:function(){return co()},cloud:function(){return Gi()},cmdClose:function(){return fn()},coin:function(){return M()},coinNew:function(){return Yn()},collapseArrow:function(){return Ni()},collection:function(){return F()},collectionNew:function(){return ir()},complete:function(){return ki()},danmakuText:function(){return mi()},danmuOff:function(){return N()},danmuOn:function(){return U()},danmuSetting:function(){return G()},dantype:function(){return ut()},dantypeAdvanced:function(){return Z()},dantypeAdvancedDisabled:function(){return z()},dantypeAdvancedMore:function(){return gt()},dantypeBackward:function(){return q()},dantypeBottom:function(){return nt()},dantypeBottomDisabled:function(){return et()},dantypeColor:function(){return st()},dantypeColorDisabled:function(){return ot()},dantypeScroll:function(){return ht()},dantypeScrollDisabled:function(){return At()},dantypeTop:function(){return K()},dantypeTopBottom:function(){return K()},dantypeTopBottomDisabled:function(){return $()},dantypeTopDisabled:function(){return $()},delete:function(){return _i()},dmData:function(){return Rr()},dmPatchBg:function(){return Qo()},dmSwitchOffMobile:function(){return Co()},dmSwitchOffPC:function(){return bo()},dmSwitchOnMobile:function(){return Eo()},dmSwitchOnPC:function(){return mo()},dmback:function(){return Q()},dmcopy:function(){return qi()},dmrecall:function(){return Ki()},dolby:function(){return cn()},dolbyTip:function(){return dn()},dolbyVision:function(){return Uo()},download:function(){return Tr()},dropDotDown:function(){return dr()},dropdown:function(){return wi()},droplistDown:function(){return mt()},droplistUp:function(){return bt()},embeded_add:function(){return Hr()},embeded_like:function(){return Or()},enter:function(){return Et()},epPlaying:function(){return wo()},exclamation:function(){return Ct()},feedback:function(){return wt()},flac:function(){return On()},fullpage:function(){return kt()},fullpageOff:function(){return Qt()},fullscreen:function(){return Mt()},fullscreen2:function(){return ke()},fullscreenEmbedded:function(){return xr()},fullscreenEmbeddedOff:function(){return Sr()},fullscreenOff:function(){return _t()},gameLogo:function(){return Ze()},grade:function(){return qe()},hdr10:function(){return No()},hide:function(){return si()},hook:function(){return $i()},like:function(){return Ft()},likeNew:function(){return Hn()},likeOutline:function(){return ar()},liked:function(){return Nt()},link:function(){return hi()},loopOff:function(){return Gt()},loopOn:function(){return Vt()},more:function(){return zt()},moreSetting:function(){return qo()},move:function(){return Ui()},music:function(){return w()},nav:function(){return Me()},navHover:function(){return Ne()},newClose:function(){return en()},newDanmuSetting:function(){return V()},newPauseState:function(){return rn()},newPlayState:function(){return an()},next:function(){return Zt()},panoramaControlArrow:function(){return Dn()},pause:function(){return qt()},pinOff:function(){return $t()},pinOn:function(){return Kt()},pip:function(){return ee()},pipEmbedded:function(){return Br()},play:function(){return oe()},playData:function(){return Dr()},playState:function(){return ne()},popupClose:function(){return xn()},popupTick:function(){return Sn()},protect:function(){return Vi()},pulldown:function(){return Mi()},question:function(){return _o()},radioDefault:function(){return bi()},radioSelected:function(){return Ei()},refresh:function(){return Fi()},replay:function(){return se()},replyOutline:function(){return lr()},reserve:function(){return In()},rightArrow:function(){return to()},rookieCheck:function(){return Ue()},rookieNav:function(){return Ge()},rotate:function(){return ko()},seniorOff:function(){return Tn()},seniorOn:function(){return Rn()},sequential:function(){return Qi()},setting:function(){return Ae()},settingEmbedded:function(){return Ir()},setting_new:function(){return Pr()},share:function(){return he()},shareNew:function(){return tr()},shareOutline:function(){return cr()},shareQQ:function(){return Wn()},shareQzone:function(){return jn()},shareTieba:function(){return Jn()},shareWeibo:function(){return Xn()},star1:function(){return Ke()},star2:function(){return $e()},star3:function(){return ei()},star4:function(){return ni()},star5:function(){return oi()},subtitle:function(){return pr()},subtitleAiNormal:function(){return me()},subtitleAiTranslate:function(){return be()},subtitleClose:function(){return fr()},subtitleOff:function(){return ue()},subtitleOn:function(){return ge()},svip:function(){return pn()},sync:function(){return Ai()},threePoint:function(){return Go()},thumb:function(){return Ci()},tipCenter:function(){return vn()},tipLeft:function(){return yn()},tips:function(){return Bn()},trash:function(){return Vo()},tv:function(){return lo()},tv_pause:function(){return Yr()},tv_play:function(){return Wr()},unlike:function(){return Ut()},upLabel:function(){return ln()},vipClose:function(){return Jr()},vipInfo:function(){return Xr()},vipVision:function(){return Mo()},vipVisionQa:function(){return Fo()},volume:function(){return Ce()},volumeEmbedded:function(){return yr()},volumeEmbeddedOff:function(){
return vr()},volumeOff:function(){return Ee()},watching:function(){return io()},whiteRightArrow:function(){return Ko()},widescreen:function(){return Qe()},widescreenOff:function(){return we()}});var r=i(50282),o=i.n(r),a=i(75572),s=i.n(a),l=i(64423),A=i.n(l),c=i(52182),h=i.n(c),d=i(73632),u=i.n(d),p=i(49326),g={attributes:{"data-injector":"nano"}};g.setAttributes=h(),g.insert=A().bind(null,"head"),g.domAPI=s(),g.insertStyleElement=u();o()(p.Z,g),p.Z&&p.Z.locals&&p.Z.locals;var f=i(80155),m=i.n(f),y=i(53766),b=i.n(y),v=i(68904),E=i.n(v),I=i(23849),C=i.n(I),B=i(91081),w=i.n(B),x=i(29888),Q=i.n(x),S=i(39154),k=i.n(S),D=i(25360),_=i.n(D),R=i(26658),M=i.n(R),T=i(32798),F=i.n(T),L=i(54160),N=i.n(L),P=i(52399),U=i.n(P),O=i(68224),G=i.n(O),H=i(47500),V=i.n(H),Y=i(71118),z=i.n(Y),W=i(25638),Z=i.n(W),j=i(96827),q=i.n(j),J=i(59229),K=i.n(J),X=i(63385),$=i.n(X),tt=i(95887),et=i.n(tt),it=i(96253),nt=i.n(it),rt=i(180),ot=i.n(rt),at=i(28016),st=i.n(at),lt=i(14561),At=i.n(lt),ct=i(92853),ht=i.n(ct),dt=i(50934),ut=i.n(dt),pt=i(38341),gt=i.n(pt),ft=i(20939),mt=i.n(ft),yt=i(76388),bt=i.n(yt),vt=i(97203),Et=i.n(vt),It=i(72083),Ct=i.n(It),Bt=i(54888),wt=i.n(Bt),xt=i(88961),Qt=i.n(xt),St=i(23219),kt=i.n(St),Dt=i(54372),_t=i.n(Dt),Rt=i(38351),Mt=i.n(Rt),Tt=i(70612),Ft=i.n(Tt),Lt=i(46348),Nt=i.n(Lt),Pt=i(76497),Ut=i.n(Pt),Ot=i(14164),Gt=i.n(Ot),Ht=i(73859),Vt=i.n(Ht),Yt=i(78136),zt=i.n(Yt),Wt=i(77561),Zt=i.n(Wt),jt=i(41256),qt=i.n(jt),Jt=i(12647),Kt=i.n(Jt),Xt=i(90174),$t=i.n(Xt),te=i(24223),ee=i.n(te),ie=i(77179),ne=i.n(ie),re=i(33679),oe=i.n(re),ae=i(80563),se=i.n(ae),le=i(998),Ae=i.n(le),ce=i(87115),he=i.n(ce),de=i(55048),ue=i.n(de),pe=i(55298),ge=i.n(pe),fe=i(82853),me=i.n(fe),ye=i(16174),be=i.n(ye),ve=i(54347),Ee=i.n(ve),Ie=i(14753),Ce=i.n(Ie),Be=i(3341),we=i.n(Be),xe=i(53185),Qe=i.n(xe),Se=i(81958),ke=i.n(Se),De=i(69575),_e=i.n(De),Re=i(88390),Me=i.n(Re),Te=i(42643),Fe=i.n(Te),Le=i(30116),Ne=i.n(Le),Pe=i(22996),Ue=i.n(Pe),Oe=i(4826),Ge=i.n(Oe),He=i(20711),Ve=i.n(He),Ye=i(18535),ze=i.n(Ye),We=i(31748),Ze=i.n(We),je=i(58110),qe=i.n(je),Je=i(32468),Ke=i.n(Je),Xe=i(30203),$e=i.n(Xe),ti=i(45786),ei=i.n(ti),ii=i(93),ni=i.n(ii),ri=i(703),oi=i.n(ri),ai=i(3225),si=i.n(ai),li=i(93196),Ai=i.n(li),ci=i(92095),hi=i.n(ci),di=i(56479),ui=i.n(di),pi=i(59930),gi=i.n(pi),fi=i(32875),mi=i.n(fi),yi=i(29532),bi=i.n(yi),vi=i(69272),Ei=i.n(vi),Ii=i(57619),Ci=i.n(Ii),Bi=i(75740),wi=i.n(Bi),xi=i(24508),Qi=i.n(xi),Si=i(38665),ki=i.n(Si),Di=i(32547),_i=i.n(Di),Ri=i(35130),Mi=i.n(Ri),Ti=i(32971),Fi=i.n(Ti),Li=i(54826),Ni=i.n(Li),Pi=i(73476),Ui=i.n(Pi),Oi=i(25817),Gi=i.n(Oi),Hi=i(41814),Vi=i.n(Hi),Yi=i(87395),zi=i.n(Yi),Wi=i(65389),Zi=i.n(Wi),ji=i(79302),qi=i.n(ji),Ji=i(85753),Ki=i.n(Ji),Xi=i(95881),$i=i.n(Xi),tn=i(48685),en=i.n(tn),nn=i(80314),rn=i.n(nn),on=i(14972),an=i.n(on),sn=i(73322),ln=i.n(sn),An=i(24701),cn=i.n(An),hn=i(7975),dn=i.n(hn),un=i(50323),pn=i.n(un),gn=i(98242),fn=i.n(gn),mn=i(74696),yn=i.n(mn),bn=i(42718),vn=i.n(bn),En=i(71159),In=i.n(En),Cn=i(2661),Bn=i.n(Cn),wn=i(53225),xn=i.n(wn),Qn=i(82786),Sn=i.n(Qn),kn=i(47739),Dn=i.n(kn),_n=i(88602),Rn=i.n(_n),Mn=i(97654),Tn=i.n(Mn),Fn=i(34637),Ln=i.n(Fn),Nn=i(48837),Pn=i.n(Nn),Un=i(90110),On=i.n(Un),Gn=i(82227),Hn=i.n(Gn),Vn=i(98546),Yn=i.n(Vn),zn=i(23596),Wn=i.n(zn),Zn=i(86346),jn=i.n(Zn),qn=i(98611),Jn=i.n(qn),Kn=i(54800),Xn=i.n(Kn),$n=i(15706),tr=i.n($n),er=i(74642),ir=i.n(er),nr=i(42524),rr=i.n(nr),or=i(45483),ar=i.n(or),sr=i(88712),lr=i.n(sr),Ar=i(86049),cr=i.n(Ar),hr=i(87857),dr=i.n(hr),ur=i(84203),pr=i.n(ur),gr=i(73193),fr=i.n(gr),mr=i(1811),yr=i.n(mr),br=i(9339),vr=i.n(br),Er=i(91),Ir=i.n(Er),Cr=i(91785),Br=i.n(Cr),wr=i(21689),xr=i.n(wr),Qr=i(91202),Sr=i.n(Qr),kr=i(18558),Dr=i.n(kr),_r=i(26616),Rr=i.n(_r),Mr=i(63199),Tr=i.n(Mr),Fr=i(86494),Lr=i.n(Fr),Nr=i(20623),Pr=i.n(Nr),Ur=i(44446),Or=i.n(Ur),Gr=i(44006),Hr=i.n(Gr),Vr=i(34675),Yr=i.n(Vr),zr=i(19570),Wr=i.n(zr),Zr=i(56145),jr=i.n(Zr),qr=i(62363),Jr=i.n(qr),Kr=i(59375),Xr=i.n(Kr),$r=i(94527),to=i.n($r),eo=i(82087),io=i.n(eo),no=i(87563),ro=i.n(no),oo=i(17104),ao=i.n(oo),so=i(97956),lo=i.n(so),Ao=i(22121),co=i.n(Ao),ho=i(40762),uo=i.n(ho),po=i(78089),go=i.n(po),fo=i(34709),mo=i.n(fo),yo=i(33933),bo=i.n(yo),vo=i(96986),Eo=i.n(vo),Io=i(90536),Co=i.n(Io),Bo=i(31928),wo=i.n(Bo),xo=i(44011),Qo=i.n(xo),So=i(11799),ko=i.n(So),Do=i(63904),_o=i.n(Do),Ro=i(48132),Mo=i.n(Ro),To=i(92565),Fo=i.n(To),Lo=i(12227),No=i.n(Lo),Po=i(45916),Uo=i.n(Po),Oo=i(61731),Go=i.n(Oo),Ho=i(96564),Vo=i.n(Ho),Yo=i(29740),zo=i.n(Yo),Wo=i(24137),Zo=i.n(Wo),jo=i(28892),qo=i.n(jo),Jo=i(55801),Ko=i.n(Jo),Xo=i(63476),$o=i.n(Xo),ta=i(27059),ea=i.n(ta),ia=i(75348),na=i.n(ia),ra=i(14779),oa=i.n(ra),aa=i(22819),sa=i.n(aa),la=Object.defineProperty,Aa=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,ha=Object.prototype.propertyIsEnumerable,da=(t,e,i)=>e in t?la(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ua=(t,e)=>{for(var i in e||(e={}))ca.call(e,i)&&da(t,i,e[i]);if(Aa)for(var i of Aa(e))ha.call(e,i)&&da(t,i,e[i]);return t};var pa=class{constructor(t,e,i,n){this.state={},this.prefix="bui-",this.disabledIn=!1,this.container=t||document.createElement("div"),this.options=ua(ua({},n),e),this.name=i,this.events={},this.container.classList.add(this.prefix.slice(0,-1)),this.container.classList.add(`${this.prefix}${i}`),this.options.dark&&this.container.classList.add(`${this.prefix}dark`),this.disabled=this.options.disabled,this.options.hidden&&this.hide(),this.area=document.createElement("div"),this.area.classList.add(`${this.prefix}area`);for(let t=0;t<this.container.childNodes.length;t++){const e=this.container.childNodes[t];this.area.appendChild(e)}this.container.appendChild(this.area),this.init()}on(t,e){return"string"==typeof t&&"function"==typeof e&&(this.events[t]||(this.events[t]=[]),this.events[t].push(e)),this}tpl(t){this.area.innerHTML=t.tpl(ua({prefix:this.prefix,svg:n},t))}off(t,e){if(e){const i=this.events[t].indexOf(e);i>-1&&this.events[t].splice(i,1)}else this.events[t]=[];return this}trigger(t,e){this.events[t]&&this.events[t].length&&this.events[t].forEach((t=>{t(e)}))}set disabled(t){t?this.container.classList.add(`${this.prefix}disabled`):this.container.classList.remove(`${this.prefix}disabled`),this.disabledIn=t}get disabled(){return this.disabledIn}show(){this.container.style.display=""}hide(){this.container.style.display="none"}destroy(){this.trigger("beforeDestroy"),this.events={},this.container.innerHTML="",this.container.classList.remove(this.prefix.slice(0,-1)),this.container.classList.remove(`${this.prefix}${this.name}`),this.container.classList.remove(`${this.prefix}dark`),this.container.classList.remove(`${this.prefix}disabled`)}},ga=i(23483),fa=i.n(ga),ma=i(65159),ya=i(4385),ba={attributes:{"data-injector":"nano"}};ba.setAttributes=h(),ba.insert=A().bind(null,"head"),ba.domAPI=s(),ba.insertStyleElement=u();o()(ya.Z,ba),ya.Z&&ya.Z.locals&&ya.Z.locals;var va=i(20733),Ea=i.n(va),Ia=Object.defineProperty,Ca=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,xa=(t,e,i)=>e in t?Ia(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Qa=class extends pa{constructor(t,e){super(t,e,"slider",{value:0,steps:null,vertical:!1,trackLength:null,trackBreadth:null,thumbCenter:!1,thumbWidth:null,thumbHeight:null,autohideThumb:!1,videoProgress:!1,valueSetAnalyze:null,valueGetAnalyze:null,thumbSpecial:!1,showTooltip:!1,formatTooltip:t=>parseInt(100*t+"",10)+"",segmented:!1,segmentedDate:null,segmentedWidth:null,shadow:!1}),this.delayScaleThumb=300}init(){try{this.window=window.parent&&window.parent.document&&window.parent}catch(t){}if(this.options.steps&&this.options.steps.sort(((t,e)=>t.value-e.value)),this.valueOut=this.options.value,this.direction=this.options.vertical?"Y":"X",this.tpl(((t,e)=>{for(var i in e||(e={}))Ba.call(e,i)&&xa(t,i,e[i]);if(Ca)for(var i of Ca(e))wa.call(e,i)&&xa(t,i,e[i]);return t})({tpl:fa()},this.options)),this.elements={wrap:this.area.querySelector(`.${this.prefix}bar-wrap`),bar:this.area.querySelector(`.${this.prefix}bar-normal`),thumb:this.area.querySelector(`.${this.prefix}thumb`),track:this.area.querySelector(`.${this.prefix}track`),
segment:this.area.querySelector(`.${this.prefix}segmented`),dotSpecial:this.area.querySelector(`.${this.prefix}thumb-dot-special`),bufferBar:this.options.videoProgress?this.area.querySelector(`.${this.prefix}bar-buffer`):null,thumbTooltip:this.area.querySelector(`.${this.prefix}thumb-tooltip`)},this.options.segmentedDate){let t=0;for(let e=0;e<this.options.segmentedDate.length;e++){const i=this.area.querySelectorAll(`.${this.prefix}bar-wrap`),n=this.area.querySelectorAll(`.${this.prefix}segmented-padding`),r=Number(this.area.clientWidth);n[e].addEventListener("mouseover",(()=>{i[e].classList.add("hover")})),n[e].addEventListener("mouseout",(()=>{i[e].classList.remove("hover")})),i[e].style.width=this.options.segmentedDate[e]*r+"px",i[e].style.left=r*this.options.segmentedWidth*e+t+"px",e<this.options.segmentedDate.length&&(i[e].style.marginRight=r*this.options.segmentedWidth+"px"),t+=this.options.segmentedDate[e]*r}}let t,e=0;this.updateThumb(ma),this.containerLength=this.options.trackLength||(this.options.vertical?this.area.clientHeight:this.area.clientWidth),this.thumbLength=this.elements.thumb.clientWidth||this.options.thumbWidth||12,this.move(this.options.value);const i=i=>{i.preventDefault(),this.options.segmentedDate?this.move(this.handleEvent(i).allPercentage,!0,this.handleEvent(i).percentage,this.segmentPart):this.move(this.handleEvent(i).percentage);const n=i.clientX||i.changedTouches&&i.changedTouches[0].clientX;this.thumbDragAnimation&&0===e&&(this.elements.dotSpecial.innerHTML="",this.elements.dotSpecial.appendChild(this.thumbDragContainer),this.thumbDragAnimation.goToAndStop(Math.floor(this.thumbDragAnimation.totalFrames/2),!0)),this.thumbDragAnimation&&n>t&&e<1?(e=1,this.thumbDragAnimation.setDirection(e),this.thumbDragAnimation.play()):this.thumbDragAnimation&&n<t&&e>-1&&(e=-1,this.thumbDragAnimation.setDirection(e),this.thumbDragAnimation.play()),t=n},n=t=>{this.window&&(this.window.removeEventListener("mouseup",n),this.window.removeEventListener("mousemove",i),this.window.removeEventListener("touchend",n),this.window.removeEventListener("touchmove",i)),window.removeEventListener("mouseup",n),window.removeEventListener("mousemove",i),window.removeEventListener("touchend",n),window.removeEventListener("touchmove",i),this.options.autohideThumb?this.options.thumbSpecial&&this.hasDropData?this.delayScaleThumbInterval=window.setTimeout((()=>{this.elements.track.classList.remove(`${this.prefix}track-moving`)}),this.delayScaleThumb):this.elements.track.classList.remove(`${this.prefix}track-moving`):this.options.showTooltip&&this.elements.track.classList.remove(`${this.prefix}track-moving`),this.valueOut!==this.valueIn&&(this.valueOut=this.valueIn,this.trigger("change",{value:this.getAnalyzedValue(this.options.valueGetAnalyze,this.valueIn),manual:!0})),this.thumbDropAnimation&&(this.elements.dotSpecial.innerHTML="",this.elements.dotSpecial.appendChild(this.thumbDropContainer),this.hasDropData?this.thumbDropAnimation.goToAndPlay(0,!0):this.thumbDropAnimation.goToAndStop(Math.floor(this.thumbDropAnimation.totalFrames/2),!0),e=0),this.trigger("end")};this.area.addEventListener("mousedown",(t=>{this.disabled||0!==t.button||(t.preventDefault(),this.trigger("start"),window.addEventListener("mousemove",i),window.addEventListener("mouseup",n),document.addEventListener("mouseleave",n),this.window&&(this.window.addEventListener("mousemove",i),this.window.addEventListener("mouseup",n),this.rect=window.frameElement&&window.frameElement.getBoundingClientRect()),(this.options.autohideThumb||this.options.showTooltip)&&(clearTimeout(this.delayScaleThumbInterval),this.elements.track.classList.add(`${this.prefix}track-moving`)),this.move(this.handleEvent(t).percentage))})),this.area.addEventListener("touchstart",(t=>{this.disabled||(t.cancelable&&t.preventDefault(),this.trigger("start"),this.area.addEventListener("touchmove",i),this.area.addEventListener("touchend",n),this.area.addEventListener("touchcancel",n),(this.options.autohideThumb||this.options.showTooltip)&&(clearTimeout(this.delayScaleThumbInterval),this.elements.track.classList.add(`${this.prefix}track-moving`)),this.move(this.handleEvent(t).percentage))}))}updateThumb(t,e){this.options.thumbSpecial&&t&&(e?this.hasDropData=!0:(this.hasDropData=!1,e=t),this.thumbDragAnimation&&this.thumbDragAnimation.destroy(),this.thumbDragContainer||(this.thumbDragContainer=document.createElement("div")),this.thumbDropAnimation&&this.thumbDropAnimation.destroy(),this.thumbDropContainer||(this.thumbDropContainer=document.createElement("div")),this.elements.dotSpecial.innerHTML="",this.elements.dotSpecial.appendChild(this.thumbDropContainer),this.delayScaleThumb=300,this.thumbDragAnimation=Ea().loadAnimation({container:this.thumbDragContainer,renderer:"svg",loop:!1,autoplay:!1,animationData:t}),this.thumbDropAnimation=Ea().loadAnimation({container:this.thumbDropContainer,renderer:"svg",loop:!1,autoplay:!1,animationData:e}),this.hasDropData?(this.thumbDropAnimation.goToAndStop(0,!0),this.thumbDropAnimation.totalFrames>0&&this.thumbDropAnimation.animationData&&this.thumbDropAnimation.animationData.fr>0&&(this.delayScaleThumb=Math.floor(this.thumbDropAnimation.totalFrames/this.thumbDropAnimation.animationData.fr*1e3)+200)):this.thumbDropAnimation.goToAndStop(Math.floor(this.thumbDropAnimation.totalFrames/2),!0))}handleEvent(t,e){let i,n,r,o=0,a=0;if(this.window===t.currentTarget&&this.rect&&(o=+this.rect[this.rotate?"top":"left"]||0,a=+this.rect[this.rotate?"right":"top"]||0),this.options.vertical){const e=this.rotate?"clientX":"clientY";r=this.elements.track.getBoundingClientRect()[this.rotate?"left":"bottom"]-(t[e]||t.changedTouches&&t.changedTouches[0][e]||0)+a,i=r/this.elements.track.clientHeight}else{const e=this.rotate?"clientY":"clientX";if(r=(t[e]||t.changedTouches&&t.changedTouches[0][e]||0)-this.elements.track.getBoundingClientRect()[this.rotate?"top":"left"]-o,i=r/this.elements.track.clientWidth,this.options.segmentedDate){let t=0,e=[];for(let i=0;i<this.options.segmentedDate.length;i++){let n=t;t+=this.options.segmentedDate[i],e.push({start:n,end:t})}this.getSegmentPart(i);const r=e[this.segmentPart].end-e[this.segmentPart].start;n=(i-e[this.segmentPart].start)/r}}return i=Math.max(i,0),i=Math.min(i,1),{percentage:i,allPercentage:n,distance:r}}getSegmentPart(t){let e,i=0,n=[];for(let t=0;t<this.options.segmentedDate.length;t++){let e=i;i+=this.options.segmentedDate[t],n.push({start:e,end:i})}for(let i=0;i<n.length;i++)if(t>=n[i].start&&t<n[i].end){e=i;break}this.segmentPart=e}value(t,e=!1,i){if(void 0!==t){"number"==typeof(t=parseFloat(t))&&(t=this.getAnalyzedValue(this.options.valueSetAnalyze,t),t=Math.max(t,0),(t=Math.min(t,1))!==this.valueOut&&(this.options.segmentedDate?(this.getSegmentPart(t),this.move(t,e,i,this.segmentPart)):this.move(t,e),this.valueOut=t,e||this.trigger("change",{value:this.getAnalyzedValue(this.options.valueGetAnalyze,t),manual:!1})))}return this.getAnalyzedValue(this.options.valueGetAnalyze,this.valueIn)}getAnalyzedValue(t,e){return t?parseFloat(t(e).toFixed(5)):e}resize(){if(this.containerLength=this.options.vertical?this.area.clientHeight:this.area.clientWidth,this.options.segmentedDate){let t=0;for(let e=0;e<this.options.segmentedDate.length;e++){const i=this.area.querySelectorAll(`.${this.prefix}bar-wrap`),n=(this.area.querySelectorAll(`.${this.prefix}segmented-padding`),Number(this.area.clientWidth));i[e].style.width=this.options.segmentedDate[e]*n+"px",i[e].style.left=n*this.options.segmentedWidth*e+t+"px",e<this.options.segmentedDate.length&&(i[e].style.marginRight=n*this.options.segmentedWidth+"px"),t+=this.options.segmentedDate[e]*n}}this.thumbX()}bufferValue(t){if(this.options.videoProgress){if(void 0!==t&&"number"==typeof t)if(t=Math.max(t,0),t=Math.min(t,1),this.valueBuffer=t,null==this.options.segmentedDate)this.elements.bufferBar.style.webkitTransform=`scale${this.direction}(${Math.max(t,.001)})`,this.elements.bufferBar.style.transform=`scale${this.direction}(${Math.max(t,.001)})`;else{let t=0;for(let e=0;e<this.options.segmentedDate.length;e++){
const i=this.area.querySelectorAll(`.${this.prefix}bar-buffer`),n=(this.valueBuffer-t)/this.options.segmentedDate[e];if(!(this.valueBuffer-t>0))return;t+=this.options.segmentedDate[e],i[e].style.transform=`scale${this.direction}(${Math.min(n,1)})`}}return this.valueBuffer}}move(t,e=!1,i,n){if(t=Math.max(t,0),t=Math.min(t,1),this.options.steps){let e=this.options.steps.length-1;for(let i=0;i<this.options.steps.length;i++)if(this.options.steps[i].value>t){e=i;break}e=this.options.steps[e].value-t>t-this.options.steps[e-1].value?e-1:e,t=this.options.steps[e].value}if(this.valueIn!==t){if(this.valueIn=t,this.options.segmentedDate){const t=this.area.querySelectorAll(`.${this.prefix}bar-normal`);if(t[n]){if(n>0)for(let e=0;e<n;e++)t[e].style.transform=`scale${this.direction}(${Math.max(1,.001)})`;for(let e=n+1;e<t.length;e++)t[e].style.transform=`scale${this.direction}(0)`;t[n].style.transform=`scale${this.direction}(${Math.max(i,.001)})`}this.thumbX(i,this.segmentPart)}else this.elements.bar&&(this.elements.bar.style.webkitTransform=`scale${this.direction}(${Math.max(t,.001)})`,this.elements.bar.style.transform=`scale${this.direction}(${Math.max(t,.001)})`),this.thumbX();this.options.showTooltip&&(this.elements.thumbTooltip.innerHTML=this.options.formatTooltip(t)),e||this.trigger("move",{value:this.getAnalyzedValue(this.options.valueGetAnalyze,t)})}}setRotate(t){this.rotate=t}getBufferValue(){return this.valueBuffer}thumbX(t=this.valueIn,e){let i=0;if(this.options.steps&&0!==t&&1!==t||this.options.thumbCenter)if(null==this.options.segmentedDate)i=(this.containerLength-this.thumbLength)*t*(this.options.vertical?-1:1);else{const n=Number(this.area.clientWidth);let r=0;for(let o=0;o<e+1;o++)i=0===o?n*t*this.options.segmentedDate[o]-this.thumbLength/2:n*t*this.options.segmentedDate[o]+r*n-this.thumbLength/2,r+=this.options.segmentedDate[o]}else i=(this.containerLength-this.thumbLength)*t*(this.options.vertical?-1:1);this.elements.thumb.style.webkitTransform=`translate${this.direction}(${i}px)`,this.elements.thumb.style.transform=`translate${this.direction}(${i}px)`}},Sa=i(85743),ka=i.n(Sa),Da=i(46713),_a={attributes:{"data-injector":"nano"}};_a.setAttributes=h(),_a.insert=A().bind(null,"head"),_a.domAPI=s(),_a.insertStyleElement=u();o()(Da.Z,_a),Da.Z&&Da.Z.locals&&Da.Z.locals;var Ra=Object.defineProperty,Ma=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,La=(t,e,i)=>e in t?Ra(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class Na extends pa{constructor(t,e){super(t,e,"progress",{value:0,steps:null})}init(){try{this.window=window.parent&&window.parent.document&&window.parent}catch(t){}this.valueOut=this.options.value,this.tpl(((t,e)=>{for(var i in e||(e={}))Ta.call(e,i)&&La(t,i,e[i]);if(Ma)for(var i of Ma(e))Fa.call(e,i)&&La(t,i,e[i]);return t})({tpl:ka()},this.options)),this.elements={wrap:this.container.querySelector(`.${this.prefix}progress-wrap`),bar:this.container.querySelector(`.${this.prefix}progress-bar`),thumb:this.container.querySelector(`.${this.prefix}progress-dot`),val:this.container.querySelector(`.${this.prefix}progress-val`)},this.options.valWidth&&(this.valDom=this.container.querySelector(`.${this.prefix}progress-val`)),this.value(this.options.value);const t=t=>{this.move(this.handleEvent(t).percent),this.moved=!0},e=i=>{this.window&&(this.window.removeEventListener("mouseup",e),this.window.removeEventListener("mousemove",t),this.window.removeEventListener("touchend",e),this.window.removeEventListener("touchmove",t)),document.removeEventListener("mouseleave",e),window.removeEventListener("mouseup",e),window.removeEventListener("mousemove",t),window.removeEventListener("touchend",e),window.removeEventListener("touchmove",t),this.elements.wrap.classList.remove(`${this.prefix}track-moving`),(this.valueOut!==this.valueIn||this.moved)&&(this.valueOut=this.valueIn,this.trigger("change",{value:this.getAnalyzedValue(this.options.val2show,this.valueIn),manual:!0})),this.moved=!1};this.container.addEventListener("mousedown",(i=>{0===i.button&&(i.preventDefault(),window.addEventListener("mousemove",t),window.addEventListener("mouseup",e),document.addEventListener("mouseleave",e),this.window&&(this.window.addEventListener("mousemove",t),this.window.addEventListener("mouseup",e),this.rect=window.frameElement&&window.frameElement.getBoundingClientRect()),this.move(this.handleEvent(i).percent))})),this.container.addEventListener("touchstart",(i=>{i.cancelable&&i.preventDefault(),this.container.addEventListener("touchmove",t),this.container.addEventListener("touchend",e),this.container.addEventListener("touchcancel",e),this.move(this.handleEvent(i).percent)})),this.elements.val.addEventListener("mousedown",(t=>{t.stopPropagation()}),!0),this.elements.val.addEventListener("touchstart",(t=>{t.stopPropagation()}),!0)}handleEvent(t){let e,i,n=0;this.window===t.currentTarget&&this.rect&&(n=+this.rect.left||0);const r="clientX";return i=(t[r]||t.changedTouches&&t.changedTouches[0][r]||0)-this.elements.wrap.getBoundingClientRect().left-n,e=i/this.elements.wrap.clientWidth,e=Math.max(e,0),e=Math.min(e,1),{percent:e,distance:i}}getAnalyzedValue(t,e){return t?parseFloat(t(e).toFixed(2)):e}resize(){if(this.options.segmentedDate){let t=0;for(let e=0;e<this.options.segmentedDate.length;e++){const i=this.container.querySelectorAll(`.${this.prefix}bar-wrap`),n=Number(this.container.clientWidth)-(this.options.segmentedDate.length-1)*(Number(this.container.clientWidth)*this.options.segmentedWidth);i[e].style.width=this.options.segmentedDate[e]*n+"px",i[e].style.left=n*this.options.segmentedWidth*e+t+"px",e<this.options.segmentedDate.length&&(i[e].style.marginRight=n*this.options.segmentedWidth+"px"),t+=this.options.segmentedDate[e]*n}}}value(t,e=!1){"number"==typeof t&&(this.options.show2val&&(t=this.options.show2val(t)),this.move(t,e))}move(t,e=!1){let i;if(t=Math.max(+t,0),t=Math.min(t,1),this.options.steps){i=this.options.steps.length-1;for(let e=0;e<this.options.steps.length;e++)if(this.options.steps[e].value>t){i=e;break}this.options.steps[i-1]&&(i=this.options.steps[i].value-t>t-this.options.steps[i-1].value?i-1:i),t=this.options.steps[i].value}if(this.valueIn!==t){this.valueIn=t,this.elements.bar&&(this.elements.bar.style.width=100*t+"%"),this.elements.thumb.style.transform=0===t?"translate3d(10px, -4px, 0)":"";const n=this.getAnalyzedValue(this.options.val2show,t);this.trigger("change",{value:n,manual:e}),this.options.valWidth&&(this.options.steps?this.valDom.textContent=this.options.steps[i].text:this.valDom.textContent=Math.round(100*n)+"%")}}}var Pa=i(96515),Ua=i.n(Pa),Oa=i(63434),Ga={attributes:{"data-injector":"nano"}};Ga.setAttributes=h(),Ga.insert=A().bind(null,"head"),Ga.domAPI=s(),Ga.insertStyleElement=u();o()(Oa.Z,Ga),Oa.Z&&Oa.Z.locals&&Oa.Z.locals;var Ha=Object.defineProperty,Va=Object.getOwnPropertySymbols,Ya=Object.prototype.hasOwnProperty,za=Object.prototype.propertyIsEnumerable,Wa=(t,e,i)=>e in t?Ha(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Za=class extends pa{constructor(t,e){super(t,e,"switch",{value:!1,content:mi(),name:"",redDot:!1})}init(){this.tpl(((t,e)=>{for(var i in e||(e={}))Ya.call(e,i)&&Wa(t,i,e[i]);if(Va)for(var i of Va(e))za.call(e,i)&&Wa(t,i,e[i]);return t})({tpl:Ua()},this.options)),this.elements={switchInput:this.area.querySelector(`.${this.prefix}switch-input`),name:this.area.querySelector(`.${this.prefix}switch-name`),redDot:this.options.redDot?this.area.querySelector(`.${this.prefix}switch-reddot`):null},this.elements.switchInput.addEventListener("change",(()=>{this.trigger("change",{value:this.value(),manual:!0})}))}value(t){return void 0!==t&&t!==this.elements.switchInput.checked&&(this.elements.switchInput.checked=t,this.trigger("change",{value:t,manual:!1})),this.elements.switchInput.checked}setRedDot(t){t!==this.options.redDot&&(this.options.redDot=t,t?this.elements.redDot?this.elements.redDot.style.display="block":(this.elements.name.insertAdjacentHTML("beforeend",'<span class="{{ prefix }}switch-reddot"></span>'),
this.elements.redDot=this.elements.name.querySelector(`.${this.prefix}switch-reddot`)):this.elements.redDot.style.display="none")}},ja=i(92830),qa=i.n(ja),Ja=i(19876),Ka={attributes:{"data-injector":"nano"}};Ka.setAttributes=h(),Ka.insert=A().bind(null,"head"),Ka.domAPI=s(),Ka.insertStyleElement=u();o()(Ja.Z,Ka),Ja.Z&&Ja.Z.locals&&Ja.Z.locals;var Xa=Object.defineProperty,$a=Object.getOwnPropertySymbols,ts=Object.prototype.hasOwnProperty,es=Object.prototype.propertyIsEnumerable,is=(t,e,i)=>e in t?Xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ns=class extends pa{constructor(t,e){const i=e.useMobileStyle?{on:Eo(),off:Co()}:e.isPc?{on:mo(),off:bo()}:{on:U(),off:N()};super(t,e,"danmaku-switch",{value:!1,onContent:i.on,offContent:i.off})}set disabled(t){t?this.container.classList.add(`${this.prefix}disabled`):this.container.classList.remove(`${this.prefix}disabled`),this.disabledIn=t}init(){var t;this.tpl(((t,e)=>{for(var i in e||(e={}))ts.call(e,i)&&is(t,i,e[i]);if($a)for(var i of $a(e))es.call(e,i)&&is(t,i,e[i]);return t})({tpl:qa()},this.options)),this.elements={switchInput:this.container.querySelector(`.${this.prefix}danmaku-switch-input`),switchLabel:this.container.querySelector(`.${this.prefix}danmaku-switch-label`)},this.changeHandler=()=>{this.trigger("change",{value:this.value(),manual:!0})},null==(t=this.elements.switchInput)||t.addEventListener("change",this.changeHandler)}value(t){return void 0!==t&&t!==this.elements.switchInput.checked&&(this.elements.switchInput.checked=t,this.trigger("change",{value:t,manual:!1})),this.elements.switchInput.checked}destroy(){this.changeHandler&&this.elements.switchInput&&this.elements.switchInput.removeEventListener("change",this.changeHandler),super.destroy()}},rs=i(85074),os=i.n(rs),as=i(11966),ss={attributes:{"data-injector":"nano"}};ss.setAttributes=h(),ss.insert=A().bind(null,"head"),ss.domAPI=s(),ss.insertStyleElement=u();o()(as.Z,ss),as.Z&&as.Z.locals&&as.Z.locals;var ls=Object.defineProperty,As=Object.getOwnPropertySymbols,cs=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,ds=(t,e,i)=>e in t?ls(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,us=(t,e)=>{for(var i in e||(e={}))cs.call(e,i)&&ds(t,i,e[i]);if(As)for(var i of As(e))hs.call(e,i)&&ds(t,i,e[i]);return t};var ps=class extends pa{constructor(t,e){super(t,e,"collapse",{value:!1,foldText:Et(),unfoldText:Et(),canCollapse:!0})}init(){this.valueIn=this.options.value,this.tpl(us({tpl:os()},this.options)),this.elements={wrap:this.area.querySelector(`.${this.prefix}collapse-wrap`),body:this.area.querySelector(`.${this.prefix}collapse-body`),header:this.area.querySelector(`.${this.prefix}collapse-header`),arrowText:this.area.querySelector(`.${this.prefix}collapse-arrow-text`)},this.elements.body.appendChild(this.options.body),this.elements.header.appendChild(this.options.header),this.elements.body.addEventListener("transitionend",(()=>{this.valueIn&&(this.elements.body.style.height="")})),this.elements.header.addEventListener("click",(()=>{this.options.canCollapse&&this.toggle()})),this.options.canCollapse||(this.elements.arrowText.style.display="none")}value(t){return void 0!==t&&t!==this.valueIn&&(t?this.unfold():this.fold()),this.valueIn}unfold(t){this.valueIn||(this.valueIn=!0,this.elements.wrap.classList.remove(`${this.prefix}collapse-wrap-folded`),this.options.foldText!==this.options.unfoldText&&(this.elements.arrowText.innerHTML=this.options.unfoldText),this.elements.body.style.height=`${this.elements.body.scrollHeight}px`,this.trigger("change",{value:this.valueIn,manual:t}),this.trigger("unfold",{value:this.valueIn,manual:t}))}updateOptions(t){this.options=us(us({},this.options),t),this.options.canCollapse?this.elements.arrowText.style.display="block":this.elements.arrowText.style.display="none"}resize(){this.valueIn&&"0px"===this.elements.body.style.height&&(this.elements.body.style.height=`${this.elements.body.scrollHeight}px`)}fold(t){this.valueIn&&(this.valueIn=!1,this.elements.wrap.classList.add(`${this.prefix}collapse-wrap-folded`),this.options.foldText!==this.options.unfoldText&&(this.elements.arrowText.innerHTML=this.options.foldText),this.elements.body.style.height=`${this.elements.body.scrollHeight}px`,setTimeout((()=>{this.elements.body.style.height="0px",this.trigger("change",{value:this.valueIn,manual:t}),this.trigger("fold",{value:this.valueIn,manual:t})}),0))}toggle(){this.valueIn?this.fold(!0):this.unfold(!0)}},gs=i(18054),fs=i.n(gs),ms=i(6768),ys={attributes:{"data-injector":"nano"}};ys.setAttributes=h(),ys.insert=A().bind(null,"head"),ys.domAPI=s(),ys.insertStyleElement=u();o()(ms.Z,ys),ms.Z&&ms.Z.locals&&ms.Z.locals;var bs=Object.defineProperty,vs=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Is=Object.prototype.propertyIsEnumerable,Cs=(t,e,i)=>e in t?bs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;let Bs=0;var ws=class extends pa{constructor(t,e){super(t,e,"radio",{value:null,style:"normal",labels:[],columnCount:3,columnGap:8})}init(){Bs++,this.valueIn=this.options.value,this.tpl(((t,e)=>{for(var i in e||(e={}))Es.call(e,i)&&Cs(t,i,e[i]);if(vs)for(var i of vs(e))Is.call(e,i)&&Cs(t,i,e[i]);return t})({tpl:fs(),uniqueId:Bs},this.options)),this.inputElements={};const t=this.area.querySelectorAll(`.${this.prefix}radio-input`);this.options.labels.forEach(((e,i)=>{this.inputElements[e.value]=t[i],this.inputElements[e.value].addEventListener("change",(t=>{this.valueIn=t.target.value,this.trigger("change",{value:this.valueIn,manual:!0})}))}))}value(t){return void 0!==t&&this.inputElements[t]&&t!==this.valueIn&&(this.inputElements[this.valueIn]&&(this.inputElements[this.valueIn].checked=!1),this.inputElements[t].checked=!0,this.valueIn=t,this.trigger("change",{value:this.valueIn,manual:!1})),this.valueIn}reset(){var t;(null==(t=this.inputElements)?void 0:t[this.valueIn])&&(this.inputElements[this.valueIn].checked=!1)}},xs=i(48836),Qs=i.n(xs),Ss=i(16447),ks={attributes:{"data-injector":"nano"}};ks.setAttributes=h(),ks.insert=A().bind(null,"head"),ks.domAPI=s(),ks.insertStyleElement=u();o()(Ss.Z,ks),Ss.Z&&Ss.Z.locals&&Ss.Z.locals;var Ds=Object.defineProperty,_s=Object.getOwnPropertySymbols,Rs=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Ts=(t,e,i)=>e in t?Ds(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Fs=class extends pa{constructor(t,e){super(t,e,"checkbox",{value:!1,name:"",redDot:!1})}init(){this.tpl(((t,e)=>{for(var i in e||(e={}))Rs.call(e,i)&&Ts(t,i,e[i]);if(_s)for(var i of _s(e))Ms.call(e,i)&&Ts(t,i,e[i]);return t})({tpl:Qs()},this.options)),this.elements={checkboxInput:this.area.querySelector(`.${this.prefix}checkbox-input`),name:this.area.querySelector(`.${this.prefix}checkbox-name`),redDot:this.options.redDot?this.area.querySelector(`.${this.prefix}checkbox-reddot`):null},this.elements.checkboxInput.addEventListener("change",(()=>{this.trigger("change",{value:this.value(),manual:!0})}))}value(t,e=!0){return void 0===t||!e&&t===this.elements.checkboxInput.checked||(this.elements.checkboxInput.checked=t,this.trigger("change",{value:t,manual:!1})),this.elements.checkboxInput.checked}setRedDot(t){t!==this.options.redDot&&(this.options.redDot=t,t?this.elements.redDot?this.elements.redDot.style.display="block":(this.elements.name.insertAdjacentHTML("beforeend",'<span class="{{ prefix }}checkbox-reddot"></span>'),this.elements.redDot=this.elements.name.querySelector(`.${this.prefix}checkbox-reddot`)):this.elements.redDot.style.display="none")}},Ls=i(8614),Ns=i.n(Ls),Ps=i(85266),Us={attributes:{"data-injector":"nano"}};Us.setAttributes=h(),Us.insert=A().bind(null,"head"),Us.domAPI=s(),Us.insertStyleElement=u();o()(Ps.Z,Us),Ps.Z&&Ps.Z.locals&&Ps.Z.locals;var Os=Object.defineProperty,Gs=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,Ys=(t,e,i)=>e in t?Os(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var zs=class extends pa{constructor(t,e){super(t,e,"input",{value:"",placeholder:"",type:"",step:1,max:1/0,min:-1/0})}init(){if(this.tpl(((t,e)=>{for(var i in e||(e={}))Hs.call(e,i)&&Ys(t,i,e[i])
;if(Gs)for(var i of Gs(e))Vs.call(e,i)&&Ys(t,i,e[i]);return t})({tpl:Ns()},this.options)),this.elements={input:this.area.querySelector(`.${this.prefix}input-input`),wrap:this.area.querySelector(`.${this.prefix}input-wrap`),up:this.area.querySelector(`.${this.prefix}input-stepper-up`),down:this.area.querySelector(`.${this.prefix}input-stepper-down`)},this.elements.input.addEventListener("change",(()=>{if("number"===this.options.type&&""!==this.value()){let t=parseFloat(this.value());t=Math.max(t,this.options.min),t=Math.min(t,this.options.max),this.elements.input.value=t+""}this.trigger("change",{value:this.value(),manual:!0})})),this.elements.input.addEventListener("keydown",(t=>{t.stopPropagation()})),this.elements.input.addEventListener("input",(()=>{this.trigger("input",{value:this.value(),manual:!0})})),this.elements.input.addEventListener("blur",(()=>{if("number"===this.options.type&&""!==this.value()){const t=parseFloat(this.value());let e=t;e=Math.max(e,this.options.min),e=Math.min(e,this.options.max),t!==e&&this.value(e)}this.trigger("blur",{})})),this.elements.input.addEventListener("focus",(()=>{this.trigger("focus",{})})),"number"===this.options.type){let t=0,e=0;const i=()=>{window.clearInterval(e),window.clearInterval(t)};this.elements.up.addEventListener("mousedown",(()=>{e=window.setTimeout((()=>{t=window.setInterval((()=>{this.step()}),60)}),500)})),this.elements.up.addEventListener("mouseup",(()=>{i(),this.step()})),this.elements.up.addEventListener("mouseleave",(()=>{i()})),this.elements.down.addEventListener("mousedown",(()=>{e=window.setTimeout((()=>{t=window.setInterval((()=>{this.step(!0)}),60)}),500)})),this.elements.down.addEventListener("mouseup",(()=>{i(),this.step(!0)})),this.elements.down.addEventListener("mouseleave",(()=>{i()})),this.elements.input.addEventListener("mousewheel",(t=>{t.preventDefault()}))}}step(t=!1){const e=t?-1:1;""!==this.value()&&this.value((parseFloat(this.value())+this.options.step*e).toFixed(5),!0)}value(t,e=!1){if(void 0!==t){let i;"number"===this.options.type&&""!==t?(i="string"==typeof t?parseFloat(t):t,i=Math.max(i,this.options.min),i=Math.min(i,this.options.max)+""):i=t+"",this.value()!==i&&(this.elements.input.value=i,this.trigger("change",{value:i,manual:e}),this.trigger("input",{value:i,manual:e}))}return this.elements.input.value}focus(){this.elements.input.focus()}},Ws=i(13018),Zs=i.n(Ws),js=i(45783),qs={attributes:{"data-injector":"nano"}};qs.setAttributes=h(),qs.insert=A().bind(null,"head"),qs.domAPI=s(),qs.insertStyleElement=u();o()(js.Z,qs),js.Z&&js.Z.locals&&js.Z.locals;var Js=i(48760),Ks=Object.defineProperty,Xs=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable,el=(t,e,i)=>e in t?Ks(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,il=(t,e)=>{for(var i in e||(e={}))$s.call(e,i)&&el(t,i,e[i]);if(Xs)for(var i of Xs(e))tl.call(e,i)&&el(t,i,e[i]);return t};var nl=class extends pa{constructor(t,e){super(t,e,"select",{value:e.items[0].value,hoverEvents:!0})}init(){this.options.items=this.options.items.map((t=>il({activable:!0},t))),this.valueIn=this.options.value,this.tpl(il({tpl:Zs(),result:this.getItem().name},this.options)),this.options.qualityMenu&&this.area.classList.add(`${this.prefix}select-quality-menu`),this.elements={wrap:this.area.querySelector(`.${this.prefix}select-wrap`),header:this.area.querySelector(`.${this.prefix}select-header`),list:this.area.querySelector(`.${this.prefix}select-list`),listWrap:this.area.querySelector(`.${this.prefix}select-list-wrap`),result:this.area.querySelector(`.${this.prefix}select-result`)},this.listItem=this.area.querySelectorAll(`.${this.prefix}select-item`),this.options.maxHeight&&(this.area.classList.add(`${this.prefix}select-bscroll`),this.scrollbar=new Js.Z(this.elements.listWrap,{}),this.elements.list.addEventListener("transitionend",(t=>{t.target===this.elements.list&&this.scrollbar.refresh()}))),this.options.hoverEvents&&(this.area.addEventListener("mouseenter",(()=>{this.disabled||(this.unfold(),this.updateScrollbar())})),this.area.addEventListener("mouseleave",(()=>{this.disabled||this.fold()}))),this.elements.list.addEventListener("click",(t=>{if(!t.target.classList.contains(`${this.prefix}select-item-disabled`)){const e=t.target.dataset&&t.target.dataset.value;e&&(this.value(e,!0),this.fold())}})),this.elements.list.style.border="none"}updateScrollbar(){this.scrollbar&&this.scrollbar.refresh&&this.scrollbar.refresh()}value(t,e=!1){t+="";const i=this.getItem(t);if(void 0!==t&&t!==this.valueIn&&!i.disabled){if(i.activable){const e=this.options.items.indexOf(this.getItem(this.valueIn));-1!==e&&this.listItem[e].classList.remove(`${this.prefix}select-item-active`),this.valueIn=t;const n=this.options.items.indexOf(i);-1!==n&&this.listItem[n].classList.add(`${this.prefix}select-item-active`),this.elements.result.innerHTML=i.name}this.trigger("change",{value:t,manual:e})}return this.valueIn}fold(){var t,e;(null==(t=this.elements)?void 0:t.list)&&(null==(e=this.elements)?void 0:e.wrap)&&(this.elements.list.style.height="0px",this.elements.list.style.border="none",this.elements.wrap.classList.remove(`${this.prefix}select-unfold`),this.trigger("fold",{}))}unfold(){var t,e;if(!(null==(t=this.elements)?void 0:t.list)||!(null==(e=this.elements)?void 0:e.wrap))return;let i=this.elements.list.scrollHeight;this.options.maxHeight&&(i=Math.min(this.options.maxHeight,i)),this.elements.list.style.border="",this.elements.list.style.height=i+"px",this.elements.wrap.classList.add(`${this.prefix}select-unfold`),this.trigger("unfold",{})}getItem(t=this.valueIn){const e=this.options.items.filter((e=>e.value===t))[0];return e||{}}concatItems(t){t=t.map((t=>il({activable:!0},t))),this.options.items=this.options.items.concat(t);let e="";t.forEach((t=>{e+=`\n            <li class="${this.prefix}select-item ${t.disabled?`${this.prefix}select-item-disabled`:""}"\n                data-value="${t.value}">${t.name}</li>\n            `})),this.elements.list.innerHTML+=e,this.listItem=this.area.querySelectorAll(`.${this.prefix}select-item`)}destroy(){var t,e;(null==(t=this.elements)?void 0:t.list)&&(this.elements.list.removeEventListener("click",null),this.elements.list.removeEventListener("transitionend",null)),(null==(e=this.options)?void 0:e.hoverEvents)&&this.area&&(this.area.removeEventListener("mouseenter",null),this.area.removeEventListener("mouseleave",null)),this.scrollbar&&(this.scrollbar.destroy(),this.scrollbar=null),this.listItem&&(this.listItem=null),this.elements&&(Object.keys(this.elements).forEach((t=>{this.elements[t]=null})),this.elements=null),super.destroy()}},rl=i(5766),ol=i.n(rl),al=i(64059),sl={attributes:{"data-injector":"nano"}};sl.setAttributes=h(),sl.insert=A().bind(null,"head"),sl.domAPI=s(),sl.insertStyleElement=u();o()(al.Z,sl),al.Z&&al.Z.locals&&al.Z.locals;var ll=Object.defineProperty,Al=Object.getOwnPropertySymbols,cl=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable,dl=(t,e,i)=>e in t?ll(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var ul=class extends pa{constructor(t,e){super(t,e,"color-picker",{value:"#FFFFFF",options:["#FE0302","#FF7204","#FFAA02","#FFD302","#FFFF00","#A0EE00","#00CD00","#019899","#4266BE","#89D5FF","#CC0273","#222222","#9B9B9B","#FFFFFF"],width:null,countPerLine:null})}init(){this.tpl(((t,e)=>{for(var i in e||(e={}))cl.call(e,i)&&dl(t,i,e[i]);if(Al)for(var i of Al(e))hl.call(e,i)&&dl(t,i,e[i]);return t})({tpl:ol(),gap:this.options.width&&this.options.countPerLine?(this.options.width-16*this.options.countPerLine)/(this.options.countPerLine-1):0},this.options)),this.elements={input:this.area.querySelector(`.${this.prefix}color-picker-input`),options:this.area.querySelector(`.${this.prefix}color-picker-options`),display:this.area.querySelector(`.${this.prefix}color-picker-display`)},this.input=new zs(this.elements.input,{value:this.options.value}),this.elements.options.addEventListener("click",(t=>{const e=t.target.dataset&&t.target.dataset.value;e&&this.value(e,!0)})),this.input.on("input",(t=>{const e=this.elements.options.querySelector(`.${this.prefix}color-picker-option-active`)
;e&&e.classList.remove(`${this.prefix}color-picker-option-active`);const i=this.elements.options.querySelector(`[data-value="${t.value.toUpperCase()}"]`);i&&i.classList.add(`${this.prefix}color-picker-option-active`),"#"!==t.value[0]?this.input.value(`#${t.value}`):t.value.slice(1).match(/[^0-9a-fA-F]/)?this.input.value(`#${t.value.slice(1).replace(/[^0-9a-fA-F]/,"")}`):t.value.length>7?this.input.value(t.value.slice(0,7)):4!==t.value.length&&5!==t.value.length&&7!==t.value.length||(this.elements.display.style.background=t.value,this.trigger("change",{value:t.value}))}))}value(t,e=!1){return void 0!==t&&t!==this.input.value()&&this.input.value(t),this.input.value()}},pl=i(68297),gl=i.n(pl),fl=i(25852),ml={attributes:{"data-injector":"nano"}};ml.setAttributes=h(),ml.insert=A().bind(null,"head"),ml.domAPI=s(),ml.insertStyleElement=u();o()(fl.Z,ml),fl.Z&&fl.Z.locals&&fl.Z.locals;var yl=Object.defineProperty,bl=Object.getOwnPropertySymbols,vl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,Il=(t,e,i)=>e in t?yl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Cl=(t,e)=>{for(var i in e||(e={}))vl.call(e,i)&&Il(t,i,e[i]);if(bl)for(var i of bl(e))El.call(e,i)&&Il(t,i,e[i]);return t};var Bl=class extends pa{constructor(t,e){super(t,e,"panel",{value:0})}init(){let t=0;this.options.body.forEach((e=>{t+=e.width})),this.tpl(Cl({tpl:gl(),totalWidth:t},this.options)),this.elements={wrap:this.area.querySelector(`.${this.prefix}panel-wrap`),move:this.area.querySelector(`.${this.prefix}panel-move`)},this.valueIn=this.options.value,this.items=this.area.querySelectorAll(`.${this.prefix}panel-item`);for(let t=0;t<this.items.length;t++)this.items[t].appendChild(this.options.body[t].element)}optionsUpdate(t){var e,i,n;this.options=Cl(Cl({},this.options),t);const r=null!=(e=this.valueIn)?e:0,o=(null==(i=this.options.body)?void 0:i[r])||{height:0,width:0};this.elements.wrap.style.height=o.height+"px",this.elements.wrap.style.width=o.width+"px";let a=0;for(let t=0;t<this.items.length;t++){const e=(null==(n=this.options.body)?void 0:n[t])||{height:0,width:0};this.items[t].style.height=e.height+"px",this.items[t].style.width=e.width+"px",a+=e.width}a&&(this.elements.move.style.width=a+"px"),1===r&&(this.elements.move.style.transition="none",this.elements.move.style.transform=`translateX(-${this.options.body[0].width}px)`)}value(t){var e;if(void 0!==t&&t!==this.valueIn){this.elements.move.style.transition="",this.items[this.valueIn].classList.remove(`${this.prefix}panel-item-active`);let i=0;for(let e=0;e<t;e++)i+=this.options.body[e].width;this.elements.move.style.transform=`translateX(-${i}px)`;const n=(null==(e=this.options.body)?void 0:e[t])||{height:0,width:0};this.elements.wrap.style.height=n.height+"px",this.elements.wrap.style.width=n.width+"px",this.valueIn=t,setTimeout((()=>{this.valueIn===t&&this.items[t].classList.add(`${this.prefix}panel-item-active`)}),100),this.trigger("change",{value:t})}return this.valueIn}},wl=i(81404),xl=i.n(wl),Ql=i(44218),Sl={attributes:{"data-injector":"nano"}};Sl.setAttributes=h(),Sl.insert=A().bind(null,"head"),Sl.domAPI=s(),Sl.insertStyleElement=u();o()(Ql.Z,Sl),Ql.Z&&Ql.Z.locals&&Ql.Z.locals;var kl=i(1778),Dl=i.n(kl),_l=i(41370),Rl={attributes:{"data-injector":"nano"}};Rl.setAttributes=h(),Rl.insert=A().bind(null,"head"),Rl.domAPI=s(),Rl.insertStyleElement=u();o()(_l.Z,Rl),_l.Z&&_l.Z.locals&&_l.Z.locals;var Ml=Object.defineProperty,Tl=Object.getOwnPropertySymbols,Fl=Object.prototype.hasOwnProperty,Ll=Object.prototype.propertyIsEnumerable,Nl=(t,e,i)=>e in t?Ml(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Pl=class extends pa{constructor(t,e){super(t,e,"dropdown",{value:e.items[0].value})}init(){this.valueIn=this.options.value,this.tpl(((t,e)=>{for(var i in e||(e={}))Fl.call(e,i)&&Nl(t,i,e[i]);if(Tl)for(var i of Tl(e))Ll.call(e,i)&&Nl(t,i,e[i]);return t})({tpl:Dl()},this.options)),this.elements={icon:this.area.querySelector(`.${this.prefix}dropdown-icon`),items:this.area.querySelector(`.${this.prefix}dropdown-items`),name:this.area.querySelector(`.${this.prefix}dropdown-name`),wrap:this.area.querySelector(`.${this.prefix}dropdown-wrap`)},this.elements.icon&&this.elements.items&&this.elements.name&&this.elements.wrap?(this.iconClickHandler=t=>{t.stopPropagation(),this.isUnfold?this.fold():this.unfold()},this.documentClickHandler=()=>{this.fold()},this.itemsClickHandler=t=>{t.stopPropagation();const e=t.target;e&&(e.classList.contains(`${this.prefix}disabled`)||(e.classList.contains(`${this.prefix}dropdown-item`)&&this.value(e.dataset.value),this.fold()))},this.elements.icon.addEventListener("click",this.iconClickHandler),document.addEventListener("click",this.documentClickHandler),this.elements.items.addEventListener("click",this.itemsClickHandler),this.hideItem(!0)):console.error("Dropdown: Required elements not found")}destroy(){var t,e;(null==(t=this.elements)?void 0:t.icon)&&this.elements.icon.removeEventListener("click",this.iconClickHandler),(null==(e=this.elements)?void 0:e.items)&&this.elements.items.removeEventListener("click",this.itemsClickHandler),document.removeEventListener("click",this.documentClickHandler),super.destroy()}unfold(){var t;!this.isUnfold&&(null==(t=this.elements)?void 0:t.wrap)&&(this.elements.wrap.classList.add(`${this.prefix}dropdown-unfold`),this.isUnfold=!0,this.trigger("unfold"))}fold(){var t;this.isUnfold&&(null==(t=this.elements)?void 0:t.wrap)&&(this.elements.wrap.classList.remove(`${this.prefix}dropdown-unfold`),this.isUnfold=!1,this.trigger("fold"))}hideItem(t){if(!this.container)return;const e=this.container.querySelector(`.${this.prefix}dropdown-item[data-value="${this.valueIn}"]`);e&&(t?e.classList.add(`${this.prefix}hide`):e.classList.remove(`${this.prefix}hide`))}value(t){var e;if(void 0!==t&&t!==this.valueIn){const i=this.options.items.find((e=>e.value===t));i&&(null==(e=this.elements)?void 0:e.name)&&(this.valueIn&&this.hideItem(!1),this.valueIn=t,this.hideItem(!0),this.elements.name.innerHTML=i.name,this.trigger("change",{value:t,name:i.name}))}return this.valueIn}},Ul=Object.defineProperty,Ol=Object.getOwnPropertySymbols,Gl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Vl=(t,e,i)=>e in t?Ul(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Yl=class extends pa{constructor(t,e){super(t,e,"tabs",{value:e.items[0].value})}init(){this.valueIn=this.options.value,this.tpl(((t,e)=>{for(var i in e||(e={}))Gl.call(e,i)&&Vl(t,i,e[i]);if(Ol)for(var i of Ol(e))Hl.call(e,i)&&Vl(t,i,e[i]);return t})({tpl:xl()},this.options)),this.elements={header:this.area.querySelector(`.${this.prefix}tabs-header`),body:this.area.querySelector(`.${this.prefix}tabs-body`)},this.bodyItems=this.area.querySelectorAll(`.${this.prefix}tabs-body-item`);for(let t=0;t<this.bodyItems.length;t++)this.options.items[t].element&&this.bodyItems[t].appendChild(this.options.items[t].element);"dropdown"===this.options.type?(this.dropdown=new Pl(this.elements.header,this.options),this.dropdown.on("change",(t=>{this.value(t.value,!0)}))):(this.headerItems=this.area.querySelectorAll(`.${this.prefix}tabs-header-item`),this.elements.header.addEventListener("click",(t=>{this.value(t.target.dataset.value,!0)})))}value(t,e=!1){if(void 0!==t&&t!==this.valueIn){const i=this.options.items.findIndex((t=>t.value===this.valueIn));this.bodyItems[i].classList.remove(`${this.prefix}tabs-body-item-active`),"dropdown"===this.options.type?this.dropdown.value(t):this.headerItems[i].classList.remove(`${this.prefix}tabs-header-item-active`),this.valueIn=t;const n=this.options.items.findIndex((t=>t.value===this.valueIn));this.bodyItems[n].classList.add(`${this.prefix}tabs-body-item-active`),"dropdown"===this.options.type?this.dropdown.value(t):this.headerItems[n].classList.add(`${this.prefix}tabs-header-item-active`),this.trigger("change",{value:t,manual:e})}return this.valueIn}},zl=i(24714),Wl={attributes:{"data-injector":"nano"}};Wl.setAttributes=h(),Wl.insert=A().bind(null,"head"),Wl.domAPI=s(),Wl.insertStyleElement=u();o()(zl.Z,Wl),zl.Z&&zl.Z.locals&&zl.Z.locals;var Zl=class extends pa{constructor(t,e){super(t,e,"button",{disabled:!1,
type:"white"})}init(){this.options.text&&(this.area.innerHTML=this.options.text),this.area.classList.add(`${this.prefix}button-${this.options.type}`),this.container.addEventListener("click",(t=>{this.container.classList.contains(`${this.prefix}disabled`)?(t.preventDefault(),t.stopImmediatePropagation()):this.trigger("click",{})}))}value(){return this}setText(t){this.area.innerHTML=t}},jl=i(8097),ql=i.n(jl),Jl=i(1305),Kl={attributes:{"data-injector":"nano"}};Kl.setAttributes=h(),Kl.insert=A().bind(null,"head"),Kl.domAPI=s(),Kl.insertStyleElement=u();o()(Jl.Z,Kl),Jl.Z&&Jl.Z.locals&&Jl.Z.locals;var Xl=Object.defineProperty,$l=Object.getOwnPropertySymbols,tA=Object.prototype.hasOwnProperty,eA=Object.prototype.propertyIsEnumerable,iA=(t,e,i)=>e in t?Xl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var nA=class extends pa{constructor(t,e){super(t,e,"swiper",{value:0,height:89,width:117,margin:"0 0 0 25px",border:!0,clickFn:()=>{},list:[]})}init(){this.translate=0,this.position={},this.tpl(((t,e)=>{for(var i in e||(e={}))tA.call(e,i)&&iA(t,i,e[i]);if($l)for(var i of $l(e))eA.call(e,i)&&iA(t,i,e[i]);return t})({tpl:ql()},this.options)),this.elements={wrap:this.area.querySelector(`.${this.prefix}swiper-wrap`),overhide:this.area.querySelector(`.${this.prefix}swiper-overhide`),pre:this.area.querySelector(`.${this.prefix}swiper-pre`),next:this.area.querySelector(`.${this.prefix}swiper-next`),current:this.area.querySelector(`.${this.prefix}swiper-item-active`),list:this.area.querySelector(`.${this.prefix}swiper-list`)},this.resize(),this.reset(0),this.globalEvents()}globalEvents(){this.elements.pre.addEventListener("click",(t=>{t.stopPropagation(),this.reset(1)})),this.elements.next.addEventListener("click",(t=>{t.stopPropagation(),this.reset(-1)})),this.elements.wrap.addEventListener("click",(t=>{if(t.stopPropagation(),"function"!=typeof this.options.clickFn)return;const e=this.parentUntil(t.target,`${this.prefix}swiper-item`);if(e){const t=[].indexOf.call(e.parentNode.children,e);this.value(t+1),this.options.clickFn(t)}}))}parentUntil(t,e){let i=null,n=t.parentNode;for(;n&&9!==n.nodeType;){if(n.classList.contains(e)){i=n;break}n=n.parentNode}return i}reset(t){const e=this.position.wrapWidth-this.position.listWidth;if(e>=0)this.elements.wrap.classList.remove(`${this.prefix}swiper-has-next`,`${this.prefix}swiper-has-pre`);else{switch(t){case 1:case-1:this.translate+=t*this.position.wrapWidth;break;case 0:this.translate+=this.position.containerLeft-this.position.currentLeft+this.position.wrapWidth-117}this.translate<=e?(this.translate=e,this.elements.wrap.classList.remove(`${this.prefix}swiper-has-next`)):this.elements.wrap.classList.add(`${this.prefix}swiper-has-next`),this.translate>=0?(this.translate=0,this.elements.wrap.classList.remove(`${this.prefix}swiper-has-pre`)):this.elements.wrap.classList.add(`${this.prefix}swiper-has-pre`),this.elements.list.style.webkitTransform=`translateX(${this.translate}px)`,this.elements.list.style.transform=`translateX(${this.translate}px)`}}value(t){if(this.options.value!==t){this.elements.current.classList.remove(`${this.prefix}swiper-item-active`);const e=this.elements.list.querySelector(`.${this.prefix}swiper-item:nth-child(${t})`);if(!e||!e.classList)return!1;e.classList.add(`${this.prefix}swiper-item-active`),this.elements.current=this.area.querySelector(`.${this.prefix}swiper-item-active`),this.options.value=t}return this.options.value}resize(t=1){try{const e=this.elements.overhide.getBoundingClientRect(),i=this.elements.list.getBoundingClientRect(),n=this.elements.current.getBoundingClientRect();this.position={listWidth:i.width/t,wrapWidth:e.width/t,containerLeft:e.left/t,currentLeft:n.left/t},this.reset(2)}catch(t){}}},rA=i(91482),oA=i.n(rA),aA=i(71194),sA={attributes:{"data-injector":"nano"}};sA.setAttributes=h(),sA.insert=A().bind(null,"head"),sA.domAPI=s(),sA.insertStyleElement=u();o()(aA.Z,sA),aA.Z&&aA.Z.locals&&aA.Z.locals;var lA=Object.defineProperty,AA=Object.getOwnPropertySymbols,cA=Object.prototype.hasOwnProperty,hA=Object.prototype.propertyIsEnumerable,dA=(t,e,i)=>e in t?lA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var uA=class extends pa{constructor(t,e){super(t,e,"menu",{items:[]})}init(){this.tpl(((t,e)=>{for(var i in e||(e={}))cA.call(e,i)&&dA(t,i,e[i]);if(AA)for(var i of AA(e))hA.call(e,i)&&dA(t,i,e[i]);return t})({tpl:oA()},this.options)),this.elements={items:this.area.querySelector(`.${this.prefix}menu-items`)},this.elements.items.addEventListener("click",(t=>{var e,i;const n=null==(i=null==(e=null==t?void 0:t.target)?void 0:e.dataset)?void 0:i.index;this.options.items[n]&&(this.options.items[n].function&&this.options.items[n].function(),this.options.items[n].link&&window.open(this.options.items[n].link))}))}value(){}},pA=i(87013),gA=i.n(pA),fA=i(80927),mA={attributes:{"data-injector":"nano"}};mA.setAttributes=h(),mA.insert=A().bind(null,"head"),mA.domAPI=s(),mA.insertStyleElement=u();o()(fA.Z,mA),fA.Z&&fA.Z.locals&&fA.Z.locals;var yA=Object.defineProperty,bA=Object.getOwnPropertySymbols,vA=Object.prototype.hasOwnProperty,EA=Object.prototype.propertyIsEnumerable,IA=(t,e,i)=>e in t?yA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var CA=class extends pa{constructor(t,e){super(t,e,"dialog",{items:[]})}init(){this.tpl(((t,e)=>{for(var i in e||(e={}))vA.call(e,i)&&IA(t,i,e[i]);if(bA)for(var i of bA(e))EA.call(e,i)&&IA(t,i,e[i]);return t})({tpl:gA()},this.options)),this.elements={body:this.area.querySelector(`.${this.prefix}dialog-body`),close:this.area.querySelector(`.${this.prefix}dialog-close`)},this.elements.body.appendChild(this.options.body),this.elements.close.addEventListener("click",(()=>{this.hide(),this.trigger("change",{hide:!0})}))}value(){}},BA=i(33070),wA=i.n(BA),xA=i(36474),QA={attributes:{"data-injector":"nano"}};QA.setAttributes=h(),QA.insert=A().bind(null,"head"),QA.domAPI=s(),QA.insertStyleElement=u();o()(xA.Z,QA),xA.Z&&xA.Z.locals&&xA.Z.locals;var SA=Object.defineProperty,kA=Object.getOwnPropertySymbols,DA=Object.prototype.hasOwnProperty,_A=Object.prototype.propertyIsEnumerable,RA=(t,e,i)=>e in t?SA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var MA=class extends pa{constructor(t,e){super(t,e,"long-list",{}),this.selected={}}init(){let t;this.displayCound=Math.ceil(this.container.offsetHeight/this.options.itemHeight)+1,this.renderingCound=Math.min(2*this.displayCound,Math.max(this.options.count,0)),this.renderingRange=[0,this.renderingCound],this.tpl(((t,e)=>{for(var i in e||(e={}))DA.call(e,i)&&RA(t,i,e[i]);if(kA)for(var i of kA(e))_A.call(e,i)&&RA(t,i,e[i]);return t})({tpl:wA(),rendering:new Array(this.renderingCound)},this.options)),this.elements={wrap:this.area.querySelector(`.${this.prefix}long-list-wrap`),list:this.area.querySelector(`.${this.prefix}long-list-list`)},this.scrollbar=new Js.Z(this.elements.wrap,{preventDefault:!1}),this.scrollbar.on("scroll",(t=>{if(this.options.count<this.displayCound-2)return;const e=t.y;this.updateList(e),this.trigger("scroll",{top:e})}));const e=t=>{let e=t;do{if(e.classList.contains(`${this.prefix}long-list-item`))break;e=e.parentElement}while(e.parentElement);return e.parentElement?parseInt(e.dataset.index,10):null},i=i=>{const n=e(i.target);null!==n&&this.rangeSelect(t,n)},n=()=>{this.elements.list.removeEventListener("mousemove",i)};this.elements.list.addEventListener("mousedown",(n=>{if(2!==n.button&&(t=e(n.target),null!==t))if(n.metaKey||n.ctrlKey)this.selected[t]?this.removeSelect(t):this.addSelect(t);else if(n.shiftKey){let e,i=1/0;for(const n in this.selected){const r=parseInt(n,10),o=Math.abs(t-r);o<i&&(i=o,e=r)}if(e<t){let i=t;t=e,e=i}this.rangeSelect(t,e)}else this.clearSelect(),this.elements.list.addEventListener("mousemove",i),this.addSelect(t)})),document.addEventListener("mouseup",n),this.on("beforeDestroy",(()=>{document.removeEventListener("mouseup",n)}))}updateList(t){const e=Math.floor(-t/this.options.itemHeight),i=[e,e+this.displayCound];let n,r,o="";if(i[1]>this.renderingRange[1]?(n=i[0],r=Math.min(i[0]+this.renderingCound+1,this.options.count)):i[0]<this.renderingRange[0]&&(n=Math.max(i[1]-this.renderingCound-1,0),r=i[1]),
r=Math.min(r,this.options.count),r){for(let t=n;t<r;t++)o+=`<li class="${this.prefix}long-list-item${this.selected[t]?` ${this.prefix}long-list-item-selected`:""}" data-index="${t}" style="height: ${this.options.itemHeight}px">${this.options.getItem(t)}</li>`;this.elements.list.innerHTML=o,this.elements.list.style.paddingTop=n*this.options.itemHeight+"px",this.renderingRange=[n,r]}}refresh(t){if(t)t.forEach((t=>{this.container.querySelector(`.${this.prefix}long-list-item[data-index='${t}']`).innerHTML=this.options.getItem(t)}));else{let t="";for(let e=this.renderingRange[0];e<this.renderingRange[1];e++)t+=`<li class="${this.prefix}long-list-item${this.selected[e]?` ${this.prefix}long-list-item-selected`:""}" data-index="${e}" style="height: ${this.options.itemHeight}px">${this.options.getItem(e)}</li>`;this.elements.list.innerHTML=t}}rangeSelect(t,e){if(e<t){let i=t;t=e,e=i}let i;for(const n in this.selected){const r=parseInt(n,10);(r<t||r>e)&&(this.removeSelect(r),i=!0)}for(let n=t;n<=e;n++)this.selected[n]||(this.addSelect(n,!0),i=!0);i&&this.trigger("selectChange",{selected:this.selected})}addSelect(t,e){const i=this.container.querySelector(`.${this.prefix}long-list-item[data-index='${t}']`);i&&i.classList.add(`${this.prefix}long-list-item-selected`),this.selected[t]=1,!e&&this.trigger("selectChange",{selected:this.selected})}removeSelect(t){const e=this.container.querySelector(`.${this.prefix}long-list-item[data-index='${t}']`);e&&e.classList.remove(`${this.prefix}long-list-item-selected`),delete this.selected[t],this.trigger("selectChange",{selected:this.selected})}clearSelect(){this.container.querySelectorAll(`.${this.prefix}long-list-item-selected`).forEach((t=>{t.classList.remove(`${this.prefix}long-list-item-selected`)})),this.selected={},this.trigger("selectChange",{selected:this.selected})}resize(){this.displayCound=Math.ceil(this.container.offsetHeight/this.options.itemHeight)+1,this.renderingCound=Math.min(2*this.displayCound,Math.max(this.options.count,0)),this.renderingRange=[this.renderingRange[0],this.renderingRange[0]+this.renderingCound],this.refresh(),this.scrollbar.refresh()}updateCound(t){t||this.scrollbar.scrollTo(0,0),this.options.count=t,this.elements.list.style.height=this.options.itemHeight*t+"px",this.resize()}scrollTo(t){let e=Math.max(-t*this.options.itemHeight,this.scrollbar.maxScrollY);this.clearSelect(),this.scrollbar.scrollTo(0,e),this.addSelect(t)}value(){}},TA=i(91336),FA=i.n(TA),LA=i(47805),NA={attributes:{"data-injector":"nano"}};NA.setAttributes=h(),NA.insert=A().bind(null,"head"),NA.domAPI=s(),NA.insertStyleElement=u();o()(LA.Z,NA),LA.Z&&LA.Z.locals&&LA.Z.locals;var PA=Object.defineProperty,UA=Object.getOwnPropertySymbols,OA=Object.prototype.hasOwnProperty,GA=Object.prototype.propertyIsEnumerable,HA=(t,e,i)=>e in t?PA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;const VA=["","-webkit-","-moz-","-ms-"];var YA=class extends pa{constructor(t,e){super(t,e,"circleProgress",{duration:5e3,value:"0bps"}),this.lastPercent=0,this.ended=!1}init(){this.tpl(((t,e)=>{for(var i in e||(e={}))OA.call(e,i)&&HA(t,i,e[i]);if(UA)for(var i of UA(e))GA.call(e,i)&&HA(t,i,e[i]);return t})({tpl:FA()},this.options)),this.valueIn=this.options.value,this.elements={left:this.container.querySelector(`.${this.prefix}circle-progress-left-content`),right:this.container.querySelector(`.${this.prefix}circle-progress-right-content`),top:this.container.querySelector(`.${this.prefix}circle-progress-top`),percent:this.container.querySelector(`.${this.prefix}circle-progress-percent`),bottom:this.container.querySelector(`.${this.prefix}circle-progress-bottom`)}}circleRun(){this.animation=window.requestAnimationFrame((t=>{this.animateStartTime||(this.animateStartTime=t-16.7);const e=t-this.animateStartTime;e>=this.options.duration?(this.ended=!0,this.end()):(this.set(Math.round(e/this.options.duration*100)),this.circleRun())}))}start(){this.lastPercent=0,this.animateStartTime=0,this.ended=!1,this.elements.left.style.cssText="",this.elements.right.style.cssText="",this.elements.percent.style.fontSize="",this.elements.top.textContent="测速中",this.elements.percent.textContent="0%",this.elements.bottom.style.display="block",this.options.duration&&this.circleRun(),this.trigger("start")}end(){this.ended&&(this.cancelAnimation(),this.set(100),this.elements.percent.style.fontSize="20px",this.elements.top.textContent="测速完成",this.elements.percent.textContent=this.valueIn,this.elements.bottom.style.display="none",this.trigger("end"))}set(t){const e=this.lastPercent;if(t<0||t>100)return!1;this.elements.percent.textContent=t+"%";let i=0;return e>50?t>50?(i=(t-50)/50*180-45,this.elements.left.style.cssText=this.transform(i)):this.elements.left.style.cssText=this.transform(-45):t>50?this.elements.right.style.cssText=this.transform(135):(i=t/50*180-45,this.elements.right.style.cssText=this.transform(i)),this.lastPercent=t,!0}transform(t){let e="";for(let i=0;i<VA.length;i++)e+=`${VA[i]}transform:rotate(${t}deg);${VA[i]}transition:${VA[i]}transform 0s linear;`;return e}cancelAnimation(){this.animation&&cancelAnimationFrame(this.animation)}value(t){t&&(this.valueIn=t)}},zA=i(7991),WA={attributes:{"data-injector":"nano"}};WA.setAttributes=h(),WA.insert=A().bind(null,"head"),WA.domAPI=s(),WA.insertStyleElement=u();o()(zA.Z,WA),zA.Z&&zA.Z.locals&&zA.Z.locals;var ZA=Object.defineProperty,jA=Object.getOwnPropertySymbols,qA=Object.prototype.hasOwnProperty,JA=Object.prototype.propertyIsEnumerable,KA=(t,e,i)=>e in t?ZA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;const XA="bui";class $A{constructor(t){this.click=t=>{t.stopPropagation(),this.config.click()},this.config=((t,e)=>{for(var i in e||(e={}))qA.call(e,i)&&KA(t,i,e[i]);if(jA)for(var i of jA(e))JA.call(e,i)&&KA(t,i,e[i]);return t})({width:16,height:16,color:"#ffffffb3",click:null,value:0},t),this.wrap=t.wrap,this.init(),this.config.value&&this.value(this.config.value)}value(t){this.setPercent(this.leftDom,Math.min(50,t),"--leftDeg"),this.setPercent(this.rightDom,t-50,"--rightDeg")}dispose(){try{this.wrap.removeChild(this.area)}catch(t){}this.removeEventListener()}setPercent(t,e,i){t.style.cssText=`${i}:${e<0?-45:-45-3.6*e}deg`}init(){this.wrap.insertAdjacentHTML("beforeend",this.tpl()),this.area=this.wrap.querySelector(`.${XA}-circle`),this.leftDom=this.wrap.querySelector(`.${XA}-circle-left-bar`),this.rightDom=this.wrap.querySelector(`.${XA}-circle-right-bar`),"function"==typeof this.config.click&&this.area.addEventListener("click",this.click)}removeEventListener(){this.area.removeEventListener("click",this.click)}tpl(){const{width:t,height:e,color:i,icon:n}=this.config;return`<div class="${XA}-circle" style="${`--width:${t}px;--height:${e}px;--color:${i}`}">\n            <div class="${XA}-circle-left"><div class="${XA}-circle-left-bar"></div></div>\n            <div class="${XA}-circle-right"><div class="${XA}-circle-right-bar"></div></div>\n            ${n||""}\n    </div>`}}var tc={Slider:Qa,Progress:Na,Switch:Za,DanmakuSwitch:ns,Collapse:ps,Radio:ws,Checkbox:Fs,Input:zs,Select:nl,ColorPicker:ul,Panel:Bl,Tabs:Yl,Button:Zl,Swiper:nA,Dropdown:Pl,Menu:uA,Dialog:CA,LongList:MA,CircleProgress:YA,CloseButton:$A}},47614:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}})
;var n=JSON.parse('{"nested":{"bilibili":{"nested":{"community":{"nested":{"service":{"nested":{"dm":{"nested":{"v1":{"nested":{"DmWebViewReply":{"fields":{"state":{"type":"int32","id":1},"text":{"type":"string","id":2},"textSide":{"type":"string","id":3},"dmSge":{"type":"DmSegConfig","id":4},"flag":{"type":"DanmakuFlagConfig","id":5},"specialDms":{"rule":"repeated","type":"string","id":6},"checkBox":{"type":"bool","id":7},"count":{"type":"int64","id":8},"commandDms":{"rule":"repeated","type":"CommandDm","id":9},"dmSetting":{"type":"DanmuWebPlayerConfig","id":10},"reportFilter":{"rule":"repeated","type":"string","id":11},"expressions":{"rule":"repeated","type":"Expressions","id":12},"postPanel":{"rule":"repeated","type":"PostPanel","id":13},"activityMetas":{"rule":"repeated","type":"string","id":14},"postPanelV2":{"rule":"repeated","type":"PostPanelV2","id":15},"subViews":{"rule":"repeated","type":"DmSubView","id":16},"qoe":{"type":"QoeInfo","id":17},"maskWalls":{"rule":"repeated","type":"DmMaskWall","id":18},"dmRestrict":{"type":"DMRestrict","id":19},"subtitle":{"type":"VideoSubtitle","id":20}}},"DMRestrict":{"fields":{"periods":{"rule":"repeated","type":"DMRestrictPeriod","id":1}}},"DMRestrictPeriod":{"fields":{"start":{"type":"int64","id":1},"end":{"type":"int64","id":2}}},"DmMaskWall":{"fields":{"start":{"type":"int64","id":1},"end":{"type":"int64","id":2},"content":{"type":"string","id":3},"contentType":{"type":"DmMaskWallContentType","id":4},"bizType":{"type":"DmMaskWallBizType","id":5},"contents":{"rule":"repeated","type":"DmMaskWallContent","id":6}}},"DmMaskWallBizType":{"values":{"DmMaskWallBizTypeUnknown":0,"DmMaskWallBizTypeOGV":1,"DmMaskWallBizTypeBizPic":2,"DmMaskWallBizTypeMute":3,"DmMaskWallBizTypeRecord":4}},"DmMaskWallContent":{"fields":{"type":{"type":"DmMaskWallContentType","id":1},"content":{"type":"string","id":2}}},"DmMaskWallContentType":{"values":{"DmMaskWallContentTypeUnknown":0,"DmMaskWallContentTypeText":1,"DmMaskWallContentTypePic":2}},"QoeInfo":{"fields":{"info":{"type":"string","id":1}}},"PostPanel":{"fields":{"start":{"type":"int64","id":1},"end":{"type":"int64","id":2},"priority":{"type":"int64","id":3},"bizId":{"type":"int64","id":4},"bizType":{"type":"PostPanelBizType","id":5},"clickButton":{"type":"ClickButton","id":6},"textInput":{"type":"TextInput","id":7},"checkBox":{"type":"CheckBox","id":8},"toast":{"type":"Toast","id":9}}},"PostPanelV2":{"fields":{"start":{"type":"int64","id":1},"end":{"type":"int64","id":2},"bizType":{"type":"PostPanelBizType","id":3},"clickButton":{"type":"ClickButtonV2","id":4},"textInput":{"type":"TextInputV2","id":5},"checkBox":{"type":"CheckBoxV2","id":6},"toast":{"type":"ToastV2","id":7},"bubble":{"type":"BubbleV2","id":8},"label":{"type":"LabelV2","id":9},"postStatus":{"type":"PostStatus","id":10}}},"ClickButton":{"fields":{"portraitText":{"rule":"repeated","type":"string","id":1},"landscapeText":{"rule":"repeated","type":"string","id":2},"portraitTextFocus":{"rule":"repeated","type":"string","id":3},"landscapeTextFocus":{"rule":"repeated","type":"string","id":4},"renderType":{"type":"RenderType","id":5},"show":{"type":"bool","id":6}}},"ClickButtonV2":{"fields":{"portraitText":{"rule":"repeated","type":"string","id":1},"landscapeText":{"rule":"repeated","type":"string","id":2},"portraitTextFocus":{"rule":"repeated","type":"string","id":3},"landscapeTextFocus":{"rule":"repeated","type":"string","id":4},"renderType":{"type":"RenderType","id":5},"textInputPost":{"type":"bool","id":6},"exposureOnce":{"type":"bool","id":7},"exposureType":{"type":"ExposureType","id":8}}},"PostPanelBizType":{"values":{"PostPanelBizTypeNone":0,"PostPanelBizTypeEncourage":1,"PostPanelBizTypeFragClose":4,"PostPanelBizTypeColorDM":2}},"TextInput":{"fields":{"portraitPlaceholder":{"rule":"repeated","type":"string","id":1},"landscapePlaceholder":{"rule":"repeated","type":"string","id":2},"renderType":{"type":"RenderType","id":3},"placeholderPost":{"type":"bool","id":4},"show":{"type":"bool","id":5},"postStatus":{"type":"PostStatus","id":7}}},"TextInputV2":{"fields":{"portraitPlaceholder":{"rule":"repeated","type":"string","id":1},"landscapePlaceholder":{"rule":"repeated","type":"string","id":2},"renderType":{"type":"RenderType","id":3},"placeholderPost":{"type":"bool","id":4},"textInputLimit":{"type":"int32","id":6}}},"PostStatus":{"values":{"PostStatusNormal":0,"PostStatusClosed":1}},"RenderType":{"values":{"RenderTypeNone":0,"RenderTypeSingle":1,"RenderTypeRotation":2}},"CheckBox":{"fields":{"text":{"type":"string","id":1},"type":{"type":"CheckboxType","id":2},"defaultValue":{"type":"bool","id":3},"show":{"type":"bool","id":4}}},"CheckBoxV2":{"fields":{"text":{"type":"string","id":1},"type":{"type":"CheckboxType","id":2},"defaultValue":{"type":"bool","id":3}}},"CheckboxType":{"values":{"CheckboxTypeNone":0,"CheckboxTypeEncourage":1}},"Toast":{"fields":{"text":{"type":"string","id":1},"duration":{"type":"int32","id":2},"show":{"type":"bool","id":3},"button":{"type":"Button","id":4}}},"ToastV2":{"fields":{"text":{"type":"string","id":1},"duration":{"type":"int32","id":2},"toastButtonV2":{"type":"ToastButtonV2","id":3}}},"BubbleV2":{"fields":{"text":{"type":"string","id":1},"url":{"type":"string","id":2},"bubbleType":{"type":"BubbleType","id":3},"exposureOnce":{"type":"bool","id":4},"exposureType":{"type":"ExposureType","id":5}}},"BubbleType":{"values":{"BubbleTypeNone":0,"BubbleTypeClickButton":1,"BubbleTypeDmSettingPanel":2}},"LabelV2":{"fields":{"title":{"type":"string","id":1},"content":{"rule":"repeated","type":"string","id":2},"exposureOnce":{"type":"bool","id":3},"exposureType":{"type":"ExposureType","id":4}}},"ExposureType":{"values":{"ExposureTypeNone":0,"ExposureTypeDMSend":1}},"ToastButtonV2":{"fields":{"text":{"type":"string","id":1},"action":{"type":"ToastFunctionType","id":2}}},"Button":{"fields":{"text":{"type":"string","id":1},"action":{"type":"ToastFunctionType","id":2}}},"ToastFunctionType":{"values":{"ToastFunctionTypeNone":0,"ToastFunctionTypePostPanel":1}},"ToastBizType":{"values":{"ToastBizTypeNone":0,"ToastBizTypeEncourage":1}},"CommandDm":{"fields":{"oid":{"type":"int64","id":2},"mid":{"type":"int64","id":3},"command":{"type":"string","id":4},"text":{"type":"string","id":5},"stime":{"type":"int32","id":6},"ctime":{"type":"string","id":7},"mtime":{"type":"string","id":8},"extra":{"type":"string","id":9},"dmid":{"type":"string","id":10}}},"DmSegConfig":{"fields":{"pageSize":{"type":"int64","id":1},"total":{"type":"int64","id":2}}},"DanmakuFlagConfig":{"fields":{"recFlag":{"type":"int32","id":1},"recText":{"type":"string","id":2},"recSwitch":{"type":"int32","id":3}}},"DmSegMobileReply":{"fields":{"elems":{"rule":"repeated","type":"DanmakuElem","id":1},"colorfulSrc":{"rule":"repeated","type":"DmColorful","id":5}}},"DanmakuElem":{"fields":{"stime":{"type":"int32","id":2},"mode":{"type":"int32","id":3},"size":{"type":"int32","id":4},"color":{"type":"uint32","id":5},"uhash":{"type":"string","id":6},"text":{"type":"string","id":7},"date":{"type":"int64","id":8},"weight":{"type":"int32","id":9},"action":{"type":"string","id":10},"pool":{"type":"int32","id":11},"dmid":{"type":"string","id":12},"attr":{"type":"int32","id":13},"animation":{"type":"string","id":22},"colorful":{"type":"DmColorfulType","id":24},"oid":{"type":"int64","id":26},"dmFrom":{"type":"DmFromType","id":27}}},"DmFromType":{"values":{"DmFromUnknown":0,"DmFromNormal":1,"DmFromCmd":2,"DmFromLive":3}},"DanmuWebPlayerConfig":{"fields":{"dmSwitch":{"type":"bool","id":1},"aiSwitch":{"type":"bool","id":2},"aiLevel":{"type":"int32","id":3},"typeTop":{"type":"bool","id":4},"typeScroll":{"type":"bool","id":5},"typeBottom":{"type":"bool","id":6},"typeColor":{"type":"bool","id":7},"typeSpecial":{"type":"bool","id":8},"preventshade":{"type":"bool","id":9},"dmask":{"type":"bool","id":10},"opacity":{"type":"float","id":11},"speedplus":{"type":"float","id":13},"fontsize":{"type":"float","id":14},"fullscreensync":{"type":"bool","id":15},"speedsync":{"type":"bool","id":16},"fontfamily":{"type":"string","id":17},"bold":{"type":"bool","id":18},"fontborder":{"type":"int32","id":19},"seniorModeSwitch":{"type":"int32","id":21},"typeTopBottom":{"type":"bool","id":24},"dmarea":{"type":"int32","id":25},"dmdensity":{"type":"int32","id":26}}},"Expressions":{"fields":{"data":{"rule":"repeated","type":"Expression","id":1}}},"Expression":{"fields":{"keyword":{"rule":"repeated","type":"string","id":1},"url":{"type":"string","id":2},"period":{"rule":"repeated","type":"Period","id":3}}},"Period":{"fields":{"start":{"type":"int64","id":1},"end":{"type":"int64","id":2}}},"AnyBody":{"fields":{"body":{"type":"google.protobuf.Any","id":1}}},"DmColorful":{"fields":{"type":{"type":"DmColorfulType","id":1},"src":{"type":"string","id":2}}},"DmColorfulType":{"values":{"NoneType":0,"VipGradualColor":60001}},"DmSubView":{"fields":{"type":{"type":"int32","id":1},"oid":{"type":"int64","id":2},"pid":{"type":"int64","id":3},"postPanel_2":{"rule":"repeated","type":"PostPanelV2","id":4}}},"VideoSubtitle":{"fields":{"lan":{"type":"string","id":1},"lanDoc":{"type":"string","id":2},"subtitles":{"rule":"repeated","type":"SubtitleItem","id":3},"subtitlePosition":{"type":"SubtitlePosition","id":4},"fontSizeType":{"type":"FontSizeType","id":5}}},"SubtitleType":{"values":{"CC":0,"AI":1}},"SubtitleAiType":{"values":{"Normal":0,"Translate":1}},"SubtitleAiStatus":{"values":{"None":0,"Exposure":1,"Assist":2}},"SubtitleRole":{"values":{"Default":0,"Main":1,"Secondary":2}},"SubtitleItem":{"fields":{"id":{"type":"int64","id":1},"idStr":{"type":"string","id":2},"lan":{"type":"string","id":3},"lanDoc":{"type":"string","id":4},"subtitleUrl":{"type":"string","id":5},"author":{"type":"UserInfo","id":6},"type":{"type":"SubtitleType","id":7},"lanDocBrief":{"type":"string","id":8},"aiType":{"type":"SubtitleAiType","id":9},"aiStatus":{"type":"SubtitleAiStatus","id":10},"role":{"type":"SubtitleRole","id":11},"subtitleHeight":{"type":"SubtitleHeight","id":12}}},"SubtitlePosition":{"fields":{"xMin":{"type":"double","id":1},"yMin":{"type":"double","id":2},"xMax":{"type":"double","id":3},"yMax":{"type":"double","id":4},"purpose":{"type":"PurposeType","id":5}}},"PurposeType":{"values":{"PurposeCover":0,"PurposeOGV":1}},"FontSizeType":{"values":{"FontSizeDefault":0,"FontSizeOGV":1}},"SubtitleHeight":{"fields":{"value":{"type":"double","id":1}}},"UserInfo":{"fields":{"mid":{"type":"int64","id":1},"name":{"type":"string","id":2},"sex":{"type":"string","id":3},"face":{"type":"string","id":4},"sign":{"type":"string","id":5},"rank":{"type":"int32","id":6}}}}}}}}}}}}},"google":{"nested":{"protobuf":{"nested":{"Any":{"fields":{"type_url":{"type":"string","id":1},"value":{"type":"bytes","id":2}}}}}}}}}'),r=JSON.parse('{"nested":{"bilibili":{"nested":{"community":{"nested":{"service":{"nested":{"dm":{"nested":{"live":{"nested":{"BizScene":{"values":{"BizSceneNone":0,"BizSceneLottery":1,"BizSceneSurvive":2,"BizSceneVoiceConn":3,"BizScenePlayBack":4,"BizSceneVote":5}},"DmType":{"values":{"DmTypeNormal":0,"DmTypeEmoticon":1,"DmTypeVoice":2}},"Dm":{"fields":{"dmid":{"type":"string","id":1},"mode":{"type":"int32","id":2},"size":{"type":"int32","id":3},"color":{"type":"uint32","id":4},"uhash":{"type":"string","id":5},"text":{"type":"string","id":6},"date":{"type":"int64","id":7},"weight":{"type":"int32","id":8},"rnd":{"type":"int64","id":9},"attr":{"type":"int64","id":10},"bizScene":{"type":"BizScene","id":11},"bubble":{"type":"Bubble","id":12},"dmType":{"type":"DmType","id":13},"emoticons":{"keyType":"string","type":"Emoticon","id":14},"voice":{"type":"Voice","id":15},"animation":{"type":"string","id":16},"aggregation":{"type":"Aggregation","id":17},"sendFromMe":{"type":"bool","id":18},"check":{"type":"Check","id":19},"user":{"type":"User","id":20},"room":{"type":"Room","id":21},"icon":{"type":"Icon","id":22}}},"Check":{"fields":{"token":{"type":"string","id":1},"ts":{"type":"int64","id":2}}},"Room":{"fields":{"uid":{"type":"int64","id":1}}},"Aggregation":{"fields":{"isAggregation":{"type":"bool","id":1},"activitySource":{"type":"int64","id":2},"activityIdentity":{"type":"string","id":3},"notShow":{"type":"int32","id":4}}},"Bubble":{"fields":{"id":{"type":"int64","id":1},"color":{"type":"string","id":2},"idV2":{"type":"int64","id":3}}},"Emoticon":{"fields":{"unique":{"type":"string","id":1},"url":{"type":"string","id":2},"isDynamic":{"type":"bool","id":3},"inPlayerArea":{"type":"int64","id":4},"bulgeDisplay":{"type":"int64","id":5},"height":{"type":"int64","id":6},"width":{"type":"int64","id":7}}},"Voice":{"fields":{"url":{"type":"string","id":1},"fileFormat":{"type":"string","id":2},"text":{"type":"string","id":3},"fileDuration":{"type":"int64","id":4},"fileId":{"type":"string","id":5}}},"User":{"fields":{"uid":{"type":"int64","id":1},"name":{"type":"string","id":2},"nameColor":{"type":"string","id":3},"face":{"type":"string","id":4},"vip":{"type":"int64","id":5},"svip":{"type":"int64","id":6},"rank":{"type":"int32","id":7},"mobileVerify":{"type":"int32","id":8},"lplStatus":{"type":"int64","id":9},"attr":{"type":"int64","id":10},"medal":{"type":"Medal","id":11},"level":{"type":"UserLevel","id":12},"title":{"type":"Title","id":13},"identify":{"type":"Identify","id":14},"wealth":{"type":"Wealth","id":15}}},"Identify":{"fields":{"beginningUrl":{"type":"string","id":1},"endingUrl":{"type":"string","id":2},"jumpToUrl":{"type":"string","id":3}}},"Medal":{"fields":{"level":{"type":"int64","id":1},"name":{"type":"string","id":2},"special":{"type":"string","id":3},"color":{"type":"int64","id":4},"iconId":{"type":"int64","id":5},"borderColor":{"type":"int64","id":6},"gradientStartColor":{"type":"int64","id":7},"gradientEndColor":{"type":"int64","id":8},"privilege":{"type":"int64","id":9},"light":{"type":"int64","id":10}}},"UserLevel":{"fields":{"level":{"type":"int64","id":1},"color":{"type":"int64","id":2},"rank":{"type":"string","id":3},"onlineRank":{"type":"int64","id":4}}},"Title":{"fields":{"title":{"type":"string","id":1},"oldTitle":{"type":"string","id":2}}},"Record":{"fields":{"dmid":{"type":"string","id":1},"timeOffset":{"type":"int64","id":2}}},"Wealth":{"fields":{"level":{"type":"int64","id":1}}},"Icon":{"fields":{"prefix":{"type":"Prefix","id":1}}},"Prefix":{"fields":{"type":{"type":"int32","id":1},"resource":{"type":"string","id":2}}}}}}}}}}}}}}}'),o=JSON.parse('{"nested":{"bilibili":{"nested":{"subtitle":{"nested":{"SubtitleViewReply":{"fields":{"subtitle":{"type":"VideoSubtitle","id":1}}},"VideoSubtitle":{"fields":{"lan":{"type":"string","id":1},"lanDoc":{"type":"string","id":2},"subtitles":{"rule":"repeated","type":"SubtitleItem","id":3},"subtitlePosition":{"type":"SubtitlePosition","id":4},"fontSizeType":{"type":"FontSizeType","id":5}}},"PurposeType":{"values":{"PurposeCover":0,"PurposeOGV":1}},"FontSizeType":{"values":{"FontSizeDefault":0,"FontSizeOGV":1}},"SubtitleType":{"values":{"CC":0,"AI":1}},"SubtitleAiType":{"values":{"Normal":0,"Translate":1}},"SubtitleAiStatus":{"values":{"None":0,"Exposure":1,"Assist":2}},"SubtitleRole":{"values":{"Default":0,"Main":1,"Secondary":2}},"SubtitleItem":{"fields":{"id":{"type":"int64","id":1},"idStr":{"type":"string","id":2},"lan":{"type":"string","id":3},"lanDoc":{"type":"string","id":4},"subtitleUrl":{"type":"string","id":5},"author":{"type":"UserInfo","id":6},"type":{"type":"SubtitleType","id":7},"lanDocBrief":{"type":"string","id":8},"aiType":{"type":"SubtitleAiType","id":9},"aiStatus":{"type":"SubtitleAiStatus","id":10},"role":{"type":"SubtitleRole","id":11},"subtitleHeight":{"type":"SubtitleHeight","id":12}}},"SubtitlePosition":{"fields":{"xMin":{"type":"double","id":1},"yMin":{"type":"double","id":2},"xMax":{"type":"double","id":3},"yMax":{"type":"double","id":4},"purpose":{"type":"PurposeType","id":5}}},"SubtitleHeight":{"fields":{"value":{"type":"double","id":1}}},"UserInfo":{"fields":{"mid":{"type":"int64","id":1},"name":{"type":"string","id":2},"sex":{"type":"string","id":3},"face":{"type":"string","id":4},"sign":{"type":"string","id":5},"rank":{"type":"int32","id":6}}}}}}},"google":{"nested":{"protobuf":{"nested":{"Any":{"fields":{"type_url":{"type":"string","id":1},"value":{"type":"bytes","id":2}}}}}}}}}'),a=Object.defineProperty,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,c=(t,e,i)=>e in t?a(t,e,{
enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;class h{constructor(t){this.config=((t,e)=>{for(var i in e||(e={}))l.call(e,i)&&c(t,i,e[i]);if(s)for(var i of s(e))A.call(e,i)&&c(t,i,e[i]);return t})({protobuf:null,protocols:"proto",platform:"web"},t),this.protobuf=t.protobuf;const e=this.protobuf.Root.fromJSON(n),i=this.protobuf.Root.fromJSON(r),a=this.protobuf.Root.fromJSON(o),h="bilibili.community.service.dm.";this.anyType=e.lookupType("google.protobuf.Any"),this.pbType={view:e.lookupType(h+"v1.DmWebViewReply"),dm:e.lookupType(h+"v1.DmSegMobileReply"),live:i.lookupType("live.Dm"),subtitle:a.lookupType("bilibili.subtitle.SubtitleViewReply")}}toJson(t,e){const i=this.getType(e);if(!i)return console.warn("no json/path");const n=i.decode(new Uint8Array(t));return i.toObject(n,{defaults:!0})}toBuffer(t,e){const i=this.getType(e);if(!i)return console.warn("no json/path");const n=i.verify(t);if(n)return console.warn(n);const r=i.create(t);return i.encode(r).finish()}encodeAny(t,e,i){return i=`type.googleapis.com${i}`,this.anyType.create({type_url:i,value:e.encode(t).finish()})}getType(t){const{type:e,json:i,path:n}=t||{};let r=this.pbType[e];if(!r){if(!i||!n)return"";r=this.protobuf.Root.fromJSON(i).lookupType(n),this.pbType[e]=r}return r}}},43571:function(t,e,i){"use strict";var n,r,o,a=i(36666),s=a.Reader,l=a.Writer,A=a.util,c=a.roots.default||(a.roots.default={});c.infoc=((o={}).AppInfo=function(){function t(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.appId=0,t.prototype.platform=0,t.prototype.buvid="",t.prototype.chid="",t.prototype.brand="",t.prototype.deviceId="",t.prototype.model="",t.prototype.osver="",t.prototype.fts=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.buvidShared="",t.prototype.uid=0,t.prototype.apiLevel=0,t.prototype.abi="",t.prototype.bilifp="",t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=l.create()),null!=t.appId&&t.hasOwnProperty("appId")&&e.uint32(8).int32(t.appId),null!=t.platform&&t.hasOwnProperty("platform")&&e.uint32(16).int32(t.platform),null!=t.buvid&&t.hasOwnProperty("buvid")&&e.uint32(26).string(t.buvid),null!=t.chid&&t.hasOwnProperty("chid")&&e.uint32(34).string(t.chid),null!=t.brand&&t.hasOwnProperty("brand")&&e.uint32(42).string(t.brand),null!=t.deviceId&&t.hasOwnProperty("deviceId")&&e.uint32(50).string(t.deviceId),null!=t.model&&t.hasOwnProperty("model")&&e.uint32(58).string(t.model),null!=t.osver&&t.hasOwnProperty("osver")&&e.uint32(66).string(t.osver),null!=t.fts&&t.hasOwnProperty("fts")&&e.uint32(72).int64(t.fts),null!=t.buvidShared&&t.hasOwnProperty("buvidShared")&&e.uint32(82).string(t.buvidShared),null!=t.uid&&t.hasOwnProperty("uid")&&e.uint32(88).int32(t.uid),null!=t.apiLevel&&t.hasOwnProperty("apiLevel")&&e.uint32(96).int32(t.apiLevel),null!=t.abi&&t.hasOwnProperty("abi")&&e.uint32(106).string(t.abi),null!=t.bilifp&&t.hasOwnProperty("bilifp")&&e.uint32(114).string(t.bilifp),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new c.infoc.AppInfo;t.pos<i;){var r=t.uint32();switch(r>>>3){case 1:n.appId=t.int32();break;case 2:n.platform=t.int32();break;case 3:n.buvid=t.string();break;case 4:n.chid=t.string();break;case 5:n.brand=t.string();break;case 6:n.deviceId=t.string();break;case 7:n.model=t.string();break;case 8:n.osver=t.string();break;case 9:n.fts=t.int64();break;case 10:n.buvidShared=t.string();break;case 11:n.uid=t.int32();break;case 12:n.apiLevel=t.int32();break;case 13:n.abi=t.string();break;case 14:n.bilifp=t.string();break;default:t.skipType(7&r)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.appId&&t.hasOwnProperty("appId")&&!A.isInteger(t.appId)?"appId: integer expected":null!=t.platform&&t.hasOwnProperty("platform")&&!A.isInteger(t.platform)?"platform: integer expected":null!=t.buvid&&t.hasOwnProperty("buvid")&&!A.isString(t.buvid)?"buvid: string expected":null!=t.chid&&t.hasOwnProperty("chid")&&!A.isString(t.chid)?"chid: string expected":null!=t.brand&&t.hasOwnProperty("brand")&&!A.isString(t.brand)?"brand: string expected":null!=t.deviceId&&t.hasOwnProperty("deviceId")&&!A.isString(t.deviceId)?"deviceId: string expected":null!=t.model&&t.hasOwnProperty("model")&&!A.isString(t.model)?"model: string expected":null!=t.osver&&t.hasOwnProperty("osver")&&!A.isString(t.osver)?"osver: string expected":null!=t.fts&&t.hasOwnProperty("fts")&&!(A.isInteger(t.fts)||t.fts&&A.isInteger(t.fts.low)&&A.isInteger(t.fts.high))?"fts: integer|Long expected":null!=t.buvidShared&&t.hasOwnProperty("buvidShared")&&!A.isString(t.buvidShared)?"buvidShared: string expected":null!=t.uid&&t.hasOwnProperty("uid")&&!A.isInteger(t.uid)?"uid: integer expected":null!=t.apiLevel&&t.hasOwnProperty("apiLevel")&&!A.isInteger(t.apiLevel)?"apiLevel: integer expected":null!=t.abi&&t.hasOwnProperty("abi")&&!A.isString(t.abi)?"abi: string expected":null!=t.bilifp&&t.hasOwnProperty("bilifp")&&!A.isString(t.bilifp)?"bilifp: string expected":null},t.fromObject=function(t){if(t instanceof c.infoc.AppInfo)return t;var e=new c.infoc.AppInfo;return null!=t.appId&&(e.appId=0|t.appId),null!=t.platform&&(e.platform=0|t.platform),null!=t.buvid&&(e.buvid=String(t.buvid)),null!=t.chid&&(e.chid=String(t.chid)),null!=t.brand&&(e.brand=String(t.brand)),null!=t.deviceId&&(e.deviceId=String(t.deviceId)),null!=t.model&&(e.model=String(t.model)),null!=t.osver&&(e.osver=String(t.osver)),null!=t.fts&&(A.Long?(e.fts=A.Long.fromValue(t.fts)).unsigned=!1:"string"==typeof t.fts?e.fts=parseInt(t.fts,10):"number"==typeof t.fts?e.fts=t.fts:"object"==typeof t.fts&&(e.fts=new A.LongBits(t.fts.low>>>0,t.fts.high>>>0).toNumber())),null!=t.buvidShared&&(e.buvidShared=String(t.buvidShared)),null!=t.uid&&(e.uid=0|t.uid),null!=t.apiLevel&&(e.apiLevel=0|t.apiLevel),null!=t.abi&&(e.abi=String(t.abi)),null!=t.bilifp&&(e.bilifp=String(t.bilifp)),e},t.toObject=function(t,e){e||(e={});var i={};if(e.defaults){if(i.appId=0,i.platform=0,i.buvid="",i.chid="",i.brand="",i.deviceId="",i.model="",i.osver="",A.Long){var n=new A.Long(0,0,!1);i.fts=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else i.fts=e.longs===String?"0":0;i.buvidShared="",i.uid=0,i.apiLevel=0,i.abi="",i.bilifp=""}return null!=t.appId&&t.hasOwnProperty("appId")&&(i.appId=t.appId),null!=t.platform&&t.hasOwnProperty("platform")&&(i.platform=t.platform),null!=t.buvid&&t.hasOwnProperty("buvid")&&(i.buvid=t.buvid),null!=t.chid&&t.hasOwnProperty("chid")&&(i.chid=t.chid),null!=t.brand&&t.hasOwnProperty("brand")&&(i.brand=t.brand),null!=t.deviceId&&t.hasOwnProperty("deviceId")&&(i.deviceId=t.deviceId),null!=t.model&&t.hasOwnProperty("model")&&(i.model=t.model),null!=t.osver&&t.hasOwnProperty("osver")&&(i.osver=t.osver),null!=t.fts&&t.hasOwnProperty("fts")&&("number"==typeof t.fts?i.fts=e.longs===String?String(t.fts):t.fts:i.fts=e.longs===String?A.Long.prototype.toString.call(t.fts):e.longs===Number?new A.LongBits(t.fts.low>>>0,t.fts.high>>>0).toNumber():t.fts),null!=t.buvidShared&&t.hasOwnProperty("buvidShared")&&(i.buvidShared=t.buvidShared),null!=t.uid&&t.hasOwnProperty("uid")&&(i.uid=t.uid),null!=t.apiLevel&&t.hasOwnProperty("apiLevel")&&(i.apiLevel=t.apiLevel),null!=t.abi&&t.hasOwnProperty("abi")&&(i.abi=t.abi),null!=t.bilifp&&t.hasOwnProperty("bilifp")&&(i.bilifp=t.bilifp),i},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.EventCategory=(n={},(r=Object.create(n))[n[0]="OTHER"]=0,r[n[1]="PAGEVIEW"]=1,r[n[2]="CLICK"]=2,r[n[3]="EXPOSURE"]=3,r[n[4]="SYSTEM"]=4,r[n[5]="TRACKER"]=5,r[n[7]="CUSTOM"]=7,r[n[8]="COMPATIBLE"]=8,r[n[9]="PLAYER"]=9,r),o.RuntimeNetWork=function(){var t={},e=Object.create(t);return e[t[0]="UNKNOWN"]=0,e[t[1]="WIFI"]=1,e[t[2]="CELLULAR"]=2,e[t[3]="OFFLINE"]=3,e[t[4]="OTHERNET"]=4,e[t[5]="ETHERNET"]=5,e}(),o.AppRuntimeInfo=function(){function t(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.network=0,t.prototype.oid="",
t.prototype.longitude=0,t.prototype.latitude=0,t.prototype.version="",t.prototype.versionCode="",t.prototype.logver="",t.prototype.abtest="",t.prototype.ffVersion="",t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=l.create()),null!=t.network&&t.hasOwnProperty("network")&&e.uint32(8).int32(t.network),null!=t.oid&&t.hasOwnProperty("oid")&&e.uint32(18).string(t.oid),null!=t.longitude&&t.hasOwnProperty("longitude")&&e.uint32(25).double(t.longitude),null!=t.latitude&&t.hasOwnProperty("latitude")&&e.uint32(33).double(t.latitude),null!=t.version&&t.hasOwnProperty("version")&&e.uint32(42).string(t.version),null!=t.versionCode&&t.hasOwnProperty("versionCode")&&e.uint32(50).string(t.versionCode),null!=t.logver&&t.hasOwnProperty("logver")&&e.uint32(58).string(t.logver),null!=t.abtest&&t.hasOwnProperty("abtest")&&e.uint32(66).string(t.abtest),null!=t.ffVersion&&t.hasOwnProperty("ffVersion")&&e.uint32(74).string(t.ffVersion),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new c.infoc.AppRuntimeInfo;t.pos<i;){var r=t.uint32();switch(r>>>3){case 1:n.network=t.int32();break;case 2:n.oid=t.string();break;case 3:n.longitude=t.double();break;case 4:n.latitude=t.double();break;case 5:n.version=t.string();break;case 6:n.versionCode=t.string();break;case 7:n.logver=t.string();break;case 8:n.abtest=t.string();break;case 9:n.ffVersion=t.string();break;default:t.skipType(7&r)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.network&&t.hasOwnProperty("network"))switch(t.network){default:return"network: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:}return null!=t.oid&&t.hasOwnProperty("oid")&&!A.isString(t.oid)?"oid: string expected":null!=t.longitude&&t.hasOwnProperty("longitude")&&"number"!=typeof t.longitude?"longitude: number expected":null!=t.latitude&&t.hasOwnProperty("latitude")&&"number"!=typeof t.latitude?"latitude: number expected":null!=t.version&&t.hasOwnProperty("version")&&!A.isString(t.version)?"version: string expected":null!=t.versionCode&&t.hasOwnProperty("versionCode")&&!A.isString(t.versionCode)?"versionCode: string expected":null!=t.logver&&t.hasOwnProperty("logver")&&!A.isString(t.logver)?"logver: string expected":null!=t.abtest&&t.hasOwnProperty("abtest")&&!A.isString(t.abtest)?"abtest: string expected":null!=t.ffVersion&&t.hasOwnProperty("ffVersion")&&!A.isString(t.ffVersion)?"ffVersion: string expected":null},t.fromObject=function(t){if(t instanceof c.infoc.AppRuntimeInfo)return t;var e=new c.infoc.AppRuntimeInfo;switch(t.network){case"UNKNOWN":case 0:e.network=0;break;case"WIFI":case 1:e.network=1;break;case"CELLULAR":case 2:e.network=2;break;case"OFFLINE":case 3:e.network=3;break;case"OTHERNET":case 4:e.network=4;break;case"ETHERNET":case 5:e.network=5}return null!=t.oid&&(e.oid=String(t.oid)),null!=t.longitude&&(e.longitude=Number(t.longitude)),null!=t.latitude&&(e.latitude=Number(t.latitude)),null!=t.version&&(e.version=String(t.version)),null!=t.versionCode&&(e.versionCode=String(t.versionCode)),null!=t.logver&&(e.logver=String(t.logver)),null!=t.abtest&&(e.abtest=String(t.abtest)),null!=t.ffVersion&&(e.ffVersion=String(t.ffVersion)),e},t.toObject=function(t,e){e||(e={});var i={};return e.defaults&&(i.network=e.enums===String?"UNKNOWN":0,i.oid="",i.longitude=0,i.latitude=0,i.version="",i.versionCode="",i.logver="",i.abtest="",i.ffVersion=""),null!=t.network&&t.hasOwnProperty("network")&&(i.network=e.enums===String?c.infoc.RuntimeNetWork[t.network]:t.network),null!=t.oid&&t.hasOwnProperty("oid")&&(i.oid=t.oid),null!=t.longitude&&t.hasOwnProperty("longitude")&&(i.longitude=e.json&&!isFinite(t.longitude)?String(t.longitude):t.longitude),null!=t.latitude&&t.hasOwnProperty("latitude")&&(i.latitude=e.json&&!isFinite(t.latitude)?String(t.latitude):t.latitude),null!=t.version&&t.hasOwnProperty("version")&&(i.version=t.version),null!=t.versionCode&&t.hasOwnProperty("versionCode")&&(i.versionCode=t.versionCode),null!=t.logver&&t.hasOwnProperty("logver")&&(i.logver=t.logver),null!=t.abtest&&t.hasOwnProperty("abtest")&&(i.abtest=t.abtest),null!=t.ffVersion&&t.hasOwnProperty("ffVersion")&&(i.ffVersion=t.ffVersion),i},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.AppEvent=function(){function t(t){if(this.extendedFields={},t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.eventId="",t.prototype.appInfo=null,t.prototype.runtimeInfo=null,t.prototype.mid="",t.prototype.ctime=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.logId="",t.prototype.retrySendCount=0,t.prototype.sn=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.eventCategory=0,t.prototype.appPageViewInfo=null,t.prototype.appClickInfo=null,t.prototype.appExposureInfo=null,t.prototype.extendedFields=A.emptyObject,t.prototype.pageType=0,t.prototype.snGenTime=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.uploadTime=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.appPlayerInfo=null,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=l.create()),null!=t.eventId&&t.hasOwnProperty("eventId")&&e.uint32(10).string(t.eventId),null!=t.appInfo&&t.hasOwnProperty("appInfo")&&c.infoc.AppInfo.encode(t.appInfo,e.uint32(18).fork()).ldelim(),null!=t.runtimeInfo&&t.hasOwnProperty("runtimeInfo")&&c.infoc.AppRuntimeInfo.encode(t.runtimeInfo,e.uint32(26).fork()).ldelim(),null!=t.mid&&t.hasOwnProperty("mid")&&e.uint32(34).string(t.mid),null!=t.ctime&&t.hasOwnProperty("ctime")&&e.uint32(40).int64(t.ctime),null!=t.logId&&t.hasOwnProperty("logId")&&e.uint32(50).string(t.logId),null!=t.retrySendCount&&t.hasOwnProperty("retrySendCount")&&e.uint32(56).int32(t.retrySendCount),null!=t.sn&&t.hasOwnProperty("sn")&&e.uint32(64).int64(t.sn),null!=t.eventCategory&&t.hasOwnProperty("eventCategory")&&e.uint32(72).int32(t.eventCategory),null!=t.appPageViewInfo&&t.hasOwnProperty("appPageViewInfo")&&c.infoc.AppPageViewInfo.encode(t.appPageViewInfo,e.uint32(82).fork()).ldelim(),null!=t.appClickInfo&&t.hasOwnProperty("appClickInfo")&&c.infoc.AppClickInfo.encode(t.appClickInfo,e.uint32(90).fork()).ldelim(),null!=t.appExposureInfo&&t.hasOwnProperty("appExposureInfo")&&c.infoc.AppExposureInfo.encode(t.appExposureInfo,e.uint32(98).fork()).ldelim(),null!=t.extendedFields&&t.hasOwnProperty("extendedFields"))for(var i=Object.keys(t.extendedFields),n=0;n<i.length;++n)e.uint32(106).fork().uint32(10).string(i[n]).uint32(18).string(t.extendedFields[i[n]]).ldelim();return null!=t.pageType&&t.hasOwnProperty("pageType")&&e.uint32(112).int32(t.pageType),null!=t.snGenTime&&t.hasOwnProperty("snGenTime")&&e.uint32(120).int64(t.snGenTime),null!=t.uploadTime&&t.hasOwnProperty("uploadTime")&&e.uint32(128).int64(t.uploadTime),null!=t.appPlayerInfo&&t.hasOwnProperty("appPlayerInfo")&&c.infoc.AppPlayerInfo.encode(t.appPlayerInfo,e.uint32(138).fork()).ldelim(),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i,n=void 0===e?t.len:t.pos+e,r=new c.infoc.AppEvent;t.pos<n;){var o=t.uint32();switch(o>>>3){case 1:r.eventId=t.string();break;case 2:r.appInfo=c.infoc.AppInfo.decode(t,t.uint32());break;case 3:r.runtimeInfo=c.infoc.AppRuntimeInfo.decode(t,t.uint32());break;case 4:r.mid=t.string();break;case 5:r.ctime=t.int64();break;case 6:r.logId=t.string();break;case 7:r.retrySendCount=t.int32();break;case 8:r.sn=t.int64();break;case 9:r.eventCategory=t.int32();break;case 10:r.appPageViewInfo=c.infoc.AppPageViewInfo.decode(t,t.uint32());break;case 11:r.appClickInfo=c.infoc.AppClickInfo.decode(t,t.uint32());break;case 12:r.appExposureInfo=c.infoc.AppExposureInfo.decode(t,t.uint32());break;case 13:t.skip().pos++,r.extendedFields===A.emptyObject&&(r.extendedFields={}),i=t.string(),t.pos++,r.extendedFields[i]=t.string();break;case 14:r.pageType=t.int32();break;case 15:r.snGenTime=t.int64();break;case 16:r.uploadTime=t.int64();break;case 17:
r.appPlayerInfo=c.infoc.AppPlayerInfo.decode(t,t.uint32());break;default:t.skipType(7&o)}}return r},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.eventId&&t.hasOwnProperty("eventId")&&!A.isString(t.eventId))return"eventId: string expected";var e;if(null!=t.appInfo&&t.hasOwnProperty("appInfo")&&(e=c.infoc.AppInfo.verify(t.appInfo)))return"appInfo."+e;if(null!=t.runtimeInfo&&t.hasOwnProperty("runtimeInfo")&&(e=c.infoc.AppRuntimeInfo.verify(t.runtimeInfo)))return"runtimeInfo."+e;if(null!=t.mid&&t.hasOwnProperty("mid")&&!A.isString(t.mid))return"mid: string expected";if(null!=t.ctime&&t.hasOwnProperty("ctime")&&!(A.isInteger(t.ctime)||t.ctime&&A.isInteger(t.ctime.low)&&A.isInteger(t.ctime.high)))return"ctime: integer|Long expected";if(null!=t.logId&&t.hasOwnProperty("logId")&&!A.isString(t.logId))return"logId: string expected";if(null!=t.retrySendCount&&t.hasOwnProperty("retrySendCount")&&!A.isInteger(t.retrySendCount))return"retrySendCount: integer expected";if(null!=t.sn&&t.hasOwnProperty("sn")&&!(A.isInteger(t.sn)||t.sn&&A.isInteger(t.sn.low)&&A.isInteger(t.sn.high)))return"sn: integer|Long expected";if(null!=t.eventCategory&&t.hasOwnProperty("eventCategory"))switch(t.eventCategory){default:return"eventCategory: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 7:case 8:case 9:}if(null!=t.appPageViewInfo&&t.hasOwnProperty("appPageViewInfo")&&(e=c.infoc.AppPageViewInfo.verify(t.appPageViewInfo)))return"appPageViewInfo."+e;if(null!=t.appClickInfo&&t.hasOwnProperty("appClickInfo")&&(e=c.infoc.AppClickInfo.verify(t.appClickInfo)))return"appClickInfo."+e;if(null!=t.appExposureInfo&&t.hasOwnProperty("appExposureInfo")&&(e=c.infoc.AppExposureInfo.verify(t.appExposureInfo)))return"appExposureInfo."+e;if(null!=t.extendedFields&&t.hasOwnProperty("extendedFields")){if(!A.isObject(t.extendedFields))return"extendedFields: object expected";for(var i=Object.keys(t.extendedFields),n=0;n<i.length;++n)if(!A.isString(t.extendedFields[i[n]]))return"extendedFields: string{k:string} expected"}return null!=t.pageType&&t.hasOwnProperty("pageType")&&!A.isInteger(t.pageType)?"pageType: integer expected":null!=t.snGenTime&&t.hasOwnProperty("snGenTime")&&!(A.isInteger(t.snGenTime)||t.snGenTime&&A.isInteger(t.snGenTime.low)&&A.isInteger(t.snGenTime.high))?"snGenTime: integer|Long expected":null!=t.uploadTime&&t.hasOwnProperty("uploadTime")&&!(A.isInteger(t.uploadTime)||t.uploadTime&&A.isInteger(t.uploadTime.low)&&A.isInteger(t.uploadTime.high))?"uploadTime: integer|Long expected":null!=t.appPlayerInfo&&t.hasOwnProperty("appPlayerInfo")&&(e=c.infoc.AppPlayerInfo.verify(t.appPlayerInfo))?"appPlayerInfo."+e:null},t.fromObject=function(t){if(t instanceof c.infoc.AppEvent)return t;var e=new c.infoc.AppEvent;if(null!=t.eventId&&(e.eventId=String(t.eventId)),null!=t.appInfo){if("object"!=typeof t.appInfo)throw TypeError(".infoc.AppEvent.appInfo: object expected");e.appInfo=c.infoc.AppInfo.fromObject(t.appInfo)}if(null!=t.runtimeInfo){if("object"!=typeof t.runtimeInfo)throw TypeError(".infoc.AppEvent.runtimeInfo: object expected");e.runtimeInfo=c.infoc.AppRuntimeInfo.fromObject(t.runtimeInfo)}switch(null!=t.mid&&(e.mid=String(t.mid)),null!=t.ctime&&(A.Long?(e.ctime=A.Long.fromValue(t.ctime)).unsigned=!1:"string"==typeof t.ctime?e.ctime=parseInt(t.ctime,10):"number"==typeof t.ctime?e.ctime=t.ctime:"object"==typeof t.ctime&&(e.ctime=new A.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber())),null!=t.logId&&(e.logId=String(t.logId)),null!=t.retrySendCount&&(e.retrySendCount=0|t.retrySendCount),null!=t.sn&&(A.Long?(e.sn=A.Long.fromValue(t.sn)).unsigned=!1:"string"==typeof t.sn?e.sn=parseInt(t.sn,10):"number"==typeof t.sn?e.sn=t.sn:"object"==typeof t.sn&&(e.sn=new A.LongBits(t.sn.low>>>0,t.sn.high>>>0).toNumber())),t.eventCategory){case"OTHER":case 0:e.eventCategory=0;break;case"PAGEVIEW":case 1:e.eventCategory=1;break;case"CLICK":case 2:e.eventCategory=2;break;case"EXPOSURE":case 3:e.eventCategory=3;break;case"SYSTEM":case 4:e.eventCategory=4;break;case"TRACKER":case 5:e.eventCategory=5;break;case"CUSTOM":case 7:e.eventCategory=7;break;case"COMPATIBLE":case 8:e.eventCategory=8;break;case"PLAYER":case 9:e.eventCategory=9}if(null!=t.appPageViewInfo){if("object"!=typeof t.appPageViewInfo)throw TypeError(".infoc.AppEvent.appPageViewInfo: object expected");e.appPageViewInfo=c.infoc.AppPageViewInfo.fromObject(t.appPageViewInfo)}if(null!=t.appClickInfo){if("object"!=typeof t.appClickInfo)throw TypeError(".infoc.AppEvent.appClickInfo: object expected");e.appClickInfo=c.infoc.AppClickInfo.fromObject(t.appClickInfo)}if(null!=t.appExposureInfo){if("object"!=typeof t.appExposureInfo)throw TypeError(".infoc.AppEvent.appExposureInfo: object expected");e.appExposureInfo=c.infoc.AppExposureInfo.fromObject(t.appExposureInfo)}if(t.extendedFields){if("object"!=typeof t.extendedFields)throw TypeError(".infoc.AppEvent.extendedFields: object expected");e.extendedFields={};for(var i=Object.keys(t.extendedFields),n=0;n<i.length;++n)e.extendedFields[i[n]]=String(t.extendedFields[i[n]])}if(null!=t.pageType&&(e.pageType=0|t.pageType),null!=t.snGenTime&&(A.Long?(e.snGenTime=A.Long.fromValue(t.snGenTime)).unsigned=!1:"string"==typeof t.snGenTime?e.snGenTime=parseInt(t.snGenTime,10):"number"==typeof t.snGenTime?e.snGenTime=t.snGenTime:"object"==typeof t.snGenTime&&(e.snGenTime=new A.LongBits(t.snGenTime.low>>>0,t.snGenTime.high>>>0).toNumber())),null!=t.uploadTime&&(A.Long?(e.uploadTime=A.Long.fromValue(t.uploadTime)).unsigned=!1:"string"==typeof t.uploadTime?e.uploadTime=parseInt(t.uploadTime,10):"number"==typeof t.uploadTime?e.uploadTime=t.uploadTime:"object"==typeof t.uploadTime&&(e.uploadTime=new A.LongBits(t.uploadTime.low>>>0,t.uploadTime.high>>>0).toNumber())),null!=t.appPlayerInfo){if("object"!=typeof t.appPlayerInfo)throw TypeError(".infoc.AppEvent.appPlayerInfo: object expected");e.appPlayerInfo=c.infoc.AppPlayerInfo.fromObject(t.appPlayerInfo)}return e},t.toObject=function(t,e){e||(e={});var i,n={};if((e.objects||e.defaults)&&(n.extendedFields={}),e.defaults){if(n.eventId="",n.appInfo=null,n.runtimeInfo=null,n.mid="",A.Long){var r=new A.Long(0,0,!1);n.ctime=e.longs===String?r.toString():e.longs===Number?r.toNumber():r}else n.ctime=e.longs===String?"0":0;n.logId="",n.retrySendCount=0,A.Long?(r=new A.Long(0,0,!1),n.sn=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.sn=e.longs===String?"0":0,n.eventCategory=e.enums===String?"OTHER":0,n.appPageViewInfo=null,n.appClickInfo=null,n.appExposureInfo=null,n.pageType=0,A.Long?(r=new A.Long(0,0,!1),n.snGenTime=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.snGenTime=e.longs===String?"0":0,A.Long?(r=new A.Long(0,0,!1),n.uploadTime=e.longs===String?r.toString():e.longs===Number?r.toNumber():r):n.uploadTime=e.longs===String?"0":0,n.appPlayerInfo=null}if(null!=t.eventId&&t.hasOwnProperty("eventId")&&(n.eventId=t.eventId),null!=t.appInfo&&t.hasOwnProperty("appInfo")&&(n.appInfo=c.infoc.AppInfo.toObject(t.appInfo,e)),null!=t.runtimeInfo&&t.hasOwnProperty("runtimeInfo")&&(n.runtimeInfo=c.infoc.AppRuntimeInfo.toObject(t.runtimeInfo,e)),null!=t.mid&&t.hasOwnProperty("mid")&&(n.mid=t.mid),null!=t.ctime&&t.hasOwnProperty("ctime")&&("number"==typeof t.ctime?n.ctime=e.longs===String?String(t.ctime):t.ctime:n.ctime=e.longs===String?A.Long.prototype.toString.call(t.ctime):e.longs===Number?new A.LongBits(t.ctime.low>>>0,t.ctime.high>>>0).toNumber():t.ctime),null!=t.logId&&t.hasOwnProperty("logId")&&(n.logId=t.logId),null!=t.retrySendCount&&t.hasOwnProperty("retrySendCount")&&(n.retrySendCount=t.retrySendCount),null!=t.sn&&t.hasOwnProperty("sn")&&("number"==typeof t.sn?n.sn=e.longs===String?String(t.sn):t.sn:n.sn=e.longs===String?A.Long.prototype.toString.call(t.sn):e.longs===Number?new A.LongBits(t.sn.low>>>0,t.sn.high>>>0).toNumber():t.sn),null!=t.eventCategory&&t.hasOwnProperty("eventCategory")&&(n.eventCategory=e.enums===String?c.infoc.EventCategory[t.eventCategory]:t.eventCategory),
null!=t.appPageViewInfo&&t.hasOwnProperty("appPageViewInfo")&&(n.appPageViewInfo=c.infoc.AppPageViewInfo.toObject(t.appPageViewInfo,e)),null!=t.appClickInfo&&t.hasOwnProperty("appClickInfo")&&(n.appClickInfo=c.infoc.AppClickInfo.toObject(t.appClickInfo,e)),null!=t.appExposureInfo&&t.hasOwnProperty("appExposureInfo")&&(n.appExposureInfo=c.infoc.AppExposureInfo.toObject(t.appExposureInfo,e)),t.extendedFields&&(i=Object.keys(t.extendedFields)).length){n.extendedFields={};for(var o=0;o<i.length;++o)n.extendedFields[i[o]]=t.extendedFields[i[o]]}return null!=t.pageType&&t.hasOwnProperty("pageType")&&(n.pageType=t.pageType),null!=t.snGenTime&&t.hasOwnProperty("snGenTime")&&("number"==typeof t.snGenTime?n.snGenTime=e.longs===String?String(t.snGenTime):t.snGenTime:n.snGenTime=e.longs===String?A.Long.prototype.toString.call(t.snGenTime):e.longs===Number?new A.LongBits(t.snGenTime.low>>>0,t.snGenTime.high>>>0).toNumber():t.snGenTime),null!=t.uploadTime&&t.hasOwnProperty("uploadTime")&&("number"==typeof t.uploadTime?n.uploadTime=e.longs===String?String(t.uploadTime):t.uploadTime:n.uploadTime=e.longs===String?A.Long.prototype.toString.call(t.uploadTime):e.longs===Number?new A.LongBits(t.uploadTime.low>>>0,t.uploadTime.high>>>0).toNumber():t.uploadTime),null!=t.appPlayerInfo&&t.hasOwnProperty("appPlayerInfo")&&(n.appPlayerInfo=c.infoc.AppPlayerInfo.toObject(t.appPlayerInfo,e)),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.AppPageViewInfo=function(){function t(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.eventIdFrom="",t.prototype.loadType=0,t.prototype.duration=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.pvstart=A.Long?A.Long.fromBits(0,0,!1):0,t.prototype.pvend=A.Long?A.Long.fromBits(0,0,!1):0,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=l.create()),null!=t.eventIdFrom&&t.hasOwnProperty("eventIdFrom")&&e.uint32(10).string(t.eventIdFrom),null!=t.loadType&&t.hasOwnProperty("loadType")&&e.uint32(32).int32(t.loadType),null!=t.duration&&t.hasOwnProperty("duration")&&e.uint32(40).int64(t.duration),null!=t.pvstart&&t.hasOwnProperty("pvstart")&&e.uint32(48).int64(t.pvstart),null!=t.pvend&&t.hasOwnProperty("pvend")&&e.uint32(56).int64(t.pvend),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new c.infoc.AppPageViewInfo;t.pos<i;){var r=t.uint32();switch(r>>>3){case 1:n.eventIdFrom=t.string();break;case 4:n.loadType=t.int32();break;case 5:n.duration=t.int64();break;case 6:n.pvstart=t.int64();break;case 7:n.pvend=t.int64();break;default:t.skipType(7&r)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null!=t.eventIdFrom&&t.hasOwnProperty("eventIdFrom")&&!A.isString(t.eventIdFrom)?"eventIdFrom: string expected":null!=t.loadType&&t.hasOwnProperty("loadType")&&!A.isInteger(t.loadType)?"loadType: integer expected":null!=t.duration&&t.hasOwnProperty("duration")&&!(A.isInteger(t.duration)||t.duration&&A.isInteger(t.duration.low)&&A.isInteger(t.duration.high))?"duration: integer|Long expected":null!=t.pvstart&&t.hasOwnProperty("pvstart")&&!(A.isInteger(t.pvstart)||t.pvstart&&A.isInteger(t.pvstart.low)&&A.isInteger(t.pvstart.high))?"pvstart: integer|Long expected":null!=t.pvend&&t.hasOwnProperty("pvend")&&!(A.isInteger(t.pvend)||t.pvend&&A.isInteger(t.pvend.low)&&A.isInteger(t.pvend.high))?"pvend: integer|Long expected":null},t.fromObject=function(t){if(t instanceof c.infoc.AppPageViewInfo)return t;var e=new c.infoc.AppPageViewInfo;return null!=t.eventIdFrom&&(e.eventIdFrom=String(t.eventIdFrom)),null!=t.loadType&&(e.loadType=0|t.loadType),null!=t.duration&&(A.Long?(e.duration=A.Long.fromValue(t.duration)).unsigned=!1:"string"==typeof t.duration?e.duration=parseInt(t.duration,10):"number"==typeof t.duration?e.duration=t.duration:"object"==typeof t.duration&&(e.duration=new A.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber())),null!=t.pvstart&&(A.Long?(e.pvstart=A.Long.fromValue(t.pvstart)).unsigned=!1:"string"==typeof t.pvstart?e.pvstart=parseInt(t.pvstart,10):"number"==typeof t.pvstart?e.pvstart=t.pvstart:"object"==typeof t.pvstart&&(e.pvstart=new A.LongBits(t.pvstart.low>>>0,t.pvstart.high>>>0).toNumber())),null!=t.pvend&&(A.Long?(e.pvend=A.Long.fromValue(t.pvend)).unsigned=!1:"string"==typeof t.pvend?e.pvend=parseInt(t.pvend,10):"number"==typeof t.pvend?e.pvend=t.pvend:"object"==typeof t.pvend&&(e.pvend=new A.LongBits(t.pvend.low>>>0,t.pvend.high>>>0).toNumber())),e},t.toObject=function(t,e){e||(e={});var i={};if(e.defaults){if(i.eventIdFrom="",i.loadType=0,A.Long){var n=new A.Long(0,0,!1);i.duration=e.longs===String?n.toString():e.longs===Number?n.toNumber():n}else i.duration=e.longs===String?"0":0;A.Long?(n=new A.Long(0,0,!1),i.pvstart=e.longs===String?n.toString():e.longs===Number?n.toNumber():n):i.pvstart=e.longs===String?"0":0,A.Long?(n=new A.Long(0,0,!1),i.pvend=e.longs===String?n.toString():e.longs===Number?n.toNumber():n):i.pvend=e.longs===String?"0":0}return null!=t.eventIdFrom&&t.hasOwnProperty("eventIdFrom")&&(i.eventIdFrom=t.eventIdFrom),null!=t.loadType&&t.hasOwnProperty("loadType")&&(i.loadType=t.loadType),null!=t.duration&&t.hasOwnProperty("duration")&&("number"==typeof t.duration?i.duration=e.longs===String?String(t.duration):t.duration:i.duration=e.longs===String?A.Long.prototype.toString.call(t.duration):e.longs===Number?new A.LongBits(t.duration.low>>>0,t.duration.high>>>0).toNumber():t.duration),null!=t.pvstart&&t.hasOwnProperty("pvstart")&&("number"==typeof t.pvstart?i.pvstart=e.longs===String?String(t.pvstart):t.pvstart:i.pvstart=e.longs===String?A.Long.prototype.toString.call(t.pvstart):e.longs===Number?new A.LongBits(t.pvstart.low>>>0,t.pvstart.high>>>0).toNumber():t.pvstart),null!=t.pvend&&t.hasOwnProperty("pvend")&&("number"==typeof t.pvend?i.pvend=e.longs===String?String(t.pvend):t.pvend:i.pvend=e.longs===String?A.Long.prototype.toString.call(t.pvend):e.longs===Number?new A.LongBits(t.pvend.low>>>0,t.pvend.high>>>0).toNumber():t.pvend),i},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.AppExposureInfo=function(){function t(t){if(this.contentInfos=[],t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.contentInfos=A.emptyArray,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=l.create()),null!=t.contentInfos&&t.contentInfos.length)for(var i=0;i<t.contentInfos.length;++i)c.infoc.AppExposureInfo.AppExposureContentInfo.encode(t.contentInfos[i],e.uint32(10).fork()).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new c.infoc.AppExposureInfo;t.pos<i;){var r=t.uint32();r>>>3==1?(n.contentInfos&&n.contentInfos.length||(n.contentInfos=[]),n.contentInfos.push(c.infoc.AppExposureInfo.AppExposureContentInfo.decode(t,t.uint32()))):t.skipType(7&r)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.contentInfos&&t.hasOwnProperty("contentInfos")){if(!Array.isArray(t.contentInfos))return"contentInfos: array expected";for(var e=0;e<t.contentInfos.length;++e){var i=c.infoc.AppExposureInfo.AppExposureContentInfo.verify(t.contentInfos[e]);if(i)return"contentInfos."+i}}return null},t.fromObject=function(t){if(t instanceof c.infoc.AppExposureInfo)return t;var e=new c.infoc.AppExposureInfo;if(t.contentInfos){if(!Array.isArray(t.contentInfos))throw TypeError(".infoc.AppExposureInfo.contentInfos: array expected");e.contentInfos=[];for(var i=0;i<t.contentInfos.length;++i){if("object"!=typeof t.contentInfos[i])throw TypeError(".infoc.AppExposureInfo.contentInfos: object expected");e.contentInfos[i]=c.infoc.AppExposureInfo.AppExposureContentInfo.fromObject(t.contentInfos[i])}}return e},
t.toObject=function(t,e){e||(e={});var i={};if((e.arrays||e.defaults)&&(i.contentInfos=[]),t.contentInfos&&t.contentInfos.length){i.contentInfos=[];for(var n=0;n<t.contentInfos.length;++n)i.contentInfos[n]=c.infoc.AppExposureInfo.AppExposureContentInfo.toObject(t.contentInfos[n],e)}return i},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t.AppExposureContentInfo=function(){function t(t){if(this.extendedFields={},t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.eventId="",t.prototype.extendedFields=A.emptyObject,t.create=function(e){return new t(e)},t.encode=function(t,e){if(e||(e=l.create()),null!=t.eventId&&t.hasOwnProperty("eventId")&&e.uint32(10).string(t.eventId),null!=t.extendedFields&&t.hasOwnProperty("extendedFields"))for(var i=Object.keys(t.extendedFields),n=0;n<i.length;++n)e.uint32(18).fork().uint32(10).string(i[n]).uint32(18).string(t.extendedFields[i[n]]).ldelim();return e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i,n=void 0===e?t.len:t.pos+e,r=new c.infoc.AppExposureInfo.AppExposureContentInfo;t.pos<n;){var o=t.uint32();switch(o>>>3){case 1:r.eventId=t.string();break;case 2:t.skip().pos++,r.extendedFields===A.emptyObject&&(r.extendedFields={}),i=t.string(),t.pos++,r.extendedFields[i]=t.string();break;default:t.skipType(7&o)}}return r},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.eventId&&t.hasOwnProperty("eventId")&&!A.isString(t.eventId))return"eventId: string expected";if(null!=t.extendedFields&&t.hasOwnProperty("extendedFields")){if(!A.isObject(t.extendedFields))return"extendedFields: object expected";for(var e=Object.keys(t.extendedFields),i=0;i<e.length;++i)if(!A.isString(t.extendedFields[e[i]]))return"extendedFields: string{k:string} expected"}return null},t.fromObject=function(t){if(t instanceof c.infoc.AppExposureInfo.AppExposureContentInfo)return t;var e=new c.infoc.AppExposureInfo.AppExposureContentInfo;if(null!=t.eventId&&(e.eventId=String(t.eventId)),t.extendedFields){if("object"!=typeof t.extendedFields)throw TypeError(".infoc.AppExposureInfo.AppExposureContentInfo.extendedFields: object expected");e.extendedFields={};for(var i=Object.keys(t.extendedFields),n=0;n<i.length;++n)e.extendedFields[i[n]]=String(t.extendedFields[i[n]])}return e},t.toObject=function(t,e){e||(e={});var i,n={};if((e.objects||e.defaults)&&(n.extendedFields={}),e.defaults&&(n.eventId=""),null!=t.eventId&&t.hasOwnProperty("eventId")&&(n.eventId=t.eventId),t.extendedFields&&(i=Object.keys(t.extendedFields)).length){n.extendedFields={};for(var r=0;r<i.length;++r)n.extendedFields[i[r]]=t.extendedFields[i[r]]}return n},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),t}(),o.AppClickInfo=function(){function t(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=l.create()),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new c.infoc.AppClickInfo;t.pos<i;){var r=t.uint32();t.skipType(7&r)}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){return"object"!=typeof t||null===t?"object expected":null},t.fromObject=function(t){return t instanceof c.infoc.AppClickInfo?t:new c.infoc.AppClickInfo},t.toObject=function(){return{}},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o.AppPlayerInfo=function(){function t(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return t.prototype.playFromSpmid="",t.prototype.seasonId="",t.prototype.type=0,t.prototype.subType=0,t.prototype.epId="",t.prototype.progress="",t.prototype.avid="",t.prototype.cid="",t.prototype.networkType=0,t.prototype.danmaku=0,t.prototype.status=0,t.prototype.playMethod=0,t.prototype.playType=0,t.prototype.playerSessionId="",t.prototype.speed="",t.prototype.playerClarity="",t.prototype.isAutoplay=0,t.prototype.videoFormat=0,t.create=function(e){return new t(e)},t.encode=function(t,e){return e||(e=l.create()),null!=t.playFromSpmid&&t.hasOwnProperty("playFromSpmid")&&e.uint32(10).string(t.playFromSpmid),null!=t.seasonId&&t.hasOwnProperty("seasonId")&&e.uint32(18).string(t.seasonId),null!=t.type&&t.hasOwnProperty("type")&&e.uint32(24).int32(t.type),null!=t.subType&&t.hasOwnProperty("subType")&&e.uint32(32).int32(t.subType),null!=t.epId&&t.hasOwnProperty("epId")&&e.uint32(42).string(t.epId),null!=t.progress&&t.hasOwnProperty("progress")&&e.uint32(50).string(t.progress),null!=t.avid&&t.hasOwnProperty("avid")&&e.uint32(58).string(t.avid),null!=t.cid&&t.hasOwnProperty("cid")&&e.uint32(66).string(t.cid),null!=t.networkType&&t.hasOwnProperty("networkType")&&e.uint32(72).int32(t.networkType),null!=t.danmaku&&t.hasOwnProperty("danmaku")&&e.uint32(80).int32(t.danmaku),null!=t.status&&t.hasOwnProperty("status")&&e.uint32(88).int32(t.status),null!=t.playMethod&&t.hasOwnProperty("playMethod")&&e.uint32(96).int32(t.playMethod),null!=t.playType&&t.hasOwnProperty("playType")&&e.uint32(104).int32(t.playType),null!=t.playerSessionId&&t.hasOwnProperty("playerSessionId")&&e.uint32(114).string(t.playerSessionId),null!=t.speed&&t.hasOwnProperty("speed")&&e.uint32(122).string(t.speed),null!=t.playerClarity&&t.hasOwnProperty("playerClarity")&&e.uint32(130).string(t.playerClarity),null!=t.isAutoplay&&t.hasOwnProperty("isAutoplay")&&e.uint32(136).int32(t.isAutoplay),null!=t.videoFormat&&t.hasOwnProperty("videoFormat")&&e.uint32(144).int32(t.videoFormat),e},t.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},t.decode=function(t,e){t instanceof s||(t=s.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new c.infoc.AppPlayerInfo;t.pos<i;){var r=t.uint32();switch(r>>>3){case 1:n.playFromSpmid=t.string();break;case 2:n.seasonId=t.string();break;case 3:n.type=t.int32();break;case 4:n.subType=t.int32();break;case 5:n.epId=t.string();break;case 6:n.progress=t.string();break;case 7:n.avid=t.string();break;case 8:n.cid=t.string();break;case 9:n.networkType=t.int32();break;case 10:n.danmaku=t.int32();break;case 11:n.status=t.int32();break;case 12:n.playMethod=t.int32();break;case 13:n.playType=t.int32();break;case 14:n.playerSessionId=t.string();break;case 15:n.speed=t.string();break;case 16:n.playerClarity=t.string();break;case 17:n.isAutoplay=t.int32();break;case 18:n.videoFormat=t.int32();break;default:t.skipType(7&r)}}return n},t.decodeDelimited=function(t){return t instanceof s||(t=new s(t)),this.decode(t,t.uint32())},t.verify=function(t){
return"object"!=typeof t||null===t?"object expected":null!=t.playFromSpmid&&t.hasOwnProperty("playFromSpmid")&&!A.isString(t.playFromSpmid)?"playFromSpmid: string expected":null!=t.seasonId&&t.hasOwnProperty("seasonId")&&!A.isString(t.seasonId)?"seasonId: string expected":null!=t.type&&t.hasOwnProperty("type")&&!A.isInteger(t.type)?"type: integer expected":null!=t.subType&&t.hasOwnProperty("subType")&&!A.isInteger(t.subType)?"subType: integer expected":null!=t.epId&&t.hasOwnProperty("epId")&&!A.isString(t.epId)?"epId: string expected":null!=t.progress&&t.hasOwnProperty("progress")&&!A.isString(t.progress)?"progress: string expected":null!=t.avid&&t.hasOwnProperty("avid")&&!A.isString(t.avid)?"avid: string expected":null!=t.cid&&t.hasOwnProperty("cid")&&!A.isString(t.cid)?"cid: string expected":null!=t.networkType&&t.hasOwnProperty("networkType")&&!A.isInteger(t.networkType)?"networkType: integer expected":null!=t.danmaku&&t.hasOwnProperty("danmaku")&&!A.isInteger(t.danmaku)?"danmaku: integer expected":null!=t.status&&t.hasOwnProperty("status")&&!A.isInteger(t.status)?"status: integer expected":null!=t.playMethod&&t.hasOwnProperty("playMethod")&&!A.isInteger(t.playMethod)?"playMethod: integer expected":null!=t.playType&&t.hasOwnProperty("playType")&&!A.isInteger(t.playType)?"playType: integer expected":null!=t.playerSessionId&&t.hasOwnProperty("playerSessionId")&&!A.isString(t.playerSessionId)?"playerSessionId: string expected":null!=t.speed&&t.hasOwnProperty("speed")&&!A.isString(t.speed)?"speed: string expected":null!=t.playerClarity&&t.hasOwnProperty("playerClarity")&&!A.isString(t.playerClarity)?"playerClarity: string expected":null!=t.isAutoplay&&t.hasOwnProperty("isAutoplay")&&!A.isInteger(t.isAutoplay)?"isAutoplay: integer expected":null!=t.videoFormat&&t.hasOwnProperty("videoFormat")&&!A.isInteger(t.videoFormat)?"videoFormat: integer expected":null},t.fromObject=function(t){if(t instanceof c.infoc.AppPlayerInfo)return t;var e=new c.infoc.AppPlayerInfo;return null!=t.playFromSpmid&&(e.playFromSpmid=String(t.playFromSpmid)),null!=t.seasonId&&(e.seasonId=String(t.seasonId)),null!=t.type&&(e.type=0|t.type),null!=t.subType&&(e.subType=0|t.subType),null!=t.epId&&(e.epId=String(t.epId)),null!=t.progress&&(e.progress=String(t.progress)),null!=t.avid&&(e.avid=String(t.avid)),null!=t.cid&&(e.cid=String(t.cid)),null!=t.networkType&&(e.networkType=0|t.networkType),null!=t.danmaku&&(e.danmaku=0|t.danmaku),null!=t.status&&(e.status=0|t.status),null!=t.playMethod&&(e.playMethod=0|t.playMethod),null!=t.playType&&(e.playType=0|t.playType),null!=t.playerSessionId&&(e.playerSessionId=String(t.playerSessionId)),null!=t.speed&&(e.speed=String(t.speed)),null!=t.playerClarity&&(e.playerClarity=String(t.playerClarity)),null!=t.isAutoplay&&(e.isAutoplay=0|t.isAutoplay),null!=t.videoFormat&&(e.videoFormat=0|t.videoFormat),e},t.toObject=function(t,e){e||(e={});var i={};return e.defaults&&(i.playFromSpmid="",i.seasonId="",i.type=0,i.subType=0,i.epId="",i.progress="",i.avid="",i.cid="",i.networkType=0,i.danmaku=0,i.status=0,i.playMethod=0,i.playType=0,i.playerSessionId="",i.speed="",i.playerClarity="",i.isAutoplay=0,i.videoFormat=0),null!=t.playFromSpmid&&t.hasOwnProperty("playFromSpmid")&&(i.playFromSpmid=t.playFromSpmid),null!=t.seasonId&&t.hasOwnProperty("seasonId")&&(i.seasonId=t.seasonId),null!=t.type&&t.hasOwnProperty("type")&&(i.type=t.type),null!=t.subType&&t.hasOwnProperty("subType")&&(i.subType=t.subType),null!=t.epId&&t.hasOwnProperty("epId")&&(i.epId=t.epId),null!=t.progress&&t.hasOwnProperty("progress")&&(i.progress=t.progress),null!=t.avid&&t.hasOwnProperty("avid")&&(i.avid=t.avid),null!=t.cid&&t.hasOwnProperty("cid")&&(i.cid=t.cid),null!=t.networkType&&t.hasOwnProperty("networkType")&&(i.networkType=t.networkType),null!=t.danmaku&&t.hasOwnProperty("danmaku")&&(i.danmaku=t.danmaku),null!=t.status&&t.hasOwnProperty("status")&&(i.status=t.status),null!=t.playMethod&&t.hasOwnProperty("playMethod")&&(i.playMethod=t.playMethod),null!=t.playType&&t.hasOwnProperty("playType")&&(i.playType=t.playType),null!=t.playerSessionId&&t.hasOwnProperty("playerSessionId")&&(i.playerSessionId=t.playerSessionId),null!=t.speed&&t.hasOwnProperty("speed")&&(i.speed=t.speed),null!=t.playerClarity&&t.hasOwnProperty("playerClarity")&&(i.playerClarity=t.playerClarity),null!=t.isAutoplay&&t.hasOwnProperty("isAutoplay")&&(i.isAutoplay=t.isAutoplay),null!=t.videoFormat&&t.hasOwnProperty("videoFormat")&&(i.videoFormat=t.videoFormat),i},t.prototype.toJSON=function(){return this.constructor.toObject(this,a.util.toJSONOptions)},t}(),o),t.exports=c},28759:function(t,e,i){"use strict";i.d(e,{Dy:function(){return h}});const n=t=>{let e="";for(const i in t)e+=`${i}=${t[i]}&`;return e.slice(0,-1)};var r=i(70811),o=Object.defineProperty,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,A=(t,e,i)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,c=(t,e,i)=>new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));const h=t=>c(void 0,null,(function*(){const e=yield((...t)=>c(void 0,[...t],(function*(t={r:"upos",profile:"",name:""}){var e;if(!t.name)throw new Error("need upload file name");const i=t.url||"https://member.bilibili.com/preupload",o=n(t),{data:a}=yield(0,r.Z)({url:`${i}?${o}`});return{uploadUrl:"https:"+a.endpoint+(null==(e=a.upos_uri)?void 0:e.replace("upos:/","")),auth:a.auth,bizId:a.biz_id,uposUri:a.upos_uri}})))(t.preload),{data:i}=yield(t=>{const e=`${t.uploadUrl}?uploads&output=json`,i={"X-Upos-Auth":t.auth};return(0,r.Z)({url:e,method:"POST",headers:i})})(e),o=((t,e)=>{for(var i in e||(e={}))s.call(e,i)&&A(t,i,e[i]);if(a)for(var i of a(e))l.call(e,i)&&A(t,i,e[i]);return t})({uploadId:i.upload_id},e);yield((t,e)=>{const i=e.length,n=`${t.uploadUrl}?partNumber=1&uploadId=${t.uploadId}&chunk=0&chunks=1&size=${i}&start=0&end=${i}&total=${i}`,o={"X-Upos-Auth":t.auth,"Content-Type":"application/octet-stream"};return(0,r.Z)({url:n,method:"PUT",headers:o,data:e})})(o,t.file);const h={uploadId:i.upload_id,profile:t.preload.profile,name:t.preload.name,preloadRes:e},{data:d}=yield(t=>{const e=`${t.preloadRes.uploadUrl}?output=json&name=${t.name}&profile=${t.profile}&uploadId=${t.uploadId}&biz_id=${t.preloadRes.bizId}`,i={"X-Upos-Auth":t.preloadRes.auth};return(0,r.Z)({url:e,method:"POST",headers:i})})(h);if(1===(null==d?void 0:d.OK))return(t=>{const e={mid:t.options.user.mid,buvid:t.options.user.buvid,app_key:t.options.appkey,url:t.preloadRes.uposUri};t.options.taskType&&(e.task_type=t.options.taskType);const i=n(e),o=`${t.options.laserUrl||"https://app.bilibili.com/x/resource/laser2"}?${i}`;return(0,r.Z)({url:o,method:"POST"})})({preloadRes:e,options:t})}));Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable},51102:function(t,e,i){"use strict";i.d(e,{X:function(){return r},o:function(){return n}});var n=(t=>(t.Chrome="Chrome",t.ChromiumEdge="Edge",t.LegacyEdge="LegacyEdge",t.Firefox="FireFox",t.Safari="Safari",t.QQ="QQ",t.Sogou="Sogou",t.Opera="Opera",t.Browser360="360",t.Other="Other",t))(n||{});const r=new class{constructor(t){this.ua=t,this.getBrowserVersionDetail().then((t=>{this.versionDetail=t}))}get apple(){return{alike:!!navigator.vendor&&/Apple/i.test(navigator.vendor)}}get linux(){return{alike:/Linux/i.test(this.ua)}}get tesla(){return{alike:/Tesla/i.test(this.ua)}}get iOS(){return{alike:/Mac OS X[\s_\-\/](\d+[.\-_]\d+[.\-_]?\d*)/i.test(this.ua)}}get android(){return{alike:/Android/i.test(this.ua)}}get windowsMobile(){return{alike:/Windows Phone/i.test(this.ua)}}get webkit(){return{alike:/AppleWebKit/i.test(this.ua)}}get gecko(){return{alike:/Gecko/i.test(this.ua)&&!/KHTML/i.test(this.ua)}}get trident(){return{alike:/Trident/i.test(this.ua)}}get msie(){return{alike:window.ActiveXObject||"ActiveXObject"in window,ie11:/rv:11/i.test(this.ua)}}get edge(){return{alike:/Edge/i.test(this.ua),build16299:/(\s|^)edge\/16.16299(\s|$)/i.test(this.ua)}}get safari(){return{
alike:/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(this.ua)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(this.ua),mseSupported:!0}}get firefox(){return{alike:/Firefox/i.test(this.ua)}}get chrome(){return{alike:/Chrome/i.test(this.ua)}}get qq(){return{alike:/QQBrowser/i.test(this.ua)}}get mobile(){return{alike:/AppleWebKit.*Mobile.*/i.test(this.ua)}}get iPhone(){return{alike:/iPhone/i.test(this.ua)}}get iPad(){return{alike:/iPad/i.test(this.ua)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1}}get microMessenger(){return{alike:/MicroMessenger/i.test(this.ua)}}get info(){const t=/(chrome)[ \/]([\w.]+)/.exec(this.ua)||{},e=t[5]||t[3]||t[1]||null;return{browser:e,version:e?parseInt(t[4]||t[2]||"0",10):0}}get cssVar(){if("boolean"==typeof this.supportCssVar)return this.supportCssVar;const{alike:t,ie11:e}=this.msie;if(t||e)return this.supportCssVar=!1,!1;const{browser:i,ver:n}=this.getBrowserInfo();switch(i){case"chrome":if(n<50)return this.supportCssVar=!1,!1;break;case"safari":if(n<9.5)return this.supportCssVar=!1,!1;break;case"firefox":if(n<32)return this.supportCssVar=!1,!1;break;case"opera":if(n<37)return this.supportCssVar=!1,!1;break;default:return this.supportCssVar=!1,!1}return this.supportCssVar=!0,!0}get vDetail(){return this.versionDetail}getBrowserInfo(){var t;const e=this.ua.match(/(msie|firefox|chrome|opera|version).*?([\d.]+)/);return{browser:null==(t=null==e?void 0:e[1])?void 0:t.replace(/version/,"safari"),ver:parseFloat(null==e?void 0:e[2])}}getBrowserVersionDetail(){return t=this,e=null,i=function*(){try{if(navigator.userAgentData&&"function"==typeof navigator.userAgentData.getHighEntropyValues){const t=["uaFullVersion","fullVersionList"],e=yield navigator.userAgentData.getHighEntropyValues(t);return{platform:e.platform,fullV:e.uaFullVersion}}}catch(t){return null}return null},new Promise(((n,r)=>{var o=t=>{try{s(i.next(t))}catch(t){r(t)}},a=t=>{try{s(i.throw(t))}catch(t){r(t)}},s=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,a);s((i=i.apply(t,e)).next())}));var t,e,i}isWebGL2Compatible(){const t=document.createElement("canvas");if(!t)return!1;return!!t.getContext("webgl2")}getCurrentBrowserAndOS(){const t=this.ua;let e="Other";/Windows NT/i.test(t)?e="Windows":/(Mac OS X|macOS)/i.test(t)?e=/iPhone|iPod/i.test(t)||/iPad/i.test(t)?"iOS":"MacOS":/Android/i.test(t)?e="Android":/Linux/i.test(t)&&(e="Linux");const i=this.getCurrentBrowserInfo();return{type:i.type,version:i.version.toString(),os:e}}getCurrentBrowserInfo(){const t=this.ua,e={type:"Other",version:0};try{const i=[{name:"Browser360",detect:()=>t.includes("360se")||t.includes("360ee"),type:"360",versionRegex:/chrome\/([\d.]+)/},{name:"QQ",detect:()=>t.includes("qqbrowser"),type:"QQ",versionRegex:/chrome\/([\d.]+)/},{name:"Sogou",detect:()=>t.includes("se 2.x")||t.includes("sogou"),type:"Sogou",versionRegex:/chrome\/([\d.]+)/},{name:"Opera",detect:()=>t.includes("opr/")||t.includes("opera"),type:"Opera",versionRegex:/(?:opr|opera)\/([\d.]+)/},{name:"ChromiumEdge",detect:()=>t.includes("edg/"),type:"Edge",versionRegex:/edg\/([\d.]+)/},{name:"LegacyEdge",detect:()=>t.includes("edge/"),type:"LegacyEdge",versionRegex:/edge\/([\d.]+)/},{name:"Firefox",detect:()=>t.includes("firefox"),type:"FireFox",versionRegex:/firefox\/([\d.]+)/},{name:"Safari",detect:()=>t.includes("safari")&&!t.includes("chrome"),type:"Safari",versionRegex:/version\/([\d.]+)/},{name:"Chrome",detect:()=>t.includes("chrome")&&t.includes("safari"),type:"Chrome",versionRegex:/chrome\/([\d.]+)/,postProcess:()=>this.detect360Browser()}];for(const n of i)if(n.detect()){let i=n.type;const r=this.extractVersion(t,n.versionRegex);if(n.postProcess){const t=n.postProcess();t&&(i=t)}e.type=i,e.version=parseInt(r,10)||0;break}}catch(t){e.type="Other",e.version=0}return e}extractVersion(t,e){const i=t.match(e);return i?i[1]:"0"}detect360Browser(){try{if(navigator.mimeTypes&&navigator.mimeTypes.length>0)for(let t=0;t<navigator.mimeTypes.length;t++){const e=navigator.mimeTypes[t];if(e&&"application/360softmgrplugin"===e.type)return"360"}}catch(t){}return null}get version(){const t=navigator.userAgent.toLowerCase(),e=/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.test(t),i=/(chrome)[ \/]([\w.]+)/.exec(t)||"",n={browser:i[5]||i[3]||i[1]||"",version:i[4]||i[2]||"0"};let r=0;n.browser&&(r=parseInt(n.version,10));const o=t.match(/cpu iphone os (.*?) like mac os/);return{browser:n.browser,version:r,iosVer:o?o[1]:"",linux:/Linux/i.test(t),tesla:/Tesla/i.test(t),webKit:/AppleWebKit/i.test(t),gecko:/Gecko/i.test(t)&&!/KHTML/i.test(t),trident:/Trident/i.test(t),presto:/Presto/i.test(t),mobile:/AppleWebKit.*Mobile.*/i.test(t),iOS:/Mac OS X[\s_\-\/](\d+[.\-_]\d+[.\-_]?\d*)/i.test(t),iPhone:/iPhone/i.test(t),iPad:/iPad/i.test(t)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,webApp:!/Safari/i.test(t),android:/Android/i.test(t),windowsPhone:/Windows Phone/i.test(t),microMessenger:/MicroMessenger/i.test(t),microWorkMessenger:/wxwork/i.test(t),wx:/MicroMessenger/i.test(t)&&!/wxwork/i.test(t),mqq:/MQQBrowser/i.test(t)||/MicroMessenger/i.test(t)||/MMWEBSDK/i.test(t)||/WeChat/i.test(t),vivo:/VivoBrowser/i.test(t),msie:/msie [\w.]+/i.test(t),edge:/edge/i.test(t),edgeBuild16299:/(\s|^)edge\/16.16299(\s|$)/i.test(t),safari:e,safariSupportMSE:!0}}}(navigator.userAgent.toLowerCase())},85727:function(t,e,i){"use strict";i.d(e,{x:function(){return n}});const n=new Map},60736:function(t,e,i){"use strict";i.d(e,{eF:function(){return r}});class n{constructor(){this.zone=this.atomicBufferZone}get atomicBufferZone(){return{paused:!0,currentTime:0,previousTimeStamp:0,currentTimeStamp:0}}get paused(){return this.zone.paused}getCurrentTime(){return this.tick(),this.zone.currentTime}getCurrentTimeStamp(){return window.performance&&performance.now?performance.now():Date.now()}tick(){if(this.zone.paused)return this.zone.currentTimeStamp=this.zone.previousTimeStamp=this.getCurrentTimeStamp(),!1;{const t=this.getCurrentTimeStamp();return t-this.zone.currentTimeStamp>0&&(this.zone.previousTimeStamp=this.zone.currentTimeStamp,this.zone.currentTimeStamp=t,this.zone.currentTimeStamp&&this.zone.previousTimeStamp&&(this.zone.currentTime+=this.zone.currentTimeStamp-this.zone.previousTimeStamp)),!0}}play(){return!!this.zone.paused&&(this.tick(),this.zone.paused=!1,!0)}pause(){return!this.zone.paused&&(this.tick(),this.zone.paused=!0,!0)}reset(t){return t&&(this.zone.paused||this.pause()),!!this.zone.paused&&(this.zone=this.atomicBufferZone,!0)}}class r extends n{constructor(t,e,i=100){if(super(),this.callback=t,this.duration=e,this.interval=i,this.timer=null,"number"!=typeof e||"number"!=typeof i)throw new Error("duration/interval MUST be a number");if(!(e>0&&i>0))throw new Error("duration/interval MUST be a positive number")}get currentTime(){return Math.min(Math.max(0,this.getCurrentTime()),this.duration)}set currentTime(t){this.zone.currentTime=Math.min(Math.max(0,t),this.duration)}startInterval(){super.play(),this.timer=window.setInterval((()=>{const t=this.getCurrentTime();this.paused||this.callback(this.duration,t),this.duration<=t&&this.abort()}),this.interval)}stopInterval(){super.reset(!0),window.clearInterval(this.timer),this.timer=null}suspend(){return!!this.timer&&(!this.paused&&(super.pause(),!0))}resume(){return this.timer?!!this.paused&&(super.play(),!0):(this.startInterval(),!0)}abort(){return!!this.timer&&(this.stopInterval(),!0)}}},60802:function(t,e,i){"use strict";function n(t){const e={};return"string"==typeof t&&t.split(";").forEach((t=>{const[i,n]=t.split(":");i&&(e[i]=n)})),e}function r(t){let e={};if(!t)return e;try{e=JSON.parse(t)}catch(t){}return e||{}}i.d(e,{$:function(){return n},j:function(){return r}})},13874:function(t,e,i){"use strict";function n(t){if(!t)return{};const[e,i]=t.split("?"),n={url:e};if(i){i.split("&").forEach((t=>{const[e,i]=t.split("=");try{n[e]=decodeURIComponent(i)}catch(t){}}))}return n}i.d(e,{g:function(){return n}})},14653:function(t,e,i){"use strict";i.d(e,{Iy:function(){return s},Z6:function(){return a},rS:function(){return o}})
;const n="perf"===(0,i(26929).eY)("debug"),r=Object.create(null);var o=(t=>(t.Index_Head="M01",t.Style_Tail="M02",t.Instantiate="M03",t.Connect_Head="M04",t.Store_Tail="M05",t.PlayUrl_Head="M06",t.PlayUrl_Tail="M07",t.Media_LoadStart="M08",t.Media_Metadata="M09",t.Media_FirstFrame="M10",t.Media_Canplay="M11",t.Connect_Tail="M12",t))(o||{}),a=(t=>(t.NavStart_To_IndexHead="P01:NS2IH",t.IndexHead_To_Instantiate="P02:IH2I",t.Instantiate_To_ConnectHead="P03:I2CH",t.ConnectHead_To_StoreTail="P04:CH2ST",t.ConnectHead_To_PlayUrlHead="P05:CH2PUH",t.ConnectHead_To_ConnectTail="P06:CH2CT",t.PlayUrlHead_To_PlayUrlTail="P07:PUH2PUT",t.PlayUrlTail_To_MediaLoadStart="P08:PUT2MLS",t.MediaLoadStart_To_MediaMetadata="P09:MLS2MM",t.MediaLoadStart_To_MediaFirstFrame="P10:MLS2MF",t.MediaLoadStart_To_MediaCanplay="P11:MLS2MC",t))(a||{});class s{static calcLoadTimes(){const t=[];if(!window.performance)return t;if("function"!=typeof performance.getEntriesByType)return t;const e=performance.getEntriesByType("resource");if(null==e||e.length<=0)return t;for(const i of e){const e=i.redirectEnd-i.redirectStart,n=i.domainLookupEnd-i.domainLookupStart,r=i.connectEnd-i.connectStart,o=i.secureConnectionStart>0?i.connectEnd-i.secureConnectionStart:0,a=i.responseEnd-i.responseStart,s=i.fetchStart>0?i.responseEnd-i.fetchStart:0,l=(i.requestStart>0&&(i.responseEnd,i.requestStart),i.startTime>0?i.responseEnd-i.startTime:0);t.push({name:i.name,duration:i.duration||l||s,requestStart:i.startTime||i.fetchStart,entryType:i.entryType,initiatorType:i.initiatorType,nextHopProtocol:i.nextHopProtocol,decodedBodySize:i.decodedBodySize,transferSize:i.transferSize,redirectTime:e,dnsTime:n,tcpTime:r,sslTime:o,responseTime:a})}return t}static filterLoadTime(t){const e=s.calcLoadTimes();if("string"==typeof t){for(const i of e)if(t===i.name)return i}else for(const i of e)if(t.test(i.name))return i;return null}static mark(t){window.performance&&"function"==typeof performance.mark&&performance.mark(t)}static clearMarks(t){window.performance&&"function"==typeof performance.clearMarks&&performance.clearMarks(t)}static measure(t,e,i){window.performance&&"function"==typeof performance.measure&&performance.measure(t,e,i)}static clearMeasure(t){window.performance&&"function"==typeof performance.clearMeasures&&performance.clearMeasures(t)}static markOnce(t){r[t]||(s.mark(t),r[t]=1)}static measureOnce(t,e,i){r[t]||(n&&s.measure(t,e,i),r[t]=1)}static getMarkTimeByName(t){if(window.performance&&"function"==typeof performance.getEntriesByName){const e=performance.getEntriesByName(t,"mark"),i=e&&e.length&&e[0];if(i&&i.startTime)return i.startTime}return 0}static startDetectLongTask(){try{const t={count:0,duration:0};if("PerformanceObserver"in window){const e=new PerformanceObserver((e=>{e.getEntries().forEach((e=>{t.count++,t.duration+=e.duration}))}));return e.observe({type:"longtask",buffered:!1}),{observer:e,clearDt:()=>{t.count=0,t.duration=0},finalDt:()=>t}}}catch(t){return console.warn(t),null}}}},43122:function(t,e,i){"use strict";i.d(e,{nJ:function(){return A}});var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;const l=[{value:0,name:"自动"},{value:15,name:"360P 流畅"},{value:16,name:"360P 流畅"},{value:32,name:"480P 清晰"},{value:48,name:"720P 高清"},{value:64,name:"720P 高清"},{value:74,name:"720P 高清"},{value:80,name:"1080P 高清"},{value:100,name:"智能修复",prime:!0},{value:112,name:"1080P 高码率",prime:!0},{value:116,name:"1080P 60帧",prime:!0},{value:120,name:"4K 超清",prime:!0},{value:122,name:"SDR增强",prime:!0},{value:125,name:"HDR 真彩",prime:!0},{value:126,name:"杜比视界",prime:!0},{value:127,name:"8K 超高清",prime:!0}].reduce(((t,e)=>(t[e.value]=e,t)),Object.create(null));class A{static get ge(){return{privilege:100}}static get gt(){return{login:32,mseSupported:64,bigWidth:80,whiteEmbedded:32,otherEmbedded:16,ugcLogin:16,abrMax:116,abrMin:64}}static get alias(){return{Auto:0,SD_32:32,HD_64:64,FHD_80:80,AI_100:100,FHD_112:112,FHD_116:116,UHD_4K:120,SDR_122:122,UHD_HDR:125,UHD_DVision:126,UHD_8K:127,AQ_30216:30216,AQ_30232:30232,AQ_30280:30280}}static isSuperQuality(t){const e=l[t];return e?!!e.prime:t>=A.ge.privilege}static item(t){const e=l[t];return e?((t,e)=>{for(var i in e||(e={}))o.call(e,i)&&s(t,i,e[i]);if(r)for(var i of r(e))a.call(e,i)&&s(t,i,e[i]);return t})({},e):{value:t,name:"默认",prime:A.isSuperQuality(t),placeholder:!0}}static isValidQuality(t){return void 0!==l[t]}static normalize(t){return{1:16,2:64,3:80,4:112,48:64}[t]||+t}static getHighestAvailableUnSuperQuality(t){return t.reduce(((t,e)=>!A.isSuperQuality(e)&&e>t?e:t),-1/0)}static getHighestAvailableSuperQuality(t){return t.find((t=>A.isSuperQuality(t)&&126!==t))}}},82889:function(t,e,i){"use strict";i.d(e,{M:function(){return c}});var n=function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)};Object.create;Object.create;function r(t){return t.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function s(t,e,i){return e instanceof RegExp?t.replace(e,i):e.reduce((function(t,e){return t.replace(e,i)}),t)}function l(t,e){return void 0===e&&(e={}),function(t,e){void 0===e&&(e={});for(var i=e.splitRegexp,n=void 0===i?o:i,l=e.stripRegexp,A=void 0===l?a:l,c=e.transform,h=void 0===c?r:c,d=e.delimiter,u=void 0===d?" ":d,p=s(s(t,n,"$1\0$2"),A,"\0"),g=0,f=p.length;"\0"===p.charAt(g);)g++;for(;"\0"===p.charAt(f-1);)f--;return p.slice(g,f).split("\0").map(h).join(u)}(t,n({delimiter:"."},e))}const A="__NANO_GLOBAL_THEME__";function c(t){if(!t)return!1;if(document[A])return!1;const e=[];if(Object.keys(t).filter((i=>{var r,o;"string"==typeof i&&/^bpx.+/i.test(i)&&"string"==typeof t[i]&&e.push([(r=i,void 0===o&&(o={}),l(r,n({delimiter:"-"},o))),t[i]])})),!e.length)return!1;const i=e.reduce(((t,e)=>t+`--${e[0]}: ${e[1]};`),""),r=document.createElement("style");return r.setAttribute("data-injector","nano"),r.setAttribute("data-function","theme"),r.textContent=`html { ${i} }`,document.head.appendChild(r),document[A]=!0,!0}},18417:function(t,e,i){"use strict";i.d(e,{Y:function(){return r},Q:function(){return o}});var n=i(51882);class r{static getQueryString(t){return t.split("?")[1]}static removeQueryString(t){const e=t.indexOf("?");return e>-1?t.slice(0,e):t}static appendQueryString(t,e){return e?`${t}?${e}`:t}static removeBfsParams(t){const e=t.indexOf("@");return e>-1?t.slice(0,e):t}static appendBfsParam(t,e,i){return t+=-1===t.indexOf("@")?"@":"_",t+=i+e}static hasBfsParams(t){return t.indexOf("@")>-1}static getUrlExt(t){return t.split(".").pop().toLowerCase()}static setUrlExt(t){const e=r.getUrlExt(r.removeBfsParams(t)),i="gif"!==e&&(0,n.x)()?"webp":e;return t+=r.hasBfsParams(t)?`.${i}`:`@.${i}`}static validateBfsUrl(t){return-1!==["jpg","jpeg","png","webp","gif"].indexOf(r.getUrlExt(t))&&-1!==t.indexOf("/bfs/")}static setSize(t,e,i){return isFinite(e)&&e>0&&(t=r.appendBfsParam(t,"w",Math.round(e))),isFinite(i)&&i>0&&(t=r.appendBfsParam(t,"h",Math.round(i))),t}static thumbnail(t,e,i){if(!(t=function(t){return"string"==typeof t?t.replace(/^https?:\/\//i,"//"):t}(t))||"string"!=typeof t)return t;const n=t,o=r.getQueryString(t),a=r.removeQueryString(t),s=r.removeBfsParams(a);if(!r.validateBfsUrl(s))return n;const l=r.setSize(s,e,i),A=r.setUrlExt(l);return r.appendQueryString(A,o)}}const o=r.thumbnail},41330:function(t,e,i){"use strict";i.d(e,{B:function(){return n}});class n{get isPending(){return 0===this.state}get isFulfilled(){return 1===this.state}get isRejected(){return 2===this.state}constructor(){this.state=0,this.promise=new Promise(((t,e)=>{this.resolve=e=>{t(e),this.state=1},this.reject=t=>{e(t),this.state=2}}))}}},92651:function(t,e,i){"use strict";function n(t,e){let i="";return["","-webkit-","-moz-","-ms-"].forEach((n=>{i+=`${n+t}:${e};`})),i}i.d(e,{g:function(){return n}})},99550:function(t,e,i){"use strict";function n(t){const e=(new DOMParser).parseFromString(t.trim(),"text/html")
;return document.adoptNode(e.body.firstChild)}i.d(e,{t:function(){return n}})},99149:function(t,e,i){"use strict";function n(t){const e=document.createDocumentFragment(),i=(new DOMParser).parseFromString(t,"text/html");for(;i.body.lastChild;)e.insertBefore(document.adoptNode(i.body.lastChild),e.firstChild||null);return e}i.d(e,{i:function(){return n}})},23529:function(t,e,i){"use strict";function n(...t){t.forEach((t=>{t&&(t.style.display="none")}))}i.d(e,{N:function(){return n}})},53731:function(t,e,i){"use strict";function n(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2f;")}i.d(e,{A:function(){return n}})},70417:function(t,e,i){"use strict";function n(t){t&&t.parentElement&&t.parentElement.removeChild(t)}i.d(e,{b:function(){return n}})},28483:function(t,e,i){"use strict";function n(t,...e){if(t&&e.length){!function(t){if(t)for(;t.lastChild;)t.removeChild(t.lastChild)}(t);for(const i of e)"string"==typeof i?t.appendChild(document.createTextNode(i)):t.appendChild(i)}}i.d(e,{h:function(){return n}})},46330:function(t,e,i){"use strict";function n(...t){t.forEach((t=>{t&&(t.style.display="")}))}i.d(e,{o:function(){return n}})},34201:function(t,e,i){"use strict";function n(t){return"#"+("00000"+t.toString(16)).slice(-6)}i.d(e,{X:function(){return n}})},89783:function(t,e,i){"use strict";function n(t,e){e=e||"yyyy-MM-dd hh:mm:ss";const i={"M+":(t=t||new Date).getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),"S+":t.getMilliseconds()};/(y+)/i.test(e)&&(e=e.replace(RegExp.$1,t.getFullYear().toString().substr(4-RegExp.$1.length)));for(const t in i)if(new RegExp(`(${t})`).test(e)){const n=1===RegExp.$1.length?i[t]:("00"+i[t]).substr(i[t].toString().length);e=e.replace(RegExp.$1,n)}return e}function r(t){const e=-(t=t||new Date).getTimezoneOffset(),i=e>=0?"+":"-",n=t=>(t<10?"0":"")+t;return t.getFullYear()+"-"+n(t.getMonth()+1)+"-"+n(t.getDate())+"T"+n(t.getHours())+":"+n(t.getMinutes())+":"+n(t.getSeconds())+i+n(Math.floor(Math.abs(e)/60))+":"+n(Math.abs(e)%60)}i.d(e,{p:function(){return n},r:function(){return r}})},31168:function(t,e,i){"use strict";function n(t=0,e=0){let i=Math.floor(t)|0,n=("0"+i%60).slice(-2);n=Math.floor(i%3600/60)+":"+n,n.length<5&&(n="0"+n);return!(!Math.floor(t/3600)&&!Math.floor(e/3600))&&(n=Math.floor(t/3600)+":"+n),n}i.d(e,{Z:function(){return n}})},62615:function(t,e,i){"use strict";function n(t){return t<0||null==t?"--":-1!==String(t).indexOf(".")||-1!==String(t).indexOf("-")?t+"":0===t?"0":t>=1e4&&t<1e8?(t/1e4).toFixed(1)+"万":t>=1e8?(t/1e8).toFixed(1)+"亿":t+""}i.d(e,{u:function(){return n}})},27097:function(t,e,i){"use strict";function n(t){return"#"===t[0]&&(t=t.slice(1)),3===t.length&&(t=`${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}`),16777215&parseInt(t,16)}i.d(e,{Z:function(){return n}})},62566:function(t,e,i){"use strict";function n(t){if(null==t)return 0;const e=t.toString().split(":").reverse();return e.length?(parseInt(e[0],10)||0)+60*(parseInt(e[1],10)||0)+3600*(parseInt(e[2],10)||0):0}function r(t){const e=/^(\d+h)?(\d+m|^s)?(\d+s)?(\d+ms)?$/.exec(t),i=function(t){return parseInt(t,10)||0};return e&&e[0]?60*i(e[1])*60+60*i(e[2])+i(e[3])+i(e[4])/1e3:parseFloat(t)>=0||-1===parseFloat(t)?parseFloat(t):0}i.d(e,{N:function(){return n},o:function(){return r}})},65814:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});const n="__NANO_UNIQUE_IDENTIFIER__";function r(){return("number"!=typeof document[n]||isNaN(document[n]))&&(document[n]=0),++document[n]}},54769:function(t,e,i){"use strict";i.d(e,{g:function(){return n}});const n=new class{constructor(){this.isDetected=!1,this.details={vendor:"",renderer:""}}get vendor(){return this.getDetails().vendor}get renderer(){return this.getDetails().renderer}getIsD3D11Render(){const t=this.getDetails().renderer;if(t){return/.*Direct3D11.*D3D11.*/.test(t)}return!1}isAccelerated(){const t=this.getDetails().renderer;if(!t)return!1;const e=[/swiftshader.*(?:subzero|device)/i,/mesa.*llvmpipe/i,/microsoft.*basic.*render/i,/software.*rasterizer/i,/cpu.*rasterizer/i],i=[/nvidia.*(?:geforce|quadro|tesla|rtx|gtx)/i,/amd.*(?:radeon|rx\s*\d+|vega|navi)/i,/intel.*(?:arc|xe)/i,/intel.*(?:graphics|iris|uhd)/i,/amd.*(?:graphics|apu)/i,/apple.*(?:m1|m2|gpu)/i,/angle.*(?:nvidia|amd|intel)/i,/vulkan.*(?:nvidia|amd|intel)/i,/direct3d\s*1[1-2].*(?:nvidia|amd|intel)/i,/metal.*(?:apple|amd|intel)/i,/opengl.*(?:nvidia|amd|intel)/i,/direct3d\s*1[1-2]/i,/vulkan\s*1\.[1-9]/i,/metal/i,/opengl\s*[4-9]\./i];for(const i of e)if(i.test(t))return!1;for(const e of i)if(e.test(t))return!0;return!/(swiftshader|llvmpipe|software|cpu.*render)/gi.test(t)}getDetails(){if(this.isDetected)return this.details;let t,e,i=document.createElement("canvas"),n="",r="";try{t=i.getContext("webgl2")||i.getContext("webgl")||i.getContext("experimental-webgl"),t&&(e=t.getExtension("WEBGL_debug_renderer_info"),e&&(n=t.getParameter(e.UNMASKED_VENDOR_WEBGL),r=t.getParameter(e.UNMASKED_RENDERER_WEBGL)))}catch(t){console.warn(t)}return this.details.vendor=n,this.details.renderer=r,this.isDetected=!0,{vendor:n,renderer:r}}}},36005:function(t,e,i){"use strict";i.d(e,{b:function(){return r}});var n=i(51102);function r(){return(window.AudioContext||window.webkitAudioContext)&&(window.OfflineAudioContext||window.webkitOfflineAudioContext)&&!n.X.firefox.alike&&!n.X.safari.alike}},37039:function(t,e,i){"use strict";i.d(e,{a:function(){return r}});var n=i(51102);function r(){return!(n.X.safari.alike&&!n.X.safari.mseSupported)&&(window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'))}},15962:function(t,e,i){"use strict";i.d(e,{M:function(){return r}});var n=i(85727);function r(){const t="[hasWebgl]";if(n.x.has(t))return n.x.get(t);let e;try{const t=document.createElement("canvas");e=!!(t.getContext("webgl2")||t.getContext("webgl")||t.getContext("experimental-webgl"))}catch(t){e=!1}return n.x.set(t,e),e}},51882:function(t,e,i){"use strict";i.d(e,{x:function(){return r}});var n=i(85727);function r(){const t="[hasWebp]";if(n.x.has(t))return n.x.get(t);let e=!1,i=document.createElement("canvas");if(i.getContext&&i.getContext("2d"))try{e=0===i.toDataURL("image/webp").indexOf("data:image/webp")}catch(t){e=!1}return n.x.set(t,e),e}},65723:function(t,e,i){"use strict";function n(t,...e){let i="";for(let n=0;n<e.length;n++)i+=t[n],e[n]&&(i+=e[n].replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;"));return i+=t[t.length-1],i}i.d(e,{t:function(){return n}})},8886:function(t,e,i){"use strict";function n(t,...e){let i="";for(let n=0;n<e.length;n++){let r=e[n],o="";if(null!=r)if("string"==typeof r)o=r;else if("[object Object]"===Object.prototype.toString.call(r))try{o=JSON.stringify(r)}catch(t){}else if("string"==typeof r.message)o=r.message;else try{o=r.toString()}catch(t){}i+=t[n],i+=o}return i+=t[t.length-1],i}i.d(e,{p:function(){return n}})},4727:function(t,e,i){"use strict";i.d(e,{F:function(){return r}});var n=Math.pow;function r(t,e=2){return isNaN(t)?t:Math.round(n(10,e)*t)/n(10,e)}},53229:function(t,e,i){"use strict";i.d(e,{$p:function(){return s},Jo:function(){return a},dX:function(){return o}});var n=i(22451),r=i(47450);function o(t,e){let i=null,o=null;return(0,n.EH)((()=>{if(i){const a=(0,r.zP)(t,i),s=(0,r.zP)(i,t),l=(0,r.jN)(t,i),A=[];for(const e of[...l.keys()]){const r=t.get(e),l=i.get(e),c=o.get(e);r===c?n.p6.structural(r,l)||A.push([r,l]):(s.set(e,c),a.set(e,r))}s.size&&"function"==typeof e.remove&&e.remove([...s.values()],t),a.size&&"function"==typeof e.add&&e.add([...a.values()],t),A.length&&"function"==typeof e.update&&e.update(A,t)}else t.size&&"function"==typeof e.add&&e.add([...t.values()],t);o=new Map(t),i=(0,n.ZN)(t)}))}function a(t){return Object.keys(t).forEach((e=>{"function"==typeof t[e]&&t[e]()})),Object.create(null)}function s(t,e){(0,n.z)((()=>{if(t&&e)for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==e[i]&&(t[i]=e[i])}))}},47450:function(t,e,i){"use strict"
;function n(t,e){return new Map([...t.entries()].filter((([t,i])=>e.has(t))))}function r(t,e){return new Map([...t.entries()].filter((([t,i])=>!e.has(t))))}i.d(e,{d9:function(){return o},jN:function(){return n},zP:function(){return r}});class o{constructor(t){this.flag=0,this.set(t)}get(){return this.flag}set(t){null!=t&&(this.flag=t)}enable(t){null!=t&&(this.flag|=t)}disable(t){null!=t&&(this.flag&=~t)}isAllow(t){return(this.flag&t)===t}isOnlyAllow(t){return this.flag===t}isNotAllow(t){return!(this.flag&t)}}},94780:function(t,e,i){"use strict";i.d(e,{$W:function(){return o},_g:function(){return r},x8:function(){return n}});const n={},r={entryRequestStart:0,entryResponseEnd:0},o=new Set},85077:function(t,e,i){"use strict";i.d(e,{m:function(){return A}});const n=6e4,r=10,o=2e3,a=[];function s(t,e){if(function(t){if(t){const e=Date.now()-t.timeStamp>o,i=t.periodCount<r;if(e&&i)return!0}return!1}(t)){if(t&&e){const i=Date.now(),r=i-t.periodTime>n;try{t.data=Object.assign(t.data,JSON.parse(e)),t.timeStamp=i}catch(t){}r?(t.periodTime=i,t.periodCount=0):t.periodCount+=1}}else console.warn("[StorageCache]","Trigger perf bottleneck")}function l(t){if(t)for(const e of a){const i=t.storageArea&&t.storageArea===e.storage,n=t.key&&t.key===e.storageKey;if(i&&n){s(e,t.newValue);break}}}function A(t,e){const i=function(t,e){for(const i of a)if(i&&i.storage===t&&i.storageKey===e)return i;return null}(t,e)||function(t,e){const i={},n={storage:t,storageKey:e,data:i,timeStamp:0,periodTime:0,periodCount:0};try{Object.assign(i,JSON.parse(t.getItem(e)))}catch(t){}return a.push(n),window.addEventListener("storage",l),n}(t,e);return i.data}},1291:function(t,e,i){"use strict";function n(t){try{return localStorage.getItem(t)}catch(t){return null}}function r(t,e){try{localStorage.setItem(t,e)}catch(t){}}function o(t){try{return sessionStorage.getItem(t)}catch(t){return null}}function a(t,e){try{sessionStorage.setItem(t,e)}catch(t){}}i.d(e,{Gg:function(){return o},KY:function(){return a},co:function(){return r},tv:function(){return n}})},34259:function(t,e,i){"use strict";i.d(e,{L:function(){return A},w:function(){return c}});var n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,e,i)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,l=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&s(t,i,e[i]);if(r)for(var i of r(e))a.call(e,i)&&s(t,i,e[i]);return t};function A(t){const e=l({text:"",mimeType:"text/plain;charset=utf-8",filename:"text.txt",timeout:5e3},t),i=Array.isArray(e.text)?e.text:[e.text],n=new Blob(i,{type:e.mimeType}),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=e.filename,r.target="_blank",r.click(),window.setTimeout((()=>{URL.revokeObjectURL(r.href)}),e.timeout)}function c(t,e=".json"){return new Promise(((i,n)=>{const r=document.createElement("input");r.type="file",r.setAttribute("accept",e),r.onchange=e=>{const o=new FileReader;o.readAsText(r.files[0]),o.onload=()=>{"function"==typeof t&&t(o),i(o)},o.onerror=n,o.onabort=n},r.click()}))}},26929:function(t,e,i){"use strict";function n(t,e){const i="string"==typeof e?function(t){const e=t.indexOf("?"),i=t.indexOf("#");return-1===e?"":-1===i?t.slice(e,t.length):t.slice(e,i)}(e):window.location.search,n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),r=i.substr(1).match(n);if(null!=r)try{return decodeURIComponent(r[2])}catch(t){return null}return null}function r(t,...e){const i=new URL(t);return e.forEach((t=>{const{key:e,value:n}=t;if(void 0===e||void 0===n)return i.href;i.searchParams.append(e,n)})),i.href}function o(t,e){return e.reduce(((t,e)=>function(t,e){return t.replace(new RegExp("[?&]"+e+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+e+"=[^&]*&"),"$1")}(t,e)),t)}i.d(e,{Kz:function(){return r},eY:function(){return n},qx:function(){return o}})},82517:function(t){self,t.exports=function(){var t={715:function(t,e){var i={parseBuffer:function(t){return new n(t).parse()},addBoxProcessor:function(t,e){"string"==typeof t&&"function"==typeof e&&(r.prototype._boxProcessors[t]=e)},createFile:function(){return new n},createBox:function(t,e,i){var n=r.create(t);return e&&e.append(n,i),n},createFullBox:function(t,e,n){var r=i.createBox(t,e,n);return r.version=0,r.flags=0,r},Utils:{}};i.Utils.dataViewToString=function(t,e){var i=e||"utf-8";if("undefined"!=typeof TextDecoder)return new TextDecoder(i).decode(t);var n=[],r=0;if("utf-8"===i)for(;r<t.byteLength;){var o=t.getUint8(r++);o<128||(o<224?(o=(31&o)<<6,o|=63&t.getUint8(r++)):o<240?(o=(15&o)<<12,o|=(63&t.getUint8(r++))<<6,o|=63&t.getUint8(r++)):(o=(7&o)<<18,o|=(63&t.getUint8(r++))<<12,o|=(63&t.getUint8(r++))<<6,o|=63&t.getUint8(r++))),n.push(String.fromCharCode(o))}else for(;r<t.byteLength;)n.push(String.fromCharCode(t.getUint8(r++)));return n.join("")},i.Utils.utf8ToByteArray=function(t){var e,i;if("undefined"!=typeof TextEncoder)e=(new TextEncoder).encode(t);else for(e=[],i=0;i<t.length;++i){var n=t.charCodeAt(i);n<128?e.push(n):n<2048?(e.push(192|n>>6),e.push(128|63&n)):n<65536?(e.push(224|n>>12),e.push(128|63&n>>6),e.push(128|63&n)):(e.push(240|n>>18),e.push(128|63&n>>12),e.push(128|63&n>>6),e.push(128|63&n))}return e},i.Utils.appendBox=function(t,e,i){if(e._offset=t._cursor.offset,e._root=t._root?t._root:t,e._raw=t._raw,e._parent=t,-1!==i)if(null!=i){var n,r=-1;if("number"==typeof i)r=i;else{if("string"==typeof i)n=i;else{if("object"!=typeof i||!i.type)return void t.boxes.push(e);n=i.type}for(var o=0;o<t.boxes.length;o++)if(n===t.boxes[o].type){r=o+1;break}}t.boxes.splice(r,0,e)}else t.boxes.push(e)},e.parseBuffer=i.parseBuffer,e.addBoxProcessor=i.addBoxProcessor,e.createFile=i.createFile,e.createBox=i.createBox,e.createFullBox=i.createFullBox,e.Utils=i.Utils,i.Cursor=function(t){this.offset=void 0===t?0:t};var n=function(t){this._cursor=new i.Cursor,this.boxes=[],t&&(this._raw=new DataView(t))};n.prototype.fetch=function(t){var e=this.fetchAll(t,!0);return e.length?e[0]:null},n.prototype.fetchAll=function(t,e){var i=[];return n._sweep.call(this,t,i,e),i},n.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset<this._raw.byteLength;){var t=r.parse(this);if(void 0===t.type)break;this.boxes.push(t)}return this},n._sweep=function(t,e,i){for(var r in this.type&&this.type==t&&e.push(this),this.boxes){if(e.length&&i)return;n._sweep.call(this.boxes[r],t,e,i)}},n.prototype.write=function(){var t,e=0;for(t=0;t<this.boxes.length;t++)e+=this.boxes[t].getLength(!1);var i=new Uint8Array(e);for(this._rawo=new DataView(i.buffer),this.bytes=i,this._cursor.offset=0,t=0;t<this.boxes.length;t++)this.boxes[t].write();return i.buffer},n.prototype.append=function(t,e){i.Utils.appendBox(this,t,e)};var r=function(){this._cursor=new i.Cursor};r.parse=function(t){var e=new r;return e._offset=t._cursor.offset,e._root=t._root?t._root:t,e._raw=t._raw,e._parent=t,e._parseBox(),t._cursor.offset=e._raw.byteOffset+e._raw.byteLength,e},r.create=function(t){var e=new r;return e.type=t,e.boxes=[],e},r.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],r.prototype._boxProcessors={},r.prototype._procField=function(t,e,i){this._parsing?this[t]=this._readField(e,i):this._writeField(e,i,this[t])},r.prototype._procFieldArray=function(t,e,i,n){var r;if(this._parsing)for(this[t]=[],r=0;r<e;r++)this[t][r]=this._readField(i,n);else for(r=0;r<this[t].length;r++)this._writeField(i,n,this[t][r])},r.prototype._procFullBox=function(){this._procField("version","uint",8),this._procField("flags","uint",24)},r.prototype._procEntries=function(t,e,i){var n;if(this._parsing)for(this[t]=[],n=0;n<e;n++)this[t].push({}),i.call(this,this[t][n]);else for(n=0;n<e;n++)i.call(this,this[t][n])},r.prototype._procSubEntries=function(t,e,i,n){var r;if(this._parsing)for(t[e]=[],r=0;r<i;r++)t[e].push({}),n.call(this,t[e][r]);else for(r=0;r<i;r++)n.call(this,t[e][r])},r.prototype._procEntryField=function(t,e,i,n){this._parsing?t[e]=this._readField(i,n):this._writeField(i,n,t[e])},r.prototype._procSubBoxes=function(t,e){var i
;if(this._parsing)for(this[t]=[],i=0;i<e;i++)this[t].push(r.parse(this));else for(i=0;i<e;i++)this._rawo?this[t][i].write():this.size+=this[t][i].getLength()},r.prototype._readField=function(t,e){switch(t){case"uint":return this._readUint(e);case"int":return this._readInt(e);case"template":return this._readTemplate(e);case"string":return-1===e?this._readTerminatedString():this._readString(e);case"data":return this._readData(e);case"utf8":return this._readUTF8String();default:return-1}},r.prototype._readInt=function(t){var e=null,i=this._cursor.offset-this._raw.byteOffset;switch(t){case 8:e=this._raw.getInt8(i);break;case 16:e=this._raw.getInt16(i);break;case 32:e=this._raw.getInt32(i);break;case 64:var n=this._raw.getInt32(i),r=this._raw.getInt32(i+4);e=n*Math.pow(2,32)+r}return this._cursor.offset+=t>>3,e},r.prototype._readUint=function(t){var e,i,n=null,r=this._cursor.offset-this._raw.byteOffset;switch(t){case 8:n=this._raw.getUint8(r);break;case 16:n=this._raw.getUint16(r);break;case 24:n=((e=this._raw.getUint16(r))<<8)+(i=this._raw.getUint8(r+2));break;case 32:n=this._raw.getUint32(r);break;case 64:e=this._raw.getUint32(r),i=this._raw.getUint32(r+4),n=e*Math.pow(2,32)+i}return this._cursor.offset+=t>>3,n},r.prototype._readString=function(t){for(var e="",i=0;i<t;i++){var n=this._readUint(8);e+=String.fromCharCode(n)}return e},r.prototype._readTemplate=function(t){return this._readUint(t/2)+this._readUint(t/2)/Math.pow(2,t/2)},r.prototype._readTerminatedString=function(){for(var t="";this._cursor.offset-this._offset<this._raw.byteLength;){var e=this._readUint(8);if(0===e)break;t+=String.fromCharCode(e)}return t},r.prototype._readData=function(t){var e=t>0?t:this._raw.byteLength-(this._cursor.offset-this._offset);if(e>0){var i=new Uint8Array(this._raw.buffer,this._cursor.offset,e);return this._cursor.offset+=e,i}return null},r.prototype._readUTF8String=function(){var t=this._raw.byteLength-(this._cursor.offset-this._offset),e=null;return t>0&&(e=new DataView(this._raw.buffer,this._cursor.offset,t),this._cursor.offset+=t),e?i.Utils.dataViewToString(e):e},r.prototype._parseBox=function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)this._root._incomplete=!0;else{switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type)?this._parseContainerBox():this._data=this._readData())}},r.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},r.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset<this._raw.byteLength;)this.boxes.push(r.parse(this))},r.prototype.append=function(t,e){i.Utils.appendBox(this,t,e)},r.prototype.getLength=function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var t=0;t<this.boxes.length;t++)this.size+=this.boxes[t].getLength();return this._data&&this._writeData(this._data),this.size},r.prototype.write=function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);break;case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);break;default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),-1!==this._boxContainers.indexOf(this.type))for(var t=0;t<this.boxes.length;t++)this.boxes[t].write();return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},r.prototype._writeInt=function(t,e){if(this._rawo){var i=this._cursor.offset-this._rawo.byteOffset;switch(t){case 8:this._rawo.setInt8(i,e);break;case 16:this._rawo.setInt16(i,e);break;case 32:this._rawo.setInt32(i,e);break;case 64:var n=Math.floor(e/Math.pow(2,32)),r=e-n*Math.pow(2,32);this._rawo.setUint32(i,n),this._rawo.setUint32(i+4,r)}this._cursor.offset+=t>>3}else this.size+=t>>3},r.prototype._writeUint=function(t,e){if(this._rawo){var i,n,r=this._cursor.offset-this._rawo.byteOffset;switch(t){case 8:this._rawo.setUint8(r,e);break;case 16:this._rawo.setUint16(r,e);break;case 24:i=(16776960&e)>>8,n=255&e,this._rawo.setUint16(r,i),this._rawo.setUint8(r+2,n);break;case 32:this._rawo.setUint32(r,e);break;case 64:n=e-(i=Math.floor(e/Math.pow(2,32)))*Math.pow(2,32),this._rawo.setUint32(r,i),this._rawo.setUint32(r+4,n)}this._cursor.offset+=t>>3}else this.size+=t>>3},r.prototype._writeString=function(t,e){for(var i=0;i<t;i++)this._writeUint(8,e.charCodeAt(i))},r.prototype._writeTerminatedString=function(t){if(0!==t.length){for(var e=0;e<t.length;e++)this._writeUint(8,t.charCodeAt(e));this._writeUint(8,0)}},r.prototype._writeTemplate=function(t,e){var i=Math.floor(e),n=(e-i)*Math.pow(2,t/2);this._writeUint(t/2,i),this._writeUint(t/2,n)},r.prototype._writeData=function(t){if(t)if(this._rawo){if(t instanceof Array){for(var e=this._cursor.offset-this._rawo.byteOffset,i=0;i<t.length;i++)this._rawo.setInt8(e+i,t[i]);this._cursor.offset+=t.length}t instanceof Uint8Array&&(this._root.bytes.set(t,this._cursor.offset),this._cursor.offset+=t.length)}else this.size+=t.length},r.prototype._writeUTF8String=function(t){var e=i.Utils.utf8ToByteArray(t);if(this._rawo)for(var n=new DataView(this._rawo.buffer,this._cursor.offset,e.length),r=0;r<e.length;r++)n.setUint8(r,e[r]);else this.size+=e.length},r.prototype._writeField=function(t,e,i){switch(t){case"uint":this._writeUint(e,i);break;case"int":this._writeInt(e,i);break;case"template":this._writeTemplate(e,i);break;case"string":-1==e?this._writeTerminatedString(i):this._writeString(e,i);break;case"data":this._writeData(i);break;case"utf8":this._writeUTF8String(i)}},r.prototype._boxProcessors.avc1=r.prototype._boxProcessors.avc2=r.prototype._boxProcessors.avc3=r.prototype._boxProcessors.avc4=r.prototype._boxProcessors.hvc1=r.prototype._boxProcessors.hev1=r.prototype._boxProcessors.encv=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},r.prototype._boxProcessors.dref=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},r.prototype._boxProcessors.elst=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){
this._procEntryField(t,"segment_duration","uint",1===this.version?64:32),this._procEntryField(t,"media_time","int",1===this.version?64:32),this._procEntryField(t,"media_rate_integer","int",16),this._procEntryField(t,"media_rate_fraction","int",16)}))},r.prototype._boxProcessors.emsg=function(){this._procFullBox(),1==this.version?(this._procField("timescale","uint",32),this._procField("presentation_time","uint",64),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1)):(this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32)),this._procField("message_data","data",-1)},r.prototype._boxProcessors.free=r.prototype._boxProcessors.skip=function(){this._procField("data","data",-1)},r.prototype._boxProcessors.frma=function(){this._procField("data_format","uint",32)},r.prototype._boxProcessors.ftyp=r.prototype._boxProcessors.styp=function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);var t=-1;this._parsing&&(t=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",t,"string",4)},r.prototype._boxProcessors.hdlr=function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},r.prototype._boxProcessors.mdat=function(){this._procField("data","data",-1)},r.prototype._boxProcessors.mdhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode(96+(this.language>>10&31),96+(this.language>>5&31),96+(31&this.language))),this._procField("pre_defined","uint",16)},r.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},r.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField("sequence_number","uint",32)},r.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField("mfra_size","uint",32)},r.prototype._boxProcessors.mp4a=r.prototype._boxProcessors.enca=function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},r.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},r.prototype._boxProcessors.payl=function(){this._procField("cue_text","utf8")},r.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},r.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},r.prototype._boxProcessors.sdtp=function(){this._procFullBox();var t=-1;this._parsing&&(t=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",t,"uint",8)},r.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,(function(t){this._parsing||(t.reference=(1&t.reference_type)<<31,t.reference|=2147483647&t.referenced_size,t.sap=(1&t.starts_with_SAP)<<31,t.sap|=(3&t.SAP_type)<<28,t.sap|=268435455&t.SAP_delta_time),this._procEntryField(t,"reference","uint",32),this._procEntryField(t,"subsegment_duration","uint",32),this._procEntryField(t,"sap","uint",32),this._parsing&&(t.reference_type=t.reference>>31&1,t.referenced_size=2147483647&t.reference,t.starts_with_SAP=t.sap>>31&1,t.SAP_type=t.sap>>28&7,t.SAP_delta_time=268435455&t.sap)}))},r.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},r.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,(function(t){this._procEntryField(t,"ranges_count","uint",32),this._procSubEntries(t,"ranges",t.ranges_count,(function(t){this._procEntryField(t,"level","uint",8),this._procEntryField(t,"range_size","uint",24)}))}))},r.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},r.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,(function(t){this._procEntryField(t,"sample_delta","uint",32),this._procEntryField(t,"subsample_count","uint",16),this._procSubEntries(t,"subsamples",t.subsample_count,(function(t){this._procEntryField(t,"subsample_size","uint",1===this.version?32:16),this._procEntryField(t,"subsample_priority","uint",8),this._procEntryField(t,"discardable","uint",8),this._procEntryField(t,"codec_specific_parameters","uint",32)}))}))},r.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},r.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},r.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},r.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,(function(t){this._procEntryField(t,"time","uint",1===this.version?64:32),this._procEntryField(t,"moof_offset","uint",1===this.version?64:32),this._procEntryField(t,"traf_number","uint",8*(this.length_size_of_traf_num+1)),
this._procEntryField(t,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(t,"sample_number","uint",8*(this.length_size_of_sample_num+1))}))},r.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},r.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},r.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,(function(t){256&this.flags&&this._procEntryField(t,"sample_duration","uint",32),512&this.flags&&this._procEntryField(t,"sample_size","uint",32),1024&this.flags&&this._procEntryField(t,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(t,"sample_composition_time_offset",1===this.version?"int":"uint",32)}))},r.prototype._boxProcessors["url "]=r.prototype._boxProcessors["urn "]=function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},r.prototype._boxProcessors.vlab=function(){this._procField("source_label","utf8")},r.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},r.prototype._boxProcessors.vttC=function(){this._procField("config","utf8")},r.prototype._boxProcessors.vtte=function(){}},601:function(t,e,i){"use strict";var n=i(81),r=i.n(n),o=i(645),a=i.n(o)()(r());a.push([t.id,".-bwp-internal-container {\n    width: 100%;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n    position: relative;\n    min-width: inherit;\n    max-width: inherit;\n    min-height: inherit;\n    max-height: inherit;\n    object-fit: inherit;\n}\n\n.-bwp-internal-render-canvas {\n    width: 100%;\n    height: 100%;\n    display: block;\n    position: relative;\n    object-fit: inherit;\n}\n\n.-bwp-internal-proxy-video-element {\n    left: 0;\n    top: 0;\n    width: 100%;\n    height: 100%;\n    display: none;\n    position: absolute;\n    margin: inherit;\n    padding: inherit;\n    object-fit: inherit;\n}\n",""]),e.Z=a},645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i="",n=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),n&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),n&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i})).join("")},e.i=function(t,i,n,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var A=0;A<t.length;A++){var c=[].concat(t[A]);n&&a[c[0]]||(void 0!==o&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=o),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),e.push(c))}},e}},81:function(t){"use strict";t.exports=function(t){return t[1]}},477:function(t){"use strict";t.exports=function(t,e,i,n){var r=self||window;try{try{var o;try{o=new r.Blob([t])}catch(e){(o=new(r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder)).append(t),o=o.getBlob()}var a=r.URL||r.webkitURL,s=a.createObjectURL(o),l=new r[e](s,i);return a.revokeObjectURL(s),l}catch(n){return new r[e]("data:application/javascript,".concat(encodeURIComponent(t)),i)}}catch(t){if(!n)throw Error("Inline worker is not supported");return new r[e](n,i)}}},61:function(t,e,i){var n=i(698).default;function r(){"use strict";t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},i=Object.prototype,o=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",A=a.toStringTag||"@@toStringTag";function c(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,i){return t[e]=i}}function h(t,e,i,n){var r,o,a,s,l=e&&e.prototype instanceof p?e:p,A=Object.create(l.prototype),c=new x(n||[]);return A._invoke=(r=t,o=i,a=c,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return S()}for(a.method=t,a.arg=e;;){var i=a.delegate;if(i){var n=C(i,a);if(n){if(n===u)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";var l=d(r,o,a);if("normal"===l.type){if(s=a.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(s="completed",a.method="throw",a.arg=l.arg)}}),A}function d(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var u={};function p(){}function g(){}function f(){}var m={};c(m,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(Q([])));b&&b!==i&&o.call(b,s)&&(m=b);var v=f.prototype=p.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function i(r,a,s,l){var A=d(t[r],t,a);if("throw"!==A.type){var c=A.arg,h=c.value;return h&&"object"==n(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return i("throw",t,s,l)}))}l(A.arg)}var r;this._invoke=function(t,n){function o(){return new e((function(e,r){i(t,n,e,r)}))}return r=r?r.then(o,o):o()}}function C(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=d(i,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,u;var r=n.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function B(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(B,this),this.reset(!0)}function Q(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i<t.length;)if(o.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:S}}function S(){return{value:void 0,done:!0}}return g.prototype=f,c(v,"constructor",f),c(f,"constructor",g),g.displayName=c(f,A,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,
c(t,A,"GeneratorFunction")),t.prototype=Object.create(v),t},e.awrap=function(t){return{__await:t}},E(I.prototype),c(I.prototype,l,(function(){return this})),e.AsyncIterator=I,e.async=function(t,i,n,r,o){void 0===o&&(o=Promise);var a=new I(h(t,i,n,r),o);return e.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(v),c(v,A,"Generator"),c(v,s,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},e.values=Q,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,n){return a.type="throw",a.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),w(i),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;w(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:Q(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),u}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},698:function(t){function e(i){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},687:function(t,e,i){var n=i(61)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={id:n,exports:{}};return t[n](o,o.exports,i),o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var n={};return function(){"use strict";i.d(n,{default:function(){return Xn}});var t,e,r,o,a,s,l,A,c=!1,h="4.3.18",d="https://s1.hdslb.com/bfs/static/bwphevc/libwpengn-4.3.18.wasm",u="https://s1.hdslb.com/bfs/static/bwphevc/libwpengn-simd-4.3.18.wasm";function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,i){return e&&m(t.prototype,e),i&&m(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function E(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function B(t,e,i){if(!e.has(t))throw new TypeError("attempted to "+i+" private field on non-instance");return e.get(t)}function w(t,e){return i=t,(n=B(t,e,"get")).get?n.get.call(i):n.value;var i,n}function x(t,e,i){return function(t,e,i){if(e.set)e.set.call(t,i);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=i}}(t,B(t,e,"set"),i),i}(A=t||(t={})).CLOSED="closed",A.OPEN="open",A.ENDED="ended",function(t){t.NETWORK="network",t.DECODE="decode"}(e||(e={})),function(t){t[t.NETWORK_EMPTY=0]="NETWORK_EMPTY",t[t.NETWORK_IDLE=1]="NETWORK_IDLE",t[t.NETWORK_LOADING=2]="NETWORK_LOADING",t[t.NETWORK_NO_SOURCE=3]="NETWORK_NO_SOURCE"}(r||(r={})),function(t){t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(o||(o={})),function(t){t[t.MEDIA_ERR_ABORTED=1]="MEDIA_ERR_ABORTED",t[t.MEDIA_ERR_NETWORK=2]="MEDIA_ERR_NETWORK",t[t.MEDIA_ERR_DECODE=3]="MEDIA_ERR_DECODE",t[t.MEDIA_ERR_SRC_NOT_SUPPORTED=4]="MEDIA_ERR_SRC_NOT_SUPPORTED"}(a||(a={})),function(t){t.SEGMENTS="segments",t.SEQUENCE="sequence"}(s||(s={})),function(t){t.AUDIO="audio",t.VIDEO="video",t.MIX="mix"}(l||(l={}));var Q=y((function t(){f(this,t)})),S=window.EventTarget||Q;function k(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var D=function(t){v(i,t);var e=k(i);function i(){var t;return f(this,i),C(b(t=e.call(this)),"onaddsourcebuffer",void 0),C(b(t),"onremovesourcebuffer",void 0),C(b(t),"sourceBuffers",void 0),t.sourceBuffers=[],E(t,new Proxy(b(t),{get:function(t,e,i){return Number.isNaN(Number(e))?"function"==typeof t[e]?t[e].bind(t):Reflect.get(t,e,i):t.sourceBuffers[e]}}))}return y(i,[{key:"length",get:function(){return this.sourceBuffers.length}},{key:"insert",value:function(t,e){this.sourceBuffers.splice(e,0,t)}},{key:"remove",value:function(t){this.sourceBuffers.splice(t,1)}},{key:"push",value:function(t){this.sourceBuffers.push(t)}},{key:"pop",value:function(){return this.sourceBuffers.pop()}},{key:"indexOf",value:function(t){return this.sourceBuffers.indexOf(t)}}]),i}(S)
;function _(t,e,i,n,r,o,a){try{var s=t[o](a),l=s.value}catch(t){return void i(t)}s.done?e(l):Promise.resolve(l).then(n,r)}function R(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var o=t.apply(e,i);function a(t){_(o,n,r,a,s,"next",t)}function s(t){_(o,n,r,a,s,"throw",t)}a(void 0)}))}}var M=i(687),T=i.n(M);function F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function L(t,e,i){return(L=F()?Reflect.construct.bind():function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&g(r,i.prototype),r}).apply(null,arguments)}function N(t){var e="function"==typeof Map?new Map:void 0;return N=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return L(t,arguments,I(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,t)},N(t)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var U=function(t){v(i,t);var e=P(i);function i(t,n){var r;return f(this,i),(r=e.call(this,t)).name=n,r.message=t,r.stack=(new Error).stack,r}return y(i)}(N(Error)),O=function(t){v(i,t);var e=P(i);function i(){return f(this,i),e.call(this,"The operation is not supported.","NotSupportedError")}return y(i)}(U),G=function(t){v(i,t);var e=P(i);function i(){return f(this,i),e.call(this,"The object is in an invalid state.","InvalidStateError")}return y(i)}(U),H=function(t){v(i,t);var e=P(i);function i(){return f(this,i),e.call(this,"The index is not in the allowed range.","IndexSizeError")}return y(i)}(U);function V(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}var Y=new WeakMap,z=new WeakMap,W=new WeakMap,Z=function(){function t(){var e=this;f(this,t),V(this,Y,{writable:!0,value:void 0}),V(this,z,{writable:!0,value:function(t,i){var n=w(e,Y)[t],r=w(e,Y)[i];return n.start<=r.start&&r.start<=n.end&&n.end<=r.end?(n.end=r.end,w(e,Y).splice(i,1),!0):r.start<=n.start&&n.start<=r.end&&r.end<=n.end?(n.start=r.start,w(e,Y).splice(i,1),!0):r.start<=n.start&&n.start<=r.end&&n.end<=r.end?(w(e,Y).splice(t,1),!0):n.start<=r.start&&r.start<=n.end&&r.end<=n.end&&(w(e,Y).splice(i,1),!0)}}),V(this,W,{writable:!0,value:function(t){if(null===t||Number.isNaN(t)||t%1!=0)throw new Error("index argument is not an integer");if(t>=w(e,Y).length||t<0)throw new H}}),x(this,Y,[])}return y(t,[{key:"length",get:function(){return w(this,Y).length}},{key:"get",value:function(t){return w(this,W).call(this,t),w(this,Y)[t]}},{key:"start",value:function(t){return w(this,W).call(this,t),w(this,Y)[t].start}},{key:"end",value:function(t){return w(this,W).call(this,t),w(this,Y)[t].end}},{key:"add",value:function(t,e){var i=0;for(i=0;i<w(this,Y).length&&!(t>w(this,Y)[i].start);i++);for(w(this,Y).splice(i,0,{start:t,end:e}),i=0;i<w(this,Y).length-1;i++)w(this,z).call(this,i,i+1)&&i--}},{key:"remove",value:function(t,e){for(var i=0;i<w(this,Y).length;i++)if(t<=w(this,Y)[i].start&&e>=w(this,Y)[i].end)w(this,Y).splice(i,1),i--;else{if(t>w(this,Y)[i].start&&e<w(this,Y)[i].end){w(this,Y).splice(i+1,0,{start:e,end:w(this,Y)[i].end}),w(this,Y)[i].end=t;break}t>w(this,Y)[i].start&&t<w(this,Y)[i].end?w(this,Y)[i].end=t:e>w(this,Y)[i].start&&e<w(this,Y)[i].end&&(w(this,Y)[i].start=e)}}},{key:"addRange",value:function(t){return w(this,Y).push(t)}},{key:"clear",value:function(){w(this,Y).length=0}},{key:"container",value:function(t){for(var e=0;e<w(this,Y).length;e++){var i=w(this,Y)[e];if(t>=i.start&&t<=i.end)return!0}return!1}}]),t}();function j(t,e){return t.start<=e.start&&e.start<=t.end&&t.end<=e.end?{start:e.start,end:t.end}:e.start<=t.start&&t.start<=e.end&&e.end<=t.end?{start:t.start,end:e.end}:e.start<=t.start&&t.start<=e.end&&t.end<=e.end?{start:t.start,end:t.end}:t.start<=e.start&&e.start<=t.end&&e.end<=t.end?{start:e.start,end:e.end}:null}function q(t,e){for(var i=new Z,n=0;n<t.length;n++)for(var r=t.get(n),o=0;o<e.length;o++){var a=e.get(o);if(a.start>=r.start&&a.start<r.end||a.start<=r.start&&a.end>r.start){var s=j(r,a);s&&i.addRange(s)}if(a.start>r.end)break}return i}var J=y((function t(){f(this,t)}));C(J,"MIN_DECODE_BUFFER_TIME",4),C(J,"MAX_DECODE_BUFFER_TIME",8);var K=J;function X(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var tt=function(t){v(i,t);var e=$(i);function i(){return f(this,i),e.apply(this,arguments)}return y(i)}(function(t){v(i,t);var e=X(i);function i(){var t;return f(this,i),C(b(t=e.call(this)),"tracks",void 0),t.tracks=[],E(t,new Proxy(b(t),{get:function(t,e,i){return Number.isNaN(Number(e))?"function"==typeof t[e]?t[e].bind(t):Reflect.get(t,e,i):t.tracks[e]}}))}return y(i,[{key:"length",get:function(){return this.tracks.length}},{key:"getTrackById",value:function(t){for(var e=0;e<this.tracks.length;e++)if(this.tracks[e].id===t)return this.tracks[e];return null}}]),i}(S)),et=tt;function it(t,e){Promise.resolve().then((function(){t.dispatchEvent(new Event(e))}))}function nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function rt(t){return function(t){if(Array.isArray(t))return nt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return nt(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?nt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ot,at=function(){var t={};return"undefined"!=typeof window&&(t=window),"undefined"!=typeof self&&(t=self),t},st=function(){var t=c;try{var e;t="1"===(null===(e=at().localStorage)||void 0===e?void 0:e.getItem("_bwphevc_debug_"))}catch(t){}return t}();!function(t){t.TRACE="trace",t.DEBUG="debug",t.INFO="info",t.WARN="warn",t.ERROR="error"}(ot||(ot={}));var lt=function(){function t(){f(this,t)}return y(t,[{key:"proxyLog",value:function(e,i){var n;st&&(n=console)[e].apply(n,["[".concat(+new Date-t.startTime,"]")].concat(rt(i)))}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.proxyLog(ot.INFO,e)}},{key:"trace",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.proxyLog(ot.TRACE,e)}},{key:"debug",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.proxyLog(ot.DEBUG,e)}},{key:"warn",
value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.proxyLog(ot.WARN,e)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.proxyLog(ot.ERROR,e)}}],[{key:"getInstance",value:function(){return t.instance||(t.instance=new t,t.startTime=+new Date),t.instance}}]),t}();C(lt,"instance",void 0),C(lt,"startTime",void 0);var At=lt;function ct(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var ht=function(t){v(i,t);var e=ct(i);function i(){var t;return f(this,i),C(b(t=e.call(this)),"trackId",void 0),C(b(t),"ldt",void 0),C(b(t),"lfd",void 0),C(b(t),"het",void 0),C(b(t),"nrapFlag",void 0),C(b(t),"trackRanges",void 0),C(b(t),"_appendMode",void 0),C(b(t),"TAG","[BwpTrackBuffer]"),C(b(t),"logger",void 0),C(b(t),"initSegmentBuffer",void 0),C(b(t),"mediaSegmentBuffer",void 0),C(b(t),"mediaSegmentBufferCount",void 0),t.nrapFlag=!0,t.trackRanges=new Z,t.initSegmentBuffer=[],t.mediaSegmentBuffer={},t.mediaSegmentBufferCount=0,t._appendMode=s.SEGMENTS,t.logger=At.getInstance(),t}return y(i,[{key:"appendMode",get:function(){return this.appendMode},set:function(t){this._appendMode=t}},{key:"appendInitSegment",value:function(t){for(var e=this.initSegmentBuffer,i=0;i<e.length;i++){var n=e[i];if((1===n.volume&&0===n.width&&0===n.height||0===n.volume&&n.width===t.width&&n.height===t.height)&&n.buffer.byteLength===t.buffer.byteLength)return this.logger.warn(this.TAG,"append init segment is exists, it is index is:",i),i}return this.initSegmentBuffer.push(t)-1}},{key:"appendMediaSegment",value:function(t){var e=this.mediaSegmentBuffer,i=t.sequenceNumber;if(this._appendMode===s.SEQUENCE)i=this.mediaSegmentBufferCount;else{var n=e[i];n&&(this.remove(n.fpts,n.lpts),this.logger.warn(this.TAG,"append media segment is exists, remove old segment"))}e[i]=t;var r=e[i-1],o=e[i+1],a=t.fpts,l=t.lpts;return r&&(a=r.lpts),o&&(l=o.fpts),this.trackRanges.add(a,l),this.mediaSegmentBufferCount+=1,i}},{key:"remove",value:function(t,e){for(var i=0,n=t,r=e,o=this.mediaSegmentBuffer,a=Object.keys(o),s=0;s<a.length;s++){var l=parseInt(a[s],10),A=o[l],c=A.fpts,h=A.lpts;if(t>=c&&t<h){var d=o[l-1];n=d?d.lpts:c}if(e>c&&e<=h){var u=o[l+1];r=u?u.fpts:h}h<t||c>e||(delete o[l],i+=1)}return this.trackRanges.remove(n,r),this.mediaSegmentBufferCount=Object.keys(o).length,i>0}},{key:"getInitSegment",value:function(t){return this.initSegmentBuffer[t]}},{key:"getMediaSegment",value:function(t){return this.mediaSegmentBuffer[t]}},{key:"getMediaSegmentTimeRange",value:function(t){var e=this.mediaSegmentBuffer[t];return e?{start:e.fpts,end:e.lpts}:{start:NaN,end:NaN}}},{key:"isLastSegment",value:function(t){var e=Object.keys(this.mediaSegmentBuffer);return parseInt(e.pop()||"-1",10)===t}},{key:"getCurrentSegmentIndex",value:function(t){for(var e=Object.keys(this.mediaSegmentBuffer),i=0;i<e.length;i++){var n=this.mediaSegmentBuffer[e[i]];if(t>=n.fpts&&t<=n.lpts)return parseInt(e[i],10);if(t>n.lpts){var r=this.mediaSegmentBuffer[e[i+1]];if(r&&t<r.fpts)return parseInt(e[i],10)}}return-1}},{key:"clear",value:function(){this.initSegmentBuffer=[],this.mediaSegmentBuffer={},this.mediaSegmentBufferCount=0}}]),i}(S),dt=y((function t(){f(this,t)}));C(dt,"LOAD_START","loadstart"),C(dt,"PROGRESS","progress"),C(dt,"SUSPEND","suspend"),C(dt,"ABORT","abort"),C(dt,"ERROR","error"),C(dt,"EMPTIED","emptied"),C(dt,"STALLED","stalled"),C(dt,"LOADED_METADATA","loadedmetadata"),C(dt,"LOADED_DATA","loadeddata"),C(dt,"CANPLAY","canplay"),C(dt,"CANPLAY_THROUGH","canplaythrough"),C(dt,"PLAYING","playing"),C(dt,"WAITING","waiting"),C(dt,"SEEKING","seeking"),C(dt,"SEEKED","seeked"),C(dt,"ENDED","ended"),C(dt,"DURATION_CHANGE","durationchange"),C(dt,"TIME_UPDATE","timeupdate"),C(dt,"PLAY","play"),C(dt,"PAUSE","pause"),C(dt,"RATE_CHANGE","ratechange"),C(dt,"RESIZE","resize"),C(dt,"VOLUME_CHANGE","volumechange"),C(dt,"CHANGE","change"),C(dt,"ADD_TRACK","addtrack"),C(dt,"REMOVE_TRACK","removetrack"),C(dt,"CUE_CHANGE","cuechange"),C(dt,"ENTER_PICTURE_IN_PICTURE","enterpictureinpicture"),C(dt,"LEAVE_PICTURE_IN_PICTURE","leavepictureinpicture"),C(dt,"PERFORMANCE","performance");var ut=dt,pt=y((function t(){return f(this,t),C(this,"BWPHEVC","__bwphevc__"),C(this,"SET_READY_STATE","__bwphevc_set_ready_state__"),C(this,"SET_DURATION","__bwphevc_set_duration__"),C(this,"MEDIASOURCE_ATTACH","__bwphevc_mediasource_attach__"),C(this,"MEDIASOURCE_DETACH","__bwphevc_mediasource_detach__"),C(this,"END_OF_STREAM","__bwphevc_end_of_stream__"),C(this,"SOURCEBUFFER_SEEK","__bwphevc_sourcebuffer_seek__"),C(this,"SOURCEBUFFER_IS_ENDED","__bwphevc_sourcebuffer_is_ended__"),C(this,"SOURCEBUFFER_GET_BUFFER","__bwphevc_sourcebuffer_get_buffer__"),C(this,"SOURCEBUFFER_FIRST_INIT","__bwphevc_sourcebuffer_first_init__"),C(this,"DOCUMENT_HAS_SHOWED","__bwphevc_document_has_showed__"),new Proxy(this,{get:function(t,e,i){var n=Reflect.get(t,e,i);return n?Symbol.for(n):n}})})),gt=null!=window.Symbol&&null!=window.Proxy?new pt:{},ft=i(715),mt=function(){function t(e){if(f(this,t),C(this,"offset",void 0),C(this,"type",void 0),C(this,"size",void 0),C(this,"boxes",void 0),C(this,"isComplete",void 0),C(this,"timescale",void 0),C(this,"earliest_presentation_time",void 0),C(this,"first_offset",void 0),C(this,"references",void 0),C(this,"id",void 0),C(this,"version",void 0),C(this,"value",void 0),C(this,"scheme_id_uri",void 0),C(this,"presentation_time_delta",void 0),C(this,"event_duration",void 0),C(this,"message_data",void 0),C(this,"sequence_number",void 0),C(this,"entry_count",void 0),C(this,"entries",void 0),C(this,"base_data_offset",void 0),C(this,"sample_description_index",void 0),C(this,"default_sample_duration",void 0),C(this,"default_sample_size",void 0),C(this,"default_sample_flags",void 0),C(this,"flags",void 0),C(this,"baseMediaDecodeTime",void 0),C(this,"sample_count",void 0),C(this,"first_sample_flags",void 0),C(this,"data_offset",void 0),C(this,"samples",void 0),C(this,"fragment_duration",void 0),C(this,"track_id",void 0),C(this,"width",void 0),C(this,"height",void 0),C(this,"volume",void 0),C(this,"samplerate",void 0),this.offset=e._offset,this.type=e.type,this.size=e.size,this.boxes=[],e.boxes)for(var i=0;i<e.boxes.length;i++)this.boxes.push(new t(e.boxes[i]));switch(this.isComplete=!0,e.type){case"sidx":if(this.timescale=e.timescale,this.earliest_presentation_time=e.earliest_presentation_time,this.first_offset=e.first_offset,this.references=e.references,e.references){this.references=[];for(var n=0;n<e.references.length;n++){var r={reference_type:e.references[n].reference_type,referenced_size:e.references[n].referenced_size,subsegment_duration:e.references[n].subsegment_duration};this.references.push(r)}}break;case"emsg":this.id=e.id,this.version=1===e.version?1:0,this.value=e.value,this.timescale=e.timescale,this.scheme_id_uri=e.scheme_id_uri,this.presentation_time_delta=1===e.version?e.presentation_time:e.presentation_time_delta,this.event_duration=e.event_duration,this.message_data=e.message_data;break;case"mdhd":this.timescale=e.timescale;break;case"mfhd":this.sequence_number=e.sequence_number;break;case"subs":this.entry_count=e.entry_count,this.entries=e.entries;break;case"tfhd":this.track_id=e.track_ID,this.base_data_offset=e.base_data_offset,this.sample_description_index=e.sample_description_index,this.default_sample_duration=e.default_sample_duration,this.default_sample_size=e.default_sample_size,this.default_sample_flags=e.default_sample_flags,this.flags=e.flags;break;case"trex":this.default_sample_duration=e.default_sample_duration,this.default_sample_size=e.default_sample_size,this.default_sample_flags=e.default_sample_flags,this.flags=e.flags;break;case"tfdt":this.version=e.version,this.baseMediaDecodeTime=e.baseMediaDecodeTime,this.flags=e.flags;break;case"trun":
if(this.sample_count=e.sample_count,this.first_sample_flags=e.first_sample_flags,this.data_offset=e.data_offset,this.flags=e.flags,this.samples=e.samples,e.samples){this.samples=[];for(var o=0,a=e.samples.length;o<a;o++){var s={sample_size:e.samples[o].sample_size,sample_duration:e.samples[o].sample_duration,sample_composition_time_offset:e.samples[o].sample_composition_time_offset};this.samples.push(s)}}break;case"mehd":this.fragment_duration=e.fragment_duration;break;case"tkhd":this.track_id=e.track_ID,this.flags=e.flags,this.width=e.width,this.height=e.height,this.volume=e.volume;break;case"stsd":if(e.entries){var l=e.entries[0];"mp4a"===l.type&&(this.samplerate=l.samplerate)}}}return y(t,[{key:"getChildBox",value:function(t){for(var e=0;e<this.boxes.length;e++)if(this.boxes[e].type===t)return this.boxes[e];return null}},{key:"getChildBoxes",value:function(t){for(var e=[],i=0;i<this.boxes.length;i++)this.boxes[i].type===t&&e.push(this.boxes[i]);return e}}]),t}(),yt=function(){function t(){f(this,t),C(this,"parsedIsoFile",void 0)}return y(t,[{key:"getBox",value:function(t){return t&&this.parsedIsoFile&&this.parsedIsoFile.boxes&&0!==this.parsedIsoFile.boxes.length&&"function"==typeof this.parsedIsoFile.fetch?this.convertToDashIsoBox(this.parsedIsoFile.fetch(t)):null}},{key:"getBoxes",value:function(t){var e=[];if(!t||!this.parsedIsoFile||"function"!=typeof this.parsedIsoFile.fetchAll)return e;for(var i,n=this.parsedIsoFile.fetchAll(t),r=0,o=n.length;r<o;r++)(i=this.convertToDashIsoBox(n[r]))&&e.push(i);return e}},{key:"setData",value:function(t){this.parsedIsoFile=t}},{key:"getData",value:function(){return this.parsedIsoFile}},{key:"getLastBox",value:function(){if(!this.parsedIsoFile||!this.parsedIsoFile.boxes||!this.parsedIsoFile.boxes.length)return null;var t=this.parsedIsoFile.boxes[this.parsedIsoFile.boxes.length-1].type,e=this.getBoxes(t);return e.length>0?e[e.length-1]:null}},{key:"convertToDashIsoBox",value:function(t){if(!t)return null;var e=new mt(t);return t.hasOwnProperty("_incomplete")&&(e.isComplete=!t._incomplete),e}}]),t}(),bt=y((function t(e,i,n){f(this,t),C(this,"lastCompletedOffset",void 0),C(this,"found",void 0),C(this,"size",void 0),this.lastCompletedOffset=e,this.found=i,this.size=n})),vt=function(){function t(){f(this,t)}return y(t,[{key:"parse",value:function(t){if(!t)return null;void 0===t.fileStart&&(t.fileStart=0);var e=ft.parseBuffer(t),i=new yt;return i.setData(e),i}},{key:"findLastTopIsoBoxCompleted",value:function(t,e,i){if(void 0===i&&(i=0),!e||i+8>=e.byteLength)return new bt(0,!1);for(var n,r=e instanceof ArrayBuffer?new Uint8Array(e):e,o=0;i<r.byteLength;){var a=this.parseUint32(r,i),s=this.parseIsoBoxType(r,i+4);if(0===a)break;i+a<=r.byteLength&&(t.indexOf(s)>=0?n=new bt(i,!0,a):o=i+a),i+=a}return n||new bt(o,!1)}},{key:"getFirstBoxType",value:function(t){return t&&t.boxes&&t.boxes.length?t.boxes[0].type:null}},{key:"getSamplesInfo",value:function(t,e,i,n){var r;if(e)r=e;else if(r=this.parse(t),!t||0===t.byteLength)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};if(!r)return{sampleList:[],lastSequenceNumber:NaN,totalDuration:NaN,numSequences:NaN};var o,a,s,l,A,c,h=r.getBoxes("moof"),d=r.getBoxes("mfhd"),u=[],p=NaN,g=r.getBoxes("moof").length,f=d[d.length-1].sequence_number;a=0;for(var m=-1,y=-1,b=0;b<h.length;b++)for(var v=h[b],E=v.getChildBoxes("traf"),I=0;I<E.length;I++){var C=[],B=E[I],w=B.getChildBox("tfhd"),x=B.getChildBox("tfdt");l=x.baseMediaDecodeTime;for(var Q=B.getChildBoxes("trun"),S=B.getChildBoxes("subs"),k=0;k<Q.length;k++){var D=Q[k];a=D.sample_count,c=(w.base_data_offset||0)+(D.data_offset||0);for(var _=0;_<a;_++){o=void 0!==(A=D.samples[_]).sample_duration?A.sample_duration:w.default_sample_duration||i,s=void 0!==A.sample_size?A.sample_size:w.default_sample_size||n;var R={dts:l,pts:l+(void 0!==A.sample_composition_time_offset?A.sample_composition_time_offset:0),duration:o,offset:v.offset+c,size:s,subSizes:[s]};if(S)for(var M=0;M<S.length;M++){var T=S[M];if(m<T.entry_count-1&&_>y&&(m++,y+=T.entries[m].sample_delta),_==y){R.subSizes=[];for(var F=T.entries[m],L=0;L<F.subsample_count;L++)R.subSizes.push(F.subsamples[L].subsample_size)}}C.push(R),c+=s,l+=o}}p=l-x.baseMediaDecodeTime,C.length>0&&(u[I]?u[I]=u[I].concat(C):u[I]=C)}return{sampleList:u,lastSequenceNumber:f,totalDuration:p,numSequences:g}}},{key:"getMediaTimescaleFromMoov",value:function(t){var e=this.parse(t),i=e?e.getBox("mdhd"):void 0;return i?i.timescale:NaN}},{key:"parseUint32",value:function(t,e){return t[e+3]>>>0|t[e+2]<<8>>>0|t[e+1]<<16>>>0|t[e]<<24>>>0}},{key:"parseIsoBoxType",value:function(t,e){return String.fromCharCode(t[e++])+String.fromCharCode(t[e++])+String.fromCharCode(t[e++])+String.fromCharCode(t[e])}},{key:"findInitRange",value:function(t){var e,i,n=null,r=this.parse(t);if(!r)return n;var o=r.getBox("ftyp"),a=r.getBox("moov");return a&&a.isComplete&&(e=o?o.offset:a.offset,i=a.offset+a.size-1,n="".concat(e,"-").concat(i)),n}}],[{key:"getInstance",value:function(){return t.instance||(t.instance=new t),t.instance}}]),t}();C(vt,"instance",void 0);var Et=vt;function It(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}function Ct(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}var Bt=new WeakMap,wt=new WeakMap,xt=new WeakMap,Qt=new WeakMap,St=new WeakMap,kt=new WeakMap,Dt=new WeakMap,_t=new WeakMap,Rt=new WeakMap,Mt=new WeakMap,Tt=new WeakMap,Ft=new WeakMap,Lt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ut=new WeakMap,Ot=new WeakMap,Gt=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,Yt=new WeakMap,zt=new WeakMap,Wt=new WeakMap,Zt=new WeakMap,jt=new WeakMap,qt=new WeakMap,Jt=new WeakMap,Kt=new WeakMap,Xt=new WeakMap,$t=new WeakMap,te=new WeakMap,ee=new WeakMap,ie=new WeakMap,ne=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakMap,se=new WeakMap,le=new WeakMap,Ae=new WeakMap,ce=new WeakMap,he=new WeakMap,de=new WeakMap,ue=function(e){v(n,e);var i=It(n);function n(e,r,a,s){var A,c,h;return f(this,n),Ct(b(A=i.call(this)),Bt,{writable:!0,value:void 0}),Ct(b(A),wt,{writable:!0,value:"[BwpSourceBuffer]"}),Ct(b(A),xt,{writable:!0,value:void 0}),C(b(A),"updating",void 0),Ct(b(A),Qt,{writable:!0,value:void 0}),Ct(b(A),St,{writable:!0,value:void 0}),C(b(A),"textTracks",void 0),Ct(b(A),kt,{writable:!0,value:void 0}),Ct(b(A),Dt,{writable:!0,value:void 0}),C(b(A),"onupdatestart",void 0),C(b(A),"onupdate",void 0),C(b(A),"onupdateend",void 0),C(b(A),"onerror",void 0),C(b(A),"onabort",void 0),Ct(b(A),_t,{writable:!0,value:void 0}),Ct(b(A),Rt,{writable:!0,value:void 0}),Ct(b(A),Mt,{writable:!0,value:void 0}),Ct(b(A),Tt,{writable:!0,value:void 0}),Ct(b(A),Ft,{writable:!0,value:void 0}),C(b(A),"generateTimestampsFlag",void 0),Ct(b(A),Lt,{writable:!0,value:void 0}),C(b(A),"mediaType",void 0),Ct(b(A),Nt,{writable:!0,value:void 0}),Ct(b(A),Pt,{writable:!0,value:void 0}),Ct(b(A),Ut,{writable:!0,value:void 0}),Ct(b(A),Ot,{writable:!0,value:void 0}),Ct(b(A),Gt,{writable:!0,value:void 0}),Ct(b(A),Ht,{writable:!0,value:void 0}),Ct(b(A),Vt,{writable:!0,value:void 0}),Ct(b(A),Yt,{writable:!0,value:void 0}),Ct(b(A),zt,{writable:!0,value:void 0}),Ct(b(A),Wt,{writable:!0,value:void 0}),Ct(b(A),Zt,{writable:!0,value:void 0}),Ct(b(A),jt,{writable:!0,value:.1}),Ct(b(A),qt,{writable:!0,value:function(t){for(var e=0;e<w(b(A),Mt).length;e++){var i=w(b(A),Mt)[e],n=i.trackId,r=w(b(A),Zt)[n];if(r){var o=i.getCurrentSegmentIndex(t);w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] seek to ").concat(t,", target segment index: ").concat(o)),w(b(A),Zt)[n]=-1!==o?{index:o-1,fpts:-1,lpts:-1,initSegmentIndex:r.initSegmentIndex}:{index:-1,fpts:-1,lpts:-1,initSegmentIndex:r.initSegmentIndex}}}}}),Ct(b(A),Jt,{writable:!0,value:function(e,i){var n=[],r=!1;if(i)return{buffer:n,isEndOfStream:r,
sampleRate:w(b(A),Vt)};for(var o=0;o<w(b(A),Mt).length;o++){var a=w(b(A),Mt)[o],s=a.trackId;if(void 0===s)throw new Error("Error track, cannot get trackID");var l=w(b(A),Zt)[s];if(!l||l.lpts-e<K.MIN_DECODE_BUFFER_TIME){var c=-1;if(l&&-1!==l.index)c=l.index+1;else{var h=a.getCurrentSegmentIndex(e);h&&(c=h)}var d=a.getMediaSegment(c);if(d){if(l||(l={},w(b(A),Zt)[s]=l),!l||l.initSegmentIndex!==d.initSegmentIndex){var u,p=null===(u=a.getInitSegment(d.initSegmentIndex))||void 0===u?void 0:u.buffer;if(!p)throw new Error("Cannot get init segment buffer.");n.push({data:p,isInitSegment:!0}),l.initSegmentIndex=d.initSegmentIndex}n.push({data:d.buffer,isInitSegment:!1}),l.index=c,l.fpts=d.fpts,l.lpts=d.lpts,w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] get cache segment, fpts: ").concat(d.fpts,", lpts: ").concat(d.lpts)),w(b(A),Nt).readyState===t.ENDED&&a.isLastSegment(c)&&(r=!0)}}}return{buffer:n,isEndOfStream:r,sampleRate:w(b(A),Vt)}}}),Ct(b(A),Kt,{writable:!0,value:function(){for(var t=0;t<w(b(A),Mt).length;t++){var e,i=w(b(A),Mt)[t],n=i.trackId;if(void 0!==n&&i.isLastSegment(null===(e=w(b(A),Zt)[n])||void 0===e?void 0:e.index))return!0}return!1}}),Ct(b(A),Xt,{writable:!0,value:function(){if(w(b(A),de).call(b(A)),null!==w(b(A),Pt).error)throw new G;if(w(b(A),Ut).call(b(A)),w(b(A),Tt))throw new Error("QuotaExceededError")}}),Ct(b(A),$t,{writable:!0,value:(c=R(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.prev=0,w(b(A),te).call(b(A)),t.next=8;break;case 4:return t.prev=4,t.t0=t.catch(0),console.error(t.t0),t.abrupt("return");case 8:x(b(A),Gt,null),A.updating=!1,it(b(A),"update"),it(b(A),"updateend");case 12:case"end":return t.stop()}}),t,null,[[0,4]])}))),function(){return c.apply(this,arguments)})}),Ct(b(A),te,{writable:!0,value:function(){if(null!==w(b(A),_t)){if("WAITING_FOR_SEGMENT"===w(b(A),Ft)){var t;w(b(A),ee).call(b(A),w(b(A),_t));var e=w(b(A),Ot).getFirstBoxType(null===(t=w(b(A),Gt))||void 0===t?void 0:t.getData());"ftyp"===e&&x(b(A),Ft,"PARSING_INIT_SEGMENT"),"moof"===e&&x(b(A),Ft,"PARSING_MEDIA_SEGMENT"),w(b(A),te).call(b(A))}if("PARSING_INIT_SEGMENT"===w(b(A),Ft)&&(w(b(A),ie).call(b(A)),x(b(A),_t,null),x(b(A),Gt,null),x(b(A),Ft,"WAITING_FOR_SEGMENT"),w(b(A),te).call(b(A))),"PARSING_MEDIA_SEGMENT"===w(b(A),Ft)){if(!w(b(A),Lt))return console.error("[BwpSourceBuffer] InitalizationSegment must append before MediaSegment!"),void w(b(A),oe).call(b(A));w(b(A),ne).call(b(A)),x(b(A),_t,null),x(b(A),Gt,null),x(b(A),Ft,"WAITING_FOR_SEGMENT"),w(b(A),te).call(b(A))}}}}),Ct(b(A),ee,{writable:!0,value:function(t){try{x(b(A),Gt,w(b(A),Ot).parse(t))}catch(t){console.error(t)}}}),Ct(b(A),ie,{writable:!0,value:function(){var t,e,i,n;if(!w(b(A),_t))throw new Error("Cannot get input buffer!");var r=null===(t=w(b(A),Gt))||void 0===t?void 0:t.getBox("mehd");Number.isNaN(w(b(A),Nt).duration)&&(r&&r.fragment_duration?w(b(A),re).call(b(A),r.fragment_duration/1e3):w(b(A),re).call(b(A),Number.POSITIVE_INFINITY));var a=null===(e=w(b(A),Gt))||void 0===e?void 0:e.getBox("trak"),s=a.getChildBox("tkhd");if(w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] appendBuffer initSegment, track_id: ").concat(s.track_id)),!a)return w(b(A),oe).call(b(A)),void console.error("[BwpSourceBuffer] append error cannot get trak!");if(A.mediaType===l.AUDIO||A.mediaType===l.MIX){var c,h=null===(c=w(b(A),Gt))||void 0===c?void 0:c.getBoxes("stsd");if(!h)throw new Error("Cannot get audio sample rate!");var d=A.mediaType===l.MIX&&h.length>1?1:0;x(b(A),Vt,h[d].samplerate),w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] get audio sample rate ").concat(w(b(A),Vt)))}if(w(b(A),Lt)){w(b(A),Bt).warn(w(b(A),wt),"[".concat(A.mediaType,"] firstinit is true, received new init segment."));var u=w(b(A),ce).call(b(A),s.track_id);if(!u)throw new Error("Firstinit is true, but cantnot get already push init segment!");w(b(A),Wt)[s.track_id]=u.appendInitSegment({buffer:w(b(A),_t),width:s.width,height:s.height,volume:s.volume})}var p=!1;if(!w(b(A),Lt)){p=!0;var g=new ht;g.trackId=s.track_id,w(b(A),Wt)[s.track_id]=g.appendInitSegment({buffer:w(b(A),_t),width:s.width,height:s.height,volume:s.volume}),w(b(A),Mt).push(g),p&&(w(b(A),Nt).activeSourceBuffers.push(b(A)),w(b(A),Nt).activeSourceBuffers.dispatchEvent(new Event("addsourcebuffer"))),x(b(A),Lt,!0)}if(w(b(A),Pt).readyState===o.HAVE_NOTHING){w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] init segment loop: BwpElement is HAVE_NOTHING"));for(var f=!0,m=w(b(A),Nt).sourceBuffers,y=0;y<m.length;y++)m[y][gt.SOURCEBUFFER_FIRST_INIT]()||(f=!1,w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] init segment loop: another is not init")));f&&(w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] init segment loop: have meta")),w(b(A),Pt)[gt.SET_READY_STATE](o.HAVE_METADATA))}var v=null===(i=w(b(A),Gt))||void 0===i?void 0:i.getBox("mdhd");x(b(A),Ht,v.timescale);var E=null===(n=w(b(A),Gt))||void 0===n?void 0:n.getBox("trex");x(b(A),Yt,E.default_sample_duration),x(b(A),zt,E.default_sample_size),p&&w(b(A),Pt).readyState>=o.HAVE_CURRENT_DATA&&w(b(A),Pt)[gt.SET_READY_STATE](o.HAVE_METADATA)}}),Ct(b(A),ne,{writable:!0,value:function(){var t,e;if(!w(b(A),_t))throw new Error("Cannot get input buffer!");var i=w(b(A),Ot).getSamplesInfo(w(b(A),_t),w(b(A),Gt),w(b(A),Yt),w(b(A),zt)).sampleList[0];if(!i||0===i.length)throw new Error("[BwpSourceBuffer] parsed sample list is empty!");if(!w(b(A),Ht))throw new Error("[BwpSourceBuffer] timescale is undefined!");var n=(null===(t=w(b(A),Gt))||void 0===t?void 0:t.getBox("tfhd")).track_id,r=w(b(A),ce).call(b(A),n);if(!r)throw new Error("[BwpSourceBuffer] cannot get trackBuffer!");var a=i[i.length-1],s=i[0].dts/w(b(A),Ht),l=i[0].pts/w(b(A),Ht),c=a.pts/w(b(A),Ht);0===s&&(l=0),c>w(b(A),Dt)&&(c=w(b(A),Dt));var h=w(b(A),Pt),d=(null===(e=w(b(A),Gt))||void 0===e?void 0:e.getBox("mfhd")).sequence_number;r.ldt=a.dts,r.lfd=a.duration,r.appendMediaSegment({sequenceNumber:d,initSegmentIndex:w(b(A),Wt)[n],buffer:w(b(A),_t),fpts:l,lpts:c});var u=h.currentTime,p=h.buffered;w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] appendBuffer mediaSegment, fpts: ").concat(l.toFixed(5),", lpts: ").concat(c.toFixed(5))),p.container(u)&&(h.readyState===o.HAVE_METADATA&&h[gt.SET_READY_STATE](o.HAVE_CURRENT_DATA),h.readyState===o.HAVE_CURRENT_DATA&&p.end(0)>u&&h[gt.SET_READY_STATE](o.HAVE_FUTURE_DATA),h.readyState===o.HAVE_FUTURE_DATA&&p.end(0)-p.start(0)>=w(b(A),jt)&&h[gt.SET_READY_STATE](o.HAVE_ENOUGH_DATA)),h.readyState>=o.HAVE_METADATA&&it(h,ut.PROGRESS)}}),Ct(b(A),re,{writable:!0,value:function(t){}}),Ct(b(A),oe,{writable:!0,value:function(){w(b(A),ae).call(b(A)),A.updating=!1,it(b(A),"error"),it(b(A),"updateend"),w(b(A),Nt).endOfStream("decode")}}),Ct(b(A),ae,{writable:!0,value:function(){w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] call resetParseState()")),w(b(A),Ft),w(b(A),se).call(b(A)),x(b(A),_t,null),x(b(A),Gt,null),x(b(A),Ft,"WAITING_FOR_SEGMENT")}}),Ct(b(A),se,{writable:!0,value:function(){for(var t=0;t<w(b(A),Mt).length;t++){var e=w(b(A),Mt)[t];e.ldt=void 0,e.lfd=void 0,e.het=void 0,e.nrapFlag=!0}}}),Ct(b(A),le,{writable:!0,value:(h=R(T().mark((function t(e,i){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return A.updating=!0,t.next=3,A.dispatchEvent(new Event("updatestart"));case 3:w(b(A),Bt).log(w(b(A),wt),"[".concat(A.mediaType,"] call removeBuffer, start: ").concat(e,", end: ").concat(i)),w(b(A),Ae).call(b(A),e,i),A.updating=!1,it(b(A),"update"),it(b(A),"updateend");case 8:case"end":return t.stop()}}),t)}))),function(t,e){return h.apply(this,arguments)})}),Ct(b(A),Ae,{writable:!0,value:function(t,e){for(var i=0;i<w(b(A),Mt).length;i++){var n=w(b(A),Mt)[i],r=n.trackId;if(n.trackRanges,void 0===r)throw new Error("Error track, cantnot get track id");var a=n.remove(t,e);w(b(A),se).call(b(A));var s=w(b(A),Pt);w(b(A),Nt).activeSourceBuffers.indexOf(b(A))&&(s.currentTime>=t&&s.currentTime<e&&s.readyState>o.HAVE_METADATA&&s[gt.SET_READY_STATE](o.HAVE_METADATA),a&&s.readyState>=o.HAVE_METADATA&&it(s,ut.PROGRESS))}w(b(A),Tt)&&x(b(A),Tt,!1)}}),Ct(b(A),ce,{writable:!0,value:function(t){for(var e=0;e<w(b(A),Mt).length;e++){var i=w(b(A),Mt)[e];if(t===i.trackId)return i}return null
}}),Ct(b(A),he,{writable:!0,value:function(){return-1===w(b(A),Nt).sourceBuffers.indexOf(b(A))}}),Ct(b(A),de,{writable:!0,value:function(){if(w(b(A),he).call(b(A)))throw new G;if(A.updating)throw new Error("This SourceBuffer is still processing an 'appendBuffer' or 'remove' operation.")}}),x(b(A),Bt,At.getInstance()),A.mediaType=e,x(b(A),Pt,r),x(b(A),Nt,a),x(b(A),Ut,s),A.updating=!1,x(b(A),Qt,new Z),x(b(A),St,0),A.textTracks=new et,x(b(A),Dt,1/0),x(b(A),kt,0),x(b(A),_t,null),x(b(A),Rt,0),x(b(A),Tt,!1),x(b(A),Mt,[]),x(b(A),Lt,!1),x(b(A),Ft,"WAITING_FOR_SEGMENT"),x(b(A),Wt,{}),x(b(A),Zt,{}),A[gt.SOURCEBUFFER_SEEK]=w(b(A),qt),A[gt.SOURCEBUFFER_GET_BUFFER]=w(b(A),Jt),A[gt.SOURCEBUFFER_IS_ENDED]=w(b(A),Kt),A[gt.SOURCEBUFFER_FIRST_INIT]=function(){return w(b(A),Lt)},x(b(A),Ot,Et.getInstance()),w(b(A),Bt).log(w(b(A),wt),"SOURCE BUFFER CREATE"),A}return y(n,[{key:"mode",get:function(){return w(this,xt)},set:function(t){if(t===s.SEQUENCE)throw new Error("Mode sequence is not implemented!");if(w(this,de).call(this),this.generateTimestampsFlag&&"segments"===t)throw new TypeError("GenerateTimestampsFlag is true, not support segments mode");if(w(this,Ut).call(this),"PARSING_MEDIA_SEGMENT"===w(this,Ft))throw new G;w(this,Nt).readyState&&w(this,Bt).log(w(this,wt),"[".concat(this.mediaType,"] MediaSource is working fine!, readyState:"),w(this,Nt).readyState.toString()),x(this,xt,t)}},{key:"buffered",get:function(){if(w(this,he).call(this))return x(this,Qt,new Z),w(this,Qt);for(var e=0,i=w(this,Mt).length,n=0;n<i;n++){var r=w(this,Mt)[n].trackRanges;if(r.length>0){var o=r.end(r.length-1);o>e&&(e=o)}}if(0===e)return w(this,Qt).length>0&&w(this,Qt).clear(),w(this,Qt);var a=new Z;a.add(0,e);for(var s=0;s<i;s++){var l=w(this,Mt)[s].trackRanges;a=q(a,l);var A=l.length;if(A>0){var c=l.end(A-1);w(this,Nt).readyState===t.ENDED&&(e=c)}}return x(this,Qt,a),w(this,Qt)}},{key:"timestampOffset",get:function(){return w(this,St)},set:function(t){if(w(this,de).call(this),w(this,Ut).call(this),"PARSING_MEDIA_SEGMENT"===w(this,Ft))throw new G;x(this,St,t)}},{key:"appendWindowStart",get:function(){return w(this,kt)},set:function(t){if(w(this,Bt).log(w(this,wt),"[".concat(this.mediaType,"] set appendWindowStart: ").concat(t)),w(this,de).call(this),t<0||t>=w(this,Dt))throw new TypeError("AppendWindowStart cannot greater than or equal End.");x(this,kt,t)}},{key:"appendWindowEnd",get:function(){return w(this,Dt)},set:function(t){if(w(this,Bt).log(w(this,wt),"[".concat(this.mediaType,"] set appendWindowEnd: ").concat(t)),w(this,de).call(this),Number.isNaN(t))throw new TypeError;if(t<=w(this,kt))throw new TypeError("AppendWindowEnd cannot less then or equal Start.");x(this,Dt,t)}},{key:"appendBuffer",value:function(t){if(w(this,Xt).call(this),w(this,_t)){var e=new Uint8Array(w(this,_t)),i=new Uint8Array(t),n=new Uint8Array(e.length+i.length);n.set(e),n.set(i,e.length),x(this,_t,n.buffer)}else x(this,_t,t);this.updating=!0,this.dispatchEvent(new Event("updatestart")),w(this,$t).call(this)}},{key:"abort",value:function(){if(w(this,he).call(this))throw new Error("This SourceBuffer has been removed from the parent media source.");if(w(this,Nt).readyState!==t.OPEN)throw new G;this.updating&&(w(this,Bt).log(w(this,wt),"[".concat(this.mediaType,"] Call abort when this.updating is true.")),this.updating=!1,it(this,"abort"),it(this,"updateend")),w(this,ae).call(this),this.appendWindowStart=0,this.appendWindowEnd=Number.POSITIVE_INFINITY}},{key:"remove",value:function(t,e){w(this,de).call(this),w(this,Bt).log(w(this,wt),"[".concat(this.mediaType,"] remove buffer: ").concat(t,", ").concat(e));var i=w(this,Nt).duration;if(Number.isNaN(i))throw new TypeError("MediaSource duration cannot NaN");if(t<0||t>i)throw new TypeError("Start must be valid.");if(e<=t||Number.isNaN(e))throw new TypeError("end must be valid.");w(this,Ut).call(this),w(this,le).call(this,t,e)}}]),n}(S),pe=ue;function ge(){ge=function(t,e){return new i(t,void 0,e)};var t=RegExp.prototype,e=new WeakMap;function i(t,n,r){var o=new RegExp(t,n);return e.set(o,r||e.get(t)),g(o,i.prototype)}function n(t,i){var n=e.get(i);return Object.keys(n).reduce((function(e,i){return e[i]=t[n[i]],e}),Object.create(null))}return v(i,RegExp),i.prototype.exec=function(e){var i=t.exec.call(this,e);return i&&(i.groups=n(i,this)),i},i.prototype[Symbol.replace]=function(i,r){if("string"==typeof r){var o=e.get(this);return t[Symbol.replace].call(this,i,r.replace(/\$<([^>]+)>/g,(function(t,e){return"$"+o[e]})))}if("function"==typeof r){var a=this;return t[Symbol.replace].call(this,i,(function(){var t=arguments;return"object"!=p(t[t.length-1])&&(t=[].slice.call(t)).push(n(t,a)),r.apply(this,t)}))}return t[Symbol.replace].call(this,i,r)},ge.apply(this,arguments)}function fe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}function me(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}var ye=new WeakMap,be=new WeakMap,ve=new WeakMap,Ee=new WeakMap,Ie=new WeakMap,Ce=new WeakMap,Be=new WeakMap,we=new WeakMap,xe=new WeakMap,Qe=new WeakMap,Se=new WeakMap,ke=new WeakMap,De=new WeakMap,_e=new WeakMap,Re=new WeakMap,Me=function(e){v(n,e);var i=fe(n);function n(){var e;return f(this,n),me(b(e=i.call(this)),ye,{writable:!0,value:void 0}),me(b(e),be,{writable:!0,value:"[BwpMediaSource]"}),C(b(e),"sourceBuffers",void 0),C(b(e),"activeSourceBuffers",void 0),me(b(e),ve,{writable:!0,value:void 0}),me(b(e),Ee,{writable:!0,value:void 0}),C(b(e),"onsourceopen",void 0),C(b(e),"onsourceended",void 0),C(b(e),"onsourceclose",void 0),me(b(e),Ie,{writable:!0,value:void 0}),me(b(e),Ce,{writable:!0,value:void 0}),me(b(e),Be,{writable:!0,value:void 0}),me(b(e),we,{writable:!0,value:function(t){if(w(b(e),Ee)!==t){for(var i=NaN,n=0;n<e.sourceBuffers.length;n++){var r=e.sourceBuffers[n].buffered;if(r.length>0){var o=r.end(r.length-1);o>-1&&(!i||o>i)&&(i=o)}}if(i&&t<i)throw new Error("InvalidStateError, duration must be valid");x(b(e),Ee,t),w(b(e),Ce)[gt.SET_DURATION](t)}}}),me(b(e),xe,{writable:!0,value:function(i){if(x(b(e),ve,t.ENDED),it(b(e),"sourceended"),w(b(e),ye).warn(w(b(e),be),"source ended"),!i){for(var n=0,r=0;r<e.sourceBuffers.length;r++){var o=e.sourceBuffers[r].buffered;if(o.length>0){var a=o.end(o.length-1);a>n&&(n=a)}}w(b(e),we).call(b(e),n)}}}),C(b(e),"createObjectURL",(function(){window[gt.BWPHEVC]||(window[gt.BWPHEVC]={});var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})),i="blob:".concat(window.location.origin,"/").concat(t);return window[gt.BWPHEVC][i]=b(e),i})),me(b(e),Qe,{writable:!0,value:function(t){x(b(e),Ce,t),window[gt.DOCUMENT_HAS_SHOWED]?(x(b(e),Be,!1),w(b(e),De).call(b(e))):x(b(e),Be,!0)}}),me(b(e),Se,{writable:!0,value:function(){x(b(e),ve,t.CLOSED),x(b(e),Ee,NaN);for(var i=e.activeSourceBuffers.length;i>0;i--)e.activeSourceBuffers.remove(i-1);e.activeSourceBuffers.dispatchEvent(new Event("removesourcebuffer"));for(var n=e.sourceBuffers.length;n>0;n--)e.sourceBuffers.remove(n-1);e.sourceBuffers.dispatchEvent(new Event("removesourcebuffer")),it(b(e),"sourceclose"),w(b(e),ye).warn(w(b(e),be),"source close")}}),me(b(e),ke,{writable:!0,value:function(){w(b(e),ve)===t.ENDED&&(x(b(e),ve,t.OPEN),it(b(e),"sourceopen"),w(b(e),ye).log(w(b(e),be),"source open"))}}),me(b(e),De,{writable:!0,value:function(){document.removeEventListener("visibilitychange",w(b(e),_e)),x(b(e),ve,t.OPEN),it(b(e),"sourceopen"),w(b(e),ye).log(w(b(e),be),"source open")}}),me(b(e),_e,{writable:!0,value:function(){w(b(e),Re).call(b(e))&&(window[gt.DOCUMENT_HAS_SHOWED]||(window[gt.DOCUMENT_HAS_SHOWED]=!0),w(b(e),Be)&&(x(b(e),Be,!1),w(b(e),ye).warn(w(b(e),be),"visibility change trigger sourceopen"),setTimeout((function(){w(b(e),De).call(b(e))}),0)))}}),me(b(e),Re,{
writable:!0,value:function(){return"visible"===document.visibilityState}}),x(b(e),ye,At.getInstance()),e.sourceBuffers=new D,e.activeSourceBuffers=new D,x(b(e),ve,t.CLOSED),x(b(e),Ee,NaN),x(b(e),Ie,!0),x(b(e),Be,!1),void 0===window[gt.DOCUMENT_HAS_SHOWED]&&(window[gt.DOCUMENT_HAS_SHOWED]=w(b(e),Re).call(b(e))),window[gt.DOCUMENT_HAS_SHOWED]||document.addEventListener("visibilitychange",w(b(e),_e)),e[gt.MEDIASOURCE_ATTACH]=w(b(e),Qe),e[gt.MEDIASOURCE_DETACH]=w(b(e),Se),w(b(e),ye).log(w(b(e),be),"MediaSource CREATE, readyState is: ".concat(w(b(e),ve))),e}return y(n,[{key:"readyState",get:function(){return w(this,ve)}},{key:"duration",get:function(){return w(this,ve)===t.CLOSED?NaN:w(this,Ee)},set:function(e){if(!e||e<0)throw new TypeError("Failed to set the 'duration' property on 'BwpMediaSource': The duration provided (".concat(e,") is less than the minimum bound (0)."));if(w(this,ve)!==t.OPEN)throw new DOMException("Failed to set the 'duration' property on 'BwpMediaSource': The BwpMediaSource's readyState is not 'open'.");w(this,we).call(this,e)}},{key:"addSourceBuffer",value:function(e){if(!e||!e.trim())throw new TypeError("Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided is empty");var i=e.match(ge(/(video|audio)\/mp4;.*?codecs="(hev|mp4a|hvc).*?(,(mp4a).*?|)"(;width="(.*?)";height="(.*?)"|)/,{mediaType:1,codec:2,codec2:4,width:6,height:7})),n=null==i?void 0:i.groups;if(!i||!n)throw new DOMException("Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('".concat(e,"') is unsupported."));var r,o=n.mediaType,a=n.codec,s=n.codec2;if(!o||!a)throw new DOMException("Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('".concat(e,"') is unsupported."));if("video"===o&&x(this,Ie,"hev"===a||"hvc"===a),w(this,ye).log(w(this,be),"ready to add SourceBuffer: ".concat(e,", isHEVC: ").concat(w(this,Ie),", readyState: ").concat(this.readyState)),!w(this,Ie))throw new Error("H.264 not implemented");if(w(this,ve)!==t.OPEN)throw new Error("InvalidStateError, BwpMediaSource ready state not open!");r="audio"===o?l.AUDIO:"mp4a"===s?l.MIX:l.VIDEO;var A=new pe(r,w(this,Ce),this,w(this,ke));return this.sourceBuffers.push(A),A.generateTimestampsFlag=!1,A.mode="segments",this.sourceBuffers.dispatchEvent(new Event("addsourcebuffer")),A}},{key:"removeSourceBuffer",value:function(t){if(w(this,ye).log(w(this,be),"remove SourceBuffer: ".concat(t)),-1===this.sourceBuffers.indexOf(t))throw new Error("SourceBuffer not in SourceBuffers");t.updating&&(t.abort(),it(t,"abort"),it(t,"updateend"));var e=this.activeSourceBuffers.indexOf(t);-1!==e&&(this.activeSourceBuffers.remove(e),it(this.activeSourceBuffers,"removesourcebuffer")),this.sourceBuffers.remove(this.sourceBuffers.indexOf(t))}},{key:"endOfStream",value:function(e){if(w(this,ye).log(w(this,be),"endOfStream, isHEVC: ".concat(w(this,Ie),", error: ").concat(e)),w(this,ve)!==t.OPEN)throw new DOMException("Failed to execute 'endOfStream' on 'MediaSource': The MediaSource's readyState is not 'open'.");for(var i=0;i<this.sourceBuffers.length;i++)if(this.sourceBuffers[i].updating)throw new Error("InvalidStateError, some BwoSourceBuffer is updating");w(this,xe).call(this,e),w(this,Ce)[gt.END_OF_STREAM]()}}],[{key:"isTypeSupported",value:function(t){if(0===t.length)return!1;var e=t.match(ge(/(video|audio)\/mp4;.*?codecs="(hev|mp4a|hvc).*?(,(mp4a).*?|)"(;width="(.*?)";height="(.*?)"|)/,{mediaType:1,codec:2,codec2:4,width:6,height:7})),i=null==e?void 0:e.groups;if(e&&i){var n=i.mediaType,r=i.codec,o=parseInt(i.width,10),a=parseInt(i.height,10);if(!n||!r)return!1;if("video"===n&&("hev"===r||"hvc"===r))return!(o>=3840&&a>1080);if("audio"===n&&"mp4a"===r)return!0}return!1}}]),n}(S),Te=y((function t(){f(this,t)}));C(Te,"WASM_PLAYER_ERROR",7e3),C(Te,"CORE_PLAYER_LOAD_ERROR",7001),C(Te,"CORE_PLAYER_MODULE_LOAD_TIMEOUT",7002),C(Te,"CORE_PLAYER_EXCEPTION",7003),C(Te,"WASM_MEMORY_MALLOC_ERROR",7004),C(Te,"CORE_PLAYER_ADD_FUNCTION_ERROR",7005),C(Te,"CORE_PLAYER_JS_ERROR",7006),C(Te,"AUDIO_RENDER_ERROR",7007),C(Te,"AUDIO_CHANNELS_NOT_SUPPORT",7008),C(Te,"TRIGGER_CANPLAY_ERROR",7009),C(Te,"OUT_OF_SYNC",7013);var Fe=Te,Le=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]);function Ne(){try{return"undefined"!=typeof MessageChannel&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(Le)}catch(t){return!1}}var Pe=new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]);function Ue(){try{return WebAssembly.validate(Pe)}catch(t){return!1}}function Oe(){var t,e,i=document.createElement("canvas"),n="",r="";try{(t=i.getContext("webgl")||i.getContext("webgl2")||i.getContext("experimental-webgl"))&&(e=t.getExtension("WEBGL_debug_renderer_info"))&&(n=t.getParameter(e.UNMASKED_VENDOR_WEBGL),r=t.getParameter(e.UNMASKED_RENDERER_WEBGL))}catch(t){return null}return{vendor:n,renderer:r}}var Ge="name",He="version";function Ve(t,e){for(var i,n,r,o,a,s={},l=0;l<e.length;l+=2){i=e[l],r=e[l+1];for(var A=0;A<i.length;A++)if(a=i[A].exec(t)){for(var c=0;c<r.length;c++)o=a[c+1],"object"===p(n=r[c])&&n.length>0?2===n.length?s[n[0]]=n[1]:console.error("[Browser] [rgxMapper] not support arg count!"):s[n]=o||void 0;return s}}return s}var Ye=function(){var t,e,i,n="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:null,r="other",o="other",a="0";if(null!==n){r={Windows:!0,"Mac OS":!0}[i=Ve(n,[[/microsoft (windows) (vista|xp)/i],"",[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[/ ]?([\d.\w ]*)/i,/(windows)[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i],[Ge],[/(win(?=3|9|n)|win 9x )([nt\d.]+)/i],"Windows",[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[Ge,"iOS"]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[Ge,"Mac OS"]]]).name]?i:"other";var s=function(t){var e=Ve(t,[[/edg(?:e|ios|a)?\/([\w.]+)/i],[He,[Ge,"Edge"]],[/\bopr\/([\w.]+)/i],[He,[Ge,"Opera"]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant |iemobile|slim)(?:browser)?[/ ]?([\w.]*)/i,/(ba?idubrowser)[/ ]?([\w.]+)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w.]+)/i,/(weibo)__([\d.]+)/i],[Ge,He],[/(?:\buc? ?browser|(?:juc.+)ucweb)[/ ]?([\w.]+)/i],[He,[Ge,"UCBrowser"]],[/\bqbcore\/([\w.]+)/i],[He,[Ge,"WeChat(Win) Desktop"]],[/micromessenger\/([\w.]+)/i],[He,[Ge,"WeChat"]],[/konqueror\/([\w.]+)/i],[He,[Ge,"Konqueror"]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[He,[Ge,"IE"]],[/yabrowser\/([\w.]+)/i],[He,[Ge,"Yandex"]],[/(avast|avg)\/([\w.]+)/i],[[Ge,"Avast/AVG Secure Browser"],He],[/coc_coc\w+\/([\w.]+)/i],[He,[Ge,"Coc Coc"]],[/dolfin\/([\w.]+)/i],[He,[Ge,"Dolphin"]],[/slbrowser\/([\w.]+)/i],[He,[Ge,"Lenovo"]],[/115browser\/([\w.]+)/i],[He,[Ge,"115 Browser"]],[/\bqihu|(qi?ho?o?|360)browser/i],[[Ge,"360 Browser"]],[/(comodo_dragon)\/([\w.]+)/i],[[Ge,"Comodo Dragon"],He],[/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[/ ]?([\w.]+)/i],[Ge,He],[/(metasr)[/ ]?([\w.]+)/i,/(lbbrowser)/i],[Ge],[/headlesschrome(?:\/([\w.]+)| )/i],[He,[Ge,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w.]+)/i],[[Ge,"Chrome WebView"],He],[/(chrome)\/v?([\w.]+)/i],[[Ge,"Chrome"],He]]);return{browser:{Chrome:!0,Edge:!0}[e.name]?e.name:"other",version:e.version||"0"}}(n);o=s.browser,a=s.version}return{ua:n||"",os:r,browser:o,version:a,gpuInfo:Oe(),hardwareConcurrency:window.navigator.hardwareConcurrency||0,isSIMDSupported:Ue(),isPThreadSupported:Ne(),isSupportHEVC:(null===(t=window.MediaSource)||void 0===t||null===(e=t.isTypeSupported)||void 0===e?void 0:e.call(t,'video/mp4; codecs="hev1.1.6.L120.90"'))||!1}};function ze(t,e,i){return We.apply(this,arguments)}function We(){return(We=R(T().mark((function t(e,i,n){var r,o;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(n,{credentials:"same-origin"});case 2:if((r=t.sent).ok){t.next=5;break}
throw new Error("failed to load wasm file from network");case 5:return t.next=7,r.arrayBuffer();case 7:return o=t.sent,t.next=10,e.put(i,o);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Ze=function(){function t(e,i){f(this,t),C(this,"dbName",void 0),C(this,"storeName",void 0),C(this,"dbPromise",void 0),this.dbName=e,this.storeName=i,this.initDB()}var e,i,n,r,o;return y(t,[{key:"initDB",value:function(t){var e=this;if(!at().indexedDB)throw new Error("Not support indexedDB!");var i=indexedDB.open(this.dbName,t);this.dbPromise=new Promise((function(t,n){i.onsuccess=function(){t(i.result)},i.onupgradeneeded=function(){i.result.objectStoreNames.contains(e.storeName)||i.result.createObjectStore(e.storeName)},i.onerror=function(t){n(t)}}))}},{key:"getObjectStore",value:(o=R(T().mark((function t(e){var i,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dbPromise;case 2:return i=t.sent,n=i.transaction(this.storeName,e),t.abrupt("return",n.objectStore(this.storeName));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"get",value:(r=R(T().mark((function t(e){var i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getObjectStore("readonly");case 2:return i=t.sent,t.abrupt("return",new Promise((function(t,n){var r=i.get(e);r.onsuccess=function(){t(r.result)},r.onerror=n})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"put",value:(n=R(T().mark((function t(e,i){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getObjectStore("readwrite");case 2:return n=t.sent,t.abrupt("return",new Promise((function(t,r){var o=n.put(i,e);o.onsuccess=function(){t(o.result)},o.onerror=r})));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"delete",value:(i=R(T().mark((function t(e){var i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getObjectStore("readwrite");case 2:return i=t.sent,t.abrupt("return",i.delete(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"clear",value:(e=R(T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getObjectStore("readwrite");case 2:return e=t.sent,t.abrupt("return",e.clear());case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}],[{key:"isSupported",value:function(){return!!at().indexedDB}}]),t}(),je=Ze,qe={BROWSER_LIST:{Chrome:{min:80,blackList:[]},Edge:{min:80,blackList:[]}},OS_LIST:{Windows:!0,"Mac OS":!0},BASE_CPU_CORE_NUMBER:4},Je="[Browser]",Ke=At.getInstance(),Xe=navigator.userAgent,$e="bwphevc_supported",ti=!1,ei=null,ii={browser:!1,browserHEVC:!1,cpu:!1,gpu:!1,gpuInfo:null,simd:!1,pthread:!1,hardwareConcurrency:0};function ni(t){var e=JSON.stringify({version:h,ua:Xe,supported:t,supportInfo:ii,cached:ti,date:+new Date});localStorage.setItem($e,e)}function ri(t){setTimeout((function(){var e=ii.simd?u:d;ze(new je("bwphevc","lib"),"libwpengn.wasm",e).then((function(){Ke.log(Je,"Cache done!"),ti=!0,ni(!0),t(!0)})).catch((function(){t(!1)}))}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)}function oi(){if(null!==ei)return ei&&ti;ei=!1;try{if("undefined"==typeof localStorage)return!1}catch(t){return!1}var t=JSON.parse(localStorage.getItem($e)||"null"),e=(null==t?void 0:t.version)===h,i=!(t&&e&&t.ua===Xe),n=window.navigator.hardwareConcurrency>=6?6e3:9e3;return i?(ti=Boolean(t&&t.cached&&e),setTimeout((function(){var t,e,i,n,r,o,a,s,l,A=(t=+new Date,e=Ye(),i=qe.BROWSER_LIST[e.browser],n=!!qe.OS_LIST[e.os]&&!!i&&parseFloat("".concat(e.version))>=i.min,r=!!e.gpuInfo,o=e.hardwareConcurrency>=qe.BASE_CPU_CORE_NUMBER,a=e.isPThreadSupported,s=e.isSupportHEVC,l=!(!(a&&o&&r&&n)||s&&"Edge"!==e.browser),Ke.warn(Je,"supportedChecker end spent: ".concat(+new Date-t,"ms, pass: ").concat(l)),{pass:l,supportInfo:{browser:n,browserHEVC:s,cpu:o,gpu:r,gpuInfo:e.gpuInfo,simd:e.isSIMDSupported,pthread:a,hardwareConcurrency:e.hardwareConcurrency}});ii=A.supportInfo,ni(ei=A.pass),ei&&!ti&&ri((function(){}))}),n)):null!=t&&t.supported?(ei=!0,ii=(null==t?void 0:t.supportInfo)||ii,null!=t&&t.cached?(Ke.log(Je,"SUPPORT! Already cached!"),ti=!0):(Ke.log(Je,"SUPPORT! But not cache done!"),ti=!1,ri((function(){}),n))):Ke.log(Je,"Not SUPPORT!"),Boolean(ei&&ti)}function ai(){return ii}var si,li=y((function t(){var e;f(this,t),C(this,"fps",void 0),C(this,"creationTime",void 0),C(this,"totalVideoFrames",void 0),C(this,"droppedVideoFrames",void 0),this.fps=0,this.totalVideoFrames=0,this.droppedVideoFrames=0,this.creationTime=+new Date-((null===(e=window.performance)||void 0===e?void 0:e.timing.navigationStart)||0)}));!function(t){t.CANPLAY="canplay"}(si||(si={}));var Ai=i(477),ci=i.n(Ai);function hi(){
return ci()('/*!\n * A web media player that implements W3C MSE and MediaElement v4.3.18\n *\n * Copyright 2020 - 2023 Bilibili Inc\n * Released in 6/1/2023, 16:42:40 GMT+0800\n */!function(){var e={61:function(e,t,r){var n=r(698).default;function a(){"use strict";\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=a=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),o=new x(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return P()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=A(o,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(e,r,o),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h={};function p(){}function m(){}function b(){}var _={};c(_,s,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(S([])));v&&v!==r&&i.call(v,s)&&(_=v);var g=b.prototype=p.prototype=Object.create(_);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function r(a,o,s,u){var l=d(e[a],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,u)}))}u(l.arg)}var a;this._invoke=function(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}}function A(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a \'throw\' method")}return h}var n=d(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function S(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=b,c(g,"constructor",b),c(b,"constructor",m),m.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},E(w.prototype),c(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new w(f(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},E(g),c(g,l,"Generator"),c(g,s,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),R(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;R(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e,t,r){var n=r(61)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=t((function e(){n(this,e)}));a(i,"INIT","init"),a(i,"RELOAD","reload"),a(i,"DESTROY","destroy"),a(i,"AUDIO_RENDER_INIT_DONE","audio_render_init_done"),a(i,"PLAY","play"),a(i,"PAUSE","pause"),a(i,"SEEK","seek"),a(i,"PLAYBACK_RATE","playback_rate"),a(i,"PLAYBACK_QUALITY","playback_quality"),a(i,"GET_PLAYBACK_QUALITY","get_playback_quality"),a(i,"RESIZE","resize"),a(i,"FIRST_FRAME","first_frame"),a(i,"SEEKED","seeked"),a(i,"BUFFER_FLUSHED","buffer_flushed"),a(i,"PLAY_END","play_end"),a(i,"SET_AUDIO_TIME","set_audio_time"),a(i,"SET_DECODE_MODE","set_decode_mode"),a(i,"SET_APPEND_WINDOW","set_append_window"),a(i,"SET_PIP_MODE","set_pip_mode"),a(i,"END_OF_STREAM","end_of_stream"),a(i,"RESET_OUTOFSYNC_FRAME_COUNT","reset_outofsync_frame_count"),a(i,"REDRAW_LAST_FRAME","redraw_last_frame"),a(i,"OPENED","opened"),a(i,"TIMEUPDATE","timeupdate"),a(i,"FILL_BUFFER","fill_buffer"),a(i,"RENDER_AUDIO","render_audio"),a(i,"FALLBACK","fallback"),a(i,"LOG","log"),a(i,"ERROR","error"),a(i,"PERFORMANCE","performance");var o,s=i;!function(e){e[e.SEEK_KEY=0]="SEEK_KEY",e[e.SEEK_POS=1]="SEEK_POS"}(o||(o={}));var u=t((function e(){n(this,e)}));a(u,"BWP_SRC_TYPE_VIDEO",1),a(u,"BWP_SRC_TYPE_AUDIO",2),a(u,"BWP_SRC_TYPE_DASH",8),a(u,"BWP_DATA_FLAG_FORMAT",2),a(u,"BWP_MSG_OPEN_DONE",17),a(u,"BWP_MSG_PLAY_POS",49),a(u,"BWP_MSG_PLAY_COMPLETE",66),a(u,"BWP_MSG_PLAY_QULITY",67),a(u,"BWP_MSG_SEEK_DONE",33),a(u,"BWP_DATA_FLAG_NEWPOS",1),a(u,"BWP_LOG_LEVEL_DEBUG",4),a(u,"BWP_LOG_LEVEL_ERR",1);var l=u;function c(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,a)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var i=e.apply(t,r);function o(e){c(i,n,a,o,s,"next",e)}function s(e){c(i,n,a,o,s,"throw",e)}o(void 0)}))}}var d=r(687),h=r.n(d);function p(e,t,r,n){return m.apply(this,arguments)}function m(){return(m=f(h().mark((function e(t,r,n,a){var i,o,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(a,{credentials:"same-origin"});case 2:if((i=e.sent).ok){e.next=5;break}throw new Error("failed to load wasm file from network");case 5:return e.next=7,i.arrayBuffer();case 7:return o=e.sent,e.next=10,t.put(r,o);case 10:return e.next=12,WebAssembly.instantiate(o,n);case 12:return s=e.sent,e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e,t,r,n){return _.apply(this,arguments)}function _(){return(_=f(h().mark((function e(t,r,n,a){var i,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.get(r);case 3:if(o=e.sent){e.next=6;break}throw new Error("get wasm from indexedDB failed");case 6:return e.next=8,WebAssembly.instantiate(o,n);case 8:case 16:i=e.sent,e.next=20;break;case 11:if(e.prev=11,e.t0=e.catch(0),!a){e.next=19;break}return e.next=16,p(t,r,n,a);case 19:throw e.t0;case 20:return e.abrupt("return",i);case 21:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}var y=t((function e(){n(this,e)}));a(y,"WASM_PLAYER_ERROR",7e3),a(y,"CORE_PLAYER_LOAD_ERROR",7001),a(y,"CORE_PLAYER_MODULE_LOAD_TIMEOUT",7002),a(y,"CORE_PLAYER_EXCEPTION",7003),a(y,"WASM_MEMORY_MALLOC_ERROR",7004),a(y,"CORE_PLAYER_ADD_FUNCTION_ERROR",7005),a(y,"CORE_PLAYER_JS_ERROR",7006),a(y,"AUDIO_RENDER_ERROR",7007),a(y,"AUDIO_CHANNELS_NOT_SUPPORT",7008),a(y,"TRIGGER_CANPLAY_ERROR",7009),a(y,"OUT_OF_SYNC",7013);var v,g,E,w,A,T,R,x=y,S=\'"use strict";var Module={};function threadPrintErr(){var text=Array.prototype.slice.call(arguments).join(" ");console.error(text)}function threadAlert(){var text=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:text,threadId:Module["_pthread_self"]()})}var err=threadPrintErr;self.alert=threadAlert;Module["instantiateWasm"]=function(info,receiveInstance){var instance=new WebAssembly.Instance(Module["wasmModule"],info);receiveInstance(instance);Module["wasmModule"]=null;return instance.exports};self.onmessage=function(e){try{if(e.data.cmd==="load"){Module["wasmModule"]=e.data.wasmModule;Module["wasmMemory"]=e.data.wasmMemory;Module["buffer"]=Module["wasmMemory"].buffer;Module["ENVIRONMENT_IS_PTHREAD"]=true;if(typeof e.data.urlOrBlob==="string"){importScripts(e.data.urlOrBlob)}else{var objectUrl=URL.createObjectURL(e.data.urlOrBlob);importScripts(objectUrl);URL.revokeObjectURL(objectUrl)}WasmPlayerModuleFactory(Module).then(function(instance){Module=instance})}else if(e.data.cmd==="run"){Module["__performance_now_clock_drift"]=performance.now()-e.data.time;Module["__emscripten_thread_init"](e.data.threadInfoStruct,/*isMainBrowserThread=*/0,/*isMainRuntimeThread=*/0);Module["establishStackSpace"]();Module["PThread"].receiveObjectTransfer(e.data);Module["PThread"].threadInit();try{var result=Module["invokeEntryPoint"](e.data.start_routine,e.data.arg);if(Module["keepRuntimeAlive"]()){Module["PThread"].setExitStatus(result)}else{Module["__emscripten_thread_exit"](result)}}catch(ex){if(ex!="unwind"){if(ex instanceof Module["ExitStatus"]){if(Module["keepRuntimeAlive"]()){}else{Module["__emscripten_thread_exit"](ex.status)}}else{throw ex}}}}else if(e.data.cmd==="cancel"){if(Module["_pthread_self"]()){Module["__emscripten_thread_exit"](-1)}/*PTHREAD_CANCELED*/postMessage({"cmd":"cancelDone"})}else if(e.data.target==="setimmediate"){}else if(e.data.cmd==="processThreadQueue"){if(Module["_pthread_self"]()){Module["_emscripten_current_thread_process_queued_calls"]()}}else{err("worker.js received unknown command "+e.data.cmd);err(e.data)}}catch(ex){err("worker.js onmessage() captured an uncaught exception: "+ex);if(ex&&ex.stack)err(ex.stack);throw ex}};\\n\',P={alpha:!1,antialias:!1,depth:!1,stencil:!1,premultipliedAlpha:!1,powerPreference:"low-power"},O=function(){function e(t,r){var i=this;if(n(this,e),a(this,"width",void 0),a(this,"height",void 0),a(this,"canvas",void 0),a(this,"gl",void 0),a(this,"texCoordBuffer",void 0),a(this,"textureCoordAttribute",void 0),a(this,"yTexture",void 0),a(this,"uTexture",void 0),a(this,"vTexture",void 0),a(this,"lastFrameData",void 0),a(this,"isContextLost",void 0),a(this,"webglcontextlostHandler",(function(e){e.preventDefault(),console.warn("[VideoRenderer] webgl context lost"),i.isContextLost=!0})),a(this,"webglcontextrestoredHandler",(function(e){e.preventDefault(),console.warn("[VideoRenderer] webgl context restored"),i.clear(),i.initGL(),i.isContextLost=!1})),this.canvas=t,this.texCoordBuffer=null,this.gl=this.canvas.getContext("webgl",r||P),this.isContextLost=!1,!this.gl)throw new Error("[VideoRender] WebGL not supported.");this.initGL(),this.initEventListener()}return t(e,[{key:"initGL",value:function(){var e=this.gl;e.enable(e.CULL_FACE),e.cullFace(e.BACK),e.pixelStorei(e.UNPACK_ALIGNMENT,1);var t=this.compileShader("\\n    attribute mediump vec4 aVertexPosition;\\n    attribute vec2 aTextureCoord;\\n    varying highp vec2 vTextureCoord;\\n    void main() {\\n        gl_Position = aVertexPosition;\\n        vTextureCoord = aTextureCoord;\\n    }\\n",e.VERTEX_SHADER),r=this.compileShader("\\n    precision mediump float;\\n    varying lowp vec2 vTextureCoord;\\n    uniform sampler2D YTexture;\\n    uniform sampler2D UTexture;\\n    uniform sampler2D VTexture;\\n\\n    const vec3 offset = vec3(-0.0627451017, -0.501960814, -0.501960814);\\n\\n    const mat3 YUV2RGB = mat3(\\n        1.1644,    1.1644,    1.1644,\\n       -0.0000,   -0.2132,    2.1124,\\n        1.7927,   -0.5330,    0.0000\\n    );\\n\\n    void main()\\n    {\\n        mediump vec3 yuv;\\n        lowp vec3 rgb;\\n\\n        yuv.x = texture2D(YTexture, vTextureCoord).r;\\n        yuv.y = texture2D(UTexture, vTextureCoord).r;\\n        yuv.z = texture2D(VTexture, vTextureCoord).r;\\n\\n        yuv += offset;\\n        rgb = YUV2RGB * yuv;\\n\\n        gl_FragColor = vec4(rgb, 1);\\n    }\\n",e.FRAGMENT_SHADER),n=this.createProgram(t,r),a=e.getAttribLocation(n,"aVertexPosition");e.enableVertexAttribArray(a),this.textureCoordAttribute=e.getAttribLocation(n,"aTextureCoord"),e.enableVertexAttribArray(this.textureCoordAttribute);var i=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,i),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),e.STATIC_DRAW),e.vertexAttribPointer(a,3,e.FLOAT,!1,0,0),this.texCoordBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.texCoordBuffer),e.bufferData(e.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),e.STATIC_DRAW),e.vertexAttribPointer(this.textureCoordAttribute,2,e.FLOAT,!1,0,0),this.yTexture=this.createTexture(),this.uTexture=this.createTexture(),this.vTexture=this.createTexture(),this.bindTexture(this.yTexture,n,"YTexture",0),this.bindTexture(this.uTexture,n,"UTexture",1),this.bindTexture(this.vTexture,n,"VTexture",2)}},{key:"renderFrame",value:function(e,t,r,n,a,i,o){if(!this.gl)throw new Error("[VideoRender] Render frame failed due to WebGL not supported.");if(!this.isContextLost){var s=this.gl;this.width===i&&this.height===o||(this.width=i,this.height=o,this.uploadTexture(this.yTexture,t,o,null),this.uploadTexture(this.uTexture,a,o/2,null),this.uploadTexture(this.vTexture,a,o/2,null),this.updateVideoSize(i,o,t)),this.uploadTexture(this.yTexture,t,o,e,!0),this.uploadTexture(this.uTexture,a,o/2,r,!0),this.uploadTexture(this.vTexture,a,o/2,n,!0),s.drawArrays(s.TRIANGLE_STRIP,0,4),this.lastFrameData=null,this.lastFrameData={dataY:e,yStride:t,dataU:r,dataV:n,uvStride:a,width:i,height:o}}}},{key:"redrawLastFrame",value:function(){this.lastFrameData&&this.renderFrame(this.lastFrameData.dataY,this.lastFrameData.yStride,this.lastFrameData.dataU,this.lastFrameData.dataV,this.lastFrameData.uvStride,this.lastFrameData.width,this.lastFrameData.height)}},{key:"getLastFrameData",value:function(){return this.lastFrameData}},{key:"clear",value:function(){var e=this.gl;e.viewport(0,0,this.canvas.width,this.canvas.height),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),this.width=0,this.height=0}},{key:"destroy",value:function(){this.lastFrameData=null,this.uninitEventListener()}},{key:"compileShader",value:function(e,t){var r=this.gl,n=r.createShader(t);if(r.shaderSource(n,e),r.compileShader(n),!r.getShaderParameter(n,r.COMPILE_STATUS))throw r.deleteShader(n),console.error(r.getShaderInfoLog(n)),new Error("[VideoRender] could not compile shader");return n}},{key:"createProgram",value:function(e,t){var r=this.gl,n=r.createProgram();if(r.attachShader(n,e),r.attachShader(n,t),r.linkProgram(n),r.useProgram(n),!r.getProgramParameter(n,r.LINK_STATUS))throw console.error(r.getProgramInfoLog(n)),new Error("[VideoRender] Shader link failed.");return n}},{key:"createTexture",value:function(){var e=this.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}},{key:"bindTexture",value:function(e,t,r,n){var a=this.gl;a.activeTexture([a.TEXTURE0,a.TEXTURE1,a.TEXTURE2][n]),a.bindTexture(a.TEXTURE_2D,e),a.uniform1i(a.getUniformLocation(t,r),n)}},{key:"uploadTexture",value:function(e,t,r,n,a){var i=this.gl;i.bindTexture(i.TEXTURE_2D,e),a?i.texSubImage2D(i.TEXTURE_2D,0,0,0,t,r,i.LUMINANCE,i.UNSIGNED_BYTE,n):i.texImage2D(i.TEXTURE_2D,0,i.LUMINANCE,t,r,0,i.LUMINANCE,i.UNSIGNED_BYTE,n)}},{key:"updateVideoSize",value:function(e,t,r){var n=this.gl;if(r>0){var a=new Float32Array([1,0,0,0,1,1,0,1]),i=1*e/r;a[0]=i,a[4]=i,n.bindBuffer(n.ARRAY_BUFFER,this.texCoordBuffer),n.bufferData(n.ARRAY_BUFFER,a,n.STATIC_DRAW),n.vertexAttribPointer(this.textureCoordAttribute,2,n.FLOAT,!1,0,0)}n.viewport(0,0,this.canvas.width,this.canvas.height)}},{key:"initEventListener",value:function(){this.canvas.addEventListener("webglcontextlost",this.webglcontextlostHandler),this.canvas.addEventListener("webglcontextrestored",this.webglcontextrestoredHandler)}},{key:"uninitEventListener",value:function(){this.canvas.removeEventListener("webglcontextlost",this.webglcontextlostHandler),this.canvas.removeEventListener("webglcontextrestored",this.webglcontextrestoredHandler)}}]),e}();!function(e){e.CLOSED="closed",e.OPEN="open",e.ENDED="ended"}(v||(v={})),function(e){e.NETWORK="network",e.DECODE="decode"}(g||(g={})),function(e){e[e.NETWORK_EMPTY=0]="NETWORK_EMPTY",e[e.NETWORK_IDLE=1]="NETWORK_IDLE",e[e.NETWORK_LOADING=2]="NETWORK_LOADING",e[e.NETWORK_NO_SOURCE=3]="NETWORK_NO_SOURCE"}(E||(E={})),function(e){e[e.HAVE_NOTHING=0]="HAVE_NOTHING",e[e.HAVE_METADATA=1]="HAVE_METADATA",e[e.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",e[e.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",e[e.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(w||(w={})),function(e){e[e.MEDIA_ERR_ABORTED=1]="MEDIA_ERR_ABORTED",e[e.MEDIA_ERR_NETWORK=2]="MEDIA_ERR_NETWORK",e[e.MEDIA_ERR_DECODE=3]="MEDIA_ERR_DECODE",e[e.MEDIA_ERR_SRC_NOT_SUPPORTED=4]="MEDIA_ERR_SRC_NOT_SUPPORTED"}(A||(A={})),function(e){e.SEGMENTS="segments",e.SEQUENCE="sequence"}(T||(T={})),function(e){e.AUDIO="audio",e.VIDEO="video",e.MIX="mix"}(R||(R={}));var M=function(){var e={};return"undefined"!=typeof window&&(e=window),"undefined"!=typeof self&&(e=self),e},D=function(){function e(t,r){n(this,e),a(this,"dbName",void 0),a(this,"storeName",void 0),a(this,"dbPromise",void 0),this.dbName=t,this.storeName=r,this.initDB()}var r,i,o,s,u;return t(e,[{key:"initDB",value:function(e){var t=this;if(!M().indexedDB)throw new Error("Not support indexedDB!");var r=indexedDB.open(this.dbName,e);this.dbPromise=new Promise((function(e,n){r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(){r.result.objectStoreNames.contains(t.storeName)||r.result.createObjectStore(t.storeName)},r.onerror=function(e){n(e)}}))}},{key:"getObjectStore",value:(u=f(h().mark((function e(t){var r,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.dbPromise;case 2:return r=e.sent,n=r.transaction(this.storeName,t),e.abrupt("return",n.objectStore(this.storeName));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"get",value:(s=f(h().mark((function e(t){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getObjectStore("readonly");case 2:return r=e.sent,e.abrupt("return",new Promise((function(e,n){var a=r.get(t);a.onsuccess=function(){e(a.result)},a.onerror=n})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"put",value:(o=f(h().mark((function e(t,r){var n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getObjectStore("readwrite");case 2:return n=e.sent,e.abrupt("return",new Promise((function(e,a){var i=n.put(r,t);i.onsuccess=function(){e(i.result)},i.onerror=a})));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"delete",value:(i=f(h().mark((function e(t){var r;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getObjectStore("readwrite");case 2:return r=e.sent,e.abrupt("return",r.delete(t));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clear",value:(r=f(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getObjectStore("readwrite");case 2:return t=e.sent,e.abrupt("return",t.clear());case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}],[{key:"isSupported",value:function(){return!!M().indexedDB}}]),e}(),F=D;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var I=!1,C="https://s1.hdslb.com/bfs/static/bwphevc/libwpengn-4.3.18.wasm",U="https://s1.hdslb.com/bfs/static/bwphevc/libwpengn-simd-4.3.18.wasm";var N,B=function(){var e=I;try{var t;e="1"===(null===(t=M().localStorage)||void 0===t?void 0:t.getItem("_bwphevc_debug_"))}catch(e){}return e}();!function(e){e.TRACE="trace",e.DEBUG="debug",e.INFO="info",e.WARN="warn",e.ERROR="error"}(N||(N={}));var W=function(){function e(){n(this,e)}return t(e,[{key:"proxyLog",value:function(t,r){var n;B&&(n=console)[t].apply(n,["[".concat(+new Date-e.startTime,"]")].concat(L(r)))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.proxyLog(N.INFO,t)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.proxyLog(N.TRACE,t)}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.proxyLog(N.DEBUG,t)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.proxyLog(N.WARN,t)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.proxyLog(N.ERROR,t)}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e,e.startTime=+new Date),e.instance}}]),e}();a(W,"instance",void 0),a(W,"startTime",void 0);var Y,G=\'\\nvar WasmPlayerModuleFactory = (function() {\\n  var _scriptDir = typeof document !== \\\'undefined\\\' && document.currentScript ? document.currentScript.src : undefined;\\n  \\n  return (\\nfunction(WasmPlayerModuleFactory) {\\n  WasmPlayerModuleFactory = WasmPlayerModuleFactory || {};\\n\\n\\nfunction aa(){c.buffer!=g&&k(c.buffer);return ba}function m(){c.buffer!=g&&k(c.buffer);return ca}function p(){c.buffer!=g&&k(c.buffer);return da}function ea(){c.buffer!=g&&k(c.buffer);return fa}var t;t||(t=typeof WasmPlayerModuleFactory !== \\\'undefined\\\' ? WasmPlayerModuleFactory : {});var u,v;t.ready=new Promise(function(a,b){u=a;v=b});var w={},x;for(x in t)t.hasOwnProperty(x)&&(w[x]=t[x]);function y(a,b){throw b;}var z=t.ENVIRONMENT_IS_PTHREAD||!1,B="";function ha(a){return t.locateFile?t.locateFile(a,B):B+a}var C;\\nB=self.location.href;_scriptDir&&(B=_scriptDir);0!==B.indexOf("blob:")?B=B.substr(0,B.replace(/[?#].*/,"").lastIndexOf("/")+1):B="";C=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)};var ia=t.print||console.log.bind(console),D=t.printErr||console.warn.bind(console);for(x in w)w.hasOwnProperty(x)&&(t[x]=w[x]);w=null;t.quit&&(y=t.quit);var ja=[],E,F;t.wasmBinary&&(F=t.wasmBinary);var noExitRuntime=t.noExitRuntime||!0;\\n"object"!==typeof WebAssembly&&G("no native wasm support detected");var c,ka,H=!1,I;function la(a){var b=new TextDecoder(a);this.decode=function(d){d.buffer instanceof SharedArrayBuffer&&(d=new Uint8Array(d));return b.decode.call(b,d)}}var ma="undefined"!==typeof TextDecoder?new la("utf8"):void 0;\\nfunction na(a,b,d){b>>>=0;var e=b+d;for(d=b;a[d>>>0]&&!(d>=e);)++d;if(16<d-b&&a.subarray&&ma)return ma.decode(a.subarray(b>>>0,d>>>0));for(e="";b<d;){var f=a[b++>>>0];if(f&128){var h=a[b++>>>0]&63;if(192==(f&224))e+=String.fromCharCode((f&31)<<6|h);else{var n=a[b++>>>0]&63;f=224==(f&240)?(f&15)<<12|h<<6|n:(f&7)<<18|h<<12|n<<6|a[b++>>>0]&63;65536>f?e+=String.fromCharCode(f):(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e}\\nfunction J(a){return(a>>>=0)?na(m(),a,void 0):""}"undefined"!==typeof TextDecoder&&new la("utf-16le");var g,ba,ca,da,fa;z&&(g=t.buffer);function k(a){g=a;t.HEAP8=ba=new Int8Array(a);t.HEAP16=new Int16Array(a);t.HEAP32=da=new Int32Array(a);t.HEAPU8=ca=new Uint8Array(a);t.HEAPU16=new Uint16Array(a);t.HEAPU32=new Uint32Array(a);t.HEAPF32=new Float32Array(a);t.HEAPF64=fa=new Float64Array(a)}var oa=t.INITIAL_MEMORY||167772160;\\nif(z)c=t.wasmMemory,g=t.buffer;else if(t.wasmMemory)c=t.wasmMemory;else if(c=new WebAssembly.Memory({initial:oa/65536,maximum:65536,shared:!0}),!(c.buffer instanceof SharedArrayBuffer))throw D("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),Error("bad memory");c&&(g=c.buffer);oa=g.byteLength;k(g);\\nvar K,pa=[],L=[],qa=[],ra=[],sa=!1,M=0;function N(){return noExitRuntime||0<M}function ta(){var a=t.preRun.shift();pa.unshift(a)}var O=0,ua=null,P=null;t.preloadedImages={};t.preloadedAudios={};function G(a){if(z)postMessage({cmd:"onAbort",arg:a});else if(t.onAbort)t.onAbort(a);a="Aborted("+a+")";D(a);H=!0;I=1;a=new WebAssembly.RuntimeError(a+". Build with -s ASSERTIONS=1 for more info.");v(a);throw a;}function va(){return Q.startsWith("data:application/octet-stream;base64,")}var wa=0;\\nfunction xa(a){return function(){if(H)throw"program has already aborted!";try{return a.apply(null,arguments)}catch(b){if(H||1<wa||"longjmp"===b)throw b;G("unhandled exception: "+[b,b.stack])}}}function ya(){var a=K.get,b={};K.get=function(d){var e=a.call(K,d),f=b[d];f&&f.Aa===e||(f=b[d]={Aa:e,Qa:xa(e)});return f.Qa}}var Q;Q="libwpengn.wasm";va()||(Q=ha(Q));\\nfunction za(){var a=Q;try{if(a==Q&&F)return new Uint8Array(F);if(C)return C(a);throw"both async and sync fetching of the wasm failed";}catch(b){G(b)}}function Aa(){return F||"function"!==typeof fetch?Promise.resolve().then(function(){return za()}):fetch(Q,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at \\\'"+Q+"\\\'";return a.arrayBuffer()}).catch(function(){return za()})}var Ba={};\\nfunction R(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b(t);else{var d=b.Aa;"number"===typeof d?void 0===b.pa?S(d)():S(d)(b.pa):d(void 0===b.pa?null:b.pa)}}}function Ca(a){var b=Da();a=a();Ea(b);return a}\\nfunction Fa(a,b){if(0>=a||a>aa().length||a&1||0>b)return-28;if(0==b)return 0;2147483647<=b&&(b=Infinity);var d=Atomics.load(p(),Ga>>2),e=0;if(d==a&&Atomics.compareExchange(p(),Ga>>2,d,0)==d&&(--b,e=1,0>=b))return 1;a=Atomics.notify(p(),a>>2,b);if(0<=a)return a+e;throw"Atomics.notify returned an unexpected value "+a;}t._emscripten_futex_wake=Fa;function Ha(a){var b=T.ma[a];b&&(p()[a>>2>>>0]=0,T.ua(b.worker))}function Ia(a){U(a)}t._exit=Ia;function V(a){a instanceof Ja||"unwind"==a||y(1,a)}\\nvar T={na:[],ra:[],za:[],Xa:function(){},Ia:function(){T.receiveObjectTransfer=T.La;T.threadInit=T.Da;T.setExitStatus=T.Na},ma:{},Na:function(a){I=a},xa:function(){for(var a in T.ma){var b=T.ma[a];b&&b.worker&&T.ua(b.worker)}for(a=0;a<T.na.length;++a)T.na[a].terminate();T.na=[]},ua:function(a){T.Ma(function(){delete T.ma[a.oa.ya];T.na.push(a);T.ra.splice(T.ra.indexOf(a),1);Ka(a.oa.ya);a.oa=void 0})},Ma:function(a){p()[La>>>2]=0;try{a()}finally{p()[La>>>2]=1}},La:function(){},Da:function(){for(var a in T.za)T.za[a]()},\\nJa:function(a,b){a.onmessage=function(d){d=d.data;var e=d.cmd;a.oa&&(T.Fa=a.oa.ya);if(d.targetThread&&d.targetThread!=W()){var f=T.ma[d.ab];f?f.worker.postMessage(d,d.transferList):D(\\\'Internal error! Worker sent a message "\\\'+e+\\\'" to target pthread \\\'+d.targetThread+", but that thread no longer exists!")}else if("processQueuedMainThreadWork"===e)Ma();else if("spawnThread"===e)Na(d);else if("cleanupThread"===e)Ha(d.thread);else if("killThread"===e)d=d.thread,p()[d>>2>>>0]=0,e=T.ma[d],delete T.ma[d],\\ne.worker.terminate(),Ka(d),T.ra.splice(T.ra.indexOf(e.worker),1),e.worker.oa=void 0;else if("cancelThread"===e)T.ma[d.thread].worker.postMessage({cmd:"cancel"});else if("loaded"===e)a.loaded=!0,b&&b(a),a.qa&&(a.qa(),delete a.qa);else if("print"===e)ia("Thread "+d.threadId+": "+d.text);else if("printErr"===e)D("Thread "+d.threadId+": "+d.text);else if("alert"===e)alert("Thread "+d.threadId+": "+d.text);else if("detachedExit"===e)T.ua(a);else if("cancelDone"===e)T.ua(a);else if("setimmediate"===d.target)a.postMessage(d);\\nelse if("onAbort"===e){if(t.onAbort)t.onAbort(d.arg)}else D("worker sent an unknown command "+e);T.Fa=void 0};a.onerror=function(d){D("pthread sent an error! "+d.filename+":"+d.lineno+": "+d.message);throw d;};a.postMessage({cmd:"load",urlOrBlob:t.mainScriptUrlOrBlob||_scriptDir,wasmMemory:c,wasmModule:ka})},Ea:function(){var a=ha("libwpengn.worker.js");T.na.push(new Worker(a))},Ha:function(){0==T.na.length&&(T.Ea(),T.Ja(T.na[0]));return T.na.pop()}};\\nt.establishStackSpace=function(){var a=W(),b=p()[a+44>>2>>>0];a=p()[a+48>>2>>>0];Oa(b,b-a);Ea(b)};function Pa(a){if(z)return X(1,0,a);try{U(a)}catch(b){V(b)}}var Y=[];function S(a){var b=Y[a];b||(a>=Y.length&&(Y.length=a+1),Y[a]=b=K.get(a));return b}t.invokeEntryPoint=function(a,b){return S(a)(b)};var Qa;Qa=z?function(){return performance.now()-t.__performance_now_clock_drift}:function(){return performance.now()};\\nfunction Na(a){var b=T.Ha();if(!b)return 6;T.ra.push(b);var d=T.ma[a.wa]={worker:b,ya:a.wa};b.oa=d;var e={cmd:"run",start_routine:a.Oa,arg:a.pa,threadInfoStruct:a.wa};b.qa=function(){e.time=performance.now();b.postMessage(e,a.Pa)};b.loaded&&(b.qa(),delete b.qa);return 0}var Ra=[null,[],[]],Sa={};function Ta(a,b,d){return z?X(2,1,a,b,d):0}function Ua(a,b,d){return z?X(3,1,a,b,d):0}function Va(a,b,d){if(z)return X(4,1,a,b,d)}\\nfunction X(a,b){var d=arguments.length-2,e=arguments;return Ca(function(){for(var f=Wa(8*d),h=f>>3,n=0;n<d;n++){var l=e[2+n];ea()[h+n>>>0]=l}return Xa(a,d,f,b)})}var Ya=[];\\nfunction Za(a,b,d,e){Ca(function(){var f=Wa(12),h=0;if(b){for(var n=h=0;n<b.length;++n){var l=b.charCodeAt(n);55296<=l&&57343>=l&&(l=65536+((l&1023)<<10)|b.charCodeAt(++n)&1023);127>=l?++h:h=2047>=l?h+2:65535>=l?h+3:h+4}var r=h+1;h=$a(r);n=m();l=h>>>0;if(0<r){r=l+r-1;for(var A=0;A<b.length;++A){var q=b.charCodeAt(A);if(55296<=q&&57343>=q){var ob=b.charCodeAt(++A);q=65536+((q&1023)<<10)|ob&1023}if(127>=q){if(l>=r)break;n[l++>>>0]=q}else{if(2047>=q){if(l+1>=r)break;n[l++>>>0]=192|q>>6}else{if(65535>=\\nq){if(l+2>=r)break;n[l++>>>0]=224|q>>12}else{if(l+3>=r)break;n[l++>>>0]=240|q>>18;n[l++>>>0]=128|q>>12&63}n[l++>>>0]=128|q>>6&63}n[l++>>>0]=128|q&63}}n[l>>>0]=0}}p()[f>>2>>>0]=h;p()[f+4>>2>>>0]=d;p()[f+8>>2>>>0]=e;ab(0,a,657457152,0,h,f)})}var bb=[0,"undefined"!==typeof document?document:0,"undefined"!==typeof window?window:0];function cb(a){a=2<a?J(a):a;return bb[a]||("undefined"!==typeof document?document.querySelector(a):void 0)}\\nfunction db(a,b,d){var e=cb(a);if(!e)return-4;e.ta&&(p()[e.ta>>2>>>0]=b,p()[e.ta+4>>2>>>0]=d);if(e.Ca||!e.Sa)e.Ca&&(e=e.Ca),a=!1,e.sa&&e.sa.va&&(a=e.sa.va.getParameter(2978),a=0===a[0]&&0===a[1]&&a[2]===e.width&&a[3]===e.height),e.width=b,e.height=d,a&&e.sa.va.viewport(0,0,b,d);else return e.ta?(e=p()[e.ta+8>>2>>>0],a=a?J(a):"",Za(e,a,b,d),1):-4;return 0}function eb(a,b,d){return z?X(5,1,a,b,d):db(a,b,d)}function fb(a){if(!sa&&!H)try{if(a(),z&&!N())try{z?gb(I):U(I)}catch(b){V(b)}}catch(b){V(b)}}\\nfunction hb(a,b){a.Ba||(a.Ba=a.getContext,a.getContext=function(e,f){f=a.Ba(e,f);return"webgl"==e==f instanceof WebGLRenderingContext?f:null});var d=a.getContext("webgl",b);return d?ib(d,b):0}function ib(a,b){var d=$a(8);p()[d+4>>2>>>0]=W();b={Wa:d,attributes:b,version:b.Ka,va:a};a.canvas&&(a.canvas.sa=b);return d}var jb=["default","low-power","high-performance"];function kb(a){return z?X(6,1,a):0}function lb(a,b,d,e){if(z)return X(7,1,a,b,d,e);a=Sa.Va(a);b=Sa.Ta(a,b,d);p()[e>>2>>>0]=b;return 0}\\nfunction mb(a,b,d,e,f){if(z)return X(8,1,a,b,d,e,f)}function nb(a,b,d,e){if(z)return X(9,1,a,b,d,e);for(var f=0,h=0;h<d;h++){var n=p()[b>>2>>>0],l=p()[b+4>>2>>>0];b+=8;for(var r=0;r<l;r++){var A=m()[n+r>>>0],q=Ra[a];0===A||10===A?((1===a?ia:D)(na(q,0)),q.length=0):q.push(A)}f+=l}p()[e>>2>>>0]=f;return 0}\\nvar pb=[null,Pa,Ta,Ua,Va,eb,kb,lb,mb,nb],tb={b:function(a,b,d,e){G("Assertion failed: "+J(a)+", at: "+[b?J(b):"unknown filename",d,e?J(e):"unknown function"])},y:function(a){qb(a,!1,1);T.Da()},u:function(a){z?postMessage({cmd:"cleanupThread",thread:a}):Ha(a)},k:function(a,b,d,e){if("undefined"===typeof SharedArrayBuffer)return D("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var f=[];if(z&&0===f.length)return rb(687865856,a,b,d,e);a={Oa:d,wa:a,pa:e,Pa:f};\\nreturn z?(a.Ra="spawnThread",postMessage(a,f),0):Na(a)},x:function(){postMessage({cmd:"detachedExit"})},h:Ta,s:Ua,t:Va,D:function(){return 2097152},m:function(a,b){if(a==b)postMessage({cmd:"processQueuedMainThreadWork"});else if(z)postMessage({targetThread:a,cmd:"processThreadQueue"});else{a=(a=T.ma[a])&&a.worker;if(!a)return;a.postMessage({cmd:"processThreadQueue"})}return 1},q:function(){G("")},E:function(a,b){if(0===a)a=Date.now();else if(1===a||4===a)a=Qa();else return p()[sb()>>2>>>0]=28,-1;\\np()[b>>2>>>0]=a/1E3|0;p()[b+4>>2>>>0]=a%1E3*1E6|0;return 0},l:function(){},f:function(){},d:function(a,b,d){if(0>=a||a>aa().length||a&1)return-28;a=Atomics.wait(p(),a>>2,b,d);if("timed-out"===a)return-73;if("not-equal"===a)return-6;if("ok"===a)return 0;throw"Atomics.wait returned an unexpected value "+a;},c:Fa,e:Qa,o:function(a,b,d){m().copyWithin(a>>>0,b>>>0,b+d>>>0)},A:function(a,b,d){Ya.length=b;d>>=3;for(var e=0;e<b;e++)Ya[e]=ea()[d+e>>>0];return(0>a?Ba[-a-1]:pb[a]).apply(null,Ya)},p:function(a){var b=\\nm().length;a>>>=0;if(a<=b||4294901760<a)return!1;for(var d=1;4>=d;d*=2){var e=b*(1+.2/d);e=Math.min(e,a+100663296);e=Math.max(a,e);0<e%65536&&(e+=65536-e%65536);a:{try{c.grow(Math.min(4294901760,e)-g.byteLength+65535>>>16);k(c.buffer);var f=1;break a}catch(h){}f=void 0}if(f)return!0}return!1},B:function(a,b,d){return cb(a)?db(a,b,d):eb(a,b,d)},g:function(){},z:function(a,b,d){M+=1;return setTimeout(function(){--M;fb(function(){S(a)(d)})},b)},v:function(){throw"unwind";},C:function(a,b){b>>=2;var d=\\np()[b+6>>>0];b={alpha:!!p()[b>>>0],depth:!!p()[b+1>>>0],stencil:!!p()[b+2>>>0],antialias:!!p()[b+3>>>0],premultipliedAlpha:!!p()[b+4>>>0],preserveDrawingBuffer:!!p()[b+5>>>0],powerPreference:jb[d],failIfMajorPerformanceCaveat:!!p()[b+7>>>0],Ka:p()[b+8>>>0],Ya:p()[b+9>>>0],Ua:p()[b+10>>>0],Ga:p()[b+11>>>0],Za:p()[b+12>>>0],$a:p()[b+13>>>0]};a=cb(a);return!a||b.Ga?0:hb(a,b)},w:Ia,j:kb,r:lb,n:mb,i:nb,a:c||t.wasmMemory};\\n(function(){function a(f,h){f=f.exports;var n={},l;for(l in f){var r=f[l];n[l]="function"===typeof r?xa(r):r}t.asm=n;T.za.push(t.asm.$);K=t.asm.W;L.unshift(t.asm.F);ya();ka=h;z||(O--,t.monitorRunDependencies&&t.monitorRunDependencies(O),0==O&&(null!==ua&&(clearInterval(ua),ua=null),P&&(h=P,P=null,h())))}function b(f){a(f.instance,f.module)}function d(f){return Aa().then(function(h){return WebAssembly.instantiate(h,e)}).then(function(h){return h}).then(f,function(h){D("failed to asynchronously prepare wasm: "+\\nh);G(h)})}var e={a:tb};z||(O++,t.monitorRunDependencies&&t.monitorRunDependencies(O));if(t.instantiateWasm)try{return t.instantiateWasm(e,a)}catch(f){return D("Module.instantiateWasm callback failed with error: "+f),!1}(function(){return F||"function"!==typeof WebAssembly.instantiateStreaming||va()||"function"!==typeof fetch?d(b):fetch(Q,{credentials:"same-origin"}).then(function(f){return WebAssembly.instantiateStreaming(f,e).then(b,function(h){D("wasm streaming compile failed: "+h);D("falling back to ArrayBuffer instantiation");\\nreturn d(b)})})})().catch(v);return{}})();t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.F).apply(null,arguments)};t._bwpInit=function(){return(t._bwpInit=t.asm.G).apply(null,arguments)};t._bwpUninit=function(){return(t._bwpUninit=t.asm.H).apply(null,arguments)};t._bwpOpen=function(){return(t._bwpOpen=t.asm.I).apply(null,arguments)};t._bwpMainProc=function(){return(t._bwpMainProc=t.asm.J).apply(null,arguments)};\\nt._bwpFillBuff=function(){return(t._bwpFillBuff=t.asm.K).apply(null,arguments)};t._bwpSetAudio=function(){return(t._bwpSetAudio=t.asm.L).apply(null,arguments)};t._bwpSeek=function(){return(t._bwpSeek=t.asm.M).apply(null,arguments)};t._bwpRange=function(){return(t._bwpRange=t.asm.N).apply(null,arguments)};t._bwpPlay=function(){return(t._bwpPlay=t.asm.O).apply(null,arguments)};t._bwpPause=function(){return(t._bwpPause=t.asm.P).apply(null,arguments)};\\nt._bwpSpeed=function(){return(t._bwpSpeed=t.asm.Q).apply(null,arguments)};t._bwpFlush=function(){return(t._bwpFlush=t.asm.R).apply(null,arguments)};t._bwpGetTime=function(){return(t._bwpGetTime=t.asm.S).apply(null,arguments)};t._bwpQuality=function(){return(t._bwpQuality=t.asm.T).apply(null,arguments)};t._bwpEnableVideo=function(){return(t._bwpEnableVideo=t.asm.U).apply(null,arguments)};t._main=function(){return(t._main=t.asm.V).apply(null,arguments)};\\nvar $a=t._malloc=function(){return($a=t._malloc=t.asm.X).apply(null,arguments)};t._free=function(){return(t._free=t.asm.Y).apply(null,arguments)};var W=t._pthread_self=function(){return(W=t._pthread_self=t.asm.Z).apply(null,arguments)},sb=t.___errno_location=function(){return(sb=t.___errno_location=t.asm._).apply(null,arguments)};t._emscripten_tls_init=function(){return(t._emscripten_tls_init=t.asm.$).apply(null,arguments)};\\nt._emscripten_current_thread_process_queued_calls=function(){return(t._emscripten_current_thread_process_queued_calls=t.asm.aa).apply(null,arguments)};\\nvar rb=t._emscripten_sync_run_in_main_thread_4=function(){return(rb=t._emscripten_sync_run_in_main_thread_4=t.asm.ba).apply(null,arguments)},Ma=t._emscripten_main_thread_process_queued_calls=function(){return(Ma=t._emscripten_main_thread_process_queued_calls=t.asm.ca).apply(null,arguments)},Xa=t._emscripten_run_in_main_runtime_thread_js=function(){return(Xa=t._emscripten_run_in_main_runtime_thread_js=t.asm.da).apply(null,arguments)},ab=t.__emscripten_call_on_thread=function(){return(ab=t.__emscripten_call_on_thread=\\nt.asm.ea).apply(null,arguments)},Ka=t.__emscripten_thread_free_data=function(){return(Ka=t.__emscripten_thread_free_data=t.asm.fa).apply(null,arguments)},gb=t.__emscripten_thread_exit=function(){return(gb=t.__emscripten_thread_exit=t.asm.ga).apply(null,arguments)},qb=t.__emscripten_thread_init=function(){return(qb=t.__emscripten_thread_init=t.asm.ha).apply(null,arguments)},Da=t.stackSave=function(){return(Da=t.stackSave=t.asm.ia).apply(null,arguments)},Ea=t.stackRestore=function(){return(Ea=t.stackRestore=\\nt.asm.ja).apply(null,arguments)},Wa=t.stackAlloc=function(){return(Wa=t.stackAlloc=t.asm.ka).apply(null,arguments)},Oa=t._emscripten_stack_set_limits=function(){return(Oa=t._emscripten_stack_set_limits=t.asm.la).apply(null,arguments)},La=t.__emscripten_allow_main_runtime_queued_calls=79072,Ga=t.__emscripten_main_thread_futex=110936;\\nt.addFunction=function(a,b){if(!E){E=new WeakMap;for(var d=K.length,e=0;e<0+d;e++){var f=S(e);f&&E.set(f,e)}}if(E.has(a))return E.get(a);if(ja.length)d=ja.pop();else{try{K.grow(1)}catch(l){if(!(l instanceof RangeError))throw l;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.";}d=K.length-1}try{e=d,K.set(e,a),Y[e]=a}catch(l){if(!(l instanceof TypeError))throw l;if("function"===typeof WebAssembly.Function){f={i:"i32",j:"i64",f:"f32",d:"f64"};var h={parameters:[],results:"v"==b[0]?[]:[f[b[0]]]};\\nfor(e=1;e<b.length;++e)h.parameters.push(f[b[e]]);e=new WebAssembly.Function(h,a)}else{f=[1,0,1,96];h=b.slice(0,1);b=b.slice(1);var n={i:127,j:126,f:125,d:124};f.push(b.length);for(e=0;e<b.length;++e)f.push(n[b[e]]);"v"==h?f.push(0):f=f.concat([1,n[h]]);f[1]=f.length-2;b=new Uint8Array([0,97,115,109,1,0,0,0].concat(f,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0]));b=new WebAssembly.Module(b);e=(new WebAssembly.Instance(b,{e:{f:a}})).exports.f}b=d;K.set(b,e);Y[b]=e}E.set(a,d);return d};\\nt.keepRuntimeAlive=N;t.PThread=T;t.PThread=T;t.wasmMemory=c;t.ExitStatus=Ja;var Z;function Ja(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}P=function ub(){Z||vb();Z||(P=ub)};\\nfunction vb(){function a(){if(!Z&&(Z=!0,t.calledRun=!0,!H)){z||R(L);z||R(qa);u(t);if(t.onRuntimeInitialized)t.onRuntimeInitialized();if(wb){var b=t._main;try{wa+=2;var d=b(0,0);U(d,!0)}catch(e){V(e)}finally{wa-=2}}if(!z){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)b=t.postRun.shift(),ra.unshift(b);R(ra)}}}if(!(0<O))if(z)u(t),z||R(L),postMessage({cmd:"loaded"});else{if(!z){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)ta();\\nR(pa)}0<O||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1);a()},1)):a())}}t.run=vb;function U(a,b){I=a;if(!b&&z)throw Pa(a),"unwind";N()||z||(T.xa(),sa=!0);I=a;if(!N()){T.xa();if(t.onExit)t.onExit(a);H=!0}y(a,new Ja(a))}if(t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();var wb=!0;t.noInitialRun&&(wb=!1);z&&(noExitRuntime=!1,T.Ia());vb();t.terminateAllThreads=T.xa;\\n\\n\\n  return WasmPlayerModuleFactory.ready\\n}\\n);\\n})();\\nif (typeof exports === \\\'object\\\' && typeof module === \\\'object\\\')\\n  module.exports = WasmPlayerModuleFactory;\\nelse if (typeof define === \\\'function\\\' && define[\\\'amd\\\'])\\n  define([], function() { return WasmPlayerModuleFactory; });\\nelse if (typeof exports === \\\'object\\\')\\n  exports["WasmPlayerModuleFactory"] = WasmPlayerModuleFactory;\\n\',V=function(){function e(t,r,i){var o=this,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n(this,e),a(this,"TAG","[BwpCorePlayer]"),a(this,"BASE_DELAY_TIME",80),a(this,"MAX_DELAY_TIME",800),a(this,"MAX_DELAY_FRAME_COUNT",170),a(this,"renderCanvas",void 0),a(this,"logStartTime",void 0),a(this,"width",void 0),a(this,"height",void 0),a(this,"currentTime",void 0),a(this,"buffFlushFlag",void 0),a(this,"videoRenderer",void 0),a(this,"audioChannels",void 0),a(this,"indexedDBUtils",void 0),a(this,"glueJsUrl",void 0),a(this,"pthreadJsUrl",void 0),a(this,"wasmPlayerModule",void 0),a(this,"wasmMemory",void 0),a(this,"inputBuffer",void 0),a(this,"inputBufferSize",void 0),a(this,"fps",void 0),a(this,"totalVideoFrames",void 0),a(this,"droppedVideoFrames",void 0),a(this,"outOfSyncFrameCount",void 0),a(this,"syncTimer",void 0),a(this,"hasFirstFrame",void 0),a(this,"isSeeking",void 0),a(this,"isAfterSeekAudioFragment",void 0),a(this,"isAfterSeekVideoFragment",void 0),a(this,"isPipMode",void 0),a(this,"isDebug",void 0),a(this,"isDestroy",void 0),a(this,"isReadyToRelegation",void 0),a(this,"isCorePlayerOpened",void 0),a(this,"msgHandler",(function(e,t,r,n,a,i){switch(t){case l.BWP_MSG_OPEN_DONE:o.isCorePlayerOpened=!0,o.sendMsg(s.OPENED,{glueJsUrl:o.glueJsUrl,pthreadJsUrl:o.pthreadJsUrl});break;case l.BWP_MSG_PLAY_POS:if(!o.isCorePlayerOpened)return;var u=r,c=o.currentTime;o.currentTime=u,c!==u&&o.sendMsg(s.TIMEUPDATE,{time:u});break;case l.BWP_MSG_SEEK_DONE:o.isSeeking=!1,o.triggerSeekedEvent();break;case l.BWP_MSG_PLAY_COMPLETE:o.log(N.WARN,"[play] [complete] msg"),o.sendMsg(s.PLAY_END);break;case l.BWP_MSG_PLAY_QULITY:o.totalVideoFrames=r,o.droppedVideoFrames=n,o.fps=a/100}})),a(this,"videoRenderHandler",(function(e,t,r,n,a,i,u,l){if(t||r===o.width&&i===o.height||(0!=o.width&&0!=o.height&&o.sendMsg(s.RESIZE),o.width=r,o.height=i,o.renderCanvas.width=u,o.renderCanvas.height=l,o.log(N.WARN,"init video size, width: ".concat(r,", height: ").concat(o.height,",")+" displayWidth: ".concat(u,", displayHeight: ").concat(l))),t){o.isPipMode&&requestAnimationFrame((function(){}));var c=o.height*r,f=o.height*i/2,d=o.wasmMemory.buffer,h=new Uint8Array(d,t,c),p=new Uint8Array(d,n,f),m=new Uint8Array(d,a,f);o.videoRenderer.renderFrame(h,r,p,m,i,o.width,o.height),o.hasFirstFrame||(o.hasFirstFrame=!0,o.sendMsg(s.FIRST_FRAME));var b=o.currentTime-u;if(b>o.BASE_DELAY_TIME&&!o.isReadyToRelegation&&b>o.MAX_DELAY_TIME){if(o.outOfSyncFrameCount+=1,o.outOfSyncFrameCount<o.MAX_DELAY_FRAME_COUNT)return;o.isReadyToRelegation=!0;var _="Out of sync > 800ms, delay: ".concat(b,", currentTime: ").concat(o.currentTime,",")+" frameTime: ".concat(u,", outOfFrameCount: ").concat(o.outOfSyncFrameCount);o.log(N.WARN,_),o.sendMsg(s.FALLBACK,{details:_})}}})),a(this,"audioRenderHandler",(function(e,t,r,n,a){if(a===l.BWP_DATA_FLAG_FORMAT&&(o.log(N.WARN,"core player audio init channel is ".concat(n)),1===n||2===n?o.audioChannels=n:o.throwError(x.AUDIO_CHANNELS_NOT_SUPPORT,"Audio channels not support(>2)")),0===a){var i=new Uint8Array(o.wasmPlayerModule.HEAPU8.subarray(t,t+r));o.sendMsg(s.RENDER_AUDIO,{data:i.buffer,time:n,channels:o.audioChannels},[i.buffer])}})),a(this,"syncTimerHandler",(function(){o.wasmPlayerModule._bwpMainProc()})),a(this,"log",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.isDebug&&o.sendMsg(s.LOG,{logLevel:e,msg:"[".concat(+new Date-o.logStartTime,"] ").concat(r?"":"".concat(o.TAG," ")).concat(t)})})),a(this,"onAbortHandler",(function(e){o.throwError(x.CORE_PLAYER_EXCEPTION,e)})),a(this,"throwError",(function(e,t){o.isDestroy||(o.sendMsg(s.ERROR,{errorCode:e,describe:t}),o.destroy())})),this.renderCanvas=t,this.logStartTime=i,this.isDebug=u,this.width=0,this.height=0,this.currentTime=0,this.videoRenderer=new O(this.renderCanvas),this.audioChannels=2,this.indexedDBUtils=new F("bwphevc","lib"),this.fps=0,this.totalVideoFrames=0,this.droppedVideoFrames=0,this.outOfSyncFrameCount=0,this.hasFirstFrame=!1,this.isSeeking=!1,this.isAfterSeekAudioFragment=!1,this.isAfterSeekVideoFragment=!1,this.isPipMode=!1,this.isDestroy=!1,this.isReadyToRelegation=!1,this.isCorePlayerOpened=!1,this.init(r)}return t(e,[{key:"play",value:function(){this.log(N.INFO,"[play]"),this.wasmPlayerModule._bwpPlay()}},{key:"pause",value:function(){this.log(N.INFO,"[pause]"),this.wasmPlayerModule._bwpPause()}},{key:"seek",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.SEEK_POS;this.log(N.INFO,"[seek] buffFlushFlag: ".concat(e,", time: ").concat(t)),this.buffFlushFlag=e,this.currentTime=t,this.isSeeking=!0,this.isAfterSeekAudioFragment=!0,this.isAfterSeekVideoFragment=!0,this.wasmPlayerModule._bwpSeek(this.currentTime,r),this.sendMsg(s.BUFFER_FLUSHED,{flag:e})}},{key:"setPlaybackRate",value:function(e){this.log(N.INFO,"[setPlaybackRate] rate: ".concat(e)),this.wasmPlayerModule._bwpSpeed(100*e,100)}},{key:"getVideoPlaybackQuality",value:function(){this.wasmPlayerModule._bwpQuality(),this.sendMsg(s.PLAYBACK_QUALITY,{fps:this.fps,totalVideoFrames:this.totalVideoFrames,droppedVideoFrames:this.droppedVideoFrames})}},{key:"endOfStream",value:function(e){this.log(N.WARN,"[endOfStream] type: ".concat(e));var t=e===R.AUDIO?l.BWP_SRC_TYPE_AUDIO:l.BWP_SRC_TYPE_VIDEO;this.wasmPlayerModule._bwpFillBuff(t,-1,0,0,0,0)}},{key:"setAppendWindow",value:function(e,t){this.log(N.INFO,"[setAppendWindow] start: ".concat(e,", end: ").concat(t)),this.wasmPlayerModule._bwpRange(e,t)}},{key:"setDecodeMode",value:function(e){this.log(N.INFO,"[setDecodeMode] enable: ".concat(e)),this.wasmPlayerModule._bwpEnableVideo(e?1:0)}},{key:"setAudioTime",value:function(e,t,r){var n=+new Date-r;n>t&&(n=t),this.wasmPlayerModule._bwpSetAudio(e+n)}},{key:"setPipMode",value:function(e){this.isPipMode=e}},{key:"reset_outofsync_frame_count",value:function(){this.outOfSyncFrameCount<=0||(this.log(N.INFO,"reset outOfSyncFrameCount: ".concat(this.outOfSyncFrameCount," => 0")),this.outOfSyncFrameCount=0)}},{key:"redrawLastFrame",value:function(){this.videoRenderer.redrawLastFrame()}},{key:"appendBuffer",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=t.byteLength;if(this.reallocInputBuffer(a),this.inputBuffer){var i=new Uint8Array(this.wasmMemory.buffer,this.inputBuffer,a);i.set(new Uint8Array(t));var o=0,s=e===R.AUDIO;r?o=l.BWP_DATA_FLAG_FORMAT:this.isAfterSeekVideoFragment&&!s?(o=l.BWP_DATA_FLAG_NEWPOS,this.isAfterSeekVideoFragment=!1):this.isAfterSeekAudioFragment&&s&&(o=l.BWP_DATA_FLAG_NEWPOS,this.isAfterSeekAudioFragment=!1,this.isAfterSeekVideoFragment||this.isSeeking||this.triggerSeekedEvent());var u=s?l.BWP_SRC_TYPE_AUDIO:l.BWP_SRC_TYPE_VIDEO;this.wasmPlayerModule._bwpFillBuff(u,n,this.inputBuffer,a,0,o),this.log(N.INFO,"[appendBuffer] [".concat(e,"] done, pos: ").concat(n,", byte length: ").concat(a,", isInitSegment: ").concat(r))}else this.throwError(x.WASM_MEMORY_MALLOC_ERROR,"Malloc wasm shared memory error")}},{key:"reload",value:function(e){var t;(this.log(N.INFO,"[reload]"),this.buffFlushFlag=e,this.isCorePlayerOpened)&&(null===(t=this.wasmPlayerModule)||void 0===t||t._bwpFlush(l.BWP_SRC_TYPE_DASH));this.width=0,this.height=0,this.currentTime=0,this.audioChannels=2,this.fps=0,this.totalVideoFrames=0,this.droppedVideoFrames=0,this.outOfSyncFrameCount=0,this.hasFirstFrame=!1,this.isSeeking=!1,this.isAfterSeekVideoFragment=!1,this.isAfterSeekAudioFragment=!1,this.isReadyToRelegation=!1,this.videoRenderer.clear(),this.sendMsg(s.BUFFER_FLUSHED,{flag:e})}},{key:"destroy",value:function(){var e,t,r;this.log(N.INFO,"[destroy]"),this.isDestroy||(this.isDestroy=!0,null===(e=this.syncTimer)||void 0===e||e.stop(),this.videoRenderer.destroy(),URL.revokeObjectURL(this.glueJsUrl||""),URL.revokeObjectURL(this.pthreadJsUrl||""),this.isCorePlayerOpened&&(this.isCorePlayerOpened=!1,this.log(N.WARN,"call bwpUninit()"),null===(t=this.wasmPlayerModule)||void 0===t||t._bwpUninit(),this.inputBuffer&&(this.wasmPlayerModule._free(this.inputBuffer),this.inputBuffer=null),null===(r=this.wasmPlayerModule)||void 0===r||r.terminateAllThreads()))}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.glueJsUrl=URL.createObjectURL(new Blob([G],{type:"application/javascript"})),this.pthreadJsUrl=URL.createObjectURL(new Blob([S],{type:"application/javascript"})),importScripts(this.glueJsUrl);var r={mainScriptUrlOrBlob:this.glueJsUrl,locateFile:function(t,r){return t.endsWith("worker.js")?e.pthreadJsUrl:r+t},instantiateWasm:function(r,n){b(e.indexedDBUtils,"libwpengn.wasm",r,t?U:C).then((function(e){n(e.instance,e.module)})).catch((function(){e.throwError(x.CORE_PLAYER_LOAD_ERROR,"Load wasm from indexedDB and url error or caching error")}))},print:function(t){e.isDebug&&e.log(N.INFO,t,!0)}};WasmPlayerModuleFactory(r).then((function(t){e.isDestroy||(e.wasmPlayerModule=t,e.wasmPlayerModule.onAbort=e.onAbortHandler,e.wasmMemory=e.wasmPlayerModule.wasmMemory,e.initCorePlayer())})).catch((function(t){e.throwError(x.CORE_PLAYER_LOAD_ERROR,t&&t.toString&&t.toString())}))}},{key:"initCorePlayer",value:function(){var e=this.wasmPlayerModule.addFunction(this.msgHandler,"iiiiiii"),t=this.wasmPlayerModule.addFunction(this.videoRenderHandler,"iiiiiiiii"),r=this.wasmPlayerModule.addFunction(this.audioRenderHandler,"iiiiii");if(e&&t&&r){var n=this.isDebug?l.BWP_LOG_LEVEL_DEBUG:l.BWP_LOG_LEVEL_ERR;this.wasmPlayerModule._bwpInit(1,e,t,r,n),this.wasmPlayerModule._bwpOpen(l.BWP_SRC_TYPE_DASH,0,0,0),this.syncTimer=this.createTimer(this.syncTimerHandler,4),this.syncTimer.start()}else this.throwError(x.CORE_PLAYER_ADD_FUNCTION_ERROR,"Core player add function failed")}},{key:"reallocInputBuffer",value:function(e){this.inputBuffer&&this.inputBufferSize&&this.inputBufferSize>=e||(this.inputBuffer&&this.wasmPlayerModule._free(this.inputBuffer),this.log(N.INFO,"remalloc input memory, last memory size: ".concat(this.inputBufferSize,", new size: ").concat(e)),this.inputBufferSize=e,this.inputBuffer=this.wasmPlayerModule._malloc(this.inputBufferSize))}},{key:"triggerSeekedEvent",value:function(){this.isAfterSeekAudioFragment||this.isAfterSeekVideoFragment||this.isSeeking||(this.log(N.INFO,"seek done, buffFlushFlag: ".concat(this.buffFlushFlag)),this.sendMsg(s.SEEKED,{flag:this.buffFlushFlag}))}},{key:"sendMsg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];self.postMessage({msg:e,data:t},r)}},{key:"createTimer",value:function(e,t){var r;return{start:function(){var n=this;r=setTimeout((function(){e(),n.start()}),t)},stop:function(){clearTimeout(r)}}}}]),e}(),H=V;self.onmessage=function(e){var t,r,n=null===(t=e.data)||void 0===t?void 0:t.msg,a=null===(r=e.data)||void 0===r?void 0:r.data;if(n!==s.INIT){var i;if(n===s.DESTROY)return null===(i=Y)||void 0===i||i.destroy(),Y=null,void self.close();if(!Y||!Y.isDestroy){if(!Y)throw new Error("BwpCorePlayer not init!");switch(n){case s.PLAY:Y.play();break;case s.PAUSE:Y.pause();break;case s.SEEK:Y.seek(a.flag,a.time);break;case s.PLAYBACK_RATE:Y.setPlaybackRate(a.rate);break;case s.GET_PLAYBACK_QUALITY:Y.getVideoPlaybackQuality();break;case s.END_OF_STREAM:Y.endOfStream(a.mediaType);break;case s.SET_APPEND_WINDOW:Y.setAppendWindow(a.start,a.end);break;case s.SET_DECODE_MODE:Y.setDecodeMode(a.enable);break;case s.SET_AUDIO_TIME:Y.setAudioTime(a.time,a.bufferLen,a.timeStamp);break;case s.SET_PIP_MODE:Y.setPipMode(a.enable);break;case s.RESET_OUTOFSYNC_FRAME_COUNT:Y.reset_outofsync_frame_count();break;case s.REDRAW_LAST_FRAME:Y.redrawLastFrame();break;case s.FILL_BUFFER:Y.appendBuffer(a.mediaType,a.buffer,a.isInitSegment);break;case s.RELOAD:Y.reload(a.flag)}}}else{if(Y)return;Y=new H(a.renderCanvas,a.isEnableSIMD,a.logStartTime,a.isDebug)}}}()}();',"Worker",void 0,void 0)
}var di=y((function t(){f(this,t)})),ui=Event;"function"!=typeof Event&&(ui=di);var pi=ui;function gi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var fi=function(t){v(i,t);var e=gi(i);function i(t,n,r){var o;return f(this,i),C(b(o=e.call(this,ut.PERFORMANCE,r)),"errorCode",void 0),C(b(o),"describe",void 0),o.errorCode=t,o.describe=n,o}return y(i)}(pi);function mi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var yi=function(t){v(n,t);var e,i=mi(n);function n(t,e){var r;return f(this,n),C(b(r=i.call(this)),"logger",void 0),C(b(r),"TAG","[AudioWorkletRender]"),C(b(r),"DEFAULT_VOLUME",1),C(b(r),"audioCtx",void 0),C(b(r),"gainNode",void 0),C(b(r),"audioBuffer",void 0),C(b(r),"audioprocessCallback",void 0),C(b(r),"errorCallback",void 0),C(b(r),"bwpProcessorUrl",void 0),C(b(r),"bwpProcessorNode",void 0),C(b(r),"_muted",void 0),C(b(r),"_volume",void 0),C(b(r),"playState",void 0),C(b(r),"seeking",void 0),C(b(r),"seekFlag",void 0),C(b(r),"onmessage",(function(t){var e=t.data;if(e&&r.audioCtx){var i=e.message,n=e.options;if("TIME_UPDATE"===i){var o=n.currentTime,a=n.bufferTime,s=n.timeStamp;void 0===o||void 0===a||r.seeking||r.audioprocessCallback&&r.audioprocessCallback(o,a,s)}else"SEEKED"===i?(null==n?void 0:n.seekFlag)===r.seekFlag&&(r.seeking=!1):"ERROR"===i&&r.errorCallback&&r.errorCallback(Fe.AUDIO_RENDER_ERROR,(null==n?void 0:n.detail)||"BwpProcessor unknow error")}})),C(b(r),"setAutoResume",(function(){for(var t=["keydown","mousedown","touchstart"],e=0;e<t.length;e++)document.addEventListener(t[e],(function(){r.resume()}),{once:!0})})),r.logger=At.getInstance(),r.audioCtx=null,r.gainNode=null,r.audioBuffer=[],r._muted=!1,r._volume=r.DEFAULT_VOLUME,r.playState=!1,r.seeking=!1,r.audioprocessCallback=t,r.errorCallback=e,r}return y(n,[{key:"muted",get:function(){return this._muted},set:function(t){t!==this._muted&&(this._muted=t,this.gainNode&&(this.gainNode.gain.value=t?0:this._volume))}},{key:"volume",get:function(){return this._volume},set:function(t){t!==this._volume&&(this._volume=t,this.gainNode&&!this._muted&&(this.gainNode.gain.value=t))}},{key:"sampleRate",get:function(){var t;return(null===(t=this.audioCtx)||void 0===t?void 0:t.sampleRate)||0}},{key:"preCreateContext",value:function(t){this.logger.warn(this.TAG,"pre create AudioContext with sampleRate: ".concat(t)),this.audioCtx=new(window.AudioContext||window.webkitAudioContext)({sampleRate:t})}},{key:"play",value:function(){this.playState=!0,this.postSimpleMessage("PLAY")}},{key:"pause",value:function(){this.playState=!1,this.postSimpleMessage("PAUSE")}},{key:"seek",value:function(){var t;this.seeking=!0,this.seekFlag=+new Date,null===(t=this.bwpProcessorNode)||void 0===t||t.port.postMessage({message:"SEEK",seekFlag:this.seekFlag})}},{key:"canPlay",value:function(){return!(!this.audioCtx||"suspended"===this.audioCtx.state)}},{key:"isPlaying",value:function(){return this.playState}},{key:"fillBuffer",value:function(t){var e;null===(e=this.bwpProcessorNode)||void 0===e||e.port.postMessage({message:"APPEND_BUFFER",buffer:t},[t.data])}},{key:"flushBuffer",value:function(){this.postSimpleMessage("FLUSH")}},{key:"init",value:(e=R(T().mark((function t(e){var i,n,r,o=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.log(this.TAG,"init audio worklet render with sampleRate: ".concat(e)),i=+new Date,this.audioCtx&&this.audioCtx.sampleRate!==e&&this.destroy(!0),t.prev=3,this.bwpProcessorUrl=URL.createObjectURL(new Blob(['!function(){class s extends AudioWorkletProcessor{constructor(s){super(s),this.playState=!1,this.offset=0,this.audioBuffer=[],this.port.onmessage=this.onmessage.bind(this)}flush(){this.audioBuffer.length=0,this.offset=0}seek(s){this.flush(),this.postMessage("SEEKED",{seekFlag:s})}postMessage(s,e){this.port.postMessage({message:s,options:e})}onmessage(s){const{data:e}=s;if(!e)return;const t=e?.message,i=e?.buffer;if("APPEND_BUFFER"===t)if(i){if(this.audioBuffer.push(i),!this.playState){const s=this.audioBuffer[0].time,e=this.audioBuffer[this.audioBuffer.length-1].time;this.postMessage("TIME_UPDATE",{currentTime:-1,bufferTime:e-s})}}else this.postMessage("ERROR",{detail:"[BwpProcessor] must valid buffer"});else"PLAY"===t?this.playState=!0:"PAUSE"===t?this.playState=!1:"FLUSH"===t?this.flush():"SEEK"===t&&this.seek(e?.seekFlag)}process(s,e,t){const i=this.audioBuffer[0],f=e[0][0],o=e[0][1];if(!f||f&&!f.length)return this.postMessage("ERROR",{detail:"[BwpProcessor] must have left channel"}),!1;if(!o||o&&!o.length)return this.postMessage("ERROR",{detail:"[BwpProcessor] must have right channel"}),!1;if(!i||!this.playState){for(let s=0;s<f.length;s++)f[s]=0,o[s]=0;return!0}const h=i.channels,r=new Float32Array(i.data);for(let s=0;s<f.length;s++)2===h?(f[s]=r[2*s+this.offset],o[s]=r[2*s+1+this.offset]):(f[s]=r[s+this.offset],o[s]=r[s+this.offset]);if(0===this.offset){const s=this.audioBuffer[this.audioBuffer.length-1].time-i.time;this.postMessage("TIME_UPDATE",{currentTime:i.time,bufferTime:s,timeStamp:+new Date})}return this.offset+=f.length*h,this.offset>=r.length&&(this.offset=0,this.audioBuffer.shift()),!0}}registerProcessor("bwp-processor",s)}();'],{type:"application/javascript"})),this.audioCtx||(this.logger.warn(this.TAG,"create new AudioContext with sampleRate: ".concat(e)),this.audioCtx=new(window.AudioContext||window.webkitAudioContext)({sampleRate:e})),r=this.audioCtx,this.gainNode=r.createGain(),t.next=10,null===(n=r.audioWorklet)||void 0===n?void 0:n.addModule(this.bwpProcessorUrl);case 10:if(r&&this.gainNode){t.next=12;break}return t.abrupt("return");case 12:this.bwpProcessorNode=new window.AudioWorkletNode(r,"bwp-processor",{channelCount:2,numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]}),this.bwpProcessorNode.port.onmessage=this.onmessage,this.bwpProcessorNode.port.start(),this.bwpProcessorNode.connect(this.gainNode),this.gainNode.connect(r.destination),this.gainNode.gain.value=this._muted?0:this._volume,URL.revokeObjectURL(this.bwpProcessorUrl),this.logger.warn(this.TAG,"init AudioWorkletNode done, ".concat(+new Date-i," ms,"),"volume: ".concat(this._volume,", muted: ").concat(this._muted)),setTimeout((function(){o.triggerCanplay()})),t.next=26;break;case 23:t.prev=23,t.t0=t.catch(3),this.errorCallback&&this.errorCallback(Fe.AUDIO_RENDER_ERROR,(null===t.t0||void 0===t.t0?void 0:t.t0.message)||"BwpProcessor init error");case 26:this.setAutoResume();case 27:case"end":return t.stop()}}),t,this,[[3,23]])}))),function(t){return e.apply(this,arguments)})},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{null!==this.audioCtx&&(this.gainNode&&this.bwpProcessorNode&&(this.flushBuffer(),this.bwpProcessorNode.port.onmessage=null,this.bwpProcessorNode.port.close(),this.bwpProcessorNode.disconnect(this.gainNode),this.gainNode.disconnect(this.audioCtx.destination)),this.audioCtx.close()),this.audioCtx=null,this.gainNode=null,t||(this.audioprocessCallback=null,this.errorCallback=null),this.audioBuffer.length=0,this.playState=!1,this.muted=!1,this._volume=1,this.seeking=!1,this.seekFlag=0}catch(t){}}},{key:"postSimpleMessage",value:function(t){var e;null===(e=this.bwpProcessorNode)||void 0===e||e.port.postMessage({message:t})}},{key:"resume",value:function(){var t=this;this.audioCtx&&"suspended"===this.audioCtx.state&&this.audioCtx.resume().then((function(){t.triggerCanplay(),t.playState&&t.logger.warn(t.TAG,"Audio is resumed")}))}},{key:"triggerCanplay",
value:function(){this.canPlay()&&(this.logger.warn(this.TAG,"audio render [canplay]"),it(this,si.CANPLAY))}}]),n}(S),bi=yi,vi=y((function t(){f(this,t)}));C(vi,"INIT","init"),C(vi,"RELOAD","reload"),C(vi,"DESTROY","destroy"),C(vi,"AUDIO_RENDER_INIT_DONE","audio_render_init_done"),C(vi,"PLAY","play"),C(vi,"PAUSE","pause"),C(vi,"SEEK","seek"),C(vi,"PLAYBACK_RATE","playback_rate"),C(vi,"PLAYBACK_QUALITY","playback_quality"),C(vi,"GET_PLAYBACK_QUALITY","get_playback_quality"),C(vi,"RESIZE","resize"),C(vi,"FIRST_FRAME","first_frame"),C(vi,"SEEKED","seeked"),C(vi,"BUFFER_FLUSHED","buffer_flushed"),C(vi,"PLAY_END","play_end"),C(vi,"SET_AUDIO_TIME","set_audio_time"),C(vi,"SET_DECODE_MODE","set_decode_mode"),C(vi,"SET_APPEND_WINDOW","set_append_window"),C(vi,"SET_PIP_MODE","set_pip_mode"),C(vi,"END_OF_STREAM","end_of_stream"),C(vi,"RESET_OUTOFSYNC_FRAME_COUNT","reset_outofsync_frame_count"),C(vi,"REDRAW_LAST_FRAME","redraw_last_frame"),C(vi,"OPENED","opened"),C(vi,"TIMEUPDATE","timeupdate"),C(vi,"FILL_BUFFER","fill_buffer"),C(vi,"RENDER_AUDIO","render_audio"),C(vi,"FALLBACK","fallback"),C(vi,"LOG","log"),C(vi,"ERROR","error"),C(vi,"PERFORMANCE","performance");var Ei=vi;function Ii(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}var Ci,Bi,wi=function(t){v(i,t);var e=Ii(i);function i(t,n,r){var o;return f(this,i),C(b(o=e.call(this,ut.ERROR,r)),"errorCode",void 0),C(b(o),"describe",void 0),o.errorCode=t,o.describe=n,o}return y(i)}(pi);function xi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}!function(t){t[t.SOURCE=0]="SOURCE",t[t.MSE=1]="MSE",t[t.LIVE=2]="LIVE"}(Ci||(Ci={})),function(t){t.CORE_PLAYER_LOADED="coreplayerloaded",t.CORE_PLAYER_OPENED="coreplayeropened",t.ENDED="ended",t.SEEKED="seeked",t.TIMEUPDATE="timeupdate",t.CANPLAY="canplay",t.ERROR="error"}(Bi||(Bi={}));var Qi=function(t){v(i,t);var e=xi(i);function i(t,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ci.MSE;return f(this,i),C(b(o=e.call(this)),"logger",void 0),C(b(o),"TAG","[BwpMediaPlayer]"),C(b(o),"MIN_TIMEUPTE_INTERVAL",110),C(b(o),"renderCanvas",void 0),C(b(o),"bwpElement",void 0),C(b(o),"timeupdateCallback",void 0),C(b(o),"sourceMode",void 0),C(b(o),"bwpMediaSource",void 0),C(b(o),"appendWindowStart",void 0),C(b(o),"appendWindowEnd",void 0),C(b(o),"corePlayerWorker",void 0),C(b(o),"audioRenderer",void 0),C(b(o),"audioSampleRate",void 0),C(b(o),"audioRenderBuffer",void 0),C(b(o),"currentTime",void 0),C(b(o),"_playbackRate",void 0),C(b(o),"glueJsUrl",void 0),C(b(o),"pthreadJsUrl",void 0),C(b(o),"bufferChekTimer",void 0),C(b(o),"buffFlushFlag",void 0),C(b(o),"isBuffFlushing",void 0),C(b(o),"wakeLock",void 0),C(b(o),"isWakeLockInit",void 0),C(b(o),"canplayTimer",void 0),C(b(o),"fps",void 0),C(b(o),"totalVideoFrames",void 0),C(b(o),"droppedVideoFrames",void 0),C(b(o),"moduleLoadedTime",void 0),C(b(o),"lastTimeUpdate",void 0),C(b(o),"hasFirstFrame",void 0),C(b(o),"isAudioInitDone",void 0),C(b(o),"isCorePlayerOpened",void 0),C(b(o),"isCorePlayerCanPlay",void 0),C(b(o),"isSeeking",void 0),C(b(o),"isWaiting",void 0),C(b(o),"isInternalSeek",void 0),C(b(o),"isVideoEnd",void 0),C(b(o),"isAudioEnd",void 0),C(b(o),"_isPictureInPicture",void 0),C(b(o),"setMediaSource",(function(t){o.bwpMediaSource=t})),C(b(o),"setSourceOpen",(function(){o.isCorePlayerCanPlay||(clearTimeout(o.canplayTimer),o.canplayTimer=setTimeout((function(){o.bwpElement&&o.bwpElement.buffered.length>0&&o.throwError(Fe.TRIGGER_CANPLAY_ERROR,"trigger canplay timeout > 30s")}),3e4))})),C(b(o),"loadedMetadata",(function(){if(o.bwpMediaSource){for(var t=o.bwpMediaSource.activeSourceBuffers,e=0;e<t.length;e++){var i=t[e];if(i.mediaType===l.AUDIO){var n=i[gt.SOURCEBUFFER_GET_BUFFER](0,!0).sampleRate;if(n<=0)break;if(n!==o.audioSampleRate){var r=o.audioRenderer,a=r.volume,s=r.muted;o.logger.warn(o.TAG,"init audio renderer, old: ".concat(o.audioSampleRate,", new: ").concat(n,","),"volume: ".concat(a,", muted: ").concat(s)),o.audioSampleRate=n,o.audioRenderer.init(o.audioSampleRate).then((function(){o.isAudioInitDone=!0,o.triggerCorePlayerCanPlay()})),o.audioRenderer.volume=a,o.audioRenderer.muted=s}else o.isAudioInitDone=!0,o.triggerCorePlayerCanPlay();break}}o.isCorePlayerOpened&&o.checkBuffer()}})),C(b(o),"corePlayerMsgHandler",(function(t){var e,i,n=null===(e=t.data)||void 0===e?void 0:e.msg,r=null===(i=t.data)||void 0===i?void 0:i.data;switch(n){case Ei.OPENED:o.isCorePlayerOpened=!0,o.bufferChekTimer=o.createTimer(o.bufferCheckHandler,50),o.bufferChekTimer.start(),o.glueJsUrl=r.glueJsUrl,o.pthreadJsUrl=r.pthreadJsUrl,o.logger.warn(o.TAG,"[state] open done, spent: ".concat(+new Date-o.moduleLoadedTime," ms")),Promise.resolve().then((function(){o.applyCorePlayerOfflineState()}));break;case Ei.RESIZE:it(o.bwpElement,ut.RESIZE);break;case Ei.FIRST_FRAME:o.logger.warn(o.TAG,"[state] render first frame, spent: ".concat(+new Date-o.moduleLoadedTime," ms")),o.hasFirstFrame=!0,o.triggerCorePlayerCanPlay();break;case Ei.TIMEUPDATE:if(o.isSeeking||o.isBuffFlushing)return;r.time>=0&&o.currentTime!==r.time&&(o.currentTime=r.time,o.lastTimeUpdate=+new Date,o.timeupdateCallback(o.currentTime/1e3),Promise.resolve().then((function(){o.readyStateChecker()})));break;case Ei.RENDER_AUDIO:if(o.isBuffFlushing||!o.isAudioInitDone)return void o.logger.warn(o.TAG,"discard invalid audio buffer,","currentTime: ".concat(o.currentTime,", audio buffer time: ").concat(r.time));o.isCorePlayerCanPlay||o.triggerCorePlayerCanPlay(),o.audioRenderer.fillBuffer({data:r.data,time:r.time,channels:r.channels});break;case Ei.BUFFER_FLUSHED:r.flag===o.buffFlushFlag?(o.isBuffFlushing=!1,o.isSeeking||(o.buffFlushFlag=0)):o.logger.warn(o.TAG,"discard invalid buffer flushed");break;case Ei.SEEKED:if(r.flag!==o.buffFlushFlag||!o.isSeeking)return void o.logger.warn(o.TAG,"discard invalid seek, isSeeking: ".concat(o.isSeeking));o.buffFlushFlag=0,o.isSeeking=!1,o.isInternalSeek?(o.logger.warn(o.TAG,"inner seek done"),o.isInternalSeek=!1):(o.logger.warn(o.TAG,"seek done"),o.dispatchEvent(new Event(Bi.SEEKED)),Promise.resolve().then((function(){o.readyStateChecker(!1)}))),o.triggerCorePlayerCanPlay();break;case Ei.PLAY_END:o.resetKeepScreenAlive(),it(b(o),Bi.ENDED);break;case Ei.PLAYBACK_QUALITY:o.fps=r.fps,o.totalVideoFrames=r.totalVideoFrames,o.droppedVideoFrames=r.droppedVideoFrames;break;case Ei.FALLBACK:setTimeout((function(){var t;null===(t=o.bwpElement)||void 0===t||t.dispatchEvent(new fi(Fe.OUT_OF_SYNC,n))}));break;case Ei.LOG:if(!st)return;console[r.logLevel](r.msg);break;case Ei.ERROR:o.throwError(r.errorCode,r.describe||"");break;default:o.logger.warn("".concat(o.TAG," Unsupport messsage ").concat(n))}})),C(b(o),"corePlayerOnErrorHandler",(function(t){o.logger.error(o.TAG,"core player onerror",null==t?void 0:t.message),o.throwError(Fe.CORE_PLAYER_JS_ERROR,null==t?void 0:t.message)})),C(b(o),"checkBuffer",(function(){if(o.isCorePlayerOpened&&o.isAudioInitDone){if(o.sourceMode!==Ci.MSE)throw new Error("Not support source mode now");o.checkMseModeBuffer()}})),C(b(o),"checkMseModeBuffer",(function(){if(o.bwpMediaSource&&o.isCorePlayerOpened)for(var t=o.bwpMediaSource.activeSourceBuffers,e=0;e<t.length;e++){var i=t[e],n=i.mediaType,r=i.appendWindowStart,a=i.appendWindowEnd,s=[],A=!1;if(n===l.AUDIO||r===o.appendWindowStart&&a===o.appendWindowEnd||(o.appendWindowStart=r,o.appendWindowEnd=a,o.sendMsgToCorePlayer(Ei.SET_APPEND_WINDOW,{start:1e3*o.appendWindowStart,end:1e3*o.appendWindowEnd}),
o.logger.log(o.TAG,"set append window to core player: ".concat(r,", ").concat(a))),!o.isVideoEnd&&!o.isAudioEnd){var c=i[gt.SOURCEBUFFER_GET_BUFFER](o.currentTime/1e3);s=c.buffer,A=c.isEndOfStream}if(s.length>0){o.logger.log(o.TAG,"[".concat(n,"] ready to append buffer to core player,"),"currentTime: ".concat(o.currentTime));for(var h=0;h<s.length;h++){var d=s[h],u=performance.now();o.sendMsgToCorePlayer(Ei.FILL_BUFFER,{mediaType:n,buffer:d.data,isInitSegment:d.isInitSegment},[]);var p=performance.now();p-u>10&&o.logger.warn(o.TAG,"send buffer data spent > 10ms => ".concat(p-u,"ms"))}}A&&o.endOfStream(n)}})),C(b(o),"audioprocessingCallback",(function(t,e,i){var n;if(o.audioRenderBuffer=e,-1!==t&&(o.sendMsgToCorePlayer(Ei.SET_AUDIO_TIME,{time:t,bufferLen:e,timeStamp:i}),!(t<0||null!==(n=o.bwpElement)&&void 0!==n&&n.paused||o.isWaiting||o.isSeeking))){var r=+new Date;r-o.lastTimeUpdate>o.MIN_TIMEUPTE_INTERVAL&&(o.lastTimeUpdate=r,o.timeupdateCallback(t/1e3))}})),C(b(o),"applyCorePlayerOfflineState",(function(){0!==o.currentTime&&(o.logger.log(o.TAG,"[applyOfflineState] seek to ".concat(o.currentTime)),o.seek(o.currentTime)),1!==o._playbackRate&&(o.logger.log(o.TAG,"[applyOfflineState] set playbackrate: ".concat(o._playbackRate)),o.playbackRate=o._playbackRate)})),C(b(o),"audioCanplayHandler",(function(){var t,e;o.triggerCorePlayerCanPlay(),null!==(t=o.bwpElement)&&void 0!==t&&t.paused||null!==(e=o.audioRenderer)&&void 0!==e&&e.isPlaying()||!o.isCorePlayerCanPlay||(o.play(),o.logger.warn(o.TAG,"[applyOfflineState], audio render is not play, call play"))})),C(b(o),"triggerCorePlayerCanPlay",(function(){!o.isCorePlayerCanPlay&&o.hasFirstFrame&&!o.isSeeking&&o.isCorePlayerOpened&&o.isAudioInitDone&&(o.logger.warn(o.TAG,"trigger BwpMediaPlayer canplay"),clearTimeout(o.canplayTimer),it(b(o),Bi.CANPLAY),o.isCorePlayerCanPlay=!0,Promise.resolve().then((function(){o.readyStateChecker(!1)})))})),C(b(o),"bufferCheckHandler",(function(){o.checkBuffer()})),C(b(o),"visibilityChangeHandler",(function(){o.isCorePlayerOpened&&(o.getIsDocumentVisible()?(o.sendMsgToCorePlayer(Ei.SET_DECODE_MODE,{enable:!0}),o.setKeepScreenAlive()):o.isPictureInPicture||(o.sendMsgToCorePlayer(Ei.SET_DECODE_MODE,{enable:!1}),o.resetKeepScreenAlive()))})),C(b(o),"setKeepScreenAlive",R(T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null!==(e=o.bwpElement)&&void 0!==e&&e.paused||!window.navigator.wakeLock||o.wakeLock||o.isWakeLockInit)){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,o.isWakeLockInit=!0,t.next=6,window.navigator.wakeLock.request("screen");case 6:o.wakeLock=t.sent,t.next=13;break;case 9:t.prev=9,t.t0=t.catch(2),o.wakeLock=null,o.isWakeLockInit=!1;case 13:case"end":return t.stop()}}),t,null,[[2,9]])})))),C(b(o),"resetKeepScreenAlive",R(T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.wakeLock&&o.isWakeLockInit){t.next=2;break}return t.abrupt("return");case 2:return o.isWakeLockInit=!1,t.next=5,o.wakeLock.release();case 5:o.isWakeLockInit||(o.wakeLock=null);case 6:case"end":return t.stop()}}),t)})))),C(b(o),"globalErrorHandler",(function(t){var e=null==t?void 0:t.filename;e&&(o.pthreadJsUrl!==e&&o.glueJsUrl!==e||o.throwError(Fe.CORE_PLAYER_EXCEPTION,t.message))})),C(b(o),"throwError",(function(t,e){if(o.bwpElement){try{localStorage.setItem("bwphevc_error","code: ".concat(t,", message: ").concat(e,", timestamp: ").concat(new Date))}catch(t){}o.dispatchEvent(new wi(t,(null==e?void 0:e.replace(",","."))||"")),o.destroy()}})),o.moduleLoadedTime=+new Date,o.logger=At.getInstance(),o.renderCanvas=t,o.bwpElement=n,o.timeupdateCallback=r,o.sourceMode=a,o.bwpMediaSource=null,o.appendWindowStart=0,o.appendWindowEnd=0,o.audioSampleRate=-1,o.audioRenderBuffer=0,o.currentTime=0,o._playbackRate=1,o.isBuffFlushing=!1,o.isWakeLockInit=!1,o.fps=0,o.totalVideoFrames=0,o.droppedVideoFrames=0,o.lastTimeUpdate=0,o.hasFirstFrame=!1,o.isAudioInitDone=!1,o.isCorePlayerOpened=!1,o.isCorePlayerCanPlay=!1,o.isSeeking=!1,o.isWaiting=!1,o.isInternalSeek=!1,o.isVideoEnd=!1,o.isAudioEnd=!1,o._isPictureInPicture=!1,o.audioRenderer=new bi(o.audioprocessingCallback,o.throwError),o.audioRenderer.addEventListener(si.CANPLAY,o.audioCanplayHandler),setTimeout((function(){var t=performance.now();o.corePlayerWorker=new hi,o.corePlayerWorker.onmessage=o.corePlayerMsgHandler,o.corePlayerWorker.onerror=o.corePlayerOnErrorHandler,o.logger.warn(o.TAG,"[state] load core player worker done, spent: ".concat(performance.now()-t," ms"));var e=o.renderCanvas.transferControlToOffscreen();o.sendMsgToCorePlayer(Ei.INIT,{renderCanvas:e,isEnableSIMD:ai().simd,logStartTime:At.startTime,isDebug:st},[e]),o.audioRenderer.preCreateContext(48e3)})),window.addEventListener("error",o.globalErrorHandler),document.addEventListener("visibilitychange",o.visibilityChangeHandler),o}return y(i,[{key:"muted",get:function(){return this.audioRenderer.muted},set:function(t){t!==this.audioRenderer.muted&&(this.audioRenderer.muted=t)}},{key:"volume",get:function(){return this.audioRenderer.volume},set:function(t){t!==this.audioRenderer.volume&&(this.audioRenderer.volume=t)}},{key:"playbackRate",set:function(t){this.logger.warn(this.TAG,"set playbackRate: ".concat(t,", currentTime: ").concat(this.currentTime));var e=parseFloat(t.toFixed(2));this._playbackRate=e,this.sendMsgToCorePlayer(Ei.PLAYBACK_RATE,{rate:e})}},{key:"isPictureInPicture",get:function(){return this._isPictureInPicture},set:function(t){this._isPictureInPicture=t,t&&this.isCorePlayerOpened&&!this.getIsDocumentVisible()&&this.sendMsgToCorePlayer(Ei.SET_DECODE_MODE,{enable:!0}),this.sendMsgToCorePlayer(Ei.SET_PIP_MODE,{enable:t})}},{key:"play",value:function(){var t=this;return new Promise((function(e,i){t.isCorePlayerOpened&&t.isAudioInitDone&&t.canplay()?(t.getIsDocumentVisible()||t.isPictureInPicture||(t.sendMsgToCorePlayer(Ei.SET_DECODE_MODE,{enable:!1}),t.logger.log(t.TAG,"play in background tab, set not decoder & not render mode")),t.sendMsgToCorePlayer(Ei.PLAY),t.audioRenderer.play(),t.setKeepScreenAlive(),e()):i()}))}},{key:"pause",value:function(){this.isCorePlayerOpened&&(this.sendMsgToCorePlayer(Ei.PAUSE),this.audioRenderer.pause(),this.resetKeepScreenAlive())}},{key:"seek",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.buffFlushFlag=+new Date;var i=Number.parseInt("".concat(t),10);if(this.currentTime=i,this.isSeeking=!0,this.isInternalSeek=e,this.isVideoEnd=!1,this.isAudioEnd=!1,this.audioRenderer.seek(),this.audioRenderBuffer=0,this.isCorePlayerOpened?(this.isBuffFlushing=!0,this.sendMsgToCorePlayer(Ei.SEEK,{flag:this.buffFlushFlag,time:i})):this.logger.warn(this.TAG,"corePlayer not opened, delay seek"),this.bwpMediaSource)for(var n=this.bwpMediaSource.activeSourceBuffers,r=0;r<n.length;r++)n[r][gt.SOURCEBUFFER_SEEK](i/1e3);e||this.checkBuffer()}},{key:"getVideoPlaybackQuality",value:function(){this.isCorePlayerOpened&&this.sendMsgToCorePlayer(Ei.GET_PLAYBACK_QUALITY);var t=new li;return t.fps=this.fps,t.totalVideoFrames=this.totalVideoFrames,t.droppedVideoFrames=this.droppedVideoFrames,t}},{key:"isAllReady",value:function(){return this.isCorePlayerCanPlay}},{key:"canplay",value:function(){var t;return null===(t=this.audioRenderer)||void 0===t?void 0:t.canPlay()}},{key:"redrawLastFrame",value:function(){this.sendMsgToCorePlayer(Ei.REDRAW_LAST_FRAME)}},{key:"endOfStream",value:function(t){this.sendMsgToCorePlayer(Ei.END_OF_STREAM,{mediaType:t})}},{key:"setWaitingState",value:function(){this.isWaiting=!0}},{key:"getWaitingState",value:function(){return this.isWaiting}},{key:"toDataURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.92;return this.renderCanvas.toDataURL(t,e)}},{key:"toBlob",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.92;return new Promise((function(n,r){try{t.renderCanvas.toBlob(n,e,i)}catch(t){r(t)}}))}},{key:"reload",value:function(){var t,e,i,n
;if(this.logger.warn(this.TAG,"reload, ready to flush core player"),clearTimeout(this.canplayTimer),null===(t=this.bufferChekTimer)||void 0===t||t.stop(),this.resetKeepScreenAlive(),null!==(e=this.audioRenderer)&&void 0!==e&&e.isPlaying()&&this.pause(),this.isCorePlayerOpened&&(this.isBuffFlushing=!0,this.buffFlushFlag=+new Date,this.sendMsgToCorePlayer(Ei.RELOAD,{flag:this.buffFlushFlag})),this.currentTime=0,this.appendWindowStart=0,this.appendWindowEnd=0,this.audioRenderBuffer=0,this.moduleLoadedTime=+new Date,this.fps=0,this.totalVideoFrames=0,this.droppedVideoFrames=0,this.lastTimeUpdate=0,this.hasFirstFrame=!1,this.isAudioInitDone=!1,this.isCorePlayerCanPlay=!1,this.isSeeking=!1,this.isWaiting=!1,this.isInternalSeek=!1,this.isVideoEnd=!1,this.isAudioEnd=!1,this._isPictureInPicture=!1,null===(i=this.audioRenderer)||void 0===i||i.seek(),this.bwpMediaSource)for(var r=this.bwpMediaSource.activeSourceBuffers,o=0;o<r.length;o++)r[o][gt.SOURCEBUFFER_SEEK](0);null===(n=this.bufferChekTimer)||void 0===n||n.start()}},{key:"destroy",value:function(){var t,e,i;this.corePlayerWorker&&(clearTimeout(this.canplayTimer),this.resetKeepScreenAlive(),window.removeEventListener("error",this.globalErrorHandler),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),null===(t=this.bufferChekTimer)||void 0===t||t.stop(),this.resetKeepScreenAlive(),this.bwpElement=null,this.bwpMediaSource=null,this.isCorePlayerCanPlay=!1,null===(e=this.audioRenderer)||void 0===e||e.removeEventListener(si.CANPLAY,this.audioCanplayHandler),null===(i=this.audioRenderer)||void 0===i||i.destroy(),this.corePlayerWorker.terminate(),this.corePlayerWorker.onmessage=null,this.corePlayerWorker.onerror=null,this.corePlayerWorker=null)}},{key:"sendMsgToCorePlayer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.corePlayerWorker&&(this.isCorePlayerOpened||t===Ei.INIT)&&this.corePlayerWorker.postMessage({msg:t,data:e},i)}},{key:"readyStateChecker",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.bwpElement;if(!(null!=e&&e.paused||this.isAudioEnd&&this.isVideoEnd)&&e&&e.readyState>=o.HAVE_METADATA){var i=e.buffered,n=i.length>0?i.end(0):0,r=this.currentTime/1e3;if(i.container(r)){if(n-r>.1){if(!this.isWaiting)return;!this.audioRenderer.isPlaying()&&this.canplay()&&(this.play(),this.logger.warn(this.TAG,"[waiting] recovery play")),this.isWaiting=!1,this.logger.warn(this.TAG,"[waiting] end"),!this.isSeeking&&t&&it(this.bwpElement,ut.PLAYING)}}else{if(this.isWaiting||this.isSeeking)return;this.audioRenderBuffer<=0&&(it(this.bwpElement,ut.WAITING),this.isWaiting=!0,this.seek(this.currentTime,!0),this.logger.warn(this.TAG,"[waiting] trigger internal seek, currentTime:",this.currentTime,n,e.duration)),this.sendMsgToCorePlayer(Ei.RESET_OUTOFSYNC_FRAME_COUNT)}}}},{key:"createTimer",value:function(t,e){var i;return{start:function(){var n=this;i=setTimeout((function(){t(),n.start()}),e)},stop:function(){clearTimeout(i)}}}},{key:"getIsDocumentVisible",value:function(){return"visible"===document.visibilityState}}]),i}(S),Si=Qi,ki=y((function t(){f(this,t)})),Di=HTMLElement;"function"!=typeof HTMLElement&&(Di=ki);var _i=Di;function Ri(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}var Mi=new WeakMap,Ti=new WeakMap,Fi=function(){function t(e,i){f(this,t),Ri(this,Mi,{writable:!0,value:void 0}),Ri(this,Ti,{writable:!0,value:void 0}),x(this,Mi,e),x(this,Ti,i)}return y(t,[{key:"code",get:function(){return w(this,Mi)}},{key:"message",get:function(){return w(this,Ti)}}]),t}(),Li=i(601),Ni={};function Pi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=I(t);if(e){var r=I(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return E(this,i)}}function Ui(t,e,i){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,i)}var Oi=new WeakMap,Gi=new WeakMap,Hi=new WeakMap,Vi=new WeakMap,Yi=new WeakMap,zi=new WeakMap,Wi=new WeakMap,Zi=new WeakMap,ji=new WeakMap,qi=new WeakMap,Ji=new WeakMap,Ki=new WeakMap,Xi=new WeakMap,$i=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,rn=new WeakMap,on=new WeakMap,an=new WeakMap,sn=new WeakMap,ln=new WeakMap,An=new WeakMap,cn=new WeakMap,hn=new WeakMap,dn=new WeakMap,un=new WeakMap,pn=new WeakMap,gn=new WeakMap,fn=new WeakMap,mn=new WeakMap,yn=new WeakMap,bn=new WeakMap,vn=new WeakMap,En=new WeakMap,In=new WeakMap,Cn=new WeakMap,Bn=new WeakMap,wn=new WeakMap,xn=new WeakMap,Qn=new WeakMap,Sn=new WeakMap,kn=new WeakMap,Dn=new WeakMap,_n=new WeakMap,Rn=new WeakMap,Mn=new WeakMap,Tn=new WeakMap,Fn=new WeakMap,Ln=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,Un=new WeakMap,On=new WeakMap,Gn=new WeakMap,Hn=new WeakMap,Vn=new WeakMap,Yn=new WeakMap,zn=new WeakMap,Wn=new WeakMap,Zn=new WeakMap,jn=new WeakMap,qn=function(e){v(s,e);var i,n=Pi(s);function s(){var e,i,r;f(this,s),Ui(b(e=n.call(this)),Oi,{writable:!0,value:void 0}),Ui(b(e),Gi,{writable:!0,value:"[BwpElement]"}),Ui(b(e),Hi,{writable:!0,value:void 0}),Ui(b(e),Vi,{writable:!0,value:void 0}),Ui(b(e),Yi,{writable:!0,value:void 0}),C(b(e),"srcObject",void 0),Ui(b(e),zi,{writable:!0,value:void 0}),C(b(e),"crossOrigin",void 0),Ui(b(e),Wi,{writable:!0,value:void 0}),C(b(e),"preload",void 0),Ui(b(e),Zi,{writable:!0,value:void 0}),Ui(b(e),ji,{writable:!0,value:void 0}),Ui(b(e),qi,{writable:!0,value:void 0}),Ui(b(e),Ji,{writable:!0,value:void 0}),Ui(b(e),Ki,{writable:!0,value:void 0}),Ui(b(e),Xi,{writable:!0,value:void 0}),C(b(e),"defaultPlaybackRate",void 0),Ui(b(e),$i,{writable:!0,value:void 0}),Ui(b(e),tn,{writable:!0,value:void 0}),Ui(b(e),en,{writable:!0,value:void 0}),Ui(b(e),nn,{writable:!0,value:void 0}),C(b(e),"autoplay",void 0),C(b(e),"loop",void 0),Ui(b(e),rn,{writable:!0,value:void 0}),Ui(b(e),on,{writable:!0,value:void 0}),C(b(e),"defaultMuted",void 0),Ui(b(e),an,{writable:!0,value:void 0}),Ui(b(e),sn,{writable:!0,value:void 0}),Ui(b(e),ln,{writable:!0,value:void 0}),C(b(e),"poster",void 0),C(b(e),"playsInline",void 0),Ui(b(e),An,{writable:!0,value:void 0}),Ui(b(e),cn,{writable:!0,value:void 0}),Ui(b(e),hn,{writable:!0,value:void 0}),Ui(b(e),dn,{writable:!0,value:void 0}),Ui(b(e),un,{writable:!0,value:void 0}),Ui(b(e),pn,{writable:!0,value:void 0}),Ui(b(e),gn,{writable:!0,value:void 0}),Ui(b(e),fn,{writable:!0,value:void 0}),Ui(b(e),mn,{writable:!0,value:void 0}),Ui(b(e),yn,{writable:!0,value:void 0}),Ui(b(e),bn,{writable:!0,value:void 0}),Ui(b(e),vn,{writable:!0,value:void 0}),Ui(b(e),En,{writable:!0,value:void 0}),Ui(b(e),In,{writable:!0,value:void 0}),Ui(b(e),Cn,{writable:!0,value:void 0}),Ui(b(e),Bn,{writable:!0,value:function(){var t="bwp-base-style",i=document.querySelector("#".concat(t));i||((i=document.createElement("style")).setAttribute("id",t),i.innerHTML="bwp-video { object-fit: contain; }",document.head.appendChild(i)),x(b(e),un,e.attachShadow({mode:"closed"}));var n=document.createElement("style");n.innerHTML=Li.Z.toString(),w(b(e),un).appendChild(n),x(b(e),pn,document.createElement("div")),w(b(e),pn).setAttribute("class","-bwp-internal-container"),w(b(e),un).appendChild(w(b(e),pn)),w(b(e),gn).setAttribute("class","-bwp-internal-render-canvas"),w(b(e),pn).appendChild(w(b(e),gn)),w(b(e),bn).setAttribute("class","-bwp-internal-proxy-video-element"),w(b(e),pn).appendChild(w(b(e),bn)),e.getAttribute("controls")&&w(b(e),wn).call(b(e))}}),Ui(b(e),wn,{writable:!0,value:function(){w(b(e),yn)||"function"!=typeof Ni||(x(b(e),yn,new Ni(b(e),w(b(e),pn),w(b(e),gn))),w(b(e),yn).setupControls())}}),Ui(b(e),xn,{writable:!0,value:(i=R(T().mark((function t(){var i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w(b(e),Wi)===e.NETWORK_EMPTY&&w(b(e),Oi).log(w(b(e),Gi),"[internalPlay] network empty"),
w(b(e),nn)&&w(b(e),$i)>0&&w(b(e),Dn).call(b(e),0),w(b(e),Xi)?(x(b(e),Xi,!1),it(b(e),ut.PLAY),w(b(e),ji)<=e.HAVE_CURRENT_DATA?(w(b(e),Oi).warn(w(b(e),Gi),"[waiting] not enough data to play"),null===(i=w(b(e),mn))||void 0===i||i.setWaitingState(),it(b(e),ut.WAITING)):w(b(e),ji)>=e.HAVE_FUTURE_DATA&&w(b(e),mn).play().then((function(){it(b(e),ut.PLAYING)})).catch((function(t){x(b(e),Xi,!0);var i=new Error("Not ready");throw i.name="NotReady",i}))):(w(b(e),ji),e.HAVE_ENOUGH_DATA),x(b(e),dn,!1);case 4:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})}),Ui(b(e),Qn,{writable:!0,value:function(){var t;w(b(e),Wi)!==e.NETWORK_LOADING&&w(b(e),Wi)!==e.NETWORK_IDLE||it(b(e),ut.ABORT),w(b(e),Wi)!==e.NETWORK_EMPTY&&(it(b(e),ut.EMPTIED),w(b(e),fn)&&(w(b(e),fn).removeEventListener("sourceopen",w(b(e),Mn)),w(b(e),fn)[gt.MEDIASOURCE_DETACH]()),w(b(e),Zi).clear(),null===(t=w(b(e),mn))||void 0===t||t.reload(),w(b(e),ji)!==e.HAVE_NOTHING&&w(b(e),Hn).call(b(e),e.HAVE_NOTHING),w(b(e),Xi)||x(b(e),Xi,!0),w(b(e),qi)&&x(b(e),qi,!1),x(b(e),Ji,0),0!==w(b(e),An)&&(x(b(e),An,0),it(b(e),ut.TIME_UPDATE)),x(b(e),Ki,NaN),w(b(e),nn)&&x(b(e),nn,!1)),e.playbackRate=e.defaultPlaybackRate,x(b(e),Hi,null),x(b(e),dn,!0),w(b(e),Sn).call(b(e))}}),Ui(b(e),Sn,{writable:!0,value:(r=R(T().mark((function t(){var i,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x(b(e),Wi,e.NETWORK_NO_SOURCE),x(b(e),hn,null===(i=window[gt.BWPHEVC])||void 0===i?void 0:i[w(b(e),Yi)||""]),!(w(b(e),hn)instanceof MediaStream||w(b(e),hn)instanceof MediaSource||w(b(e),hn)instanceof Me||w(b(e),hn)instanceof Blob)){t.next=6;break}n="object",t.next=16;break;case 6:if(!w(b(e),Yi)&&""!==w(b(e),Yi)){t.next=10;break}n="attribute",t.next=16;break;case 10:if(!e.children[0]||"SOURCE"!==e.children[0].tagName){t.next=14;break}n="children",t.next=16;break;case 14:return x(b(e),Wi,e.NETWORK_EMPTY),t.abrupt("return");case 16:if(w(b(e),Oi).log(w(b(e),Gi),"src: ".concat(w(b(e),Yi),", mode: ").concat(n)),"object"!==n){t.next=24;break}x(b(e),Wi,e.NETWORK_LOADING),it(b(e),ut.LOAD_START),x(b(e),zi,""),w(b(e),kn).call(b(e)),t.next=29;break;case 24:if("attribute"!==n){t.next=28;break}throw new Error("[BwpElement] resourceSelectionAlgorithm not implemented mode attribute");case 28:throw new Error("[BwpElement] resourceSelectionAlgorithm not implemented mode other");case 29:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})}),Ui(b(e),kn,{writable:!0,value:function(){var i;if(i=w(b(e),hn)?"local":"remote",x(b(e),zi,w(b(e),Yi)),"remote"===i)throw new Error("[BwpElement] resourceFetchArlgorithm not implemented mode remote");if(w(b(e),hn)&&w(b(e),hn)instanceof File)throw new Error("[BwpElement] resourceFetchArlgorithm not implemented local file");w(b(e),hn)&&w(b(e),hn)instanceof Me&&w(b(e),Yi)&&(x(b(e),fn,w(b(e),hn)),w(b(e),fn).readyState!==t.CLOSED||w(b(e),Rn).call(b(e)))}}),Ui(b(e),Dn,{writable:!0,value:function(t){if(w(b(e),ji)!==e.HAVE_NOTHING){w(b(e),nn)&&x(b(e),nn,!1),w(b(e),qi),x(b(e),qi,!0);var i=t;i>w(b(e),Ki)&&(i=w(b(e),Ki)),w(b(e),Oi).warn(w(b(e),Gi),"currentTime is ".concat(w(b(e),An),", seek to ").concat(i)),x(b(e),An,i),0!==e.seekable.length&&(it(b(e),ut.SEEKING),x(b(e),Ji,i),w(b(e),fn)&&e.readyState>e.HAVE_METADATA&&!w(b(e),Zi).container(i)&&w(b(e),Hn).call(b(e),e.HAVE_METADATA),w(b(e),mn).seek(1e3*i))}}}),Ui(b(e),_n,{writable:!0,value:function(){if(w(b(e),ji)>=o.HAVE_METADATA){if(w(b(e),An)>=w(b(e),Ki)&&w(b(e),$i)>=0&&!e.loop)return!0;if(0===w(b(e),An)&&w(b(e),$i)<0)return!0}return!1}}),Ui(b(e),Rn,{writable:!0,value:function(){var t,i;w(b(e),fn)&&(w(b(e),Oi).log(w(b(e),Gi),"attach BwpMediaSource"),w(b(e),fn).addEventListener("sourceopen",w(b(e),Mn)),w(b(e),fn)[gt.MEDIASOURCE_ATTACH](b(e)),null===(t=window[gt.BWPHEVC])||void 0===t||delete t[w(b(e),Yi)],null===(i=w(b(e),mn))||void 0===i||i.setMediaSource(w(b(e),fn)))}}),Ui(b(e),Mn,{writable:!0,value:function(){var t;w(b(e),fn)&&(null===(t=w(b(e),mn))||void 0===t||t.setSourceOpen())}}),Ui(b(e),Tn,{writable:!0,value:function(t){if(!(w(b(e),Wi)<e.NETWORK_LOADING||w(b(e),An)===t||w(b(e),nn))){x(b(e),An,t);var i=+new Date;i-w(b(e),En)>=200&&(x(b(e),En,i),it(b(e),ut.TIME_UPDATE))}}}),Ui(b(e),Fn,{writable:!0,value:function(){var t;x(b(e),qi,!1),0!==w(b(e),cn)&&x(b(e),cn,0),it(b(e),ut.TIME_UPDATE),it(b(e),ut.SEEKED),!w(b(e),Xi)&&null!==(t=w(b(e),mn))&&void 0!==t&&t.isAllReady()&&it(b(e),ut.PLAYING)}}),Ui(b(e),Ln,{writable:!0,value:function(){w(b(e),Oi).warn(w(b(e),Gi),"play ended"),x(b(e),An,w(b(e),Ki)),e.pause(),x(b(e),nn,!0),it(b(e),ut.ENDED)}}),Ui(b(e),Nn,{writable:!0,value:function(){var t,i,n;null!==(t=w(b(e),mn))&&void 0!==t&&t.isAllReady()?(w(b(e),In)&&x(b(e),In,!1),it(b(e),ut.CANPLAY),w(b(e),Oi).log(w(b(e),Gi),"readyState change CANPLAY"),w(b(e),Xi)||(x(b(e),dn,!1),e.seeking||null!==(i=w(b(e),mn))&&void 0!==i&&i.getWaitingState()||null===(n=w(b(e),mn))||void 0===n||!n.canplay()||it(b(e),ut.PLAYING))):x(b(e),In,!0)}}),Ui(b(e),Pn,{writable:!0,value:function(){var t;null!==(t=w(b(e),mn))&&void 0!==t&&t.isAllReady()?(w(b(e),Cn)&&x(b(e),Cn,!1),it(b(e),ut.CANPLAY_THROUGH)):x(b(e),Cn,!0)}}),Ui(b(e),Un,{writable:!0,value:function(){var t;null!==(t=w(b(e),mn))&&void 0!==t&&t.isAllReady()&&(w(b(e),mn).canplay()?w(b(e),mn).play().then((function(){w(b(e),Oi).log(w(b(e),Gi),"[triggerAutoPlay], call play done"),it(b(e),ut.PLAY),it(b(e),ut.PLAYING)})).catch((function(){x(b(e),Xi,!0),w(b(e),Oi).log(w(b(e),Gi),"[triggerAutoPlay], failed, not ready")})):(x(b(e),Xi,!0),w(b(e),Oi).warn(w(b(e),Gi),"[triggerAutoPlay], cannot auto play")),x(b(e),dn,!1))}}),Ui(b(e),On,{writable:!0,value:function(){var t;w(b(e),In)&&w(b(e),Nn).call(b(e)),w(b(e),Cn)&&w(b(e),Pn).call(b(e)),e.autoplay&&w(b(e),dn)&&!w(b(e),Xi)&&e.readyState===e.HAVE_ENOUGH_DATA&&w(b(e),Un).call(b(e)),w(b(e),Xi)||null!==(t=w(b(e),mn))&&void 0!==t&&t.canplay()||(w(b(e),Oi).warn(w(b(e),Gi),"[corePlayerCanplay] can not play, set paused true"),x(b(e),Xi,!0))}}),Ui(b(e),Gn,{writable:!0,value:function(t){var i=t.errorCode,n=t.describe;x(b(e),Vi,new Fi(i,n)),console.error("WasmPlayer error, code: ".concat(i,", message: ").concat(n)),e.dispatchEvent(new wi(i,n))}}),Ui(b(e),Hn,{writable:!0,value:function(t){if(t!==w(b(e),ji)&&e.networkState!==e.NETWORK_EMPTY){w(b(e),Oi).log(w(b(e),Gi),"set readyState, new state is ".concat(t));var i=w(b(e),ji);if(x(b(e),ji,t),i===e.HAVE_NOTHING&&t===e.HAVE_METADATA)w(b(e),Oi).log(w(b(e),Gi),"readyState change LOADED_METADATA"),it(b(e),ut.LOADED_METADATA),setTimeout((function(){var t;null===(t=w(b(e),mn))||void 0===t||t.loadedMetadata(),0!==w(b(e),cn)&&w(b(e),Dn).call(b(e),w(b(e),cn))}),1);else if(i===e.HAVE_METADATA&&t>=e.HAVE_CURRENT_DATA&&(it(b(e),ut.LOADED_DATA),t<e.HAVE_FUTURE_DATA))return;i>=e.HAVE_FUTURE_DATA&&t<=e.HAVE_CURRENT_DATA?w(b(e),_n).call(b(e))||w(b(e),Xi)||(it(b(e),ut.TIME_UPDATE),it(b(e),ut.WAITING),w(b(e),Oi).log(w(b(e),Gi),"fire waiting")):i<=e.HAVE_CURRENT_DATA&&t===e.HAVE_FUTURE_DATA?w(b(e),Nn).call(b(e)):t===e.HAVE_ENOUGH_DATA&&(i<=e.HAVE_CURRENT_DATA&&w(b(e),Nn).call(b(e)),w(b(e),Pn).call(b(e)),e.autoplay&&w(b(e),dn)&&w(b(e),Xi)&&(w(b(e),Oi).log(w(b(e),Gi),"[autoplay] HAVE_ENOUGH_DATA, set paused false"),x(b(e),Xi,!1),w(b(e),Un).call(b(e))))}}}),Ui(b(e),Vn,{writable:!0,value:function(t){t!==w(b(e),Ki)&&(x(b(e),Ki,t),it(b(e),ut.DURATION_CHANGE))}}),Ui(b(e),Yn,{writable:!0,value:function(){if(w(b(e),fn)&&w(b(e),fn).readyState===t.ENDED)for(var i=w(b(e),fn).activeSourceBuffers,n=0;n<i.length;n++){var r,o=i[n];o[gt.SOURCEBUFFER_IS_ENDED]()&&(null===(r=w(b(e),mn))||void 0===r||r.endOfStream(o.mediaType))}}}),Ui(b(e),zn,{writable:!0,value:function(){it(b(e),ut.ENTER_PICTURE_IN_PICTURE)}}),Ui(b(e),Wn,{writable:!0,value:function(){w(b(e),mn)&&(w(b(e),mn).isPictureInPicture=!1,w(b(e),gn).style.visibility="visible",w(b(e),bn).style.display="none",w(b(e),bn).srcObject=null,x(b(e),vn,null),w(b(e),bn).removeEventListener(ut.ENTER_PICTURE_IN_PICTURE,w(b(e),zn)),w(b(e),bn).removeEventListener(ut.LEAVE_PICTURE_IN_PICTURE,w(b(e),zn)),it(b(e),ut.LEAVE_PICTURE_IN_PICTURE))}}),Ui(b(e),Zn,{writable:!0,value:function(){window.removeEventListener("beforeunload",w(b(e),Zn)),e.destroy()}}),Ui(b(e),jn,{writable:!0,value:function(t){
return!!"".concat(t).match(/^[0-9]+.?[0-9]*$/)}});var a=performance.now();if(!oi())throw new Error("WasmPlayer not supported!");if(!window.AudioWorklet||!window.AudioWorkletNode)throw new Error("WasmPlayer not supported, HTTP page can not use AudioWorklet!");return x(b(e),Oi,At.getInstance()),x(b(e),Hi,null),x(b(e),Vi,null),x(b(e),Yi,""),e.srcObject=null,x(b(e),zi,""),e.crossOrigin=null,x(b(e),Wi,e.NETWORK_EMPTY),e.preload="metadata",x(b(e),Zi,new Z),x(b(e),ji,e.HAVE_NOTHING),x(b(e),qi,!1),x(b(e),Ki,NaN),x(b(e),Xi,!0),e.defaultPlaybackRate=1,x(b(e),$i,1),x(b(e),tn,new Z),x(b(e),en,new Z),x(b(e),nn,!1),e.autoplay=!1,e.loop=!1,x(b(e),rn,!1),x(b(e),on,!1),e.defaultMuted=!1,x(b(e),an,new et),x(b(e),sn,0),x(b(e),ln,0),e.poster="",e.playsInline=!1,x(b(e),Ji,0),x(b(e),An,0),x(b(e),cn,0),x(b(e),dn,!0),x(b(e),In,!1),x(b(e),Cn,!1),x(b(e),gn,document.createElement("canvas")),x(b(e),mn,new Si(w(b(e),gn),b(e),w(b(e),Tn))),w(b(e),mn).addEventListener(Bi.ENDED,w(b(e),Ln)),w(b(e),mn).addEventListener(Bi.SEEKED,w(b(e),Fn)),w(b(e),mn).addEventListener(Bi.CANPLAY,w(b(e),On)),w(b(e),mn).addEventListener(Bi.ERROR,w(b(e),Gn)),e[gt.SET_READY_STATE]=w(b(e),Hn),e[gt.SET_DURATION]=w(b(e),Vn),e[gt.END_OF_STREAM]=w(b(e),Yn),x(b(e),bn,document.createElement("video")),w(b(e),Bn).call(b(e)),window.addEventListener("beforeunload",w(b(e),Zn)),x(b(e),En,0),w(b(e),Oi).warn(w(b(e),Gi),"init bwp done, spent: ".concat(performance.now()-a," ms")),e}return y(s,[{key:"error",get:function(){return w(this,Hi)}},{key:"bwpError",get:function(){return w(this,Vi)}},{key:"src",get:function(){return w(this,Yi)},set:function(t){x(this,Yi,t),this.setAttribute("src",t),w(this,Qn).call(this)}},{key:"currentSrc",get:function(){return w(this,zi)}},{key:"NETWORK_EMPTY",get:function(){return r.NETWORK_EMPTY}},{key:"NETWORK_IDLE",get:function(){return r.NETWORK_IDLE}},{key:"NETWORK_LOADING",get:function(){return r.NETWORK_LOADING}},{key:"NETWORK_NO_SOURCE",get:function(){return r.NETWORK_NO_SOURCE}},{key:"networkState",get:function(){return w(this,Wi)},set:function(t){w(this,Oi).log(w(this,Gi),"Network State Change to ".concat(t)),x(this,Wi,t)}},{key:"buffered",get:function(){if(w(this,fn)){var t=w(this,fn).activeSourceBuffers,e=t.length;if(0==e)return w(this,Zi);for(var i=NaN,n=0;n<e;n++)for(var r=t[n].buffered,o=0;o<r.length;o++)(!i||i<r.end(o))&&(i=r.end(o));var a=new Z;a.add(0,i);for(var s=0;s<e&&0!==(a=q(a,t[s].buffered)).length;s++);x(this,Zi,a)}else w(this,Zi)||x(this,Zi,new Z);return w(this,Zi)}},{key:"HAVE_NOTHING",get:function(){return o.HAVE_NOTHING}},{key:"HAVE_METADATA",get:function(){return o.HAVE_METADATA}},{key:"HAVE_CURRENT_DATA",get:function(){return o.HAVE_CURRENT_DATA}},{key:"HAVE_FUTURE_DATA",get:function(){return o.HAVE_FUTURE_DATA}},{key:"HAVE_ENOUGH_DATA",get:function(){return o.HAVE_ENOUGH_DATA}},{key:"readyState",get:function(){return w(this,ji)}},{key:"seeking",get:function(){return w(this,qi)}},{key:"currentTime",get:function(){return w(this,An)},set:function(t){0!==w(this,cn)&&x(this,cn,0),w(this,ji)===this.HAVE_NOTHING?0!==t&&x(this,cn,t):w(this,Dn).call(this,t)}},{key:"duration",get:function(){return w(this,Ki)}},{key:"paused",get:function(){return w(this,Xi)}},{key:"playbackRate",get:function(){return w(this,$i)},set:function(t){t!=w(this,$i)&&(x(this,$i,t),w(this,mn)&&(w(this,mn).playbackRate=t),it(this,ut.RATE_CHANGE))}},{key:"played",get:function(){return w(this,tn)}},{key:"seekable",get:function(){if(w(this,fn)){if(Number.isNaN(w(this,Ki)))return new Z;if(w(this,Ki)===Number.POSITIVE_INFINITY)throw new Error("Method not implemented.");var t=new Z;return t.add(0,w(this,Ki)),t}return w(this,en)}},{key:"ended",get:function(){return w(this,_n).call(this)}},{key:"controls",get:function(){return w(this,rn)},set:function(t){t!==w(this,rn)&&(t?this.setAttribute("controls",""):this.removeAttribute("controls"))}},{key:"muted",get:function(){return w(this,on)},set:function(t){t!=w(this,on)&&(x(this,on,t),w(this,Oi).warn(w(this,Gi),"set muted: ".concat(t)),w(this,mn)&&(w(this,mn).muted=t,it(this,ut.VOLUME_CHANGE)))}},{key:"volume",get:function(){var t;return(null===(t=w(this,mn))||void 0===t?void 0:t.volume)||0},set:function(t){if(t<0||t>1)throw new DOMException("IndexSizeError");if(w(this,Oi).warn(w(this,Gi),"set volume: ".concat(t)),w(this,mn)){if(t==w(this,mn).volume)return;w(this,mn).volume=t,it(this,ut.VOLUME_CHANGE)}}},{key:"textTracks",get:function(){return w(this,an)}},{key:"width",get:function(){return w(this,sn)},set:function(t){this.setAttribute("width",w(this,jn).call(this,t)?t.toString():"0")}},{key:"height",get:function(){return w(this,ln)},set:function(t){this.setAttribute("height",w(this,jn).call(this,t)?t.toString():"0")}},{key:"videoWidth",get:function(){return w(this,gn).width||0}},{key:"videoHeight",get:function(){return w(this,gn).height||0}},{key:"load",value:function(){w(this,Qn).call(this)}},{key:"canPlayType",value:function(t){return"probably"}},{key:"play",value:(i=R(T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(w(this,Oi).log(w(this,Gi),"call play"),!w(this,mn)||null!==(e=w(this,mn))&&void 0!==e&&e.canplay()||w(this,Wi)===this.NETWORK_EMPTY){t.next=4;break}throw w(this,Oi).warn(w(this,Gi),"play() failed because the user didn't interact with the document first."),new DOMException("play() failed because the user didn't interact with the document first.","NotAllowedError");case 4:if(!w(this,Hi)||w(this,Hi).code!==a.MEDIA_ERR_SRC_NOT_SUPPORTED){t.next=6;break}throw new O;case 6:return t.abrupt("return",w(this,xn).call(this));case 7:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"pause",value:function(){var t;w(this,Oi).warn(w(this,Gi),"call pause"),w(this,Wi)!==this.NETWORK_EMPTY&&(x(this,dn,!1),w(this,Xi)||(x(this,Xi,!0),null!=w(this,mn)&&(w(this,Oi).log(w(this,Gi),"send pause event"),it(this,ut.TIME_UPDATE),it(this,ut.PAUSE),null===(t=w(this,mn))||void 0===t||t.pause())))}},{key:"addTextTrack",value:function(t,e,i){throw new Error("Method not implemented.")}},{key:"getVideoPlaybackQuality",value:function(){return w(this,mn)?w(this,mn).getVideoPlaybackQuality():new li}},{key:"requestPictureInPicture",value:function(){var t=this;if(w(this,Oi).log(w(this,Gi),"requestPictureInPicture"),!document.pictureInPictureEnabled)throw new O;if(w(this,ji)===this.HAVE_NOTHING)throw new G;return document.pictureInPictureElement instanceof s?w(this,bn).requestPictureInPicture():new Promise((function(e,i){if(w(t,mn)){w(t,mn).isPictureInPicture=!0,x(t,vn,w(t,gn).captureStream(30));var n,r=w(t,bn);r.addEventListener(ut.LOADED_METADATA,(function n(){w(t,Oi).log(w(t,Gi),"browser video element loaded metadata"),r.removeEventListener(ut.LOADED_METADATA,n),r.addEventListener(ut.ENTER_PICTURE_IN_PICTURE,w(t,zn)),r.addEventListener(ut.LEAVE_PICTURE_IN_PICTURE,w(t,Wn)),r.requestPictureInPicture().then((function(i){w(t,bn).style.display="block",w(t,gn).style.visibility="hidden",e(i)})).catch((function(e){w(t,mn)&&(w(t,mn).isPictureInPicture=!1),x(t,vn,null),console.error(e),i(e)}))})),r.srcObject=w(t,vn),r.play(),w(t,Xi)&&(null===(n=w(t,mn))||void 0===n||n.redrawLastFrame())}else i()}))}},{key:"destroy",value:function(){w(this,Oi).warn(w(this,Gi),"call destroy"),w(this,mn)&&(w(this,mn).removeEventListener(Bi.SEEKED,w(this,Fn)),w(this,mn).removeEventListener(Bi.ENDED,w(this,Ln)),w(this,mn).removeEventListener(Bi.CANPLAY,w(this,On)),w(this,mn).removeEventListener(Bi.ERROR,w(this,Gn)),window.removeEventListener("beforeunload",w(this,Zn)),w(this,mn).destroy()),w(this,fn)&&(w(this,fn).removeEventListener("sourceopen",w(this,Mn)),w(this,fn)[gt.MEDIASOURCE_DETACH]()),x(this,mn,null),x(this,fn,null)}},{key:"toDataURL",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.92;return null===(t=w(this,mn))||void 0===t?void 0:t.toDataURL(e,i)}},{key:"toBlob",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.92;return w(this,mn)?w(this,mn).toBlob(t,e):Promise.reject()}},{key:"getRenderCanvas",
value:function(){return w(this,gn)}},{key:"connectedCallback",value:function(){w(this,Oi).log(w(this,Gi),"connectedCallback")}},{key:"disconnectedCallback",value:function(){w(this,Oi).warn(w(this,Gi),"disconnectedCallback")}},{key:"adoptedCallback",value:function(){w(this,Oi).warn(w(this,Gi),"adoptedCallback")}},{key:"attributeChangedCallback",value:function(t,e,i){w(this,Oi).log(w(this,Gi),"attribute change, name: ".concat(t,", oldValue: ").concat(e,", newValue: ").concat(i));var n=Number.parseInt(i,10);switch(t){case"controls":var r;null===e?(w(this,wn).call(this),x(this,rn,!0)):(null===(r=w(this,yn))||void 0===r||r.destroyControls(),x(this,yn,null),x(this,rn,!1));break;case"autoplay":this.autoplay=null===e;break;case"src":w(this,Yi)!==i&&x(this,Yi,i);break;case"style":default:break;case"loop":this.loop=null===e;break;case"width":if(null===i||""===i){w(this,pn).style.width="";break}if(w(this,sn)===n&&w(this,pn).style.width===i)break;if(Number.isNaN(n)||n<0){x(this,sn,0);break}x(this,sn,n),-1!==i.indexOf("%")?w(this,pn).style.width="".concat(n,"%"):w(this,pn).style.width="".concat(n,"px");break;case"height":if(null===i||""===i){w(this,pn).style.height="";break}if(w(this,ln)===n&&w(this,pn).style.height===i)break;if(Number.isNaN(n)||n<0){x(this,ln,0);break}x(this,ln,n),-1!==i.indexOf("%")?w(this,pn).style.height="".concat(n,"%"):w(this,pn).style.height="".concat(n,"px")}}}],[{key:"observedAttributes",get:function(){return["controls","autoplay","src","style","loop","width","height"]}}]),s}(_i),Jn=qn;st&&console.log("%c[WasmPlayer] version: ".concat(h,", build date: ").concat("6/1/2023, 16:42:40 GMT+0800"),"color: #fb7299;");var Kn=document.createElement("meta");Kn.setAttribute("id","bwp-meta"),Kn.setAttribute("http-equiv","origin-trial"),Kn.setAttribute("content","Asgonbsvb0ufqVFRrwnMJgGf3HAtiwl++2S208XERSmTRBxebWHcsJTu9K4wtePhsFzqKF2Zf9F4FuaDogfx3woAAAB2eyJvcmlnaW4iOiJodHRwczovL2JpbGliaWxpLmNvbTo0NDMiLCJmZWF0dXJlIjoiVW5yZXN0cmljdGVkU2hhcmVkQXJyYXlCdWZmZXIiLCJleHBpcnkiOjE3MDk4NTU5OTksImlzU3ViZG9tYWluIjp0cnVlfQ=="),document.head.appendChild(Kn),window.customElements&&window.customElements.define&&(window.customElements.define("bwp-video",Jn),window.BwpElement=Jn,window.BwpMediaSource=Me);var Xn={BwpElement:Jn,BwpMediaSource:Me,BwpErrorCodes:Fe,isBwpSupported:oi}}(),n.default}()},6498:function(t,e,i){"use strict";var n=i(50282),r=i.n(n),o=i(75572),a=i.n(o),s=i(64423),l=i.n(s),A=i(52182),c=i.n(A),h=i(73632),d=i.n(h),u=i(58191),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals},50282:function(t){"use strict";var e=[];function i(t){for(var i=-1,n=0;n<e.length;n++)if(e[n].identifier===t){i=n;break}return i}function n(t,n){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],A=n.base?l[0]+n.base:l[0],c=o[A]||0,h="".concat(A," ").concat(c);o[A]=c+1;var d=i(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(u);else{var p=r(u,n);n.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var i=e.domAPI(e);i.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,r){var o=n(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=i(o[a]);e[s].references--}for(var l=n(t,r),A=0;A<o.length;A++){var c=i(o[A]);0===e[c].references&&(e[c].updater(),e.splice(c,1))}o=l}}},64423:function(t){"use strict";var e={};t.exports=function(t,i){var n=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},73632:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},52182:function(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach((function(i){t.setAttribute(i,e[i])}))}},75572:function(t){"use strict";var e,i=(e=[],function(t,i){return e[t]=i,e.filter(Boolean).join("\n")});function n(t,e,n,r){var o;if(n)o="";else{o="",r.supports&&(o+="@supports (".concat(r.supports,") {")),r.media&&(o+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(o+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),o+=r.css,a&&(o+="}"),r.media&&(o+="}"),r.supports&&(o+="}")}if(t.styleSheet)t.styleSheet.cssText=i(e,o);else{var s=document.createTextNode(o),l=t.childNodes;l[e]&&t.removeChild(l[e]),l.length?t.insertBefore(s,l[e]):t.appendChild(s)}}var r={singleton:null,singletonCounter:0};t.exports=function(t){var e=r.singletonCounter++,i=r.singleton||(r.singleton=t.insertStyleElement(t));return{update:function(t){n(i,e,!1,t)},remove:function(t){n(i,e,!0,t)}}}},80155:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" data-pointer="none" style="enable-background:new 0 0 16 16" viewBox="0 0 16 16"><path d="M7.25 7.25v-4.5a.75.75 0 0 1 1.5 0v4.5h4.5a.75.75 0 0 1 0 1.5h-4.5v4.5a.75.75 0 0 1-1.5 0v-4.5h-4.5a.75.75 0 0 1 0-1.5h4.5z"></path></svg>'},22819:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 6 10"><path fill="#fff" d="M4.93.15c.231-.213.613-.197.865.035l.038.034a.556.556 0 0 1 0 .795L1.538 5l4.295 4.017a.557.557 0 0 1 0 .796l-.053.047c-.26.19-.63.19-.851-.014L.167 5.396a.557.557 0 0 1 0-.795L4.93.15Z"></path></svg>'},27059:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 14 12"><rect width="13.5" height="11.5" x=".25" y=".25" stroke="#fff" stroke-opacity=".5" stroke-width=".5" rx="5.75"></rect><path fill="#fff" d="M5.248 2.788h.76L8.256 8.5h-.712l-.608-1.6H4.312l-.608 1.6H3l2.248-5.712Zm-.728 3.56h2.208l-1.08-2.856h-.032L4.52 6.348Zm4.362-3.56h.648V8.5h-.648V2.788Z"></path></svg>'},75348:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M8 2.333a5.667 5.667 0 1 0 0 11.333A5.667 5.667 0 0 0 8 2.333ZM1.333 7.999a6.667 6.667 0 1 1 13.334 0A6.667 6.667 0 0 1 1.333 8Z"></path><path fill="#fff" d="M8.583 10.624a.583.583 0 1 1-1.166 0 .583.583 0 0 1 1.166 0ZM8 5.916a.833.833 0 0 0-.833.833.5.5 0 1 1-1 0 1.833 1.833 0 0 1 3.666 0c0 .492-.177.85-.411 1.134-.11.134-.232.25-.34.35l-.093.085c-.076.07-.144.132-.214.202-.167.167-.226.285-.25.354a.572.572 0 0 0-.025.209.5.5 0 1 1-1 0c0-.136.007-.326.08-.536.082-.237.234-.48.488-.735a7.97 7.97 0 0 1 .261-.245l.074-.068c.102-.094.182-.173.247-.252a.719.719 0 0 0 .183-.498A.833.833 0 0 0 8 5.916Z"></path></svg>'},17104:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 591 129"><path fill="#fff" fill-rule="evenodd" d="m28.218 32.484 3.696-5.742c-1.945-1.147-4.492-2.482-7.072-3.834-.836-.438-1.675-.878-2.498-1.314h8.844v-6.27h-9.372v-.792c0-.314.012-.69.026-1.115.018-.56.04-1.209.04-1.921h8.316V5.16H14.292l1.452-3.696L8.682.21c-1.32 3.63-3.828 8.382-7.194 12.342l3.696 2.772H2.016v6.27h10.362c-2.31 3.366-6.27 5.544-12.276 7.854l4.092 6.996 4.026-1.848v24.882h42.504V32.484H28.218ZM56.268 4.83H32.97v24.618h23.298V4.83ZM14.424 15.324h-5.94c.858-1.254 1.716-2.508 2.508-3.828h3.498c0 1.254 0 2.508-.066 3.366v.462Zm34.65-3.696v10.758h-8.778V11.628h8.778ZM12.18 32.484c2.838-1.716 5.016-3.564 6.468-5.544.595.374 1.212.757 1.836 1.145 2.35 1.46 4.814 2.991 6.744 4.399H12.18Zm30.294 6.402v3.828H16.536v-3.828h25.938Zm0 13.992H16.536V49.05h25.938v3.828Zm54.672-30.03c0 5.082 2.046 6.996 6.072 7.194 3.762.198 7.59.198 11.418 0 5.346-.198 7.26-1.584 8.316-6.666.33-1.65.462-2.574.66-3.96l-7.194-2.574-.094.735c-.133 1.051-.216 1.707-.434 2.631-.462 2.046-1.056 2.31-3.696 2.508a33.5 33.5 0 0 1-5.148 0c-1.914-.198-2.376-.33-2.376-2.442v-2.112c5.28-2.112 12.606-5.28 16.104-7.392l-3.432-7.062c-2.574 1.914-8.052 4.422-12.672 6.402V2.322l-7.524-.396v14.52c-2.442-3.63-6.138-8.382-8.646-11.022L82.956 9.78c.247.309.513.63.797.972a58.863 58.863 0 0 1 2.107 2.658c-1.312.091-2.638.155-3.92.216-1.49.071-2.92.14-4.198.246 1.716-1.188 5.016-6.006 7.326-9.9L77.742.474c-2.112 4.554-6.732 10.56-8.316 12.012-.235.15-.428.327-.625.507-.411.377-.837.766-1.685.945l1.848 7.656c1.518-.33 3.3-.528 5.412-.726 4.62-.33 11.88-.726 15.972-.924l1.848 2.97h-23.1v37.62h7.326V48.06H87.18v1.98c0 2.442-.264 2.838-1.782 3.036l-3.432.33 2.112 7.326 3.036-.264c5.742-.528 7.392-1.98 7.392-7.524v-30.03H92.79l4.356-4.092v4.026Zm-20.724 6.6h10.692v2.838H76.422v-2.838Zm47.586 17.754-7.194-2.64c-.198 1.848-.396 3.432-.594 4.422-.528 2.376-1.254 2.904-4.158 3.102a26.235 26.235 0 0 1-4.554 0c-2.046-.198-2.838-.528-2.838-2.64v-3.432c5.478-2.112 12.87-5.478 16.896-8.118l-3.762-6.336c-3.036 2.112-8.382 4.884-13.134 6.996v-6.798l-7.458-.396V52.02c0 5.016 2.112 7.062 6.336 7.26a99.9 99.9 0 0 0 10.89 0c5.61-.33 7.788-1.782 8.844-6.798l.077-.475c.258-1.605.589-3.667.649-4.805ZM87.18 41.526H76.422v-2.904h10.692l.066 2.904Zm65.101 7.26V27.798l2.112 4.884c6.534-2.112 11.682-4.356 15.906-6.798.792.528 1.584.99 2.31 1.32-5.478 3.366-11.946 6.402-18.48 8.316l2.97 6.138c7.326-2.178 14.388-5.676 20.262-9.9l-1.848-3.168c3.432 1.518 7.26 2.838 11.748 3.96l2.574-7.062c-4.95-1.122-9.108-2.574-12.804-4.224 3.498-2.904 6.006-6.006 8.184-9.438V5.358h-17.028c.594-1.056 1.056-2.046 1.518-3.102L162.445.54c-2.178 4.818-5.94 10.23-10.164 14.454v-3.96l-6.468-.33v38.082h6.468Zm-4.356-46.398L140.797.87c-2.442 9.504-8.976 23.1-13.2 29.436l5.544 4.752a79.13 79.13 0 0 0 3.102-4.488v29.7h6.864V16.974a121.721 121.721 0 0 0 4.818-14.586Zm28.71 9.636c-1.584 2.046-3.498 3.828-5.94 5.61-2.442-1.782-4.488-3.63-6.138-5.61h12.078Zm-24.354 6.996 2.64 3.498c1.848-1.65 3.63-3.432 5.214-5.28 1.254 1.518 2.442 2.838 3.96 4.092-3.168 1.386-7.128 2.838-11.814 4.224V19.02Zm.726 26.598 3.3 5.412c9.966-2.97 19.14-7.458 26.07-12.804l-3.696-5.214c-6.864 5.214-15.708 9.636-25.674 12.606Zm-2.706 9.306 2.97 6.138c14.19-3.63 25.674-8.844 34.386-16.038l-3.894-5.412c-8.778 6.864-20.46 12.144-33.462 15.312Zm100.609 6.072 2.178-7.326c-5.874-.528-11.352-1.254-16.434-2.31 4.158-2.046 7.92-4.158 11.682-6.798v-5.808h-30.954l1.188-1.386-2.112-.924h30.096V14.862H208.67c.208-.301.425-.594.644-.89.405-.548.818-1.107 1.204-1.75h39.864V5.49H214.61l1.584-2.97-8.052-1.848c-2.508 5.346-8.052 12.936-13.398 17.754l5.742 5.808 2.376-2.442v14.652h6.402c-3.366 3.696-8.316 7.59-14.388 10.956l4.224 6.072c3.96-2.046 7.128-4.158 10.098-6.732 2.376 1.584 4.884 3.102 7.524 4.422-5.808 1.518-12.672 2.772-20.658 3.762l2.772 6.732c11.352-1.848 20.13-3.828 27.852-6.402 6.864 2.376 14.652 4.224 24.222 5.742ZM210.98 20.67h27.258v2.442H210.98V20.67Zm0 10.23v-2.574h27.258V30.9H210.98Zm6.072 13.662h19.47c-2.31.99-5.742 2.376-10.428 3.894-3.234-1.122-6.204-2.376-9.042-3.894Zm84.314-21.72h23.274v-1.566h-23.274V15.12c6.696-.378 13.23-.756 17.766-1.188l-.216-1.728c-9.72.864-27.756 1.89-37.692 2.106l.054 1.674 1.038-.035c4.663-.158 10.895-.37 17.268-.721v6.048h-23.328v1.566h23.328v5.292h-15.93v15.228h15.93v5.346h-18.36v1.512h18.36v5.346h-22.032v1.566h45.738v-1.566h-21.924V50.22h18.306v-1.512h-18.306v-5.346h15.876V28.134h-15.876v-5.292ZM285.382 29.7h14.202v5.238h-14.202V29.7Zm15.984 0h14.094v5.238h-14.094V29.7Zm-1.782 12.096h-14.202v-5.292h14.202v5.292Zm15.876 0h-14.094v-5.292h14.094v5.292Zm36.038 1.458V15.876h18.684v27.432h1.836V13.986h-22.356v29.268h1.836Zm-3.672 3.618-.162-.918-.216-.864c-2.106.81-5.022 1.728-8.1 2.646v-14.85h7.452V31.05h-7.452v-13.5h7.452v-1.782h-16.794v1.782h7.452v13.5h-7.128v1.836h7.128V48.33c-2.679.863-5.244 1.573-7.373 2.162l-1.159.322.378 1.782c4.914-1.296 13.77-4.158 18.522-5.724Zm13.716-26.946-1.728-.108c0 2.484-.108 9.666-.27 12.15-.594 12.96-4.32 19.116-16.956 26.082l1.08 1.62c12.69-7.182 17.226-14.148 17.658-27.54.162-2.43.216-9.774.216-12.204Zm15.066 25.65-1.566-.432c0 1.404-.324 4.86-.594 6.804-.432 2.97-1.026 3.456-4.59 3.618a28.244 28.244 0 0 1-3.024 0c-3.24-.162-3.942-.648-3.942-3.78v-11.61l-1.728-.108v12.204c0 3.888 1.134 5.022 5.184 5.184a42.87 42.87 0 0 0 3.726 0c4.482-.162 5.562-1.026 5.994-5.022.062-.738.131-1.695.202-2.677.116-1.604.237-3.277.338-4.181Zm16.436-21.924h7.83v-1.89h-7.83V10.8l-1.728-.108v11.07h-7.776v1.89h7.722c-1.782 7.29-5.346 14.58-9.234 20.628l1.026 1.566c3.294-5.238 6.264-11.07 8.262-17.118v30.24h1.728V23.652Zm38.502 33.534c-5.616-3.24-10.098-6.534-13.77-10.584 3.888-4.59 6.642-9.936 8.802-16.686v-1.782h-7.668l4.644-11.772v-1.836h-25.65v1.89h7.236c-.094 1.069-.152 3.071-.216 5.282a312.578 312.578 0 0 1-.162 4.816c-.702 12.096-3.51 20.898-9.99 29.808l1.404 1.026c6.318-8.91 9.45-17.604 10.152-29.322 1.782 7.29 4.806 13.5 9.126 18.63-3.888 4.266-8.856 7.722-15.552 11.178l.864 1.62c6.75-3.51 11.772-7.182 15.822-11.502 3.726 4.104 8.316 7.56 13.932 10.854l1.026-1.62Zm-24.948-35.1.27-5.67h14.796l-4.698 11.826v1.674h7.83c-1.998 6.102-4.536 11.07-8.154 15.39-5.184-6.102-8.37-13.446-10.044-23.22Zm-6.858 16.362 1.242-1.134c-1.458-2.16-4.536-6.102-6.102-7.668l-1.188 1.08c1.369 1.37 3.349 4.06 4.918 6.194.411.559.794 1.08 1.13 1.528Zm83.558 19.71c-5.67-3.942-9.936-7.776-13.176-12.096 3.942-6.048 5.886-13.176 6.912-23.328h5.994v-1.836h-18.576c1.242-3.24 2.214-6.48 2.808-9.45l-1.728-.378c-1.296 6.318-4.374 14.202-7.452 19.17l1.296 1.296c.648-1.026 1.296-2.214 1.944-3.456 1.08 7.29 3.132 12.906 6.588 18.036-3.024 4.266-7.398 8.046-13.716 12.312l1.08 1.566c6.103-4.158 10.476-8.046 13.716-12.366 3.24 4.32 7.56 8.1 13.23 12.15l1.08-1.62Zm-37.746-40.77c-2.106 4.266-5.778 10.152-7.668 12.798-.162.216-.27.324-1.134.486l.324 1.728c1.026-.216 1.458-.27 2.052-.324 1.35 0 14.04-.594 16.362-.81.594 1.08 1.08 2.051 1.512 2.915v.001l1.458-.918c-1.566-3.186-4.914-8.748-6.804-11.61l-1.404.864c1.134 1.674 2.808 4.428 4.32 7.074-3.456.162-12.582.594-14.742.756 2.16-3.024 5.508-8.856 7.668-12.96h11.286v-1.836H436.21v1.836h9.342Zm23.491 27.162c-3.511-5.238-5.509-11.232-6.535-19.008a33.42 33.42 0 0 0 1.188-2.808h11.556c-.864 9.072-2.376 15.876-6.209 21.816Zm-10.801 8.532-.054-.864-.054-.918c-2.538.378-6.048.864-9.72 1.242V42.66h9.612v-1.782h-9.612v-8.316l-1.836-.108v8.424h-9.612v1.782h9.612v10.098c-4.374.486-8.748.918-11.772 1.188l.162 1.782c6.048-.594 17.334-1.782 23.274-2.646Zm62.013-29.862h15.066v-1.89h-16.2V10.854l-1.89-.108V21.33h-15.066v1.89h13.878c-3.726 9.774-9.126 17.604-17.334 25.488l1.404 1.62c8.37-8.37 13.5-16.038 17.118-25.974v23.004h-9.882v1.782h9.882v10.152h1.89V49.14h9.72v-1.782h-9.72V24.786c3.672 9.882 9.612 18.414 17.226 25.11l1.296-1.566c-7.506-6.534-13.716-15.228-17.388-25.11Zm-17.712-11.502-1.89-.378c-2.754 9.45-8.1 19.764-12.582 25.812l1.404 1.242c2.376-3.186 4.752-7.074 6.966-11.448V58.86h1.836V23.112c1.674-3.726 3.132-7.56 4.266-11.394Zm71.732-.648h-1.512c-3.51 7.506-8.424 13.824-15.498 19.44l1.08 1.458c6.912-5.454 11.61-11.556 15.228-18.738 3.456 7.182 9.342 13.284 16.2 18.738l1.026-1.458c-6.966-5.616-13.014-11.826-16.524-19.44Zm-18.738 23.598 1.512-20.466h-13.824v1.728h12.042l-1.404 18.738h-6.804l1.242-15.93-1.566-.054-1.35 17.658h11.232c0 .918-.149 4.131-.297 7.344-.149 3.213-.297 6.426-.297 7.344-.324 3.564-1.134 3.888-5.292 4.32l-3.132.27.648 1.62 2.754-.27c5.076-.432 6.318-1.188 6.588-5.508 0-1.372.398-9.455.616-13.89.083-1.675.14-2.83.14-2.904h-2.808Zm27.918-3.564v-1.782h-19.494v1.782h19.494Zm-9.396 17.874 1.62-.486c-.702-3.618-2.376-11.124-3.51-14.58l-1.566.432c1.296 3.564 2.862 10.962 3.456 14.634Zm10.638-14.04-1.566-.54c-1.566 6.318-4.104 14.742-6.264 19.872h-18.09v1.836h29.808V54.27h-9.936c1.89-5.238 4.482-13.5 6.048-19.332Zm-21.006-.27-1.512.486c1.134 3.618 3.078 11.448 3.942 15.498l1.512-.486c-.864-4.05-2.808-11.88-3.942-15.498Zm-8.856 10.098-.054-.918-.108-.756c-3.726.864-9.774 1.89-13.5 2.484l.162 1.782c3.726-.594 9.882-1.728 13.5-2.592Zm-288.819 69.642v-1.152h-7.968v-10.272h6.368v-1.12h-25.44v1.12h6.752v10.272h-8.32v1.152h8.288c-.256 6.08-1.472 8.672-6.88 13.12l.8.832c5.504-4.64 6.944-7.488 7.2-13.952h10.08v13.632h1.152v-13.632h7.968Zm-9.12-1.152h-10.048v-10.272h10.048v10.272Zm37.996-9.984h-9.856c-.384-1.44-.768-2.816-1.248-4.064l-1.088.128c.416 1.248.832 2.56 1.216 3.936h-10.624v8.032c0 6.912-1.216 10.112-4.704 15.072l.96.672c3.552-5.152 4.832-8.544 4.832-15.552v-.16h20.512v-8.064Zm-1.152 1.056v5.984h-19.36v-5.984h19.36Zm-16.8 12.064v11.84h1.152v-2.208h14.976v2.208h1.12v-11.84H276.94Zm1.152 1.056h14.976v7.52h-14.976v-7.52Zm48.14.576v-11.808h-10.976v-6.848l-1.12-.064v6.912H303.16v11.808h10.976v10.048h1.12v-10.048h10.976Zm-12.096-1.12h-9.856v-9.568h9.856v9.568Zm10.976-9.568v9.568h-9.856v-9.568h9.856Zm8.14 16.576c0 1.248.352 1.408 1.376 1.408.992 0 1.312-.16 1.312-1.408s-.32-1.376-1.312-1.376c-1.024 0-1.376.128-1.376 1.376Zm8.187 0c0 1.248.352 1.408 1.376 1.408.992 0 1.312-.16 1.312-1.408s-.32-1.376-1.312-1.376c-1.024 0-1.376.128-1.376 1.376Zm8.188 0c0 1.248.352 1.408 1.376 1.408.992 0 1.312-.16 1.312-1.408s-.32-1.376-1.312-1.376c-1.024 0-1.376.128-1.376 1.376Z" clip-rule="evenodd"></path></svg>'
},14779:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 38 38"><g clip-path="url(#__12mlnKd__a)"><g clip-path="url(#__12mlnKd__b)"><g filter="url(#__12mlnKd__c)"><path fill="#fff" fill-opacity=".32" d="M27.62 9.814c0 2.542-4.123 10.332-9.976 10.332-5.852 0-11.217-7.79-11.217-10.332 0-2.542 4.744-4.602 10.596-4.602s10.596 2.06 10.596 4.602Z"></path></g><path fill="#FC0" d="M33.431 7.45a.392.392 0 0 1 .735 0l.515 1.39c.04.108.124.192.232.232l1.39.515a.392.392 0 0 1 0 .735l-1.39.515a.392.392 0 0 0-.232.232l-.515 1.39a.392.392 0 0 1-.735 0l-.515-1.39a.392.392 0 0 0-.231-.232l-1.391-.515a.392.392 0 0 1 0-.735l1.39-.515a.392.392 0 0 0 .232-.231l.515-1.391Z"></path><path fill="#000" d="M13.184 11.948a1.48 1.48 0 0 1-1.28-.748l-2.12-3.706a1.466 1.466 0 0 1 .544-2.007 1.466 1.466 0 0 1 2.006.544l2.12 3.707c.408.703.159 1.61-.544 2.007a1.332 1.332 0 0 1-.726.204ZM20.315 11.949a1.469 1.469 0 0 1-1.27-2.2l2.12-3.706a1.469 1.469 0 0 1 2.007-.544c.703.408.952 1.304.544 2.006l-2.12 3.707a1.47 1.47 0 0 1-1.28.737Z"></path><path fill="#000" d="M13.182 11.948a1.48 1.48 0 0 1-1.28-.748l-2.12-3.706a1.466 1.466 0 0 1 .543-2.007 1.466 1.466 0 0 1 2.007.544l2.12 3.707c.408.703.158 1.61-.544 2.007a1.332 1.332 0 0 1-.726.204ZM20.315 11.949a1.469 1.469 0 0 1-1.27-2.2l2.12-3.706a1.469 1.469 0 0 1 2.007-.544c.703.408.952 1.304.544 2.006l-2.12 3.707a1.47 1.47 0 0 1-1.28.737Z"></path><path fill="#fff" d="M29.305 11.224c-2.052-1.621-7.21-1.814-10.86-1.814-3.639 0-9.828.193-11.88 1.814-2.052 1.62-2.154 4.761-2.154 8.774 0 4.013.284 7.504 2.608 8.898 2.335 1.395 7.459 1.678 11.415 1.678 3.956 0 8.06-.283 10.395-1.678 2.335-1.394 2.607-4.874 2.607-8.898.011-4.013-.08-7.153-2.131-8.774Z"></path><path fill="#000" d="M18.444 30.8c-3.945 0-9.16-.294-11.53-1.711-2.516-1.497-2.72-5.317-2.72-9.092 0-4.341.159-7.311 2.234-8.955 1.564-1.236 5.61-1.87 12.015-1.87 3.707 0 8.877.192 10.996 1.87 2.075 1.644 2.233 4.614 2.233 8.955 0 3.775-.215 7.595-2.72 9.092C26.379 30.63 21.72 30.8 18.443 30.8Zm0-21.164c-4.33 0-9.885.306-11.733 1.769-1.916 1.519-2.063 4.387-2.063 8.592 0 3.65.192 7.323 2.505 8.706 1.802 1.077 5.713 1.644 11.29 1.644 3.231 0 7.8-.17 10.282-1.644 2.313-1.371 2.505-5.055 2.505-8.706 0-4.205-.147-7.085-2.063-8.592-2.244-1.769-8.626-1.769-10.724-1.769Z"></path><path fill="#000" d="M19.52 27.921c-2.03 0-4.115-.09-5.714-.26-2.811-.284-3.491-.704-3.752-.998-.782-.85-.839-3.356-.839-6.28 0-4.047.17-6.711 1.032-7.448.283-.25 1.054-.907 9.284-.907s9 .658 9.284.907c.85.737 1.031 3.39 1.031 7.448 0 2.936-.067 5.43-.838 6.28-.261.294-.941.714-3.752.997-1.622.17-3.707.261-5.736.261Zm0-14.975c-7.323 0-8.514.522-8.695.692-.102.08-.43.533-.6 2.732-.103 1.405-.103 2.981-.103 4.013 0 1.745 0 5.01.6 5.668.432.464 3.832.952 8.798.952 4.965 0 8.377-.488 8.796-.953.601-.668.601-3.922.601-5.667 0-1.043 0-2.619-.102-4.013-.17-2.2-.499-2.653-.6-2.732-.182-.159-1.372-.692-8.695-.692Z"></path><path fill="#000" d="M16.854 20.155a.4.4 0 0 1 .476.295l.012.034.01.057.012.056c.011.046.023.08.034.125.023.08.057.17.09.25.069.158.148.305.239.43.09.125.204.227.306.295a.803.803 0 0 0 .363.113.754.754 0 0 0 .385-.068c.41-.186.725-.524.968-.986.08-.151.105-.293.26-.352.012-.01.023-.01.046-.022a.415.415 0 0 1 .521.25c.111.354.173.63.404.86.114.114.227.205.352.25.124.057.25.08.385.068.136 0 .25-.034.363-.102.113-.068.215-.17.317-.295.091-.124.17-.272.238-.43.034-.08.068-.159.091-.25.011-.045.023-.08.034-.124l.011-.057.012-.057.011-.023a.392.392 0 0 1 .442-.294.397.397 0 0 1 .329.453l-.012.046-.01.045-.012.08-.034.17a1.826 1.826 0 0 1-.102.328c-.08.215-.181.42-.318.623a1.876 1.876 0 0 1-.544.533 1.54 1.54 0 0 1-.77.238 1.69 1.69 0 0 1-.783-.147c-.238-.113-.324-.272-.483-.442a1.81 1.81 0 0 1-.283-.374c-.091.136-.182.26-.306.374-.17.17-.503.34-.753.442a1.69 1.69 0 0 1-.782.147 1.513 1.513 0 0 1-.76-.249 1.88 1.88 0 0 1-.544-.533 2.944 2.944 0 0 1-.317-.623c-.034-.102-.068-.216-.102-.318a3.7 3.7 0 0 0-.034-.158l-.023-.08-.011-.045-.011-.045c-.034-.25.09-.442.283-.488ZM22.497 17.864a39.613 39.613 0 0 1 3.53-1.892c.43-.181.85.034 1.042.42.193.374.102.77-.294.963h-.012c-.124.06-.248.118-.371.175-.181.085-.36.168-.536.256-.223.108-.441.215-.662.328.251.04.502.08.753.114.34.057.68.102 1.02.147h.012c.453.057.68.409.634.817-.045.419-.374.748-.838.702a34.51 34.51 0 0 1-1.077-.113 49.33 49.33 0 0 1-1.122-.2c-.71-.131-.925-.148-1.802-.39-.549-.13-.763-.996-.277-1.327ZM17.842 17.9c-.452-.306-1.25-.617-2.042-.975a29.493 29.493 0 0 1-1.08-.519c-.318-.147-.64-.298-.97-.434-.43-.181-.85.034-1.042.42-.193.374-.102.77.294.963h.012c.594.286 1.231.476 1.818.775-.25.041-.616.06-1.006.107-.4.048-.676.093-1.016.138h-.012c-.453.057-.68.409-.634.817.045.419.374.748.838.702.745-.07 1.472-.191 2.212-.293.924-.126 1.533-.212 2.368-.41.549-.13.746-.96.26-1.29Z"></path></g></g><defs><clipPath id="__12mlnKd__a"><path fill="#fff" d="M.6 0H38v37.4H.6z"></path></clipPath><clipPath id="__12mlnKd__b"><path fill="#fff" d="M.6 0H38v37.4H.6z"></path></clipPath><filter id="__12mlnKd__c" width="34.833" height="28.574" x="-.393" y="-1.608" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_9077_2245" stdDeviation="3.41"></feGaussianBlur></filter></defs></svg>'},40762:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 18"><path fill="#fff" fill-rule="evenodd" d="M2.348 0h3.13v1.565h-3.13a.783.783 0 0 0-.783.783v3.13H0v-3.13A2.348 2.348 0 0 1 2.348 0ZM0 12.522v3.13A2.348 2.348 0 0 0 2.348 18h3.13v-1.565h-3.13a.783.783 0 0 1-.783-.783v-3.13H0Zm16.435 0v3.13c0 .432-.35.783-.783.783h-3.13V18h3.13A2.348 2.348 0 0 0 18 15.652v-3.13h-1.565ZM18 5.479V2.348A2.348 2.348 0 0 0 15.652 0h-3.13v1.565h3.13c.432 0 .783.35.783.783v3.13H18Z" clip-rule="evenodd"></path><rect width="7.714" height="5.143" x="5.143" y="7.715" fill="#fff" rx="1"></rect><path stroke="#fff" stroke-linecap="round" stroke-width="1.5" d="M10.285 7.715v-.643c0-.555.261-1.056.679-1.408.383-.323.898-.52 1.464-.52.288 0 .562.05.813.143"></path></svg>'},78089:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 18"><path fill="#fff" fill-rule="evenodd" d="M2.348 0h3.13v1.565h-3.13a.783.783 0 0 0-.783.783v3.13H0v-3.13A2.348 2.348 0 0 1 2.348 0ZM0 12.522v3.13A2.348 2.348 0 0 0 2.348 18h3.13v-1.565h-3.13a.783.783 0 0 1-.783-.783v-3.13H0Zm16.435 0v3.13c0 .432-.35.783-.783.783h-3.13V18h3.13A2.348 2.348 0 0 0 18 15.652v-3.13h-1.565ZM18 5.479V2.348A2.348 2.348 0 0 0 15.652 0h-3.13v1.565h3.13c.432 0 .783.35.783.783v3.13H18Z" clip-rule="evenodd"></path><path stroke="#fff" stroke-width="1.5" d="M6.75 7.9v-.675C6.75 6.107 7.757 5.2 9 5.2s2.25.907 2.25 2.025V7.9"></path><rect width="7.714" height="5.143" x="5.143" y="7.715" fill="#fff" rx="1"></rect></svg>'},53766:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 14"><g fill="none" fill-rule="evenodd"><circle cx="7" cy="7" r="6.5" fill="#4AC7FF" stroke="#FFF"></circle><path fill="#FFF" d="M6.3 11.595a.622.622 0 0 1-.259.074.386.386 0 0 1-.394-.38.352.352 0 0 1 .022-.107l.748-3.417-3.096.006a.39.39 0 0 1-.404-.379.371.371 0 0 1 .175-.308l4.62-4.663a.545.545 0 0 1 .272-.088.388.388 0 0 1 .394.38.36.36 0 0 1-.052.178l-.743 3.362h3.1a.389.389 0 0 1 .4.38.37.37 0 0 1-.175.309L6.3 11.595Z"></path></g></svg>'},68904:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 14"><g fill="none" fill-rule="evenodd"><circle cx="7" cy="7" r="6.5" fill="#FFC62E" stroke="#FFF"></circle><path fill="#FFF" d="M6.3 11.595a.622.622 0 0 1-.259.074.386.386 0 0 1-.394-.38.352.352 0 0 1 .022-.107l.748-3.417-3.096.006a.39.39 0 0 1-.404-.379.371.371 0 0 1 .175-.308l4.62-4.663a.545.545 0 0 1 .272-.088.388.388 0 0 1 .394.38.36.36 0 0 1-.052.178l-.743 3.362h3.1a.389.389 0 0 1 .4.38.37.37 0 0 1-.175.309L6.3 11.595Z"></path></g></svg>'},18535:function(t){
t.exports='<svg data-pointer="none" style="enable-background:new 0 0 32 32" viewBox="0 0 32 32"><path d="M8.6 12.6c-.1.5-.2.9-.4 1.4l-.8 2.1h2.4l-.7-2c-.2-.6-.4-1.1-.5-1.5zM23.5 14.5c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 7c-1.7 0-3-1.3-3-3 0-.6.2-1.2.6-1.7l4.2 4.2c-.6.3-1.2.5-1.8.5zm2.4-1.3L21.7 16c.5-.3 1.1-.6 1.7-.6 1.7 0 3 1.3 3 3 .1.7-.1 1.3-.5 1.8z" class="__1G85vXy__st0 "></path><path d="M18.5 18.4c0-.2-.1-.5-.1-.9v-3h-.6v-.7h.6v-1.3l.9-.5v1.8h.9v.7h-.9v1.2c.9-1.4 2.4-2.2 4.2-2.2 1.1 0 2.2.4 3 1v-3.2c0-1-.8-1.8-1.7-1.8H6.2c-.9 0-1.7.8-1.7 1.8v8.3c0 1 .8 1.8 1.7 1.8h13.3c-.6-.8-1-1.9-1-3zM11 19l-.8-2.2h-3L6.4 19h-1l2.7-7.2h1L12 19h-1zm5.9 0h-.8v-.8c-.4.6-1 .9-1.6.9-.3 0-.6-.1-.9-.2s-.5-.3-.6-.4-.2-.4-.3-.7c0-.2-.1-.4-.1-.8v-3.2h.9v2.9c0 .5 0 .8.1.9.1.2.2.4.4.5s.4.2.7.2.5-.1.7-.2.4-.3.5-.6.1-.6.1-1v-2.8h.9V19z" class="__1G85vXy__st0 "></path></svg>'},20711:function(t){t.exports='<svg data-pointer="none" style="enable-background:new 0 0 32 32" viewBox="0 0 32 32"><path d="M25.3 10H6.7c-.9 0-1.7.8-1.7 1.8v8.3c0 1 .8 1.8 1.7 1.8h18.6c.9 0 1.7-.8 1.7-1.8v-8.3c0-1-.8-1.8-1.7-1.8zm-13.8 9.5-.8-2.2h-3l-.8 2.2h-1l2.7-7.2h1l2.9 7.2h-1zm5.9 0h-.8v-.8c-.4.6-1 .9-1.6.9-.3 0-.6-.1-.9-.2s-.5-.3-.6-.4-.2-.4-.3-.7c0-.2-.1-.4-.1-.8v-3.2h.9v2.9c0 .5 0 .8.1.9.1.2.2.4.4.5s.4.2.7.2.5-.1.7-.2.4-.3.5-.6.1-.6.1-1v-2.8h.9v5.3zm2.8.1c-.3 0-.6-.1-.7-.2s-.3-.2-.4-.4-.1-.5-.1-1v-3h-.6v-.7h.6V13l.9-.5v1.8h.9v.7h-.9v3.5c0 .1.1.1.2.2s.2.1.3.1h.4l.1.8h-.7zm5.6-1.2c-.2.4-.5.7-.9.9s-.8.3-1.3.3c-.7 0-1.3-.2-1.8-.7s-.7-1.1-.7-2c0-1 .3-1.7.8-2.1.4-.4 1-.6 1.6-.6.7 0 1.3.2 1.7.7s.7 1.1.7 1.9c.2.7.1 1.2-.1 1.6z" class="__35m6yHF__st0 "></path><path d="M23.7 14.9c-.4 0-.8.2-1.1.5s-.4.8-.4 1.5.1 1.2.4 1.5.7.5 1.1.5c.4 0 .8-.2 1.1-.5s.4-.8.4-1.5c0-.6-.1-1.1-.4-1.5s-.7-.5-1.1-.5zM9.1 13.1c-.1.5-.2.9-.4 1.4L8 16.6h2.4l-.7-2c-.3-.6-.5-1.1-.6-1.5z" class="__35m6yHF__st0 "></path></svg>'},23849:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="m6.811 8.001 3.359-3.359a.75.75 0 1 0-1.061-1.061L5.22 7.471a.75.75 0 0 0 0 1.061l3.889 3.888a.75.75 0 1 0 1.061-1.061L6.811 8.001z"></path></svg>'},24137:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" d="M4.571 5.455a7.08 7.08 0 0 0 9.974 9.974L4.57 5.455Zm.884-.884 9.974 9.974A7.08 7.08 0 0 0 5.455 4.57ZM4.107 15.893A8.333 8.333 0 1 1 15.892 4.106 8.333 8.333 0 0 1 4.107 15.892Z"></path></svg>'},86494:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 25 24"><path fill="#fff" fill-rule="evenodd" d="m15.871 5.177 1.282-1.77a.993.993 0 0 0-.23-1.392 1.01 1.01 0 0 0-1.404.228l-1.902 2.626a.992.992 0 0 0-.137.265c-.376-.004-.733-.006-1.072-.006h-.029c-.418 0-.864.003-1.338.009a1.003 1.003 0 0 0-.108-.21L9.171 2.301a1.01 1.01 0 0 0-1.395-.277.994.994 0 0 0-.28 1.384l1.192 1.775c-.762.02-1.577.045-2.444.075-1.792.063-3.246 1.462-3.5 3.224-.162 1.119-.242 2.485-.242 4.1 0 1.934.115 3.606.346 5.017.28 1.71 1.737 3.08 3.482 3.167 1.489.073 3.04.067 4.696.062.452-.002.912-.003 1.38-.003a.683.683 0 0 0 .686-.68.683.683 0 0 0-.686-.681c-.471 0-.934.001-1.388.003-1.63.006-3.157.01-4.62-.061-1.099-.054-2.02-.949-2.196-2.026-.218-1.332-.328-2.932-.328-4.798 0-1.556.076-2.859.227-3.907.16-1.11 1.063-2.017 2.192-2.056 2.462-.087 4.497-.13 6.103-.13 1.605 0 3.639.043 6.1.13a2.325 2.325 0 0 1 2.225 1.984c.151 1.049.18 1.546.18 3.101 0 .376.307.68.686.68a.683.683 0 0 0 .686-.68c0-1.615-.033-2.175-.194-3.294a3.693 3.693 0 0 0-3.535-3.152 264.64 264.64 0 0 0-2.673-.08Zm-4.24 4.407h1.317a8.357 8.357 0 0 0-.823-1.35l1.043-.349c.307.436.581.893.812 1.394l-.691.305h1.514c.307-.556.57-1.155.812-1.786l1.086.381c-.22.523-.472.991-.746 1.405h1.273v2.756h-1.574c-.15 0-.296.026-.432.074h-.232v.108c-.2.12-.37.293-.483.507l-.659 1.238v-.04h-2.216V9.584Zm1.781 5.503h-2.175v1.067h1.607l.568-1.067Zm-4.54-3.425-.154 1.562h2.195c0 1.873-.066 3.125-.176 3.757-.131.631-.691.98-1.69 1.045-.266 0-.532-.019-.816-.039l-.061-.004-.297-1.057c.286.033.593.055.9.055.549 0 .856-.175.933-.523.077-.348.12-1.1.12-2.254h-2.27l.306-3.511h1.855V9.258H7.654V8.29h3.193v3.373H8.872Zm4.975 1.61v-.849H12.65v.85h1.196Zm0-1.804H12.65v-.893h1.196v.893Zm1.143-.886v.893h1.251v-.893h-1.25Zm1.618 3.019c-.449 0-.863.237-1.088.623l-1.753 3.003a1.249 1.249 0 0 0 0 1.26l1.742 2.989c.227.39.646.63 1.099.63l4.037-.002c.449 0 .864-.238 1.088-.623l1.753-3.004a1.249 1.249 0 0 0 0-1.259l-1.742-2.99a1.271 1.271 0 0 0-1.099-.63l-4.037.003Zm-.308 1.886a1.26 1.26 0 0 1 1.08-.61l2.55-.002c.446 0 .861.235 1.09.617l1.046 1.747c.238.396.238.89.002 1.284L21.004 20.3a1.26 1.26 0 0 1-1.081.61l-2.547.002c-.448 0-.863-.234-1.092-.617l-1.047-1.752a1.249 1.249 0 0 1 0-1.284l1.063-1.771Zm2.322 3.843c.78 0 1.41-.627 1.41-1.4 0-.774-.63-1.4-1.41-1.4-.779 0-1.41.626-1.41 1.4 0 .773.631 1.4 1.41 1.4Z" clip-rule="evenodd"></path></svg>'},34637:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 29 14"><rect width="28" height="13" x=".5" y=".5" stroke="#fff" opacity=".1" rx="1.5"></rect><path fill="#fff" d="M4.576 4.288V10h2.536c.584 0 1.048-.12 1.384-.344.392-.272.592-.688.592-1.248 0-.384-.112-.688-.32-.928-.208-.24-.496-.4-.872-.464.288-.096.52-.248.696-.456.168-.232.256-.512.256-.832 0-.448-.152-.8-.456-1.056-.312-.256-.736-.384-1.264-.384H4.576Zm.656.552h1.744c.4 0 .704.072.912.232.208.16.312.4.312.72 0 .328-.112.576-.32.744-.208.16-.512.248-.912.248H5.232V4.84Zm0 2.488h1.824c.44 0 .776.08 1.008.256.24.176.368.448.368.816 0 .368-.144.648-.424.824-.24.144-.552.224-.952.224H5.232v-2.12Zm4.758-3.04V10h4.184v-.568h-3.528V7.336h3.2v-.568h-3.2V4.856h3.392v-.568H9.99Zm4.654 0v.568h2.016V10h.648V4.856h2.016v-.568h-4.68Zm7.065 0L19.46 10h.704l.608-1.6h2.624l.608 1.6h.712l-2.248-5.712h-.76Zm-.728 3.56 1.096-2.856h.032l1.08 2.856H20.98Z"></path></svg>'},87563:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#F69" fill-rule="evenodd" d="M0 8a8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8 8 8 0 0 0-8 8Z" clip-rule="evenodd"></path><path fill="#fff" d="M11.656 5.683V5.68H8.951a8.1 8.1 0 0 0-.007-1.387l.003-.048v-.003a.908.908 0 1 0-1.817 0v.003c0 .061.007.122.019.18l-.013.002A6.37 6.37 0 0 1 7.13 5.68H4.348v.004a.908.908 0 0 0-.85.906v.002c0 .502.385.905.887.905.039 0 .078.002.141 0l2.127-.004a6.236 6.236 0 0 1-2.661 2.953l-.038.023a.908.908 0 0 0-.426.77v.002a.908.908 0 0 0 1.43.743 8.053 8.053 0 0 0 3.633-4.489h2.92a2.5 2.5 0 0 0 .117-.002c.545-.01.903-.397.903-.898v-.003a.907.907 0 0 0-.875-.908Z"></path><path fill="#fff" d="m12.382 10.807-.007-.01a.924.924 0 0 0-.11-.156A8.063 8.063 0 0 0 10.09 8.54h-.001a.908.908 0 0 0-1.436.738v.003c0 .343.19.642.472.796.73.482 1.325 1.034 1.796 1.772l.048.062a.908.908 0 0 0 1.52-.67v-.002a.927.927 0 0 0-.107-.431Z"></path></svg>'},42524:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" data-pointer="none" viewBox="0 0 50 24"><path fill-rule="evenodd" d="M46.31 20.511c-.222 0-.413.018-.6-.003-.378-.044-.756-.036-1.135-.047-.244-.007-.237-.007-.258-.245-.06-.728-.126-1.454-.192-2.182-.056-.638-.11-1.277-.172-1.915-.056-.585-.124-1.168-.185-1.752-.058-.549-.112-1.099-.173-1.647-.076-.69-.157-1.38-.238-2.069-.073-.609-.145-1.22-.227-1.827a524.91 524.91 0 0 0-.39-2.829 84.298 84.298 0 0 0-.492-3c-.033-.18-.028-.186.141-.215.705-.121 1.414-.225 2.132-.209.077.002.156.004.233.014.126.016.192.077.198.225.025.516.06 1.031.099 1.546.06.845.125 1.688.188 2.531.04.543.074 1.085.114 1.627l.199 2.61c.04.533.075 1.067.115 1.599.063.781.13 1.562.193 2.343.04.497.075.995.117 1.492.062.736.13 1.472.192 2.208.05.576.093 1.152.142 1.745ZM19.005 2.58c.103 0 .259-.012.413.002.196.018.234.07.245.268.057.906.11 1.813.17 2.72.065.978.137 1.955.209 2.932.066.897.133 1.794.204 2.69.078.986.163 1.97.242 2.956.06.755.11 1.51.171 2.265.059.7.127 1.4.19 2.101.053.603.107 1.206.159 1.81.016.19.003.203-.201.198-.535-.013-1.068-.076-1.603-.061-.122.003-.158-.053-.178-.17-.045-.255-.037-.515-.065-.772-.073-.681-.115-1.366-.177-2.05-.056-.62-.123-1.24-.186-1.86-.056-.566-.112-1.133-.172-1.7-.06-.557-.123-1.114-.186-1.671-.058-.513-.114-1.026-.175-1.538-.091-.752-.18-1.503-.279-2.253-.09-.688-.193-1.374-.29-2.06a81.123 81.123 0 0 0-.441-2.794c-.038-.21-.077-.42-.119-.63-.02-.105-.002-.166.118-.182.315-.043.63-.109.945-.14.317-.03.633-.09 1.006-.062ZM41.41 11.635c.602 0 .617.005.713.551.12.674.202 1.355.281 2.035.083.725.167 1.45.245 2.175.062.584.114 1.17.172 1.753.061.612.126 1.223.19 1.833.034.346.067.691.106 1.036.012.1-.018.153-.116.165-.205.023-.41.05-.615.073-.377.04-.753.08-1.13.116-.195.018-.208.007-.244-.182-.33-1.72-.662-3.44-.99-5.16-.218-1.145-.43-2.29-.644-3.434a18.17 18.17 0 0 1-.08-.473c-.014-.091.01-.15.112-.173.68-.16 1.366-.284 2-.315ZM16.087 11.635c.645 0 .642.002.741.592.154.913.263 1.831.361 2.752.096.893.2 1.786.293 2.68.063.61.113 1.223.172 1.834.043.434.093.867.138 1.3.006.054.009.107.012.16.009.213 0 .23-.203.251-.403.043-.806.078-1.209.118-.146.015-.29.036-.436.05-.192.018-.198.018-.236-.178-.136-.69-.266-1.38-.4-2.069-.317-1.659-.638-3.316-.954-4.976-.126-.664-.235-1.33-.359-1.994-.022-.122-.005-.178.12-.208.673-.157 1.35-.28 1.96-.312ZM24.597 18.592v2.785c0 .027-.003.054 0 .08.014.135-.036.195-.174.19-.181-.008-.362-.003-.544.001-.379.008-.758-.007-1.137.036-.21.024-.205.011-.225-.211-.062-.701-.13-1.402-.194-2.103-.058-.647-.11-1.296-.17-1.943-.061-.665-.129-1.33-.19-1.994-.042-.444-.079-.887-.116-1.331-.049-.578-.094-1.155-.144-1.732-.021-.243-.003-.278.236-.303.619-.066 1.239-.09 1.86-.058.154.008.309.04.459.076.188.045.21.073.219.272.02.4.041.802.052 1.203.011.446.002.892.018 1.338.042 1.231.035 2.463.05 3.694ZM49.869 18.718v2.637c0 .045-.002.09 0 .134.01.116-.043.157-.153.156-.267-.002-.535 0-.802.004-.302.003-.604.001-.905.034-.2.023-.2.009-.218-.19-.082-.913-.168-1.827-.25-2.74-.076-.843-.146-1.687-.223-2.53-.079-.869-.165-1.737-.243-2.606-.039-.435-.07-.87-.103-1.306-.013-.19.008-.223.22-.241.37-.03.737-.08 1.109-.073.37.007.741-.013 1.11.058.311.06.327.078.346.414.053.989.037 1.98.072 2.97.037 1.053.012 2.106.04 3.28ZM40.78 6.85c.219.013.39.002.562.04.109.025.163.075.174.193.052.567.107 1.134.163 1.701.045.46.093.92.139 1.381l.004.027c.037.29.029.298-.251.314-.25.014-.498.036-.748.051-.163.01-.216.038-.243-.203-.093-.849-.201-1.695-.304-2.544-.03-.238-.06-.476-.096-.713-.02-.135.032-.209.156-.22.164-.015.328-.02.445-.027ZM15.54 6.854c.168.01.34-.003.51.036.097.023.147.064.156.175.021.266.061.53.087.796.079.816.154 1.632.228 2.447.015.178.012.182-.153.193-.292.022-.584.044-.877.056-.17.008-.192-.013-.213-.188-.075-.601-.145-1.202-.216-1.803-.058-.495-.106-.992-.176-1.485-.02-.137.025-.174.133-.197.171-.035.344-.023.52-.03ZM24.429 9.1v1.549c0 .231-.004.233-.232.23a7.146 7.146 0 0 1-.824-.043c-.177-.022-.18-.017-.185-.205-.018-.632-.037-1.263-.049-1.894-.01-.428-.014-.854-.04-1.281-.013-.22-.001-.223.208-.226.31-.003.62.01.927.058.186.03.194.03.195.236v1.575ZM49.714 9.112c0 .517.002 1.033 0 1.55 0 .216-.004.218-.22.217a11.515 11.515 0 0 1-.849-.04c-.14-.011-.182-.07-.172-.2.002-.017 0-.035 0-.053-.022-.997-.043-1.993-.063-2.99 0-.053-.003-.107-.002-.16.003-.201.004-.206.204-.205.276 0 .55.016.825.043.335.034.276.076.277.342.002.499.001.998 0 1.496ZM14.848 10.325c.007.284.007.283-.262.349-.184.045-.367.094-.55.136-.158.035-.186.015-.213-.14-.188-1.058-.376-2.115-.562-3.173-.038-.22-.028-.233.186-.271.263-.047.525-.093.788-.134.168-.026.19-.017.223.169.066.375.129.752.178 1.13.076.6.139 1.2.207 1.8.004.045.003.09.005.134ZM38.547 7.256c.344-.057.69-.115 1.038-.17.124-.02.162.06.178.172.06.414.134.825.182 1.239.072.6.169 1.197.188 1.803.001.062 0 .126.002.187.003.097-.044.146-.133.167-.235.053-.47.106-.704.163-.112.027-.15-.02-.169-.132-.07-.42-.152-.84-.224-1.259-.121-.69-.24-1.382-.358-2.074-.004-.025 0-.052 0-.096ZM22.72 9.682c-.01.367.012.688-.037 1.009-.015.101-.045.167-.152.176-.232.019-.464.038-.695.062-.112.012-.144-.037-.162-.148-.052-.327-.043-.657-.075-.986-.058-.62-.084-1.243-.124-1.866-.01-.15-.025-.302-.037-.453-.006-.084.027-.132.117-.135.3-.013.6-.068.902-.057.177.007.192.018.205.198.007.124.006.25.009.375l.05 1.825Z" clip-rule="evenodd"></path><path fill="currentColorte" fill-rule="evenodd" d="M47.995 9.325c0 .428.005.856-.001 1.284-.004.223-.029.242-.237.262-.207.02-.412.035-.618.057-.116.012-.17-.022-.177-.157-.03-.569-.071-1.137-.11-1.706-.031-.47-.066-.942-.098-1.412-.004-.053-.001-.107-.005-.16-.005-.095.024-.15.129-.154.292-.01.582-.067.876-.056.18.007.182.01.196.198.044.614.048 1.229.045 1.844Z" clip-rule="evenodd"></path><path fill-rule="evenodd" d="m6.867 20.718-.528-3.963c1.311.4 2.531.892 3.746 1.42-.198.322-2.703 2.294-3.218 2.543Zm7.118-3.741a3.001 3.001 0 0 0-.377-.366 6.631 6.631 0 0 0-1.31-.802 14.565 14.565 0 0 0-2.912-1.007c-1.146-.273-2.304-.436-3.482-.434a8.377 8.377 0 0 0-1.132.095c-.19.025-.205.01-.221-.16-.086-.886-.178-1.772-.254-2.659a99.149 99.149 0 0 1-.204-2.717 110.867 110.867 0 0 1-.156-3.447c-.034-1.311-.018-2.623-.002-3.935 0-.098.005-.196.014-.293C3.984.887 3.97.52 3.98.153 3.984.012 3.95-.018 3.807.01c-.203.038-.4.105-.592.186-1.03.433-2.057.872-3.088 1.303-.108.045-.145.095-.12.218.196.922.369 1.85.528 2.779.196 1.14.374 2.282.541 3.426.102.696.201 1.392.294 2.088.097.724.187 1.447.275 2.172.079.654.15 1.31.224 1.963.081.708.165 1.415.239 2.123.064.602.114 1.206.172 1.809.08.833.167 1.665.241 2.499.063.719.112 1.438.17 2.157.016.201.044.234.234.241.224.008.449.002.674.002.31.002.619-.013.929-.03a22.88 22.88 0 0 0 3.022-.393 13.762 13.762 0 0 0 3.978-1.392c.729-.393 1.415-.855 1.983-1.482.338-.375.618-.793.74-1.3.121-.507.103-.992-.266-1.401Z" clip-rule="evenodd"></path><g mask="url(#__3L9Z9tl__mask0_4078_4804)"><path fill-rule="evenodd" d="M35.31 18.305a4.186 4.186 0 0 1-.408.368c-.84.697-1.722 1.337-2.597 1.985-.034.025-.064.06-.141.043l-.52-3.894c.108-.05.195.008.278.034.964.305 1.904.679 2.84 1.064.174.072.346.157.519.237.087.04.094.093.03.163Zm3.77-1.544a5.655 5.655 0 0 0-1.05-.729c-.836-.455-1.72-.779-2.628-1.04a15.53 15.53 0 0 0-4.104-.625 7.927 7.927 0 0 0-1.185.092c-.223.03-.234.029-.262-.2a38.512 38.512 0 0 1-.13-1.25c-.07-.762-.145-1.524-.2-2.288a130.731 130.731 0 0 1-.207-3.174c-.04-.802-.082-1.604-.074-2.407.002-.17-.005-.34-.013-.509a20.701 20.701 0 0 1-.005-2.007c.038-.82-.005-1.641.07-2.46.012-.15-.023-.174-.163-.16-.157.017-.303.077-.447.132-1.105.41-2.165.932-3.26 1.363-.112.045-.148.106-.11.22.015.051.02.106.03.158.248 1.183.46 2.375.649 3.57.134.843.27 1.686.396 2.531.096.651.184 1.305.27 1.957a275.223 275.223 0 0 1 .468 3.789c.064.54.12 1.08.177 1.62.062.576.128 1.15.185 1.726.062.612.114 1.225.171 1.836.064.665.13 1.33.19 1.995.055.63.108 1.26.154 1.89.01.144.079.183.2.183h.618c.53.033 1.003-.018 1.474-.06a25.49 25.49 0 0 0 2.482-.348c1.505-.284 2.937-.777 4.28-1.536.685-.386 1.319-.848 1.84-1.457.326-.379.569-.801.676-1.305.13-.61-.036-1.104-.492-1.507Z" clip-rule="evenodd"></path></g></svg>'},29740:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 21"><path fill="#fff" d="M10 3.417a5.208 5.208 0 0 0-2.728 9.646.625.625 0 0 1-.655 1.064 6.458 6.458 0 1 1 9.842-5.502c0 .15-.009.3-.024.446a.624.624 0 0 1-1.247-.066 3.55 3.55 0 0 0 .02-.38A5.208 5.208 0 0 0 10 3.417Z"></path><path fill="#fff" d="M7.47 13.307a.625.625 0 0 1-.22.856c-1.828 1.082-2.387 2.653-2.485 2.977a.625.625 0 1 1-1.196-.363c.145-.48.843-2.387 3.045-3.69a.625.625 0 0 1 .856.22ZM13.35 13.04l4.11 4.11a2.961 2.961 0 0 0-4.11-4.11Zm3.3 4.92-4.11-4.11a2.961 2.961 0 0 0 4.11 4.11Zm-4.56-5.37a4.115 4.115 0 1 1 5.82 5.82 4.115 4.115 0 0 1-5.82-5.82Z"></path></svg>'},87395:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 145 42"><path fill="#000" fill-opacity=".703" fill-rule="evenodd" d="M1 23.562c0-9.63 7.807-17.438 17.438-17.438h4.372L26.65 1l3.887 5.124h96.025c9.631 0 17.438 7.808 17.438 17.438C144 33.192 136.193 41 126.562 41H18.438C8.808 41 1 33.193 1 23.562Z" clip-rule="evenodd"></path><path stroke="#fff" stroke-linejoin="round" stroke-opacity=".496" d="M27.05.698a.5.5 0 0 0-.8.002l-3.69 4.924h-4.122C8.53 5.624.5 13.655.5 23.562.5 33.47 8.531 41.5 18.438 41.5h108.124c9.907 0 17.938-8.031 17.938-17.938 0-9.907-8.031-17.938-17.938-17.938H30.785L27.05.698Z"></path></svg>'},65389:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 162 48"><path fill="#000" fill-opacity=".703" fill-rule="evenodd" d="M1 27.075C1 16.07 9.92 7.149 20.925 7.149h55.91L81.522 1l4.741 6.15h54.812C152.079 7.15 161 16.07 161 27.074 161 38.079 152.079 47 141.075 47H20.925C9.921 47 1 38.08 1 27.075Z" clip-rule="evenodd"></path><path stroke="#fff" stroke-linejoin="round" stroke-opacity=".496" d="M81.918.695a.5.5 0 0 0-.794.002l-4.536 5.952H20.925C9.645 6.65.5 15.794.5 27.075.5 38.355 9.645 47.5 20.925 47.5h120.15c11.28 0 20.425-9.145 20.425-20.425 0-11.281-9.145-20.426-20.425-20.426H86.509L81.918.695Z"></path></svg>'},63476:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 14 14"><g clip-path="url(#__pJwkeh7__a)"><path fill="#FF548C" d="M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Z"></path><path fill="#fff" d="M4.703 11.527c-.042.106.095.19.17.105l4.85-5.45a.203.203 0 0 0-.152-.339h-1.7L9.757 2.79a.203.203 0 0 0-.173-.31H6.577a.407.407 0 0 0-.38.264L4.46 7.4a.203.203 0 0 0 .19.274h1.586l-1.534 3.854Z"></path></g><defs><clipPath id="__pJwkeh7__a"><path fill="#fff" d="M0 0h14v14H0z"></path></clipPath></defs></svg>'},56145:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 18 19"><path fill="#fff" d="M5.625 16.794c-.062.156.14.28.25.155l7.126-8.01a.299.299 0 0 0-.223-.496h-2.5l2.774-4.487a.299.299 0 0 0-.254-.456h-4.42a.597.597 0 0 0-.56.389l-2.549 6.84a.299.299 0 0 0 .28.402h2.329l-2.253 5.663Z"></path></svg>'},39154:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="M8 14c-.1 0-.25-.05-.35-.1-.45-.35-4.3-3.35-5.1-4.5-.9-1.2-1.05-1.85-1.05-3C1.5 4 3.25 2 5.45 2 6.4 2 7.3 2.35 8 3c.7-.65 1.6-1 2.55-1 2.2 0 3.95 2 3.95 4.4 0 1.1-.15 1.75-1.05 3-.8 1.1-4.7 4.15-5.1 4.5-.1.05-.25.1-.35.1z"></path></svg>'},69575:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 36 36"><g fill="none" fill-rule="evenodd" transform="translate(7 6)"><circle cx="10" cy="12" r="8" fill="#000" fill-opacity=".8"></circle><path stroke="#FFF" stroke-opacity=".8" d="M14.504 4.206A8.95 8.95 0 0 0 10 3a9 9 0 1 0 0 18 9 9 0 0 0 7.708-13.648"></path><path stroke="#FFF" stroke-width="2" d="m5 9.807 5.641 5.642L20.881 5"></path></g></svg>'},42643:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 36 36"><g fill="none" fill-rule="evenodd" transform="translate(7 6)"><circle cx="10" cy="12" r="8" fill="#00A1D6"></circle><path stroke="#FFF" stroke-opacity=".8" d="M14.504 4.206A8.95 8.95 0 0 0 10 3a9 9 0 1 0 0 18 9 9 0 0 0 7.708-13.648"></path><path stroke="#FFF" stroke-width="2" d="m5 9.807 5.641 5.642L20.881 5"></path></g></svg>'},56479:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32"><path d="M8 6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H8zm0-2h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4z"></path></svg>'},59930:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32"><path d="m13 18.25-1.8-1.8c-.6-.6-1.65-.6-2.25 0s-.6 1.5 0 2.25l2.85 2.85c.318.318.762.468 1.2.448.438.02.882-.13 1.2-.448l8.85-8.85c.6-.6.6-1.65 0-2.25s-1.65-.6-2.25 0l-7.8 7.8zM8 4h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4z"></path></svg>'},48837:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" d="M1.95 1.2c.331 0 .6.137.6.468s-.269.54-.6.54H1.8c-.331 0-.76.46-.76.792v7.2c0 .331.429.84.76.84h8.4c.331 0 .812-.509.812-.84V3c0-.331-.48-.791-.812-.791h-.15c-.331 0-.6-.21-.6-.541 0-.331.269-.468.6-.468h.15A1.8 1.8 0 0 1 12 3v7.2a1.8 1.8 0 0 1-1.8 1.8H1.8A1.8 1.8 0 0 1 0 10.2V3a1.8 1.8 0 0 1 1.8-1.8h.15Zm3.276 7.65-.032-.003a.604.604 0 0 1-.286-.103L4.9 8.738a.552.552 0 0 1-.074-.063l.032.03a.612.612 0 0 1-.022-.02l-.01-.01-2.1-2.1a.6.6 0 0 1 .848-.85l1.72 1.72 3.331-2.663a.6.6 0 1 1 .75.937l-3.75 3-.018.013a.615.615 0 0 1-.014.01l.032-.023a.606.606 0 0 1-.25.118l-.005.001a.54.54 0 0 1-.094.011h-.05ZM3.6 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6Zm4.8 0a.6.6 0 0 1 .6.6v2.1a.6.6 0 1 1-1.2 0V.6a.6.6 0 0 1 .6-.6ZM6.6 1.214c.331 0 .558.2.558.486s-.227.485-.558.485H5.4c-.331 0-.563-.154-.563-.485 0-.332.232-.486.563-.486h1.2Z"></path></svg>'},22121:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Z" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8 5.168 5.977Z" clip-rule="evenodd" opacity=".714"></path></svg>'},25360:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="m8 6.939 3.182-3.182a.75.75 0 1 1 1.061 1.061L9.061 8l3.182 3.182a.75.75 0 1 1-1.061 1.061L8 9.061l-3.182 3.182a.75.75 0 1 1-1.061-1.061L6.939 8 3.757 4.818a.75.75 0 1 1 1.061-1.061L8 6.939z"></path></svg>'},25817:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" class="__2XUzaFp__icon " data-pointer="none" viewBox="0 0 1408 1024"><path d="M660.053 0C451.115 0 280.32 157.077 265.493 356.01 111.872 398.465 0 528.64 0 682.668 0 864.34 155.67 1013.61 352 1024h660.053C1230.571 1024 1408 842.475 1408 618.667c0-215.766-173.803-391.467-392.96-404.139C950.4 87.552 816 0 660.053 0z"></path></svg>'},98242:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Z" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8 5.168 5.977Z" clip-rule="evenodd" opacity=".714"></path></svg>'},26658:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M12 .182C18.527.182 23.818 5.473 23.818 12A11.818 11.818 0 0 1 12 23.818C5.473 23.818.182 18.527.182 12 .182 5.473 5.473.182 12 .182Zm3.658 6.753a.844.844 0 1 0 0-1.688H8.342a.844.844 0 0 0 0 1.688h2.814v1.44a5.335 5.335 0 0 0-5.065 5.313v1.126a.844.844 0 0 0 1.688 0v-1.126a3.647 3.647 0 0 1 3.377-3.624v7.879a.844.844 0 1 0 1.688 0v-7.879c1.9.141 3.37 1.72 3.377 3.624v1.126a.844.844 0 0 0 1.688 0v-1.126a5.335 5.335 0 0 0-5.065-5.312v-1.44Z"></path></svg>'},98546:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm3.25 4.75a.75.75 0 0 1 0 1.5h-2.5v1.29c1.117.125 2.062.539 2.761 1.253.849.867 1.239 2.077 1.239 3.457v.5a.75.75 0 0 1-1.5 0v-.5c0-1.105-.31-1.895-.81-2.407-.383-.39-.934-.678-1.69-.79V17a.75.75 0 0 1-1.5 0v-5.947c-.756.112-1.307.4-1.69.79-.5.512-.81 1.302-.81 2.407v.5a.75.75 0 0 1-1.5 0v-.5c0-1.38.39-2.59 1.239-3.457.7-.714 1.644-1.128 2.761-1.252V8.25h-2.5a.75.75 0 0 1 0-1.5h6.5Z" clip-rule="evenodd"></path></svg>'},54826:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" class="__1Kmw2-y__icon " data-pointer="none" viewBox="0 0 1024 1024"><path d="M510.592 642.56 181.12 315.52a31.104 31.104 0 0 0-44.16.96 32.384 32.384 0 0 0 .64 45.248l352.96 350.208c12.352 12.224 30.336 9.792 42.624-2.368l353.28-350.592a32.384 32.384 0 0 0 .64-45.312 31.104 31.104 0 0 0-44.096-.96L510.592 642.56z"></path></svg>'},32798:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="nonzero" d="M17.992 7.2c-1.098-.17-2.11-.93-2.532-1.945l-1.941-4.059c-.59-1.352-2.447-1.352-3.122 0L8.54 5.256C8.034 6.27 7.106 7.03 6.008 7.2l-4.388.676c-1.35.17-1.94 1.86-.928 2.875l3.291 3.383c.76.76 1.097 1.86.928 2.959l-.759 4.735c-.253 1.438 1.266 2.452 2.532 1.776l3.713-2.03a3.272 3.272 0 0 1 3.29 0l3.714 2.03c1.266.676 2.7-.338 2.531-1.776l-.843-4.735c-.17-1.1.168-2.198.928-2.96l3.29-3.382c1.014-1.014.423-2.706-.927-2.875L17.992 7.2Z"></path></svg>'},74642:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M10.43 2.735c.643-1.3 2.498-1.3 3.14 0l1.87 3.79c.182.37.534.625.941.685l4.183.607c1.436.209 2.009 1.973.97 2.985l-3.027 2.95a1.25 1.25 0 0 0-.36 1.107l.715 4.167c.246 1.43-1.255 2.52-2.539 1.844l-3.741-1.967a1.25 1.25 0 0 0-1.164 0L7.677 20.87c-1.284.675-2.784-.415-2.54-1.844l.715-4.167a1.25 1.25 0 0 0-.36-1.106l-3.026-2.95C1.427 9.79 2 8.025 3.436 7.816l4.183-.607c.407-.06.759-.315.941-.684l1.87-3.79Z" clip-rule="evenodd"></path></svg>'},38665:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 12 8"><defs><path id="__-7E2OZl__a" d="M0 0h12V7.96H0z"></path></defs><g fill-rule="evenodd"><mask id="__-7E2OZl__b" fill="#fff"><use xlink:href="#__-7E2OZl__a"></use></mask><path fill="#999" d="M11.86.14a.479.479 0 0 0-.676 0L4.51 6.813.817 3.12a.479.479 0 0 0-.677.676l4.027 4.027c.095.094.22.141.344.14a.478.478 0 0 0 .344-.14L11.86.816a.477.477 0 0 0 0-.676" mask="url(#__-7E2OZl__b)"></path></g></svg>'},90536:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path d="M12 5.75a91.1 91.1 0 0 0-5.856.193 2.372 2.372 0 0 0-2.236 2.21 62.646 62.646 0 0 0-.158 4.348c0 1.637.074 3.146.16 4.335a2.348 2.348 0 0 0 2.183 2.187c1.46.111 3.438.22 5.67.227a.75.75 0 0 1-.007 1.5 79.854 79.854 0 0 1-5.778-.232 3.848 3.848 0 0 1-3.565-3.575A63.004 63.004 0 0 1 2.25 12.5c0-1.674.076-3.225.162-4.452a3.872 3.872 0 0 1 3.634-3.602C7.58 4.346 9.659 4.25 12 4.25c2.341 0 4.42.096 5.954.196a3.872 3.872 0 0 1 3.634 3.602c.078 1.11.147 2.486.16 3.979a.75.75 0 0 1-1.5.014 63.016 63.016 0 0 0-.156-3.888 2.372 2.372 0 0 0-2.235-2.21A91.104 91.104 0 0 0 12 5.75Z"></path><path d="M7.57 2.017a.75.75 0 0 1 1.044.184l1.66 2.37a.75.75 0 0 1-1.23.86l-1.658-2.37a.75.75 0 0 1 .184-1.044ZM13.91 5.615a.75.75 0 0 1-.184-1.044l1.66-2.37a.75.75 0 1 1 1.228.86l-1.66 2.37a.75.75 0 0 1-1.044.184ZM6.45 7.66a.65.65 0 0 1 .65-.65h1.87c.636 0 1.15.516 1.15 1.15v1.902a1.15 1.15 0 0 1-1.15 1.15H8l-.173 1.568h1.214a1.15 1.15 0 0 1 1.148 1.218l-.129 2.174a2.15 2.15 0 0 1-2.146 2.023h-.638a.65.65 0 1 1 0-1.3h.638a.85.85 0 0 0 .849-.8l.12-2.015H7.658a1.15 1.15 0 0 1-1.143-1.277l.208-1.868a1.15 1.15 0 0 1 1.143-1.023h.954V8.31H7.1a.65.65 0 0 1-.65-.65ZM12.08 6.774a.65.65 0 0 1 .918.054l.707.796a.65.65 0 1 1-.972.863l-.707-.796a.65.65 0 0 1 .054-.917ZM16.266 6.66a.65.65 0 0 1 .142.908l-.91 1.247a.65.65 0 1 1-1.05-.766l.91-1.247a.65.65 0 0 1 .908-.142Z"></path><path d="M10.859 9.717a1.85 1.85 0 0 1 1.85-1.85h3.074a1.85 1.85 0 0 1 1.85 1.85v2.168a.65.65 0 1 1-1.3 0V9.717a.55.55 0 0 0-.55-.55h-3.074a.55.55 0 0 0-.55.55v2.427c0 .304.246.55.55.55h1.436a.65.65 0 1 1 0 1.3H12.71a1.85 1.85 0 0 1-1.85-1.85V9.717Z"></path><path d="M14.246 7.954c.31 0 .563.252.563.563v1.905h1.63a.563.563 0 0 1 0 1.125h-1.63v1.797a.563.563 0 0 1-1.125 0v-1.797h-1.63a.563.563 0 0 1 0-1.125h1.63V8.517c0-.311.251-.563.562-.563ZM10.695 15.675a.65.65 0 0 1 .65-.65h1.411a.65.65 0 1 1 0 1.3h-1.41a.65.65 0 0 1-.65-.65ZM16.825 15.605l4.572 4.572a3.302 3.302 0 0 0-4.572-4.572Zm3.6 5.544-4.572-4.571a3.302 3.302 0 0 0 4.572 4.571Zm-5.115-6.086a4.688 4.688 0 1 1 6.63 6.63 4.688 4.688 0 0 1-6.63-6.63Z"></path></svg>'},96986:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 20 20"><path d="M10 4.792c-1.918 0-3.623.078-4.88.16a1.977 1.977 0 0 0-1.863 1.842 52.205 52.205 0 0 0-.132 3.623c0 1.365.062 2.622.133 3.613.07.982.833 1.747 1.819 1.822 1.26.096 2.982.19 4.923.19l.301-.002a.624.624 0 1 1 .005 1.25c-.321.001-.212.002-.306.002-1.98 0-3.734-.095-5.019-.194a3.206 3.206 0 0 1-2.97-2.98 52.497 52.497 0 0 1-.136-3.701c0-1.395.063-2.688.135-3.71a3.227 3.227 0 0 1 3.028-3.002A77.165 77.165 0 0 1 10 3.542c1.951 0 3.684.08 4.962.163a3.227 3.227 0 0 1 3.028 3c.072 1.023.135 2.316.135 3.712 0 .412-.006.814-.016 1.2a.625.625 0 1 1-1.25-.028c.01-.378.016-.77.016-1.172 0-1.36-.061-2.623-.132-3.623-.07-1-.855-1.776-1.862-1.842A75.915 75.915 0 0 0 10 4.792Z"></path><path d="M11.87 10.708c.299 0 .542.243.542.542v1.929a.542.542 0 1 1-1.084 0v-1.93c0-.298.243-.54.542-.54Z"></path><path d="M8.912 12.75c0-.3.242-.542.541-.542h4.834a.542.542 0 0 1 0 1.084H9.453a.542.542 0 0 1-.541-.542ZM9.048 8.097c0-.851.69-1.541 1.542-1.541h2.562c.851 0 1.542.69 1.542 1.541v2.023c0 .851-.69 1.542-1.542 1.542H10.59c-.851 0-1.542-.69-1.542-1.542V8.097Zm1.542-.458a.458.458 0 0 0-.458.458v2.023c0 .253.205.458.458.458h2.562a.458.458 0 0 0 .458-.458V8.097a.458.458 0 0 0-.458-.458H10.59ZM6.308 1.68a.625.625 0 0 1 .87.154L8.562 3.81a.625.625 0 0 1-1.024.717L6.155 2.551a.625.625 0 0 1 .153-.87ZM11.592 4.68a.625.625 0 0 1-.153-.871l1.383-1.975a.625.625 0 0 1 1.024.717l-1.383 1.975a.625.625 0 0 1-.87.153ZM5.375 6.384c0-.3.243-.542.542-.542h1.559c.529 0 .958.43.958.959v1.584c0 .529-.43.958-.958.958h-.809l-.145 1.307h1.012c.552 0 .99.464.957 1.015l-.107 1.812a1.792 1.792 0 0 1-1.789 1.685h-.532a.542.542 0 1 1 0-1.083h.532a.708.708 0 0 0 .707-.667l.1-1.679h-1.02a.958.958 0 0 1-.952-1.064l.173-1.557a.958.958 0 0 1 .952-.852h.796V6.926H5.917a.542.542 0 0 1-.542-.542Z"></path><path d="M10.067 5.645a.542.542 0 0 1 .764.045l.59.663a.542.542 0 1 1-.81.72l-.59-.664a.542.542 0 0 1 .046-.764ZM13.555 5.55a.542.542 0 0 1 .118.757l-.758 1.039a.542.542 0 1 1-.875-.639l.758-1.039a.542.542 0 0 1 .757-.118Z"></path><path d="M11.872 6.629c.259 0 .469.21.469.468v1.588h1.358a.469.469 0 0 1 0 .938h-1.358v1.497a.469.469 0 0 1-.938 0V9.623h-1.359a.469.469 0 0 1 0-.938h1.36V7.097c0-.258.209-.468.468-.468ZM19.183 13.282c.244.244.245.64.001.884l-3.348 3.36a1.25 1.25 0 0 1-1.77 0l-1.7-1.706a.625.625 0 1 1 .885-.883l1.62 1.626a.113.113 0 0 0 .16 0l3.268-3.28a.625.625 0 0 1 .884 0Z"></path><path d="M19.183 13.282c.244.244.245.64.001.884l-3.348 3.36a1.25 1.25 0 0 1-1.77 0l-1.7-1.706a.625.625 0 1 1 .885-.883l1.62 1.626a.113.113 0 0 0 .16 0l3.268-3.28a.625.625 0 0 1 .884 0Z"></path></svg>'},32875:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 10 10" viewBox="0 0 10 10"><path d="m1.311 3.759-.153 1.438h2.186c0 1.832-.066 3.056-.175 3.674-.131.618-.688.959-1.683 1.023-.284 0-.568-.021-.874-.043L.317 8.818c.284.032.59.053.896.053.546 0 .852-.17.929-.511.077-.341.12-1.076.12-2.204H0l.306-3.344h1.847V1.427H.098V.479h3.18v3.28H1.311zM4 1.747h1.311A8.095 8.095 0 0 0 4.492.426L5.53.085c.306.426.579.873.809 1.363l-.689.299h1.508c.306-.544.569-1.129.809-1.747l1.082.373c-.219.511-.47.969-.743 1.374h1.268V6.23H7.322v.82H10v1.044H7.322V10H6.208V8.094H3.607V7.05h2.601v-.82H4V1.747zm4.568 3.557v-.831H7.322v.831h1.246zm-2.36 0v-.831H5.016v.831h1.192zM5.016 3.557h1.191v-.873H5.016v.873zm2.306-.873v.873h1.246v-.873H7.322z"></path></svg>'},54160:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m8.085 4.891-.999-1.499a1.008 1.008 0 0 1 1.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 0 1 1.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 0 1-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 0 0-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 0 0 5.416.139.988.988 0 0 1 0 1.975c-2.196 0-3.61-.047-5.513-.141A4.012 4.012 0 0 1 2.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 0 1 5.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 0 1 3.575-3.115V9.598h-1.276a8.59 8.59 0 0 0 .748-1.42l-1.089-.384a14.232 14.232 0 0 1-.814 1.804h-1.518l.693-.308a8.862 8.862 0 0 0-.814-1.408l-1.045.352c.297.396.572.847.825 1.364Zm-4.18 3.564.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 1 0 0-8 4 4 0 0 0 0 8Zm-.002-1.502a2.5 2.5 0 0 1-2.217-3.657l3.326 3.398a2.49 2.49 0 0 1-1.109.259Zm2.5-2.5c0 .42-.103.815-.286 1.162l-3.328-3.401a2.5 2.5 0 0 1 3.614 2.239Z" clip-rule="evenodd"></path></svg>'},52399:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.989 4.828c-.47 0-.975.004-1.515.012l-1.71-2.566a1.008 1.008 0 0 0-1.678 1.118l.999 1.5c-.681.018-1.403.04-2.164.068a4.013 4.013 0 0 0-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 0 0 3.763 3.363l.906.046c1.205.063 1.808.095 3.607.095a.988.988 0 0 0 0-1.975c-1.758 0-2.339-.03-3.501-.092l-.915-.047a2.037 2.037 0 0 1-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 1 0 1.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 0 0-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 0 0 .748-1.42L15.183 7.8a14.232 14.232 0 0 1-.814 1.804h-1.518l.693-.308a8.862 8.862 0 0 0-.814-1.408l-1.045.352c.297.396.572.847.825 1.364Zm-4.18 3.564.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" clip-rule="evenodd"></path><path fill-rule="evenodd" d="M22.846 14.627a1 1 0 0 0-1.412.075l-5.091 5.703-2.216-2.275-.097-.086-.008-.005a1 1 0 0 0-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 0 0-.166-1.295Z" clip-rule="evenodd"></path></svg>'},68224:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M16.5 8c1.289 0 2.49.375 3.5 1.022V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h7.022A6.5 6.5 0 0 1 16.5 8zM7 13H5a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2zm2-4H5a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"></path><path d="m20.587 13.696-.787-.131a3.503 3.503 0 0 0-.593-1.051l.301-.804a.46.46 0 0 0-.21-.56l-1.005-.581a.52.52 0 0 0-.656.113l-.499.607a3.53 3.53 0 0 0-1.276 0l-.499-.607a.52.52 0 0 0-.656-.113l-1.005.581a.46.46 0 0 0-.21.56l.301.804c-.254.31-.456.665-.593 1.051l-.787.131a.48.48 0 0 0-.413.465v1.209a.48.48 0 0 0 .413.465l.811.135c.144.382.353.733.614 1.038l-.292.78a.46.46 0 0 0 .21.56l1.005.581a.52.52 0 0 0 .656-.113l.515-.626a3.549 3.549 0 0 0 1.136 0l.515.626a.52.52 0 0 0 .656.113l1.005-.581a.46.46 0 0 0 .21-.56l-.292-.78c.261-.305.47-.656.614-1.038l.811-.135A.48.48 0 0 0 21 15.37v-1.209a.48.48 0 0 0-.413-.465zM16.5 16.057a1.29 1.29 0 1 1 .002-2.582 1.29 1.29 0 0 1-.002 2.582z"></path></svg>'},71118:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zM7.849 11.669l.447-.828.492.782.894.184-.536.736.134.966-.85-.321-.804.414.045-.967L7 11.946l.849-.277zm3.352 7.101-1.43-.506L8.43 19v-1.565L7.357 16.33l1.43-.506.67-1.381.894 1.289 1.475.23-.894 1.289.269 1.519zm2.453-5.971-2.145-1.933 2.637-1.151L15.263 7l1.877 2.255 2.86.23-1.52 2.531.67 2.854-2.816-.69-2.458 1.565-.222-2.946z"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z"></path></svg>'},38341:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 14 14"><path fill="#9499A0" d="M7 2.041a4.958 4.958 0 1 0 0 9.917A4.958 4.958 0 0 0 7 2.04ZM1.167 7a5.833 5.833 0 1 1 11.666 0A5.833 5.833 0 0 1 1.166 7Z"></path><path fill="#9499A0" d="M7.51 9.296a.51.51 0 1 1-1.02 0 .51.51 0 0 1 1.02 0ZM7 5.177a.73.73 0 0 0-.729.729.437.437 0 1 1-.875 0 1.604 1.604 0 0 1 3.208 0 1.5 1.5 0 0 1-.36.991c-.096.118-.202.22-.297.307l-.081.074c-.067.061-.127.116-.187.177-.147.146-.199.25-.22.31a.5.5 0 0 0-.021.182.437.437 0 1 1-.875 0c0-.118.006-.284.07-.469.071-.206.204-.42.427-.642a6.966 6.966 0 0 1 .293-.274c.089-.083.159-.151.216-.22a.629.629 0 0 0 .16-.436.73.73 0 0 0-.729-.73Z"></path></svg>'},25638:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM7.849 11.669l.447-.828.492.782.894.184-.536.736.134.966-.85-.321-.804.414.045-.967L7 11.946l.849-.277zm3.352 7.101-1.43-.506L8.43 19v-1.565L7.357 16.33l1.43-.506.67-1.381.894 1.289 1.475.23-.894 1.289.269 1.519zm7.95-3.9-2.816-.69-2.458 1.565-.223-2.946-2.145-1.933 2.637-1.151L15.263 7l1.877 2.255 2.86.23-1.52 2.531.671 2.854z"></path></svg>'},96827:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23.177 3H4.824C2.683 3 1 4.833 1 7.167v13.665C1 23.167 2.683 25 4.824 25h18.353C25.318 25 27 23.167 27 20.833V7.167C27 4.833 25.318 3 23.177 3zM13.001 14.996h-4V16a.5.5 0 0 1-.8.4l-2.668-2a.5.5 0 0 1 0-.8l2.668-2a.5.5 0 0 1 .8.4v.998H13a.999.999 0 0 1 .001 1.998zM18 15h-2v-2h2v2zm-1-4h-6a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm5 0h-2V9h2v2z"></path></svg>'},95887:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zM9 21H7v-2h2v2zm4 0h-2v-2h2v2z"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z"></path></svg>'},96253:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM9 21H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"></path></svg>'},180:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M17.823 15.247c.612 0 1.148-.535 1.148-1.147s-.536-1.147-1.148-1.147c-.611 0-1.147.535-1.147 1.147s.536 1.147 1.147 1.147zM17.365 11.118c0-.612-.535-1.147-1.147-1.147s-1.147.535-1.147 1.147c0 .611.535 1.147 1.147 1.147s1.147-.536 1.147-1.147z"></path><path d="M18.235 16.872c-1.483.086-2.859-.172-3.546.516-.918.918 1.529 1.606 0 2.219-1.988.84-7.341-.535-8.182-4.053-.841-3.441 2.905-6.5 5.888-7.035 2.906-.535 6.041.841 8.181 2.982 1.208 1.253 1.265 2.663.782 3.694A6.938 6.938 0 0 1 23 15c1.487 0 2.866.464 4 1.255V7.167C27 4.833 25.318 3 23.177 3H4.824C2.683 3 1 4.833 1 7.167v13.665C1 23.167 2.683 25 4.824 25h11.85A6.97 6.97 0 0 1 16 22c0-2.025.86-3.85 2.235-5.128z"></path><path d="M8.876 16.319c0 .611.535 1.146 1.147 1.146s1.147-.535 1.147-1.146c0-.612-.535-1.148-1.147-1.148s-1.147.536-1.147 1.148zM9.794 11.883c-.764 0-1.376.612-1.376 1.3 0 .689.612 1.3 1.376 1.3s1.376-.611 1.376-1.3c.001-.688-.611-1.3-1.376-1.3zM11.553 10.965c0 .689.612 1.301 1.376 1.301s1.376-.612 1.376-1.301-.612-1.3-1.376-1.3-1.376.611-1.376 1.3zM26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z"></path></svg>'},28016:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M17.365 11.118c0-.612-.535-1.147-1.147-1.147s-1.147.535-1.147 1.147c0 .611.535 1.147 1.147 1.147s1.147-.536 1.147-1.147zM12.93 9.665c-.764 0-1.376.611-1.376 1.3 0 .689.612 1.301 1.376 1.301s1.376-.612 1.376-1.301-.612-1.3-1.376-1.3zM9.794 11.883c-.764 0-1.376.612-1.376 1.3 0 .689.612 1.3 1.376 1.3s1.376-.611 1.376-1.3c.001-.688-.611-1.3-1.376-1.3zM10.023 15.171c-.612 0-1.147.536-1.147 1.148 0 .611.535 1.146 1.147 1.146s1.147-.535 1.147-1.146c.001-.612-.535-1.148-1.147-1.148zM17.823 12.953c-.611 0-1.147.535-1.147 1.147s.536 1.147 1.147 1.147c.612 0 1.148-.535 1.148-1.147s-.536-1.147-1.148-1.147z"></path><path d="M23.177 3H4.824C2.683 3 1 4.833 1 7.167v13.665C1 23.167 2.683 25 4.824 25h18.353C25.318 25 27 23.167 27 20.833V7.167C27 4.833 25.318 3 23.177 3zm-3.442 13.624c-1.987.612-4.129-.154-5.046.764-.918.918 1.529 1.606 0 2.219-1.988.84-7.341-.535-8.182-4.053-.841-3.441 2.905-6.5 5.888-7.035 2.906-.535 6.041.841 8.181 2.982 2.065 2.141.765 4.74-.841 5.123z"></path></svg>'},14561:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zM11 9h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2zm-3 2H6V9h2v2zm4 4h-2v-2h2v2zm2-1a1 1 0 0 1 1-1h1a1 1 0 0 1 0 2h-1a1 1 0 0 1-1-1z"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z"></path></svg>'},92853:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM11 9h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2zm-3 2H6V9h2v2zm4 4h-2v-2h2v2zm9 0h-6a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z"></path></svg>'},63385:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15zm-4-8h2v2h-2V7zM9 9H7V7h2v2zm4 0h-2V7h2v2zm2-2h2v2h-2V7z"></path><path d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071zm-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586zm4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001z"></path></svg>'},59229:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4zM9 9H7V7h2v2zm4 0h-2V7h2v2zm4 0h-2V7h2v2zm4 0h-2V7h2v2z"></path></svg>'},50934:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M17 16H5c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1zM6.96 15c.39 0 .74-.24.89-.6l.65-1.6h5l.66 1.6c.15.36.5.6.89.6.69 0 1.15-.71.88-1.34l-3.88-8.97C11.87 4.27 11.46 4 11 4s-.87.27-1.05.69l-3.88 8.97c-.27.63.2 1.34.89 1.34zM11 5.98 12.87 11H9.13L11 5.98z"></path></svg>'},32547:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 14 14"><defs><path id="__SwuHON0__a" d="M0 0h13.835v13.86H0z"></path></defs><g fill-rule="evenodd"><mask id="__SwuHON0__b" fill="#fff"><use xlink:href="#__SwuHON0__a"></use></mask><path d="M4.348 10.546a.868.868 0 0 0 1.736 0v-5.14a.99.99 0 0 0-.868-.981c-.485.081-.846.49-.868.98v5.14Zm3.473 0c0 .48.388.868.868.868a.816.816 0 0 0 .868-.868v-5.14a.973.973 0 0 0-.868-.99c-.488.082-.85.495-.868.99v5.14Zm5.261-7.068h-1.016v8.856c.06.78-.523 1.46-1.302 1.52h-7.45a1.441 1.441 0 0 1-1.57-1.528V3.478H.78a.868.868 0 0 1-.773-.868.773.773 0 0 1 .664-.868h3.677V.804A.694.694 0 0 1 5.12.005h3.568a.695.695 0 0 1 .773.773v.964h3.568a.773.773 0 0 1 .799.868.868.868 0 0 1-.747.868Z" mask="url(#__SwuHON0__b)"></path></g></svg>'},26616:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 17"><path fill="#fff" fill-rule="evenodd" d="M8 3.75c-1.714 0-3.208.088-4.258.174A1.45 1.45 0 0 0 2.4 5.246C2.323 6.107 2.25 7.25 2.25 8.5s.073 2.393.15 3.254a1.45 1.45 0 0 0 1.342 1.322c1.05.086 2.544.174 4.258.174s3.208-.088 4.258-.174a1.45 1.45 0 0 0 1.341-1.321c.078-.862.151-2.004.151-3.255s-.073-2.393-.15-3.255a1.45 1.45 0 0 0-1.342-1.321A52.956 52.956 0 0 0 8 3.75Zm-4.34-.823A53.955 53.955 0 0 1 8 2.75c1.747 0 3.27.09 4.34.177a2.45 2.45 0 0 1 2.255 2.228c.08.883.155 2.057.155 3.345 0 1.288-.075 2.462-.155 3.345a2.45 2.45 0 0 1-2.255 2.228c-1.07.087-2.593.177-4.34.177-1.747 0-3.27-.09-4.34-.177a2.45 2.45 0 0 1-2.255-2.229A37.662 37.662 0 0 1 1.25 8.5c0-1.288.075-2.461.155-3.344A2.45 2.45 0 0 1 3.66 2.927ZM4 7.25a.5.5 0 0 1 .5-.5h.25a.5.5 0 0 1 0 1H4.5a.5.5 0 0 1-.5-.5Zm2 0a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5Zm-.5 2a.5.5 0 0 0 0 1h.25a.5.5 0 0 0 0-1H5.5Zm2 0a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Z" clip-rule="evenodd"></path></svg>'},44011:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 60 48"><g clip-path="url(#__lRjKKzE__a)"><path fill="#000" fill-opacity=".703" fill-rule="evenodd" d="M0 27.075C0 16.07 8.92 7.149 19.925 7.149h4.91L29.523 1l4.741 6.15h4.812C50.079 7.15 59 16.07 59 27.074 59 38.079 50.079 47 39.075 47h-19.15C8.921 47 0 38.08 0 27.075Z" clip-rule="evenodd"></path><path stroke="#fff" stroke-linejoin="round" stroke-opacity=".496" d="M29.918.695a.5.5 0 0 0-.794.002l-4.536 5.952h-3.663C9.645 6.65.5 15.794.5 27.075.5 38.355 9.645 47.5 20.925 47.5h18.15c11.28 0 20.425-9.145 20.425-20.425 0-11.281-9.145-20.426-20.425-20.426h-4.566L29.918.695Z"></path></g><defs><clipPath id="__lRjKKzE__a"><path fill="#fff" d="M0 0h60v48H0z"></path></clipPath></defs></svg>'},33933:function(t){t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M7.087 3.392 8.28 5.186c-.735.02-1.518.044-2.35.073a3.712 3.712 0 0 0-3.543 3.184c-.162 1.13-.242 2.51-.242 4.141 0 1.955.115 3.643.347 5.068a3.712 3.712 0 0 0 3.48 3.111c1.9.094 4.365.141 6.555.141a.687.687 0 1 0 0-1.375c-2.168 0-4.61-.046-6.486-.139a2.338 2.338 0 0 1-2.192-1.96c-.219-1.344-.33-2.96-.33-4.846 0-1.57.077-2.887.229-3.946A2.337 2.337 0 0 1 5.98 6.633c2.423-.086 4.433-.13 6.028-.131 1.596.002 3.606.045 6.029.131 1.13.04 2.07.884 2.23 2.005.153 1.059.206 2.451.206 4.022a.687.687 0 1 0 1.375 0c0-1.632-.057-3.087-.219-4.217a3.712 3.712 0 0 0-3.544-3.184c-.942-.033-1.822-.06-2.641-.081l1.262-1.757a1.008 1.008 0 0 0-1.637-1.177l-1.907 2.653a1.012 1.012 0 0 0-.126.236l-.908-.006H11.889c-.393.001-.81.005-1.25.01a1.008 1.008 0 0 0-.107-.21L8.765 2.273a1.008 1.008 0 0 0-1.678 1.118ZM11.2 9.597h1.32a8.454 8.454 0 0 0-.825-1.364l1.045-.352c.308.44.583.902.814 1.408l-.693.308h1.518c.308-.56.572-1.166.814-1.804l1.09.385a8.59 8.59 0 0 1-.749 1.42h1.276v3.44a5.01 5.01 0 0 0-3.575 3.115h-2.43v-1.078h2.617v-.847h-2.222v-4.63Zm-2.706 2.08-.154 1.484h2.2c0 1.892-.066 3.157-.176 3.795-.132.638-.693.99-1.694 1.056-.267 0-.533-.019-.818-.04l-.062-.004-.297-1.067c.286.033.594.055.902.055.55 0 .858-.176.935-.528.077-.352.121-1.11.121-2.277H7.175l.308-3.454h1.86v-1.43H7.273v-.979h3.201v3.388h-1.98Zm7.304.736v.858h-1.254v-.858H15.8Zm-2.376.858v-.858h-1.199v.858h1.2Zm0-1.804h-1.199v-.902h1.2v.902Zm1.122-.902v.902H15.8v-.902h-1.254Zm7.517 7.497a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-6.736 0a2.737 2.737 0 0 0 4.148 2.345l-3.757-3.757a2.724 2.724 0 0 0-.391 1.412Zm5.081 1.412a2.737 2.737 0 0 0-3.758-3.757l3.758 3.757Z" clip-rule="evenodd"></path></svg>'},34709:function(t){t.exports='<svg data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M8.281 5.186 7.087 3.392a1.008 1.008 0 0 1 1.678-1.118l1.767 2.652c.045.068.08.139.107.211.478-.006.928-.01 1.35-.01h.13c.292 0 .598.002.917.005.03-.082.073-.16.126-.235l1.907-2.653a1.008 1.008 0 0 1 1.637 1.177l-1.26 1.755c.844.02 1.754.048 2.73.083 1.797.063 3.2 1.47 3.455 3.25.085.596.127 2.136.157 3.268.01.333.017.631.025.86a.688.688 0 0 1-1.374.047c-.008-.23-.016-.536-.025-.88-.028-1.091-.066-2.554-.144-3.1-.16-1.12-1.01-2.031-2.142-2.071-2.446-.086-4.47-.13-6.074-.131a180.99 180.99 0 0 0-6.074.131A2.337 2.337 0 0 0 3.75 8.638c-.152 1.059-.228 2.375-.228 3.946 0 1.885.11 3.502.329 4.847a2.338 2.338 0 0 0 2.192 1.96c1.875.092 3.262.138 5.43.138a.687.687 0 1 1 0 1.375c-2.19 0-3.599-.047-5.498-.14a3.712 3.712 0 0 1-3.481-3.112c-.232-1.425-.347-3.114-.347-5.068 0-1.631.08-3.01.242-4.141a3.712 3.712 0 0 1 3.544-3.184c.83-.03 1.614-.054 2.35-.073Zm4.23 4.417h-1.32v4.63h2.221v.848h-2.618v1.078h2.618l.003.678c.36.026.714.162 1.01.407h.11v-1.085h2.694V15.08h-2.695v-.847H16.8V9.603h-1.276a8.59 8.59 0 0 0 .748-1.42L15.183 7.8a14.232 14.232 0 0 1-.814 1.804h-1.518l.693-.308a8.862 8.862 0 0 0-.814-1.408l-1.045.352c.297.396.572.847.825 1.364Zm-4.18 3.564.153-1.485h1.98V8.294h-3.2v.979H9.33v1.43H7.472l-.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.552.04.818.04 1.001-.066 1.562-.418 1.694-1.056.11-.638.176-1.903.176-3.795h-2.2Zm7.457.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" clip-rule="evenodd"></path><path fill="#F69" d="M21.62 14.87a.75.75 0 0 1 1.183.915l-.068.088-5.804 6.498a.75.75 0 0 1-1.016.093l-.08-.071-2.956-3.035a.75.75 0 0 1 .992-1.12l.083.074 2.397 2.46 5.269-5.902Z"></path></svg>'},29888:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 21 20"><path fill="#FFF" fill-rule="nonzero" d="m10.673 1.5.297.022c1.202.132 2.273.817 2.842 1.815l6.026 9.504c.385.587.594 1.259.612 2.008 0 2.011-1.676 3.482-3.792 3.482H4.542C2.417 18.33.75 16.851.75 14.784a3.666 3.666 0 0 1 .594-1.916l6.014-9.482a3.776 3.776 0 0 1 3.088-1.881l.081-.005h.146ZM10.6 2.748l-.081.005a2.53 2.53 0 0 0-2.076 1.254L2.4 13.537c-.251.383-.39.824-.4 1.277 0 1.317 1.083 2.266 2.542 2.267h12.116c1.46 0 2.542-.95 2.542-2.232a2.492 2.492 0 0 0-.407-1.323L12.66 3.853a2.54 2.54 0 0 0-1.98-1.1l-.081-.005Zm.026 10.73a1 1 0 1 1-.006 2 1 1 0 0 1 .006-2ZM10.6 5.815c.54 0 .977.436.977.972-.113 2.57-.177 4.037-.191 4.4-.022.542-.45.76-.786.76s-.774-.21-.794-.76c-.013-.368-.074-1.834-.183-4.399 0-.537.436-.973.977-.973Z"></path></svg>'},79302:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 25"><path fill="#fff" d="M3 6.87a4 4 0 0 1 4-4h6.75a.75.75 0 0 1 0 1.5H7a2.5 2.5 0 0 0-2.5 2.5v9.75a.75.75 0 0 1-1.5 0V6.87Z"></path><path fill="#fff" d="M6 8.87a3 3 0 0 1 3-3h8.5a3 3 0 0 1 3 3v7.11a3.5 3.5 0 0 1-1.025 2.476l-3.39 3.389a3.5 3.5 0 0 1-2.474 1.025H9a3 3 0 0 1-3-3v-11Zm3-1.5a1.5 1.5 0 0 0-1.5 1.5v11a1.5 1.5 0 0 0 1.5 1.5h4.61a2 2 0 0 0 1.415-.586l3.39-3.389A2 2 0 0 0 19 15.981V8.87a1.5 1.5 0 0 0-1.5-1.5H9Z"></path><path fill="#fff" d="M16.25 17.62a1 1 0 0 0-1 1v2.75a.75.75 0 0 1-1.5 0v-2.75a2.5 2.5 0 0 1 2.5-2.5H19a.75.75 0 0 1 0 1.5h-2.75ZM9.75 11.62a.75.75 0 0 1 .75-.75H16a.75.75 0 0 1 0 1.5h-5.5a.75.75 0 0 1-.75-.75ZM9.75 15.12a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.75-.75Z"></path></svg>'},85753:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" d="M12.531 6.563H4.125l2.5-2.5a.604.604 0 0 0 0-.876.604.604 0 0 0-.875 0L2.187 6.72A.617.617 0 0 0 2 7.156c0 .157.062.313.187.438l3.532 3.531c.25.25.625.25.875 0a.604.604 0 0 0 0-.875L4.156 7.813h8.375a4.201 4.201 0 0 1 4.219 4.219 4.201 4.201 0 0 1-4.219 4.218H6.125a.627.627 0 0 0-.625.625c0 .344.281.625.625.625h6.406A5.455 5.455 0 0 0 18 12.031a5.455 5.455 0 0 0-5.469-5.468Z"></path></svg>'},7975:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 90 14"><g fill="#fff" opacity=".8"><path d="M3.86 9.86c-.94.42-2.04.76-3.3 1.01l.09.7c1.2-.26 2.27-.61 3.21-1.03v-.68ZM2.17 2.84C1.77 4.02 1.3 5.07.76 5.99c-.08.12-.18.21-.29.26l.18.62c.55-.1 1.1-.22 1.64-.34-.52 1-.96 1.7-1.32 2.11-.09.08-.19.14-.31.19l.18.63c.92-.14 1.88-.39 2.88-.75v-.65c-.69.27-1.37.48-2.05.63.47-.61 1.06-1.59 1.76-2.95l.39.51c.52-.5.94-1.08 1.28-1.72h3.37c-.02 3.36-.06 5.37-.13 6.02-.06.49-.31.74-.75.74-.35 0-.77-.02-1.26-.04l.17.66c.56.02.96.04 1.19.04.8 0 1.24-.37 1.34-1.11.1-.88.15-3.21.15-6.98H5.4c.12-.32.23-.65.31-.99l-.69-.1a6.102 6.102 0 0 1-1.49 2.79c.07-.14.15-.29.23-.45l-.66-.24c-.17.36-.33.7-.49 1.02-.44.11-.87.2-1.29.27.52-.76 1.03-1.78 1.53-3.06l-.68-.26Zm2.31 2.91v4.52h2.77V5.75H4.48Zm2.11 3.92H5.13V8.28h1.46v1.39ZM5.13 7.7V6.35h1.46V7.7H5.13ZM10.62 3.35v.7h8.76v-.7h-8.76Zm2.97 8.63c.54 0 .82-.3.82-.89v-6h-3.33v6.92h.66V5.77h2v5.18c0 .26-.13.4-.37.4l-.71-.03.18.66h.75Zm-1.12-5.14-.54.22c.38.64.73 1.4 1.05 2.27l.58-.25c-.3-.79-.67-1.54-1.09-2.24Zm5.59 5.14c.56 0 .85-.31.85-.91V5.09h-3.34v6.92h.67V5.77h2.01v5.16c0 .28-.14.42-.41.42l-.65-.03.18.66h.69Zm-1.1-5.15-.54.22c.39.66.75 1.43 1.07 2.31l.58-.25c-.31-.8-.68-1.56-1.11-2.28ZM24.82 6.35v1.81h-2.39V6.35h2.39Zm.73 1.81V6.35h2.35v1.81h-2.35Zm-2.34-3.74h3.26c-.39.48-.78.9-1.18 1.26h-3.45c.49-.38.95-.8 1.37-1.26ZM21.7 5.78v5.16c0 .6.31.9.94.9h5.33c.58-.02.96-.24 1.16-.68.12-.28.21-.75.28-1.41l-.71-.22c-.07.68-.15 1.11-.25 1.28-.13.21-.36.32-.7.33h-4.83c-.32 0-.49-.16-.49-.46V8.84h6.2V5.68h-2.37c.38-.38.76-.83 1.14-1.37v-.55h-3.64c.2-.26.39-.54.57-.83l-.72-.16a9.82 9.82 0 0 1-3.17 2.98l.48.58c.26-.17.52-.35.78-.55ZM35.36 2.95c-1.3.37-2.94.56-4.9.56l.21.64c2.1 0 3.77-.2 5.03-.6l-.34-.6Zm-.44 1.29c-.22.82-.46 1.49-.74 2.02l.58.21c.31-.6.56-1.29.76-2.08l-.6-.15Zm3.49-1.49c-.67.9-1.52 1.63-2.55 2.17l.31.66c1.08-.61 1.99-1.37 2.72-2.29l-.48-.54Zm.44 2.72a8.3 8.3 0 0 1-2.83 2.33l.32.66A9.843 9.843 0 0 0 39.32 6l-.47-.53Zm.29 2.74c-.89 1.28-2.02 2.3-3.4 3.07l.33.68c1.42-.85 2.61-1.92 3.56-3.21l-.49-.54Zm-8.37-.82v.7h2.02c-.57 1-1.36 1.87-2.36 2.61l.43.62c.8-.64 1.49-1.45 2.09-2.42v3.09h.72V9.37c.41.3.91.7 1.49 1.22l.42-.64c-.65-.47-1.29-.88-1.91-1.24v-.62h1.98v-.7h-1.98V6.4h-.72v.99h-2.18Zm2.33-3-.61.17c.23.49.43.99.59 1.51l.61-.22c-.14-.44-.34-.93-.59-1.46Zm-1.8.19-.57.19c.3.54.55 1.12.75 1.72l.59-.15c-.22-.66-.48-1.25-.77-1.76ZM41.86 9.81c-.2 0-.35.05-.47.17a.58.58 0 0 0-.18.45c0 .17.06.32.18.44s.26.18.43.18c.1 0 .18-.02.22-.04 0 .24-.07.46-.22.67-.16.2-.37.35-.63.44v.49c.42-.11.77-.33 1.03-.65.26-.34.39-.73.39-1.17 0-.29-.07-.52-.2-.7a.656.656 0 0 0-.55-.28ZM51.24 3.07l-.5.49c.69.52 1.24 1.01 1.64 1.47l.51-.51c-.45-.48-1-.97-1.65-1.45Zm-.23 2.33-.51.5c.7.53 1.25 1.03 1.65 1.5l.52-.51c-.45-.5-1-.99-1.66-1.49Zm1.15 2.71c-.4 1.18-.88 2.34-1.43 3.47l.69.31c.51-1.1.97-2.27 1.39-3.52l-.65-.26Zm6.97-4.88h-5.85v2.18h.7V3.9h4.45v1.51h.7V3.23Zm-4.57 4.91c-.02 1.5-.59 2.61-1.71 3.35l.58.52c1.15-.86 1.75-2.12 1.79-3.8V6.25h1.89v4.62c0 .6.28.9.85.9h.54c.52 0 .82-.24.92-.7.06-.34.09-.94.1-1.78l-.65-.19c0 .71-.01 1.25-.03 1.61-.04.29-.15.44-.35.44h-.43c-.18-.01-.28-.13-.28-.36V5.61h-3.22v2.53ZM62.04 8.43c-.42 1.1-.9 2.18-1.46 3.23l.71.31c.51-1.02.97-2.12 1.38-3.29l-.63-.25Zm6.53-2.06V3.2h-4.94v.58h4.28v.72h-3.99v.58h3.99v.69h-4.27v.6h4.93Zm.64.63H63.1v1.61h.63v.4h.38c.3.56.78 1.07 1.44 1.51-.75.35-1.66.63-2.72.85l.26.63c1.24-.28 2.28-.64 3.12-1.09.76.4 1.73.75 2.89 1.04l.38-.59c-1.02-.23-1.9-.51-2.63-.84.64-.44 1.13-.96 1.47-1.54v-.57h-4.54v-.8h4.75v1.04h.68V7Zm-4.39 2.01h2.72c-.33.43-.78.82-1.35 1.17-.6-.34-1.05-.73-1.37-1.17Zm-3.65-5.99-.51.49c.72.52 1.3 1.01 1.72 1.47l.5-.49c-.47-.49-1.04-.98-1.71-1.47Zm-.23 2.44-.51.49c.72.52 1.29 1.02 1.7 1.49l.5-.5c-.45-.5-1.01-.99-1.69-1.48ZM71.61 6.61v5.4h.71V5.45c.39-.74.71-1.53.97-2.36l-.65-.3a11.97 11.97 0 0 1-2.25 4.39l.21.72c.36-.41.7-.84 1.01-1.29Zm1.51-2.07v.7h1.95c-.48 1.84-1.27 3.34-2.39 4.5l.37.62c1.23-1.33 2.1-3.04 2.6-5.12h.12v4.01h-1.53v.69h1.53V12h.71V9.94h1.55v-.69h-1.55V5.24h.12c.46 1.85 1.31 3.52 2.53 5l.47-.59a10.888 10.888 0 0 1-2.43-4.41h2.04v-.7h-2.73V2.82h-.71v1.72h-2.65ZM85.33 5.77v.62h2.81v-.62c.34.37.72.72 1.15 1.05l.39-.6c-1.24-.96-2.12-2.07-2.62-3.35h-.66c-.6 1.39-1.47 2.52-2.59 3.39l.38.58c.4-.31.78-.67 1.14-1.07Zm2.78-.04h-2.75c.52-.6.97-1.32 1.37-2.16.34.78.8 1.5 1.38 2.16Zm-4.01 5.23v.69h5.46v-.69h-1.51c.4-1.1.73-2.36 1.01-3.78l-.69-.17c-.3 1.57-.64 2.89-1.02 3.95H84.1Zm.92-3.66-.62.21c.35.9.64 1.83.86 2.81l.62-.15c-.26-1.08-.54-2.04-.86-2.87Zm1.54-.29-.62.19c.3.86.54 1.76.72 2.69l.63-.15c-.22-1.03-.46-1.94-.73-2.73Zm-3.58-3.06-.44 3.46h-1.18l.4-2.75-.66-.04-.47 3.43h2.55c0 1.52-.06 2.43-.16 2.75-.1.3-.39.46-.87.46-.14 0-.39-.02-.74-.06l.19.64c.24.02.48.03.71.03.63 0 1.04-.18 1.24-.52.19-.35.29-1.66.29-3.94h-.62l.48-4.12h-3.14v.66h2.42Zm-.37 4.99c-.66.24-1.44.43-2.32.58l.09.68c.83-.16 1.57-.36 2.23-.61v-.65Z"></path></g></svg>'},45916:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 88 20"><path d="M57.994 13.489h.029L61.391 4.5h.86l-3.805 9.99h-.903l-3.79-9.99h.873l3.368 8.989Zm6.352-8.399a.571.571 0 1 0-.578.578.58.58 0 0 0 .578-.578Zm-.183 2.495h-.775v6.906h.775V7.585Zm6.016 1.11c-.423-.719-1.248-1.11-2.208-1.11-1.14 0-2.237.564-2.237 1.833 0 2.438 3.811 1.353 3.811 3.143 0 .916-.8 1.282-1.617 1.282a2.252 2.252 0 0 1-1.885-1.014l-.605.436c.563.832 1.506 1.227 2.495 1.227 1.196 0 2.377-.592 2.377-1.988 0-1.071-.8-1.578-2.194-1.889-1.082-.24-1.645-.493-1.645-1.254 0-.817.787-1.14 1.476-1.14a1.857 1.857 0 0 1 1.647.901l.585-.428Zm2.589-3.617a.571.571 0 1 0-.577.578.58.58 0 0 0 .577-.578Zm-.166 2.505h-.817v6.906h.817V7.583Zm8.16 3.447c0-1.998-1.419-3.445-3.458-3.445-2.038 0-3.445 1.447-3.445 3.445 0 1.997 1.42 3.465 3.445 3.465s3.459-1.483 3.459-3.465Zm-.787 0c0 1.56-1.025 2.772-2.67 2.772-1.646 0-2.66-1.21-2.66-2.772 0-1.562 1.034-2.788 2.66-2.788 1.625 0 2.67 1.227 2.67 2.788Zm2.064-3.447c.042.436.055 1.31.055 1.677v5.23h.775v-3.51c0-1.833 1.03-2.749 2.17-2.749 1.45 0 1.867 1.072 1.867 2.368v3.892h.76v-4.17c0-1.55-.733-2.734-2.453-2.734-.985 0-1.972.578-2.356 1.48h-.028c0-.352-.028-1.109-.057-1.48l-.733-.004ZM0 14.48h1.472a4.99 4.99 0 0 0 0-9.98H0v9.98ZM14.196 4.5h-1.473a4.99 4.99 0 1 0 0 9.98h1.473V4.5Zm11.615 4.99a4.99 4.99 0 0 1-4.99 4.99h-3.603V4.5h3.603a4.99 4.99 0 0 1 4.99 4.99Zm-1.512 0a3.483 3.483 0 0 0-3.478-3.476H18.73v6.952h2.091A3.483 3.483 0 0 0 24.3 9.49Zm9.195 1.524a3.458 3.458 0 1 1-3.457-3.456 3.465 3.465 0 0 1 3.457 3.463v-.007Zm-1.372 0a2.08 2.08 0 1 0-2.08 2.08 2.094 2.094 0 0 0 2.08-2.08Zm2.356 3.466h1.512V4.5h-1.516l.004 9.98Zm9.734-3.466a3.454 3.454 0 0 1-5.434 2.835v.625h-1.52V4.5h1.515v3.695a3.457 3.457 0 0 1 5.442 2.835l-.003-.015Zm-1.383 0a2.08 2.08 0 1 0-4.05.657 2.08 2.08 0 0 0 4.05-.656Zm6.916-3.434-1.97 4.435-1.971-4.435h-1.647l2.797 6.29-.686 1.544a.808.808 0 0 1-1.066.416l-.216-.103-.611 1.37.533.235a1.961 1.961 0 0 0 2.584-.994l3.918-8.755-1.664-.003Z"></path></svg>'},24701:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 58 20"><path fill-rule="evenodd" d="M.222 15.539h1.655c3.097 0 5.607-2.484 5.607-5.547 0-3.064-2.51-5.547-5.607-5.547H.222v11.094ZM16.177 4.445h-1.654c-3.098 0-5.608 2.483-5.608 5.547 0 3.063 2.51 5.547 5.608 5.547h1.654V4.445Zm7.448 0h-4.05v11.094h4.05c3.097 0 5.608-2.484 5.608-5.547 0-3.064-2.511-5.547-5.608-5.547Zm0 9.411h-2.351v-7.73h2.35c2.128.042 3.83 1.76 3.83 3.865 0 2.105-1.702 3.823-3.83 3.865Zm6.469-2.15c0-2.124 1.74-3.845 3.887-3.845 2.144.004 3.882 1.723 3.886 3.844 0 2.123-1.74 3.845-3.886 3.845-2.147 0-3.887-1.722-3.887-3.845Zm1.55-.009c0 1.277 1.046 2.312 2.337 2.312 1.288-.005 2.332-1.037 2.336-2.312 0-1.276-1.046-2.31-2.336-2.31-1.29 0-2.337 1.034-2.337 2.31Zm9.023-7.251h-1.7v11.105h1.7V4.446Zm3.13 4.108a3.898 3.898 0 0 1 2.224-.692 3.882 3.882 0 0 1 3.689 2.631 3.82 3.82 0 0 1-1.363 4.292 3.92 3.92 0 0 1-4.548.071v.695h-1.702V4.445h1.7v4.11Zm-.113 3.144c.004 1.274 1.048 2.307 2.337 2.31 1.193 0 2.195-.89 2.322-2.063a2.314 2.314 0 0 0-1.825-2.506 2.34 2.34 0 0 0-2.714 1.527 2.33 2.33 0 0 0-.12.732Zm10.238 1.097 2.215-4.931H58l-1.283 2.835c-1.306 2.886-3.12 6.892-3.12 6.899a2.214 2.214 0 0 1-2.903 1.104l-.594-.26.21-.462.476-1.056.245.108c.22.096.47.1.694.014a.904.904 0 0 0 .502-.476v-.013l.68-1.52.024-.048.062-.136-3.143-6.99h1.858l2.214 4.932Z" clip-rule="evenodd"></path></svg>'},63199:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 14 13"><path fill="#fff" d="M6.328 7.14V1.1c0-.366.3-.663.672-.663.371 0 .672.297.672.664V7.15l1.066-1.051a.679.679 0 0 1 .95 0 .657.657 0 0 1 0 .938L7.481 9.214a.679.679 0 0 1-.95 0L4.322 7.037a.657.657 0 0 1 0-.938.679.679 0 0 1 .95 0l1.055 1.04Z"></path><path fill="#fff" d="M3.045 3.324c-.939 0-1.7.752-1.7 1.678v4.682a1.69 1.69 0 0 0 1.7 1.677h7.91c.939 0 1.7-.751 1.7-1.677V5.002a1.69 1.69 0 0 0-1.7-1.678h-.791a.668.668 0 0 1-.672-.663c0-.366.3-.663.672-.663h.79C12.638 1.998 14 3.343 14 5.002v4.682c0 1.659-1.363 3.004-3.045 3.004h-7.91C1.363 12.688 0 11.342 0 9.684V5.002c0-1.66 1.363-3.004 3.045-3.004h.791c.371 0 .672.297.672.663a.668.668 0 0 1-.672.663h-.79Z"></path></svg>'},87857:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M13.748 5.498a1.748 1.748 0 1 1-3.496 0 1.748 1.748 0 0 1 3.496 0Zm0 13a1.748 1.748 0 1 1-3.497 0 1.748 1.748 0 0 1 3.497 0ZM12 13.748a1.749 1.749 0 1 0 0-3.496 1.749 1.749 0 0 0 0 3.497Z" clip-rule="evenodd"></path></svg>'},75740:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 4 14"><path fill-rule="evenodd" d="M.5 2C.5 1.15 1.15.5 2 .5s1.5.65 1.5 1.5S2.85 3.5 2 3.5.5 2.85.5 2Zm0 5c0-.85.65-1.5 1.5-1.5s1.5.65 1.5 1.5S2.85 8.5 2 8.5.5 7.85.5 7Zm0 5c0-.85.65-1.5 1.5-1.5s1.5.65 1.5 1.5-.65 1.5-1.5 1.5S.5 12.85.5 12Z"></path></svg>'},20939:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 6 4" viewBox="0 0 6 4"><path d="m3 4 3-4H0z"></path></svg>'},76388:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 6 4" viewBox="0 0 6 4"><path d="m3 0 3 4H0z"></path></svg>'},44006:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 13"><path fill="#fff" fill-rule="evenodd" d="M5.999 2a.6.6 0 0 1 .6.6v3.3H9.9a.6.6 0 1 1 0 1.2H6.599v3.3a.6.6 0 1 1-1.2 0V7.1H2.1a.6.6 0 1 1 0-1.2h3.299V2.6a.6.6 0 0 1 .6-.6Z" clip-rule="evenodd"></path></svg>'},44446:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 23 23"><g clip-path="url(#__vTMLpxB__a)"><path fill="#fff" fill-rule="evenodd" d="M6.04 21V8.075H4.535a2.491 2.491 0 0 0-2.495 2.488v7.95A2.49 2.49 0 0 0 4.535 21H6.04Zm1.5 0V8.047c2.029-.73 3.182-2.583 3.46-5.66.109-1.205 1.257-1.706 2.35-1.178 1.085.524 1.801 1.847 1.801 3.615 0 1.057-.132 2.14-.396 3.251h4.785a2.5 2.5 0 0 1 2.427 3.098l-1.578 6.404A4.5 4.5 0 0 1 16.02 21H7.54Z" clip-rule="evenodd"></path></g><defs><clipPath id="__vTMLpxB__a"><path fill="#fff" d="M.54.5h22v22h-22z"></path></clipPath></defs></svg>'},97203:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="m9.188 7.999-3.359 3.359a.75.75 0 1 0 1.061 1.061l3.889-3.889a.75.75 0 0 0 0-1.061L6.89 3.58a.75.75 0 1 0-1.061 1.061l3.359 3.358z"></path></svg>'},31928:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 12 13"><rect width="2" height="6" x="1" y="3.5" rx="1"></rect><rect width="2" height="4" x="9" y="4.5" rx="1"></rect><rect width="2" height="10" x="5" y="1.5" rx="1"></rect></svg>'},72083:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#61666D" d="M6 1.875a4.125 4.125 0 1 0 0 8.25 4.125 4.125 0 0 0 0-8.25ZM.875 6a5.125 5.125 0 1 1 10.25 0A5.125 5.125 0 0 1 .875 6Z"></path><path fill="#61666D" d="M6 3.5a.5.5 0 0 1 .5.5v2.25a.5.5 0 1 1-1 0V4a.5.5 0 0 1 .5-.5ZM6 7.25a.5.5 0 0 1 .5.5v.125a.5.5 0 1 1-1 0V7.75a.5.5 0 0 1 .5-.5Z"></path></svg>'},54888:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 22 22"><defs><filter id="__j9H-pv6__a" width="162.5%" height="162.5%" x="-31.2%" y="-25%" filterUnits="objectBoundingBox"><feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1.5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24 0"></feColorMatrix></filter><path id="__j9H-pv6__b" d="m6 16-3 3V5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6Zm4-4v2h2v-2h-2Zm2-.998c0-.34.149-.523.636-.925.022-.018.296-.24.379-.31a5.81 5.81 0 0 0 .173-.152C13.705 9.145 14 8.656 14 8a3 3 0 0 0-5.698-1.314c-.082.17-.153.41-.213.72A.5.5 0 0 0 8.581 8h1.023a.5.5 0 0 0 .476-.348.851.851 0 0 1 .114-.244A.999.999 0 0 1 12 8c0 1.237-2 1.16-2 3h2Z"></path></defs><g fill-rule="evenodd"><use xlink:href="#__j9H-pv6__b" filter="url(#__j9H-pv6__a)"></use><use xlink:href="#__j9H-pv6__b"></use></g></svg>'},90110:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 99 23"><g opacity=".9"><path d="m20.308 11.099-.143-.029c-.031.105-.075.208-.092.316-.205 1.333-.448 2.655-.982 3.904-.274.641-.582 1.261-1.164 1.689-.589.433-1.168.395-1.63-.168a4.466 4.466 0 0 1-.698-1.141c-.418-1.047-.771-2.12-1.165-3.177-.505-1.357-.985-2.724-1.55-4.056-.347-.817-.865-1.542-1.66-2.02-.535-.32-1.526-.354-2.008.099.169.08.327.224.463.206.614-.083 1.023.224 1.31.692.3.489.58 1.003.777 1.541.566 1.553 1.072 3.129 1.628 4.686.42 1.173.877 2.338 1.717 3.29.565.638 1.247 1.008 2.143.828.804-.16 1.291-.703 1.655-1.375.75-1.386 1.025-2.917 1.285-4.448.047-.278.076-.558.114-.837Zm-7.522 6.351c-.23-.08-.406-.202-.573-.189-.475.036-.855-.137-1.088-.516-.348-.564-.7-1.142-.929-1.76-.571-1.538-1.063-3.106-1.608-4.654-.393-1.116-.847-2.208-1.603-3.138-.404-.498-.882-.897-1.55-.987-1.053-.143-1.776.352-2.278 1.226-.934 1.628-1.196 3.448-1.464 5.265-.008.056.042.122.1.277.057-.174.09-.25.105-.33.182-.89.326-1.792.55-2.67.252-.985.59-1.949 1.304-2.713.729-.78 1.525-.749 2.104.14a9.26 9.26 0 0 1 .914 1.856c.613 1.672 1.147 3.373 1.76 5.044.402 1.1.913 2.154 1.811 2.957.702.627 1.718.737 2.444.19v.002Zm2.565.032c-.196-.098-.346-.24-.475-.223-.723.095-1.183-.306-1.438-.873-.535-1.19-.997-2.412-1.47-3.628-.57-1.469-1.092-2.958-1.691-4.414a4.131 4.131 0 0 0-1.408-1.8c-.67-.48-1.65-.506-2.207-.034.152.082.302.237.423.217.689-.114 1.116.257 1.41.783.337.602.646 1.227.882 1.875.594 1.625 1.117 3.276 1.71 4.9.375 1.028.847 2.015 1.628 2.813.736.752 1.749.925 2.636.384ZM5.738 7.61c-.744.963-1.687 4.85-1.36 5.331.042-.177.088-.317.108-.46.221-1.551.554-3.07 1.27-4.48.052-.101-.01-.26-.018-.391Zm10.5 8.75c.732-.912 1.69-4.812 1.342-5.337-.044.25-.082.442-.112.636-.227 1.472-.538 2.918-1.222 4.258-.06.118-.008.295-.008.444Zm-9.145-5.247c-.097.591-.316 1.166-.207 1.782.123-.587.391-1.156.207-1.782Zm8.118-.003-.196-.034c-.071.585-.289 1.153-.19 1.758l.101.013.285-1.737Z"></path><path d="M20.308 11.099c-.037.279-.066.56-.113.837-.26 1.532-.535 3.062-1.285 4.448-.364.672-.851 1.213-1.655 1.375-.896.18-1.58-.19-2.143-.829-.84-.95-1.297-2.116-1.717-3.289-.556-1.557-1.062-3.132-1.629-4.686-.196-.538-.477-1.051-.777-1.541-.286-.468-.695-.775-1.31-.692-.136.018-.293-.127-.462-.206.483-.454 1.473-.42 2.008-.098.795.477 1.313 1.203 1.66 2.02.565 1.33 1.045 2.7 1.55 4.055.394 1.057.747 2.13 1.165 3.177.164.41.418.798.699 1.14.461.564 1.04.602 1.629.169.582-.427.89-1.048 1.164-1.689.534-1.248.777-2.571.982-3.904.017-.108.06-.211.092-.316l.142.029ZM12.786 17.45c-.726.546-1.742.437-2.444-.19-.899-.803-1.409-1.858-1.812-2.957-.612-1.672-1.147-3.373-1.76-5.045a9.28 9.28 0 0 0-.913-1.855c-.579-.89-1.375-.92-2.104-.14-.714.764-1.051 1.728-1.304 2.712-.225.88-.369 1.78-.55 2.671-.016.08-.05.156-.105.33-.058-.156-.109-.221-.1-.278.267-1.818.529-3.638 1.463-5.266.503-.873 1.225-1.369 2.279-1.226.667.09 1.144.489 1.548.986.756.93 1.21 2.023 1.603 3.138.545 1.549 1.037 3.116 1.608 4.654.23.617.581 1.196.929 1.76.233.38.613.553 1.088.516.167-.013.343.11.573.19Z"></path><path d="M15.352 17.482c-.888.541-1.9.368-2.637-.384-.78-.798-1.253-1.784-1.627-2.812-.593-1.625-1.117-3.276-1.71-4.901a12.97 12.97 0 0 0-.883-1.875c-.294-.526-.72-.896-1.41-.783-.121.02-.27-.135-.423-.217.557-.473 1.538-.447 2.207.035a4.126 4.126 0 0 1 1.408 1.8c.6 1.455 1.121 2.944 1.692 4.413.472 1.216.934 2.438 1.47 3.628.255.567.714.968 1.438.873.128-.017.278.126.475.223ZM5.738 7.61c.01.132.07.29.018.39-.716 1.412-1.049 2.93-1.27 4.481-.02.143-.066.283-.108.46-.327-.482.616-4.368 1.36-5.331ZM16.238 16.361c0-.15-.052-.326.008-.444.685-1.34.996-2.786 1.222-4.258.03-.194.068-.386.112-.636.348.525-.61 4.426-1.342 5.338ZM7.093 11.113c.184.626-.084 1.195-.207 1.782-.109-.616.11-1.192.207-1.782ZM15.212 11.11l-.285 1.737-.101-.013c-.098-.606.118-1.174.19-1.76l.197.036h-.001ZM31.27 17.987V7.022h-2.14v4.482H25.42V7.022h-2.14v10.965h2.14v-4.59h3.711v4.59h2.14Zm4.414-9.394V6.96h-2.048v1.632h2.048Zm-.015 9.394V9.964h-2.002v8.023h2.002Zm6.766-3.465v-1.864h-4.743v1.864h4.743Zm10.484 3.465-2.448-4.728c1.062-.385 2.002-1.34 2.002-2.88 0-1.832-1.325-3.357-3.558-3.357H44.62v10.965h2.14v-4.374h1.54l2.14 4.374h2.48Zm-2.587-7.608c0 .847-.616 1.448-1.555 1.448h-2.018V8.932h2.018c.939 0 1.555.6 1.555 1.447Zm10.8 4.22v-.893c0-2.202-1.263-3.835-3.496-3.835-2.079 0-3.496 1.479-3.496 4.096 0 3.25 1.818 4.112 3.712 4.112 1.447 0 2.233-.446 3.049-1.262l-1.217-1.186c-.508.508-.939.754-1.817.754-1.124 0-1.755-.754-1.755-1.786h5.02Zm-1.971-1.37h-3.05c.016-.355.062-.57.185-.863.216-.477.663-.832 1.34-.832.678 0 1.124.354 1.34.832.123.293.17.508.185.862Zm9.853 2.232c0-1.355-.8-2.202-2.386-2.356l-1.263-.123c-.709-.062-.832-.4-.832-.693 0-.4.339-.77 1.14-.77.693 0 1.401.123 1.863.539l1.232-1.248c-.77-.723-1.817-.939-3.064-.939-1.633 0-3.096.893-3.096 2.556 0 1.479.893 2.11 2.34 2.249l1.264.123c.631.062.847.339.847.74 0 .6-.724.83-1.417.83-.616 0-1.478-.091-2.14-.754l-1.31 1.31c1.017 1.016 2.156 1.154 3.42 1.154 1.893 0 3.403-.847 3.403-2.618ZM71.827 5.677v1.479h4.002v.84a25.297 25.297 0 0 1-.174 2.19h-4.756v1.465h4.495c-.189.754-.42 1.45-.71 2.088-.697 1.363-2.03 2.508-4.031 3.422l.855 1.348c2.001-.84 3.451-2.059 4.35-3.654.478-.899.841-1.972 1.102-3.204h.783v4.8c0 1.203.566 1.812 1.697 1.812h2.305c.609 0 1.073-.145 1.363-.42.319-.29.551-1.219.681-2.785l-1.42-.478c-.058 1.102-.16 1.754-.32 1.957a.676.676 0 0 1-.594.32h-1.552c-.434 0-.652-.247-.652-.711V11.65h4.335v-1.465h-6.38c.087-.681.131-1.406.16-2.19v-.84h5.075v-1.48H71.827Zm25.999 4.147H90.43v5.756h1.478v-4.422h4.438v4.408h1.479V9.824Zm-6.931-4.292v3.64h6.51v-3.64h-6.51Zm5.031 2.392h-3.552V6.808h3.552v1.116Zm-2.61 3.857v1.48c-.058 1.014-.334 1.855-.826 2.508-.522.609-1.494 1.102-2.944 1.508l.812 1.276c1.522-.435 2.624-1.044 3.32-1.827.697-.87 1.073-2.03 1.146-3.466v-1.479h-1.508Zm-6.337 6.554c1.001 0 1.508-.507 1.508-1.493v-3.973c.494-.218.972-.45 1.45-.696v-1.537c-.478.26-.956.493-1.45.725V9.04h1.567V7.576h-1.567v-2.48h-1.493v2.48H85.21v1.465h1.784v2.914c-.696.232-1.392.435-2.088.595l.391 1.537c.566-.189 1.132-.392 1.697-.595v2.958c0 .348-.189.537-.537.537-.376 0-.768-.03-1.174-.087l.334 1.435h1.362Zm8.164-2.972-.74 1.116c1.088.522 2.146 1.233 3.19 2.132l.856-1.305c-1-.754-2.102-1.407-3.306-1.943Z"></path></g></svg>'},88961:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M18 4H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zM8 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V14H4.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3zm0-6a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H6V6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v3zm10 4a.5.5 0 0 1-.5.5H16v1.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v1zm0-4a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V8h1.5a.5.5 0 0 1 .5.5v1z"></path></svg>'},23219:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M18 4H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zM8 15.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5V14h1.5a.5.5 0 0 1 .5.5v1zm0-8a.5.5 0 0 1-.5.5H6v1.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v1zm10 8a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H16v-1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v3zm0-6a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V8h-1.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3z"></path></svg>'},81958:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="__adXki13__图层_1" x="0" y="0" data-pointer="none" style="enable-background:new 0 0 22 22" version="1.1" viewBox="0 0 22 22"><style>.__adXki13__st0{fill:#fff}</style><path d="M20 11h-6c0-1.2-.7-2.2-1.7-2.7L15 2.9c3 1.5 5 4.6 5 8.1zM15.8 18.6c-1.4.9-3 1.4-4.8 1.4s-3.4-.5-4.8-1.4l2.7-5.4c.6.5 1.3.8 2.1.8s1.5-.3 2.1-.8l2.7 5.4zM11 8V2v6zM7 2.9l2.7 5.4C8.7 8.8 8 9.8 8 11H2c0-3.5 2-6.6 5-8.1z" class="__adXki13__st0 "></path><circle cx="11" cy="11" r="1" class="__adXki13__st0 "></circle></svg>'},91202:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M11.5 3a1 1 0 1 0-2 0v6.5H3a1 1 0 0 0 0 2h6.5a2 2 0 0 0 2-2V3Zm3 9.5a2 2 0 0 0-2 2V21a1 1 0 0 0 2 0v-6.5H21a1 1 0 1 0 0-2h-6.5Z" clip-rule="evenodd"></path></svg>'},21689:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M6 4a2 2 0 0 0-2 2v6.5a1 1 0 0 0 2 0V6h6.5a1 1 0 1 0 0-2H6Zm14 7.5a1 1 0 1 0-2 0V18h-6.5a1 1 0 1 0 0 2H18a2 2 0 0 0 2-2v-6.5Z" clip-rule="evenodd"></path></svg>'},54372:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M9 3a1 1 0 0 0-1 1v4H4a1 1 0 0 0 0 2h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM18 12h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0v-4h4a1 1 0 0 0 0-2z"></path></svg>'},38351:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M9 3H4a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0V5h4a1 1 0 0 0 0-2zM18 12a1 1 0 0 0-1 1v4h-4a1 1 0 0 0 0 2h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"></path></svg>'},31748:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="__3fz9cEV__图层_1" x="0" y="0" data-pointer="none" style="enable-background:new 0 0 121 31" version="1.1" viewBox="0 0 121 31"><style>.__3fz9cEV__st0,.__3fz9cEV__st1{fill:#f0f0f0;fill-opacity:.7}.__3fz9cEV__st1{fill-rule:evenodd;clip-rule:evenodd}</style><path d="M87.2 8.5V7c0-.1 0-.1-.1-.2 0 0-.1-.1-.2-.1h-2.2l-.9-2.1c0-.1-.1-.2-.2-.2-.1-.1-.2-.1-.3-.1H80.5s-.1 0-.1.1v.2l.9 2.1h-2.2s-.1 0-.1.1l-.1.1v1.6s0 .1.1.1l.1.1h.9l-.9 21.2v.1s0 .1.1.1l.1.1H82c.1 0 .2 0 .3-.1.1-.1.1-.2.1-.3l.7-16.8h.5c.1 0 .2.1.3.1s.1.2.1.3v14.3c0 .1-.1.2-.1.3-.1.1-.2.1-.3.1h-.4s-.1 0-.1.1v.2l.5 1.3c0 .1.1.2.2.2.1.1.2.1.3.1h2.2c.1 0 .3 0 .4-.1.1 0 .2-.1.3-.2.1-.1.2-.2.2-.3 0-.1.1-.2.1-.4V12c0-.3-.1-.5-.3-.7-.2-.2-.4-.3-.7-.3h-3.1l.1-2.4H87c.1 0 .1 0 .2-.1 0 .1 0 0 0 0zM95.1 11.5v-1.3c0-.1-.1-.1-.1-.2 0 0-.1-.1-.2-.1h-6.4c-.1 0-.1 0-.2.1 0 0-.1.1-.1.2v1.4c0 .1 0 .1.1.2 0 0 .1.1.2.1h3s.1 0 .1.1v.2l-1.3 4.2H88c-.1 0-.1 0-.2.1 0 0-.1.1-.1.2V18c0 .1 0 .1.1.2 0 0 .1.1.2.1h2.5v9.5c0 .1-.1.2-.1.3-.1.1-.2.1-.3.1H89.3s-.1 0-.1.1v.2l.6 1.3c0 .1.1.2.2.2.1.1.2.1.3.1h2.8c.1 0 .3 0 .4-.1.1 0 .2-.1.3-.2.1-.1.2-.2.2-.3 0-.1.1-.2.1-.4V18.2h1.5s.1 0 .1-.1l.1-.1v-1.6s0-.1-.1-.1l-.1-.1H94l1.3-4.3c-.3 0-.2-.2-.2-.4zM78.1 11.3l-.2-6c0-.1-.1-.2-.1-.3-.1-.1-.2-.1-.3-.1h-3s-.1 0-.1.1c0 0 0 .1-.1.1v.1l.2 6c0 .1.1.2.1.3.1.1.2.1.3.1h3s.1 0 .1-.1c.1 0 .1-.1.1-.2 0 .1 0 0 0 0zM78 21.1h-2.9c-.1 0-.2.1-.3.1-.1.1-.1.2-.1.3l-.3 8.3v.1s0 .1.1.1l.1.1h3c.1 0 .2 0 .3-.1.1-.1.1-.2.1-.3l.3-8.3v-.1s0-.1-.1-.1c0-.1-.1-.1-.2-.1.1 0 0 0 0 0zM78.1 19.4l-.2-6c0-.1-.1-.2-.1-.3-.1-.1-.3-.1-.4-.1h-3s-.1 0-.1.1c0 0 0 .1-.1.1v.1l.2 6c0 .1.1.2.1.3.1.1.2.1.3.1h3s.1 0 .1-.1c.2 0 .2-.1.2-.2 0 .1 0 0 0 0zM90.6 4.4h-1.9c-.1 0-.2 0-.3.1-.1.1-.1.2-.2.3l-.4 3.6v.2c0 .1.1.1.1.2s.1.1.2.1h2.1c.1 0 .2 0 .3-.1.1-.1.1-.2.2-.3V8h4.6s.1 0 .1-.1l.1-.1V6.2s0-.1-.1-.1l-.1-.1H90.9l.2-1v-.2c0-.1-.1-.1-.1-.2s-.1-.1-.2-.1c-.1-.1-.2-.1-.2-.1zM117.5 21.1l2.5-3c.1-.1.1-.2.1-.3v-2.6l-.1-.1h-.1s-.1 0-.1.1l-2.6 3.1-1-5.8 3.6-.4c.1 0 .2-.1.3-.2.1-.1.1-.2.1-.3v-1.3s0-.1-.1-.1h-.2l-4.1.5-1-5.9c0-.1-.1-.2-.2-.3-.1-.1-.2-.1-.3-.1h-3.7s-.1 0-.1.1v.2l1.1 6.5-2.1.2c-.1 0-.2.1-.3.2-.1.1-.1.2-.1.3v1.3s0 .1.1.1h.2l2.5-.3 1.6 9.6-3.4 4.1s-.1.1-.1.2v1.9c0 .1 0 .2.1.3l.2.2h.3c.1 0 .2-.1.2-.2l3.1-3.7.7 3.9c0 .2.2.4.3.6.2.1.4.2.6.2h3.9c.1 0 .2 0 .3-.1l.2-.2.5-1.3v-.2l-.1-.1H119.1c-.1 0-.2 0-.3-.1-.1-.1-.1-.2-.2-.3l-1.1-6.7zM105.1 17l-1 2.3-1-2.3c-.1-.1-.1-.2-.1-.4V9.3s0-.1-.1-.1l-.1-.1h-2.7c-.1 0-.1 0-.2.1 0 0-.1.1-.1.2v7c0 .3.1.5.2.7l2.5 5.8-2.9 6.8v.2l.1.1h2.5c.1 0 .2 0 .3-.1l.2-.2 1.4-3.2 1.4 3.2c0 .1.1.2.2.2.1.1.2.1.3.1h2.5s.1 0 .1-.1v-.2l-2.9-6.8 2.5-5.8c.1-.2.2-.5.2-.7V7c0-.3-.1-.5-.3-.7-.2-.2-.4-.3-.7-.3h-7.7c-.1 0-.1 0-.2.1 0 0-.1.1-.1.2v1.4c0 .1 0 .1.1.2 0 0 .1.1.2.1h5.2c.1 0 .1.1.2.1 0 0 .1.1.1.2V16.6c0 .1 0 .3-.1.4z" class="__3fz9cEV__st0 "></path><path d="M118.7 5.4H115.9s-.1 0-.1.1v.2l1.2 2.7c0 .1.1.2.2.2.1.1.2.1.3.1H120.3s.1 0 .1-.1v-.2l-1.2-2.7c0-.1-.1-.2-.2-.2-.1-.1-.2-.1-.3-.1zM23.2 4.5l3-.4h.2v.1l1.9 22.6v.2H25.8l-.1-.1L23 4.6v-.2c.1.1.1.1.2.1-.1 0-.1 0 0 0z" class="__3fz9cEV__st0 "></path><path d="m19.1 16.4 3.4-.4h.2v.2L24.1 28v.1l-.1.1-2.5.3h-.1l-.1-.1-2.4-11.7v-.2c.1 0 .1-.1.2-.1-.1 0-.1 0 0 0zM29.5 16.2H33v12.2h-2.6s0-.1-.1-.1l-.9-11.9v-.2c0 .1 0 .1.1 0zM18 10.4l1.4-.2h.1l.1.1.6 4.3v.2h-.1l-1.1.1h-.1l-.1-.1-.9-4.3v-.2c0 .1 0 .1.1.1-.1 0 0 0 0 0zM20.2 10.3l.5 4.3v.1h.2l1.3-.2s.1 0 .1-.1v-.1l-.5-4.3v-.1h-.2l-1.3.2h-.2c.2.1.1.1.1.2 0-.1 0 0 0 0zM28.9 10.3l.3 4.3v.1H30.6v-.1l-.1-4.3v-.1H28.8c.1 0 .1 0 .1.1zM31.2 10.3l.1 4.3v.1H32.7V10.2h-1.6c.1 0 .1.1.1.1zM37.5 29.8s0 .1.1.1l.1.1c4.3.5 8.7-.4 12.4-2.7 1.9-1.2 4.6-4 .8-6.2-4-2.3-7.6-2.5-10.7-2.2h-.1l-.1-.1c-.7-5.8-1-11.7-.7-17.5v-.2h-.2l-5 1.8s-.1 0-.1.1v.1c1.6 8.8 2.8 17.7 3.5 26.7zm9.8-5.8c-1.3 1.2-2.8 2.2-4.4 3H42.6c-.1 0 0 0 0-.1-.1-.4-.4-2.9-.6-4.8v-.2h.2c1.7.3 3.4.9 5 1.7.2.2.2.3.1.4zM4 29.8s0 .1.1.1l.1.1c4.3.5 8.7-.4 12.4-2.7 1.9-1.2 4.6-4 .8-6.2-4-2.3-7.6-2.5-10.7-2.2h-.1l-.1-.1c-.8-5.9-1-11.8-.7-17.6V1c0-.1 0 0-.1 0h-.1l-5 1.8s-.1 0-.1.1V3C2.1 11.9 3.3 20.8 4 29.8zm9.8-5.8c-1.3 1.2-2.8 2.2-4.4 3H9.1v-.1c-.1-.4-.4-2.9-.6-4.8v-.2h.2c1.7.3 3.4.9 5 1.7.2.2.2.3.1.4z" class="__3fz9cEV__st1 "></path><path d="m56.7 4.5 3-.4h.2v.1l1.9 22.6v.2H59.3l-.1-.1-2.6-22.3v-.1h.1z" class="__3fz9cEV__st0 "></path><path d="M52.6 16.4 56 16h.2v.2L57.6 28v.1l-.1.1-2.5.3h-.1l-.1-.1-2.4-11.7v-.2c.1 0 .1-.1.2-.1zM63 16.2h3.4v12.1h-2.5s0-.1-.1-.1l-.9-11.9v-.2c0 .2.1.2.1.1zM51.5 10.4l1.4-.2h.1l.1.1.6 4.3v.2h-.1l-1.1.1h-.1l-.1-.1-.9-4.2v-.2c0-.1.1 0 .1 0zM53.8 10.3l.5 4.3s0 .1.1.1h.1l1.3-.2s.1 0 .1-.1v-.1l-.5-4.3v-.1h-.2l-1.3.2s-.1 0-.1.1v.1zM62.4 10.3l.3 4.3v.1H64.1v-.1l-.1-4.3v-.1h-1.6c-.1 0 0 0 0 0v.1zM64.7 10.3l.1 4.3v.1H66.2V10.2H64.6c.1 0 .1 0 .1.1z" class="__3fz9cEV__st1 "></path></svg>'},58110:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 28 28"><path fill="none" fill-rule="evenodd" stroke="#6D757A" stroke-width="2" d="M19.423 9.56c-1.37-.213-2.602-1.159-3.106-2.38l-1.82-3.832c-.205-.472-.836-.472-1.079.016l-1.743 3.83c-.623 1.258-1.769 2.16-3.098 2.366l-4.113.637c-.44.056-.633.64-.27 1.005l3.054 3.158c.93.937 1.348 2.283 1.142 3.633l-.71 4.448c-.087.5.433.86.89.614L12 21.17a4.017 4.017 0 0 1 4.053-.014l3.447 1.896a.604.604 0 0 0 .899-.608l-.79-4.456c-.206-1.342.212-2.689 1.134-3.618l3.072-3.176c.354-.357.16-.94-.307-1l-4.085-.633Z"></path></svg>'},12227:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 44 20"><path d="m41.778 8.654-.464 2.836c-.494 2.98-2.11 4.01-3.697 4.01-1.872 0-2.86-1.517-2.86-3.251 0-.217.03-.633.075-.903l.464-2.836c.494-2.998 2.111-4.01 3.698-4.01 1.871 0 2.86 1.517 2.86 3.251 0 .217-.03.632-.076.903ZM38.77 7.047c-.449 0-.943.217-1.137 1.373l-.494 3.034c-.03.162-.06.397-.06.56 0 .722.404.94.763.94.45 0 .943-.218 1.138-1.374l.494-3.034c.03-.163.06-.397.06-.56 0-.722-.404-.94-.764-.94Z" clip-rule="evenodd"></path><path d="M31.885 15.392H29.76a.101.101 0 0 1-.103-.116L30.85 8.08c.015-.092-.099-.153-.172-.09l-2.08 1.763c-.074.062-.188.002-.173-.09l.437-2.665a.71.71 0 0 1 .242-.427l2.115-1.792c.13-.11.294-.17.464-.17h1.95c.064 0 .113.054.103.115l-1.748 10.583a.103.103 0 0 1-.103.085ZM6.874 15.425H8.9c.05 0 .094-.035.102-.083l1.892-10.581a.101.101 0 0 0-.103-.117H8.766a.103.103 0 0 0-.103.083L7.95 8.77a.103.103 0 0 1-.102.083H5.675a.101.101 0 0 1-.103-.116l.7-3.977a.101.101 0 0 0-.102-.116H4.207a.177.177 0 0 0-.177.143L2.15 15.308c-.011.061.038.117.103.117h2.025c.05 0 .094-.035.103-.083l.751-4.18a.103.103 0 0 1 .103-.083h2.174c.064 0 .113.056.102.117l-.74 4.112c-.01.061.039.117.103.117Z"></path><path d="M17.099 14.32c.808-.909 1.01-1.59 1.482-4.286.243-1.423.31-1.892.31-2.332 0-1.968-1.145-3.058-2.91-3.058h-3.133a.103.103 0 0 0-.103.083l-1.89 10.581c-.012.061.037.117.102.117h3.407c1.172 0 2.088-.378 2.735-1.105Zm-2.405-7.466h.91c.538 0 1.024.273 1.024 1.09 0 .258-.068.849-.284 2.09-.336 1.969-.485 2.378-.768 2.696-.269.303-.62.484-1.118.484h-.86a.101.101 0 0 1-.103-.117l1.097-6.16a.103.103 0 0 1 .102-.083ZM26.413 15.298l-1.087-3.74a.712.712 0 0 1 .3-.793c1.11-.727 1.619-1.942 1.619-3.002 0-1.666-.742-3.12-2.75-3.12h-3.32a.103.103 0 0 0-.103.084L19.18 15.308c-.011.061.038.117.102.117h2.026c.05 0 .094-.035.103-.083l.71-3.923a.103.103 0 0 1 .103-.082h.68c.047 0 .09.031.1.077l.973 3.934a.103.103 0 0 0 .101.077h2.233c.07 0 .12-.063.1-.127ZM23.02 6.885h1.098c.553 0 .876.348.876 1.014 0 .44-.256 1.348-1.32 1.348h-1.049a.101.101 0 0 1-.102-.117l.395-2.163a.103.103 0 0 1 .102-.082Z" clip-rule="evenodd"></path></svg>'},3225:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="evenodd" d="M6.907.708a2 2 0 0 1 2.18.002l5.005 3.264A2 2 0 0 1 15 5.649v4.668a2 2 0 0 1-.901 1.671l-5.002 3.29a2 2 0 0 1-2.198-.001L1.9 11.988A2 2 0 0 1 1 10.318V5.624a2 2 0 0 1 .912-1.678ZM8 3.786a.37.37 0 0 0-.322.195l-.963 2.08c-.054.082-.134.166-.214.166l-2.223.333c-.107 0-.214.11-.268.222-.027.111 0 .25.08.333l1.633 1.69c.054.084.108.167.08.25l-.374 2.33c-.027.14.026.25.134.334a.367.367 0 0 0 .375.028l1.928-1.082c.053-.028.08-.028.134-.028.053 0 .107 0 .134.028l1.927 1.083a.367.367 0 0 0 .376-.028c.107-.083.16-.194.133-.333l-.375-2.33c0-.084.027-.195.08-.25l1.635-1.691a.374.374 0 0 0 .08-.333c-.027-.111-.134-.194-.268-.222l-2.223-.333c-.107-.028-.187-.084-.214-.167l-.964-2.08A.37.37 0 0 0 8 3.786Z"></path></svg>'},95881:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 10"><g fill="none" fill-rule="evenodd" stroke="#FFF" stroke-linecap="round" stroke-width="2"><path d="m1 5 4 4M13 1 5.25 8.918"></path></g></svg>'},45483:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M13.925 3.045a.798.798 0 0 0-.683.254c-.265.31-.372.564-.504.939l-.045.132c-.132.379-.3.864-.649 1.482-.598 1.06-1.156 1.7-1.843 2.302-.562.493-1.135.829-1.701.989v10.582c.787.017 1.629.027 2.5.027 2.247 0 4.153-.07 5.437-.137.91-.047 1.7-.497 2.113-1.23.577-1.028 1.29-2.535 1.721-4.31.402-1.654.586-3.013.668-3.973.038-.444-.313-.852-.859-.852h-4.982a.75.75 0 0 1-.694-1.034v-.003l.005-.01.016-.04.062-.162c.053-.14.126-.34.204-.572.158-.475.327-1.06.403-1.572.117-.782.088-1.411-.218-1.993-.33-.624-.704-.79-.95-.819Zm2.239 4.705h3.916c1.324 0 2.476 1.063 2.354 2.48a28.048 28.048 0 0 1-.705 4.2c-.473 1.946-1.25 3.583-1.872 4.69-.698 1.242-1.992 1.924-3.343 1.993-1.304.067-3.236.14-5.514.14-2.207 0-4.223-.068-5.652-.134-1.608-.073-2.957-1.267-3.13-2.904A38.236 38.236 0 0 1 2 14.252c0-1.369.087-2.61.19-3.595.179-1.722 1.656-2.907 3.318-2.907H7.75c.319 0 .814-.155 1.462-.724.563-.493 1.013-1.002 1.526-1.912.28-.495.408-.864.537-1.236l.048-.138c.156-.442.337-.9.78-1.416a2.297 2.297 0 0 1 1.996-.768c.826.096 1.588.63 2.103 1.609.521.987.514 1.988.376 2.913a10.946 10.946 0 0 1-.414 1.672ZM7 19.683V9.25H5.508c-.964 0-1.734.673-1.826 1.562a33.59 33.59 0 0 0-.182 3.44c0 1.428.1 2.766.21 3.806.091.863.803 1.522 1.706 1.563.47.021 1.002.043 1.584.063Z" clip-rule="evenodd"></path></svg>'},70612:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path d="M4.909 8.543v15.275h-1.78a2.944 2.944 0 0 1-2.947-2.94v-9.395c0-1.624 1.32-2.94 2.948-2.94h1.779Zm8.64-8.114c1.282.62 2.128 2.183 2.128 4.272 0 1.25-.156 2.53-.468 3.842h5.655a2.955 2.955 0 0 1 2.868 3.662l-1.865 7.568a5.318 5.318 0 0 1-5.163 4.045H6.682V8.508l.132-.047c2.316-.894 3.634-3.072 3.957-6.64C10.9.396 12.256-.196 13.548.428Z"></path></svg>'},82227:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M20.319 7.75h-4.543c.223-.484.457-1.093.545-1.683.064-.426.07-.948.019-1.445-.05-.485-.163-1.027-.387-1.452-.476-.901-1.13-1.534-1.917-1.688-.837-.163-1.558.263-1.99.916-.36.546-.501 1.001-.63 1.416l-.004.014c-.123.399-.244.791-.556 1.344-.513.909-.932 1.38-1.495 1.873-.29.255-.588.427-.861.538v13.642a108.372 108.372 0 0 0 8.127-.118c1.28-.067 2.504-.713 3.173-1.885.632-1.109 1.44-2.786 1.929-4.792.457-1.88.647-3.407.724-4.445.096-1.278-.943-2.235-2.134-2.235ZM7 21.184V7.75H5.302c-1.543 0-2.914 1.1-3.09 2.698A35.171 35.171 0 0 0 2 14.252c0 1.587.117 3.06.24 4.16.167 1.519 1.42 2.628 2.913 2.698.532.026 1.156.052 1.847.074Z" clip-rule="evenodd"></path></svg>'},46348:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 20 20"><path fill="#FFF" fill-rule="nonzero" d="M5.878 7.66V18H3.996A1.993 1.993 0 0 1 2 16.01V9.65c0-1.1.894-1.99 1.996-1.99h1.882Zm5.17-5.493c.868.42 1.44 1.478 1.44 2.892 0 .846-.105 1.713-.316 2.601H16a2 2 0 0 1 1.942 2.479L16.68 15.26A3.6 3.6 0 0 1 13.184 18H7.333l.001-10.853c1.047-.762 1.658-2.096 1.834-4.038.087-.964 1.005-1.364 1.88-.942Z"></path></svg>'},92095:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 16"><path fill="#fff" fill-opacity=".8" fill-rule="evenodd" d="M10.752 7.168a1 1 0 0 1 0 1.664l-9.197 6.131A1 1 0 0 1 0 14.133V1.869a1 1 0 0 1 1.555-.833l9.197 6.132Z" clip-rule="evenodd"></path></svg>'},14164:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M3.222 3.222a.999.999 0 1 0-1.414 1.414l11.435 11.435H6v-2h1.793a.5.5 0 0 0 .354-.853l-2.793-2.793a.5.5 0 0 0-.707 0l-2.793 2.793a.5.5 0 0 0 .354.854H4v2a2 2 0 0 0 2 2h9.243l2.121 2.121a.999.999 0 1 0 1.414-1.414L3.222 3.222zM19.793 8.071H18v-2a2 2 0 0 0-2-2H6.899l2 2H16v2h-1.793a.5.5 0 0 0-.354.853l2.793 2.793a.5.5 0 0 0 .707 0l2.793-2.793a.5.5 0 0 0-.353-.853z"></path></svg>'},73859:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M17 16H6v-2h1.793a.5.5 0 0 0 .354-.853l-2.793-2.793a.5.5 0 0 0-.707 0l-2.793 2.793a.5.5 0 0 0 .353.853H4v2a2 2 0 0 0 2 2h11a1 1 0 0 0 0-2zM19.793 8H18V6a2 2 0 0 0-2-2H5a1 1 0 0 0 0 2h11v2h-1.793a.5.5 0 0 0-.354.853l2.793 2.793a.5.5 0 0 0 .707 0l2.793-2.793A.5.5 0 0 0 19.793 8z"></path></svg>'},28892:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" d="M10 3.417a5.208 5.208 0 0 0-2.728 9.646.625.625 0 0 1-.655 1.064 6.458 6.458 0 1 1 9.842-5.502c0 .278-.026.551-.074.816a.623.623 0 1 1-1.24-.126c.042-.223.063-.454.063-.69A5.208 5.208 0 0 0 10 3.417Z"></path><path fill="#fff" d="M7.47 13.307a.625.625 0 0 1-.22.856c-1.828 1.082-2.387 2.653-2.485 2.977a.625.625 0 1 1-1.196-.363c.145-.48.843-2.386 3.045-3.69a.625.625 0 0 1 .856.22ZM12.1 14.563c-.691 0-1.25.56-1.25 1.25v2.708c0 .69.559 1.25 1.25 1.25h5.206c.69 0 1.25-.56 1.25-1.25v-2.709c0-.69-.56-1.25-1.25-1.25h-5.207Zm3.435 2.156a.83.83 0 0 1-.428.726v.65a.405.405 0 0 1-.81 0v-.65a.833.833 0 1 1 1.238-.726Z"></path><path fill="#fff" d="M17.24 13.922a2.537 2.537 0 0 0-5.075 0v1.37a.573.573 0 0 0 1.146 0v-1.37a1.391 1.391 0 0 1 2.783 0v1.37a.573.573 0 0 0 1.146 0v-1.37Z"></path></svg>'},78136:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" viewBox="0 0 16 16"><path d="m8.416 10.376 3.066-4.599A.5.5 0 0 0 11.066 5H4.934a.5.5 0 0 0-.416.777l3.066 4.599a.5.5 0 0 0 .832 0z"></path></svg>'},73476:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" class="__YvnbeMe__icon " data-pointer="none" viewBox="0 0 1024 1024"><path d="M768 320v128H576V256h128L512 64 320 256h128v192H256V320L64 512l64 64 128 128V576h192v192H320l192 192 64-64 128-128H576V576h192v128l192-192-192-192z"></path></svg>'},91081:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 13 14"><path fill="#fff" fill-rule="evenodd" d="M12.358.393a1.72 1.72 0 0 0-1.427-.359l-6.658 1.07A1.686 1.686 0 0 0 2.94 2.749v6.959a2.189 2.189 0 0 0-.734-.129C.987 9.58 0 10.57 0 11.79 0 13.012.987 14 2.205 14a2.207 2.207 0 0 0 2.203-2.195L4.41 3.98c0-.097.07-.183.14-.198l6.658-1.069a.26.26 0 0 1 .224.055c.037.03.1.098.1.21v4.888a2.189 2.189 0 0 0-.736-.128c-1.217 0-2.204.99-2.204 2.21s.987 2.21 2.204 2.21A2.207 2.207 0 0 0 13 9.963L13 1.745c0-.527-.234-1.02-.642-1.352Z" clip-rule="evenodd"></path></svg>'},88390:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 36 36"><g fill="none" fill-rule="evenodd"><circle cx="18" cy="18" r="14.5" fill="#000" fill-opacity=".8" stroke="#FFF" stroke-opacity=".8"></circle><path fill="#FFF" d="M18 26c-4.667-3.794-7-7.032-7-9.714C11 12.262 14.134 9 18 9s7 3.262 7 7.286c0 2.682-2.333 5.92-7 9.714Zm0-6a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"></path></g></svg>'},30116:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 36 36"><g fill="none" fill-rule="evenodd"><circle cx="18" cy="18" r="14.5" fill="#00A1D6" stroke="#FFF" stroke-opacity=".8"></circle><path fill="#FFF" d="M18 26c-4.667-3.794-7-7.032-7-9.714C11 12.262 14.134 9 18 9s7 3.262 7 7.286c0 2.682-2.333 5.92-7 9.714Zm0-6a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z"></path></g></svg>'},48685:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 14 14"><path fill="#FFF" fill-rule="evenodd" d="M1.734.297 7 5.564 12.266.297a1.016 1.016 0 0 1 1.34-.084l.097.084c.396.397.396 1.04 0 1.437L8.436 7l5.267 5.266a1.016 1.016 0 0 1-1.437 1.437L7 8.436l-5.266 5.267a1.016 1.016 0 0 1-1.34.084l-.097-.084a1.016 1.016 0 0 1 0-1.437L5.564 7 .297 1.734A1.016 1.016 0 0 1 1.734.297Z"></path></svg>'},47500:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m15.645 4.881 1.06-1.473a.998.998 0 1 0-1.622-1.166L13.22 4.835a110.67 110.67 0 0 0-1.1-.007h-.131c-.47 0-.975.004-1.515.012L8.783 2.3A.998.998 0 0 0 7.12 3.408l.988 1.484c-.688.019-1.418.042-2.188.069a4.013 4.013 0 0 0-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 0 0 3.763 3.363c1.903.094 3.317.141 5.513.141a.988.988 0 0 0 0-1.975 97.58 97.58 0 0 1-5.416-.139 2.037 2.037 0 0 1-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 1 0 1.974-.069c-.004-.105-.007-.009-.011.09-.002.056-.004.112-.007.135l-.002.01a.574.574 0 0 1-.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 0 0 .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.863.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 0 1 1.087-.627l4.003-.009a1.26 1.26 0 0 1 1.094.63l1.721 2.982c.226.39.225.872-.001 1.263l-1.743 3a1.26 1.26 0 0 1-1.086.628l-4.003.009a1.26 1.26 0 0 1-1.094-.63l-1.722-2.982a1.26 1.26 0 0 1 .002-1.263l1.742-3Zm1.967.858a1.26 1.26 0 0 0-1.08.614l-.903 1.513a1.26 1.26 0 0 0-.002 1.289l.885 1.492c.227.384.64.62 1.086.618l2.192-.005a1.26 1.26 0 0 0 1.08-.615l.904-1.518a1.26 1.26 0 0 0 .001-1.288l-.884-1.489a1.26 1.26 0 0 0-1.086-.616l-2.193.005Zm2.517 2.76a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0Z" clip-rule="evenodd"></path></svg>'},80314:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 80 80"><defs><path id="__2r0hFjG__a" d="M0 0h80v80H0z"></path><path id="__2r0hFjG__d" d="M52.546 8.014a3.998 3.998 0 0 1 4.222 3.077c.104.446.093.808.039 1.138a2.74 2.74 0 0 1-.312.881c-.073.132-.16.254-.246.376l-.257.366-.521.73c-.7.969-1.415 1.926-2.154 2.866l-.015.02a240.945 240.945 0 0 1 5.986.341l1.643.123.822.066.41.034.206.018.103.008.115.012c1.266.116 2.516.45 3.677.975a11.663 11.663 0 0 1 3.166 2.114c.931.87 1.719 1.895 2.321 3.022a11.595 11.595 0 0 1 1.224 3.613c.03.157.046.316.068.474l.015.119.013.112.022.206.085.822.159 1.646c.1 1.098.19 2.198.27 3.298.315 4.4.463 8.829.36 13.255a166.489 166.489 0 0 1-.843 13.213c-.012.127-.034.297-.053.454a7.589 7.589 0 0 1-.072.475l-.04.237-.05.236a11.762 11.762 0 0 1-.74 2.287 11.755 11.755 0 0 1-5.118 5.57 11.705 11.705 0 0 1-3.623 1.263c-.158.024-.316.052-.475.072l-.477.053-.821.071-1.644.134c-1.096.086-2.192.16-3.288.23a260.08 260.08 0 0 1-6.578.325c-8.772.324-17.546.22-26.313-.302a242.458 242.458 0 0 1-3.287-.22l-1.643-.129-.822-.069-.41-.035-.206-.018c-.068-.006-.133-.01-.218-.02a11.566 11.566 0 0 1-3.7-.992 11.732 11.732 0 0 1-5.497-5.178 11.73 11.73 0 0 1-1.215-3.627c-.024-.158-.051-.316-.067-.475l-.026-.238-.013-.119-.01-.103-.07-.823-.132-1.648a190.637 190.637 0 0 1-.22-3.298c-.256-4.399-.358-8.817-.258-13.233.099-4.412.372-8.811.788-13.197a11.65 11.65 0 0 1 3.039-6.835 11.585 11.585 0 0 1 6.572-3.563c.157-.023.312-.051.47-.07l.47-.05.82-.07 1.643-.13a228.493 228.493 0 0 1 6.647-.405l-.041-.05a88.145 88.145 0 0 1-2.154-2.867l-.52-.73-.258-.366c-.086-.122-.173-.244-.246-.376a2.74 2.74 0 0 1-.312-.881 2.808 2.808 0 0 1 .04-1.138 3.998 3.998 0 0 1 4.22-3.077 2.8 2.8 0 0 1 1.093.313c.294.155.538.347.742.568.102.11.19.23.28.35l.27.359.532.72a88.059 88.059 0 0 1 2.06 2.936 73.036 73.036 0 0 1 1.929 3.03c.187.313.373.628.556.945 2.724-.047 5.447-.056 8.17-.038.748.006 1.496.015 2.244.026.18-.313.364-.624.549-.934a73.281 73.281 0 0 1 1.93-3.03 88.737 88.737 0 0 1 2.059-2.935l.533-.72.268-.359c.09-.12.179-.24.281-.35a2.8 2.8 0 0 1 1.834-.881Zm-20.85 22.284h-.41a3.095 3.095 0 0 0-3.079 2.783c-.316 3.124-.474 7.097-.474 11.919s.158 8.795.474 11.919a3.095 3.095 0 0 0 3.08 2.783h.41a3.095 3.095 0 0 0 3.079-2.783c.316-3.124.474-7.097.474-11.919s-.158-8.795-.474-11.919a3.095 3.095 0 0 0-3.08-2.783Zm17.017 0h-.41a3.095 3.095 0 0 0-3.079 2.783c-.316 3.124-.474 7.097-.474 11.919s.158 8.795.474 11.919a3.095 3.095 0 0 0 3.08 2.783h.41a3.095 3.095 0 0 0 3.079-2.783c.316-3.124.474-7.097.474-11.919s-.158-8.795-.474-11.919a3.095 3.095 0 0 0-3.08-2.783Z"></path><filter id="__2r0hFjG__c" width="130.9%" height="132.5%" x="-15.4%" y="-16.3%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"></feColorMatrix><feOffset in="SourceAlpha" result="shadowOffsetOuter2"></feOffset><feGaussianBlur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="3.5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="shadowMatrixOuter2"></feMergeNode></feMerge></filter></defs><g fill="none" fill-rule="evenodd" opacity=".8"><mask id="__2r0hFjG__b" fill="#fff"><use xlink:href="#__2r0hFjG__a"></use></mask><g mask="url(#__2r0hFjG__b)"><use xlink:href="#__2r0hFjG__d" fill="#000" filter="url(#__2r0hFjG__c)"></use><use xlink:href="#__2r0hFjG__d" fill="#FFF"></use></g></g></svg>'},14972:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 80 80"><defs><path id="__1eE-JQF__a" d="M0 0h80v80H0z"></path><path id="__1eE-JQF__d" d="M52.546 8.014a3.998 3.998 0 0 1 4.222 3.077c.104.446.093.808.039 1.138a2.74 2.74 0 0 1-.312.881c-.073.132-.16.254-.246.376l-.257.366-.521.73c-.7.969-1.415 1.926-2.154 2.866l-.015.02a240.945 240.945 0 0 1 5.986.341l1.643.123.822.066.41.034.206.018.103.008.115.012c1.266.116 2.516.45 3.677.975a11.663 11.663 0 0 1 3.166 2.114c.931.87 1.719 1.895 2.321 3.022a11.595 11.595 0 0 1 1.224 3.613c.03.157.046.316.068.474l.015.119.013.112.022.206.085.822.159 1.646c.1 1.098.19 2.198.27 3.298.315 4.4.463 8.829.36 13.255a166.489 166.489 0 0 1-.843 13.213c-.012.127-.034.297-.053.454a7.589 7.589 0 0 1-.072.475l-.04.237-.05.236a11.762 11.762 0 0 1-.74 2.287 11.755 11.755 0 0 1-5.118 5.57 11.705 11.705 0 0 1-3.623 1.263c-.158.024-.316.052-.475.072l-.477.053-.821.071-1.644.134c-1.096.086-2.192.16-3.288.23a260.08 260.08 0 0 1-6.578.325c-8.772.324-17.546.22-26.313-.302a242.458 242.458 0 0 1-3.287-.22l-1.643-.129-.822-.069-.41-.035-.206-.018c-.068-.006-.133-.01-.218-.02a11.566 11.566 0 0 1-3.7-.992 11.732 11.732 0 0 1-5.497-5.178 11.73 11.73 0 0 1-1.215-3.627c-.024-.158-.051-.316-.067-.475l-.026-.238-.013-.119-.01-.103-.07-.823-.132-1.648a190.637 190.637 0 0 1-.22-3.298c-.256-4.399-.358-8.817-.258-13.233.099-4.412.372-8.811.788-13.197a11.65 11.65 0 0 1 3.039-6.835 11.585 11.585 0 0 1 6.572-3.563c.157-.023.312-.051.47-.07l.47-.05.82-.07 1.643-.13a228.493 228.493 0 0 1 6.647-.405l-.041-.05a88.145 88.145 0 0 1-2.154-2.867l-.52-.73-.258-.366c-.086-.122-.173-.244-.246-.376a2.74 2.74 0 0 1-.312-.881 2.808 2.808 0 0 1 .04-1.138 3.998 3.998 0 0 1 4.22-3.077 2.8 2.8 0 0 1 1.093.313c.294.155.538.347.742.568.102.11.19.23.28.35l.27.359.532.72a88.059 88.059 0 0 1 2.06 2.936 73.036 73.036 0 0 1 1.929 3.03c.187.313.373.628.556.945 2.724-.047 5.447-.056 8.17-.038.748.006 1.496.015 2.244.026.18-.313.364-.624.549-.934a73.281 73.281 0 0 1 1.93-3.03 88.737 88.737 0 0 1 2.059-2.935l.533-.72.268-.359c.09-.12.179-.24.281-.35a2.8 2.8 0 0 1 1.834-.881ZM30.13 34.631a4 4 0 0 0-.418 1.42 91.157 91.157 0 0 0-.446 9.128c0 2.828.121 5.656.364 8.483l.11 1.212a4 4 0 0 0 5.858 3.143c2.82-1.498 5.55-3.033 8.193-4.606a177.41 177.41 0 0 0 5.896-3.666l1.434-.942a4 4 0 0 0 .047-6.632 137.703 137.703 0 0 0-7.377-4.708 146.88 146.88 0 0 0-6.879-3.849l-1.4-.725a4 4 0 0 0-5.382 1.742Z"></path><filter id="__1eE-JQF__c" width="130.9%" height="132.5%" x="-15.4%" y="-16.3%" filterUnits="objectBoundingBox"><feOffset dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="1"></feGaussianBlur><feColorMatrix in="shadowBlurOuter1" result="shadowMatrixOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"></feColorMatrix><feOffset in="SourceAlpha" result="shadowOffsetOuter2"></feOffset><feGaussianBlur in="shadowOffsetOuter2" result="shadowBlurOuter2" stdDeviation="3.5"></feGaussianBlur><feColorMatrix in="shadowBlurOuter2" result="shadowMatrixOuter2" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"></feColorMatrix><feMerge><feMergeNode in="shadowMatrixOuter1"></feMergeNode><feMergeNode in="shadowMatrixOuter2"></feMergeNode></feMerge></filter></defs><g fill="none" fill-rule="evenodd" opacity=".8"><mask id="__1eE-JQF__b" fill="#fff"><use xlink:href="#__1eE-JQF__a"></use></mask><g mask="url(#__1eE-JQF__b)"><use xlink:href="#__1eE-JQF__d" fill="#000" filter="url(#__1eE-JQF__c)"></use><use xlink:href="#__1eE-JQF__d" fill="#FFF"></use></g></g></svg>'},77561:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M16 5a1 1 0 0 0-1 1v4.615a1.431 1.431 0 0 0-.615-.829L7.21 5.23A1.439 1.439 0 0 0 5 6.445v9.11a1.44 1.44 0 0 0 2.21 1.215l7.175-4.555a1.436 1.436 0 0 0 .616-.828V16a1 1 0 0 0 2 0V6C17 5.448 16.552 5 16 5z"></path></svg>'},47739:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 14"><path fill="#999" d="M2.396 8.345a.75.75 0 0 0 .976.073l.084-.072L7 4.81l3.547 3.536a.75.75 0 0 0 .976.071l.084-.073a.75.75 0 0 0 .072-.976l-.073-.084L7.53 3.219a.75.75 0 0 0-.976-.072l-.084.072-4.073 4.065a.75.75 0 0 0-.001 1.06Z"></path></svg>'},41256:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M7 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2zM15 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2z"></path></svg>'},90174:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" class="__1-6glyt__icon " data-pointer="none" viewBox="0 0 1024 1024"><path fill="#fff" d="m85.333 224.853 54.614-54.186 713.386 713.386-54.186 54.614-253.014-253.014v253.014h-68.266v-256H256v-85.334L341.333 512v-31.147l-256-256M682.667 512 768 597.333v85.334h-7.68L341.333 263.68v-93.013h-42.666V85.333h426.666v85.334h-42.666V512Z"></path></svg>'},12647:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" class="__31RxlrW__icon " data-pointer="none" viewBox="0 0 1024 1024"><path fill="#fff" d="M726.646 466.708H716.8l-66.954-311.139h17.723c31.508 0 57.108-25.6 57.108-57.107s-25.6-57.108-57.108-57.108H356.431c-31.508 0-57.108 25.6-57.108 57.108s25.6 57.107 57.108 57.107h17.723l-64.985 311.139h-9.846c-31.508 0-57.108 25.6-57.108 57.107s25.6 57.108 57.108 57.108h165.415V923.57c0 31.508 25.6 59.077 59.077 59.077s59.077-25.6 59.077-59.077V582.892h145.723c31.508 0 57.108-25.6 57.108-57.107s-27.57-59.077-59.077-59.077z"></path></svg>'},91785:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M12 4.998c-2.518 0-4.717.128-6.27.254a2.172 2.172 0 0 0-2.01 1.98 53.947 53.947 0 0 0-.22 4.766c0 1.827.106 3.498.22 4.766a2.173 2.173 0 0 0 2.011 1.98 78.67 78.67 0 0 0 4.258.227.75.75 0 1 1-.04 1.5 80.19 80.19 0 0 1-4.339-.232 3.673 3.673 0 0 1-3.384-3.341 55.448 55.448 0 0 1-.226-4.9c0-1.883.11-3.6.226-4.9A3.672 3.672 0 0 1 5.61 3.757 80.076 80.076 0 0 1 12 3.498c2.568 0 4.808.13 6.39.259a3.672 3.672 0 0 1 3.384 3.341c.072.799.14 1.754.183 2.81a.75.75 0 1 1-1.499.06 55.51 55.51 0 0 0-.178-2.736 2.172 2.172 0 0 0-2.01-1.98A78.58 78.58 0 0 0 12 4.998Zm.5 10.252a2.75 2.75 0 0 1 2.75-2.75h5A2.75 2.75 0 0 1 23 15.25v3A2.75 2.75 0 0 1 20.25 21h-5a2.75 2.75 0 0 1-2.75-2.75v-3ZM15.25 14c-.69 0-1.25.56-1.25 1.25v3c0 .69.56 1.25 1.25 1.25h5c.69 0 1.25-.56 1.25-1.25v-3c0-.69-.56-1.25-1.25-1.25h-5ZM8.53 8.47a.75.75 0 0 0-1.06 1.06l2.22 2.22H8.5a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.19L8.53 8.47Z" clip-rule="evenodd"></path></svg>'},24223:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 22 22"><g fill="#E6E6E6" fill-rule="evenodd"><path d="M17 4a2 2 0 0 1 2 2v6h-2V6.8a.8.8 0 0 0-.8-.8H4.8a.8.8 0 0 0-.794.7L4 6.8v8.4a.8.8 0 0 0 .7.794l.1.006H11v2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h13Z"></path><rect width="8" height="6" x="13" y="14" rx="1"></rect></g></svg>'},18558:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 17"><path fill="#fff" fill-rule="evenodd" d="M3.742 3.924A52.952 52.952 0 0 1 8 3.75c1.714 0 3.208.088 4.258.174A1.45 1.45 0 0 1 13.6 5.245c.078.862.151 2.004.151 3.255s-.073 2.393-.15 3.255a1.45 1.45 0 0 1-1.342 1.321c-1.05.086-2.544.174-4.258.174s-3.208-.088-4.258-.174A1.45 1.45 0 0 1 2.4 11.754 36.666 36.666 0 0 1 2.25 8.5c0-1.25.073-2.393.15-3.254a1.45 1.45 0 0 1 1.342-1.322ZM8 2.75c-1.747 0-3.27.09-4.34.177a2.45 2.45 0 0 0-2.255 2.229c-.08.883-.155 2.056-.155 3.344 0 1.288.075 2.461.155 3.344a2.45 2.45 0 0 0 2.255 2.229A53.91 53.91 0 0 0 8 14.25c1.747 0 3.27-.09 4.34-.177a2.45 2.45 0 0 0 2.255-2.229c.08-.882.155-2.056.155-3.344 0-1.288-.075-2.462-.155-3.345a2.45 2.45 0 0 0-2.255-2.228A53.953 53.953 0 0 0 8 2.75Zm1.75 6.328a.667.667 0 0 0 0-1.155l-2.5-1.444a.667.667 0 0 0-1 .577v2.888c0 .513.555.834 1 .578l2.5-1.444Z" clip-rule="evenodd"></path></svg>'},77179:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 64 64"><defs><filter id="__3R0JVu7__a" width="122.4%" height="125.5%" x="-11.2%" y="-10.8%" filterUnits="objectBoundingBox"><feOffset dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur in="shadowOffsetOuter1" result="shadowBlurOuter1" stdDeviation="2"></feGaussianBlur><feComposite in="shadowBlurOuter1" in2="SourceAlpha" operator="out" result="shadowBlurOuter1"></feComposite><feColorMatrix in="shadowBlurOuter1" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0"></feColorMatrix></filter><path id="__3R0JVu7__b" d="M52.352 13.5c4.837 0 8.707 4.32 8.647 9.72v21.06C61 49.62 57.128 54 52.29 54h-2.479c0 1.681-1.452 3-3.206 3S43.4 55.62 43.4 54H20.841c0 1.681-1.452 3-3.204 3-1.756 0-3.206-1.38-3.206-3h-2.722C6.87 54 3 49.68 3 44.28V23.22c0-5.4 3.87-9.72 8.709-9.72h11.25l-4.78-4.44c-.725-.661-.725-1.8 0-2.52.424-.36.908-.54 1.391-.54.546 0 1.029.18 1.392.54l7.5 6.96h7.318l7.5-6.96c.422-.36.907-.54 1.39-.54.544 0 1.029.18 1.392.54.725.659.725 1.8 0 2.52l-4.78 4.44h11.07ZM26.527 45.54l17.418-10.08c1.45-.901 1.45-2.221 0-3.122L26.527 22.2c-1.452-.84-2.662-.12-2.662 1.56v20.22c0 1.74 1.21 2.4 2.662 1.561Z"></path></defs><g fill="none" fill-rule="evenodd"><use xlink:href="#__3R0JVu7__b" fill="#000" filter="url(#__3R0JVu7__a)"></use><use xlink:href="#__3R0JVu7__b" fill="#FFF" fill-opacity=".7"></use><path fill="#000" d="M26.527 45.541c-1.452.84-2.662.18-2.662-1.56V23.76c0-1.68 1.21-2.4 2.662-1.56L43.945 32.34c1.45.9 1.45 2.22 0 3.121L26.527 45.541Z" opacity=".06"></path></g></svg>'},33679:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M17.982 9.275 8.06 3.27A2.013 2.013 0 0 0 5 4.994v12.011a2.017 2.017 0 0 0 3.06 1.725l9.922-6.005a2.017 2.017 0 0 0 0-3.45z"></path></svg>'},53225:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 16 16"><path fill="#000" fill-opacity=".3" fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Z" clip-rule="evenodd"></path><path fill="#fff" fill-rule="evenodd" d="M5.168 5.977a.572.572 0 0 1 .809-.81L8 7.192l2.023-2.023a.572.572 0 0 1 .81.809L8.808 8l2.023 2.023a.572.572 0 1 1-.809.81L8 8.808l-2.023 2.023a.572.572 0 1 1-.81-.809L7.192 8 5.168 5.977Z" clip-rule="evenodd" opacity=".714"></path></svg>'},82786:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 10 8"><path fill="#fff" fill-rule="evenodd" d="M9.775.83a.543.543 0 0 1 0 .74L4.246 7.396a.717.717 0 0 1-1.052 0L.145 4.183a.543.543 0 0 1 0-.74.478.478 0 0 1 .702 0L3.72 6.473 9.073.83a.478.478 0 0 1 .702 0Z" clip-rule="evenodd"></path></svg>'},41814:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" class="__15dB9-x__icon " data-pointer="none" viewBox="0 0 1024 1024"><path d="M184.32 176.589c283.34 0 327.578-111.719 327.578-111.719s43.315 111.719 327.68 111.719v457.933c0 180.94-327.68 324.505-327.68 324.505S184.32 815.462 184.32 634.522V176.589z"></path></svg>'},35130:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 10 6"><path fill="#999" fill-rule="nonzero" d="M4.978 4.79.83.68a.486.486 0 0 0-.69.015.506.506 0 0 0 .01.707l4.515 4.472c.193.191.474.153.666-.037l4.52-4.478A.506.506 0 0 0 9.86.65a.486.486 0 0 0-.689-.015L4.978 4.79Z"></path></svg>'},63904:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 19 18"><path fill="#F69" fill-rule="evenodd" d="M4.875 1.35a4 4 0 0 0-4 4v7.3a4 4 0 0 0 4 4h13.25a.6.6 0 0 0 .48-.96l-1.53-2.042V5.35a4 4 0 0 0-4-4h-8.2Z" clip-rule="evenodd"></path><path fill="#fff" d="M6.377 4.2c.287.29.519.554.696.791.19.244.198.474.02.691-.259.278-.538.305-.838.081a7.04 7.04 0 0 1-.818-.914c-.096-.135-.116-.27-.062-.406a.735.735 0 0 1 .307-.305c.26-.135.49-.115.695.061Zm1.8 1.36a.38.38 0 0 1-.357-.233.65.65 0 0 1-.062-.458c.041-.25.208-.389.501-.416h4.153c.306 0 .521.071.644.213.13.136.194.37.194.701v7.14c0 .36-.085.607-.255.742-.13.102-.365.16-.706.173-.498.02-.965-.03-1.401-.152-.17-.055-.276-.16-.317-.315a.607.607 0 0 1 .02-.437c.102-.244.297-.346.583-.305.661.15.992.129.992-.06V5.813a.22.22 0 0 0-.082-.173.29.29 0 0 0-.194-.08H8.177ZM4.7 13.107V6.495c.007-.197.075-.339.205-.427a.578.578 0 0 1 .43-.091c.272.033.419.203.44.507v6.582c-.008.176-.076.305-.205.386a.648.648 0 0 1-.43.092c-.266-.034-.413-.18-.44-.437Zm2.475-1.666c-.484.02-.723-.193-.716-.64V7.673c0-.501.212-.752.634-.752h3.56c.3 0 .504.058.613.173.096.115.143.322.143.62v3.047c0 .25-.065.426-.194.528-.13.101-.344.152-.644.152H7.175Zm.358-1.27c0 .143.096.214.287.214h2.24c.095 0 .163-.02.204-.061.048-.04.071-.119.071-.234V8.272c0-.203-.092-.305-.276-.305H7.82c-.19 0-.286.085-.286.254v1.95Z"></path></svg>'},29532:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32"><path fill-rule="nonzero" d="M16 32C7.2 32 0 24.8 0 16S7.2 0 16 0s16 7.2 16 16-7.2 16-16 16Zm0-30C8.2 2 2 8.2 2 16s6.2 14 14 14 14-6.2 14-14S23.8 2 16 2Z"></path></svg>'},69272:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 32 32"><path fill-rule="nonzero" d="M16 32C7.2 32 0 24.8 0 16S7.2 0 16 0s16 7.2 16 16-7.2 16-16 16Zm0-30C8.2 2 2 8.2 2 16s6.2 14 14 14 14-6.2 14-14S23.8 2 16 2ZM8 16a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"></path></svg>'},32971:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M14.25 2c.3 0 .5.2.5.5s-.2.5-.5.5h-1.368A7 7 0 0 1 15 8a7.008 7.008 0 0 1-9.08 6.685.5.5 0 1 1 .297-.955A6.003 6.003 0 0 0 14 8c0-1.715-.737-3.34-2-4.471V5.25c0 .3-.2.5-.5.5s-.5-.2-.5-.5v-2.5c0-.2 0-.4.15-.55.2-.2.4-.2.6-.2ZM8 1c.996 0 1.64.1 2.088.324a.5.5 0 0 1-.448.895C9.347 2.072 8.81 2 8 2 4.691 2 2 4.691 2 8c0 1.713.739 3.337 2 4.469V10.75c0-.3.2-.5.5-.5s.5.2.5.5v2.5c0 .15 0 .35-.2.55-.15.2-.35.2-.5.2H1.75c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h1.366A7.01 7.01 0 0 1 1 8c0-3.86 3.14-7 7-7Z"></path></svg>'},80563:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path fill="#fff" d="M14.158 6.212c-4.404 0-8.06 3.656-8.06 8.06s3.656 8.06 8.06 8.06c2.806 0 5.318-1.414 6.859-3.717.195-.392.708-.734 1.132-.734.765 0 1.413.594 1.413 1.413 0 .171-.033.307-.093.458a.605.605 0 0 0-.021.145l-.079.123c-1.981 3.096-5.382 5.026-9.096 5.026A10.728 10.728 0 0 1 3.5 14.273 10.73 10.73 0 0 1 14.273 3.5c2.591 0 5.021.919 6.921 2.532v-.549c0-.733.564-1.299 1.297-1.299a1.28 1.28 0 0 1 1.299 1.299v3.996a1.28 1.28 0 0 1-1.299 1.299h-3.996a1.278 1.278 0 0 1-1.297-1.299c0-.783.472-1.413 1.297-1.413h.787c-1.46-1.179-3.26-1.854-5.124-1.854z"></path></svg>'},88712:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M2 10.5a8 8 0 0 1 8-8h4a8 8 0 0 1 .455 15.987c-.958 1.228-2.532 2.766-4.744 3.369a.982.982 0 0 1-1.038-.349 1.017 1.017 0 0 1-.13-1.03 4.31 4.31 0 0 0 .363-2.051A8.002 8.002 0 0 1 2 10.5ZM10 4a6.5 6.5 0 0 0-.39 12.988.75.75 0 0 1 .691.6 5.714 5.714 0 0 1-.042 2.476c1.436-.661 2.51-1.806 3.209-2.758a.75.75 0 0 1 .597-.306A6.5 6.5 0 0 0 14 4h-4Z" clip-rule="evenodd"></path></svg>'},71159:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#FFF" fill-rule="nonzero" d="m6.273 13.367.054.073c.27.443.923.76 1.676.76.749 0 1.399-.313 1.672-.754a.5.5 0 0 1 .85.527c-.468.756-1.447 1.227-2.522 1.227-1.081 0-2.065-.477-2.53-1.24a.5.5 0 0 1 .8-.593ZM8 1a.7.7 0 0 1 .698.753 4.671 4.671 0 0 1 2.668 1.373 4.899 4.899 0 0 1 1.398 3.448v2.47c0 .185.087.362.234.474l.668.504c.547.414.765 1.11.556 1.773-.212.673-.792 1.105-1.48 1.105H3.258c-.686 0-1.268-.432-1.48-1.103-.209-.663.01-1.36.556-1.773l.668-.505a.597.597 0 0 0 .234-.473V6.574c0-1.304.497-2.527 1.398-3.448a4.686 4.686 0 0 1 2.67-1.375L7.3 1.7A.7.7 0 0 1 8 1Zm0 1.7c-1.002 0-1.94.397-2.651 1.125a3.89 3.89 0 0 0-1.106 2.51l-.007.239v2.472c0 .442-.185.865-.505 1.165l-.127.106-.667.504a.597.597 0 0 0-.205.675c.07.225.231.365.435.397l.09.007h9.485c.248 0 .444-.146.526-.405a.6.6 0 0 0-.133-.612l-.072-.063-.669-.505a1.597 1.597 0 0 1-.622-1.106l-.008-.165v-2.47a3.899 3.899 0 0 0-1.113-2.75A3.676 3.676 0 0 0 8 2.7Z"></path></svg>'},94527:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 13"><path fill="#F69" fill-rule="evenodd" d="M4.326 2.076a.6.6 0 0 0 0 .848L7.902 6.5l-3.576 3.576a.6.6 0 0 0 .848.848l3.824-3.823a.85.85 0 0 0 0-1.202L5.174 2.076a.6.6 0 0 0-.848 0Z" clip-rule="evenodd"></path></svg>'},22996:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 20 20"><g fill="#FFF" fill-rule="nonzero"><path d="M10 20c5.523 0 10-4.477 10-10 0-1.25-.23-2.47-.672-3.612A10.003 10.003 0 0 0 0 10c0 5.523 4.477 10 10 10Zm0-1a9 9 0 0 1-9-9 8.97 8.97 0 0 1 .694-3.471 9.003 9.003 0 0 1 16.701.22A8.976 8.976 0 0 1 19 10a9 9 0 0 1-9 9Z"></path><path d="M8.623 12.618 4.398 8.395 2.984 9.809l5.675 5.673 8.11-8.523-1.449-1.378z"></path></g></svg>'},4826:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 20 20"><g fill="#FFF" fill-rule="evenodd"><path fill-rule="nonzero" d="M10 20c5.523 0 10-4.477 10-10 0-1.25-.23-2.47-.672-3.612A10.003 10.003 0 0 0 0 10c0 5.523 4.477 10 10 10Zm0-1a9 9 0 0 1-9-9 8.97 8.97 0 0 1 .694-3.471 9.003 9.003 0 0 1 16.701.22A8.976 8.976 0 0 1 19 10a9 9 0 0 1-9 9Z"></path><path d="M10 16.7c-3.667-2.946-5.5-5.46-5.5-7.543C4.5 6.033 6.962 3.5 10 3.5s5.5 2.533 5.5 5.657c0 2.083-1.833 4.597-5.5 7.543Zm0-4.4a3.3 3.3 0 1 0 0-6.6 3.3 3.3 0 0 0 0 6.6Z"></path></g></svg>'},11799:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 1024 1024"><path fill="#fff" d="M128 384h512a42.667 42.667 0 0 1 42.667 42.667v384A42.667 42.667 0 0 1 640 853.333H128a42.667 42.667 0 0 1-42.667-42.666v-384A42.667 42.667 0 0 1 128 384zm42.667 85.333V768h426.666V469.333H170.667z"></path><path fill="#fff" d="M548.992 251.008v64.725a8.533 8.533 0 0 1-13.653 6.827L387.413 211.627a8.533 8.533 0 0 1 0-13.654L535.34 87.04a8.533 8.533 0 0 1 13.653 6.827v71.808a384 384 0 0 1 383.701 384 42.667 42.667 0 1 1-85.333 0 298.667 298.667 0 0 0-298.368-298.667z"></path></svg>'},97654:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 246 48"><g clip-path="url(#__1TboHaD__a)"><mask id="__1TboHaD__b" width="246" height="48" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><rect width="246" height="48" fill="#000" rx="6"></rect></mask><g mask="url(#__1TboHaD__b)"><path fill="url(#__1TboHaD__c)" d="M0 0h246v48H0z"></path></g><path fill="url(#__1TboHaD__d)" d="m3.141 33.355 46.347-41.38c.816-.728 2.062.124 1.679 1.149L40.155 22.559l22.422 4.951a1.047 1.047 0 0 1 .472 1.804l-46.347 41.38c-.816.728-2.062-.124-1.679-1.148L26.035 40.11 3.613 35.16a1.047 1.047 0 0 1-.472-1.804Z"></path></g><defs><linearGradient id="__1TboHaD__c" x1="57.938" x2="246.642" y1="1.946" y2="12.369" gradientUnits="userSpaceOnUse"><stop stop-color="#464C58" stop-opacity=".94"></stop><stop offset="1" stop-color="#22262E"></stop></linearGradient><linearGradient id="__1TboHaD__d" x1="25.218" x2="40.08" y1="2.906" y2="65.632" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity=".24"></stop><stop offset="1" stop-color="#fff" stop-opacity=".05"></stop></linearGradient><clipPath id="__1TboHaD__a"><path fill="#fff" d="M0 0h246v48H0z"></path></clipPath></defs></svg>'},88602:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 246 48"><g clip-path="url(#__2aUr3EO__a)"><mask id="__2aUr3EO__b" width="246" height="48" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><rect width="246" height="48" fill="#000" rx="6"></rect></mask><g mask="url(#__2aUr3EO__b)"><path fill="url(#__2aUr3EO__c)" d="M0 0h246v48H0z" opacity=".4"></path></g><path fill="url(#__2aUr3EO__d)" d="m3.141 33.355 46.347-41.38c.816-.728 2.062.124 1.679 1.149L40.155 22.559l22.422 4.951a1.047 1.047 0 0 1 .472 1.804l-46.347 41.38c-.816.728-2.062-.124-1.679-1.148L26.035 40.11 3.613 35.16a1.047 1.047 0 0 1-.472-1.804Z" opacity=".8"></path></g><defs><linearGradient id="__2aUr3EO__c" x1="15.744" x2="150.127" y1="-23.676" y2="75.646" gradientUnits="userSpaceOnUse"><stop stop-color="#D03C3C" stop-opacity=".72"></stop><stop offset="1" stop-color="#580808" stop-opacity=".06"></stop></linearGradient><linearGradient id="__2aUr3EO__d" x1="28.861" x2="57.515" y1="2.82" y2="116.592" gradientUnits="userSpaceOnUse"><stop stop-color="#F02929" stop-opacity=".69"></stop><stop offset="1" stop-opacity=".06"></stop></linearGradient><clipPath id="__2aUr3EO__a"><path fill="#fff" d="M0 0h246v48H0z"></path></clipPath></defs></svg>'},24508:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#757575" fill-rule="evenodd" stroke="#757575" stroke-width=".2" d="M14.893 7.33a.533.533 0 0 0-.494.735v1.38a3.21 3.21 0 0 1-3.217 3.203H3.206l.682-.618a.509.509 0 0 0 .22-.386c.01-.29-.238-.536-.559-.547a.603.603 0 0 0-.444.174L1.53 12.688l-.602.546 2.176 1.917a.617.617 0 0 0 .445.217c.32.011.59-.216.603-.507a.508.508 0 0 0-.258-.448l-.756-.69.003-.05h7.998c2.369 0 4.29-1.912 4.29-4.27V8.036c-.016-.055 0-.113 0-.175 0-.293-.24-.53-.536-.53ZM1.53 8.007v-1.38a3.21 3.21 0 0 1 3.217-3.203h8.458l-.717.666a.587.587 0 0 0-.237.473.556.556 0 0 0 .587.52.561.561 0 0 0 .427-.228l1.134-1.044.987-.917-2.11-2.021A.613.613 0 0 0 12.838.7a.552.552 0 0 0-.543.562c.007.163.091.3.213.396l.673.643.005.098H4.79C2.42 2.399.5 4.31.5 6.669v1.367c.016.055 0 .113 0 .175 0 .293.24.53.535.53a.533.533 0 0 0 .495-.734Z"></path></svg>'},91:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M13.875 2.216a3.75 3.75 0 0 0-3.75 0l-5.66 3.268A3.75 3.75 0 0 0 2.59 8.732v6.536a3.75 3.75 0 0 0 1.875 3.247l5.66 3.268c1.16.67 2.59.67 3.75 0l5.66-3.268a3.75 3.75 0 0 0 1.875-3.247V8.732a3.75 3.75 0 0 0-1.875-3.248l-5.66-3.268Zm-3 1.3a2.25 2.25 0 0 1 2.25 0l5.66 3.267a2.25 2.25 0 0 1 1.125 1.949v6.536a2.25 2.25 0 0 1-1.125 1.948l-5.66 3.268a2.25 2.25 0 0 1-2.25 0l-5.66-3.268a2.25 2.25 0 0 1-1.125-1.948V8.732a2.25 2.25 0 0 1 1.125-1.949l5.66-3.268ZM9.75 12a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0ZM12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5Z" clip-rule="evenodd"></path></svg>'},998:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><circle cx="11" cy="11" r="2"></circle><path d="M19.164 8.861 17.6 8.6a6.978 6.978 0 0 0-1.186-2.099l.574-1.533a1 1 0 0 0-.436-1.217l-1.997-1.153a1.001 1.001 0 0 0-1.272.23l-1.008 1.225a7.04 7.04 0 0 0-2.55.001L8.716 2.829a1 1 0 0 0-1.272-.23L5.447 3.751a1 1 0 0 0-.436 1.217l.574 1.533A6.997 6.997 0 0 0 4.4 8.6l-1.564.261A.999.999 0 0 0 2 9.847v2.306c0 .489.353.906.836.986l1.613.269a7 7 0 0 0 1.228 2.075l-.558 1.487a1 1 0 0 0 .436 1.217l1.997 1.153c.423.244.961.147 1.272-.23l1.04-1.263a7.089 7.089 0 0 0 2.272 0l1.04 1.263a1 1 0 0 0 1.272.23l1.997-1.153a1 1 0 0 0 .436-1.217l-.557-1.487c.521-.61.94-1.31 1.228-2.075l1.613-.269a.999.999 0 0 0 .835-.986V9.847a.999.999 0 0 0-.836-.986zM11 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"></path></svg>'},20623:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M13.875 2.216a3.75 3.75 0 0 0-3.75 0l-5.66 3.268A3.75 3.75 0 0 0 2.59 8.732v6.536a3.75 3.75 0 0 0 1.875 3.247l5.66 3.268c1.16.67 2.59.67 3.75 0l5.66-3.268a3.75 3.75 0 0 0 1.875-3.247V8.732a3.75 3.75 0 0 0-1.875-3.248l-5.66-3.268Zm-3 1.3a2.25 2.25 0 0 1 2.25 0l5.66 3.267a2.25 2.25 0 0 1 1.125 1.949v6.536a2.25 2.25 0 0 1-1.125 1.948l-5.66 3.268a2.25 2.25 0 0 1-2.25 0l-5.66-3.268a2.25 2.25 0 0 1-1.125-1.948V8.732a2.25 2.25 0 0 1 1.125-1.949l5.66-3.268ZM9.75 12a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0ZM12 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5Z" clip-rule="evenodd"></path></svg>'},86049:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" d="m12.631 3.578.474-.582-.474.582ZM11 7.766l.084.746a.75.75 0 0 0 .666-.746H11Zm-8.394 10.17-.746-.072.746.071Zm1.003.276-.632-.404.632.404Zm7.39-4.058h.75a.75.75 0 0 0-.683-.747l-.066.747Zm1.632 4.268.474.582-.474-.582Zm7.69-6.258.473.581-.473-.581Zm0-2.327-.474.582.474-.582ZM11.75 4.353a.25.25 0 0 1 .408-.193l.947-1.164c-1.144-.93-2.855-.117-2.855 1.357h1.5Zm0 3.413V4.353h-1.5v3.413h1.5Zm-8.397 10.24c.367-3.86 1.66-6.132 3.128-7.48 1.478-1.36 3.217-1.858 4.603-2.014l-.168-1.491c-1.588.179-3.665.76-5.45 2.4-1.795 1.649-3.212 4.294-3.606 8.443l1.493.142Zm-.376-.198a.186.186 0 0 1 .196-.087c.024.007.07.026.115.082.052.066.07.145.065.203l-1.493-.142c-.068.713.434 1.175.926 1.307.477.127 1.102-.004 1.454-.554l-1.263-.81Zm8.089-4.401c-1.13-.1-2.52 0-3.955.64-1.44.642-2.88 1.806-4.134 3.76l1.263.81c1.11-1.733 2.334-2.689 3.482-3.2a6.443 6.443 0 0 1 3.212-.516l.132-1.494Zm.684 4.24v-3.493h-1.5v3.493h1.5Zm.408.194a.25.25 0 0 1-.408-.194h-1.5c0 1.474 1.711 2.288 2.855 1.357l-.947-1.163Zm7.69-6.26-7.69 6.26.947 1.163 7.69-6.259-.948-1.163Zm0-1.162a.75.75 0 0 1 0 1.163l.946 1.163a2.25 2.25 0 0 0 0-3.49l-.947 1.163Zm-7.69-6.26 7.69 6.26.946-1.164-7.69-6.259-.946 1.164Z"></path><path fill="#fff" fill-rule="evenodd" d="M13.105 2.996c-1.144-.93-2.855-.117-2.855 1.357v2.764C8.774 7.375 7.01 8 5.466 9.42 3.67 11.07 2.254 13.715 1.86 17.864c-.068.713.434 1.175.926 1.306.477.128 1.102-.003 1.454-.553 1.11-1.733 2.334-2.689 3.482-3.2a6.328 6.328 0 0 1 2.528-.543v2.773c0 1.474 1.711 2.288 2.855 1.357l7.69-6.259a2.25 2.25 0 0 0 0-3.49l-7.69-6.259ZM11.75 4.353a.25.25 0 0 1 .408-.193l7.69 6.258a.75.75 0 0 1 0 1.164l-7.69 6.259a.25.25 0 0 1-.408-.194v-3.493a.75.75 0 0 0-.684-.747c-1.129-.1-2.519 0-3.955.64-1.26.56-2.518 1.521-3.652 3.06.47-3.32 1.671-5.341 3.022-6.582 1.478-1.358 3.217-1.857 4.603-2.014a.75.75 0 0 0 .666-.745V4.353Z" clip-rule="evenodd"></path></svg>'},23596:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20"></circle><path fill="#fff" fill-rule="evenodd" d="M29.037 24.266c-.131-1.563-.993-3.302-1.345-4.177l-.912-2.25c-.029-.936.261-3.087-1.258-5.78-1.525-2.692-4.578-2.935-5.143-2.963-.565-.028-4.097-.055-5.834 2.876-1.737 2.93-1.268 5.868-1.268 5.868l-.972 2.265s-.451 1.034-.842 2.292c-.391 1.257-.783 3.235-.391 3.636.39.402 1.808-1.839 1.939-2.046 0 0 .101 1.07.37 1.63.214.449.73 1.567 1.77 2.445-.5.154-1.7.567-1.877.996-.222.545.174.609.85.646.677.037 3.919.12 5.472-.087a.99.99 0 0 1 .048-.008 15 15 0 0 0 .432.008c.088 0 .19-.003.298-.005.01.002.022.002.032.005 1.553.207 4.797.124 5.471.087.677-.037 1.07-.101.85-.646-.179-.437-1.413-.854-1.898-1.002.151-.129.3-.268.444-.417 1.751-1.839 1.607-3 1.68-3.664 0 0 1.475 2.032 1.794 2.102.319.07.418-.25.29-1.811Z" clip-rule="evenodd"></path></svg>'},86346:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20"></circle><path fill="#fff" fill-rule="evenodd" d="m25.76 17.822-7.047 5.056s2.829.42 7.094.371l-.194-.836 6.079-5.266a.368.368 0 0 0-.211-.644l-8.013-.689-3.13-7.408a.368.368 0 0 0-.677 0l-3.13 7.408-8.013.689a.367.367 0 0 0-.21.644l6.079 5.266-1.822 7.834a.367.367 0 0 0 .548.397L20 26.491l6.887 4.153a.354.354 0 0 0 .19.053.368.368 0 0 0 .358-.45l-1.44-6.195c.617-.31 1.298-.837 1.298-.837s-2.697 1.317-12.38.674l7.017-5.086s-.276-.43-9.07-.736c-.588-.02 7.17-1.47 12.9-.245Z" clip-rule="evenodd"></path></svg>'},98611:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20"></circle><path fill="#fff" fill-rule="evenodd" d="M19.453 10.18c0-.1-.081-.18-.18-.18H12.43A2.43 2.43 0 0 0 10 12.43v12.265c0 .1.08.18.18.18h1.989c.1 0 .18-.08.18-.18V12.394h4.8v12.301c0 .1.08.18.18.18h1.944c.099 0 .18-.08.18-.18V10.18Zm3.338 0v8.741h-1.702c-.1 0-.18.08-.18.18v10.712c0 .1.08.18.18.18h6.481a2.43 2.43 0 0 0 2.43-2.43v-8.462c0-.1-.08-.18-.18-.18h-4.73v-4.703c0-.1.08-.18.18-.18h4.55c.1 0 .18-.08.18-.18v-2.06c0-.1-.08-.18-.18-.18h-4.55a.18.18 0 0 1-.18-.18V10.18c0-.1-.08-.18-.18-.18h-1.939c-.1 0-.18.08-.18.18Zm4.886 11.095h-4.452v6.383h4.452v-6.383Zm-13.94-7.635c-.1 0-.18.08-.18.179v9.6c0 3.468-3.557 4.261-3.557 4.261v2.313s2.53.144 4.726-2.673c1.505 2.445 4.726 2.673 4.726 2.673s.005-2.284 0-2.313c-3.897-.61-3.548-4.214-3.542-4.262V13.82a.18.18 0 0 0-.18-.179h-1.993Z" clip-rule="evenodd"></path></svg>'},54800:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20"></circle><path fill="#fff" fill-rule="evenodd" d="M27.618 16.703c-.394 0-.787-.394-.787-.787.13-.92-.394-1.838-1.444-2.1h-.394c-.394 0-.787-.394-.787-.788s.393-.787.787-.787a3.25 3.25 0 0 1 3.282 3.28v.263c0 .656-.263.919-.657.919Zm-9.974 6.43c-.263 0-.394.264-.394.526s.262.394.394.394c.13 0 .393-.263.393-.394.132-.262-.131-.525-.393-.525Zm-2.231.395c-.657 0-1.182.525-1.182 1.18 0 .657.525 1.182 1.181 1.182.657 0 1.182-.525 1.182-1.181s-.525-1.181-1.182-1.181Zm2.1 3.675c-2.1.524-4.2-.394-4.594-2.231-.394-1.838.919-3.544 3.018-4.069 2.1-.525 4.2.394 4.594 2.23.393 1.839-.919 3.545-3.019 4.07Zm-.526-8.269c-3.937.263-7.087 2.494-6.955 5.119.13 2.625 3.543 4.462 7.48 4.2 3.938-.263 7.087-2.494 6.956-5.12-.13-2.624-3.544-4.33-7.48-4.199Zm7.481-3.543c1.706.787.657 3.937.657 3.937a4.072 4.072 0 0 1 2.362 1.181c1.838 2.1.263 6.563-6.037 8.663-5.644 1.837-11.288 0-12.862-3.544-1.575-3.806 1.574-9.581 6.956-12.6.656-.394 2.756-1.05 3.937.263.656.787 0 3.018 0 3.018s2.494-2.1 4.987-.918Zm7.22 1.312c0 .525-.526 1.05-1.051 1.05-.525 0-1.05-.525-1.05-1.05v-.131c.393-2.625-1.444-4.987-4.069-5.381h-.787c-.525 0-1.05-.525-1.05-1.05s.525-1.05 1.05-1.05h.131c3.806 0 6.956 3.15 6.956 6.956v.525c-.13 0-.13.131-.13.131Z" clip-rule="evenodd"></path></svg>'},87115:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 28 28" viewBox="0 0 28 28"><path d="M12.605 9.649V4.516c0-.837.667-1.516 1.488-1.516.349 0 .687.125.954.353l10.337 8.805a1.773 1.773 0 0 1 0 2.684l-10.337 8.805a1.469 1.469 0 0 1-2.096-.191 1.532 1.532 0 0 1-.346-.972v-4.729c-5.011 0-7.235 1.952-10.034 5.746-.095.13-.571.265-.571-.328C2 15.827 3.901 9.649 12.605 9.649z"></path></svg>'},15706:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M10.25 3.827c0-1.264 1.467-1.961 2.447-1.163l8.574 6.978c.86.7.86 2.015 0 2.715l-8.574 6.978c-.98.798-2.447.1-2.447-1.163v-3.298c-.83.008-1.763.17-2.71.627-1.213.587-2.503 1.686-3.646 3.69-.29.507-.843.636-1.264.527-.43-.111-.867-.513-.827-1.13.283-4.443 1.685-7.268 3.511-9.025 1.58-1.52 3.412-2.18 4.936-2.447V3.827Z" clip-rule="evenodd"></path></svg>'},32468:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 28 28"><g fill="none" fill-rule="evenodd"><mask id="__24mPeT___a" fill="#fff"><path d="M19.577 8.572c-1.021-.159-1.964-.871-2.357-1.821l-1.806-3.8c-.55-1.268-2.278-1.268-2.906 0l-1.728 3.8c-.472.95-1.336 1.662-2.357 1.82l-4.084.634c-1.257.158-1.807 1.742-.864 2.692l3.063 3.167c.707.713 1.021 1.742.864 2.771l-.707 4.434c-.235 1.346 1.178 2.296 2.357 1.663l3.456-1.9a3.03 3.03 0 0 1 3.063 0l3.456 1.9c1.178.633 2.513-.317 2.356-1.663l-.785-4.434c-.159-1.03.157-2.058.864-2.771l3.063-3.167c.943-.95.393-2.534-.864-2.692l-4.084-.633Z"></path></mask><path stroke="#FFA726" stroke-width="2" d="M19.423 9.56c-1.37-.213-2.602-1.159-3.106-2.38l-1.82-3.832c-.205-.472-.836-.472-1.079.016l-1.743 3.83c-.623 1.258-1.769 2.16-3.098 2.366l-4.113.637c-.44.056-.633.64-.27 1.005l3.054 3.158c.93.937 1.348 2.283 1.142 3.633l-.71 4.448c-.087.5.433.86.89.614L12 21.17a4.017 4.017 0 0 1 4.053-.014l3.447 1.896a.604.604 0 0 0 .899-.608l-.79-4.456c-.206-1.342.212-2.689 1.134-3.618l3.072-3.176c.354-.357.16-.94-.307-1l-4.085-.633Z"></path><path fill="#FFA726" d="M1 19.17c2.902-1.715 5.644-2.413 8.226-2.095 3.874.476 3.7 2.094 6.677 2.094 2.047 0 4.413-.698 7.098-2.094v8.331H1v-6.237Z" mask="url(#__24mPeT___a)"></path></g></svg>'},30203:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 28 28"><g fill="none" fill-rule="evenodd"><mask id="__2ClwPwJ__a" fill="#fff"><path d="M19.577 8.572c-1.021-.159-1.964-.871-2.357-1.821l-1.806-3.8c-.55-1.268-2.278-1.268-2.906 0l-1.728 3.8c-.472.95-1.336 1.662-2.357 1.82l-4.084.634c-1.257.158-1.807 1.742-.864 2.692l3.063 3.167c.707.713 1.021 1.742.864 2.771l-.707 4.434c-.235 1.346 1.178 2.296 2.357 1.663l3.456-1.9a3.03 3.03 0 0 1 3.063 0l3.456 1.9c1.178.633 2.513-.317 2.356-1.663l-.785-4.434c-.159-1.03.157-2.058.864-2.771l3.063-3.167c.943-.95.393-2.534-.864-2.692l-4.084-.633Z"></path></mask><path stroke="#FFA726" stroke-width="2" d="M19.423 9.56c-1.37-.213-2.602-1.159-3.106-2.38l-1.82-3.832c-.205-.472-.836-.472-1.079.016l-1.743 3.83c-.623 1.258-1.769 2.16-3.098 2.366l-4.113.637c-.44.056-.633.64-.27 1.005l3.054 3.158c.93.937 1.348 2.283 1.142 3.633l-.71 4.448c-.087.5.433.86.89.614L12 21.17a4.017 4.017 0 0 1 4.053-.014l3.447 1.896a.604.604 0 0 0 .899-.608l-.79-4.456c-.206-1.342.212-2.689 1.134-3.618l3.072-3.176c.354-.357.16-.94-.307-1l-4.085-.633Z"></path><path fill="#FFA726" d="M3.5 14.646c3.228 1.498 5.913 2.248 8.057 2.248 3.215 0 2.943-1.456 6.31-2.248 2.341-.551 4.886.368 7.634 2.759v8.426H3.5V14.646Z" mask="url(#__2ClwPwJ__a)"></path></g></svg>'},45786:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 28 28"><g fill="none" fill-rule="evenodd"><mask id="__1aQXXX4__a" fill="#fff"><path d="M19.577 8.572c-1.021-.159-1.964-.871-2.357-1.821l-1.806-3.8c-.55-1.268-2.278-1.268-2.906 0l-1.728 3.8c-.472.95-1.336 1.662-2.357 1.82l-4.084.634c-1.257.158-1.807 1.742-.864 2.692l3.063 3.167c.707.713 1.021 1.742.864 2.771l-.707 4.434c-.235 1.346 1.178 2.296 2.357 1.663l3.456-1.9a3.03 3.03 0 0 1 3.063 0l3.456 1.9c1.178.633 2.513-.317 2.356-1.663l-.785-4.434c-.159-1.03.157-2.058.864-2.771l3.063-3.167c.943-.95.393-2.534-.864-2.692l-4.084-.633Z"></path></mask><path stroke="#FFA726" stroke-width="2" d="M19.423 9.56c-1.37-.213-2.602-1.159-3.106-2.38l-1.82-3.832c-.205-.472-.836-.472-1.079.016l-1.743 3.83c-.623 1.258-1.769 2.16-3.098 2.366l-4.113.637c-.44.056-.633.64-.27 1.005l3.054 3.158c.93.937 1.348 2.283 1.142 3.633l-.71 4.448c-.087.5.433.86.89.614L12 21.17a4.017 4.017 0 0 1 4.053-.014l3.447 1.896a.604.604 0 0 0 .899-.608l-.79-4.456c-.206-1.342.212-2.689 1.134-3.618l3.072-3.176c.354-.357.16-.94-.307-1l-4.085-.633Z"></path><path fill="#FFA726" d="M3 11c3.228 2.04 5.913 3.061 8.057 3.061 3.215 0 2.943-1.455 6.31-2.247 2.341-.552 4.886.035 7.634 1.758V26H3V11Z" mask="url(#__1aQXXX4__a)" transform="matrix(-1 0 0 1 28 0)"></path></g></svg>'},93:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" data-pointer="none" viewBox="0 0 28 28"><defs><path id="__1wIkt-C__a" d="M19.577 8.572c-1.021-.159-1.964-.871-2.357-1.821l-1.806-3.8c-.55-1.268-2.278-1.268-2.906 0l-1.728 3.8c-.472.95-1.336 1.662-2.357 1.82l-4.084.634c-1.257.158-1.807 1.742-.864 2.692l3.063 3.167c.707.713 1.021 1.742.864 2.771l-.707 4.434c-.235 1.346 1.178 2.296 2.357 1.663l3.456-1.9a3.03 3.03 0 0 1 3.063 0l3.456 1.9c1.178.633 2.513-.317 2.356-1.663l-.785-4.434c-.159-1.03.157-2.058.864-2.771l3.063-3.167c.943-.95.393-2.534-.864-2.692l-4.084-.633Z"></path></defs><g fill="none" fill-rule="evenodd"><mask id="__1wIkt-C__b" fill="#fff"><use xlink:href="#__1wIkt-C__a"></use></mask><path stroke="#FFA726" stroke-width="2" d="M19.423 9.56c-1.37-.213-2.602-1.159-3.106-2.38l-1.82-3.832c-.205-.472-.836-.472-1.079.016l-1.743 3.83c-.623 1.258-1.769 2.16-3.098 2.366l-4.113.637c-.44.056-.633.64-.27 1.005l3.054 3.158c.93.937 1.348 2.283 1.142 3.633l-.71 4.448c-.087.5.433.86.89.614L12 21.17a4.017 4.017 0 0 1 4.053-.014l3.447 1.896a.604.604 0 0 0 .899-.608l-.79-4.456c-.206-1.342.212-2.689 1.134-3.618l3.072-3.176c.354-.357.16-.94-.307-1l-4.085-.633Z"></path><path fill="#FFA726" d="M3 9h7.814c3.215 0 3.834 2.859 7.2 2.066 2.342-.551 4.67-.382 6.987.506V26H3V9Z" mask="url(#__1wIkt-C__b)" transform="matrix(-1 0 0 1 28 0)"></path></g></svg>'},703:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill="#FFA726" d="M10.43 2.734c.643-1.3 2.497-1.3 3.14 0l1.87 3.79c.182.37.534.625.941.684l4.183.608c1.436.209 2.009 1.973.97 2.985l-3.027 2.95a1.25 1.25 0 0 0-.36 1.107l.715 4.166c.246 1.43-1.255 2.52-2.539 1.845l-3.741-1.967a1.25 1.25 0 0 0-1.164 0L7.677 20.87c-1.284.675-2.784-.415-2.54-1.845l.715-4.166a1.25 1.25 0 0 0-.36-1.106l-3.026-2.95C1.427 9.788 2 8.024 3.436 7.815l4.183-.608c.407-.059.759-.314.941-.683l1.87-3.791z"></path></svg>'},82853:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 8 8"><g fill="#fff" opacity=".3"><path d="m3.564 1.838 1.759 4.397a.22.22 0 0 1-.205.302h-.474a.22.22 0 0 1-.204-.138l-.472-1.181H2.169l-.472 1.18a.22.22 0 0 1-.204.139H1.02a.22.22 0 0 1-.204-.302l1.759-4.397a.22.22 0 0 1 .204-.138h.581a.22.22 0 0 1 .204.138Zm-.495 1.13-.548 1.37h1.095l-.547-1.37Z"></path><rect width=".923" height="4.749" x="6.077" y="1.7" rx=".273"></rect></g></svg>'},16174:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 8 8"><path fill="#fff" d="M3.5 1.089a.1.1 0 0 0-.1.1v.488c.175.462.658.847 1.022 1.169-.436.182-.952.34-1.552.469a.1.1 0 0 0-.067.148l.21.369a.1.1 0 0 0 .109.048c.739-.165 1.366-.37 1.888-.628.487.277 1.106.463 1.849.558a.1.1 0 0 0 .104-.062l.154-.387a.101.101 0 0 0-.082-.138c-.546-.066-1.013-.18-1.402-.342.476-.35.805-.763.987-1.24V1.19a.1.1 0 0 0-.1-.1H3.5Zm.653.588H5.92c-.196.329-.497.616-.91.868-.329-.238-.69-.525-.857-.868ZM3.5 4.274a.1.1 0 0 0-.1.1v.402a.1.1 0 0 0 .1.1h1.167v.658H3.199a.1.1 0 0 0-.1.1v.43a.1.1 0 0 0 .1.1h1.468v1.062a.1.1 0 0 0 .1.1h.458a.1.1 0 0 0 .1-.1V6.164h1.601a.1.1 0 0 0 .1-.1v-.43a.1.1 0 0 0-.1-.1H5.325v-.658h1.258a.1.1 0 0 0 .1-.1v-.402a.1.1 0 0 0-.1-.1H5.325V3.8a.1.1 0 0 0-.1-.1h-.458a.1.1 0 0 0-.1.1v.474H3.5ZM1.67.963a.1.1 0 0 0-.136.003l-.32.315a.1.1 0 0 0 .003.145c.377.343.722.646 1.013.908a.1.1 0 0 0 .138-.004l.312-.317a.1.1 0 0 0-.006-.147c-.306-.264-.638-.574-1.003-.903ZM.77 2.93a.1.1 0 0 0-.1.1v.437a.1.1 0 0 0 .1.1h.852V6.66c0 .17.201.263.332.153.28-.236.525-.439.838-.716a.1.1 0 0 0 .034-.075v-.535a.098.098 0 0 0-.162-.075c-.132.116-.258.231-.405.354V3.03a.1.1 0 0 0-.1-.1H.77Z" opacity=".3"></path></svg>'},73193:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M12 4.998c-2.518 0-4.717.128-6.27.254a2.172 2.172 0 0 0-2.01 1.98 53.947 53.947 0 0 0-.22 4.766c0 1.827.106 3.498.22 4.766a2.172 2.172 0 0 0 2.01 1.98 78.61 78.61 0 0 0 6.27.254h.077a.75.75 0 1 1 .002 1.5H12a80.1 80.1 0 0 1-6.39-.259 3.672 3.672 0 0 1-3.384-3.341 55.448 55.448 0 0 1-.226-4.9c0-1.883.11-3.6.226-4.9A3.672 3.672 0 0 1 5.61 3.757 80.076 80.076 0 0 1 12 3.498c2.568 0 4.808.13 6.39.259a3.671 3.671 0 0 1 3.384 3.34c.087.968.17 2.166.206 3.493a.75.75 0 0 1-1.5.041 55.321 55.321 0 0 0-.2-3.4 2.172 2.172 0 0 0-2.01-1.979A78.58 78.58 0 0 0 12 4.998Zm4.675 9.022 4.605 4.605a3.326 3.326 0 0 0-4.605-4.605Zm3.65 5.56-4.605-4.605a3.326 3.326 0 0 0 4.605 4.605Zm-5.13-6.086a4.675 4.675 0 1 1 6.61 6.612 4.675 4.675 0 0 1-6.61-6.612ZM8.781 8.203a.55.55 0 0 0-1.036.363H5.9a.8.8 0 0 0-.8.8v.837a.55.55 0 0 0 1.1 0v-.537h4.334v.537a.55.55 0 0 0 1.1 0v-.837a.8.8 0 0 0-.8-.8h-1.9l-.152-.363Zm-2.238 2.434a.55.55 0 0 1 .55-.55h2.587a.55.55 0 0 1 .432.89l-.939 1.195v.187h1.739a.55.55 0 0 1 0 1.1H9.174v1.704a.55.55 0 0 1-.55.55H7.57a.55.55 0 0 1 0-1.1h.505V13.46H5.821a.55.55 0 1 1 0-1.1h2.253v-.377a.55.55 0 0 1 .118-.34l.357-.455H7.094a.55.55 0 0 1-.55-.55ZM12.55 8.34a.45.45 0 0 0 0 .9h1.152v.239h-.228a.7.7 0 0 0-.7.7v1.489a.7.7 0 0 0 .7.7h.363l-.21.186H12.55a.45.45 0 1 0 0 .9h.063l-.361.32a.45.45 0 1 0 .597.674l.594-.528a.45.45 0 0 0 .538-.442v-.035l1.212-1.075h.098a.45.45 0 0 0 0-.9h-1.617v-.22h2.818a.325.325 0 1 0 0-.65h-2.818v-.219h3.552v.544a.45.45 0 1 0 .9 0v-.744a.7.7 0 0 0-.7-.7h-.231v-.24h1.152a.45.45 0 1 0 0-.9h-1.152v-.055a.45.45 0 0 0-.9 0v.056h-1.693v-.056a.45.45 0 0 0-.9 0v.056H12.55Zm2.052 1.139v-.24h1.693v.24h-1.693Z" clip-rule="evenodd"></path></svg>'},55048:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 28 22"><g fill="#FFF" fill-rule="evenodd"><path d="m6.998 4 3.12 3.123H9.56A5.775 5.775 0 0 0 8.89 6l-.956.304c.168.242.336.546.473.82H4.394V9.37h.956V8.046h5.692l1.164 1.165v.159l.158-.001 2.13 2.132h-.105v.766h.87l.449.447c-.434.263-.936.5-1.508.698.179.157.441.514.546.735a9.08 9.08 0 0 0 1.281-.62v1.974h.934v-1.531l1.575 1.576v.165h.165L20.987 18H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2.998ZM24 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-.186l-2.527-2.53c.212-.013.386-.042.526-.104.283-.126.357-.325.357-.735v-1.04c.377.221.787.389 1.196.515.116-.22.378-.567.578-.724-.871-.221-1.743-.62-2.383-1.114h2.142v-.766h-5.44c.105-.158.21-.315.305-.483H22.6v-2.94h-7.035l-.001 1.664-2.36-2.362v-.258h-.258L9.825 4H24ZM11.072 9.045l-.22.053H6.043V10h3.822c-.473.4-1.05.809-1.585 1.072v.609H4.3v.934h3.98v1.932c0 .126-.047.183-.179.196l-.312.01c-.32.003-.85-.001-1.347-.017.157.252.357.693.42.976l.487-.002c.61-.008 1.067-.04 1.403-.166.43-.146.567-.42.567-.966v-1.963h3.98v-.934h-3.98v-.284a11.825 11.825 0 0 0 2.415-1.848l-.662-.504Zm10.163 4.725v.85c0 .106-.042.137-.157.137l-.504-.004h-.005l-.982-.983h1.648Zm-.724-1.502c.22.263.483.505.777.736h-1.806v-.546h-.945l-.001.26-.449-.45h2.424Zm-3.672-1.249h.658a2.778 2.778 0 0 1-.268.39l-.39-.39Zm4.785-1.197v.599H16.5v-.599h5.123Zm0-1.144v.577H16.5v-.578h5.123ZM17.79 6.084h-.956v.62h-2.383v.787h2.383v.399h.956v-.399h2.478v.399h.956v-.399h2.435v-.787h-2.436v-.62h-.955v.62h-2.478v-.62Z"></path><path d="m4.08 2.268.005-.005a.993.993 0 0 1 1.41.005l16.192 16.41a1 1 0 0 1-.005 1.41l-.004.004a.993.993 0 0 1-1.41-.005L4.076 3.677a1 1 0 0 1 .004-1.41Z"></path></g></svg>'},55298:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 28 22"><path fill="#FFF" fill-rule="evenodd" d="M24 3.5a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-11a2 2 0 0 1 2-2h20ZM11.018 9.152l-.22.052h-4.81v.903h3.823c-.473.399-1.05.809-1.586 1.071v.609h-3.98v.934h3.98v1.932c0 .147-.063.2-.252.2a8.845 8.845 0 0 1-.353.007h-.266a36.81 36.81 0 0 1-.966-.018c.157.252.357.694.42.977.86 0 1.47-.01 1.89-.168.43-.147.566-.42.566-.966v-1.963h3.98v-.935h-3.98v-.284a11.825 11.825 0 0 0 2.416-1.848l-.662-.503Zm11.781-.966h-7.035v2.94h1.932c-.095.168-.21.325-.347.482h-2.761v.767h1.964c-.557.441-1.271.84-2.153 1.145.179.157.441.514.546.735a9.08 9.08 0 0 0 1.281-.62v1.974h.934v-1.732h1.575v1.942h.945v-1.943h1.754v.851c0 .105-.042.136-.158.136h-.12c-.16 0-.425-.002-.709-.01.105.22.21.504.252.735.609 0 1.029.01 1.313-.115.283-.127.357-.326.357-.736v-1.039c.378.22.787.388 1.197.514.115-.22.378-.566.577-.724-.872-.22-1.743-.62-2.384-1.113h2.142v-.767h-5.439c.105-.157.21-.315.305-.482h4.032v-2.94Zm-2.09 4.189c.221.262.483.504.777.735H19.68v-.546h-.945v.546h-1.721c.304-.231.577-.473.819-.735h2.877Zm1.114-2.447v.599h-5.125v-.598h5.125ZM8.834 6.106l-.955.305c.168.242.336.546.472.819H4.34v2.247h.956V8.154h6.856v1.323h.998V7.23H9.505a5.775 5.775 0 0 0-.672-1.124Zm12.989 2.678v.577h-5.125v-.577h5.125ZM17.99 6.19h-.955v.62H14.65v.788h2.384v.399h.955v-.4h2.478v.4h.956v-.4h2.436V6.81h-2.436v-.62h-.956v.62H17.99v-.62Z"></path></svg>'},84203:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M12 4.998c-2.518 0-4.717.128-6.27.254a2.172 2.172 0 0 0-2.01 1.98 53.947 53.947 0 0 0-.22 4.766c0 1.827.106 3.498.22 4.766a2.172 2.172 0 0 0 2.01 1.98 78.61 78.61 0 0 0 6.27.254c2.518 0 4.717-.128 6.27-.254a2.172 2.172 0 0 0 2.01-1.98c.114-1.267.22-2.938.22-4.766 0-1.828-.106-3.5-.22-4.766a2.172 2.172 0 0 0-2.01-1.98A78.58 78.58 0 0 0 12 4.998ZM5.61 3.757A80.076 80.076 0 0 1 12 3.498c2.568 0 4.808.13 6.39.259a3.672 3.672 0 0 1 3.384 3.34c.117 1.3.226 3.017.226 4.901s-.11 3.601-.226 4.9a3.672 3.672 0 0 1-3.383 3.341 80.053 80.053 0 0 1-6.391.259 80.1 80.1 0 0 1-6.39-.259 3.672 3.672 0 0 1-3.384-3.341 55.448 55.448 0 0 1-.226-4.9c0-1.883.11-3.6.226-4.9A3.672 3.672 0 0 1 5.61 3.757Zm2.453 4.15a.55.55 0 0 1 .72.296l.15.363h1.9a.8.8 0 0 1 .8.8v.837a.55.55 0 0 1-1.1 0v-.537H6.2v.537a.55.55 0 0 1-1.1 0v-.837a.8.8 0 0 1 .8-.8h1.846a.55.55 0 0 1 .317-.66Zm-.966 2.18a.55.55 0 0 0 0 1.1h1.45l-.356.456a.55.55 0 0 0-.118.34v.376H5.828a.55.55 0 0 0 0 1.1h2.245v1.154h-.502a.55.55 0 1 0 0 1.1h1.052a.55.55 0 0 0 .55-.55V13.46h1.734a.55.55 0 0 0 0-1.1H9.173v-.187l.937-1.196a.55.55 0 0 0-.433-.89h-2.58ZM12.1 8.79a.45.45 0 0 1 .45-.45h1.152v-.056a.45.45 0 0 1 .9 0v.056h1.693v-.056a.45.45 0 1 1 .9 0v.056h1.152a.45.45 0 1 1 0 .9h-1.152v.239h.23a.7.7 0 0 1 .7.7v1.489a.7.7 0 0 1-.7.7h-2.232l-.21.186h3.364a.45.45 0 1 1 0 .9h-.144l.406.29a.45.45 0 0 1-.524.732l-.209-.15.001.04v.882a.45.45 0 0 1-.45.45h-.4a.45.45 0 0 1-.05-.898v-.184h-.998v.791a.5.5 0 1 1-1 0v-.791h-.998v.597a.45.45 0 0 1-.9 0v-.847c0-.047.005-.093.014-.137l-.246.219a.45.45 0 0 1-.597-.673l.36-.32h-.062a.45.45 0 0 1 0-.9h1.077l.21-.187h-.363a.7.7 0 0 1-.7-.7V10.18a.7.7 0 0 1 .7-.7h.229v-.24H12.55a.45.45 0 0 1-.45-.45Zm4.559 4.664.364.261H15.98v-.26h.68Zm-1.68 0v.261h-1.248l-.06.003.298-.264h1.01Zm-.377-4.214v.239h1.693v-.24h-1.693Zm-.928 2.008v.22h3.552V10.38h-3.552v.22h2.843c.166 0 .3.145.3.324 0 .18-.134.325-.3.325h-2.843Z" clip-rule="evenodd"></path></svg>'},50323:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 46 16"><rect width="46" height="16" fill="#FB7299" rx="8"></rect><path fill="#fff" d="M5.732 5.352v.84h4.524c-.624 2.952-2.208 5.064-4.764 6.324l.54.72c2.556-1.332 4.212-3.456 4.956-6.372.9 2.712 2.556 4.8 4.968 6.288l.54-.696c-2.46-1.464-4.116-3.552-4.956-6.264h4.728v-.84h-4.98c.096-.744.156-1.524.156-2.364v-.78h-.888v.972c-.012.756-.06 1.476-.156 2.172H5.732Zm16.956-3.156c-1.416 1.62-3.18 2.964-5.292 4.044l.456.828c2.136-1.152 3.852-2.52 5.148-4.104a16.799 16.799 0 0 0 5.1 4.092l.468-.828c-1.98-.984-3.732-2.328-5.256-4.032h-.624ZM20.072 5.88v.816h5.892V5.88h-5.892Zm-1.884 2.412v.84H21.2a14.747 14.747 0 0 1-1.932 2.796c-.096.096-.24.168-.456.228l.24.756c2.868-.168 5.232-.408 7.104-.708.24.336.456.66.66.984l.72-.504c-.588-.9-1.428-1.956-2.52-3.18l-.672.432c.492.552.936 1.104 1.344 1.632-1.776.24-3.636.408-5.592.528a12.4 12.4 0 0 0 2.088-2.964h5.652v-.84h-9.648Zm20.856-1.74h-8.076v4.62h.852V7.344h6.372v3.684h.852V6.552ZM31.688 2.64v3.012h6.636V2.64h-6.636Zm5.796 2.256h-4.956V3.408h4.956v1.488Zm-2.808 3.228c-.096 1.476-.432 2.52-.984 3.132-.636.66-1.932 1.044-3.876 1.164l.336.78c2.232-.204 3.66-.684 4.284-1.428.576-.624.948-1.812 1.116-3.576l-.876-.072Zm1.188 2.784-.432.648c1.452.408 2.868.96 4.248 1.68l.468-.72a26.736 26.736 0 0 0-4.284-1.608Z"></path></svg>'},93196:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 22 22"><path fill="#fff" fill-rule="evenodd" d="M7.542 2.73c.138 0 .266.04.374.11l.077.058a.686.686 0 0 1 .236.519v3.208a.687.687 0 0 1-1.375 0v-1.43a7.104 7.104 0 0 0 4.125 12.889.688.688 0 0 1 0 1.374A8.48 8.48 0 0 1 6.016 4.104H4.333a.687.687 0 1 1 0-1.375h3.209Zm3.437-.23a8.48 8.48 0 0 1 4.962 15.355h1.684a.687.687 0 1 1 0 1.374h-3.208a.687.687 0 0 1-.688-.687v-3.209a.687.687 0 0 1 1.375 0v1.436l.051-.042a7.092 7.092 0 0 0 2.923-5.473l.005-.275a7.104 7.104 0 0 0-7.104-7.104.687.687 0 1 1 0-1.375Z"></path></svg>'},61731:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" d="M13.623 6.368a1.623 1.623 0 1 1-3.246 0 1.623 1.623 0 0 1 3.246 0Zm0 13a1.623 1.623 0 1 1-3.246 0 1.623 1.623 0 0 1 3.246 0ZM12 14.495a1.625 1.625 0 1 0 0-3.25 1.625 1.625 0 0 0 0 3.25Z"></path></svg>'},57619:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M16.118 3.667h.382a3.667 3.667 0 0 1 3.667 3.667v7.333a3.667 3.667 0 0 1-3.667 3.667h-11a3.667 3.667 0 0 1-3.667-3.667V7.333A3.667 3.667 0 0 1 5.5 3.666h.382L4.95 2.053a1.1 1.1 0 0 1 1.906-1.1l1.567 2.714h5.156L15.146.953a1.101 1.101 0 0 1 1.906 1.1l-.934 1.614z" style="fill:#333"></path><path d="M5.561 5.194h10.878a2.2 2.2 0 0 1 2.2 2.2v7.211a2.2 2.2 0 0 1-2.2 2.2H5.561a2.2 2.2 0 0 1-2.2-2.2V7.394a2.2 2.2 0 0 1 2.2-2.2z" style="fill:#fff"></path><path d="M6.967 8.556a1.1 1.1 0 0 1 1.1 1.1v2.689a1.1 1.1 0 1 1-2.2 0V9.656a1.1 1.1 0 0 1 1.1-1.1zM15.033 8.556a1.1 1.1 0 0 1 1.1 1.1v2.689a1.1 1.1 0 1 1-2.2 0V9.656a1.1 1.1 0 0 1 1.1-1.1z" style="fill:#333"></path></svg>'},42718:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 145 42"><path fill="#000" fill-opacity=".703" fill-rule="evenodd" d="M1 23.562c0-9.63 7.807-17.438 17.438-17.438H68.81L72.65 1l3.887 5.124h50.025c9.631 0 17.438 7.808 17.438 17.438C144 33.192 136.193 41 126.562 41H18.438C8.808 41 1 33.193 1 23.562Z" clip-rule="evenodd"></path><path stroke="#fff" stroke-linejoin="round" stroke-opacity=".496" d="M73.05.698a.5.5 0 0 0-.8.002l-3.69 4.924H18.438C8.53 5.624.5 13.655.5 23.562.5 33.47 8.531 41.5 18.438 41.5h108.124c9.907 0 17.938-8.031 17.938-17.938 0-9.907-8.031-17.938-17.938-17.938H76.785L73.05.698Z"></path></svg>'},74696:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 145 42"><path fill="#000" fill-opacity=".703" fill-rule="evenodd" d="M1 23.562c0-9.63 7.807-17.438 17.438-17.438h4.372L26.65 1l3.887 5.124h96.025c9.631 0 17.438 7.808 17.438 17.438C144 33.192 136.193 41 126.562 41H18.438C8.808 41 1 33.193 1 23.562Z" clip-rule="evenodd"></path><path stroke="#fff" stroke-linejoin="round" stroke-opacity=".496" d="M27.05.698a.5.5 0 0 0-.8.002l-3.69 4.924h-4.122C8.53 5.624.5 13.655.5 23.562.5 33.47 8.531 41.5 18.438 41.5h108.124c9.907 0 17.938-8.031 17.938-17.938 0-9.907-8.031-17.938-17.938-17.938H30.785L27.05.698Z"></path></svg>'},2661:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="#505050" fill-rule="evenodd" data-pointer="none" viewBox="0 0 16 16"><path d="M8 2a6 6 0 1 0 6 6 6 6 0 0 0-6-6Zm0 11a5 5 0 1 1 5-5 5 5 0 0 1-5 5Z"></path><path d="M8.57 10.57a.55.55 0 0 1-.57.53.56.56 0 0 1-.57-.53.57.57 0 0 1 1.14 0ZM10.1 6.86A1.87 1.87 0 0 1 9 8.38a1 1 0 0 0-.48.81v.07a.52.52 0 0 1-1 0v-.07a1.93 1.93 0 0 1 1-1.64c.45-.27.61-.51.61-.69A1 1 0 0 0 8 5.88a1 1 0 0 0-1.06 1 .5.5 0 0 1-.52.49.51.51 0 0 1-.52-.49A2 2 0 0 1 8 4.9a2 2 0 0 1 2.1 1.96Z"></path></svg>'},96564:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 20 20"><path fill="#fff" d="M6.25 4.062c0-1.15.933-2.083 2.083-2.083h3.334c1.15 0 2.083.933 2.083 2.083v.73a.625.625 0 1 1-1.25 0v-.73a.833.833 0 0 0-.833-.833H8.333a.833.833 0 0 0-.833.833v.73a.625.625 0 0 1-1.25 0v-.73Z"></path><path fill="#fff" d="M1.667 5.208c0-.345.28-.625.625-.625h15.416a.625.625 0 1 1 0 1.25H2.292a.625.625 0 0 1-.625-.625ZM3.958 7.188c.345 0 .625.28.625.625v6.69c0 1.05.773 1.91 1.785 1.995 1.07.09 2.374.169 3.632.169s2.562-.08 3.632-.169c1.012-.085 1.785-.945 1.785-1.994V7.813a.625.625 0 1 1 1.25 0v6.69c0 1.667-1.239 3.1-2.931 3.24-1.09.092-2.43.174-3.736.174a46.08 46.08 0 0 1-3.736-.173c-1.693-.142-2.93-1.574-2.93-3.24V7.813c0-.346.28-.625.624-.625Z"></path><path fill="#fff" d="M7.917 8.75c.345 0 .625.28.625.625v2.917a.625.625 0 0 1-1.25 0V9.375c0-.345.28-.625.625-.625ZM12.083 8.75c.345 0 .625.28.625.625v2.917a.625.625 0 0 1-1.25 0V9.375c0-.345.28-.625.625-.625Z"></path></svg>'},34675:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 60 58"><path fill="#fff" fill-rule="evenodd" d="M20.76 2.24a2.917 2.917 0 0 0-4.854 3.235l2.955 4.432c-3.32.135-6.085.317-8.296.5-5.236.435-9.266 4.52-9.756 9.696-.354 3.73-.705 8.677-.705 13.65 0 4.974.351 9.921.705 13.65.49 5.177 4.52 9.262 9.756 9.696 4.34.36 10.818.717 19.435.717 8.617 0 15.095-.357 19.435-.717 5.236-.434 9.266-4.52 9.756-9.695.354-3.73.705-8.677.705-13.65 0-4.974-.351-9.922-.705-13.651-.49-5.176-4.52-9.261-9.756-9.695-2.21-.184-4.976-.366-8.296-.501l2.954-4.432A2.917 2.917 0 0 0 39.24 2.24l-4.988 7.48a298.656 298.656 0 0 0-8.504 0L20.76 2.24Zm4.865 38.805a3.646 3.646 0 0 1-7.292 0V26.462a3.646 3.646 0 0 1 7.292 0v14.583Zm12.396-18.23a3.646 3.646 0 0 1 3.646 3.647v14.583a3.646 3.646 0 0 1-7.292 0V26.462a3.646 3.646 0 0 1 3.646-3.646Z" clip-rule="evenodd"></path></svg>'},19570:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 60 58"><path fill="#fff" fill-rule="evenodd" d="M20.76 2.133a2.917 2.917 0 0 0-4.854 3.235L18.861 9.8c-3.32.135-6.085.317-8.296.5C5.33 10.736 1.3 14.82.81 19.997c-.354 3.73-.705 8.677-.705 13.65 0 4.974.351 9.921.705 13.65.49 5.177 4.52 9.262 9.756 9.696 4.34.36 10.818.717 19.435.717 8.617 0 15.095-.357 19.435-.717 5.236-.434 9.266-4.52 9.756-9.695.354-3.73.705-8.677.705-13.65 0-4.974-.351-9.922-.705-13.651-.49-5.176-4.52-9.261-9.756-9.695-2.21-.184-4.976-.366-8.296-.501l2.954-4.432a2.917 2.917 0 1 0-4.853-3.235l-4.988 7.48a298.652 298.652 0 0 0-8.504 0l-4.988-7.48Zm19.084 28.356c2.43 1.403 2.43 4.911 0 6.315L26.719 44.38c-2.43 1.404-5.469-.35-5.469-3.157V26.069c0-2.807 3.038-4.561 5.469-3.158l13.125 7.578Z" clip-rule="evenodd"></path></svg>'},97956:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.404 6.055a21.502 21.502 0 0 1 .098 2.211 18.613 18.613 0 0 1-.079 1.552l-.011.11-.006.056-.003.027-.003.03a1.597 1.597 0 0 1-.419.903c-.229.247-.54.412-.87.466l-.017.003a.802.802 0 0 1-.044.006l-.061.006-.108.01-.216.016a34.364 34.364 0 0 1-1.295.072 36.535 36.535 0 0 1-4.322-.093l-.027-.003h-.014l-.015-.002a2.184 2.184 0 0 1-.062-.007l-.062-.01-.061-.012a1.527 1.527 0 0 1-.666-.334 1.579 1.579 0 0 1-.536-.977l-.007-.063-.006-.055A18.36 18.36 0 0 1 3.51 7.53c.017-.59.057-1.179.12-1.765a1.596 1.596 0 0 1 .405-.899 1.523 1.523 0 0 1 .973-.485l.03-.003.027-.002.054-.004.216-.014a34.994 34.994 0 0 1 .998-.046 14.322 14.322 0 0 1-.34-.459l-.07-.099-.034-.05a.396.396 0 0 1-.077-.317.471.471 0 0 1 .518-.383.364.364 0 0 1 .235.124.558.558 0 0 1 .034.043c0 .002.002.003.003.005l.036.048.07.098a10.577 10.577 0 0 1 .627.967 59.921 59.921 0 0 1 1.337-.001 10.794 10.794 0 0 1 .352-.57c.089-.134.18-.266.274-.396l.07-.098.036-.048.004-.005a.392.392 0 0 1 .27-.167.47.47 0 0 1 .516.383.387.387 0 0 1-.044.267c-.009.016-.02.03-.03.046l-.003.004-.034.05-.07.099c-.093.13-.187.26-.285.387l-.037.047-.016.022a29.339 29.339 0 0 1 1.275.067h.013l.015.002.03.003.06.008h.002l.03.004.03.006.061.013a1.517 1.517 0 0 1 .655.336 1.564 1.564 0 0 1 .512.91l.005.03.005.032.004.031.002.017.001.011.006.055.023.22Zm-.807 3.048c.016-.286.025-.57.027-.844a20.684 20.684 0 0 0-.115-2.325l-.006-.055.001.005-.002-.016-.005-.038-.005-.03-.004-.014a.668.668 0 0 0-.491-.502l-.011-.003-.028-.005-.03-.004-.03-.003-.013-.001c-.26-.02-.534-.036-.838-.05a42.28 42.28 0 0 0-1.999-.04 50.278 50.278 0 0 0-2.237.049l-.069.003c-.11.006-.232.012-.349.02l-.214.014-.069.005-.028.003a.65.65 0 0 0-.524.383.684.684 0 0 0-.056.207c-.061.57-.1 1.14-.116 1.694a18.84 18.84 0 0 0 .078 2.32l.004.043.005.04.009.046.001.006a.681.681 0 0 0 .503.51l.032.006.03.005.033.003.04.003c.274.024.556.044.838.06a36.307 36.307 0 0 0 3.377.032c.281-.01.565-.025.842-.042l.016-.001c.125-.008.268-.017.404-.028l.214-.017.096-.008.044-.004.026-.004a.66.66 0 0 0 .366-.197l.003-.003a.676.676 0 0 0 .182-.39l.001-.015.01-.086.01-.106.001-.009.018-.198c.01-.138.02-.28.028-.419Zm-.836-1.928c.034.018.067.036.102.057.121.072.141.205.097.346-.052.164-.22.307-.38.254l-.007-.002a3.227 3.227 0 0 1-.102-.036l-.026-.01a4.786 4.786 0 0 1-.077-.03l-.01-.004-.091-.038a3.718 3.718 0 0 1-.102-.042l-.102-.043a9.26 9.26 0 0 0-.101-.044l-.203-.086a35.652 35.652 0 0 0-.407-.166l-.204-.081a6.73 6.73 0 0 0-.101-.04l-.102-.04-.008-.003c-.141-.057-.147-.236-.104-.387.045-.162.174-.271.332-.225.074.022.148.044.22.067l.11.035.108.037c.144.05.287.103.428.159l.186.074.025.01.04.017c.057.024.114.047.17.072a4.919 4.919 0 0 1 .309.149ZM7.1 7.167l-.008.004a6.199 6.199 0 0 1-.098.038l-.106.041-.203.081c-.136.055-.272.11-.407.167l-.203.086-.09.038-.113.049a3.718 3.718 0 0 1-.102.042l-.071.03a6.34 6.34 0 0 0-.133.051 2.305 2.305 0 0 1-.102.037l-.007.002c-.16.053-.328-.09-.38-.254-.045-.142-.024-.274.097-.347a2.342 2.342 0 0 1 .203-.11 4.748 4.748 0 0 1 .39-.173l.027-.01a11.573 11.573 0 0 1 .64-.244l.108-.037.11-.036.219-.067c.159-.046.287.063.333.225.042.152.037.33-.104.387Zm2.087 1.03c-.07-.014-.135.018-.155.088l-.004.012-.006.022-.007.023a1.29 1.29 0 0 1-.146.313.48.48 0 0 1-.116.12.237.237 0 0 1-.13.041.318.318 0 0 1-.146-.03.5.5 0 0 1-.137-.101 1.07 1.07 0 0 1-.19-.283l-.01-.022-.01-.02-.005-.012a.139.139 0 0 0-.13-.084.14.14 0 0 0-.13.084l-.006.012-.008.02-.01.022a1.56 1.56 0 0 1-.074.132.849.849 0 0 1-.117.151.5.5 0 0 1-.137.1.316.316 0 0 1-.146.031.24.24 0 0 1-.13-.041.47.47 0 0 1-.116-.12 1.188 1.188 0 0 1-.13-.265l-.014-.04-.002-.008-.008-.023-.006-.022-.003-.012c-.02-.07-.084-.102-.156-.088-.075.015-.13.078-.115.155l.004.018.003.016.008.031a1.384 1.384 0 0 0 .172.412c.049.075.112.147.195.204a.547.547 0 0 0 .288.095.607.607 0 0 0 .286-.062.757.757 0 0 0 .222-.167c.05-.055.093-.113.13-.173.037.06.08.118.13.173.06.065.135.124.222.167a.61.61 0 0 0 .285.062.53.53 0 0 0 .289-.095.73.73 0 0 0 .195-.204 1.206 1.206 0 0 0 .156-.35l.016-.062.007-.03.004-.017.003-.018c.015-.077-.039-.14-.115-.155Z"></path></svg>'},76497:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 25"><path fill="#fff" d="M13.925 3.415a.798.798 0 0 0-.683.254c-.605.708-.744 1.748-1.198 2.553-.598 1.059-1.156 1.7-1.843 2.302-.565.496-1.138.828-1.701.983v10.587a107.173 107.173 0 0 0 7.937-.11c.91-.046 1.7-.496 2.113-1.229.577-1.028 1.29-2.535 1.721-4.31.402-1.654.586-3.014.668-3.973.038-.444-.313-.852-.859-.852h-4.982a.75.75 0 0 1-.623-.332c-.17-.255-.135-.544-.028-.813.229-.584.529-1.456.647-2.248.117-.783.088-1.411-.218-1.993-.33-.625-.704-.79-.95-.819ZM16.16 8.12h3.92c1.324 0 2.476 1.063 2.354 2.48a28.047 28.047 0 0 1-.705 4.2c-.473 1.946-1.25 3.583-1.872 4.69-.698 1.242-1.992 1.923-3.343 1.993-1.304.067-3.236.14-5.514.14-2.207 0-4.223-.069-5.652-.134-1.608-.073-2.957-1.267-3.13-2.904A38.233 38.233 0 0 1 2 14.622c0-1.369.087-2.61.19-3.595.179-1.722 1.656-2.907 3.318-2.907H7.75c.319 0 .814-.155 1.462-.724.563-.493 1.013-1.003 1.526-1.912.515-.913.668-1.976 1.364-2.79a2.297 2.297 0 0 1 1.997-.769c.826.097 1.588.632 2.103 1.61.521.987.514 1.988.376 2.913-.087.582-.265 1.2-.418 1.672ZM7 20.053V9.62H5.508c-.964 0-1.734.672-1.826 1.562a33.591 33.591 0 0 0-.182 3.44c0 1.428.1 2.766.21 3.805.091.864.803 1.523 1.706 1.564.468.021 1.001.043 1.584.062Z"></path></svg>'},73322:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 24 24"><path fill="#FFF" fill-rule="nonzero" d="M18.75 3c2.1 0 3.75 1.65 3.75 3.75v10.5c0 2.1-1.65 3.75-3.75 3.75H5.25c-2.1 0-3.75-1.65-3.75-3.75V6.75C1.5 4.65 3.15 3 5.25 3Zm0 1.5H5.25C3.975 4.5 3 5.475 3 6.75v10.5c0 1.275.975 2.25 2.25 2.25h13.5c1.275 0 2.25-.975 2.25-2.25V6.75c0-1.275-.975-2.25-2.25-2.25ZM5.925 7.65v5.225c.007 1.166.14 2.425 1.95 2.425 1.875 0 1.95-1.35 1.95-2.55v-5.1h1.425v5.625c0 2.25-1.35 3.375-3.45 3.375s-3.3-1.05-3.3-3.3v-5.7h1.425Zm10.725 0c2.4 0 2.85 1.65 2.85 2.7 0 1.125-.45 2.7-2.85 2.7H14.4v3.45h-1.425V7.65ZM16.575 9H14.4v2.85h2.175c.675 0 1.425-.375 1.425-1.425C18 9.3 17.325 9 16.575 9Z" opacity=".6"></path></svg>'},62363:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 14 14"><path fill="#61666D" fill-rule="evenodd" d="M11.204 2.796a.583.583 0 0 1 0 .825L7.824 7l3.38 3.378a.583.583 0 1 1-.826.825L7 7.825l-3.378 3.378a.583.583 0 1 1-.825-.825L6.175 7l-3.38-3.378a.583.583 0 0 1 .826-.825L7 6.175l3.38-3.38a.583.583 0 0 1 .824 0Z" clip-rule="evenodd"></path></svg>'},59375:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 13"><path fill="#fff" d="M5.568 5.485a.627.627 0 0 1 .807.611v1.978l.023-.004a.363.363 0 0 1 .395.248.375.375 0 0 1-.237.474l-.121.034a.625.625 0 0 1-.81-.601V6.238l-.023.005c-.134.03-.33-.052-.395-.249a.375.375 0 0 1 .237-.474l.124-.035ZM6 3.875a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1Z"></path><path fill="#fff" d="M6 2.25a4.25 4.25 0 1 0 0 8.5 4.25 4.25 0 0 0 0-8.5ZM1 6.5a5 5 0 1 1 10 0 5 5 0 0 1-10 0Z"></path></svg>'},92565:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 16 16"><path d="M7.425 6.647a.835.835 0 0 1 1.075.815v2.637l.03-.006a.483.483 0 0 1 .528.331.5.5 0 0 1-.316.633l-.163.045A.833.833 0 0 1 7.5 10.3V7.651l-.03.006c-.18.04-.44-.07-.528-.331a.5.5 0 0 1 .317-.632l.166-.047ZM8 4.5a.667.667 0 1 1 0 1.333A.667.667 0 0 1 8 4.5Z"></path><path d="M8 2.333a5.667 5.667 0 1 0 0 11.334A5.667 5.667 0 0 0 8 2.333ZM1.333 8a6.667 6.667 0 1 1 13.334 0A6.667 6.667 0 0 1 1.333 8Z"></path></svg>'},48132:function(t){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" data-pointer="none" viewBox="0 0 44 16"><path d="M21.82 3.216h4.672v6.541h1.636V1.581h-7.944v8.176h1.636V3.216ZM17.741 1.476h-1.699l.425 1.48h-1.755v1.637h2.849l-.046.097c-.402.856-1.322 2.566-2.988 4.437v2.354a22.863 22.863 0 0 0 2.09-2.301v5.344h1.636V9.756h1.144V8.12h-1.993c1.421-2.043 1.94-3.556 1.946-3.58l.047-.118V2.958h-1.23l-.424-1.48-.002-.002Z"></path><path d="M25.859 9.756h-1.56c.437-1.566.673-3.32.74-5.349h-1.637c-.184 5.119-1.525 7.84-3.633 10.117h2.146a13.428 13.428 0 0 0 2.308-4.5v4.5h4.619v-1.636h-2.983V9.756ZM40.365 9.709l-1.056-.249v5.063h1.636v-3.026l.079.013c.982.17 1.982.256 2.975.26v-1.636a16.255 16.255 0 0 1-3.633-.427l-.001.002Z"></path><path d="M37.746 8.691h5.59v-7.11H30.97v7.11h4.493a7.397 7.397 0 0 1-4.4 1.449h-.753v1.628h.726a8.85 8.85 0 0 0 2.381-.326c-.242 1.153-.736 2.216-1.445 3.083h1.981a9.22 9.22 0 0 0 1.221-3.784 8.822 8.822 0 0 0 2.573-2.052v.002ZM41.7 7.055h-2.83l1.283-2.647H36.545l.581-1.192H41.7v3.839Zm-9.095-3.84h2.853l-1.305 2.693h3.603l-.03.063a7.398 7.398 0 0 1-.647 1.082h-4.472V3.216h-.002ZM7.349 1.476H5.577v3.07H0v1.772h5.419c-.352 1.875-1.49 5.062-5.15 6.352v1.856c3.54-1.018 5.31-3.455 6.195-5.624.887 2.168 2.657 4.605 6.197 5.624v-1.857c-2.671-.94-3.997-2.892-4.658-4.605H6.771c.208-.646.342-1.245.428-1.745h5.732V4.548H7.35V1.476h-.002Z"></path></svg>'},9339:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M12.781 4.285A.75.75 0 0 1 14 4.871V19.13a.75.75 0 0 1-1.219.586l-4.24-3.393a3.75 3.75 0 0 0-2.343-.822H4.38c-.343 0-.583-.219-.628-.482A18.013 18.013 0 0 1 3.5 12c0-1.246.13-2.297.253-3.018.045-.263.285-.482.628-.482h1.817a3.75 3.75 0 0 0 2.342-.822l4.242-3.393Zm2.719.586c0-1.886-2.182-2.936-3.656-1.757l-4.24 3.393A2.25 2.25 0 0 1 6.197 7H4.38c-.996 0-1.925.671-2.106 1.728A19.516 19.516 0 0 0 2 12c0 1.347.14 2.485.275 3.272C2.456 16.328 3.385 17 4.38 17h1.817c.51 0 1.006.174 1.405.493l4.241 3.393c1.474 1.179 3.656.129 3.656-1.757V4.87Zm7.78 5.16a.75.75 0 1 0-1.06-1.061l-1.97 1.97-1.97-1.97a.75.75 0 1 0-1.06 1.06L19.19 12l-1.97 1.97a.75.75 0 1 0 1.06 1.06l1.97-1.97 1.97 1.97a.75.75 0 1 0 1.06-1.06L21.31 12l1.97-1.97Z" clip-rule="evenodd"></path></svg>'},1811:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 24 24"><path fill="#fff" fill-rule="evenodd" d="M12.781 4.285A.75.75 0 0 1 14 4.871V19.13a.75.75 0 0 1-1.219.586l-4.24-3.393a3.75 3.75 0 0 0-2.343-.822H4.38c-.343 0-.583-.219-.628-.482A18.013 18.013 0 0 1 3.5 12c0-1.246.13-2.297.253-3.018.045-.263.285-.482.628-.482h1.817a3.75 3.75 0 0 0 2.342-.822l4.242-3.393Zm2.719.586c0-1.886-2.182-2.936-3.656-1.757l-4.24 3.393A2.25 2.25 0 0 1 6.197 7H4.38c-.996 0-1.925.671-2.106 1.728A19.516 19.516 0 0 0 2 12c0 1.347.14 2.485.275 3.272C2.456 16.328 3.385 17 4.38 17h1.817c.51 0 1.006.174 1.405.493l4.241 3.393c1.474 1.179 3.656.129 3.656-1.757V4.87Zm4.56.565a.75.75 0 0 1 1.057.084 10.002 10.002 0 0 1 0 12.96.75.75 0 0 1-1.141-.974 8.502 8.502 0 0 0 0-11.012.75.75 0 0 1 .084-1.058Zm-2.815 2.808a.75.75 0 0 1 1.05.147 6.003 6.003 0 0 1 0 7.216.75.75 0 1 1-1.198-.903 4.504 4.504 0 0 0 0-5.41.75.75 0 0 1 .148-1.05Z" clip-rule="evenodd"></path></svg>'},54347:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M15 11a3.998 3.998 0 0 0-2-3.465v2.636l1.865 1.865A4.02 4.02 0 0 0 15 11z"></path><path d="M13.583 5.583A5.998 5.998 0 0 1 17 11a6 6 0 0 1-.585 2.587l1.477 1.477a8.001 8.001 0 0 0-3.446-11.286 1 1 0 0 0-.863 1.805zM18.778 18.778l-2.121-2.121-1.414-1.414-1.415-1.415L13 13l-2-2-3.889-3.889-3.889-3.889a.999.999 0 1 0-1.414 1.414L5.172 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39v-3.131l2.587 2.587-.01.005a1 1 0 0 0 .86 1.806c.215-.102.424-.214.627-.333l2.3 2.3a1.001 1.001 0 0 0 1.414-1.416zM11 5.04a.5.5 0 0 0-.813-.39L8.682 5.854 11 8.172V5.04z"></path></svg>'},14753:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M10.188 4.65 6 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39V5.04a.498.498 0 0 0-.812-.39zM14.446 3.778a1 1 0 0 0-.862 1.804 6.002 6.002 0 0 1-.007 10.838 1 1 0 0 0 .86 1.806A8.001 8.001 0 0 0 19 11a8.001 8.001 0 0 0-4.554-7.222z"></path><path d="M15 11a3.998 3.998 0 0 0-2-3.465v6.93A3.998 3.998 0 0 0 15 11z"></path></svg>'},82087:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 13"><g stroke="#fff" stroke-width="1.2" opacity=".8"><circle cx="6" cy="6.5" r="5.4"></circle><path stroke-linecap="round" stroke-linejoin="round" d="M6 3.5v.454c0 1.63.647 3.193 1.8 4.346v0"></path></g></svg>'},55801:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" fill="none" data-pointer="none" viewBox="0 0 12 12"><path fill="#fff" fill-opacity=".6" d="M4.271 2.021a.5.5 0 0 0 0 .708l3.684 3.683a.125.125 0 0 1 0 .176L4.27 10.271a.5.5 0 1 0 .708.707l3.683-3.683c.439-.439.439-1.151 0-1.59L4.979 2.02a.5.5 0 0 0-.708 0Z"></path></svg>'},3341:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M18 4H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-8.404 7.359-2.828 2.828a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707l1.768-1.768-1.768-1.767a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0l2.828 2.828a.5.5 0 0 1 0 .707zm7.05 1.414a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0l-2.828-2.828a.5.5 0 0 1 0-.707l2.828-2.828a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1 0 .707l-1.768 1.768 1.768 1.767z"></path></svg>'},53185:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" data-pointer="none" style="enable-background:new 0 0 22 22" viewBox="0 0 22 22"><path d="M18 4H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-9.404 8.773a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0l-2.828-2.828a.5.5 0 0 1 0-.707l2.828-2.828a.5.5 0 0 1 .707 0l.707.707a.5.5 0 0 1 0 .707l-1.768 1.768 1.768 1.767zm9.05-1.414-2.828 2.828a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707l1.768-1.768-1.768-1.768a.5.5 0 0 1 0-.707l.707-.707a.5.5 0 0 1 .707 0l2.828 2.828a.502.502 0 0 1 0 .708z"></path></svg>'},97294:function(t){"use strict";t.exports=function(t,e,i,n){var r=self||window;try{try{var o;try{o=new r.Blob([t])}catch(e){(o=new(r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder)).append(t),o=o.getBlob()}var a=r.URL||r.webkitURL,s=a.createObjectURL(o),l=new r[e](s,i);return a.revokeObjectURL(s),l}catch(n){return new r[e]("data:application/javascript,".concat(encodeURIComponent(t)),i)}}catch(t){if(!n)throw Error("Inline worker is not supported");return new r[e](n,i)}}},40393:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAwFBMVEUAAAAGBgavr69EREQUFBQ1NTUODg7t7e3FxcV0dHRbW1sAAAAAAAAAAAD+/v77+/v4+Pj09PTj4+P8/PzV1dWpqamSkpIhISH19fXX19fLy8ulpaWdnZ1kZGRVVVUsLCz6+vrm5uba2tq9vb20tLSsrKyXl5eMjIx+fn54eHhsbGxpaWk+Pj4AAAAAAADv7+/e3t7AwMC3t7ehoaFLS0vo6OjR0dHOzs7CwsKCgoKCgoJiYmLp6enMzMywsLD////DVMIGAAAAP3RSTlOZmtOrnqec8927sopkEf38+ffu/eXPxqH45+DOyrWwpPvv6NnV0cjEv724t6qPAPTr2tbNru/j4tvAv7Tw4dTgAD9iAAABpElEQVRIx+ST13KCUBiEDyCCBRBQsaHGHrvp/Xv/twpDTBgRonjr3u0w38zu8h+xNsolkVGlsrEWxkpcoJUhyuISBVjpIi7Arli9bmE6mb0rUhZI6tZu2KuxK+TO5RYOB2pM8udgShWASlOXa8MnDYDN7DRX6AOVkf/bTemEqe9OdW0DluwdNH7VgKZ3knNUEVN+CGz/K3oLtJJGrJugp3MPFrSSy7wBnVRwAE7aTxuDq6YNCpaaehRN2KV8eoRaNMh8GesBKIlgEewoaAtTPoytw0gIXz4KJYMcORfQ5n/Wy4kuaMKHzzioQTFyhNJ7P27ZMNuSDb4Noxingi3FQSpTab8bWx0+YOMdV6yKIxAGSuCkZ6Dv9sEsJlzNSxKIex/ejgUkXkEdxokgLMJn4gBUpcygyH+BHYyVMWo4w/eMwXFIfOCgAVKiAxMQTgCYAH+S44MkOXRAOJGbYyRyHXU24rIVWgjqCNgbkZWRRYA+JrfoYKaksKK8eKS8QCZcBVBe6VBezRGuWGlalSMaD2KQxsMooCMgu6FLdtOa7MY82d0HAP3jZ1lFdjimAAAAAElFTkSuQmCC"},87281:function(t){"use strict"
;t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAANlBMVEUAAAD8/PxpaWlfX1/9/f1ycnIAAAAAAAAAAAAAAAAAAAD09PTr6+vv7+/h4eFjY2NZWVn///+5pCBCAAAAEXRSTlOZ/Lez/bqKZBGPAPfy9ey1sk5dq9MAAACBSURBVEjH7dc7FsQgDENRQSZAAvl4/5udUrVU5vj1t3El4xy9Qaz1cWIcMDoGOqw6mgcbsux7Peuqjqsl4jJdLNOVx3Q1neH2OavjMCN+u+GwglJxeAuldpeNUnGUqqOUHSWdKOlESSdKOknSqZJO673vDVn2jZrJ7Gltj3n7ffgDLGYI2l1NOaQAAAAASUVORK5CYII="},66370:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg=="},71964:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAC0CAYAAABVEkZPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACaSURBVHgBlZLbDsQgCETLYP//i5UVtkYhuG59IFzODGnKdZ0eQWMSaFfST2TL0bmHXS+bhoBzD2+ybMAJgp0WiXb2ghWDmYFaa8ZBH6O1Nv1KwrGB32zAnLg8nGXDau4ti4z60+yGiFhZNAvOIdzKQbmy9MIX2V/t3HM+HbZSNAt3JcgOzrQmc/A6cIhEgwH/v9L1xG8j77coPnsUOUD2dBlAAAAAAElFTkSuQmCC"},42059:function(t){"use strict"
;t.exports="data:image/gif;base64, "
},32957:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABHCAMAAAB4UkqjAAAAh1BMVEUAAADd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d0UCIZXAAAALHRSTlMAoJDx4OYL/DcGF+6+JNi4ycSIT2k6LPeWfRzTVPXPszEQrV0hpo12cEZAZFpRNIQAAAJVSURBVFjD7dbZcpswGIbhHwwSi81q8Ib33fnu//oatRIpmliDhQ/aaZ+TKInnjVgkhb4RJMhP9Fzo8PiD+vEA+JPnqS0+1dRHBJhibAzh2HNeekxP9Z8XBSMZM6SmRBYx65QeM6XsY3rKPqanLGMWqeDmOh0b/Io9+YHi3gKtdExgLznSlyjFMGnUphIMlcgY22C4DSPBxTu4IrXDe+yI6IDWbPSqGVoHoohDyip6XZVB4hFN1TgPyUaYQ5rSWQ0nZGcC6UyJukKypa4yIXX3HLLlqCdHX++HLRfS/9bbWvvHLSLNR3N6tRXdFwdxejekiYF4fDnWYa/WqSm2PqRCSy0hrbP5RxAaW8141N17tVbZ+S1fFYbWFF2+1lqg62BoBdAsqWOLroWhxTh+M8vmWuuaxp1WaWjRSn43yl35sHTLUjxiaWlqnYE4LZoJme3v13MibqepFZRL6otV5V+/Hv+xVvi+FsvZG1qh/LQ7uFXnF/HlwcEfYlDktW2r5EARUiXWc1xRWAC8tGwxsdJ9dcRnYrddMdtrjDZyAy3kXrSJ7O89u8zEZAIKxBRnFzbonWD3ZkfCrrmzP+6979nicjAnW3NZ4OS1R6GtVBa8drTek539up3NAgMvcv51WNZQitCiFBZQaqIMSrx1XrWNoWTy/w1r+hk+xjuMSVjGGC6WZ3S1xlDriqTKxzB+Ra3I4bDHne62drqmied57QR9z0D94dHnOEmvJ/pWAMm4ovL2TTcJ5cRyMlHrbkdG5c/5r82fYqt+K/iR89m2JrP9PEZyI80PsPxVT0P3FAEAAAAASUVORK5CYII="},1030:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBHllLFKw1AUhhutraXUUIJTEcEncCkIgrPP08XNwc1XcHArOCtF8SH6BO3YQAstNIGibUz9v/ReqG1iOrh54M859z///XNPElIo/LtwfpnY9si2XqoGhM2rVc4Vg/3RaHS1WCxe4jj2ATUcPcHeJMdqJSwGQXCzXC4jYTMienIp7mKanKzX613KJdKp5v1+/77Val0Aajh6aGSYe1IMS7PZ7JljYaB1Qzg2aMDRQ4NW+DH6noj1oFkslUrnkO12+0kpFAKD0HAFo9kaG2I9kpEdx6lCuq67UPoUyEnU6/WIwmhyR0ZQC8PwnbGGw+Gd1mWBSUAZjh4arWsCezKDTdVOp3OtPXr+8Xw6nd52u91TQG1eSowGrcCezEheirqe7/sPnCQt6KERtl7KpnPyDEVWPc9rTCaTt01DOHpohNxnyA0wPRCOms3m2Xg8frWm1HD0jAbtTmFHdyuVyslgMHgE1NrtCpmjZt0BHjDSoYFS4cPgS3n9R0EviSxDmraHqf00MAJE6t/GblpJ0q+bmlSj9K1/wH4DFyEGzZj/08QAAAAASUVORK5CYII="},65115:function(t){"use strict";t.exports='data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 0 0 5.7 7.11L10.59 12l-4.89 4.89a1 1 0 1 0 1.41 1.41L12 13.41l4.89 4.89a1 1 0 0 0 1.41-1.41L13.41 12l4.89-4.89a1 1 0 0 0 0-1.4z"/></svg>'},18684:function(){},70811:function(t,e,i){"use strict";function n(t,e){return function(){return t.apply(e,arguments)}}i.d(e,{Z:function(){return Vt}});const{toString:r}=Object.prototype,{getPrototypeOf:o}=Object,a=(s=Object.create(null),t=>{const e=r.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())});var s;const l=t=>(t=t.toLowerCase(),e=>a(e)===t),A=t=>e=>typeof e===t,{isArray:c}=Array,h=A("undefined");const d=l("ArrayBuffer");const u=A("string"),p=A("function"),g=A("number"),f=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==a(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=l("Date"),b=l("File"),v=l("Blob"),E=l("FileList"),I=l("URLSearchParams");function C(t,e,{allOwnKeys:i=!1}={}){if(null==t)return;let n,r;if("object"!=typeof t&&(t=[t]),c(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{const r=i?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let a;for(n=0;n<o;n++)a=r[n],e.call(null,t[a],a,t)}}function B(t,e){e=e.toLowerCase();const i=Object.keys(t);let n,r=i.length;for(;r-- >0;)if(n=i[r],e===n.toLowerCase())return n;return null}const w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,x=t=>!h(t)&&t!==w;const Q=(S="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>S&&t instanceof S);var S;const k=l("HTMLFormElement"),D=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),_=l("RegExp"),R=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),n={};C(i,((i,r)=>{!1!==e(i,r,t)&&(n[r]=i)})),Object.defineProperties(t,n)},M="abcdefghijklmnopqrstuvwxyz",T="0123456789",F={DIGIT:T,ALPHA:M,ALPHA_DIGIT:M+M.toUpperCase()+T};var L={isArray:c,isArrayBuffer:d,isBuffer:function(t){return null!==t&&!h(t)&&null!==t.constructor&&!h(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||r.call(t)===e||p(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&d(t.buffer),e},isString:u,isNumber:g,isBoolean:t=>!0===t||!1===t,isObject:f,isPlainObject:m,isUndefined:h,isDate:y,isFile:b,isBlob:v,isRegExp:_,isFunction:p,isStream:t=>f(t)&&p(t.pipe),isURLSearchParams:I,isTypedArray:Q,isFileList:E,forEach:C,merge:function t(){const{caseless:e}=x(this)&&this||{},i={},n=(n,r)=>{const o=e&&B(i,r)||r;m(i[o])&&m(n)?i[o]=t(i[o],n):m(n)?i[o]=t({},n):c(n)?i[o]=n.slice():i[o]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&C(arguments[t],n);return i},extend:(t,e,i,{allOwnKeys:r}={})=>(C(e,((e,r)=>{i&&p(e)?t[r]=n(e,i):t[r]=e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,e,i,n)=>{let r,a,s;const l={};if(e=e||{},null==t)return e;do{for(r=Object.getOwnPropertyNames(t),a=r.length;a-- >0;)s=r[a],n&&!n(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==i&&o(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:l,endsWith:(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const n=t.indexOf(e,i);return-1!==n&&n===i},toArray:t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!g(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},forEachEntry:(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=i.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},matchAll:(t,e)=>{let i;const n=[];for(;null!==(i=t.exec(e));)n.push(i);return n},isHTMLForm:k,hasOwnProperty:D,hasOwnProp:D,reduceDescriptors:R,freezeMethods:t=>{R(t,((e,i)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=t[i];p(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},toObjectSet:(t,e)=>{const i={},n=t=>{t.forEach((t=>{i[t]=!0}))};return c(t)?n(t):n(String(t).split(e)),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,i){return e.toUpperCase()+i})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:B,global:w,isContextDefined:x,ALPHABET:F,generateString:(t=16,e=F.ALPHA_DIGIT)=>{let i="";const{length:n}=e;for(;t--;)i+=e[Math.random()*n|0];return i},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),i=(t,n)=>{if(f(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const r=c(t)?[]:{};return C(t,((t,e)=>{const o=i(t,n+1);!h(o)&&(r[e]=o)})),e[n]=void 0,r}}return t};return i(t,0)}};function N(t,e,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}L.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const P=N.prototype,U={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{U[t]={value:t}})),Object.defineProperties(N,U),Object.defineProperty(P,"isAxiosError",{value:!0}),N.from=(t,e,i,n,r,o)=>{const a=Object.create(P)
;return L.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),N.call(a,t.message,e,i,n,r),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var O=N;function G(t){return L.isPlainObject(t)||L.isArray(t)}function H(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function V(t,e,i){return t?t.concat(e).map((function(t,e){return t=H(t),!i&&e?"["+t+"]":t})).join(i?".":""):e}const Y=L.toFlatObject(L,{},null,(function(t){return/^is[A-Z]/.test(t)}));var z=function(t,e,i){if(!L.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(i=L.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!L.isUndefined(e[t])}))).metaTokens,r=i.visitor||A,o=i.dots,a=i.indexes,s=(i.Blob||"undefined"!=typeof Blob&&Blob)&&L.isSpecCompliantForm(e);if(!L.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(L.isDate(t))return t.toISOString();if(!s&&L.isBlob(t))throw new O("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(t)||L.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function A(t,i,r){let s=t;if(t&&!r&&"object"==typeof t)if(L.endsWith(i,"{}"))i=n?i:i.slice(0,-2),t=JSON.stringify(t);else if(L.isArray(t)&&function(t){return L.isArray(t)&&!t.some(G)}(t)||(L.isFileList(t)||L.endsWith(i,"[]"))&&(s=L.toArray(t)))return i=H(i),s.forEach((function(t,n){!L.isUndefined(t)&&null!==t&&e.append(!0===a?V([i],n,o):null===a?i:i+"[]",l(t))})),!1;return!!G(t)||(e.append(V(r,i,o),l(t)),!1)}const c=[],h=Object.assign(Y,{defaultVisitor:A,convertValue:l,isVisitable:G});if(!L.isObject(t))throw new TypeError("data must be an object");return function t(i,n){if(!L.isUndefined(i)){if(-1!==c.indexOf(i))throw Error("Circular reference detected in "+n.join("."));c.push(i),L.forEach(i,(function(i,o){!0===(!(L.isUndefined(i)||null===i)&&r.call(e,i,L.isString(o)?o.trim():o,n,h))&&t(i,n?n.concat(o):[o])})),c.pop()}}(t),e};function W(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Z(t,e){this._pairs=[],t&&z(t,this,e)}const j=Z.prototype;j.append=function(t,e){this._pairs.push([t,e])},j.toString=function(t){const e=t?function(e){return t.call(this,e,W)}:W;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var q=Z;function J(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function K(t,e,i){if(!e)return t;const n=i&&i.encode||J,r=i&&i.serialize;let o;if(o=r?r(e,i):L.isURLSearchParams(e)?e.toString():new q(e,i).toString(n),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var X=class{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){L.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tt="undefined"!=typeof URLSearchParams?URLSearchParams:q,et="undefined"!=typeof FormData?FormData:null;const it=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),nt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var rt={isBrowser:!0,classes:{URLSearchParams:tt,FormData:et,Blob:Blob},isStandardBrowserEnv:it,isStandardBrowserWebWorkerEnv:nt,protocols:["http","https","file","blob","url","data"]};var ot=function(t){function e(t,i,n,r){let o=t[r++];const a=Number.isFinite(+o),s=r>=t.length;if(o=!o&&L.isArray(n)?n.length:o,s)return L.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!a;n[o]&&L.isObject(n[o])||(n[o]=[]);return e(t,i,n[o],r)&&L.isArray(n[o])&&(n[o]=function(t){const e={},i=Object.keys(t);let n;const r=i.length;let o;for(n=0;n<r;n++)o=i[n],e[o]=t[o];return e}(n[o])),!a}if(L.isFormData(t)&&L.isFunction(t.entries)){const i={};return L.forEachEntry(t,((t,n)=>{e(function(t){return L.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,i,0)})),i}return null};const at={"Content-Type":void 0};const st={transitional:$,adapter:["xhr","http"],transformRequest:[function(t,e){const i=e.getContentType()||"",n=i.indexOf("application/json")>-1,r=L.isObject(t);r&&L.isHTMLForm(t)&&(t=new FormData(t));if(L.isFormData(t))return n&&n?JSON.stringify(ot(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return z(t,new rt.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,n){return rt.isNode&&L.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=L.isFileList(t))||i.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return z(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||n?(e.setContentType("application/json",!1),function(t,e,i){if(L.isString(t))try{return(e||JSON.parse)(t),L.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(i||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||st.transitional,i=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&L.isString(t)&&(i&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(i){if("SyntaxError"===t.name)throw O.from(t,O.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};L.forEach(["delete","get","head"],(function(t){st.headers[t]={}})),L.forEach(["post","put","patch"],(function(t){st.headers[t]=L.merge(at)}));var lt=st;const At=L.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ct=Symbol("internals");function ht(t){return t&&String(t).trim().toLowerCase()}function dt(t){return!1===t||null==t?t:L.isArray(t)?t.map(dt):String(t)}function ut(t,e,i,n,r){return L.isFunction(n)?n.call(this,e,i):(r&&(e=i),L.isString(e)?L.isString(n)?-1!==e.indexOf(n):L.isRegExp(n)?n.test(e):void 0:void 0)}class pt{constructor(t){t&&this.set(t)}set(t,e,i){const n=this;function r(t,e,i){const r=ht(e);if(!r)throw new Error("header name must be a non-empty string");const o=L.findKey(n,r);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||e]=dt(t))}const o=(t,e)=>L.forEach(t,((t,i)=>r(t,i,e)));return L.isPlainObject(t)||t instanceof this.constructor?o(t,e):L.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?o((t=>{const e={};let i,n,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),i=t.substring(0,r).trim().toLowerCase(),n=t.substring(r+1).trim(),!i||e[i]&&At[i]||("set-cookie"===i?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)})),e})(t),e):null!=t&&r(e,t,i),this}get(t,e){if(t=ht(t)){const i=L.findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=i.exec(t);)e[n[1]]=n[2];return e}(t);if(L.isFunction(e))return e.call(this,t,i);if(L.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ht(t)){const i=L.findKey(this,t);return!(!i||void 0===this[i]||e&&!ut(0,this[i],i,e))}return!1}
delete(t,e){const i=this;let n=!1;function r(t){if(t=ht(t)){const r=L.findKey(i,t);!r||e&&!ut(0,i[r],r,e)||(delete i[r],n=!0)}}return L.isArray(t)?t.forEach(r):r(t),n}clear(t){const e=Object.keys(this);let i=e.length,n=!1;for(;i--;){const r=e[i];t&&!ut(0,this[r],r,t,!0)||(delete this[r],n=!0)}return n}normalize(t){const e=this,i={};return L.forEach(this,((n,r)=>{const o=L.findKey(i,r);if(o)return e[o]=dt(n),void delete e[r];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,i)=>e.toUpperCase()+i))}(r):String(r).trim();a!==r&&delete e[r],e[a]=dt(n),i[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return L.forEach(this,((i,n)=>{null!=i&&!1!==i&&(e[n]=t&&L.isArray(i)?i.join(", "):i)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach((t=>i.set(t))),i}static accessor(t){const e=(this[ct]=this[ct]={accessors:{}}).accessors,i=this.prototype;function n(t){const n=ht(t);e[n]||(!function(t,e){const i=L.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+i,{value:function(t,i,r){return this[n].call(this,e,t,i,r)},configurable:!0})}))}(i,t),e[n]=!0)}return L.isArray(t)?t.forEach(n):n(t),this}}pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.freezeMethods(pt.prototype),L.freezeMethods(pt);var gt=pt;function ft(t,e){const i=this||lt,n=e||i,r=gt.from(n.headers);let o=n.data;return L.forEach(t,(function(t){o=t.call(i,o,r.normalize(),e?e.status:void 0)})),r.normalize(),o}function mt(t){return!(!t||!t.__CANCEL__)}function yt(t,e,i){O.call(this,null==t?"canceled":t,O.ERR_CANCELED,e,i),this.name="CanceledError"}L.inherits(yt,O,{__CANCEL__:!0});var bt=yt;var vt=rt.isStandardBrowserEnv?{write:function(t,e,i,n,r,o){const a=[];a.push(t+"="+encodeURIComponent(e)),L.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),L.isString(n)&&a.push("path="+n),L.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Et(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var It=rt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let i;function n(i){let n=i;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return i=n(window.location.href),function(t){const e=L.isString(t)?n(t):t;return e.protocol===i.protocol&&e.host===i.host}}():function(){return!0};var Ct=function(t,e){t=t||10;const i=new Array(t),n=new Array(t);let r,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),A=n[a];r||(r=l),i[o]=s,n[o]=l;let c=a,h=0;for(;c!==o;)h+=i[c++],c%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-r<e)return;const d=A&&l-A;return d?Math.round(1e3*h/d):void 0}};function Bt(t,e){let i=0;const n=Ct(50,250);return r=>{const o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-i,l=n(s);i=o;const A={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:r};A[e?"download":"upload"]=!0,t(A)}}const wt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,i){let n=t.data;const r=gt.from(t.headers).normalize(),o=t.responseType;let a;function s(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}L.isFormData(n)&&(rt.isStandardBrowserEnv||rt.isStandardBrowserWebWorkerEnv)&&r.setContentType(!1);let l=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",i=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(e+":"+i))}const A=Et(t.baseURL,t.url);function c(){if(!l)return;const n=gt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(t,e,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new O("Request failed with status code "+i.status,[O.ERR_BAD_REQUEST,O.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}((function(t){e(t),s()}),(function(t){i(t),s()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:n,config:t,request:l}),l=null}if(l.open(t.method.toUpperCase(),K(A,t.params,t.paramsSerializer),!0),l.timeout=t.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(i(new O("Request aborted",O.ECONNABORTED,t,l)),l=null)},l.onerror=function(){i(new O("Network Error",O.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||$;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new O(e,n.clarifyTimeoutError?O.ETIMEDOUT:O.ECONNABORTED,t,l)),l=null},rt.isStandardBrowserEnv){const e=(t.withCredentials||It(A))&&t.xsrfCookieName&&vt.read(t.xsrfCookieName);e&&r.set(t.xsrfHeaderName,e)}void 0===n&&r.setContentType(null),"setRequestHeader"in l&&L.forEach(r.toJSON(),(function(t,e){l.setRequestHeader(e,t)})),L.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),o&&"json"!==o&&(l.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&l.addEventListener("progress",Bt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Bt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{l&&(i(!e||e.type?new bt(null,t,l):e),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(A);h&&-1===rt.protocols.indexOf(h)?i(new O("Unsupported protocol "+h+":",O.ERR_BAD_REQUEST,t)):l.send(n||null)}))}};L.forEach(wt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var xt=t=>{t=L.isArray(t)?t:[t];const{length:e}=t;let i,n;for(let r=0;r<e&&(i=t[r],!(n=L.isString(i)?wt[i.toLowerCase()]:i));r++);if(!n){if(!1===n)throw new O(`Adapter ${i} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(L.hasOwnProp(wt,i)?`Adapter '${i}' is not available in the build`:`Unknown adapter '${i}'`)}if(!L.isFunction(n))throw new TypeError("adapter is not a function");return n};function Qt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new bt(null,t)}function St(t){Qt(t),t.headers=gt.from(t.headers),t.data=ft.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return xt(t.adapter||lt.adapter)(t).then((function(e){return Qt(t),e.data=ft.call(t,t.transformResponse,e),e.headers=gt.from(e.headers),e}),(function(e){return mt(e)||(Qt(t),e&&e.response&&(e.response.data=ft.call(t,t.transformResponse,e.response),e.response.headers=gt.from(e.response.headers))),Promise.reject(e)}))}const kt=t=>t instanceof gt?t.toJSON():t;function Dt(t,e){e=e||{};const i={};function n(t,e,i){return L.isPlainObject(t)&&L.isPlainObject(e)?L.merge.call({caseless:i},t,e):L.isPlainObject(e)?L.merge({},e):L.isArray(e)?e.slice():e}function r(t,e,i){return L.isUndefined(e)?L.isUndefined(t)?void 0:n(void 0,t,i):n(t,e,i)}function o(t,e){
if(!L.isUndefined(e))return n(void 0,e)}function a(t,e){return L.isUndefined(e)?L.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(i,r,o){return o in e?n(i,r):o in t?n(void 0,i):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>r(kt(t),kt(e),!0)};return L.forEach(Object.keys(t).concat(Object.keys(e)),(function(n){const o=l[n]||r,a=o(t[n],e[n],n);L.isUndefined(a)&&o!==s||(i[n]=a)})),i}const _t="1.3.3",Rt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Rt[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));const Mt={};Rt.transitional=function(t,e,i){function n(t,e){return"[Axios v1.3.3] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,r,o)=>{if(!1===t)throw new O(n(r," has been removed"+(e?" in "+e:"")),O.ERR_DEPRECATED);return e&&!Mt[r]&&(Mt[r]=!0,console.warn(n(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,o)}};var Tt={assertOptions:function(t,e,i){if("object"!=typeof t)throw new O("options must be an object",O.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;for(;r-- >0;){const o=n[r],a=e[o];if(a){const e=t[o],i=void 0===e||a(e,o,t);if(!0!==i)throw new O("option "+o+" must be "+i,O.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new O("Unknown option "+o,O.ERR_BAD_OPTION)}},validators:Rt};const Ft=Tt.validators;class Lt{constructor(t){this.defaults=t,this.interceptors={request:new X,response:new X}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Dt(this.defaults,e);const{transitional:i,paramsSerializer:n,headers:r}=e;let o;void 0!==i&&Tt.assertOptions(i,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),void 0!==n&&Tt.assertOptions(n,{encode:Ft.function,serialize:Ft.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),o=r&&L.merge(r.common,r[e.method]),o&&L.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=gt.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let A;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,h=0;if(!s){const t=[St.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),c=t.length,A=Promise.resolve(e);h<c;)A=A.then(t[h++],t[h++]);return A}c=a.length;let d=e;for(h=0;h<c;){const t=a[h++],e=a[h++];try{d=t(d)}catch(t){e.call(this,t);break}}try{A=St.call(this,d)}catch(t){return Promise.reject(t)}for(h=0,c=l.length;h<c;)A=A.then(l[h++],l[h++]);return A}getUri(t){return K(Et((t=Dt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}L.forEach(["delete","get","head","options"],(function(t){Lt.prototype[t]=function(e,i){return this.request(Dt(i||{},{method:t,url:e,data:(i||{}).data}))}})),L.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,r){return this.request(Dt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Lt.prototype[t]=e(),Lt.prototype[t+"Form"]=e(!0)}));var Nt=Lt;class Pt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const i=this;this.promise.then((t=>{if(!i._listeners)return;let e=i._listeners.length;for(;e-- >0;)i._listeners[e](t);i._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t,n,r){i.reason||(i.reason=new bt(t,n,r),e(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Pt((function(e){t=e})),cancel:t}}}var Ut=Pt;const Ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ot).forEach((([t,e])=>{Ot[e]=t}));var Gt=Ot;const Ht=function t(e){const i=new Nt(e),r=n(Nt.prototype.request,i);return L.extend(r,Nt.prototype,i,{allOwnKeys:!0}),L.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(Dt(e,i))},r}(lt);Ht.Axios=Nt,Ht.CanceledError=bt,Ht.CancelToken=Ut,Ht.isCancel=mt,Ht.VERSION=_t,Ht.toFormData=z,Ht.AxiosError=O,Ht.Cancel=Ht.CanceledError,Ht.all=function(t){return Promise.all(t)},Ht.spread=function(t){return function(e){return t.apply(null,e)}},Ht.isAxiosError=function(t){return L.isObject(t)&&!0===t.isAxiosError},Ht.mergeConfig=Dt,Ht.AxiosHeaders=gt,Ht.formToJSON=t=>ot(L.isHTMLForm(t)?new FormData(t):t),Ht.HttpStatusCode=Gt,Ht.default=Ht;var Vt=Ht},67056:function(t,e,i){"use strict";i.d(e,{Z:function(){return d}});var n=function(){this.__data__=[],this.size=0},r=i(56172);var o=function(t,e){for(var i=t.length;i--;)if((0,r.Z)(t[i][0],e))return i;return-1},a=Array.prototype.splice;var s=function(t){var e=this.__data__,i=o(e,t);return!(i<0)&&(i==e.length-1?e.pop():a.call(e,i,1),--this.size,!0)};var l=function(t){var e=this.__data__,i=o(e,t);return i<0?void 0:e[i][1]};var A=function(t){return o(this.__data__,t)>-1};var c=function(t,e){var i=this.__data__,n=o(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this};function h(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}h.prototype.clear=n,h.prototype.delete=s,h.prototype.get=l,h.prototype.has=A,h.prototype.set=c;var d=h},90649:function(t,e,i){"use strict";var n=i(52078),r=i(23449),o=(0,n.Z)(r.Z,"Map");e.Z=o},81607:function(t,e,i){"use strict";i.d(e,{Z:function(){return C}});var n=(0,i(52078).Z)(Object,"create");var r=function(){this.__data__=n?n(null):{},this.size=0};var o=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a=Object.prototype.hasOwnProperty;var s=function(t){var e=this.__data__;if(n){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return a.call(e,t)?e[t]:void 0},l=Object.prototype.hasOwnProperty;var A=function(t){var e=this.__data__;return n?void 0!==e[t]:l.call(e,t)};var c=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};function h(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}h.prototype.clear=r,h.prototype.delete=o,h.prototype.get=s,h.prototype.has=A,h.prototype.set=c;var d=h,u=i(67056),p=i(90649);var g=function(){this.size=0,this.__data__={hash:new d,map:new(p.Z||u.Z),string:new d}};var f=function(t){var e=typeof t
;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var m=function(t,e){var i=t.__data__;return f(e)?i["string"==typeof e?"string":"hash"]:i.map};var y=function(t){var e=m(this,t).delete(t);return this.size-=e?1:0,e};var b=function(t){return m(this,t).get(t)};var v=function(t){return m(this,t).has(t)};var E=function(t,e){var i=m(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this};function I(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}I.prototype.clear=g,I.prototype.delete=y,I.prototype.get=b,I.prototype.has=v,I.prototype.set=E;var C=I},16671:function(t,e,i){"use strict";i.d(e,{Z:function(){return d}});var n=i(67056);var r=function(){this.__data__=new n.Z,this.size=0};var o=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i};var a=function(t){return this.__data__.get(t)};var s=function(t){return this.__data__.has(t)},l=i(90649),A=i(81607);var c=function(t,e){var i=this.__data__;if(i instanceof n.Z){var r=i.__data__;if(!l.Z||r.length<199)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new A.Z(r)}return i.set(t,e),this.size=i.size,this};function h(t){var e=this.__data__=new n.Z(t);this.size=e.size}h.prototype.clear=r,h.prototype.delete=o,h.prototype.get=a,h.prototype.has=s,h.prototype.set=c;var d=h},73205:function(t,e,i){"use strict";var n=i(23449).Z.Symbol;e.Z=n},24942:function(t,e,i){"use strict";var n=i(23449).Z.Uint8Array;e.Z=n},46671:function(t,e){"use strict";e.Z=function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}},49446:function(t,e,i){"use strict";i.d(e,{Z:function(){return c}});var n=function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n},r=i(56492),o=i(21672),a=i(91673),s=i(40399),l=i(79176),A=Object.prototype.hasOwnProperty;var c=function(t,e){var i=(0,o.Z)(t),c=!i&&(0,r.Z)(t),h=!i&&!c&&(0,a.Z)(t),d=!i&&!c&&!h&&(0,l.Z)(t),u=i||c||h||d,p=u?n(t.length,String):[],g=p.length;for(var f in t)!e&&!A.call(t,f)||u&&("length"==f||h&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||(0,s.Z)(f,g))||p.push(f);return p}},36531:function(t,e,i){"use strict";i.d(e,{Z:function(){return d}});var n=i(73205),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=n.Z?n.Z.toStringTag:void 0;var l=function(t){var e=o.call(t,s),i=t[s];try{t[s]=void 0;var n=!0}catch(t){}var r=a.call(t);return n&&(e?t[s]=i:delete t[s]),r},A=Object.prototype.toString;var c=function(t){return A.call(t)},h=n.Z?n.Z.toStringTag:void 0;var d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?l(t):c(t)}},34889:function(t,e,i){"use strict";i.d(e,{Z:function(){return z}});var n=i(16671),r=i(48595);var o=function(t,e,i){"__proto__"==e&&r.Z?(0,r.Z)(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i},a=i(56172);var s=function(t,e,i){(void 0!==i&&!(0,a.Z)(t[e],i)||void 0===i&&!(e in t))&&o(t,e,i)};var l=function(t){return function(e,i,n){for(var r=-1,o=Object(e),a=n(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===i(o[l],l,o))break}return e}}(),A=i(23449),c="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=c&&"object"==typeof module&&module&&!module.nodeType&&module,d=h&&h.exports===c?A.Z.Buffer:void 0,u=d?d.allocUnsafe:void 0;var p=function(t,e){if(e)return t.slice();var i=t.length,n=u?u(i):new t.constructor(i);return t.copy(n),n},g=i(24942);var f=function(t){var e=new t.constructor(t.byteLength);return new g.Z(e).set(new g.Z(t)),e};var m=function(t,e){var i=e?f(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)};var y=function(t,e){var i=-1,n=t.length;for(e||(e=Array(n));++i<n;)e[i]=t[i];return e},b=i(98152),v=Object.create,E=function(){function t(){}return function(e){if(!(0,b.Z)(e))return{};if(v)return v(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}(),I=i(99786),C=i(75315);var B=function(t){return"function"!=typeof t.constructor||(0,C.Z)(t)?{}:E((0,I.Z)(t))},w=i(56492),x=i(21672),Q=i(23065),S=i(59752);var k=function(t){return(0,S.Z)(t)&&(0,Q.Z)(t)},D=i(91673),_=i(97827),R=i(38785),M=i(79176);var T=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},F=Object.prototype.hasOwnProperty;var L=function(t,e,i){var n=t[e];F.call(t,e)&&(0,a.Z)(n,i)&&(void 0!==i||e in t)||o(t,e,i)};var N=function(t,e,i,n){var r=!i;i||(i={});for(var a=-1,s=e.length;++a<s;){var l=e[a],A=n?n(i[l],t[l],l,i,t):void 0;void 0===A&&(A=t[l]),r?o(i,l,A):L(i,l,A)}return i},P=i(49446);var U=function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e},O=Object.prototype.hasOwnProperty;var G=function(t){if(!(0,b.Z)(t))return U(t);var e=(0,C.Z)(t),i=[];for(var n in t)("constructor"!=n||!e&&O.call(t,n))&&i.push(n);return i};var H=function(t){return(0,Q.Z)(t)?(0,P.Z)(t,!0):G(t)};var V=function(t){return N(t,H(t))};var Y=function(t,e,i,n,r,o,a){var l=T(t,i),A=T(e,i),c=a.get(A);if(c)s(t,i,c);else{var h=o?o(l,A,i+"",t,e,a):void 0,d=void 0===h;if(d){var u=(0,x.Z)(A),g=!u&&(0,D.Z)(A),f=!u&&!g&&(0,M.Z)(A);h=A,u||g||f?(0,x.Z)(l)?h=l:k(l)?h=y(l):g?(d=!1,h=p(A,!0)):f?(d=!1,h=m(A,!0)):h=[]:(0,R.Z)(A)||(0,w.Z)(A)?(h=l,(0,w.Z)(l)?h=V(l):(0,b.Z)(l)&&!(0,_.Z)(l)||(h=B(A))):d=!1}d&&(a.set(A,h),r(h,A,n,o,a),a.delete(A)),s(t,i,h)}};var z=function t(e,i,r,o,a){e!==i&&l(i,(function(l,A){if(a||(a=new n.Z),(0,b.Z)(l))Y(e,i,A,r,t,o,a);else{var c=o?o(T(e,A),l,A+"",e,i,a):void 0;void 0===c&&(c=l),s(e,A,c)}}),H)}},64964:function(t,e,i){"use strict";i.d(e,{Z:function(){return u}});var n=i(35034),r=i(46671),o=Math.max;var a=function(t,e,i){return e=o(void 0===e?t.length-1:e,0),function(){for(var n=arguments,a=-1,s=o(n.length-e,0),l=Array(s);++a<s;)l[a]=n[e+a];a=-1;for(var A=Array(e+1);++a<e;)A[a]=n[a];return A[e]=i(l),(0,r.Z)(t,this,A)}};var s=function(t){return function(){return t}},l=i(48595),A=l.Z?function(t,e){return(0,l.Z)(t,"toString",{configurable:!0,enumerable:!1,value:s(e),writable:!0})}:n.Z,c=Date.now;var h=function(t){var e=0,i=0;return function(){var n=c(),r=16-(n-i);if(i=n,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},d=h(A);var u=function(t,e){return d(a(t,e,n.Z),t+"")}},44800:function(t,e){"use strict";e.Z=function(t){return function(e){return t(e)}}},86053:function(t,e,i){"use strict";i.d(e,{Z:function(){return A}});var n=i(64964),r=i(56172),o=i(23065),a=i(40399),s=i(98152);var l=function(t,e,i){if(!(0,s.Z)(i))return!1;var n=typeof e;return!!("number"==n?(0,o.Z)(i)&&(0,a.Z)(e,i.length):"string"==n&&e in i)&&(0,r.Z)(i[e],t)};var A=function(t){return(0,n.Z)((function(e,i){var n=-1,r=i.length,o=r>1?i[r-1]:void 0,a=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&l(i[0],i[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var s=i[n];s&&t(e,s,n,o)}return e}))}},48595:function(t,e,i){"use strict";var n=i(52078),r=function(){try{var t=(0,n.Z)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.Z=r},29194:function(t,e){"use strict";var i="object"==typeof global&&global&&global.Object===Object&&global;e.Z=i},52078:function(t,e,i){"use strict";i.d(e,{Z:function(){return y}});var n,r=i(97827),o=i(23449).Z["__core-js_shared__"],a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";var s=function(t){return!!a&&a in t},l=i(98152),A=i(18235),c=/^\[object .+?Constructor\]$/,h=Function.prototype,d=Object.prototype,u=h.toString,p=d.hasOwnProperty,g=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var f=function(t){return!(!(0,l.Z)(t)||s(t))&&((0,r.Z)(t)?g:c).test((0,A.Z)(t))};var m=function(t,e){return null==t?void 0:t[e]};var y=function(t,e){var i=m(t,e);return f(i)?i:void 0}},99786:function(t,e,i){"use strict";var n=(0,i(919).Z)(Object.getPrototypeOf,Object);e.Z=n},20887:function(t,e,i){"use strict";i.d(e,{Z:function(){return C}});var n=i(52078),r=i(23449),o=(0,n.Z)(r.Z,"DataView"),a=i(90649),s=(0,n.Z)(r.Z,"Promise"),l=(0,n.Z)(r.Z,"Set"),A=(0,
n.Z)(r.Z,"WeakMap"),c=i(36531),h=i(18235),d="[object Map]",u="[object Promise]",p="[object Set]",g="[object WeakMap]",f="[object DataView]",m=(0,h.Z)(o),y=(0,h.Z)(a.Z),b=(0,h.Z)(s),v=(0,h.Z)(l),E=(0,h.Z)(A),I=c.Z;(o&&I(new o(new ArrayBuffer(1)))!=f||a.Z&&I(new a.Z)!=d||s&&I(s.resolve())!=u||l&&I(new l)!=p||A&&I(new A)!=g)&&(I=function(t){var e=(0,c.Z)(t),i="[object Object]"==e?t.constructor:void 0,n=i?(0,h.Z)(i):"";if(n)switch(n){case m:return f;case y:return d;case b:return u;case v:return p;case E:return g}return e});var C=I},40399:function(t,e){"use strict";var i=/^(?:0|[1-9]\d*)$/;e.Z=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}},75315:function(t,e){"use strict";var i=Object.prototype;e.Z=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},91183:function(t,e,i){"use strict";var n=i(29194),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===r&&n.Z.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.Z=s},919:function(t,e){"use strict";e.Z=function(t,e){return function(i){return t(e(i))}}},23449:function(t,e,i){"use strict";var n=i(29194),r="object"==typeof self&&self&&self.Object===Object&&self,o=n.Z||r||Function("return this")();e.Z=o},18235:function(t,e){"use strict";var i=Function.prototype.toString;e.Z=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},84585:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var n=function(t,e,i){return t==t&&(void 0!==i&&(t=t<=i?t:i),void 0!==e&&(t=t>=e?t:e)),t},r=i(4627);var o=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=(0,r.Z)(i))==i?i:0),void 0!==e&&(e=(e=(0,r.Z)(e))==e?e:0),n((0,r.Z)(t),e,i)}},61068:function(t,e,i){"use strict";i.d(e,{Z:function(){return A}});var n=i(98152),r=i(23449),o=function(){return r.Z.Date.now()},a=i(4627),s=Math.max,l=Math.min;var A=function(t,e,i){var r,A,c,h,d,u,p=0,g=!1,f=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var i=r,n=A;return r=A=void 0,p=e,h=t.apply(n,i)}function b(t){var i=t-u;return void 0===u||i>=e||i<0||f&&t-p>=c}function v(){var t=o();if(b(t))return E(t);d=setTimeout(v,function(t){var i=e-(t-u);return f?l(i,c-(t-p)):i}(t))}function E(t){return d=void 0,m&&r?y(t):(r=A=void 0,h)}function I(){var t=o(),i=b(t);if(r=arguments,A=this,u=t,i){if(void 0===d)return function(t){return p=t,d=setTimeout(v,e),g?y(t):h}(u);if(f)return clearTimeout(d),d=setTimeout(v,e),y(u)}return void 0===d&&(d=setTimeout(v,e)),h}return e=(0,a.Z)(e)||0,(0,n.Z)(i)&&(g=!!i.leading,c=(f="maxWait"in i)?s((0,a.Z)(i.maxWait)||0,e):c,m="trailing"in i?!!i.trailing:m),I.cancel=function(){void 0!==d&&clearTimeout(d),p=0,r=u=A=d=void 0},I.flush=function(){return void 0===d?h:E(o())},I}},56172:function(t,e){"use strict";e.Z=function(t,e){return t===e||t!=t&&e!=e}},35034:function(t,e){"use strict";e.Z=function(t){return t}},56492:function(t,e,i){"use strict";i.d(e,{Z:function(){return c}});var n=i(36531),r=i(59752);var o=function(t){return(0,r.Z)(t)&&"[object Arguments]"==(0,n.Z)(t)},a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable,A=o(function(){return arguments}())?o:function(t){return(0,r.Z)(t)&&s.call(t,"callee")&&!l.call(t,"callee")},c=A},21672:function(t,e){"use strict";var i=Array.isArray;e.Z=i},23065:function(t,e,i){"use strict";var n=i(97827),r=i(60492);e.Z=function(t){return null!=t&&(0,r.Z)(t.length)&&!(0,n.Z)(t)}},91673:function(t,e,i){"use strict";i.d(e,{Z:function(){return l}});var n=i(23449);var r=function(){return!1},o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===o?n.Z.Buffer:void 0,l=(s?s.isBuffer:void 0)||r},57277:function(t,e,i){"use strict";i.d(e,{Z:function(){return j}});var n=i(16671),r=i(81607);var o=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var a=function(t){return this.__data__.has(t)};function s(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new r.Z;++e<i;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=a;var l=s;var A=function(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1};var c=function(t,e){return t.has(e)};var h=function(t,e,i,n,r,o){var a=1&i,s=t.length,h=e.length;if(s!=h&&!(a&&h>s))return!1;var d=o.get(t),u=o.get(e);if(d&&u)return d==e&&u==t;var p=-1,g=!0,f=2&i?new l:void 0;for(o.set(t,e),o.set(e,t);++p<s;){var m=t[p],y=e[p];if(n)var b=a?n(y,m,p,e,t,o):n(m,y,p,t,e,o);if(void 0!==b){if(b)continue;g=!1;break}if(f){if(!A(e,(function(t,e){if(!c(f,e)&&(m===t||r(m,t,i,n,o)))return f.push(e)}))){g=!1;break}}else if(m!==y&&!r(m,y,i,n,o)){g=!1;break}}return o.delete(t),o.delete(e),g},d=i(73205),u=i(24942),p=i(56172);var g=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i};var f=function(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i},m=d.Z?d.Z.prototype:void 0,y=m?m.valueOf:void 0;var b=function(t,e,i,n,r,o,a){switch(i){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new u.Z(t),new u.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,p.Z)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=g;case"[object Set]":var l=1&n;if(s||(s=f),t.size!=e.size&&!l)return!1;var A=a.get(t);if(A)return A==e;n|=2,a.set(t,e);var c=h(s(t),s(e),n,r,o,a);return a.delete(t),c;case"[object Symbol]":if(y)return y.call(t)==y.call(e)}return!1};var v=function(t,e){for(var i=-1,n=e.length,r=t.length;++i<n;)t[r+i]=e[i];return t},E=i(21672);var I=function(t,e,i){var n=e(t);return(0,E.Z)(t)?n:v(n,i(t))};var C=function(t,e){for(var i=-1,n=null==t?0:t.length,r=0,o=[];++i<n;){var a=t[i];e(a,i,t)&&(o[r++]=a)}return o};var B=function(){return[]},w=Object.prototype.propertyIsEnumerable,x=Object.getOwnPropertySymbols,Q=x?function(t){return null==t?[]:(t=Object(t),C(x(t),(function(e){return w.call(t,e)})))}:B,S=i(49446),k=i(75315),D=(0,i(919).Z)(Object.keys,Object),_=Object.prototype.hasOwnProperty;var R=function(t){if(!(0,k.Z)(t))return D(t);var e=[];for(var i in Object(t))_.call(t,i)&&"constructor"!=i&&e.push(i);return e},M=i(23065);var T=function(t){return(0,M.Z)(t)?(0,S.Z)(t):R(t)};var F=function(t){return I(t,T,Q)},L=Object.prototype.hasOwnProperty;var N=function(t,e,i,n,r,o){var a=1&i,s=F(t),l=s.length;if(l!=F(e).length&&!a)return!1;for(var A=l;A--;){var c=s[A];if(!(a?c in e:L.call(e,c)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var u=!0;o.set(t,e),o.set(e,t);for(var p=a;++A<l;){var g=t[c=s[A]],f=e[c];if(n)var m=a?n(f,g,c,e,t,o):n(g,f,c,t,e,o);if(!(void 0===m?g===f||r(g,f,i,n,o):m)){u=!1;break}p||(p="constructor"==c)}if(u&&!p){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(u=!1)}return o.delete(t),o.delete(e),u},P=i(20887),U=i(91673),O=i(79176),G="[object Arguments]",H="[object Array]",V="[object Object]",Y=Object.prototype.hasOwnProperty;var z=function(t,e,i,r,o,a){var s=(0,E.Z)(t),l=(0,E.Z)(e),A=s?H:(0,P.Z)(t),c=l?H:(0,P.Z)(e),d=(A=A==G?V:A)==V,u=(c=c==G?V:c)==V,p=A==c;if(p&&(0,U.Z)(t)){if(!(0,U.Z)(e))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new n.Z),s||(0,O.Z)(t)?h(t,e,i,r,o,a):b(t,e,A,i,r,o,a);if(!(1&i)){var g=d&&Y.call(t,"__wrapped__"),f=u&&Y.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,y=f?e.value():e;return a||(a=new n.Z),o(m,y,i,r,a)}}return!!p&&(a||(a=new n.Z),N(t,e,i,r,o,a))},W=i(59752);var Z=function t(e,i,n,r,o){return e===i||(null==e||null==i||!(0,W.Z)(e)&&!(0,W.Z)(i)?e!=e&&i!=i:z(e,i,n,r,t,o))};var j=function(t,e){return Z(t,e)}},97827:function(t,e,i){"use strict";var n=i(36531),r=i(98152);e.Z=function(t){if(!(0,r.Z)(t))return!1;var e=(0,
n.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},60492:function(t,e){"use strict";e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},98152:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},59752:function(t,e){"use strict";e.Z=function(t){return null!=t&&"object"==typeof t}},38785:function(t,e,i){"use strict";var n=i(36531),r=i(99786),o=i(59752),a=Function.prototype,s=Object.prototype,l=a.toString,A=s.hasOwnProperty,c=l.call(Object);e.Z=function(t){if(!(0,o.Z)(t)||"[object Object]"!=(0,n.Z)(t))return!1;var e=(0,r.Z)(t);if(null===e)return!0;var i=A.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&l.call(i)==c}},78814:function(t,e,i){"use strict";i.d(e,{Z:function(){return A}});var n=i(20887),r=i(59752);var o=function(t){return(0,r.Z)(t)&&"[object Set]"==(0,n.Z)(t)},a=i(44800),s=i(91183),l=s.Z&&s.Z.isSet,A=l?(0,a.Z)(l):o},16725:function(t,e,i){"use strict";var n=i(36531),r=i(59752);e.Z=function(t){return"symbol"==typeof t||(0,r.Z)(t)&&"[object Symbol]"==(0,n.Z)(t)}},79176:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var n=i(36531),r=i(60492),o=i(59752),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=function(t){return(0,o.Z)(t)&&(0,r.Z)(t.length)&&!!a[(0,n.Z)(t)]},l=i(44800),A=i(91183),c=A.Z&&A.Z.isTypedArray,h=c?(0,l.Z)(c):s},63212:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(16725);var r=function(t,e,i){for(var r=-1,o=t.length;++r<o;){var a=t[r],s=e(a);if(null!=s&&(void 0===l?s==s&&!(0,n.Z)(s):i(s,l)))var l=s,A=a}return A};var o=function(t,e){return t>e},a=i(35034);var s=function(t){return t&&t.length?r(t,a.Z,o):void 0}},745:function(t,e,i){"use strict";var n=i(34889),r=(0,i(86053).Z)((function(t,e,i){(0,n.Z)(t,e,i)}));e.Z=r},44127:function(t,e){"use strict";e.Z=function(){}},62022:function(t,e,i){"use strict";var n=i(61068),r=i(98152);e.Z=function(t,e,i){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return(0,r.Z)(i)&&(o="leading"in i?!!i.leading:o,a="trailing"in i?!!i.trailing:a),(0,n.Z)(t,e,{leading:o,maxWait:e,trailing:a})}},4627:function(t,e,i){"use strict";i.d(e,{Z:function(){return u}});var n=/\s/;var r=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e},o=/^\s+/;var a=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t},s=i(98152),l=i(16725),A=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;var u=function(t){if("number"==typeof t)return t;if((0,l.Z)(t))return NaN;if((0,s.Z)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,s.Z)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var i=c.test(t);return i||h.test(t)?d(t.slice(2),i?2:8):A.test(t)?NaN:+t}},65159:function(t){"use strict"
;t.exports=JSON.parse('{"v":"5.8.1","fr":29.9700012207031,"ip":0,"op":25.0000010182709,"w":18,"h":18,"nm":"tv_combine 1018","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Eye Right","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[9.938,9.469,0],"e":[13.094,9.469,0],"to":[0.526,0,0],"ti":[-0.526,0,0]},{"t":24.00000097754}],"ix":2,"l":2},"a":{"a":0,"k":[-2.493,1.385,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[1.8,4],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":20,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.20000000298,0.20000000298,0.20000000298,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.524,1.385],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":27.0000010997325,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Eye Left","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[4.906,9.469,0],"e":[7.906,9.469,0],"to":[0.5,0,0],"ti":[-0.5,0,0]},{"t":24.00000097754}],"ix":2,"l":2},"a":{"a":0,"k":[-2.493,1.385,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[1.75,4],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":20,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.20000000298,0.20000000298,0.20000000298,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.524,1.385],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":27.0000010997325,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Tv","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[8.903,9.401,0],"ix":2,"l":2},"a":{"a":0,"k":[0.012,0.995,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[14,11],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":2.5,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"st","c":{"a":0,"k":[0.20000000298,0.20000000298,0.20000000298,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0.091,1.101],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":27.0000010997325,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Tianxian Right","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":33.382,"ix":10},"p":{"a":0,"k":[12.281,2.352,0],"ix":2,"l":2},"a":{"a":0,"k":[-2.493,1.385,0],"ix":1,"l":2},"s":{"a":0,"k":[136.962,114.812,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[1.5,4],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":20,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.20000000298,0.20000000298,0.20000000298,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.524,1.385],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":6.85,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":27.0000010997325,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Tianxian Left","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-36.359,"ix":10},"p":{"a":0,"k":[5.797,2.328,0],"ix":2,"l":2},"a":{"a":0,"k":[-2.493,1.385,0],"ix":1,"l":2},"s":{"a":0,"k":[122.727,114.296,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[1.5,4],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":20,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[0.20000000298,0.20000000298,0.20000000298,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.524,1.385],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":-6.395,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Rectangle 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":27.0000010997325,"st":0,"bm":0}],"markers":[]}')}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},getProto=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},__webpack_require__.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var i=Object.create(null);__webpack_require__.r(i);var n={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var r=2&e&&t;"object"==typeof r&&!~leafPrototypes.indexOf(r);r=getProto(r))Object.getOwnPropertyNames(r).forEach((function(e){n[e]=function(){return t[e]}}));return n.default=function(){return t},__webpack_require__.d(i,n),i},__webpack_require__.d=function(t,e){for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){if(void 0!==__webpack_require__){var t=__webpack_require__.u,e=__webpack_require__.e,i={},n={};__webpack_require__.u=function(e){return t(e)+(i.hasOwnProperty(e)?"?"+i[e]:"")},__webpack_require__.e=function(r){return e(r).catch((function(e){var o=n.hasOwnProperty(r)?n[r]:1;if(o<1){var a=t(r);throw e.message="Loading chunk "+r+" failed after 1 retries.\n("+a+")",e.request=a,e}return new Promise((function(t){var e=1-o+1;setTimeout((function(){var a="cache-bust=true"+("&retry-attempt="+e);i[r]=a,n[r]=o-1,t(__webpack_require__.e(r))}),0)}))}))}}}(),__webpack_require__.b=document.baseURI||self.location.href;var __webpack_exports__={};return function(){"use strict"
;__webpack_require__.r(__webpack_exports__);var t=__webpack_require__(14653),e=__webpack_require__(94780),i=(__webpack_require__(47019),__webpack_require__(96841),__webpack_require__(20477),__webpack_require__(33921),__webpack_require__(37801),__webpack_require__(27155),__webpack_require__(97709),__webpack_require__(84993),__webpack_require__(25870),__webpack_require__(19714),__webpack_require__(45727),__webpack_require__(99808),__webpack_require__(50767),__webpack_require__(30306),__webpack_require__(18503),__webpack_require__(51839)),n=__webpack_require__(50282),r=__webpack_require__.n(n),o=__webpack_require__(75572),a=__webpack_require__.n(o),s=__webpack_require__(64423),l=__webpack_require__.n(s),A=__webpack_require__(52182),c=__webpack_require__.n(A),h=__webpack_require__(73632),d=__webpack_require__.n(h),u=__webpack_require__(27507),p={attributes:{"data-injector":"nano"}};p.setAttributes=c(),p.insert=l().bind(null,"head"),p.domAPI=a(),p.insertStyleElement=d();r()(u.Z,p),u.Z&&u.Z.locals&&u.Z.locals;var g=__webpack_require__(8776),f=__webpack_require__.n(g),m=__webpack_require__(70811),y=__webpack_require__(20094);var b=__webpack_require__(22451),v=__webpack_require__(5489);t.Iy.markOnce(t.rS.Index_Head),t.Iy.measureOnce(t.Z6.NavStart_To_IndexHead,null,t.rS.Index_Head),(0,i.fB)(),t.Iy.markOnce(t.rS.Style_Tail),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(t,e){const i=document.createEvent("CustomEvent"),n=Object.assign({bubbles:!1,cancelable:!1,detail:null},e);return i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),i}),y.defaults.expires=365,y.defaults.path="/",y.defaults.domain=".bilibili.com",m.Z.interceptors.request.use((t=>{const e="[object Object]"===((i=t.data)&&Object.prototype.toString.call(i));var i;return/^POST$/i.test(t.method)&&e&&!t.data.csrf&&Object.assign(t.data,{csrf:y.get("bili_jct")}),e&&(t.data=f().stringify(t.data)),t})),(0,b.jQ)({useProxies:"never",enforceActions:"observed",reactionRequiresObservable:!0}),v.lS.getCommonHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,46068)),v.lS.getBangumiHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,19982)),v.lS.getCommunityHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,48465)),v.lS.getClassroomHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,35926)),v.lS.getHomepageHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,88993)),v.lS.getAuxiliaryHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,55053)),v.lS.getCreatorHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,11483)),v.lS.getEmbeddedHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,15432)),v.lS.getManagerHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,64115)),v.lS.getPCAppHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,72545)),v.lS.getGamecenterHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,56049)),v.lS.getMiniSiteHelper=()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,67633)),new v.lS;const E=t.Iy.filterLoadTime(v.R2);E&&(e._g.entryRequestStart=E.requestStart,e._g.entryResponseEnd=E.requestStart+E.duration,e._g.entryLoadTime=E)}(),__webpack_exports__}()}));